Commit Graph
278 Commits
Author SHA1 Message Date
fluzzi32 89ca1ec621 feat(spec-05-auth-fallback-chain): worker (eng_flash_high) implementation 2026-11-17 11:35:54 -03:00
fluzzi32 d96d8fb1fa feat(spec-05-auth-fallback-chain): worker (eng_flash_high) implementation 2026-11-16 23:03:32 -03:00
fluzzi32 79d28ee6c3 feat(spec-05-auth-fallback-chain): worker (eng_flash_high) implementation 2026-11-16 22:46:44 -03:00
fluzzi32 ef6d1da5e5 Merge feature/spec-04-adaptive-timeouts-ssm: adaptive SSM/jumphost timeouts & hardened expects 2026-11-16 21:25:41 -03:00
fluzzi32 8e388cc6b6 feat(spec-04-adaptive-timeouts-ssm): worker (eng_flash_high) implementation 2026-11-16 21:14:58 -03:00
fluzzi32 c3995ea6a9 feat(spec-04-adaptive-timeouts-ssm): worker (eng_flash_high) implementation 2026-11-16 21:06:07 -03:00
fluzzi32 951961a5d3 chore(release): bump version to v6.4.0b4 and update documentation 2026-11-09 17:30:43 -03:00
fluzzi32 1caa286e65 chore(release): bump version to v6.4.0b3 and update documentation 2026-11-09 16:14:19 -03:00
fluzzi32 388d042eba Merge feature/spec-03-mcp-server: Native MCP Server (stdio/sse) with 3-tier security 2026-11-09 16:08:02 -03:00
fluzzi32 91c6732719 Merge feature/spec-02-ai-and-hooks-bugfixes: AI copilot fixes & per-instance/tenant isolation 2026-11-09 16:07:44 -03:00
fluzzi32 a2ca91dfc9 Merge feature/spec-01-security-yaml-and-cmd: YAML safe_load & command option sanitization 2026-11-09 16:07:22 -03:00
fluzzi32 2721e39e78 feat(mcp): implement native ConnpyMCPServer with stdio/SSE transports and tiered security (spec-03) 2026-11-09 15:59:50 -03:00
fluzzi32 494a7dffe6 fix(ai,hooks,mcp): resolve AI bugfixes, MethodHook instance isolation, and MCP multi-tenancy (spec-02) 2026-11-09 15:59:46 -03:00
fluzzi32 a90e8bf597 feat(security): harden yaml safe_load and connection command injection 2026-11-09 15:45:30 -03:00
fluzzi32 2da9b45548 feat(release): v6.4.0b2 - support Mosh SSH backend for jumphosts & capture, silence google.api_core FutureWarning, update pdoc
- Allow Mosh nodes to act as single or chained jumphosts via their underlying SSH TCP backend (ssh -W) with strict mosh_ssh_options allowlist validation and IPv6 bracket formatting.

- Allow RemoteCapture (conn capture) on Mosh nodes using reverse SSH tunnels (force_ssh=True, allow_reverse_tunnel_port) and isolated tags deepcopy restoration.

- Suppress google.api_core._python_version_support FutureWarning during lazy Google Drive SDK imports in sync_service.py.

- Add unit and security test coverage in test_core.py, test_capture.py, and test_sync.py.

- Bump version to 6.4.0b2 and regenerate pdoc HTML documentation.
2026-10-28 14:22:24 -03:00
fluzzi32 5f2aa958a2 feat(release): merge feature/mosh, bump version to v6.4.0b1 and update pdoc documentation 2026-10-22 13:23:54 -03:00
fluzzi32 4d9ebdb80f feat(mosh): TASK-MOSH-02 early UDP block detection, clean termination and test fixtures fix 2026-10-20 12:27:15 -03:00
fluzzi32 badc79a38d feat: resolve prompt unanchoring and ensure 100% test pass 2026-10-19 19:29:03 -03:00
fluzzi32 30c3f2cdd2 feat: senior engineer hardening for TASK-MOSH-01 2026-10-19 18:56:44 -03:00
fluzzi32 d8a4357826 feat: completed TASK-MOSH-01 - Soporte Nativo para el Protocolo Mosh 2026-10-19 18:33:02 -03:00
fluzzi32 01690c815f feat(grpc,copilot): add remote multi-turn mission execution loop, update pdoc and bump to v6.3.0
- Implement dynamic prompt settle detection and context block recalculation in gRPC server during Copilot execution.
- Enable multi-turn streaming interaction loop in NodeStub for remote Copilot and autonomous missions.
- Fix non-mission chat history logging in terminal UI.
- Add unit test coverage for remote Copilot command execution lifecycle.
- Regenerate HTML documentation in docs/ via pdoc.
- Bump version to v6.3.0.
2026-08-17 10:20:43 -03:00
fluzzi32 881d65b8a5 feat(copilot): implement autonomous mission mode with human
approval and prompt settle

    - Add /mission and /cancel slash commands in AIService
    - Implement autonomous multi-step execution loop with scratchpad in
  CopilotInterface
    - Add dynamic prompt settle detection in core.py after command injection
    - Add step limits with summary fallback and interactive feedback on pause
    - Add unit test coverage for mission lifecycle and state management
