aec-agent 1.0.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/README.md +1 -0
- package/dist/agent-core.d.ts +81 -0
- package/dist/agent-core.d.ts.map +1 -0
- package/dist/agent-core.js +168 -0
- package/dist/agent-core.js.map +1 -0
- package/dist/components/artifact-hub/agent-artifact-view.d.ts +31 -0
- package/dist/components/artifact-hub/agent-artifact-view.d.ts.map +1 -0
- package/dist/components/artifact-hub/agent-artifact-view.js +264 -0
- package/dist/components/artifact-hub/agent-artifact-view.js.map +1 -0
- package/dist/components/artifact-hub/artifact-hub.d.ts +25 -0
- package/dist/components/artifact-hub/artifact-hub.d.ts.map +1 -0
- package/dist/components/artifact-hub/artifact-hub.js +39 -0
- package/dist/components/artifact-hub/artifact-hub.js.map +1 -0
- package/dist/components/artifact-hub/types/artifact.d.ts +158 -0
- package/dist/components/artifact-hub/types/artifact.d.ts.map +1 -0
- package/dist/components/artifact-hub/types/artifact.js +14 -0
- package/dist/components/artifact-hub/types/artifact.js.map +1 -0
- package/dist/components/event-handler/event-dispatcher.d.ts +17 -0
- package/dist/components/event-handler/event-dispatcher.d.ts.map +1 -0
- package/dist/components/event-handler/event-dispatcher.js +47 -0
- package/dist/components/event-handler/event-dispatcher.js.map +1 -0
- package/dist/components/event-handler/events.d.ts +154 -0
- package/dist/components/event-handler/events.d.ts.map +1 -0
- package/dist/components/event-handler/events.js +28 -0
- package/dist/components/event-handler/events.js.map +1 -0
- package/dist/components/event-handler/types.d.ts +10 -0
- package/dist/components/event-handler/types.d.ts.map +1 -0
- package/dist/components/event-handler/types.js +2 -0
- package/dist/components/event-handler/types.js.map +1 -0
- package/dist/components/llm-provider-hub/llm-provider-hub.d.ts +14 -0
- package/dist/components/llm-provider-hub/llm-provider-hub.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/llm-provider-hub.js +34 -0
- package/dist/components/llm-provider-hub/llm-provider-hub.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/anthropic-provider.d.ts +22 -0
- package/dist/components/llm-provider-hub/providers/anthropic-provider.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/anthropic-provider.js +249 -0
- package/dist/components/llm-provider-hub/providers/anthropic-provider.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/bedrock-provider.d.ts +28 -0
- package/dist/components/llm-provider-hub/providers/bedrock-provider.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/bedrock-provider.js +345 -0
- package/dist/components/llm-provider-hub/providers/bedrock-provider.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/model-info-mappers.d.ts +6 -0
- package/dist/components/llm-provider-hub/providers/model-info-mappers.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/model-info-mappers.js +267 -0
- package/dist/components/llm-provider-hub/providers/model-info-mappers.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/openai-compatible-provider.d.ts +24 -0
- package/dist/components/llm-provider-hub/providers/openai-compatible-provider.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/openai-compatible-provider.js +243 -0
- package/dist/components/llm-provider-hub/providers/openai-compatible-provider.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/openai-subscription-provider.d.ts +29 -0
- package/dist/components/llm-provider-hub/providers/openai-subscription-provider.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/openai-subscription-provider.js +299 -0
- package/dist/components/llm-provider-hub/providers/openai-subscription-provider.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/registry.d.ts +6 -0
- package/dist/components/llm-provider-hub/providers/registry.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/registry.js +33 -0
- package/dist/components/llm-provider-hub/providers/registry.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/types.d.ts +29 -0
- package/dist/components/llm-provider-hub/providers/types.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/types.js +2 -0
- package/dist/components/llm-provider-hub/providers/types.js.map +1 -0
- package/dist/components/llm-provider-hub/types.d.ts +84 -0
- package/dist/components/llm-provider-hub/types.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/types.js +6 -0
- package/dist/components/llm-provider-hub/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.d.ts +85 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.js +500 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/abort.d.ts +29 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/abort.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/abort.js +98 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/abort.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.d.ts +16 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.js +116 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.types.d.ts +41 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.types.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.d.ts +69 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.js +147 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.d.ts +55 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.js +406 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.d.ts +19 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.js +28 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.d.ts +17 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.js +55 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.d.ts +3 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/tool-pairing.d.ts +20 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/tool-pairing.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/tool-pairing.js +56 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/tool-pairing.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/llm-input.d.ts +23 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/llm-input.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/llm-input.js +127 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/llm-input.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.d.ts +9 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.js +40 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/types.d.ts +135 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/types.js +31 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent.d.ts +93 -0
- package/dist/components/multi-agent-orchestration/agent/agent.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent.js +223 -0
- package/dist/components/multi-agent-orchestration/agent/agent.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/artifact-manager/artifact-manager.d.ts +18 -0
- package/dist/components/multi-agent-orchestration/agent/artifact-manager/artifact-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/artifact-manager/artifact-manager.js +20 -0
- package/dist/components/multi-agent-orchestration/agent/artifact-manager/artifact-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.d.ts +6 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.js +6 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.d.ts +22 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.js +52 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/types.d.ts +13 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/types.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.d.ts +25 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.js +74 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/consolidation-scheduler.d.ts +57 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/consolidation-scheduler.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/consolidation-scheduler.js +185 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/consolidation-scheduler.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.d.ts +38 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.js +89 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/indexing.d.ts +30 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/indexing.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/indexing.js +91 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/indexing.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/learning.d.ts +3 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/learning.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/learning.js +3 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/learning.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.d.ts +22 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.js +196 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.d.ts +17 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.js +114 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.d.ts +89 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.js +178 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/config.d.ts +29 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/config.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/config.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/config.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/pipeline.d.ts +33 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/pipeline.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/pipeline.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/pipeline.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/record.d.ts +27 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/record.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/record.js +5 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/record.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.d.ts +39 -0
- package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.js +70 -0
- package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/sandbox-manager/sandbox-manager.d.ts +43 -0
- package/dist/components/multi-agent-orchestration/agent/sandbox-manager/sandbox-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/sandbox-manager/sandbox-manager.js +126 -0
- package/dist/components/multi-agent-orchestration/agent/sandbox-manager/sandbox-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.d.ts +38 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.js +155 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.d.ts +27 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-index.d.ts +6 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-index.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-index.js +43 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-index.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.d.ts +56 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.js +107 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.d.ts +20 -0
- package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.js +28 -0
- package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/types.d.ts +44 -0
- package/dist/components/multi-agent-orchestration/agent/types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/types.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/multi-agent-orchestration.d.ts +23 -0
- package/dist/components/multi-agent-orchestration/multi-agent-orchestration.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/multi-agent-orchestration.js +42 -0
- package/dist/components/multi-agent-orchestration/multi-agent-orchestration.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-agent-store.d.ts +10 -0
- package/dist/components/persistence-hub/default-stores/memory-agent-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-agent-store.js +16 -0
- package/dist/components/persistence-hub/default-stores/memory-agent-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-artifact-store.d.ts +16 -0
- package/dist/components/persistence-hub/default-stores/memory-artifact-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-artifact-store.js +70 -0
- package/dist/components/persistence-hub/default-stores/memory-artifact-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-memory-store.d.ts +12 -0
- package/dist/components/persistence-hub/default-stores/memory-memory-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-memory-store.js +51 -0
- package/dist/components/persistence-hub/default-stores/memory-memory-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-message-store.d.ts +12 -0
- package/dist/components/persistence-hub/default-stores/memory-message-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-message-store.js +33 -0
- package/dist/components/persistence-hub/default-stores/memory-message-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-provider-store.d.ts +9 -0
- package/dist/components/persistence-hub/default-stores/memory-provider-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-provider-store.js +16 -0
- package/dist/components/persistence-hub/default-stores/memory-provider-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-session-store.d.ts +12 -0
- package/dist/components/persistence-hub/default-stores/memory-session-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-session-store.js +42 -0
- package/dist/components/persistence-hub/default-stores/memory-session-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-skill-store.d.ts +9 -0
- package/dist/components/persistence-hub/default-stores/memory-skill-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-skill-store.js +20 -0
- package/dist/components/persistence-hub/default-stores/memory-skill-store.js.map +1 -0
- package/dist/components/persistence-hub/persistence-hub.d.ts +34 -0
- package/dist/components/persistence-hub/persistence-hub.d.ts.map +1 -0
- package/dist/components/persistence-hub/persistence-hub.js +37 -0
- package/dist/components/persistence-hub/persistence-hub.js.map +1 -0
- package/dist/components/persistence-hub/types/agent-store.d.ts +8 -0
- package/dist/components/persistence-hub/types/agent-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/agent-store.js +2 -0
- package/dist/components/persistence-hub/types/agent-store.js.map +1 -0
- package/dist/components/persistence-hub/types/artifact-store.d.ts +33 -0
- package/dist/components/persistence-hub/types/artifact-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/artifact-store.js +2 -0
- package/dist/components/persistence-hub/types/artifact-store.js.map +1 -0
- package/dist/components/persistence-hub/types/memory-store.d.ts +23 -0
- package/dist/components/persistence-hub/types/memory-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/memory-store.js +2 -0
- package/dist/components/persistence-hub/types/memory-store.js.map +1 -0
- package/dist/components/persistence-hub/types/message-store.d.ts +27 -0
- package/dist/components/persistence-hub/types/message-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/message-store.js +2 -0
- package/dist/components/persistence-hub/types/message-store.js.map +1 -0
- package/dist/components/persistence-hub/types/provider-store.d.ts +28 -0
- package/dist/components/persistence-hub/types/provider-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/provider-store.js +5 -0
- package/dist/components/persistence-hub/types/provider-store.js.map +1 -0
- package/dist/components/persistence-hub/types/session-store.d.ts +15 -0
- package/dist/components/persistence-hub/types/session-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/session-store.js +2 -0
- package/dist/components/persistence-hub/types/session-store.js.map +1 -0
- package/dist/components/persistence-hub/types/skill-store.d.ts +22 -0
- package/dist/components/persistence-hub/types/skill-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/skill-store.js +2 -0
- package/dist/components/persistence-hub/types/skill-store.js.map +1 -0
- package/dist/components/sandbox-hub/approval-policy.d.ts +12 -0
- package/dist/components/sandbox-hub/approval-policy.d.ts.map +1 -0
- package/dist/components/sandbox-hub/approval-policy.js +11 -0
- package/dist/components/sandbox-hub/approval-policy.js.map +1 -0
- package/dist/components/sandbox-hub/docker/aec-sandbox-image.d.ts +3 -0
- package/dist/components/sandbox-hub/docker/aec-sandbox-image.d.ts.map +1 -0
- package/dist/components/sandbox-hub/docker/aec-sandbox-image.js +31 -0
- package/dist/components/sandbox-hub/docker/aec-sandbox-image.js.map +1 -0
- package/dist/components/sandbox-hub/docker/docker-cli.d.ts +32 -0
- package/dist/components/sandbox-hub/docker/docker-cli.d.ts.map +1 -0
- package/dist/components/sandbox-hub/docker/docker-cli.js +83 -0
- package/dist/components/sandbox-hub/docker/docker-cli.js.map +1 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox-provider.d.ts +70 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox-provider.d.ts.map +1 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox-provider.js +166 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox-provider.js.map +1 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox.d.ts +51 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox.d.ts.map +1 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox.js +584 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox.js.map +1 -0
- package/dist/components/sandbox-hub/docker/sandbox-helper.d.ts +4 -0
- package/dist/components/sandbox-hub/docker/sandbox-helper.d.ts.map +1 -0
- package/dist/components/sandbox-hub/docker/sandbox-helper.js +442 -0
- package/dist/components/sandbox-hub/docker/sandbox-helper.js.map +1 -0
- package/dist/components/sandbox-hub/docker/types.d.ts +26 -0
- package/dist/components/sandbox-hub/docker/types.d.ts.map +1 -0
- package/dist/components/sandbox-hub/docker/types.js +2 -0
- package/dist/components/sandbox-hub/docker/types.js.map +1 -0
- package/dist/components/sandbox-hub/host/host-sandbox-provider.d.ts +34 -0
- package/dist/components/sandbox-hub/host/host-sandbox-provider.d.ts.map +1 -0
- package/dist/components/sandbox-hub/host/host-sandbox-provider.js +81 -0
- package/dist/components/sandbox-hub/host/host-sandbox-provider.js.map +1 -0
- package/dist/components/sandbox-hub/host/host-sandbox.d.ts +22 -0
- package/dist/components/sandbox-hub/host/host-sandbox.d.ts.map +1 -0
- package/dist/components/sandbox-hub/host/host-sandbox.js +508 -0
- package/dist/components/sandbox-hub/host/host-sandbox.js.map +1 -0
- package/dist/components/sandbox-hub/logical-path.d.ts +28 -0
- package/dist/components/sandbox-hub/logical-path.d.ts.map +1 -0
- package/dist/components/sandbox-hub/logical-path.js +73 -0
- package/dist/components/sandbox-hub/logical-path.js.map +1 -0
- package/dist/components/sandbox-hub/sandbox-hub.d.ts +69 -0
- package/dist/components/sandbox-hub/sandbox-hub.d.ts.map +1 -0
- package/dist/components/sandbox-hub/sandbox-hub.js +216 -0
- package/dist/components/sandbox-hub/sandbox-hub.js.map +1 -0
- package/dist/components/sandbox-hub/traced-sandbox.d.ts +15 -0
- package/dist/components/sandbox-hub/traced-sandbox.d.ts.map +1 -0
- package/dist/components/sandbox-hub/traced-sandbox.js +69 -0
- package/dist/components/sandbox-hub/traced-sandbox.js.map +1 -0
- package/dist/components/sandbox-hub/types/policy.d.ts +40 -0
- package/dist/components/sandbox-hub/types/policy.d.ts.map +1 -0
- package/dist/components/sandbox-hub/types/policy.js +2 -0
- package/dist/components/sandbox-hub/types/policy.js.map +1 -0
- package/dist/components/sandbox-hub/types/provider.d.ts +40 -0
- package/dist/components/sandbox-hub/types/provider.d.ts.map +1 -0
- package/dist/components/sandbox-hub/types/provider.js +2 -0
- package/dist/components/sandbox-hub/types/provider.js.map +1 -0
- package/dist/components/sandbox-hub/types/sandbox.d.ts +185 -0
- package/dist/components/sandbox-hub/types/sandbox.d.ts.map +1 -0
- package/dist/components/sandbox-hub/types/sandbox.js +15 -0
- package/dist/components/sandbox-hub/types/sandbox.js.map +1 -0
- package/dist/components/skill-hub/built-in-skills/essential-skills.d.ts +5 -0
- package/dist/components/skill-hub/built-in-skills/essential-skills.d.ts.map +1 -0
- package/dist/components/skill-hub/built-in-skills/essential-skills.js +10 -0
- package/dist/components/skill-hub/built-in-skills/essential-skills.js.map +1 -0
- package/dist/components/skill-hub/built-in-skills/plan.d.ts +3 -0
- package/dist/components/skill-hub/built-in-skills/plan.d.ts.map +1 -0
- package/dist/components/skill-hub/built-in-skills/plan.js +33 -0
- package/dist/components/skill-hub/built-in-skills/plan.js.map +1 -0
- package/dist/components/skill-hub/built-in-skills/skill-creator.d.ts +3 -0
- package/dist/components/skill-hub/built-in-skills/skill-creator.d.ts.map +1 -0
- package/dist/components/skill-hub/built-in-skills/skill-creator.js +186 -0
- package/dist/components/skill-hub/built-in-skills/skill-creator.js.map +1 -0
- package/dist/components/skill-hub/built-in-skills/web-research.d.ts +3 -0
- package/dist/components/skill-hub/built-in-skills/web-research.d.ts.map +1 -0
- package/dist/components/skill-hub/built-in-skills/web-research.js +35 -0
- package/dist/components/skill-hub/built-in-skills/web-research.js.map +1 -0
- package/dist/components/skill-hub/skill-format.d.ts +40 -0
- package/dist/components/skill-hub/skill-format.d.ts.map +1 -0
- package/dist/components/skill-hub/skill-format.js +378 -0
- package/dist/components/skill-hub/skill-format.js.map +1 -0
- package/dist/components/skill-hub/skill-hub.d.ts +45 -0
- package/dist/components/skill-hub/skill-hub.d.ts.map +1 -0
- package/dist/components/skill-hub/skill-hub.js +173 -0
- package/dist/components/skill-hub/skill-hub.js.map +1 -0
- package/dist/components/skill-hub/types/agent-skills.d.ts +20 -0
- package/dist/components/skill-hub/types/agent-skills.d.ts.map +1 -0
- package/dist/components/skill-hub/types/agent-skills.js +2 -0
- package/dist/components/skill-hub/types/agent-skills.js.map +1 -0
- package/dist/components/skill-hub/types/skill.d.ts +55 -0
- package/dist/components/skill-hub/types/skill.d.ts.map +1 -0
- package/dist/components/skill-hub/types/skill.js +11 -0
- package/dist/components/skill-hub/types/skill.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.d.ts +52 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.js +143 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.d.ts +7 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.js +18 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.d.ts +16 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.js +69 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.d.ts +16 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.js +79 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.d.ts +16 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.js +105 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/types.d.ts +11 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/types.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/types.js +8 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/types.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.d.ts +17 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.js +100 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/interaction/clarify-tool.d.ts +16 -0
- package/dist/components/tool-hub/built-in-tools/interaction/clarify-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/interaction/clarify-tool.js +94 -0
- package/dist/components/tool-hub/built-in-tools/interaction/clarify-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-manage-tool.d.ts +22 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-manage-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-manage-tool.js +226 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-manage-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-view-tool.d.ts +18 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-view-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-view-tool.js +86 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-view-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-workspace.d.ts +26 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-workspace.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-workspace.js +93 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-workspace.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/duckduckgo-search-provider.d.ts +28 -0
- package/dist/components/tool-hub/built-in-tools/web/duckduckgo-search-provider.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/duckduckgo-search-provider.js +116 -0
- package/dist/components/tool-hub/built-in-tools/web/duckduckgo-search-provider.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/html-to-text.d.ts +14 -0
- package/dist/components/tool-hub/built-in-tools/web/html-to-text.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/html-to-text.js +158 -0
- package/dist/components/tool-hub/built-in-tools/web/html-to-text.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/network-guard.d.ts +21 -0
- package/dist/components/tool-hub/built-in-tools/web/network-guard.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/network-guard.js +106 -0
- package/dist/components/tool-hub/built-in-tools/web/network-guard.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/types.d.ts +23 -0
- package/dist/components/tool-hub/built-in-tools/web/types.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/types.js +5 -0
- package/dist/components/tool-hub/built-in-tools/web/types.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.d.ts +37 -0
- package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.js +206 -0
- package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/web-search-tool.d.ts +25 -0
- package/dist/components/tool-hub/built-in-tools/web/web-search-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/web-search-tool.js +82 -0
- package/dist/components/tool-hub/built-in-tools/web/web-search-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/create-workspace-tools.d.ts +7 -0
- package/dist/components/tool-hub/built-in-tools/workspace/create-workspace-tools.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/create-workspace-tools.js +24 -0
- package/dist/components/tool-hub/built-in-tools/workspace/create-workspace-tools.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/edit-file-tool.d.ts +15 -0
- package/dist/components/tool-hub/built-in-tools/workspace/edit-file-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/edit-file-tool.js +103 -0
- package/dist/components/tool-hub/built-in-tools/workspace/edit-file-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/list-files-tool.d.ts +12 -0
- package/dist/components/tool-hub/built-in-tools/workspace/list-files-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/list-files-tool.js +53 -0
- package/dist/components/tool-hub/built-in-tools/workspace/list-files-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/read-file-tool.d.ts +15 -0
- package/dist/components/tool-hub/built-in-tools/workspace/read-file-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/read-file-tool.js +71 -0
- package/dist/components/tool-hub/built-in-tools/workspace/read-file-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.d.ts +16 -0
- package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.js +72 -0
- package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/search-files-tool.d.ts +12 -0
- package/dist/components/tool-hub/built-in-tools/workspace/search-files-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/search-files-tool.js +64 -0
- package/dist/components/tool-hub/built-in-tools/workspace/search-files-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.d.ts +19 -0
- package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.js +111 -0
- package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/types.d.ts +16 -0
- package/dist/components/tool-hub/built-in-tools/workspace/types.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/types.js +8 -0
- package/dist/components/tool-hub/built-in-tools/workspace/types.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.d.ts +29 -0
- package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.js +128 -0
- package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/write-file-tool.d.ts +17 -0
- package/dist/components/tool-hub/built-in-tools/workspace/write-file-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/write-file-tool.js +61 -0
- package/dist/components/tool-hub/built-in-tools/workspace/write-file-tool.js.map +1 -0
- package/dist/components/tool-hub/policies/default-tool-policy.d.ts +17 -0
- package/dist/components/tool-hub/policies/default-tool-policy.d.ts.map +1 -0
- package/dist/components/tool-hub/policies/default-tool-policy.js +99 -0
- package/dist/components/tool-hub/policies/default-tool-policy.js.map +1 -0
- package/dist/components/tool-hub/tool-hub.d.ts +28 -0
- package/dist/components/tool-hub/tool-hub.d.ts.map +1 -0
- package/dist/components/tool-hub/tool-hub.js +49 -0
- package/dist/components/tool-hub/tool-hub.js.map +1 -0
- package/dist/components/tool-hub/types.d.ts +138 -0
- package/dist/components/tool-hub/types.d.ts.map +1 -0
- package/dist/components/tool-hub/types.js +2 -0
- package/dist/components/tool-hub/types.js.map +1 -0
- package/dist/components/trace-service/console-trace-sink.d.ts +9 -0
- package/dist/components/trace-service/console-trace-sink.d.ts.map +1 -0
- package/dist/components/trace-service/console-trace-sink.js +35 -0
- package/dist/components/trace-service/console-trace-sink.js.map +1 -0
- package/dist/components/trace-service/trace-service.d.ts +25 -0
- package/dist/components/trace-service/trace-service.d.ts.map +1 -0
- package/dist/components/trace-service/trace-service.js +288 -0
- package/dist/components/trace-service/trace-service.js.map +1 -0
- package/dist/components/trace-service/types/sink.d.ts +7 -0
- package/dist/components/trace-service/types/sink.d.ts.map +1 -0
- package/dist/components/trace-service/types/sink.js +5 -0
- package/dist/components/trace-service/types/sink.js.map +1 -0
- package/dist/components/trace-service/types/span.d.ts +31 -0
- package/dist/components/trace-service/types/span.d.ts.map +1 -0
- package/dist/components/trace-service/types/span.js +5 -0
- package/dist/components/trace-service/types/span.js.map +1 -0
- package/dist/create-agent.d.ts +5 -0
- package/dist/create-agent.d.ts.map +1 -0
- package/dist/create-agent.js +57 -0
- package/dist/create-agent.js.map +1 -0
- package/dist/index.d.ts +110 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +73 -0
- package/dist/index.js.map +1 -0
- package/dist/kernel/errors/artifact-error.d.ts +23 -0
- package/dist/kernel/errors/artifact-error.d.ts.map +1 -0
- package/dist/kernel/errors/artifact-error.js +22 -0
- package/dist/kernel/errors/artifact-error.js.map +1 -0
- package/dist/kernel/errors/model-error.d.ts +7 -0
- package/dist/kernel/errors/model-error.d.ts.map +1 -0
- package/dist/kernel/errors/model-error.js +10 -0
- package/dist/kernel/errors/model-error.js.map +1 -0
- package/dist/kernel/errors/policy-error.d.ts +8 -0
- package/dist/kernel/errors/policy-error.d.ts.map +1 -0
- package/dist/kernel/errors/policy-error.js +12 -0
- package/dist/kernel/errors/policy-error.js.map +1 -0
- package/dist/kernel/errors/sandbox-error.d.ts +35 -0
- package/dist/kernel/errors/sandbox-error.d.ts.map +1 -0
- package/dist/kernel/errors/sandbox-error.js +26 -0
- package/dist/kernel/errors/sandbox-error.js.map +1 -0
- package/dist/kernel/errors/sdk-error.d.ts +9 -0
- package/dist/kernel/errors/sdk-error.d.ts.map +1 -0
- package/dist/kernel/errors/sdk-error.js +13 -0
- package/dist/kernel/errors/sdk-error.js.map +1 -0
- package/dist/kernel/errors/session-error.d.ts +7 -0
- package/dist/kernel/errors/session-error.d.ts.map +1 -0
- package/dist/kernel/errors/session-error.js +10 -0
- package/dist/kernel/errors/session-error.js.map +1 -0
- package/dist/kernel/errors/skill-error.d.ts +14 -0
- package/dist/kernel/errors/skill-error.d.ts.map +1 -0
- package/dist/kernel/errors/skill-error.js +12 -0
- package/dist/kernel/errors/skill-error.js.map +1 -0
- package/dist/kernel/errors/tool-error.d.ts +8 -0
- package/dist/kernel/errors/tool-error.d.ts.map +1 -0
- package/dist/kernel/errors/tool-error.js +12 -0
- package/dist/kernel/errors/tool-error.js.map +1 -0
- package/dist/kernel/interfaces/kernel.d.ts +23 -0
- package/dist/kernel/interfaces/kernel.d.ts.map +1 -0
- package/dist/kernel/interfaces/kernel.js +2 -0
- package/dist/kernel/interfaces/kernel.js.map +1 -0
- package/dist/kernel/interfaces/plugin.d.ts +7 -0
- package/dist/kernel/interfaces/plugin.d.ts.map +1 -0
- package/dist/kernel/interfaces/plugin.js +5 -0
- package/dist/kernel/interfaces/plugin.js.map +1 -0
- package/dist/kernel/types.d.ts +103 -0
- package/dist/kernel/types.d.ts.map +1 -0
- package/dist/kernel/types.js +2 -0
- package/dist/kernel/types.js.map +1 -0
- package/dist/testing/in-memory-sandbox.d.ts +66 -0
- package/dist/testing/in-memory-sandbox.d.ts.map +1 -0
- package/dist/testing/in-memory-sandbox.js +507 -0
- package/dist/testing/in-memory-sandbox.js.map +1 -0
- package/dist/testing/mock-llm-model-provider.d.ts +14 -0
- package/dist/testing/mock-llm-model-provider.d.ts.map +1 -0
- package/dist/testing/mock-llm-model-provider.js +30 -0
- package/dist/testing/mock-llm-model-provider.js.map +1 -0
- package/dist/testing/mock-session-store.d.ts +17 -0
- package/dist/testing/mock-session-store.d.ts.map +1 -0
- package/dist/testing/mock-session-store.js +49 -0
- package/dist/testing/mock-session-store.js.map +1 -0
- package/dist/testing/mock-tools.d.ts +38 -0
- package/dist/testing/mock-tools.d.ts.map +1 -0
- package/dist/testing/mock-tools.js +130 -0
- package/dist/testing/mock-tools.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { StringDecoder } from "node:string_decoder";
|
|
3
|
+
import { SandboxError } from "../../../kernel/errors/sandbox-error.js";
|
|
4
|
+
import { agentLayout, AGENTS_DIR, assertSafeAgentId, resolveLogicalPath,
|
|
5
|
+
// SHARED_DIR,
|
|
6
|
+
WORKSPACE_ROOT, } from "../logical-path.js";
|
|
7
|
+
import { dockerSpawnError, isContainerDown } from "./docker-cli.js";
|
|
8
|
+
import { HELPER_PATH, HELPER_SOURCE } from "./sandbox-helper.js";
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
// One Docker sandbox: a long-lived container on a named volume (A-60).
|
|
11
|
+
//
|
|
12
|
+
// container aec-sandbox-<suffix> `sleep infinity`, every operation is a `docker exec`
|
|
13
|
+
// volume aec-sandbox-<suffix> mounted at /workspace — files survive restarts
|
|
14
|
+
//
|
|
15
|
+
// Hardening: --network none (unless the host config says "full"), memory/cpu/pids
|
|
16
|
+
// limits, read-only root filesystem, tmpfs /tmp, all capabilities dropped (CHOWN
|
|
17
|
+
// kept for the root-only setup step), no-new-privileges, non-root user, no Docker
|
|
18
|
+
// socket, and no environment variables from the server.
|
|
19
|
+
// ---------------------------------------------------------------------------
|
|
20
|
+
/** Line-range reads load the whole file inside the container; above this they are refused. */
|
|
21
|
+
const RANGE_READ_MAX_BYTES = 64 * 1024 * 1024;
|
|
22
|
+
/** search skips files bigger than this and stops after this much time (result flagged truncated). */
|
|
23
|
+
const SEARCH_MAX_FILE_BYTES = 8 * 1024 * 1024;
|
|
24
|
+
const SEARCH_TIME_BUDGET_MS = 30_000;
|
|
25
|
+
/** How long `docker exec` may keep running after we asked the helper to stop the command. */
|
|
26
|
+
const STOP_GRACE_MS = 5_000;
|
|
27
|
+
const ENV_NAME = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
28
|
+
const CAPABILITIES = new Set([
|
|
29
|
+
"fs.read", "fs.write", "fs.search", "exec", "exec.shell",
|
|
30
|
+
]);
|
|
31
|
+
/** The container stopped or vanished — recoverable by restarting it. */
|
|
32
|
+
class ContainerDown extends Error {
|
|
33
|
+
}
|
|
34
|
+
export class DockerSandbox {
|
|
35
|
+
provider;
|
|
36
|
+
spec;
|
|
37
|
+
context;
|
|
38
|
+
id;
|
|
39
|
+
traits;
|
|
40
|
+
image;
|
|
41
|
+
containerName;
|
|
42
|
+
volumeName;
|
|
43
|
+
resources;
|
|
44
|
+
fingerprint;
|
|
45
|
+
disposed = false;
|
|
46
|
+
recovering;
|
|
47
|
+
/** Agent folders already created in this container run. */
|
|
48
|
+
agentDirs = new Set();
|
|
49
|
+
constructor(provider, spec, context) {
|
|
50
|
+
this.provider = provider;
|
|
51
|
+
this.spec = spec;
|
|
52
|
+
this.context = context;
|
|
53
|
+
this.id = context.id;
|
|
54
|
+
const network = spec.network ?? "none";
|
|
55
|
+
if (network === "allowlist") {
|
|
56
|
+
throw new SandboxError('Network allowlists are not supported by the Docker sandbox yet — use "none"', "policy_denied", context.id);
|
|
57
|
+
}
|
|
58
|
+
this.traits = { kind: "docker", isolated: true, network, persistent: true, tenancy: context.tenancy, os: "linux" };
|
|
59
|
+
this.image = spec.image ?? provider.settings.defaultImage;
|
|
60
|
+
const names = provider.namesFor(context.id);
|
|
61
|
+
this.containerName = names.container;
|
|
62
|
+
this.volumeName = names.volume;
|
|
63
|
+
this.resources = { ...provider.settings.defaultResources, ...definedOnly(spec.limits) };
|
|
64
|
+
// Container settings — a different fingerprint means the container is recreated (volume kept).
|
|
65
|
+
this.fingerprint = createHash("sha256")
|
|
66
|
+
.update(JSON.stringify({
|
|
67
|
+
v: 1, image: this.image, network, resources: this.resources,
|
|
68
|
+
tmpfs: provider.settings.tmpfsSize, user: provider.settings.user,
|
|
69
|
+
}))
|
|
70
|
+
.digest("hex")
|
|
71
|
+
.slice(0, 16);
|
|
72
|
+
}
|
|
73
|
+
get limits() {
|
|
74
|
+
return this.provider.settings.limits;
|
|
75
|
+
}
|
|
76
|
+
get capabilities() {
|
|
77
|
+
return CAPABILITIES;
|
|
78
|
+
}
|
|
79
|
+
get cli() {
|
|
80
|
+
return this.provider.cli;
|
|
81
|
+
}
|
|
82
|
+
get user() {
|
|
83
|
+
return this.provider.settings.user;
|
|
84
|
+
}
|
|
85
|
+
// ── Lifecycle ──
|
|
86
|
+
/** Docker up → image present → container running + set up. */
|
|
87
|
+
async start() {
|
|
88
|
+
await this.provider.checkDocker(this.id);
|
|
89
|
+
await this.provider.ensureImage(this.image, this.id);
|
|
90
|
+
await this.ensureContainer();
|
|
91
|
+
}
|
|
92
|
+
async forAgent(agentId) {
|
|
93
|
+
this.assertUsable();
|
|
94
|
+
const { workingDir, roots } = agentLayout(this.traits.tenancy, agentId);
|
|
95
|
+
if (this.traits.tenancy === "shared" && !this.agentDirs.has(agentId)) {
|
|
96
|
+
await this.helper("mkdir", { paths: [workingDir], roots: [AGENTS_DIR] });
|
|
97
|
+
this.agentDirs.add(agentId);
|
|
98
|
+
}
|
|
99
|
+
return new DockerSandboxView(this, workingDir, roots);
|
|
100
|
+
}
|
|
101
|
+
async health() {
|
|
102
|
+
if (this.disposed)
|
|
103
|
+
return "unavailable";
|
|
104
|
+
if (this.recovering)
|
|
105
|
+
return "starting";
|
|
106
|
+
const state = await this.inspect().catch(() => null);
|
|
107
|
+
return state?.running ? "ready" : "unavailable";
|
|
108
|
+
}
|
|
109
|
+
async removeAgentData(agentId) {
|
|
110
|
+
assertSafeAgentId(agentId);
|
|
111
|
+
this.assertUsable();
|
|
112
|
+
await this.helper("remove", { path: `${AGENTS_DIR}/${agentId}`, roots: [AGENTS_DIR] });
|
|
113
|
+
this.agentDirs.delete(agentId);
|
|
114
|
+
}
|
|
115
|
+
/** Stops and removes the container. The volume (the files) stays unless `removeData`. */
|
|
116
|
+
async dispose(opts) {
|
|
117
|
+
this.disposed = true;
|
|
118
|
+
await this.cli.run(["rm", "--force", this.containerName], { timeoutMs: 60_000 });
|
|
119
|
+
if (opts?.removeData) {
|
|
120
|
+
await this.cli.run(["volume", "rm", "--force", this.volumeName], { timeoutMs: 60_000 });
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
// ── Used by DockerSandboxView ──
|
|
124
|
+
/** @internal */
|
|
125
|
+
assertUsable() {
|
|
126
|
+
if (this.disposed) {
|
|
127
|
+
throw new SandboxError(`Sandbox "${this.id}" was disposed`, "environment_unavailable", this.id);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/** @internal Run one helper file operation; restarts the container once if it went down. */
|
|
131
|
+
async helper(op, payload, opts) {
|
|
132
|
+
this.assertUsable();
|
|
133
|
+
const args = ["exec", "--interactive", "--user", this.user, this.containerName, "node", HELPER_PATH];
|
|
134
|
+
const input = JSON.stringify({ ...payload, op });
|
|
135
|
+
const run = () => this.cli.run(args, {
|
|
136
|
+
input,
|
|
137
|
+
timeoutMs: this.provider.settings.operationTimeoutMs,
|
|
138
|
+
signal: opts?.signal,
|
|
139
|
+
sandboxId: this.id,
|
|
140
|
+
});
|
|
141
|
+
let result = await run();
|
|
142
|
+
if (result.code !== 0 && isContainerDown(result.stderr)) {
|
|
143
|
+
await this.recover();
|
|
144
|
+
result = await run();
|
|
145
|
+
}
|
|
146
|
+
return parseHelperResponse(result, this.id);
|
|
147
|
+
}
|
|
148
|
+
/** @internal Start the helper in exec mode (the caller drives stdin/stdout). */
|
|
149
|
+
spawnExec() {
|
|
150
|
+
return this.cli.spawn(["exec", "--interactive", "--user", this.user, this.containerName, "node", HELPER_PATH, "exec"]);
|
|
151
|
+
}
|
|
152
|
+
/** @internal Bring a stopped/removed container back (files are on the volume). */
|
|
153
|
+
recover() {
|
|
154
|
+
this.assertUsable();
|
|
155
|
+
this.recovering ??= this.ensureContainer().finally(() => {
|
|
156
|
+
this.recovering = undefined;
|
|
157
|
+
});
|
|
158
|
+
return this.recovering;
|
|
159
|
+
}
|
|
160
|
+
// ── Container management ──
|
|
161
|
+
async inspect() {
|
|
162
|
+
const r = await this.cli.run(["container", "inspect", "--format", "{{json .Config.Labels}}|{{.State.Running}}", this.containerName], { timeoutMs: 30_000, sandboxId: this.id });
|
|
163
|
+
if (r.code !== 0)
|
|
164
|
+
return null;
|
|
165
|
+
const line = r.stdout.trim();
|
|
166
|
+
const cut = line.lastIndexOf("|");
|
|
167
|
+
let labels = {};
|
|
168
|
+
try {
|
|
169
|
+
labels = JSON.parse(line.slice(0, cut)) ?? {};
|
|
170
|
+
}
|
|
171
|
+
catch {
|
|
172
|
+
// unreadable labels → treated as a foreign container and recreated
|
|
173
|
+
}
|
|
174
|
+
return { config: labels["aec.sandbox.config"], running: line.slice(cut + 1) === "true" };
|
|
175
|
+
}
|
|
176
|
+
async ensureContainer() {
|
|
177
|
+
const state = await this.inspect();
|
|
178
|
+
if (state && state.config === this.fingerprint) {
|
|
179
|
+
if (!state.running)
|
|
180
|
+
await this.docker(["start", this.containerName], "start the sandbox container");
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
if (state)
|
|
184
|
+
await this.docker(["rm", "--force", this.containerName], "replace the sandbox container");
|
|
185
|
+
await this.docker(this.runArgs(), "create the sandbox container");
|
|
186
|
+
}
|
|
187
|
+
this.agentDirs.clear();
|
|
188
|
+
await this.setup();
|
|
189
|
+
}
|
|
190
|
+
runArgs() {
|
|
191
|
+
const { settings } = this.provider;
|
|
192
|
+
const r = this.resources;
|
|
193
|
+
return [
|
|
194
|
+
"run", "--detach",
|
|
195
|
+
"--name", this.containerName,
|
|
196
|
+
"--hostname", "sandbox",
|
|
197
|
+
"--label", "aec.sandbox=1",
|
|
198
|
+
"--label", `aec.sandbox.id=${this.id}`,
|
|
199
|
+
"--label", `aec.sandbox.config=${this.fingerprint}`,
|
|
200
|
+
"--network", this.traits.network === "full" ? "bridge" : "none",
|
|
201
|
+
"--memory", `${r.memoryMb}m`,
|
|
202
|
+
"--memory-swap", `${r.memoryMb}m`,
|
|
203
|
+
"--cpus", String(r.cpus),
|
|
204
|
+
"--pids-limit", String(r.pids),
|
|
205
|
+
"--read-only",
|
|
206
|
+
"--tmpfs", `/tmp:rw,nosuid,nodev,size=${settings.tmpfsSize}`,
|
|
207
|
+
"--cap-drop", "ALL",
|
|
208
|
+
"--cap-add", "CHOWN",
|
|
209
|
+
"--security-opt", "no-new-privileges",
|
|
210
|
+
"--init",
|
|
211
|
+
"--user", settings.user,
|
|
212
|
+
"--env", "HOME=/tmp/home",
|
|
213
|
+
"--mount", `type=volume,source=${this.volumeName},target=${WORKSPACE_ROOT}`,
|
|
214
|
+
"--workdir", WORKSPACE_ROOT,
|
|
215
|
+
"--entrypoint", "sleep",
|
|
216
|
+
this.image,
|
|
217
|
+
"infinity",
|
|
218
|
+
];
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Install the helper (root-owned, so the sandbox user cannot replace it), give the
|
|
222
|
+
* sandbox user /workspace and a HOME, then create the layout folders as that user.
|
|
223
|
+
*/
|
|
224
|
+
async setup() {
|
|
225
|
+
const script = [
|
|
226
|
+
"set -e",
|
|
227
|
+
"mkdir -p /tmp/.aec /tmp/home",
|
|
228
|
+
"cat > /tmp/.aec/helper.js",
|
|
229
|
+
"chown 0:0 /tmp/.aec /tmp/.aec/helper.js",
|
|
230
|
+
"chmod 755 /tmp/.aec",
|
|
231
|
+
"chmod 644 /tmp/.aec/helper.js",
|
|
232
|
+
'chown "$1" /tmp/home /workspace',
|
|
233
|
+
].join("\n");
|
|
234
|
+
await this.docker(["exec", "--interactive", "--user", "0", this.containerName, "sh", "-c", script, "sh", this.user], "set up the sandbox container", HELPER_SOURCE);
|
|
235
|
+
try {
|
|
236
|
+
// Own tenancy uses /workspace directly; the shared layout folders only exist in shared sandboxes.
|
|
237
|
+
// const paths = this.traits.tenancy === "shared" ? [SHARED_DIR, AGENTS_DIR] : [WORKSPACE_ROOT];
|
|
238
|
+
const paths = this.traits.tenancy === "shared" ? [AGENTS_DIR] : [WORKSPACE_ROOT];
|
|
239
|
+
await this.helper("mkdir", { paths, roots: [WORKSPACE_ROOT] });
|
|
240
|
+
}
|
|
241
|
+
catch (error) {
|
|
242
|
+
if (error instanceof SandboxError && error.code === "environment_unavailable") {
|
|
243
|
+
throw new SandboxError(`Image "${this.image}" cannot run the sandbox helper — sandbox images must include node (>= 18). ${error.message}`, "environment_unavailable", this.id);
|
|
244
|
+
}
|
|
245
|
+
throw error;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
async docker(args, what, input) {
|
|
249
|
+
const r = await this.cli.run(args, { input, timeoutMs: 120_000, sandboxId: this.id });
|
|
250
|
+
if (r.code !== 0) {
|
|
251
|
+
throw new SandboxError(`Could not ${what}: ${firstLines(r.stderr) || `docker exited with ${r.code}`}`, "environment_unavailable", this.id);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
class DockerSandboxView {
|
|
256
|
+
managed;
|
|
257
|
+
workingDir;
|
|
258
|
+
roots;
|
|
259
|
+
id;
|
|
260
|
+
traits;
|
|
261
|
+
capabilities;
|
|
262
|
+
limits;
|
|
263
|
+
constructor(managed, workingDir, roots) {
|
|
264
|
+
this.managed = managed;
|
|
265
|
+
this.workingDir = workingDir;
|
|
266
|
+
this.roots = roots;
|
|
267
|
+
this.id = managed.id;
|
|
268
|
+
this.traits = managed.traits;
|
|
269
|
+
this.capabilities = managed.capabilities;
|
|
270
|
+
this.limits = managed.limits;
|
|
271
|
+
}
|
|
272
|
+
// ── Guards ──
|
|
273
|
+
fail(message, code) {
|
|
274
|
+
throw new SandboxError(message, code, this.id);
|
|
275
|
+
}
|
|
276
|
+
begin(capability, opts) {
|
|
277
|
+
this.managed.assertUsable();
|
|
278
|
+
if (!this.capabilities.has(capability))
|
|
279
|
+
this.fail(`This sandbox does not support ${capability}`, "capability_unsupported");
|
|
280
|
+
if (opts?.signal?.aborted)
|
|
281
|
+
this.fail("Operation cancelled", "cancelled");
|
|
282
|
+
}
|
|
283
|
+
/** Host-side canonicalisation (traversal, absolute, host paths); symlinks are checked in the container. */
|
|
284
|
+
logical(path) {
|
|
285
|
+
return resolveLogicalPath(path, this.workingDir, this.roots, this.id);
|
|
286
|
+
}
|
|
287
|
+
// ── Files ──
|
|
288
|
+
async readFile(path, opts) {
|
|
289
|
+
this.begin("fs.read", opts);
|
|
290
|
+
return this.managed.helper("read", {
|
|
291
|
+
path: this.logical(path),
|
|
292
|
+
roots: this.roots,
|
|
293
|
+
maxBytes: clamp(opts?.maxBytes, this.limits.maxReadBytes),
|
|
294
|
+
...(typeof opts?.startLine === "number" ? { startLine: opts.startLine } : {}),
|
|
295
|
+
...(typeof opts?.endLine === "number" ? { endLine: opts.endLine } : {}),
|
|
296
|
+
rangeMaxBytes: RANGE_READ_MAX_BYTES,
|
|
297
|
+
}, opts);
|
|
298
|
+
}
|
|
299
|
+
async writeFile(path, content, opts) {
|
|
300
|
+
this.begin("fs.write", opts);
|
|
301
|
+
if (typeof content !== "string")
|
|
302
|
+
this.fail("Content must be a string", "invalid_argument");
|
|
303
|
+
const bytes = Buffer.byteLength(content, "utf8");
|
|
304
|
+
if (bytes > this.limits.maxWriteBytes) {
|
|
305
|
+
this.fail(`Content is ${bytes} bytes (limit ${this.limits.maxWriteBytes})`, "too_large");
|
|
306
|
+
}
|
|
307
|
+
return this.managed.helper("write", {
|
|
308
|
+
path: this.logical(path),
|
|
309
|
+
roots: this.roots,
|
|
310
|
+
content,
|
|
311
|
+
createDirs: opts?.createDirs !== false,
|
|
312
|
+
...(opts?.expectedSha256 !== undefined ? { expectedSha256: opts.expectedSha256 } : {}),
|
|
313
|
+
}, opts);
|
|
314
|
+
}
|
|
315
|
+
async stat(path, opts) {
|
|
316
|
+
this.begin("fs.read", opts);
|
|
317
|
+
return this.managed.helper("stat", { path: this.logical(path), roots: this.roots }, opts);
|
|
318
|
+
}
|
|
319
|
+
async list(path, opts) {
|
|
320
|
+
this.begin("fs.read", opts);
|
|
321
|
+
return this.managed.helper("list", {
|
|
322
|
+
path: this.logical(path),
|
|
323
|
+
roots: this.roots,
|
|
324
|
+
recursive: opts?.recursive === true,
|
|
325
|
+
includeHidden: opts?.includeHidden === true,
|
|
326
|
+
maxEntries: clamp(opts?.maxEntries, this.limits.maxListEntries),
|
|
327
|
+
}, opts);
|
|
328
|
+
}
|
|
329
|
+
async search(query, opts) {
|
|
330
|
+
this.begin("fs.search", opts);
|
|
331
|
+
if (typeof query.pattern !== "string" || query.pattern === "") {
|
|
332
|
+
this.fail("Search pattern must be a non-empty string", "invalid_argument");
|
|
333
|
+
}
|
|
334
|
+
return this.managed.helper("search", {
|
|
335
|
+
path: this.logical(query.path ?? this.workingDir),
|
|
336
|
+
roots: this.roots,
|
|
337
|
+
pattern: query.pattern,
|
|
338
|
+
literal: query.literal !== false,
|
|
339
|
+
caseSensitive: query.caseSensitive !== false,
|
|
340
|
+
...(typeof query.glob === "string" && query.glob ? { glob: query.glob } : {}),
|
|
341
|
+
maxMatches: clamp(query.maxMatches, this.limits.maxSearchMatches),
|
|
342
|
+
maxFileBytes: SEARCH_MAX_FILE_BYTES,
|
|
343
|
+
timeBudgetMs: SEARCH_TIME_BUDGET_MS,
|
|
344
|
+
}, opts);
|
|
345
|
+
}
|
|
346
|
+
// ── Commands ──
|
|
347
|
+
async exec(request, opts) {
|
|
348
|
+
this.managed.assertUsable();
|
|
349
|
+
if (!this.capabilities.has("exec"))
|
|
350
|
+
this.fail("This sandbox does not support exec", "capability_unsupported");
|
|
351
|
+
if (request.shell && !this.capabilities.has("exec.shell")) {
|
|
352
|
+
this.fail("This sandbox does not support shell commands", "capability_unsupported");
|
|
353
|
+
}
|
|
354
|
+
if (!Array.isArray(request.command) ||
|
|
355
|
+
request.command.length === 0 ||
|
|
356
|
+
request.command.some((part) => typeof part !== "string") ||
|
|
357
|
+
request.command[0] === "") {
|
|
358
|
+
this.fail("command must be a non-empty argv array of strings", "invalid_argument");
|
|
359
|
+
}
|
|
360
|
+
if (!(request.timeoutMs > 0) || !(request.maxOutputBytes > 0)) {
|
|
361
|
+
this.fail("timeoutMs and maxOutputBytes must be positive", "invalid_argument");
|
|
362
|
+
}
|
|
363
|
+
for (const [key, value] of Object.entries(request.env ?? {})) {
|
|
364
|
+
if (!ENV_NAME.test(key) || typeof value !== "string")
|
|
365
|
+
this.fail(`Invalid environment variable "${key}"`, "invalid_argument");
|
|
366
|
+
}
|
|
367
|
+
if (request.stdin !== undefined && typeof request.stdin !== "string")
|
|
368
|
+
this.fail("stdin must be a string", "invalid_argument");
|
|
369
|
+
const header = {
|
|
370
|
+
command: request.command,
|
|
371
|
+
shell: request.shell === true,
|
|
372
|
+
cwd: this.logical(request.cwd ?? this.workingDir),
|
|
373
|
+
roots: this.roots,
|
|
374
|
+
env: request.env ?? {},
|
|
375
|
+
stdin: request.stdin ?? "",
|
|
376
|
+
timeoutMs: Math.min(Math.floor(request.timeoutMs), this.limits.maxExecTimeoutMs),
|
|
377
|
+
maxOutputBytes: Math.min(Math.floor(request.maxOutputBytes), this.limits.maxExecOutputBytes),
|
|
378
|
+
};
|
|
379
|
+
try {
|
|
380
|
+
return await this.runExec(header, opts);
|
|
381
|
+
}
|
|
382
|
+
catch (error) {
|
|
383
|
+
if (!(error instanceof ContainerDown))
|
|
384
|
+
throw error;
|
|
385
|
+
await this.managed.recover();
|
|
386
|
+
try {
|
|
387
|
+
return await this.runExec(header, opts);
|
|
388
|
+
}
|
|
389
|
+
catch (retryError) {
|
|
390
|
+
if (retryError instanceof ContainerDown) {
|
|
391
|
+
this.fail(`The sandbox container is not running: ${retryError.message}`, "environment_unavailable");
|
|
392
|
+
}
|
|
393
|
+
throw retryError;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* One `docker exec` of the helper. Timeout / cancel / output cap close the helper's
|
|
399
|
+
* stdin, which kills the command's process group INSIDE the container (killing the
|
|
400
|
+
* docker client alone would leave it running).
|
|
401
|
+
*/
|
|
402
|
+
runExec(header, opts) {
|
|
403
|
+
const started = Date.now();
|
|
404
|
+
const result = {
|
|
405
|
+
exitCode: null, stdout: "", stderr: "", truncated: false, timedOut: false, cancelled: false, durationMs: 0,
|
|
406
|
+
};
|
|
407
|
+
if (opts?.signal?.aborted) {
|
|
408
|
+
result.cancelled = true;
|
|
409
|
+
return Promise.resolve(result);
|
|
410
|
+
}
|
|
411
|
+
return new Promise((resolve, reject) => {
|
|
412
|
+
const proc = this.managed.spawnExec();
|
|
413
|
+
const maxOutput = header.maxOutputBytes;
|
|
414
|
+
const chunks = { stdout: [], stderr: [] };
|
|
415
|
+
const decoders = { stdout: new StringDecoder("utf8"), stderr: new StringDecoder("utf8") };
|
|
416
|
+
const earlyStderr = [];
|
|
417
|
+
let head = Buffer.alloc(0);
|
|
418
|
+
let running = false;
|
|
419
|
+
let startError;
|
|
420
|
+
let written = 0;
|
|
421
|
+
let stopping = false;
|
|
422
|
+
let settled = false;
|
|
423
|
+
let forceKill;
|
|
424
|
+
const stop = () => {
|
|
425
|
+
if (stopping)
|
|
426
|
+
return;
|
|
427
|
+
stopping = true;
|
|
428
|
+
proc.stdin.end();
|
|
429
|
+
forceKill = setTimeout(() => proc.kill(), STOP_GRACE_MS);
|
|
430
|
+
};
|
|
431
|
+
const timer = setTimeout(() => {
|
|
432
|
+
result.timedOut = true;
|
|
433
|
+
stop();
|
|
434
|
+
}, header.timeoutMs);
|
|
435
|
+
const onAbort = () => {
|
|
436
|
+
result.cancelled = true;
|
|
437
|
+
stop();
|
|
438
|
+
};
|
|
439
|
+
opts?.signal?.addEventListener("abort", onAbort, { once: true });
|
|
440
|
+
const take = (stream, data) => {
|
|
441
|
+
if (stopping || data.length === 0)
|
|
442
|
+
return;
|
|
443
|
+
const room = maxOutput - written;
|
|
444
|
+
const piece = data.length > room ? data.subarray(0, room) : data;
|
|
445
|
+
written += piece.length;
|
|
446
|
+
if (piece.length > 0) {
|
|
447
|
+
chunks[stream].push(piece);
|
|
448
|
+
const text = decoders[stream].write(piece);
|
|
449
|
+
if (text)
|
|
450
|
+
opts?.onOutput?.({ stream, data: text });
|
|
451
|
+
}
|
|
452
|
+
if (piece.length < data.length) {
|
|
453
|
+
result.truncated = true;
|
|
454
|
+
stop();
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
proc.stdout.on("data", (chunk) => {
|
|
458
|
+
if (running) {
|
|
459
|
+
take("stdout", chunk);
|
|
460
|
+
return;
|
|
461
|
+
}
|
|
462
|
+
if (startError)
|
|
463
|
+
return;
|
|
464
|
+
head = Buffer.concat([head, chunk]);
|
|
465
|
+
const nl = head.indexOf(10);
|
|
466
|
+
if (nl === -1) {
|
|
467
|
+
if (head.length > 65_536) {
|
|
468
|
+
startError = new SandboxError("Unexpected output from the sandbox helper", "environment_unavailable", this.id);
|
|
469
|
+
stop();
|
|
470
|
+
}
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
const line = head.subarray(0, nl).toString("utf8");
|
|
474
|
+
const rest = head.subarray(nl + 1);
|
|
475
|
+
head = Buffer.alloc(0);
|
|
476
|
+
if (line === "AEC-OK") {
|
|
477
|
+
running = true;
|
|
478
|
+
for (const early of earlyStderr)
|
|
479
|
+
take("stderr", early);
|
|
480
|
+
earlyStderr.length = 0;
|
|
481
|
+
take("stdout", rest);
|
|
482
|
+
}
|
|
483
|
+
else if (line.startsWith("AEC-ERR ")) {
|
|
484
|
+
startError = helperError(line.slice("AEC-ERR ".length), this.id);
|
|
485
|
+
stop();
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
488
|
+
startError = new SandboxError(`Unexpected output from the sandbox helper: ${line.slice(0, 200)}`, "environment_unavailable", this.id);
|
|
489
|
+
stop();
|
|
490
|
+
}
|
|
491
|
+
});
|
|
492
|
+
proc.stderr.on("data", (chunk) => {
|
|
493
|
+
// Before "AEC-OK" stderr is docker's own (e.g. "No such container") — or command
|
|
494
|
+
// output that overtook stdout; it is replayed once the command is known to run.
|
|
495
|
+
if (running)
|
|
496
|
+
take("stderr", chunk);
|
|
497
|
+
else
|
|
498
|
+
earlyStderr.push(chunk);
|
|
499
|
+
});
|
|
500
|
+
const settle = (fn) => {
|
|
501
|
+
if (settled)
|
|
502
|
+
return;
|
|
503
|
+
settled = true;
|
|
504
|
+
clearTimeout(timer);
|
|
505
|
+
clearTimeout(forceKill);
|
|
506
|
+
opts?.signal?.removeEventListener("abort", onAbort);
|
|
507
|
+
fn();
|
|
508
|
+
};
|
|
509
|
+
proc.on("error", (error) => {
|
|
510
|
+
settle(() => reject(dockerSpawnError(error, "docker", this.id)));
|
|
511
|
+
});
|
|
512
|
+
proc.on("close", (code) => {
|
|
513
|
+
settle(() => {
|
|
514
|
+
if (startError) {
|
|
515
|
+
reject(startError);
|
|
516
|
+
return;
|
|
517
|
+
}
|
|
518
|
+
if (!running && !result.cancelled && !result.timedOut) {
|
|
519
|
+
const stderr = Buffer.concat(earlyStderr).toString("utf8");
|
|
520
|
+
reject(isContainerDown(stderr)
|
|
521
|
+
? new ContainerDown(firstLines(stderr))
|
|
522
|
+
: new SandboxError(`Could not start the command: ${firstLines(stderr) || `docker exited with ${code}`}`, "environment_unavailable", this.id));
|
|
523
|
+
return;
|
|
524
|
+
}
|
|
525
|
+
for (const stream of ["stdout", "stderr"]) {
|
|
526
|
+
const tail = decoders[stream].end();
|
|
527
|
+
if (tail)
|
|
528
|
+
opts?.onOutput?.({ stream, data: tail });
|
|
529
|
+
result[stream] = Buffer.concat(chunks[stream]).toString("utf8");
|
|
530
|
+
}
|
|
531
|
+
result.exitCode = stopping ? null : code;
|
|
532
|
+
result.durationMs = Date.now() - started;
|
|
533
|
+
resolve(result);
|
|
534
|
+
});
|
|
535
|
+
});
|
|
536
|
+
proc.stdin.on("error", () => { });
|
|
537
|
+
proc.stdin.write(`${JSON.stringify(header)}\n`);
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
// ── Helpers ──
|
|
542
|
+
function parseHelperResponse(r, sandboxId) {
|
|
543
|
+
const line = r.stdout.trim().split("\n").pop() ?? "";
|
|
544
|
+
let response;
|
|
545
|
+
try {
|
|
546
|
+
response = JSON.parse(line);
|
|
547
|
+
}
|
|
548
|
+
catch {
|
|
549
|
+
// not JSON — docker or node failed before the helper could answer
|
|
550
|
+
}
|
|
551
|
+
if (!response || typeof response !== "object" || !("ok" in response)) {
|
|
552
|
+
throw new SandboxError(`The sandbox did not answer: ${firstLines(r.stderr) || `docker exited with ${r.code}`}`, "environment_unavailable", sandboxId);
|
|
553
|
+
}
|
|
554
|
+
if (!response.ok)
|
|
555
|
+
throw new SandboxError(response.message, response.code, sandboxId);
|
|
556
|
+
return response.result;
|
|
557
|
+
}
|
|
558
|
+
function helperError(json, sandboxId) {
|
|
559
|
+
try {
|
|
560
|
+
const { code, message } = JSON.parse(json);
|
|
561
|
+
return new SandboxError(message, code, sandboxId);
|
|
562
|
+
}
|
|
563
|
+
catch {
|
|
564
|
+
return new SandboxError("The sandbox helper reported an unreadable error", "environment_unavailable", sandboxId);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
function clamp(value, max) {
|
|
568
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value <= 0)
|
|
569
|
+
return max;
|
|
570
|
+
return Math.min(Math.floor(value), max);
|
|
571
|
+
}
|
|
572
|
+
function definedOnly(limits) {
|
|
573
|
+
const out = {};
|
|
574
|
+
for (const key of ["cpus", "memoryMb", "pids"]) {
|
|
575
|
+
const value = limits?.[key];
|
|
576
|
+
if (typeof value === "number" && Number.isFinite(value) && value > 0)
|
|
577
|
+
out[key] = value;
|
|
578
|
+
}
|
|
579
|
+
return out;
|
|
580
|
+
}
|
|
581
|
+
function firstLines(text) {
|
|
582
|
+
return text.trim().split("\n").slice(0, 3).join(" ").slice(0, 500);
|
|
583
|
+
}
|
|
584
|
+
//# sourceMappingURL=docker-sandbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docker-sandbox.js","sourceRoot":"","sources":["../../../../src/components/sandbox-hub/docker/docker-sandbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAEvE,OAAO,EACL,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,kBAAkB;AAClB,cAAc;AACd,cAAc,GACf,MAAM,oBAAoB,CAAC;AAsB5B,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGpE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEjE,8EAA8E;AAC9E,uEAAuE;AACvE,EAAE;AACF,2FAA2F;AAC3F,qFAAqF;AACrF,EAAE;AACF,kFAAkF;AAClF,iFAAiF;AACjF,kFAAkF;AAClF,wDAAwD;AACxD,8EAA8E;AAE9E,8FAA8F;AAC9F,MAAM,oBAAoB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAC9C,qGAAqG;AACrG,MAAM,qBAAqB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAC9C,MAAM,qBA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