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,1028 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
/**
|
|
3
|
+
* PiExecutor: Wraps pi-coding-agent's createAgentSession() behind the
|
|
4
|
+
* AgentExecutor interface with all Comis safety controls.
|
|
5
|
+
*
|
|
6
|
+
* This is the replacement for the legacy agent-executor.ts. It delegates
|
|
7
|
+
* session management, compaction, and streaming to AgentSession while
|
|
8
|
+
* maintaining Comis's safety controls, event system, and error handling.
|
|
9
|
+
*
|
|
10
|
+
* Integrates:
|
|
11
|
+
* - Circuit breaker: blocks calls when provider is failing
|
|
12
|
+
* - Budget guard: pre-checks cost before each LLM call
|
|
13
|
+
* - Step counter: halts after MAX_STEPS tool executions
|
|
14
|
+
* - PiEventBridge: maps AgentSessionEvent to TypedEventBus
|
|
15
|
+
* - JSONL session adapter: per-session write lock serialization
|
|
16
|
+
* - Orphaned message repair: fixes trailing user messages
|
|
17
|
+
* - System prompt override: via public DefaultResourceLoader.systemPromptOverride API
|
|
18
|
+
* - Model fallback: retries with fallback models on prompt error
|
|
19
|
+
* - Execution bookend log: INFO-level summary stats on every execution
|
|
20
|
+
*
|
|
21
|
+
* @module
|
|
22
|
+
*/
|
|
23
|
+
import { createAgentSession, DefaultResourceLoader, } from "@mariozechner/pi-coding-agent";
|
|
24
|
+
import { formatSessionKey,
|
|
25
|
+
// safePath moved to executor-command-handlers.ts
|
|
26
|
+
tryGetContext, ContextEngineConfigSchema, } from "@comis/core";
|
|
27
|
+
import { suppressError } from "@comis/shared";
|
|
28
|
+
import { createToolRetryBreaker } from "../safety/tool-retry-breaker.js";
|
|
29
|
+
import { createMessageSendLimiter } from "../safety/message-send-limiter.js";
|
|
30
|
+
import { repairOrphanedMessages, scrubPoisonedThinkingBlocks } from "../session/orphaned-message-repair.js";
|
|
31
|
+
import { scrubRedactedToolCalls } from "../session/scrub-redacted-tool-calls.js";
|
|
32
|
+
import { createPiEventBridge } from "../bridge/pi-event-bridge.js";
|
|
33
|
+
import { createAdaptiveCacheRetention, createStaticRetention } from "./adaptive-cache-retention.js";
|
|
34
|
+
// SessionLatch types and createSessionLatch moved to executor-session-state.ts
|
|
35
|
+
import { createContextWindowGuard } from "../safety/context-window-guard.js";
|
|
36
|
+
import { composeStreamWrappers } from "./stream-wrappers/index.js";
|
|
37
|
+
import { setupStreamWrappers } from "./executor-stream-setup.js";
|
|
38
|
+
import { resetTrackerTimers } from "./tool-lifecycle.js";
|
|
39
|
+
import { applyCommandDirectives } from "./executor-command-handlers.js";
|
|
40
|
+
import { setupContextEngine } from "./executor-context-engine-setup.js";
|
|
41
|
+
import { runPrompt } from "./executor-prompt-runner.js";
|
|
42
|
+
import { tryInjectSilentFailure } from "./fault-injector.js";
|
|
43
|
+
import { wrapToolResultWithGuide } from "./jit-guide-injector.js";
|
|
44
|
+
import { postExecution } from "./executor-post-execution.js";
|
|
45
|
+
import { assembleTools } from "./executor-tool-assembly.js";
|
|
46
|
+
import { getDeliveredGuides, setDeliveredGuides, setBreakpointIndex,
|
|
47
|
+
// deleteBreakpointIndex, getBreakpointIndexMapSize moved to executor-post-execution.ts
|
|
48
|
+
setCacheWarm, clearSessionCacheWarm, clearSessionLatches, getCacheBreakDetector, setEvictionCooldown, decrementEvictionCooldown as decrementEvictionCooldownForSession, recordCacheSavings, getCacheSavings, clearSessionCacheSavings, } from "./executor-session-state.js";
|
|
49
|
+
import { validateInput } from "./executor-input-guard.js";
|
|
50
|
+
import { scanWithOutputGuard,
|
|
51
|
+
// recoverEmptyFinalResponse, extractExecutionPlan, generateCompletenessNudge moved to executor-prompt-runner.ts
|
|
52
|
+
} from "./executor-response-filter.js";
|
|
53
|
+
import { normalizeModelCompat } from "../provider/model-compat.js";
|
|
54
|
+
import { normalizeModelId } from "../provider/model-id-normalize.js";
|
|
55
|
+
import { isAnthropicFamily, isGoogleFamily } from "../provider/capabilities.js";
|
|
56
|
+
import { detectOnboardingState } from "../workspace/onboarding-detector.js";
|
|
57
|
+
import { PromptTimeoutError } from "./prompt-timeout.js";
|
|
58
|
+
import { classifyError, classifyPromptTimeout } from "./error-classifier.js";
|
|
59
|
+
import { installDagIngestionHook, validateRoleAttribution } from "../context-engine/index.js";
|
|
60
|
+
import { CHARS_PER_TOKEN_RATIO } from "../context-engine/constants.js";
|
|
61
|
+
import { getElapsedSinceLastResponse } from "./ttl-guard.js";
|
|
62
|
+
import { clearSessionBlockStability } from "./block-stability-tracker.js";
|
|
63
|
+
import { wrapToolForAutoBackground } from "../background/index.js";
|
|
64
|
+
import { BackgroundTasksConfigSchema } from "@comis/core";
|
|
65
|
+
import { OPERATION_TIMEOUT_DEFAULTS } from "../model/operation-model-defaults.js";
|
|
66
|
+
import { randomUUID } from "node:crypto";
|
|
67
|
+
/** Number of turns to restrict breakpoints after server eviction. */
|
|
68
|
+
const EVICTION_COOLDOWN_TURNS = 2;
|
|
69
|
+
// ---------------------------------------------------------------------------
|
|
70
|
+
// R-12: Proactive tool-call safety guard
|
|
71
|
+
// ---------------------------------------------------------------------------
|
|
72
|
+
/**
|
|
73
|
+
* Create a beforeToolCall guard that proactively blocks tool execution when
|
|
74
|
+
* safety limits are already reached: step counter exhausted, budget exceeded,
|
|
75
|
+
* or circuit breaker open.
|
|
76
|
+
*
|
|
77
|
+
* Layering: beforeToolCall is PRIMARY (prevents execution).
|
|
78
|
+
* Bridge's reactive checks on tool_execution_end (step counter) and
|
|
79
|
+
* turn_end (budget/circuit breaker) are FALLBACK for limits crossed
|
|
80
|
+
* during execution (e.g., budget consumed by the LLM call that
|
|
81
|
+
* triggered the tool, not the tool itself).
|
|
82
|
+
*
|
|
83
|
+
* Extracted as a named function for independent unit testing.
|
|
84
|
+
*/
|
|
85
|
+
export function createBeforeToolCallGuard(stepCounter, budgetGuard, circuitBreaker, toolRetryBreaker, messageSendLimiter) {
|
|
86
|
+
return async (context, _signal) => {
|
|
87
|
+
// Proactive step limit check
|
|
88
|
+
if (stepCounter.shouldHalt()) {
|
|
89
|
+
return { block: true, reason: "Step limit reached -- blocking tool execution" };
|
|
90
|
+
}
|
|
91
|
+
// Proactive budget check (cost 0 = just check remaining budget)
|
|
92
|
+
const budgetCheck = budgetGuard.checkBudget(0);
|
|
93
|
+
if (!budgetCheck.ok) {
|
|
94
|
+
return { block: true, reason: "Token budget exhausted" };
|
|
95
|
+
}
|
|
96
|
+
// Proactive circuit breaker check
|
|
97
|
+
if (circuitBreaker.isOpen()) {
|
|
98
|
+
return { block: true, reason: "Provider circuit breaker open" };
|
|
99
|
+
}
|
|
100
|
+
// Tool retry breaker check -- block tools after repeated failures
|
|
101
|
+
if (toolRetryBreaker && context && typeof context === "object") {
|
|
102
|
+
const ctx = context;
|
|
103
|
+
const toolName = ctx.toolCall?.name;
|
|
104
|
+
const args = ctx.args;
|
|
105
|
+
if (toolName && args && typeof args === "object") {
|
|
106
|
+
const verdict = toolRetryBreaker.beforeToolCall(toolName, args);
|
|
107
|
+
if (verdict.block) {
|
|
108
|
+
return { block: true, reason: verdict.reason ?? "Tool blocked by retry breaker" };
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
// Per-execution message send limiter -- prevent spam
|
|
113
|
+
if (messageSendLimiter && context && typeof context === "object") {
|
|
114
|
+
const ctx = context;
|
|
115
|
+
const toolName = ctx.toolCall?.name;
|
|
116
|
+
const args = ctx.args;
|
|
117
|
+
if (toolName && args && typeof args === "object") {
|
|
118
|
+
const verdict = messageSendLimiter.check(toolName, args);
|
|
119
|
+
if (verdict)
|
|
120
|
+
return verdict;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return undefined; // allow execution
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
// ---------------------------------------------------------------------------
|
|
127
|
+
// R-13: Session stats delegation helper
|
|
128
|
+
// ---------------------------------------------------------------------------
|
|
129
|
+
/**
|
|
130
|
+
* Merge SDK session stats into execution result for token totals (R-13).
|
|
131
|
+
*
|
|
132
|
+
* Token counts (input, output, cacheRead, cacheWrite, total) are sourced
|
|
133
|
+
* from the SDK's cumulative session stats -- single source of truth.
|
|
134
|
+
* Cost is intentionally NOT overridden: the bridge's `resolveModelPricing()`
|
|
135
|
+
* provides `cacheSaved` and maintains consistency with per-turn
|
|
136
|
+
* `observability:token_usage` events.
|
|
137
|
+
*
|
|
138
|
+
* Exported for independent unit testing.
|
|
139
|
+
*/
|
|
140
|
+
export function mergeSessionStats(result, getSessionStats) {
|
|
141
|
+
if (!getSessionStats)
|
|
142
|
+
return;
|
|
143
|
+
try {
|
|
144
|
+
const stats = getSessionStats();
|
|
145
|
+
if (stats?.tokens) {
|
|
146
|
+
result.tokensUsed = {
|
|
147
|
+
input: stats.tokens.input,
|
|
148
|
+
output: stats.tokens.output,
|
|
149
|
+
total: stats.tokens.total,
|
|
150
|
+
cacheRead: stats.tokens.cacheRead ?? result.tokensUsed.cacheRead,
|
|
151
|
+
cacheWrite: stats.tokens.cacheWrite ?? result.tokensUsed.cacheWrite,
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
catch {
|
|
156
|
+
// Non-fatal: fall back to existing bridge-accumulated values.
|
|
157
|
+
// This can happen if the session was aborted before any LLM calls completed.
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
// ---------------------------------------------------------------------------
|
|
161
|
+
// Timeout cost estimation
|
|
162
|
+
// ---------------------------------------------------------------------------
|
|
163
|
+
// Re-export for backward compatibility with consumers that import from pi-executor.ts
|
|
164
|
+
export { clearSessionDeliveredGuides, clearSessionToolSchemaSnapshot, clearSessionToolSchemaSnapshotHash, clearSessionBreakpointIndex, clearSessionCacheWarm, clearSessionLatches, clearSessionLatches as _clearSessionLatchesForTest, getOrCreateSessionLatches as _getOrCreateSessionLatchesForTest, } from "./executor-session-state.js";
|
|
165
|
+
// ---------------------------------------------------------------------------
|
|
166
|
+
// Factory
|
|
167
|
+
// ---------------------------------------------------------------------------
|
|
168
|
+
/**
|
|
169
|
+
* Create a PiExecutor that wraps pi-coding-agent's AgentSession behind
|
|
170
|
+
* the AgentExecutor interface.
|
|
171
|
+
*
|
|
172
|
+
* @param config - Per-agent configuration including session/compaction settings
|
|
173
|
+
* @param deps - All required dependencies (injected for testability)
|
|
174
|
+
*/
|
|
175
|
+
export function createPiExecutor(config, deps) {
|
|
176
|
+
// Compaction resets lifecycle timers (prevents stale demotion data).
|
|
177
|
+
// Uses resetTrackerTimers which checks Map membership -- never creates phantom entries.
|
|
178
|
+
deps.eventBus.on("compaction:flush", (event) => {
|
|
179
|
+
const key = formatSessionKey(event.sessionKey);
|
|
180
|
+
if (resetTrackerTimers(key)) {
|
|
181
|
+
deps.logger.info({ sessionKey: key }, "Tool lifecycle timers reset after compaction");
|
|
182
|
+
}
|
|
183
|
+
// Notify cache break detector of compaction (resets baseline).
|
|
184
|
+
getCacheBreakDetector(deps.logger).notifyCompaction(key);
|
|
185
|
+
// Reset latches for fresh cache cycle after compaction
|
|
186
|
+
clearSessionLatches(key);
|
|
187
|
+
});
|
|
188
|
+
// Mutable ref for per-execution cache retention override.
|
|
189
|
+
// Set at execution start, cleared in finally. Read by wrapper chain getter closures.
|
|
190
|
+
let executionCacheRetention;
|
|
191
|
+
// Adaptive retention strategy for Anthropic cold-start optimization.
|
|
192
|
+
// Starts "short" (5m), escalates to "long" (1h) after cache reads confirm utilization.
|
|
193
|
+
let adaptiveRetention;
|
|
194
|
+
// Mutable ref for per-execution minTokens override.
|
|
195
|
+
// Sub-agents use a lower threshold (512) since their short sessions still benefit from caching.
|
|
196
|
+
let executionMinTokensOverride;
|
|
197
|
+
return {
|
|
198
|
+
async execute(msg, sessionKey, tools, onDelta, agentId, _directives, _prevTimestamp, overrides) {
|
|
199
|
+
// a. Record execution start time
|
|
200
|
+
const executionStartMs = Date.now();
|
|
201
|
+
// b. Initialize result
|
|
202
|
+
const result = {
|
|
203
|
+
response: "",
|
|
204
|
+
sessionKey,
|
|
205
|
+
tokensUsed: { input: 0, output: 0, total: 0 },
|
|
206
|
+
cost: { total: 0 },
|
|
207
|
+
stepsExecuted: 0,
|
|
208
|
+
llmCalls: 0,
|
|
209
|
+
finishReason: "stop",
|
|
210
|
+
};
|
|
211
|
+
// SEP: Initialize execution plan ref (shared with bridge via mutable ref)
|
|
212
|
+
const sepEnabled = config.sep?.enabled !== false && !overrides?.skipSep;
|
|
213
|
+
const executionPlanRef = { current: undefined };
|
|
214
|
+
// : Structural validation, jailbreak scoring, rate limiting
|
|
215
|
+
// Extracted to executor-input-guard.ts
|
|
216
|
+
const inputGuardResult = validateInput({
|
|
217
|
+
msg,
|
|
218
|
+
sessionKey,
|
|
219
|
+
agentId,
|
|
220
|
+
inputValidator: deps.inputValidator,
|
|
221
|
+
inputGuard: deps.inputGuard,
|
|
222
|
+
rateLimiter: deps.rateLimiter,
|
|
223
|
+
eventBus: deps.eventBus,
|
|
224
|
+
logger: deps.logger,
|
|
225
|
+
});
|
|
226
|
+
if (!inputGuardResult.passed) {
|
|
227
|
+
result.finishReason = (inputGuardResult.earlyFinishReason ?? "error");
|
|
228
|
+
result.response = inputGuardResult.earlyResponse ?? "";
|
|
229
|
+
return result;
|
|
230
|
+
}
|
|
231
|
+
const safetyReinforcement = inputGuardResult.safetyReinforcement;
|
|
232
|
+
// c. Provider-level degradation pre-check (before per-agent circuit breaker)
|
|
233
|
+
if (deps.providerHealth?.isDegraded(config.provider)) {
|
|
234
|
+
result.finishReason = "provider_degraded";
|
|
235
|
+
deps.logger.warn({
|
|
236
|
+
provider: config.provider,
|
|
237
|
+
hint: "Provider is degraded across multiple agents; skipping execution",
|
|
238
|
+
errorKind: "dependency",
|
|
239
|
+
}, "Provider degraded, skipping execution");
|
|
240
|
+
return result;
|
|
241
|
+
}
|
|
242
|
+
// d. Circuit breaker pre-check
|
|
243
|
+
if (deps.circuitBreaker.isOpen()) {
|
|
244
|
+
result.finishReason = "circuit_open";
|
|
245
|
+
deps.logger.warn({
|
|
246
|
+
hint: "Circuit breaker is open, skipping execution",
|
|
247
|
+
errorKind: "dependency",
|
|
248
|
+
}, "Circuit breaker open");
|
|
249
|
+
return result;
|
|
250
|
+
}
|
|
251
|
+
// d'. Test-only silent-LLM-failure fault injection.
|
|
252
|
+
// Gated by COMIS_TEST_SILENT_FAIL_FLAG env var. Lets operators validate
|
|
253
|
+
// the FINDING-2 retry/reuseSessionKey path end-to-end without waiting
|
|
254
|
+
// for real Anthropic instability. Env var is absent in all shipped
|
|
255
|
+
// configs; see packages/agent/src/executor/fault-injector.ts for the
|
|
256
|
+
// safety analysis.
|
|
257
|
+
{
|
|
258
|
+
const injection = tryInjectSilentFailure(deps.logger, {
|
|
259
|
+
agentId,
|
|
260
|
+
sessionKey: formatSessionKey(sessionKey),
|
|
261
|
+
});
|
|
262
|
+
if (injection) {
|
|
263
|
+
result.finishReason = injection.finishReason;
|
|
264
|
+
result.response = injection.response;
|
|
265
|
+
result.llmCalls = injection.llmCalls;
|
|
266
|
+
result.stepsExecuted = injection.stepsExecuted;
|
|
267
|
+
return result;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
// d. Reset per-execution state
|
|
271
|
+
// Capture execution overrides before local SettingsOverrides shadows the name
|
|
272
|
+
const executionOverrides = overrides;
|
|
273
|
+
// Per-execution cache retention override (mutable ref read by wrapper chain getter)
|
|
274
|
+
executionCacheRetention = executionOverrides?.cacheRetention;
|
|
275
|
+
// Per-operation timeout merge.
|
|
276
|
+
// 3-tier priority: explicit override > OPERATION_TIMEOUT_DEFAULTS[operationType] > agent-level config.
|
|
277
|
+
const operationDefaultTimeout = executionOverrides?.operationType
|
|
278
|
+
? OPERATION_TIMEOUT_DEFAULTS[executionOverrides.operationType]
|
|
279
|
+
: undefined;
|
|
280
|
+
const effectiveTimeout = {
|
|
281
|
+
promptTimeoutMs: executionOverrides?.promptTimeout?.promptTimeoutMs
|
|
282
|
+
?? operationDefaultTimeout
|
|
283
|
+
?? config.promptTimeout.promptTimeoutMs,
|
|
284
|
+
retryPromptTimeoutMs: executionOverrides?.promptTimeout?.retryPromptTimeoutMs
|
|
285
|
+
?? config.promptTimeout.retryPromptTimeoutMs,
|
|
286
|
+
};
|
|
287
|
+
// Create adaptive retention.
|
|
288
|
+
// Parent agents start at configRetention directly (typically "long"/1h) so the
|
|
289
|
+
// initial system prompt write gets 1h TTL -- surviving gaps >5m (e.g. graph execution).
|
|
290
|
+
// Sub-agents start at "short" (5m) since they complete in <60s and share prefix via stagger.
|
|
291
|
+
// Session-scoped warm state is still useful for escalation tracking (onEscalated callback).
|
|
292
|
+
const configRetention = executionCacheRetention ?? config.cacheRetention;
|
|
293
|
+
if (configRetention && configRetention !== "none") {
|
|
294
|
+
const formattedKeyForRetention = formatSessionKey(sessionKey);
|
|
295
|
+
const isSubAgent = !!executionOverrides?.spawnPacket;
|
|
296
|
+
// + Design 2.2: Sub-agents use static retention. Graph subagents
|
|
297
|
+
// (cacheRetention: "long" from setup-cross-session) get static "long" --
|
|
298
|
+
// they never escalate but get 1h TTL. Non-graph subagents get static "short".
|
|
299
|
+
// Design 2.4: Parent agents use turn-based escalation (3+ turns required).
|
|
300
|
+
const configRetentionForSubagent = (executionOverrides?.cacheRetention ?? "short");
|
|
301
|
+
adaptiveRetention = isSubAgent
|
|
302
|
+
? createStaticRetention(configRetentionForSubagent)
|
|
303
|
+
: createAdaptiveCacheRetention({
|
|
304
|
+
coldStartRetention: configRetention,
|
|
305
|
+
warmRetention: configRetention,
|
|
306
|
+
escalationThreshold: 1000,
|
|
307
|
+
onEscalated: () => setCacheWarm(formattedKeyForRetention, true),
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
adaptiveRetention = undefined;
|
|
312
|
+
}
|
|
313
|
+
// Lower threshold for parent agents (1024) to enable message breakpoints.
|
|
314
|
+
// Parent conversations have 500-2000 token messages -- 4096 default is too high.
|
|
315
|
+
// Sub-agents: 512 (short sessions, system prompt dominates).
|
|
316
|
+
executionMinTokensOverride = executionOverrides?.spawnPacket ? 512 : 1024;
|
|
317
|
+
const activeStepCounter = executionOverrides?.stepCounter ?? deps.stepCounter;
|
|
318
|
+
activeStepCounter.reset();
|
|
319
|
+
deps.budgetGuard.resetExecution();
|
|
320
|
+
// e. Resolve model using ModelRegistry
|
|
321
|
+
// Apply per-node model override from ExecutionOverrides and normalize shortcuts before registry lookup
|
|
322
|
+
const normalizedPrimary = normalizeModelId(config.provider, config.model);
|
|
323
|
+
let resolvedModel = deps.modelRegistry.find(config.provider, normalizedPrimary.modelId);
|
|
324
|
+
if (normalizedPrimary.normalized) {
|
|
325
|
+
deps.logger.debug({ original: config.model, resolved: normalizedPrimary.modelId }, "Model ID normalized via shortcut");
|
|
326
|
+
}
|
|
327
|
+
if (executionOverrides?.model) {
|
|
328
|
+
// Model override format: "provider:modelId" (same as compactionModel pattern)
|
|
329
|
+
const parts = executionOverrides.model.split(":");
|
|
330
|
+
const overrideProvider = parts[0];
|
|
331
|
+
const overrideModelId = parts.slice(1).join(":"); // Handle model IDs with colons
|
|
332
|
+
if (overrideProvider && overrideModelId) {
|
|
333
|
+
// Normalize override model ID before registry lookup
|
|
334
|
+
const normalizedOverride = normalizeModelId(overrideProvider, overrideModelId);
|
|
335
|
+
const overrideResolved = deps.modelRegistry.find(overrideProvider, normalizedOverride.modelId);
|
|
336
|
+
if (normalizedOverride.normalized) {
|
|
337
|
+
deps.logger.debug({ original: overrideModelId, resolved: normalizedOverride.modelId }, "Override model ID normalized via shortcut");
|
|
338
|
+
}
|
|
339
|
+
if (overrideResolved) {
|
|
340
|
+
resolvedModel = overrideResolved;
|
|
341
|
+
deps.logger.info({ defaultModel: config.model, overrideModel: executionOverrides.model }, "Model override applied from execution overrides");
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
deps.logger.warn({
|
|
345
|
+
overrideModel: executionOverrides.model,
|
|
346
|
+
provider: overrideProvider,
|
|
347
|
+
modelId: overrideModelId,
|
|
348
|
+
hint: "Model override not found in registry; falling back to agent default model",
|
|
349
|
+
errorKind: "config",
|
|
350
|
+
}, "Model override resolution failed");
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
// Store resolved model on ALS context for sub-agent parent inheritance
|
|
355
|
+
const alsCtx = tryGetContext();
|
|
356
|
+
if (alsCtx && resolvedModel) {
|
|
357
|
+
alsCtx.resolvedModel = `${resolvedModel.provider}:${resolvedModel.id}`;
|
|
358
|
+
}
|
|
359
|
+
// Derive compat config via normalizeModelCompat (xAI auto-detection).
|
|
360
|
+
// Model<Api> from pi-ai has no comisCompat field -- normalizeModelCompat() provides it.
|
|
361
|
+
const modelCompat = resolvedModel ? normalizeModelCompat({
|
|
362
|
+
provider: resolvedModel.provider,
|
|
363
|
+
id: resolvedModel.id,
|
|
364
|
+
}) : undefined;
|
|
365
|
+
// f. Execute within session adapter (R-11: use ephemeral adapter if provided)
|
|
366
|
+
const sessionAdapter = overrides?.ephemeralSessionAdapter ?? deps.sessionAdapter;
|
|
367
|
+
const lockResult = await sessionAdapter.withSession(sessionKey, async (sm) => {
|
|
368
|
+
// Repair orphaned messages
|
|
369
|
+
const repairResult = repairOrphanedMessages(sm);
|
|
370
|
+
if (repairResult.repaired) {
|
|
371
|
+
deps.logger.info({ reason: repairResult.reason }, "Repaired orphaned message");
|
|
372
|
+
}
|
|
373
|
+
// One-time scrub for sessions poisoned by an earlier on-disk thinking-signature stripper.
|
|
374
|
+
// Must run before buildSessionContext so the context pipeline sees the clean fileEntries.
|
|
375
|
+
const scrubResult = scrubPoisonedThinkingBlocks(sm);
|
|
376
|
+
if (scrubResult.scrubbed) {
|
|
377
|
+
deps.logger.info({ blocksRemoved: scrubResult.blocksRemoved }, "Scrubbed poisoned thinking blocks");
|
|
378
|
+
}
|
|
379
|
+
// Neutralize tool_use/tool_result pairs whose args were redacted by
|
|
380
|
+
// sanitizeSessionSecrets. Must run before buildSessionContext so the
|
|
381
|
+
// model never sees its own prior env_set tool calls with
|
|
382
|
+
// env_value:"[REDACTED]" (which it would otherwise copy forward into
|
|
383
|
+
// the next env_set call — observed in production).
|
|
384
|
+
const redactScrub = scrubRedactedToolCalls(sm);
|
|
385
|
+
if (redactScrub.scrubbed) {
|
|
386
|
+
deps.logger.info({
|
|
387
|
+
blocksRewritten: redactScrub.blocksRewritten,
|
|
388
|
+
resultsRewritten: redactScrub.resultsRewritten,
|
|
389
|
+
}, "Scrubbed redacted tool-call pairs from replay context");
|
|
390
|
+
}
|
|
391
|
+
// Detect first message in session for BOOT.md injection
|
|
392
|
+
const sessionContext = sm.buildSessionContext();
|
|
393
|
+
// Diagnostic assertion -- detect role attribution anomalies
|
|
394
|
+
// in continued sessions. Fires WARN log only; repair is handled by
|
|
395
|
+
// repairOrphanedMessages() above.
|
|
396
|
+
validateRoleAttribution(sessionContext.messages, deps.logger);
|
|
397
|
+
const isFirstMessageInSession = sessionContext.messages.length === 0;
|
|
398
|
+
// Get or create session-scoped guide delivery tracking.
|
|
399
|
+
// Clear on session reset (isFirstMessageInSession) so guides re-inject.
|
|
400
|
+
const formattedKeyForGuides = formatSessionKey(sessionKey);
|
|
401
|
+
let deliveredGuides = getDeliveredGuides(formattedKeyForGuides);
|
|
402
|
+
if (!deliveredGuides || isFirstMessageInSession) {
|
|
403
|
+
deliveredGuides = new Set();
|
|
404
|
+
setDeliveredGuides(formattedKeyForGuides, deliveredGuides);
|
|
405
|
+
}
|
|
406
|
+
// Detect onboarding state for post-execution completion check
|
|
407
|
+
const isOnboarding = await detectOnboardingState(deps.workspaceDir);
|
|
408
|
+
// Capture prompt skills XML once at execution start.
|
|
409
|
+
// Skills registered during tool calls (e.g., skill-creator creating stock-scanner)
|
|
410
|
+
// do not mutate the system prompt until the next execution.
|
|
411
|
+
const frozenPromptSkillsXml = deps.getPromptSkillsXml?.();
|
|
412
|
+
const stableGetPromptSkillsXml = frozenPromptSkillsXml !== undefined
|
|
413
|
+
? () => frozenPromptSkillsXml
|
|
414
|
+
: deps.getPromptSkillsXml;
|
|
415
|
+
const frozenDeps = { ...deps, getPromptSkillsXml: stableGetPromptSkillsXml };
|
|
416
|
+
// Tool assembly pipeline: merge, settings, prompt, deferral, JIT, pruning, snapshot, normalization, serializer
|
|
417
|
+
// Extracted to executor-tool-assembly.ts
|
|
418
|
+
const toolAssembly = await assembleTools({
|
|
419
|
+
config, deps: frozenDeps, sessionKey, msg, tools, executionOverrides,
|
|
420
|
+
isFirstMessageInSession, sm, formattedKeyForGuides, deliveredGuides,
|
|
421
|
+
resolvedModel, modelCompat, agentId, safetyReinforcement, _directives,
|
|
422
|
+
});
|
|
423
|
+
const { mergedCustomTools, } = toolAssembly;
|
|
424
|
+
const { deferralResult, deferredContext, modelTier, discoveryTracker, settingsManager, resourceLoaderOptions, promptResult, cachedSystemTokensEstimate, } = toolAssembly;
|
|
425
|
+
const currentDiscoveryTracker = toolAssembly.currentDiscoveryTracker;
|
|
426
|
+
const { systemPrompt, systemPromptBlocks, dynamicPreamble, inlineMemory } = promptResult;
|
|
427
|
+
// DAG ingestion hook -- install BEFORE microcompaction
|
|
428
|
+
// so microcompaction is the outer wrapper. Execution order: microcompaction first -> DAG ingest second.
|
|
429
|
+
// DAG ingest receives the post-microcompaction message (with disk offload references).
|
|
430
|
+
const baseContextEngineConfigForHook = config.contextEngine ?? ContextEngineConfigSchema.parse({});
|
|
431
|
+
if (baseContextEngineConfigForHook.version === "dag" && deps.contextStore) {
|
|
432
|
+
const tenantId = deps.tenantId ?? "default";
|
|
433
|
+
const hookFormattedKey = formatSessionKey(sessionKey);
|
|
434
|
+
const existingConv = deps.contextStore.getConversationBySession(tenantId, hookFormattedKey);
|
|
435
|
+
let hookConversationId;
|
|
436
|
+
if (existingConv) {
|
|
437
|
+
hookConversationId = existingConv.conversation_id;
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
hookConversationId = deps.contextStore.createConversation({
|
|
441
|
+
tenantId,
|
|
442
|
+
agentId: agentId ?? config.name,
|
|
443
|
+
sessionKey: hookFormattedKey,
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
// Store for later use by context engine
|
|
447
|
+
sm.__dagConversationId = hookConversationId;
|
|
448
|
+
installDagIngestionHook(sm, deps.contextStore, hookConversationId, deps.logger, (text) => Math.ceil(text.length / CHARS_PER_TOKEN_RATIO));
|
|
449
|
+
}
|
|
450
|
+
const resourceLoader = new DefaultResourceLoader(resourceLoaderOptions);
|
|
451
|
+
await resourceLoader.reload();
|
|
452
|
+
const sessionOptions = {
|
|
453
|
+
cwd: deps.workspaceDir,
|
|
454
|
+
authStorage: deps.authStorage,
|
|
455
|
+
modelRegistry: deps.modelRegistry,
|
|
456
|
+
model: resolvedModel ?? undefined,
|
|
457
|
+
sessionManager: sm,
|
|
458
|
+
settingsManager,
|
|
459
|
+
resourceLoader,
|
|
460
|
+
tools: [],
|
|
461
|
+
customTools: mergedCustomTools,
|
|
462
|
+
};
|
|
463
|
+
const { session, modelFallbackMessage } = await createAgentSession(sessionOptions);
|
|
464
|
+
if (modelFallbackMessage) {
|
|
465
|
+
deps.logger.warn({ hint: modelFallbackMessage, errorKind: "config" }, "SDK model fallback during session creation");
|
|
466
|
+
}
|
|
467
|
+
// Compute formatted key early for trace file paths and active run registry
|
|
468
|
+
const formattedKey = formatSessionKey(sessionKey);
|
|
469
|
+
// Per-execution tool retry breaker (state resets each message)
|
|
470
|
+
const toolRetryBreakerConfig = config.toolRetryBreaker;
|
|
471
|
+
const toolRetryBreaker = toolRetryBreakerConfig?.enabled !== false
|
|
472
|
+
? createToolRetryBreaker({
|
|
473
|
+
maxConsecutiveFailures: toolRetryBreakerConfig?.maxConsecutiveFailures ?? 3,
|
|
474
|
+
maxToolFailures: toolRetryBreakerConfig?.maxToolFailures ?? 5,
|
|
475
|
+
suggestAlternatives: toolRetryBreakerConfig?.suggestAlternatives ?? true,
|
|
476
|
+
})
|
|
477
|
+
: undefined;
|
|
478
|
+
// Per-execution message send limiter
|
|
479
|
+
// maxSendsPerExecution lives in global MessagesConfigSchema (AppConfig.messages),
|
|
480
|
+
// not PerAgentConfig. Use deps injection or default (3).
|
|
481
|
+
const messageSendLimiter = createMessageSendLimiter({
|
|
482
|
+
maxSendsPerExecution: deps.maxSendsPerExecution ?? 3,
|
|
483
|
+
});
|
|
484
|
+
// R-12: Proactive safety -- block tool execution before it starts
|
|
485
|
+
// when safety limits are already reached. Existing reactive checks in
|
|
486
|
+
// pi-event-bridge remain as fallback for limits crossed during execution.
|
|
487
|
+
// NOTE: beforeToolCall replaces the extension runner's hook. Comis does
|
|
488
|
+
// not load pi-mono extensions, so this override is safe.
|
|
489
|
+
// v0.65.0: setBeforeToolCall() removed; beforeToolCall is now a direct property.
|
|
490
|
+
session.agent.beforeToolCall =
|
|
491
|
+
createBeforeToolCallGuard(activeStepCounter, deps.budgetGuard, deps.circuitBreaker, toolRetryBreaker, messageSendLimiter);
|
|
492
|
+
// Mid-turn tool injection -- when discover_tools returns sideEffects.discoveredTools,
|
|
493
|
+
// inject the full ToolDefinitions into the live agentic loop tools array so the LLM can
|
|
494
|
+
// call them in the same turn (not just the next message).
|
|
495
|
+
session.agent.afterToolCall = async (ctx) => {
|
|
496
|
+
const sideEffects = ctx.result?.sideEffects;
|
|
497
|
+
if (!sideEffects?.discoveredTools?.length)
|
|
498
|
+
return undefined;
|
|
499
|
+
const contextTools = ctx.context.tools;
|
|
500
|
+
if (!contextTools)
|
|
501
|
+
return undefined;
|
|
502
|
+
// Skip mid-turn injection for providers without explicit cache control.
|
|
503
|
+
// Discovery state is already persisted via markDiscovered() in the tool execution
|
|
504
|
+
// wrapper. Next execution includes these tools via applyToolDeferral() -> isDiscovered().
|
|
505
|
+
if (!resolvedModel || (!isAnthropicFamily(resolvedModel.provider) && !isGoogleFamily(resolvedModel.provider))) {
|
|
506
|
+
deps.logger.debug({ discoveredCount: sideEffects.discoveredTools.length, provider: resolvedModel?.provider }, "Skipped mid-turn injection (provider uses automatic prefix caching)");
|
|
507
|
+
return undefined;
|
|
508
|
+
}
|
|
509
|
+
let injectedCount = 0;
|
|
510
|
+
for (const name of sideEffects.discoveredTools) {
|
|
511
|
+
// Skip if already in the live tools array
|
|
512
|
+
if (contextTools.some((t) => t.name === name))
|
|
513
|
+
continue;
|
|
514
|
+
// Look up the full ToolDefinition from deferralResult.deferredEntries
|
|
515
|
+
const entry = deferralResult.deferredEntries.find(e => e.name === name);
|
|
516
|
+
if (!entry)
|
|
517
|
+
continue;
|
|
518
|
+
// Create AgentTool-compatible wrapper and push into the live array.
|
|
519
|
+
// The agentic loop's currentContext.tools is this same array reference,
|
|
520
|
+
// so pushed tools are immediately findable by agent-loop.js prepareToolCall().
|
|
521
|
+
//
|
|
522
|
+
// IMPORTANT: the execute() closure routes the result through
|
|
523
|
+
// wrapToolResultWithGuide so deferred tools (agents_manage,
|
|
524
|
+
// sessions_spawn, MCP tools, ...) receive their TOOL_GUIDES entry
|
|
525
|
+
// on first successful call. The session-start createJitGuideWrapper
|
|
526
|
+
// only wrapped tools present then; without this, discovered tools
|
|
527
|
+
// silently skipped their guides. Uses the same deliveredGuides Set
|
|
528
|
+
// as the session-start wrapper so the "once per session" contract
|
|
529
|
+
// holds whether the tool arrives initially or via discover_tools.
|
|
530
|
+
const original = entry.original;
|
|
531
|
+
contextTools.push({
|
|
532
|
+
name: original.name,
|
|
533
|
+
label: original.label,
|
|
534
|
+
description: original.description,
|
|
535
|
+
parameters: original.parameters,
|
|
536
|
+
execute: async (toolCallId, params, signal, onUpdate) => {
|
|
537
|
+
const res = await original.execute(toolCallId, params, signal, onUpdate, undefined);
|
|
538
|
+
return wrapToolResultWithGuide(original.name, res, deliveredGuides, deps.logger);
|
|
539
|
+
},
|
|
540
|
+
});
|
|
541
|
+
injectedCount++;
|
|
542
|
+
}
|
|
543
|
+
if (injectedCount > 0) {
|
|
544
|
+
deps.logger.info({ injectedCount, discoveredTools: sideEffects.discoveredTools, toolName: ctx.toolCall.name }, "Mid-turn tool injection -- discovered tools added to live agentic loop");
|
|
545
|
+
}
|
|
546
|
+
return undefined; // No result modification needed
|
|
547
|
+
};
|
|
548
|
+
// Stream wrapper chain composition (extracted to executor-stream-setup.ts)
|
|
549
|
+
// Gemini cache hit tracking for Execution complete log
|
|
550
|
+
let geminiCacheHit = false;
|
|
551
|
+
let geminiCachedTokens = 0;
|
|
552
|
+
const streamSetup = setupStreamWrappers({
|
|
553
|
+
config, deps, sessionKey, formattedKey, sm,
|
|
554
|
+
resolvedModel, modelTier, executionOverrides,
|
|
555
|
+
deferralResult, systemPromptBlocks, agentId,
|
|
556
|
+
getAdaptiveRetention: () => adaptiveRetention,
|
|
557
|
+
getExecutionCacheRetention: () => executionCacheRetention,
|
|
558
|
+
getExecutionMinTokensOverride: () => executionMinTokensOverride,
|
|
559
|
+
onBreakpointsPlaced: (highestIdx) => {
|
|
560
|
+
const trimOffset = streamSetup.contextEngineRef.current?.lastTrimOffset ?? 0;
|
|
561
|
+
const preCeIdx = highestIdx + trimOffset;
|
|
562
|
+
if (streamSetup.contextEngineRef.current) {
|
|
563
|
+
streamSetup.contextEngineRef.current.lastBreakpointIndex = preCeIdx;
|
|
564
|
+
}
|
|
565
|
+
setBreakpointIndex(formattedKey, preCeIdx);
|
|
566
|
+
},
|
|
567
|
+
onGeminiCacheHit: (entry) => {
|
|
568
|
+
geminiCacheHit = true;
|
|
569
|
+
geminiCachedTokens = entry.cachedTokens;
|
|
570
|
+
},
|
|
571
|
+
});
|
|
572
|
+
const { contextEngineRef, cacheBreakDetector, truncationMetaRegistry, getTruncationSummary, getTurnBudgetSummary, ttlSplit, } = streamSetup;
|
|
573
|
+
session.agent.streamFn = composeStreamWrappers(streamSetup.wrappers, session.agent.streamFn, deps.logger);
|
|
574
|
+
// Context engine: transformContext hook
|
|
575
|
+
// Runs BEFORE convertToLlm in the SDK pipeline (pre-LLM-call context management).
|
|
576
|
+
// Same runtime override pattern as streamFn above.
|
|
577
|
+
// TypeScript declares transformContext as private, but it's a plain instance property
|
|
578
|
+
// accessible at runtime. Same pattern as streamFn override above (line ~651).
|
|
579
|
+
const ceSetup = setupContextEngine({
|
|
580
|
+
config, deps: frozenDeps, formattedKey, sessionKey: formattedKey, msg, sm, session,
|
|
581
|
+
resolvedModel, executionOverrides,
|
|
582
|
+
cacheBreakDetector,
|
|
583
|
+
contextEngineRef,
|
|
584
|
+
getCachedSystemTokensEstimate: () => cachedSystemTokensEstimate,
|
|
585
|
+
getTokenAnchor: () => tokenAnchor,
|
|
586
|
+
onAnchorReset: () => { tokenAnchor = null; },
|
|
587
|
+
currentDiscoveryTracker,
|
|
588
|
+
});
|
|
589
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK internal: no public type for agent.transformContext
|
|
590
|
+
session.agent.transformContext = ceSetup.contextEngine.transformContext;
|
|
591
|
+
// Freeze thinking block stripping threshold for this execution.
|
|
592
|
+
// On the first transformContext call, snapshot the pre-execution assistant count
|
|
593
|
+
// as a ceiling so new assistant turns during the agentic loop don't shift the
|
|
594
|
+
// stripping cutoff. Cleared in the finally block.
|
|
595
|
+
if (ceSetup?.contextEngine?.setThinkingCeiling) {
|
|
596
|
+
let ceilingSet = false;
|
|
597
|
+
const originalTransform = ceSetup.contextEngine.transformContext;
|
|
598
|
+
ceSetup.contextEngine.transformContext = async (messages, signal) => {
|
|
599
|
+
if (!ceilingSet) {
|
|
600
|
+
const assistantCount = messages.filter((m) => m.role === "assistant").length;
|
|
601
|
+
ceSetup.contextEngine.setThinkingCeiling(assistantCount);
|
|
602
|
+
ceilingSet = true;
|
|
603
|
+
}
|
|
604
|
+
return originalTransform(messages, signal);
|
|
605
|
+
};
|
|
606
|
+
// Re-assign to session.agent so the SDK calls the wrapped version
|
|
607
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
608
|
+
session.agent.transformContext = ceSetup.contextEngine.transformContext;
|
|
609
|
+
}
|
|
610
|
+
// Register active run for mid-execution steering
|
|
611
|
+
if (deps.activeRunRegistry) {
|
|
612
|
+
const handle = {
|
|
613
|
+
steer: (text) => session.steer(text),
|
|
614
|
+
followUp: (text) => session.followUp(text),
|
|
615
|
+
abort: async () => { session.abortCompaction(); await session.abort(); },
|
|
616
|
+
isStreaming: () => session.isStreaming,
|
|
617
|
+
isCompacting: () => session.isCompacting,
|
|
618
|
+
};
|
|
619
|
+
const registered = deps.activeRunRegistry.register(formattedKey, handle);
|
|
620
|
+
if (!registered) {
|
|
621
|
+
deps.logger.warn({ sessionKey: formattedKey, hint: "Session already has an active run; concurrent execution may cause issues", errorKind: "resource" }, "Active run already registered");
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
// SDK tool management validation and introspection.
|
|
625
|
+
// Comis assembles tools per-request (platform tools, skill tools, policy filtering).
|
|
626
|
+
// After session creation, we use SDK APIs to validate registration and provide
|
|
627
|
+
// debug introspection. setActiveToolsByName() is safe here because
|
|
628
|
+
// systemPromptOverride on DefaultResourceLoader caches the Comis-assembled
|
|
629
|
+
// prompt during reload(), and _rebuildSystemPrompt reads it on every rebuild.
|
|
630
|
+
try {
|
|
631
|
+
const allSdkTools = session.getAllTools?.() ?? [];
|
|
632
|
+
const activeToolNames = session.getActiveToolNames?.() ?? [];
|
|
633
|
+
const mergedToolNames = mergedCustomTools.map(t => t.name);
|
|
634
|
+
deps.logger.debug({
|
|
635
|
+
sdkRegisteredCount: allSdkTools.length,
|
|
636
|
+
activeCount: activeToolNames.length,
|
|
637
|
+
comisCount: mergedToolNames.length,
|
|
638
|
+
}, "SDK tool registry introspection");
|
|
639
|
+
const allSdkToolNames = allSdkTools.map(t => t.name);
|
|
640
|
+
const ghostTools = allSdkToolNames.filter(n => !mergedToolNames.includes(n));
|
|
641
|
+
const missingTools = mergedToolNames.filter(n => !allSdkToolNames.includes(n));
|
|
642
|
+
if (ghostTools.length > 0 || missingTools.length > 0) {
|
|
643
|
+
deps.logger.debug({
|
|
644
|
+
ghostTools,
|
|
645
|
+
missingTools,
|
|
646
|
+
hint: "ghostTools = in SDK but not Comis (e.g. SDK base bash); missingTools = in Comis but not SDK",
|
|
647
|
+
}, "SDK/Comis tool set mismatch diagnostic");
|
|
648
|
+
}
|
|
649
|
+
// Validate: call setActiveToolsByName with our tool set.
|
|
650
|
+
// This confirms SDK recognizes all tools and updates agent.tools.
|
|
651
|
+
// systemPromptOverride on DefaultResourceLoader prevents prompt clobbering.
|
|
652
|
+
session.setActiveToolsByName?.(mergedToolNames);
|
|
653
|
+
// Check for SDK-filtered tools (tools Comis registered but SDK rejected)
|
|
654
|
+
const postActiveNames = session.getActiveToolNames?.() ?? [];
|
|
655
|
+
if (postActiveNames.length < mergedToolNames.length) {
|
|
656
|
+
const rejected = mergedToolNames.filter(n => !postActiveNames.includes(n));
|
|
657
|
+
deps.logger.warn({
|
|
658
|
+
rejected,
|
|
659
|
+
hint: "SDK filtered some tools that Comis registered; check tool name collisions with SDK built-ins",
|
|
660
|
+
errorKind: "validation",
|
|
661
|
+
}, "SDK rejected some tool registrations");
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
catch (toolMgmtError) {
|
|
665
|
+
// Non-fatal: SDK tool management is validation/introspection only.
|
|
666
|
+
// Comis's tool pipeline already registered tools via customTools.
|
|
667
|
+
deps.logger.debug({ err: toolMgmtError }, "SDK tool management call failed (non-fatal)");
|
|
668
|
+
}
|
|
669
|
+
// Populate Comis registry from SDK-discovered skills.
|
|
670
|
+
// After session creation, the ResourceLoader has discovered skills from
|
|
671
|
+
// Comis's configured paths. We populate the registry so that content
|
|
672
|
+
// scanning, audit, and progressive disclosure work on SDK-discovered skills.
|
|
673
|
+
try {
|
|
674
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK internal API not typed
|
|
675
|
+
const sdkSkillResult = sessionOptions.resourceLoader?.getSkills?.();
|
|
676
|
+
const sdkSkills = sdkSkillResult?.skills;
|
|
677
|
+
if (sdkSkills && sdkSkills.length > 0 && deps.skillRegistry) {
|
|
678
|
+
deps.skillRegistry.initFromSdkSkills(sdkSkills);
|
|
679
|
+
deps.logger.debug({ sdkSkillCount: sdkSkills.length }, "Comis registry populated from SDK discovery");
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
catch (sdkSkillError) {
|
|
683
|
+
deps.logger.debug({ err: sdkSkillError, hint: "SDK skill population failed, Comis discovery still active", errorKind: "dependency" }, "SDK skill population non-fatal error");
|
|
684
|
+
}
|
|
685
|
+
// session.sendCustomMessage() is available for operator annotations.
|
|
686
|
+
// REQUIREMENTS.md refers to appendCustomEntry() which is the SessionManager-level API;
|
|
687
|
+
// the AgentSession wrapper exposes this as sendCustomMessage({ customType, content, display, details }).
|
|
688
|
+
// Future commands or hooks can call this to inject custom entries into the JSONL session.
|
|
689
|
+
// Apply command directives (thinking, compact, model, export, fork, branch)
|
|
690
|
+
const cmdResult = await applyCommandDirectives({
|
|
691
|
+
directives: _directives,
|
|
692
|
+
session: session,
|
|
693
|
+
result, config, deps, sessionKey,
|
|
694
|
+
});
|
|
695
|
+
// Create context guard from per-agent config
|
|
696
|
+
const contextGuardConfig = config.contextGuard;
|
|
697
|
+
const contextGuard = contextGuardConfig?.enabled !== false
|
|
698
|
+
? createContextWindowGuard({
|
|
699
|
+
warnPercent: contextGuardConfig?.warnPercent,
|
|
700
|
+
blockPercent: contextGuardConfig?.blockPercent,
|
|
701
|
+
})
|
|
702
|
+
: undefined;
|
|
703
|
+
// Quick 215: Resettable prompt timeout -- tool completions reset the timer
|
|
704
|
+
let currentResetTimer;
|
|
705
|
+
// API-grounded token anchor -- updated on each turn_end, reset on compaction
|
|
706
|
+
let tokenAnchor = null;
|
|
707
|
+
// Create event bridge
|
|
708
|
+
// Capture for bridge closures (separate scope from wrapper closures above).
|
|
709
|
+
const capturedBridgeRetention = adaptiveRetention;
|
|
710
|
+
const executionId = randomUUID();
|
|
711
|
+
// Budget trajectory warning: shared mutable ref between bridge (writer) and prompt runner (reader)
|
|
712
|
+
const budgetWarningRef = { current: false };
|
|
713
|
+
const bridge = createPiEventBridge({
|
|
714
|
+
eventBus: deps.eventBus,
|
|
715
|
+
budgetGuard: deps.budgetGuard,
|
|
716
|
+
costTracker: deps.costTracker,
|
|
717
|
+
stepCounter: activeStepCounter,
|
|
718
|
+
circuitBreaker: deps.circuitBreaker,
|
|
719
|
+
sessionKey,
|
|
720
|
+
agentId: agentId ?? "default",
|
|
721
|
+
channelId: msg.channelId ?? "",
|
|
722
|
+
executionId,
|
|
723
|
+
provider: config.provider,
|
|
724
|
+
model: config.model,
|
|
725
|
+
operationType: executionOverrides?.operationType ?? "interactive", // all callers supply operationType; fallback guards the optional `overrides` param
|
|
726
|
+
logger: deps.logger,
|
|
727
|
+
onDelta,
|
|
728
|
+
memoryPort: deps.memoryPort,
|
|
729
|
+
onAbort: () => {
|
|
730
|
+
// Abort compaction first to prevent compaction results from being
|
|
731
|
+
// saved -- the session file retains its pre-compaction state.
|
|
732
|
+
session.abortCompaction();
|
|
733
|
+
suppressError(session.abort(), "session abort on compaction cancel");
|
|
734
|
+
},
|
|
735
|
+
getContextUsage: () => {
|
|
736
|
+
// Defensive try-catch: upstream estimateTokens() in pi-coding-agent
|
|
737
|
+
// crashes with "message.content is not iterable" when an assistant
|
|
738
|
+
// message has content: null (OpenAI Responses API, tool-call-only turns).
|
|
739
|
+
// See: https://github.com/badlogic/pi-mono/issues/3120
|
|
740
|
+
try {
|
|
741
|
+
const usage = session.getContextUsage?.();
|
|
742
|
+
return usage ?? undefined;
|
|
743
|
+
}
|
|
744
|
+
catch {
|
|
745
|
+
return undefined;
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
contextGuard,
|
|
749
|
+
compactionSettings: {
|
|
750
|
+
enabled: true,
|
|
751
|
+
reserveTokens: config.session?.compaction?.reserveTokens ?? 16384,
|
|
752
|
+
keepRecentTokens: config.session?.compaction?.keepRecentTokens ?? 32768,
|
|
753
|
+
},
|
|
754
|
+
providerHealth: deps.providerHealth,
|
|
755
|
+
onToolExecutionEnd: () => { currentResetTimer?.(); },
|
|
756
|
+
// Model ID getter for bridge per-turn pricing re-resolution.
|
|
757
|
+
getCurrentModel: () => session.model?.id ?? config.model,
|
|
758
|
+
// Feed cache reads back to adaptive retention for TTL escalation.
|
|
759
|
+
onCacheReads: capturedBridgeRetention
|
|
760
|
+
? (tokens) => { capturedBridgeRetention.recordCacheReads(tokens); }
|
|
761
|
+
: undefined,
|
|
762
|
+
// Wire turn completion with cache write tokens for fast-path escalation.
|
|
763
|
+
onTurnWithCacheWrite: capturedBridgeRetention
|
|
764
|
+
? (cacheWriteTokens) => { capturedBridgeRetention.recordTurnWithCacheWrite(cacheWriteTokens); }
|
|
765
|
+
: undefined,
|
|
766
|
+
// Pass truncation metadata registry to bridge for audit event enrichment.
|
|
767
|
+
getTruncationMeta: (toolCallId) => truncationMetaRegistry.get(toolCallId),
|
|
768
|
+
// SEP: Pass execution plan ref to bridge for step tracking
|
|
769
|
+
executionPlan: sepEnabled ? executionPlanRef : undefined,
|
|
770
|
+
// SEP: Mid-loop extraction config, message text, and start time
|
|
771
|
+
sepConfig: sepEnabled ? { maxSteps: config.sep?.maxSteps ?? 15, minSteps: config.sep?.minSteps ?? 3 } : undefined,
|
|
772
|
+
sepMessageText: sepEnabled ? (msg.text ?? "") : undefined,
|
|
773
|
+
sepExecutionStartMs: sepEnabled ? executionStartMs : undefined,
|
|
774
|
+
// Cache break detection Phase 2 callback.
|
|
775
|
+
// Enrich with elapsed time for tiered server-side attribution.
|
|
776
|
+
checkCacheBreak: (input) => cacheBreakDetector.checkResponseForCacheBreak({
|
|
777
|
+
...input,
|
|
778
|
+
lastResponseElapsedMs: getElapsedSinceLastResponse(formattedKey),
|
|
779
|
+
// W4: Thread message block count for lookback window detection.
|
|
780
|
+
messageBlockCount: session.agent.state.messages?.length ?? 0,
|
|
781
|
+
}),
|
|
782
|
+
// Record per-turn input tokens as TokenAnchor
|
|
783
|
+
onTurnUsage: (inputTokens) => {
|
|
784
|
+
// usage.input counts prompt tokens (NOT output). The turn_end fires AFTER
|
|
785
|
+
// the assistant message is appended to session.agent.state.messages, so
|
|
786
|
+
// messageCount = messages.length - 1 (the count AT the API call, before response).
|
|
787
|
+
const messages = session.agent.state.messages;
|
|
788
|
+
const messageCount = messages ? messages.length - 1 : 0;
|
|
789
|
+
tokenAnchor = {
|
|
790
|
+
inputTokens,
|
|
791
|
+
messageCount: Math.max(0, messageCount),
|
|
792
|
+
timestamp: Date.now(),
|
|
793
|
+
};
|
|
794
|
+
},
|
|
795
|
+
// Budget trajectory warning: shared ref and per-execution cap
|
|
796
|
+
perExecutionBudgetCap: config.budgets?.perExecution,
|
|
797
|
+
budgetWarningRef,
|
|
798
|
+
// Tool retry breaker for recording results
|
|
799
|
+
toolRetryBreaker,
|
|
800
|
+
// Shared mutable TTL split estimate for per-TTL cost calculation.
|
|
801
|
+
ttlSplit,
|
|
802
|
+
// Thread graphId/nodeId for cache write signal emission
|
|
803
|
+
graphId: executionOverrides?.graphId,
|
|
804
|
+
nodeId: executionOverrides?.nodeId,
|
|
805
|
+
// Coordinated reset on server-side cache eviction.
|
|
806
|
+
onCacheBreakDetected: capturedBridgeRetention
|
|
807
|
+
? (event) => {
|
|
808
|
+
// Skip coordinated reset for lookback window misses.
|
|
809
|
+
// Lookback misses need MORE breakpoints (which multi-zone already provides),
|
|
810
|
+
// not the destructive 4-step reset that reduces caching.
|
|
811
|
+
if (event.reason === "lookback_window_exceeded") {
|
|
812
|
+
deps.logger.warn({
|
|
813
|
+
sessionKey: formattedKey,
|
|
814
|
+
reason: event.reason,
|
|
815
|
+
tokenDrop: event.tokenDrop,
|
|
816
|
+
conversationBlockCount: event.conversationBlockCount,
|
|
817
|
+
hint: "Long conversation exceeded lookback window. Multi-zone breakpoints mitigate this. No action needed.",
|
|
818
|
+
errorKind: "performance",
|
|
819
|
+
}, "Cache miss from lookback window exceeded (not server eviction)");
|
|
820
|
+
return; // Skip coordinated reset
|
|
821
|
+
}
|
|
822
|
+
if (event.reason === "likely_server_eviction" || event.reason === "server_eviction") {
|
|
823
|
+
// 4-step coordinated reset (matching ttlGuard.onTtlExpiry pattern):
|
|
824
|
+
capturedBridgeRetention.reset(); // 1. Reset adaptive retention to cold-start
|
|
825
|
+
clearSessionCacheWarm(formattedKey); // 2. Clear session warm state
|
|
826
|
+
setEvictionCooldown(formattedKey, EVICTION_COOLDOWN_TURNS); // 3. Activate 2-turn cooldown
|
|
827
|
+
clearSessionBlockStability(formattedKey); // 4. Reset block stability tracker
|
|
828
|
+
// Also reset cost gate savings (cost profile changes after eviction)
|
|
829
|
+
clearSessionCacheSavings(formattedKey);
|
|
830
|
+
deps.logger.info({ sessionKey: formattedKey, reason: event.reason, tokenDrop: event.tokenDrop, cooldownTurns: EVICTION_COOLDOWN_TURNS }, "Server eviction detected, coordinated reset activated");
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
: undefined,
|
|
834
|
+
// Decrement cooldown each turn (unconditional).
|
|
835
|
+
decrementEvictionCooldown: () => {
|
|
836
|
+
decrementEvictionCooldownForSession(formattedKey);
|
|
837
|
+
},
|
|
838
|
+
// Track per-turn cache savings for cost gate evaluation.
|
|
839
|
+
onTurnCacheSavings: capturedBridgeRetention
|
|
840
|
+
? (savedUsd) => {
|
|
841
|
+
recordCacheSavings(formattedKey, savedUsd);
|
|
842
|
+
const state = getCacheSavings(formattedKey);
|
|
843
|
+
if (state && state.turnCount >= 3) {
|
|
844
|
+
const isNetPositive = state.cumulativeSavingsUsd > 0;
|
|
845
|
+
capturedBridgeRetention.setCostGateOpen(isNetPositive);
|
|
846
|
+
if (!isNetPositive) {
|
|
847
|
+
deps.logger.debug({ sessionKey: formattedKey, cumulativeSavingsUsd: state.cumulativeSavingsUsd, turnCount: state.turnCount }, "Negative savings, requiring extra evidence turns for escalation");
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
: undefined,
|
|
852
|
+
});
|
|
853
|
+
const unsubscribe = session.subscribe(bridge.listener);
|
|
854
|
+
// Execution started bookend (Finding 1, )
|
|
855
|
+
deps.logger.info({
|
|
856
|
+
agentId,
|
|
857
|
+
sessionKey: formattedKey,
|
|
858
|
+
modelId: resolvedModel?.id,
|
|
859
|
+
modelTier,
|
|
860
|
+
activeToolCount: mergedCustomTools.length,
|
|
861
|
+
}, "Execution started");
|
|
862
|
+
// Generic sideEffects processing for tool results.
|
|
863
|
+
// IN-PLACE mutation: The SDK's agentic loop reads tool.execute at CALL TIME from
|
|
864
|
+
// the original objects passed to createAgentSession(). A .map() spread creates new
|
|
865
|
+
// objects the SDK never sees. Mutating tool.execute in-place IS picked up.
|
|
866
|
+
for (const tool of mergedCustomTools) {
|
|
867
|
+
const origExecute = tool.execute;
|
|
868
|
+
tool.execute = async function (toolCallId, params, signal, onUpdate, ctx) {
|
|
869
|
+
// Inject parent discovery state into sessions_spawn params
|
|
870
|
+
// so sub-agent-runner can persist it in session metadata.
|
|
871
|
+
if (tool.name === "sessions_spawn" && discoveryTracker.getDiscoveredNames().size > 0) {
|
|
872
|
+
const paramsObj = typeof params === "object" && params !== null ? params : {};
|
|
873
|
+
paramsObj.discoveredDeferredTools = discoveryTracker.serialize();
|
|
874
|
+
params = paramsObj;
|
|
875
|
+
}
|
|
876
|
+
const toolResult = await origExecute(toolCallId, params, signal, onUpdate, ctx);
|
|
877
|
+
// Process sideEffects from any tool result
|
|
878
|
+
const sideEffects = toolResult?.sideEffects;
|
|
879
|
+
if (sideEffects?.discoveredTools?.length) {
|
|
880
|
+
discoveryTracker.markDiscovered(sideEffects.discoveredTools);
|
|
881
|
+
deps.logger.debug({ discoveredTools: sideEffects.discoveredTools, toolName: tool.name }, "Deferred tools discovered via side-effect");
|
|
882
|
+
}
|
|
883
|
+
return toolResult;
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
// Auto-background middleware -- promotes long-running tool executions to background.
|
|
887
|
+
// IN-PLACE mutation: same rationale as sideEffects above -- .map() spread was dead code.
|
|
888
|
+
// Applied AFTER sideEffects so the background placeholder is returned instead of
|
|
889
|
+
// waiting for sideEffects processing. When the tool completes in background,
|
|
890
|
+
// the sideEffects are still processed by the original wrapped execute.
|
|
891
|
+
if (deps.backgroundTaskManager && config.backgroundTasks?.enabled !== false) {
|
|
892
|
+
const bgConfig = BackgroundTasksConfigSchema.parse(config.backgroundTasks ?? {});
|
|
893
|
+
for (const tool of mergedCustomTools) {
|
|
894
|
+
const wrapped = wrapToolForAutoBackground(
|
|
895
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK interop boundary
|
|
896
|
+
tool, deps.backgroundTaskManager, bgConfig, deps.backgroundNotifyFn ?? (async () => { }), agentId ?? "default");
|
|
897
|
+
tool.execute = wrapped.execute;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
// Prompt execution: envelope, preamble, images, budget, retry, escalation, recovery
|
|
901
|
+
// Extracted to executor-prompt-runner.ts
|
|
902
|
+
try {
|
|
903
|
+
const promptRunResult = await runPrompt({
|
|
904
|
+
msg, session, config, sessionKey, formattedKey, agentId, result,
|
|
905
|
+
executionOverrides, executionStartMs, effectiveTimeout, executionId,
|
|
906
|
+
bridge, dynamicPreamble, deferredContext, inlineMemory,
|
|
907
|
+
systemPrompt,
|
|
908
|
+
mergedCustomTools,
|
|
909
|
+
cmdResult, sepEnabled, executionPlanRef,
|
|
910
|
+
_directives, _prevTimestamp, resolvedModel,
|
|
911
|
+
deps: {
|
|
912
|
+
eventBus: deps.eventBus,
|
|
913
|
+
logger: deps.logger,
|
|
914
|
+
budgetGuard: deps.budgetGuard,
|
|
915
|
+
costTracker: deps.costTracker,
|
|
916
|
+
authRotation: deps.authRotation,
|
|
917
|
+
fallbackModels: deps.fallbackModels,
|
|
918
|
+
modelRegistry: deps.modelRegistry,
|
|
919
|
+
providerHealth: deps.providerHealth,
|
|
920
|
+
envelopeConfig: deps.envelopeConfig,
|
|
921
|
+
outputGuard: deps.outputGuard,
|
|
922
|
+
canaryToken: deps.canaryToken,
|
|
923
|
+
},
|
|
924
|
+
onResetTimer: (fn) => { currentResetTimer = fn; },
|
|
925
|
+
// Provide last cache write tokens for improved timeout cost estimation
|
|
926
|
+
getLastCacheWriteTokens: () => bridge.getResult().tokensUsed?.cacheWrite ?? 0,
|
|
927
|
+
budgetWarningRef,
|
|
928
|
+
});
|
|
929
|
+
// Aggregate ghost cost from timed-out request into bridge metrics
|
|
930
|
+
if (promptRunResult.ghostCost) {
|
|
931
|
+
bridge.addGhostCost(promptRunResult.ghostCost);
|
|
932
|
+
}
|
|
933
|
+
// Handle stuck session -- flag for post-withSession destroy
|
|
934
|
+
if (promptRunResult.stuckSessionDetected) {
|
|
935
|
+
deps.logger.warn({
|
|
936
|
+
agentId,
|
|
937
|
+
sessionKey: formattedKey,
|
|
938
|
+
hint: "Resetting stuck session -- user must resend their message",
|
|
939
|
+
errorKind: "internal",
|
|
940
|
+
}, "Destroying stuck session");
|
|
941
|
+
result.finishReason = "session_reset";
|
|
942
|
+
result.response = "Session was in an inconsistent state and has been reset. Please send your message again.";
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
catch (error) {
|
|
946
|
+
deps.logger.warn({
|
|
947
|
+
err: error,
|
|
948
|
+
hint: "PiExecutor unexpected error",
|
|
949
|
+
errorKind: "internal",
|
|
950
|
+
}, "Unexpected execution error");
|
|
951
|
+
result.finishReason = "error";
|
|
952
|
+
// Never expose raw error internals (API keys, URLs, stack traces) to users.
|
|
953
|
+
// The raw error is already logged to deps.logger.warn above for operator diagnostics.
|
|
954
|
+
// Classify the error to give the user an actionable (but safe) message.
|
|
955
|
+
const classifiedOuter = error instanceof PromptTimeoutError
|
|
956
|
+
? classifyPromptTimeout(error.timeoutMs)
|
|
957
|
+
: classifyError(error);
|
|
958
|
+
result.response = classifiedOuter.userMessage;
|
|
959
|
+
result.errorContext = {
|
|
960
|
+
errorType: error instanceof PromptTimeoutError ? "PromptTimeout" : "UnexpectedError",
|
|
961
|
+
retryable: classifiedOuter.retryable,
|
|
962
|
+
originalError: error instanceof Error ? error.message : String(error),
|
|
963
|
+
};
|
|
964
|
+
// OutputGuard: scan catch-block error responses (unified in executor-response-filter.ts)
|
|
965
|
+
if (deps.outputGuard && result.response) {
|
|
966
|
+
const guardScan = scanWithOutputGuard({
|
|
967
|
+
outputGuard: deps.outputGuard, response: result.response, context: "exception",
|
|
968
|
+
canaryToken: deps.canaryToken, agentId: agentId ?? "unknown",
|
|
969
|
+
tenantId: sessionKey.tenantId, sessionKey, eventBus: deps.eventBus, logger: deps.logger,
|
|
970
|
+
});
|
|
971
|
+
result.response = guardScan.response;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
finally {
|
|
975
|
+
// Clear thinking ceiling so next execution recalculates from current state.
|
|
976
|
+
// Defense-in-depth: context engine is recreated per execute(), but explicit clear
|
|
977
|
+
// ensures no stale ceiling if engine lifetime changes in the future.
|
|
978
|
+
ceSetup?.contextEngine?.setThinkingCeiling?.(undefined);
|
|
979
|
+
// Post-execution cleanup: stats merge, cache metrics, memory persist, session cleanup
|
|
980
|
+
// Extracted to executor-post-execution.ts
|
|
981
|
+
await postExecution({
|
|
982
|
+
result, session, sm, config, msg, sessionKey, formattedKey, agentId,
|
|
983
|
+
executionStartMs, executionId, executionOverrides,
|
|
984
|
+
bridge, unsubscribe,
|
|
985
|
+
contextEngineRef, ceSetup, streamSetup,
|
|
986
|
+
getTruncationSummary, getTurnBudgetSummary,
|
|
987
|
+
executionPlanRef, sepEnabled, isOnboarding,
|
|
988
|
+
geminiCacheHit, geminiCachedTokens, modelTier,
|
|
989
|
+
deferralResult, mergedCustomTools, deliveredGuides,
|
|
990
|
+
deps: {
|
|
991
|
+
eventBus: deps.eventBus,
|
|
992
|
+
logger: deps.logger,
|
|
993
|
+
memoryPort: deps.memoryPort,
|
|
994
|
+
activeRunRegistry: deps.activeRunRegistry,
|
|
995
|
+
embeddingEnqueue: deps.embeddingEnqueue,
|
|
996
|
+
workspaceDir: deps.workspaceDir,
|
|
997
|
+
},
|
|
998
|
+
sessionAdapter,
|
|
999
|
+
executionCacheRetentionClear: () => { executionCacheRetention = undefined; },
|
|
1000
|
+
adaptiveRetentionClear: () => { adaptiveRetention = undefined; },
|
|
1001
|
+
executionMinTokensOverrideClear: () => { executionMinTokensOverride = undefined; },
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
return result;
|
|
1005
|
+
});
|
|
1006
|
+
// Destroy session file after withSession releases the lock.
|
|
1007
|
+
// This must happen outside withSession to avoid file conflicts under lock.
|
|
1008
|
+
if (lockResult.ok && lockResult.value.finishReason === "session_reset") {
|
|
1009
|
+
await sessionAdapter.destroySession(sessionKey);
|
|
1010
|
+
}
|
|
1011
|
+
// Handle lock failure
|
|
1012
|
+
if (!lockResult.ok) {
|
|
1013
|
+
result.finishReason = "error";
|
|
1014
|
+
result.response =
|
|
1015
|
+
lockResult.error === "locked"
|
|
1016
|
+
? "Session is currently locked. Please try again."
|
|
1017
|
+
: "Session access error.";
|
|
1018
|
+
deps.logger.warn({
|
|
1019
|
+
error: lockResult.error,
|
|
1020
|
+
hint: "Session lock failed",
|
|
1021
|
+
errorKind: "resource",
|
|
1022
|
+
}, "Session lock error");
|
|
1023
|
+
return result;
|
|
1024
|
+
}
|
|
1025
|
+
return lockResult.value;
|
|
1026
|
+
},
|
|
1027
|
+
};
|
|
1028
|
+
}
|