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,293 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Docker Sandbox (Linux/Cross-platform)
|
|
3
|
+
*
|
|
4
|
+
* Uses Docker containers for process isolation and resource limiting.
|
|
5
|
+
* Works on any platform with Docker installed.
|
|
6
|
+
*
|
|
7
|
+
* Key features:
|
|
8
|
+
* - Complete filesystem isolation
|
|
9
|
+
* - Network namespace separation
|
|
10
|
+
* - CPU and memory limits via cgroups
|
|
11
|
+
* - Capability dropping
|
|
12
|
+
*
|
|
13
|
+
* Note: Uses spawn() to invoke docker CLI commands with proper argument
|
|
14
|
+
* arrays - the sandbox provides security via containerization.
|
|
15
|
+
*/
|
|
16
|
+
import { spawn, execSync } from 'child_process';
|
|
17
|
+
// =============================================================================
|
|
18
|
+
// DOCKER SANDBOX
|
|
19
|
+
// =============================================================================
|
|
20
|
+
/**
|
|
21
|
+
* Docker-based sandbox implementation.
|
|
22
|
+
*/
|
|
23
|
+
export class DockerSandbox {
|
|
24
|
+
options;
|
|
25
|
+
image;
|
|
26
|
+
available = null;
|
|
27
|
+
containerId = null;
|
|
28
|
+
constructor(options, image = 'node:20-slim') {
|
|
29
|
+
this.options = options;
|
|
30
|
+
this.image = image;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Execute a command inside a Docker container.
|
|
34
|
+
*
|
|
35
|
+
* Uses spawn with explicit argument arrays for security.
|
|
36
|
+
*/
|
|
37
|
+
async execute(command, options) {
|
|
38
|
+
const mergedOptions = { ...this.options, ...options };
|
|
39
|
+
const timeout = mergedOptions.timeout ?? 60000;
|
|
40
|
+
const workDir = mergedOptions.workingDir ?? process.cwd();
|
|
41
|
+
// Build docker run arguments
|
|
42
|
+
const dockerArgs = this.buildDockerArgs(command, mergedOptions, workDir);
|
|
43
|
+
return new Promise((resolve) => {
|
|
44
|
+
const proc = spawn('docker', dockerArgs, {
|
|
45
|
+
cwd: workDir,
|
|
46
|
+
env: process.env,
|
|
47
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
48
|
+
});
|
|
49
|
+
let stdout = '';
|
|
50
|
+
let stderr = '';
|
|
51
|
+
let killed = false;
|
|
52
|
+
let timedOut = false;
|
|
53
|
+
const timer = setTimeout(() => {
|
|
54
|
+
timedOut = true;
|
|
55
|
+
killed = true;
|
|
56
|
+
proc.kill('SIGKILL');
|
|
57
|
+
// Also try to stop the container
|
|
58
|
+
if (this.containerId) {
|
|
59
|
+
try {
|
|
60
|
+
execSync(`docker kill ${this.containerId}`, { stdio: 'pipe' });
|
|
61
|
+
}
|
|
62
|
+
catch {
|
|
63
|
+
// Ignore - container may have already exited
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}, timeout);
|
|
67
|
+
proc.stdout?.on('data', (data) => {
|
|
68
|
+
stdout += data.toString();
|
|
69
|
+
});
|
|
70
|
+
proc.stderr?.on('data', (data) => {
|
|
71
|
+
stderr += data.toString();
|
|
72
|
+
});
|
|
73
|
+
proc.on('close', (code) => {
|
|
74
|
+
clearTimeout(timer);
|
|
75
|
+
this.containerId = null;
|
|
76
|
+
resolve({
|
|
77
|
+
stdout,
|
|
78
|
+
stderr,
|
|
79
|
+
exitCode: code ?? 1,
|
|
80
|
+
killed,
|
|
81
|
+
timedOut,
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
proc.on('error', (err) => {
|
|
85
|
+
clearTimeout(timer);
|
|
86
|
+
this.containerId = null;
|
|
87
|
+
resolve({
|
|
88
|
+
stdout,
|
|
89
|
+
stderr,
|
|
90
|
+
exitCode: 1,
|
|
91
|
+
killed: false,
|
|
92
|
+
timedOut: false,
|
|
93
|
+
error: err.message,
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Build docker run arguments.
|
|
100
|
+
*/
|
|
101
|
+
buildDockerArgs(command, options, workDir) {
|
|
102
|
+
const args = ['run', '--rm'];
|
|
103
|
+
// Security: drop all capabilities
|
|
104
|
+
args.push('--cap-drop=ALL');
|
|
105
|
+
// Security: no new privileges
|
|
106
|
+
args.push('--security-opt=no-new-privileges');
|
|
107
|
+
// Network isolation
|
|
108
|
+
if (!options.networkAllowed) {
|
|
109
|
+
args.push('--network=none');
|
|
110
|
+
}
|
|
111
|
+
// Memory limit
|
|
112
|
+
if (options.maxMemoryMB) {
|
|
113
|
+
args.push(`--memory=${options.maxMemoryMB}m`);
|
|
114
|
+
args.push(`--memory-swap=${options.maxMemoryMB}m`); // No swap
|
|
115
|
+
}
|
|
116
|
+
// CPU limit
|
|
117
|
+
if (options.maxCpuSeconds) {
|
|
118
|
+
// Convert CPU seconds to CPU period/quota
|
|
119
|
+
// For simplicity, use cpus limit
|
|
120
|
+
args.push('--cpus=1');
|
|
121
|
+
}
|
|
122
|
+
// Mount working directory
|
|
123
|
+
args.push('-v', `${workDir}:/workspace:rw`);
|
|
124
|
+
// Mount additional readable paths
|
|
125
|
+
for (const path of options.readablePaths ?? []) {
|
|
126
|
+
if (path !== '/') {
|
|
127
|
+
const resolvedPath = this.resolvePath(path, workDir);
|
|
128
|
+
// Only mount if the path exists and is different from workspace
|
|
129
|
+
if (resolvedPath !== workDir) {
|
|
130
|
+
args.push('-v', `${resolvedPath}:${resolvedPath}:ro`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
// Mount additional writable paths
|
|
135
|
+
for (const path of options.writablePaths ?? []) {
|
|
136
|
+
const resolvedPath = this.resolvePath(path, workDir);
|
|
137
|
+
// Only mount if different from workspace
|
|
138
|
+
if (resolvedPath !== workDir && path !== '.') {
|
|
139
|
+
args.push('-v', `${resolvedPath}:${resolvedPath}:rw`);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
// Set working directory inside container
|
|
143
|
+
args.push('-w', '/workspace');
|
|
144
|
+
// Set environment variables
|
|
145
|
+
for (const [key, value] of Object.entries(options.env ?? {})) {
|
|
146
|
+
args.push('-e', `${key}=${value}`);
|
|
147
|
+
}
|
|
148
|
+
// Pass through common env vars
|
|
149
|
+
const passthrough = ['HOME', 'USER', 'PATH', 'NODE_ENV', 'npm_config_cache'];
|
|
150
|
+
for (const key of passthrough) {
|
|
151
|
+
if (process.env[key]) {
|
|
152
|
+
args.push('-e', `${key}=${process.env[key]}`);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
// Image
|
|
156
|
+
args.push(this.image);
|
|
157
|
+
// Command (use sh -c for shell interpretation)
|
|
158
|
+
args.push('sh', '-c', command);
|
|
159
|
+
return args;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Resolve a path relative to working directory.
|
|
163
|
+
*/
|
|
164
|
+
resolvePath(path, workDir) {
|
|
165
|
+
if (path.startsWith('/')) {
|
|
166
|
+
return path;
|
|
167
|
+
}
|
|
168
|
+
if (path === '.') {
|
|
169
|
+
return workDir;
|
|
170
|
+
}
|
|
171
|
+
return `${workDir}/${path}`;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Check if Docker is available.
|
|
175
|
+
*/
|
|
176
|
+
async isAvailable() {
|
|
177
|
+
if (this.available !== null) {
|
|
178
|
+
return this.available;
|
|
179
|
+
}
|
|
180
|
+
try {
|
|
181
|
+
// Check if docker command exists and daemon is running
|
|
182
|
+
execSync('docker info', { stdio: 'pipe' });
|
|
183
|
+
this.available = true;
|
|
184
|
+
return true;
|
|
185
|
+
}
|
|
186
|
+
catch {
|
|
187
|
+
this.available = false;
|
|
188
|
+
return false;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Get sandbox type.
|
|
193
|
+
*/
|
|
194
|
+
getType() {
|
|
195
|
+
return 'docker';
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Cleanup resources.
|
|
199
|
+
*/
|
|
200
|
+
async cleanup() {
|
|
201
|
+
if (this.containerId) {
|
|
202
|
+
try {
|
|
203
|
+
execSync(`docker kill ${this.containerId}`, { stdio: 'pipe' });
|
|
204
|
+
}
|
|
205
|
+
catch {
|
|
206
|
+
// Ignore - container may have already exited
|
|
207
|
+
}
|
|
208
|
+
this.containerId = null;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Pull the Docker image if not present.
|
|
213
|
+
*/
|
|
214
|
+
async ensureImage() {
|
|
215
|
+
try {
|
|
216
|
+
execSync(`docker image inspect ${this.image}`, { stdio: 'pipe' });
|
|
217
|
+
}
|
|
218
|
+
catch {
|
|
219
|
+
// Image not found, pull it
|
|
220
|
+
console.log(`[DockerSandbox] Pulling image: ${this.image}`);
|
|
221
|
+
execSync(`docker pull ${this.image}`, { stdio: 'inherit' });
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Set the Docker image to use.
|
|
226
|
+
*/
|
|
227
|
+
setImage(image) {
|
|
228
|
+
this.image = image;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Get the current Docker image.
|
|
232
|
+
*/
|
|
233
|
+
getImage() {
|
|
234
|
+
return this.image;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
// =============================================================================
|
|
238
|
+
// PREDEFINED IMAGES
|
|
239
|
+
// =============================================================================
|
|
240
|
+
/**
|
|
241
|
+
* Recommended Docker images for different use cases.
|
|
242
|
+
*/
|
|
243
|
+
export const DOCKER_IMAGES = {
|
|
244
|
+
/** Minimal Node.js for JavaScript/TypeScript */
|
|
245
|
+
node: 'node:20-slim',
|
|
246
|
+
/** Python for Python scripts */
|
|
247
|
+
python: 'python:3.12-slim',
|
|
248
|
+
/** Alpine for general shell commands */
|
|
249
|
+
alpine: 'alpine:latest',
|
|
250
|
+
/** Ubuntu for full Linux environment */
|
|
251
|
+
ubuntu: 'ubuntu:22.04',
|
|
252
|
+
/** Deno for Deno scripts */
|
|
253
|
+
deno: 'denoland/deno:latest',
|
|
254
|
+
/** Bun for Bun scripts */
|
|
255
|
+
bun: 'oven/bun:latest',
|
|
256
|
+
};
|
|
257
|
+
// =============================================================================
|
|
258
|
+
// DOCKER PROFILES
|
|
259
|
+
// =============================================================================
|
|
260
|
+
/**
|
|
261
|
+
* Strict Docker profile - minimal access.
|
|
262
|
+
*/
|
|
263
|
+
export const DOCKER_STRICT_PROFILE = {
|
|
264
|
+
writablePaths: [],
|
|
265
|
+
readablePaths: [],
|
|
266
|
+
networkAllowed: false,
|
|
267
|
+
timeout: 30000,
|
|
268
|
+
maxMemoryMB: 256,
|
|
269
|
+
maxCpuSeconds: 10,
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Development Docker profile.
|
|
273
|
+
*/
|
|
274
|
+
export const DOCKER_DEV_PROFILE = {
|
|
275
|
+
writablePaths: ['.', 'node_modules'],
|
|
276
|
+
readablePaths: [],
|
|
277
|
+
networkAllowed: true,
|
|
278
|
+
timeout: 300000,
|
|
279
|
+
maxMemoryMB: 1024,
|
|
280
|
+
maxCpuSeconds: 120,
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* CI/CD Docker profile.
|
|
284
|
+
*/
|
|
285
|
+
export const DOCKER_CI_PROFILE = {
|
|
286
|
+
writablePaths: ['.'],
|
|
287
|
+
readablePaths: [],
|
|
288
|
+
networkAllowed: true, // For package downloads
|
|
289
|
+
timeout: 600000, // 10 minutes
|
|
290
|
+
maxMemoryMB: 2048,
|
|
291
|
+
maxCpuSeconds: 300,
|
|
292
|
+
};
|
|
293
|
+
//# sourceMappingURL=docker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docker.js","sourceRoot":"","sources":["../../../../src/integrations/sandbox/docker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGhD,gFAAgF;AAChF,iBAAiB;AACjB,gFAAgF;AAEhF;;GAEG;AACH,MAAM,OAAO,aAAa;IAChB,OAAO,CAAiB;IACxB,KAAK,CAAS;IACd,SAAS,GAAmB,IAAI,CAAC;IACjC,WAAW,GAAkB,IAAI,CAAC;IAE1C,YAAY,OAAuB,EAAE,QAAgB,cAAc;QACjE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,OAAO,CAAC,OAAe,EAAE,OAAiC;QAC9D,MAAM,aAAa,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC;QACtD,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,IAAI,KAAK,CAAC;QAC/C,MAAM,OAAO,GAAG,aAAa,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QAE1D,6BAA6B;QAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAEzE,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC7B,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,EAAE,UAAU,EAAE;gBACvC,GAAG,EAAE,OAAO;gBACZ,GAAG,EAAE,OAAO,CAAC,GAAG;gBAChB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;aAChC,CAAC,CAAC;YAEH,IA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Ac,EAAE,KAAK;IACrB,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,GAAG;IAChB,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAmB;IAChD,aAAa,EAAE,CAAC,GAAG,EAAE,cAAc,CAAC;IACpC,aAAa,EAAE,EAAE;IACjB,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE,MAAM;IACf,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,GAAG;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAmB;IAC/C,aAAa,EAAE,CAAC,GAAG,CAAC;IACpB,aAAa,EAAE,EAAE;IACjB,cAAc,EAAE,IAAI,EAAE,wBAAwB;IAC9C,OAAO,EAAE,MAAM,EAAO,aAAa;IACnC,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,GAAG;CACnB,CAAC"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OS-Specific Sandbox Integration
|
|
3
|
+
*
|
|
4
|
+
* Provides platform-aware sandboxing for command execution:
|
|
5
|
+
* - macOS: Uses sandbox-exec with Seatbelt profiles
|
|
6
|
+
* - Linux: Uses Docker containers for isolation
|
|
7
|
+
* - Fallback: Basic allowlist-based validation
|
|
8
|
+
*
|
|
9
|
+
* Inspired by Codex's approach to secure code execution.
|
|
10
|
+
*
|
|
11
|
+
* Usage:
|
|
12
|
+
* const sandbox = createSandbox({ writablePaths: ['.'], networkAllowed: false });
|
|
13
|
+
* const result = await sandbox.execute('npm install');
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Sandbox execution result.
|
|
17
|
+
*/
|
|
18
|
+
export interface ExecResult {
|
|
19
|
+
stdout: string;
|
|
20
|
+
stderr: string;
|
|
21
|
+
exitCode: number;
|
|
22
|
+
killed: boolean;
|
|
23
|
+
timedOut: boolean;
|
|
24
|
+
error?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Sandbox configuration options.
|
|
28
|
+
*/
|
|
29
|
+
export interface SandboxOptions {
|
|
30
|
+
/** Paths that can be written to */
|
|
31
|
+
writablePaths?: string[];
|
|
32
|
+
/** Paths that can be read from */
|
|
33
|
+
readablePaths?: string[];
|
|
34
|
+
/** Whether network access is allowed */
|
|
35
|
+
networkAllowed?: boolean;
|
|
36
|
+
/** Execution timeout in milliseconds */
|
|
37
|
+
timeout?: number;
|
|
38
|
+
/** Working directory */
|
|
39
|
+
workingDir?: string;
|
|
40
|
+
/** Environment variables */
|
|
41
|
+
env?: Record<string, string>;
|
|
42
|
+
/** Maximum memory in MB */
|
|
43
|
+
maxMemoryMB?: number;
|
|
44
|
+
/** Maximum CPU time in seconds */
|
|
45
|
+
maxCpuSeconds?: number;
|
|
46
|
+
/** Allowed commands (for basic sandbox) */
|
|
47
|
+
allowedCommands?: string[];
|
|
48
|
+
/** Blocked commands (for basic sandbox) */
|
|
49
|
+
blockedCommands?: string[];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Sandbox mode.
|
|
53
|
+
*/
|
|
54
|
+
export type SandboxMode = 'auto' | 'seatbelt' | 'landlock' | 'docker' | 'basic' | 'none';
|
|
55
|
+
/**
|
|
56
|
+
* Sandbox interface that all implementations must follow.
|
|
57
|
+
*/
|
|
58
|
+
export interface Sandbox {
|
|
59
|
+
/** Execute a command in the sandbox */
|
|
60
|
+
execute(command: string, options?: Partial<SandboxOptions>): Promise<ExecResult>;
|
|
61
|
+
/** Check if the sandbox is available on this system */
|
|
62
|
+
isAvailable(): Promise<boolean>;
|
|
63
|
+
/** Get the sandbox type name */
|
|
64
|
+
getType(): SandboxMode;
|
|
65
|
+
/** Cleanup any resources */
|
|
66
|
+
cleanup(): Promise<void>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Sandbox manager configuration.
|
|
70
|
+
*/
|
|
71
|
+
export interface SandboxManagerConfig {
|
|
72
|
+
/** Sandbox mode to use */
|
|
73
|
+
mode?: SandboxMode;
|
|
74
|
+
/** Default sandbox options */
|
|
75
|
+
defaults?: SandboxOptions;
|
|
76
|
+
/** Docker image to use (for docker mode) */
|
|
77
|
+
dockerImage?: string;
|
|
78
|
+
/** Enable verbose logging */
|
|
79
|
+
verbose?: boolean;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Sandbox event types.
|
|
83
|
+
*/
|
|
84
|
+
export type SandboxEvent = {
|
|
85
|
+
type: 'sandbox.execute.start';
|
|
86
|
+
command: string;
|
|
87
|
+
mode: SandboxMode;
|
|
88
|
+
} | {
|
|
89
|
+
type: 'sandbox.execute.complete';
|
|
90
|
+
command: string;
|
|
91
|
+
exitCode: number;
|
|
92
|
+
duration: number;
|
|
93
|
+
} | {
|
|
94
|
+
type: 'sandbox.execute.error';
|
|
95
|
+
command: string;
|
|
96
|
+
error: string;
|
|
97
|
+
} | {
|
|
98
|
+
type: 'sandbox.blocked';
|
|
99
|
+
command: string;
|
|
100
|
+
reason: string;
|
|
101
|
+
} | {
|
|
102
|
+
type: 'sandbox.mode.changed';
|
|
103
|
+
from: SandboxMode;
|
|
104
|
+
to: SandboxMode;
|
|
105
|
+
};
|
|
106
|
+
export type SandboxEventListener = (event: SandboxEvent) => void;
|
|
107
|
+
/**
|
|
108
|
+
* Manages sandbox selection and execution.
|
|
109
|
+
*/
|
|
110
|
+
export declare class SandboxManager {
|
|
111
|
+
private config;
|
|
112
|
+
private activeSandbox;
|
|
113
|
+
private eventListeners;
|
|
114
|
+
constructor(config?: SandboxManagerConfig);
|
|
115
|
+
/**
|
|
116
|
+
* Get or create the appropriate sandbox for this system.
|
|
117
|
+
*/
|
|
118
|
+
getSandbox(): Promise<Sandbox>;
|
|
119
|
+
/**
|
|
120
|
+
* Execute a command in the sandbox.
|
|
121
|
+
*/
|
|
122
|
+
execute(command: string, options?: Partial<SandboxOptions>): Promise<ExecResult>;
|
|
123
|
+
/**
|
|
124
|
+
* Check if a command should be blocked.
|
|
125
|
+
*/
|
|
126
|
+
isCommandBlocked(command: string): {
|
|
127
|
+
blocked: boolean;
|
|
128
|
+
reason?: string;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Set the sandbox mode.
|
|
132
|
+
*/
|
|
133
|
+
setMode(mode: SandboxMode): Promise<void>;
|
|
134
|
+
/**
|
|
135
|
+
* Get the current sandbox mode.
|
|
136
|
+
*/
|
|
137
|
+
getMode(): SandboxMode;
|
|
138
|
+
/**
|
|
139
|
+
* Get info about available sandboxes.
|
|
140
|
+
*/
|
|
141
|
+
getAvailableSandboxes(): Promise<{
|
|
142
|
+
mode: SandboxMode;
|
|
143
|
+
available: boolean;
|
|
144
|
+
}[]>;
|
|
145
|
+
/**
|
|
146
|
+
* Subscribe to sandbox events.
|
|
147
|
+
*/
|
|
148
|
+
subscribe(listener: SandboxEventListener): () => void;
|
|
149
|
+
/**
|
|
150
|
+
* Cleanup resources.
|
|
151
|
+
*/
|
|
152
|
+
cleanup(): Promise<void>;
|
|
153
|
+
/**
|
|
154
|
+
* Create a sandbox based on mode.
|
|
155
|
+
*/
|
|
156
|
+
private createSandbox;
|
|
157
|
+
/**
|
|
158
|
+
* Auto-detect the best available sandbox.
|
|
159
|
+
*/
|
|
160
|
+
private autoDetectSandbox;
|
|
161
|
+
/**
|
|
162
|
+
* Emit a sandbox event.
|
|
163
|
+
*/
|
|
164
|
+
private emit;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Create a sandbox manager.
|
|
168
|
+
*/
|
|
169
|
+
export declare function createSandboxManager(config?: SandboxManagerConfig): SandboxManager;
|
|
170
|
+
/**
|
|
171
|
+
* Create a sandbox directly with auto-detection.
|
|
172
|
+
*/
|
|
173
|
+
export declare function createSandbox(options?: SandboxOptions): Promise<Sandbox>;
|
|
174
|
+
/**
|
|
175
|
+
* Quick execute with auto-detected sandbox.
|
|
176
|
+
*/
|
|
177
|
+
export declare function sandboxExec(command: string, options?: SandboxOptions): Promise<ExecResult>;
|
|
178
|
+
export { SeatbeltSandbox } from './seatbelt.js';
|
|
179
|
+
export { DockerSandbox } from './docker.js';
|
|
180
|
+
export { BasicSandbox } from './basic.js';
|
|
181
|
+
export { LandlockSandbox, createLandlockSandbox, checkLandlockSupport } from './landlock.js';
|
|
182
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/sandbox/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAWH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,mCAAmC;IACnC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB,wCAAwC;IACxC,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,wCAAwC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,wBAAwB;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,4BAA4B;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE7B,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,2CAA2C;IAC3C,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B,2CAA2C;IAC3C,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,WA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