2026-08-14 16:31:03 -03:00
fluzzi32 3637d34f6f feat(copilot): implement 5-turn chat history & internal agent notes (<notes>) for CLI & Command Center (v6.2.0)
- Add multi-turn conversation memory (sliding window of last 5 turns / 10 messages) for Terminal Copilot.
- Introduce <notes> XML tag in Copilot response schema for tracking internal agent reasoning, tool usage, and key facts across turns.
- Instruct Copilot via System Prompt about the 5-turn pruning window and mandate summarizing critical facts in <notes>.
- Extend Command Center frontend (types.ts, useAISession.ts, AIPanel.tsx) with expandable "🧠 Internal Agent Notes / Memory" accordion and browser console response debug logging.
- Ensure 100% transparent serialization across local CLI execution, remote gRPC streams, and Web UI.
- Update documentation and bump version to v6.2.0.
2026-08-13 18:49:59 -03:00
fluzzi32 32fe18d27a perf(cli,core): lazy load Crypto and rich.markdown modules to boost startup latency and bump to v6.1.1
- Implement lazy `@property` getters for `configfile.privatekey` and `configfile.publickey` to defer RSA key loading and pycryptodome imports until explicitly accessed.
- Move top-level `Crypto` imports inside local methods in `configfile.py`, `core.py`, and `config_service.py`.
- Remove top-level `from rich.markdown import Markdown` across CLI handlers (`node_handler.py`, `ai_handler.py`, `terminal_ui.py`) and `ai.py`, deferring parser load to active rendering calls.
- Reduce CLI startup load latency from ~172 ms to ~49 ms (>3.5x speedup / ~71% latency reduction).
- Regenerate HTML documentation in `docs/` via `pdoc`.
- Bump version to v6.1.1.
2026-08-13 12:55:03 -03:00
fluzzi32 0632a510ad feat(cli,core): add local interactive shell (conn shell), Ctrl+Space passthrough and bump to v6.1.0
- Add `conn shell` CLI subcommand for spawning local interactive shells with AI Copilot support.

- Implement `protocol="local"` on core `node` class with PTY process spawning, dynamic PWD tracking (/proc/PID/cwd + OSC 7), and AI metadata mapping.

- Implement `_is_child_connpy_active()` to inspect PTY slave foreground process group (tcgetpgrp + /proc/PGID/cmdline).

- Automatically pass `Ctrl+Space` (b'\x00') down to child foreground `conn` / `connpy` processes when running nested sessions in local shell.

- Add `--shell-command`, `--shell-prompt`, and `--shell-os` configuration options to `conn config`.

- Update `README.md` and `connpy/__init__.py` documentation to include `conn shell` and PAT API Token management.

- Add comprehensive unit tests in `test_local_shell.py` and `test_completion.py`.

- Bump version to v6.1.0 and regenerate full HTML documentation in `docs/` via pdoc.
2026-08-12 12:03:59 -03:00
fluzzi32 835283eba6 perf(ai): decouple AI suite from startup and enable lazy loading across services and CLI
- Decouple connapp.ai from get_parser() via DeferredAIProxy to queue plugin modifications without importing connpy.ai or Pydantic v2 upfront.
- Guard connapp.start() finally block to invoke ai.cleanup() only if connpy.ai was actively imported.
- Defer CopilotInterface and AIService imports in core.py to execute strictly upon receiving Copilot hotkey (\x00).
- Convert heavy services (ai, sync, users, import_export, system, execution) into lazy properties on ServiceProvider and services/__init__.py.
- Implement O(1) globals() dict caching in module __getattr__ (PEP 562) across connpy/__init__.py and services/__init__.py.
- Defer Google Drive SDK in sync_service.py and interactive CLI components (inquirer) across handlers.
- Reduced CLI startup & parser initialization latency from ~1.47s to ~183ms (~87% improvement).
2026-08-11 19:31:55 -03:00
fluzzi32 bf5bddda5a perf(core): implement lazy loading for heavy services, Google SDK and CLI forms
- Defer instantiation of heavy services (SyncService, UserService,
  ImportExportService, SystemService, ExecutionService) using cached
  properties in ServiceProvider and module __getattr__ in services.
- Defer Google Drive SDK imports in sync_service.py using module-level
  __getattr__ and _get_google_libs() helper while retaining mock patchability.
