comisai 1.0.4
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/LICENSE +191 -0
- package/README.md +186 -0
- package/dist/agent.d.ts +1 -0
- package/dist/agent.js +2 -0
- package/dist/channels.d.ts +1 -0
- package/dist/channels.js +2 -0
- package/dist/cli-entry.d.ts +2 -0
- package/dist/cli-entry.js +16 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +2 -0
- package/dist/core.d.ts +1 -0
- package/dist/core.js +2 -0
- package/dist/daemon.d.ts +1 -0
- package/dist/daemon.js +2 -0
- package/dist/gateway.d.ts +1 -0
- package/dist/gateway.js +2 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +15 -0
- package/dist/infra.d.ts +1 -0
- package/dist/infra.js +2 -0
- package/dist/memory.d.ts +1 -0
- package/dist/memory.js +2 -0
- package/dist/scheduler.d.ts +1 -0
- package/dist/scheduler.js +2 -0
- package/dist/shared.d.ts +1 -0
- package/dist/shared.js +2 -0
- package/dist/skills.d.ts +1 -0
- package/dist/skills.js +2 -0
- package/node_modules/@comis/agent/dist/background/auto-background-middleware.d.ts +27 -0
- package/node_modules/@comis/agent/dist/background/auto-background-middleware.js +87 -0
- package/node_modules/@comis/agent/dist/background/background-task-manager.d.ts +34 -0
- package/node_modules/@comis/agent/dist/background/background-task-manager.js +199 -0
- package/node_modules/@comis/agent/dist/background/background-task-persistence.d.ts +26 -0
- package/node_modules/@comis/agent/dist/background/background-task-persistence.js +117 -0
- package/node_modules/@comis/agent/dist/background/background-task-types.d.ts +30 -0
- package/node_modules/@comis/agent/dist/background/background-task-types.js +7 -0
- package/node_modules/@comis/agent/dist/background/index.d.ts +11 -0
- package/node_modules/@comis/agent/dist/background/index.js +9 -0
- package/node_modules/@comis/agent/dist/bootstrap/index.d.ts +6 -0
- package/node_modules/@comis/agent/dist/bootstrap/index.js +7 -0
- package/node_modules/@comis/agent/dist/bootstrap/section-extractor.d.ts +28 -0
- package/node_modules/@comis/agent/dist/bootstrap/section-extractor.js +70 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/context-sections.d.ts +43 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/context-sections.js +224 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/core-sections.d.ts +12 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/core-sections.js +162 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/docs-sections.d.ts +19 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/docs-sections.js +75 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/index.d.ts +10 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/index.js +11 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/media-sections.d.ts +21 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/media-sections.js +117 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/messaging-sections.d.ts +14 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/messaging-sections.js +119 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/skills-memory-sections.d.ts +7 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/skills-memory-sections.js +114 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/tool-descriptions.d.ts +81 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/tool-descriptions.js +549 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/tooling-sections.d.ts +62 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/tooling-sections.js +363 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/trust-sections.d.ts +47 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/trust-sections.js +106 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/verbosity-sections.d.ts +30 -0
- package/node_modules/@comis/agent/dist/bootstrap/sections/verbosity-sections.js +68 -0
- package/node_modules/@comis/agent/dist/bootstrap/system-prompt-assembler.d.ts +108 -0
- package/node_modules/@comis/agent/dist/bootstrap/system-prompt-assembler.js +199 -0
- package/node_modules/@comis/agent/dist/bootstrap/types.d.ts +96 -0
- package/node_modules/@comis/agent/dist/bootstrap/types.js +21 -0
- package/node_modules/@comis/agent/dist/bootstrap/workspace-loader.d.ts +121 -0
- package/node_modules/@comis/agent/dist/bootstrap/workspace-loader.js +227 -0
- package/node_modules/@comis/agent/dist/bridge/bridge-event-handlers.d.ts +30 -0
- package/node_modules/@comis/agent/dist/bridge/bridge-event-handlers.js +94 -0
- package/node_modules/@comis/agent/dist/bridge/bridge-metrics.d.ts +95 -0
- package/node_modules/@comis/agent/dist/bridge/bridge-metrics.js +104 -0
- package/node_modules/@comis/agent/dist/bridge/bridge-safety-controls.d.ts +105 -0
- package/node_modules/@comis/agent/dist/bridge/bridge-safety-controls.js +182 -0
- package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.d.ts +185 -0
- package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.js +775 -0
- package/node_modules/@comis/agent/dist/budget/budget-guard.d.ts +48 -0
- package/node_modules/@comis/agent/dist/budget/budget-guard.js +128 -0
- package/node_modules/@comis/agent/dist/budget/cost-tracker.d.ts +110 -0
- package/node_modules/@comis/agent/dist/budget/cost-tracker.js +124 -0
- package/node_modules/@comis/agent/dist/budget/turn-budget-tracker.d.ts +63 -0
- package/node_modules/@comis/agent/dist/budget/turn-budget-tracker.js +65 -0
- package/node_modules/@comis/agent/dist/commands/budget-command.d.ts +37 -0
- package/node_modules/@comis/agent/dist/commands/budget-command.js +97 -0
- package/node_modules/@comis/agent/dist/commands/command-handler.d.ts +23 -0
- package/node_modules/@comis/agent/dist/commands/command-handler.js +508 -0
- package/node_modules/@comis/agent/dist/commands/command-parser.d.ts +24 -0
- package/node_modules/@comis/agent/dist/commands/command-parser.js +182 -0
- package/node_modules/@comis/agent/dist/commands/index.d.ts +8 -0
- package/node_modules/@comis/agent/dist/commands/index.js +10 -0
- package/node_modules/@comis/agent/dist/commands/prompt-skill-command.d.ts +53 -0
- package/node_modules/@comis/agent/dist/commands/prompt-skill-command.js +105 -0
- package/node_modules/@comis/agent/dist/commands/types.d.ts +184 -0
- package/node_modules/@comis/agent/dist/commands/types.js +14 -0
- package/node_modules/@comis/agent/dist/context-engine/cleanup-helpers.d.ts +20 -0
- package/node_modules/@comis/agent/dist/context-engine/cleanup-helpers.js +36 -0
- package/node_modules/@comis/agent/dist/context-engine/constants.d.ts +167 -0
- package/node_modules/@comis/agent/dist/context-engine/constants.js +292 -0
- package/node_modules/@comis/agent/dist/context-engine/context-engine.d.ts +26 -0
- package/node_modules/@comis/agent/dist/context-engine/context-engine.js +554 -0
- package/node_modules/@comis/agent/dist/context-engine/dag-annotator.d.ts +49 -0
- package/node_modules/@comis/agent/dist/context-engine/dag-annotator.js +178 -0
- package/node_modules/@comis/agent/dist/context-engine/dag-assembler.d.ts +32 -0
- package/node_modules/@comis/agent/dist/context-engine/dag-assembler.js +298 -0
- package/node_modules/@comis/agent/dist/context-engine/dag-compaction.d.ts +110 -0
- package/node_modules/@comis/agent/dist/context-engine/dag-compaction.js +358 -0
- package/node_modules/@comis/agent/dist/context-engine/dag-integrity.d.ts +27 -0
- package/node_modules/@comis/agent/dist/context-engine/dag-integrity.js +371 -0
- package/node_modules/@comis/agent/dist/context-engine/dag-reconciliation.d.ts +95 -0
- package/node_modules/@comis/agent/dist/context-engine/dag-reconciliation.js +521 -0
- package/node_modules/@comis/agent/dist/context-engine/dag-triggers.d.ts +88 -0
- package/node_modules/@comis/agent/dist/context-engine/dag-triggers.js +229 -0
- package/node_modules/@comis/agent/dist/context-engine/dead-content-evictor.d.ts +40 -0
- package/node_modules/@comis/agent/dist/context-engine/dead-content-evictor.js +441 -0
- package/node_modules/@comis/agent/dist/context-engine/history-window.d.ts +59 -0
- package/node_modules/@comis/agent/dist/context-engine/history-window.js +250 -0
- package/node_modules/@comis/agent/dist/context-engine/index.d.ts +45 -0
- package/node_modules/@comis/agent/dist/context-engine/index.js +51 -0
- package/node_modules/@comis/agent/dist/context-engine/llm-compaction.d.ts +52 -0
- package/node_modules/@comis/agent/dist/context-engine/llm-compaction.js +466 -0
- package/node_modules/@comis/agent/dist/context-engine/microcompaction-guard.d.ts +49 -0
- package/node_modules/@comis/agent/dist/context-engine/microcompaction-guard.js +288 -0
- package/node_modules/@comis/agent/dist/context-engine/objective-reinforcement.d.ts +24 -0
- package/node_modules/@comis/agent/dist/context-engine/objective-reinforcement.js +100 -0
- package/node_modules/@comis/agent/dist/context-engine/observation-masker.d.ts +53 -0
- package/node_modules/@comis/agent/dist/context-engine/observation-masker.js +344 -0
- package/node_modules/@comis/agent/dist/context-engine/reasoning-tag-stripper.d.ts +43 -0
- package/node_modules/@comis/agent/dist/context-engine/reasoning-tag-stripper.js +131 -0
- package/node_modules/@comis/agent/dist/context-engine/rehydration.d.ts +30 -0
- package/node_modules/@comis/agent/dist/context-engine/rehydration.js +393 -0
- package/node_modules/@comis/agent/dist/context-engine/reread-detector.d.ts +31 -0
- package/node_modules/@comis/agent/dist/context-engine/reread-detector.js +116 -0
- package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.d.ts +37 -0
- package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.js +119 -0
- package/node_modules/@comis/agent/dist/context-engine/token-budget.d.ts +31 -0
- package/node_modules/@comis/agent/dist/context-engine/token-budget.js +52 -0
- package/node_modules/@comis/agent/dist/context-engine/types-compaction.d.ts +109 -0
- package/node_modules/@comis/agent/dist/context-engine/types-compaction.js +7 -0
- package/node_modules/@comis/agent/dist/context-engine/types-core.d.ts +292 -0
- package/node_modules/@comis/agent/dist/context-engine/types-core.js +7 -0
- package/node_modules/@comis/agent/dist/context-engine/types-dag.d.ts +239 -0
- package/node_modules/@comis/agent/dist/context-engine/types-dag.js +7 -0
- package/node_modules/@comis/agent/dist/context-engine/types-eviction.d.ts +17 -0
- package/node_modules/@comis/agent/dist/context-engine/types-eviction.js +7 -0
- package/node_modules/@comis/agent/dist/context-engine/types-integrity.d.ts +77 -0
- package/node_modules/@comis/agent/dist/context-engine/types-integrity.js +7 -0
- package/node_modules/@comis/agent/dist/context-engine/types.d.ts +20 -0
- package/node_modules/@comis/agent/dist/context-engine/types.js +21 -0
- package/node_modules/@comis/agent/dist/envelope/elapsed-time.d.ts +12 -0
- package/node_modules/@comis/agent/dist/envelope/elapsed-time.js +30 -0
- package/node_modules/@comis/agent/dist/envelope/index.d.ts +2 -0
- package/node_modules/@comis/agent/dist/envelope/index.js +4 -0
- package/node_modules/@comis/agent/dist/envelope/message-envelope.d.ts +25 -0
- package/node_modules/@comis/agent/dist/envelope/message-envelope.js +71 -0
- package/node_modules/@comis/agent/dist/executor/active-run-registry.d.ts +47 -0
- package/node_modules/@comis/agent/dist/executor/active-run-registry.js +48 -0
- package/node_modules/@comis/agent/dist/executor/adaptive-cache-retention.d.ts +72 -0
- package/node_modules/@comis/agent/dist/executor/adaptive-cache-retention.js +144 -0
- package/node_modules/@comis/agent/dist/executor/block-stability-tracker.d.ts +41 -0
- package/node_modules/@comis/agent/dist/executor/block-stability-tracker.js +69 -0
- package/node_modules/@comis/agent/dist/executor/cache-break-detection.d.ts +228 -0
- package/node_modules/@comis/agent/dist/executor/cache-break-detection.js +656 -0
- package/node_modules/@comis/agent/dist/executor/cache-break-diff-writer.d.ts +90 -0
- package/node_modules/@comis/agent/dist/executor/cache-break-diff-writer.js +159 -0
- package/node_modules/@comis/agent/dist/executor/cache-usage-helpers.d.ts +26 -0
- package/node_modules/@comis/agent/dist/executor/cache-usage-helpers.js +48 -0
- package/node_modules/@comis/agent/dist/executor/discovery-tracker.d.ts +74 -0
- package/node_modules/@comis/agent/dist/executor/discovery-tracker.js +130 -0
- package/node_modules/@comis/agent/dist/executor/error-classifier.d.ts +37 -0
- package/node_modules/@comis/agent/dist/executor/error-classifier.js +141 -0
- package/node_modules/@comis/agent/dist/executor/executor-command-handlers.d.ts +73 -0
- package/node_modules/@comis/agent/dist/executor/executor-command-handlers.js +275 -0
- package/node_modules/@comis/agent/dist/executor/executor-context-engine-setup.d.ts +98 -0
- package/node_modules/@comis/agent/dist/executor/executor-context-engine-setup.js +259 -0
- package/node_modules/@comis/agent/dist/executor/executor-input-guard.d.ts +42 -0
- package/node_modules/@comis/agent/dist/executor/executor-input-guard.js +156 -0
- package/node_modules/@comis/agent/dist/executor/executor-post-execution.d.ts +154 -0
- package/node_modules/@comis/agent/dist/executor/executor-post-execution.js +337 -0
- package/node_modules/@comis/agent/dist/executor/executor-prompt-runner.d.ts +133 -0
- package/node_modules/@comis/agent/dist/executor/executor-prompt-runner.js +755 -0
- package/node_modules/@comis/agent/dist/executor/executor-response-filter.d.ts +91 -0
- package/node_modules/@comis/agent/dist/executor/executor-response-filter.js +224 -0
- package/node_modules/@comis/agent/dist/executor/executor-session-state.d.ts +142 -0
- package/node_modules/@comis/agent/dist/executor/executor-session-state.js +299 -0
- package/node_modules/@comis/agent/dist/executor/executor-stream-setup.d.ts +124 -0
- package/node_modules/@comis/agent/dist/executor/executor-stream-setup.js +244 -0
- package/node_modules/@comis/agent/dist/executor/executor-tool-assembly.d.ts +144 -0
- package/node_modules/@comis/agent/dist/executor/executor-tool-assembly.js +339 -0
- package/node_modules/@comis/agent/dist/executor/executor-tool-pipeline.d.ts +75 -0
- package/node_modules/@comis/agent/dist/executor/executor-tool-pipeline.js +192 -0
- package/node_modules/@comis/agent/dist/executor/fault-injector.d.ts +51 -0
- package/node_modules/@comis/agent/dist/executor/fault-injector.js +93 -0
- package/node_modules/@comis/agent/dist/executor/gemini-cache-injector.d.ts +50 -0
- package/node_modules/@comis/agent/dist/executor/gemini-cache-injector.js +140 -0
- package/node_modules/@comis/agent/dist/executor/gemini-cache-lifecycle.d.ts +30 -0
- package/node_modules/@comis/agent/dist/executor/gemini-cache-lifecycle.js +31 -0
- package/node_modules/@comis/agent/dist/executor/gemini-cache-manager.d.ts +74 -0
- package/node_modules/@comis/agent/dist/executor/gemini-cache-manager.js +323 -0
- package/node_modules/@comis/agent/dist/executor/jit-guide-injector.d.ts +56 -0
- package/node_modules/@comis/agent/dist/executor/jit-guide-injector.js +127 -0
- package/node_modules/@comis/agent/dist/executor/mcp-disconnect-cleanup.d.ts +36 -0
- package/node_modules/@comis/agent/dist/executor/mcp-disconnect-cleanup.js +43 -0
- package/node_modules/@comis/agent/dist/executor/model-retry.d.ts +85 -0
- package/node_modules/@comis/agent/dist/executor/model-retry.js +301 -0
- package/node_modules/@comis/agent/dist/executor/overflow-recovery.d.ts +69 -0
- package/node_modules/@comis/agent/dist/executor/overflow-recovery.js +182 -0
- package/node_modules/@comis/agent/dist/executor/phase-filter.d.ts +21 -0
- package/node_modules/@comis/agent/dist/executor/phase-filter.js +63 -0
- package/node_modules/@comis/agent/dist/executor/pi-executor.d.ts +200 -0
- package/node_modules/@comis/agent/dist/executor/pi-executor.js +1028 -0
- package/node_modules/@comis/agent/dist/executor/prompt-assembly.d.ts +174 -0
- package/node_modules/@comis/agent/dist/executor/prompt-assembly.js +767 -0
- package/node_modules/@comis/agent/dist/executor/prompt-timeout.d.ts +57 -0
- package/node_modules/@comis/agent/dist/executor/prompt-timeout.js +112 -0
- package/node_modules/@comis/agent/dist/executor/schema-stripping.d.ts +19 -0
- package/node_modules/@comis/agent/dist/executor/schema-stripping.js +113 -0
- package/node_modules/@comis/agent/dist/executor/session-latch.d.ts +63 -0
- package/node_modules/@comis/agent/dist/executor/session-latch.js +60 -0
- package/node_modules/@comis/agent/dist/executor/session-snapshot-cleanup.d.ts +35 -0
- package/node_modules/@comis/agent/dist/executor/session-snapshot-cleanup.js +65 -0
- package/node_modules/@comis/agent/dist/executor/step-counter.d.ts +21 -0
- package/node_modules/@comis/agent/dist/executor/step-counter.js +29 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/__test-helpers.d.ts +9 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/__test-helpers.js +43 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/api-payload-trace-writer.d.ts +40 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/api-payload-trace-writer.js +91 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/cache-trace-writer.d.ts +65 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/cache-trace-writer.js +145 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/compose.d.ts +20 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/compose.js +27 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/config-resolver.d.ts +55 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/config-resolver.js +85 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/index.d.ts +26 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/index.js +22 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body-injector.d.ts +273 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body-injector.js +1679 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/tool-result-size-bouncer.d.ts +46 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/tool-result-size-bouncer.js +92 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/tool-schema-cache.d.ts +28 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/tool-schema-cache.js +50 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/turn-result-budget-wrapper.d.ts +42 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/turn-result-budget-wrapper.js +68 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/types.d.ts +12 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/types.js +7 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/validation-error-formatter.d.ts +27 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/validation-error-formatter.js +51 -0
- package/node_modules/@comis/agent/dist/executor/tool-deferral.d.ts +159 -0
- package/node_modules/@comis/agent/dist/executor/tool-deferral.js +617 -0
- package/node_modules/@comis/agent/dist/executor/tool-lifecycle.d.ts +112 -0
- package/node_modules/@comis/agent/dist/executor/tool-lifecycle.js +164 -0
- package/node_modules/@comis/agent/dist/executor/tool-parallelism.d.ts +59 -0
- package/node_modules/@comis/agent/dist/executor/tool-parallelism.js +158 -0
- package/node_modules/@comis/agent/dist/executor/ttl-guard.d.ts +55 -0
- package/node_modules/@comis/agent/dist/executor/ttl-guard.js +103 -0
- package/node_modules/@comis/agent/dist/executor/types.d.ts +112 -0
- package/node_modules/@comis/agent/dist/executor/types.js +7 -0
- package/node_modules/@comis/agent/dist/file-state/session-tracker-registry.d.ts +59 -0
- package/node_modules/@comis/agent/dist/file-state/session-tracker-registry.js +57 -0
- package/node_modules/@comis/agent/dist/greeting/session-greeting.d.ts +40 -0
- package/node_modules/@comis/agent/dist/greeting/session-greeting.js +94 -0
- package/node_modules/@comis/agent/dist/identity/identity-link-resolver.d.ts +47 -0
- package/node_modules/@comis/agent/dist/identity/identity-link-resolver.js +54 -0
- package/node_modules/@comis/agent/dist/identity/identity-loader.d.ts +38 -0
- package/node_modules/@comis/agent/dist/identity/identity-loader.js +91 -0
- package/node_modules/@comis/agent/dist/identity/identity-updater.d.ts +37 -0
- package/node_modules/@comis/agent/dist/identity/identity-updater.js +104 -0
- package/node_modules/@comis/agent/dist/index.d.ts +188 -0
- package/node_modules/@comis/agent/dist/index.js +192 -0
- package/node_modules/@comis/agent/dist/memory/memory-review-job.d.ts +72 -0
- package/node_modules/@comis/agent/dist/memory/memory-review-job.js +341 -0
- package/node_modules/@comis/agent/dist/model/auth-profile.d.ts +61 -0
- package/node_modules/@comis/agent/dist/model/auth-profile.js +154 -0
- package/node_modules/@comis/agent/dist/model/auth-provider.d.ts +70 -0
- package/node_modules/@comis/agent/dist/model/auth-provider.js +83 -0
- package/node_modules/@comis/agent/dist/model/auth-rotation-adapter.d.ts +53 -0
- package/node_modules/@comis/agent/dist/model/auth-rotation-adapter.js +78 -0
- package/node_modules/@comis/agent/dist/model/auth-storage-adapter.d.ts +27 -0
- package/node_modules/@comis/agent/dist/model/auth-storage-adapter.js +37 -0
- package/node_modules/@comis/agent/dist/model/auth-usage-tracker.d.ts +60 -0
- package/node_modules/@comis/agent/dist/model/auth-usage-tracker.js +90 -0
- package/node_modules/@comis/agent/dist/model/context-window-resolver.d.ts +48 -0
- package/node_modules/@comis/agent/dist/model/context-window-resolver.js +55 -0
- package/node_modules/@comis/agent/dist/model/image-router.d.ts +109 -0
- package/node_modules/@comis/agent/dist/model/image-router.js +128 -0
- package/node_modules/@comis/agent/dist/model/model-alias-resolver.d.ts +57 -0
- package/node_modules/@comis/agent/dist/model/model-alias-resolver.js +72 -0
- package/node_modules/@comis/agent/dist/model/model-allowlist.d.ts +52 -0
- package/node_modules/@comis/agent/dist/model/model-allowlist.js +61 -0
- package/node_modules/@comis/agent/dist/model/model-catalog.d.ts +93 -0
- package/node_modules/@comis/agent/dist/model/model-catalog.js +152 -0
- package/node_modules/@comis/agent/dist/model/model-registry-adapter.d.ts +47 -0
- package/node_modules/@comis/agent/dist/model/model-registry-adapter.js +74 -0
- package/node_modules/@comis/agent/dist/model/model-scanner.d.ts +59 -0
- package/node_modules/@comis/agent/dist/model/model-scanner.js +199 -0
- package/node_modules/@comis/agent/dist/model/oauth-token-manager.d.ts +60 -0
- package/node_modules/@comis/agent/dist/model/oauth-token-manager.js +138 -0
- package/node_modules/@comis/agent/dist/model/operation-model-defaults.d.ts +48 -0
- package/node_modules/@comis/agent/dist/model/operation-model-defaults.js +78 -0
- package/node_modules/@comis/agent/dist/model/operation-model-resolver.d.ts +65 -0
- package/node_modules/@comis/agent/dist/model/operation-model-resolver.js +135 -0
- package/node_modules/@comis/agent/dist/planner/checklist-formatter.d.ts +21 -0
- package/node_modules/@comis/agent/dist/planner/checklist-formatter.js +53 -0
- package/node_modules/@comis/agent/dist/planner/plan-extractor.d.ts +24 -0
- package/node_modules/@comis/agent/dist/planner/plan-extractor.js +66 -0
- package/node_modules/@comis/agent/dist/planner/types.d.ts +38 -0
- package/node_modules/@comis/agent/dist/planner/types.js +12 -0
- package/node_modules/@comis/agent/dist/provider/capabilities.d.ts +72 -0
- package/node_modules/@comis/agent/dist/provider/capabilities.js +163 -0
- package/node_modules/@comis/agent/dist/provider/model-compat.d.ts +35 -0
- package/node_modules/@comis/agent/dist/provider/model-compat.js +40 -0
- package/node_modules/@comis/agent/dist/provider/model-id-normalize.d.ts +33 -0
- package/node_modules/@comis/agent/dist/provider/model-id-normalize.js +87 -0
- package/node_modules/@comis/agent/dist/provider/response/sanitize-pipeline.d.ts +50 -0
- package/node_modules/@comis/agent/dist/provider/response/sanitize-pipeline.js +173 -0
- package/node_modules/@comis/agent/dist/provider/response/strip-minimax-xml.d.ts +9 -0
- package/node_modules/@comis/agent/dist/provider/response/strip-minimax-xml.js +17 -0
- package/node_modules/@comis/agent/dist/provider/response/strip-model-tokens.d.ts +13 -0
- package/node_modules/@comis/agent/dist/provider/response/strip-model-tokens.js +19 -0
- package/node_modules/@comis/agent/dist/provider/response/strip-tool-text.d.ts +11 -0
- package/node_modules/@comis/agent/dist/provider/response/strip-tool-text.js +32 -0
- package/node_modules/@comis/agent/dist/provider/tool-schema/clean-for-gemini.d.ts +20 -0
- package/node_modules/@comis/agent/dist/provider/tool-schema/clean-for-gemini.js +83 -0
- package/node_modules/@comis/agent/dist/provider/tool-schema/clean-for-xai.d.ts +20 -0
- package/node_modules/@comis/agent/dist/provider/tool-schema/clean-for-xai.js +82 -0
- package/node_modules/@comis/agent/dist/provider/tool-schema/normalize-enums.d.ts +33 -0
- package/node_modules/@comis/agent/dist/provider/tool-schema/normalize-enums.js +117 -0
- package/node_modules/@comis/agent/dist/provider/tool-schema/normalize.d.ts +43 -0
- package/node_modules/@comis/agent/dist/provider/tool-schema/normalize.js +133 -0
- package/node_modules/@comis/agent/dist/queue/coalescer.d.ts +25 -0
- package/node_modules/@comis/agent/dist/queue/coalescer.js +58 -0
- package/node_modules/@comis/agent/dist/queue/command-queue.d.ts +88 -0
- package/node_modules/@comis/agent/dist/queue/command-queue.js +351 -0
- package/node_modules/@comis/agent/dist/queue/debounce-buffer.d.ts +48 -0
- package/node_modules/@comis/agent/dist/queue/debounce-buffer.js +132 -0
- package/node_modules/@comis/agent/dist/queue/followup-trigger.d.ts +34 -0
- package/node_modules/@comis/agent/dist/queue/followup-trigger.js +62 -0
- package/node_modules/@comis/agent/dist/queue/index.d.ts +12 -0
- package/node_modules/@comis/agent/dist/queue/index.js +8 -0
- package/node_modules/@comis/agent/dist/queue/lane.d.ts +22 -0
- package/node_modules/@comis/agent/dist/queue/lane.js +10 -0
- package/node_modules/@comis/agent/dist/queue/overflow.d.ts +34 -0
- package/node_modules/@comis/agent/dist/queue/overflow.js +97 -0
- package/node_modules/@comis/agent/dist/queue/priority-scheduler.d.ts +59 -0
- package/node_modules/@comis/agent/dist/queue/priority-scheduler.js +198 -0
- package/node_modules/@comis/agent/dist/rag/hybrid-memory-injector.d.ts +41 -0
- package/node_modules/@comis/agent/dist/rag/hybrid-memory-injector.js +57 -0
- package/node_modules/@comis/agent/dist/rag/rag-retriever.d.ts +58 -0
- package/node_modules/@comis/agent/dist/rag/rag-retriever.js +147 -0
- package/node_modules/@comis/agent/dist/response-filter/code-regions.d.ts +27 -0
- package/node_modules/@comis/agent/dist/response-filter/code-regions.js +46 -0
- package/node_modules/@comis/agent/dist/response-filter/reasoning-tags.d.ts +27 -0
- package/node_modules/@comis/agent/dist/response-filter/reasoning-tags.js +85 -0
- package/node_modules/@comis/agent/dist/response-filter/thinking-tag-filter.d.ts +43 -0
- package/node_modules/@comis/agent/dist/response-filter/thinking-tag-filter.js +384 -0
- package/node_modules/@comis/agent/dist/routing/message-router.d.ts +49 -0
- package/node_modules/@comis/agent/dist/routing/message-router.js +121 -0
- package/node_modules/@comis/agent/dist/safety/circuit-breaker.d.ts +29 -0
- package/node_modules/@comis/agent/dist/safety/circuit-breaker.js +59 -0
- package/node_modules/@comis/agent/dist/safety/context-truncation-recovery.d.ts +40 -0
- package/node_modules/@comis/agent/dist/safety/context-truncation-recovery.js +115 -0
- package/node_modules/@comis/agent/dist/safety/context-window-guard.d.ts +59 -0
- package/node_modules/@comis/agent/dist/safety/context-window-guard.js +54 -0
- package/node_modules/@comis/agent/dist/safety/follow-through-detector.d.ts +46 -0
- package/node_modules/@comis/agent/dist/safety/follow-through-detector.js +76 -0
- package/node_modules/@comis/agent/dist/safety/message-send-limiter.d.ts +44 -0
- package/node_modules/@comis/agent/dist/safety/message-send-limiter.js +71 -0
- package/node_modules/@comis/agent/dist/safety/post-compaction-safety.d.ts +30 -0
- package/node_modules/@comis/agent/dist/safety/post-compaction-safety.js +51 -0
- package/node_modules/@comis/agent/dist/safety/provider-health-monitor.d.ts +56 -0
- package/node_modules/@comis/agent/dist/safety/provider-health-monitor.js +158 -0
- package/node_modules/@comis/agent/dist/safety/response-safety-checks.d.ts +65 -0
- package/node_modules/@comis/agent/dist/safety/response-safety-checks.js +118 -0
- package/node_modules/@comis/agent/dist/safety/schema-normalizer.d.ts +37 -0
- package/node_modules/@comis/agent/dist/safety/schema-normalizer.js +137 -0
- package/node_modules/@comis/agent/dist/safety/schema-pruning.d.ts +50 -0
- package/node_modules/@comis/agent/dist/safety/schema-pruning.js +112 -0
- package/node_modules/@comis/agent/dist/safety/token-estimator.d.ts +95 -0
- package/node_modules/@comis/agent/dist/safety/token-estimator.js +236 -0
- package/node_modules/@comis/agent/dist/safety/tool-display-names.d.ts +26 -0
- package/node_modules/@comis/agent/dist/safety/tool-display-names.js +66 -0
- package/node_modules/@comis/agent/dist/safety/tool-image-sanitizer.d.ts +43 -0
- package/node_modules/@comis/agent/dist/safety/tool-image-sanitizer.js +96 -0
- package/node_modules/@comis/agent/dist/safety/tool-output-safety.d.ts +79 -0
- package/node_modules/@comis/agent/dist/safety/tool-output-safety.js +184 -0
- package/node_modules/@comis/agent/dist/safety/tool-result-size-guard.d.ts +76 -0
- package/node_modules/@comis/agent/dist/safety/tool-result-size-guard.js +220 -0
- package/node_modules/@comis/agent/dist/safety/tool-retry-breaker.d.ts +80 -0
- package/node_modules/@comis/agent/dist/safety/tool-retry-breaker.js +365 -0
- package/node_modules/@comis/agent/dist/safety/tool-sanitizer.d.ts +44 -0
- package/node_modules/@comis/agent/dist/safety/tool-sanitizer.js +94 -0
- package/node_modules/@comis/agent/dist/safety/tool-schema-safety.d.ts +89 -0
- package/node_modules/@comis/agent/dist/safety/tool-schema-safety.js +253 -0
- package/node_modules/@comis/agent/dist/safety/turn-result-budget.d.ts +48 -0
- package/node_modules/@comis/agent/dist/safety/turn-result-budget.js +173 -0
- package/node_modules/@comis/agent/dist/safety/validation-error-formatter.d.ts +22 -0
- package/node_modules/@comis/agent/dist/safety/validation-error-formatter.js +131 -0
- package/node_modules/@comis/agent/dist/session/comis-session-manager.d.ts +114 -0
- package/node_modules/@comis/agent/dist/session/comis-session-manager.js +169 -0
- package/node_modules/@comis/agent/dist/session/orphaned-message-repair.d.ts +84 -0
- package/node_modules/@comis/agent/dist/session/orphaned-message-repair.js +337 -0
- package/node_modules/@comis/agent/dist/session/sanitize-session-secrets.d.ts +34 -0
- package/node_modules/@comis/agent/dist/session/sanitize-session-secrets.js +232 -0
- package/node_modules/@comis/agent/dist/session/scrub-redacted-tool-calls.d.ts +47 -0
- package/node_modules/@comis/agent/dist/session/scrub-redacted-tool-calls.js +183 -0
- package/node_modules/@comis/agent/dist/session/session-key-builder.d.ts +46 -0
- package/node_modules/@comis/agent/dist/session/session-key-builder.js +100 -0
- package/node_modules/@comis/agent/dist/session/session-key-mapper.d.ts +33 -0
- package/node_modules/@comis/agent/dist/session/session-key-mapper.js +183 -0
- package/node_modules/@comis/agent/dist/session/session-label-store.d.ts +34 -0
- package/node_modules/@comis/agent/dist/session/session-label-store.js +54 -0
- package/node_modules/@comis/agent/dist/session/session-lifecycle.d.ts +55 -0
- package/node_modules/@comis/agent/dist/session/session-lifecycle.js +82 -0
- package/node_modules/@comis/agent/dist/session/session-reset-policy.d.ts +113 -0
- package/node_modules/@comis/agent/dist/session/session-reset-policy.js +192 -0
- package/node_modules/@comis/agent/dist/session/session-write-lock.d.ts +48 -0
- package/node_modules/@comis/agent/dist/session/session-write-lock.js +151 -0
- package/node_modules/@comis/agent/dist/spawn/generate-parent-summary.d.ts +34 -0
- package/node_modules/@comis/agent/dist/spawn/generate-parent-summary.js +29 -0
- package/node_modules/@comis/agent/dist/spawn/index.d.ts +17 -0
- package/node_modules/@comis/agent/dist/spawn/index.js +13 -0
- package/node_modules/@comis/agent/dist/spawn/lifecycle-hooks.d.ts +86 -0
- package/node_modules/@comis/agent/dist/spawn/lifecycle-hooks.js +114 -0
- package/node_modules/@comis/agent/dist/spawn/narrative-caster.d.ts +46 -0
- package/node_modules/@comis/agent/dist/spawn/narrative-caster.js +159 -0
- package/node_modules/@comis/agent/dist/spawn/pi-mono-adapters.d.ts +29 -0
- package/node_modules/@comis/agent/dist/spawn/pi-mono-adapters.js +54 -0
- package/node_modules/@comis/agent/dist/spawn/result-condenser.d.ts +98 -0
- package/node_modules/@comis/agent/dist/spawn/result-condenser.js +343 -0
- package/node_modules/@comis/agent/dist/spawn/spawn-packet-builder.d.ts +41 -0
- package/node_modules/@comis/agent/dist/spawn/spawn-packet-builder.js +39 -0
- package/node_modules/@comis/agent/dist/workspace/boot-file.d.ts +23 -0
- package/node_modules/@comis/agent/dist/workspace/boot-file.js +38 -0
- package/node_modules/@comis/agent/dist/workspace/heartbeat-file.d.ts +24 -0
- package/node_modules/@comis/agent/dist/workspace/heartbeat-file.js +37 -0
- package/node_modules/@comis/agent/dist/workspace/index.d.ts +10 -0
- package/node_modules/@comis/agent/dist/workspace/index.js +8 -0
- package/node_modules/@comis/agent/dist/workspace/onboarding-detector.d.ts +12 -0
- package/node_modules/@comis/agent/dist/workspace/onboarding-detector.js +42 -0
- package/node_modules/@comis/agent/dist/workspace/templates.d.ts +11 -0
- package/node_modules/@comis/agent/dist/workspace/templates.js +499 -0
- package/node_modules/@comis/agent/dist/workspace/workspace-manager.d.ts +127 -0
- package/node_modules/@comis/agent/dist/workspace/workspace-manager.js +242 -0
- package/node_modules/@comis/agent/dist/workspace/workspace-resolver.d.ts +13 -0
- package/node_modules/@comis/agent/dist/workspace/workspace-resolver.js +27 -0
- package/node_modules/@comis/agent/dist/workspace/workspace-state.d.ts +39 -0
- package/node_modules/@comis/agent/dist/workspace/workspace-state.js +120 -0
- package/node_modules/@comis/agent/package.json +44 -0
- package/node_modules/@comis/channels/dist/discord/credential-validator.d.ts +23 -0
- package/node_modules/@comis/channels/dist/discord/credential-validator.js +33 -0
- package/node_modules/@comis/channels/dist/discord/discord-actions.d.ts +17 -0
- package/node_modules/@comis/channels/dist/discord/discord-actions.js +340 -0
- package/node_modules/@comis/channels/dist/discord/discord-adapter.d.ts +28 -0
- package/node_modules/@comis/channels/dist/discord/discord-adapter.js +451 -0
- package/node_modules/@comis/channels/dist/discord/discord-plugin.d.ts +17 -0
- package/node_modules/@comis/channels/dist/discord/discord-plugin.js +70 -0
- package/node_modules/@comis/channels/dist/discord/discord-resolver.d.ts +43 -0
- package/node_modules/@comis/channels/dist/discord/discord-resolver.js +50 -0
- package/node_modules/@comis/channels/dist/discord/format-discord.d.ts +31 -0
- package/node_modules/@comis/channels/dist/discord/format-discord.js +217 -0
- package/node_modules/@comis/channels/dist/discord/media-handler.d.ts +18 -0
- package/node_modules/@comis/channels/dist/discord/media-handler.js +43 -0
- package/node_modules/@comis/channels/dist/discord/message-mapper.d.ts +21 -0
- package/node_modules/@comis/channels/dist/discord/message-mapper.js +54 -0
- package/node_modules/@comis/channels/dist/discord/rich-renderer.d.ts +32 -0
- package/node_modules/@comis/channels/dist/discord/rich-renderer.js +97 -0
- package/node_modules/@comis/channels/dist/discord/voice-sender.d.ts +46 -0
- package/node_modules/@comis/channels/dist/discord/voice-sender.js +171 -0
- package/node_modules/@comis/channels/dist/echo/echo-adapter.d.ts +82 -0
- package/node_modules/@comis/channels/dist/echo/echo-adapter.js +170 -0
- package/node_modules/@comis/channels/dist/echo/echo-plugin.d.ts +19 -0
- package/node_modules/@comis/channels/dist/echo/echo-plugin.js +68 -0
- package/node_modules/@comis/channels/dist/email/credential-validator.d.ts +33 -0
- package/node_modules/@comis/channels/dist/email/credential-validator.js +45 -0
- package/node_modules/@comis/channels/dist/email/email-adapter.d.ts +46 -0
- package/node_modules/@comis/channels/dist/email/email-adapter.js +271 -0
- package/node_modules/@comis/channels/dist/email/email-plugin.d.ts +20 -0
- package/node_modules/@comis/channels/dist/email/email-plugin.js +76 -0
- package/node_modules/@comis/channels/dist/email/imap-lifecycle.d.ts +37 -0
- package/node_modules/@comis/channels/dist/email/imap-lifecycle.js +191 -0
- package/node_modules/@comis/channels/dist/email/message-mapper.d.ts +53 -0
- package/node_modules/@comis/channels/dist/email/message-mapper.js +107 -0
- package/node_modules/@comis/channels/dist/email/sender-filter.d.ts +31 -0
- package/node_modules/@comis/channels/dist/email/sender-filter.js +82 -0
- package/node_modules/@comis/channels/dist/email/threading.d.ts +38 -0
- package/node_modules/@comis/channels/dist/email/threading.js +44 -0
- package/node_modules/@comis/channels/dist/imessage/credential-validator.d.ts +36 -0
- package/node_modules/@comis/channels/dist/imessage/credential-validator.js +102 -0
- package/node_modules/@comis/channels/dist/imessage/imessage-adapter.d.ts +31 -0
- package/node_modules/@comis/channels/dist/imessage/imessage-adapter.js +290 -0
- package/node_modules/@comis/channels/dist/imessage/imessage-client.d.ts +52 -0
- package/node_modules/@comis/channels/dist/imessage/imessage-client.js +209 -0
- package/node_modules/@comis/channels/dist/imessage/imessage-plugin.d.ts +20 -0
- package/node_modules/@comis/channels/dist/imessage/imessage-plugin.js +71 -0
- package/node_modules/@comis/channels/dist/imessage/imessage-resolver.d.ts +33 -0
- package/node_modules/@comis/channels/dist/imessage/imessage-resolver.js +73 -0
- package/node_modules/@comis/channels/dist/imessage/media-handler.d.ts +31 -0
- package/node_modules/@comis/channels/dist/imessage/media-handler.js +34 -0
- package/node_modules/@comis/channels/dist/imessage/message-mapper.d.ts +56 -0
- package/node_modules/@comis/channels/dist/imessage/message-mapper.js +67 -0
- package/node_modules/@comis/channels/dist/index.d.ts +138 -0
- package/node_modules/@comis/channels/dist/index.js +127 -0
- package/node_modules/@comis/channels/dist/irc/credential-validator.d.ts +34 -0
- package/node_modules/@comis/channels/dist/irc/credential-validator.js +78 -0
- package/node_modules/@comis/channels/dist/irc/irc-adapter.d.ts +39 -0
- package/node_modules/@comis/channels/dist/irc/irc-adapter.js +302 -0
- package/node_modules/@comis/channels/dist/irc/irc-plugin.d.ts +21 -0
- package/node_modules/@comis/channels/dist/irc/irc-plugin.js +71 -0
- package/node_modules/@comis/channels/dist/irc/message-mapper.d.ts +34 -0
- package/node_modules/@comis/channels/dist/irc/message-mapper.js +41 -0
- package/node_modules/@comis/channels/dist/line/credential-validator.d.ts +37 -0
- package/node_modules/@comis/channels/dist/line/credential-validator.js +50 -0
- package/node_modules/@comis/channels/dist/line/flex-builder.d.ts +52 -0
- package/node_modules/@comis/channels/dist/line/flex-builder.js +136 -0
- package/node_modules/@comis/channels/dist/line/line-adapter.d.ts +40 -0
- package/node_modules/@comis/channels/dist/line/line-adapter.js +324 -0
- package/node_modules/@comis/channels/dist/line/line-plugin.d.ts +36 -0
- package/node_modules/@comis/channels/dist/line/line-plugin.js +83 -0
- package/node_modules/@comis/channels/dist/line/line-resolver.d.ts +31 -0
- package/node_modules/@comis/channels/dist/line/line-resolver.js +69 -0
- package/node_modules/@comis/channels/dist/line/media-handler.d.ts +24 -0
- package/node_modules/@comis/channels/dist/line/media-handler.js +72 -0
- package/node_modules/@comis/channels/dist/line/message-mapper.d.ts +29 -0
- package/node_modules/@comis/channels/dist/line/message-mapper.js +127 -0
- package/node_modules/@comis/channels/dist/line/rich-menu-manager.d.ts +79 -0
- package/node_modules/@comis/channels/dist/line/rich-menu-manager.js +90 -0
- package/node_modules/@comis/channels/dist/shared/abort-summary.d.ts +26 -0
- package/node_modules/@comis/channels/dist/shared/abort-summary.js +47 -0
- package/node_modules/@comis/channels/dist/shared/approval-notifier.d.ts +31 -0
- package/node_modules/@comis/channels/dist/shared/approval-notifier.js +82 -0
- package/node_modules/@comis/channels/dist/shared/audio-preflight.d.ts +49 -0
- package/node_modules/@comis/channels/dist/shared/audio-preflight.js +78 -0
- package/node_modules/@comis/channels/dist/shared/auto-reply-engine.d.ts +68 -0
- package/node_modules/@comis/channels/dist/shared/auto-reply-engine.js +132 -0
- package/node_modules/@comis/channels/dist/shared/block-chunker.d.ts +30 -0
- package/node_modules/@comis/channels/dist/shared/block-chunker.js +201 -0
- package/node_modules/@comis/channels/dist/shared/block-coalescer.d.ts +59 -0
- package/node_modules/@comis/channels/dist/shared/block-coalescer.js +154 -0
- package/node_modules/@comis/channels/dist/shared/block-pacer.d.ts +42 -0
- package/node_modules/@comis/channels/dist/shared/block-pacer.js +130 -0
- package/node_modules/@comis/channels/dist/shared/channel-health-monitor.d.ts +90 -0
- package/node_modules/@comis/channels/dist/shared/channel-health-monitor.js +317 -0
- package/node_modules/@comis/channels/dist/shared/channel-manager.d.ts +169 -0
- package/node_modules/@comis/channels/dist/shared/channel-manager.js +174 -0
- package/node_modules/@comis/channels/dist/shared/channel-registry.d.ts +46 -0
- package/node_modules/@comis/channels/dist/shared/channel-registry.js +81 -0
- package/node_modules/@comis/channels/dist/shared/chunk-for-delivery.d.ts +40 -0
- package/node_modules/@comis/channels/dist/shared/chunk-for-delivery.js +77 -0
- package/node_modules/@comis/channels/dist/shared/credential-validator-factory.d.ts +20 -0
- package/node_modules/@comis/channels/dist/shared/credential-validator-factory.js +24 -0
- package/node_modules/@comis/channels/dist/shared/deliver-to-channel.d.ts +156 -0
- package/node_modules/@comis/channels/dist/shared/deliver-to-channel.js +516 -0
- package/node_modules/@comis/channels/dist/shared/delivery-timing.d.ts +31 -0
- package/node_modules/@comis/channels/dist/shared/delivery-timing.js +87 -0
- package/node_modules/@comis/channels/dist/shared/emoji-tier-map.d.ts +46 -0
- package/node_modules/@comis/channels/dist/shared/emoji-tier-map.js +87 -0
- package/node_modules/@comis/channels/dist/shared/execution-deliver.d.ts +21 -0
- package/node_modules/@comis/channels/dist/shared/execution-deliver.js +174 -0
- package/node_modules/@comis/channels/dist/shared/execution-execute.d.ts +45 -0
- package/node_modules/@comis/channels/dist/shared/execution-execute.js +175 -0
- package/node_modules/@comis/channels/dist/shared/execution-filter.d.ts +30 -0
- package/node_modules/@comis/channels/dist/shared/execution-filter.js +186 -0
- package/node_modules/@comis/channels/dist/shared/execution-pipeline.d.ts +95 -0
- package/node_modules/@comis/channels/dist/shared/execution-pipeline.js +294 -0
- package/node_modules/@comis/channels/dist/shared/execution-policy.d.ts +34 -0
- package/node_modules/@comis/channels/dist/shared/execution-policy.js +128 -0
- package/node_modules/@comis/channels/dist/shared/format-for-channel.d.ts +27 -0
- package/node_modules/@comis/channels/dist/shared/format-for-channel.js +62 -0
- package/node_modules/@comis/channels/dist/shared/group-history-buffer.d.ts +33 -0
- package/node_modules/@comis/channels/dist/shared/group-history-buffer.js +58 -0
- package/node_modules/@comis/channels/dist/shared/inbound-gate.d.ts +35 -0
- package/node_modules/@comis/channels/dist/shared/inbound-gate.js +353 -0
- package/node_modules/@comis/channels/dist/shared/inbound-pipeline.d.ts +144 -0
- package/node_modules/@comis/channels/dist/shared/inbound-pipeline.js +89 -0
- package/node_modules/@comis/channels/dist/shared/inbound-preprocess.d.ts +19 -0
- package/node_modules/@comis/channels/dist/shared/inbound-preprocess.js +83 -0
- package/node_modules/@comis/channels/dist/shared/inbound-resolve.d.ts +28 -0
- package/node_modules/@comis/channels/dist/shared/inbound-resolve.js +55 -0
- package/node_modules/@comis/channels/dist/shared/inbound-route.d.ts +26 -0
- package/node_modules/@comis/channels/dist/shared/inbound-route.js +235 -0
- package/node_modules/@comis/channels/dist/shared/inbound-setup.d.ts +32 -0
- package/node_modules/@comis/channels/dist/shared/inbound-setup.js +148 -0
- package/node_modules/@comis/channels/dist/shared/ir-chunker.d.ts +42 -0
- package/node_modules/@comis/channels/dist/shared/ir-chunker.js +234 -0
- package/node_modules/@comis/channels/dist/shared/ir-renderer.d.ts +26 -0
- package/node_modules/@comis/channels/dist/shared/ir-renderer.js +565 -0
- package/node_modules/@comis/channels/dist/shared/lifecycle-reactor.d.ts +44 -0
- package/node_modules/@comis/channels/dist/shared/lifecycle-reactor.js +420 -0
- package/node_modules/@comis/channels/dist/shared/lifecycle-state-machine.d.ts +56 -0
- package/node_modules/@comis/channels/dist/shared/lifecycle-state-machine.js +85 -0
- package/node_modules/@comis/channels/dist/shared/location-normalizer.d.ts +45 -0
- package/node_modules/@comis/channels/dist/shared/location-normalizer.js +37 -0
- package/node_modules/@comis/channels/dist/shared/markdown-ir.d.ts +49 -0
- package/node_modules/@comis/channels/dist/shared/markdown-ir.js +479 -0
- package/node_modules/@comis/channels/dist/shared/markdown-tables.d.ts +18 -0
- package/node_modules/@comis/channels/dist/shared/markdown-tables.js +142 -0
- package/node_modules/@comis/channels/dist/shared/media-compressor.d.ts +31 -0
- package/node_modules/@comis/channels/dist/shared/media-compressor.js +114 -0
- package/node_modules/@comis/channels/dist/shared/media-utils.d.ts +10 -0
- package/node_modules/@comis/channels/dist/shared/media-utils.js +19 -0
- package/node_modules/@comis/channels/dist/shared/outbound-media-handler.d.ts +56 -0
- package/node_modules/@comis/channels/dist/shared/outbound-media-handler.js +151 -0
- package/node_modules/@comis/channels/dist/shared/permanent-errors.d.ts +30 -0
- package/node_modules/@comis/channels/dist/shared/permanent-errors.js +41 -0
- package/node_modules/@comis/channels/dist/shared/poll-normalizer.d.ts +59 -0
- package/node_modules/@comis/channels/dist/shared/poll-normalizer.js +80 -0
- package/node_modules/@comis/channels/dist/shared/prefix-template.d.ts +53 -0
- package/node_modules/@comis/channels/dist/shared/prefix-template.js +158 -0
- package/node_modules/@comis/channels/dist/shared/regex-guard.d.ts +33 -0
- package/node_modules/@comis/channels/dist/shared/regex-guard.js +48 -0
- package/node_modules/@comis/channels/dist/shared/response-filter.d.ts +41 -0
- package/node_modules/@comis/channels/dist/shared/response-filter.js +75 -0
- package/node_modules/@comis/channels/dist/shared/retry-engine.d.ts +88 -0
- package/node_modules/@comis/channels/dist/shared/retry-engine.js +258 -0
- package/node_modules/@comis/channels/dist/shared/sanitize-for-plain-text.d.ts +32 -0
- package/node_modules/@comis/channels/dist/shared/sanitize-for-plain-text.js +80 -0
- package/node_modules/@comis/channels/dist/shared/send-policy.d.ts +53 -0
- package/node_modules/@comis/channels/dist/shared/send-policy.js +88 -0
- package/node_modules/@comis/channels/dist/shared/slack-emoji-map.d.ts +22 -0
- package/node_modules/@comis/channels/dist/shared/slack-emoji-map.js +44 -0
- package/node_modules/@comis/channels/dist/shared/stall-detector.d.ts +54 -0
- package/node_modules/@comis/channels/dist/shared/stall-detector.js +61 -0
- package/node_modules/@comis/channels/dist/shared/table-converter.d.ts +24 -0
- package/node_modules/@comis/channels/dist/shared/table-converter.js +139 -0
- package/node_modules/@comis/channels/dist/shared/telegram-file-ref-guard.d.ts +59 -0
- package/node_modules/@comis/channels/dist/shared/telegram-file-ref-guard.js +172 -0
- package/node_modules/@comis/channels/dist/shared/thinking-tag-filter.d.ts +28 -0
- package/node_modules/@comis/channels/dist/shared/thinking-tag-filter.js +206 -0
- package/node_modules/@comis/channels/dist/shared/typing-controller.d.ts +107 -0
- package/node_modules/@comis/channels/dist/shared/typing-controller.js +156 -0
- package/node_modules/@comis/channels/dist/shared/typing-lifecycle-controller.d.ts +55 -0
- package/node_modules/@comis/channels/dist/shared/typing-lifecycle-controller.js +86 -0
- package/node_modules/@comis/channels/dist/shared/voice-response-pipeline.d.ts +149 -0
- package/node_modules/@comis/channels/dist/shared/voice-response-pipeline.js +157 -0
- package/node_modules/@comis/channels/dist/shared/voice-sender.d.ts +64 -0
- package/node_modules/@comis/channels/dist/shared/voice-sender.js +77 -0
- package/node_modules/@comis/channels/dist/signal/credential-validator.d.ts +30 -0
- package/node_modules/@comis/channels/dist/signal/credential-validator.js +75 -0
- package/node_modules/@comis/channels/dist/signal/media-handler.d.ts +18 -0
- package/node_modules/@comis/channels/dist/signal/media-handler.js +40 -0
- package/node_modules/@comis/channels/dist/signal/message-mapper.d.ts +18 -0
- package/node_modules/@comis/channels/dist/signal/message-mapper.js +79 -0
- package/node_modules/@comis/channels/dist/signal/signal-adapter.d.ts +28 -0
- package/node_modules/@comis/channels/dist/signal/signal-adapter.js +339 -0
- package/node_modules/@comis/channels/dist/signal/signal-client.d.ts +98 -0
- package/node_modules/@comis/channels/dist/signal/signal-client.js +244 -0
- package/node_modules/@comis/channels/dist/signal/signal-format.d.ts +40 -0
- package/node_modules/@comis/channels/dist/signal/signal-format.js +169 -0
- package/node_modules/@comis/channels/dist/signal/signal-plugin.d.ts +17 -0
- package/node_modules/@comis/channels/dist/signal/signal-plugin.js +68 -0
- package/node_modules/@comis/channels/dist/signal/signal-resolver.d.ts +43 -0
- package/node_modules/@comis/channels/dist/signal/signal-resolver.js +50 -0
- package/node_modules/@comis/channels/dist/slack/credential-validator.d.ts +43 -0
- package/node_modules/@comis/channels/dist/slack/credential-validator.js +66 -0
- package/node_modules/@comis/channels/dist/slack/format-slack.d.ts +20 -0
- package/node_modules/@comis/channels/dist/slack/format-slack.js +73 -0
- package/node_modules/@comis/channels/dist/slack/media-handler.d.ts +47 -0
- package/node_modules/@comis/channels/dist/slack/media-handler.js +132 -0
- package/node_modules/@comis/channels/dist/slack/message-mapper.d.ts +50 -0
- package/node_modules/@comis/channels/dist/slack/message-mapper.js +70 -0
- package/node_modules/@comis/channels/dist/slack/rich-renderer.d.ts +32 -0
- package/node_modules/@comis/channels/dist/slack/rich-renderer.js +89 -0
- package/node_modules/@comis/channels/dist/slack/slack-actions.d.ts +22 -0
- package/node_modules/@comis/channels/dist/slack/slack-actions.js +137 -0
- package/node_modules/@comis/channels/dist/slack/slack-adapter.d.ts +30 -0
- package/node_modules/@comis/channels/dist/slack/slack-adapter.js +399 -0
- package/node_modules/@comis/channels/dist/slack/slack-plugin.d.ts +17 -0
- package/node_modules/@comis/channels/dist/slack/slack-plugin.js +69 -0
- package/node_modules/@comis/channels/dist/slack/slack-resolver.d.ts +31 -0
- package/node_modules/@comis/channels/dist/slack/slack-resolver.js +83 -0
- package/node_modules/@comis/channels/dist/telegram/credential-validator.d.ts +37 -0
- package/node_modules/@comis/channels/dist/telegram/credential-validator.js +62 -0
- package/node_modules/@comis/channels/dist/telegram/emoji-fallback.d.ts +30 -0
- package/node_modules/@comis/channels/dist/telegram/emoji-fallback.js +60 -0
- package/node_modules/@comis/channels/dist/telegram/media-handler.d.ts +13 -0
- package/node_modules/@comis/channels/dist/telegram/media-handler.js +92 -0
- package/node_modules/@comis/channels/dist/telegram/message-mapper.d.ts +21 -0
- package/node_modules/@comis/channels/dist/telegram/message-mapper.js +78 -0
- package/node_modules/@comis/channels/dist/telegram/rich-renderer.d.ts +33 -0
- package/node_modules/@comis/channels/dist/telegram/rich-renderer.js +97 -0
- package/node_modules/@comis/channels/dist/telegram/telegram-adapter.d.ts +36 -0
- package/node_modules/@comis/channels/dist/telegram/telegram-adapter.js +673 -0
- package/node_modules/@comis/channels/dist/telegram/telegram-plugin.d.ts +39 -0
- package/node_modules/@comis/channels/dist/telegram/telegram-plugin.js +79 -0
- package/node_modules/@comis/channels/dist/telegram/telegram-resolver.d.ts +44 -0
- package/node_modules/@comis/channels/dist/telegram/telegram-resolver.js +83 -0
- package/node_modules/@comis/channels/dist/telegram/thread-context.d.ts +90 -0
- package/node_modules/@comis/channels/dist/telegram/thread-context.js +119 -0
- package/node_modules/@comis/channels/dist/telegram/voice-sender.d.ts +35 -0
- package/node_modules/@comis/channels/dist/telegram/voice-sender.js +75 -0
- package/node_modules/@comis/channels/dist/whatsapp/credential-validator.d.ts +27 -0
- package/node_modules/@comis/channels/dist/whatsapp/credential-validator.js +80 -0
- package/node_modules/@comis/channels/dist/whatsapp/jid-utils.d.ts +39 -0
- package/node_modules/@comis/channels/dist/whatsapp/jid-utils.js +125 -0
- package/node_modules/@comis/channels/dist/whatsapp/media-handler.d.ts +27 -0
- package/node_modules/@comis/channels/dist/whatsapp/media-handler.js +84 -0
- package/node_modules/@comis/channels/dist/whatsapp/message-mapper.d.ts +74 -0
- package/node_modules/@comis/channels/dist/whatsapp/message-mapper.js +106 -0
- package/node_modules/@comis/channels/dist/whatsapp/voice-sender.d.ts +37 -0
- package/node_modules/@comis/channels/dist/whatsapp/voice-sender.js +49 -0
- package/node_modules/@comis/channels/dist/whatsapp/whatsapp-adapter.d.ts +27 -0
- package/node_modules/@comis/channels/dist/whatsapp/whatsapp-adapter.js +475 -0
- package/node_modules/@comis/channels/dist/whatsapp/whatsapp-plugin.d.ts +17 -0
- package/node_modules/@comis/channels/dist/whatsapp/whatsapp-plugin.js +69 -0
- package/node_modules/@comis/channels/dist/whatsapp/whatsapp-resolver.d.ts +34 -0
- package/node_modules/@comis/channels/dist/whatsapp/whatsapp-resolver.js +99 -0
- package/node_modules/@comis/channels/package.json +47 -0
- package/node_modules/@comis/cli/dist/cli.d.ts +12 -0
- package/node_modules/@comis/cli/dist/cli.js +57 -0
- package/node_modules/@comis/cli/dist/client/rpc-client.d.ts +61 -0
- package/node_modules/@comis/cli/dist/client/rpc-client.js +274 -0
- package/node_modules/@comis/cli/dist/commands/agent.d.ts +15 -0
- package/node_modules/@comis/cli/dist/commands/agent.js +282 -0
- package/node_modules/@comis/cli/dist/commands/channel.d.ts +15 -0
- package/node_modules/@comis/cli/dist/commands/channel.js +113 -0
- package/node_modules/@comis/cli/dist/commands/config.d.ts +16 -0
- package/node_modules/@comis/cli/dist/commands/config.js +293 -0
- package/node_modules/@comis/cli/dist/commands/configure.d.ts +20 -0
- package/node_modules/@comis/cli/dist/commands/configure.js +273 -0
- package/node_modules/@comis/cli/dist/commands/daemon.d.ts +17 -0
- package/node_modules/@comis/cli/dist/commands/daemon.js +562 -0
- package/node_modules/@comis/cli/dist/commands/doctor.d.ts +20 -0
- package/node_modules/@comis/cli/dist/commands/doctor.js +160 -0
- package/node_modules/@comis/cli/dist/commands/health.d.ts +20 -0
- package/node_modules/@comis/cli/dist/commands/health.js +158 -0
- package/node_modules/@comis/cli/dist/commands/init.d.ts +24 -0
- package/node_modules/@comis/cli/dist/commands/init.js +229 -0
- package/node_modules/@comis/cli/dist/commands/memory.d.ts +15 -0
- package/node_modules/@comis/cli/dist/commands/memory.js +266 -0
- package/node_modules/@comis/cli/dist/commands/models.d.ts +20 -0
- package/node_modules/@comis/cli/dist/commands/models.js +225 -0
- package/node_modules/@comis/cli/dist/commands/pm2.d.ts +16 -0
- package/node_modules/@comis/cli/dist/commands/pm2.js +216 -0
- package/node_modules/@comis/cli/dist/commands/reset.d.ts +19 -0
- package/node_modules/@comis/cli/dist/commands/reset.js +186 -0
- package/node_modules/@comis/cli/dist/commands/secrets.d.ts +25 -0
- package/node_modules/@comis/cli/dist/commands/secrets.js +491 -0
- package/node_modules/@comis/cli/dist/commands/security.d.ts +21 -0
- package/node_modules/@comis/cli/dist/commands/security.js +231 -0
- package/node_modules/@comis/cli/dist/commands/sessions.d.ts +25 -0
- package/node_modules/@comis/cli/dist/commands/sessions.js +179 -0
- package/node_modules/@comis/cli/dist/commands/signal-setup.d.ts +19 -0
- package/node_modules/@comis/cli/dist/commands/signal-setup.js +398 -0
- package/node_modules/@comis/cli/dist/commands/status.d.ts +20 -0
- package/node_modules/@comis/cli/dist/commands/status.js +243 -0
- package/node_modules/@comis/cli/dist/commands/uninstall.d.ts +13 -0
- package/node_modules/@comis/cli/dist/commands/uninstall.js +143 -0
- package/node_modules/@comis/cli/dist/doctor/check-runner.d.ts +23 -0
- package/node_modules/@comis/cli/dist/doctor/check-runner.js +56 -0
- package/node_modules/@comis/cli/dist/doctor/checks/channel-health.d.ts +18 -0
- package/node_modules/@comis/cli/dist/doctor/checks/channel-health.js +94 -0
- package/node_modules/@comis/cli/dist/doctor/checks/config-health.d.ts +17 -0
- package/node_modules/@comis/cli/dist/doctor/checks/config-health.js +114 -0
- package/node_modules/@comis/cli/dist/doctor/checks/daemon-health.d.ts +17 -0
- package/node_modules/@comis/cli/dist/doctor/checks/daemon-health.js +77 -0
- package/node_modules/@comis/cli/dist/doctor/checks/gateway-health.d.ts +15 -0
- package/node_modules/@comis/cli/dist/doctor/checks/gateway-health.js +110 -0
- package/node_modules/@comis/cli/dist/doctor/checks/workspace-health.d.ts +19 -0
- package/node_modules/@comis/cli/dist/doctor/checks/workspace-health.js +97 -0
- package/node_modules/@comis/cli/dist/doctor/output.d.ts +28 -0
- package/node_modules/@comis/cli/dist/doctor/output.js +83 -0
- package/node_modules/@comis/cli/dist/doctor/repairs/repair-config.d.ts +24 -0
- package/node_modules/@comis/cli/dist/doctor/repairs/repair-config.js +88 -0
- package/node_modules/@comis/cli/dist/doctor/repairs/repair-daemon.d.ts +21 -0
- package/node_modules/@comis/cli/dist/doctor/repairs/repair-daemon.js +38 -0
- package/node_modules/@comis/cli/dist/doctor/repairs/repair-workspace.d.ts +23 -0
- package/node_modules/@comis/cli/dist/doctor/repairs/repair-workspace.js +56 -0
- package/node_modules/@comis/cli/dist/doctor/types.d.ts +65 -0
- package/node_modules/@comis/cli/dist/doctor/types.js +11 -0
- package/node_modules/@comis/cli/dist/index.d.ts +23 -0
- package/node_modules/@comis/cli/dist/index.js +48 -0
- package/node_modules/@comis/cli/dist/mock-rpc-client.d.ts +69 -0
- package/node_modules/@comis/cli/dist/mock-rpc-client.js +105 -0
- package/node_modules/@comis/cli/dist/output/format.d.ts +28 -0
- package/node_modules/@comis/cli/dist/output/format.js +42 -0
- package/node_modules/@comis/cli/dist/output/spinner.d.ts +19 -0
- package/node_modules/@comis/cli/dist/output/spinner.js +32 -0
- package/node_modules/@comis/cli/dist/output/table.d.ts +21 -0
- package/node_modules/@comis/cli/dist/output/table.js +57 -0
- package/node_modules/@comis/cli/dist/security/check-runner.d.ts +25 -0
- package/node_modules/@comis/cli/dist/security/check-runner.js +68 -0
- package/node_modules/@comis/cli/dist/security/checks/action-confirmation.d.ts +18 -0
- package/node_modules/@comis/cli/dist/security/checks/action-confirmation.js +52 -0
- package/node_modules/@comis/cli/dist/security/checks/audit-logging.d.ts +19 -0
- package/node_modules/@comis/cli/dist/security/checks/audit-logging.js +57 -0
- package/node_modules/@comis/cli/dist/security/checks/browser-exposure.d.ts +17 -0
- package/node_modules/@comis/cli/dist/security/checks/browser-exposure.js +56 -0
- package/node_modules/@comis/cli/dist/security/checks/channel-security.d.ts +16 -0
- package/node_modules/@comis/cli/dist/security/checks/channel-security.js +63 -0
- package/node_modules/@comis/cli/dist/security/checks/config-validation.d.ts +17 -0
- package/node_modules/@comis/cli/dist/security/checks/config-validation.js +77 -0
- package/node_modules/@comis/cli/dist/security/checks/file-permissions.d.ts +18 -0
- package/node_modules/@comis/cli/dist/security/checks/file-permissions.js +97 -0
- package/node_modules/@comis/cli/dist/security/checks/gateway-exposure.d.ts +17 -0
- package/node_modules/@comis/cli/dist/security/checks/gateway-exposure.js +69 -0
- package/node_modules/@comis/cli/dist/security/checks/hooks-hardening.d.ts +17 -0
- package/node_modules/@comis/cli/dist/security/checks/hooks-hardening.js +72 -0
- package/node_modules/@comis/cli/dist/security/checks/model-hygiene.d.ts +18 -0
- package/node_modules/@comis/cli/dist/security/checks/model-hygiene.js +61 -0
- package/node_modules/@comis/cli/dist/security/checks/secrets-exposure.d.ts +20 -0
- package/node_modules/@comis/cli/dist/security/checks/secrets-exposure.js +82 -0
- package/node_modules/@comis/cli/dist/security/checks/skills-code.d.ts +18 -0
- package/node_modules/@comis/cli/dist/security/checks/skills-code.js +136 -0
- package/node_modules/@comis/cli/dist/security/checks/ssrf-surface.d.ts +17 -0
- package/node_modules/@comis/cli/dist/security/checks/ssrf-surface.js +66 -0
- package/node_modules/@comis/cli/dist/security/checks/state-protection.d.ts +16 -0
- package/node_modules/@comis/cli/dist/security/checks/state-protection.js +97 -0
- package/node_modules/@comis/cli/dist/security/checks/webhook-security.d.ts +21 -0
- package/node_modules/@comis/cli/dist/security/checks/webhook-security.js +61 -0
- package/node_modules/@comis/cli/dist/security/fix-runner.d.ts +32 -0
- package/node_modules/@comis/cli/dist/security/fix-runner.js +95 -0
- package/node_modules/@comis/cli/dist/security/fix-types.d.ts +46 -0
- package/node_modules/@comis/cli/dist/security/fix-types.js +10 -0
- package/node_modules/@comis/cli/dist/security/fixes/fix-config.d.ts +25 -0
- package/node_modules/@comis/cli/dist/security/fixes/fix-config.js +46 -0
- package/node_modules/@comis/cli/dist/security/fixes/fix-permissions.d.ts +21 -0
- package/node_modules/@comis/cli/dist/security/fixes/fix-permissions.js +82 -0
- package/node_modules/@comis/cli/dist/security/fixes/fix-secrets.d.ts +21 -0
- package/node_modules/@comis/cli/dist/security/fixes/fix-secrets.js +34 -0
- package/node_modules/@comis/cli/dist/security/output.d.ts +28 -0
- package/node_modules/@comis/cli/dist/security/output.js +92 -0
- package/node_modules/@comis/cli/dist/security/types.d.ts +65 -0
- package/node_modules/@comis/cli/dist/security/types.js +11 -0
- package/node_modules/@comis/cli/dist/test-fixtures.d.ts +76 -0
- package/node_modules/@comis/cli/dist/test-fixtures.js +164 -0
- package/node_modules/@comis/cli/dist/test-helpers.d.ts +54 -0
- package/node_modules/@comis/cli/dist/test-helpers.js +73 -0
- package/node_modules/@comis/cli/dist/wizard/clack-adapter.d.ts +46 -0
- package/node_modules/@comis/cli/dist/wizard/clack-adapter.js +248 -0
- package/node_modules/@comis/cli/dist/wizard/config-writer.d.ts +25 -0
- package/node_modules/@comis/cli/dist/wizard/config-writer.js +144 -0
- package/node_modules/@comis/cli/dist/wizard/flow-types.d.ts +48 -0
- package/node_modules/@comis/cli/dist/wizard/flow-types.js +70 -0
- package/node_modules/@comis/cli/dist/wizard/index.d.ts +44 -0
- package/node_modules/@comis/cli/dist/wizard/index.js +46 -0
- package/node_modules/@comis/cli/dist/wizard/json-output.d.ts +66 -0
- package/node_modules/@comis/cli/dist/wizard/json-output.js +83 -0
- package/node_modules/@comis/cli/dist/wizard/manual-flow.d.ts +21 -0
- package/node_modules/@comis/cli/dist/wizard/manual-flow.js +345 -0
- package/node_modules/@comis/cli/dist/wizard/non-interactive.d.ts +120 -0
- package/node_modules/@comis/cli/dist/wizard/non-interactive.js +403 -0
- package/node_modules/@comis/cli/dist/wizard/prompter.d.ts +122 -0
- package/node_modules/@comis/cli/dist/wizard/prompter.js +44 -0
- package/node_modules/@comis/cli/dist/wizard/quickstart-flow.d.ts +21 -0
- package/node_modules/@comis/cli/dist/wizard/quickstart-flow.js +116 -0
- package/node_modules/@comis/cli/dist/wizard/state.d.ts +124 -0
- package/node_modules/@comis/cli/dist/wizard/state.js +448 -0
- package/node_modules/@comis/cli/dist/wizard/steps/00-welcome.d.ts +12 -0
- package/node_modules/@comis/cli/dist/wizard/steps/00-welcome.js +42 -0
- package/node_modules/@comis/cli/dist/wizard/steps/01-detect-existing.d.ts +12 -0
- package/node_modules/@comis/cli/dist/wizard/steps/01-detect-existing.js +369 -0
- package/node_modules/@comis/cli/dist/wizard/steps/02-flow-select.d.ts +14 -0
- package/node_modules/@comis/cli/dist/wizard/steps/02-flow-select.js +43 -0
- package/node_modules/@comis/cli/dist/wizard/steps/03-provider.d.ts +15 -0
- package/node_modules/@comis/cli/dist/wizard/steps/03-provider.js +46 -0
- package/node_modules/@comis/cli/dist/wizard/steps/04-credentials.d.ts +18 -0
- package/node_modules/@comis/cli/dist/wizard/steps/04-credentials.js +324 -0
- package/node_modules/@comis/cli/dist/wizard/steps/05-agent.d.ts +12 -0
- package/node_modules/@comis/cli/dist/wizard/steps/05-agent.js +116 -0
- package/node_modules/@comis/cli/dist/wizard/steps/06-channels.d.ts +15 -0
- package/node_modules/@comis/cli/dist/wizard/steps/06-channels.js +476 -0
- package/node_modules/@comis/cli/dist/wizard/steps/07-gateway.d.ts +14 -0
- package/node_modules/@comis/cli/dist/wizard/steps/07-gateway.js +105 -0
- package/node_modules/@comis/cli/dist/wizard/steps/08-workspace.d.ts +14 -0
- package/node_modules/@comis/cli/dist/wizard/steps/08-workspace.js +69 -0
- package/node_modules/@comis/cli/dist/wizard/steps/08b-tool-providers.d.ts +14 -0
- package/node_modules/@comis/cli/dist/wizard/steps/08b-tool-providers.js +61 -0
- package/node_modules/@comis/cli/dist/wizard/steps/09-review.d.ts +17 -0
- package/node_modules/@comis/cli/dist/wizard/steps/09-review.js +150 -0
- package/node_modules/@comis/cli/dist/wizard/steps/10-write-config.d.ts +11 -0
- package/node_modules/@comis/cli/dist/wizard/steps/10-write-config.js +342 -0
- package/node_modules/@comis/cli/dist/wizard/steps/11-daemon-start.d.ts +16 -0
- package/node_modules/@comis/cli/dist/wizard/steps/11-daemon-start.js +330 -0
- package/node_modules/@comis/cli/dist/wizard/steps/12-finish.d.ts +14 -0
- package/node_modules/@comis/cli/dist/wizard/steps/12-finish.js +95 -0
- package/node_modules/@comis/cli/dist/wizard/theme.d.ts +93 -0
- package/node_modules/@comis/cli/dist/wizard/theme.js +170 -0
- package/node_modules/@comis/cli/dist/wizard/types.d.ts +172 -0
- package/node_modules/@comis/cli/dist/wizard/types.js +88 -0
- package/node_modules/@comis/cli/dist/wizard/validators/agent-name.d.ts +26 -0
- package/node_modules/@comis/cli/dist/wizard/validators/agent-name.js +62 -0
- package/node_modules/@comis/cli/dist/wizard/validators/api-key.d.ts +36 -0
- package/node_modules/@comis/cli/dist/wizard/validators/api-key.js +124 -0
- package/node_modules/@comis/cli/dist/wizard/validators/channel-creds.d.ts +34 -0
- package/node_modules/@comis/cli/dist/wizard/validators/channel-creds.js +164 -0
- package/node_modules/@comis/cli/dist/wizard/validators/network.d.ts +27 -0
- package/node_modules/@comis/cli/dist/wizard/validators/network.js +68 -0
- package/node_modules/@comis/cli/dist/wizard/validators/port.d.ts +23 -0
- package/node_modules/@comis/cli/dist/wizard/validators/port.js +63 -0
- package/node_modules/@comis/cli/package.json +51 -0
- package/node_modules/@comis/core/dist/approval/approval-gate.d.ts +63 -0
- package/node_modules/@comis/core/dist/approval/approval-gate.js +330 -0
- package/node_modules/@comis/core/dist/approval/approval-gate.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/approval/approval-gate.test.js +1003 -0
- package/node_modules/@comis/core/dist/approval/index.d.ts +4 -0
- package/node_modules/@comis/core/dist/approval/index.js +3 -0
- package/node_modules/@comis/core/dist/bootstrap.d.ts +55 -0
- package/node_modules/@comis/core/dist/bootstrap.js +81 -0
- package/node_modules/@comis/core/dist/bootstrap.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/bootstrap.test.js +150 -0
- package/node_modules/@comis/core/dist/config/backup.d.ts +51 -0
- package/node_modules/@comis/core/dist/config/backup.js +116 -0
- package/node_modules/@comis/core/dist/config/backup.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/backup.test.js +160 -0
- package/node_modules/@comis/core/dist/config/env-substitution.d.ts +59 -0
- package/node_modules/@comis/core/dist/config/env-substitution.js +262 -0
- package/node_modules/@comis/core/dist/config/env-substitution.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/env-substitution.test.js +259 -0
- package/node_modules/@comis/core/dist/config/field-metadata.d.ts +42 -0
- package/node_modules/@comis/core/dist/config/field-metadata.js +187 -0
- package/node_modules/@comis/core/dist/config/field-metadata.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/field-metadata.test.js +72 -0
- package/node_modules/@comis/core/dist/config/git-manager.d.ts +146 -0
- package/node_modules/@comis/core/dist/config/git-manager.js +466 -0
- package/node_modules/@comis/core/dist/config/git-manager.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/git-manager.test.js +1042 -0
- package/node_modules/@comis/core/dist/config/immutable-keys.d.ts +79 -0
- package/node_modules/@comis/core/dist/config/immutable-keys.js +139 -0
- package/node_modules/@comis/core/dist/config/immutable-keys.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/immutable-keys.test.js +283 -0
- package/node_modules/@comis/core/dist/config/include-resolver.d.ts +38 -0
- package/node_modules/@comis/core/dist/config/include-resolver.js +130 -0
- package/node_modules/@comis/core/dist/config/include-resolver.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/include-resolver.test.js +292 -0
- package/node_modules/@comis/core/dist/config/index.d.ts +76 -0
- package/node_modules/@comis/core/dist/config/index.js +70 -0
- package/node_modules/@comis/core/dist/config/layered.d.ts +30 -0
- package/node_modules/@comis/core/dist/config/layered.js +87 -0
- package/node_modules/@comis/core/dist/config/layered.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/layered.test.js +211 -0
- package/node_modules/@comis/core/dist/config/loader.d.ts +36 -0
- package/node_modules/@comis/core/dist/config/loader.js +110 -0
- package/node_modules/@comis/core/dist/config/loader.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/loader.test.js +300 -0
- package/node_modules/@comis/core/dist/config/migrate.d.ts +27 -0
- package/node_modules/@comis/core/dist/config/migrate.js +114 -0
- package/node_modules/@comis/core/dist/config/migrate.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/migrate.test.js +244 -0
- package/node_modules/@comis/core/dist/config/partial-validator.d.ts +49 -0
- package/node_modules/@comis/core/dist/config/partial-validator.js +77 -0
- package/node_modules/@comis/core/dist/config/partial-validator.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/partial-validator.test.js +98 -0
- package/node_modules/@comis/core/dist/config/schema-agent-model.d.ts +135 -0
- package/node_modules/@comis/core/dist/config/schema-agent-model.js +114 -0
- package/node_modules/@comis/core/dist/config/schema-agent-model.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-agent-model.test.js +279 -0
- package/node_modules/@comis/core/dist/config/schema-agent-session.d.ts +177 -0
- package/node_modules/@comis/core/dist/config/schema-agent-session.js +116 -0
- package/node_modules/@comis/core/dist/config/schema-agent-session.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-agent-session.test.js +242 -0
- package/node_modules/@comis/core/dist/config/schema-agent.d.ts +2373 -0
- package/node_modules/@comis/core/dist/config/schema-agent.js +732 -0
- package/node_modules/@comis/core/dist/config/schema-agent.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-agent.test.js +645 -0
- package/node_modules/@comis/core/dist/config/schema-approvals.d.ts +78 -0
- package/node_modules/@comis/core/dist/config/schema-approvals.js +49 -0
- package/node_modules/@comis/core/dist/config/schema-auto-reply-engine.d.ts +42 -0
- package/node_modules/@comis/core/dist/config/schema-auto-reply-engine.js +35 -0
- package/node_modules/@comis/core/dist/config/schema-background-tasks.d.ts +25 -0
- package/node_modules/@comis/core/dist/config/schema-background-tasks.js +25 -0
- package/node_modules/@comis/core/dist/config/schema-browser.d.ts +42 -0
- package/node_modules/@comis/core/dist/config/schema-browser.js +51 -0
- package/node_modules/@comis/core/dist/config/schema-channel.d.ts +1172 -0
- package/node_modules/@comis/core/dist/config/schema-channel.js +165 -0
- package/node_modules/@comis/core/dist/config/schema-channel.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-channel.test.js +341 -0
- package/node_modules/@comis/core/dist/config/schema-coalescer.d.ts +24 -0
- package/node_modules/@comis/core/dist/config/schema-coalescer.js +21 -0
- package/node_modules/@comis/core/dist/config/schema-coalescer.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-coalescer.test.js +51 -0
- package/node_modules/@comis/core/dist/config/schema-context-engine.d.ts +92 -0
- package/node_modules/@comis/core/dist/config/schema-context-engine.js +92 -0
- package/node_modules/@comis/core/dist/config/schema-context-engine.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-context-engine.test.js +797 -0
- package/node_modules/@comis/core/dist/config/schema-context-guard.d.ts +34 -0
- package/node_modules/@comis/core/dist/config/schema-context-guard.js +32 -0
- package/node_modules/@comis/core/dist/config/schema-context-guard.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-context-guard.test.js +111 -0
- package/node_modules/@comis/core/dist/config/schema-daemon.d.ts +140 -0
- package/node_modules/@comis/core/dist/config/schema-daemon.js +91 -0
- package/node_modules/@comis/core/dist/config/schema-daemon.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-daemon.test.js +107 -0
- package/node_modules/@comis/core/dist/config/schema-delivery-mirror.d.ts +27 -0
- package/node_modules/@comis/core/dist/config/schema-delivery-mirror.js +26 -0
- package/node_modules/@comis/core/dist/config/schema-delivery-queue.d.ts +31 -0
- package/node_modules/@comis/core/dist/config/schema-delivery-queue.js +30 -0
- package/node_modules/@comis/core/dist/config/schema-delivery-timing.d.ts +41 -0
- package/node_modules/@comis/core/dist/config/schema-delivery-timing.js +31 -0
- package/node_modules/@comis/core/dist/config/schema-delivery-timing.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-delivery-timing.test.js +51 -0
- package/node_modules/@comis/core/dist/config/schema-delivery.d.ts +97 -0
- package/node_modules/@comis/core/dist/config/schema-delivery.js +89 -0
- package/node_modules/@comis/core/dist/config/schema-documentation.d.ts +42 -0
- package/node_modules/@comis/core/dist/config/schema-documentation.js +36 -0
- package/node_modules/@comis/core/dist/config/schema-documentation.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-documentation.test.js +63 -0
- package/node_modules/@comis/core/dist/config/schema-embedding.d.ts +58 -0
- package/node_modules/@comis/core/dist/config/schema-embedding.js +61 -0
- package/node_modules/@comis/core/dist/config/schema-envelope.d.ts +35 -0
- package/node_modules/@comis/core/dist/config/schema-envelope.js +32 -0
- package/node_modules/@comis/core/dist/config/schema-gateway.d.ts +124 -0
- package/node_modules/@comis/core/dist/config/schema-gateway.js +85 -0
- package/node_modules/@comis/core/dist/config/schema-gateway.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-gateway.test.js +219 -0
- package/node_modules/@comis/core/dist/config/schema-gemini-cache.d.ts +19 -0
- package/node_modules/@comis/core/dist/config/schema-gemini-cache.js +19 -0
- package/node_modules/@comis/core/dist/config/schema-gemini-cache.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-gemini-cache.test.js +41 -0
- package/node_modules/@comis/core/dist/config/schema-integrations.d.ts +960 -0
- package/node_modules/@comis/core/dist/config/schema-integrations.js +369 -0
- package/node_modules/@comis/core/dist/config/schema-integrations.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-integrations.test.js +92 -0
- package/node_modules/@comis/core/dist/config/schema-lifecycle-reactions.d.ts +78 -0
- package/node_modules/@comis/core/dist/config/schema-lifecycle-reactions.js +49 -0
- package/node_modules/@comis/core/dist/config/schema-lifecycle-reactions.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-lifecycle-reactions.test.js +61 -0
- package/node_modules/@comis/core/dist/config/schema-memory-review.d.ts +38 -0
- package/node_modules/@comis/core/dist/config/schema-memory-review.js +38 -0
- package/node_modules/@comis/core/dist/config/schema-memory.d.ts +50 -0
- package/node_modules/@comis/core/dist/config/schema-memory.js +36 -0
- package/node_modules/@comis/core/dist/config/schema-messages.d.ts +29 -0
- package/node_modules/@comis/core/dist/config/schema-messages.js +28 -0
- package/node_modules/@comis/core/dist/config/schema-misc.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-misc.test.js +394 -0
- package/node_modules/@comis/core/dist/config/schema-models.d.ts +46 -0
- package/node_modules/@comis/core/dist/config/schema-models.js +36 -0
- package/node_modules/@comis/core/dist/config/schema-monitoring.d.ts +105 -0
- package/node_modules/@comis/core/dist/config/schema-monitoring.js +67 -0
- package/node_modules/@comis/core/dist/config/schema-notification.d.ts +25 -0
- package/node_modules/@comis/core/dist/config/schema-notification.js +25 -0
- package/node_modules/@comis/core/dist/config/schema-observability.d.ts +139 -0
- package/node_modules/@comis/core/dist/config/schema-observability.js +95 -0
- package/node_modules/@comis/core/dist/config/schema-observability.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-observability.test.js +76 -0
- package/node_modules/@comis/core/dist/config/schema-plugins.d.ts +37 -0
- package/node_modules/@comis/core/dist/config/schema-plugins.js +27 -0
- package/node_modules/@comis/core/dist/config/schema-providers.d.ts +241 -0
- package/node_modules/@comis/core/dist/config/schema-providers.js +88 -0
- package/node_modules/@comis/core/dist/config/schema-providers.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-providers.test.js +294 -0
- package/node_modules/@comis/core/dist/config/schema-queue.d.ts +248 -0
- package/node_modules/@comis/core/dist/config/schema-queue.js +145 -0
- package/node_modules/@comis/core/dist/config/schema-queue.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-queue.test.js +234 -0
- package/node_modules/@comis/core/dist/config/schema-response-prefix.d.ts +20 -0
- package/node_modules/@comis/core/dist/config/schema-response-prefix.js +17 -0
- package/node_modules/@comis/core/dist/config/schema-response-prefix.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-response-prefix.test.js +36 -0
- package/node_modules/@comis/core/dist/config/schema-retry.d.ts +25 -0
- package/node_modules/@comis/core/dist/config/schema-retry.js +25 -0
- package/node_modules/@comis/core/dist/config/schema-scheduler.d.ts +90 -0
- package/node_modules/@comis/core/dist/config/schema-scheduler.js +88 -0
- package/node_modules/@comis/core/dist/config/schema-secrets.d.ts +15 -0
- package/node_modules/@comis/core/dist/config/schema-secrets.js +14 -0
- package/node_modules/@comis/core/dist/config/schema-security.d.ts +159 -0
- package/node_modules/@comis/core/dist/config/schema-security.js +70 -0
- package/node_modules/@comis/core/dist/config/schema-security.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-security.test.js +54 -0
- package/node_modules/@comis/core/dist/config/schema-send-policy.d.ts +65 -0
- package/node_modules/@comis/core/dist/config/schema-send-policy.js +40 -0
- package/node_modules/@comis/core/dist/config/schema-sender-trust-display.d.ts +26 -0
- package/node_modules/@comis/core/dist/config/schema-sender-trust-display.js +22 -0
- package/node_modules/@comis/core/dist/config/schema-sender-trust-display.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-sender-trust-display.test.js +60 -0
- package/node_modules/@comis/core/dist/config/schema-serializer.d.ts +33 -0
- package/node_modules/@comis/core/dist/config/schema-serializer.js +97 -0
- package/node_modules/@comis/core/dist/config/schema-serializer.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-serializer.test.js +73 -0
- package/node_modules/@comis/core/dist/config/schema-skills.d.ts +134 -0
- package/node_modules/@comis/core/dist/config/schema-skills.js +122 -0
- package/node_modules/@comis/core/dist/config/schema-streaming.d.ts +286 -0
- package/node_modules/@comis/core/dist/config/schema-streaming.js +110 -0
- package/node_modules/@comis/core/dist/config/schema-telegram-file-guard.d.ts +19 -0
- package/node_modules/@comis/core/dist/config/schema-telegram-file-guard.js +19 -0
- package/node_modules/@comis/core/dist/config/schema-telegram-file-guard.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-telegram-file-guard.test.js +39 -0
- package/node_modules/@comis/core/dist/config/schema-verbosity.d.ts +68 -0
- package/node_modules/@comis/core/dist/config/schema-verbosity.js +27 -0
- package/node_modules/@comis/core/dist/config/schema-webhooks.d.ts +131 -0
- package/node_modules/@comis/core/dist/config/schema-webhooks.js +72 -0
- package/node_modules/@comis/core/dist/config/schema.d.ts +2041 -0
- package/node_modules/@comis/core/dist/config/schema.js +115 -0
- package/node_modules/@comis/core/dist/config/types.d.ts +52 -0
- package/node_modules/@comis/core/dist/config/types.js +7 -0
- package/node_modules/@comis/core/dist/context/context.d.ts +78 -0
- package/node_modules/@comis/core/dist/context/context.js +82 -0
- package/node_modules/@comis/core/dist/context/context.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/context/context.test.js +276 -0
- package/node_modules/@comis/core/dist/context/index.d.ts +2 -0
- package/node_modules/@comis/core/dist/context/index.js +2 -0
- package/node_modules/@comis/core/dist/domain/agent-response.d.ts +55 -0
- package/node_modules/@comis/core/dist/domain/agent-response.js +46 -0
- package/node_modules/@comis/core/dist/domain/agent-response.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/domain/agent-response.test.js +159 -0
- package/node_modules/@comis/core/dist/domain/approval-request.d.ts +98 -0
- package/node_modules/@comis/core/dist/domain/approval-request.js +83 -0
- package/node_modules/@comis/core/dist/domain/credential-mapping.d.ts +46 -0
- package/node_modules/@comis/core/dist/domain/credential-mapping.js +62 -0
- package/node_modules/@comis/core/dist/domain/credential-mapping.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/domain/credential-mapping.test.js +135 -0
- package/node_modules/@comis/core/dist/domain/delivery-origin.d.ts +32 -0
- package/node_modules/@comis/core/dist/domain/delivery-origin.js +35 -0
- package/node_modules/@comis/core/dist/domain/delivery-origin.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/domain/delivery-origin.test.js +68 -0
- package/node_modules/@comis/core/dist/domain/execution-graph.d.ts +260 -0
- package/node_modules/@comis/core/dist/domain/execution-graph.js +322 -0
- package/node_modules/@comis/core/dist/domain/execution-graph.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/domain/execution-graph.test.js +441 -0
- package/node_modules/@comis/core/dist/domain/index.d.ts +31 -0
- package/node_modules/@comis/core/dist/domain/index.js +20 -0
- package/node_modules/@comis/core/dist/domain/memory-entry.d.ts +74 -0
- package/node_modules/@comis/core/dist/domain/memory-entry.js +56 -0
- package/node_modules/@comis/core/dist/domain/memory-entry.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/domain/memory-entry.test.js +193 -0
- package/node_modules/@comis/core/dist/domain/model-compat.d.ts +61 -0
- package/node_modules/@comis/core/dist/domain/model-compat.js +47 -0
- package/node_modules/@comis/core/dist/domain/node-type-driver.d.ts +124 -0
- package/node_modules/@comis/core/dist/domain/node-type-driver.js +1 -0
- package/node_modules/@comis/core/dist/domain/normalized-message.d.ts +98 -0
- package/node_modules/@comis/core/dist/domain/normalized-message.js +62 -0
- package/node_modules/@comis/core/dist/domain/normalized-message.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/domain/normalized-message.test.js +255 -0
- package/node_modules/@comis/core/dist/domain/poll-input.d.ts +46 -0
- package/node_modules/@comis/core/dist/domain/poll-input.js +67 -0
- package/node_modules/@comis/core/dist/domain/provider-capabilities.d.ts +69 -0
- package/node_modules/@comis/core/dist/domain/provider-capabilities.js +51 -0
- package/node_modules/@comis/core/dist/domain/rich-message.d.ts +85 -0
- package/node_modules/@comis/core/dist/domain/rich-message.js +83 -0
- package/node_modules/@comis/core/dist/domain/secret-ref.d.ts +54 -0
- package/node_modules/@comis/core/dist/domain/secret-ref.js +43 -0
- package/node_modules/@comis/core/dist/domain/session-key.d.ts +47 -0
- package/node_modules/@comis/core/dist/domain/session-key.js +120 -0
- package/node_modules/@comis/core/dist/domain/session-key.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/domain/session-key.test.js +291 -0
- package/node_modules/@comis/core/dist/domain/subagent-context-config.d.ts +62 -0
- package/node_modules/@comis/core/dist/domain/subagent-context-config.js +58 -0
- package/node_modules/@comis/core/dist/domain/subagent-context-config.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/domain/subagent-context-config.test.js +131 -0
- package/node_modules/@comis/core/dist/domain/subagent-context-types.d.ts +203 -0
- package/node_modules/@comis/core/dist/domain/subagent-context-types.js +57 -0
- package/node_modules/@comis/core/dist/domain/subagent-context-types.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/domain/subagent-context-types.test.js +182 -0
- package/node_modules/@comis/core/dist/event-bus/bus.d.ts +50 -0
- package/node_modules/@comis/core/dist/event-bus/bus.js +71 -0
- package/node_modules/@comis/core/dist/event-bus/bus.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/event-bus/bus.test.js +152 -0
- package/node_modules/@comis/core/dist/event-bus/events-agent.d.ts +387 -0
- package/node_modules/@comis/core/dist/event-bus/events-agent.js +1 -0
- package/node_modules/@comis/core/dist/event-bus/events-agent.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/event-bus/events-agent.test.js +409 -0
- package/node_modules/@comis/core/dist/event-bus/events-channel.d.ts +376 -0
- package/node_modules/@comis/core/dist/event-bus/events-channel.js +1 -0
- package/node_modules/@comis/core/dist/event-bus/events-channel.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/event-bus/events-channel.test.js +240 -0
- package/node_modules/@comis/core/dist/event-bus/events-infra.d.ts +437 -0
- package/node_modules/@comis/core/dist/event-bus/events-infra.js +1 -0
- package/node_modules/@comis/core/dist/event-bus/events-infra.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/event-bus/events-infra.test.js +416 -0
- package/node_modules/@comis/core/dist/event-bus/events-messaging.d.ts +298 -0
- package/node_modules/@comis/core/dist/event-bus/events-messaging.js +1 -0
- package/node_modules/@comis/core/dist/event-bus/events-messaging.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/event-bus/events-messaging.test.js +433 -0
- package/node_modules/@comis/core/dist/event-bus/events.d.ts +15 -0
- package/node_modules/@comis/core/dist/event-bus/events.js +1 -0
- package/node_modules/@comis/core/dist/event-bus/events.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/event-bus/events.test.js +93 -0
- package/node_modules/@comis/core/dist/event-bus/index.d.ts +7 -0
- package/node_modules/@comis/core/dist/event-bus/index.js +2 -0
- package/node_modules/@comis/core/dist/exports/bootstrap.d.ts +5 -0
- package/node_modules/@comis/core/dist/exports/bootstrap.js +8 -0
- package/node_modules/@comis/core/dist/exports/config.d.ts +2 -0
- package/node_modules/@comis/core/dist/exports/config.js +3 -0
- package/node_modules/@comis/core/dist/exports/domain.d.ts +2 -0
- package/node_modules/@comis/core/dist/exports/domain.js +33 -0
- package/node_modules/@comis/core/dist/exports/event-bus.d.ts +2 -0
- package/node_modules/@comis/core/dist/exports/event-bus.js +3 -0
- package/node_modules/@comis/core/dist/exports/hooks.d.ts +6 -0
- package/node_modules/@comis/core/dist/exports/hooks.js +7 -0
- package/node_modules/@comis/core/dist/exports/ports.d.ts +2 -0
- package/node_modules/@comis/core/dist/exports/ports.js +3 -0
- package/node_modules/@comis/core/dist/exports/security.d.ts +38 -0
- package/node_modules/@comis/core/dist/exports/security.js +45 -0
- package/node_modules/@comis/core/dist/hooks/hook-runner-global.d.ts +4 -0
- package/node_modules/@comis/core/dist/hooks/hook-runner-global.js +22 -0
- package/node_modules/@comis/core/dist/hooks/hook-runner-global.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/hooks/hook-runner-global.test.js +29 -0
- package/node_modules/@comis/core/dist/hooks/hook-runner.d.ts +52 -0
- package/node_modules/@comis/core/dist/hooks/hook-runner.js +204 -0
- package/node_modules/@comis/core/dist/hooks/hook-runner.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/hooks/hook-runner.test.js +490 -0
- package/node_modules/@comis/core/dist/hooks/hook-strategies.d.ts +29 -0
- package/node_modules/@comis/core/dist/hooks/hook-strategies.js +58 -0
- package/node_modules/@comis/core/dist/hooks/hook-strategies.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/hooks/hook-strategies.test.js +209 -0
- package/node_modules/@comis/core/dist/hooks/index.d.ts +6 -0
- package/node_modules/@comis/core/dist/hooks/index.js +6 -0
- package/node_modules/@comis/core/dist/hooks/integration.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/hooks/integration.test.js +235 -0
- package/node_modules/@comis/core/dist/hooks/plugin-registry.d.ts +49 -0
- package/node_modules/@comis/core/dist/hooks/plugin-registry.js +176 -0
- package/node_modules/@comis/core/dist/hooks/plugin-registry.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/hooks/plugin-registry.test.js +470 -0
- package/node_modules/@comis/core/dist/index.d.ts +7 -0
- package/node_modules/@comis/core/dist/index.js +12 -0
- package/node_modules/@comis/core/dist/load-env.d.ts +31 -0
- package/node_modules/@comis/core/dist/load-env.js +83 -0
- package/node_modules/@comis/core/dist/load-env.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/load-env.test.js +21 -0
- package/node_modules/@comis/core/dist/ports/channel-plugin.d.ts +104 -0
- package/node_modules/@comis/core/dist/ports/channel-plugin.js +59 -0
- package/node_modules/@comis/core/dist/ports/channel.d.ts +223 -0
- package/node_modules/@comis/core/dist/ports/channel.js +1 -0
- package/node_modules/@comis/core/dist/ports/credential-mapping.d.ts +61 -0
- package/node_modules/@comis/core/dist/ports/credential-mapping.js +1 -0
- package/node_modules/@comis/core/dist/ports/delivery-mirror.d.ts +87 -0
- package/node_modules/@comis/core/dist/ports/delivery-mirror.js +29 -0
- package/node_modules/@comis/core/dist/ports/delivery-queue.d.ts +114 -0
- package/node_modules/@comis/core/dist/ports/delivery-queue.js +33 -0
- package/node_modules/@comis/core/dist/ports/device-identity.d.ts +50 -0
- package/node_modules/@comis/core/dist/ports/device-identity.js +14 -0
- package/node_modules/@comis/core/dist/ports/embedding.d.ts +51 -0
- package/node_modules/@comis/core/dist/ports/embedding.js +1 -0
- package/node_modules/@comis/core/dist/ports/file-extraction-port.d.ts +82 -0
- package/node_modules/@comis/core/dist/ports/file-extraction-port.js +1 -0
- package/node_modules/@comis/core/dist/ports/hook-types.d.ts +218 -0
- package/node_modules/@comis/core/dist/ports/hook-types.js +1 -0
- package/node_modules/@comis/core/dist/ports/image-analysis-port.d.ts +27 -0
- package/node_modules/@comis/core/dist/ports/image-analysis-port.js +1 -0
- package/node_modules/@comis/core/dist/ports/index.d.ts +23 -0
- package/node_modules/@comis/core/dist/ports/index.js +5 -0
- package/node_modules/@comis/core/dist/ports/media-ports.d.ts +278 -0
- package/node_modules/@comis/core/dist/ports/media-ports.js +1 -0
- package/node_modules/@comis/core/dist/ports/media-resolver-port.d.ts +42 -0
- package/node_modules/@comis/core/dist/ports/media-resolver-port.js +1 -0
- package/node_modules/@comis/core/dist/ports/memory.d.ts +97 -0
- package/node_modules/@comis/core/dist/ports/memory.js +1 -0
- package/node_modules/@comis/core/dist/ports/output-guard.d.ts +22 -0
- package/node_modules/@comis/core/dist/ports/output-guard.js +1 -0
- package/node_modules/@comis/core/dist/ports/plugin.d.ts +87 -0
- package/node_modules/@comis/core/dist/ports/plugin.js +1 -0
- package/node_modules/@comis/core/dist/ports/provider.d.ts +44 -0
- package/node_modules/@comis/core/dist/ports/provider.js +1 -0
- package/node_modules/@comis/core/dist/ports/secret-store.d.ts +106 -0
- package/node_modules/@comis/core/dist/ports/secret-store.js +1 -0
- package/node_modules/@comis/core/dist/ports/skill.d.ts +92 -0
- package/node_modules/@comis/core/dist/ports/skill.js +1 -0
- package/node_modules/@comis/core/dist/ports/transcription-port.d.ts +39 -0
- package/node_modules/@comis/core/dist/ports/transcription-port.js +1 -0
- package/node_modules/@comis/core/dist/ports/tts-port.d.ts +37 -0
- package/node_modules/@comis/core/dist/ports/tts-port.js +1 -0
- package/node_modules/@comis/core/dist/ports/vision-port.d.ts +56 -0
- package/node_modules/@comis/core/dist/ports/vision-port.js +1 -0
- package/node_modules/@comis/core/dist/security/action-classifier.d.ts +64 -0
- package/node_modules/@comis/core/dist/security/action-classifier.js +320 -0
- package/node_modules/@comis/core/dist/security/action-classifier.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/action-classifier.test.js +298 -0
- package/node_modules/@comis/core/dist/security/audit-aggregator.d.ts +38 -0
- package/node_modules/@comis/core/dist/security/audit-aggregator.js +73 -0
- package/node_modules/@comis/core/dist/security/audit-aggregator.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/audit-aggregator.test.js +128 -0
- package/node_modules/@comis/core/dist/security/audit.d.ts +64 -0
- package/node_modules/@comis/core/dist/security/audit.js +56 -0
- package/node_modules/@comis/core/dist/security/audit.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/audit.test.js +154 -0
- package/node_modules/@comis/core/dist/security/canary-token.d.ts +18 -0
- package/node_modules/@comis/core/dist/security/canary-token.js +28 -0
- package/node_modules/@comis/core/dist/security/canary-token.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/canary-token.test.js +45 -0
- package/node_modules/@comis/core/dist/security/config-redaction.d.ts +19 -0
- package/node_modules/@comis/core/dist/security/config-redaction.js +42 -0
- package/node_modules/@comis/core/dist/security/config-redaction.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/config-redaction.test.js +107 -0
- package/node_modules/@comis/core/dist/security/external-content.d.ts +57 -0
- package/node_modules/@comis/core/dist/security/external-content.js +210 -0
- package/node_modules/@comis/core/dist/security/external-content.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/external-content.test.js +210 -0
- package/node_modules/@comis/core/dist/security/index.d.ts +38 -0
- package/node_modules/@comis/core/dist/security/index.js +66 -0
- package/node_modules/@comis/core/dist/security/injection-patterns.d.ts +9 -0
- package/node_modules/@comis/core/dist/security/injection-patterns.js +10 -0
- package/node_modules/@comis/core/dist/security/injection-patterns.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/injection-patterns.test.js +213 -0
- package/node_modules/@comis/core/dist/security/injection-rate-limiter.d.ts +43 -0
- package/node_modules/@comis/core/dist/security/injection-rate-limiter.js +108 -0
- package/node_modules/@comis/core/dist/security/injection-rate-limiter.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/injection-rate-limiter.test.js +194 -0
- package/node_modules/@comis/core/dist/security/input-guard.d.ts +46 -0
- package/node_modules/@comis/core/dist/security/input-guard.js +166 -0
- package/node_modules/@comis/core/dist/security/input-guard.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/input-guard.test.js +215 -0
- package/node_modules/@comis/core/dist/security/input-security-guard.d.ts +45 -0
- package/node_modules/@comis/core/dist/security/input-security-guard.js +166 -0
- package/node_modules/@comis/core/dist/security/input-security-guard.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/input-security-guard.test.js +215 -0
- package/node_modules/@comis/core/dist/security/input-validator.d.ts +37 -0
- package/node_modules/@comis/core/dist/security/input-validator.js +68 -0
- package/node_modules/@comis/core/dist/security/input-validator.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/input-validator.test.js +133 -0
- package/node_modules/@comis/core/dist/security/log-sanitizer.d.ts +21 -0
- package/node_modules/@comis/core/dist/security/log-sanitizer.js +83 -0
- package/node_modules/@comis/core/dist/security/log-sanitizer.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/log-sanitizer.test.js +260 -0
- package/node_modules/@comis/core/dist/security/memory-write-validator.d.ts +35 -0
- package/node_modules/@comis/core/dist/security/memory-write-validator.js +42 -0
- package/node_modules/@comis/core/dist/security/memory-write-validator.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/memory-write-validator.test.js +62 -0
- package/node_modules/@comis/core/dist/security/output-guard.d.ts +17 -0
- package/node_modules/@comis/core/dist/security/output-guard.js +94 -0
- package/node_modules/@comis/core/dist/security/output-guard.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/output-guard.test.js +397 -0
- package/node_modules/@comis/core/dist/security/patterns/content-scanner.d.ts +57 -0
- package/node_modules/@comis/core/dist/security/patterns/content-scanner.js +70 -0
- package/node_modules/@comis/core/dist/security/patterns/credential-log.d.ts +37 -0
- package/node_modules/@comis/core/dist/security/patterns/credential-log.js +52 -0
- package/node_modules/@comis/core/dist/security/patterns/dangerous-commands.d.ts +18 -0
- package/node_modules/@comis/core/dist/security/patterns/dangerous-commands.js +24 -0
- package/node_modules/@comis/core/dist/security/patterns/index.d.ts +8 -0
- package/node_modules/@comis/core/dist/security/patterns/index.js +9 -0
- package/node_modules/@comis/core/dist/security/patterns/invisible-chars.d.ts +85 -0
- package/node_modules/@comis/core/dist/security/patterns/invisible-chars.js +94 -0
- package/node_modules/@comis/core/dist/security/patterns/jailbreak.d.ts +45 -0
- package/node_modules/@comis/core/dist/security/patterns/jailbreak.js +67 -0
- package/node_modules/@comis/core/dist/security/patterns/prompt-extraction.d.ts +14 -0
- package/node_modules/@comis/core/dist/security/patterns/prompt-extraction.js +18 -0
- package/node_modules/@comis/core/dist/security/patterns/role-markers.d.ts +22 -0
- package/node_modules/@comis/core/dist/security/patterns/role-markers.js +30 -0
- package/node_modules/@comis/core/dist/security/patterns/secret-formats.d.ts +35 -0
- package/node_modules/@comis/core/dist/security/patterns/secret-formats.js +52 -0
- package/node_modules/@comis/core/dist/security/safe-path.d.ts +26 -0
- package/node_modules/@comis/core/dist/security/safe-path.js +97 -0
- package/node_modules/@comis/core/dist/security/safe-path.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/safe-path.test.js +95 -0
- package/node_modules/@comis/core/dist/security/scoped-secret-manager.d.ts +38 -0
- package/node_modules/@comis/core/dist/security/scoped-secret-manager.js +94 -0
- package/node_modules/@comis/core/dist/security/scoped-secret-manager.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/scoped-secret-manager.test.js +231 -0
- package/node_modules/@comis/core/dist/security/secret-access.d.ts +36 -0
- package/node_modules/@comis/core/dist/security/secret-access.js +53 -0
- package/node_modules/@comis/core/dist/security/secret-access.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/secret-access.test.js +41 -0
- package/node_modules/@comis/core/dist/security/secret-crypto.d.ts +52 -0
- package/node_modules/@comis/core/dist/security/secret-crypto.js +83 -0
- package/node_modules/@comis/core/dist/security/secret-crypto.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/secret-crypto.test.js +113 -0
- package/node_modules/@comis/core/dist/security/secret-manager.d.ts +77 -0
- package/node_modules/@comis/core/dist/security/secret-manager.js +154 -0
- package/node_modules/@comis/core/dist/security/secret-manager.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/secret-manager.test.js +394 -0
- package/node_modules/@comis/core/dist/security/secret-ref-resolver.d.ts +66 -0
- package/node_modules/@comis/core/dist/security/secret-ref-resolver.js +233 -0
- package/node_modules/@comis/core/dist/security/secret-ref-resolver.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/secret-ref-resolver.test.js +268 -0
- package/node_modules/@comis/core/dist/security/secrets-audit.d.ts +71 -0
- package/node_modules/@comis/core/dist/security/secrets-audit.js +226 -0
- package/node_modules/@comis/core/dist/security/secrets-audit.test.d.ts +10 -0
- package/node_modules/@comis/core/dist/security/secrets-audit.test.js +295 -0
- package/node_modules/@comis/core/dist/security/ssrf-guard.d.ts +53 -0
- package/node_modules/@comis/core/dist/security/ssrf-guard.js +106 -0
- package/node_modules/@comis/core/dist/security/ssrf-guard.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/ssrf-guard.test.js +127 -0
- package/node_modules/@comis/core/dist/security/token-generator.d.ts +21 -0
- package/node_modules/@comis/core/dist/security/token-generator.js +28 -0
- package/node_modules/@comis/core/dist/security/token-generator.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/security/token-generator.test.js +35 -0
- package/node_modules/@comis/core/dist/tool-metadata.d.ts +62 -0
- package/node_modules/@comis/core/dist/tool-metadata.js +85 -0
- package/node_modules/@comis/core/dist/tool-metadata.test.d.ts +1 -0
- package/node_modules/@comis/core/dist/tool-metadata.test.js +112 -0
- package/node_modules/@comis/core/package.json +44 -0
- package/node_modules/@comis/daemon/bundled-skills/skill-creator/SKILL.md +320 -0
- package/node_modules/@comis/daemon/bundled-skills/skill-creator/references/schema.md +101 -0
- package/node_modules/@comis/daemon/bundled-skills/skill-creator/scripts/init-skill.py +137 -0
- package/node_modules/@comis/daemon/bundled-skills/skill-creator/scripts/validate-skill.py +286 -0
- package/node_modules/@comis/daemon/dist/announcement-batcher.d.ts +58 -0
- package/node_modules/@comis/daemon/dist/announcement-batcher.js +229 -0
- package/node_modules/@comis/daemon/dist/announcement-dead-letter.d.ts +71 -0
- package/node_modules/@comis/daemon/dist/announcement-dead-letter.js +216 -0
- package/node_modules/@comis/daemon/dist/config/exec-git.d.ts +14 -0
- package/node_modules/@comis/daemon/dist/config/exec-git.js +30 -0
- package/node_modules/@comis/daemon/dist/config/last-known-good.d.ts +43 -0
- package/node_modules/@comis/daemon/dist/config/last-known-good.js +141 -0
- package/node_modules/@comis/daemon/dist/cross-session-sender.d.ts +56 -0
- package/node_modules/@comis/daemon/dist/cross-session-sender.js +144 -0
- package/node_modules/@comis/daemon/dist/daemon-types.d.ts +113 -0
- package/node_modules/@comis/daemon/dist/daemon-types.js +8 -0
- package/node_modules/@comis/daemon/dist/daemon.d.ts +37 -0
- package/node_modules/@comis/daemon/dist/daemon.js +1327 -0
- package/node_modules/@comis/daemon/dist/device/device-identity.d.ts +29 -0
- package/node_modules/@comis/daemon/dist/device/device-identity.js +95 -0
- package/node_modules/@comis/daemon/dist/device/device-pairing.d.ts +31 -0
- package/node_modules/@comis/daemon/dist/device/device-pairing.js +240 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/agent-driver.d.ts +8 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/agent-driver.js +41 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/approval-gate-driver.d.ts +10 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/approval-gate-driver.js +76 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/collaborate-driver.d.ts +9 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/collaborate-driver.js +87 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/debate-driver.d.ts +9 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/debate-driver.js +208 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/index.d.ts +7 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/index.js +8 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/map-reduce-driver.d.ts +10 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/map-reduce-driver.js +79 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/refine-driver.d.ts +9 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/refine-driver.js +67 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/vote-driver.d.ts +9 -0
- package/node_modules/@comis/daemon/dist/graph/drivers/vote-driver.js +66 -0
- package/node_modules/@comis/daemon/dist/graph/graph-cleanup.d.ts +18 -0
- package/node_modules/@comis/daemon/dist/graph/graph-cleanup.js +69 -0
- package/node_modules/@comis/daemon/dist/graph/graph-completion.d.ts +64 -0
- package/node_modules/@comis/daemon/dist/graph/graph-completion.js +478 -0
- package/node_modules/@comis/daemon/dist/graph/graph-concurrency.d.ts +54 -0
- package/node_modules/@comis/daemon/dist/graph/graph-concurrency.js +77 -0
- package/node_modules/@comis/daemon/dist/graph/graph-coordinator-state.d.ts +233 -0
- package/node_modules/@comis/daemon/dist/graph/graph-coordinator-state.js +9 -0
- package/node_modules/@comis/daemon/dist/graph/graph-coordinator.d.ts +44 -0
- package/node_modules/@comis/daemon/dist/graph/graph-coordinator.js +344 -0
- package/node_modules/@comis/daemon/dist/graph/graph-driver-handler.d.ts +62 -0
- package/node_modules/@comis/daemon/dist/graph/graph-driver-handler.js +611 -0
- package/node_modules/@comis/daemon/dist/graph/graph-node-lifecycle.d.ts +97 -0
- package/node_modules/@comis/daemon/dist/graph/graph-node-lifecycle.js +611 -0
- package/node_modules/@comis/daemon/dist/graph/graph-prewarm.d.ts +65 -0
- package/node_modules/@comis/daemon/dist/graph/graph-prewarm.js +95 -0
- package/node_modules/@comis/daemon/dist/graph/graph-state-machine.d.ts +77 -0
- package/node_modules/@comis/daemon/dist/graph/graph-state-machine.js +439 -0
- package/node_modules/@comis/daemon/dist/graph/graph-tool-superset.d.ts +33 -0
- package/node_modules/@comis/daemon/dist/graph/graph-tool-superset.js +74 -0
- package/node_modules/@comis/daemon/dist/graph/index.d.ts +7 -0
- package/node_modules/@comis/daemon/dist/graph/index.js +7 -0
- package/node_modules/@comis/daemon/dist/graph/node-type-registry.d.ts +18 -0
- package/node_modules/@comis/daemon/dist/graph/node-type-registry.js +45 -0
- package/node_modules/@comis/daemon/dist/graph/template-interpolation.d.ts +73 -0
- package/node_modules/@comis/daemon/dist/graph/template-interpolation.js +205 -0
- package/node_modules/@comis/daemon/dist/graph/user-variables.d.ts +45 -0
- package/node_modules/@comis/daemon/dist/graph/user-variables.js +68 -0
- package/node_modules/@comis/daemon/dist/health/index.d.ts +1 -0
- package/node_modules/@comis/daemon/dist/health/index.js +3 -0
- package/node_modules/@comis/daemon/dist/health/watchdog.d.ts +50 -0
- package/node_modules/@comis/daemon/dist/health/watchdog.js +84 -0
- package/node_modules/@comis/daemon/dist/index.d.ts +9 -0
- package/node_modules/@comis/daemon/dist/index.js +12 -0
- package/node_modules/@comis/daemon/dist/monitoring/disk-space-source.d.ts +14 -0
- package/node_modules/@comis/daemon/dist/monitoring/disk-space-source.js +71 -0
- package/node_modules/@comis/daemon/dist/monitoring/exec-helpers.d.ts +31 -0
- package/node_modules/@comis/daemon/dist/monitoring/exec-helpers.js +44 -0
- package/node_modules/@comis/daemon/dist/monitoring/git-watcher-source.d.ts +15 -0
- package/node_modules/@comis/daemon/dist/monitoring/git-watcher-source.js +104 -0
- package/node_modules/@comis/daemon/dist/monitoring/index.d.ts +5 -0
- package/node_modules/@comis/daemon/dist/monitoring/index.js +7 -0
- package/node_modules/@comis/daemon/dist/monitoring/security-update-source.d.ts +14 -0
- package/node_modules/@comis/daemon/dist/monitoring/security-update-source.js +141 -0
- package/node_modules/@comis/daemon/dist/monitoring/system-resources-source.d.ts +15 -0
- package/node_modules/@comis/daemon/dist/monitoring/system-resources-source.js +197 -0
- package/node_modules/@comis/daemon/dist/monitoring/systemd-service-source.d.ts +14 -0
- package/node_modules/@comis/daemon/dist/monitoring/systemd-service-source.js +115 -0
- package/node_modules/@comis/daemon/dist/notification/channel-resolver.d.ts +40 -0
- package/node_modules/@comis/daemon/dist/notification/channel-resolver.js +33 -0
- package/node_modules/@comis/daemon/dist/notification/notification-service.d.ts +48 -0
- package/node_modules/@comis/daemon/dist/notification/notification-service.js +150 -0
- package/node_modules/@comis/daemon/dist/notification/rate-limiter.d.ts +15 -0
- package/node_modules/@comis/daemon/dist/notification/rate-limiter.js +28 -0
- package/node_modules/@comis/daemon/dist/notification/session-tracker.d.ts +23 -0
- package/node_modules/@comis/daemon/dist/notification/session-tracker.js +40 -0
- package/node_modules/@comis/daemon/dist/observability/billing-estimator.d.ts +63 -0
- package/node_modules/@comis/daemon/dist/observability/billing-estimator.js +98 -0
- package/node_modules/@comis/daemon/dist/observability/channel-activity-tracker.d.ts +36 -0
- package/node_modules/@comis/daemon/dist/observability/channel-activity-tracker.js +97 -0
- package/node_modules/@comis/daemon/dist/observability/channel-health-logger.d.ts +25 -0
- package/node_modules/@comis/daemon/dist/observability/channel-health-logger.js +82 -0
- package/node_modules/@comis/daemon/dist/observability/context-pipeline-collector.d.ts +73 -0
- package/node_modules/@comis/daemon/dist/observability/context-pipeline-collector.js +132 -0
- package/node_modules/@comis/daemon/dist/observability/delivery-context.d.ts +37 -0
- package/node_modules/@comis/daemon/dist/observability/delivery-context.js +1 -0
- package/node_modules/@comis/daemon/dist/observability/delivery-queue-logger.d.ts +25 -0
- package/node_modules/@comis/daemon/dist/observability/delivery-queue-logger.js +99 -0
- package/node_modules/@comis/daemon/dist/observability/delivery-tracer.d.ts +59 -0
- package/node_modules/@comis/daemon/dist/observability/delivery-tracer.js +150 -0
- package/node_modules/@comis/daemon/dist/observability/diagnostic-collector.d.ts +46 -0
- package/node_modules/@comis/daemon/dist/observability/diagnostic-collector.js +129 -0
- package/node_modules/@comis/daemon/dist/observability/index.d.ts +30 -0
- package/node_modules/@comis/daemon/dist/observability/index.js +30 -0
- package/node_modules/@comis/daemon/dist/observability/latency-recorder.d.ts +54 -0
- package/node_modules/@comis/daemon/dist/observability/latency-recorder.js +85 -0
- package/node_modules/@comis/daemon/dist/observability/log-infra.d.ts +57 -0
- package/node_modules/@comis/daemon/dist/observability/log-infra.js +104 -0
- package/node_modules/@comis/daemon/dist/observability/log-level-manager.d.ts +23 -0
- package/node_modules/@comis/daemon/dist/observability/log-level-manager.js +34 -0
- package/node_modules/@comis/daemon/dist/observability/log-transport.d.ts +44 -0
- package/node_modules/@comis/daemon/dist/observability/log-transport.js +74 -0
- package/node_modules/@comis/daemon/dist/observability/obs-persistence-wiring.d.ts +82 -0
- package/node_modules/@comis/daemon/dist/observability/obs-persistence-wiring.js +213 -0
- package/node_modules/@comis/daemon/dist/observability/obs-write-buffer.d.ts +53 -0
- package/node_modules/@comis/daemon/dist/observability/obs-write-buffer.js +68 -0
- package/node_modules/@comis/daemon/dist/observability/token-tracker.d.ts +70 -0
- package/node_modules/@comis/daemon/dist/observability/token-tracker.js +120 -0
- package/node_modules/@comis/daemon/dist/observability/trace-logger.d.ts +17 -0
- package/node_modules/@comis/daemon/dist/observability/trace-logger.js +37 -0
- package/node_modules/@comis/daemon/dist/observability/types.d.ts +6 -0
- package/node_modules/@comis/daemon/dist/observability/types.js +1 -0
- package/node_modules/@comis/daemon/dist/process/graceful-shutdown.d.ts +50 -0
- package/node_modules/@comis/daemon/dist/process/graceful-shutdown.js +126 -0
- package/node_modules/@comis/daemon/dist/process/index.d.ts +2 -0
- package/node_modules/@comis/daemon/dist/process/index.js +4 -0
- package/node_modules/@comis/daemon/dist/process/process-monitor.d.ts +52 -0
- package/node_modules/@comis/daemon/dist/process/process-monitor.js +69 -0
- package/node_modules/@comis/daemon/dist/rpc/agent-handlers.d.ts +40 -0
- package/node_modules/@comis/daemon/dist/rpc/agent-handlers.js +293 -0
- package/node_modules/@comis/daemon/dist/rpc/approval-handlers.d.ts +18 -0
- package/node_modules/@comis/daemon/dist/rpc/approval-handlers.js +68 -0
- package/node_modules/@comis/daemon/dist/rpc/browser-handlers.d.ts +22 -0
- package/node_modules/@comis/daemon/dist/rpc/browser-handlers.js +118 -0
- package/node_modules/@comis/daemon/dist/rpc/channel-handlers.d.ts +34 -0
- package/node_modules/@comis/daemon/dist/rpc/channel-handlers.js +217 -0
- package/node_modules/@comis/daemon/dist/rpc/config-handlers.d.ts +95 -0
- package/node_modules/@comis/daemon/dist/rpc/config-handlers.js +855 -0
- package/node_modules/@comis/daemon/dist/rpc/context-handlers.d.ts +42 -0
- package/node_modules/@comis/daemon/dist/rpc/context-handlers.js +371 -0
- package/node_modules/@comis/daemon/dist/rpc/cron-handlers.d.ts +22 -0
- package/node_modules/@comis/daemon/dist/rpc/cron-handlers.js +204 -0
- package/node_modules/@comis/daemon/dist/rpc/daemon-handlers.d.ts +19 -0
- package/node_modules/@comis/daemon/dist/rpc/daemon-handlers.js +49 -0
- package/node_modules/@comis/daemon/dist/rpc/env-handlers.d.ts +26 -0
- package/node_modules/@comis/daemon/dist/rpc/env-handlers.js +289 -0
- package/node_modules/@comis/daemon/dist/rpc/graph-handlers.d.ts +84 -0
- package/node_modules/@comis/daemon/dist/rpc/graph-handlers.js +803 -0
- package/node_modules/@comis/daemon/dist/rpc/heartbeat-handlers.d.ts +30 -0
- package/node_modules/@comis/daemon/dist/rpc/heartbeat-handlers.js +195 -0
- package/node_modules/@comis/daemon/dist/rpc/image-handlers.d.ts +28 -0
- package/node_modules/@comis/daemon/dist/rpc/image-handlers.js +95 -0
- package/node_modules/@comis/daemon/dist/rpc/index.d.ts +24 -0
- package/node_modules/@comis/daemon/dist/rpc/index.js +23 -0
- package/node_modules/@comis/daemon/dist/rpc/mcp-handlers.d.ts +24 -0
- package/node_modules/@comis/daemon/dist/rpc/mcp-handlers.js +195 -0
- package/node_modules/@comis/daemon/dist/rpc/media-handlers.d.ts +59 -0
- package/node_modules/@comis/daemon/dist/rpc/media-handlers.js +480 -0
- package/node_modules/@comis/daemon/dist/rpc/memory-handlers.d.ts +36 -0
- package/node_modules/@comis/daemon/dist/rpc/memory-handlers.js +246 -0
- package/node_modules/@comis/daemon/dist/rpc/message-handlers.d.ts +40 -0
- package/node_modules/@comis/daemon/dist/rpc/message-handlers.js +296 -0
- package/node_modules/@comis/daemon/dist/rpc/model-handlers.d.ts +26 -0
- package/node_modules/@comis/daemon/dist/rpc/model-handlers.js +100 -0
- package/node_modules/@comis/daemon/dist/rpc/notification-handlers.d.ts +25 -0
- package/node_modules/@comis/daemon/dist/rpc/notification-handlers.js +56 -0
- package/node_modules/@comis/daemon/dist/rpc/obs-handlers.d.ts +86 -0
- package/node_modules/@comis/daemon/dist/rpc/obs-handlers.js +570 -0
- package/node_modules/@comis/daemon/dist/rpc/persist-to-config.d.ts +74 -0
- package/node_modules/@comis/daemon/dist/rpc/persist-to-config.js +204 -0
- package/node_modules/@comis/daemon/dist/rpc/rpc-dispatch.d.ts +200 -0
- package/node_modules/@comis/daemon/dist/rpc/rpc-dispatch.js +199 -0
- package/node_modules/@comis/daemon/dist/rpc/session-handlers.d.ts +73 -0
- package/node_modules/@comis/daemon/dist/rpc/session-handlers.js +828 -0
- package/node_modules/@comis/daemon/dist/rpc/skill-handlers.d.ts +34 -0
- package/node_modules/@comis/daemon/dist/rpc/skill-handlers.js +444 -0
- package/node_modules/@comis/daemon/dist/rpc/subagent-handlers.d.ts +25 -0
- package/node_modules/@comis/daemon/dist/rpc/subagent-handlers.js +80 -0
- package/node_modules/@comis/daemon/dist/rpc/token-handlers.d.ts +56 -0
- package/node_modules/@comis/daemon/dist/rpc/token-handlers.js +212 -0
- package/node_modules/@comis/daemon/dist/rpc/types.d.ts +2 -0
- package/node_modules/@comis/daemon/dist/rpc/types.js +1 -0
- package/node_modules/@comis/daemon/dist/rpc/workspace-handlers.d.ts +34 -0
- package/node_modules/@comis/daemon/dist/rpc/workspace-handlers.js +424 -0
- package/node_modules/@comis/daemon/dist/sub-agent-result-processor.d.ts +143 -0
- package/node_modules/@comis/daemon/dist/sub-agent-result-processor.js +493 -0
- package/node_modules/@comis/daemon/dist/sub-agent-runner.d.ts +321 -0
- package/node_modules/@comis/daemon/dist/sub-agent-runner.js +1224 -0
- package/node_modules/@comis/daemon/dist/wiring/daemon-context.d.ts +149 -0
- package/node_modules/@comis/daemon/dist/wiring/daemon-context.js +13 -0
- package/node_modules/@comis/daemon/dist/wiring/daemon-utils.d.ts +40 -0
- package/node_modules/@comis/daemon/dist/wiring/daemon-utils.js +109 -0
- package/node_modules/@comis/daemon/dist/wiring/index.d.ts +19 -0
- package/node_modules/@comis/daemon/dist/wiring/index.js +18 -0
- package/node_modules/@comis/daemon/dist/wiring/restart-continuation.d.ts +59 -0
- package/node_modules/@comis/daemon/dist/wiring/restart-continuation.js +113 -0
- package/node_modules/@comis/daemon/dist/wiring/seed-bundled-skills.d.ts +41 -0
- package/node_modules/@comis/daemon/dist/wiring/seed-bundled-skills.js +84 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-agents.d.ts +182 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-agents.js +455 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-background-tasks.d.ts +28 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-background-tasks.js +30 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-channels-adapters.d.ts +42 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-channels-adapters.js +296 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-channels-media.d.ts +54 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-channels-media.js +332 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-channels.d.ts +161 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-channels.js +731 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-cross-session.d.ts +108 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-cross-session.js +732 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-delivery-mirror.d.ts +24 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-delivery-mirror.js +88 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-delivery-queue.d.ts +31 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-delivery-queue.js +132 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-delivery.d.ts +48 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-delivery.js +225 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway-routes.d.ts +48 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway-routes.js +262 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway-rpc.d.ts +31 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway-rpc.js +234 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway.d.ts +146 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway.js +690 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-health.d.ts +59 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-health.js +138 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-heartbeat.d.ts +63 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-heartbeat.js +111 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-logging.d.ts +38 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-logging.js +78 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-mcp.d.ts +47 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-mcp.js +182 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-media.d.ts +48 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-media.js +193 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-memory.d.ts +56 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-memory.js +214 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-monitoring.d.ts +38 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-monitoring.js +100 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-notifications.d.ts +43 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-notifications.js +53 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-observability.d.ts +48 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-observability.js +106 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-rpc-bridge.d.ts +34 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-rpc-bridge.js +52 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-schedulers.d.ts +84 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-schedulers.js +327 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-shutdown.d.ts +135 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-shutdown.js +308 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-task-extraction.d.ts +41 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-task-extraction.js +86 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-tools.d.ts +104 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-tools.js +440 -0
- package/node_modules/@comis/daemon/dist/wiring/startup-dry-run.d.ts +41 -0
- package/node_modules/@comis/daemon/dist/wiring/startup-dry-run.js +88 -0
- package/node_modules/@comis/daemon/package.json +50 -0
- package/node_modules/@comis/gateway/dist/acp/acp-server.d.ts +74 -0
- package/node_modules/@comis/gateway/dist/acp/acp-server.js +122 -0
- package/node_modules/@comis/gateway/dist/acp/acp-session-map.d.ts +39 -0
- package/node_modules/@comis/gateway/dist/acp/acp-session-map.js +50 -0
- package/node_modules/@comis/gateway/dist/acp/index.d.ts +4 -0
- package/node_modules/@comis/gateway/dist/acp/index.js +4 -0
- package/node_modules/@comis/gateway/dist/auth/mtls-verifier.d.ts +24 -0
- package/node_modules/@comis/gateway/dist/auth/mtls-verifier.js +70 -0
- package/node_modules/@comis/gateway/dist/auth/token-auth.d.ts +54 -0
- package/node_modules/@comis/gateway/dist/auth/token-auth.js +56 -0
- package/node_modules/@comis/gateway/dist/discovery/index.d.ts +1 -0
- package/node_modules/@comis/gateway/dist/discovery/index.js +3 -0
- package/node_modules/@comis/gateway/dist/discovery/mdns-advertiser.d.ts +45 -0
- package/node_modules/@comis/gateway/dist/discovery/mdns-advertiser.js +63 -0
- package/node_modules/@comis/gateway/dist/index.d.ts +19 -0
- package/node_modules/@comis/gateway/dist/index.js +30 -0
- package/node_modules/@comis/gateway/dist/openai/index.d.ts +8 -0
- package/node_modules/@comis/gateway/dist/openai/index.js +6 -0
- package/node_modules/@comis/gateway/dist/openai/openai-completions.d.ts +60 -0
- package/node_modules/@comis/gateway/dist/openai/openai-completions.js +236 -0
- package/node_modules/@comis/gateway/dist/openai/openai-embeddings.d.ts +68 -0
- package/node_modules/@comis/gateway/dist/openai/openai-embeddings.js +90 -0
- package/node_modules/@comis/gateway/dist/openai/openai-models.d.ts +37 -0
- package/node_modules/@comis/gateway/dist/openai/openai-models.js +59 -0
- package/node_modules/@comis/gateway/dist/openai/openai-types.d.ts +115 -0
- package/node_modules/@comis/gateway/dist/openai/openai-types.js +84 -0
- package/node_modules/@comis/gateway/dist/rate-limit/rate-limiter.d.ts +40 -0
- package/node_modules/@comis/gateway/dist/rate-limit/rate-limiter.js +83 -0
- package/node_modules/@comis/gateway/dist/responses/index.d.ts +4 -0
- package/node_modules/@comis/gateway/dist/responses/index.js +4 -0
- package/node_modules/@comis/gateway/dist/responses/responses-endpoint.d.ts +57 -0
- package/node_modules/@comis/gateway/dist/responses/responses-endpoint.js +293 -0
- package/node_modules/@comis/gateway/dist/responses/responses-types.d.ts +148 -0
- package/node_modules/@comis/gateway/dist/responses/responses-types.js +51 -0
- package/node_modules/@comis/gateway/dist/rpc/method-router.d.ts +77 -0
- package/node_modules/@comis/gateway/dist/rpc/method-router.js +223 -0
- package/node_modules/@comis/gateway/dist/rpc/rpc-adapters.d.ts +120 -0
- package/node_modules/@comis/gateway/dist/rpc/rpc-adapters.js +155 -0
- package/node_modules/@comis/gateway/dist/rpc/ws-handler.d.ts +121 -0
- package/node_modules/@comis/gateway/dist/rpc/ws-handler.js +313 -0
- package/node_modules/@comis/gateway/dist/server/hono-server.d.ts +90 -0
- package/node_modules/@comis/gateway/dist/server/hono-server.js +250 -0
- package/node_modules/@comis/gateway/dist/web/index.d.ts +7 -0
- package/node_modules/@comis/gateway/dist/web/index.js +6 -0
- package/node_modules/@comis/gateway/dist/web/media-routes.d.ts +30 -0
- package/node_modules/@comis/gateway/dist/web/media-routes.js +164 -0
- package/node_modules/@comis/gateway/dist/web/rest-api.d.ts +83 -0
- package/node_modules/@comis/gateway/dist/web/rest-api.js +300 -0
- package/node_modules/@comis/gateway/dist/web/sse-endpoint.d.ts +32 -0
- package/node_modules/@comis/gateway/dist/web/sse-endpoint.js +181 -0
- package/node_modules/@comis/gateway/dist/web/static-middleware.d.ts +13 -0
- package/node_modules/@comis/gateway/dist/web/static-middleware.js +59 -0
- package/node_modules/@comis/gateway/dist/webhook/hmac-verifier.d.ts +61 -0
- package/node_modules/@comis/gateway/dist/webhook/hmac-verifier.js +69 -0
- package/node_modules/@comis/gateway/dist/webhook/webhook-endpoint.d.ts +115 -0
- package/node_modules/@comis/gateway/dist/webhook/webhook-endpoint.js +186 -0
- package/node_modules/@comis/gateway/dist/webhook/webhook-mapping.d.ts +69 -0
- package/node_modules/@comis/gateway/dist/webhook/webhook-mapping.js +149 -0
- package/node_modules/@comis/gateway/dist/webhook/webhook-presets.d.ts +27 -0
- package/node_modules/@comis/gateway/dist/webhook/webhook-presets.js +57 -0
- package/node_modules/@comis/gateway/package.json +45 -0
- package/node_modules/@comis/infra/dist/index.d.ts +4 -0
- package/node_modules/@comis/infra/dist/index.js +5 -0
- package/node_modules/@comis/infra/dist/logging/index.d.ts +4 -0
- package/node_modules/@comis/infra/dist/logging/index.js +4 -0
- package/node_modules/@comis/infra/dist/logging/log-fields.d.ts +164 -0
- package/node_modules/@comis/infra/dist/logging/log-fields.js +19 -0
- package/node_modules/@comis/infra/dist/logging/logger.d.ts +39 -0
- package/node_modules/@comis/infra/dist/logging/logger.js +152 -0
- package/node_modules/@comis/infra/package.json +43 -0
- package/node_modules/@comis/memory/dist/compaction.d.ts +85 -0
- package/node_modules/@comis/memory/dist/compaction.js +181 -0
- package/node_modules/@comis/memory/dist/compaction.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/compaction.test.js +298 -0
- package/node_modules/@comis/memory/dist/context-schema.d.ts +24 -0
- package/node_modules/@comis/memory/dist/context-schema.js +161 -0
- package/node_modules/@comis/memory/dist/context-schema.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/context-schema.test.js +246 -0
- package/node_modules/@comis/memory/dist/context-store.d.ts +139 -0
- package/node_modules/@comis/memory/dist/context-store.js +450 -0
- package/node_modules/@comis/memory/dist/context-store.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/context-store.test.js +708 -0
- package/node_modules/@comis/memory/dist/credential-mapping-schema.d.ts +25 -0
- package/node_modules/@comis/memory/dist/credential-mapping-schema.js +40 -0
- package/node_modules/@comis/memory/dist/credential-mapping-schema.test.d.ts +7 -0
- package/node_modules/@comis/memory/dist/credential-mapping-schema.test.js +73 -0
- package/node_modules/@comis/memory/dist/credential-mapping-store.d.ts +22 -0
- package/node_modules/@comis/memory/dist/credential-mapping-store.js +98 -0
- package/node_modules/@comis/memory/dist/credential-mapping-store.test.d.ts +8 -0
- package/node_modules/@comis/memory/dist/credential-mapping-store.test.js +340 -0
- package/node_modules/@comis/memory/dist/delivery-mirror-adapter.d.ts +21 -0
- package/node_modules/@comis/memory/dist/delivery-mirror-adapter.js +112 -0
- package/node_modules/@comis/memory/dist/delivery-mirror-adapter.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/delivery-mirror-adapter.test.js +165 -0
- package/node_modules/@comis/memory/dist/delivery-queue-adapter.d.ts +21 -0
- package/node_modules/@comis/memory/dist/delivery-queue-adapter.js +197 -0
- package/node_modules/@comis/memory/dist/delivery-queue-adapter.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/delivery-queue-adapter.test.js +263 -0
- package/node_modules/@comis/memory/dist/embedding-batch-indexer.d.ts +50 -0
- package/node_modules/@comis/memory/dist/embedding-batch-indexer.js +104 -0
- package/node_modules/@comis/memory/dist/embedding-batch-indexer.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/embedding-batch-indexer.test.js +202 -0
- package/node_modules/@comis/memory/dist/embedding-cache-lru.d.ts +36 -0
- package/node_modules/@comis/memory/dist/embedding-cache-lru.js +100 -0
- package/node_modules/@comis/memory/dist/embedding-cache-lru.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/embedding-cache-lru.test.js +241 -0
- package/node_modules/@comis/memory/dist/embedding-cache-sqlite.d.ts +36 -0
- package/node_modules/@comis/memory/dist/embedding-cache-sqlite.js +247 -0
- package/node_modules/@comis/memory/dist/embedding-cache-sqlite.test.d.ts +8 -0
- package/node_modules/@comis/memory/dist/embedding-cache-sqlite.test.js +678 -0
- package/node_modules/@comis/memory/dist/embedding-cache.d.ts +36 -0
- package/node_modules/@comis/memory/dist/embedding-cache.js +94 -0
- package/node_modules/@comis/memory/dist/embedding-cache.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/embedding-cache.test.js +213 -0
- package/node_modules/@comis/memory/dist/embedding-fingerprint.d.ts +35 -0
- package/node_modules/@comis/memory/dist/embedding-fingerprint.js +75 -0
- package/node_modules/@comis/memory/dist/embedding-fingerprint.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/embedding-fingerprint.test.js +87 -0
- package/node_modules/@comis/memory/dist/embedding-hash.d.ts +9 -0
- package/node_modules/@comis/memory/dist/embedding-hash.js +14 -0
- package/node_modules/@comis/memory/dist/embedding-hash.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/embedding-hash.test.js +31 -0
- package/node_modules/@comis/memory/dist/embedding-integration.test.d.ts +8 -0
- package/node_modules/@comis/memory/dist/embedding-integration.test.js +232 -0
- package/node_modules/@comis/memory/dist/embedding-provider-factory.d.ts +40 -0
- package/node_modules/@comis/memory/dist/embedding-provider-factory.js +59 -0
- package/node_modules/@comis/memory/dist/embedding-provider-factory.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/embedding-provider-factory.test.js +176 -0
- package/node_modules/@comis/memory/dist/embedding-provider-local.d.ts +32 -0
- package/node_modules/@comis/memory/dist/embedding-provider-local.js +83 -0
- package/node_modules/@comis/memory/dist/embedding-provider-local.test.d.ts +8 -0
- package/node_modules/@comis/memory/dist/embedding-provider-local.test.js +76 -0
- package/node_modules/@comis/memory/dist/embedding-provider-openai.d.ts +29 -0
- package/node_modules/@comis/memory/dist/embedding-provider-openai.js +60 -0
- package/node_modules/@comis/memory/dist/embedding-provider-openai.test.d.ts +8 -0
- package/node_modules/@comis/memory/dist/embedding-provider-openai.test.js +100 -0
- package/node_modules/@comis/memory/dist/embedding-queue.d.ts +48 -0
- package/node_modules/@comis/memory/dist/embedding-queue.js +66 -0
- package/node_modules/@comis/memory/dist/embedding-queue.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/embedding-queue.test.js +236 -0
- package/node_modules/@comis/memory/dist/hybrid-search.d.ts +104 -0
- package/node_modules/@comis/memory/dist/hybrid-search.js +255 -0
- package/node_modules/@comis/memory/dist/hybrid-search.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/hybrid-search.test.js +476 -0
- package/node_modules/@comis/memory/dist/identity-link-store.d.ts +45 -0
- package/node_modules/@comis/memory/dist/identity-link-store.js +63 -0
- package/node_modules/@comis/memory/dist/identity-link-store.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/identity-link-store.test.js +88 -0
- package/node_modules/@comis/memory/dist/index.d.ts +36 -0
- package/node_modules/@comis/memory/dist/index.js +44 -0
- package/node_modules/@comis/memory/dist/memory-api.d.ts +85 -0
- package/node_modules/@comis/memory/dist/memory-api.js +225 -0
- package/node_modules/@comis/memory/dist/memory-api.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/memory-api.test.js +495 -0
- package/node_modules/@comis/memory/dist/memory-concurrency.test.d.ts +20 -0
- package/node_modules/@comis/memory/dist/memory-concurrency.test.js +222 -0
- package/node_modules/@comis/memory/dist/named-graph-schema.d.ts +23 -0
- package/node_modules/@comis/memory/dist/named-graph-schema.js +42 -0
- package/node_modules/@comis/memory/dist/named-graph-store.d.ts +65 -0
- package/node_modules/@comis/memory/dist/named-graph-store.js +111 -0
- package/node_modules/@comis/memory/dist/named-graph-store.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/named-graph-store.test.js +227 -0
- package/node_modules/@comis/memory/dist/observability-store.d.ts +184 -0
- package/node_modules/@comis/memory/dist/observability-store.js +387 -0
- package/node_modules/@comis/memory/dist/observability-store.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/observability-store.test.js +704 -0
- package/node_modules/@comis/memory/dist/row-mapper.d.ts +70 -0
- package/node_modules/@comis/memory/dist/row-mapper.js +159 -0
- package/node_modules/@comis/memory/dist/row-mapper.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/row-mapper.test.js +409 -0
- package/node_modules/@comis/memory/dist/schema.d.ts +31 -0
- package/node_modules/@comis/memory/dist/schema.js +358 -0
- package/node_modules/@comis/memory/dist/schema.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/schema.test.js +240 -0
- package/node_modules/@comis/memory/dist/secret-store-schema.d.ts +43 -0
- package/node_modules/@comis/memory/dist/secret-store-schema.js +92 -0
- package/node_modules/@comis/memory/dist/secret-store-schema.test.d.ts +7 -0
- package/node_modules/@comis/memory/dist/secret-store-schema.test.js +90 -0
- package/node_modules/@comis/memory/dist/session-store.d.ts +93 -0
- package/node_modules/@comis/memory/dist/session-store.js +131 -0
- package/node_modules/@comis/memory/dist/session-store.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/session-store.test.js +262 -0
- package/node_modules/@comis/memory/dist/setup-secrets.d.ts +35 -0
- package/node_modules/@comis/memory/dist/setup-secrets.js +45 -0
- package/node_modules/@comis/memory/dist/setup-secrets.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/setup-secrets.test.js +140 -0
- package/node_modules/@comis/memory/dist/sqlite-adapter-base.d.ts +39 -0
- package/node_modules/@comis/memory/dist/sqlite-adapter-base.js +72 -0
- package/node_modules/@comis/memory/dist/sqlite-memory-adapter.d.ts +52 -0
- package/node_modules/@comis/memory/dist/sqlite-memory-adapter.js +378 -0
- package/node_modules/@comis/memory/dist/sqlite-memory-adapter.test.d.ts +1 -0
- package/node_modules/@comis/memory/dist/sqlite-memory-adapter.test.js +888 -0
- package/node_modules/@comis/memory/dist/sqlite-secret-store.d.ts +32 -0
- package/node_modules/@comis/memory/dist/sqlite-secret-store.js +153 -0
- package/node_modules/@comis/memory/dist/sqlite-secret-store.test.d.ts +8 -0
- package/node_modules/@comis/memory/dist/sqlite-secret-store.test.js +245 -0
- package/node_modules/@comis/memory/dist/types.d.ts +192 -0
- package/node_modules/@comis/memory/dist/types.js +8 -0
- package/node_modules/@comis/memory/package.json +45 -0
- package/node_modules/@comis/scheduler/dist/config/scheduler-config.d.ts +9 -0
- package/node_modules/@comis/scheduler/dist/config/scheduler-config.js +9 -0
- package/node_modules/@comis/scheduler/dist/cron/cron-expression.d.ts +12 -0
- package/node_modules/@comis/scheduler/dist/cron/cron-expression.js +57 -0
- package/node_modules/@comis/scheduler/dist/cron/cron-scheduler.d.ts +47 -0
- package/node_modules/@comis/scheduler/dist/cron/cron-scheduler.js +214 -0
- package/node_modules/@comis/scheduler/dist/cron/cron-store.d.ts +33 -0
- package/node_modules/@comis/scheduler/dist/cron/cron-store.js +155 -0
- package/node_modules/@comis/scheduler/dist/cron/cron-types.d.ts +161 -0
- package/node_modules/@comis/scheduler/dist/cron/cron-types.js +113 -0
- package/node_modules/@comis/scheduler/dist/cron/index.d.ts +6 -0
- package/node_modules/@comis/scheduler/dist/cron/index.js +8 -0
- package/node_modules/@comis/scheduler/dist/execution/execution-lock.d.ts +32 -0
- package/node_modules/@comis/scheduler/dist/execution/execution-lock.js +86 -0
- package/node_modules/@comis/scheduler/dist/execution/execution-tracker.d.ts +68 -0
- package/node_modules/@comis/scheduler/dist/execution/execution-tracker.js +124 -0
- package/node_modules/@comis/scheduler/dist/execution/index.d.ts +2 -0
- package/node_modules/@comis/scheduler/dist/execution/index.js +4 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/agent-heartbeat-source.d.ts +117 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/agent-heartbeat-source.js +226 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/cron-delivery-policy.d.ts +28 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/cron-delivery-policy.js +33 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/cron-event-prompt.d.ts +21 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/cron-event-prompt.js +25 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/delivery-bridge.d.ts +61 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/delivery-bridge.js +110 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/duplicate-detector.d.ts +31 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/duplicate-detector.js +56 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/file-gate.d.ts +22 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/file-gate.js +29 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/heartbeat-config.d.ts +27 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/heartbeat-config.js +19 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/heartbeat-runner.d.ts +75 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/heartbeat-runner.js +136 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/heartbeat-source.d.ts +34 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/heartbeat-source.js +9 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/index.d.ts +32 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/index.js +34 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/per-agent-heartbeat-runner.d.ts +52 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/per-agent-heartbeat-runner.js +227 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/prompt-builder.d.ts +43 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/prompt-builder.js +92 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/quiet-hours.d.ts +41 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/quiet-hours.js +75 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/relevance-filter.d.ts +49 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/relevance-filter.js +55 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/resilience-tracker.d.ts +53 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/resilience-tracker.js +81 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/response-cache.d.ts +42 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/response-cache.js +61 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/response-processor.d.ts +74 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/response-processor.js +120 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/wake-coalescer.d.ts +21 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/wake-coalescer.js +135 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/wake-types.d.ts +44 -0
- package/node_modules/@comis/scheduler/dist/heartbeat/wake-types.js +22 -0
- package/node_modules/@comis/scheduler/dist/index.d.ts +43 -0
- package/node_modules/@comis/scheduler/dist/index.js +41 -0
- package/node_modules/@comis/scheduler/dist/shared-types.d.ts +12 -0
- package/node_modules/@comis/scheduler/dist/shared-types.js +1 -0
- package/node_modules/@comis/scheduler/dist/system-events/index.d.ts +4 -0
- package/node_modules/@comis/scheduler/dist/system-events/index.js +6 -0
- package/node_modules/@comis/scheduler/dist/system-events/system-event-queue.d.ts +33 -0
- package/node_modules/@comis/scheduler/dist/system-events/system-event-queue.js +63 -0
- package/node_modules/@comis/scheduler/dist/system-events/system-event-types.d.ts +14 -0
- package/node_modules/@comis/scheduler/dist/system-events/system-event-types.js +14 -0
- package/node_modules/@comis/scheduler/dist/tasks/index.d.ts +8 -0
- package/node_modules/@comis/scheduler/dist/tasks/index.js +6 -0
- package/node_modules/@comis/scheduler/dist/tasks/task-extractor.d.ts +60 -0
- package/node_modules/@comis/scheduler/dist/tasks/task-extractor.js +90 -0
- package/node_modules/@comis/scheduler/dist/tasks/task-priority.d.ts +38 -0
- package/node_modules/@comis/scheduler/dist/tasks/task-priority.js +65 -0
- package/node_modules/@comis/scheduler/dist/tasks/task-store.d.ts +30 -0
- package/node_modules/@comis/scheduler/dist/tasks/task-store.js +73 -0
- package/node_modules/@comis/scheduler/dist/tasks/task-types.d.ts +92 -0
- package/node_modules/@comis/scheduler/dist/tasks/task-types.js +50 -0
- package/node_modules/@comis/scheduler/package.json +43 -0
- package/node_modules/@comis/shared/dist/abort.d.ts +16 -0
- package/node_modules/@comis/shared/dist/abort.js +24 -0
- package/node_modules/@comis/shared/dist/abort.test.d.ts +1 -0
- package/node_modules/@comis/shared/dist/abort.test.js +71 -0
- package/node_modules/@comis/shared/dist/index.d.ts +7 -0
- package/node_modules/@comis/shared/dist/index.js +7 -0
- package/node_modules/@comis/shared/dist/result.d.ts +38 -0
- package/node_modules/@comis/shared/dist/result.js +52 -0
- package/node_modules/@comis/shared/dist/result.test.d.ts +1 -0
- package/node_modules/@comis/shared/dist/result.test.js +178 -0
- package/node_modules/@comis/shared/dist/suppress-error.d.ts +14 -0
- package/node_modules/@comis/shared/dist/suppress-error.js +25 -0
- package/node_modules/@comis/shared/dist/suppress-error.test.d.ts +1 -0
- package/node_modules/@comis/shared/dist/suppress-error.test.js +50 -0
- package/node_modules/@comis/shared/dist/timeout.d.ts +31 -0
- package/node_modules/@comis/shared/dist/timeout.js +50 -0
- package/node_modules/@comis/shared/dist/timeout.test.d.ts +1 -0
- package/node_modules/@comis/shared/dist/timeout.test.js +75 -0
- package/node_modules/@comis/shared/dist/ttl-cache.d.ts +41 -0
- package/node_modules/@comis/shared/dist/ttl-cache.js +73 -0
- package/node_modules/@comis/shared/dist/ttl-cache.test.d.ts +1 -0
- package/node_modules/@comis/shared/dist/ttl-cache.test.js +81 -0
- package/node_modules/@comis/shared/package.json +43 -0
- package/node_modules/@comis/skills/dist/audit/skill-audit.d.ts +36 -0
- package/node_modules/@comis/skills/dist/audit/skill-audit.js +72 -0
- package/node_modules/@comis/skills/dist/bridge/credential-injector.d.ts +90 -0
- package/node_modules/@comis/skills/dist/bridge/credential-injector.js +235 -0
- package/node_modules/@comis/skills/dist/bridge/json-truncate.d.ts +33 -0
- package/node_modules/@comis/skills/dist/bridge/json-truncate.js +185 -0
- package/node_modules/@comis/skills/dist/bridge/mcp-tool-bridge.d.ts +81 -0
- package/node_modules/@comis/skills/dist/bridge/mcp-tool-bridge.js +260 -0
- package/node_modules/@comis/skills/dist/bridge/tool-audit.d.ts +25 -0
- package/node_modules/@comis/skills/dist/bridge/tool-audit.js +78 -0
- package/node_modules/@comis/skills/dist/bridge/tool-bridge.d.ts +91 -0
- package/node_modules/@comis/skills/dist/bridge/tool-bridge.js +136 -0
- package/node_modules/@comis/skills/dist/bridge/tool-definition-adapter.d.ts +33 -0
- package/node_modules/@comis/skills/dist/bridge/tool-definition-adapter.js +56 -0
- package/node_modules/@comis/skills/dist/bridge/tool-metadata-enforcement.d.ts +45 -0
- package/node_modules/@comis/skills/dist/bridge/tool-metadata-enforcement.js +101 -0
- package/node_modules/@comis/skills/dist/bridge/tool-metadata-registry.d.ts +13 -0
- package/node_modules/@comis/skills/dist/bridge/tool-metadata-registry.js +350 -0
- package/node_modules/@comis/skills/dist/bridge/tool-output-schemas.d.ts +17 -0
- package/node_modules/@comis/skills/dist/bridge/tool-output-schemas.js +125 -0
- package/node_modules/@comis/skills/dist/bridge/tool-parallelism-metadata.d.ts +14 -0
- package/node_modules/@comis/skills/dist/bridge/tool-parallelism-metadata.js +92 -0
- package/node_modules/@comis/skills/dist/bridge/tool-result-caps.d.ts +14 -0
- package/node_modules/@comis/skills/dist/bridge/tool-result-caps.js +36 -0
- package/node_modules/@comis/skills/dist/bridge/tool-search-hints.d.ts +15 -0
- package/node_modules/@comis/skills/dist/bridge/tool-search-hints.js +68 -0
- package/node_modules/@comis/skills/dist/bridge/tool-validators.d.ts +11 -0
- package/node_modules/@comis/skills/dist/bridge/tool-validators.js +105 -0
- package/node_modules/@comis/skills/dist/browser/browser-service.d.ts +105 -0
- package/node_modules/@comis/skills/dist/browser/browser-service.js +192 -0
- package/node_modules/@comis/skills/dist/browser/cdp.d.ts +60 -0
- package/node_modules/@comis/skills/dist/browser/cdp.js +91 -0
- package/node_modules/@comis/skills/dist/browser/chrome-detection.d.ts +45 -0
- package/node_modules/@comis/skills/dist/browser/chrome-detection.js +256 -0
- package/node_modules/@comis/skills/dist/browser/config.d.ts +45 -0
- package/node_modules/@comis/skills/dist/browser/config.js +49 -0
- package/node_modules/@comis/skills/dist/browser/constants.d.ts +30 -0
- package/node_modules/@comis/skills/dist/browser/constants.js +31 -0
- package/node_modules/@comis/skills/dist/browser/downloads.d.ts +63 -0
- package/node_modules/@comis/skills/dist/browser/downloads.js +135 -0
- package/node_modules/@comis/skills/dist/browser/index.d.ts +24 -0
- package/node_modules/@comis/skills/dist/browser/index.js +15 -0
- package/node_modules/@comis/skills/dist/browser/playwright-actions.d.ts +78 -0
- package/node_modules/@comis/skills/dist/browser/playwright-actions.js +232 -0
- package/node_modules/@comis/skills/dist/browser/playwright-session.d.ts +120 -0
- package/node_modules/@comis/skills/dist/browser/playwright-session.js +341 -0
- package/node_modules/@comis/skills/dist/browser/playwright-snapshots.d.ts +61 -0
- package/node_modules/@comis/skills/dist/browser/playwright-snapshots.js +287 -0
- package/node_modules/@comis/skills/dist/browser/profile-decoration.d.ts +30 -0
- package/node_modules/@comis/skills/dist/browser/profile-decoration.js +63 -0
- package/node_modules/@comis/skills/dist/browser/profiles-service.d.ts +51 -0
- package/node_modules/@comis/skills/dist/browser/profiles-service.js +137 -0
- package/node_modules/@comis/skills/dist/browser/profiles.d.ts +42 -0
- package/node_modules/@comis/skills/dist/browser/profiles.js +70 -0
- package/node_modules/@comis/skills/dist/browser/screenshot-normalizer.d.ts +63 -0
- package/node_modules/@comis/skills/dist/browser/screenshot-normalizer.js +124 -0
- package/node_modules/@comis/skills/dist/browser/screenshots.d.ts +51 -0
- package/node_modules/@comis/skills/dist/browser/screenshots.js +65 -0
- package/node_modules/@comis/skills/dist/browser/smart-waits.d.ts +44 -0
- package/node_modules/@comis/skills/dist/browser/smart-waits.js +74 -0
- package/node_modules/@comis/skills/dist/browser/viewport.d.ts +45 -0
- package/node_modules/@comis/skills/dist/browser/viewport.js +73 -0
- package/node_modules/@comis/skills/dist/builtin/exec-security.d.ts +204 -0
- package/node_modules/@comis/skills/dist/builtin/exec-security.js +988 -0
- package/node_modules/@comis/skills/dist/builtin/exec-tool.d.ts +83 -0
- package/node_modules/@comis/skills/dist/builtin/exec-tool.js +886 -0
- package/node_modules/@comis/skills/dist/builtin/file/apply-patch-parser.d.ts +49 -0
- package/node_modules/@comis/skills/dist/builtin/file/apply-patch-parser.js +232 -0
- package/node_modules/@comis/skills/dist/builtin/file/apply-patch-similarity.d.ts +25 -0
- package/node_modules/@comis/skills/dist/builtin/file/apply-patch-similarity.js +94 -0
- package/node_modules/@comis/skills/dist/builtin/file/apply-patch-tool.d.ts +16 -0
- package/node_modules/@comis/skills/dist/builtin/file/apply-patch-tool.js +418 -0
- package/node_modules/@comis/skills/dist/builtin/file/file-state-tracker.d.ts +102 -0
- package/node_modules/@comis/skills/dist/builtin/file/file-state-tracker.js +138 -0
- package/node_modules/@comis/skills/dist/builtin/file/file-tools.d.ts +31 -0
- package/node_modules/@comis/skills/dist/builtin/file/file-tools.js +67 -0
- package/node_modules/@comis/skills/dist/builtin/file/find-sort-wrapper.d.ts +22 -0
- package/node_modules/@comis/skills/dist/builtin/file/find-sort-wrapper.js +95 -0
- package/node_modules/@comis/skills/dist/builtin/file/grep-output-mode-wrapper.d.ts +24 -0
- package/node_modules/@comis/skills/dist/builtin/file/grep-output-mode-wrapper.js +167 -0
- package/node_modules/@comis/skills/dist/builtin/file/path-suggest.d.ts +64 -0
- package/node_modules/@comis/skills/dist/builtin/file/path-suggest.js +208 -0
- package/node_modules/@comis/skills/dist/builtin/file/safe-path-wrapper.d.ts +26 -0
- package/node_modules/@comis/skills/dist/builtin/file/safe-path-wrapper.js +23 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/edit-tool.d.ts +40 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/edit-tool.js +308 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/find-tool.d.ts +36 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/find-tool.js +313 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/grep-tool.d.ts +46 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/grep-tool.js +424 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/ls-tool.d.ts +34 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/ls-tool.js +166 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/notebook-edit-tool.d.ts +32 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/notebook-edit-tool.js +195 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/read-tool.d.ts +50 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/read-tool.js +427 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/shared/edit-diff.d.ts +109 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/shared/edit-diff.js +575 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/shared/file-encoding.d.ts +63 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/shared/file-encoding.js +130 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/shared/file-mutation-queue.d.ts +24 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/shared/file-mutation-queue.js +58 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/shared/git-diff.d.ts +20 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/shared/git-diff.js +34 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/shared/notebook-edit-ops.d.ts +47 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/shared/notebook-edit-ops.js +89 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/shared/notebook-utils.d.ts +32 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/shared/notebook-utils.js +112 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/write-tool.d.ts +36 -0
- package/node_modules/@comis/skills/dist/builtin/file-tools/write-tool.js +283 -0
- package/node_modules/@comis/skills/dist/builtin/output-cleaner.d.ts +33 -0
- package/node_modules/@comis/skills/dist/builtin/output-cleaner.js +107 -0
- package/node_modules/@comis/skills/dist/builtin/platform/admin-manage-factory.d.ts +70 -0
- package/node_modules/@comis/skills/dist/builtin/platform/admin-manage-factory.js +95 -0
- package/node_modules/@comis/skills/dist/builtin/platform/agents-list-tool.d.ts +19 -0
- package/node_modules/@comis/skills/dist/builtin/platform/agents-list-tool.js +39 -0
- package/node_modules/@comis/skills/dist/builtin/platform/agents-manage-tool.d.ts +69 -0
- package/node_modules/@comis/skills/dist/builtin/platform/agents-manage-tool.js +196 -0
- package/node_modules/@comis/skills/dist/builtin/platform/background-tasks-tool.d.ts +50 -0
- package/node_modules/@comis/skills/dist/builtin/platform/background-tasks-tool.js +157 -0
- package/node_modules/@comis/skills/dist/builtin/platform/browser-tool-schema.d.ts +87 -0
- package/node_modules/@comis/skills/dist/builtin/platform/browser-tool-schema.js +123 -0
- package/node_modules/@comis/skills/dist/builtin/platform/browser-tool.d.ts +43 -0
- package/node_modules/@comis/skills/dist/builtin/platform/browser-tool.js +98 -0
- package/node_modules/@comis/skills/dist/builtin/platform/channels-manage-tool.d.ts +36 -0
- package/node_modules/@comis/skills/dist/builtin/platform/channels-manage-tool.js +140 -0
- package/node_modules/@comis/skills/dist/builtin/platform/cron-tool.d.ts +48 -0
- package/node_modules/@comis/skills/dist/builtin/platform/cron-tool.js +172 -0
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-expand-tool.d.ts +24 -0
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-expand-tool.js +48 -0
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-inspect-tool.d.ts +22 -0
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-inspect-tool.js +47 -0
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-recall-tool.d.ts +26 -0
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-recall-tool.js +62 -0
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-search-tool.d.ts +26 -0
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-search-tool.js +52 -0
- package/node_modules/@comis/skills/dist/builtin/platform/describe-video-tool.d.ts +23 -0
- package/node_modules/@comis/skills/dist/builtin/platform/describe-video-tool.js +53 -0
- package/node_modules/@comis/skills/dist/builtin/platform/discord-action-tool.d.ts +29 -0
- package/node_modules/@comis/skills/dist/builtin/platform/discord-action-tool.js +90 -0
- package/node_modules/@comis/skills/dist/builtin/platform/extract-document-tool.d.ts +23 -0
- package/node_modules/@comis/skills/dist/builtin/platform/extract-document-tool.js +53 -0
- package/node_modules/@comis/skills/dist/builtin/platform/fts5-sanitizer.d.ts +27 -0
- package/node_modules/@comis/skills/dist/builtin/platform/fts5-sanitizer.js +78 -0
- package/node_modules/@comis/skills/dist/builtin/platform/gateway-tool.d.ts +55 -0
- package/node_modules/@comis/skills/dist/builtin/platform/gateway-tool.js +255 -0
- package/node_modules/@comis/skills/dist/builtin/platform/heartbeat-manage-tool.d.ts +36 -0
- package/node_modules/@comis/skills/dist/builtin/platform/heartbeat-manage-tool.js +139 -0
- package/node_modules/@comis/skills/dist/builtin/platform/image-generate-tool.d.ts +26 -0
- package/node_modules/@comis/skills/dist/builtin/platform/image-generate-tool.js +41 -0
- package/node_modules/@comis/skills/dist/builtin/platform/image-tool.d.ts +27 -0
- package/node_modules/@comis/skills/dist/builtin/platform/image-tool.js +73 -0
- package/node_modules/@comis/skills/dist/builtin/platform/index.d.ts +60 -0
- package/node_modules/@comis/skills/dist/builtin/platform/index.js +74 -0
- package/node_modules/@comis/skills/dist/builtin/platform/mcp-manage-tool.d.ts +23 -0
- package/node_modules/@comis/skills/dist/builtin/platform/mcp-manage-tool.js +109 -0
- package/node_modules/@comis/skills/dist/builtin/platform/memory-get-tool.d.ts +27 -0
- package/node_modules/@comis/skills/dist/builtin/platform/memory-get-tool.js +55 -0
- package/node_modules/@comis/skills/dist/builtin/platform/memory-manage-tool.d.ts +41 -0
- package/node_modules/@comis/skills/dist/builtin/platform/memory-manage-tool.js +183 -0
- package/node_modules/@comis/skills/dist/builtin/platform/memory-search-tool.d.ts +23 -0
- package/node_modules/@comis/skills/dist/builtin/platform/memory-search-tool.js +44 -0
- package/node_modules/@comis/skills/dist/builtin/platform/memory-store-tool.d.ts +22 -0
- package/node_modules/@comis/skills/dist/builtin/platform/memory-store-tool.js +66 -0
- package/node_modules/@comis/skills/dist/builtin/platform/message-tool.d.ts +49 -0
- package/node_modules/@comis/skills/dist/builtin/platform/message-tool.js +190 -0
- package/node_modules/@comis/skills/dist/builtin/platform/messaging-factory.d.ts +75 -0
- package/node_modules/@comis/skills/dist/builtin/platform/messaging-factory.js +83 -0
- package/node_modules/@comis/skills/dist/builtin/platform/models-manage-tool.d.ts +32 -0
- package/node_modules/@comis/skills/dist/builtin/platform/models-manage-tool.js +76 -0
- package/node_modules/@comis/skills/dist/builtin/platform/notify-tool.d.ts +28 -0
- package/node_modules/@comis/skills/dist/builtin/platform/notify-tool.js +54 -0
- package/node_modules/@comis/skills/dist/builtin/platform/obs-query-tool.d.ts +25 -0
- package/node_modules/@comis/skills/dist/builtin/platform/obs-query-tool.js +179 -0
- package/node_modules/@comis/skills/dist/builtin/platform/pipeline-tool.d.ts +62 -0
- package/node_modules/@comis/skills/dist/builtin/platform/pipeline-tool.js +460 -0
- package/node_modules/@comis/skills/dist/builtin/platform/platform-action-tool.d.ts +60 -0
- package/node_modules/@comis/skills/dist/builtin/platform/platform-action-tool.js +70 -0
- package/node_modules/@comis/skills/dist/builtin/platform/session-search-tool.d.ts +32 -0
- package/node_modules/@comis/skills/dist/builtin/platform/session-search-tool.js +76 -0
- package/node_modules/@comis/skills/dist/builtin/platform/session-status-tool.d.ts +21 -0
- package/node_modules/@comis/skills/dist/builtin/platform/session-status-tool.js +43 -0
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-history-tool.d.ts +23 -0
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-history-tool.js +51 -0
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-list-tool.d.ts +22 -0
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-list-tool.js +51 -0
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-manage-tool.d.ts +33 -0
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-manage-tool.js +82 -0
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-send-tool.d.ts +29 -0
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-send-tool.js +58 -0
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-spawn-tool.d.ts +38 -0
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-spawn-tool.js +84 -0
- package/node_modules/@comis/skills/dist/builtin/platform/skills-manage-tool.d.ts +38 -0
- package/node_modules/@comis/skills/dist/builtin/platform/skills-manage-tool.js +107 -0
- package/node_modules/@comis/skills/dist/builtin/platform/slack-action-tool.d.ts +23 -0
- package/node_modules/@comis/skills/dist/builtin/platform/slack-action-tool.js +77 -0
- package/node_modules/@comis/skills/dist/builtin/platform/subagents-tool.d.ts +26 -0
- package/node_modules/@comis/skills/dist/builtin/platform/subagents-tool.js +100 -0
- package/node_modules/@comis/skills/dist/builtin/platform/telegram-action-tool.d.ts +21 -0
- package/node_modules/@comis/skills/dist/builtin/platform/telegram-action-tool.js +72 -0
- package/node_modules/@comis/skills/dist/builtin/platform/tokens-manage-tool.d.ts +33 -0
- package/node_modules/@comis/skills/dist/builtin/platform/tokens-manage-tool.js +87 -0
- package/node_modules/@comis/skills/dist/builtin/platform/tool-helpers.d.ts +163 -0
- package/node_modules/@comis/skills/dist/builtin/platform/tool-helpers.js +237 -0
- package/node_modules/@comis/skills/dist/builtin/platform/transcribe-audio-tool.d.ts +23 -0
- package/node_modules/@comis/skills/dist/builtin/platform/transcribe-audio-tool.js +53 -0
- package/node_modules/@comis/skills/dist/builtin/platform/tts-tool.d.ts +25 -0
- package/node_modules/@comis/skills/dist/builtin/platform/tts-tool.js +61 -0
- package/node_modules/@comis/skills/dist/builtin/platform/unified-context-tool.d.ts +34 -0
- package/node_modules/@comis/skills/dist/builtin/platform/unified-context-tool.js +106 -0
- package/node_modules/@comis/skills/dist/builtin/platform/unified-memory-tool.d.ts +44 -0
- package/node_modules/@comis/skills/dist/builtin/platform/unified-memory-tool.js +230 -0
- package/node_modules/@comis/skills/dist/builtin/platform/unified-session-tool.d.ts +32 -0
- package/node_modules/@comis/skills/dist/builtin/platform/unified-session-tool.js +130 -0
- package/node_modules/@comis/skills/dist/builtin/platform/whatsapp-action-tool.d.ts +24 -0
- package/node_modules/@comis/skills/dist/builtin/platform/whatsapp-action-tool.js +79 -0
- package/node_modules/@comis/skills/dist/builtin/process-registry.d.ts +74 -0
- package/node_modules/@comis/skills/dist/builtin/process-registry.js +213 -0
- package/node_modules/@comis/skills/dist/builtin/process-tool.d.ts +35 -0
- package/node_modules/@comis/skills/dist/builtin/process-tool.js +104 -0
- package/node_modules/@comis/skills/dist/builtin/sandbox/bwrap-provider.d.ts +19 -0
- package/node_modules/@comis/skills/dist/builtin/sandbox/bwrap-provider.js +181 -0
- package/node_modules/@comis/skills/dist/builtin/sandbox/detect-provider.d.ts +20 -0
- package/node_modules/@comis/skills/dist/builtin/sandbox/detect-provider.js +41 -0
- package/node_modules/@comis/skills/dist/builtin/sandbox/sandbox-exec-provider.d.ts +15 -0
- package/node_modules/@comis/skills/dist/builtin/sandbox/sandbox-exec-provider.js +201 -0
- package/node_modules/@comis/skills/dist/builtin/sandbox/types.d.ts +46 -0
- package/node_modules/@comis/skills/dist/builtin/sandbox/types.js +12 -0
- package/node_modules/@comis/skills/dist/builtin/search-provider.d.ts +81 -0
- package/node_modules/@comis/skills/dist/builtin/search-provider.js +45 -0
- package/node_modules/@comis/skills/dist/builtin/task-plan-tool.d.ts +25 -0
- package/node_modules/@comis/skills/dist/builtin/task-plan-tool.js +67 -0
- package/node_modules/@comis/skills/dist/builtin/tool-provisioner.d.ts +29 -0
- package/node_modules/@comis/skills/dist/builtin/tool-provisioner.js +227 -0
- package/node_modules/@comis/skills/dist/builtin/tool-source-profiles.d.ts +48 -0
- package/node_modules/@comis/skills/dist/builtin/tool-source-profiles.js +103 -0
- package/node_modules/@comis/skills/dist/builtin/truncate.d.ts +59 -0
- package/node_modules/@comis/skills/dist/builtin/truncate.js +125 -0
- package/node_modules/@comis/skills/dist/builtin/web-fetch-tool.d.ts +77 -0
- package/node_modules/@comis/skills/dist/builtin/web-fetch-tool.js +528 -0
- package/node_modules/@comis/skills/dist/builtin/web-fetch-utils.d.ts +67 -0
- package/node_modules/@comis/skills/dist/builtin/web-fetch-utils.js +268 -0
- package/node_modules/@comis/skills/dist/builtin/web-fetch-visibility.d.ts +35 -0
- package/node_modules/@comis/skills/dist/builtin/web-fetch-visibility.js +190 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-brave.d.ts +35 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-brave.js +147 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-duckduckgo.d.ts +43 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-duckduckgo.js +192 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-exa.d.ts +32 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-exa.js +84 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-grok.d.ts +50 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-grok.js +87 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-jina.d.ts +29 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-jina.js +94 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-perplexity.d.ts +45 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-perplexity.js +115 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-searxng.d.ts +31 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-searxng.js +100 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-tavily.d.ts +31 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-tavily.js +87 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-tool.d.ts +174 -0
- package/node_modules/@comis/skills/dist/builtin/web-search-tool.js +666 -0
- package/node_modules/@comis/skills/dist/builtin/web-shared.d.ts +60 -0
- package/node_modules/@comis/skills/dist/builtin/web-shared.js +127 -0
- package/node_modules/@comis/skills/dist/index.d.ts +62 -0
- package/node_modules/@comis/skills/dist/index.js +113 -0
- package/node_modules/@comis/skills/dist/integrations/deepgram-stt-adapter.d.ts +27 -0
- package/node_modules/@comis/skills/dist/integrations/deepgram-stt-adapter.js +81 -0
- package/node_modules/@comis/skills/dist/integrations/document/binary-detector.d.ts +28 -0
- package/node_modules/@comis/skills/dist/integrations/document/binary-detector.js +59 -0
- package/node_modules/@comis/skills/dist/integrations/document/composite-extractor.d.ts +22 -0
- package/node_modules/@comis/skills/dist/integrations/document/composite-extractor.js +34 -0
- package/node_modules/@comis/skills/dist/integrations/document/file-classifier.d.ts +25 -0
- package/node_modules/@comis/skills/dist/integrations/document/file-classifier.js +60 -0
- package/node_modules/@comis/skills/dist/integrations/document/file-extractor.d.ts +41 -0
- package/node_modules/@comis/skills/dist/integrations/document/file-extractor.js +148 -0
- package/node_modules/@comis/skills/dist/integrations/document/pdf-extractor.d.ts +50 -0
- package/node_modules/@comis/skills/dist/integrations/document/pdf-extractor.js +214 -0
- package/node_modules/@comis/skills/dist/integrations/document/pdf-page-renderer.d.ts +41 -0
- package/node_modules/@comis/skills/dist/integrations/document/pdf-page-renderer.js +78 -0
- package/node_modules/@comis/skills/dist/integrations/document/text-decoder.d.ts +21 -0
- package/node_modules/@comis/skills/dist/integrations/document/text-decoder.js +53 -0
- package/node_modules/@comis/skills/dist/integrations/document/xml-block.d.ts +59 -0
- package/node_modules/@comis/skills/dist/integrations/document/xml-block.js +80 -0
- package/node_modules/@comis/skills/dist/integrations/edge-tts-adapter.d.ts +15 -0
- package/node_modules/@comis/skills/dist/integrations/edge-tts-adapter.js +42 -0
- package/node_modules/@comis/skills/dist/integrations/elevenlabs-tts-adapter.d.ts +19 -0
- package/node_modules/@comis/skills/dist/integrations/elevenlabs-tts-adapter.js +65 -0
- package/node_modules/@comis/skills/dist/integrations/groq-stt-adapter.d.ts +23 -0
- package/node_modules/@comis/skills/dist/integrations/groq-stt-adapter.js +76 -0
- package/node_modules/@comis/skills/dist/integrations/image-gen/fal-adapter.d.ts +11 -0
- package/node_modules/@comis/skills/dist/integrations/image-gen/fal-adapter.js +39 -0
- package/node_modules/@comis/skills/dist/integrations/image-gen/image-gen-factory.d.ts +13 -0
- package/node_modules/@comis/skills/dist/integrations/image-gen/image-gen-factory.js +31 -0
- package/node_modules/@comis/skills/dist/integrations/image-gen/index.d.ts +5 -0
- package/node_modules/@comis/skills/dist/integrations/image-gen/index.js +5 -0
- package/node_modules/@comis/skills/dist/integrations/image-gen/openai-adapter.d.ts +11 -0
- package/node_modules/@comis/skills/dist/integrations/image-gen/openai-adapter.js +32 -0
- package/node_modules/@comis/skills/dist/integrations/image-gen/rate-limiter.d.ts +22 -0
- package/node_modules/@comis/skills/dist/integrations/image-gen/rate-limiter.js +32 -0
- package/node_modules/@comis/skills/dist/integrations/image-sanitizer.d.ts +39 -0
- package/node_modules/@comis/skills/dist/integrations/image-sanitizer.js +121 -0
- package/node_modules/@comis/skills/dist/integrations/link/link-detector.d.ts +26 -0
- package/node_modules/@comis/skills/dist/integrations/link/link-detector.js +114 -0
- package/node_modules/@comis/skills/dist/integrations/link/link-fetcher.d.ts +43 -0
- package/node_modules/@comis/skills/dist/integrations/link/link-fetcher.js +74 -0
- package/node_modules/@comis/skills/dist/integrations/link/link-formatter.d.ts +39 -0
- package/node_modules/@comis/skills/dist/integrations/link/link-formatter.js +55 -0
- package/node_modules/@comis/skills/dist/integrations/link/link-runner.d.ts +56 -0
- package/node_modules/@comis/skills/dist/integrations/link/link-runner.js +77 -0
- package/node_modules/@comis/skills/dist/integrations/mcp-client.d.ts +163 -0
- package/node_modules/@comis/skills/dist/integrations/mcp-client.js +705 -0
- package/node_modules/@comis/skills/dist/integrations/mcp-result-sanitizer.d.ts +21 -0
- package/node_modules/@comis/skills/dist/integrations/mcp-result-sanitizer.js +44 -0
- package/node_modules/@comis/skills/dist/integrations/mcp-tool-bridge.d.ts +75 -0
- package/node_modules/@comis/skills/dist/integrations/mcp-tool-bridge.js +235 -0
- package/node_modules/@comis/skills/dist/integrations/media-adapter-shared.d.ts +16 -0
- package/node_modules/@comis/skills/dist/integrations/media-adapter-shared.js +35 -0
- package/node_modules/@comis/skills/dist/integrations/media-handler-audio.d.ts +33 -0
- package/node_modules/@comis/skills/dist/integrations/media-handler-audio.js +62 -0
- package/node_modules/@comis/skills/dist/integrations/media-handler-document.d.ts +38 -0
- package/node_modules/@comis/skills/dist/integrations/media-handler-document.js +70 -0
- package/node_modules/@comis/skills/dist/integrations/media-handler-factory.d.ts +25 -0
- package/node_modules/@comis/skills/dist/integrations/media-handler-factory.js +39 -0
- package/node_modules/@comis/skills/dist/integrations/media-handler-image.d.ts +48 -0
- package/node_modules/@comis/skills/dist/integrations/media-handler-image.js +86 -0
- package/node_modules/@comis/skills/dist/integrations/media-handler-video.d.ts +37 -0
- package/node_modules/@comis/skills/dist/integrations/media-handler-video.js +49 -0
- package/node_modules/@comis/skills/dist/integrations/media-preprocessor.d.ts +118 -0
- package/node_modules/@comis/skills/dist/integrations/media-preprocessor.js +176 -0
- package/node_modules/@comis/skills/dist/integrations/multimodal-analyzer.d.ts +27 -0
- package/node_modules/@comis/skills/dist/integrations/multimodal-analyzer.js +139 -0
- package/node_modules/@comis/skills/dist/integrations/openai-stt-adapter.d.ts +24 -0
- package/node_modules/@comis/skills/dist/integrations/openai-stt-adapter.js +78 -0
- package/node_modules/@comis/skills/dist/integrations/openai-tts-adapter.d.ts +19 -0
- package/node_modules/@comis/skills/dist/integrations/openai-tts-adapter.js +78 -0
- package/node_modules/@comis/skills/dist/integrations/outbound-media-parser.d.ts +33 -0
- package/node_modules/@comis/skills/dist/integrations/outbound-media-parser.js +58 -0
- package/node_modules/@comis/skills/dist/integrations/stt-factory.d.ts +36 -0
- package/node_modules/@comis/skills/dist/integrations/stt-factory.js +84 -0
- package/node_modules/@comis/skills/dist/integrations/tts/tts-auto-mode.d.ts +44 -0
- package/node_modules/@comis/skills/dist/integrations/tts/tts-auto-mode.js +48 -0
- package/node_modules/@comis/skills/dist/integrations/tts/tts-directive-parser.d.ts +53 -0
- package/node_modules/@comis/skills/dist/integrations/tts/tts-directive-parser.js +93 -0
- package/node_modules/@comis/skills/dist/integrations/tts/tts-output-format.d.ts +42 -0
- package/node_modules/@comis/skills/dist/integrations/tts/tts-output-format.js +114 -0
- package/node_modules/@comis/skills/dist/integrations/tts-factory.d.ts +15 -0
- package/node_modules/@comis/skills/dist/integrations/tts-factory.js +37 -0
- package/node_modules/@comis/skills/dist/integrations/vision/gemini-vision-adapter.d.ts +35 -0
- package/node_modules/@comis/skills/dist/integrations/vision/gemini-vision-adapter.js +149 -0
- package/node_modules/@comis/skills/dist/integrations/vision/scope-resolver.d.ts +40 -0
- package/node_modules/@comis/skills/dist/integrations/vision/scope-resolver.js +55 -0
- package/node_modules/@comis/skills/dist/integrations/vision/video-handler.d.ts +33 -0
- package/node_modules/@comis/skills/dist/integrations/vision/video-handler.js +46 -0
- package/node_modules/@comis/skills/dist/integrations/vision/vision-provider-registry.d.ts +48 -0
- package/node_modules/@comis/skills/dist/integrations/vision/vision-provider-registry.js +134 -0
- package/node_modules/@comis/skills/dist/manifest/parser.d.ts +29 -0
- package/node_modules/@comis/skills/dist/manifest/parser.js +69 -0
- package/node_modules/@comis/skills/dist/manifest/schema.d.ts +125 -0
- package/node_modules/@comis/skills/dist/manifest/schema.js +113 -0
- package/node_modules/@comis/skills/dist/media/audio-converter.d.ts +39 -0
- package/node_modules/@comis/skills/dist/media/audio-converter.js +154 -0
- package/node_modules/@comis/skills/dist/media/audio-tags.d.ts +37 -0
- package/node_modules/@comis/skills/dist/media/audio-tags.js +45 -0
- package/node_modules/@comis/skills/dist/media/composite-resolver.d.ts +41 -0
- package/node_modules/@comis/skills/dist/media/composite-resolver.js +78 -0
- package/node_modules/@comis/skills/dist/media/constants.d.ts +17 -0
- package/node_modules/@comis/skills/dist/media/constants.js +54 -0
- package/node_modules/@comis/skills/dist/media/ffmpeg-detect.d.ts +27 -0
- package/node_modules/@comis/skills/dist/media/ffmpeg-detect.js +41 -0
- package/node_modules/@comis/skills/dist/media/file-validator.d.ts +45 -0
- package/node_modules/@comis/skills/dist/media/file-validator.js +98 -0
- package/node_modules/@comis/skills/dist/media/image-ops.d.ts +64 -0
- package/node_modules/@comis/skills/dist/media/image-ops.js +139 -0
- package/node_modules/@comis/skills/dist/media/index.d.ts +31 -0
- package/node_modules/@comis/skills/dist/media/index.js +33 -0
- package/node_modules/@comis/skills/dist/media/media-persistence.d.ts +64 -0
- package/node_modules/@comis/skills/dist/media/media-persistence.js +95 -0
- package/node_modules/@comis/skills/dist/media/media-semaphore.d.ts +37 -0
- package/node_modules/@comis/skills/dist/media/media-semaphore.js +47 -0
- package/node_modules/@comis/skills/dist/media/media-store.d.ts +64 -0
- package/node_modules/@comis/skills/dist/media/media-store.js +178 -0
- package/node_modules/@comis/skills/dist/media/media-temp.d.ts +53 -0
- package/node_modules/@comis/skills/dist/media/media-temp.js +134 -0
- package/node_modules/@comis/skills/dist/media/mime-detection.d.ts +45 -0
- package/node_modules/@comis/skills/dist/media/mime-detection.js +125 -0
- package/node_modules/@comis/skills/dist/media/ssrf-fetcher.d.ts +65 -0
- package/node_modules/@comis/skills/dist/media/ssrf-fetcher.js +208 -0
- package/node_modules/@comis/skills/dist/policy/index.d.ts +7 -0
- package/node_modules/@comis/skills/dist/policy/index.js +7 -0
- package/node_modules/@comis/skills/dist/policy/tool-policy.d.ts +74 -0
- package/node_modules/@comis/skills/dist/policy/tool-policy.js +220 -0
- package/node_modules/@comis/skills/dist/prompt/content-scanner.d.ts +58 -0
- package/node_modules/@comis/skills/dist/prompt/content-scanner.js +284 -0
- package/node_modules/@comis/skills/dist/prompt/processor.d.ts +98 -0
- package/node_modules/@comis/skills/dist/prompt/processor.js +232 -0
- package/node_modules/@comis/skills/dist/prompt/sanitizer.d.ts +62 -0
- package/node_modules/@comis/skills/dist/prompt/sanitizer.js +72 -0
- package/node_modules/@comis/skills/dist/registry/diagnostics.d.ts +23 -0
- package/node_modules/@comis/skills/dist/registry/diagnostics.js +11 -0
- package/node_modules/@comis/skills/dist/registry/discovery.d.ts +94 -0
- package/node_modules/@comis/skills/dist/registry/discovery.js +332 -0
- package/node_modules/@comis/skills/dist/registry/eligibility.d.ts +61 -0
- package/node_modules/@comis/skills/dist/registry/eligibility.js +124 -0
- package/node_modules/@comis/skills/dist/registry/skill-registry.d.ts +127 -0
- package/node_modules/@comis/skills/dist/registry/skill-registry.js +496 -0
- package/node_modules/@comis/skills/dist/registry/skill-watcher.d.ts +50 -0
- package/node_modules/@comis/skills/dist/registry/skill-watcher.js +166 -0
- package/node_modules/@comis/skills/package.json +44 -0
- package/package.json +201 -0
|
@@ -0,0 +1,886 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
/**
|
|
3
|
+
* Exec tool: execute shell commands in foreground or background mode.
|
|
4
|
+
*
|
|
5
|
+
* Foreground mode spawns a child process with streaming output capture,
|
|
6
|
+
* tail-truncation for large outputs, temp file spillover, and process
|
|
7
|
+
* tree kill on timeout/abort. Returns { exitCode, stdout, stderr } plus
|
|
8
|
+
* optional { truncated, fullOutputPath } when output exceeds limits.
|
|
9
|
+
*
|
|
10
|
+
* Background mode spawns a detached process, registers it in the
|
|
11
|
+
* ProcessRegistry, and returns immediately with { status, sessionId, pid }.
|
|
12
|
+
*
|
|
13
|
+
* Security:
|
|
14
|
+
* - Command and environment validation delegated to exec-security.ts pipeline.
|
|
15
|
+
* - Working directory is validated via safePath to prevent execution
|
|
16
|
+
* outside workspace bounds.
|
|
17
|
+
*
|
|
18
|
+
* Note: The command denylist is defense-in-depth, not a sandbox. Pattern
|
|
19
|
+
* matching on raw command strings can be bypassed via shell quoting/encoding.
|
|
20
|
+
* The actual security boundary is the builtinTools.exec toggle and tool policy.
|
|
21
|
+
*
|
|
22
|
+
* @module
|
|
23
|
+
*/
|
|
24
|
+
import { Type } from "@sinclair/typebox";
|
|
25
|
+
import { spawn } from "node:child_process";
|
|
26
|
+
import { createWriteStream, mkdirSync, writeFileSync, copyFileSync, statSync } from "node:fs";
|
|
27
|
+
import { tmpdir } from "node:os";
|
|
28
|
+
import { randomBytes } from "node:crypto";
|
|
29
|
+
import { safePath, PathTraversalError } from "@comis/core";
|
|
30
|
+
import { resolvePaths } from "./file/safe-path-wrapper.js";
|
|
31
|
+
import { jsonResult, throwToolError, readStringParam, readNumberParam, readBooleanParam, } from "./platform/tool-helpers.js";
|
|
32
|
+
import { generateSessionId, appendOutput } from "./process-registry.js";
|
|
33
|
+
import { truncateTail, formatSize, DEFAULT_MAX_BYTES } from "./truncate.js";
|
|
34
|
+
import { createOutputCleaner } from "./output-cleaner.js";
|
|
35
|
+
import { extractHeredoc, validateExecCommand, interpretExitCode } from "./exec-security.js";
|
|
36
|
+
import { tryGetContext } from "@comis/core";
|
|
37
|
+
// ---------------------------------------------------------------------------
|
|
38
|
+
// Constants
|
|
39
|
+
// ---------------------------------------------------------------------------
|
|
40
|
+
/** Maximum bytes to persist to disk for truncated output. */
|
|
41
|
+
const MAX_PERSIST_BYTES = 64 * 1024 * 1024;
|
|
42
|
+
/** Max output chars for background mode's ProcessSession rolling buffer. */
|
|
43
|
+
const BACKGROUND_MAX_OUTPUT_CHARS = 1024 * 1024; // 1MB
|
|
44
|
+
/** Rolling buffer size for foreground streaming (2x DEFAULT_MAX_BYTES). */
|
|
45
|
+
const ROLLING_BUFFER_MAX = DEFAULT_MAX_BYTES * 2; // 100KB
|
|
46
|
+
const DEFAULT_TIMEOUT_MS = 120_000;
|
|
47
|
+
const MAX_TIMEOUT_MS = 600_000;
|
|
48
|
+
// ---------------------------------------------------------------------------
|
|
49
|
+
// Parameter schema
|
|
50
|
+
// ---------------------------------------------------------------------------
|
|
51
|
+
const ExecParams = Type.Object({
|
|
52
|
+
command: Type.String({ description: "The shell command to execute (single-line only — use 'input' param for multi-line scripts)" }),
|
|
53
|
+
cwd: Type.Optional(Type.String({ description: "Working directory (defaults to workspace)" })),
|
|
54
|
+
timeoutMs: Type.Optional(Type.Integer({
|
|
55
|
+
description: "Timeout in ms (default 120000, max 600000)",
|
|
56
|
+
default: 120_000,
|
|
57
|
+
})),
|
|
58
|
+
env: Type.Optional(Type.Record(Type.String(), Type.String(), {
|
|
59
|
+
description: "Environment variable overrides",
|
|
60
|
+
})),
|
|
61
|
+
background: Type.Optional(Type.Boolean({ description: "Run in background and return immediately" })),
|
|
62
|
+
input: Type.Optional(Type.String({ description: "String to write to process stdin" })),
|
|
63
|
+
autoBackgroundMs: Type.Optional(Type.Integer({
|
|
64
|
+
description: "Auto-background threshold in ms. Foreground commands exceeding this duration transition to background. Default 15000. Set 0 to disable.",
|
|
65
|
+
default: 15_000,
|
|
66
|
+
})),
|
|
67
|
+
description: Type.Optional(Type.String({
|
|
68
|
+
description: "Human-readable label for this command (e.g. 'Installing dependencies'). Appears in UI activity indicators and structured logs.",
|
|
69
|
+
})),
|
|
70
|
+
pty: Type.Optional(Type.Boolean({
|
|
71
|
+
description: "Allocate a pseudo-terminal for the command. Required for interactive CLI tools that check process.stdout.isTTY. Wraps the command in 'script' to provide a real TTY.",
|
|
72
|
+
})),
|
|
73
|
+
secretRefs: Type.Optional(Type.Array(Type.String(), {
|
|
74
|
+
maxItems: 8,
|
|
75
|
+
description: "Secret/credential NAMES (not values) to inject as env vars into the subprocess. Use this to pass API tokens to CLI tools like wrangler/gh/gcloud/kubectl without tripping the env-var allowlist. Names are resolved server-side via SecretManager; values never flow through agent context. Call env_list first to discover available names. Platform-managed secrets (referenced by the daemon config, e.g. ANTHROPIC_API_KEY) are rejected. Raw-interpreter commands (python -c, node -e, bash -c, etc.) are rejected with secretRefs to prevent trivial echo-to-stdout leaks. Example: {command: 'npx wrangler pages deploy ./dist', secretRefs: ['CLOUDFLARE_API_TOKEN', 'CLOUDFLARE_ACCOUNT_ID']}",
|
|
76
|
+
})),
|
|
77
|
+
});
|
|
78
|
+
// ---------------------------------------------------------------------------
|
|
79
|
+
// cwd resolution
|
|
80
|
+
// ---------------------------------------------------------------------------
|
|
81
|
+
/**
|
|
82
|
+
* Resolve a user-supplied `cwd` against the workspace root via safePath.
|
|
83
|
+
*
|
|
84
|
+
* Accepts either an absolute path (must still be inside workspace) or a
|
|
85
|
+
* workspace-relative path. Returns the resolved absolute path for spawn().
|
|
86
|
+
* Throws a tool error via throwToolError when the path escapes workspace
|
|
87
|
+
* bounds — caller never needs to validate the string separately.
|
|
88
|
+
*
|
|
89
|
+
* Why this shape: the previous implementation kept the raw user input
|
|
90
|
+
* (typically a workspace-relative string like "projects/foo") and passed
|
|
91
|
+
* it to Node child_process.spawn, which resolves relative paths against
|
|
92
|
+
* the DAEMON'S process.cwd (not the workspace). That produced the
|
|
93
|
+
* misleading "spawn sandbox-exec ENOENT" when the agent's cwd didn't
|
|
94
|
+
* exist under the daemon's cwd. Now every cwd flowing into spawn is an
|
|
95
|
+
* absolute, workspace-anchored path.
|
|
96
|
+
*/
|
|
97
|
+
function resolveCwd(workspacePath, cwdParam) {
|
|
98
|
+
try {
|
|
99
|
+
return safePath(workspacePath, cwdParam);
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
if (error instanceof PathTraversalError) {
|
|
103
|
+
throwToolError("invalid_value", `Working directory outside workspace bounds: ${cwdParam}`);
|
|
104
|
+
}
|
|
105
|
+
throw error;
|
|
106
|
+
}
|
|
107
|
+
// unreachable — throwToolError never returns, but TS needs this
|
|
108
|
+
return workspacePath;
|
|
109
|
+
}
|
|
110
|
+
// ---------------------------------------------------------------------------
|
|
111
|
+
// Process tree kill
|
|
112
|
+
// ---------------------------------------------------------------------------
|
|
113
|
+
/**
|
|
114
|
+
* Kill a process tree. When sandboxed, uses positive PID kill (bwrap's
|
|
115
|
+
* --die-with-parent + --unshare-pid cascade to all children). When not
|
|
116
|
+
* sandboxed, uses negative PID (process group kill) with fallback to
|
|
117
|
+
* direct PID kill.
|
|
118
|
+
*/
|
|
119
|
+
export function killTree(pid, sandboxed) {
|
|
120
|
+
try {
|
|
121
|
+
if (sandboxed) {
|
|
122
|
+
// Sandbox: kill bwrap directly (positive PID).
|
|
123
|
+
// --die-with-parent + --unshare-pid cascade to all children.
|
|
124
|
+
process.kill(pid, "SIGKILL");
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
// No sandbox: kill process group (negative PID) as before.
|
|
128
|
+
process.kill(-pid, "SIGKILL");
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
catch {
|
|
132
|
+
try {
|
|
133
|
+
process.kill(pid, "SIGKILL");
|
|
134
|
+
}
|
|
135
|
+
catch {
|
|
136
|
+
// Process already dead
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
// ---------------------------------------------------------------------------
|
|
141
|
+
// Sandbox spawn command builder
|
|
142
|
+
// ---------------------------------------------------------------------------
|
|
143
|
+
/**
|
|
144
|
+
* Build spawn command arguments, optionally wrapping in the platform sandbox
|
|
145
|
+
* and/or a PTY via `script`.
|
|
146
|
+
*
|
|
147
|
+
* When sandboxConfig is undefined, returns the existing /bin/bash -c command.
|
|
148
|
+
* When present, calls sandboxConfig.sandbox.buildArgs() and prefixes the command.
|
|
149
|
+
*
|
|
150
|
+
* When pty is true, wraps the entire command (including sandbox) in `script`
|
|
151
|
+
* to allocate a pseudo-terminal. On macOS, uses positional args; on Linux,
|
|
152
|
+
* reconstructs a command string for `script -c`.
|
|
153
|
+
*
|
|
154
|
+
* Exported for direct unit testing.
|
|
155
|
+
*/
|
|
156
|
+
export function buildSpawnCommand(command, cwd, sandboxConfig, workspacePath, tempDir, pty) {
|
|
157
|
+
let result;
|
|
158
|
+
if (!sandboxConfig) {
|
|
159
|
+
result = { bin: "/bin/bash", args: ["-c", command], cwd };
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
const allReadOnlyPaths = [
|
|
163
|
+
...sandboxConfig.readOnlyPaths,
|
|
164
|
+
...sandboxConfig.configReadOnlyPaths,
|
|
165
|
+
];
|
|
166
|
+
const resolvedShared = resolvePaths(sandboxConfig.sharedPaths);
|
|
167
|
+
const sandboxArgs = sandboxConfig.sandbox.buildArgs({
|
|
168
|
+
workspacePath,
|
|
169
|
+
sharedPaths: resolvedShared,
|
|
170
|
+
readOnlyPaths: allReadOnlyPaths,
|
|
171
|
+
cwd,
|
|
172
|
+
tempDir,
|
|
173
|
+
});
|
|
174
|
+
// bwrap handles cwd internally via --chdir; sandbox-exec does not.
|
|
175
|
+
// Pass cwd through to spawn() unless the provider handles it.
|
|
176
|
+
const providerHandlesCwd = sandboxConfig.sandbox.name === "bwrap";
|
|
177
|
+
result = {
|
|
178
|
+
bin: sandboxArgs[0],
|
|
179
|
+
args: [...sandboxArgs.slice(1), "/bin/bash", "-c", command],
|
|
180
|
+
cwd: providerHandlesCwd ? undefined : cwd,
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
// Wrap in PTY via Python pty.spawn() when requested.
|
|
184
|
+
// Python runs OUTSIDE the sandbox — it creates a PTY pair via openpty(),
|
|
185
|
+
// forks, connects the child to the PTY slave, and proxies I/O between
|
|
186
|
+
// its piped stdin/stdout and the PTY master. Unlike `script`, Python's
|
|
187
|
+
// pty.spawn() handles piped stdin gracefully (catches tcgetattr error
|
|
188
|
+
// on non-TTY stdin and continues without raw mode).
|
|
189
|
+
if (pty) {
|
|
190
|
+
result = {
|
|
191
|
+
bin: "python3",
|
|
192
|
+
args: ["-c", "import pty,sys;sys.exit(pty.spawn(sys.argv[1:]))", result.bin, ...result.args],
|
|
193
|
+
cwd: result.cwd,
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
return result;
|
|
197
|
+
}
|
|
198
|
+
// ---------------------------------------------------------------------------
|
|
199
|
+
// secretRefs helpers
|
|
200
|
+
// ---------------------------------------------------------------------------
|
|
201
|
+
/** Valid secret env var name (same rule as env.set). */
|
|
202
|
+
const SECRET_REF_NAME_PATTERN = /^[A-Z][A-Z0-9_]*$/;
|
|
203
|
+
/**
|
|
204
|
+
* Detect raw-interpreter command shapes. When `secretRefs` is present,
|
|
205
|
+
* these are refused because they make `echo $TOKEN` / `print(os.environ)`
|
|
206
|
+
* trivial one-liners. Agents should put credential-bearing scripts into
|
|
207
|
+
* workspace files and invoke those instead.
|
|
208
|
+
*
|
|
209
|
+
* Matches the command verb (first non-shell-prefix token) against known
|
|
210
|
+
* interpreter binaries combined with a `-c` / `-e` flag. Heredoc-style
|
|
211
|
+
* invocations (`python3 - <<PY ...`) are already split by extractHeredoc
|
|
212
|
+
* before validation and reach this point with command === "python3", so
|
|
213
|
+
* we also refuse the bare-dash form.
|
|
214
|
+
*/
|
|
215
|
+
function commandUsesRawInterpreter(command) {
|
|
216
|
+
// Normalize: drop leading `cd … && ` and `env … ` prefixes so we see the verb.
|
|
217
|
+
const stripped = command
|
|
218
|
+
.replace(/^\s*cd\s+\S+\s*&&\s*/i, "")
|
|
219
|
+
.replace(/^\s*env\s+(?:[A-Z_][A-Z0-9_]*=\S+\s+)*/i, "")
|
|
220
|
+
.trim();
|
|
221
|
+
// Match: <interpreter> (-c "…") or (-e "…") or (-) for stdin scripts.
|
|
222
|
+
// Include common Python/Node/Ruby/Perl/PHP/Bash/Shell forms.
|
|
223
|
+
const rawPattern = /^(python3?|node|nodejs|ruby|perl|php|bash|sh|zsh|dash|lua|deno|bun)(?:\s+-[cCeE](?:\s+|$)|\s+-(?:\s|$))/i;
|
|
224
|
+
return rawPattern.test(stripped);
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Resolve a list of secret names into an env-var record.
|
|
228
|
+
*
|
|
229
|
+
* Validates each name, rejects platform-managed names, rejects missing
|
|
230
|
+
* names, and calls `secretManager.get` once per name. Returns an error
|
|
231
|
+
* string on any rejection; otherwise returns the resolved record.
|
|
232
|
+
*
|
|
233
|
+
* The returned record is merged into the child's env AFTER the normal
|
|
234
|
+
* userEnv merge, so `secretRefs` wins on collision — agents can't
|
|
235
|
+
* override a server-resolved secret with a stale value by passing the
|
|
236
|
+
* same name via `env`.
|
|
237
|
+
*/
|
|
238
|
+
function resolveSecretRefs(refs, secretManager, platformSecretNames) {
|
|
239
|
+
const env = {};
|
|
240
|
+
const seen = new Set();
|
|
241
|
+
for (const name of refs) {
|
|
242
|
+
if (typeof name !== "string" || !SECRET_REF_NAME_PATTERN.test(name)) {
|
|
243
|
+
return {
|
|
244
|
+
ok: false,
|
|
245
|
+
error: `Invalid secretRefs name "${String(name)}". Names must match /^[A-Z][A-Z0-9_]*$/ (e.g. CLOUDFLARE_API_TOKEN).`,
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
if (seen.has(name))
|
|
249
|
+
continue; // dedup silently
|
|
250
|
+
seen.add(name);
|
|
251
|
+
if (platformSecretNames.has(name)) {
|
|
252
|
+
return {
|
|
253
|
+
ok: false,
|
|
254
|
+
error: `Secret "${name}" is referenced by the daemon config and is platform-managed — ` +
|
|
255
|
+
`exec cannot expose it. This rule prevents agents from exfiltrating credentials ` +
|
|
256
|
+
`the daemon uses to talk to providers. Ask the user to store a separate ` +
|
|
257
|
+
`user-task secret under a different name, or invoke this command locally.`,
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
const value = secretManager.get(name);
|
|
261
|
+
if (value === undefined || value.length === 0) {
|
|
262
|
+
return {
|
|
263
|
+
ok: false,
|
|
264
|
+
error: `Secret "${name}" is not configured. Call gateway(action:"env_list", filter:"${name.split("_")[0]}*") ` +
|
|
265
|
+
`to see available names, or ask the user to store it via env_set.`,
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
env[name] = value;
|
|
269
|
+
}
|
|
270
|
+
return { ok: true, env };
|
|
271
|
+
}
|
|
272
|
+
// ---------------------------------------------------------------------------
|
|
273
|
+
// Factory
|
|
274
|
+
// ---------------------------------------------------------------------------
|
|
275
|
+
/**
|
|
276
|
+
* Create an exec tool for shell command execution.
|
|
277
|
+
*
|
|
278
|
+
* @param workspacePath - Default working directory for commands
|
|
279
|
+
* @param registry - ProcessRegistry for background process tracking
|
|
280
|
+
* @param logger - Optional structured logger for DEBUG-level operation logging
|
|
281
|
+
* @param subprocessEnv - Optional filtered env for subprocesses (defense-in-depth)
|
|
282
|
+
* @param sandboxConfig - Optional sandbox configuration for OS-level isolation
|
|
283
|
+
* @param eventBus - Optional TypedEventBus for emitting command:blocked audit events
|
|
284
|
+
* @param getToolResultsDir - Optional getter for session tool-results directory
|
|
285
|
+
* @returns AgentTool implementing the exec interface
|
|
286
|
+
*/
|
|
287
|
+
export function createExecTool(workspacePath, registry, secretManager, platformSecretNames, logger, subprocessEnv, sandboxConfig, eventBus, getToolResultsDir) {
|
|
288
|
+
// Comis extension: promptGuidelines is not part of AgentTool type, use object
|
|
289
|
+
// spread to avoid excess property checks in the return statement.
|
|
290
|
+
const guidelines = {
|
|
291
|
+
promptGuidelines: [
|
|
292
|
+
"Prefer dedicated file tools over exec for file operations: " +
|
|
293
|
+
"use `read` instead of `cat`/`head`/`tail`, " +
|
|
294
|
+
"`edit` instead of `sed`/`awk`, " +
|
|
295
|
+
"`write` instead of `echo >`/`cat <<EOF`, " +
|
|
296
|
+
"`grep` instead of `grep`/`rg`, " +
|
|
297
|
+
"`find` instead of `find`/`ls`.",
|
|
298
|
+
"When issuing multiple commands: chain dependent commands with `&&`, " +
|
|
299
|
+
"use `;` when you don't care if earlier commands fail. " +
|
|
300
|
+
"DO NOT use newlines to separate commands.",
|
|
301
|
+
"For git commands: prefer new commits over amending, " +
|
|
302
|
+
"never skip hooks (--no-verify) or bypass signing unless explicitly asked. " +
|
|
303
|
+
"Before running destructive operations (reset --hard, push --force, checkout --), " +
|
|
304
|
+
"consider safer alternatives first.",
|
|
305
|
+
"Avoid unnecessary `sleep` commands. Use `background: true` for long-running " +
|
|
306
|
+
"commands instead of sleep loops. Do not retry failing commands in a sleep " +
|
|
307
|
+
"loop — diagnose the root cause.",
|
|
308
|
+
"Use `background: true` for commands expected to run longer than 15 seconds " +
|
|
309
|
+
"(servers, builds, installs). The `autoBackgroundMs` threshold (default 15s) " +
|
|
310
|
+
"will auto-promote foreground commands that exceed it.",
|
|
311
|
+
"Default timeout is 120 seconds. For longer operations (builds, test suites), " +
|
|
312
|
+
"set `timeoutMs` explicitly up to 600000 (10 minutes).",
|
|
313
|
+
"For multi-line scripts (Python, Node, etc.), pipe the script body via " +
|
|
314
|
+
"the `input` parameter instead of embedding it in the command string. " +
|
|
315
|
+
"Example: command=\"python3 -\", input=\"import json\\nprint(json.dumps({...}))\". " +
|
|
316
|
+
"Newlines in the command string are rejected by security validation. " +
|
|
317
|
+
"For large data payloads, write data to a file first with the `write` tool, " +
|
|
318
|
+
"then exec a command that reads it.",
|
|
319
|
+
],
|
|
320
|
+
};
|
|
321
|
+
return {
|
|
322
|
+
...guidelines,
|
|
323
|
+
name: "exec",
|
|
324
|
+
label: "Exec",
|
|
325
|
+
description: "Execute a shell command. Supports background mode, environment overrides, stdin input, and PTY allocation (pty=true for interactive CLI tools that require a TTY).",
|
|
326
|
+
parameters: ExecParams,
|
|
327
|
+
async execute(toolCallId, params, signal, onUpdate) {
|
|
328
|
+
try {
|
|
329
|
+
const p = params;
|
|
330
|
+
let command = readStringParam(p, "command");
|
|
331
|
+
if (!command) {
|
|
332
|
+
throwToolError("missing_param", "Missing required parameter: command");
|
|
333
|
+
}
|
|
334
|
+
const cwdParam = readStringParam(p, "cwd", false);
|
|
335
|
+
const rawTimeout = readNumberParam(p, "timeoutMs", false);
|
|
336
|
+
const userEnv = p.env;
|
|
337
|
+
const background = readBooleanParam(p, "background", false) ?? false;
|
|
338
|
+
let input = readStringParam(p, "input", false);
|
|
339
|
+
const autoBackgroundMs = readNumberParam(p, "autoBackgroundMs", false) ?? 15_000;
|
|
340
|
+
const description = readStringParam(p, "description", false);
|
|
341
|
+
const pty = readBooleanParam(p, "pty", false) ?? false;
|
|
342
|
+
const secretRefs = Array.isArray(p.secretRefs)
|
|
343
|
+
? p.secretRefs.filter((x) => typeof x === "string")
|
|
344
|
+
: undefined;
|
|
345
|
+
// Auto-extract heredoc patterns before security validation.
|
|
346
|
+
// LLMs send `python3 - <<'PY'\n...\nPY` which Gate 0 blocks
|
|
347
|
+
// due to newlines. Split into clean command + stdin input.
|
|
348
|
+
const heredoc = extractHeredoc(command, input ?? undefined);
|
|
349
|
+
if (heredoc) {
|
|
350
|
+
command = heredoc.command;
|
|
351
|
+
input = heredoc.input;
|
|
352
|
+
}
|
|
353
|
+
// Validate command and env through security pipeline
|
|
354
|
+
const validationError = validateExecCommand(command, userEnv);
|
|
355
|
+
if (validationError) {
|
|
356
|
+
// Emit command:blocked audit event before throwing
|
|
357
|
+
// Note: RequestContext has no agentId field; sessionKey carries agent identity
|
|
358
|
+
eventBus?.emit("command:blocked", {
|
|
359
|
+
agentId: tryGetContext()?.sessionKey ?? "unknown",
|
|
360
|
+
commandPrefix: command.slice(0, 200),
|
|
361
|
+
reason: validationError.message,
|
|
362
|
+
blocker: validationError.blocker,
|
|
363
|
+
timestamp: Date.now(),
|
|
364
|
+
});
|
|
365
|
+
throwToolError("permission_denied", validationError.message);
|
|
366
|
+
}
|
|
367
|
+
// Detect --break-system-packages for post-execution warning
|
|
368
|
+
const breakSystemWarning = command.includes("--break-system-packages")
|
|
369
|
+
? "\u26a0\ufe0f WARNING: --break-system-packages modifies the system Python. Use a virtualenv instead: python3 -m venv .venv && source .venv/bin/activate && pip install ...\n\n"
|
|
370
|
+
: "";
|
|
371
|
+
// Log command start (truncate command to 200 chars for security)
|
|
372
|
+
logger?.debug({ toolName: "exec", command: command.slice(0, 200), background, pty, ...(description && { description }) }, "Exec command start");
|
|
373
|
+
// Log env override (keys only, never values)
|
|
374
|
+
if (userEnv) {
|
|
375
|
+
logger?.debug({ toolName: "exec", envOverrides: Object.keys(userEnv) }, "Exec env override applied");
|
|
376
|
+
}
|
|
377
|
+
// Clamp timeout
|
|
378
|
+
const timeoutMs = Math.min(Math.max(rawTimeout ?? DEFAULT_TIMEOUT_MS, 100), MAX_TIMEOUT_MS);
|
|
379
|
+
// Resolve working directory against the workspace (not the daemon's
|
|
380
|
+
// process.cwd). Throws via throwToolError if out-of-bounds.
|
|
381
|
+
const cwd = cwdParam ? resolveCwd(workspacePath, cwdParam) : workspacePath;
|
|
382
|
+
// Resolve secretRefs (if any). Raw-interpreter guard runs first to
|
|
383
|
+
// fail fast before touching the SecretManager. secretRefs values
|
|
384
|
+
// override userEnv on collision — a server-resolved secret always
|
|
385
|
+
// wins so the agent can't pin a stale value.
|
|
386
|
+
let resolvedSecretEnv;
|
|
387
|
+
if (secretRefs && secretRefs.length > 0) {
|
|
388
|
+
if (commandUsesRawInterpreter(command)) {
|
|
389
|
+
throwToolError("invalid_value", `Raw-interpreter commands (python -c, node -e, bash -c, ruby -e, etc.) ` +
|
|
390
|
+
`are not allowed with secretRefs because they make secret echo trivial. ` +
|
|
391
|
+
`Write your script to a workspace file (write tool) and invoke that instead, ` +
|
|
392
|
+
`e.g. "python3 projects/foo/deploy.py".`);
|
|
393
|
+
}
|
|
394
|
+
const resolved = resolveSecretRefs(secretRefs, secretManager, platformSecretNames);
|
|
395
|
+
if (!resolved.ok) {
|
|
396
|
+
throwToolError("invalid_value", resolved.error);
|
|
397
|
+
}
|
|
398
|
+
else {
|
|
399
|
+
resolvedSecretEnv = resolved.env;
|
|
400
|
+
// Audit: emit one event per resolved name (value never logged).
|
|
401
|
+
const agentId = tryGetContext()?.sessionKey ?? "unknown";
|
|
402
|
+
for (const name of Object.keys(resolvedSecretEnv)) {
|
|
403
|
+
eventBus?.emit("secret:accessed", {
|
|
404
|
+
secretName: name,
|
|
405
|
+
agentId,
|
|
406
|
+
outcome: "success",
|
|
407
|
+
timestamp: Date.now(),
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
logger?.info({
|
|
411
|
+
toolName: "exec",
|
|
412
|
+
secretRefs: Object.keys(resolvedSecretEnv),
|
|
413
|
+
commandPrefix: command.slice(0, 80),
|
|
414
|
+
}, "Exec resolved secretRefs for subprocess");
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
// Build environment (use filtered subprocess env instead of raw process.env)
|
|
418
|
+
const baseEnv = subprocessEnv ?? process.env;
|
|
419
|
+
const env = {
|
|
420
|
+
...baseEnv,
|
|
421
|
+
...(userEnv ?? {}),
|
|
422
|
+
...(resolvedSecretEnv ?? {}),
|
|
423
|
+
};
|
|
424
|
+
// Wrap env for sandbox (e.g., redirect cache dirs into workspace)
|
|
425
|
+
const finalEnv = sandboxConfig?.sandbox.wrapEnv?.(env, workspacePath) ?? env;
|
|
426
|
+
// Compute temp directory: workspace-based when sandboxed, os.tmpdir() when not
|
|
427
|
+
const tempDir = sandboxConfig
|
|
428
|
+
? safePath(workspacePath, ".comis-tmp")
|
|
429
|
+
: tmpdir();
|
|
430
|
+
if (sandboxConfig) {
|
|
431
|
+
mkdirSync(tempDir, { recursive: true });
|
|
432
|
+
}
|
|
433
|
+
// Log stdin write (length only, never content)
|
|
434
|
+
if (input) {
|
|
435
|
+
logger?.debug({ toolName: "exec", stdinLength: input.length }, "Exec stdin write");
|
|
436
|
+
}
|
|
437
|
+
if (background) {
|
|
438
|
+
return executeBackground(command, cwd, finalEnv, input, registry, logger, sandboxConfig, workspacePath, tempDir, description, pty);
|
|
439
|
+
}
|
|
440
|
+
const result = await executeForeground(command, cwd, finalEnv, timeoutMs, input, signal, onUpdate, logger, sandboxConfig, workspacePath, tempDir, registry, autoBackgroundMs, pty, description, toolCallId, getToolResultsDir);
|
|
441
|
+
// Prepend --break-system-packages warning to stdout so the LLM sees it
|
|
442
|
+
if (breakSystemWarning && result.details) {
|
|
443
|
+
const details = result.details;
|
|
444
|
+
if (typeof details.stdout === "string") {
|
|
445
|
+
details.stdout = breakSystemWarning + details.stdout;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
return result;
|
|
449
|
+
}
|
|
450
|
+
catch (err) {
|
|
451
|
+
if (err instanceof Error && err.message.startsWith("["))
|
|
452
|
+
throw err;
|
|
453
|
+
throw err instanceof Error ? err : new Error(String(err));
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Execute auto-background escalation: create a ProcessRegistry session from
|
|
460
|
+
* the running child, re-wire output streams, and resolve with a
|
|
461
|
+
* "backgrounded" status containing the sessionId for polling.
|
|
462
|
+
*/
|
|
463
|
+
function escalateToBackground(ctx) {
|
|
464
|
+
ctx.setResolved();
|
|
465
|
+
clearTimeout(ctx.timeoutTimer);
|
|
466
|
+
if (ctx.signal)
|
|
467
|
+
ctx.signal.removeEventListener("abort", ctx.onAbort);
|
|
468
|
+
const session = {
|
|
469
|
+
id: generateSessionId(),
|
|
470
|
+
command: ctx.command,
|
|
471
|
+
pid: ctx.child.pid,
|
|
472
|
+
startedAt: Math.round(ctx.startTime),
|
|
473
|
+
status: "running",
|
|
474
|
+
exitCode: undefined,
|
|
475
|
+
stdout: ctx.stdoutBuf,
|
|
476
|
+
stderr: ctx.stderrBuf,
|
|
477
|
+
child: ctx.child,
|
|
478
|
+
maxOutputChars: BACKGROUND_MAX_OUTPUT_CHARS,
|
|
479
|
+
sandboxed: !!ctx.sandboxConfig,
|
|
480
|
+
autoBackgrounded: true,
|
|
481
|
+
...(ctx.description && { description: ctx.description }),
|
|
482
|
+
};
|
|
483
|
+
// Re-wire stdout/stderr from rolling buffer to session append
|
|
484
|
+
const bgStdoutCleaner = createOutputCleaner();
|
|
485
|
+
const bgStderrCleaner = createOutputCleaner();
|
|
486
|
+
ctx.child.stdout?.removeAllListeners("data");
|
|
487
|
+
ctx.child.stderr?.removeAllListeners("data");
|
|
488
|
+
ctx.child.stdout?.on("data", (chunk) => {
|
|
489
|
+
appendOutput(session, "stdout", bgStdoutCleaner.process(chunk));
|
|
490
|
+
});
|
|
491
|
+
ctx.child.stderr?.on("data", (chunk) => {
|
|
492
|
+
appendOutput(session, "stderr", bgStderrCleaner.process(chunk));
|
|
493
|
+
});
|
|
494
|
+
ctx.child.on("close", (code) => {
|
|
495
|
+
const stdoutFlush = bgStdoutCleaner.flush();
|
|
496
|
+
const stderrFlush = bgStderrCleaner.flush();
|
|
497
|
+
if (stdoutFlush)
|
|
498
|
+
appendOutput(session, "stdout", stdoutFlush);
|
|
499
|
+
if (stderrFlush)
|
|
500
|
+
appendOutput(session, "stderr", stderrFlush);
|
|
501
|
+
session.status = code === 0 ? "completed" : "failed";
|
|
502
|
+
session.exitCode = code;
|
|
503
|
+
session.child = undefined;
|
|
504
|
+
});
|
|
505
|
+
ctx.registry.add(session);
|
|
506
|
+
ctx.logger?.info({ toolName: "exec", sessionId: session.id, pid: ctx.child.pid, durationMs: Math.round(performance.now() - ctx.startTime), ...(ctx.description && { description: ctx.description }) }, "Exec auto-backgrounded after threshold");
|
|
507
|
+
if (ctx.spillStream)
|
|
508
|
+
ctx.spillStream.end();
|
|
509
|
+
ctx.resolve(jsonResult({
|
|
510
|
+
status: "backgrounded",
|
|
511
|
+
sessionId: session.id,
|
|
512
|
+
pid: ctx.child.pid,
|
|
513
|
+
stdoutSoFar: truncateTail(ctx.stdoutBuf).content,
|
|
514
|
+
stderrSoFar: truncateTail(ctx.stderrBuf).content,
|
|
515
|
+
...(ctx.description && { description: ctx.description }),
|
|
516
|
+
}));
|
|
517
|
+
}
|
|
518
|
+
// ---------------------------------------------------------------------------
|
|
519
|
+
// Foreground execution
|
|
520
|
+
// ---------------------------------------------------------------------------
|
|
521
|
+
function executeForeground(command, cwd, env, timeoutMs, input, signal, onUpdate, logger, sandboxConfig, workspacePath, tempDir, registry, autoBackgroundMs, pty, description, toolCallId, getToolResultsDir) {
|
|
522
|
+
const startTime = performance.now();
|
|
523
|
+
return new Promise((resolve) => {
|
|
524
|
+
const { bin, args, cwd: spawnCwd } = buildSpawnCommand(command, cwd, sandboxConfig, workspacePath ?? cwd, tempDir ?? tmpdir(), pty);
|
|
525
|
+
const child = spawn(bin, args, {
|
|
526
|
+
cwd: spawnCwd,
|
|
527
|
+
env,
|
|
528
|
+
detached: true,
|
|
529
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
530
|
+
});
|
|
531
|
+
const pid = child.pid;
|
|
532
|
+
// Rolling buffers for stdout, stderr, and combined (for onUpdate)
|
|
533
|
+
let stdoutBuf = "";
|
|
534
|
+
let stderrBuf = "";
|
|
535
|
+
let combinedBuf = "";
|
|
536
|
+
let totalBytes = 0;
|
|
537
|
+
let resolved = false;
|
|
538
|
+
// Output cleaners for stateful UTF-8 decode + ANSI strip + CR normalize + binary sanitize
|
|
539
|
+
const stdoutCleaner = createOutputCleaner();
|
|
540
|
+
const stderrCleaner = createOutputCleaner();
|
|
541
|
+
// Temp file spillover state
|
|
542
|
+
let spillStream = null;
|
|
543
|
+
let spillPath = null;
|
|
544
|
+
let _spillCapped = false;
|
|
545
|
+
function appendRolling(buf, chunk) {
|
|
546
|
+
const combined = buf + chunk;
|
|
547
|
+
if (combined.length > ROLLING_BUFFER_MAX) {
|
|
548
|
+
return combined.slice(-ROLLING_BUFFER_MAX);
|
|
549
|
+
}
|
|
550
|
+
return combined;
|
|
551
|
+
}
|
|
552
|
+
function ensureSpillFile() {
|
|
553
|
+
if (spillStream)
|
|
554
|
+
return;
|
|
555
|
+
const hex = randomBytes(8).toString("hex");
|
|
556
|
+
const filename = `comis-exec-${hex}.log`;
|
|
557
|
+
spillPath = safePath(tempDir ?? tmpdir(), filename);
|
|
558
|
+
spillStream = createWriteStream(spillPath, { flags: "a" });
|
|
559
|
+
}
|
|
560
|
+
// Wire stdout
|
|
561
|
+
child.stdout?.on("data", (chunk) => {
|
|
562
|
+
const str = stdoutCleaner.process(chunk);
|
|
563
|
+
stdoutBuf = appendRolling(stdoutBuf, str);
|
|
564
|
+
combinedBuf = appendRolling(combinedBuf, str);
|
|
565
|
+
totalBytes += chunk.length;
|
|
566
|
+
// Spill to temp file when output exceeds DEFAULT_MAX_BYTES, cap at MAX_PERSIST_BYTES
|
|
567
|
+
if (totalBytes > DEFAULT_MAX_BYTES && totalBytes <= MAX_PERSIST_BYTES) {
|
|
568
|
+
ensureSpillFile();
|
|
569
|
+
spillStream.write(chunk);
|
|
570
|
+
}
|
|
571
|
+
else if (totalBytes > MAX_PERSIST_BYTES && spillStream) {
|
|
572
|
+
spillStream.end();
|
|
573
|
+
spillStream = null;
|
|
574
|
+
_spillCapped = true;
|
|
575
|
+
}
|
|
576
|
+
// Stream onUpdate with truncated-tail of combined buffer
|
|
577
|
+
// EXEC-ABORT: guard with !resolved to prevent late onUpdate calls
|
|
578
|
+
// after tool resolution (orphaned child process output)
|
|
579
|
+
if (onUpdate && !resolved) {
|
|
580
|
+
const truncated = truncateTail(combinedBuf);
|
|
581
|
+
onUpdate({
|
|
582
|
+
content: [{ type: "text", text: truncated.content }],
|
|
583
|
+
details: undefined,
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
// Wire stderr
|
|
588
|
+
child.stderr?.on("data", (chunk) => {
|
|
589
|
+
const str = stderrCleaner.process(chunk);
|
|
590
|
+
stderrBuf = appendRolling(stderrBuf, str);
|
|
591
|
+
combinedBuf = appendRolling(combinedBuf, str);
|
|
592
|
+
totalBytes += chunk.length;
|
|
593
|
+
if (totalBytes > DEFAULT_MAX_BYTES && totalBytes <= MAX_PERSIST_BYTES) {
|
|
594
|
+
ensureSpillFile();
|
|
595
|
+
spillStream.write(chunk);
|
|
596
|
+
}
|
|
597
|
+
else if (totalBytes > MAX_PERSIST_BYTES && spillStream) {
|
|
598
|
+
spillStream.end();
|
|
599
|
+
spillStream = null;
|
|
600
|
+
_spillCapped = true;
|
|
601
|
+
}
|
|
602
|
+
// EXEC-ABORT: guard with !resolved to prevent late onUpdate calls
|
|
603
|
+
// after tool resolution (orphaned child process output)
|
|
604
|
+
if (onUpdate && !resolved) {
|
|
605
|
+
const truncated = truncateTail(combinedBuf);
|
|
606
|
+
onUpdate({
|
|
607
|
+
content: [{ type: "text", text: truncated.content }],
|
|
608
|
+
details: undefined,
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
// Close stdin to prevent hang on stdin-reading commands (e.g., bare `cat`)
|
|
613
|
+
if (input && child.stdin) {
|
|
614
|
+
child.stdin.write(input);
|
|
615
|
+
child.stdin.end();
|
|
616
|
+
}
|
|
617
|
+
else if (child.stdin) {
|
|
618
|
+
child.stdin.end();
|
|
619
|
+
}
|
|
620
|
+
// Manual timeout via setTimeout + killTree
|
|
621
|
+
let timedOut = false;
|
|
622
|
+
const timeoutTimer = setTimeout(() => {
|
|
623
|
+
if (resolved)
|
|
624
|
+
return;
|
|
625
|
+
timedOut = true;
|
|
626
|
+
if (pid)
|
|
627
|
+
killTree(pid, !!sandboxConfig);
|
|
628
|
+
}, timeoutMs);
|
|
629
|
+
// Manual abort via signal
|
|
630
|
+
let aborted = false;
|
|
631
|
+
function onAbort() {
|
|
632
|
+
if (resolved)
|
|
633
|
+
return;
|
|
634
|
+
aborted = true;
|
|
635
|
+
if (pid)
|
|
636
|
+
killTree(pid, !!sandboxConfig);
|
|
637
|
+
}
|
|
638
|
+
if (signal) {
|
|
639
|
+
if (signal.aborted) {
|
|
640
|
+
// Already aborted before spawn
|
|
641
|
+
aborted = true;
|
|
642
|
+
if (pid)
|
|
643
|
+
killTree(pid, !!sandboxConfig);
|
|
644
|
+
}
|
|
645
|
+
else {
|
|
646
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
// Auto-background escalation timer
|
|
650
|
+
const effectiveAutoMs = autoBackgroundMs ?? 15_000;
|
|
651
|
+
const escalationTimer = (effectiveAutoMs > 0 && registry)
|
|
652
|
+
? setTimeout(() => {
|
|
653
|
+
if (resolved)
|
|
654
|
+
return;
|
|
655
|
+
escalateToBackground({
|
|
656
|
+
command, child, startTime, stdoutBuf, stderrBuf,
|
|
657
|
+
registry, sandboxConfig, logger, spillStream,
|
|
658
|
+
signal, onAbort, timeoutTimer, resolve,
|
|
659
|
+
setResolved: () => { resolved = true; },
|
|
660
|
+
description,
|
|
661
|
+
});
|
|
662
|
+
}, effectiveAutoMs)
|
|
663
|
+
: null;
|
|
664
|
+
// Handle close event
|
|
665
|
+
child.on("close", (code, sig) => {
|
|
666
|
+
if (resolved)
|
|
667
|
+
return;
|
|
668
|
+
resolved = true;
|
|
669
|
+
// EXEC-ABORT: remove data listeners to prevent late onUpdate calls
|
|
670
|
+
// after tool resolution (orphaned child process output)
|
|
671
|
+
child.stdout?.removeAllListeners("data");
|
|
672
|
+
child.stderr?.removeAllListeners("data");
|
|
673
|
+
clearTimeout(timeoutTimer);
|
|
674
|
+
if (escalationTimer)
|
|
675
|
+
clearTimeout(escalationTimer);
|
|
676
|
+
if (signal)
|
|
677
|
+
signal.removeEventListener("abort", onAbort);
|
|
678
|
+
if (spillStream)
|
|
679
|
+
spillStream.end();
|
|
680
|
+
// Determine exit code
|
|
681
|
+
let exitCode;
|
|
682
|
+
if (timedOut) {
|
|
683
|
+
exitCode = 124; // Unix convention for timeout
|
|
684
|
+
}
|
|
685
|
+
else if (aborted) {
|
|
686
|
+
exitCode = 130; // Unix convention for SIGINT
|
|
687
|
+
}
|
|
688
|
+
else if (code !== null) {
|
|
689
|
+
exitCode = code;
|
|
690
|
+
}
|
|
691
|
+
else if (sig) {
|
|
692
|
+
exitCode = 1; // Unknown signal kill
|
|
693
|
+
}
|
|
694
|
+
else {
|
|
695
|
+
exitCode = 1;
|
|
696
|
+
}
|
|
697
|
+
// Flush any remaining buffered UTF-8 bytes from the output cleaners
|
|
698
|
+
const stdoutFlush = stdoutCleaner.flush();
|
|
699
|
+
const stderrFlush = stderrCleaner.flush();
|
|
700
|
+
if (stdoutFlush)
|
|
701
|
+
stdoutBuf = appendRolling(stdoutBuf, stdoutFlush);
|
|
702
|
+
if (stderrFlush)
|
|
703
|
+
stderrBuf = appendRolling(stderrBuf, stderrFlush);
|
|
704
|
+
// Apply tail truncation to stdout/stderr
|
|
705
|
+
const stdoutResult = truncateTail(stdoutBuf);
|
|
706
|
+
const stderrResult = truncateTail(stderrBuf);
|
|
707
|
+
let finalStdout = stdoutResult.content;
|
|
708
|
+
let finalStderr = stderrResult.content;
|
|
709
|
+
// Append truncation notices
|
|
710
|
+
if (stdoutResult.truncated) {
|
|
711
|
+
const notice = `\n[stdout truncated: kept last ${stdoutResult.outputLines} of ${stdoutResult.totalLines} lines, ${formatSize(stdoutResult.outputBytes)} of ${formatSize(stdoutResult.totalBytes)}]`;
|
|
712
|
+
finalStdout += notice;
|
|
713
|
+
}
|
|
714
|
+
if (stderrResult.truncated) {
|
|
715
|
+
const notice = `\n[stderr truncated: kept last ${stderrResult.outputLines} of ${stderrResult.totalLines} lines, ${formatSize(stderrResult.outputBytes)} of ${formatSize(stderrResult.totalBytes)}]`;
|
|
716
|
+
finalStderr += notice;
|
|
717
|
+
}
|
|
718
|
+
// Append timeout/abort messages to stderr
|
|
719
|
+
if (timedOut) {
|
|
720
|
+
finalStderr += (finalStderr ? "\n" : "") + `Process timed out after ${timeoutMs}ms`;
|
|
721
|
+
}
|
|
722
|
+
if (aborted) {
|
|
723
|
+
finalStderr += (finalStderr ? "\n" : "") + "Process aborted by signal";
|
|
724
|
+
}
|
|
725
|
+
const durationMs = Math.round(performance.now() - startTime);
|
|
726
|
+
logger?.debug({ toolName: "exec", durationMs, exitCode, ...(description && { description }) }, "Exec command complete");
|
|
727
|
+
const result = {
|
|
728
|
+
exitCode,
|
|
729
|
+
stdout: finalStdout,
|
|
730
|
+
stderr: finalStderr,
|
|
731
|
+
...(description && { description }),
|
|
732
|
+
};
|
|
733
|
+
// Add semantic exit code interpretation
|
|
734
|
+
const exitCodeMeaning = interpretExitCode(command, exitCode);
|
|
735
|
+
if (exitCodeMeaning) {
|
|
736
|
+
result.exitCodeMeaning = exitCodeMeaning;
|
|
737
|
+
}
|
|
738
|
+
// Add truncation metadata when applicable
|
|
739
|
+
if (stdoutResult.truncated || stderrResult.truncated) {
|
|
740
|
+
result.truncated = true;
|
|
741
|
+
}
|
|
742
|
+
if (spillPath) {
|
|
743
|
+
result.fullOutputPath = spillPath;
|
|
744
|
+
}
|
|
745
|
+
// Persist full output to session tool-results dir when truncated
|
|
746
|
+
if ((stdoutResult.truncated || stderrResult.truncated) && getToolResultsDir) {
|
|
747
|
+
const toolResultsDir = getToolResultsDir();
|
|
748
|
+
if (toolResultsDir && toolCallId) {
|
|
749
|
+
try {
|
|
750
|
+
mkdirSync(toolResultsDir, { recursive: true });
|
|
751
|
+
const persistPath = safePath(toolResultsDir, `exec-${toolCallId}.txt`);
|
|
752
|
+
if (spillPath && totalBytes > ROLLING_BUFFER_MAX) {
|
|
753
|
+
// Large output (>100KB): copy spill file which has up to 64MB of content.
|
|
754
|
+
// The rolling buffers only hold the last 100KB tail, so spill file is
|
|
755
|
+
// the best source for persistence.
|
|
756
|
+
copyFileSync(spillPath, persistPath);
|
|
757
|
+
const stats = statSync(persistPath);
|
|
758
|
+
result.fullOutputPath = persistPath;
|
|
759
|
+
result.fullOutputSize = stats.size;
|
|
760
|
+
if (_spillCapped) {
|
|
761
|
+
// Output exceeded MAX_PERSIST_BYTES (64MB), spill stream was capped
|
|
762
|
+
result.fullOutputTruncatedOnDisk = true;
|
|
763
|
+
finalStdout += `\n[Full output exceeded 64MB limit; last 64MB saved to disk]`;
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
else {
|
|
767
|
+
// Small-to-medium output (50-100KB): in-memory rolling buffers have complete content
|
|
768
|
+
const fullOutput = stdoutBuf + (stderrBuf ? "\n--- STDERR ---\n" + stderrBuf : "");
|
|
769
|
+
const fullOutputBuf = Buffer.from(fullOutput, "utf-8");
|
|
770
|
+
writeFileSync(persistPath, fullOutputBuf);
|
|
771
|
+
result.fullOutputPath = persistPath;
|
|
772
|
+
result.fullOutputSize = fullOutputBuf.length;
|
|
773
|
+
}
|
|
774
|
+
const sizeStr = formatSize(result.fullOutputSize);
|
|
775
|
+
finalStdout += `\n[Full output (${sizeStr}) saved to: ${persistPath}]`;
|
|
776
|
+
finalStdout += `\n[Use the file read tool with offset/limit to access specific sections]`;
|
|
777
|
+
result.stdout = finalStdout;
|
|
778
|
+
}
|
|
779
|
+
catch {
|
|
780
|
+
// Persistence is best-effort -- don't fail the command
|
|
781
|
+
logger?.debug({ toolName: "exec" }, "Failed to persist truncated output");
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
resolve(jsonResult(result));
|
|
786
|
+
});
|
|
787
|
+
// Handle spawn errors
|
|
788
|
+
child.on("error", (err) => {
|
|
789
|
+
if (resolved)
|
|
790
|
+
return;
|
|
791
|
+
resolved = true;
|
|
792
|
+
clearTimeout(timeoutTimer);
|
|
793
|
+
if (escalationTimer)
|
|
794
|
+
clearTimeout(escalationTimer);
|
|
795
|
+
if (signal)
|
|
796
|
+
signal.removeEventListener("abort", onAbort);
|
|
797
|
+
if (spillStream)
|
|
798
|
+
spillStream.end();
|
|
799
|
+
const durationMs = Math.round(performance.now() - startTime);
|
|
800
|
+
logger?.debug({ toolName: "exec", durationMs, exitCode: 1, ...(description && { description }) }, "Exec command complete");
|
|
801
|
+
resolve(jsonResult({
|
|
802
|
+
exitCode: 1,
|
|
803
|
+
stdout: "",
|
|
804
|
+
stderr: err.message,
|
|
805
|
+
}));
|
|
806
|
+
});
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
// ---------------------------------------------------------------------------
|
|
810
|
+
// Background execution
|
|
811
|
+
// ---------------------------------------------------------------------------
|
|
812
|
+
function executeBackground(command, cwd, env, input, registry, logger, sandboxConfig, workspacePath, tempDir, description, pty) {
|
|
813
|
+
const sessionId = generateSessionId();
|
|
814
|
+
const { bin, args, cwd: spawnCwd } = buildSpawnCommand(command, cwd, sandboxConfig, workspacePath ?? cwd, tempDir ?? tmpdir(), pty);
|
|
815
|
+
const child = spawn(bin, args, {
|
|
816
|
+
cwd: spawnCwd,
|
|
817
|
+
env,
|
|
818
|
+
detached: true,
|
|
819
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
820
|
+
});
|
|
821
|
+
const session = {
|
|
822
|
+
id: sessionId,
|
|
823
|
+
command,
|
|
824
|
+
pid: child.pid,
|
|
825
|
+
startedAt: Date.now(),
|
|
826
|
+
status: "running",
|
|
827
|
+
exitCode: undefined,
|
|
828
|
+
stdout: "",
|
|
829
|
+
stderr: "",
|
|
830
|
+
child,
|
|
831
|
+
maxOutputChars: BACKGROUND_MAX_OUTPUT_CHARS,
|
|
832
|
+
sandboxed: !!sandboxConfig,
|
|
833
|
+
...(description && { description }),
|
|
834
|
+
};
|
|
835
|
+
// Output cleaners for stateful UTF-8 decode + ANSI strip + CR normalize + binary sanitize
|
|
836
|
+
const stdoutCleaner = createOutputCleaner();
|
|
837
|
+
const stderrCleaner = createOutputCleaner();
|
|
838
|
+
// Wire stdout/stderr data events
|
|
839
|
+
child.stdout?.on("data", (chunk) => {
|
|
840
|
+
appendOutput(session, "stdout", stdoutCleaner.process(chunk));
|
|
841
|
+
});
|
|
842
|
+
child.stderr?.on("data", (chunk) => {
|
|
843
|
+
appendOutput(session, "stderr", stderrCleaner.process(chunk));
|
|
844
|
+
});
|
|
845
|
+
// Wire close event
|
|
846
|
+
child.on("close", (code) => {
|
|
847
|
+
const stdoutFlush = stdoutCleaner.flush();
|
|
848
|
+
const stderrFlush = stderrCleaner.flush();
|
|
849
|
+
if (stdoutFlush)
|
|
850
|
+
appendOutput(session, "stdout", stdoutFlush);
|
|
851
|
+
if (stderrFlush)
|
|
852
|
+
appendOutput(session, "stderr", stderrFlush);
|
|
853
|
+
if (code === 0) {
|
|
854
|
+
session.status = "completed";
|
|
855
|
+
}
|
|
856
|
+
else {
|
|
857
|
+
session.status = "failed";
|
|
858
|
+
}
|
|
859
|
+
session.exitCode = code;
|
|
860
|
+
session.child = undefined;
|
|
861
|
+
});
|
|
862
|
+
// Handle spawn errors
|
|
863
|
+
child.on("error", () => {
|
|
864
|
+
session.status = "failed";
|
|
865
|
+
session.child = undefined;
|
|
866
|
+
});
|
|
867
|
+
// Write stdin if provided
|
|
868
|
+
if (input && child.stdin) {
|
|
869
|
+
child.stdin.write(input);
|
|
870
|
+
child.stdin.end();
|
|
871
|
+
}
|
|
872
|
+
// Unref to allow parent process to exit independently.
|
|
873
|
+
// Skip for sandboxed processes to maintain ProcessRegistry tracking.
|
|
874
|
+
if (!sandboxConfig) {
|
|
875
|
+
child.unref();
|
|
876
|
+
}
|
|
877
|
+
// Register in ProcessRegistry
|
|
878
|
+
registry.add(session);
|
|
879
|
+
logger?.debug({ toolName: "exec", sessionId, pid: child.pid }, "Background process spawned");
|
|
880
|
+
return jsonResult({
|
|
881
|
+
status: "started",
|
|
882
|
+
sessionId,
|
|
883
|
+
pid: child.pid,
|
|
884
|
+
...(description && { description }),
|
|
885
|
+
});
|
|
886
|
+
}
|