attocode 0.1.0
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 +48 -0
- package/LICENSE +21 -0
- package/README.md +164 -0
- package/dist/src/adapters.d.ts +83 -0
- package/dist/src/adapters.d.ts.map +1 -0
- package/dist/src/adapters.js +221 -0
- package/dist/src/adapters.js.map +1 -0
- package/dist/src/agent-tools/index.d.ts +7 -0
- package/dist/src/agent-tools/index.d.ts.map +1 -0
- package/dist/src/agent-tools/index.js +8 -0
- package/dist/src/agent-tools/index.js.map +1 -0
- package/dist/src/agent-tools/lsp-file-tools.d.ts +33 -0
- package/dist/src/agent-tools/lsp-file-tools.d.ts.map +1 -0
- package/dist/src/agent-tools/lsp-file-tools.js +200 -0
- package/dist/src/agent-tools/lsp-file-tools.js.map +1 -0
- package/dist/src/agent.d.ts +667 -0
- package/dist/src/agent.d.ts.map +1 -0
- package/dist/src/agent.js +2824 -0
- package/dist/src/agent.js.map +1 -0
- package/dist/src/cli.d.ts +36 -0
- package/dist/src/cli.d.ts.map +1 -0
- package/dist/src/cli.js +176 -0
- package/dist/src/cli.js.map +1 -0
- package/dist/src/commands/handler.d.ts +22 -0
- package/dist/src/commands/handler.d.ts.map +1 -0
- package/dist/src/commands/handler.js +1320 -0
- package/dist/src/commands/handler.js.map +1 -0
- package/dist/src/commands/init.d.ts +7 -0
- package/dist/src/commands/init.d.ts.map +1 -0
- package/dist/src/commands/init.js +153 -0
- package/dist/src/commands/init.js.map +1 -0
- package/dist/src/commands/types.d.ts +70 -0
- package/dist/src/commands/types.d.ts.map +1 -0
- package/dist/src/commands/types.js +8 -0
- package/dist/src/commands/types.js.map +1 -0
- package/dist/src/config.d.ts +22 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/config.js +25 -0
- package/dist/src/config.js.map +1 -0
- package/dist/src/core/index.d.ts +32 -0
- package/dist/src/core/index.d.ts.map +1 -0
- package/dist/src/core/index.js +35 -0
- package/dist/src/core/index.js.map +1 -0
- package/dist/src/core/process-handlers.d.ts +43 -0
- package/dist/src/core/process-handlers.d.ts.map +1 -0
- package/dist/src/core/process-handlers.js +117 -0
- package/dist/src/core/process-handlers.js.map +1 -0
- package/dist/src/core/protocol/bridge.d.ts +117 -0
- package/dist/src/core/protocol/bridge.d.ts.map +1 -0
- package/dist/src/core/protocol/bridge.js +149 -0
- package/dist/src/core/protocol/bridge.js.map +1 -0
- package/dist/src/core/protocol/index.d.ts +8 -0
- package/dist/src/core/protocol/index.d.ts.map +1 -0
- package/dist/src/core/protocol/index.js +8 -0
- package/dist/src/core/protocol/index.js.map +1 -0
- package/dist/src/core/protocol/types.d.ts +539 -0
- package/dist/src/core/protocol/types.d.ts.map +1 -0
- package/dist/src/core/protocol/types.js +149 -0
- package/dist/src/core/protocol/types.js.map +1 -0
- package/dist/src/core/queues/atomic-counter.d.ts +36 -0
- package/dist/src/core/queues/atomic-counter.d.ts.map +1 -0
- package/dist/src/core/queues/atomic-counter.js +46 -0
- package/dist/src/core/queues/atomic-counter.js.map +1 -0
- package/dist/src/core/queues/event-queue.d.ts +126 -0
- package/dist/src/core/queues/event-queue.d.ts.map +1 -0
- package/dist/src/core/queues/event-queue.js +208 -0
- package/dist/src/core/queues/event-queue.js.map +1 -0
- package/dist/src/core/queues/index.d.ts +12 -0
- package/dist/src/core/queues/index.d.ts.map +1 -0
- package/dist/src/core/queues/index.js +15 -0
- package/dist/src/core/queues/index.js.map +1 -0
- package/dist/src/core/queues/submission-queue.d.ts +116 -0
- package/dist/src/core/queues/submission-queue.d.ts.map +1 -0
- package/dist/src/core/queues/submission-queue.js +236 -0
- package/dist/src/core/queues/submission-queue.js.map +1 -0
- package/dist/src/costs/index.d.ts +22 -0
- package/dist/src/costs/index.d.ts.map +1 -0
- package/dist/src/costs/index.js +22 -0
- package/dist/src/costs/index.js.map +1 -0
- package/dist/src/costs/model-registry.d.ts +80 -0
- package/dist/src/costs/model-registry.d.ts.map +1 -0
- package/dist/src/costs/model-registry.js +237 -0
- package/dist/src/costs/model-registry.js.map +1 -0
- package/dist/src/costs/types.d.ts +50 -0
- package/dist/src/costs/types.d.ts.map +1 -0
- package/dist/src/costs/types.js +2 -0
- package/dist/src/costs/types.js.map +1 -0
- package/dist/src/defaults.d.ts +114 -0
- package/dist/src/defaults.d.ts.map +1 -0
- package/dist/src/defaults.js +457 -0
- package/dist/src/defaults.js.map +1 -0
- package/dist/src/first-run.d.ts +35 -0
- package/dist/src/first-run.d.ts.map +1 -0
- package/dist/src/first-run.js +94 -0
- package/dist/src/first-run.js.map +1 -0
- package/dist/src/hello.d.ts +2 -0
- package/dist/src/hello.d.ts.map +1 -0
- package/dist/src/hello.js +4 -0
- package/dist/src/hello.js.map +1 -0
- package/dist/src/integrations/agent-registry.d.ts +160 -0
- package/dist/src/integrations/agent-registry.d.ts.map +1 -0
- package/dist/src/integrations/agent-registry.js +446 -0
- package/dist/src/integrations/agent-registry.js.map +1 -0
- package/dist/src/integrations/auto-compaction.d.ts +177 -0
- package/dist/src/integrations/auto-compaction.d.ts.map +1 -0
- package/dist/src/integrations/auto-compaction.js +428 -0
- package/dist/src/integrations/auto-compaction.js.map +1 -0
- package/dist/src/integrations/cancellation.d.ts +162 -0
- package/dist/src/integrations/cancellation.d.ts.map +1 -0
- package/dist/src/integrations/cancellation.js +339 -0
- package/dist/src/integrations/cancellation.js.map +1 -0
- package/dist/src/integrations/codebase-context.d.ts +319 -0
- package/dist/src/integrations/codebase-context.d.ts.map +1 -0
- package/dist/src/integrations/codebase-context.js +816 -0
- package/dist/src/integrations/codebase-context.js.map +1 -0
- package/dist/src/integrations/compaction.d.ts +192 -0
- package/dist/src/integrations/compaction.d.ts.map +1 -0
- package/dist/src/integrations/compaction.js +376 -0
- package/dist/src/integrations/compaction.js.map +1 -0
- package/dist/src/integrations/context-engineering.d.ts +246 -0
- package/dist/src/integrations/context-engineering.d.ts.map +1 -0
- package/dist/src/integrations/context-engineering.js +394 -0
- package/dist/src/integrations/context-engineering.js.map +1 -0
- package/dist/src/integrations/diff-utils.d.ts +105 -0
- package/dist/src/integrations/diff-utils.d.ts.map +1 -0
- package/dist/src/integrations/diff-utils.js +497 -0
- package/dist/src/integrations/diff-utils.js.map +1 -0
- package/dist/src/integrations/economics.d.ts +192 -0
- package/dist/src/integrations/economics.d.ts.map +1 -0
- package/dist/src/integrations/economics.js +431 -0
- package/dist/src/integrations/economics.js.map +1 -0
- package/dist/src/integrations/execution-policy.d.ts +189 -0
- package/dist/src/integrations/execution-policy.d.ts.map +1 -0
- package/dist/src/integrations/execution-policy.js +352 -0
- package/dist/src/integrations/execution-policy.js.map +1 -0
- package/dist/src/integrations/file-change-tracker.d.ts +161 -0
- package/dist/src/integrations/file-change-tracker.d.ts.map +1 -0
- package/dist/src/integrations/file-change-tracker.js +520 -0
- package/dist/src/integrations/file-change-tracker.js.map +1 -0
- package/dist/src/integrations/hierarchical-config.d.ts +212 -0
- package/dist/src/integrations/hierarchical-config.d.ts.map +1 -0
- package/dist/src/integrations/hierarchical-config.js +484 -0
- package/dist/src/integrations/hierarchical-config.js.map +1 -0
- package/dist/src/integrations/hooks.d.ts +114 -0
- package/dist/src/integrations/hooks.d.ts.map +1 -0
- package/dist/src/integrations/hooks.js +326 -0
- package/dist/src/integrations/hooks.js.map +1 -0
- package/dist/src/integrations/ignore.d.ts +143 -0
- package/dist/src/integrations/ignore.d.ts.map +1 -0
- package/dist/src/integrations/ignore.js +417 -0
- package/dist/src/integrations/ignore.js.map +1 -0
- package/dist/src/integrations/image-renderer.d.ts +119 -0
- package/dist/src/integrations/image-renderer.d.ts.map +1 -0
- package/dist/src/integrations/image-renderer.js +306 -0
- package/dist/src/integrations/image-renderer.js.map +1 -0
- package/dist/src/integrations/index.d.ts +42 -0
- package/dist/src/integrations/index.d.ts.map +1 -0
- package/dist/src/integrations/index.js +73 -0
- package/dist/src/integrations/index.js.map +1 -0
- package/dist/src/integrations/lsp.d.ts +196 -0
- package/dist/src/integrations/lsp.d.ts.map +1 -0
- package/dist/src/integrations/lsp.js +582 -0
- package/dist/src/integrations/lsp.js.map +1 -0
- package/dist/src/integrations/mcp-client.d.ts +270 -0
- package/dist/src/integrations/mcp-client.d.ts.map +1 -0
- package/dist/src/integrations/mcp-client.js +698 -0
- package/dist/src/integrations/mcp-client.js.map +1 -0
- package/dist/src/integrations/mcp-tool-search.d.ts +77 -0
- package/dist/src/integrations/mcp-tool-search.d.ts.map +1 -0
- package/dist/src/integrations/mcp-tool-search.js +220 -0
- package/dist/src/integrations/mcp-tool-search.js.map +1 -0
- package/dist/src/integrations/memory.d.ts +108 -0
- package/dist/src/integrations/memory.d.ts.map +1 -0
- package/dist/src/integrations/memory.js +288 -0
- package/dist/src/integrations/memory.js.map +1 -0
- package/dist/src/integrations/multi-agent.d.ts +150 -0
- package/dist/src/integrations/multi-agent.d.ts.map +1 -0
- package/dist/src/integrations/multi-agent.js +306 -0
- package/dist/src/integrations/multi-agent.js.map +1 -0
- package/dist/src/integrations/observability.d.ts +162 -0
- package/dist/src/integrations/observability.d.ts.map +1 -0
- package/dist/src/integrations/observability.js +406 -0
- package/dist/src/integrations/observability.js.map +1 -0
- package/dist/src/integrations/openrouter-pricing.d.ts +42 -0
- package/dist/src/integrations/openrouter-pricing.d.ts.map +1 -0
- package/dist/src/integrations/openrouter-pricing.js +124 -0
- package/dist/src/integrations/openrouter-pricing.js.map +1 -0
- package/dist/src/integrations/pending-plan.d.ts +171 -0
- package/dist/src/integrations/pending-plan.d.ts.map +1 -0
- package/dist/src/integrations/pending-plan.js +244 -0
- package/dist/src/integrations/pending-plan.js.map +1 -0
- package/dist/src/integrations/persistence.d.ts +48 -0
- package/dist/src/integrations/persistence.d.ts.map +1 -0
- package/dist/src/integrations/persistence.js +196 -0
- package/dist/src/integrations/persistence.js.map +1 -0
- package/dist/src/integrations/planning.d.ts +96 -0
- package/dist/src/integrations/planning.d.ts.map +1 -0
- package/dist/src/integrations/planning.js +338 -0
- package/dist/src/integrations/planning.js.map +1 -0
- package/dist/src/integrations/pty-shell.d.ts +169 -0
- package/dist/src/integrations/pty-shell.d.ts.map +1 -0
- package/dist/src/integrations/pty-shell.js +367 -0
- package/dist/src/integrations/pty-shell.js.map +1 -0
- package/dist/src/integrations/react.d.ts +139 -0
- package/dist/src/integrations/react.d.ts.map +1 -0
- package/dist/src/integrations/react.js +273 -0
- package/dist/src/integrations/react.js.map +1 -0
- package/dist/src/integrations/resources.d.ts +177 -0
- package/dist/src/integrations/resources.d.ts.map +1 -0
- package/dist/src/integrations/resources.js +311 -0
- package/dist/src/integrations/resources.js.map +1 -0
- package/dist/src/integrations/result-synthesizer.d.ts +389 -0
- package/dist/src/integrations/result-synthesizer.d.ts.map +1 -0
- package/dist/src/integrations/result-synthesizer.js +951 -0
- package/dist/src/integrations/result-synthesizer.js.map +1 -0
- package/dist/src/integrations/routing.d.ts +117 -0
- package/dist/src/integrations/routing.d.ts.map +1 -0
- package/dist/src/integrations/routing.js +347 -0
- package/dist/src/integrations/routing.js.map +1 -0
- package/dist/src/integrations/rules.d.ts +131 -0
- package/dist/src/integrations/rules.d.ts.map +1 -0
- package/dist/src/integrations/rules.js +284 -0
- package/dist/src/integrations/rules.js.map +1 -0
- package/dist/src/integrations/safety.d.ts +142 -0
- package/dist/src/integrations/safety.d.ts.map +1 -0
- package/dist/src/integrations/safety.js +342 -0
- package/dist/src/integrations/safety.js.map +1 -0
- package/dist/src/integrations/sandbox/basic.d.ts +74 -0
- package/dist/src/integrations/sandbox/basic.d.ts.map +1 -0
- package/dist/src/integrations/sandbox/basic.js +310 -0
- package/dist/src/integrations/sandbox/basic.js.map +1 -0
- package/dist/src/integrations/sandbox/docker.d.ts +94 -0
- package/dist/src/integrations/sandbox/docker.d.ts.map +1 -0
- package/dist/src/integrations/sandbox/docker.js +293 -0
- package/dist/src/integrations/sandbox/docker.js.map +1 -0
- package/dist/src/integrations/sandbox/index.d.ts +182 -0
- package/dist/src/integrations/sandbox/index.d.ts.map +1 -0
- package/dist/src/integrations/sandbox/index.js +382 -0
- package/dist/src/integrations/sandbox/index.js.map +1 -0
- package/dist/src/integrations/sandbox/landlock.d.ts +59 -0
- package/dist/src/integrations/sandbox/landlock.d.ts.map +1 -0
- package/dist/src/integrations/sandbox/landlock.js +326 -0
- package/dist/src/integrations/sandbox/landlock.js.map +1 -0
- package/dist/src/integrations/sandbox/seatbelt.d.ts +68 -0
- package/dist/src/integrations/sandbox/seatbelt.d.ts.map +1 -0
- package/dist/src/integrations/sandbox/seatbelt.js +298 -0
- package/dist/src/integrations/sandbox/seatbelt.js.map +1 -0
- package/dist/src/integrations/semantic-cache.d.ts +178 -0
- package/dist/src/integrations/semantic-cache.d.ts.map +1 -0
- package/dist/src/integrations/semantic-cache.js +372 -0
- package/dist/src/integrations/semantic-cache.js.map +1 -0
- package/dist/src/integrations/session-store.d.ts +183 -0
- package/dist/src/integrations/session-store.d.ts.map +1 -0
- package/dist/src/integrations/session-store.js +345 -0
- package/dist/src/integrations/session-store.js.map +1 -0
- package/dist/src/integrations/shared-blackboard.d.ts +403 -0
- package/dist/src/integrations/shared-blackboard.d.ts.map +1 -0
- package/dist/src/integrations/shared-blackboard.js +710 -0
- package/dist/src/integrations/shared-blackboard.js.map +1 -0
- package/dist/src/integrations/skills.d.ts +171 -0
- package/dist/src/integrations/skills.d.ts.map +1 -0
- package/dist/src/integrations/skills.js +403 -0
- package/dist/src/integrations/skills.js.map +1 -0
- package/dist/src/integrations/smart-decomposer.d.ts +322 -0
- package/dist/src/integrations/smart-decomposer.d.ts.map +1 -0
- package/dist/src/integrations/smart-decomposer.js +856 -0
- package/dist/src/integrations/smart-decomposer.js.map +1 -0
- package/dist/src/integrations/sourcegraph.d.ts +169 -0
- package/dist/src/integrations/sourcegraph.d.ts.map +1 -0
- package/dist/src/integrations/sourcegraph.js +379 -0
- package/dist/src/integrations/sourcegraph.js.map +1 -0
- package/dist/src/integrations/sqlite-store.d.ts +518 -0
- package/dist/src/integrations/sqlite-store.d.ts.map +1 -0
- package/dist/src/integrations/sqlite-store.js +1423 -0
- package/dist/src/integrations/sqlite-store.js.map +1 -0
- package/dist/src/integrations/streaming.d.ts +102 -0
- package/dist/src/integrations/streaming.d.ts.map +1 -0
- package/dist/src/integrations/streaming.js +362 -0
- package/dist/src/integrations/streaming.js.map +1 -0
- package/dist/src/integrations/thread-manager.d.ts +199 -0
- package/dist/src/integrations/thread-manager.d.ts.map +1 -0
- package/dist/src/integrations/thread-manager.js +357 -0
- package/dist/src/integrations/thread-manager.js.map +1 -0
- package/dist/src/main.d.ts +26 -0
- package/dist/src/main.d.ts.map +1 -0
- package/dist/src/main.js +170 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/modes/index.d.ts +10 -0
- package/dist/src/modes/index.d.ts.map +1 -0
- package/dist/src/modes/index.js +10 -0
- package/dist/src/modes/index.js.map +1 -0
- package/dist/src/modes/repl.d.ts +19 -0
- package/dist/src/modes/repl.d.ts.map +1 -0
- package/dist/src/modes/repl.js +393 -0
- package/dist/src/modes/repl.js.map +1 -0
- package/dist/src/modes/tui.d.ts +29 -0
- package/dist/src/modes/tui.d.ts.map +1 -0
- package/dist/src/modes/tui.js +272 -0
- package/dist/src/modes/tui.js.map +1 -0
- package/dist/src/modes.d.ts +179 -0
- package/dist/src/modes.d.ts.map +1 -0
- package/dist/src/modes.js +385 -0
- package/dist/src/modes.js.map +1 -0
- package/dist/src/observability/tracer.d.ts +111 -0
- package/dist/src/observability/tracer.d.ts.map +1 -0
- package/dist/src/observability/tracer.js +300 -0
- package/dist/src/observability/tracer.js.map +1 -0
- package/dist/src/observability/types.d.ts +271 -0
- package/dist/src/observability/types.d.ts.map +1 -0
- package/dist/src/observability/types.js +24 -0
- package/dist/src/observability/types.js.map +1 -0
- package/dist/src/paths.d.ts +101 -0
- package/dist/src/paths.d.ts.map +1 -0
- package/dist/src/paths.js +148 -0
- package/dist/src/paths.js.map +1 -0
- package/dist/src/persistence/index.d.ts +38 -0
- package/dist/src/persistence/index.d.ts.map +1 -0
- package/dist/src/persistence/index.js +48 -0
- package/dist/src/persistence/index.js.map +1 -0
- package/dist/src/persistence/migrator.d.ts +135 -0
- package/dist/src/persistence/migrator.d.ts.map +1 -0
- package/dist/src/persistence/migrator.js +303 -0
- package/dist/src/persistence/migrator.js.map +1 -0
- package/dist/src/persistence/schema.d.ts +101 -0
- package/dist/src/persistence/schema.d.ts.map +1 -0
- package/dist/src/persistence/schema.js +395 -0
- package/dist/src/persistence/schema.js.map +1 -0
- package/dist/src/providers/adapters/anthropic.d.ts +20 -0
- package/dist/src/providers/adapters/anthropic.d.ts.map +1 -0
- package/dist/src/providers/adapters/anthropic.js +124 -0
- package/dist/src/providers/adapters/anthropic.js.map +1 -0
- package/dist/src/providers/adapters/mock.d.ts +25 -0
- package/dist/src/providers/adapters/mock.d.ts.map +1 -0
- package/dist/src/providers/adapters/mock.js +133 -0
- package/dist/src/providers/adapters/mock.js.map +1 -0
- package/dist/src/providers/adapters/openai.d.ts +21 -0
- package/dist/src/providers/adapters/openai.d.ts.map +1 -0
- package/dist/src/providers/adapters/openai.js +126 -0
- package/dist/src/providers/adapters/openai.js.map +1 -0
- package/dist/src/providers/adapters/openrouter.d.ts +49 -0
- package/dist/src/providers/adapters/openrouter.d.ts.map +1 -0
- package/dist/src/providers/adapters/openrouter.js +363 -0
- package/dist/src/providers/adapters/openrouter.js.map +1 -0
- package/dist/src/providers/provider.d.ts +54 -0
- package/dist/src/providers/provider.d.ts.map +1 -0
- package/dist/src/providers/provider.js +111 -0
- package/dist/src/providers/provider.js.map +1 -0
- package/dist/src/providers/resilient-fetch.d.ts +99 -0
- package/dist/src/providers/resilient-fetch.d.ts.map +1 -0
- package/dist/src/providers/resilient-fetch.js +208 -0
- package/dist/src/providers/resilient-fetch.js.map +1 -0
- package/dist/src/providers/types.d.ts +227 -0
- package/dist/src/providers/types.d.ts.map +1 -0
- package/dist/src/providers/types.js +24 -0
- package/dist/src/providers/types.js.map +1 -0
- package/dist/src/session-picker.d.ts +28 -0
- package/dist/src/session-picker.d.ts.map +1 -0
- package/dist/src/session-picker.js +256 -0
- package/dist/src/session-picker.js.map +1 -0
- package/dist/src/test-sqlite.d.ts +2 -0
- package/dist/src/test-sqlite.d.ts.map +1 -0
- package/dist/src/test-sqlite.js +114 -0
- package/dist/src/test-sqlite.js.map +1 -0
- package/dist/src/tools/agent.d.ts +44 -0
- package/dist/src/tools/agent.d.ts.map +1 -0
- package/dist/src/tools/agent.js +110 -0
- package/dist/src/tools/agent.js.map +1 -0
- package/dist/src/tools/bash.d.ts +52 -0
- package/dist/src/tools/bash.d.ts.map +1 -0
- package/dist/src/tools/bash.js +141 -0
- package/dist/src/tools/bash.js.map +1 -0
- package/dist/src/tools/file.d.ts +47 -0
- package/dist/src/tools/file.d.ts.map +1 -0
- package/dist/src/tools/file.js +263 -0
- package/dist/src/tools/file.js.map +1 -0
- package/dist/src/tools/permission.d.ts +43 -0
- package/dist/src/tools/permission.d.ts.map +1 -0
- package/dist/src/tools/permission.js +216 -0
- package/dist/src/tools/permission.js.map +1 -0
- package/dist/src/tools/registry.d.ts +63 -0
- package/dist/src/tools/registry.d.ts.map +1 -0
- package/dist/src/tools/registry.js +250 -0
- package/dist/src/tools/registry.js.map +1 -0
- package/dist/src/tools/standard.d.ts +57 -0
- package/dist/src/tools/standard.d.ts.map +1 -0
- package/dist/src/tools/standard.js +113 -0
- package/dist/src/tools/standard.js.map +1 -0
- package/dist/src/tools/types.d.ts +146 -0
- package/dist/src/tools/types.d.ts.map +1 -0
- package/dist/src/tools/types.js +28 -0
- package/dist/src/tools/types.js.map +1 -0
- package/dist/src/tools/undo.d.ts +71 -0
- package/dist/src/tools/undo.d.ts.map +1 -0
- package/dist/src/tools/undo.js +123 -0
- package/dist/src/tools/undo.js.map +1 -0
- package/dist/src/tracing/cache-boundary-tracker.d.ts +189 -0
- package/dist/src/tracing/cache-boundary-tracker.d.ts.map +1 -0
- package/dist/src/tracing/cache-boundary-tracker.js +411 -0
- package/dist/src/tracing/cache-boundary-tracker.js.map +1 -0
- package/dist/src/tracing/trace-collector.d.ts +274 -0
- package/dist/src/tracing/trace-collector.d.ts.map +1 -0
- package/dist/src/tracing/trace-collector.js +727 -0
- package/dist/src/tracing/trace-collector.js.map +1 -0
- package/dist/src/tracing/types.d.ts +657 -0
- package/dist/src/tracing/types.d.ts.map +1 -0
- package/dist/src/tracing/types.js +39 -0
- package/dist/src/tracing/types.js.map +1 -0
- package/dist/src/tricks/failure-evidence.d.ts +268 -0
- package/dist/src/tricks/failure-evidence.d.ts.map +1 -0
- package/dist/src/tricks/failure-evidence.js +544 -0
- package/dist/src/tricks/failure-evidence.js.map +1 -0
- package/dist/src/tricks/json-utils.d.ts +77 -0
- package/dist/src/tricks/json-utils.d.ts.map +1 -0
- package/dist/src/tricks/json-utils.js +247 -0
- package/dist/src/tricks/json-utils.js.map +1 -0
- package/dist/src/tricks/kv-cache-context.d.ts +227 -0
- package/dist/src/tricks/kv-cache-context.d.ts.map +1 -0
- package/dist/src/tricks/kv-cache-context.js +377 -0
- package/dist/src/tricks/kv-cache-context.js.map +1 -0
- package/dist/src/tricks/recitation.d.ts +208 -0
- package/dist/src/tricks/recitation.d.ts.map +1 -0
- package/dist/src/tricks/recitation.js +374 -0
- package/dist/src/tricks/recitation.js.map +1 -0
- package/dist/src/tricks/reversible-compaction.d.ts +251 -0
- package/dist/src/tricks/reversible-compaction.d.ts.map +1 -0
- package/dist/src/tricks/reversible-compaction.js +555 -0
- package/dist/src/tricks/reversible-compaction.js.map +1 -0
- package/dist/src/tricks/serialization-diversity.d.ts +197 -0
- package/dist/src/tricks/serialization-diversity.d.ts.map +1 -0
- package/dist/src/tricks/serialization-diversity.js +460 -0
- package/dist/src/tricks/serialization-diversity.js.map +1 -0
- package/dist/src/tui/app.d.ts +42 -0
- package/dist/src/tui/app.d.ts.map +1 -0
- package/dist/src/tui/app.js +1076 -0
- package/dist/src/tui/app.js.map +1 -0
- package/dist/src/tui/components/ApprovalDialog.d.ts +28 -0
- package/dist/src/tui/components/ApprovalDialog.d.ts.map +1 -0
- package/dist/src/tui/components/ApprovalDialog.js +59 -0
- package/dist/src/tui/components/ApprovalDialog.js.map +1 -0
- package/dist/src/tui/components/InputArea.d.ts +35 -0
- package/dist/src/tui/components/InputArea.d.ts.map +1 -0
- package/dist/src/tui/components/InputArea.js +144 -0
- package/dist/src/tui/components/InputArea.js.map +1 -0
- package/dist/src/tui/components/MessageItem.d.ts +28 -0
- package/dist/src/tui/components/MessageItem.d.ts.map +1 -0
- package/dist/src/tui/components/MessageItem.js +27 -0
- package/dist/src/tui/components/MessageItem.js.map +1 -0
- package/dist/src/tui/components/ScrollableBox.d.ts +41 -0
- package/dist/src/tui/components/ScrollableBox.d.ts.map +1 -0
- package/dist/src/tui/components/ScrollableBox.js +101 -0
- package/dist/src/tui/components/ScrollableBox.js.map +1 -0
- package/dist/src/tui/components/ToolCallItem.d.ts +33 -0
- package/dist/src/tui/components/ToolCallItem.d.ts.map +1 -0
- package/dist/src/tui/components/ToolCallItem.js +91 -0
- package/dist/src/tui/components/ToolCallItem.js.map +1 -0
- package/dist/src/tui/components/index.d.ts +13 -0
- package/dist/src/tui/components/index.d.ts.map +1 -0
- package/dist/src/tui/components/index.js +15 -0
- package/dist/src/tui/components/index.js.map +1 -0
- package/dist/src/tui/event-display.d.ts +19 -0
- package/dist/src/tui/event-display.d.ts.map +1 -0
- package/dist/src/tui/event-display.js +178 -0
- package/dist/src/tui/event-display.js.map +1 -0
- package/dist/src/tui/index.d.ts +105 -0
- package/dist/src/tui/index.d.ts.map +1 -0
- package/dist/src/tui/index.js +214 -0
- package/dist/src/tui/index.js.map +1 -0
- package/dist/src/tui/input/CommandPalette.d.ts +55 -0
- package/dist/src/tui/input/CommandPalette.d.ts.map +1 -0
- package/dist/src/tui/input/CommandPalette.js +135 -0
- package/dist/src/tui/input/CommandPalette.js.map +1 -0
- package/dist/src/tui/input/index.d.ts +7 -0
- package/dist/src/tui/input/index.d.ts.map +1 -0
- package/dist/src/tui/input/index.js +7 -0
- package/dist/src/tui/input/index.js.map +1 -0
- package/dist/src/tui/theme/index.d.ts +45 -0
- package/dist/src/tui/theme/index.d.ts.map +1 -0
- package/dist/src/tui/theme/index.js +215 -0
- package/dist/src/tui/theme/index.js.map +1 -0
- package/dist/src/tui/types.d.ts +214 -0
- package/dist/src/tui/types.d.ts.map +1 -0
- package/dist/src/tui/types.js +27 -0
- package/dist/src/tui/types.js.map +1 -0
- package/dist/src/types.d.ts +905 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +9 -0
- package/dist/src/types.js.map +1 -0
- package/package.json +89 -0
|
@@ -0,0 +1,667 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lesson 25: Production Agent
|
|
3
|
+
*
|
|
4
|
+
* The capstone agent that composes all features from previous lessons
|
|
5
|
+
* into a production-ready, modular system.
|
|
6
|
+
*
|
|
7
|
+
* Features integrated:
|
|
8
|
+
* - Hooks & Plugins (Lessons 10-11)
|
|
9
|
+
* - Rules System (Lesson 12)
|
|
10
|
+
* - Memory Systems (Lesson 14)
|
|
11
|
+
* - Planning & Reflection (Lessons 15-16)
|
|
12
|
+
* - Multi-Agent Coordination (Lesson 17)
|
|
13
|
+
* - ReAct Pattern (Lesson 18)
|
|
14
|
+
* - Observability (Lesson 19)
|
|
15
|
+
* - Sandboxing (Lesson 20)
|
|
16
|
+
* - Human-in-the-Loop (Lesson 21)
|
|
17
|
+
* - Model Routing (Lesson 22)
|
|
18
|
+
* - Execution Policies (Lesson 23)
|
|
19
|
+
* - Thread Management (Lesson 24)
|
|
20
|
+
*/
|
|
21
|
+
import type { ProductionAgentConfig, LLMProvider, Message, ToolDefinition, AgentState, AgentMetrics, AgentPlan, AgentResult, AgentEventListener, AgentRoleConfig } from './types.js';
|
|
22
|
+
import { type AgentMode } from './modes.js';
|
|
23
|
+
import { type LSPFileToolsConfig } from './agent-tools/index.js';
|
|
24
|
+
import { LSPManager, type ExecutionBudget, type AgentRole, type TeamTask, type TeamResult, type ReActTrace, type Checkpoint, type AgentDefinition, type LoadedAgent, type SpawnResult, type Skill, type PendingPlan } from './integrations/index.js';
|
|
25
|
+
import { TraceCollector } from './tracing/trace-collector.js';
|
|
26
|
+
/**
|
|
27
|
+
* Production-ready agent that composes all features.
|
|
28
|
+
*/
|
|
29
|
+
export declare class ProductionAgent {
|
|
30
|
+
private config;
|
|
31
|
+
private provider;
|
|
32
|
+
private tools;
|
|
33
|
+
private hooks;
|
|
34
|
+
private memory;
|
|
35
|
+
private planning;
|
|
36
|
+
private observability;
|
|
37
|
+
private safety;
|
|
38
|
+
private routing;
|
|
39
|
+
private multiAgent;
|
|
40
|
+
private react;
|
|
41
|
+
private executionPolicy;
|
|
42
|
+
private threadManager;
|
|
43
|
+
private rules;
|
|
44
|
+
private economics;
|
|
45
|
+
private agentRegistry;
|
|
46
|
+
private cancellation;
|
|
47
|
+
private resourceManager;
|
|
48
|
+
private lspManager;
|
|
49
|
+
private semanticCache;
|
|
50
|
+
private skillManager;
|
|
51
|
+
private contextEngineering;
|
|
52
|
+
private codebaseContext;
|
|
53
|
+
private traceCollector;
|
|
54
|
+
private modeManager;
|
|
55
|
+
private pendingPlanManager;
|
|
56
|
+
private toolResolver;
|
|
57
|
+
private initPromises;
|
|
58
|
+
private initComplete;
|
|
59
|
+
private state;
|
|
60
|
+
constructor(userConfig: Partial<ProductionAgentConfig> & {
|
|
61
|
+
provider: LLMProvider;
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* Initialize all enabled features.
|
|
65
|
+
*/
|
|
66
|
+
private initializeFeatures;
|
|
67
|
+
/**
|
|
68
|
+
* Ensure all async initialization is complete before running.
|
|
69
|
+
* Call this at the start of run() to prevent race conditions.
|
|
70
|
+
*/
|
|
71
|
+
ensureReady(): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Run the agent on a task.
|
|
74
|
+
*/
|
|
75
|
+
run(task: string): Promise<AgentResult>;
|
|
76
|
+
/**
|
|
77
|
+
* Create and execute a plan for complex tasks.
|
|
78
|
+
*/
|
|
79
|
+
private createAndExecutePlan;
|
|
80
|
+
/**
|
|
81
|
+
* Execute a task directly without planning.
|
|
82
|
+
*/
|
|
83
|
+
private executeDirectly;
|
|
84
|
+
/**
|
|
85
|
+
* Build messages for LLM call.
|
|
86
|
+
*
|
|
87
|
+
* Uses cache-aware system prompt building (Trick P) when contextEngineering
|
|
88
|
+
* is available, ensuring static content is ordered for optimal KV-cache reuse.
|
|
89
|
+
*/
|
|
90
|
+
private buildMessages;
|
|
91
|
+
/**
|
|
92
|
+
* Call the LLM with routing and observability.
|
|
93
|
+
*/
|
|
94
|
+
private callLLM;
|
|
95
|
+
/**
|
|
96
|
+
* Execute tool calls with safety checks and execution policy enforcement.
|
|
97
|
+
*/
|
|
98
|
+
private executeToolCalls;
|
|
99
|
+
/**
|
|
100
|
+
* Select relevant code synchronously using cached repo analysis.
|
|
101
|
+
* Returns empty result if analysis hasn't been run yet.
|
|
102
|
+
*/
|
|
103
|
+
private selectRelevantCodeSync;
|
|
104
|
+
/**
|
|
105
|
+
* Analyze the codebase (async). Call this once at startup for optimal performance.
|
|
106
|
+
*/
|
|
107
|
+
analyzeCodebase(root?: string): Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
* Emit an event.
|
|
110
|
+
*/
|
|
111
|
+
private emit;
|
|
112
|
+
/**
|
|
113
|
+
* Create a brief summary of a tool result for insight display.
|
|
114
|
+
*/
|
|
115
|
+
private summarizeToolResult;
|
|
116
|
+
/**
|
|
117
|
+
* Format tool arguments for plan display.
|
|
118
|
+
*/
|
|
119
|
+
private formatToolArgsForPlan;
|
|
120
|
+
/**
|
|
121
|
+
* Update memory statistics.
|
|
122
|
+
* Memory stats are retrieved via memory manager, not stored in state.
|
|
123
|
+
*/
|
|
124
|
+
private updateMemoryStats;
|
|
125
|
+
/**
|
|
126
|
+
* Get current metrics.
|
|
127
|
+
*/
|
|
128
|
+
getMetrics(): AgentResult['metrics'];
|
|
129
|
+
/**
|
|
130
|
+
* Get current state.
|
|
131
|
+
*/
|
|
132
|
+
getState(): AgentState;
|
|
133
|
+
/**
|
|
134
|
+
* Get the trace collector (Lesson 26).
|
|
135
|
+
* Returns null if trace capture is not enabled.
|
|
136
|
+
*/
|
|
137
|
+
getTraceCollector(): TraceCollector | null;
|
|
138
|
+
/**
|
|
139
|
+
* Subscribe to events.
|
|
140
|
+
*/
|
|
141
|
+
subscribe(listener: AgentEventListener): () => void;
|
|
142
|
+
/**
|
|
143
|
+
* Reset agent state.
|
|
144
|
+
*/
|
|
145
|
+
reset(): void;
|
|
146
|
+
/**
|
|
147
|
+
* Load messages from a previous session.
|
|
148
|
+
* @deprecated Use loadState() for full state restoration
|
|
149
|
+
*/
|
|
150
|
+
loadMessages(messages: Message[]): void;
|
|
151
|
+
/**
|
|
152
|
+
* Serializable state for checkpoints (excludes non-serializable fields).
|
|
153
|
+
*/
|
|
154
|
+
getSerializableState(): {
|
|
155
|
+
messages: Message[];
|
|
156
|
+
iteration: number;
|
|
157
|
+
metrics: AgentMetrics;
|
|
158
|
+
plan?: AgentPlan;
|
|
159
|
+
memoryContext?: string[];
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Validate checkpoint data before loading.
|
|
163
|
+
* Returns validation result with errors and warnings.
|
|
164
|
+
*/
|
|
165
|
+
private validateCheckpoint;
|
|
166
|
+
/**
|
|
167
|
+
* Load full state from a checkpoint.
|
|
168
|
+
* Restores messages, iteration, metrics, plan, and memory context.
|
|
169
|
+
* Validates checkpoint data before loading to prevent corrupted state.
|
|
170
|
+
*/
|
|
171
|
+
loadState(savedState: {
|
|
172
|
+
messages: Message[];
|
|
173
|
+
iteration?: number;
|
|
174
|
+
metrics?: Partial<AgentMetrics>;
|
|
175
|
+
plan?: AgentPlan;
|
|
176
|
+
memoryContext?: string[];
|
|
177
|
+
}): void;
|
|
178
|
+
/**
|
|
179
|
+
* Add a tool dynamically.
|
|
180
|
+
*/
|
|
181
|
+
addTool(tool: ToolDefinition): void;
|
|
182
|
+
/**
|
|
183
|
+
* Remove a tool.
|
|
184
|
+
*/
|
|
185
|
+
removeTool(name: string): void;
|
|
186
|
+
/**
|
|
187
|
+
* Compact tool outputs to save context.
|
|
188
|
+
* Called after model produces a response - replaces verbose tool outputs
|
|
189
|
+
* with compact summaries since the model has already "consumed" them.
|
|
190
|
+
*/
|
|
191
|
+
private compactToolOutputs;
|
|
192
|
+
/**
|
|
193
|
+
* Estimate total tokens in a message array.
|
|
194
|
+
* Uses ~4 chars per token heuristic for fast estimation.
|
|
195
|
+
*/
|
|
196
|
+
private estimateContextTokens;
|
|
197
|
+
/**
|
|
198
|
+
* Get audit log (if human-in-loop is enabled).
|
|
199
|
+
*/
|
|
200
|
+
getAuditLog(): unknown[];
|
|
201
|
+
/**
|
|
202
|
+
* Run a task with a multi-agent team.
|
|
203
|
+
* Requires multiAgent to be enabled in config.
|
|
204
|
+
*/
|
|
205
|
+
runWithTeam(task: TeamTask, roles: AgentRole[]): Promise<TeamResult>;
|
|
206
|
+
/**
|
|
207
|
+
* Add a role to the multi-agent manager.
|
|
208
|
+
*/
|
|
209
|
+
addRole(role: AgentRole): void;
|
|
210
|
+
/**
|
|
211
|
+
* Run a task using the ReAct (Reasoning + Acting) pattern.
|
|
212
|
+
* Provides explicit reasoning traces.
|
|
213
|
+
*/
|
|
214
|
+
runWithReAct(task: string): Promise<ReActTrace>;
|
|
215
|
+
/**
|
|
216
|
+
* Get the ReAct trace formatted as a string.
|
|
217
|
+
*/
|
|
218
|
+
formatReActTrace(trace: ReActTrace): string;
|
|
219
|
+
/**
|
|
220
|
+
* Create a permission grant for a tool.
|
|
221
|
+
* Allows temporary, scoped permissions.
|
|
222
|
+
*/
|
|
223
|
+
createPermissionGrant(options: {
|
|
224
|
+
toolName: string;
|
|
225
|
+
argPattern?: Record<string, unknown>;
|
|
226
|
+
grantedBy?: 'user' | 'system' | 'inferred';
|
|
227
|
+
expiresAt?: Date;
|
|
228
|
+
maxUsages?: number;
|
|
229
|
+
reason?: string;
|
|
230
|
+
}): string;
|
|
231
|
+
/**
|
|
232
|
+
* Revoke a permission grant.
|
|
233
|
+
*/
|
|
234
|
+
revokePermissionGrant(grantId: string): boolean;
|
|
235
|
+
/**
|
|
236
|
+
* Get active permission grants.
|
|
237
|
+
*/
|
|
238
|
+
getActiveGrants(): unknown[];
|
|
239
|
+
/**
|
|
240
|
+
* Get current budget usage.
|
|
241
|
+
*/
|
|
242
|
+
getBudgetUsage(): {
|
|
243
|
+
tokens: number;
|
|
244
|
+
cost: number;
|
|
245
|
+
duration: number;
|
|
246
|
+
iterations: number;
|
|
247
|
+
percentUsed: number;
|
|
248
|
+
} | null;
|
|
249
|
+
/**
|
|
250
|
+
* Get current budget limits.
|
|
251
|
+
*/
|
|
252
|
+
getBudgetLimits(): {
|
|
253
|
+
maxTokens: number;
|
|
254
|
+
maxCost: number;
|
|
255
|
+
maxDuration: number;
|
|
256
|
+
maxIterations: number;
|
|
257
|
+
} | null;
|
|
258
|
+
/**
|
|
259
|
+
* Get progress tracking info.
|
|
260
|
+
*/
|
|
261
|
+
getProgress(): {
|
|
262
|
+
filesRead: number;
|
|
263
|
+
filesModified: number;
|
|
264
|
+
commandsRun: number;
|
|
265
|
+
isStuck: boolean;
|
|
266
|
+
} | null;
|
|
267
|
+
/**
|
|
268
|
+
* Extend the budget limits.
|
|
269
|
+
*/
|
|
270
|
+
extendBudget(extension: Partial<ExecutionBudget>): void;
|
|
271
|
+
/**
|
|
272
|
+
* Create a checkpoint of the current state.
|
|
273
|
+
* Useful before risky operations.
|
|
274
|
+
*/
|
|
275
|
+
createCheckpoint(label?: string): Checkpoint;
|
|
276
|
+
/**
|
|
277
|
+
* Restore from a checkpoint.
|
|
278
|
+
*/
|
|
279
|
+
restoreCheckpoint(checkpointId: string): boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Rollback the conversation by N messages.
|
|
282
|
+
*/
|
|
283
|
+
rollback(steps: number): boolean;
|
|
284
|
+
/**
|
|
285
|
+
* Fork the current conversation into a new branch.
|
|
286
|
+
* Useful for exploring alternatives.
|
|
287
|
+
*/
|
|
288
|
+
fork(name: string): string;
|
|
289
|
+
/**
|
|
290
|
+
* Switch to a different thread.
|
|
291
|
+
*/
|
|
292
|
+
switchThread(threadId: string): boolean;
|
|
293
|
+
/**
|
|
294
|
+
* Get all threads.
|
|
295
|
+
*/
|
|
296
|
+
getAllThreads(): unknown[];
|
|
297
|
+
/**
|
|
298
|
+
* Get checkpoints for the current thread.
|
|
299
|
+
*/
|
|
300
|
+
getCheckpoints(): Checkpoint[];
|
|
301
|
+
/**
|
|
302
|
+
* Automatically create checkpoint if enabled in config.
|
|
303
|
+
* Safe to call after each Q&A cycle - handles all checks internally.
|
|
304
|
+
* @param force - If true, bypasses frequency check and always creates checkpoint
|
|
305
|
+
* @returns The created checkpoint, or null if conditions not met
|
|
306
|
+
*/
|
|
307
|
+
autoCheckpoint(force?: boolean): Checkpoint | null;
|
|
308
|
+
/**
|
|
309
|
+
* Get all registered agents (built-in + user-defined).
|
|
310
|
+
*/
|
|
311
|
+
getAgents(): LoadedAgent[];
|
|
312
|
+
/**
|
|
313
|
+
* Get a specific agent by name.
|
|
314
|
+
*/
|
|
315
|
+
getAgent(name: string): LoadedAgent | undefined;
|
|
316
|
+
/**
|
|
317
|
+
* Find agents matching a natural language query.
|
|
318
|
+
* Use this for NL-based agent selection.
|
|
319
|
+
*/
|
|
320
|
+
findAgentsForTask(query: string, limit?: number): LoadedAgent[];
|
|
321
|
+
/**
|
|
322
|
+
* Register a custom agent at runtime.
|
|
323
|
+
*/
|
|
324
|
+
registerAgent(definition: AgentDefinition): void;
|
|
325
|
+
/**
|
|
326
|
+
* Unregister an agent.
|
|
327
|
+
*/
|
|
328
|
+
unregisterAgent(name: string): boolean;
|
|
329
|
+
/**
|
|
330
|
+
* Spawn an agent to execute a task.
|
|
331
|
+
* Returns the result when the agent completes.
|
|
332
|
+
*/
|
|
333
|
+
spawnAgent(agentName: string, task: string): Promise<SpawnResult>;
|
|
334
|
+
/**
|
|
335
|
+
* Get a formatted list of available agents.
|
|
336
|
+
*/
|
|
337
|
+
formatAgentList(): string;
|
|
338
|
+
/**
|
|
339
|
+
* Use LLM to suggest the best agent(s) for a given task.
|
|
340
|
+
* Returns ranked suggestions with confidence scores.
|
|
341
|
+
*/
|
|
342
|
+
suggestAgentForTask(task: string): Promise<{
|
|
343
|
+
suggestions: Array<{
|
|
344
|
+
agent: LoadedAgent;
|
|
345
|
+
confidence: number;
|
|
346
|
+
reason: string;
|
|
347
|
+
}>;
|
|
348
|
+
shouldDelegate: boolean;
|
|
349
|
+
delegateAgent?: string;
|
|
350
|
+
}>;
|
|
351
|
+
/**
|
|
352
|
+
* Run a task with automatic agent routing.
|
|
353
|
+
* If a specialized agent is highly suited, delegates to it.
|
|
354
|
+
* Otherwise runs with the main agent.
|
|
355
|
+
*/
|
|
356
|
+
runWithAutoRouting(task: string, options?: {
|
|
357
|
+
confidenceThreshold?: number;
|
|
358
|
+
confirmDelegate?: (agent: LoadedAgent, reason: string) => Promise<boolean>;
|
|
359
|
+
}): Promise<AgentResult | SpawnResult>;
|
|
360
|
+
/**
|
|
361
|
+
* Request cancellation of the current operation.
|
|
362
|
+
* The agent will attempt to stop gracefully.
|
|
363
|
+
*/
|
|
364
|
+
cancel(reason?: string): void;
|
|
365
|
+
/**
|
|
366
|
+
* Check if cancellation has been requested.
|
|
367
|
+
*/
|
|
368
|
+
isCancelled(): boolean;
|
|
369
|
+
/**
|
|
370
|
+
* Get current resource usage.
|
|
371
|
+
*/
|
|
372
|
+
getResourceUsage(): import("./integrations/resources.js").ResourceUsage | null;
|
|
373
|
+
/**
|
|
374
|
+
* Get formatted resource status string.
|
|
375
|
+
*/
|
|
376
|
+
getResourceStatus(): string | null;
|
|
377
|
+
/**
|
|
378
|
+
* Start LSP servers for the workspace.
|
|
379
|
+
* Auto-detects languages based on project files.
|
|
380
|
+
*/
|
|
381
|
+
startLSP(workspaceRoot?: string): Promise<string[]>;
|
|
382
|
+
/**
|
|
383
|
+
* Get code definition location.
|
|
384
|
+
*/
|
|
385
|
+
getLSPDefinition(file: string, line: number, col: number): Promise<import("./integrations/lsp.js").LSPLocation | null>;
|
|
386
|
+
/**
|
|
387
|
+
* Get code completions.
|
|
388
|
+
*/
|
|
389
|
+
getLSPCompletions(file: string, line: number, col: number): Promise<never[] | import("./integrations/lsp.js").LSPCompletion[]>;
|
|
390
|
+
/**
|
|
391
|
+
* Get hover documentation.
|
|
392
|
+
*/
|
|
393
|
+
getLSPHover(file: string, line: number, col: number): Promise<string | null>;
|
|
394
|
+
/**
|
|
395
|
+
* Get all references to a symbol.
|
|
396
|
+
*/
|
|
397
|
+
getLSPReferences(file: string, line: number, col: number): Promise<never[] | import("./integrations/lsp.js").LSPLocation[]>;
|
|
398
|
+
/**
|
|
399
|
+
* Get active LSP servers.
|
|
400
|
+
*/
|
|
401
|
+
getActiveLSPServers(): string[];
|
|
402
|
+
/**
|
|
403
|
+
* Get LSP diagnostics for a file.
|
|
404
|
+
*/
|
|
405
|
+
getLSPDiagnostics(file: string): import("./integrations/lsp.js").LSPDiagnostic[];
|
|
406
|
+
/**
|
|
407
|
+
* Get the LSP manager instance (for advanced use).
|
|
408
|
+
*/
|
|
409
|
+
getLSPManager(): LSPManager | null;
|
|
410
|
+
/**
|
|
411
|
+
* Get LSP-aware file tools.
|
|
412
|
+
* These tools provide diagnostic feedback after edit/write operations.
|
|
413
|
+
* Returns the tools if LSP is enabled, empty array otherwise.
|
|
414
|
+
*/
|
|
415
|
+
getLSPFileTools(options?: Partial<Omit<LSPFileToolsConfig, 'lspManager'>>): ToolDefinition[];
|
|
416
|
+
/**
|
|
417
|
+
* Replace standard file tools with LSP-aware versions.
|
|
418
|
+
* Call this after enabling LSP to get diagnostic feedback on edits.
|
|
419
|
+
*/
|
|
420
|
+
enableLSPFileTools(options?: Partial<Omit<LSPFileToolsConfig, 'lspManager'>>): void;
|
|
421
|
+
/**
|
|
422
|
+
* Check if a cached response exists for a similar query.
|
|
423
|
+
*/
|
|
424
|
+
getCachedResponse(query: string): Promise<{
|
|
425
|
+
response: string;
|
|
426
|
+
similarity: number;
|
|
427
|
+
} | null>;
|
|
428
|
+
/**
|
|
429
|
+
* Cache an LLM response for a query.
|
|
430
|
+
*/
|
|
431
|
+
cacheResponse(query: string, response: string, metadata?: Record<string, unknown>): Promise<string | null>;
|
|
432
|
+
/**
|
|
433
|
+
* Check if a similar query exists in cache (without retrieving).
|
|
434
|
+
*/
|
|
435
|
+
hasCachedQuery(query: string): Promise<boolean>;
|
|
436
|
+
/**
|
|
437
|
+
* Get cache statistics.
|
|
438
|
+
*/
|
|
439
|
+
getCacheStats(): import("./integrations/semantic-cache.js").CacheStats;
|
|
440
|
+
/**
|
|
441
|
+
* Clear the semantic cache.
|
|
442
|
+
*/
|
|
443
|
+
clearCache(): void;
|
|
444
|
+
/**
|
|
445
|
+
* Get the current agent mode.
|
|
446
|
+
*/
|
|
447
|
+
getMode(): AgentMode;
|
|
448
|
+
/**
|
|
449
|
+
* Set the agent mode.
|
|
450
|
+
*/
|
|
451
|
+
setMode(mode: AgentMode | string): void;
|
|
452
|
+
/**
|
|
453
|
+
* Cycle to the next mode (for Tab key).
|
|
454
|
+
*/
|
|
455
|
+
cycleMode(): AgentMode;
|
|
456
|
+
/**
|
|
457
|
+
* Get all registered tools.
|
|
458
|
+
*/
|
|
459
|
+
getTools(): ToolDefinition[];
|
|
460
|
+
/**
|
|
461
|
+
* Get available tools filtered by current mode.
|
|
462
|
+
*/
|
|
463
|
+
getModeFilteredTools(): ToolDefinition[];
|
|
464
|
+
/**
|
|
465
|
+
* Get mode info for display.
|
|
466
|
+
*/
|
|
467
|
+
getModeInfo(): {
|
|
468
|
+
name: string;
|
|
469
|
+
icon: string;
|
|
470
|
+
color: string;
|
|
471
|
+
};
|
|
472
|
+
/**
|
|
473
|
+
* Format mode for terminal prompt.
|
|
474
|
+
*/
|
|
475
|
+
formatModePrompt(): string;
|
|
476
|
+
/**
|
|
477
|
+
* Get list of all available modes.
|
|
478
|
+
*/
|
|
479
|
+
getAvailableModes(): string;
|
|
480
|
+
/**
|
|
481
|
+
* Get system prompt with mode-specific additions.
|
|
482
|
+
*/
|
|
483
|
+
getSystemPromptWithMode(): string;
|
|
484
|
+
/**
|
|
485
|
+
* Toggle between build and plan modes.
|
|
486
|
+
*/
|
|
487
|
+
togglePlanMode(): AgentMode;
|
|
488
|
+
/**
|
|
489
|
+
* Get the current pending plan.
|
|
490
|
+
*/
|
|
491
|
+
getPendingPlan(): PendingPlan | null;
|
|
492
|
+
/**
|
|
493
|
+
* Check if there's a pending plan awaiting approval.
|
|
494
|
+
*/
|
|
495
|
+
hasPendingPlan(): boolean;
|
|
496
|
+
/**
|
|
497
|
+
* Get formatted plan for display.
|
|
498
|
+
*/
|
|
499
|
+
formatPendingPlan(): string;
|
|
500
|
+
/**
|
|
501
|
+
* Approve the pending plan and execute the changes.
|
|
502
|
+
* @param count - If provided, only approve first N changes
|
|
503
|
+
* @returns Result of executing the approved changes
|
|
504
|
+
*/
|
|
505
|
+
approvePlan(count?: number): Promise<{
|
|
506
|
+
success: boolean;
|
|
507
|
+
executed: number;
|
|
508
|
+
errors: string[];
|
|
509
|
+
}>;
|
|
510
|
+
/**
|
|
511
|
+
* Reject the pending plan and discard all proposed changes.
|
|
512
|
+
*/
|
|
513
|
+
rejectPlan(): void;
|
|
514
|
+
/**
|
|
515
|
+
* Clear the pending plan without emitting rejection event.
|
|
516
|
+
*/
|
|
517
|
+
clearPlan(): void;
|
|
518
|
+
/**
|
|
519
|
+
* Get the number of pending changes.
|
|
520
|
+
*/
|
|
521
|
+
getPendingChangeCount(): number;
|
|
522
|
+
/**
|
|
523
|
+
* Get all loaded skills.
|
|
524
|
+
*/
|
|
525
|
+
getSkills(): Skill[];
|
|
526
|
+
/**
|
|
527
|
+
* Get a specific skill by name.
|
|
528
|
+
*/
|
|
529
|
+
getSkill(name: string): Skill | undefined;
|
|
530
|
+
/**
|
|
531
|
+
* Activate a skill by name.
|
|
532
|
+
*/
|
|
533
|
+
activateSkill(name: string): boolean;
|
|
534
|
+
/**
|
|
535
|
+
* Deactivate a skill by name.
|
|
536
|
+
*/
|
|
537
|
+
deactivateSkill(name: string): boolean;
|
|
538
|
+
/**
|
|
539
|
+
* Get currently active skills.
|
|
540
|
+
*/
|
|
541
|
+
getActiveSkills(): Skill[];
|
|
542
|
+
/**
|
|
543
|
+
* Check if a skill is active.
|
|
544
|
+
*/
|
|
545
|
+
isSkillActive(name: string): boolean;
|
|
546
|
+
/**
|
|
547
|
+
* Find skills matching a query (for auto-activation).
|
|
548
|
+
*/
|
|
549
|
+
findMatchingSkills(query: string): Skill[];
|
|
550
|
+
/**
|
|
551
|
+
* Get formatted list of available skills.
|
|
552
|
+
*/
|
|
553
|
+
formatSkillList(): string;
|
|
554
|
+
/**
|
|
555
|
+
* Cleanup resources.
|
|
556
|
+
*/
|
|
557
|
+
cleanup(): Promise<void>;
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Create a production agent with the given configuration.
|
|
561
|
+
*/
|
|
562
|
+
export declare function createProductionAgent(config: Partial<ProductionAgentConfig> & {
|
|
563
|
+
provider: LLMProvider;
|
|
564
|
+
}): ProductionAgent;
|
|
565
|
+
/**
|
|
566
|
+
* Builder for creating customized production agents.
|
|
567
|
+
*/
|
|
568
|
+
export declare class ProductionAgentBuilder {
|
|
569
|
+
private config;
|
|
570
|
+
/**
|
|
571
|
+
* Set the LLM provider.
|
|
572
|
+
*/
|
|
573
|
+
provider(provider: LLMProvider): this;
|
|
574
|
+
/**
|
|
575
|
+
* Set the model.
|
|
576
|
+
*/
|
|
577
|
+
model(model: string): this;
|
|
578
|
+
/**
|
|
579
|
+
* Set the system prompt.
|
|
580
|
+
*/
|
|
581
|
+
systemPrompt(prompt: string): this;
|
|
582
|
+
/**
|
|
583
|
+
* Add tools.
|
|
584
|
+
*/
|
|
585
|
+
tools(tools: ToolDefinition[]): this;
|
|
586
|
+
/**
|
|
587
|
+
* Configure hooks.
|
|
588
|
+
*/
|
|
589
|
+
hooks(config: ProductionAgentConfig['hooks']): this;
|
|
590
|
+
/**
|
|
591
|
+
* Configure plugins.
|
|
592
|
+
*/
|
|
593
|
+
plugins(config: ProductionAgentConfig['plugins']): this;
|
|
594
|
+
/**
|
|
595
|
+
* Configure memory.
|
|
596
|
+
*/
|
|
597
|
+
memory(config: ProductionAgentConfig['memory']): this;
|
|
598
|
+
/**
|
|
599
|
+
* Configure planning.
|
|
600
|
+
*/
|
|
601
|
+
planning(config: ProductionAgentConfig['planning']): this;
|
|
602
|
+
/**
|
|
603
|
+
* Configure reflection.
|
|
604
|
+
*/
|
|
605
|
+
reflection(config: ProductionAgentConfig['reflection']): this;
|
|
606
|
+
/**
|
|
607
|
+
* Configure observability.
|
|
608
|
+
*/
|
|
609
|
+
observability(config: ProductionAgentConfig['observability']): this;
|
|
610
|
+
/**
|
|
611
|
+
* Configure sandbox.
|
|
612
|
+
*/
|
|
613
|
+
sandbox(config: ProductionAgentConfig['sandbox']): this;
|
|
614
|
+
/**
|
|
615
|
+
* Configure human-in-the-loop.
|
|
616
|
+
*/
|
|
617
|
+
humanInLoop(config: ProductionAgentConfig['humanInLoop']): this;
|
|
618
|
+
/**
|
|
619
|
+
* Configure routing.
|
|
620
|
+
*/
|
|
621
|
+
routing(config: ProductionAgentConfig['routing']): this;
|
|
622
|
+
/**
|
|
623
|
+
* Configure multi-agent coordination (Lesson 17).
|
|
624
|
+
*/
|
|
625
|
+
multiAgent(config: ProductionAgentConfig['multiAgent']): this;
|
|
626
|
+
/**
|
|
627
|
+
* Add a role to multi-agent config.
|
|
628
|
+
*/
|
|
629
|
+
addRole(role: AgentRoleConfig): this;
|
|
630
|
+
/**
|
|
631
|
+
* Configure ReAct pattern (Lesson 18).
|
|
632
|
+
*/
|
|
633
|
+
react(config: ProductionAgentConfig['react']): this;
|
|
634
|
+
/**
|
|
635
|
+
* Configure execution policies (Lesson 23).
|
|
636
|
+
*/
|
|
637
|
+
executionPolicy(config: ProductionAgentConfig['executionPolicy']): this;
|
|
638
|
+
/**
|
|
639
|
+
* Configure thread management (Lesson 24).
|
|
640
|
+
*/
|
|
641
|
+
threads(config: ProductionAgentConfig['threads']): this;
|
|
642
|
+
/**
|
|
643
|
+
* Configure skills system.
|
|
644
|
+
*/
|
|
645
|
+
skills(config: ProductionAgentConfig['skills']): this;
|
|
646
|
+
/**
|
|
647
|
+
* Set max iterations.
|
|
648
|
+
*/
|
|
649
|
+
maxIterations(max: number): this;
|
|
650
|
+
/**
|
|
651
|
+
* Set timeout.
|
|
652
|
+
*/
|
|
653
|
+
timeout(ms: number): this;
|
|
654
|
+
/**
|
|
655
|
+
* Disable a feature.
|
|
656
|
+
*/
|
|
657
|
+
disable(feature: keyof Omit<ProductionAgentConfig, 'provider' | 'tools' | 'systemPrompt' | 'model' | 'maxIterations' | 'timeout'>): this;
|
|
658
|
+
/**
|
|
659
|
+
* Build the agent.
|
|
660
|
+
*/
|
|
661
|
+
build(): ProductionAgent;
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* Start building a production agent.
|
|
665
|
+
*/
|
|
666
|
+
export declare function buildAgent(): ProductionAgentBuilder;
|
|
667
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,WAAW,EACX,OAAO,EAGP,cAAc,EACd,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EAEX,kBAAkB,EAClB,eAAe,EAGhB,MAAM,YAAY,CAAC;AAQpB,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EA0BL,UAAU,EAaV,KAAK,eAAe,EACpB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