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,988 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
/**
|
|
3
|
+
* Exec command security validation pipeline.
|
|
4
|
+
*
|
|
5
|
+
* Pure validation module -- no I/O, no state, no process management.
|
|
6
|
+
* Every function takes a string and returns `string | null` (error message
|
|
7
|
+
* or null for valid). The pipeline entry point `validateExecCommand()`
|
|
8
|
+
* composes all gates and is used by both `createExecTool()` and
|
|
9
|
+
* `tool-metadata-registry.ts` pre-flight registration.
|
|
10
|
+
*
|
|
11
|
+
* @module
|
|
12
|
+
*/
|
|
13
|
+
import path from "node:path";
|
|
14
|
+
import os from "node:os";
|
|
15
|
+
/**
|
|
16
|
+
* Character-by-character shell quote state machine. Tracks whether the current
|
|
17
|
+
* position is inside single quotes, double quotes, backticks, or normal context.
|
|
18
|
+
* Handles backslash escaping in NORMAL and DOUBLE_QUOTE states (not SINGLE_QUOTE).
|
|
19
|
+
*/
|
|
20
|
+
export class ShellQuoteTracker {
|
|
21
|
+
state = "NORMAL";
|
|
22
|
+
escaped = false;
|
|
23
|
+
feed(char) {
|
|
24
|
+
if (this.escaped) {
|
|
25
|
+
this.escaped = false;
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
switch (this.state) {
|
|
29
|
+
case "NORMAL":
|
|
30
|
+
if (char === "\\") {
|
|
31
|
+
this.escaped = true;
|
|
32
|
+
}
|
|
33
|
+
else if (char === "'") {
|
|
34
|
+
this.state = "SINGLE_QUOTE";
|
|
35
|
+
}
|
|
36
|
+
else if (char === '"') {
|
|
37
|
+
this.state = "DOUBLE_QUOTE";
|
|
38
|
+
}
|
|
39
|
+
else if (char === "`") {
|
|
40
|
+
this.state = "BACKTICK";
|
|
41
|
+
}
|
|
42
|
+
break;
|
|
43
|
+
case "SINGLE_QUOTE":
|
|
44
|
+
// No escaping in single quotes -- only ' exits
|
|
45
|
+
if (char === "'")
|
|
46
|
+
this.state = "NORMAL";
|
|
47
|
+
break;
|
|
48
|
+
case "DOUBLE_QUOTE":
|
|
49
|
+
if (char === "\\") {
|
|
50
|
+
this.escaped = true;
|
|
51
|
+
}
|
|
52
|
+
else if (char === '"') {
|
|
53
|
+
this.state = "NORMAL";
|
|
54
|
+
}
|
|
55
|
+
break;
|
|
56
|
+
case "BACKTICK":
|
|
57
|
+
if (char === "\\") {
|
|
58
|
+
this.escaped = true;
|
|
59
|
+
}
|
|
60
|
+
else if (char === "`") {
|
|
61
|
+
this.state = "NORMAL";
|
|
62
|
+
}
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
isInSingleQuote() {
|
|
67
|
+
return this.state === "SINGLE_QUOTE";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
// --------------------------------------------------------------------------
|
|
71
|
+
// Shell substitution detection
|
|
72
|
+
// --------------------------------------------------------------------------
|
|
73
|
+
/**
|
|
74
|
+
* Detect shell substitution patterns ($(), backticks, <()/>()) that could
|
|
75
|
+
* enable injection. Single-quoted strings are excluded. Uses ShellQuoteTracker
|
|
76
|
+
* for escape and quote-context awareness.
|
|
77
|
+
*
|
|
78
|
+
* @param command - The raw shell command to analyze
|
|
79
|
+
* @returns Error message if dangerous substitution found, null if safe
|
|
80
|
+
*/
|
|
81
|
+
export function detectShellSubstitutions(command) {
|
|
82
|
+
const tracker = new ShellQuoteTracker();
|
|
83
|
+
for (let i = 0; i < command.length; i++) {
|
|
84
|
+
const ch = command[i];
|
|
85
|
+
// Check BEFORE feeding to tracker so we can use current state
|
|
86
|
+
if (!tracker.escaped && !tracker.isInSingleQuote()) {
|
|
87
|
+
// Command substitution: $(
|
|
88
|
+
if (ch === "$" &&
|
|
89
|
+
i + 1 < command.length &&
|
|
90
|
+
command[i + 1] === "(" &&
|
|
91
|
+
tracker.state !== "BACKTICK") {
|
|
92
|
+
return "Shell command substitution $(...) detected";
|
|
93
|
+
}
|
|
94
|
+
// Backtick substitution (only in NORMAL or DOUBLE_QUOTE)
|
|
95
|
+
if (ch === "`" &&
|
|
96
|
+
(tracker.state === "NORMAL" || tracker.state === "DOUBLE_QUOTE")) {
|
|
97
|
+
return "Backtick substitution detected";
|
|
98
|
+
}
|
|
99
|
+
// Process substitution: <( or >(
|
|
100
|
+
if ((ch === "<" || ch === ">") &&
|
|
101
|
+
i + 1 < command.length &&
|
|
102
|
+
command[i + 1] === "(" &&
|
|
103
|
+
tracker.state === "NORMAL") {
|
|
104
|
+
return "Process substitution detected";
|
|
105
|
+
}
|
|
106
|
+
// Zsh process substitution: =( at word boundary
|
|
107
|
+
if (ch === "=" &&
|
|
108
|
+
i + 1 < command.length &&
|
|
109
|
+
command[i + 1] === "(" &&
|
|
110
|
+
tracker.state === "NORMAL") {
|
|
111
|
+
return "Zsh process substitution =(…) detected";
|
|
112
|
+
}
|
|
113
|
+
// Zsh equals expansion: =cmd at word start (not VAR=val)
|
|
114
|
+
if (ch === "=" &&
|
|
115
|
+
tracker.state === "NORMAL" &&
|
|
116
|
+
(i === 0 || /[\s;&|]/.test(command[i - 1])) &&
|
|
117
|
+
i + 1 < command.length &&
|
|
118
|
+
/[a-zA-Z_]/.test(command[i + 1])) {
|
|
119
|
+
return "Zsh equals expansion (=cmd) detected";
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
tracker.feed(ch);
|
|
123
|
+
}
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
126
|
+
// --------------------------------------------------------------------------
|
|
127
|
+
// Compound command splitting
|
|
128
|
+
// --------------------------------------------------------------------------
|
|
129
|
+
/**
|
|
130
|
+
* Split a shell command on compound operators (&&, ||, ;, |, &) with
|
|
131
|
+
* quote awareness. Returns individual command segments for independent
|
|
132
|
+
* validation.
|
|
133
|
+
*
|
|
134
|
+
* @param command - The raw shell command to split
|
|
135
|
+
* @returns Array of command segments (trimmed, non-empty)
|
|
136
|
+
*/
|
|
137
|
+
export function splitCommandSegments(command) {
|
|
138
|
+
const tracker = new ShellQuoteTracker();
|
|
139
|
+
const segments = [];
|
|
140
|
+
let current = "";
|
|
141
|
+
for (let i = 0; i < command.length; i++) {
|
|
142
|
+
const ch = command[i];
|
|
143
|
+
if (!tracker.escaped && tracker.state === "NORMAL") {
|
|
144
|
+
// Two-char operators first
|
|
145
|
+
if (i + 1 < command.length) {
|
|
146
|
+
const two = command[i] + command[i + 1];
|
|
147
|
+
if (two === "&&" || two === "||") {
|
|
148
|
+
segments.push(current);
|
|
149
|
+
current = "";
|
|
150
|
+
i++; // skip second char
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
// Single-char operators
|
|
155
|
+
if (ch === ";" || ch === "|" || ch === "&") {
|
|
156
|
+
segments.push(current);
|
|
157
|
+
current = "";
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
tracker.feed(ch);
|
|
162
|
+
current += ch;
|
|
163
|
+
}
|
|
164
|
+
segments.push(current);
|
|
165
|
+
return segments.filter((s) => s.trim() !== "").map((s) => s.trim());
|
|
166
|
+
}
|
|
167
|
+
// --------------------------------------------------------------------------
|
|
168
|
+
// Dangerous pipe target detection
|
|
169
|
+
// --------------------------------------------------------------------------
|
|
170
|
+
/**
|
|
171
|
+
* Commands that are dangerous as pipe targets (data flows INTO them).
|
|
172
|
+
* Standalone use is legitimate -- only the pipe-to pattern is suspicious.
|
|
173
|
+
*/
|
|
174
|
+
const DANGEROUS_PIPE_TARGETS = new Set([
|
|
175
|
+
// Shell interpreters (migrated from Category C denylist)
|
|
176
|
+
"sh", "bash", "zsh", "dash", "fish", "csh", "tcsh", "ksh",
|
|
177
|
+
// Network exfiltration tools
|
|
178
|
+
"nc", "ncat", "socat", "telnet", "curl", "wget",
|
|
179
|
+
]);
|
|
180
|
+
/**
|
|
181
|
+
* Detect pipes to dangerous targets (shell interpreters, network tools).
|
|
182
|
+
* Runs on the FULL command before compound splitting, because splitCommandSegments
|
|
183
|
+
* splits on | and removes the pipe context from individual segments.
|
|
184
|
+
*
|
|
185
|
+
* @param command - The full raw shell command
|
|
186
|
+
* @returns Error message if dangerous pipe target found, null if safe
|
|
187
|
+
*/
|
|
188
|
+
export function detectDangerousPipeTargets(command) {
|
|
189
|
+
if (!command.includes("|"))
|
|
190
|
+
return null;
|
|
191
|
+
const segments = splitCommandSegments(command);
|
|
192
|
+
for (let i = 1; i < segments.length; i++) {
|
|
193
|
+
const segment = segments[i].trimStart();
|
|
194
|
+
const firstWord = segment.split(/\s/)[0];
|
|
195
|
+
const basename = firstWord.includes("/")
|
|
196
|
+
? firstWord.split("/").pop()
|
|
197
|
+
: firstWord;
|
|
198
|
+
if (DANGEROUS_PIPE_TARGETS.has(basename)) {
|
|
199
|
+
return `Pipe to '${basename}' detected (potential data exfiltration or remote code execution). Piping data to shell interpreters or network tools is blocked.`;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return null;
|
|
203
|
+
}
|
|
204
|
+
// --------------------------------------------------------------------------
|
|
205
|
+
// Constants
|
|
206
|
+
// --------------------------------------------------------------------------
|
|
207
|
+
/**
|
|
208
|
+
* Environment variables safe to pass through to exec subprocesses.
|
|
209
|
+
* Any env var NOT in this set is blocked when passed via the `env` parameter.
|
|
210
|
+
* Allowlist (fail-closed): new attack variables are blocked by default.
|
|
211
|
+
*/
|
|
212
|
+
export const SAFE_ENV_VARS = new Set([
|
|
213
|
+
// Locale & display
|
|
214
|
+
"LANG", "LANGUAGE", "LC_ALL", "LC_CTYPE", "LC_MESSAGES",
|
|
215
|
+
"LC_COLLATE", "LC_NUMERIC", "LC_TIME", "LC_MONETARY",
|
|
216
|
+
"TZ", "TERM", "COLORTERM", "FORCE_COLOR", "NO_COLOR",
|
|
217
|
+
"COLUMNS", "LINES",
|
|
218
|
+
// Runtime behavior (non-executable)
|
|
219
|
+
"NODE_ENV", "RUST_BACKTRACE", "RUST_LOG",
|
|
220
|
+
"PYTHONDONTWRITEBYTECODE", "PYTHONUNBUFFERED",
|
|
221
|
+
"DEBUG", "VERBOSE", "LOG_LEVEL", "CI",
|
|
222
|
+
// Build/package config (path-setting, no code execution)
|
|
223
|
+
"HOME", "USER", "SHELL", "PATH",
|
|
224
|
+
"TMPDIR", "XDG_CONFIG_HOME", "XDG_DATA_HOME", "XDG_CACHE_HOME",
|
|
225
|
+
// Platform signals
|
|
226
|
+
"LS_COLORS", "CLICOLOR", "CLICOLOR_FORCE",
|
|
227
|
+
]);
|
|
228
|
+
export const SAFE_ENV_PREFIXES = ["LC_"];
|
|
229
|
+
/**
|
|
230
|
+
* Command patterns that are blocked before spawning. Defense-in-depth only --
|
|
231
|
+
* the actual security boundary is the builtinTools.exec toggle and tool policy.
|
|
232
|
+
*/
|
|
233
|
+
export const DANGEROUS_COMMAND_PATTERNS = [
|
|
234
|
+
// Category A -- Destructive filesystem operations
|
|
235
|
+
{
|
|
236
|
+
pattern: /\brm\s+(-[a-zA-Z]*[rR][a-zA-Z]*\s+)+(\/|~)/,
|
|
237
|
+
reason: "Recursive delete on root or home directory",
|
|
238
|
+
},
|
|
239
|
+
{ pattern: /\bmkfs\b/, reason: "Filesystem format command" },
|
|
240
|
+
{
|
|
241
|
+
pattern: /\bdd\b.*\bof\s*=\s*\/dev\//,
|
|
242
|
+
reason: "Direct write to block device",
|
|
243
|
+
},
|
|
244
|
+
// Category B -- Permission/system compromise
|
|
245
|
+
{
|
|
246
|
+
pattern: /\bchmod\b.*\b777\b.*\//,
|
|
247
|
+
reason: "World-writable permissions on system path",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
pattern: /:\(\)\s*\{.*\|.*&\s*\}/,
|
|
251
|
+
reason: "Fork bomb pattern",
|
|
252
|
+
},
|
|
253
|
+
// Category C -- Migrated to detectDangerousPipeTargets()
|
|
254
|
+
// Category D -- Sensitive file access
|
|
255
|
+
{
|
|
256
|
+
pattern: /\/etc\/(passwd|shadow|sudoers)/,
|
|
257
|
+
reason: "Access to sensitive system file",
|
|
258
|
+
},
|
|
259
|
+
{ pattern: /\/\.ssh\//, reason: "Access to SSH key directory" },
|
|
260
|
+
{
|
|
261
|
+
pattern: /\.comis\/\.env/,
|
|
262
|
+
reason: "Access to secret envfile is blocked. Use the gateway tool with action='env_list' " +
|
|
263
|
+
"to see which secret names are configured (names only, no values). " +
|
|
264
|
+
"Secret values are never returned to the agent.",
|
|
265
|
+
},
|
|
266
|
+
// Category E -- Config file modification bypass
|
|
267
|
+
// Defense-in-depth: the agent system prompt is the primary guard.
|
|
268
|
+
// These regexes can be bypassed via quoting, variable expansion, etc.
|
|
269
|
+
// The real security boundary is the tool policy toggle.
|
|
270
|
+
// Note: plain `cat` (read) is intentionally excluded -- only write tools are blocked.
|
|
271
|
+
{
|
|
272
|
+
pattern: /(?:sed|awk|tee|cp|mv|perl|ruby)\b.*(?:\.comis\/config|comis.*config\.yaml|config\.local\.yaml)/,
|
|
273
|
+
reason: "Direct config file modification bypasses validation and audit. Use gateway tool's config.patch instead.",
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
pattern: /(?:echo|cat)\s*>.*(?:\.comis\/config|comis.*config\.yaml|config\.local\.yaml)/,
|
|
277
|
+
reason: "Direct config file modification bypasses validation and audit. Use gateway tool's config.patch instead.",
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
pattern: /(?:\.comis\/config|comis.*config\.yaml|config\.local\.yaml).*(?:sed|awk|tee|cat\s*>|echo\s*>)/,
|
|
281
|
+
reason: "Direct config file modification bypasses validation and audit. Use gateway tool's config.patch instead.",
|
|
282
|
+
},
|
|
283
|
+
// Category G -- Code execution builtins
|
|
284
|
+
{ pattern: /\beval\s/, reason: "Shell eval executes arbitrary code" },
|
|
285
|
+
{
|
|
286
|
+
pattern: /\bsource\s/,
|
|
287
|
+
reason: "Shell source executes arbitrary script file",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
pattern: /^\.\s+\//,
|
|
291
|
+
reason: "POSIX source (.) executes arbitrary script file",
|
|
292
|
+
},
|
|
293
|
+
// Category H -- Indirect command execution
|
|
294
|
+
{
|
|
295
|
+
pattern: /\bfind\b.*-exec\s/,
|
|
296
|
+
reason: "find -exec can execute arbitrary commands",
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
pattern: /\bxargs\s+(?!-[0tI])(?:sudo\s+)?(?:rm|chmod|chown|mv|shred|dd|mkfs)\b/,
|
|
300
|
+
reason: "xargs piping to dangerous command",
|
|
301
|
+
},
|
|
302
|
+
// Category J -- Shell encoding bypass
|
|
303
|
+
{
|
|
304
|
+
pattern: /\$'[^']*\\[xuU0-7]/,
|
|
305
|
+
reason: "ANSI-C quoting ($'...') with escape sequences can encode arbitrary commands, bypassing command validation",
|
|
306
|
+
},
|
|
307
|
+
// Category K -- Sed dangerous operations
|
|
308
|
+
{
|
|
309
|
+
pattern: /\bsed\b.*'(?:\s*e\b|[^']*;\s*e\b)/,
|
|
310
|
+
reason: "sed 'e' command executes pattern space as shell command",
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
pattern: /\bsed\b.*'(?:\s*w\s|[^']*;\s*w\s)/,
|
|
314
|
+
reason: "sed 'w' command writes pattern space to arbitrary file",
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
pattern: /\bsed\b.*'[^']*\/[ew]\b/,
|
|
318
|
+
reason: "sed substitution with 'e' (execute) or 'w' (write) flag",
|
|
319
|
+
},
|
|
320
|
+
// Category F -- Secret file modification bypass (write-specific patterns)
|
|
321
|
+
// .env files contain credentials managed by SecretManager. Direct edits
|
|
322
|
+
// bypass secret redaction, audit logging, and can leak credentials.
|
|
323
|
+
// Note: Category D already blocks all access to .comis/.env (read + write).
|
|
324
|
+
// These patterns are kept as defense-in-depth for write-specific error messages.
|
|
325
|
+
{
|
|
326
|
+
pattern: /(?:sed|awk|tee|cp|mv|perl|ruby)\b.*\.comis\/\.env/,
|
|
327
|
+
reason: "Direct .env file modification bypasses SecretManager and audit. Credentials must be managed through secure channels.",
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
pattern: /(?:echo|cat)\b.*>.*\.comis\/\.env/,
|
|
331
|
+
reason: "Direct .env file modification bypasses SecretManager and audit. Credentials must be managed through secure channels.",
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
pattern: /\.comis\/\.env.*(?:sed|awk|tee|cat\s*>|echo\s*>)/,
|
|
335
|
+
reason: "Direct .env file modification bypasses SecretManager and audit. Credentials must be managed through secure channels.",
|
|
336
|
+
},
|
|
337
|
+
];
|
|
338
|
+
// --------------------------------------------------------------------------
|
|
339
|
+
// Dangerous path protection constants
|
|
340
|
+
// --------------------------------------------------------------------------
|
|
341
|
+
/** Mutation commands that are blocked from targeting protected system paths. */
|
|
342
|
+
export const MUTATION_COMMANDS = new Set([
|
|
343
|
+
"rm", "chmod", "chown", "mv", "cp", "truncate", "shred", "tee", "install", "ln",
|
|
344
|
+
]);
|
|
345
|
+
/** Exact system paths that mutation commands cannot target. */
|
|
346
|
+
export const PROTECTED_PATHS = new Set([
|
|
347
|
+
"/", "/bin", "/sbin", "/usr/bin", "/usr/sbin",
|
|
348
|
+
"/boot", "/dev", "/etc",
|
|
349
|
+
"/lib", "/lib64", "/lib32",
|
|
350
|
+
"/opt", "/proc", "/root", "/sys",
|
|
351
|
+
"/usr", "/var", "/home", "/tmp",
|
|
352
|
+
"/var/log", "/var/tmp", "/usr/local",
|
|
353
|
+
]);
|
|
354
|
+
/** Path prefixes where mutation commands are blocked on any subpath. */
|
|
355
|
+
export const PROTECTED_PATH_PREFIXES = [
|
|
356
|
+
"/etc/",
|
|
357
|
+
"/boot/",
|
|
358
|
+
"/proc/",
|
|
359
|
+
"/sys/",
|
|
360
|
+
"/usr/bin/",
|
|
361
|
+
"/usr/sbin/",
|
|
362
|
+
"/usr/local/",
|
|
363
|
+
"/var/log/",
|
|
364
|
+
"/var/tmp/",
|
|
365
|
+
];
|
|
366
|
+
/**
|
|
367
|
+
* Check whether a command segment contains a mutation command targeting a
|
|
368
|
+
* protected system path. Path traversal via `..` is normalized before checking.
|
|
369
|
+
* Only absolute paths and `~`-prefixed paths are evaluated -- relative paths
|
|
370
|
+
* pass through unchecked.
|
|
371
|
+
*
|
|
372
|
+
* @param segment - A single command segment (after compound splitting)
|
|
373
|
+
* @returns Error message if a protected path is targeted, null if safe
|
|
374
|
+
*/
|
|
375
|
+
export function validateDangerousPaths(segment) {
|
|
376
|
+
const words = segment.trim().split(/\s+/);
|
|
377
|
+
if (words.length === 0)
|
|
378
|
+
return null;
|
|
379
|
+
// Extract base command (strip path prefix like /usr/bin/rm -> rm)
|
|
380
|
+
const baseCmd = words[0].includes("/") ? words[0].split("/").pop() : words[0];
|
|
381
|
+
if (!MUTATION_COMMANDS.has(baseCmd))
|
|
382
|
+
return null;
|
|
383
|
+
// Check positional args (skip flags starting with -)
|
|
384
|
+
for (let i = 1; i < words.length; i++) {
|
|
385
|
+
const arg = words[i];
|
|
386
|
+
if (arg.startsWith("-"))
|
|
387
|
+
continue;
|
|
388
|
+
// Only check absolute paths and ~-prefixed paths
|
|
389
|
+
if (!arg.startsWith("/") && !arg.startsWith("~"))
|
|
390
|
+
continue;
|
|
391
|
+
// Normalize: expand ~ to homedir, resolve .. via path.resolve()
|
|
392
|
+
let normalized = arg;
|
|
393
|
+
if (normalized.startsWith("~")) {
|
|
394
|
+
normalized = normalized.replace(/^~/, os.homedir());
|
|
395
|
+
}
|
|
396
|
+
normalized = path.resolve(normalized);
|
|
397
|
+
// Check exact match against PROTECTED_PATHS
|
|
398
|
+
if (PROTECTED_PATHS.has(normalized)) {
|
|
399
|
+
return `Mutation command '${baseCmd}' targets protected path '${normalized}'`;
|
|
400
|
+
}
|
|
401
|
+
// Check prefix match against PROTECTED_PATH_PREFIXES
|
|
402
|
+
for (const prefix of PROTECTED_PATH_PREFIXES) {
|
|
403
|
+
if (normalized.startsWith(prefix)) {
|
|
404
|
+
return `Mutation command '${baseCmd}' targets protected path '${normalized}' (under ${prefix})`;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
return null;
|
|
409
|
+
}
|
|
410
|
+
// --------------------------------------------------------------------------
|
|
411
|
+
// Redirect target protection constants
|
|
412
|
+
// --------------------------------------------------------------------------
|
|
413
|
+
/**
|
|
414
|
+
* Additional path prefixes checked ONLY for redirect targets.
|
|
415
|
+
* Stored with ~ prefix -- resolved to actual homedir at validation time.
|
|
416
|
+
*/
|
|
417
|
+
const REDIRECT_SENSITIVE_PATTERNS = [
|
|
418
|
+
"~/.ssh/",
|
|
419
|
+
"~/.gnupg/",
|
|
420
|
+
"~/.comis/",
|
|
421
|
+
"~/.config/",
|
|
422
|
+
"~/.bashrc",
|
|
423
|
+
"~/.bash_profile",
|
|
424
|
+
"~/.profile",
|
|
425
|
+
"~/.zshrc",
|
|
426
|
+
];
|
|
427
|
+
/** Exported for testing -- the raw ~ patterns for redirect-sensitive paths. */
|
|
428
|
+
export const REDIRECT_SENSITIVE_PREFIXES = REDIRECT_SENSITIVE_PATTERNS;
|
|
429
|
+
/**
|
|
430
|
+
* Check whether a command segment contains output redirections (>, >>, 2>, &>)
|
|
431
|
+
* targeting protected system paths or sensitive user paths. Quote-aware via
|
|
432
|
+
* ShellQuoteTracker -- redirects inside single/double quotes are ignored.
|
|
433
|
+
*
|
|
434
|
+
* @param segment - A single command segment (after compound splitting)
|
|
435
|
+
* @returns Error message if a protected redirect target found, null if safe
|
|
436
|
+
*/
|
|
437
|
+
export function validateRedirectTargets(segment) {
|
|
438
|
+
const tracker = new ShellQuoteTracker();
|
|
439
|
+
const homedir = os.homedir();
|
|
440
|
+
for (let i = 0; i < segment.length; i++) {
|
|
441
|
+
const ch = segment[i];
|
|
442
|
+
// Only detect redirects in NORMAL state (not inside quotes)
|
|
443
|
+
if (!tracker.escaped && tracker.state === "NORMAL") {
|
|
444
|
+
let isRedirect = false;
|
|
445
|
+
let skipChars = 0;
|
|
446
|
+
if (ch === ">" && (i === 0 || segment[i - 1] !== "\\")) {
|
|
447
|
+
// > or >>
|
|
448
|
+
isRedirect = true;
|
|
449
|
+
if (i + 1 < segment.length && segment[i + 1] === ">") {
|
|
450
|
+
skipChars = 1; // >>
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
else if (ch === "&" && i + 1 < segment.length && segment[i + 1] === ">") {
|
|
454
|
+
// &> or &>>
|
|
455
|
+
isRedirect = true;
|
|
456
|
+
skipChars = 1;
|
|
457
|
+
if (i + 2 < segment.length && segment[i + 2] === ">") {
|
|
458
|
+
skipChars = 2;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
else if (ch === "2" && i + 1 < segment.length && segment[i + 1] === ">") {
|
|
462
|
+
// 2> or 2>>
|
|
463
|
+
isRedirect = true;
|
|
464
|
+
skipChars = 1;
|
|
465
|
+
if (i + 2 < segment.length && segment[i + 2] === ">") {
|
|
466
|
+
skipChars = 2;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
if (isRedirect) {
|
|
470
|
+
// Skip the operator characters
|
|
471
|
+
let targetStart = i + 1 + skipChars;
|
|
472
|
+
// Skip whitespace after operator
|
|
473
|
+
while (targetStart < segment.length && segment[targetStart] === " ") {
|
|
474
|
+
targetStart++;
|
|
475
|
+
}
|
|
476
|
+
// Extract target path (until whitespace or end)
|
|
477
|
+
let targetEnd = targetStart;
|
|
478
|
+
while (targetEnd < segment.length && segment[targetEnd] !== " ") {
|
|
479
|
+
targetEnd++;
|
|
480
|
+
}
|
|
481
|
+
const target = segment.slice(targetStart, targetEnd);
|
|
482
|
+
if (target && (target.startsWith("/") || target.startsWith("~"))) {
|
|
483
|
+
// Normalize path: expand ~ and resolve traversals
|
|
484
|
+
let normalized = target;
|
|
485
|
+
if (normalized.startsWith("~")) {
|
|
486
|
+
normalized = normalized.replace(/^~/, homedir);
|
|
487
|
+
}
|
|
488
|
+
normalized = path.resolve(normalized);
|
|
489
|
+
// Check against PROTECTED_PATHS (exact match)
|
|
490
|
+
if (PROTECTED_PATHS.has(normalized)) {
|
|
491
|
+
return `Output redirection targets protected path '${normalized}'`;
|
|
492
|
+
}
|
|
493
|
+
// Check against PROTECTED_PATH_PREFIXES (system directories)
|
|
494
|
+
for (const prefix of PROTECTED_PATH_PREFIXES) {
|
|
495
|
+
if (normalized.startsWith(prefix)) {
|
|
496
|
+
return `Output redirection targets protected path '${normalized}' (under ${prefix})`;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
// Check against REDIRECT_SENSITIVE_PATTERNS (user paths)
|
|
500
|
+
for (const pattern of REDIRECT_SENSITIVE_PATTERNS) {
|
|
501
|
+
let resolvedPattern = pattern;
|
|
502
|
+
if (resolvedPattern.startsWith("~")) {
|
|
503
|
+
resolvedPattern = resolvedPattern.replace(/^~/, homedir);
|
|
504
|
+
}
|
|
505
|
+
// For directory patterns (ending with /), check startsWith
|
|
506
|
+
// For exact file patterns (like ~/.bashrc), check equality or startsWith
|
|
507
|
+
if (normalized === resolvedPattern || normalized.startsWith(resolvedPattern)) {
|
|
508
|
+
return `Output redirection targets sensitive user path '${normalized}'`;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
tracker.feed(ch);
|
|
515
|
+
}
|
|
516
|
+
return null;
|
|
517
|
+
}
|
|
518
|
+
// --------------------------------------------------------------------------
|
|
519
|
+
// Gate 0: Invisible character sanitization
|
|
520
|
+
// --------------------------------------------------------------------------
|
|
521
|
+
/**
|
|
522
|
+
* Regex matching invisible or ambiguous Unicode characters that can bypass
|
|
523
|
+
* regex-based validation. Ranges carefully exclude tab (0x09) and CR (0x0d).
|
|
524
|
+
*
|
|
525
|
+
* Ranges:
|
|
526
|
+
* - \x00-\x08: C0 controls before tab
|
|
527
|
+
* - \x0a-\x0c: LF, VT, FF (newline in command = injection vector)
|
|
528
|
+
* - \x0e-\x1f: C0 controls after CR (SO, SI, DLE, ..., US)
|
|
529
|
+
* - \u00A0: non-breaking space
|
|
530
|
+
* - \u00AD: soft hyphen
|
|
531
|
+
* - \u200B-\u200F: zero-width space, ZWNJ, ZWJ, LTR mark, RTL mark
|
|
532
|
+
* - \u2060: word joiner
|
|
533
|
+
* - \uFEFF: BOM / zero-width no-break space
|
|
534
|
+
* - \x7F: DEL character
|
|
535
|
+
* - \u1680: Ogham space mark
|
|
536
|
+
* - \u2000-\u200A: en/em/thin/hair/figure spaces
|
|
537
|
+
* - \u2028: line separator
|
|
538
|
+
* - \u2029: paragraph separator
|
|
539
|
+
* - \u202F: narrow no-break space
|
|
540
|
+
* - \u205F: medium mathematical space
|
|
541
|
+
* - \u3000: ideographic space
|
|
542
|
+
*/
|
|
543
|
+
const INVISIBLE_CHAR_REGEX =
|
|
544
|
+
// eslint-disable-next-line no-control-regex
|
|
545
|
+
/[\x00-\x08\x0a-\x0c\x0e-\x1f\x7F\u00A0\u00AD\u1680\u200B-\u200F\u2000-\u200A\u2028\u2029\u202F\u205F\u2060\u3000\uFEFF]/;
|
|
546
|
+
/**
|
|
547
|
+
* Reject commands containing invisible or ambiguous characters that can bypass
|
|
548
|
+
* regex-based validation. First gate in the validation pipeline.
|
|
549
|
+
*
|
|
550
|
+
* @param command - The raw shell command to sanitize
|
|
551
|
+
* @returns Error message if dangerous characters found, null if clean
|
|
552
|
+
*/
|
|
553
|
+
/**
|
|
554
|
+
* Detect shell patterns where the LLM is trying to write a file
|
|
555
|
+
* (cat/tee/echo/printf heredoc, or a `>` redirection). Used to swap
|
|
556
|
+
* the Gate-0 newline-rejection hint toward the `write` tool instead of
|
|
557
|
+
* `python3 -` with stdin — pointing the LLM at the correct alternative
|
|
558
|
+
* prevents it from retrying more cat-heredocs (observed NVDA run:
|
|
559
|
+
* 12 consecutive `[invalid_value]` failures before the exec tool was
|
|
560
|
+
* circuit-broken).
|
|
561
|
+
*/
|
|
562
|
+
const FILE_WRITE_HEURISTIC = /^\s*(?:cat|tee|echo|printf)\b|>\s*["']?[^|<&\s]+\s*(?:<<|$)/;
|
|
563
|
+
export function sanitizeCommandInput(command) {
|
|
564
|
+
const match = INVISIBLE_CHAR_REGEX.exec(command);
|
|
565
|
+
if (match) {
|
|
566
|
+
const cp = match[0].codePointAt(0);
|
|
567
|
+
const hex = cp.toString(16).toUpperCase().padStart(4, "0");
|
|
568
|
+
let msg = `Command contains invisible/ambiguous character U+${hex} at position ${match.index}. This can bypass security validation. Remove the character and retry.`;
|
|
569
|
+
if (cp === 0x0a) {
|
|
570
|
+
// Disambiguate: is the LLM writing a file (use `write` tool) or
|
|
571
|
+
// running a multi-line script (use python3/node/bash with stdin)?
|
|
572
|
+
// The heuristic fires on the line the newline was rejected on, so
|
|
573
|
+
// the hint matches the LLM's actual intent.
|
|
574
|
+
const looksLikeFileWrite = FILE_WRITE_HEURISTIC.test(command);
|
|
575
|
+
msg += looksLikeFileWrite
|
|
576
|
+
? ` To write files, use the 'write' tool (or 'edit' for targeted changes) instead of a shell heredoc in exec.`
|
|
577
|
+
: ` For multi-line scripts, use command='python3 -' (or 'node -', 'bash -') with the 'input' parameter for the script body.`;
|
|
578
|
+
}
|
|
579
|
+
return msg;
|
|
580
|
+
}
|
|
581
|
+
return null;
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* Auto-extract heredoc patterns into command + input before security validation.
|
|
585
|
+
*
|
|
586
|
+
* LLMs frequently send heredoc syntax like `python3 - <<'PY'\nscript\nPY` to the
|
|
587
|
+
* exec tool's command parameter. Gate 0 blocks newlines in commands (correctly,
|
|
588
|
+
* for injection prevention). This function detects the heredoc pattern and splits
|
|
589
|
+
* it into a clean command (`python3 -`) and input (the script body), allowing
|
|
590
|
+
* the existing `input` stdin parameter to carry the script content.
|
|
591
|
+
*
|
|
592
|
+
* Only matches known stdin-capable interpreters followed by ` -` (stdin marker).
|
|
593
|
+
* Returns null if no heredoc detected or if input is already provided.
|
|
594
|
+
*/
|
|
595
|
+
export function extractHeredoc(command, input) {
|
|
596
|
+
if (input)
|
|
597
|
+
return null;
|
|
598
|
+
const match = command.match(/^((?:python3?|node|bash|sh|ruby|perl|php)\s+-)\s*<<-?['"]?([A-Za-z_]\w*)['"]?\n([\s\S]*)\n\2\s*$/);
|
|
599
|
+
if (!match)
|
|
600
|
+
return null;
|
|
601
|
+
return { command: match[1], input: match[3] };
|
|
602
|
+
}
|
|
603
|
+
// --------------------------------------------------------------------------
|
|
604
|
+
// Gate 1: Command denylist (moved from exec-tool.ts)
|
|
605
|
+
// --------------------------------------------------------------------------
|
|
606
|
+
/**
|
|
607
|
+
* Validate a command against the dangerous command denylist.
|
|
608
|
+
* Returns an error message if blocked, null if allowed.
|
|
609
|
+
*
|
|
610
|
+
* This is defense-in-depth, not a sandbox. The actual security boundary
|
|
611
|
+
* is the builtinTools.exec toggle and tool policy. Pattern matching on
|
|
612
|
+
* raw command strings can be bypassed via shell quoting/encoding.
|
|
613
|
+
*/
|
|
614
|
+
export function validateCommand(command) {
|
|
615
|
+
for (const { pattern, reason } of DANGEROUS_COMMAND_PATTERNS) {
|
|
616
|
+
if (pattern.test(command)) {
|
|
617
|
+
return `Command blocked: ${reason}`;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
return null;
|
|
621
|
+
}
|
|
622
|
+
// --------------------------------------------------------------------------
|
|
623
|
+
// Gate 2: Environment variable validation (moved from exec-tool.ts)
|
|
624
|
+
// --------------------------------------------------------------------------
|
|
625
|
+
/**
|
|
626
|
+
* Validate environment variables against the security allowlist.
|
|
627
|
+
* Only variables in SAFE_ENV_VARS (or matching SAFE_ENV_PREFIXES)
|
|
628
|
+
* are permitted. Returns an error message for the first blocked
|
|
629
|
+
* variable, null if all are safe.
|
|
630
|
+
*/
|
|
631
|
+
export function validateEnvVars(env) {
|
|
632
|
+
for (const key of Object.keys(env)) {
|
|
633
|
+
if (SAFE_ENV_VARS.has(key))
|
|
634
|
+
continue;
|
|
635
|
+
if (SAFE_ENV_PREFIXES.some((prefix) => key.startsWith(prefix)))
|
|
636
|
+
continue;
|
|
637
|
+
return `Environment variable '${key}' is not in the allowed list. Only safe variables (locale, display, build config) can be overridden.`;
|
|
638
|
+
}
|
|
639
|
+
return null;
|
|
640
|
+
}
|
|
641
|
+
// --------------------------------------------------------------------------
|
|
642
|
+
// Gate 6: IFS injection detection
|
|
643
|
+
// --------------------------------------------------------------------------
|
|
644
|
+
/**
|
|
645
|
+
* Detect IFS variable usage that could bypass argument splitting security.
|
|
646
|
+
* Blocks $IFS direct references and ${...IFS...} parameter expansions.
|
|
647
|
+
*
|
|
648
|
+
* @param command - The raw shell command to analyze
|
|
649
|
+
* @returns Error message if IFS injection found, null if safe
|
|
650
|
+
*/
|
|
651
|
+
export function detectIFSInjection(command) {
|
|
652
|
+
if (/\$IFS|\$\{[^}]*IFS|\bIFS=/.test(command)) {
|
|
653
|
+
return "Command contains IFS variable usage which could bypass security validation.";
|
|
654
|
+
}
|
|
655
|
+
return null;
|
|
656
|
+
}
|
|
657
|
+
// --------------------------------------------------------------------------
|
|
658
|
+
// Gate 7: Zsh dangerous commands detection
|
|
659
|
+
// --------------------------------------------------------------------------
|
|
660
|
+
/** Zsh-specific builtins and modules that can compromise the system. */
|
|
661
|
+
const ZSH_DANGEROUS_COMMANDS = new Set([
|
|
662
|
+
"zmodload", "emulate", "sysopen", "sysread", "syswrite", "sysseek",
|
|
663
|
+
"zpty", "ztcp", "zsocket",
|
|
664
|
+
"zf_rm", "zf_mv", "zf_ln", "zf_chmod", "zf_chown", "zf_mkdir", "zf_rmdir", "zf_chgrp",
|
|
665
|
+
]);
|
|
666
|
+
/** Zsh precommand modifiers that precede the actual command. */
|
|
667
|
+
const ZSH_PRECOMMAND_MODIFIERS = new Set([
|
|
668
|
+
"command", "builtin", "noglob", "nocorrect",
|
|
669
|
+
]);
|
|
670
|
+
/**
|
|
671
|
+
* Detect Zsh-specific dangerous commands in a command segment.
|
|
672
|
+
* Strips env assignments (VAR=val) and precommand modifiers (command, builtin,
|
|
673
|
+
* noglob, nocorrect) to find the base command. Also blocks `fc -e` (history
|
|
674
|
+
* command with execute flag).
|
|
675
|
+
*
|
|
676
|
+
* @param segment - A single command segment (after compound splitting)
|
|
677
|
+
* @returns Error message if dangerous Zsh command found, null if safe
|
|
678
|
+
*/
|
|
679
|
+
export function detectZshDangerousCommands(segment) {
|
|
680
|
+
const words = segment.trim().split(/\s+/);
|
|
681
|
+
let baseCmd;
|
|
682
|
+
for (const word of words) {
|
|
683
|
+
// Skip VAR=value env assignments
|
|
684
|
+
if (/^[A-Za-z_]\w*=/.test(word))
|
|
685
|
+
continue;
|
|
686
|
+
// Skip precommand modifiers
|
|
687
|
+
if (ZSH_PRECOMMAND_MODIFIERS.has(word))
|
|
688
|
+
continue;
|
|
689
|
+
baseCmd = word;
|
|
690
|
+
break;
|
|
691
|
+
}
|
|
692
|
+
if (!baseCmd)
|
|
693
|
+
return null;
|
|
694
|
+
if (ZSH_DANGEROUS_COMMANDS.has(baseCmd)) {
|
|
695
|
+
return `Zsh dangerous command '${baseCmd}' is blocked.`;
|
|
696
|
+
}
|
|
697
|
+
// Block fc -e (history execute)
|
|
698
|
+
if (baseCmd === "fc" && /\s-\S*e/.test(segment)) {
|
|
699
|
+
return "Zsh 'fc -e' (history execute) is blocked.";
|
|
700
|
+
}
|
|
701
|
+
return null;
|
|
702
|
+
}
|
|
703
|
+
// --------------------------------------------------------------------------
|
|
704
|
+
// Gate 8: Brace expansion detection
|
|
705
|
+
// --------------------------------------------------------------------------
|
|
706
|
+
/**
|
|
707
|
+
* Check if position in string is backslash-escaped by counting consecutive
|
|
708
|
+
* backslashes before it. Odd count = escaped.
|
|
709
|
+
*/
|
|
710
|
+
function isEscaped(content, pos) {
|
|
711
|
+
let count = 0;
|
|
712
|
+
let i = pos - 1;
|
|
713
|
+
while (i >= 0 && content[i] === "\\") {
|
|
714
|
+
count++;
|
|
715
|
+
i--;
|
|
716
|
+
}
|
|
717
|
+
return count % 2 === 1;
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* Detect dangerous brace expansion patterns in unquoted shell context.
|
|
721
|
+
* Blocks comma-based ({rm,-rf,/}) and range-based ({a..z}) patterns while
|
|
722
|
+
* allowing parameter expansion (${HOME}), quoted braces, and single braces
|
|
723
|
+
* without comma/dots.
|
|
724
|
+
*
|
|
725
|
+
* @param command - The raw shell command to analyze
|
|
726
|
+
* @returns Error message if dangerous brace expansion found, null if safe
|
|
727
|
+
*/
|
|
728
|
+
export function detectBraceExpansion(command) {
|
|
729
|
+
const tracker = new ShellQuoteTracker();
|
|
730
|
+
// Build string of unquoted content, tracking positions
|
|
731
|
+
let unquoted = "";
|
|
732
|
+
const posMap = []; // maps unquoted index -> original command index
|
|
733
|
+
for (let i = 0; i < command.length; i++) {
|
|
734
|
+
const ch = command[i];
|
|
735
|
+
const wasNormal = tracker.state === "NORMAL" && !tracker.escaped;
|
|
736
|
+
tracker.feed(ch);
|
|
737
|
+
if (wasNormal && tracker.state === "NORMAL") {
|
|
738
|
+
unquoted += ch;
|
|
739
|
+
posMap.push(i);
|
|
740
|
+
}
|
|
741
|
+
else if (wasNormal) {
|
|
742
|
+
// Character triggered state change (e.g., opening quote) -- not unquoted content
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
// Scan unquoted content for brace expansion patterns
|
|
746
|
+
let depth = 0;
|
|
747
|
+
let outerStart = -1;
|
|
748
|
+
for (let i = 0; i < unquoted.length; i++) {
|
|
749
|
+
const ch = unquoted[i];
|
|
750
|
+
if (ch === "{" && !isEscaped(unquoted, i)) {
|
|
751
|
+
// Skip parameter expansion: ${ is NOT brace expansion
|
|
752
|
+
if (i > 0 && unquoted[i - 1] === "$")
|
|
753
|
+
continue;
|
|
754
|
+
if (depth === 0)
|
|
755
|
+
outerStart = i;
|
|
756
|
+
depth++;
|
|
757
|
+
}
|
|
758
|
+
else if (ch === "}" && !isEscaped(unquoted, i) && depth > 0) {
|
|
759
|
+
depth--;
|
|
760
|
+
if (depth === 0 && outerStart >= 0) {
|
|
761
|
+
// Extract content between outermost braces
|
|
762
|
+
const inner = unquoted.slice(outerStart + 1, i);
|
|
763
|
+
// Check for comma-based expansion: {a,b} or {rm,-rf,/}
|
|
764
|
+
if (inner.includes(",")) {
|
|
765
|
+
return `Brace expansion with comma pattern detected: {${inner.slice(0, 40)}}`;
|
|
766
|
+
}
|
|
767
|
+
// Check for range expansion: {a..z} or {1..10}
|
|
768
|
+
if (/\.\./.test(inner)) {
|
|
769
|
+
return `Brace expansion with range pattern detected: {${inner.slice(0, 40)}}`;
|
|
770
|
+
}
|
|
771
|
+
outerStart = -1;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
return null;
|
|
776
|
+
}
|
|
777
|
+
// --------------------------------------------------------------------------
|
|
778
|
+
// Gate 11: /proc/environ access detection
|
|
779
|
+
// --------------------------------------------------------------------------
|
|
780
|
+
/**
|
|
781
|
+
* Detect access to /proc/{pid}/environ which leaks environment variables
|
|
782
|
+
* including secrets. Matches /proc/self/environ, /proc/1/environ, etc.
|
|
783
|
+
*
|
|
784
|
+
* @param command - The raw shell command to analyze
|
|
785
|
+
* @returns Error message if proc environ access found, null if safe
|
|
786
|
+
*/
|
|
787
|
+
export function detectProcEnvironAccess(command) {
|
|
788
|
+
if (/\/proc\/.*\/environ/.test(command)) {
|
|
789
|
+
return "Access to /proc/*/environ is blocked (environment variable exfiltration).";
|
|
790
|
+
}
|
|
791
|
+
return null;
|
|
792
|
+
}
|
|
793
|
+
// --------------------------------------------------------------------------
|
|
794
|
+
// Gate 12: Comment-quote desync detection
|
|
795
|
+
// --------------------------------------------------------------------------
|
|
796
|
+
/**
|
|
797
|
+
* Detect comment-quote desync patterns where an unquoted # character is
|
|
798
|
+
* followed by quote characters in the same line. This can be used to inject
|
|
799
|
+
* commands via multi-line input where the first line's comment contains
|
|
800
|
+
* unbalanced quotes that change parsing of subsequent lines.
|
|
801
|
+
*
|
|
802
|
+
* @param command - The raw shell command to analyze
|
|
803
|
+
* @returns Error message if comment-quote desync found, null if safe
|
|
804
|
+
*/
|
|
805
|
+
export function detectCommentQuoteDesync(command) {
|
|
806
|
+
const tracker = new ShellQuoteTracker();
|
|
807
|
+
for (let i = 0; i < command.length; i++) {
|
|
808
|
+
const ch = command[i];
|
|
809
|
+
// Check for unquoted # (shell comment start)
|
|
810
|
+
if (ch === "#" && tracker.state === "NORMAL" && !tracker.escaped) {
|
|
811
|
+
// Scan rest of line for quote characters
|
|
812
|
+
const rest = command.slice(i + 1);
|
|
813
|
+
const lineEnd = rest.indexOf("\n");
|
|
814
|
+
const commentContent = lineEnd >= 0 ? rest.slice(0, lineEnd) : rest;
|
|
815
|
+
if (/['"]/.test(commentContent)) {
|
|
816
|
+
return "Comment-quote desync detected: unquoted # followed by quote characters could enable injection.";
|
|
817
|
+
}
|
|
818
|
+
// Skip to end of line since it's a comment
|
|
819
|
+
if (lineEnd >= 0) {
|
|
820
|
+
i += lineEnd + 1;
|
|
821
|
+
continue;
|
|
822
|
+
}
|
|
823
|
+
break; // rest of command is comment
|
|
824
|
+
}
|
|
825
|
+
tracker.feed(ch);
|
|
826
|
+
}
|
|
827
|
+
return null;
|
|
828
|
+
}
|
|
829
|
+
// --------------------------------------------------------------------------
|
|
830
|
+
// Pipeline entry point
|
|
831
|
+
// --------------------------------------------------------------------------
|
|
832
|
+
/**
|
|
833
|
+
* Unified exec command validation pipeline. Composes all security gates in
|
|
834
|
+
* order: sanitize -> substitution -> pipe -> denylist -> IFS -> brace ->
|
|
835
|
+
* proc -> desync -> split+denylist+paths+redirects+zsh -> env.
|
|
836
|
+
* Used by both `createExecTool()` runtime and `tool-metadata-registry.ts`
|
|
837
|
+
* pre-flight registration.
|
|
838
|
+
*
|
|
839
|
+
* @param command - The raw shell command to validate
|
|
840
|
+
* @param env - Optional environment variable overrides to validate
|
|
841
|
+
* @returns Object with `message` and `blocker` fields if blocked, null if valid
|
|
842
|
+
*/
|
|
843
|
+
export function validateExecCommand(command, env) {
|
|
844
|
+
// Gate 0: invisible character sanitization
|
|
845
|
+
const sanitizeError = sanitizeCommandInput(command);
|
|
846
|
+
if (sanitizeError)
|
|
847
|
+
return { message: sanitizeError, blocker: "sanitize" };
|
|
848
|
+
// Gate 1: shell substitution detection
|
|
849
|
+
const subError = detectShellSubstitutions(command);
|
|
850
|
+
if (subError)
|
|
851
|
+
return { message: subError, blocker: "substitution" };
|
|
852
|
+
// Gate 2: dangerous pipe target detection (pre-split)
|
|
853
|
+
const pipeError = detectDangerousPipeTargets(command);
|
|
854
|
+
if (pipeError)
|
|
855
|
+
return { message: pipeError, blocker: "pipe" };
|
|
856
|
+
// Gate 2.5: pre-split denylist for patterns that span segment boundaries
|
|
857
|
+
// (e.g. fork bomb ":(){ :|:& };:" contains | and ; which are segment delimiters)
|
|
858
|
+
const preSplitError = validateCommand(command);
|
|
859
|
+
if (preSplitError)
|
|
860
|
+
return { message: preSplitError, blocker: "denylist" };
|
|
861
|
+
// Gate 6: IFS injection
|
|
862
|
+
const ifsError = detectIFSInjection(command);
|
|
863
|
+
if (ifsError)
|
|
864
|
+
return { message: ifsError, blocker: "ifs" };
|
|
865
|
+
// Gate 8: Brace expansion
|
|
866
|
+
const braceError = detectBraceExpansion(command);
|
|
867
|
+
if (braceError)
|
|
868
|
+
return { message: braceError, blocker: "brace" };
|
|
869
|
+
// Gate 11: /proc/environ access
|
|
870
|
+
const procError = detectProcEnvironAccess(command);
|
|
871
|
+
if (procError)
|
|
872
|
+
return { message: procError, blocker: "proc" };
|
|
873
|
+
// Gate 12: Comment-quote desync
|
|
874
|
+
const desyncError = detectCommentQuoteDesync(command);
|
|
875
|
+
if (desyncError)
|
|
876
|
+
return { message: desyncError, blocker: "desync" };
|
|
877
|
+
// Gate 3+4: split compound commands, validate each segment against denylist
|
|
878
|
+
const segments = splitCommandSegments(command);
|
|
879
|
+
for (const segment of segments) {
|
|
880
|
+
const cmdError = validateCommand(segment);
|
|
881
|
+
if (cmdError) {
|
|
882
|
+
return {
|
|
883
|
+
message: `${cmdError} (in segment: ${segment.slice(0, 100)})`,
|
|
884
|
+
blocker: "denylist",
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
// Dangerous path protection for mutation commands
|
|
888
|
+
const pathError = validateDangerousPaths(segment);
|
|
889
|
+
if (pathError)
|
|
890
|
+
return { message: pathError, blocker: "path" };
|
|
891
|
+
// Redirect target protection
|
|
892
|
+
const redirectError = validateRedirectTargets(segment);
|
|
893
|
+
if (redirectError)
|
|
894
|
+
return { message: redirectError, blocker: "redirect" };
|
|
895
|
+
// Gate 7: Zsh dangerous commands
|
|
896
|
+
const zshError = detectZshDangerousCommands(segment);
|
|
897
|
+
if (zshError)
|
|
898
|
+
return { message: zshError, blocker: "zsh" };
|
|
899
|
+
}
|
|
900
|
+
// Gate 5: env var validation
|
|
901
|
+
if (env) {
|
|
902
|
+
const envError = validateEnvVars(env);
|
|
903
|
+
if (envError)
|
|
904
|
+
return { message: envError, blocker: "env" };
|
|
905
|
+
}
|
|
906
|
+
return null;
|
|
907
|
+
}
|
|
908
|
+
// --------------------------------------------------------------------------
|
|
909
|
+
// Semantic exit code interpretation
|
|
910
|
+
// --------------------------------------------------------------------------
|
|
911
|
+
/**
|
|
912
|
+
* Commands where non-zero exit codes have specific, non-error meanings.
|
|
913
|
+
* Maps command basename -> exit code -> human-readable interpretation.
|
|
914
|
+
*/
|
|
915
|
+
const SEMANTIC_EXIT_CODES = new Map([
|
|
916
|
+
["grep", new Map([
|
|
917
|
+
[0, "Pattern found"],
|
|
918
|
+
[1, "No match found (this is normal, not an error)"],
|
|
919
|
+
])],
|
|
920
|
+
["rg", new Map([
|
|
921
|
+
[0, "Pattern found"],
|
|
922
|
+
[1, "No match found (this is normal, not an error)"],
|
|
923
|
+
])],
|
|
924
|
+
["egrep", new Map([
|
|
925
|
+
[0, "Pattern found"],
|
|
926
|
+
[1, "No match found (this is normal, not an error)"],
|
|
927
|
+
])],
|
|
928
|
+
["fgrep", new Map([
|
|
929
|
+
[0, "Pattern found"],
|
|
930
|
+
[1, "No match found (this is normal, not an error)"],
|
|
931
|
+
])],
|
|
932
|
+
["diff", new Map([
|
|
933
|
+
[0, "Files are identical"],
|
|
934
|
+
[1, "Files differ (this is normal, not an error)"],
|
|
935
|
+
])],
|
|
936
|
+
["cmp", new Map([
|
|
937
|
+
[0, "Files are identical"],
|
|
938
|
+
[1, "Files differ (this is normal, not an error)"],
|
|
939
|
+
])],
|
|
940
|
+
["test", new Map([
|
|
941
|
+
[0, "Condition is true"],
|
|
942
|
+
[1, "Condition is false (this is normal, not an error)"],
|
|
943
|
+
])],
|
|
944
|
+
["[", new Map([
|
|
945
|
+
[0, "Condition is true"],
|
|
946
|
+
[1, "Condition is false (this is normal, not an error)"],
|
|
947
|
+
])],
|
|
948
|
+
["find", new Map([
|
|
949
|
+
[0, "Search completed successfully"],
|
|
950
|
+
[1, "Search completed with some inaccessible directories (partial results returned)"],
|
|
951
|
+
])],
|
|
952
|
+
]);
|
|
953
|
+
/**
|
|
954
|
+
* Interpret an exit code for a specific command. Returns a human-readable
|
|
955
|
+
* string if the command has known semantic exit codes, undefined otherwise.
|
|
956
|
+
*
|
|
957
|
+
* For piped commands (containing |), the exit code comes from the LAST
|
|
958
|
+
* command in the pipeline (bash default behavior). This function extracts
|
|
959
|
+
* the last command's basename for interpretation. For non-piped commands,
|
|
960
|
+
* the first word is used.
|
|
961
|
+
*
|
|
962
|
+
* Skipped when the command contains && or || (exit code semantics become
|
|
963
|
+
* ambiguous with conditional chaining).
|
|
964
|
+
*
|
|
965
|
+
* @param command - The full command string
|
|
966
|
+
* @param exitCode - The process exit code
|
|
967
|
+
* @returns Interpretation string, or undefined if no semantic meaning known
|
|
968
|
+
*/
|
|
969
|
+
export function interpretExitCode(command, exitCode) {
|
|
970
|
+
// Skip interpretation for conditional chains -- exit code semantics are ambiguous
|
|
971
|
+
if (command.includes("&&") || command.includes("||"))
|
|
972
|
+
return undefined;
|
|
973
|
+
// For pipes, exit code comes from the LAST command (bash default)
|
|
974
|
+
let targetCommand;
|
|
975
|
+
if (command.includes("|")) {
|
|
976
|
+
const pipeSegments = command.split("|");
|
|
977
|
+
targetCommand = pipeSegments[pipeSegments.length - 1].trim();
|
|
978
|
+
}
|
|
979
|
+
else {
|
|
980
|
+
targetCommand = command.trim();
|
|
981
|
+
}
|
|
982
|
+
const firstWord = targetCommand.split(/\s/)[0];
|
|
983
|
+
const basename = firstWord.includes("/") ? firstWord.split("/").pop() : firstWord;
|
|
984
|
+
const codeMap = SEMANTIC_EXIT_CODES.get(basename);
|
|
985
|
+
if (!codeMap)
|
|
986
|
+
return undefined;
|
|
987
|
+
return codeMap.get(exitCode);
|
|
988
|
+
}
|