- Lazy load inquirer, Forms, Validators and Blessed theme adapters in
  connpy/cli/* to prevent loading CLI form dependencies at startup.
- Clean up unused top-level service imports in connapp.py.
2026-08-11 17:06:40 -03:00
fluzzi32 fe189885d4 feat(auth,ai): add Personal Access Tokens support and persist
AI copilot context state

    - Implement Personal Access Token (PAT) management in UserService with SHA-256
  hash storage and O(1) lookup.
    - Add gRPC endpoints (CreateApiToken, ListApiTokens, RevokeApiToken) and CLI
  commands.
    - Allow authentication using CONNPY_TOKEN environment variable in
  ServiceProvider.
    - Persist AI Copilot context mode and accumulation ranges across prompt
  sessions in terminal_ui.
    - Propagate node_info_json metadata over Copilot gRPC tunnel stream.
    - Add unit tests for PAT lifecycle and Copilot context state persistence (430
  passing tests).
2026-08-11 11:40:12 -03:00
fluzzi32 e94bb3a341 feat(cli): add multiline input support for AI prompts, update docs and bump to v6.0.5 2026-07-27 15:47:51 -03:00
fluzzi32 558e1d828f bug fix jump over jump 2026-07-07 14:03:14 -03:00
fluzzi32 2bffcdf81f fix some plugins 2026-07-02 16:44:34 -03:00
fluzzi32 127c1b9fdb update readme 2026-06-16 18:04:54 -03:00
fluzzi32 744e730672 feat(auth,cli): add SSO/OIDC authentication and provider management
- Introduce `conn sso` CLI suite for managing Identity Providers (IdP).
- Implement `login_sso` and `get_sso_providers` in gRPC AuthService.
- Add auto-provisioning for users logging in via SSO.
- Support JWT validation via shared secrets (HS256) or JWKS (RS256).
- Add domain restriction (`allowed_domains`) and env-var secret resolution.
- Increase JWT session expiration from 8 to 12 hours.
- Add shell autocompletion for SSO commands and configured providers.
- Bump version to 6.0.3.
2026-06-04 18:33:26 -03:00
fluzzi32 61a44d004f feat(core,grpc): add regex support for node expectations and secure thread context sharing
- Implement dynamic regex matching fallback (re.search) in `node.test` with safe handling of invalid patterns.
- Refactor terminal window resizing (setwinsize) to trigger only on non-router devices and handle SIGWINCH re-renders.
- Introduce `contextvars` context copying for background worker threads in gRPC execution and AI servicers.
- Add unit tests for regex validation, malformed expression fallbacks, and variable formatting in node testing.
- Optimize Playbook Builder AI guidelines for single-task test evaluations.
- Unify codebase comments to English.
2026-06-03 16:49:52 -03:00
fluzzi32 2b8e637298 added AI support for yaml/run 2026-06-01 17:49:19 -03:00
fluzzi32 721a3642f3 bug fixes and moving to production 2026-05-29 17:09:27 -03:00
fluzzi32 e52d300cf1 new version and docs 2026-05-28 18:22:00 -03:00
fluzzi32 cf866d782a new license 2026-05-28 18:20:24 -03:00
fluzzi32 49dfa805e4 fix api multiple debug 2026-05-28 18:01:56 -03:00
fluzzi32 1b9751bd23 multiuser plugins + fixes 2026-05-28 15:23:39 -03:00
fluzzi32 f5e09a55ab feat(cli): agregar comando connpy login --status 2026-05-28 12:48:38 -03:00
fluzzi32 f6ce48ed8a fix(shared-ai): implementar aislamiento de credenciales locales y globales 2026-05-28 11:18:03 -03:00
fluzzi32 7b053998f9 Merge branch 'main' into multiuser
# Conflicts:
#	connpy/grpc_layer/server.py
2026-05-28 10:47:21 -03:00
fluzzi32 58c81a19cb refactor: optimize bulk ops, prioritize exact node matches & fix remote AI deadlock
- Priority Matching: Prioritize exact node matches in connect, delete, show, and modify actions to bypass disambiguation prompts and prevent accidental bulk mutations on partial matches.
- Bulk Operations: Optimize NodeService delete and update operations by deferring configuration writes, syncs, and cache updates to the final element of a batch.
- Remote AI: Prevent client-side CLI deadlocks when the gRPC server encounters AI configuration ValueErrors by returning a clean error state and final stream marker.
- Testing: Add unit test to verify exact-match priority behavior and update existing CLI tests to match new NodeService signatures.
2026-05-28 10:35:15 -03:00
fluzzi32 0adaaad971 feat(multiuser): implementar sistema multiusuario gRPC y configuración compartida de IA/MCP
- Servidor gRPC: Agregar interceptores de autenticación y UserRegistry para aislar sesiones por usuario.
- Contexto de Hilos: Corregir propagación de ContextVar _current_user a hilos secundarios en ExecutionServicer.
- Configuración Compartida: Implementar herencia y deep merge de settings de IA ('ai') y servidores MCP en configfile.
- Hot-Reload: Recarga automática en caliente de la configuración compartida global ante cambios en disco.
- CLI: Agregar comandos e interfaces de usuario para autenticación (login) y administración de usuarios.
- Pruebas: Desarrollar tests unitarios completos (test_shared_ai.py) y resolver regresiones en la suite existente.
2026-05-28 09:27:54 -03:00
fluzzi32 aa542cb6eb ready for production 2026-05-27 14:44:01 -03:00
fluzzi32 6ee953edcf RC version 2026-05-27 12:34:52 -03:00
fluzzi32 74756f25b2 fix paignation block detection 2026-05-22 13:22:54 -03:00
fluzzi32 243718df46 improve blocks in range 2026-05-22 11:01:36 -03:00
fluzzi32 3be9935541 support fro multiple litellm auth methods 2026-05-21 18:20:24 -03:00