attocode 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +122 -1
- package/README.md +65 -5
- package/dist/src/adapters.d.ts +2 -1
- package/dist/src/adapters.d.ts.map +1 -1
- package/dist/src/adapters.js +74 -12
- package/dist/src/adapters.js.map +1 -1
- package/dist/src/agent/agent-builder.d.ts +117 -0
- package/dist/src/agent/agent-builder.d.ts.map +1 -0
- package/dist/src/agent/agent-builder.js +204 -0
- package/dist/src/agent/agent-builder.js.map +1 -0
- package/dist/src/agent/feature-initializer.d.ts +80 -0
- package/dist/src/agent/feature-initializer.d.ts.map +1 -0
- package/dist/src/agent/feature-initializer.js +677 -0
- package/dist/src/agent/feature-initializer.js.map +1 -0
- package/dist/src/agent/index.d.ts +13 -0
- package/dist/src/agent/index.d.ts.map +1 -0
- package/dist/src/agent/index.js +13 -0
- package/dist/src/agent/index.js.map +1 -0
- package/dist/src/agent/message-builder.d.ts +50 -0
- package/dist/src/agent/message-builder.d.ts.map +1 -0
- package/dist/src/agent/message-builder.js +173 -0
- package/dist/src/agent/message-builder.js.map +1 -0
- package/dist/src/agent/session-api.d.ts +94 -0
- package/dist/src/agent/session-api.d.ts.map +1 -0
- package/dist/src/agent/session-api.js +262 -0
- package/dist/src/agent/session-api.js.map +1 -0
- package/dist/src/agent-tools/lsp-file-tools.d.ts +1 -1
- package/dist/src/agent-tools/lsp-file-tools.d.ts.map +1 -1
- package/dist/src/agent.d.ts +52 -213
- package/dist/src/agent.d.ts.map +1 -1
- package/dist/src/agent.js +544 -4072
- package/dist/src/agent.js.map +1 -1
- package/dist/src/cli.d.ts.map +1 -1
- package/dist/src/cli.js +2 -1
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/handler.d.ts.map +1 -1
- package/dist/src/commands/handler.js +18 -9
- package/dist/src/commands/handler.js.map +1 -1
- package/dist/src/commands/init-commands.d.ts.map +1 -1
- package/dist/src/commands/init-commands.js +16 -1
- package/dist/src/commands/init-commands.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +31 -0
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/config/base-types.d.ts +45 -0
- package/dist/src/config/base-types.d.ts.map +1 -0
- package/dist/src/config/base-types.js +9 -0
- package/dist/src/config/base-types.js.map +1 -0
- package/dist/src/config/config-manager.d.ts +35 -0
- package/dist/src/config/config-manager.d.ts.map +1 -0
- package/dist/src/config/config-manager.js +108 -0
- package/dist/src/config/config-manager.js.map +1 -0
- package/dist/src/config/index.d.ts +4 -0
- package/dist/src/config/index.d.ts.map +1 -0
- package/dist/src/config/index.js +3 -0
- package/dist/src/config/index.js.map +1 -0
- package/dist/src/config/schema.d.ts +1546 -0
- package/dist/src/config/schema.d.ts.map +1 -0
- package/dist/src/config/schema.js +268 -0
- package/dist/src/config/schema.js.map +1 -0
- package/dist/src/config.d.ts +4 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +8 -12
- package/dist/src/config.js.map +1 -1
- package/dist/src/core/agent-state-machine.d.ts +131 -0
- package/dist/src/core/agent-state-machine.d.ts.map +1 -0
- package/dist/src/core/agent-state-machine.js +302 -0
- package/dist/src/core/agent-state-machine.js.map +1 -0
- package/dist/src/core/base-manager.d.ts +79 -0
- package/dist/src/core/base-manager.d.ts.map +1 -0
- package/dist/src/core/base-manager.js +170 -0
- package/dist/src/core/base-manager.js.map +1 -0
- package/dist/src/core/completion-analyzer.d.ts +15 -0
- package/dist/src/core/completion-analyzer.d.ts.map +1 -0
- package/dist/src/core/completion-analyzer.js +53 -0
- package/dist/src/core/completion-analyzer.js.map +1 -0
- package/dist/src/core/execution-loop.d.ts +46 -0
- package/dist/src/core/execution-loop.d.ts.map +1 -0
- package/dist/src/core/execution-loop.js +1397 -0
- package/dist/src/core/execution-loop.js.map +1 -0
- package/dist/src/core/index.d.ts +7 -0
- package/dist/src/core/index.d.ts.map +1 -1
- package/dist/src/core/index.js +9 -0
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/core/process-handlers.d.ts.map +1 -1
- package/dist/src/core/process-handlers.js +14 -0
- package/dist/src/core/process-handlers.js.map +1 -1
- package/dist/src/core/protocol/types.d.ts +12 -12
- package/dist/src/core/response-handler.d.ts +16 -0
- package/dist/src/core/response-handler.d.ts.map +1 -0
- package/dist/src/core/response-handler.js +235 -0
- package/dist/src/core/response-handler.js.map +1 -0
- package/dist/src/core/subagent-spawner.d.ts +43 -0
- package/dist/src/core/subagent-spawner.d.ts.map +1 -0
- package/dist/src/core/subagent-spawner.js +973 -0
- package/dist/src/core/subagent-spawner.js.map +1 -0
- package/dist/src/core/tool-executor.d.ts +59 -0
- package/dist/src/core/tool-executor.d.ts.map +1 -0
- package/dist/src/core/tool-executor.js +682 -0
- package/dist/src/core/tool-executor.js.map +1 -0
- package/dist/src/core/types.d.ts +134 -0
- package/dist/src/core/types.d.ts.map +1 -0
- package/dist/src/core/types.js +12 -0
- package/dist/src/core/types.js.map +1 -0
- package/dist/src/defaults.d.ts +2 -2
- package/dist/src/defaults.d.ts.map +1 -1
- package/dist/src/defaults.js +29 -1
- package/dist/src/defaults.js.map +1 -1
- package/dist/src/integrations/agents/agent-registry.d.ts +262 -0
- package/dist/src/integrations/agents/agent-registry.d.ts.map +1 -0
- package/dist/src/integrations/agents/agent-registry.js +686 -0
- package/dist/src/integrations/agents/agent-registry.js.map +1 -0
- package/dist/src/integrations/agents/async-subagent.d.ts +135 -0
- package/dist/src/integrations/agents/async-subagent.d.ts.map +1 -0
- package/dist/src/integrations/agents/async-subagent.js +213 -0
- package/dist/src/integrations/agents/async-subagent.js.map +1 -0
- package/dist/src/integrations/agents/complexity-classifier.d.ts +86 -0
- package/dist/src/integrations/agents/complexity-classifier.d.ts.map +1 -0
- package/dist/src/integrations/agents/complexity-classifier.js +233 -0
- package/dist/src/integrations/agents/complexity-classifier.js.map +1 -0
- package/dist/src/integrations/agents/delegation-protocol.d.ts +86 -0
- package/dist/src/integrations/agents/delegation-protocol.d.ts.map +1 -0
- package/dist/src/integrations/agents/delegation-protocol.js +127 -0
- package/dist/src/integrations/agents/delegation-protocol.js.map +1 -0
- package/dist/src/integrations/agents/multi-agent.d.ts +150 -0
- package/dist/src/integrations/agents/multi-agent.d.ts.map +1 -0
- package/dist/src/integrations/agents/multi-agent.js +306 -0
- package/dist/src/integrations/agents/multi-agent.js.map +1 -0
- package/dist/src/integrations/agents/result-synthesizer.d.ts +389 -0
- package/dist/src/integrations/agents/result-synthesizer.d.ts.map +1 -0
- package/dist/src/integrations/agents/result-synthesizer.js +951 -0
- package/dist/src/integrations/agents/result-synthesizer.js.map +1 -0
- package/dist/src/integrations/agents/shared-blackboard.d.ts +406 -0
- package/dist/src/integrations/agents/shared-blackboard.d.ts.map +1 -0
- package/dist/src/integrations/agents/shared-blackboard.js +757 -0
- package/dist/src/integrations/agents/shared-blackboard.js.map +1 -0
- package/dist/src/integrations/agents/subagent-output-store.d.ts +91 -0
- package/dist/src/integrations/agents/subagent-output-store.d.ts.map +1 -0
- package/dist/src/integrations/agents/subagent-output-store.js +257 -0
- package/dist/src/integrations/agents/subagent-output-store.js.map +1 -0
- package/dist/src/integrations/auto-compaction.d.ts.map +1 -1
- package/dist/src/integrations/auto-compaction.js +3 -2
- package/dist/src/integrations/auto-compaction.js.map +1 -1
- package/dist/src/integrations/budget/budget-pool.d.ts +115 -0
- package/dist/src/integrations/budget/budget-pool.d.ts.map +1 -0
- package/dist/src/integrations/budget/budget-pool.js +205 -0
- package/dist/src/integrations/budget/budget-pool.js.map +1 -0
- package/dist/src/integrations/budget/cancellation.d.ts +229 -0
- package/dist/src/integrations/budget/cancellation.d.ts.map +1 -0
- package/dist/src/integrations/budget/cancellation.js +520 -0
- package/dist/src/integrations/budget/cancellation.js.map +1 -0
- package/dist/src/integrations/budget/dynamic-budget.d.ts +81 -0
- package/dist/src/integrations/budget/dynamic-budget.d.ts.map +1 -0
- package/dist/src/integrations/budget/dynamic-budget.js +151 -0
- package/dist/src/integrations/budget/dynamic-budget.js.map +1 -0
- package/dist/src/integrations/budget/economics.d.ts +435 -0
- package/dist/src/integrations/budget/economics.d.ts.map +1 -0
- package/dist/src/integrations/budget/economics.js +1007 -0
- package/dist/src/integrations/budget/economics.js.map +1 -0
- package/dist/src/integrations/budget/injection-budget.d.ts +71 -0
- package/dist/src/integrations/budget/injection-budget.d.ts.map +1 -0
- package/dist/src/integrations/budget/injection-budget.js +137 -0
- package/dist/src/integrations/budget/injection-budget.js.map +1 -0
- package/dist/src/integrations/budget/loop-detector.d.ts +105 -0
- package/dist/src/integrations/budget/loop-detector.d.ts.map +1 -0
- package/dist/src/integrations/budget/loop-detector.js +287 -0
- package/dist/src/integrations/budget/loop-detector.js.map +1 -0
- package/dist/src/integrations/budget/phase-tracker.d.ts +114 -0
- package/dist/src/integrations/budget/phase-tracker.d.ts.map +1 -0
- package/dist/src/integrations/budget/phase-tracker.js +262 -0
- package/dist/src/integrations/budget/phase-tracker.js.map +1 -0
- package/dist/src/integrations/budget/resources.d.ts +182 -0
- package/dist/src/integrations/budget/resources.d.ts.map +1 -0
- package/dist/src/integrations/budget/resources.js +318 -0
- package/dist/src/integrations/budget/resources.js.map +1 -0
- package/dist/src/integrations/budget-pool.d.ts +7 -0
- package/dist/src/integrations/budget-pool.d.ts.map +1 -1
- package/dist/src/integrations/budget-pool.js +43 -0
- package/dist/src/integrations/budget-pool.js.map +1 -1
- package/dist/src/integrations/codebase-ast.d.ts +52 -0
- package/dist/src/integrations/codebase-ast.d.ts.map +1 -0
- package/dist/src/integrations/codebase-ast.js +457 -0
- package/dist/src/integrations/codebase-ast.js.map +1 -0
- package/dist/src/integrations/codebase-context.d.ts +18 -0
- package/dist/src/integrations/codebase-context.d.ts.map +1 -1
- package/dist/src/integrations/codebase-context.js +197 -17
- package/dist/src/integrations/codebase-context.js.map +1 -1
- package/dist/src/integrations/compaction.d.ts.map +1 -1
- package/dist/src/integrations/compaction.js +14 -6
- package/dist/src/integrations/compaction.js.map +1 -1
- package/dist/src/integrations/context/auto-compaction.d.ts +210 -0
- package/dist/src/integrations/context/auto-compaction.d.ts.map +1 -0
- package/dist/src/integrations/context/auto-compaction.js +477 -0
- package/dist/src/integrations/context/auto-compaction.js.map +1 -0
- package/dist/src/integrations/context/code-analyzer.d.ts +71 -0
- package/dist/src/integrations/context/code-analyzer.d.ts.map +1 -0
- package/dist/src/integrations/context/code-analyzer.js +448 -0
- package/dist/src/integrations/context/code-analyzer.js.map +1 -0
- package/dist/src/integrations/context/code-selector.d.ts +78 -0
- package/dist/src/integrations/context/code-selector.d.ts.map +1 -0
- package/dist/src/integrations/context/code-selector.js +649 -0
- package/dist/src/integrations/context/code-selector.js.map +1 -0
- package/dist/src/integrations/context/codebase-ast.d.ts +138 -0
- package/dist/src/integrations/context/codebase-ast.d.ts.map +1 -0
- package/dist/src/integrations/context/codebase-ast.js +818 -0
- package/dist/src/integrations/context/codebase-ast.js.map +1 -0
- package/dist/src/integrations/context/codebase-context.d.ts +473 -0
- package/dist/src/integrations/context/codebase-context.d.ts.map +1 -0
- package/dist/src/integrations/context/codebase-context.js +685 -0
- package/dist/src/integrations/context/codebase-context.js.map +1 -0
- package/dist/src/integrations/context/compaction.d.ts +191 -0
- package/dist/src/integrations/context/compaction.d.ts.map +1 -0
- package/dist/src/integrations/context/compaction.js +384 -0
- package/dist/src/integrations/context/compaction.js.map +1 -0
- package/dist/src/integrations/context/context-engineering.d.ts +274 -0
- package/dist/src/integrations/context/context-engineering.d.ts.map +1 -0
- package/dist/src/integrations/context/context-engineering.js +437 -0
- package/dist/src/integrations/context/context-engineering.js.map +1 -0
- package/dist/src/integrations/context/file-cache.d.ts +97 -0
- package/dist/src/integrations/context/file-cache.d.ts.map +1 -0
- package/dist/src/integrations/context/file-cache.js +218 -0
- package/dist/src/integrations/context/file-cache.js.map +1 -0
- package/dist/src/integrations/context/semantic-cache.d.ts +178 -0
- package/dist/src/integrations/context/semantic-cache.d.ts.map +1 -0
- package/dist/src/integrations/context/semantic-cache.js +372 -0
- package/dist/src/integrations/context/semantic-cache.js.map +1 -0
- package/dist/src/integrations/context-engineering.d.ts +8 -0
- package/dist/src/integrations/context-engineering.d.ts.map +1 -1
- package/dist/src/integrations/context-engineering.js +19 -0
- package/dist/src/integrations/context-engineering.js.map +1 -1
- package/dist/src/integrations/economics.d.ts +25 -1
- package/dist/src/integrations/economics.d.ts.map +1 -1
- package/dist/src/integrations/economics.js +217 -38
- package/dist/src/integrations/economics.js.map +1 -1
- package/dist/src/integrations/edit-validator.d.ts +30 -0
- package/dist/src/integrations/edit-validator.d.ts.map +1 -0
- package/dist/src/integrations/edit-validator.js +85 -0
- package/dist/src/integrations/edit-validator.js.map +1 -0
- package/dist/src/integrations/file-cache.d.ts +7 -0
- package/dist/src/integrations/file-cache.d.ts.map +1 -1
- package/dist/src/integrations/file-cache.js +54 -0
- package/dist/src/integrations/file-cache.js.map +1 -1
- package/dist/src/integrations/health-check.d.ts.map +1 -1
- package/dist/src/integrations/health-check.js +3 -2
- package/dist/src/integrations/health-check.js.map +1 -1
- package/dist/src/integrations/hierarchical-config.d.ts +3 -0
- package/dist/src/integrations/hierarchical-config.d.ts.map +1 -1
- package/dist/src/integrations/hierarchical-config.js +3 -0
- package/dist/src/integrations/hierarchical-config.js.map +1 -1
- package/dist/src/integrations/hooks.d.ts +2 -0
- package/dist/src/integrations/hooks.d.ts.map +1 -1
- package/dist/src/integrations/hooks.js +99 -15
- package/dist/src/integrations/hooks.js.map +1 -1
- package/dist/src/integrations/index.d.ts +77 -66
- package/dist/src/integrations/index.d.ts.map +1 -1
- package/dist/src/integrations/index.js +83 -67
- package/dist/src/integrations/index.js.map +1 -1
- package/dist/src/integrations/logger.d.ts +104 -0
- package/dist/src/integrations/logger.d.ts.map +1 -0
- package/dist/src/integrations/logger.js +219 -0
- package/dist/src/integrations/logger.js.map +1 -0
- package/dist/src/integrations/lsp/lsp.d.ts +196 -0
- package/dist/src/integrations/lsp/lsp.d.ts.map +1 -0
- package/dist/src/integrations/lsp/lsp.js +583 -0
- package/dist/src/integrations/lsp/lsp.js.map +1 -0
- package/dist/src/integrations/lsp.d.ts.map +1 -1
- package/dist/src/integrations/lsp.js +5 -4
- package/dist/src/integrations/lsp.js.map +1 -1
- package/dist/src/integrations/mcp/mcp-client.d.ts +279 -0
- package/dist/src/integrations/mcp/mcp-client.d.ts.map +1 -0
- package/dist/src/integrations/mcp/mcp-client.js +755 -0
- package/dist/src/integrations/mcp/mcp-client.js.map +1 -0
- package/dist/src/integrations/mcp/mcp-custom-tools.d.ts +102 -0
- package/dist/src/integrations/mcp/mcp-custom-tools.d.ts.map +1 -0
- package/dist/src/integrations/mcp/mcp-custom-tools.js +232 -0
- package/dist/src/integrations/mcp/mcp-custom-tools.js.map +1 -0
- package/dist/src/integrations/mcp/mcp-tool-search.d.ts +77 -0
- package/dist/src/integrations/mcp/mcp-tool-search.d.ts.map +1 -0
- package/dist/src/integrations/mcp/mcp-tool-search.js +220 -0
- package/dist/src/integrations/mcp/mcp-tool-search.js.map +1 -0
- package/dist/src/integrations/mcp/mcp-tool-validator.d.ts +60 -0
- package/dist/src/integrations/mcp/mcp-tool-validator.d.ts.map +1 -0
- package/dist/src/integrations/mcp/mcp-tool-validator.js +141 -0
- package/dist/src/integrations/mcp/mcp-tool-validator.js.map +1 -0
- package/dist/src/integrations/mcp-client.d.ts.map +1 -1
- package/dist/src/integrations/mcp-client.js +8 -7
- package/dist/src/integrations/mcp-client.js.map +1 -1
- package/dist/src/integrations/observability.d.ts.map +1 -1
- package/dist/src/integrations/observability.js +5 -4
- package/dist/src/integrations/observability.js.map +1 -1
- package/dist/src/integrations/openrouter-pricing.d.ts.map +1 -1
- package/dist/src/integrations/openrouter-pricing.js +4 -3
- package/dist/src/integrations/openrouter-pricing.js.map +1 -1
- package/dist/src/integrations/persistence/codebase-repository.d.ts +45 -0
- package/dist/src/integrations/persistence/codebase-repository.d.ts.map +1 -0
- package/dist/src/integrations/persistence/codebase-repository.js +81 -0
- package/dist/src/integrations/persistence/codebase-repository.js.map +1 -0
- package/dist/src/integrations/persistence/goal-repository.d.ts +71 -0
- package/dist/src/integrations/persistence/goal-repository.d.ts.map +1 -0
- package/dist/src/integrations/persistence/goal-repository.js +184 -0
- package/dist/src/integrations/persistence/goal-repository.js.map +1 -0
- package/dist/src/integrations/persistence/history.d.ts +72 -0
- package/dist/src/integrations/persistence/history.d.ts.map +1 -0
- package/dist/src/integrations/persistence/history.js +165 -0
- package/dist/src/integrations/persistence/history.js.map +1 -0
- package/dist/src/integrations/persistence/persistence.d.ts +49 -0
- package/dist/src/integrations/persistence/persistence.d.ts.map +1 -0
- package/dist/src/integrations/persistence/persistence.js +197 -0
- package/dist/src/integrations/persistence/persistence.js.map +1 -0
- package/dist/src/integrations/persistence/session-repository.d.ts +212 -0
- package/dist/src/integrations/persistence/session-repository.d.ts.map +1 -0
- package/dist/src/integrations/persistence/session-repository.js +770 -0
- package/dist/src/integrations/persistence/session-repository.js.map +1 -0
- package/dist/src/integrations/persistence/session-store.d.ts +184 -0
- package/dist/src/integrations/persistence/session-store.d.ts.map +1 -0
- package/dist/src/integrations/persistence/session-store.js +346 -0
- package/dist/src/integrations/persistence/session-store.js.map +1 -0
- package/dist/src/integrations/persistence/sqlite-store.d.ts +453 -0
- package/dist/src/integrations/persistence/sqlite-store.d.ts.map +1 -0
- package/dist/src/integrations/persistence/sqlite-store.js +676 -0
- package/dist/src/integrations/persistence/sqlite-store.js.map +1 -0
- package/dist/src/integrations/persistence/worker-repository.d.ts +65 -0
- package/dist/src/integrations/persistence/worker-repository.d.ts.map +1 -0
- package/dist/src/integrations/persistence/worker-repository.js +183 -0
- package/dist/src/integrations/persistence/worker-repository.js.map +1 -0
- package/dist/src/integrations/persistence.d.ts.map +1 -1
- package/dist/src/integrations/persistence.js +5 -4
- package/dist/src/integrations/persistence.js.map +1 -1
- package/dist/src/integrations/planning.d.ts.map +1 -1
- package/dist/src/integrations/planning.js +5 -4
- package/dist/src/integrations/planning.js.map +1 -1
- package/dist/src/integrations/quality/auto-checkpoint.d.ts +98 -0
- package/dist/src/integrations/quality/auto-checkpoint.d.ts.map +1 -0
- package/dist/src/integrations/quality/auto-checkpoint.js +252 -0
- package/dist/src/integrations/quality/auto-checkpoint.js.map +1 -0
- package/dist/src/integrations/quality/dead-letter-queue.d.ts +233 -0
- package/dist/src/integrations/quality/dead-letter-queue.d.ts.map +1 -0
- package/dist/src/integrations/quality/dead-letter-queue.js +543 -0
- package/dist/src/integrations/quality/dead-letter-queue.js.map +1 -0
- package/dist/src/integrations/quality/health-check.d.ts +218 -0
- package/dist/src/integrations/quality/health-check.d.ts.map +1 -0
- package/dist/src/integrations/quality/health-check.js +415 -0
- package/dist/src/integrations/quality/health-check.js.map +1 -0
- package/dist/src/integrations/quality/learning-store.d.ts +291 -0
- package/dist/src/integrations/quality/learning-store.d.ts.map +1 -0
- package/dist/src/integrations/quality/learning-store.js +646 -0
- package/dist/src/integrations/quality/learning-store.js.map +1 -0
- package/dist/src/integrations/quality/self-improvement.d.ts +90 -0
- package/dist/src/integrations/quality/self-improvement.d.ts.map +1 -0
- package/dist/src/integrations/quality/self-improvement.js +229 -0
- package/dist/src/integrations/quality/self-improvement.js.map +1 -0
- package/dist/src/integrations/quality/tool-recommendation.d.ts +61 -0
- package/dist/src/integrations/quality/tool-recommendation.d.ts.map +1 -0
- package/dist/src/integrations/quality/tool-recommendation.js +268 -0
- package/dist/src/integrations/quality/tool-recommendation.js.map +1 -0
- package/dist/src/integrations/retry.d.ts +1 -0
- package/dist/src/integrations/retry.d.ts.map +1 -1
- package/dist/src/integrations/retry.js.map +1 -1
- package/dist/src/integrations/routing.d.ts.map +1 -1
- package/dist/src/integrations/routing.js +2 -1
- package/dist/src/integrations/routing.js.map +1 -1
- package/dist/src/integrations/safety/bash-policy.d.ts +33 -0
- package/dist/src/integrations/safety/bash-policy.d.ts.map +1 -0
- package/dist/src/integrations/safety/bash-policy.js +144 -0
- package/dist/src/integrations/safety/bash-policy.js.map +1 -0
- package/dist/src/integrations/safety/edit-validator.d.ts +30 -0
- package/dist/src/integrations/safety/edit-validator.d.ts.map +1 -0
- package/dist/src/integrations/safety/edit-validator.js +87 -0
- package/dist/src/integrations/safety/edit-validator.js.map +1 -0
- package/dist/src/integrations/safety/execution-policy.d.ts +189 -0
- package/dist/src/integrations/safety/execution-policy.d.ts.map +1 -0
- package/dist/src/integrations/safety/execution-policy.js +352 -0
- package/dist/src/integrations/safety/execution-policy.js.map +1 -0
- package/dist/src/integrations/safety/policy-engine.d.ts +55 -0
- package/dist/src/integrations/safety/policy-engine.d.ts.map +1 -0
- package/dist/src/integrations/safety/policy-engine.js +247 -0
- package/dist/src/integrations/safety/policy-engine.js.map +1 -0
- package/dist/src/integrations/safety/safety.d.ts +174 -0
- package/dist/src/integrations/safety/safety.d.ts.map +1 -0
- package/dist/src/integrations/safety/safety.js +470 -0
- package/dist/src/integrations/safety/safety.js.map +1 -0
- package/dist/src/integrations/safety/sandbox/basic.d.ts +81 -0
- package/dist/src/integrations/safety/sandbox/basic.d.ts.map +1 -0
- package/dist/src/integrations/safety/sandbox/basic.js +335 -0
- package/dist/src/integrations/safety/sandbox/basic.js.map +1 -0
- package/dist/src/integrations/safety/sandbox/docker.d.ts +94 -0
- package/dist/src/integrations/safety/sandbox/docker.d.ts.map +1 -0
- package/dist/src/integrations/safety/sandbox/docker.js +294 -0
- package/dist/src/integrations/safety/sandbox/docker.js.map +1 -0
- package/dist/src/integrations/safety/sandbox/index.d.ts +188 -0
- package/dist/src/integrations/safety/sandbox/index.d.ts.map +1 -0
- package/dist/src/integrations/safety/sandbox/index.js +386 -0
- package/dist/src/integrations/safety/sandbox/index.js.map +1 -0
- package/dist/src/integrations/safety/sandbox/landlock.d.ts +59 -0
- package/dist/src/integrations/safety/sandbox/landlock.d.ts.map +1 -0
- package/dist/src/integrations/safety/sandbox/landlock.js +329 -0
- package/dist/src/integrations/safety/sandbox/landlock.js.map +1 -0
- package/dist/src/integrations/safety/sandbox/seatbelt.d.ts +68 -0
- package/dist/src/integrations/safety/sandbox/seatbelt.d.ts.map +1 -0
- package/dist/src/integrations/safety/sandbox/seatbelt.js +298 -0
- package/dist/src/integrations/safety/sandbox/seatbelt.js.map +1 -0
- package/dist/src/integrations/safety/type-checker.d.ts +53 -0
- package/dist/src/integrations/safety/type-checker.d.ts.map +1 -0
- package/dist/src/integrations/safety/type-checker.js +142 -0
- package/dist/src/integrations/safety/type-checker.js.map +1 -0
- package/dist/src/integrations/safety.d.ts.map +1 -1
- package/dist/src/integrations/safety.js +13 -13
- package/dist/src/integrations/safety.js.map +1 -1
- package/dist/src/integrations/sandbox/docker.d.ts.map +1 -1
- package/dist/src/integrations/sandbox/docker.js +2 -1
- package/dist/src/integrations/sandbox/docker.js.map +1 -1
- package/dist/src/integrations/sandbox/index.d.ts.map +1 -1
- package/dist/src/integrations/sandbox/index.js +5 -4
- package/dist/src/integrations/sandbox/index.js.map +1 -1
- package/dist/src/integrations/session-store.d.ts +1 -0
- package/dist/src/integrations/session-store.d.ts.map +1 -1
- package/dist/src/integrations/session-store.js +1 -0
- package/dist/src/integrations/session-store.js.map +1 -1
- package/dist/src/integrations/shared-blackboard.d.ts +3 -0
- package/dist/src/integrations/shared-blackboard.d.ts.map +1 -1
- package/dist/src/integrations/shared-blackboard.js +47 -0
- package/dist/src/integrations/shared-blackboard.js.map +1 -1
- package/dist/src/integrations/skills/skill-executor.d.ts +113 -0
- package/dist/src/integrations/skills/skill-executor.d.ts.map +1 -0
- package/dist/src/integrations/skills/skill-executor.js +270 -0
- package/dist/src/integrations/skills/skill-executor.js.map +1 -0
- package/dist/src/integrations/skills/skills.d.ts +262 -0
- package/dist/src/integrations/skills/skills.d.ts.map +1 -0
- package/dist/src/integrations/skills/skills.js +602 -0
- package/dist/src/integrations/skills/skills.js.map +1 -0
- package/dist/src/integrations/smart-decomposer.d.ts +27 -0
- package/dist/src/integrations/smart-decomposer.d.ts.map +1 -1
- package/dist/src/integrations/smart-decomposer.js +414 -30
- package/dist/src/integrations/smart-decomposer.js.map +1 -1
- package/dist/src/integrations/sqlite-store.d.ts +2 -0
- package/dist/src/integrations/sqlite-store.d.ts.map +1 -1
- package/dist/src/integrations/sqlite-store.js +18 -6
- package/dist/src/integrations/sqlite-store.js.map +1 -1
- package/dist/src/integrations/streaming/pty-shell.d.ts +169 -0
- package/dist/src/integrations/streaming/pty-shell.d.ts.map +1 -0
- package/dist/src/integrations/streaming/pty-shell.js +367 -0
- package/dist/src/integrations/streaming/pty-shell.js.map +1 -0
- package/dist/src/integrations/streaming/streaming.d.ts +102 -0
- package/dist/src/integrations/streaming/streaming.d.ts.map +1 -0
- package/dist/src/integrations/streaming/streaming.js +362 -0
- package/dist/src/integrations/streaming/streaming.js.map +1 -0
- package/dist/src/integrations/swarm/failure-classifier.d.ts +11 -0
- package/dist/src/integrations/swarm/failure-classifier.d.ts.map +1 -0
- package/dist/src/integrations/swarm/failure-classifier.js +95 -0
- package/dist/src/integrations/swarm/failure-classifier.js.map +1 -0
- package/dist/src/integrations/swarm/index.d.ts +2 -1
- package/dist/src/integrations/swarm/index.d.ts.map +1 -1
- package/dist/src/integrations/swarm/index.js +2 -0
- package/dist/src/integrations/swarm/index.js.map +1 -1
- package/dist/src/integrations/swarm/model-selector.d.ts.map +1 -1
- package/dist/src/integrations/swarm/model-selector.js +2 -1
- package/dist/src/integrations/swarm/model-selector.js.map +1 -1
- package/dist/src/integrations/swarm/swarm-budget.d.ts +1 -1
- package/dist/src/integrations/swarm/swarm-budget.d.ts.map +1 -1
- package/dist/src/integrations/swarm/swarm-budget.js +1 -1
- package/dist/src/integrations/swarm/swarm-budget.js.map +1 -1
- package/dist/src/integrations/swarm/swarm-config-loader.d.ts +8 -0
- package/dist/src/integrations/swarm/swarm-config-loader.d.ts.map +1 -1
- package/dist/src/integrations/swarm/swarm-config-loader.js +102 -0
- package/dist/src/integrations/swarm/swarm-config-loader.js.map +1 -1
- package/dist/src/integrations/swarm/swarm-event-bridge.d.ts +74 -0
- package/dist/src/integrations/swarm/swarm-event-bridge.d.ts.map +1 -1
- package/dist/src/integrations/swarm/swarm-event-bridge.js +37 -0
- package/dist/src/integrations/swarm/swarm-event-bridge.js.map +1 -1
- package/dist/src/integrations/swarm/swarm-events.d.ts +4 -1
- package/dist/src/integrations/swarm/swarm-events.d.ts.map +1 -1
- package/dist/src/integrations/swarm/swarm-events.js +1 -1
- package/dist/src/integrations/swarm/swarm-events.js.map +1 -1
- package/dist/src/integrations/swarm/swarm-execution.d.ts +27 -0
- package/dist/src/integrations/swarm/swarm-execution.d.ts.map +1 -0
- package/dist/src/integrations/swarm/swarm-execution.js +1021 -0
- package/dist/src/integrations/swarm/swarm-execution.js.map +1 -0
- package/dist/src/integrations/swarm/swarm-helpers.d.ts +26 -0
- package/dist/src/integrations/swarm/swarm-helpers.d.ts.map +1 -0
- package/dist/src/integrations/swarm/swarm-helpers.js +95 -0
- package/dist/src/integrations/swarm/swarm-helpers.js.map +1 -0
- package/dist/src/integrations/swarm/swarm-lifecycle.d.ts +100 -0
- package/dist/src/integrations/swarm/swarm-lifecycle.d.ts.map +1 -0
- package/dist/src/integrations/swarm/swarm-lifecycle.js +922 -0
- package/dist/src/integrations/swarm/swarm-lifecycle.js.map +1 -0
- package/dist/src/integrations/swarm/swarm-orchestrator.d.ts +96 -192
- package/dist/src/integrations/swarm/swarm-orchestrator.d.ts.map +1 -1
- package/dist/src/integrations/swarm/swarm-orchestrator.js +384 -2528
- package/dist/src/integrations/swarm/swarm-orchestrator.js.map +1 -1
- package/dist/src/integrations/swarm/swarm-quality-gate.js +1 -1
- package/dist/src/integrations/swarm/swarm-quality-gate.js.map +1 -1
- package/dist/src/integrations/swarm/swarm-recovery.d.ts +75 -0
- package/dist/src/integrations/swarm/swarm-recovery.d.ts.map +1 -0
- package/dist/src/integrations/swarm/swarm-recovery.js +550 -0
- package/dist/src/integrations/swarm/swarm-recovery.js.map +1 -0
- package/dist/src/integrations/swarm/swarm-state-store.d.ts +4 -1
- package/dist/src/integrations/swarm/swarm-state-store.d.ts.map +1 -1
- package/dist/src/integrations/swarm/swarm-state-store.js +14 -1
- package/dist/src/integrations/swarm/swarm-state-store.js.map +1 -1
- package/dist/src/integrations/swarm/task-queue.d.ts +11 -1
- package/dist/src/integrations/swarm/task-queue.d.ts.map +1 -1
- package/dist/src/integrations/swarm/task-queue.js +64 -2
- package/dist/src/integrations/swarm/task-queue.js.map +1 -1
- package/dist/src/integrations/swarm/types.d.ts +57 -4
- package/dist/src/integrations/swarm/types.d.ts.map +1 -1
- package/dist/src/integrations/swarm/types.js +9 -0
- package/dist/src/integrations/swarm/types.js.map +1 -1
- package/dist/src/integrations/swarm/worker-pool.d.ts +13 -3
- package/dist/src/integrations/swarm/worker-pool.d.ts.map +1 -1
- package/dist/src/integrations/swarm/worker-pool.js +66 -13
- package/dist/src/integrations/swarm/worker-pool.js.map +1 -1
- package/dist/src/integrations/task-manager.d.ts +33 -1
- package/dist/src/integrations/task-manager.d.ts.map +1 -1
- package/dist/src/integrations/task-manager.js +78 -4
- package/dist/src/integrations/task-manager.js.map +1 -1
- package/dist/src/integrations/tasks/dependency-analyzer.d.ts +34 -0
- package/dist/src/integrations/tasks/dependency-analyzer.d.ts.map +1 -0
- package/dist/src/integrations/tasks/dependency-analyzer.js +232 -0
- package/dist/src/integrations/tasks/dependency-analyzer.js.map +1 -0
- package/dist/src/integrations/tasks/interactive-planning.d.ts +322 -0
- package/dist/src/integrations/tasks/interactive-planning.d.ts.map +1 -0
- package/dist/src/integrations/tasks/interactive-planning.js +655 -0
- package/dist/src/integrations/tasks/interactive-planning.js.map +1 -0
- package/dist/src/integrations/tasks/pending-plan.d.ts +196 -0
- package/dist/src/integrations/tasks/pending-plan.d.ts.map +1 -0
- package/dist/src/integrations/tasks/pending-plan.js +431 -0
- package/dist/src/integrations/tasks/pending-plan.js.map +1 -0
- package/dist/src/integrations/tasks/planning.d.ts +115 -0
- package/dist/src/integrations/tasks/planning.d.ts.map +1 -0
- package/dist/src/integrations/tasks/planning.js +413 -0
- package/dist/src/integrations/tasks/planning.js.map +1 -0
- package/dist/src/integrations/tasks/smart-decomposer.d.ts +316 -0
- package/dist/src/integrations/tasks/smart-decomposer.d.ts.map +1 -0
- package/dist/src/integrations/tasks/smart-decomposer.js +661 -0
- package/dist/src/integrations/tasks/smart-decomposer.js.map +1 -0
- package/dist/src/integrations/tasks/task-manager.d.ts +164 -0
- package/dist/src/integrations/tasks/task-manager.d.ts.map +1 -0
- package/dist/src/integrations/tasks/task-manager.js +383 -0
- package/dist/src/integrations/tasks/task-manager.js.map +1 -0
- package/dist/src/integrations/tasks/task-splitter.d.ts +56 -0
- package/dist/src/integrations/tasks/task-splitter.d.ts.map +1 -0
- package/dist/src/integrations/tasks/task-splitter.js +537 -0
- package/dist/src/integrations/tasks/task-splitter.js.map +1 -0
- package/dist/src/integrations/tasks/verification-gate.d.ts +103 -0
- package/dist/src/integrations/tasks/verification-gate.d.ts.map +1 -0
- package/dist/src/integrations/tasks/verification-gate.js +193 -0
- package/dist/src/integrations/tasks/verification-gate.js.map +1 -0
- package/dist/src/integrations/tasks/work-log.d.ts +87 -0
- package/dist/src/integrations/tasks/work-log.d.ts.map +1 -0
- package/dist/src/integrations/tasks/work-log.js +275 -0
- package/dist/src/integrations/tasks/work-log.js.map +1 -0
- package/dist/src/integrations/utilities/capabilities.d.ts +160 -0
- package/dist/src/integrations/utilities/capabilities.d.ts.map +1 -0
- package/dist/src/integrations/utilities/capabilities.js +426 -0
- package/dist/src/integrations/utilities/capabilities.js.map +1 -0
- package/dist/src/integrations/utilities/diff-utils.d.ts +105 -0
- package/dist/src/integrations/utilities/diff-utils.d.ts.map +1 -0
- package/dist/src/integrations/utilities/diff-utils.js +497 -0
- package/dist/src/integrations/utilities/diff-utils.js.map +1 -0
- package/dist/src/integrations/utilities/environment-facts.d.ts +52 -0
- package/dist/src/integrations/utilities/environment-facts.d.ts.map +1 -0
- package/dist/src/integrations/utilities/environment-facts.js +84 -0
- package/dist/src/integrations/utilities/environment-facts.js.map +1 -0
- package/dist/src/integrations/utilities/file-change-tracker.d.ts +162 -0
- package/dist/src/integrations/utilities/file-change-tracker.d.ts.map +1 -0
- package/dist/src/integrations/utilities/file-change-tracker.js +538 -0
- package/dist/src/integrations/utilities/file-change-tracker.js.map +1 -0
- package/dist/src/integrations/utilities/graph-visualization.d.ts +72 -0
- package/dist/src/integrations/utilities/graph-visualization.d.ts.map +1 -0
- package/dist/src/integrations/utilities/graph-visualization.js +383 -0
- package/dist/src/integrations/utilities/graph-visualization.js.map +1 -0
- package/dist/src/integrations/utilities/hierarchical-config.d.ts +215 -0
- package/dist/src/integrations/utilities/hierarchical-config.d.ts.map +1 -0
- package/dist/src/integrations/utilities/hierarchical-config.js +504 -0
- package/dist/src/integrations/utilities/hierarchical-config.js.map +1 -0
- package/dist/src/integrations/utilities/hooks.d.ts +116 -0
- package/dist/src/integrations/utilities/hooks.d.ts.map +1 -0
- package/dist/src/integrations/utilities/hooks.js +410 -0
- package/dist/src/integrations/utilities/hooks.js.map +1 -0
- package/dist/src/integrations/utilities/ignore.d.ts +143 -0
- package/dist/src/integrations/utilities/ignore.d.ts.map +1 -0
- package/dist/src/integrations/utilities/ignore.js +417 -0
- package/dist/src/integrations/utilities/ignore.js.map +1 -0
- package/dist/src/integrations/utilities/image-renderer.d.ts +119 -0
- package/dist/src/integrations/utilities/image-renderer.d.ts.map +1 -0
- package/dist/src/integrations/utilities/image-renderer.js +306 -0
- package/dist/src/integrations/utilities/image-renderer.js.map +1 -0
- package/dist/src/integrations/utilities/logger.d.ts +104 -0
- package/dist/src/integrations/utilities/logger.d.ts.map +1 -0
- package/dist/src/integrations/utilities/logger.js +219 -0
- package/dist/src/integrations/utilities/logger.js.map +1 -0
- package/dist/src/integrations/utilities/memory.d.ts +116 -0
- package/dist/src/integrations/utilities/memory.d.ts.map +1 -0
- package/dist/src/integrations/utilities/memory.js +311 -0
- package/dist/src/integrations/utilities/memory.js.map +1 -0
- package/dist/src/integrations/utilities/observability.d.ts +162 -0
- package/dist/src/integrations/utilities/observability.d.ts.map +1 -0
- package/dist/src/integrations/utilities/observability.js +407 -0
- package/dist/src/integrations/utilities/observability.js.map +1 -0
- package/dist/src/integrations/utilities/openrouter-pricing.d.ts +67 -0
- package/dist/src/integrations/utilities/openrouter-pricing.d.ts.map +1 -0
- package/dist/src/integrations/utilities/openrouter-pricing.js +166 -0
- package/dist/src/integrations/utilities/openrouter-pricing.js.map +1 -0
- package/dist/src/integrations/utilities/react.d.ts +139 -0
- package/dist/src/integrations/utilities/react.d.ts.map +1 -0
- package/dist/src/integrations/utilities/react.js +273 -0
- package/dist/src/integrations/utilities/react.js.map +1 -0
- package/dist/src/integrations/utilities/retry.d.ts +132 -0
- package/dist/src/integrations/utilities/retry.d.ts.map +1 -0
- package/dist/src/integrations/utilities/retry.js +233 -0
- package/dist/src/integrations/utilities/retry.js.map +1 -0
- package/dist/src/integrations/utilities/routing.d.ts +118 -0
- package/dist/src/integrations/utilities/routing.d.ts.map +1 -0
- package/dist/src/integrations/utilities/routing.js +348 -0
- package/dist/src/integrations/utilities/routing.js.map +1 -0
- package/dist/src/integrations/utilities/rules.d.ts +131 -0
- package/dist/src/integrations/utilities/rules.d.ts.map +1 -0
- package/dist/src/integrations/utilities/rules.js +284 -0
- package/dist/src/integrations/utilities/rules.js.map +1 -0
- package/dist/src/integrations/utilities/sourcegraph.d.ts +169 -0
- package/dist/src/integrations/utilities/sourcegraph.d.ts.map +1 -0
- package/dist/src/integrations/utilities/sourcegraph.js +379 -0
- package/dist/src/integrations/utilities/sourcegraph.js.map +1 -0
- package/dist/src/integrations/utilities/thinking-strategy.d.ts +52 -0
- package/dist/src/integrations/utilities/thinking-strategy.d.ts.map +1 -0
- package/dist/src/integrations/utilities/thinking-strategy.js +129 -0
- package/dist/src/integrations/utilities/thinking-strategy.js.map +1 -0
- package/dist/src/integrations/utilities/thread-manager.d.ts +199 -0
- package/dist/src/integrations/utilities/thread-manager.d.ts.map +1 -0
- package/dist/src/integrations/utilities/thread-manager.js +357 -0
- package/dist/src/integrations/utilities/thread-manager.js.map +1 -0
- package/dist/src/integrations/utilities/token-estimate.d.ts +11 -0
- package/dist/src/integrations/utilities/token-estimate.d.ts.map +1 -0
- package/dist/src/integrations/utilities/token-estimate.js +14 -0
- package/dist/src/integrations/utilities/token-estimate.js.map +1 -0
- package/dist/src/main.js +92 -35
- package/dist/src/main.js.map +1 -1
- package/dist/src/modes/repl.d.ts.map +1 -1
- package/dist/src/modes/repl.js +60 -11
- package/dist/src/modes/repl.js.map +1 -1
- package/dist/src/modes/tui.d.ts.map +1 -1
- package/dist/src/modes/tui.js +57 -10
- package/dist/src/modes/tui.js.map +1 -1
- package/dist/src/modes.js +1 -1
- package/dist/src/modes.js.map +1 -1
- package/dist/src/observability/tracer.d.ts.map +1 -1
- package/dist/src/observability/tracer.js +2 -1
- package/dist/src/observability/tracer.js.map +1 -1
- package/dist/src/persistence/schema.d.ts +2 -0
- package/dist/src/persistence/schema.d.ts.map +1 -1
- package/dist/src/persistence/schema.js +42 -0
- package/dist/src/persistence/schema.js.map +1 -1
- package/dist/src/providers/adapters/anthropic.d.ts +6 -0
- package/dist/src/providers/adapters/anthropic.d.ts.map +1 -1
- package/dist/src/providers/adapters/anthropic.js +101 -16
- package/dist/src/providers/adapters/anthropic.js.map +1 -1
- package/dist/src/providers/adapters/azure.d.ts +74 -0
- package/dist/src/providers/adapters/azure.d.ts.map +1 -0
- package/dist/src/providers/adapters/azure.js +354 -0
- package/dist/src/providers/adapters/azure.js.map +1 -0
- package/dist/src/providers/adapters/mock.d.ts +16 -2
- package/dist/src/providers/adapters/mock.d.ts.map +1 -1
- package/dist/src/providers/adapters/mock.js +44 -3
- package/dist/src/providers/adapters/mock.js.map +1 -1
- package/dist/src/providers/adapters/openai.d.ts +6 -1
- package/dist/src/providers/adapters/openai.d.ts.map +1 -1
- package/dist/src/providers/adapters/openai.js +41 -9
- package/dist/src/providers/adapters/openai.js.map +1 -1
- package/dist/src/providers/adapters/openrouter.d.ts +6 -0
- package/dist/src/providers/adapters/openrouter.d.ts.map +1 -1
- package/dist/src/providers/adapters/openrouter.js +83 -13
- package/dist/src/providers/adapters/openrouter.js.map +1 -1
- package/dist/src/providers/circuit-breaker.d.ts +1 -0
- package/dist/src/providers/circuit-breaker.d.ts.map +1 -1
- package/dist/src/providers/circuit-breaker.js.map +1 -1
- package/dist/src/providers/provider.d.ts.map +1 -1
- package/dist/src/providers/provider.js +2 -1
- package/dist/src/providers/provider.js.map +1 -1
- package/dist/src/providers/resilient-provider.d.ts.map +1 -1
- package/dist/src/providers/resilient-provider.js +2 -1
- package/dist/src/providers/resilient-provider.js.map +1 -1
- package/dist/src/providers/types.d.ts +23 -2
- package/dist/src/providers/types.d.ts.map +1 -1
- package/dist/src/session-picker.d.ts +1 -1
- package/dist/src/session-picker.d.ts.map +1 -1
- package/dist/src/session-picker.js +40 -5
- package/dist/src/session-picker.js.map +1 -1
- package/dist/src/shared/budget-tracker.d.ts +65 -0
- package/dist/src/shared/budget-tracker.d.ts.map +1 -0
- package/dist/src/shared/budget-tracker.js +128 -0
- package/dist/src/shared/budget-tracker.js.map +1 -0
- package/dist/src/shared/context-engine.d.ts +64 -0
- package/dist/src/shared/context-engine.d.ts.map +1 -0
- package/dist/src/shared/context-engine.js +117 -0
- package/dist/src/shared/context-engine.js.map +1 -0
- package/dist/src/shared/index.d.ts +12 -0
- package/dist/src/shared/index.d.ts.map +1 -0
- package/dist/src/shared/index.js +12 -0
- package/dist/src/shared/index.js.map +1 -0
- package/dist/src/shared/persistence.d.ts +57 -0
- package/dist/src/shared/persistence.d.ts.map +1 -0
- package/dist/src/shared/persistence.js +168 -0
- package/dist/src/shared/persistence.js.map +1 -0
- package/dist/src/shared/shared-context-state.d.ts +89 -0
- package/dist/src/shared/shared-context-state.d.ts.map +1 -0
- package/dist/src/shared/shared-context-state.js +175 -0
- package/dist/src/shared/shared-context-state.js.map +1 -0
- package/dist/src/shared/shared-economics-state.d.ts +61 -0
- package/dist/src/shared/shared-economics-state.d.ts.map +1 -0
- package/dist/src/shared/shared-economics-state.js +100 -0
- package/dist/src/shared/shared-economics-state.js.map +1 -0
- package/dist/src/tools/agent.d.ts +1 -1
- package/dist/src/tools/agent.d.ts.map +1 -1
- package/dist/src/tools/bash.d.ts +3 -3
- package/dist/src/tools/bash.d.ts.map +1 -1
- package/dist/src/tools/bash.js +2 -1
- package/dist/src/tools/bash.js.map +1 -1
- package/dist/src/tools/file.d.ts +3 -3
- package/dist/src/tools/file.js +1 -1
- package/dist/src/tools/file.js.map +1 -1
- package/dist/src/tools/permission.d.ts.map +1 -1
- package/dist/src/tools/permission.js +7 -6
- package/dist/src/tools/permission.js.map +1 -1
- package/dist/src/tools/registry.d.ts +1 -1
- package/dist/src/tools/registry.d.ts.map +1 -1
- package/dist/src/tools/registry.js +1 -1
- package/dist/src/tools/registry.js.map +1 -1
- package/dist/src/tools/tasks.d.ts +1 -1
- package/dist/src/tools/tasks.d.ts.map +1 -1
- package/dist/src/tools/types.d.ts +1 -0
- package/dist/src/tools/types.d.ts.map +1 -1
- package/dist/src/tools/types.js.map +1 -1
- package/dist/src/tools/undo.d.ts +1 -1
- package/dist/src/tools/undo.d.ts.map +1 -1
- package/dist/src/tracing/cache-boundary-tracker.d.ts.map +1 -1
- package/dist/src/tracing/cache-boundary-tracker.js +2 -2
- package/dist/src/tracing/cache-boundary-tracker.js.map +1 -1
- package/dist/src/tracing/trace-collector.d.ts +147 -0
- package/dist/src/tracing/trace-collector.d.ts.map +1 -1
- package/dist/src/tracing/trace-collector.js +138 -7
- package/dist/src/tracing/trace-collector.js.map +1 -1
- package/dist/src/tracing/types.d.ts +112 -1
- package/dist/src/tracing/types.d.ts.map +1 -1
- package/dist/src/tracing/types.js.map +1 -1
- package/dist/src/tricks/failure-evidence.d.ts.map +1 -1
- package/dist/src/tricks/failure-evidence.js +2 -1
- package/dist/src/tricks/failure-evidence.js.map +1 -1
- package/dist/src/tricks/recitation.d.ts.map +1 -1
- package/dist/src/tricks/recitation.js +2 -1
- package/dist/src/tricks/recitation.js.map +1 -1
- package/dist/src/tricks/recursive-context.d.ts.map +1 -1
- package/dist/src/tricks/recursive-context.js +2 -2
- package/dist/src/tricks/recursive-context.js.map +1 -1
- package/dist/src/tricks/reversible-compaction.d.ts.map +1 -1
- package/dist/src/tricks/reversible-compaction.js +6 -2
- package/dist/src/tricks/reversible-compaction.js.map +1 -1
- package/dist/src/tui/app.d.ts +16 -3
- package/dist/src/tui/app.d.ts.map +1 -1
- package/dist/src/tui/app.js +211 -25
- package/dist/src/tui/app.js.map +1 -1
- package/dist/src/tui/components/CollapsibleDiffView.d.ts +1 -1
- package/dist/src/tui/components/CollapsibleDiffView.d.ts.map +1 -1
- package/dist/src/tui/components/DiagnosticsPanel.d.ts +24 -0
- package/dist/src/tui/components/DiagnosticsPanel.d.ts.map +1 -0
- package/dist/src/tui/components/DiagnosticsPanel.js +47 -0
- package/dist/src/tui/components/DiagnosticsPanel.js.map +1 -0
- package/dist/src/tui/components/DiffView.d.ts +1 -1
- package/dist/src/tui/components/DiffView.d.ts.map +1 -1
- package/dist/src/tui/components/ErrorBoundary.d.ts.map +1 -1
- package/dist/src/tui/components/ErrorBoundary.js +3 -2
- package/dist/src/tui/components/ErrorBoundary.js.map +1 -1
- package/dist/src/tui/components/TasksPanel.d.ts +1 -1
- package/dist/src/tui/components/TasksPanel.d.ts.map +1 -1
- package/dist/src/tui/event-display.d.ts.map +1 -1
- package/dist/src/tui/event-display.js +36 -62
- package/dist/src/tui/event-display.js.map +1 -1
- package/dist/src/tui/index.d.ts +4 -0
- package/dist/src/tui/index.d.ts.map +1 -1
- package/dist/src/tui/index.js +17 -0
- package/dist/src/tui/index.js.map +1 -1
- package/dist/src/tui/transparency-aggregator.d.ts +13 -0
- package/dist/src/tui/transparency-aggregator.d.ts.map +1 -1
- package/dist/src/tui/transparency-aggregator.js +21 -0
- package/dist/src/tui/transparency-aggregator.js.map +1 -1
- package/dist/src/types.d.ts +170 -3
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +18 -3
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capabilities Registry
|
|
3
|
+
*
|
|
4
|
+
* Unified view of all agent capabilities: tools, skills, agents, MCP tools, and commands.
|
|
5
|
+
* Enables discovery through /powers command and semantic search.
|
|
6
|
+
*/
|
|
7
|
+
import type { ToolDefinition } from '../../types.js';
|
|
8
|
+
import type { SkillManager } from '../skills/skills.js';
|
|
9
|
+
import type { AgentRegistry } from '../agents/agent-registry.js';
|
|
10
|
+
import type { MCPClient } from '../mcp/mcp-client.js';
|
|
11
|
+
/**
|
|
12
|
+
* Capability types in the system.
|
|
13
|
+
*/
|
|
14
|
+
export type CapabilityType = 'tool' | 'skill' | 'agent' | 'mcp_tool' | 'command';
|
|
15
|
+
/**
|
|
16
|
+
* A capability represents any action the agent can perform.
|
|
17
|
+
*/
|
|
18
|
+
export interface Capability {
|
|
19
|
+
/** Unique identifier (e.g., "tool:read_file", "skill:review") */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Display name */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Type of capability */
|
|
24
|
+
type: CapabilityType;
|
|
25
|
+
/** Human-readable description */
|
|
26
|
+
description: string;
|
|
27
|
+
/** Whether this capability is currently active/available */
|
|
28
|
+
active: boolean;
|
|
29
|
+
/** Source of the capability (e.g., "built-in", "mcp:github", "skills/review.md") */
|
|
30
|
+
source: string;
|
|
31
|
+
/** Tags for discovery */
|
|
32
|
+
tags: string[];
|
|
33
|
+
/** Additional metadata */
|
|
34
|
+
metadata?: Record<string, unknown>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Search result with relevance score.
|
|
38
|
+
*/
|
|
39
|
+
export interface CapabilitySearchResult {
|
|
40
|
+
capability: Capability;
|
|
41
|
+
score: number;
|
|
42
|
+
matches: string[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Counts by capability type.
|
|
46
|
+
*/
|
|
47
|
+
export interface CapabilityCounts {
|
|
48
|
+
total: number;
|
|
49
|
+
active: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Command definition for discovery.
|
|
53
|
+
*/
|
|
54
|
+
export interface CommandDefinition {
|
|
55
|
+
name: string;
|
|
56
|
+
description: string;
|
|
57
|
+
category?: string;
|
|
58
|
+
aliases?: string[];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Registry event types.
|
|
62
|
+
*/
|
|
63
|
+
export type CapabilitiesEvent = {
|
|
64
|
+
type: 'capability.added';
|
|
65
|
+
capability: Capability;
|
|
66
|
+
} | {
|
|
67
|
+
type: 'capability.removed';
|
|
68
|
+
id: string;
|
|
69
|
+
} | {
|
|
70
|
+
type: 'capability.updated';
|
|
71
|
+
capability: Capability;
|
|
72
|
+
} | {
|
|
73
|
+
type: 'registry.refreshed';
|
|
74
|
+
counts: Record<CapabilityType, CapabilityCounts>;
|
|
75
|
+
};
|
|
76
|
+
export type CapabilitiesEventListener = (event: CapabilitiesEvent) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Unified registry for all agent capabilities.
|
|
79
|
+
*/
|
|
80
|
+
export declare class CapabilitiesRegistry {
|
|
81
|
+
private capabilities;
|
|
82
|
+
private eventListeners;
|
|
83
|
+
private toolRegistry?;
|
|
84
|
+
private skillManager?;
|
|
85
|
+
private agentRegistry?;
|
|
86
|
+
private mcpClient?;
|
|
87
|
+
/**
|
|
88
|
+
* Register the tool registry as a capability source.
|
|
89
|
+
*/
|
|
90
|
+
registerToolRegistry(registry: {
|
|
91
|
+
getTools(): ToolDefinition[];
|
|
92
|
+
}): void;
|
|
93
|
+
/**
|
|
94
|
+
* Register the skill manager as a capability source.
|
|
95
|
+
*/
|
|
96
|
+
registerSkillManager(manager: SkillManager): void;
|
|
97
|
+
/**
|
|
98
|
+
* Register the agent registry as a capability source.
|
|
99
|
+
*/
|
|
100
|
+
registerAgentRegistry(registry: AgentRegistry): void;
|
|
101
|
+
/**
|
|
102
|
+
* Register the MCP client as a capability source.
|
|
103
|
+
*/
|
|
104
|
+
registerMCPClient(client: MCPClient): void;
|
|
105
|
+
/**
|
|
106
|
+
* Refresh all capabilities from registered sources.
|
|
107
|
+
*/
|
|
108
|
+
refresh(): void;
|
|
109
|
+
private refreshTools;
|
|
110
|
+
private refreshSkills;
|
|
111
|
+
private refreshAgents;
|
|
112
|
+
private refreshMCPTools;
|
|
113
|
+
private refreshCommands;
|
|
114
|
+
/**
|
|
115
|
+
* Extract tags from description text.
|
|
116
|
+
*/
|
|
117
|
+
private extractTags;
|
|
118
|
+
/**
|
|
119
|
+
* Get all capabilities.
|
|
120
|
+
*/
|
|
121
|
+
getAll(): Capability[];
|
|
122
|
+
/**
|
|
123
|
+
* Get capabilities by type.
|
|
124
|
+
*/
|
|
125
|
+
getByType(type: CapabilityType): Capability[];
|
|
126
|
+
/**
|
|
127
|
+
* Search capabilities by query.
|
|
128
|
+
*/
|
|
129
|
+
search(query: string): CapabilitySearchResult[];
|
|
130
|
+
/**
|
|
131
|
+
* Get counts by type.
|
|
132
|
+
*/
|
|
133
|
+
getCounts(): Record<CapabilityType, CapabilityCounts>;
|
|
134
|
+
/**
|
|
135
|
+
* Get a specific capability by ID.
|
|
136
|
+
*/
|
|
137
|
+
get(id: string): Capability | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Subscribe to registry events.
|
|
140
|
+
*/
|
|
141
|
+
subscribe(listener: CapabilitiesEventListener): () => void;
|
|
142
|
+
private emit;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Create a capabilities registry.
|
|
146
|
+
*/
|
|
147
|
+
export declare function createCapabilitiesRegistry(): CapabilitiesRegistry;
|
|
148
|
+
/**
|
|
149
|
+
* Format capabilities summary for display.
|
|
150
|
+
*/
|
|
151
|
+
export declare function formatCapabilitiesSummary(counts: Record<CapabilityType, CapabilityCounts>): string;
|
|
152
|
+
/**
|
|
153
|
+
* Format capabilities list for a specific type.
|
|
154
|
+
*/
|
|
155
|
+
export declare function formatCapabilitiesList(capabilities: Capability[], type: CapabilityType): string;
|
|
156
|
+
/**
|
|
157
|
+
* Format search results for display.
|
|
158
|
+
*/
|
|
159
|
+
export declare function formatSearchResults(results: CapabilitySearchResult[], limit?: number): string;
|
|
160
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/integrations/utilities/capabilities.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAMtD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,iEAAiE;IACjE,EAAE,EAAE,MAAM,CAAC;IAEX,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IAEb,yBAAyB;IACzB,IAAI,EAAE,cAAc,CAAC;IAErB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IAEpB,4DAA4D;IAC5D,MAAM,EAAE,OAAO,CAAC;IAEhB,oFAAoF;IACpF,MAAM,EAAE,MAAM,CAAC;IAEf,yBAAyB;IACzB,IAAI,EAAE,MAAM,EAAE,CAAC;IAEf,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,MAAM,CA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commands.
|
|
5
|
+
* Enables discovery through /powers command and semantic search.
|
|
6
|
+
*/
|
|
7
|
+
// =============================================================================
|
|
8
|
+
// BUILT-IN COMMANDS
|
|
9
|
+
// =============================================================================
|
|
10
|
+
const BUILT_IN_COMMANDS = [
|
|
11
|
+
// General
|
|
12
|
+
{ name: '/help', description: 'Show help and available commands', category: 'general', aliases: ['/h', '/?'] },
|
|
13
|
+
{ name: '/status', description: 'Show session stats, metrics & token usage', category: 'general' },
|
|
14
|
+
{ name: '/clear', description: 'Clear the screen', category: 'general' },
|
|
15
|
+
{ name: '/reset', description: 'Reset agent state (clears conversation)', category: 'general' },
|
|
16
|
+
{ name: '/quit', description: 'Exit attocode', category: 'general', aliases: ['/exit', '/q'] },
|
|
17
|
+
// Modes
|
|
18
|
+
{ name: '/mode', description: 'Show/change current mode (build, plan, review, debug)', category: 'modes' },
|
|
19
|
+
{ name: '/plan', description: 'Toggle plan mode (writes queued for approval)', category: 'modes' },
|
|
20
|
+
// Plan approval
|
|
21
|
+
{ name: '/show-plan', description: 'Show pending plan with proposed changes', category: 'plan' },
|
|
22
|
+
{ name: '/approve', description: 'Approve and execute pending changes', category: 'plan' },
|
|
23
|
+
{ name: '/reject', description: 'Reject and discard pending changes', category: 'plan' },
|
|
24
|
+
// Sessions
|
|
25
|
+
{ name: '/save', description: 'Save current session to disk', category: 'sessions' },
|
|
26
|
+
{ name: '/load', description: 'Load a previous session by ID', category: 'sessions' },
|
|
27
|
+
{ name: '/sessions', description: 'List all saved sessions', category: 'sessions' },
|
|
28
|
+
{ name: '/resume', description: 'Resume most recent session', category: 'sessions' },
|
|
29
|
+
// Context
|
|
30
|
+
{ name: '/context', description: 'Show context window usage', category: 'context' },
|
|
31
|
+
{ name: '/compact', description: 'Summarize & compress context', category: 'context' },
|
|
32
|
+
// Checkpoints
|
|
33
|
+
{ name: '/checkpoint', description: 'Create a named checkpoint', category: 'checkpoints', aliases: ['/cp'] },
|
|
34
|
+
{ name: '/checkpoints', description: 'List all checkpoints', category: 'checkpoints', aliases: ['/cps'] },
|
|
35
|
+
{ name: '/restore', description: 'Restore to a checkpoint', category: 'checkpoints' },
|
|
36
|
+
{ name: '/rollback', description: 'Rollback n steps', category: 'checkpoints', aliases: ['/rb'] },
|
|
37
|
+
// Subagents
|
|
38
|
+
{ name: '/agents', description: 'List available agents', category: 'subagents' },
|
|
39
|
+
{ name: '/spawn', description: 'Spawn a specific agent', category: 'subagents' },
|
|
40
|
+
{ name: '/find', description: 'Find agents by keyword', category: 'subagents' },
|
|
41
|
+
{ name: '/suggest', description: 'AI-powered agent suggestion', category: 'subagents' },
|
|
42
|
+
{ name: '/auto', description: 'Auto-route task to best agent', category: 'subagents' },
|
|
43
|
+
// MCP
|
|
44
|
+
{ name: '/mcp', description: 'Manage MCP servers and tools', category: 'mcp' },
|
|
45
|
+
// Budget
|
|
46
|
+
{ name: '/budget', description: 'Show token/cost budget', category: 'budget' },
|
|
47
|
+
{ name: '/extend', description: 'Extend budget limit', category: 'budget' },
|
|
48
|
+
// Security
|
|
49
|
+
{ name: '/grants', description: 'Show active permission grants', category: 'security' },
|
|
50
|
+
{ name: '/audit', description: 'Show security audit log', category: 'security' },
|
|
51
|
+
// Debugging
|
|
52
|
+
{ name: '/skills', description: 'List loaded skills', category: 'debugging' },
|
|
53
|
+
{ name: '/sandbox', description: 'Show sandbox modes', category: 'debugging' },
|
|
54
|
+
{ name: '/shell', description: 'Show PTY shell info', category: 'debugging' },
|
|
55
|
+
{ name: '/powers', description: 'Show all agent capabilities', category: 'debugging' },
|
|
56
|
+
];
|
|
57
|
+
// =============================================================================
|
|
58
|
+
// CAPABILITIES REGISTRY
|
|
59
|
+
// =============================================================================
|
|
60
|
+
/**
|
|
61
|
+
* Unified registry for all agent capabilities.
|
|
62
|
+
*/
|
|
63
|
+
export class CapabilitiesRegistry {
|
|
64
|
+
capabilities = new Map();
|
|
65
|
+
eventListeners = new Set();
|
|
66
|
+
// Registered sources
|
|
67
|
+
toolRegistry;
|
|
68
|
+
skillManager;
|
|
69
|
+
agentRegistry;
|
|
70
|
+
mcpClient;
|
|
71
|
+
/**
|
|
72
|
+
* Register the tool registry as a capability source.
|
|
73
|
+
*/
|
|
74
|
+
registerToolRegistry(registry) {
|
|
75
|
+
this.toolRegistry = registry;
|
|
76
|
+
this.refreshTools();
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Register the skill manager as a capability source.
|
|
80
|
+
*/
|
|
81
|
+
registerSkillManager(manager) {
|
|
82
|
+
this.skillManager = manager;
|
|
83
|
+
this.refreshSkills();
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Register the agent registry as a capability source.
|
|
87
|
+
*/
|
|
88
|
+
registerAgentRegistry(registry) {
|
|
89
|
+
this.agentRegistry = registry;
|
|
90
|
+
this.refreshAgents();
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Register the MCP client as a capability source.
|
|
94
|
+
*/
|
|
95
|
+
registerMCPClient(client) {
|
|
96
|
+
this.mcpClient = client;
|
|
97
|
+
this.refreshMCPTools();
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Refresh all capabilities from registered sources.
|
|
101
|
+
*/
|
|
102
|
+
refresh() {
|
|
103
|
+
this.refreshTools();
|
|
104
|
+
this.refreshSkills();
|
|
105
|
+
this.refreshAgents();
|
|
106
|
+
this.refreshMCPTools();
|
|
107
|
+
this.refreshCommands();
|
|
108
|
+
this.emit({ type: 'registry.refreshed', counts: this.getCounts() });
|
|
109
|
+
}
|
|
110
|
+
refreshTools() {
|
|
111
|
+
if (!this.toolRegistry)
|
|
112
|
+
return;
|
|
113
|
+
// Remove old tools
|
|
114
|
+
for (const [id, cap] of this.capabilities) {
|
|
115
|
+
if (cap.type === 'tool') {
|
|
116
|
+
this.capabilities.delete(id);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
// Add current tools
|
|
120
|
+
for (const tool of this.toolRegistry.getTools()) {
|
|
121
|
+
// Skip MCP tools (they're handled separately)
|
|
122
|
+
if (tool.name.startsWith('mcp_'))
|
|
123
|
+
continue;
|
|
124
|
+
const capability = {
|
|
125
|
+
id: `tool:${tool.name}`,
|
|
126
|
+
name: tool.name,
|
|
127
|
+
type: 'tool',
|
|
128
|
+
description: tool.description,
|
|
129
|
+
active: true,
|
|
130
|
+
source: 'built-in',
|
|
131
|
+
tags: this.extractTags(tool.description),
|
|
132
|
+
metadata: {
|
|
133
|
+
dangerLevel: tool.dangerLevel,
|
|
134
|
+
parameters: tool.parameters,
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
this.capabilities.set(capability.id, capability);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
refreshSkills() {
|
|
141
|
+
if (!this.skillManager)
|
|
142
|
+
return;
|
|
143
|
+
// Remove old skills
|
|
144
|
+
for (const [id, cap] of this.capabilities) {
|
|
145
|
+
if (cap.type === 'skill') {
|
|
146
|
+
this.capabilities.delete(id);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
// Add current skills
|
|
150
|
+
for (const skill of this.skillManager.getAllSkills()) {
|
|
151
|
+
const capability = {
|
|
152
|
+
id: `skill:${skill.name}`,
|
|
153
|
+
name: skill.name,
|
|
154
|
+
type: 'skill',
|
|
155
|
+
description: skill.description,
|
|
156
|
+
active: this.skillManager.isSkillActive(skill.name),
|
|
157
|
+
source: skill.sourcePath,
|
|
158
|
+
tags: [...(skill.tags || []), ...(skill.invokable ? ['invokable'] : [])],
|
|
159
|
+
metadata: {
|
|
160
|
+
invokable: skill.invokable,
|
|
161
|
+
arguments: skill.arguments,
|
|
162
|
+
tools: skill.tools,
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
this.capabilities.set(capability.id, capability);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
refreshAgents() {
|
|
169
|
+
if (!this.agentRegistry)
|
|
170
|
+
return;
|
|
171
|
+
// Remove old agents
|
|
172
|
+
for (const [id, cap] of this.capabilities) {
|
|
173
|
+
if (cap.type === 'agent') {
|
|
174
|
+
this.capabilities.delete(id);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
// Add current agents
|
|
178
|
+
for (const agent of this.agentRegistry.getAllAgents()) {
|
|
179
|
+
const capability = {
|
|
180
|
+
id: `agent:${agent.name}`,
|
|
181
|
+
name: agent.name,
|
|
182
|
+
type: 'agent',
|
|
183
|
+
description: agent.description,
|
|
184
|
+
active: true,
|
|
185
|
+
source: agent.source || 'built-in',
|
|
186
|
+
tags: agent.capabilities || [],
|
|
187
|
+
metadata: {
|
|
188
|
+
model: agent.model,
|
|
189
|
+
maxIterations: agent.maxIterations,
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
this.capabilities.set(capability.id, capability);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
refreshMCPTools() {
|
|
196
|
+
if (!this.mcpClient)
|
|
197
|
+
return;
|
|
198
|
+
// Remove old MCP tools
|
|
199
|
+
for (const [id, cap] of this.capabilities) {
|
|
200
|
+
if (cap.type === 'mcp_tool') {
|
|
201
|
+
this.capabilities.delete(id);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
// Add current MCP tools
|
|
205
|
+
for (const tool of this.mcpClient.getAllTools()) {
|
|
206
|
+
const capability = {
|
|
207
|
+
id: `mcp_tool:${tool.name}`,
|
|
208
|
+
name: tool.name,
|
|
209
|
+
type: 'mcp_tool',
|
|
210
|
+
description: tool.description || 'No description',
|
|
211
|
+
active: this.mcpClient.isToolLoaded(tool.name),
|
|
212
|
+
source: `mcp:${tool.name.split('_')[1] || 'unknown'}`,
|
|
213
|
+
tags: this.extractTags(tool.description || ''),
|
|
214
|
+
};
|
|
215
|
+
this.capabilities.set(capability.id, capability);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
refreshCommands() {
|
|
219
|
+
// Remove old commands
|
|
220
|
+
for (const [id, cap] of this.capabilities) {
|
|
221
|
+
if (cap.type === 'command') {
|
|
222
|
+
this.capabilities.delete(id);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
// Add built-in commands
|
|
226
|
+
for (const cmd of BUILT_IN_COMMANDS) {
|
|
227
|
+
const capability = {
|
|
228
|
+
id: `command:${cmd.name}`,
|
|
229
|
+
name: cmd.name,
|
|
230
|
+
type: 'command',
|
|
231
|
+
description: cmd.description,
|
|
232
|
+
active: true,
|
|
233
|
+
source: 'built-in',
|
|
234
|
+
tags: [cmd.category || 'general'],
|
|
235
|
+
metadata: {
|
|
236
|
+
aliases: cmd.aliases,
|
|
237
|
+
category: cmd.category,
|
|
238
|
+
},
|
|
239
|
+
};
|
|
240
|
+
this.capabilities.set(capability.id, capability);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Extract tags from description text.
|
|
245
|
+
*/
|
|
246
|
+
extractTags(text) {
|
|
247
|
+
const tags = [];
|
|
248
|
+
const keywords = ['file', 'search', 'edit', 'read', 'write', 'bash', 'git', 'code', 'test', 'debug'];
|
|
249
|
+
const lowerText = text.toLowerCase();
|
|
250
|
+
for (const keyword of keywords) {
|
|
251
|
+
if (lowerText.includes(keyword)) {
|
|
252
|
+
tags.push(keyword);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return tags;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Get all capabilities.
|
|
259
|
+
*/
|
|
260
|
+
getAll() {
|
|
261
|
+
return Array.from(this.capabilities.values());
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Get capabilities by type.
|
|
265
|
+
*/
|
|
266
|
+
getByType(type) {
|
|
267
|
+
return this.getAll().filter(c => c.type === type);
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Search capabilities by query.
|
|
271
|
+
*/
|
|
272
|
+
search(query) {
|
|
273
|
+
const queryLower = query.toLowerCase();
|
|
274
|
+
const queryTerms = queryLower.split(/\s+/);
|
|
275
|
+
const results = [];
|
|
276
|
+
for (const capability of this.capabilities.values()) {
|
|
277
|
+
let score = 0;
|
|
278
|
+
const matches = [];
|
|
279
|
+
// Check name match
|
|
280
|
+
const nameLower = capability.name.toLowerCase();
|
|
281
|
+
if (nameLower.includes(queryLower)) {
|
|
282
|
+
score += 10;
|
|
283
|
+
matches.push('name');
|
|
284
|
+
}
|
|
285
|
+
for (const term of queryTerms) {
|
|
286
|
+
if (nameLower.includes(term)) {
|
|
287
|
+
score += 3;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
// Check description match
|
|
291
|
+
const descLower = capability.description.toLowerCase();
|
|
292
|
+
for (const term of queryTerms) {
|
|
293
|
+
if (descLower.includes(term)) {
|
|
294
|
+
score += 2;
|
|
295
|
+
if (!matches.includes('description')) {
|
|
296
|
+
matches.push('description');
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
// Check tags match
|
|
301
|
+
for (const tag of capability.tags) {
|
|
302
|
+
const tagLower = tag.toLowerCase();
|
|
303
|
+
if (tagLower.includes(queryLower) || queryLower.includes(tagLower)) {
|
|
304
|
+
score += 5;
|
|
305
|
+
matches.push(`tag:${tag}`);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
// Boost active capabilities
|
|
309
|
+
if (capability.active) {
|
|
310
|
+
score *= 1.2;
|
|
311
|
+
}
|
|
312
|
+
if (score > 0) {
|
|
313
|
+
results.push({ capability, score, matches });
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return results.sort((a, b) => b.score - a.score);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Get counts by type.
|
|
320
|
+
*/
|
|
321
|
+
getCounts() {
|
|
322
|
+
const counts = {
|
|
323
|
+
tool: { total: 0, active: 0 },
|
|
324
|
+
skill: { total: 0, active: 0 },
|
|
325
|
+
agent: { total: 0, active: 0 },
|
|
326
|
+
mcp_tool: { total: 0, active: 0 },
|
|
327
|
+
command: { total: 0, active: 0 },
|
|
328
|
+
};
|
|
329
|
+
for (const capability of this.capabilities.values()) {
|
|
330
|
+
counts[capability.type].total++;
|
|
331
|
+
if (capability.active) {
|
|
332
|
+
counts[capability.type].active++;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return counts;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Get a specific capability by ID.
|
|
339
|
+
*/
|
|
340
|
+
get(id) {
|
|
341
|
+
return this.capabilities.get(id);
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Subscribe to registry events.
|
|
345
|
+
*/
|
|
346
|
+
subscribe(listener) {
|
|
347
|
+
this.eventListeners.add(listener);
|
|
348
|
+
return () => this.eventListeners.delete(listener);
|
|
349
|
+
}
|
|
350
|
+
emit(event) {
|
|
351
|
+
for (const listener of this.eventListeners) {
|
|
352
|
+
try {
|
|
353
|
+
listener(event);
|
|
354
|
+
}
|
|
355
|
+
catch {
|
|
356
|
+
// Ignore listener errors
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
// =============================================================================
|
|
362
|
+
// FACTORY FUNCTIONS
|
|
363
|
+
// =============================================================================
|
|
364
|
+
/**
|
|
365
|
+
* Create a capabilities registry.
|
|
366
|
+
*/
|
|
367
|
+
export function createCapabilitiesRegistry() {
|
|
368
|
+
return new CapabilitiesRegistry();
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Format capabilities summary for display.
|
|
372
|
+
*/
|
|
373
|
+
export function formatCapabilitiesSummary(counts) {
|
|
374
|
+
const lines = [
|
|
375
|
+
'Agent Capabilities:',
|
|
376
|
+
` Tools: ${counts.tool.active}/${counts.tool.total}`,
|
|
377
|
+
` Skills: ${counts.skill.active}/${counts.skill.total}`,
|
|
378
|
+
` Agents: ${counts.agent.active}/${counts.agent.total}`,
|
|
379
|
+
` MCP Tools: ${counts.mcp_tool.active}/${counts.mcp_tool.total}`,
|
|
380
|
+
` Commands: ${counts.command.active}/${counts.command.total}`,
|
|
381
|
+
];
|
|
382
|
+
const total = Object.values(counts).reduce((sum, c) => sum + c.total, 0);
|
|
383
|
+
const active = Object.values(counts).reduce((sum, c) => sum + c.active, 0);
|
|
384
|
+
lines.push(` Total: ${active}/${total}`);
|
|
385
|
+
return lines.join('\n');
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Format capabilities list for a specific type.
|
|
389
|
+
*/
|
|
390
|
+
export function formatCapabilitiesList(capabilities, type) {
|
|
391
|
+
if (capabilities.length === 0) {
|
|
392
|
+
return `No ${type}s available.`;
|
|
393
|
+
}
|
|
394
|
+
const lines = [`${capitalize(type)}s (${capabilities.length}):`];
|
|
395
|
+
for (const cap of capabilities) {
|
|
396
|
+
const status = cap.active ? '+' : 'o';
|
|
397
|
+
const tags = cap.tags.length > 0 ? ` [${cap.tags.slice(0, 3).join(', ')}]` : '';
|
|
398
|
+
lines.push(` ${status} ${cap.name} - ${cap.description.slice(0, 60)}${cap.description.length > 60 ? '...' : ''}${tags}`);
|
|
399
|
+
}
|
|
400
|
+
return lines.join('\n');
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Format search results for display.
|
|
404
|
+
*/
|
|
405
|
+
export function formatSearchResults(results, limit = 10) {
|
|
406
|
+
if (results.length === 0) {
|
|
407
|
+
return 'No matching capabilities found.';
|
|
408
|
+
}
|
|
409
|
+
const lines = [`Found ${results.length} result(s):`];
|
|
410
|
+
const shown = results.slice(0, limit);
|
|
411
|
+
for (const { capability, score, matches } of shown) {
|
|
412
|
+
const type = capability.type.replace('_', ' ');
|
|
413
|
+
const matchInfo = matches.slice(0, 2).join(', ');
|
|
414
|
+
lines.push(` [${type}] ${capability.name} (score: ${score.toFixed(1)})`);
|
|
415
|
+
lines.push(` ${capability.description.slice(0, 70)}${capability.description.length > 70 ? '...' : ''}`);
|
|
416
|
+
lines.push(` Matched: ${matchInfo}`);
|
|
417
|
+
}
|
|
418
|
+
if (results.length > limit) {
|
|
419
|
+
lines.push(` ... and ${results.length - limit} more`);
|
|
420
|
+
}
|
|
421
|
+
return lines.join('\n');
|
|
422
|
+
}
|
|
423
|
+
function capitalize(s) {
|
|
424
|
+
return s.charAt(0).toUpperCase() + s.slice(1);
|
|
425
|
+
}
|
|
426
|
+
//# sourceMappingURL=capabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../../../src/integrations/utilities/capabilities.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAmFH,gFAAgF;AAChF,oBAAoB;AACpB,gFAAgF;AAEhF,MAAM,iBAAiB,GAAwB;IAC7C,UAAU;IACV,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,kCAAkC,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;IAC9G,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,2CAA2C,EAAE,QAAQ,EAAE,SAAS,EAAE;IAClG,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,SAAS,EAAE;IACxE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,yCAAyC,EAAE,QAAQ,EAAE,SAAS,EAAE;IAC/F,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE;IAE9F,QAAQ;IACR,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,uDAAuD,EAAE,QAAQ,EAAE,OAAO,EAAE;IAC1G,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,+CAA+C,EAAE,QAAQ,EAAE,OAAO,EAAE;IAElG,gBAAgB;IAChB,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,yCAAyC,EAAE,QAAQ,EAAE,MAAM,EAAE;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