comisai 1.0.44 → 1.0.46
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/node_modules/@comis/agent/dist/background/background-task-persistence.d.ts +4 -5
- package/node_modules/@comis/agent/dist/background/background-task-persistence.js +5 -6
- package/node_modules/@comis/agent/dist/background/background-task-types.d.ts +1 -1
- package/node_modules/@comis/agent/dist/background/session-resolver.d.ts +3 -3
- package/node_modules/@comis/agent/dist/background/session-resolver.js +3 -3
- package/node_modules/@comis/agent/dist/bootstrap/sections/core-sections.js +2 -1
- package/node_modules/@comis/agent/dist/bootstrap/sections/skills-memory-sections.js +1 -1
- package/node_modules/@comis/agent/dist/bootstrap/sections/tool-descriptions.d.ts +2 -2
- package/node_modules/@comis/agent/dist/bootstrap/sections/tool-descriptions.js +3 -3
- package/node_modules/@comis/agent/dist/bootstrap/sections/tooling-sections.d.ts +1 -1
- package/node_modules/@comis/agent/dist/bootstrap/sections/tooling-sections.js +2 -2
- package/node_modules/@comis/agent/dist/bootstrap/sections/trust-sections.d.ts +1 -1
- package/node_modules/@comis/agent/dist/bootstrap/sections/trust-sections.js +1 -1
- package/node_modules/@comis/agent/dist/bootstrap/sections/verbosity-sections.d.ts +0 -2
- package/node_modules/@comis/agent/dist/bootstrap/system-prompt-assembler.d.ts +7 -7
- package/node_modules/@comis/agent/dist/bootstrap/system-prompt-assembler.js +19 -19
- package/node_modules/@comis/agent/dist/bootstrap/types.d.ts +3 -3
- package/node_modules/@comis/agent/dist/bootstrap/workspace-loader.js +1 -1
- package/node_modules/@comis/agent/dist/bridge/bridge-event-handlers.d.ts +1 -1
- package/node_modules/@comis/agent/dist/bridge/bridge-event-handlers.js +3 -3
- package/node_modules/@comis/agent/dist/bridge/bridge-metrics.d.ts +4 -4
- package/node_modules/@comis/agent/dist/bridge/bridge-metrics.js +4 -4
- package/node_modules/@comis/agent/dist/bridge/bridge-safety-controls.js +6 -0
- package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.d.ts +32 -27
- package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.js +104 -86
- package/node_modules/@comis/agent/dist/bridge/tool-failure-hint.d.ts +3 -3
- package/node_modules/@comis/agent/dist/bridge/tool-failure-hint.js +3 -3
- package/node_modules/@comis/agent/dist/bridge/tool-name-suggest.d.ts +1 -1
- package/node_modules/@comis/agent/dist/bridge/tool-name-suggest.js +1 -1
- package/node_modules/@comis/agent/dist/budget/budget-guard.d.ts +4 -4
- package/node_modules/@comis/agent/dist/budget/budget-guard.js +5 -4
- package/node_modules/@comis/agent/dist/budget/spend-accumulator.d.ts +13 -13
- package/node_modules/@comis/agent/dist/budget/spend-accumulator.js +5 -5
- package/node_modules/@comis/agent/dist/context-engine/budget-capacity-cap.d.ts +7 -7
- package/node_modules/@comis/agent/dist/context-engine/budget-capacity-cap.js +18 -18
- package/node_modules/@comis/agent/dist/context-engine/cleanup-helpers.d.ts +2 -2
- package/node_modules/@comis/agent/dist/context-engine/cleanup-helpers.js +2 -2
- package/node_modules/@comis/agent/dist/context-engine/compaction-capability-router.d.ts +2 -2
- package/node_modules/@comis/agent/dist/context-engine/compaction-zone-helpers.d.ts +12 -11
- package/node_modules/@comis/agent/dist/context-engine/compaction-zone-helpers.js +14 -13
- package/node_modules/@comis/agent/dist/context-engine/constants.d.ts +21 -22
- package/node_modules/@comis/agent/dist/context-engine/constants.js +24 -25
- package/node_modules/@comis/agent/dist/context-engine/context-engine.js +17 -17
- package/node_modules/@comis/agent/dist/context-engine/errors.d.ts +19 -20
- package/node_modules/@comis/agent/dist/context-engine/errors.js +17 -18
- package/node_modules/@comis/agent/dist/context-engine/factored-message-tokens.d.ts +12 -11
- package/node_modules/@comis/agent/dist/context-engine/factored-message-tokens.js +3 -3
- package/node_modules/@comis/agent/dist/context-engine/lcd-arbiter-seam.d.ts +15 -14
- package/node_modules/@comis/agent/dist/context-engine/lcd-arbiter-seam.js +38 -35
- package/node_modules/@comis/agent/dist/context-engine/lcd-assembler.d.ts +25 -34
- package/node_modules/@comis/agent/dist/context-engine/lcd-assembler.js +128 -135
- package/node_modules/@comis/agent/dist/context-engine/lcd-budget-eviction.d.ts +14 -15
- package/node_modules/@comis/agent/dist/context-engine/lcd-budget-eviction.js +11 -12
- package/node_modules/@comis/agent/dist/context-engine/lcd-condense.d.ts +30 -31
- package/node_modules/@comis/agent/dist/context-engine/lcd-condense.js +33 -34
- package/node_modules/@comis/agent/dist/context-engine/lcd-fresh-tail-bound.d.ts +33 -32
- package/node_modules/@comis/agent/dist/context-engine/lcd-fresh-tail-bound.js +51 -49
- package/node_modules/@comis/agent/dist/context-engine/lcd-leaf-summarizer.d.ts +47 -43
- package/node_modules/@comis/agent/dist/context-engine/lcd-leaf-summarizer.js +44 -41
- package/node_modules/@comis/agent/dist/context-engine/lcd-preflight.d.ts +8 -9
- package/node_modules/@comis/agent/dist/context-engine/lcd-preflight.js +40 -42
- package/node_modules/@comis/agent/dist/context-engine/lcd-summary-render.d.ts +9 -10
- package/node_modules/@comis/agent/dist/context-engine/lcd-summary-render.js +16 -17
- package/node_modules/@comis/agent/dist/context-engine/llm-compaction.d.ts +1 -1
- package/node_modules/@comis/agent/dist/context-engine/llm-compaction.js +51 -52
- package/node_modules/@comis/agent/dist/context-engine/margin-arbiter.d.ts +25 -25
- package/node_modules/@comis/agent/dist/context-engine/margin-arbiter.js +27 -27
- package/node_modules/@comis/agent/dist/context-engine/microcompaction-guard.d.ts +2 -2
- package/node_modules/@comis/agent/dist/context-engine/microcompaction-guard.js +12 -12
- package/node_modules/@comis/agent/dist/context-engine/objective-reinforcement.d.ts +0 -2
- package/node_modules/@comis/agent/dist/context-engine/objective-reinforcement.js +2 -3
- package/node_modules/@comis/agent/dist/context-engine/output-headroom.d.ts +7 -7
- package/node_modules/@comis/agent/dist/context-engine/output-headroom.js +7 -7
- package/node_modules/@comis/agent/dist/context-engine/relevance-eviction.d.ts +12 -12
- package/node_modules/@comis/agent/dist/context-engine/relevance-eviction.js +30 -29
- package/node_modules/@comis/agent/dist/context-engine/security-context-pinner.d.ts +3 -3
- package/node_modules/@comis/agent/dist/context-engine/security-context-pinner.js +2 -2
- package/node_modules/@comis/agent/dist/context-engine/signature-surrogate-guard.d.ts +3 -4
- package/node_modules/@comis/agent/dist/context-engine/signature-surrogate-guard.js +3 -4
- package/node_modules/@comis/agent/dist/context-engine/summarize-prompt-style.d.ts +5 -4
- package/node_modules/@comis/agent/dist/context-engine/summarize-prompt-style.js +5 -4
- package/node_modules/@comis/agent/dist/context-engine/summarize-tier-targets.d.ts +4 -4
- package/node_modules/@comis/agent/dist/context-engine/summarize-tier-targets.js +5 -5
- package/node_modules/@comis/agent/dist/context-engine/summarizer-window.d.ts +15 -15
- package/node_modules/@comis/agent/dist/context-engine/summarizer-window.js +16 -16
- package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.d.ts +7 -7
- package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.js +7 -7
- package/node_modules/@comis/agent/dist/context-engine/token-budget.d.ts +7 -7
- package/node_modules/@comis/agent/dist/context-engine/token-budget.js +13 -13
- package/node_modules/@comis/agent/dist/context-engine/transcript-repair.d.ts +6 -6
- package/node_modules/@comis/agent/dist/context-engine/transcript-repair.js +13 -13
- package/node_modules/@comis/agent/dist/context-engine/types-compaction.d.ts +6 -6
- package/node_modules/@comis/agent/dist/context-engine/types-core.d.ts +45 -50
- package/node_modules/@comis/agent/dist/context-engine/viable-floor.d.ts +21 -21
- package/node_modules/@comis/agent/dist/context-engine/viable-floor.js +30 -30
- package/node_modules/@comis/agent/dist/executor/adaptive-cache-retention.d.ts +2 -2
- package/node_modules/@comis/agent/dist/executor/adaptive-cache-retention.js +1 -1
- package/node_modules/@comis/agent/dist/executor/cache-break-diff-writer.d.ts +4 -4
- package/node_modules/@comis/agent/dist/executor/cache-break-diff-writer.js +7 -6
- package/node_modules/@comis/agent/dist/executor/cache-detection/cache-state-types.d.ts +7 -7
- package/node_modules/@comis/agent/dist/executor/cache-detection/cache-state.d.ts +1 -1
- package/node_modules/@comis/agent/dist/executor/cache-detection/cache-state.js +3 -3
- package/node_modules/@comis/agent/dist/executor/cache-detection/index.d.ts +2 -3
- package/node_modules/@comis/agent/dist/executor/cache-detection/index.js +2 -3
- package/node_modules/@comis/agent/dist/executor/cache-detection/prompt-state-utils.js +1 -1
- package/node_modules/@comis/agent/dist/executor/capability-index-context.js +1 -1
- package/node_modules/@comis/agent/dist/executor/critic-isolation.d.ts +11 -11
- package/node_modules/@comis/agent/dist/executor/critic-isolation.js +13 -13
- package/node_modules/@comis/agent/dist/executor/dag-repair-loop.d.ts +1 -1
- package/node_modules/@comis/agent/dist/executor/dag-repair-loop.js +2 -2
- package/node_modules/@comis/agent/dist/executor/dag-synthesizer.d.ts +5 -6
- package/node_modules/@comis/agent/dist/executor/dag-synthesizer.js +9 -10
- package/node_modules/@comis/agent/dist/executor/dag-template-match.d.ts +1 -1
- package/node_modules/@comis/agent/dist/executor/dag-template-match.js +10 -10
- package/node_modules/@comis/agent/dist/executor/dag-templates.d.ts +8 -10
- package/node_modules/@comis/agent/dist/executor/dag-templates.js +10 -12
- package/node_modules/@comis/agent/dist/executor/degraded-reply-i18n.d.ts +15 -15
- package/node_modules/@comis/agent/dist/executor/degraded-reply-i18n.js +20 -20
- package/node_modules/@comis/agent/dist/executor/degraded-reply.d.ts +15 -15
- package/node_modules/@comis/agent/dist/executor/degraded-reply.js +13 -13
- package/node_modules/@comis/agent/dist/executor/error-classifier.d.ts +12 -13
- package/node_modules/@comis/agent/dist/executor/error-classifier.js +15 -15
- package/node_modules/@comis/agent/dist/executor/executor-context-engine-setup.d.ts +23 -23
- package/node_modules/@comis/agent/dist/executor/executor-context-engine-setup.js +59 -58
- package/node_modules/@comis/agent/dist/executor/executor-input-guard.d.ts +1 -1
- package/node_modules/@comis/agent/dist/executor/executor-input-guard.js +3 -3
- package/node_modules/@comis/agent/dist/executor/executor-post-execution.d.ts +66 -69
- package/node_modules/@comis/agent/dist/executor/executor-post-execution.js +132 -136
- package/node_modules/@comis/agent/dist/executor/executor-session-state.d.ts +2 -1
- package/node_modules/@comis/agent/dist/executor/executor-session-state.js +6 -5
- package/node_modules/@comis/agent/dist/executor/executor-stream-setup.d.ts +8 -8
- package/node_modules/@comis/agent/dist/executor/executor-stream-setup.js +18 -18
- package/node_modules/@comis/agent/dist/executor/executor-tool-assembly-types.d.ts +13 -14
- package/node_modules/@comis/agent/dist/executor/executor-tool-assembly.d.ts +2 -2
- package/node_modules/@comis/agent/dist/executor/executor-tool-assembly.js +51 -54
- package/node_modules/@comis/agent/dist/executor/executor-tool-pipeline.d.ts +3 -3
- package/node_modules/@comis/agent/dist/executor/executor-tool-pipeline.js +4 -4
- package/node_modules/@comis/agent/dist/executor/gemini-cache-injector.js +1 -1
- package/node_modules/@comis/agent/dist/executor/goal-planner.d.ts +9 -10
- package/node_modules/@comis/agent/dist/executor/goal-planner.js +11 -12
- package/node_modules/@comis/agent/dist/executor/jit-guide-injector.js +3 -2
- package/node_modules/@comis/agent/dist/executor/later-queue.d.ts +12 -18
- package/node_modules/@comis/agent/dist/executor/later-queue.js +4 -4
- package/node_modules/@comis/agent/dist/executor/lcd-bootstrap-sweep.d.ts +5 -5
- package/node_modules/@comis/agent/dist/executor/lcd-bootstrap-sweep.js +8 -8
- package/node_modules/@comis/agent/dist/executor/lcd-compaction-helpers.d.ts +5 -5
- package/node_modules/@comis/agent/dist/executor/lcd-compaction-helpers.js +5 -5
- package/node_modules/@comis/agent/dist/executor/lcd-compaction-trigger.d.ts +33 -34
- package/node_modules/@comis/agent/dist/executor/lcd-compaction-trigger.js +66 -66
- package/node_modules/@comis/agent/dist/executor/lcd-condense-trigger.d.ts +21 -21
- package/node_modules/@comis/agent/dist/executor/lcd-condense-trigger.js +55 -55
- package/node_modules/@comis/agent/dist/executor/lcd-distillation-runner.d.ts +4 -4
- package/node_modules/@comis/agent/dist/executor/lcd-distillation-runner.js +21 -21
- package/node_modules/@comis/agent/dist/executor/lcd-ingest.d.ts +23 -23
- package/node_modules/@comis/agent/dist/executor/lcd-ingest.js +51 -51
- package/node_modules/@comis/agent/dist/executor/mcp-disconnect-cleanup.d.ts +1 -2
- package/node_modules/@comis/agent/dist/executor/mcp-disconnect-cleanup.js +1 -2
- package/node_modules/@comis/agent/dist/executor/model-profile.d.ts +16 -8
- package/node_modules/@comis/agent/dist/executor/model-profile.js +38 -13
- package/node_modules/@comis/agent/dist/executor/model-retry.d.ts +4 -4
- package/node_modules/@comis/agent/dist/executor/model-retry.js +37 -37
- package/node_modules/@comis/agent/dist/executor/narrate-nudge.d.ts +4 -4
- package/node_modules/@comis/agent/dist/executor/narrate-nudge.js +4 -4
- package/node_modules/@comis/agent/dist/executor/pi-executor/before-tool-call-guard.js +2 -2
- package/node_modules/@comis/agent/dist/executor/pi-executor/delta-reset.d.ts +12 -12
- package/node_modules/@comis/agent/dist/executor/pi-executor/delta-reset.js +12 -12
- package/node_modules/@comis/agent/dist/executor/pi-executor/execution-plan-holder.d.ts +1 -1
- package/node_modules/@comis/agent/dist/executor/pi-executor/execution-plan-holder.js +1 -1
- package/node_modules/@comis/agent/dist/executor/pi-executor/index.d.ts +3 -2
- package/node_modules/@comis/agent/dist/executor/pi-executor/index.js +3 -2
- package/node_modules/@comis/agent/dist/executor/pi-executor/maybe-run-bootstrap-sweep.d.ts +17 -16
- package/node_modules/@comis/agent/dist/executor/pi-executor/maybe-run-bootstrap-sweep.js +17 -16
- package/node_modules/@comis/agent/dist/executor/pi-executor/message-envelope.d.ts +1 -1
- package/node_modules/@comis/agent/dist/executor/pi-executor/message-envelope.js +11 -12
- package/node_modules/@comis/agent/dist/executor/pi-executor/pi-executor-prompting.d.ts +1 -1
- package/node_modules/@comis/agent/dist/executor/pi-executor/pi-executor-prompting.js +1 -1
- package/node_modules/@comis/agent/dist/executor/pi-executor/pi-executor-types.d.ts +21 -17
- package/node_modules/@comis/agent/dist/executor/pi-executor/pi-executor.js +71 -70
- package/node_modules/@comis/agent/dist/executor/pi-executor/session-bootstrap.d.ts +6 -7
- package/node_modules/@comis/agent/dist/executor/pi-executor/session-bootstrap.js +4 -4
- package/node_modules/@comis/agent/dist/executor/pi-executor/session-stats.d.ts +19 -6
- package/node_modules/@comis/agent/dist/executor/pi-executor/session-stats.js +16 -9
- package/node_modules/@comis/agent/dist/executor/pi-executor/trajectory-confinement.js +3 -2
- package/node_modules/@comis/agent/dist/executor/post-batch-continuation.d.ts +5 -7
- package/node_modules/@comis/agent/dist/executor/post-batch-continuation.js +3 -5
- package/node_modules/@comis/agent/dist/executor/prompt-assembly.d.ts +23 -26
- package/node_modules/@comis/agent/dist/executor/prompt-assembly.js +78 -86
- package/node_modules/@comis/agent/dist/executor/prompt-runner/envelope-wrapper.js +13 -13
- package/node_modules/@comis/agent/dist/executor/prompt-runner/failure-path.js +11 -11
- package/node_modules/@comis/agent/dist/executor/prompt-runner/goal-anchor.d.ts +2 -2
- package/node_modules/@comis/agent/dist/executor/prompt-runner/goal-anchor.js +2 -2
- package/node_modules/@comis/agent/dist/executor/prompt-runner/index.d.ts +2 -2
- package/node_modules/@comis/agent/dist/executor/prompt-runner/index.js +2 -2
- package/node_modules/@comis/agent/dist/executor/prompt-runner/output-escalation.d.ts +1 -1
- package/node_modules/@comis/agent/dist/executor/prompt-runner/output-escalation.js +5 -5
- package/node_modules/@comis/agent/dist/executor/prompt-runner/prompt-runner-types.d.ts +5 -5
- package/node_modules/@comis/agent/dist/executor/prompt-runner/prompt-runner.js +3 -3
- package/node_modules/@comis/agent/dist/executor/prompt-runner/retry-loop.d.ts +2 -2
- package/node_modules/@comis/agent/dist/executor/prompt-runner/retry-loop.js +35 -13
- package/node_modules/@comis/agent/dist/executor/prompt-runner/silent-failure-handlers.d.ts +1 -1
- package/node_modules/@comis/agent/dist/executor/prompt-runner/silent-failure-handlers.js +23 -2
- package/node_modules/@comis/agent/dist/executor/prompt-runner/tool-schema-strip.d.ts +13 -11
- package/node_modules/@comis/agent/dist/executor/prompt-runner/tool-schema-strip.js +19 -17
- package/node_modules/@comis/agent/dist/executor/prompt-runner/tool-schema-unsupported-handler.d.ts +8 -8
- package/node_modules/@comis/agent/dist/executor/prompt-runner/tool-schema-unsupported-handler.js +14 -14
- package/node_modules/@comis/agent/dist/executor/prompt-timeout.d.ts +10 -10
- package/node_modules/@comis/agent/dist/executor/prompt-timeout.js +8 -8
- package/node_modules/@comis/agent/dist/executor/replay-drift-detector.js +1 -1
- package/node_modules/@comis/agent/dist/executor/resolve-reply-language.d.ts +10 -10
- package/node_modules/@comis/agent/dist/executor/resolve-reply-language.js +10 -10
- package/node_modules/@comis/agent/dist/executor/scaffold-defaults.d.ts +25 -25
- package/node_modules/@comis/agent/dist/executor/scaffold-defaults.js +46 -45
- package/node_modules/@comis/agent/dist/executor/session-health-rollup.d.ts +12 -7
- package/node_modules/@comis/agent/dist/executor/session-health-rollup.js +11 -11
- package/node_modules/@comis/agent/dist/executor/signed-replay-detector.d.ts +2 -4
- package/node_modules/@comis/agent/dist/executor/signed-replay-detector.js +2 -4
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/config-resolver.d.ts +4 -4
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/config-resolver.js +4 -4
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/index.js +2 -2
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/jsonl-rotation.d.ts +2 -2
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/jsonl-rotation.js +2 -2
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/breakpoint-orchestration.js +16 -16
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/breakpoint-placement.d.ts +4 -4
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/breakpoint-placement.js +34 -34
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/cache-breakpoints.d.ts +2 -2
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/cache-breakpoints.js +1 -1
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/factory.js +13 -12
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/marker-upgrade.d.ts +3 -3
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/marker-upgrade.js +4 -4
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/microcompact.d.ts +4 -4
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/microcompact.js +5 -5
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/monotonic-ttl.d.ts +6 -6
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/monotonic-ttl.js +6 -6
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/prefix-stability.d.ts +3 -2
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/prefix-stability.js +18 -17
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/store-flag.d.ts +4 -4
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/store-flag.js +4 -4
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/token-estimation.d.ts +2 -2
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/token-estimation.js +2 -2
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/tool-result-clearing.d.ts +17 -15
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/tool-result-clearing.js +17 -15
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body/types.d.ts +1 -1
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/stub-filter-injector.js +2 -2
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/tool-call-repair-wrapper.d.ts +5 -5
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/tool-call-repair-wrapper.js +11 -11
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/turn-result-budget-wrapper.d.ts +2 -2
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/turn-result-budget-wrapper.js +2 -2
- package/node_modules/@comis/agent/dist/executor/timeout-knob.d.ts +17 -18
- package/node_modules/@comis/agent/dist/executor/timeout-knob.js +17 -18
- package/node_modules/@comis/agent/dist/executor/tool-arg-coercion.d.ts +1 -1
- package/node_modules/@comis/agent/dist/executor/tool-arg-coercion.js +1 -1
- package/node_modules/@comis/agent/dist/executor/tool-deferral.d.ts +14 -16
- package/node_modules/@comis/agent/dist/executor/tool-deferral.js +27 -29
- package/node_modules/@comis/agent/dist/executor/tool-overhead.d.ts +8 -8
- package/node_modules/@comis/agent/dist/executor/tool-overhead.js +8 -8
- package/node_modules/@comis/agent/dist/executor/tool-parallelism.d.ts +2 -2
- package/node_modules/@comis/agent/dist/executor/tool-parallelism.js +1 -1
- package/node_modules/@comis/agent/dist/executor/turn-loop-detector.d.ts +4 -3
- package/node_modules/@comis/agent/dist/executor/turn-loop-detector.js +6 -5
- package/node_modules/@comis/agent/dist/executor/types.d.ts +28 -13
- package/node_modules/@comis/agent/dist/executor/user-representation-block.d.ts +11 -19
- package/node_modules/@comis/agent/dist/executor/user-representation-block.js +11 -19
- package/node_modules/@comis/agent/dist/executor/verification-gate-synth-deps.d.ts +3 -3
- package/node_modules/@comis/agent/dist/executor/verification-gate-synth-deps.js +1 -1
- package/node_modules/@comis/agent/dist/executor/verification-gate.d.ts +8 -8
- package/node_modules/@comis/agent/dist/executor/verification-gate.js +34 -33
- package/node_modules/@comis/agent/dist/greeting/session-greeting.d.ts +2 -2
- package/node_modules/@comis/agent/dist/greeting/session-greeting.js +2 -2
- package/node_modules/@comis/agent/dist/index.d.ts +5 -3
- package/node_modules/@comis/agent/dist/index.js +44 -48
- package/node_modules/@comis/agent/dist/memory/__fixtures__/recall-eval-fixtures.d.ts +4 -4
- package/node_modules/@comis/agent/dist/memory/__fixtures__/recall-eval-fixtures.js +4 -4
- package/node_modules/@comis/agent/dist/memory/benchmark/__fixtures__/qa-judge-stub.d.ts +3 -3
- package/node_modules/@comis/agent/dist/memory/benchmark/__fixtures__/qa-judge-stub.js +3 -3
- package/node_modules/@comis/agent/dist/memory/benchmark/ablation-sweep.d.ts +4 -4
- package/node_modules/@comis/agent/dist/memory/benchmark/ablation-sweep.js +4 -4
- package/node_modules/@comis/agent/dist/memory/benchmark/competitor-adapter.d.ts +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/competitor-adapter.js +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/cross-judge-spread.d.ts +5 -7
- package/node_modules/@comis/agent/dist/memory/benchmark/cross-judge-spread.js +5 -7
- package/node_modules/@comis/agent/dist/memory/benchmark/filesystem-baseline.d.ts +1 -2
- package/node_modules/@comis/agent/dist/memory/benchmark/filesystem-baseline.js +1 -2
- package/node_modules/@comis/agent/dist/memory/benchmark/learning-lift-scorer.d.ts +2 -2
- package/node_modules/@comis/agent/dist/memory/benchmark/learning-lift-scorer.js +2 -2
- package/node_modules/@comis/agent/dist/memory/benchmark/letta-fs-baseline-adapter.d.ts +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/letta-fs-baseline-adapter.js +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/locomo-loader.d.ts +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/personalization-loaders.d.ts +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/personalization-loaders.js +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/qa-accuracy.d.ts +2 -2
- package/node_modules/@comis/agent/dist/memory/benchmark/qa-accuracy.js +2 -2
- package/node_modules/@comis/agent/dist/memory/benchmark/qa-judge-parse.d.ts +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/qa-judge-parse.js +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/qa-judge-prompt.d.ts +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/qa-judge-prompt.js +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/qa-report.d.ts +5 -5
- package/node_modules/@comis/agent/dist/memory/benchmark/qa-report.js +2 -2
- package/node_modules/@comis/agent/dist/memory/benchmark/recall-trace-analyzer.d.ts +3 -3
- package/node_modules/@comis/agent/dist/memory/benchmark/recall-trace-analyzer.js +3 -3
- package/node_modules/@comis/agent/dist/memory/benchmark/results-ledger.d.ts +4 -4
- package/node_modules/@comis/agent/dist/memory/benchmark/results-ledger.js +3 -3
- package/node_modules/@comis/agent/dist/memory/benchmark/significance.d.ts +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/significance.js +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/suite-report.d.ts +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/suite-report.js +1 -1
- package/node_modules/@comis/agent/dist/memory/benchmark/suite-scenario.d.ts +2 -2
- package/node_modules/@comis/agent/dist/memory/benchmark/suite-scenario.js +2 -2
- package/node_modules/@comis/agent/dist/memory/correction-detector-seam.d.ts +18 -18
- package/node_modules/@comis/agent/dist/memory/correction-detector-seam.js +19 -19
- package/node_modules/@comis/agent/dist/memory/emit-generation-quality.d.ts +7 -7
- package/node_modules/@comis/agent/dist/memory/emit-generation-quality.js +8 -8
- package/node_modules/@comis/agent/dist/memory/index.d.ts +6 -4
- package/node_modules/@comis/agent/dist/memory/index.js +20 -14
- package/node_modules/@comis/agent/dist/memory/judge-model-resolver.js +1 -1
- package/node_modules/@comis/agent/dist/memory/llm-json.d.ts +1 -1
- package/node_modules/@comis/agent/dist/memory/llm-json.js +1 -1
- package/node_modules/@comis/agent/dist/memory/llm-reflection-adapter.d.ts +15 -15
- package/node_modules/@comis/agent/dist/memory/llm-reflection-adapter.js +15 -17
- package/node_modules/@comis/agent/dist/memory/memory-capability-router.d.ts +4 -5
- package/node_modules/@comis/agent/dist/memory/memory-capability-router.js +2 -2
- package/node_modules/@comis/agent/dist/memory/memory-dialectic-prompt.d.ts +2 -2
- package/node_modules/@comis/agent/dist/memory/memory-dialectic-prompt.js +3 -3
- package/node_modules/@comis/agent/dist/memory/memory-dialectic-seam.d.ts +4 -4
- package/node_modules/@comis/agent/dist/memory/memory-dialectic-seam.js +5 -5
- package/node_modules/@comis/agent/dist/memory/memory-dialectic-synthesis.d.ts +5 -5
- package/node_modules/@comis/agent/dist/memory/memory-dialectic-synthesis.js +7 -7
- package/node_modules/@comis/agent/dist/memory/memory-extraction.d.ts +4 -4
- package/node_modules/@comis/agent/dist/memory/memory-extraction.js +4 -4
- package/node_modules/@comis/agent/dist/memory/memory-prompt-language.d.ts +14 -15
- package/node_modules/@comis/agent/dist/memory/memory-prompt-language.js +14 -15
- package/node_modules/@comis/agent/dist/memory/memory-review-job.d.ts +4 -3
- package/node_modules/@comis/agent/dist/memory/memory-review-job.js +21 -20
- package/node_modules/@comis/agent/dist/memory/orchestrate-repair-seam.d.ts +115 -0
- package/node_modules/@comis/agent/dist/memory/orchestrate-repair-seam.js +184 -0
- package/node_modules/@comis/agent/dist/memory/outcome-judge-seam.d.ts +16 -16
- package/node_modules/@comis/agent/dist/memory/outcome-judge-seam.js +20 -20
- package/node_modules/@comis/agent/dist/memory/reflection-job.d.ts +75 -47
- package/node_modules/@comis/agent/dist/memory/reflection-job.js +106 -68
- package/node_modules/@comis/agent/dist/memory/reflection-prompt.d.ts +77 -56
- package/node_modules/@comis/agent/dist/memory/reflection-prompt.js +112 -52
- package/node_modules/@comis/agent/dist/memory/topic-key.d.ts +11 -12
- package/node_modules/@comis/agent/dist/memory/topic-key.js +22 -24
- package/node_modules/@comis/agent/dist/model/compaction-model-resolver.d.ts +7 -8
- package/node_modules/@comis/agent/dist/model/compaction-model-resolver.js +8 -9
- package/node_modules/@comis/agent/dist/model/fresh-tail-clamp.d.ts +8 -7
- package/node_modules/@comis/agent/dist/model/fresh-tail-clamp.js +8 -7
- package/node_modules/@comis/agent/dist/model/model-allowlist.d.ts +2 -2
- package/node_modules/@comis/agent/dist/model/model-allowlist.js +2 -2
- package/node_modules/@comis/agent/dist/model/model-registry-adapter.d.ts +1 -1
- package/node_modules/@comis/agent/dist/model/model-registry-adapter.js +1 -1
- package/node_modules/@comis/agent/dist/model/model-scanner.js +1 -1
- package/node_modules/@comis/agent/dist/model/oauth-token-manager.js +6 -7
- package/node_modules/@comis/agent/dist/model/ollama-capacity-probe.d.ts +5 -5
- package/node_modules/@comis/agent/dist/model/ollama-capacity-probe.js +12 -12
- package/node_modules/@comis/agent/dist/model/operation-model-defaults.d.ts +7 -7
- package/node_modules/@comis/agent/dist/model/operation-model-defaults.js +23 -23
- package/node_modules/@comis/agent/dist/model/operation-model-resolver.d.ts +5 -11
- package/node_modules/@comis/agent/dist/model/operation-model-resolver.js +5 -11
- package/node_modules/@comis/agent/dist/model/served-window-comparator.d.ts +11 -12
- package/node_modules/@comis/agent/dist/model/served-window-comparator.js +12 -13
- package/node_modules/@comis/agent/dist/provider/capabilities.js +1 -1
- package/node_modules/@comis/agent/dist/provider/model-compat.d.ts +3 -3
- package/node_modules/@comis/agent/dist/provider/model-compat.js +3 -3
- package/node_modules/@comis/agent/dist/provider/model-id-normalize.js +1 -1
- package/node_modules/@comis/agent/dist/provider/response/sanitize-pipeline.d.ts +4 -3
- package/node_modules/@comis/agent/dist/provider/response/sanitize-pipeline.js +6 -5
- package/node_modules/@comis/agent/dist/provider/tool-schema/clean-for-gbnf.d.ts +9 -9
- package/node_modules/@comis/agent/dist/provider/tool-schema/clean-for-gbnf.js +22 -22
- package/node_modules/@comis/agent/dist/provider/tool-schema/gbnf-hostile-fixtures.d.ts +2 -2
- package/node_modules/@comis/agent/dist/provider/tool-schema/gbnf-hostile-fixtures.js +2 -2
- package/node_modules/@comis/agent/dist/provider/tool-schema/normalize.d.ts +2 -2
- package/node_modules/@comis/agent/dist/provider/tool-schema/normalize.js +20 -20
- package/node_modules/@comis/agent/dist/rag/cosine.d.ts +2 -7
- package/node_modules/@comis/agent/dist/rag/cosine.js +2 -7
- package/node_modules/@comis/agent/dist/rag/hybrid-memory-injector.d.ts +4 -3
- package/node_modules/@comis/agent/dist/rag/hybrid-memory-injector.js +4 -3
- package/node_modules/@comis/agent/dist/rag/memory-recall.js +22 -22
- package/node_modules/@comis/agent/dist/rag/mmr.js +1 -1
- package/node_modules/@comis/agent/dist/rag/query-understanding.d.ts +3 -3
- package/node_modules/@comis/agent/dist/rag/query-understanding.js +4 -4
- package/node_modules/@comis/agent/dist/rag/recall-attribution.js +6 -6
- package/node_modules/@comis/agent/dist/rag/recall-observability.js +5 -6
- package/node_modules/@comis/agent/dist/rag/recall-provenance.d.ts +13 -13
- package/node_modules/@comis/agent/dist/rag/recall-provenance.js +23 -23
- package/node_modules/@comis/agent/dist/rag/recall-record.d.ts +3 -3
- package/node_modules/@comis/agent/dist/rag/recall-record.js +2 -2
- package/node_modules/@comis/agent/dist/rag/recall-security-prefilter.d.ts +16 -16
- package/node_modules/@comis/agent/dist/rag/recall-security-prefilter.js +16 -16
- package/node_modules/@comis/agent/dist/rag/recall-types.d.ts +10 -9
- package/node_modules/@comis/agent/dist/rag/relevance-scorer.d.ts +11 -11
- package/node_modules/@comis/agent/dist/rag/relevance-scorer.js +16 -16
- package/node_modules/@comis/agent/dist/rag/score.d.ts +12 -13
- package/node_modules/@comis/agent/dist/rag/score.js +22 -22
- package/node_modules/@comis/agent/dist/rag/temporal-guidance.d.ts +3 -3
- package/node_modules/@comis/agent/dist/rag/temporal-guidance.js +4 -4
- package/node_modules/@comis/agent/dist/response-filter/reasoning-tags.d.ts +1 -1
- package/node_modules/@comis/agent/dist/response-filter/reasoning-tags.js +2 -2
- package/node_modules/@comis/agent/dist/safety/summarizer-spend-breaker.d.ts +7 -7
- package/node_modules/@comis/agent/dist/safety/summarizer-spend-breaker.js +1 -1
- package/node_modules/@comis/agent/dist/safety/token-estimator.d.ts +7 -7
- package/node_modules/@comis/agent/dist/safety/token-estimator.js +14 -14
- package/node_modules/@comis/agent/dist/safety/tool-output-safety.js +2 -2
- package/node_modules/@comis/agent/dist/safety/tool-result-size-guard.js +11 -9
- package/node_modules/@comis/agent/dist/safety/tool-retry-breaker.d.ts +17 -21
- package/node_modules/@comis/agent/dist/safety/tool-retry-breaker.js +22 -25
- package/node_modules/@comis/agent/dist/safety/tool-schema-safety.js +2 -1
- package/node_modules/@comis/agent/dist/session/comis-session-manager.d.ts +7 -7
- package/node_modules/@comis/agent/dist/session/comis-session-manager.js +1 -1
- package/node_modules/@comis/agent/dist/session/orphaned-message-repair.d.ts +2 -3
- package/node_modules/@comis/agent/dist/session/orphaned-message-repair.js +2 -3
- package/node_modules/@comis/agent/dist/session/sanitize-session-secrets.js +6 -6
- package/node_modules/@comis/agent/dist/session/scrub-redacted-tool-calls.d.ts +2 -2
- package/node_modules/@comis/agent/dist/session/scrub-redacted-tool-calls.js +2 -2
- package/node_modules/@comis/agent/dist/session/session-write-lock.d.ts +2 -3
- package/node_modules/@comis/agent/dist/session/session-write-lock.js +6 -7
- package/node_modules/@comis/agent/dist/spawn/announce-key.d.ts +4 -4
- package/node_modules/@comis/agent/dist/spawn/announce-key.js +4 -4
- package/node_modules/@comis/agent/dist/spawn/announcement-ports.d.ts +6 -6
- package/node_modules/@comis/agent/dist/spawn/child-prompt-economy.d.ts +23 -27
- package/node_modules/@comis/agent/dist/spawn/child-prompt-economy.js +23 -27
- package/node_modules/@comis/agent/dist/spawn/coordinator-progress-fork.d.ts +8 -8
- package/node_modules/@comis/agent/dist/spawn/coordinator-progress-fork.js +5 -4
- package/node_modules/@comis/agent/dist/spawn/index.js +2 -2
- package/node_modules/@comis/agent/dist/spawn/lifecycle-hooks.d.ts +3 -5
- package/node_modules/@comis/agent/dist/spawn/lifecycle-hooks.js +3 -5
- package/node_modules/@comis/agent/dist/spawn/narrative-caster.d.ts +5 -5
- package/node_modules/@comis/agent/dist/spawn/narrative-caster.js +6 -6
- package/node_modules/@comis/agent/dist/spawn/result-condenser.js +5 -6
- package/node_modules/@comis/agent/dist/spawn/sandbox-posture.d.ts +40 -20
- package/node_modules/@comis/agent/dist/spawn/sandbox-posture.js +44 -19
- package/node_modules/@comis/agent/dist/spawn/spawn-packet-builder.d.ts +1 -1
- package/node_modules/@comis/agent/dist/spawn/steer-run.d.ts +11 -11
- package/node_modules/@comis/agent/dist/spawn/steer-run.js +15 -15
- package/node_modules/@comis/agent/dist/spawn/sub-agent-result-processor.d.ts +10 -10
- package/node_modules/@comis/agent/dist/spawn/sub-agent-result-processor.js +24 -24
- package/node_modules/@comis/agent/dist/spawn/sub-agent-runner.d.ts +35 -35
- package/node_modules/@comis/agent/dist/spawn/sub-agent-runner.js +67 -62
- package/node_modules/@comis/agent/dist/workspace/templates.d.ts +3 -3
- package/node_modules/@comis/agent/dist/workspace/templates.js +3 -3
- package/node_modules/@comis/agent/dist/workspace/workspace-manager.d.ts +3 -4
- package/node_modules/@comis/agent/dist/workspace/workspace-manager.js +11 -12
- package/node_modules/@comis/agent/package.json +1 -1
- package/node_modules/@comis/channels/dist/__tests__/fakes/discord-fake.js +3 -3
- package/node_modules/@comis/channels/dist/__tests__/fakes/echo-fake.d.ts +1 -1
- package/node_modules/@comis/channels/dist/__tests__/fakes/echo-fake.js +6 -6
- package/node_modules/@comis/channels/dist/__tests__/fakes/email-fake.js +2 -2
- package/node_modules/@comis/channels/dist/__tests__/fakes/imessage-fake.js +2 -3
- package/node_modules/@comis/channels/dist/__tests__/fakes/irc-fake.js +2 -2
- package/node_modules/@comis/channels/dist/__tests__/fakes/line-fake.js +3 -3
- package/node_modules/@comis/channels/dist/__tests__/fakes/msteams-fake.d.ts +43 -0
- package/node_modules/@comis/channels/dist/__tests__/fakes/msteams-fake.js +100 -0
- package/node_modules/@comis/channels/dist/__tests__/fakes/signal-fake.js +2 -3
- package/node_modules/@comis/channels/dist/__tests__/fakes/slack-fake.js +3 -4
- package/node_modules/@comis/channels/dist/__tests__/fakes/telegram-fake.js +3 -4
- package/node_modules/@comis/channels/dist/__tests__/fakes/whatsapp-fake.js +2 -3
- package/node_modules/@comis/channels/dist/__tests__/fixture-harness.js +2 -2
- package/node_modules/@comis/channels/dist/discord/discord-activity.d.ts +3 -3
- package/node_modules/@comis/channels/dist/discord/discord-activity.js +7 -7
- package/node_modules/@comis/channels/dist/discord/discord-adapter.js +8 -7
- package/node_modules/@comis/channels/dist/discord/discord-plugin.js +1 -1
- package/node_modules/@comis/channels/dist/discord/discord-reaction-binder.d.ts +5 -5
- package/node_modules/@comis/channels/dist/discord/discord-reaction-binder.js +6 -6
- package/node_modules/@comis/channels/dist/discord/format-discord.d.ts +2 -3
- package/node_modules/@comis/channels/dist/discord/format-discord.js +2 -3
- package/node_modules/@comis/channels/dist/echo/echo-activity.d.ts +2 -2
- package/node_modules/@comis/channels/dist/echo/echo-activity.js +2 -2
- package/node_modules/@comis/channels/dist/echo/echo-adapter.d.ts +3 -3
- package/node_modules/@comis/channels/dist/echo/echo-adapter.js +3 -3
- package/node_modules/@comis/channels/dist/echo/echo-plugin.js +4 -5
- package/node_modules/@comis/channels/dist/email/email-activity.d.ts +3 -3
- package/node_modules/@comis/channels/dist/email/email-activity.js +8 -8
- package/node_modules/@comis/channels/dist/email/email-adapter.js +1 -1
- package/node_modules/@comis/channels/dist/email/email-plugin.js +1 -1
- package/node_modules/@comis/channels/dist/imessage/imessage-activity.d.ts +4 -4
- package/node_modules/@comis/channels/dist/imessage/imessage-activity.js +13 -13
- package/node_modules/@comis/channels/dist/imessage/imessage-adapter.js +1 -1
- package/node_modules/@comis/channels/dist/imessage/imessage-client.d.ts +2 -2
- package/node_modules/@comis/channels/dist/imessage/imessage-client.js +2 -2
- package/node_modules/@comis/channels/dist/imessage/imessage-plugin.js +1 -1
- package/node_modules/@comis/channels/dist/index.d.ts +11 -0
- package/node_modules/@comis/channels/dist/index.js +13 -4
- package/node_modules/@comis/channels/dist/irc/irc-activity.d.ts +3 -3
- package/node_modules/@comis/channels/dist/irc/irc-activity.js +10 -10
- package/node_modules/@comis/channels/dist/irc/irc-adapter.js +1 -1
- package/node_modules/@comis/channels/dist/irc/irc-plugin.js +1 -1
- package/node_modules/@comis/channels/dist/line/line-activity.d.ts +7 -9
- package/node_modules/@comis/channels/dist/line/line-activity.js +25 -27
- package/node_modules/@comis/channels/dist/line/line-adapter.js +1 -1
- package/node_modules/@comis/channels/dist/line/line-plugin.js +1 -1
- package/node_modules/@comis/channels/dist/msteams/credential-validator.d.ts +49 -0
- package/node_modules/@comis/channels/dist/msteams/credential-validator.js +56 -0
- package/node_modules/@comis/channels/dist/msteams/errors.d.ts +43 -0
- package/node_modules/@comis/channels/dist/msteams/errors.js +71 -0
- package/node_modules/@comis/channels/dist/msteams/mentions.d.ts +52 -0
- package/node_modules/@comis/channels/dist/msteams/mentions.js +57 -0
- package/node_modules/@comis/channels/dist/msteams/message-mapper.d.ts +113 -0
- package/node_modules/@comis/channels/dist/msteams/message-mapper.js +148 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-actions.d.ts +79 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-actions.js +92 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-activity.d.ts +39 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-activity.js +189 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-adapter-outbound.d.ts +45 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-adapter-outbound.js +114 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-adapter.d.ts +90 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-adapter.js +676 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-auth.d.ts +125 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-auth.js +397 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-connector.d.ts +120 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-connector.js +414 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-plugin.d.ts +66 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-plugin.js +81 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-proactive.d.ts +39 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-proactive.js +39 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-reaction-binder.d.ts +38 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-reaction-binder.js +76 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-resolver.d.ts +103 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-resolver.js +190 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-rich-renderer.d.ts +35 -0
- package/node_modules/@comis/channels/dist/msteams/msteams-rich-renderer.js +154 -0
- package/node_modules/@comis/channels/dist/shared/channel-health-monitor.d.ts +10 -3
- package/node_modules/@comis/channels/dist/shared/channel-health-monitor.js +7 -3
- package/node_modules/@comis/channels/dist/shared/delivery-timing.js +1 -1
- package/node_modules/@comis/channels/dist/shared/lifecycle-reactor.js +5 -4
- package/node_modules/@comis/channels/dist/shared/plan-renderer.d.ts +2 -2
- package/node_modules/@comis/channels/dist/shared/response-filter.js +2 -2
- package/node_modules/@comis/channels/dist/shared/strategies/actions.d.ts +5 -5
- package/node_modules/@comis/channels/dist/shared/strategies/append-only.d.ts +6 -6
- package/node_modules/@comis/channels/dist/shared/strategies/append-only.js +5 -5
- package/node_modules/@comis/channels/dist/shared/strategies/approval-render.d.ts +11 -11
- package/node_modules/@comis/channels/dist/shared/strategies/approval-render.js +4 -4
- package/node_modules/@comis/channels/dist/shared/strategies/delete-and-repost.d.ts +2 -2
- package/node_modules/@comis/channels/dist/shared/strategies/delete-and-repost.js +6 -6
- package/node_modules/@comis/channels/dist/shared/strategies/digest-only.d.ts +1 -1
- package/node_modules/@comis/channels/dist/shared/strategies/digest-only.js +3 -3
- package/node_modules/@comis/channels/dist/shared/strategies/edit-place.d.ts +5 -5
- package/node_modules/@comis/channels/dist/shared/strategies/edit-place.js +9 -10
- package/node_modules/@comis/channels/dist/shared/strategies/line-per-event.d.ts +2 -2
- package/node_modules/@comis/channels/dist/shared/strategies/line-per-event.js +6 -5
- package/node_modules/@comis/channels/dist/shared/strategies/render.d.ts +21 -21
- package/node_modules/@comis/channels/dist/shared/strategies/render.js +41 -39
- package/node_modules/@comis/channels/dist/shared/strategies/test-sink.js +2 -2
- package/node_modules/@comis/channels/dist/shared/voice-response-pipeline.d.ts +7 -7
- package/node_modules/@comis/channels/dist/shared/voice-response-pipeline.js +4 -4
- package/node_modules/@comis/channels/dist/signal/signal-activity.d.ts +1 -2
- package/node_modules/@comis/channels/dist/signal/signal-activity.js +6 -7
- package/node_modules/@comis/channels/dist/signal/signal-client.d.ts +3 -1
- package/node_modules/@comis/channels/dist/signal/signal-client.js +3 -1
- package/node_modules/@comis/channels/dist/signal/signal-format.d.ts +0 -2
- package/node_modules/@comis/channels/dist/signal/signal-format.js +0 -2
- package/node_modules/@comis/channels/dist/signal/signal-plugin.js +1 -1
- package/node_modules/@comis/channels/dist/slack/credential-validator.js +2 -2
- package/node_modules/@comis/channels/dist/slack/format-slack.js +4 -4
- package/node_modules/@comis/channels/dist/slack/media-handler.d.ts +0 -2
- package/node_modules/@comis/channels/dist/slack/media-handler.js +0 -2
- package/node_modules/@comis/channels/dist/slack/slack-activity.d.ts +1 -1
- package/node_modules/@comis/channels/dist/slack/slack-activity.js +6 -6
- package/node_modules/@comis/channels/dist/slack/slack-adapter.js +8 -7
- package/node_modules/@comis/channels/dist/slack/slack-plugin.js +1 -1
- package/node_modules/@comis/channels/dist/slack/slack-reaction-binder.d.ts +5 -5
- package/node_modules/@comis/channels/dist/slack/slack-reaction-binder.js +5 -5
- package/node_modules/@comis/channels/dist/telegram/telegram-activity.d.ts +1 -1
- package/node_modules/@comis/channels/dist/telegram/telegram-activity.js +5 -5
- package/node_modules/@comis/channels/dist/telegram/telegram-adapter/index.js +1 -1
- package/node_modules/@comis/channels/dist/telegram/telegram-adapter/telegram-adapter-types.d.ts +1 -1
- package/node_modules/@comis/channels/dist/telegram/telegram-adapter/telegram-inbound.d.ts +1 -1
- package/node_modules/@comis/channels/dist/telegram/telegram-adapter/telegram-inbound.js +3 -3
- package/node_modules/@comis/channels/dist/telegram/telegram-adapter/telegram-lifecycle.js +1 -1
- package/node_modules/@comis/channels/dist/telegram/telegram-adapter/telegram-outbound.js +2 -3
- package/node_modules/@comis/channels/dist/telegram/telegram-adapter/telegram-webhook.d.ts +1 -1
- package/node_modules/@comis/channels/dist/telegram/telegram-adapter/telegram-webhook.js +1 -1
- package/node_modules/@comis/channels/dist/telegram/telegram-plugin.js +1 -1
- package/node_modules/@comis/channels/dist/telegram/telegram-resolver.d.ts +2 -2
- package/node_modules/@comis/channels/dist/telegram/telegram-resolver.js +1 -1
- package/node_modules/@comis/channels/dist/whatsapp/jid-utils.d.ts +1 -2
- package/node_modules/@comis/channels/dist/whatsapp/jid-utils.js +1 -2
- package/node_modules/@comis/channels/dist/whatsapp/whatsapp-activity.js +6 -6
- package/node_modules/@comis/channels/dist/whatsapp/whatsapp-plugin.js +1 -1
- package/node_modules/@comis/channels/package.json +1 -1
- package/node_modules/@comis/cli/dist/cli.d.ts +9 -0
- package/node_modules/@comis/cli/dist/cli.js +6 -4
- package/node_modules/@comis/cli/dist/client/rpc-client.d.ts +4 -4
- package/node_modules/@comis/cli/dist/client/rpc-client.js +7 -7
- package/node_modules/@comis/cli/dist/commands/agent.js +3 -3
- package/node_modules/@comis/cli/dist/commands/auth.js +13 -13
- package/node_modules/@comis/cli/dist/commands/channel.js +4 -5
- package/node_modules/@comis/cli/dist/commands/cost-export.d.ts +5 -6
- package/node_modules/@comis/cli/dist/commands/cost-export.js +5 -6
- package/node_modules/@comis/cli/dist/commands/doctor.d.ts +2 -2
- package/node_modules/@comis/cli/dist/commands/doctor.js +10 -22
- package/node_modules/@comis/cli/dist/commands/explain.d.ts +2 -2
- package/node_modules/@comis/cli/dist/commands/explain.js +8 -8
- package/node_modules/@comis/cli/dist/commands/fleet.js +7 -7
- package/node_modules/@comis/cli/dist/commands/health.js +8 -9
- package/node_modules/@comis/cli/dist/commands/init.js +12 -0
- package/node_modules/@comis/cli/dist/commands/memory.js +10 -18
- package/node_modules/@comis/cli/dist/commands/orchestrate.d.ts +32 -0
- package/node_modules/@comis/cli/dist/commands/orchestrate.js +49 -0
- package/node_modules/@comis/cli/dist/commands/providers.js +1 -1
- package/node_modules/@comis/cli/dist/commands/secrets.d.ts +1 -1
- package/node_modules/@comis/cli/dist/commands/secrets.js +2 -2
- package/node_modules/@comis/cli/dist/commands/security-audit-log.d.ts +1 -1
- package/node_modules/@comis/cli/dist/commands/security-audit-log.js +1 -1
- package/node_modules/@comis/cli/dist/commands/security.d.ts +1 -1
- package/node_modules/@comis/cli/dist/commands/security.js +2 -2
- package/node_modules/@comis/cli/dist/commands/sessions.js +5 -6
- package/node_modules/@comis/cli/dist/commands/support-bundle.d.ts +32 -0
- package/node_modules/@comis/cli/dist/commands/support-bundle.js +159 -0
- package/node_modules/@comis/cli/dist/commands/whoami.d.ts +2 -2
- package/node_modules/@comis/cli/dist/commands/whoami.js +2 -2
- package/node_modules/@comis/cli/dist/doctor/checks/channel-health.d.ts +3 -3
- package/node_modules/@comis/cli/dist/doctor/checks/channel-health.js +3 -3
- package/node_modules/@comis/cli/dist/doctor/checks/lcd-health.d.ts +8 -6
- package/node_modules/@comis/cli/dist/doctor/checks/lcd-health.js +18 -15
- package/node_modules/@comis/cli/dist/doctor/checks/msteams-health.d.ts +40 -0
- package/node_modules/@comis/cli/dist/doctor/checks/msteams-health.js +227 -0
- package/node_modules/@comis/cli/dist/doctor/checks/oauth-health.js +8 -8
- package/node_modules/@comis/cli/dist/doctor/checks/version-skew-health.d.ts +6 -6
- package/node_modules/@comis/cli/dist/doctor/checks/version-skew-health.js +13 -25
- package/node_modules/@comis/cli/dist/doctor/config-resolve.d.ts +7 -7
- package/node_modules/@comis/cli/dist/doctor/config-resolve.js +14 -7
- package/node_modules/@comis/cli/dist/doctor/output.d.ts +23 -1
- package/node_modules/@comis/cli/dist/doctor/output.js +20 -6
- package/node_modules/@comis/cli/dist/doctor/repairs/repair-lcd.d.ts +17 -17
- package/node_modules/@comis/cli/dist/doctor/repairs/repair-lcd.js +9 -9
- package/node_modules/@comis/cli/dist/doctor/types.d.ts +10 -1
- package/node_modules/@comis/cli/dist/support-bundle/config-posture.d.ts +45 -0
- package/node_modules/@comis/cli/dist/support-bundle/config-posture.js +54 -0
- package/node_modules/@comis/cli/dist/support-bundle/generate.d.ts +148 -0
- package/node_modules/@comis/cli/dist/support-bundle/generate.js +348 -0
- package/node_modules/@comis/cli/dist/support-bundle/host-snapshot.d.ts +39 -0
- package/node_modules/@comis/cli/dist/support-bundle/host-snapshot.js +71 -0
- package/node_modules/@comis/cli/dist/support-bundle/render-ai-draft.d.ts +35 -0
- package/node_modules/@comis/cli/dist/support-bundle/render-ai-draft.js +95 -0
- package/node_modules/@comis/cli/dist/support-bundle/render-issue.d.ts +24 -0
- package/node_modules/@comis/cli/dist/support-bundle/render-issue.js +88 -0
- package/node_modules/@comis/cli/dist/support-bundle/session-embed.d.ts +94 -0
- package/node_modules/@comis/cli/dist/support-bundle/session-embed.js +102 -0
- package/node_modules/@comis/cli/dist/support-bundle/triage.d.ts +96 -0
- package/node_modules/@comis/cli/dist/support-bundle/triage.js +313 -0
- package/node_modules/@comis/cli/dist/support-bundle/types.d.ts +241 -0
- package/node_modules/@comis/cli/dist/support-bundle/types.js +235 -0
- package/node_modules/@comis/cli/dist/support-bundle/writer.d.ts +138 -0
- package/node_modules/@comis/cli/dist/support-bundle/writer.js +318 -0
- package/node_modules/@comis/cli/dist/sync-tooling/atomic-write.d.ts +1 -1
- package/node_modules/@comis/cli/dist/sync-tooling/atomic-write.js +1 -1
- package/node_modules/@comis/cli/dist/sync-tooling/daemon-guard.js +2 -2
- package/node_modules/@comis/cli/dist/sync-tooling/diff.d.ts +3 -3
- package/node_modules/@comis/cli/dist/sync-tooling/diff.js +3 -3
- package/node_modules/@comis/cli/dist/tooling-fill/agent-call.d.ts +3 -3
- package/node_modules/@comis/cli/dist/tooling-fill/agent-call.js +4 -4
- package/node_modules/@comis/cli/dist/tooling-fill/apply-hint.d.ts +1 -1
- package/node_modules/@comis/cli/dist/tooling-fill/apply-hint.js +2 -2
- package/node_modules/@comis/cli/dist/tooling-fill/orchestrator/orchestrator-verify.js +9 -9
- package/node_modules/@comis/cli/dist/tooling-fill/prompt-template.js +2 -2
- package/node_modules/@comis/cli/dist/util/cli-version.d.ts +18 -0
- package/node_modules/@comis/cli/dist/util/cli-version.js +29 -0
- package/node_modules/@comis/cli/dist/util/csv.d.ts +4 -4
- package/node_modules/@comis/cli/dist/util/csv.js +4 -4
- package/node_modules/@comis/cli/dist/util/exit-codes.d.ts +3 -3
- package/node_modules/@comis/cli/dist/util/exit-codes.js +3 -3
- package/node_modules/@comis/cli/dist/util/offline-learning.d.ts +6 -7
- package/node_modules/@comis/cli/dist/util/offline-learning.js +7 -8
- package/node_modules/@comis/cli/dist/util/offline-obs.d.ts +68 -6
- package/node_modules/@comis/cli/dist/util/offline-obs.js +209 -6
- package/node_modules/@comis/cli/dist/util/offline-secrets-store.js +3 -3
- package/node_modules/@comis/cli/dist/util/offline-skills.d.ts +5 -6
- package/node_modules/@comis/cli/dist/util/offline-skills.js +6 -7
- package/node_modules/@comis/cli/dist/wizard/index.d.ts +1 -4
- package/node_modules/@comis/cli/dist/wizard/index.js +1 -4
- package/node_modules/@comis/cli/dist/wizard/non-interactive.d.ts +4 -0
- package/node_modules/@comis/cli/dist/wizard/non-interactive.js +36 -5
- package/node_modules/@comis/cli/dist/wizard/steps/03-provider.js +1 -1
- package/node_modules/@comis/cli/dist/wizard/steps/04-credentials.js +1 -1
- package/node_modules/@comis/cli/dist/wizard/steps/04-oauth-helpers.js +1 -1
- package/node_modules/@comis/cli/dist/wizard/steps/06-channels.d.ts +1 -1
- package/node_modules/@comis/cli/dist/wizard/steps/06-channels.js +61 -1
- package/node_modules/@comis/cli/dist/wizard/steps/08c-video-providers.d.ts +1 -1
- package/node_modules/@comis/cli/dist/wizard/steps/08c-video-providers.js +2 -2
- package/node_modules/@comis/cli/dist/wizard/steps/08d-image-providers.d.ts +1 -1
- package/node_modules/@comis/cli/dist/wizard/steps/08d-image-providers.js +2 -2
- package/node_modules/@comis/cli/dist/wizard/steps/08e-transcription.d.ts +1 -1
- package/node_modules/@comis/cli/dist/wizard/steps/08e-transcription.js +2 -2
- package/node_modules/@comis/cli/dist/wizard/steps/08f-tts.d.ts +2 -2
- package/node_modules/@comis/cli/dist/wizard/steps/08f-tts.js +3 -3
- package/node_modules/@comis/cli/dist/wizard/steps/10-write-config.js +36 -13
- package/node_modules/@comis/cli/dist/wizard/steps/11-daemon-start.d.ts +5 -6
- package/node_modules/@comis/cli/dist/wizard/steps/11-daemon-start.js +5 -6
- package/node_modules/@comis/cli/dist/wizard/types.d.ts +19 -15
- package/node_modules/@comis/cli/dist/wizard/types.js +13 -11
- package/node_modules/@comis/cli/dist/wizard/validators/channel-creds.js +44 -0
- package/node_modules/@comis/cli/package.json +1 -1
- package/node_modules/@comis/core/dist/activity/activity-event.d.ts +3 -4
- package/node_modules/@comis/core/dist/activity/activity-event.js +1 -1
- package/node_modules/@comis/core/dist/activity/activity-strategy.d.ts +2 -2
- package/node_modules/@comis/core/dist/activity/activity-strategy.js +2 -2
- package/node_modules/@comis/core/dist/activity/activity-stream-port.d.ts +3 -4
- package/node_modules/@comis/core/dist/activity/approval.d.ts +2 -2
- package/node_modules/@comis/core/dist/activity/approval.js +3 -3
- package/node_modules/@comis/core/dist/activity/channel-activity-renderer.d.ts +7 -7
- package/node_modules/@comis/core/dist/activity/label-spec.d.ts +10 -10
- package/node_modules/@comis/core/dist/activity/label-spec.js +5 -5
- package/node_modules/@comis/core/dist/activity/projections/acp-projection.d.ts +1 -1
- package/node_modules/@comis/core/dist/activity/projections/chat-projection.d.ts +2 -2
- package/node_modules/@comis/core/dist/activity/projections/chat-projection.js +2 -2
- package/node_modules/@comis/core/dist/activity/projections/coalesce.d.ts +2 -2
- package/node_modules/@comis/core/dist/activity/projections/coalesce.js +4 -4
- package/node_modules/@comis/core/dist/activity/projections/index.d.ts +1 -1
- package/node_modules/@comis/core/dist/activity/projections/index.js +1 -1
- package/node_modules/@comis/core/dist/activity/semantic-classifier.d.ts +5 -5
- package/node_modules/@comis/core/dist/activity/semantic-classifier.js +4 -4
- package/node_modules/@comis/core/dist/activity/template-engine.d.ts +7 -7
- package/node_modules/@comis/core/dist/activity/template-engine.js +13 -13
- package/node_modules/@comis/core/dist/activity/themes/ascii.d.ts +1 -1
- package/node_modules/@comis/core/dist/activity/themes/ascii.js +1 -1
- package/node_modules/@comis/core/dist/activity/themes/default.d.ts +4 -4
- package/node_modules/@comis/core/dist/activity/themes/default.js +2 -2
- package/node_modules/@comis/core/dist/activity/turn-activity-context.d.ts +1 -1
- package/node_modules/@comis/core/dist/activity/turn-outcome.d.ts +5 -4
- package/node_modules/@comis/core/dist/api-contracts/agents.d.ts +1 -1
- package/node_modules/@comis/core/dist/api-contracts/agents.js +1 -1
- package/node_modules/@comis/core/dist/api-contracts/audit-query.d.ts +9 -9
- package/node_modules/@comis/core/dist/api-contracts/audit-query.js +8 -8
- package/node_modules/@comis/core/dist/api-contracts/auth.d.ts +4 -4
- package/node_modules/@comis/core/dist/api-contracts/auth.js +5 -5
- package/node_modules/@comis/core/dist/api-contracts/capabilities.d.ts +10 -12
- package/node_modules/@comis/core/dist/api-contracts/capabilities.js +12 -14
- package/node_modules/@comis/core/dist/api-contracts/channels.d.ts +12 -9
- package/node_modules/@comis/core/dist/api-contracts/channels.js +19 -14
- package/node_modules/@comis/core/dist/api-contracts/config.d.ts +6 -5
- package/node_modules/@comis/core/dist/api-contracts/config.js +7 -6
- package/node_modules/@comis/core/dist/api-contracts/context.d.ts +14 -16
- package/node_modules/@comis/core/dist/api-contracts/context.js +14 -16
- package/node_modules/@comis/core/dist/api-contracts/daemon.d.ts +1 -3
- package/node_modules/@comis/core/dist/api-contracts/daemon.js +1 -3
- package/node_modules/@comis/core/dist/api-contracts/fleet-health-report.d.ts +55 -17
- package/node_modules/@comis/core/dist/api-contracts/fleet-health-report.js +87 -41
- package/node_modules/@comis/core/dist/api-contracts/incident-report-sections.d.ts +80 -11
- package/node_modules/@comis/core/dist/api-contracts/incident-report-sections.js +67 -15
- package/node_modules/@comis/core/dist/api-contracts/incident-report-signals.d.ts +423 -0
- package/node_modules/@comis/core/dist/api-contracts/incident-report-signals.js +1 -0
- package/node_modules/@comis/core/dist/api-contracts/incident-report.d.ts +128 -333
- package/node_modules/@comis/core/dist/api-contracts/incident-report.js +149 -91
- package/node_modules/@comis/core/dist/api-contracts/index.d.ts +4 -4
- package/node_modules/@comis/core/dist/api-contracts/index.js +1 -1
- package/node_modules/@comis/core/dist/api-contracts/internals.js +8 -7
- package/node_modules/@comis/core/dist/api-contracts/mcp.js +3 -3
- package/node_modules/@comis/core/dist/api-contracts/media.d.ts +12 -17
- package/node_modules/@comis/core/dist/api-contracts/media.js +16 -21
- package/node_modules/@comis/core/dist/api-contracts/memory-diagnostics.d.ts +11 -19
- package/node_modules/@comis/core/dist/api-contracts/memory-diagnostics.js +20 -28
- package/node_modules/@comis/core/dist/api-contracts/memory-pinning.d.ts +0 -5
- package/node_modules/@comis/core/dist/api-contracts/memory-pinning.js +1 -6
- package/node_modules/@comis/core/dist/api-contracts/memory-portability.js +3 -3
- package/node_modules/@comis/core/dist/api-contracts/memory.d.ts +12 -47
- package/node_modules/@comis/core/dist/api-contracts/memory.js +18 -72
- package/node_modules/@comis/core/dist/api-contracts/observability-billing.d.ts +2 -2
- package/node_modules/@comis/core/dist/api-contracts/observability-billing.js +2 -2
- package/node_modules/@comis/core/dist/api-contracts/observability.d.ts +89 -11
- package/node_modules/@comis/core/dist/api-contracts/observability.js +17 -17
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/autonomy-handlers.d.ts +12 -12
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/autonomy-handlers.js +12 -12
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/cron-handlers.d.ts +15 -3
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/cron-handlers.js +25 -13
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/graph-handlers.d.ts +2 -2
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/graph-handlers.js +2 -2
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/heartbeat-handlers.d.ts +4 -3
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/heartbeat-handlers.js +4 -3
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/index.d.ts +12 -0
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/index.js +7 -3
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/replay-handlers.d.ts +61 -0
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/replay-handlers.js +69 -0
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/subagent-handlers.d.ts +2 -2
- package/node_modules/@comis/core/dist/api-contracts/orchestrator/subagent-handlers.js +2 -2
- package/node_modules/@comis/core/dist/api-contracts/sessions.d.ts +5 -5
- package/node_modules/@comis/core/dist/api-contracts/sessions.js +24 -24
- package/node_modules/@comis/core/dist/api-contracts/workspace/approval-handlers.d.ts +4 -5
- package/node_modules/@comis/core/dist/api-contracts/workspace/approval-handlers.js +4 -5
- package/node_modules/@comis/core/dist/api-contracts/workspace/skill-handlers.js +8 -8
- package/node_modules/@comis/core/dist/approval/approval-gate.js +12 -11
- package/node_modules/@comis/core/dist/approval/approval-short-id.js +1 -1
- package/node_modules/@comis/core/dist/bootstrap.js +7 -7
- package/node_modules/@comis/core/dist/config/capability-activation.d.ts +17 -29
- package/node_modules/@comis/core/dist/config/capability-activation.js +17 -29
- package/node_modules/@comis/core/dist/config/field-metadata.js +2 -2
- package/node_modules/@comis/core/dist/config/immutable-keys.js +7 -7
- package/node_modules/@comis/core/dist/config/index.d.ts +2 -2
- package/node_modules/@comis/core/dist/config/index.js +16 -22
- package/node_modules/@comis/core/dist/config/schema-agent/index.d.ts +1 -0
- package/node_modules/@comis/core/dist/config/schema-agent/index.js +8 -4
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-bounds.d.ts +29 -30
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-bounds.js +32 -33
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-degrade.d.ts +15 -15
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-degrade.js +11 -12
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-durability.d.ts +10 -9
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-durability.js +27 -15
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-escalate.d.ts +9 -9
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-escalate.js +7 -7
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-mcp.d.ts +67 -0
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-mcp.js +93 -0
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-mode.d.ts +19 -18
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-mode.js +19 -18
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-role.d.ts +10 -10
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy-role.js +10 -10
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy.d.ts +60 -48
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-autonomy.js +95 -88
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-context.d.ts +1 -1
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-context.js +34 -37
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-model.js +6 -5
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-prompt.d.ts +5 -5
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-prompt.js +19 -20
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-runtime.d.ts +31 -1
- package/node_modules/@comis/core/dist/config/schema-agent/schema-agent-runtime.js +32 -37
- package/node_modules/@comis/core/dist/config/schema-broker.js +2 -2
- package/node_modules/@comis/core/dist/config/schema-channel.d.ts +94 -0
- package/node_modules/@comis/core/dist/config/schema-channel.js +49 -0
- package/node_modules/@comis/core/dist/config/schema-daemon.d.ts +2 -2
- package/node_modules/@comis/core/dist/config/schema-delivery.js +1 -1
- package/node_modules/@comis/core/dist/config/schema-diagnostics.d.ts +2 -3
- package/node_modules/@comis/core/dist/config/schema-diagnostics.js +9 -6
- package/node_modules/@comis/core/dist/config/schema-dialectic.d.ts +6 -9
- package/node_modules/@comis/core/dist/config/schema-dialectic.js +6 -9
- package/node_modules/@comis/core/dist/config/schema-embedding.js +1 -1
- package/node_modules/@comis/core/dist/config/schema-integrations.d.ts +5 -7
- package/node_modules/@comis/core/dist/config/schema-integrations.js +53 -59
- package/node_modules/@comis/core/dist/config/schema-learning-outcome.d.ts +15 -16
- package/node_modules/@comis/core/dist/config/schema-learning-outcome.js +21 -22
- package/node_modules/@comis/core/dist/config/schema-learning.d.ts +13 -31
- package/node_modules/@comis/core/dist/config/schema-learning.js +35 -40
- package/node_modules/@comis/core/dist/config/schema-memory-lifecycle.d.ts +15 -17
- package/node_modules/@comis/core/dist/config/schema-memory-lifecycle.js +15 -17
- package/node_modules/@comis/core/dist/config/schema-memory-review.d.ts +1 -1
- package/node_modules/@comis/core/dist/config/schema-memory-review.js +4 -4
- package/node_modules/@comis/core/dist/config/schema-memory.d.ts +2 -2
- package/node_modules/@comis/core/dist/config/schema-memory.js +5 -6
- package/node_modules/@comis/core/dist/config/schema-observability.d.ts +15 -15
- package/node_modules/@comis/core/dist/config/schema-observability.js +31 -31
- package/node_modules/@comis/core/dist/config/schema-orchestration.d.ts +6 -6
- package/node_modules/@comis/core/dist/config/schema-orchestration.js +9 -9
- package/node_modules/@comis/core/dist/config/schema-providers.d.ts +1 -1
- package/node_modules/@comis/core/dist/config/schema-providers.js +2 -2
- package/node_modules/@comis/core/dist/config/schema-scheduler.d.ts +10 -0
- package/node_modules/@comis/core/dist/config/schema-scheduler.js +27 -0
- package/node_modules/@comis/core/dist/config/schema-security.d.ts +0 -3
- package/node_modules/@comis/core/dist/config/schema-security.js +15 -15
- package/node_modules/@comis/core/dist/config/schema-serializer.js +3 -4
- package/node_modules/@comis/core/dist/config/schema-skills.d.ts +2 -2
- package/node_modules/@comis/core/dist/config/schema-skills.js +65 -65
- package/node_modules/@comis/core/dist/config/schema-streaming.d.ts +1 -1
- package/node_modules/@comis/core/dist/config/schema-streaming.js +1 -1
- package/node_modules/@comis/core/dist/config/schema-verbosity.d.ts +0 -1
- package/node_modules/@comis/core/dist/config/schema-verbosity.js +0 -1
- package/node_modules/@comis/core/dist/config/schema.d.ts +58 -1
- package/node_modules/@comis/core/dist/config/schema.js +3 -2
- package/node_modules/@comis/core/dist/config/section-registry.d.ts +4 -4
- package/node_modules/@comis/core/dist/config/section-registry.js +7 -7
- package/node_modules/@comis/core/dist/context/context.d.ts +2 -2
- package/node_modules/@comis/core/dist/context/context.js +4 -4
- package/node_modules/@comis/core/dist/context-store/parts-codec.d.ts +9 -8
- package/node_modules/@comis/core/dist/context-store/parts-codec.js +17 -17
- package/node_modules/@comis/core/dist/delivery/chunk-for-delivery.d.ts +3 -2
- package/node_modules/@comis/core/dist/delivery/chunk-for-delivery.js +4 -3
- package/node_modules/@comis/core/dist/delivery/delivery-service.d.ts +25 -32
- package/node_modules/@comis/core/dist/delivery/delivery-service.js +25 -27
- package/node_modules/@comis/core/dist/delivery/format-for-channel.d.ts +1 -1
- package/node_modules/@comis/core/dist/delivery/format-for-channel.js +1 -1
- package/node_modules/@comis/core/dist/delivery/markdown-ir.js +6 -5
- package/node_modules/@comis/core/dist/delivery/types.d.ts +3 -3
- package/node_modules/@comis/core/dist/delivery/types.js +3 -3
- package/node_modules/@comis/core/dist/domain/approval-request.js +2 -2
- package/node_modules/@comis/core/dist/domain/channel-capability.d.ts +1 -0
- package/node_modules/@comis/core/dist/domain/channel-capability.js +5 -4
- package/node_modules/@comis/core/dist/domain/chat-type.d.ts +3 -4
- package/node_modules/@comis/core/dist/domain/chat-type.js +3 -4
- package/node_modules/@comis/core/dist/domain/durable-run.d.ts +9 -5
- package/node_modules/@comis/core/dist/domain/durable-run.js +30 -14
- package/node_modules/@comis/core/dist/domain/execution-graph.js +6 -7
- package/node_modules/@comis/core/dist/domain/index.d.ts +2 -0
- package/node_modules/@comis/core/dist/domain/index.js +5 -0
- package/node_modules/@comis/core/dist/domain/memory-entry.d.ts +8 -8
- package/node_modules/@comis/core/dist/domain/memory-entry.js +28 -28
- package/node_modules/@comis/core/dist/domain/memory-export-envelope.d.ts +1 -1
- package/node_modules/@comis/core/dist/domain/memory-export-envelope.js +1 -1
- package/node_modules/@comis/core/dist/domain/msteams-conversation-reference.d.ts +68 -0
- package/node_modules/@comis/core/dist/domain/msteams-conversation-reference.js +58 -0
- package/node_modules/@comis/core/dist/domain/normalized-message.d.ts +2 -2
- package/node_modules/@comis/core/dist/domain/normalized-message.js +2 -2
- package/node_modules/@comis/core/dist/domain/normalized-reaction.d.ts +4 -5
- package/node_modules/@comis/core/dist/domain/normalized-reaction.js +4 -5
- package/node_modules/@comis/core/dist/domain/provider-capabilities.d.ts +1 -2
- package/node_modules/@comis/core/dist/domain/provider-capabilities.js +1 -2
- package/node_modules/@comis/core/dist/domain/rpc-error-classification.d.ts +49 -0
- package/node_modules/@comis/core/dist/domain/rpc-error-classification.js +62 -0
- package/node_modules/@comis/core/dist/domain/session-key.js +1 -1
- package/node_modules/@comis/core/dist/domain/sub-agent-tool-denylist.js +1 -0
- package/node_modules/@comis/core/dist/domain/subagent-context-config.js +1 -1
- package/node_modules/@comis/core/dist/domain/subagent-context-types.d.ts +4 -4
- package/node_modules/@comis/core/dist/event-bus/events-agent.d.ts +61 -54
- package/node_modules/@comis/core/dist/event-bus/events-channel.d.ts +69 -8
- package/node_modules/@comis/core/dist/event-bus/events-infra.d.ts +29 -6
- package/node_modules/@comis/core/dist/event-bus/events-learning.d.ts +41 -40
- package/node_modules/@comis/core/dist/event-bus/events-learning.js +4 -4
- package/node_modules/@comis/core/dist/event-bus/events-media.d.ts +44 -44
- package/node_modules/@comis/core/dist/event-bus/events-messaging.d.ts +66 -52
- package/node_modules/@comis/core/dist/event-bus/events-model.d.ts +4 -7
- package/node_modules/@comis/core/dist/event-bus/events-orchestration.d.ts +146 -56
- package/node_modules/@comis/core/dist/event-bus/events-terminal.d.ts +48 -48
- package/node_modules/@comis/core/dist/event-bus/events-trajectory.d.ts +6 -9
- package/node_modules/@comis/core/dist/event-bus/events-trajectory.js +2 -5
- package/node_modules/@comis/core/dist/event-bus/events.d.ts +6 -6
- package/node_modules/@comis/core/dist/exports/activity.js +1 -1
- package/node_modules/@comis/core/dist/exports/config.d.ts +1 -1
- package/node_modules/@comis/core/dist/exports/config.js +12 -9
- package/node_modules/@comis/core/dist/exports/delivery.js +2 -1
- package/node_modules/@comis/core/dist/exports/domain.d.ts +1 -1
- package/node_modules/@comis/core/dist/exports/domain.js +2 -0
- package/node_modules/@comis/core/dist/exports/media.js +40 -55
- package/node_modules/@comis/core/dist/exports/model.js +2 -2
- package/node_modules/@comis/core/dist/exports/oauth.d.ts +1 -2
- package/node_modules/@comis/core/dist/exports/oauth.js +1 -2
- package/node_modules/@comis/core/dist/exports/ports.js +11 -12
- package/node_modules/@comis/core/dist/exports/runtime.js +3 -3
- package/node_modules/@comis/core/dist/exports/security.js +16 -16
- package/node_modules/@comis/core/dist/exports/text.js +3 -4
- package/node_modules/@comis/core/dist/hooks/hook-runner.d.ts +4 -4
- package/node_modules/@comis/core/dist/hooks/plugin-registry.d.ts +4 -4
- package/node_modules/@comis/core/dist/index.d.ts +2 -0
- package/node_modules/@comis/core/dist/index.js +5 -3
- package/node_modules/@comis/core/dist/logging/dedup-logger.d.ts +7 -8
- package/node_modules/@comis/core/dist/logging/fingerprint.js +4 -4
- package/node_modules/@comis/core/dist/logging/log-fields.d.ts +3 -3
- package/node_modules/@comis/core/dist/logging/log-fields.js +1 -1
- package/node_modules/@comis/core/dist/media/image-capability.d.ts +12 -13
- package/node_modules/@comis/core/dist/media/image-capability.js +13 -14
- package/node_modules/@comis/core/dist/media/image-error.d.ts +1 -1
- package/node_modules/@comis/core/dist/media/image-error.js +1 -1
- package/node_modules/@comis/core/dist/media/image-models.d.ts +5 -5
- package/node_modules/@comis/core/dist/media/image-models.js +5 -5
- package/node_modules/@comis/core/dist/media/index.js +8 -9
- package/node_modules/@comis/core/dist/media/resolve-image-provider.d.ts +6 -6
- package/node_modules/@comis/core/dist/media/resolve-image-provider.js +6 -6
- package/node_modules/@comis/core/dist/media/resolve-transcription-provider.d.ts +9 -9
- package/node_modules/@comis/core/dist/media/resolve-transcription-provider.js +11 -11
- package/node_modules/@comis/core/dist/media/resolve-tts-provider.d.ts +8 -8
- package/node_modules/@comis/core/dist/media/resolve-tts-provider.js +6 -6
- package/node_modules/@comis/core/dist/media/resolve-video-provider.d.ts +9 -9
- package/node_modules/@comis/core/dist/media/resolve-video-provider.js +13 -13
- package/node_modules/@comis/core/dist/media/resolve-vision-path.d.ts +10 -11
- package/node_modules/@comis/core/dist/media/resolve-vision-path.js +11 -12
- package/node_modules/@comis/core/dist/media/video-capability.d.ts +6 -9
- package/node_modules/@comis/core/dist/media/video-capability.js +7 -10
- package/node_modules/@comis/core/dist/media/video-error.d.ts +7 -7
- package/node_modules/@comis/core/dist/media/video-error.js +8 -8
- package/node_modules/@comis/core/dist/media/video-models.d.ts +18 -18
- package/node_modules/@comis/core/dist/media/video-models.js +19 -19
- package/node_modules/@comis/core/dist/media/video-pricing.d.ts +5 -6
- package/node_modules/@comis/core/dist/media/video-pricing.js +8 -9
- package/node_modules/@comis/core/dist/media/voice-capability.d.ts +7 -7
- package/node_modules/@comis/core/dist/media/voice-capability.js +8 -8
- package/node_modules/@comis/core/dist/media/voice-error.d.ts +3 -3
- package/node_modules/@comis/core/dist/media/voice-error.js +3 -3
- package/node_modules/@comis/core/dist/model/model-catalog.d.ts +6 -6
- package/node_modules/@comis/core/dist/model/model-catalog.js +9 -9
- package/node_modules/@comis/core/dist/model/model-family.d.ts +9 -8
- package/node_modules/@comis/core/dist/model/model-family.js +10 -9
- package/node_modules/@comis/core/dist/oauth/index.d.ts +1 -1
- package/node_modules/@comis/core/dist/oauth/index.js +2 -2
- package/node_modules/@comis/core/dist/oauth/oauth-credential-store-file.d.ts +2 -1
- package/node_modules/@comis/core/dist/oauth/oauth-credential-store-file.js +2 -1
- package/node_modules/@comis/core/dist/oauth/oauth-credential-store-selector.d.ts +3 -3
- package/node_modules/@comis/core/dist/oauth/oauth-credential-store-selector.js +1 -1
- package/node_modules/@comis/core/dist/oauth/oauth-device-code.d.ts +5 -5
- package/node_modules/@comis/core/dist/oauth/oauth-device-code.js +7 -8
- package/node_modules/@comis/core/dist/oauth/oauth-login-runner.d.ts +1 -1
- package/node_modules/@comis/core/dist/oauth/oauth-login-runner.js +10 -8
- package/node_modules/@comis/core/dist/oauth/oauth-tls-preflight.d.ts +5 -7
- package/node_modules/@comis/core/dist/oauth/oauth-tls-preflight.js +4 -6
- package/node_modules/@comis/core/dist/ports/channel.d.ts +18 -11
- package/node_modules/@comis/core/dist/ports/context-store-types.d.ts +53 -56
- package/node_modules/@comis/core/dist/ports/context-store-types.js +8 -10
- package/node_modules/@comis/core/dist/ports/context-store.d.ts +51 -57
- package/node_modules/@comis/core/dist/ports/context-store.js +0 -6
- package/node_modules/@comis/core/dist/ports/delivery-mirror.d.ts +1 -3
- package/node_modules/@comis/core/dist/ports/delivery-mirror.js +1 -3
- package/node_modules/@comis/core/dist/ports/delivery-queue.d.ts +2 -4
- package/node_modules/@comis/core/dist/ports/delivery-queue.js +1 -3
- package/node_modules/@comis/core/dist/ports/durable-run.d.ts +13 -13
- package/node_modules/@comis/core/dist/ports/durable-run.js +3 -3
- package/node_modules/@comis/core/dist/ports/egress-control.d.ts +4 -4
- package/node_modules/@comis/core/dist/ports/egress-control.js +4 -4
- package/node_modules/@comis/core/dist/ports/execution-plan-port.d.ts +6 -6
- package/node_modules/@comis/core/dist/ports/execution-plan-port.js +5 -5
- package/node_modules/@comis/core/dist/ports/file-lock.d.ts +10 -11
- package/node_modules/@comis/core/dist/ports/hook-types.d.ts +3 -3
- package/node_modules/@comis/core/dist/ports/index.js +3 -4
- package/node_modules/@comis/core/dist/ports/learned-skill-store.d.ts +51 -25
- package/node_modules/@comis/core/dist/ports/memory-causal-store.d.ts +8 -7
- package/node_modules/@comis/core/dist/ports/memory-consolidation.d.ts +14 -17
- package/node_modules/@comis/core/dist/ports/memory-embedding-store.d.ts +5 -5
- package/node_modules/@comis/core/dist/ports/memory-entity-store.d.ts +6 -6
- package/node_modules/@comis/core/dist/ports/memory-lifecycle.d.ts +18 -18
- package/node_modules/@comis/core/dist/ports/memory-pinned-store.d.ts +3 -3
- package/node_modules/@comis/core/dist/ports/memory-temporal-store.d.ts +3 -3
- package/node_modules/@comis/core/dist/ports/memory-usefulness-store.d.ts +15 -14
- package/node_modules/@comis/core/dist/ports/memory.d.ts +10 -11
- package/node_modules/@comis/core/dist/ports/msteams-conversation-store.d.ts +41 -0
- package/node_modules/@comis/core/dist/ports/msteams-conversation-store.js +21 -0
- package/node_modules/@comis/core/dist/ports/outcome-signal-port.d.ts +36 -21
- package/node_modules/@comis/core/dist/ports/output-guard.d.ts +1 -1
- package/node_modules/@comis/core/dist/ports/outward-send-ledger.d.ts +21 -21
- package/node_modules/@comis/core/dist/ports/outward-send-ledger.js +6 -6
- package/node_modules/@comis/core/dist/ports/plugin.d.ts +3 -3
- package/node_modules/@comis/core/dist/ports/provider.d.ts +44 -44
- package/node_modules/@comis/core/dist/ports/reflection-port.d.ts +6 -6
- package/node_modules/@comis/core/dist/ports/reflection-port.js +4 -4
- package/node_modules/@comis/core/dist/ports/session-store-types.d.ts +2 -2
- package/node_modules/@comis/core/dist/ports/session-store-types.js +2 -2
- package/node_modules/@comis/core/dist/ports/session-store.d.ts +3 -3
- package/node_modules/@comis/core/dist/ports/session-store.js +2 -2
- package/node_modules/@comis/core/dist/ports/tool-capability.d.ts +1 -1
- package/node_modules/@comis/core/dist/ports/triple-store.d.ts +5 -5
- package/node_modules/@comis/core/dist/provider/keyless-providers.d.ts +3 -3
- package/node_modules/@comis/core/dist/provider/keyless-providers.js +3 -3
- package/node_modules/@comis/core/dist/reflection/delta-ops.d.ts +4 -4
- package/node_modules/@comis/core/dist/reflection/delta-ops.js +4 -4
- package/node_modules/@comis/core/dist/runtime/file-lock.d.ts +3 -3
- package/node_modules/@comis/core/dist/runtime/file-lock.js +3 -3
- package/node_modules/@comis/core/dist/runtime/is-remote-env.d.ts +4 -2
- package/node_modules/@comis/core/dist/runtime/is-remote-env.js +4 -2
- package/node_modules/@comis/core/dist/runtime/poll-deadline.d.ts +1 -1
- package/node_modules/@comis/core/dist/runtime/poll-deadline.js +5 -4
- package/node_modules/@comis/core/dist/security/audit.d.ts +12 -12
- package/node_modules/@comis/core/dist/security/audit.js +14 -14
- package/node_modules/@comis/core/dist/security/bind-mount-validator.js +2 -2
- package/node_modules/@comis/core/dist/security/callback-signing.d.ts +1 -1
- package/node_modules/@comis/core/dist/security/callback-signing.js +2 -2
- package/node_modules/@comis/core/dist/security/capability.d.ts +10 -10
- package/node_modules/@comis/core/dist/security/capability.js +12 -9
- package/node_modules/@comis/core/dist/security/cli-subcommand-map.d.ts +12 -12
- package/node_modules/@comis/core/dist/security/cli-subcommand-map.js +15 -15
- package/node_modules/@comis/core/dist/security/external-content.d.ts +1 -1
- package/node_modules/@comis/core/dist/security/external-content.js +5 -3
- package/node_modules/@comis/core/dist/security/handler-capability-map.d.ts +8 -8
- package/node_modules/@comis/core/dist/security/handler-capability-map.js +7 -7
- package/node_modules/@comis/core/dist/security/index.js +12 -12
- package/node_modules/@comis/core/dist/security/injection-patterns.d.ts +2 -2
- package/node_modules/@comis/core/dist/security/injection-patterns.js +2 -2
- package/node_modules/@comis/core/dist/security/input-security-guard.js +1 -1
- package/node_modules/@comis/core/dist/security/log-sanitizer.d.ts +5 -6
- package/node_modules/@comis/core/dist/security/log-sanitizer.js +13 -14
- package/node_modules/@comis/core/dist/security/master-key.js +1 -1
- package/node_modules/@comis/core/dist/security/oauth-helpers.d.ts +8 -10
- package/node_modules/@comis/core/dist/security/oauth-helpers.js +11 -12
- package/node_modules/@comis/core/dist/security/output-guard.js +1 -1
- package/node_modules/@comis/core/dist/security/patterns/content-scanner.d.ts +2 -1
- package/node_modules/@comis/core/dist/security/patterns/content-scanner.js +2 -1
- package/node_modules/@comis/core/dist/security/patterns/credential-log.d.ts +3 -3
- package/node_modules/@comis/core/dist/security/patterns/credential-log.js +3 -3
- package/node_modules/@comis/core/dist/security/patterns/dangerous-commands.d.ts +1 -1
- package/node_modules/@comis/core/dist/security/patterns/dangerous-commands.js +1 -1
- package/node_modules/@comis/core/dist/security/patterns/jailbreak.d.ts +7 -7
- package/node_modules/@comis/core/dist/security/patterns/jailbreak.js +7 -7
- package/node_modules/@comis/core/dist/security/patterns/prompt-extraction.d.ts +1 -1
- package/node_modules/@comis/core/dist/security/patterns/prompt-extraction.js +1 -1
- package/node_modules/@comis/core/dist/security/patterns/role-markers.d.ts +4 -4
- package/node_modules/@comis/core/dist/security/patterns/role-markers.js +4 -4
- package/node_modules/@comis/core/dist/security/patterns/secret-formats.d.ts +1 -1
- package/node_modules/@comis/core/dist/security/patterns/secret-formats.js +1 -1
- package/node_modules/@comis/core/dist/security/provider-catalog/types.d.ts +1 -1
- package/node_modules/@comis/core/dist/security/redact-value.d.ts +8 -7
- package/node_modules/@comis/core/dist/security/redact-value.js +23 -21
- package/node_modules/@comis/core/dist/security/result-ref.d.ts +24 -22
- package/node_modules/@comis/core/dist/security/result-ref.js +23 -20
- package/node_modules/@comis/core/dist/security/secret-access.d.ts +4 -4
- package/node_modules/@comis/core/dist/security/secret-access.js +4 -4
- package/node_modules/@comis/core/dist/security/secret-detection.d.ts +15 -17
- package/node_modules/@comis/core/dist/security/secret-detection.js +21 -24
- package/node_modules/@comis/core/dist/security/secret-manager.d.ts +1 -1
- package/node_modules/@comis/core/dist/security/secrets-audit.js +3 -2
- package/node_modules/@comis/core/dist/security/ssrf-guard.d.ts +4 -4
- package/node_modules/@comis/core/dist/security/ssrf-guard.js +10 -10
- package/node_modules/@comis/core/dist/security/token-generator.d.ts +3 -3
- package/node_modules/@comis/core/dist/security/token-generator.js +3 -3
- package/node_modules/@comis/core/dist/security/tool-capability-map.d.ts +30 -11
- package/node_modules/@comis/core/dist/security/tool-capability-map.js +55 -14
- package/node_modules/@comis/core/dist/security/validate-learned-doc-body.d.ts +15 -19
- package/node_modules/@comis/core/dist/security/validate-learned-doc-body.js +15 -19
- package/node_modules/@comis/core/dist/text/generation-quality.d.ts +11 -10
- package/node_modules/@comis/core/dist/text/generation-quality.js +10 -9
- package/node_modules/@comis/core/dist/text/multilingual-heuristic.d.ts +10 -10
- package/node_modules/@comis/core/dist/text/multilingual-heuristic.js +10 -10
- package/node_modules/@comis/core/dist/text/normalize-search.d.ts +8 -8
- package/node_modules/@comis/core/dist/text/normalize-search.js +14 -15
- package/node_modules/@comis/core/dist/text/script-classes.d.ts +12 -12
- package/node_modules/@comis/core/dist/text/script-classes.js +35 -35
- package/node_modules/@comis/core/dist/text/slice-boundary.d.ts +8 -8
- package/node_modules/@comis/core/dist/text/slice-boundary.js +9 -9
- package/node_modules/@comis/core/dist/text/token-factor.d.ts +3 -3
- package/node_modules/@comis/core/dist/text/token-factor.js +9 -9
- package/node_modules/@comis/core/dist/text/trigram-query.d.ts +12 -12
- package/node_modules/@comis/core/dist/text/trigram-query.js +23 -20
- package/node_modules/@comis/core/dist/tool-metadata.d.ts +11 -11
- package/node_modules/@comis/core/dist/workspace/templates.d.ts +3 -3
- package/node_modules/@comis/core/dist/workspace/templates.js +3 -3
- package/node_modules/@comis/core/dist/workspace/workspace-manager.d.ts +4 -5
- package/node_modules/@comis/core/dist/workspace/workspace-manager.js +12 -14
- package/node_modules/@comis/core/dist/workspace/workspace-resolver.d.ts +5 -5
- package/node_modules/@comis/core/dist/workspace/workspace-resolver.js +5 -5
- package/node_modules/@comis/core/package.json +1 -1
- package/node_modules/@comis/daemon/bundled-skills/claude-code/SKILL.md +1 -1
- package/node_modules/@comis/daemon/bundled-skills/gsd-builder/SKILL.md +2 -1
- package/node_modules/@comis/daemon/dist/api/agent-inline-workspace.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/api/agent-inline-workspace.js +2 -2
- package/node_modules/@comis/daemon/dist/api/auth-handlers.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/api/auth-handlers.js +6 -6
- package/node_modules/@comis/daemon/dist/api/autonomy-handlers.d.ts +24 -26
- package/node_modules/@comis/daemon/dist/api/autonomy-handlers.js +27 -27
- package/node_modules/@comis/daemon/dist/api/capabilities-handlers.d.ts +13 -13
- package/node_modules/@comis/daemon/dist/api/capabilities-handlers.js +13 -13
- package/node_modules/@comis/daemon/dist/api/channel-handlers.js +1 -0
- package/node_modules/@comis/daemon/dist/api/classify-grok-video-error.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/api/classify-grok-video-error.js +1 -1
- package/node_modules/@comis/daemon/dist/api/classify-veo-video-error.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/api/codex-image-adapter.d.ts +13 -12
- package/node_modules/@comis/daemon/dist/api/codex-image-adapter.js +16 -57
- package/node_modules/@comis/daemon/dist/api/codex-images-transport.d.ts +24 -24
- package/node_modules/@comis/daemon/dist/api/codex-images-transport.js +18 -18
- package/node_modules/@comis/daemon/dist/api/config-handlers/config-export.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/api/config-handlers/config-export.js +3 -3
- package/node_modules/@comis/daemon/dist/api/config-handlers/config-helpers.d.ts +2 -3
- package/node_modules/@comis/daemon/dist/api/config-handlers/config-helpers.js +2 -3
- package/node_modules/@comis/daemon/dist/api/config-handlers/config-write.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/api/config-handlers/config-write.js +13 -13
- package/node_modules/@comis/daemon/dist/api/context-handlers.d.ts +9 -9
- package/node_modules/@comis/daemon/dist/api/context-handlers.js +11 -11
- package/node_modules/@comis/daemon/dist/api/cron-handlers.js +83 -17
- package/node_modules/@comis/daemon/dist/api/env-handlers.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/api/env-handlers.js +1 -1
- package/node_modules/@comis/daemon/dist/api/errors.d.ts +7 -7
- package/node_modules/@comis/daemon/dist/api/errors.js +7 -7
- package/node_modules/@comis/daemon/dist/api/google-images-transport.d.ts +8 -7
- package/node_modules/@comis/daemon/dist/api/google-images-transport.js +17 -16
- package/node_modules/@comis/daemon/dist/api/graph-handlers/graph-export.js +1 -1
- package/node_modules/@comis/daemon/dist/api/graph-handlers/graph-helpers.d.ts +18 -18
- package/node_modules/@comis/daemon/dist/api/graph-handlers/graph-helpers.js +20 -20
- package/node_modules/@comis/daemon/dist/api/graph-handlers/graph-mutate-telemetry.d.ts +5 -5
- package/node_modules/@comis/daemon/dist/api/graph-handlers/graph-mutate-telemetry.js +21 -22
- package/node_modules/@comis/daemon/dist/api/graph-handlers/graph-mutate.js +29 -25
- package/node_modules/@comis/daemon/dist/api/graph-handlers/graph-repair.d.ts +11 -10
- package/node_modules/@comis/daemon/dist/api/graph-handlers/graph-repair.js +9 -9
- package/node_modules/@comis/daemon/dist/api/grok-adapter.d.ts +23 -23
- package/node_modules/@comis/daemon/dist/api/grok-adapter.js +45 -45
- package/node_modules/@comis/daemon/dist/api/image-cost-limiter.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/api/image-cost-limiter.js +2 -2
- package/node_modules/@comis/daemon/dist/api/image-handlers.js +68 -68
- package/node_modules/@comis/daemon/dist/api/main-provider-vision.d.ts +14 -13
- package/node_modules/@comis/daemon/dist/api/main-provider-vision.js +16 -15
- package/node_modules/@comis/daemon/dist/api/mcp-handlers.js +12 -12
- package/node_modules/@comis/daemon/dist/api/mcp-header-credential.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/api/mcp-header-credential.js +2 -2
- package/node_modules/@comis/daemon/dist/api/mcp-oauth-handlers.d.ts +4 -4
- package/node_modules/@comis/daemon/dist/api/mcp-oauth-handlers.js +10 -10
- package/node_modules/@comis/daemon/dist/api/mcp-server-handlers.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/api/mcp-server-handlers.js +3 -3
- package/node_modules/@comis/daemon/dist/api/mcp-server-resources.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/api/mcp-server-resources.js +4 -4
- package/node_modules/@comis/daemon/dist/api/media-handlers.js +27 -27
- package/node_modules/@comis/daemon/dist/api/media-reference-resolver.d.ts +10 -12
- package/node_modules/@comis/daemon/dist/api/media-reference-resolver.js +17 -19
- package/node_modules/@comis/daemon/dist/api/memory-ask-handlers.d.ts +2 -4
- package/node_modules/@comis/daemon/dist/api/memory-ask-handlers.js +23 -25
- package/node_modules/@comis/daemon/dist/api/memory-pinning-handlers.js +3 -3
- package/node_modules/@comis/daemon/dist/api/memory-portability-handlers.js +8 -8
- package/node_modules/@comis/daemon/dist/api/message-handlers.js +14 -14
- package/node_modules/@comis/daemon/dist/api/model-handlers.js +1 -1
- package/node_modules/@comis/daemon/dist/api/obs-handlers/fleet-autonomy.d.ts +9 -9
- package/node_modules/@comis/daemon/dist/api/obs-handlers/fleet-autonomy.js +15 -15
- package/node_modules/@comis/daemon/dist/api/obs-handlers/fleet-cron-wake-gate.d.ts +47 -0
- package/node_modules/@comis/daemon/dist/api/obs-handlers/fleet-cron-wake-gate.js +128 -0
- package/node_modules/@comis/daemon/dist/api/obs-handlers/fleet-findings-extractors.d.ts +46 -28
- package/node_modules/@comis/daemon/dist/api/obs-handlers/fleet-findings-extractors.js +79 -33
- package/node_modules/@comis/daemon/dist/api/obs-handlers/fleet-findings.d.ts +15 -18
- package/node_modules/@comis/daemon/dist/api/obs-handlers/fleet-findings.js +173 -57
- package/node_modules/@comis/daemon/dist/api/obs-handlers/fleet-health.d.ts +23 -21
- package/node_modules/@comis/daemon/dist/api/obs-handlers/fleet-health.js +102 -77
- package/node_modules/@comis/daemon/dist/api/obs-handlers/fleet-session-index.d.ts +13 -13
- package/node_modules/@comis/daemon/dist/api/obs-handlers/fleet-session-index.js +16 -16
- package/node_modules/@comis/daemon/dist/api/obs-handlers/index.js +9 -9
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-audit.d.ts +9 -9
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-audit.js +12 -12
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-cache-breaks.d.ts +6 -6
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-cache-breaks.js +7 -7
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-diagnostics.js +4 -4
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-assemble.d.ts +15 -15
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-assemble.js +100 -57
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-bound-caps.d.ts +19 -6
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-bound-caps.js +19 -6
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-bound-helpers.d.ts +6 -6
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-bound-helpers.js +6 -6
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-bound.d.ts +6 -6
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-bound.js +65 -25
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-heuristics.d.ts +16 -16
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-heuristics.js +75 -57
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-learning-verdicts.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-learning-verdicts.js +2 -6
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-orchestrate-verdict.d.ts +45 -0
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-orchestrate-verdict.js +81 -0
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-readers.d.ts +31 -6
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-readers.js +45 -11
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-recall-verdict.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-recall-verdict.js +2 -2
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-resolve.d.ts +12 -12
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-resolve.js +15 -15
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-signal-folds.d.ts +99 -50
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-signal-folds.js +138 -59
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-signals-acc.d.ts +76 -21
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-signals-fields.d.ts +27 -27
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-signals-fields.js +22 -22
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-signals.d.ts +8 -8
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-signals.js +203 -61
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-spend-verdict.d.ts +14 -15
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-spend-verdict.js +18 -19
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-terminal-drive-evicted-verdict.d.ts +57 -0
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-terminal-drive-evicted-verdict.js +85 -0
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-terminal-drive-verdict.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-terminal-drive-verdict.js +2 -2
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-voice-fold.d.ts +9 -9
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain-voice-fold.js +10 -10
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain.d.ts +15 -17
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-explain.js +32 -34
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-metrics.js +4 -4
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-spend.d.ts +7 -7
- package/node_modules/@comis/daemon/dist/api/obs-handlers/obs-spend.js +8 -8
- package/node_modules/@comis/daemon/dist/api/openai-images-transport.d.ts +6 -6
- package/node_modules/@comis/daemon/dist/api/openai-images-transport.js +17 -18
- package/node_modules/@comis/daemon/dist/api/orchestrate-replay-handlers.d.ts +8 -0
- package/node_modules/@comis/daemon/dist/api/orchestrate-replay-handlers.js +59 -0
- package/node_modules/@comis/daemon/dist/api/outward-ledger-wrap.d.ts +10 -10
- package/node_modules/@comis/daemon/dist/api/outward-ledger-wrap.js +15 -15
- package/node_modules/@comis/daemon/dist/api/pi-image-adapter.d.ts +21 -23
- package/node_modules/@comis/daemon/dist/api/pi-image-adapter.js +50 -79
- package/node_modules/@comis/daemon/dist/api/provider-handlers.js +1 -1
- package/node_modules/@comis/daemon/dist/api/rpc-dispatch.d.ts +14 -16
- package/node_modules/@comis/daemon/dist/api/rpc-dispatch.js +127 -103
- package/node_modules/@comis/daemon/dist/api/secrets-handlers.js +4 -4
- package/node_modules/@comis/daemon/dist/api/session-handlers/session-archive.d.ts +4 -4
- package/node_modules/@comis/daemon/dist/api/session-handlers/session-archive.js +24 -25
- package/node_modules/@comis/daemon/dist/api/session-handlers/session-helpers.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/api/session-handlers/session-helpers.js +4 -4
- package/node_modules/@comis/daemon/dist/api/session-handlers/session-list.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/api/session-handlers/session-list.js +8 -8
- package/node_modules/@comis/daemon/dist/api/session-handlers/session-mutate.js +9 -10
- package/node_modules/@comis/daemon/dist/api/session-handlers/session-read.js +2 -2
- package/node_modules/@comis/daemon/dist/api/shared/assert-not-agent-origin.js +6 -6
- package/node_modules/@comis/daemon/dist/api/shared/builtin-provider-guard.js +1 -23
- package/node_modules/@comis/daemon/dist/api/shared/credential-resolver.js +1 -35
- package/node_modules/@comis/daemon/dist/api/shared/emit-capability-audit.d.ts +24 -5
- package/node_modules/@comis/daemon/dist/api/shared/emit-capability-audit.js +62 -13
- package/node_modules/@comis/daemon/dist/api/shared/persist-to-config.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/api/shared/persist-to-config.js +1 -1
- package/node_modules/@comis/daemon/dist/api/skill-handlers.js +5 -5
- package/node_modules/@comis/daemon/dist/api/ssrf-image-fetch.js +1 -1
- package/node_modules/@comis/daemon/dist/api/subagent-handlers.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/api/subagent-handlers.js +9 -9
- package/node_modules/@comis/daemon/dist/api/types.d.ts +58 -59
- package/node_modules/@comis/daemon/dist/api/types.js +7 -9
- package/node_modules/@comis/daemon/dist/api/veo-adapter.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/api/veo-adapter.js +46 -46
- package/node_modules/@comis/daemon/dist/api/video-cost-limiter.d.ts +4 -4
- package/node_modules/@comis/daemon/dist/api/video-cost-limiter.js +5 -5
- package/node_modules/@comis/daemon/dist/api/video-handler-deps.d.ts +35 -35
- package/node_modules/@comis/daemon/dist/api/video-handlers.d.ts +19 -19
- package/node_modules/@comis/daemon/dist/api/video-handlers.js +84 -86
- package/node_modules/@comis/daemon/dist/api/video-obs-emit.d.ts +9 -8
- package/node_modules/@comis/daemon/dist/api/video-obs-emit.js +7 -7
- package/node_modules/@comis/daemon/dist/api/video-status-handlers.d.ts +9 -9
- package/node_modules/@comis/daemon/dist/api/video-status-handlers.js +15 -15
- package/node_modules/@comis/daemon/dist/api/vision-obs-emit.d.ts +9 -10
- package/node_modules/@comis/daemon/dist/api/vision-obs-emit.js +6 -7
- package/node_modules/@comis/daemon/dist/api/voice-handler-wiring.d.ts +9 -9
- package/node_modules/@comis/daemon/dist/api/voice-handler-wiring.js +12 -12
- package/node_modules/@comis/daemon/dist/api/voice-obs-emit.d.ts +25 -25
- package/node_modules/@comis/daemon/dist/api/voice-obs-emit.js +43 -44
- package/node_modules/@comis/daemon/dist/autonomy/bounded-autonomy.d.ts +34 -31
- package/node_modules/@comis/daemon/dist/autonomy/bounded-autonomy.js +15 -14
- package/node_modules/@comis/daemon/dist/autonomy/call-rate-limiter.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/autonomy/call-rate-limiter.js +2 -2
- package/node_modules/@comis/daemon/dist/autonomy/denial-breaker.d.ts +10 -9
- package/node_modules/@comis/daemon/dist/autonomy/denial-breaker.js +7 -7
- package/node_modules/@comis/daemon/dist/autonomy/durable-resume-engine.d.ts +61 -26
- package/node_modules/@comis/daemon/dist/autonomy/durable-resume-engine.js +78 -41
- package/node_modules/@comis/daemon/dist/autonomy/durable-watchdog.d.ts +8 -8
- package/node_modules/@comis/daemon/dist/autonomy/durable-watchdog.js +8 -8
- package/node_modules/@comis/daemon/dist/autonomy/evict-registry.d.ts +9 -10
- package/node_modules/@comis/daemon/dist/autonomy/evict-registry.js +2 -2
- package/node_modules/@comis/daemon/dist/autonomy/outward-quota.d.ts +9 -9
- package/node_modules/@comis/daemon/dist/autonomy/outward-quota.js +8 -8
- package/node_modules/@comis/daemon/dist/autonomy/per-root-budget.d.ts +44 -26
- package/node_modules/@comis/daemon/dist/autonomy/per-root-budget.js +54 -14
- package/node_modules/@comis/daemon/dist/autonomy/root-run-semaphore.d.ts +14 -14
- package/node_modules/@comis/daemon/dist/autonomy/root-run-semaphore.js +15 -15
- package/node_modules/@comis/daemon/dist/config/audit-hook.d.ts +5 -5
- package/node_modules/@comis/daemon/dist/config/audit-hook.js +6 -6
- package/node_modules/@comis/daemon/dist/config/bootstrap-observe.d.ts +3 -3
- package/node_modules/@comis/daemon/dist/config/bootstrap-observe.js +2 -2
- package/node_modules/@comis/daemon/dist/config/read-config-file-observation.d.ts +3 -3
- package/node_modules/@comis/daemon/dist/config/read-config-file-observation.js +3 -3
- package/node_modules/@comis/daemon/dist/daemon-types.d.ts +30 -21
- package/node_modules/@comis/daemon/dist/daemon.d.ts +2 -22
- package/node_modules/@comis/daemon/dist/daemon.js +231 -293
- package/node_modules/@comis/daemon/dist/export-session-bundle.d.ts +47 -0
- package/node_modules/@comis/daemon/dist/export-session-bundle.js +62 -0
- package/node_modules/@comis/daemon/dist/graph/graph-capability-defaults.d.ts +6 -6
- package/node_modules/@comis/daemon/dist/graph/graph-capability-defaults.js +8 -8
- package/node_modules/@comis/daemon/dist/graph/graph-completion.d.ts +4 -4
- package/node_modules/@comis/daemon/dist/graph/graph-completion.js +19 -18
- package/node_modules/@comis/daemon/dist/graph/graph-coordinator-state.d.ts +22 -23
- package/node_modules/@comis/daemon/dist/graph/graph-coordinator.d.ts +4 -4
- package/node_modules/@comis/daemon/dist/graph/graph-coordinator.js +21 -21
- package/node_modules/@comis/daemon/dist/graph/graph-driver-handler.js +2 -2
- package/node_modules/@comis/daemon/dist/graph/graph-durable-checkpoint.d.ts +15 -15
- package/node_modules/@comis/daemon/dist/graph/graph-durable-checkpoint.js +15 -15
- package/node_modules/@comis/daemon/dist/graph/graph-node-budget.d.ts +12 -12
- package/node_modules/@comis/daemon/dist/graph/graph-node-budget.js +24 -24
- package/node_modules/@comis/daemon/dist/graph/graph-node-lifecycle.js +11 -11
- package/node_modules/@comis/daemon/dist/graph/graph-state-machine.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/graph/graph-timeout-floor.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/graph/graph-timeout-floor.js +1 -1
- package/node_modules/@comis/daemon/dist/graph/template-interpolation.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/graph/template-interpolation.js +6 -6
- package/node_modules/@comis/daemon/dist/index.d.ts +2 -0
- package/node_modules/@comis/daemon/dist/index.js +24 -11
- package/node_modules/@comis/daemon/dist/notification/notification-service.js +3 -3
- package/node_modules/@comis/daemon/dist/notification/rate-limiter.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/observability/build-config-posture-record.d.ts +22 -22
- package/node_modules/@comis/daemon/dist/observability/build-config-posture-record.js +13 -13
- package/node_modules/@comis/daemon/dist/observability/delivery-queue-logger.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/observability/delivery-queue-logger.js +3 -3
- package/node_modules/@comis/daemon/dist/observability/obs-audit-sink.d.ts +23 -12
- package/node_modules/@comis/daemon/dist/observability/obs-audit-sink.js +43 -30
- package/node_modules/@comis/daemon/dist/observability/obs-autonomy-rows.d.ts +24 -15
- package/node_modules/@comis/daemon/dist/observability/obs-autonomy-rows.js +43 -15
- package/node_modules/@comis/daemon/dist/observability/obs-orchestration-rows.d.ts +8 -8
- package/node_modules/@comis/daemon/dist/observability/obs-orchestration-rows.js +8 -8
- package/node_modules/@comis/daemon/dist/observability/obs-persistence-rows.d.ts +226 -0
- package/node_modules/@comis/daemon/dist/observability/obs-persistence-rows.js +523 -0
- package/node_modules/@comis/daemon/dist/observability/obs-persistence-wiring.d.ts +10 -165
- package/node_modules/@comis/daemon/dist/observability/obs-persistence-wiring.js +79 -446
- package/node_modules/@comis/daemon/dist/observability/recall-counters-wiring.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/observability/recall-counters-wiring.js +2 -2
- package/node_modules/@comis/daemon/dist/observability/record-model-health.d.ts +11 -11
- package/node_modules/@comis/daemon/dist/observability/record-model-health.js +2 -2
- package/node_modules/@comis/daemon/dist/wiring/apply-inspect-defaults.d.ts +36 -0
- package/node_modules/@comis/daemon/dist/wiring/apply-inspect-defaults.js +45 -0
- package/node_modules/@comis/daemon/dist/wiring/conversation-reset.d.ts +3 -3
- package/node_modules/@comis/daemon/dist/wiring/conversation-reset.js +5 -6
- package/node_modules/@comis/daemon/dist/wiring/daemon-utils.js +1 -1
- package/node_modules/@comis/daemon/dist/wiring/emit-autonomy-boot-log.d.ts +10 -11
- package/node_modules/@comis/daemon/dist/wiring/emit-autonomy-boot-log.js +7 -7
- package/node_modules/@comis/daemon/dist/wiring/emit-startup-banner.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/wiring/emit-startup-banner.js +2 -2
- package/node_modules/@comis/daemon/dist/wiring/env-scrub.d.ts +25 -0
- package/node_modules/@comis/daemon/dist/wiring/env-scrub.js +88 -0
- package/node_modules/@comis/daemon/dist/wiring/harden-data-dir.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/wiring/harden-data-dir.js +2 -2
- package/node_modules/@comis/daemon/dist/wiring/index.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/wiring/index.js +2 -2
- package/node_modules/@comis/daemon/dist/wiring/main-helpers.d.ts +42 -42
- package/node_modules/@comis/daemon/dist/wiring/main-helpers.js +73 -73
- package/node_modules/@comis/daemon/dist/wiring/msteams-test-seams.d.ts +62 -0
- package/node_modules/@comis/daemon/dist/wiring/msteams-test-seams.js +108 -0
- package/node_modules/@comis/daemon/dist/wiring/obs-mcp-closures.d.ts +3 -3
- package/node_modules/@comis/daemon/dist/wiring/orchestrate-replay-socket.d.ts +65 -0
- package/node_modules/@comis/daemon/dist/wiring/orchestrate-replay-socket.js +269 -0
- package/node_modules/@comis/daemon/dist/wiring/preflight-doctor.d.ts +10 -10
- package/node_modules/@comis/daemon/dist/wiring/preflight-doctor.js +6 -6
- package/node_modules/@comis/daemon/dist/wiring/provider-timeout-redirect.d.ts +6 -6
- package/node_modules/@comis/daemon/dist/wiring/provider-timeout-redirect.js +7 -7
- package/node_modules/@comis/daemon/dist/wiring/seed-bundled-skills.js +1 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/index.js +1 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/learned-skill-surface-registry.d.ts +13 -7
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/learned-skill-surface-registry.js +8 -7
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/learned-skill-surface.d.ts +21 -9
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/learned-skill-surface.js +64 -27
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/setup-agents-boot-window.d.ts +4 -4
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/setup-agents-boot-window.js +5 -5
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/setup-agents-descriptions.d.ts +6 -6
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/setup-agents-descriptions.js +6 -6
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/setup-agents-registry.d.ts +12 -10
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/setup-agents-registry.js +10 -9
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/setup-agents-runtime.js +22 -21
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/setup-agents-tooling.d.ts +5 -6
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/setup-agents-tooling.js +6 -7
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/setup-agents-types.d.ts +19 -17
- package/node_modules/@comis/daemon/dist/wiring/setup-agents/skill-discovery-paths.js +2 -2
- package/node_modules/@comis/daemon/dist/wiring/setup-audio-provider.d.ts +14 -14
- package/node_modules/@comis/daemon/dist/wiring/setup-audio-provider.js +16 -17
- package/node_modules/@comis/daemon/dist/wiring/setup-broker-activation.d.ts +16 -9
- package/node_modules/@comis/daemon/dist/wiring/setup-broker-activation.js +9 -5
- package/node_modules/@comis/daemon/dist/wiring/setup-capability-endpoint-boot.d.ts +50 -42
- package/node_modules/@comis/daemon/dist/wiring/setup-capability-endpoint-boot.js +205 -58
- package/node_modules/@comis/daemon/dist/wiring/setup-capability-endpoint.d.ts +89 -22
- package/node_modules/@comis/daemon/dist/wiring/setup-capability-endpoint.js +186 -77
- package/node_modules/@comis/daemon/dist/wiring/setup-channel-liveness-monitor.d.ts +41 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-channel-liveness-monitor.js +93 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/resolve-memory-ops-capability.d.ts +9 -9
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/resolve-memory-ops-capability.js +8 -8
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/review-session-source.d.ts +4 -4
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/review-session-source.js +4 -4
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-activity-renderers.d.ts +3 -3
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-activity-renderers.js +2 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-credentials.d.ts +7 -7
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-credentials.js +16 -7
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-cron-credential.d.ts +5 -5
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-cron-credential.js +6 -6
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-memory-crons-types.d.ts +15 -15
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-memory-crons-wire.d.ts +4 -4
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-memory-crons-wire.js +73 -56
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-memory-crons.d.ts +8 -8
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-memory-crons.js +10 -10
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-registry-builder.js +2 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-registry.d.ts +33 -16
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-registry.js +18 -5
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-runtime.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-runtime.js +5 -5
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-skill-synthesis-deps.d.ts +9 -10
- package/node_modules/@comis/daemon/dist/wiring/setup-channels/setup-channels-skill-synthesis-deps.js +37 -30
- package/node_modules/@comis/daemon/dist/wiring/setup-channels-adapters.d.ts +28 -5
- package/node_modules/@comis/daemon/dist/wiring/setup-channels-adapters.js +106 -7
- package/node_modules/@comis/daemon/dist/wiring/setup-channels-media.d.ts +2 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-channels-media.js +14 -2
- package/node_modules/@comis/daemon/dist/wiring/setup-context-tools.d.ts +15 -15
- package/node_modules/@comis/daemon/dist/wiring/setup-context-tools.js +24 -24
- package/node_modules/@comis/daemon/dist/wiring/setup-cross-session/setup-cross-session-graph.d.ts +3 -3
- package/node_modules/@comis/daemon/dist/wiring/setup-cross-session/setup-cross-session-graph.js +7 -7
- package/node_modules/@comis/daemon/dist/wiring/setup-cross-session/setup-cross-session-runtime.d.ts +10 -10
- package/node_modules/@comis/daemon/dist/wiring/setup-cross-session/setup-cross-session-runtime.js +15 -15
- package/node_modules/@comis/daemon/dist/wiring/setup-cross-session/worktree-spawn-run.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/wiring/setup-cross-session/worktree-spawn-run.js +6 -6
- package/node_modules/@comis/daemon/dist/wiring/setup-delivery.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/wiring/setup-delivery.js +10 -10
- package/node_modules/@comis/daemon/dist/wiring/setup-dialectic.d.ts +18 -19
- package/node_modules/@comis/daemon/dist/wiring/setup-dialectic.js +30 -30
- package/node_modules/@comis/daemon/dist/wiring/setup-durable-resume.d.ts +88 -12
- package/node_modules/@comis/daemon/dist/wiring/setup-durable-resume.js +140 -20
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway/non-secret-projections.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway/non-secret-projections.js +1 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway/setup-gateway-admin.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway/setup-gateway-admin.js +1 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway/setup-gateway-routes.d.ts +5 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway/setup-gateway-routes.js +1 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway/setup-gateway-rpc.js +5 -4
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway-api.js +7 -7
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway-routes.d.ts +5 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway-routes.js +18 -4
- package/node_modules/@comis/daemon/dist/wiring/setup-image-provider.d.ts +12 -12
- package/node_modules/@comis/daemon/dist/wiring/setup-image-provider.js +36 -38
- package/node_modules/@comis/daemon/dist/wiring/setup-learning-corroboration.d.ts +5 -5
- package/node_modules/@comis/daemon/dist/wiring/setup-learning-corroboration.js +6 -6
- package/node_modules/@comis/daemon/dist/wiring/setup-learning-judge.d.ts +3 -3
- package/node_modules/@comis/daemon/dist/wiring/setup-learning-judge.js +5 -6
- package/node_modules/@comis/daemon/dist/wiring/setup-learning-reactions.d.ts +20 -20
- package/node_modules/@comis/daemon/dist/wiring/setup-learning-reactions.js +32 -32
- package/node_modules/@comis/daemon/dist/wiring/setup-learning-skill-transitions.d.ts +13 -13
- package/node_modules/@comis/daemon/dist/wiring/setup-learning-skill-transitions.js +28 -28
- package/node_modules/@comis/daemon/dist/wiring/setup-learning-skill-trend.d.ts +8 -8
- package/node_modules/@comis/daemon/dist/wiring/setup-learning-skill-trend.js +8 -8
- package/node_modules/@comis/daemon/dist/wiring/setup-learning.d.ts +44 -45
- package/node_modules/@comis/daemon/dist/wiring/setup-learning.js +112 -83
- package/node_modules/@comis/daemon/dist/wiring/setup-logging.js +1 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-media.d.ts +6 -6
- package/node_modules/@comis/daemon/dist/wiring/setup-media.js +25 -25
- package/node_modules/@comis/daemon/dist/wiring/setup-memory-cost-notice.d.ts +7 -12
- package/node_modules/@comis/daemon/dist/wiring/setup-memory-cost-notice.js +6 -10
- package/node_modules/@comis/daemon/dist/wiring/setup-memory.d.ts +8 -8
- package/node_modules/@comis/daemon/dist/wiring/setup-memory.js +11 -16
- package/node_modules/@comis/daemon/dist/wiring/setup-observability.d.ts +8 -8
- package/node_modules/@comis/daemon/dist/wiring/setup-observability.js +12 -12
- package/node_modules/@comis/daemon/dist/wiring/setup-orchestrate-replay.d.ts +112 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-orchestrate-replay.js +179 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-schedulers.d.ts +25 -9
- package/node_modules/@comis/daemon/dist/wiring/setup-schedulers.js +261 -63
- package/node_modules/@comis/daemon/dist/wiring/setup-shutdown.d.ts +4 -2
- package/node_modules/@comis/daemon/dist/wiring/setup-shutdown.js +13 -5
- package/node_modules/@comis/daemon/dist/wiring/setup-spend-rehydration.d.ts +3 -3
- package/node_modules/@comis/daemon/dist/wiring/setup-spend-rehydration.js +1 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-storage-mismatch-warn.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-terminal-tools.d.ts +26 -24
- package/node_modules/@comis/daemon/dist/wiring/setup-terminal-tools.js +61 -59
- package/node_modules/@comis/daemon/dist/wiring/setup-terminal-wake.d.ts +47 -48
- package/node_modules/@comis/daemon/dist/wiring/setup-terminal-wake.js +135 -137
- package/node_modules/@comis/daemon/dist/wiring/setup-tool-audit.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-tool-audit.js +1 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-tool-invoke-executor.d.ts +92 -24
- package/node_modules/@comis/daemon/dist/wiring/setup-tool-invoke-executor.js +226 -18
- package/node_modules/@comis/daemon/dist/wiring/setup-tools-autonomy.d.ts +59 -15
- package/node_modules/@comis/daemon/dist/wiring/setup-tools-autonomy.js +99 -13
- package/node_modules/@comis/daemon/dist/wiring/setup-tools-capabilities.d.ts +9 -9
- package/node_modules/@comis/daemon/dist/wiring/setup-tools-capabilities.js +24 -24
- package/node_modules/@comis/daemon/dist/wiring/setup-tools-coordinator.d.ts +3 -3
- package/node_modules/@comis/daemon/dist/wiring/setup-tools-orchestrate-repair.d.ts +62 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-tools-orchestrate-repair.js +86 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-tools.d.ts +17 -13
- package/node_modules/@comis/daemon/dist/wiring/setup-tools.js +41 -22
- package/node_modules/@comis/daemon/dist/wiring/setup-video-poller.d.ts +30 -32
- package/node_modules/@comis/daemon/dist/wiring/setup-video-poller.js +79 -81
- package/node_modules/@comis/daemon/dist/wiring/setup-video-provider.d.ts +14 -13
- package/node_modules/@comis/daemon/dist/wiring/setup-video-provider.js +25 -24
- package/node_modules/@comis/daemon/dist/wiring/setup-worktree-sweep.d.ts +4 -4
- package/node_modules/@comis/daemon/dist/wiring/setup-worktree-sweep.js +1 -1
- package/node_modules/@comis/daemon/dist/wiring/terminal-drive-journal-persistence.d.ts +6 -6
- package/node_modules/@comis/daemon/dist/wiring/terminal-drive-journal-persistence.js +22 -24
- package/node_modules/@comis/daemon/dist/wiring/terminal-drive-scope.d.ts +15 -15
- package/node_modules/@comis/daemon/dist/wiring/terminal-drive-scope.js +15 -15
- package/node_modules/@comis/daemon/dist/wiring/terminal-durable-wiring.d.ts +32 -49
- package/node_modules/@comis/daemon/dist/wiring/terminal-durable-wiring.js +160 -115
- package/node_modules/@comis/daemon/dist/wiring/terminal-session-descriptor-persistence.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/wiring/terminal-session-descriptor-persistence.js +27 -29
- package/node_modules/@comis/daemon/dist/wiring/terminal-wake-dispatch.d.ts +15 -15
- package/node_modules/@comis/daemon/dist/wiring/terminal-wake-dispatch.js +22 -23
- package/node_modules/@comis/daemon/dist/wiring/terminal-wake-notify.d.ts +42 -43
- package/node_modules/@comis/daemon/dist/wiring/terminal-wake-notify.js +42 -43
- package/node_modules/@comis/daemon/dist/wiring/terminal-wake-persistence.d.ts +1 -1
- package/node_modules/@comis/daemon/dist/wiring/terminal-wake-persistence.js +7 -7
- package/node_modules/@comis/daemon/dist/wiring/terminal-wake-turn.d.ts +33 -36
- package/node_modules/@comis/daemon/dist/wiring/terminal-wake-turn.js +101 -105
- package/node_modules/@comis/daemon/dist/wiring/terminal-wake-types.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/wiring/video-delivery-limits.d.ts +19 -19
- package/node_modules/@comis/daemon/dist/wiring/video-delivery-limits.js +23 -23
- package/node_modules/@comis/daemon/dist/wiring/video-log-redaction.d.ts +2 -2
- package/node_modules/@comis/daemon/dist/wiring/video-log-redaction.js +7 -8
- package/node_modules/@comis/daemon/dist/wiring/wake-gate-runner.d.ts +136 -0
- package/node_modules/@comis/daemon/dist/wiring/wake-gate-runner.js +217 -0
- package/node_modules/@comis/daemon/dist/wiring/wire-wake-gate-runner.d.ts +38 -0
- package/node_modules/@comis/daemon/dist/wiring/wire-wake-gate-runner.js +20 -0
- package/node_modules/@comis/daemon/package.json +1 -1
- package/node_modules/@comis/gateway/dist/acp/acp-plan-bridge.d.ts +1 -1
- package/node_modules/@comis/gateway/dist/channel-ingress/msteams-ingress.d.ts +74 -0
- package/node_modules/@comis/gateway/dist/channel-ingress/msteams-ingress.js +122 -0
- package/node_modules/@comis/gateway/dist/index.d.ts +2 -0
- package/node_modules/@comis/gateway/dist/index.js +3 -0
- package/node_modules/@comis/gateway/dist/openai/openai-types.d.ts +7 -8
- package/node_modules/@comis/gateway/dist/openai/openai-types.js +7 -8
- package/node_modules/@comis/gateway/dist/rpc/method-router.js +18 -2
- package/node_modules/@comis/gateway/package.json +1 -1
- package/node_modules/@comis/infra/dist/credential-broker/lease-manager.d.ts +11 -11
- package/node_modules/@comis/infra/dist/credential-broker/lease-manager.js +23 -22
- package/node_modules/@comis/infra/package.json +1 -1
- package/node_modules/@comis/memory/dist/durable-run-row-schema.d.ts +11 -12
- package/node_modules/@comis/memory/dist/durable-run-row-schema.js +17 -14
- package/node_modules/@comis/memory/dist/durable-run-store.d.ts +14 -15
- package/node_modules/@comis/memory/dist/durable-run-store.js +67 -41
- package/node_modules/@comis/memory/dist/entity-resolver.d.ts +4 -4
- package/node_modules/@comis/memory/dist/entity-resolver.js +4 -4
- package/node_modules/@comis/memory/dist/file-secret-store.d.ts +1 -1
- package/node_modules/@comis/memory/dist/file-secret-store.js +1 -1
- package/node_modules/@comis/memory/dist/hybrid-search.d.ts +10 -11
- package/node_modules/@comis/memory/dist/hybrid-search.js +11 -12
- package/node_modules/@comis/memory/dist/index.d.ts +2 -0
- package/node_modules/@comis/memory/dist/index.js +50 -51
- package/node_modules/@comis/memory/dist/lcd-browse-store.d.ts +2 -2
- package/node_modules/@comis/memory/dist/lcd-browse-store.js +4 -4
- package/node_modules/@comis/memory/dist/lcd-fts.d.ts +28 -27
- package/node_modules/@comis/memory/dist/lcd-fts.js +77 -76
- package/node_modules/@comis/memory/dist/lcd-ingest-serializer.d.ts +6 -6
- package/node_modules/@comis/memory/dist/lcd-ingest-serializer.js +6 -6
- package/node_modules/@comis/memory/dist/lcd-store-fts-populate.d.ts +11 -11
- package/node_modules/@comis/memory/dist/lcd-store-fts-populate.js +21 -21
- package/node_modules/@comis/memory/dist/lcd-store-mappers.d.ts +4 -4
- package/node_modules/@comis/memory/dist/lcd-store-mappers.js +9 -9
- package/node_modules/@comis/memory/dist/lcd-store-provenance-read.d.ts +6 -7
- package/node_modules/@comis/memory/dist/lcd-store-provenance-read.js +7 -8
- package/node_modules/@comis/memory/dist/lcd-store-provenance.d.ts +6 -6
- package/node_modules/@comis/memory/dist/lcd-store-provenance.js +7 -7
- package/node_modules/@comis/memory/dist/lcd-store-reads.d.ts +7 -7
- package/node_modules/@comis/memory/dist/lcd-store-reads.js +15 -15
- package/node_modules/@comis/memory/dist/lcd-store-writes.d.ts +17 -17
- package/node_modules/@comis/memory/dist/lcd-store-writes.js +29 -29
- package/node_modules/@comis/memory/dist/lcd-store.d.ts +9 -10
- package/node_modules/@comis/memory/dist/lcd-store.js +88 -89
- package/node_modules/@comis/memory/dist/memory-api.js +1 -1
- package/node_modules/@comis/memory/dist/mental-model-row-schema.d.ts +3 -4
- package/node_modules/@comis/memory/dist/mental-model-row-schema.js +6 -7
- package/node_modules/@comis/memory/dist/msteams-conversation-row-schema.d.ts +37 -0
- package/node_modules/@comis/memory/dist/msteams-conversation-row-schema.js +40 -0
- package/node_modules/@comis/memory/dist/msteams-conversation-store.d.ts +45 -0
- package/node_modules/@comis/memory/dist/msteams-conversation-store.js +145 -0
- package/node_modules/@comis/memory/dist/observability-store/audit-mutations.d.ts +4 -5
- package/node_modules/@comis/memory/dist/observability-store/audit-mutations.js +5 -6
- package/node_modules/@comis/memory/dist/observability-store/cache-break-queries.d.ts +3 -3
- package/node_modules/@comis/memory/dist/observability-store/cache-break-queries.js +4 -4
- package/node_modules/@comis/memory/dist/observability-store/cache-break-types.d.ts +3 -3
- package/node_modules/@comis/memory/dist/observability-store/cache-break-types.js +1 -1
- package/node_modules/@comis/memory/dist/observability-store/fleet-window-rollup.d.ts +10 -10
- package/node_modules/@comis/memory/dist/observability-store/fleet-window-rollup.js +6 -6
- package/node_modules/@comis/memory/dist/observability-store/index.js +6 -6
- package/node_modules/@comis/memory/dist/observability-store/observability-aggregates.d.ts +3 -3
- package/node_modules/@comis/memory/dist/observability-store/observability-aggregates.js +12 -12
- package/node_modules/@comis/memory/dist/observability-store/observability-mutations.d.ts +6 -6
- package/node_modules/@comis/memory/dist/observability-store/observability-mutations.js +11 -11
- package/node_modules/@comis/memory/dist/observability-store/observability-queries.js +66 -53
- package/node_modules/@comis/memory/dist/observability-store/observability-row-shapes.js +2 -2
- package/node_modules/@comis/memory/dist/observability-store/observability-store-types.d.ts +27 -27
- package/node_modules/@comis/memory/dist/observability-store/observability-store-types.js +6 -6
- package/node_modules/@comis/memory/dist/observability-store/pricing-coverage-types.d.ts +4 -4
- package/node_modules/@comis/memory/dist/observability-store/pricing-coverage-types.js +1 -1
- package/node_modules/@comis/memory/dist/observability-store/spend-queries.d.ts +5 -5
- package/node_modules/@comis/memory/dist/observability-store/spend-queries.js +8 -8
- package/node_modules/@comis/memory/dist/offline-secrets-write.d.ts +1 -1
- package/node_modules/@comis/memory/dist/offline-secrets-write.js +1 -1
- package/node_modules/@comis/memory/dist/outcome-event-row-schema.d.ts +9 -7
- package/node_modules/@comis/memory/dist/outcome-event-row-schema.js +11 -8
- package/node_modules/@comis/memory/dist/outward-ledger-row-schema.d.ts +9 -9
- package/node_modules/@comis/memory/dist/outward-ledger-row-schema.js +12 -12
- package/node_modules/@comis/memory/dist/outward-send-ledger-store.d.ts +9 -9
- package/node_modules/@comis/memory/dist/outward-send-ledger-store.js +17 -17
- package/node_modules/@comis/memory/dist/row-mapper.js +3 -3
- package/node_modules/@comis/memory/dist/row-schemas.d.ts +22 -22
- package/node_modules/@comis/memory/dist/row-schemas.js +34 -35
- package/node_modules/@comis/memory/dist/schema-durable-runs.d.ts +18 -11
- package/node_modules/@comis/memory/dist/schema-durable-runs.js +41 -13
- package/node_modules/@comis/memory/dist/schema-lcd.d.ts +23 -25
- package/node_modules/@comis/memory/dist/schema-lcd.js +63 -65
- package/node_modules/@comis/memory/dist/schema-mental-models.d.ts +8 -8
- package/node_modules/@comis/memory/dist/schema-mental-models.js +9 -9
- package/node_modules/@comis/memory/dist/schema-msteams-conversation.d.ts +41 -0
- package/node_modules/@comis/memory/dist/schema-msteams-conversation.js +55 -0
- package/node_modules/@comis/memory/dist/schema-obs-token.d.ts +14 -14
- package/node_modules/@comis/memory/dist/schema-obs-token.js +15 -15
- package/node_modules/@comis/memory/dist/schema-outcome-events.d.ts +11 -8
- package/node_modules/@comis/memory/dist/schema-outcome-events.js +29 -8
- package/node_modules/@comis/memory/dist/schema-outward-ledger.d.ts +12 -12
- package/node_modules/@comis/memory/dist/schema-outward-ledger.js +14 -14
- package/node_modules/@comis/memory/dist/schema-pinned.d.ts +1 -1
- package/node_modules/@comis/memory/dist/schema-pinned.js +2 -2
- package/node_modules/@comis/memory/dist/schema-trigram.d.ts +10 -11
- package/node_modules/@comis/memory/dist/schema-trigram.js +17 -18
- package/node_modules/@comis/memory/dist/schema-usefulness.d.ts +5 -5
- package/node_modules/@comis/memory/dist/schema-usefulness.js +5 -5
- package/node_modules/@comis/memory/dist/schema-video-jobs.d.ts +8 -8
- package/node_modules/@comis/memory/dist/schema-video-jobs.js +12 -12
- package/node_modules/@comis/memory/dist/schema.d.ts +6 -6
- package/node_modules/@comis/memory/dist/schema.js +30 -28
- package/node_modules/@comis/memory/dist/setup-secrets.js +1 -1
- package/node_modules/@comis/memory/dist/sqlite-memory-adapter.d.ts +8 -8
- package/node_modules/@comis/memory/dist/sqlite-memory-adapter.js +20 -20
- package/node_modules/@comis/memory/dist/sqlite-memory-causal-store.js +3 -3
- package/node_modules/@comis/memory/dist/sqlite-memory-consolidation-store.d.ts +7 -7
- package/node_modules/@comis/memory/dist/sqlite-memory-consolidation-store.js +17 -17
- package/node_modules/@comis/memory/dist/sqlite-memory-entity-store.js +4 -4
- package/node_modules/@comis/memory/dist/sqlite-memory-lifecycle-store.d.ts +17 -18
- package/node_modules/@comis/memory/dist/sqlite-memory-lifecycle-store.js +27 -28
- package/node_modules/@comis/memory/dist/sqlite-memory-temporal-store.js +1 -1
- package/node_modules/@comis/memory/dist/sqlite-memory-usefulness-store.js +3 -3
- package/node_modules/@comis/memory/dist/sqlite-mental-model-store.d.ts +10 -10
- package/node_modules/@comis/memory/dist/sqlite-mental-model-store.js +86 -53
- package/node_modules/@comis/memory/dist/sqlite-outcome-store.d.ts +4 -4
- package/node_modules/@comis/memory/dist/sqlite-outcome-store.js +80 -52
- package/node_modules/@comis/memory/dist/sqlite-triple-store.d.ts +3 -3
- package/node_modules/@comis/memory/dist/sqlite-triple-store.js +8 -8
- package/node_modules/@comis/memory/dist/types.d.ts +22 -25
- package/node_modules/@comis/memory/dist/video-job-row-schema.d.ts +4 -4
- package/node_modules/@comis/memory/dist/video-job-row-schema.js +8 -8
- package/node_modules/@comis/memory/dist/video-job-store.d.ts +23 -24
- package/node_modules/@comis/memory/dist/video-job-store.js +11 -12
- package/node_modules/@comis/memory/package.json +1 -1
- package/node_modules/@comis/observability/dist/activity/activity-stream.d.ts +9 -9
- package/node_modules/@comis/observability/dist/activity/activity-stream.js +27 -27
- package/node_modules/@comis/observability/dist/activity/bounded-queue.d.ts +6 -6
- package/node_modules/@comis/observability/dist/activity/bounded-queue.js +4 -4
- package/node_modules/@comis/observability/dist/activity/index.d.ts +2 -2
- package/node_modules/@comis/observability/dist/activity/index.js +2 -2
- package/node_modules/@comis/observability/dist/activity/label-compressor.d.ts +2 -2
- package/node_modules/@comis/observability/dist/activity/label-compressor.js +3 -3
- package/node_modules/@comis/observability/dist/activity/label-resolver.d.ts +5 -6
- package/node_modules/@comis/observability/dist/activity/label-resolver.js +5 -6
- package/node_modules/@comis/observability/dist/activity/plan-stream.d.ts +4 -4
- package/node_modules/@comis/observability/dist/activity/plan-stream.js +3 -3
- package/node_modules/@comis/observability/dist/activity/shell-label-parser.js +1 -2
- package/node_modules/@comis/observability/dist/cache-trace/event-bus-bridge.js +1 -1
- package/node_modules/@comis/observability/dist/cache-trace/stream-fn-wrapper.js +3 -3
- package/node_modules/@comis/observability/dist/cache-trace/types.d.ts +3 -5
- package/node_modules/@comis/observability/dist/cache-trace/types.js +7 -9
- package/node_modules/@comis/observability/dist/config-audit/types.d.ts +5 -6
- package/node_modules/@comis/observability/dist/config-audit/types.js +5 -6
- package/node_modules/@comis/observability/dist/index.d.ts +1 -0
- package/node_modules/@comis/observability/dist/index.js +19 -15
- package/node_modules/@comis/observability/dist/pipeline-authoring-gate.d.ts +15 -16
- package/node_modules/@comis/observability/dist/pipeline-authoring-gate.js +19 -20
- package/node_modules/@comis/observability/dist/recall-counters/registry.d.ts +1 -1
- package/node_modules/@comis/observability/dist/recall-counters/registry.js +1 -1
- package/node_modules/@comis/observability/dist/recall-counters/types.d.ts +1 -1
- package/node_modules/@comis/observability/dist/recall-counters/types.js +1 -1
- package/node_modules/@comis/observability/dist/recall-trace/runtime.d.ts +1 -1
- package/node_modules/@comis/observability/dist/recall-trace/runtime.js +1 -1
- package/node_modules/@comis/observability/dist/recall-trace/types.d.ts +7 -7
- package/node_modules/@comis/observability/dist/recall-trace/types.js +14 -15
- package/node_modules/@comis/observability/dist/redact/regex-bounded.d.ts +1 -1
- package/node_modules/@comis/observability/dist/redact/regex-bounded.js +1 -1
- package/node_modules/@comis/observability/dist/redact/value-shapes.d.ts +10 -10
- package/node_modules/@comis/observability/dist/redact/value-shapes.js +30 -12
- package/node_modules/@comis/observability/dist/session-index/append.d.ts +5 -5
- package/node_modules/@comis/observability/dist/session-index/append.js +16 -16
- package/node_modules/@comis/observability/dist/session-index/types.d.ts +8 -8
- package/node_modules/@comis/observability/dist/shared/bounded-payload.d.ts +2 -3
- package/node_modules/@comis/observability/dist/shared/bounded-payload.js +2 -3
- package/node_modules/@comis/observability/dist/shared/sanitize-diagnostic-payload.d.ts +7 -9
- package/node_modules/@comis/observability/dist/shared/sanitize-diagnostic-payload.js +7 -9
- package/node_modules/@comis/observability/dist/trajectory/bundle-exporter.js +16 -5
- package/node_modules/@comis/observability/dist/trajectory/event-bus-bridge.d.ts +6 -0
- package/node_modules/@comis/observability/dist/trajectory/event-bus-bridge.js +117 -98
- package/node_modules/@comis/observability/dist/trajectory/translate-cache-break-payload.js +4 -4
- package/node_modules/@comis/observability/dist/trajectory/translate-image-payload.d.ts +4 -4
- package/node_modules/@comis/observability/dist/trajectory/translate-image-payload.js +4 -4
- package/node_modules/@comis/observability/dist/trajectory/translate-orchestration-payload.d.ts +6 -6
- package/node_modules/@comis/observability/dist/trajectory/translate-orchestration-payload.js +53 -20
- package/node_modules/@comis/observability/dist/trajectory/translate-payload.js +88 -49
- package/node_modules/@comis/observability/dist/trajectory/translate-spend-payload.d.ts +2 -2
- package/node_modules/@comis/observability/dist/trajectory/translate-spend-payload.js +3 -3
- package/node_modules/@comis/observability/dist/trajectory/translate-video-payload.d.ts +4 -5
- package/node_modules/@comis/observability/dist/trajectory/translate-video-payload.js +4 -5
- package/node_modules/@comis/observability/dist/trajectory/translate-vision-payload.d.ts +5 -5
- package/node_modules/@comis/observability/dist/trajectory/translate-vision-payload.js +5 -5
- package/node_modules/@comis/observability/dist/trajectory/translate-voice-payload.d.ts +5 -5
- package/node_modules/@comis/observability/dist/trajectory/translate-voice-payload.js +7 -7
- package/node_modules/@comis/observability/dist/trajectory/types.d.ts +2 -2
- package/node_modules/@comis/observability/dist/trajectory/types.js +101 -77
- package/node_modules/@comis/observability/package.json +1 -1
- package/node_modules/@comis/observability-otel/dist/dashboard-metric-names.d.ts +1 -1
- package/node_modules/@comis/observability-otel/dist/dashboard-metric-names.js +3 -3
- package/node_modules/@comis/observability-otel/dist/exemplar-capability.d.ts +2 -2
- package/node_modules/@comis/observability-otel/dist/exemplar-capability.js +9 -9
- package/node_modules/@comis/observability-otel/dist/index.d.ts +5 -5
- package/node_modules/@comis/observability-otel/dist/index.js +13 -14
- package/node_modules/@comis/observability-otel/dist/metric-catalog.d.ts +12 -13
- package/node_modules/@comis/observability-otel/dist/metric-catalog.js +19 -21
- package/node_modules/@comis/observability-otel/dist/metric-mapping.d.ts +11 -11
- package/node_modules/@comis/observability-otel/dist/metric-mapping.js +9 -9
- package/node_modules/@comis/observability-otel/dist/otel-exporter.d.ts +2 -2
- package/node_modules/@comis/observability-otel/dist/otel-exporter.js +14 -14
- package/node_modules/@comis/observability-otel/dist/prometheus-surface.d.ts +3 -3
- package/node_modules/@comis/observability-otel/dist/prometheus-surface.js +2 -2
- package/node_modules/@comis/observability-otel/dist/redact-attributes.d.ts +1 -1
- package/node_modules/@comis/observability-otel/dist/redact-attributes.js +7 -7
- package/node_modules/@comis/observability-otel/dist/spend-snapshot.d.ts +4 -4
- package/node_modules/@comis/observability-otel/dist/spend-snapshot.js +3 -3
- package/node_modules/@comis/observability-otel/dist/test-harness.d.ts +1 -1
- package/node_modules/@comis/observability-otel/dist/test-harness.js +1 -1
- package/node_modules/@comis/observability-otel/dist/traces.d.ts +7 -7
- package/node_modules/@comis/observability-otel/dist/traces.js +3 -3
- package/node_modules/@comis/observability-otel/package.json +1 -1
- package/node_modules/@comis/orchestrator/dist/approval/index.d.ts +1 -1
- package/node_modules/@comis/orchestrator/dist/approval/index.js +1 -1
- package/node_modules/@comis/orchestrator/dist/approval/interactive-callback-router.d.ts +6 -6
- package/node_modules/@comis/orchestrator/dist/approval/interactive-callback-router.js +9 -9
- package/node_modules/@comis/orchestrator/dist/channel-manager.js +5 -5
- package/node_modules/@comis/orchestrator/dist/cross-session/announcement-batcher.d.ts +5 -5
- package/node_modules/@comis/orchestrator/dist/cross-session/announcement-batcher.js +18 -18
- package/node_modules/@comis/orchestrator/dist/cross-session/announcement-dead-letter.d.ts +9 -9
- package/node_modules/@comis/orchestrator/dist/cross-session/announcement-dead-letter.js +3 -3
- package/node_modules/@comis/orchestrator/dist/cross-session/cross-session-sender.d.ts +7 -7
- package/node_modules/@comis/orchestrator/dist/cross-session/cross-session-sender.js +10 -10
- package/node_modules/@comis/orchestrator/dist/execution/activity-circuit-breaker.d.ts +3 -3
- package/node_modules/@comis/orchestrator/dist/execution/activity-circuit-breaker.js +1 -1
- package/node_modules/@comis/orchestrator/dist/execution/activity-turn-coordinator.d.ts +19 -13
- package/node_modules/@comis/orchestrator/dist/execution/activity-turn-coordinator.js +37 -13
- package/node_modules/@comis/orchestrator/dist/execution/execution-deliver.d.ts +3 -3
- package/node_modules/@comis/orchestrator/dist/execution/execution-deliver.js +41 -5
- package/node_modules/@comis/orchestrator/dist/execution/execution-execute.js +10 -5
- package/node_modules/@comis/orchestrator/dist/execution/execution-pipeline.d.ts +3 -3
- package/node_modules/@comis/orchestrator/dist/execution/execution-pipeline.js +10 -10
- package/node_modules/@comis/orchestrator/dist/execution/turn-outcome-mapper.d.ts +6 -5
- package/node_modules/@comis/orchestrator/dist/execution/turn-outcome-mapper.js +11 -3
- package/node_modules/@comis/orchestrator/dist/inbound/resolve-and-preprocess.d.ts +2 -2
- package/node_modules/@comis/orchestrator/dist/inbound/resolve-and-preprocess.js +8 -3
- package/node_modules/@comis/orchestrator/dist/index.js +2 -2
- package/node_modules/@comis/orchestrator/package.json +1 -1
- package/node_modules/@comis/scheduler/dist/cron/cron-expression.js +1 -1
- package/node_modules/@comis/scheduler/dist/cron/cron-scheduler.d.ts +8 -0
- package/node_modules/@comis/scheduler/dist/cron/cron-scheduler.js +7 -1
- package/node_modules/@comis/scheduler/dist/cron/cron-store.js +55 -23
- package/node_modules/@comis/scheduler/dist/cron/cron-types.d.ts +9 -1
- package/node_modules/@comis/scheduler/dist/cron/cron-types.js +7 -1
- package/node_modules/@comis/scheduler/dist/cron/index.d.ts +3 -0
- package/node_modules/@comis/scheduler/dist/cron/index.js +6 -0
- package/node_modules/@comis/scheduler/dist/cron/wake-gate-verdict.d.ts +47 -0
- package/node_modules/@comis/scheduler/dist/cron/wake-gate-verdict.js +102 -0
- package/node_modules/@comis/scheduler/dist/execution/execution-tracker.d.ts +6 -0
- package/node_modules/@comis/scheduler/dist/execution/execution-tracker.js +2 -0
- package/node_modules/@comis/scheduler/dist/index.d.ts +3 -0
- package/node_modules/@comis/scheduler/dist/index.js +4 -1
- package/node_modules/@comis/scheduler/package.json +1 -1
- package/node_modules/@comis/shared/package.json +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/registry.d.ts +6 -6
- package/node_modules/@comis/skills/dist/platform-tools/registry.js +5 -5
- package/node_modules/@comis/skills/dist/platform-tools/tools/agents-manage-tool.d.ts +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/tools/agents-manage-tool.js +2 -2
- package/node_modules/@comis/skills/dist/platform-tools/tools/browser-tool-schema.d.ts +2 -2
- package/node_modules/@comis/skills/dist/platform-tools/tools/browser-tool-schema.js +2 -2
- package/node_modules/@comis/skills/dist/platform-tools/tools/browser-tool.d.ts +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/tools/browser-tool.js +2 -2
- package/node_modules/@comis/skills/dist/platform-tools/tools/channels-manage-tool.js +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/tools/cron-tool.d.ts +2 -0
- package/node_modules/@comis/skills/dist/platform-tools/tools/cron-tool.js +18 -2
- package/node_modules/@comis/skills/dist/platform-tools/tools/describe-video-tool.js +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/tools/discord-action-tool.js +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/tools/extract-document-tool.js +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/tools/heartbeat-manage-tool.js +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/tools/image-generate-tool.js +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/tools/image-tool.js +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/tools/mcp-manage-tool.js +2 -2
- package/node_modules/@comis/skills/dist/platform-tools/tools/memory-ask-tool.d.ts +3 -3
- package/node_modules/@comis/skills/dist/platform-tools/tools/memory-ask-tool.js +4 -4
- package/node_modules/@comis/skills/dist/platform-tools/tools/memory-get-tool.js +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/tools/memory-manage-tool.js +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/tools/memory-search-tool.js +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/tools/memory-store-tool.js +1 -1
- package/node_modules/@comis/skills/dist/platform-tools/tools/obs-query-tool.js +2 -2
- package/node_modules/@comis/skills/dist/platform-tools/tools/pipeline-tool.js +11 -11
- package/node_modules/@comis/skills/dist/platform-tools/tools/video-generate-tool.d.ts +3 -3
- package/node_modules/@comis/skills/dist/platform-tools/tools/video-generate-tool.js +12 -12
- package/node_modules/@comis/skills/dist/platform-tools/tools/video-status-tool.d.ts +3 -3
- package/node_modules/@comis/skills/dist/platform-tools/tools/video-status-tool.js +3 -3
- package/node_modules/@comis/skills/dist/skills/audit/skill-audit.js +1 -1
- package/node_modules/@comis/skills/dist/skills/bridge/register-failure-detector-metadata.d.ts +1 -1
- package/node_modules/@comis/skills/dist/skills/bridge/register-failure-detector-metadata.js +1 -1
- package/node_modules/@comis/skills/dist/skills/bridge/tool-metadata-registry.js +13 -14
- package/node_modules/@comis/skills/dist/skills/index.js +4 -4
- package/node_modules/@comis/skills/dist/skills/integrations/mcp-client/mcp-client-discover.d.ts +1 -2
- package/node_modules/@comis/skills/dist/skills/integrations/mcp-client/mcp-client-discover.js +1 -2
- package/node_modules/@comis/skills/dist/skills/integrations/mcp-client/mcp-client-redirect-policy.js +2 -1
- package/node_modules/@comis/skills/dist/skills/integrations/mcp-client/oauth/browser-callback.d.ts +3 -3
- package/node_modules/@comis/skills/dist/skills/integrations/mcp-client/oauth/browser-callback.js +3 -3
- package/node_modules/@comis/skills/dist/skills/policy/tool-policy.js +9 -9
- package/node_modules/@comis/skills/dist/skills/prompt/processor.js +2 -2
- package/node_modules/@comis/skills/dist/skills/registry/discovery.d.ts +5 -5
- package/node_modules/@comis/skills/dist/tools/browser/cdp.d.ts +2 -2
- package/node_modules/@comis/skills/dist/tools/browser/cdp.js +2 -2
- package/node_modules/@comis/skills/dist/tools/browser/chrome-detection.d.ts +2 -2
- package/node_modules/@comis/skills/dist/tools/browser/chrome-detection.js +2 -2
- package/node_modules/@comis/skills/dist/tools/browser/playwright-actions.d.ts +1 -2
- package/node_modules/@comis/skills/dist/tools/browser/playwright-actions.js +1 -2
- package/node_modules/@comis/skills/dist/tools/browser/playwright-session.d.ts +2 -2
- package/node_modules/@comis/skills/dist/tools/browser/playwright-session.js +2 -2
- package/node_modules/@comis/skills/dist/tools/browser/playwright-snapshots.d.ts +2 -3
- package/node_modules/@comis/skills/dist/tools/browser/playwright-snapshots.js +2 -3
- package/node_modules/@comis/skills/dist/tools/browser/screenshots.d.ts +1 -3
- package/node_modules/@comis/skills/dist/tools/browser/screenshots.js +1 -3
- package/node_modules/@comis/skills/dist/tools/builtin/context-tools/context-tools-shared.d.ts +20 -20
- package/node_modules/@comis/skills/dist/tools/builtin/context-tools/context-tools-shared.js +15 -15
- package/node_modules/@comis/skills/dist/tools/builtin/context-tools/ctx-expand-tool.d.ts +3 -4
- package/node_modules/@comis/skills/dist/tools/builtin/context-tools/ctx-expand-tool.js +24 -25
- package/node_modules/@comis/skills/dist/tools/builtin/context-tools/ctx-expand-walk.d.ts +9 -9
- package/node_modules/@comis/skills/dist/tools/builtin/context-tools/ctx-expand-walk.js +12 -12
- package/node_modules/@comis/skills/dist/tools/builtin/context-tools/ctx-inspect-tool.d.ts +2 -2
- package/node_modules/@comis/skills/dist/tools/builtin/context-tools/ctx-inspect-tool.js +7 -7
- package/node_modules/@comis/skills/dist/tools/builtin/context-tools/ctx-search-tool.d.ts +3 -3
- package/node_modules/@comis/skills/dist/tools/builtin/context-tools/ctx-search-tool.js +18 -21
- package/node_modules/@comis/skills/dist/tools/builtin/context-tools/index.js +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/exec-tool/exec-shared.js +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/exec-tool/index.js +2 -2
- package/node_modules/@comis/skills/dist/tools/builtin/file/apply-patch-parser.js +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/file/safe-path-wrapper.d.ts +0 -3
- package/node_modules/@comis/skills/dist/tools/builtin/file/safe-path-wrapper.js +0 -3
- package/node_modules/@comis/skills/dist/tools/builtin/file-tools/shared/edit-diff.js +54 -3
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/__pycache__/comis_tools.cpython-312.pyc +0 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/comis-agent-cli.js +4 -4
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/comis-agent-entry.js +2 -2
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/comis-agent-manifest.json +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/comis_tools.d.ts +32 -16
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/comis_tools.js +104 -17
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/comis_tools.py +316 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/index.d.ts +8 -3
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/index.js +17 -6
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/jailed-script-runner.d.ts +143 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/jailed-script-runner.js +459 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-durable.d.ts +139 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-durable.js +191 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-executor-cores.d.ts +9 -6
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-executor-cores.js +101 -16
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-preflight.d.ts +79 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-preflight.js +157 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-repair.d.ts +110 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-repair.js +295 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-replay-respawn.d.ts +54 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-replay-respawn.js +144 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-sdk-runtime.d.ts +4 -4
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-sdk-runtime.js +8 -8
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-tool.d.ts +176 -53
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/orchestrate-tool.js +338 -181
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/result-ref-store.d.ts +37 -7
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/result-ref-store.js +37 -9
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/savings-estimate.d.ts +43 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/savings-estimate.js +44 -0
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/worktree-lifecycle.d.ts +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/orchestrate/worktree-lifecycle.js +6 -6
- package/node_modules/@comis/skills/dist/tools/builtin/process-tool.d.ts +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/sandbox/bwrap-provider.d.ts +41 -8
- package/node_modules/@comis/skills/dist/tools/builtin/sandbox/bwrap-provider.js +71 -27
- package/node_modules/@comis/skills/dist/tools/builtin/sandbox/detect-provider.d.ts +8 -8
- package/node_modules/@comis/skills/dist/tools/builtin/sandbox/detect-provider.js +7 -7
- package/node_modules/@comis/skills/dist/tools/builtin/sandbox/seccomp-profile.d.ts +4 -4
- package/node_modules/@comis/skills/dist/tools/builtin/sandbox/seccomp-profile.js +4 -4
- package/node_modules/@comis/skills/dist/tools/builtin/sandbox/types.d.ts +29 -14
- package/node_modules/@comis/skills/dist/tools/builtin/sleep-tool.d.ts +3 -3
- package/node_modules/@comis/skills/dist/tools/builtin/sleep-tool.js +7 -7
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/egress-relay-init.d.ts +11 -12
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/egress-relay-init.js +9 -10
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/index.js +68 -74
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/platforms/claude-code/profile.d.ts +7 -6
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/platforms/claude-code/profile.js +19 -18
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/platforms/codex/profile.d.ts +2 -2
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/platforms/codex/profile.js +7 -7
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/platforms/index.d.ts +9 -8
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/platforms/index.js +10 -9
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/platforms/terminal-platform-profile.d.ts +18 -17
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/platforms/terminal-platform-profile.js +6 -6
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-attention-emitter.d.ts +12 -12
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-attention-emitter.js +12 -12
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-auto-answer.d.ts +11 -11
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-auto-answer.js +21 -21
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-busy-predicate.d.ts +11 -11
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-busy-predicate.js +10 -10
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-caps.d.ts +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-caps.js +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-classifier.d.ts +26 -27
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-classifier.js +34 -35
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-dialog-detector.d.ts +12 -13
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-dialog-detector.js +23 -24
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-drive-journal.d.ts +25 -26
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-drive-journal.js +25 -26
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-drive-outcome.d.ts +25 -24
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-drive-outcome.js +25 -25
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-drive-promote.d.ts +29 -30
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-drive-promote.js +29 -30
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-egress-proxy.d.ts +4 -4
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-egress-proxy.js +5 -5
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-egress-relay.d.ts +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-egress-relay.js +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-env-scrub.d.ts +6 -6
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-env-scrub.js +11 -11
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-events-attention.d.ts +17 -17
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-events-attention.js +5 -5
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-heartbeat-digest.d.ts +6 -6
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-heartbeat-digest.js +7 -7
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-ipc.d.ts +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-ipc.js +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-key-grammar.d.ts +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-key-grammar.js +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-loop-guard.d.ts +6 -6
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-loop-guard.js +5 -5
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-notify-policy.d.ts +14 -13
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-notify-policy.js +14 -13
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-read-digest.d.ts +16 -18
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-read-digest.js +17 -18
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-reap-untasked.d.ts +4 -5
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-reaper.d.ts +8 -7
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-reaper.js +8 -7
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-reattach-match.d.ts +33 -34
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-reattach-match.js +29 -30
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-render.d.ts +18 -18
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-render.js +15 -15
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-scope-args.d.ts +2 -2
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-scope-args.js +8 -7
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-send-guards.js +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-session-owner.d.ts +3 -3
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-session-owner.js +3 -3
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-session-reattach.d.ts +61 -61
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-session-reattach.js +60 -60
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-session-registry.d.ts +13 -13
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-session-registry.js +30 -30
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-session-types.d.ts +17 -17
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-session-types.js +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-settle.d.ts +10 -10
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-settle.js +14 -14
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-spawn-plan.d.ts +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-spawn-plan.js +2 -2
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-spend-ceiling.d.ts +18 -19
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-spend-ceiling.js +20 -21
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-status-tool.d.ts +8 -9
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-status-tool.js +9 -10
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-status-view.d.ts +18 -18
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-status-view.js +13 -13
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-tmux-backend.d.ts +11 -12
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-tmux-backend.js +12 -13
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-tools-stubs.d.ts +8 -9
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-tools-stubs.js +8 -9
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-tools.d.ts +6 -6
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-tools.js +21 -21
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-wait-reply.d.ts +24 -23
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-wait-reply.js +20 -19
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-backend-attach.d.ts +12 -12
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-backend-attach.js +14 -14
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-classify.d.ts +14 -14
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-classify.js +20 -20
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-defaults.d.ts +4 -4
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-defaults.js +4 -4
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-entry.d.ts +7 -7
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-entry.js +32 -32
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-launch.d.ts +8 -8
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-launch.js +10 -10
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-main.d.ts +11 -11
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-main.js +23 -22
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-reattach.d.ts +6 -7
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-reattach.js +8 -9
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-stdio-pump.d.ts +2 -2
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-stdio-pump.js +2 -2
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-supervisor.d.ts +13 -14
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-supervisor.js +32 -33
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-types.d.ts +28 -28
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-worker-types.js +1 -1
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-workspace.d.ts +6 -7
- package/node_modules/@comis/skills/dist/tools/builtin/terminal-driver/terminal-workspace.js +6 -7
- package/node_modules/@comis/skills/dist/tools/builtin/web-fetch-tool.js +3 -3
- package/node_modules/@comis/skills/dist/tools/builtin/web-search-tool/index.js +3 -3
- package/node_modules/@comis/skills/dist/tools/index.d.ts +3 -2
- package/node_modules/@comis/skills/dist/tools/index.js +49 -38
- package/node_modules/@comis/skills/dist/tools/integrations/edge-tts-adapter.js +3 -3
- package/node_modules/@comis/skills/dist/tools/integrations/image-gen/image-gen-factory.d.ts +5 -6
- package/node_modules/@comis/skills/dist/tools/integrations/image-gen/image-gen-factory.js +5 -6
- package/node_modules/@comis/skills/dist/tools/integrations/local-stt-adapter.d.ts +14 -14
- package/node_modules/@comis/skills/dist/tools/integrations/local-stt-adapter.js +45 -45
- package/node_modules/@comis/skills/dist/tools/integrations/local-stt-probe.d.ts +7 -7
- package/node_modules/@comis/skills/dist/tools/integrations/local-stt-probe.js +11 -11
- package/node_modules/@comis/skills/dist/tools/integrations/local-tts-adapter.d.ts +5 -5
- package/node_modules/@comis/skills/dist/tools/integrations/local-tts-adapter.js +16 -16
- package/node_modules/@comis/skills/dist/tools/integrations/media-adapter-shared.d.ts +4 -4
- package/node_modules/@comis/skills/dist/tools/integrations/media-adapter-shared.js +4 -4
- package/node_modules/@comis/skills/dist/tools/integrations/media-handler-audio.js +4 -4
- package/node_modules/@comis/skills/dist/tools/integrations/media-handler-image.js +1 -1
- package/node_modules/@comis/skills/dist/tools/integrations/openai-stt-adapter.d.ts +1 -1
- package/node_modules/@comis/skills/dist/tools/integrations/openai-stt-adapter.js +3 -3
- package/node_modules/@comis/skills/dist/tools/integrations/openai-tts-adapter.js +1 -1
- package/node_modules/@comis/skills/dist/tools/integrations/pinned-fetch.d.ts +1 -1
- package/node_modules/@comis/skills/dist/tools/integrations/pinned-fetch.js +3 -3
- package/node_modules/@comis/skills/dist/tools/integrations/stt-factory.d.ts +2 -2
- package/node_modules/@comis/skills/dist/tools/integrations/stt-factory.js +7 -7
- package/node_modules/@comis/skills/dist/tools/integrations/tts-factory.d.ts +1 -1
- package/node_modules/@comis/skills/dist/tools/integrations/tts-factory.js +2 -2
- package/node_modules/@comis/skills/dist/tools/integrations/video-gen/classify-fal-video-error.d.ts +2 -2
- package/node_modules/@comis/skills/dist/tools/integrations/video-gen/fal-adapter.d.ts +6 -6
- package/node_modules/@comis/skills/dist/tools/integrations/video-gen/fal-adapter.js +32 -33
- package/node_modules/@comis/skills/dist/tools/integrations/video-gen/rate-limiter.js +2 -2
- package/node_modules/@comis/skills/dist/tools/integrations/video-gen/video-gen-factory.d.ts +3 -3
- package/node_modules/@comis/skills/dist/tools/media/ssrf-fetcher.d.ts +33 -4
- package/node_modules/@comis/skills/dist/tools/media/ssrf-fetcher.js +161 -39
- package/node_modules/@comis/skills/package.json +1 -1
- package/node_modules/@comis/web/dist/assets/{agent-detail-DTS1F-Ms.js → agent-detail-DyWC3FcQ.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{agent-editor-Ciyu1WDy.js → agent-editor-BEysejQV.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{agent-list-A1K8cnDs.js → agent-list-C3o2qKcC.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{billing-view-DeTSrDbU.js → billing-view-DicgbA0L.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{cache-health-BCWNSCJc.js → cache-health-CtKWyIsn.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{channel-detail-Dc9p_ikD.js → channel-detail-3L1l9zMD.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{channel-list-Ky4JkuxX.js → channel-list-trLI3xWS.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{chat-console-Dz_CizN8.js → chat-console-DsLKVxLB.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{config-editor-CMnaLKV1.js → config-editor-DJTsg_PF.js} +2 -2
- package/node_modules/@comis/web/dist/assets/{context-dag-browser-B4SfvEGD.js → context-dag-browser-CrwJ3vlZ.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{context-engine-D56GG59R.js → context-engine-BFkq8-KO.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{delivery-view-G4cBmG5M.js → delivery-view-Dwv3P_p-.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{diagnostics-view-Bf57kGOT.js → diagnostics-view-GknYBim7.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{ic-chat-message-CkDdrYHc.js → ic-chat-message-BpTf2pkH.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{ic-connection-dot-mggqNsPH.js → ic-connection-dot-DHLyVo60.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{ic-empty-state-f_kVNpuc.js → ic-empty-state-CqbUDzjw.js} +1 -1
- package/node_modules/@comis/web/dist/assets/ic-graph-canvas-Dllu1VH-.js +359 -0
- package/node_modules/@comis/web/dist/assets/{ic-tool-call-D1ykqLeH.js → ic-tool-call-BPInA28o.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{incident-view-Cd2e4cao.js → incident-view-CEJRF7CK.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{index-dqPriKJN.js → index-CZJxmgnn.js} +16 -16
- package/node_modules/@comis/web/dist/assets/{mcp-management-8zV6Sh-J.js → mcp-management-PP55pB8E.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{media-config-fz862yVg.js → media-config-6TEq89-c.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{media-test-tDL7lri1.js → media-test-DZwdURy9.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{memory-inspector-aSmZ-bVd.js → memory-inspector-3XZBzVWc.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{message-center-DWfIgL7i.js → message-center-DQ3JR8lQ.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{models-H5of-8R4.js → models-D9nphNYy.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{observe-view-ExySKnkt.js → observe-view-BHCiRVen.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-builder-p1GmDJy5.js → pipeline-builder-G7RhzfhZ.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-history-DQEU-Ieu.js → pipeline-history-CJF_3Zqw.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-history-detail-Bu51TMIX.js → pipeline-history-detail-Bxp-uFDB.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-list-DaYyj89m.js → pipeline-list-D1TODVHR.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-monitor-DV_7bRn2.js → pipeline-monitor-Dps90mZy.js} +2 -2
- package/node_modules/@comis/web/dist/assets/{scheduler-D0YVlb55.js → scheduler-aCuH_2-E.js} +29 -4
- package/node_modules/@comis/web/dist/assets/{security-78aeYyN2.js → security-Cvdhapvi.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{session-detail-D1yJ9diX.js → session-detail-BmjoBs8U.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{session-list-CxPzhPnX.js → session-list-4CBdQUNc.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{setup-wizard-SjMlBTNp.js → setup-wizard-DpNqhoYY.js} +2 -2
- package/node_modules/@comis/web/dist/assets/{skills-M6MQLY5D.js → skills-DNIjoBum.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{spend-governance-C0hIl9wq.js → spend-governance-BIprv4ad.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{subagents-CLCo4cfc.js → subagents-XTaqiG7-.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{workspace-manager-BzHAmYW2.js → workspace-manager-n4R9h9N8.js} +1 -1
- package/node_modules/@comis/web/dist/index.html +1 -1
- package/node_modules/@comis/web/package.json +1 -1
- package/package.json +21 -19
- package/node_modules/@comis/web/dist/assets/ic-graph-canvas-CBDFKlf5.js +0 -359
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
-
// @allow-throw: wrapSummarizerWithFailover
|
|
2
|
+
// @allow-throw: wrapSummarizerWithFailover re-throws the last provider error after the fallback list is exhausted (lcd-leaf-summarizer.ts:746); consumed by the summarizer-spend-breaker safety boundary (packages/agent/src/safety/summarizer-spend-breaker.ts), which catches the throw and records EXACTLY ONE per-tenant breaker failure — the existing summarizer-failure contract (a throw is how a summarization failure is signalled to the breaker).
|
|
3
3
|
/**
|
|
4
|
-
* LCD leaf summarization unit
|
|
4
|
+
* LCD leaf summarization unit.
|
|
5
5
|
*
|
|
6
6
|
* Two pure-ish responsibilities, both proven by a STUB summarizer (no network):
|
|
7
7
|
*
|
|
@@ -16,25 +16,25 @@
|
|
|
16
16
|
* 2. {@link summarizeLeafChunk} — run the mandatory 3-level escalation
|
|
17
17
|
* (normal → aggressive → deterministic truncation) that ALWAYS reduces
|
|
18
18
|
* tokens or falls back deterministically. The structural model is
|
|
19
|
-
* `compactWithFallback` (`llm-compaction.ts:545-607`), but
|
|
20
|
-
* per-level token-reduction assertion (
|
|
21
|
-
*
|
|
19
|
+
* `compactWithFallback` (`llm-compaction.ts:545-607`), but this unit ADDS a
|
|
20
|
+
* per-level token-reduction assertion (if output > input, retry aggressive
|
|
21
|
+
* then truncate) and a BOUNDED Level-3 output (a count-only
|
|
22
22
|
* note prefixed with `LEAF_FALLBACK_SUMMARY_MARKER`, capped at
|
|
23
23
|
* `LEAF_FALLBACK_TARGET_TOKENS`) — the guaranteed-shrink terminator. The
|
|
24
24
|
* ladder is FINITE (Level 1 ≤ 1+COMPACTION_MAX_RETRIES attempts → Level 2 one
|
|
25
25
|
* attempt → Level 3 deterministic); it never loops without a floor.
|
|
26
26
|
*
|
|
27
27
|
* The LLM summarizer is INJECTED as ONE function ({@link LeafSummarizer}) so
|
|
28
|
-
*
|
|
29
|
-
* single seam (the binding
|
|
30
|
-
* it inline and non-fatally: an error at Levels 1+2 is caught (WARN, errorKind
|
|
28
|
+
* the production wiring can wrap it with spend governance / a circuit breaker
|
|
29
|
+
* by swapping a single seam (the binding DoS-containment constraint). This unit
|
|
30
|
+
* calls it inline and non-fatally: an error at Levels 1+2 is caught (WARN, errorKind
|
|
31
31
|
* `dependency`) and the pass falls through to the deterministic Level 3 — it
|
|
32
32
|
* NEVER throws out of the pass.
|
|
33
33
|
*
|
|
34
34
|
* Architecture cut (agent↛memory): this file imports ONLY the agent-side token
|
|
35
35
|
* estimators + the escalation constants; it NEVER imports `@comis/memory`. It
|
|
36
36
|
* also NEVER logs `chunkMessages` content or the summary `content` — ids, counts,
|
|
37
|
-
* level, and durations only (AGENTS.md §2.2
|
|
37
|
+
* level, and durations only (AGENTS.md §2.2). It reads NO wall clock of
|
|
38
38
|
* its own — the leaf time-range (`earliestAt`/`latestAt`) is derived purely from
|
|
39
39
|
* the injected `LeafChunkItem.createdAt` values, so there is no globals-gate
|
|
40
40
|
* surface here (the caller's injected clock stamps timestamps upstream).
|
|
@@ -55,11 +55,11 @@ import { estimateMessageTokens, estimateMessageChars, CHARS_PER_TOKEN, } from ".
|
|
|
55
55
|
* (`estimateMessageTokens` of a 1–4-char user string), so a chunk must be ≥ 2
|
|
56
56
|
* tokens for any non-empty summary to be strictly smaller. A 1-token chunk is
|
|
57
57
|
* already trivially tiny — there is nothing to gain — so the caller skips the
|
|
58
|
-
* pass entirely
|
|
58
|
+
* pass entirely rather than emitting a degenerate empty/larger fallback.
|
|
59
59
|
*/
|
|
60
60
|
export const MIN_SHRINKABLE_LEAF_CHUNK_TOKENS = 2;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* The fraction of a chunk's rendered shrink ceiling used as the
|
|
63
63
|
* EFFECTIVE summarize target. The configured `reserveTokens` (= `leafTargetTokens`
|
|
64
64
|
* / `condensedTargetTokens`) can EXCEED a small chunk — telling the model to write
|
|
65
65
|
* a summary larger than what it compresses → a guaranteed non-reduction → the
|
|
@@ -71,7 +71,7 @@ export const MIN_SHRINKABLE_LEAF_CHUNK_TOKENS = 2;
|
|
|
71
71
|
*/
|
|
72
72
|
export const SHRINK_TARGET_FRACTION = 0.5;
|
|
73
73
|
/**
|
|
74
|
-
* Compute the self-consistent shrink bounds for a chunk
|
|
74
|
+
* Compute the self-consistent shrink bounds for a chunk. Shared
|
|
75
75
|
* by {@link summarizeLeafChunk} and `summarizeCondensedChunk` (the rule of three
|
|
76
76
|
* is met — both summarizers need the identical bounding).
|
|
77
77
|
*
|
|
@@ -79,9 +79,9 @@ export const SHRINK_TARGET_FRACTION = 0.5;
|
|
|
79
79
|
*
|
|
80
80
|
* - `shrinkCeilingTokens` — the accept-test ceiling, measured the SAME way the
|
|
81
81
|
* candidate summary is (`estimateMessageTokens` of a user string = 4:1 prose):
|
|
82
|
-
* `ceil(renderedChars / CHARS_PER_TOKEN)`.
|
|
83
|
-
*
|
|
84
|
-
* / 4:1 text)
|
|
82
|
+
* `ceil(renderedChars / CHARS_PER_TOKEN)`. Comparing a 4:1-prose candidate
|
|
83
|
+
* against the chunk's MIXED-ratio STORED `tokenCount` (3:1 structured
|
|
84
|
+
* / 4:1 text) would be inconsistent units; this keeps the comparison like-for-like.
|
|
85
85
|
* NOTE: the STORED Σ `tokenCount` remains the BUDGET / before-size / floor
|
|
86
86
|
* authority everywhere else (utilization, eviction, the deterministic Level-3
|
|
87
87
|
* note + its strict ceiling) — only the accept-test ceiling moves here.
|
|
@@ -97,7 +97,7 @@ export const SHRINK_TARGET_FRACTION = 0.5;
|
|
|
97
97
|
* @returns the rendered-4:1 accept ceiling + the bounded effective target.
|
|
98
98
|
*/
|
|
99
99
|
export function computeShrinkBounds(renderedChars, configuredReserveTokens) {
|
|
100
|
-
// flat-by-design: shrink-ceiling convergence bound over aggregate renderedChars (correctness comes from the shrink loop, see docstring)
|
|
100
|
+
// flat-by-design: shrink-ceiling convergence bound over aggregate renderedChars (correctness comes from the shrink loop, see docstring)
|
|
101
101
|
const shrinkCeilingTokens = Math.ceil(renderedChars / CHARS_PER_TOKEN);
|
|
102
102
|
const effectiveReserveTokens = Math.min(configuredReserveTokens, Math.max(1, Math.floor(shrinkCeilingTokens * SHRINK_TARGET_FRACTION)));
|
|
103
103
|
return { shrinkCeilingTokens, effectiveReserveTokens };
|
|
@@ -117,19 +117,19 @@ export function computeShrinkBounds(renderedChars, configuredReserveTokens) {
|
|
|
117
117
|
* messages up to the cap, then walks forward past a trailing assistant
|
|
118
118
|
* `tool_use` and its `toolResult`s (never crossing the fresh-tail boundary).
|
|
119
119
|
*
|
|
120
|
-
*
|
|
120
|
+
* If `pinnedMessageIds` is provided, chunks containing ANY pinned message
|
|
121
121
|
* are skipped entirely — pinned messages are NEVER selected as eviction candidates.
|
|
122
122
|
*
|
|
123
123
|
* @param history - the evictable history items (seq order, oldest first)
|
|
124
124
|
* @param freshTailSteps - the number of trailing STEPS protected from eviction
|
|
125
125
|
* @param leafChunkTokens - the chunk token cap
|
|
126
|
-
* @param pinnedMessageIds -
|
|
126
|
+
* @param pinnedMessageIds - message ids that must never be selected for eviction
|
|
127
127
|
* @returns the selected chunk, or `undefined` when nothing is evictable
|
|
128
128
|
*/
|
|
129
129
|
export function selectLeafChunk(history, freshTailSteps, leafChunkTokens, pinnedMessageIds) {
|
|
130
130
|
if (history.length === 0)
|
|
131
131
|
return undefined;
|
|
132
|
-
//
|
|
132
|
+
// Build a version of history that excludes pinned messages from the selectable set.
|
|
133
133
|
// Pinned messages are moved to "protected" — they remain in the store but cannot be
|
|
134
134
|
// selected as eviction candidates. If ALL messages are pinned, return undefined.
|
|
135
135
|
const evictableHistory = pinnedMessageIds && pinnedMessageIds.size > 0
|
|
@@ -240,10 +240,11 @@ function roleOf(m) {
|
|
|
240
240
|
/**
|
|
241
241
|
* Summarize a leaf chunk via the mandatory 3-level escalation. ALWAYS returns a
|
|
242
242
|
* summary whose token count is STRICTLY LESS than the chunk's token count (the
|
|
243
|
-
*
|
|
244
|
-
* otherwise falling through to the deterministic, bounded Level-3
|
|
243
|
+
* strict-shrink invariant) — accepting an LLM summary only when it actually
|
|
244
|
+
* reduces, and otherwise falling through to the deterministic, bounded Level-3
|
|
245
|
+
* truncation.
|
|
245
246
|
*
|
|
246
|
-
*
|
|
247
|
+
* The EFFECTIVE summarize target is bounded below the chunk's
|
|
247
248
|
* rendered shrink ceiling ({@link computeShrinkBounds}) so the model is never asked
|
|
248
249
|
* to write more than it compresses (the spurious-floor fix), and the accept-test
|
|
249
250
|
* ceiling is the RENDERED 4:1 measure — self-consistent with the candidate's units.
|
|
@@ -260,16 +261,17 @@ export async function summarizeLeafChunk(chunkItems, deps, opts) {
|
|
|
260
261
|
const messageIds = chunkItems.map((it) => it.id);
|
|
261
262
|
const createdAts = chunkItems.map((it) => it.createdAt);
|
|
262
263
|
// Before-size authority: the caller's pre-computed per-message tokens (counts
|
|
263
|
-
//
|
|
264
|
+
// persisted thinking/reasoning on store-sourced rows, which re-estimation
|
|
265
|
+
// would under-count).
|
|
264
266
|
// This stays the BUDGET / floor authority — the deterministic Level-3 floor must
|
|
265
267
|
// still beat the REAL stored before-size (NOT the smaller rendered ceiling).
|
|
266
268
|
const chunkTokens = chunkItems.reduce((acc, it) => acc + it.tokens, 0);
|
|
267
269
|
const earliestAt = createdAts.length > 0 ? Math.min(...createdAts) : 0;
|
|
268
270
|
const latestAt = createdAts.length > 0 ? Math.max(...createdAts) : 0;
|
|
269
|
-
//
|
|
271
|
+
// Self-consistent shrink bounds from the chunk's RENDERED chars. The
|
|
270
272
|
// accept ceiling (`shrinkCeilingTokens`) is measured the SAME way the candidate
|
|
271
273
|
// summary is (4:1 prose); the EFFECTIVE target is bounded below the chunk so the
|
|
272
|
-
// summarizer is never asked to write more than it compresses (the
|
|
274
|
+
// summarizer is never asked to write more than it compresses (the spurious-floor guard).
|
|
273
275
|
const renderedChars = messages.reduce((acc, m) => acc + estimateMessageChars(m), 0);
|
|
274
276
|
const { shrinkCeilingTokens, effectiveReserveTokens } = computeShrinkBounds(renderedChars, opts.reserveTokens);
|
|
275
277
|
const base = {
|
|
@@ -294,7 +296,7 @@ export async function summarizeLeafChunk(chunkItems, deps, opts) {
|
|
|
294
296
|
// --- Level 2: aggressive — one best-effort retry. Prefer the oversized-filtered
|
|
295
297
|
// set (dropping huge messages often lets the model reduce), but when EVERY
|
|
296
298
|
// message is oversized the filter empties the set; rather than skip Level 2
|
|
297
|
-
// and drop straight to the count-only floor
|
|
299
|
+
// and drop straight to the count-only floor, make the one aggressive
|
|
298
300
|
// attempt on the FULL (unfiltered) set. An aggressive LLM summary — even of
|
|
299
301
|
// large inputs — is strictly better context than the deterministic floor,
|
|
300
302
|
// and continuity (`previousSummary`) is forwarded either way.
|
|
@@ -334,7 +336,7 @@ export async function summarizeLeafChunk(chunkItems, deps, opts) {
|
|
|
334
336
|
/**
|
|
335
337
|
* Attempt one summarizer call and accept it ONLY when the produced summary is
|
|
336
338
|
* strictly smaller (in tokens) than `shrinkCeilingTokens` — the chunk's RENDERED
|
|
337
|
-
* 4:1 measure
|
|
339
|
+
* 4:1 measure, so the candidate (a 4:1-prose user string) and
|
|
338
340
|
* the ceiling are like-for-like units. Non-fatal: a throwing summarizer is caught
|
|
339
341
|
* (WARN, errorKind `dependency`) and reported as "not accepted" so the ladder
|
|
340
342
|
* escalates rather than failing.
|
|
@@ -345,7 +347,7 @@ async function tryLevel(deps, messages, opts, shrinkCeilingTokens, attempt) {
|
|
|
345
347
|
const tokenCount = estimateMessageTokens({ role: "user", content: summary });
|
|
346
348
|
if (tokenCount < shrinkCeilingTokens)
|
|
347
349
|
return { content: summary, tokenCount };
|
|
348
|
-
// Non-reduction → escalate (
|
|
350
|
+
// Non-reduction → escalate (never accept a summary that fails to shrink).
|
|
349
351
|
deps.logger.debug({
|
|
350
352
|
step: "lcd-leaf-escalate",
|
|
351
353
|
attempt,
|
|
@@ -370,12 +372,12 @@ async function tryLevel(deps, messages, opts, shrinkCeilingTokens, attempt) {
|
|
|
370
372
|
* it NEVER exceeds the chunk and NEVER calls an LLM.
|
|
371
373
|
*
|
|
372
374
|
* The bound is the token ESTIMATOR ITSELF, not a hand-derived chars-per-token
|
|
373
|
-
* ceiling
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
*
|
|
378
|
-
* estimator until it is strictly below the chunk
|
|
375
|
+
* ceiling: clamping chars with `CHARS_PER_TOKEN_RATIO` (3.5) would disagree
|
|
376
|
+
* with `estimateMessageTokens` (4:1 for a user-role string), and a
|
|
377
|
+
* `Math.max(MARKER.length, …)` floor would override the clamp for tiny chunks —
|
|
378
|
+
* a 3-token chunk would get a 19-char marker = 5 tokens, LARGER than the
|
|
379
|
+
* chunk. Truncating the note in a loop that re-measures with the
|
|
380
|
+
* estimator until it is strictly below the chunk avoids both the 3.5-vs-4
|
|
379
381
|
* mismatch and the marker-floor overshoot. The marker survives intact for any
|
|
380
382
|
* normal-size chunk; only a sub-marker chunk truncates it (and a chunk too small
|
|
381
383
|
* to ever shrink with non-empty content is skipped by the {@link summarizeLeafChunk}
|
|
@@ -418,11 +420,12 @@ function buildDeterministicFallback(messageCount, chunkTokens) {
|
|
|
418
420
|
// ---------------------------------------------------------------------------
|
|
419
421
|
/**
|
|
420
422
|
* Construct the PRODUCTION {@link LeafSummarizer} — the seam that wraps the SDK
|
|
421
|
-
* `generateSummary`.
|
|
422
|
-
* circuit-broken variant;
|
|
423
|
+
* `generateSummary`. The production wiring swaps THIS factory's output for a
|
|
424
|
+
* spend-governed / circuit-broken variant; the bare factory calls
|
|
425
|
+
* `generateSummary` directly. The override
|
|
423
426
|
* model + key are used when {@link LeafSummarizerDeps.overrideModel} is present
|
|
424
427
|
* (a cheaper compaction model resolved by the operation-model chain), else the
|
|
425
|
-
* primary REAL model (`getRealModel`) + `getApiKey` (
|
|
428
|
+
* primary REAL model (`getRealModel`) + `getApiKey` (a real pi-ai
|
|
426
429
|
* `Model<any>`, never the 4-field snapshot). Mirrors `compactWithFallback`'s call shape
|
|
427
430
|
* (`llm-compaction.ts:561`); the 8th param threads `previousSummary` for
|
|
428
431
|
* continuity. The function may return a too-large string — the escalation ladder
|
|
@@ -434,7 +437,7 @@ function buildDeterministicFallback(messageCount, chunkTokens) {
|
|
|
434
437
|
*/
|
|
435
438
|
export function buildLeafSummarizeFn(deps) {
|
|
436
439
|
return async (messages, opts) => {
|
|
437
|
-
//
|
|
440
|
+
// Resolve a REAL Model<any> for generateSummary — prefer the cheaper
|
|
438
441
|
// override's real Model when the operation chain picked one (parity with
|
|
439
442
|
// getCompactionDeps), else the PRIMARY real model (the executor-resolved
|
|
440
443
|
// `resolvedModel`, threaded via deps.getRealModel). The bare 4-field
|
|
@@ -454,16 +457,16 @@ export function buildLeafSummarizeFn(deps) {
|
|
|
454
457
|
};
|
|
455
458
|
}
|
|
456
459
|
/**
|
|
457
|
-
*
|
|
460
|
+
* Wraps a primary {@link LeafSummarizer} with an ordered fallback list.
|
|
458
461
|
*
|
|
459
462
|
* On primary failure, tries each fallback in sequence (ordered by the caller's
|
|
460
463
|
* `fallbacks` array). Only when ALL providers in the list are exhausted does the
|
|
461
464
|
* wrapper throw the last error — so the per-tenant circuit breaker that wraps the
|
|
462
465
|
* OUTER spend-governed seam records exactly ONE failure per exhausted-list event
|
|
463
|
-
* (
|
|
466
|
+
* (throw-last, not throw-per-provider).
|
|
464
467
|
*
|
|
465
468
|
* Content-free: logs `providerIndex`, `totalProviders`, and `errorKind: "dependency"`
|
|
466
|
-
* only — NEVER message content, summary text, or provider credentials
|
|
469
|
+
* only — NEVER message content, summary text, or provider credentials.
|
|
467
470
|
*
|
|
468
471
|
* @param primary - the primary LeafSummarizer (already spend-governed by the outer seam)
|
|
469
472
|
* @param fallbacks - ordered list of fallback LeafSummarizer callables
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Pre-flight fit check for the LCD dag assembler
|
|
2
|
+
* Pre-flight fit check for the LCD dag assembler.
|
|
3
3
|
*
|
|
4
4
|
* Enforces the invariant: assembledInputTokens ≤ effectiveWindow − outputHeadroom.
|
|
5
|
-
* Security-pinned messages
|
|
5
|
+
* Security-pinned messages are NEVER evicted in the harder-eviction pass.
|
|
6
6
|
*
|
|
7
7
|
* Escalation ladder:
|
|
8
8
|
* (a) Evict harder with security-pinned messages excluded.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Separated from lcd-assembler.ts to keep that file ≤ 820 lines.
|
|
13
13
|
*
|
|
14
|
-
* Root-cause context-exhaustion guard
|
|
14
|
+
* Root-cause context-exhaustion guard: the NON-EVICTABLE fixed
|
|
15
15
|
* overhead S (system prompt + tool schemas) is the dominant term on small
|
|
16
16
|
* windows. The window-aware tool-budget fit pass (executor-tool-assembly.ts
|
|
17
17
|
* `enforceToolBudgetFit`) defers tools so S fits BEFORE this pre-flight runs,
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
* guidance, keep identity + essential behavior) would let the agent still reply
|
|
26
26
|
* on a window < full-prompt. Deferred: it is deeply invasive in the 1954-line
|
|
27
27
|
* prompt-assembly.ts (per-session bootstrap snapshot + once-per-session
|
|
28
|
-
* systemPromptOverride).
|
|
29
|
-
* incident. Until then the degenerate case fails honestly (above).
|
|
28
|
+
* systemPromptOverride). Until then the degenerate case fails honestly (above).
|
|
30
29
|
*
|
|
31
30
|
* @module
|
|
32
31
|
*/
|
|
@@ -34,7 +33,7 @@ import { type BudgetItem } from "./lcd-budget-eviction.js";
|
|
|
34
33
|
import type { ContextEngineDeps, ContextWindowCapInfo } from "./types.js";
|
|
35
34
|
import type { AgentMessage } from "@earendil-works/pi-agent-core";
|
|
36
35
|
/**
|
|
37
|
-
* Run the
|
|
36
|
+
* Run the pre-flight fit check.
|
|
38
37
|
*
|
|
39
38
|
* @param deps - ContextEngineDeps (reads securityPinMarkers, callbacks, logger).
|
|
40
39
|
* @param effectiveWindow - budget.windowTokens for this turn.
|
|
@@ -45,14 +44,14 @@ import type { AgentMessage } from "@earendil-works/pi-agent-core";
|
|
|
45
44
|
* The NEWEST keptCount items from evictable were kept.
|
|
46
45
|
* @param freshTail - The unconditional fresh-tail messages.
|
|
47
46
|
* @param reasoningStyle - profile.reasoningStyle ("none" | "native").
|
|
48
|
-
* @param capInfo -
|
|
47
|
+
* @param capInfo - Window-cap provenance (budget.rawContextWindowTokens +
|
|
49
48
|
* budget.windowCapSource). When the effective window was
|
|
50
49
|
* clamped by a capability-class cap, the exhaustion throw
|
|
51
50
|
* and WARN name the raw window and the exact config knob.
|
|
52
51
|
*
|
|
53
52
|
* Throws ContextExhaustionError if infeasible even at the thinking-level floor.
|
|
54
53
|
* Emits onEffectiveWindow, onThinkingDownshifted, onAssembledInputTokens callbacks as side effects.
|
|
55
|
-
* Returns the ORIGINAL assembled input token count (
|
|
56
|
-
* dispatched) so the assembler's INFO line can log the budget equation
|
|
54
|
+
* Returns the ORIGINAL assembled input token count (what is actually
|
|
55
|
+
* dispatched) so the assembler's INFO line can log the budget equation.
|
|
57
56
|
*/
|
|
58
57
|
export declare function runPreflightFitCheck(deps: ContextEngineDeps, effectiveWindow: number, evictable: BudgetItem[], keptCount: number, freshTail: AgentMessage[], reasoningStyle: "none" | "native", capInfo?: ContextWindowCapInfo): number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
-
// @allow-throw: ContextExhaustionError is a control-flow signal caught by handleEnvelopeException and mapped to finishReason:context_exhausted
|
|
2
|
+
// @allow-throw: ContextExhaustionError is a control-flow signal caught by handleEnvelopeException and mapped to finishReason:context_exhausted
|
|
3
3
|
/**
|
|
4
|
-
* Pre-flight fit check for the LCD dag assembler
|
|
4
|
+
* Pre-flight fit check for the LCD dag assembler.
|
|
5
5
|
*
|
|
6
6
|
* Enforces the invariant: assembledInputTokens ≤ effectiveWindow − outputHeadroom.
|
|
7
|
-
* Security-pinned messages
|
|
7
|
+
* Security-pinned messages are NEVER evicted in the harder-eviction pass.
|
|
8
8
|
*
|
|
9
9
|
* Escalation ladder:
|
|
10
10
|
* (a) Evict harder with security-pinned messages excluded.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* Separated from lcd-assembler.ts to keep that file ≤ 820 lines.
|
|
15
15
|
*
|
|
16
|
-
* Root-cause context-exhaustion guard
|
|
16
|
+
* Root-cause context-exhaustion guard: the NON-EVICTABLE fixed
|
|
17
17
|
* overhead S (system prompt + tool schemas) is the dominant term on small
|
|
18
18
|
* windows. The window-aware tool-budget fit pass (executor-tool-assembly.ts
|
|
19
19
|
* `enforceToolBudgetFit`) defers tools so S fits BEFORE this pre-flight runs,
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
* guidance, keep identity + essential behavior) would let the agent still reply
|
|
28
28
|
* on a window < full-prompt. Deferred: it is deeply invasive in the 1954-line
|
|
29
29
|
* prompt-assembly.ts (per-session bootstrap snapshot + once-per-session
|
|
30
|
-
* systemPromptOverride).
|
|
31
|
-
* incident. Until then the degenerate case fails honestly (above).
|
|
30
|
+
* systemPromptOverride). Until then the degenerate case fails honestly (above).
|
|
32
31
|
*
|
|
33
32
|
* @module
|
|
34
33
|
*/
|
|
@@ -39,7 +38,7 @@ import { evictHistoryUnderBudget } from "./lcd-budget-eviction.js";
|
|
|
39
38
|
import { factoredMessageTokens } from "./factored-message-tokens.js";
|
|
40
39
|
const VALID_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh"];
|
|
41
40
|
/**
|
|
42
|
-
* Run the
|
|
41
|
+
* Run the pre-flight fit check.
|
|
43
42
|
*
|
|
44
43
|
* @param deps - ContextEngineDeps (reads securityPinMarkers, callbacks, logger).
|
|
45
44
|
* @param effectiveWindow - budget.windowTokens for this turn.
|
|
@@ -50,26 +49,26 @@ const VALID_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh"];
|
|
|
50
49
|
* The NEWEST keptCount items from evictable were kept.
|
|
51
50
|
* @param freshTail - The unconditional fresh-tail messages.
|
|
52
51
|
* @param reasoningStyle - profile.reasoningStyle ("none" | "native").
|
|
53
|
-
* @param capInfo -
|
|
52
|
+
* @param capInfo - Window-cap provenance (budget.rawContextWindowTokens +
|
|
54
53
|
* budget.windowCapSource). When the effective window was
|
|
55
54
|
* clamped by a capability-class cap, the exhaustion throw
|
|
56
55
|
* and WARN name the raw window and the exact config knob.
|
|
57
56
|
*
|
|
58
57
|
* Throws ContextExhaustionError if infeasible even at the thinking-level floor.
|
|
59
58
|
* Emits onEffectiveWindow, onThinkingDownshifted, onAssembledInputTokens callbacks as side effects.
|
|
60
|
-
* Returns the ORIGINAL assembled input token count (
|
|
61
|
-
* dispatched) so the assembler's INFO line can log the budget equation
|
|
59
|
+
* Returns the ORIGINAL assembled input token count (what is actually
|
|
60
|
+
* dispatched) so the assembler's INFO line can log the budget equation.
|
|
62
61
|
*/
|
|
63
62
|
export function runPreflightFitCheck(deps, effectiveWindow, evictable, keptCount, freshTail, reasoningStyle, capInfo) {
|
|
64
|
-
// Emit effectiveWindow callback so
|
|
63
|
+
// Emit effectiveWindow callback so the caller can clamp max_tokens dynamically.
|
|
65
64
|
deps.onEffectiveWindow?.(effectiveWindow);
|
|
66
65
|
const rawThinkingLevel = deps.getThinkingLevel?.() ?? "medium";
|
|
67
66
|
const thinkingLevelInput = VALID_LEVELS.includes(rawThinkingLevel)
|
|
68
67
|
? rawThinkingLevel
|
|
69
68
|
: "medium";
|
|
70
|
-
//
|
|
71
|
-
// when provided; otherwise fall back to the compile-time constant (768)
|
|
72
|
-
//
|
|
69
|
+
// Use the operator-configurable floor (from contextEngine.budget.minVisibleOutputTokens)
|
|
70
|
+
// when provided; otherwise fall back to the compile-time constant (768), which is
|
|
71
|
+
// what frontier/mid deployments (no explicit config) run with.
|
|
73
72
|
const minVisibleFloor = deps.minVisibleOutputTokens;
|
|
74
73
|
let effectiveThinkingLevel = thinkingLevelInput;
|
|
75
74
|
let outputHeadroom = computeOutputHeadroom(reasoningStyle, effectiveThinkingLevel, minVisibleFloor);
|
|
@@ -80,34 +79,33 @@ export function runPreflightFitCheck(deps, effectiveWindow, evictable, keptCount
|
|
|
80
79
|
const budgetedTokens = evictable.slice(keptStart).reduce((s, b) => s + b.tokens, 0);
|
|
81
80
|
// Estimate fresh tail token count via the shared factored per-message estimator
|
|
82
81
|
// (factored-message-tokens.ts): ceil(chars / (CHARS_PER_TOKEN_RATIO × scriptTokenFactor))
|
|
83
|
-
// over each message's OWN extracted text (string + array multi-part/tool-result content
|
|
84
|
-
//
|
|
85
|
-
// Per-message counts are kept (not just the sum) so the
|
|
82
|
+
// over each message's OWN extracted text (string + array multi-part/tool-result content;
|
|
83
|
+
// dense scripts carry ~2-3× tokens/char, ASCII factor 1.0 → the bare 3.5:1 form).
|
|
84
|
+
// Per-message counts are kept (not just the sum) so the exhaustion-cause classifier below
|
|
86
85
|
// can tell a single-oversized-message failure from an aggregate overflow.
|
|
87
|
-
//
|
|
86
|
+
// factoredMessageTokens is the SINGLE shared estimator — boundFreshTailTotalToResidual
|
|
88
87
|
// uses the SAME function, so the fresh-tail BOUND and this MEASURE can never diverge
|
|
89
88
|
// (no estimator gap → no fudge factor needed in the bound).
|
|
90
89
|
const freshTailMsgTokens = freshTail.map((m) => factoredMessageTokens(m));
|
|
91
90
|
const freshTailTokens = freshTailMsgTokens.reduce((s, t) => s + t, 0);
|
|
92
|
-
//
|
|
91
|
+
// Count the FULL SDK prompt, not just history+freshTail. The
|
|
93
92
|
// dominant term is the system prompt + tool schemas (S = getSystemTokensEstimate)
|
|
94
|
-
// — the SAME value the eviction budget subtracts (lcd-assembler `S`).
|
|
95
|
-
//
|
|
96
|
-
// freshTail)
|
|
93
|
+
// — the SAME value the eviction budget subtracts (lcd-assembler `S`). Omitting
|
|
94
|
+
// it makes a real ~31.5K prompt (S≈25584 + history +
|
|
95
|
+
// freshTail) look like ~6.5K, pass the check, and the model truncates
|
|
97
96
|
// silently at stopReason:length — the governor / clamp / context-exhausted
|
|
98
|
-
// ladder never
|
|
97
|
+
// ladder never engages. S is non-evictable (system+tools), so it also enters
|
|
99
98
|
// the harder-eviction budget below and the reported assembled count.
|
|
100
|
-
// See design/small-model-orchestration-fidelity.md §6 Fix 1.
|
|
101
99
|
const systemTokens = deps.getSystemTokensEstimate?.() ?? 0;
|
|
102
|
-
//
|
|
100
|
+
// Save the ORIGINAL assembled count (what is actually dispatched to the LLM)
|
|
103
101
|
// BEFORE any simulation in step (a). onAssembledInputTokens must always report this
|
|
104
102
|
// value — NOT the simulated undercount from the security-pin harder-eviction pass.
|
|
105
103
|
const originalAssembledInputTokens = systemTokens + budgetedTokens + freshTailTokens;
|
|
106
104
|
let assembledInputTokens = originalAssembledInputTokens;
|
|
107
|
-
//
|
|
105
|
+
// Emit the budget equation once per fit check —
|
|
108
106
|
// "fits"/"downshifted" at the end, "exhausted" right before the throw — so the
|
|
109
107
|
// trajectory carries the numbers obs.explain needs to explain a degraded turn
|
|
110
|
-
// (
|
|
108
|
+
// (a daemon-log DEBUG line alone would be invisible at the default level).
|
|
111
109
|
let governorFired = false;
|
|
112
110
|
const emitBudgetComputed = (verdict, assembled, headroom) => {
|
|
113
111
|
deps.eventBus?.emit("context:budget_computed", {
|
|
@@ -129,16 +127,16 @@ export function runPreflightFitCheck(deps, effectiveWindow, evictable, keptCount
|
|
|
129
127
|
// (a) Evict harder against the room that ACTUALLY remains after the
|
|
130
128
|
// non-evictable S (system+tools) and the unconditionally-shipped fresh tail.
|
|
131
129
|
//
|
|
132
|
-
//
|
|
133
|
-
//
|
|
134
|
-
// session with no canary (markers undefined — the common case) the harder
|
|
135
|
-
// eviction
|
|
130
|
+
// This rung MUST run UNCONDITIONALLY — never gate it on
|
|
131
|
+
// `if (deps.securityPinMarkers)`. Gated, a fresh
|
|
132
|
+
// session with no canary (markers undefined — the common case) skips the harder
|
|
133
|
+
// eviction entirely: the looser history-budget eviction from the
|
|
136
134
|
// assembler (H = W−S−O−M−R−P + the 8K-starvation add-back ≈ 4096 on an 8192
|
|
137
|
-
// nano window)
|
|
135
|
+
// nano window) leaks through, assembled stays > the bound, and the turn throws
|
|
138
136
|
// on EVICTABLE history that could have been trimmed. Accumulated evictable
|
|
139
137
|
// history must NEVER cause exhaustion — it evicts down to whatever fits (even
|
|
140
138
|
// to near-zero → a degraded-but-running stateless turn). Security-pinned
|
|
141
|
-
// messages
|
|
139
|
+
// messages are still excluded from the harder pass when markers exist;
|
|
142
140
|
// with no markers, NO item is pinned (pinnedItems = [], pinnedTokens = 0) and
|
|
143
141
|
// ALL evictable history is trimmed under the tighter budget.
|
|
144
142
|
const markers = deps.securityPinMarkers;
|
|
@@ -149,7 +147,7 @@ export function runPreflightFitCheck(deps, effectiveWindow, evictable, keptCount
|
|
|
149
147
|
? evictable.filter((item) => !isSecurityRelevantMessage(item.msg, markers))
|
|
150
148
|
: evictable;
|
|
151
149
|
const pinnedTokens = pinnedItems.reduce((s, b) => s + b.tokens, 0);
|
|
152
|
-
//
|
|
150
|
+
// S (system+tools) is non-evictable — reserve it in the harder-eviction
|
|
153
151
|
// budget so history is evicted against the room that ACTUALLY remains.
|
|
154
152
|
const tighterBudget = Math.max(0, headroomBound - systemTokens - pinnedTokens - freshTailTokens);
|
|
155
153
|
const hardEvictedMsgs = evictHistoryUnderBudget(nonPinnedItems, tighterBudget);
|
|
@@ -194,7 +192,7 @@ export function runPreflightFitCheck(deps, effectiveWindow, evictable, keptCount
|
|
|
194
192
|
const finalHeadroom = computeOutputHeadroom(reasoningStyle, effectiveThinkingLevel, minVisibleFloor);
|
|
195
193
|
const finalBound = effectiveWindow - finalHeadroom;
|
|
196
194
|
if (assembledInputTokens > finalBound) {
|
|
197
|
-
//
|
|
195
|
+
// Classify WHY. A single item whose tokens alone (on top of the
|
|
198
196
|
// non-evictable S) exceed the bound is an oversized-MESSAGE failure —
|
|
199
197
|
// eviction/narrowing other content can never fix it, so the generic
|
|
200
198
|
// "narrow the ask" advice would mislead. Distinguish the current input
|
|
@@ -202,10 +200,10 @@ export function runPreflightFitCheck(deps, effectiveWindow, evictable, keptCount
|
|
|
202
200
|
// actionable) from an earlier message (only a session reset helps).
|
|
203
201
|
// Everything else is the historical aggregate overflow.
|
|
204
202
|
//
|
|
205
|
-
//
|
|
203
|
+
// The FIXED overhead S (system prompt + tool
|
|
206
204
|
// schemas) is NON-EVICTABLE. When S alone exceeds the bound, the turn is
|
|
207
205
|
// infeasible regardless of history/thinking/message — so this must be
|
|
208
|
-
// classified FIRST, before the message/history branches.
|
|
206
|
+
// classified FIRST, before the message/history branches. Otherwise it falls
|
|
209
207
|
// through to oversized_input because `singleItemBound = finalBound − S`
|
|
210
208
|
// goes NEGATIVE (any message token count > a negative number), producing
|
|
211
209
|
// the misleading "your message alone is larger than this model's context
|
|
@@ -213,13 +211,13 @@ export function runPreflightFitCheck(deps, effectiveWindow, evictable, keptCount
|
|
|
213
211
|
// is the WINDOW or the agent's tool/prompt footprint — never the message.
|
|
214
212
|
const singleItemBound = finalBound - systemTokens;
|
|
215
213
|
const lastUserIdx = findLastUserIndex(freshTail);
|
|
216
|
-
//
|
|
217
|
-
// evictable remains
|
|
214
|
+
// When history is FULLY evicted (keptCount==0 and nothing
|
|
215
|
+
// evictable remains) and the protected fresh tail is the SOLE
|
|
218
216
|
// overflow, "aggregate" misleads: the remedy is to shrink the user's input, not to
|
|
219
217
|
// reset a (now-empty) conversation. Reclassify as oversized_input when the LAST
|
|
220
218
|
// user message DOMINATES the fresh-tail tokens (> half) — distinguishing "one large
|
|
221
219
|
// current message (+ a tiny recent turn)" from a genuine many-comparable-messages
|
|
222
|
-
// aggregate (
|
|
220
|
+
// aggregate (e.g. a ~2000-tok message
|
|
223
221
|
// just under the single-item bound + a small prior turn). The dominance test keeps
|
|
224
222
|
// the existing aggregate case (5 comparable messages, each ~20% of the sum) intact.
|
|
225
223
|
const lastUserTokens = lastUserIdx >= 0 ? (freshTailMsgTokens[lastUserIdx] ?? 0) : 0;
|
|
@@ -259,13 +257,13 @@ export function runPreflightFitCheck(deps, effectiveWindow, evictable, keptCount
|
|
|
259
257
|
throw new ContextExhaustionError(effectiveWindow, assembledInputTokens, capInfo, cause);
|
|
260
258
|
}
|
|
261
259
|
}
|
|
262
|
-
//
|
|
260
|
+
// Always report the ORIGINAL assembled count (what is actually dispatched).
|
|
263
261
|
// The simulated harder-eviction in step (a) only measures feasibility; it does NOT
|
|
264
262
|
// change the actual context array dispatched (that is built from `repaired` in
|
|
265
263
|
// lcd-assembler.ts). Reporting the simulated count would give config-resolver a
|
|
266
264
|
// stale undercount → dynamicMax set too high → silent LLM truncation.
|
|
267
265
|
deps.onAssembledInputTokens?.(originalAssembledInputTokens);
|
|
268
|
-
//
|
|
266
|
+
// The non-throw outcomes. `outputHeadroom` holds the downshifted value when
|
|
269
267
|
// the governor fired (the loop reassigns it), so the event reports the headroom
|
|
270
268
|
// the dispatch will actually run with.
|
|
271
269
|
emitBudgetComputed(governorFired ? "downshifted" : "fits", originalAssembledInputTokens, outputHeadroom);
|
|
@@ -2,37 +2,36 @@
|
|
|
2
2
|
* Summary-ref rendering for the dag assembler — extracted VERBATIM from
|
|
3
3
|
* `lcd-assembler.ts` (file-size cap, ≤800 lines) so the assembler keeps only
|
|
4
4
|
* resolve/assemble flow. {@link summaryRefToMessage} stays the ONE resolution
|
|
5
|
-
* point
|
|
6
|
-
* caller.
|
|
5
|
+
* point; the assembler's `resolveContextItem` is its sole caller.
|
|
7
6
|
*
|
|
8
7
|
* @module
|
|
9
8
|
*/
|
|
10
9
|
import type { LcdSummary } from "@comis/core";
|
|
11
10
|
import type { AgentMessage } from "@earendil-works/pi-agent-core";
|
|
12
11
|
/**
|
|
13
|
-
* Render a summary as an HONEST, TAINT-SAFE `user`-role message
|
|
14
|
-
* seam
|
|
12
|
+
* Render a summary as an HONEST, TAINT-SAFE `user`-role message — the ONE
|
|
13
|
+
* resolution seam for summary refs (never a plain-text passthrough).
|
|
15
14
|
*
|
|
16
15
|
* The honesty markers (depth / descendant_count / ISO time-range / trust, plus
|
|
17
|
-
*
|
|
16
|
+
* `fallback=emergency-truncation` when `summary.fallback`) are computed from
|
|
18
17
|
* the STORE ROW (`summary.depth`/`descendantCount`/`earliestAt`/`latestAt`/
|
|
19
18
|
* `fallback`), NEVER parsed from `content`, and placed in the TRUSTED header +
|
|
20
19
|
* footer OUTSIDE the `wrapExternalContent` untrusted region. A poisoned summary
|
|
21
20
|
* body therefore cannot forge them: the per-session random hex delimiter is
|
|
22
21
|
* unpredictable, and `replaceMarkers` neutralizes any injected `<<<UNTRUSTED_…>>>`
|
|
23
|
-
* / `<<<END_UNTRUSTED_…>>>` marker the content tries to smuggle in (
|
|
22
|
+
* / `<<<END_UNTRUSTED_…>>>` marker the content tries to smuggle in (test-proven:
|
|
24
23
|
* a body forging `trust=trusted` / `fallback=emergency-truncation` + a fake
|
|
25
24
|
* end-delimiter still renders the real `trust=untrusted` + the real fallback flag
|
|
26
25
|
* and the forged delimiter collapses to `[[END_MARKER_SANITIZED]]`).
|
|
27
26
|
*
|
|
28
|
-
* Role stays `"user"` — the documented ceiling
|
|
27
|
+
* Role stays `"user"` — the documented ceiling: a summary derived from
|
|
29
28
|
* possibly-untrusted history is carried untrusted-by-role, NEVER `system`/
|
|
30
29
|
* `assistant`. The body is wrapped via `wrapExternalContent` (the AGENTS.md §2.2
|
|
31
30
|
* taint primitive) rather than hand-rolled XML escaping.
|
|
32
31
|
*
|
|
33
32
|
* The expand footer is an honest ADVERTISEMENT of WHAT was compressed (depth +
|
|
34
|
-
* count + time-range);
|
|
35
|
-
*
|
|
36
|
-
* point so future swaps touch one function.
|
|
33
|
+
* count + time-range); it deliberately does NOT name the recovery TOOLS
|
|
34
|
+
* (`ctx_*`) — their descriptions own that surface. Keep this the single
|
|
35
|
+
* resolution point so future swaps touch one function.
|
|
37
36
|
*/
|
|
38
37
|
export declare function summaryRefToMessage(summary: LcdSummary): AgentMessage;
|
|
@@ -2,42 +2,41 @@
|
|
|
2
2
|
* Summary-ref rendering for the dag assembler — extracted VERBATIM from
|
|
3
3
|
* `lcd-assembler.ts` (file-size cap, ≤800 lines) so the assembler keeps only
|
|
4
4
|
* resolve/assemble flow. {@link summaryRefToMessage} stays the ONE resolution
|
|
5
|
-
* point
|
|
6
|
-
* caller.
|
|
5
|
+
* point; the assembler's `resolveContextItem` is its sole caller.
|
|
7
6
|
*
|
|
8
7
|
* @module
|
|
9
8
|
*/
|
|
10
9
|
import { scrubSecretsFromText, systemDateFrom, wrapExternalContent } from "@comis/core";
|
|
11
10
|
import { LCD_FALLBACK_HEADER_MARKER } from "./constants.js";
|
|
12
11
|
/**
|
|
13
|
-
* Render a summary as an HONEST, TAINT-SAFE `user`-role message
|
|
14
|
-
* seam
|
|
12
|
+
* Render a summary as an HONEST, TAINT-SAFE `user`-role message — the ONE
|
|
13
|
+
* resolution seam for summary refs (never a plain-text passthrough).
|
|
15
14
|
*
|
|
16
15
|
* The honesty markers (depth / descendant_count / ISO time-range / trust, plus
|
|
17
|
-
*
|
|
16
|
+
* `fallback=emergency-truncation` when `summary.fallback`) are computed from
|
|
18
17
|
* the STORE ROW (`summary.depth`/`descendantCount`/`earliestAt`/`latestAt`/
|
|
19
18
|
* `fallback`), NEVER parsed from `content`, and placed in the TRUSTED header +
|
|
20
19
|
* footer OUTSIDE the `wrapExternalContent` untrusted region. A poisoned summary
|
|
21
20
|
* body therefore cannot forge them: the per-session random hex delimiter is
|
|
22
21
|
* unpredictable, and `replaceMarkers` neutralizes any injected `<<<UNTRUSTED_…>>>`
|
|
23
|
-
* / `<<<END_UNTRUSTED_…>>>` marker the content tries to smuggle in (
|
|
22
|
+
* / `<<<END_UNTRUSTED_…>>>` marker the content tries to smuggle in (test-proven:
|
|
24
23
|
* a body forging `trust=trusted` / `fallback=emergency-truncation` + a fake
|
|
25
24
|
* end-delimiter still renders the real `trust=untrusted` + the real fallback flag
|
|
26
25
|
* and the forged delimiter collapses to `[[END_MARKER_SANITIZED]]`).
|
|
27
26
|
*
|
|
28
|
-
* Role stays `"user"` — the documented ceiling
|
|
27
|
+
* Role stays `"user"` — the documented ceiling: a summary derived from
|
|
29
28
|
* possibly-untrusted history is carried untrusted-by-role, NEVER `system`/
|
|
30
29
|
* `assistant`. The body is wrapped via `wrapExternalContent` (the AGENTS.md §2.2
|
|
31
30
|
* taint primitive) rather than hand-rolled XML escaping.
|
|
32
31
|
*
|
|
33
32
|
* The expand footer is an honest ADVERTISEMENT of WHAT was compressed (depth +
|
|
34
|
-
* count + time-range);
|
|
35
|
-
*
|
|
36
|
-
* point so future swaps touch one function.
|
|
33
|
+
* count + time-range); it deliberately does NOT name the recovery TOOLS
|
|
34
|
+
* (`ctx_*`) — their descriptions own that surface. Keep this the single
|
|
35
|
+
* resolution point so future swaps touch one function.
|
|
37
36
|
*/
|
|
38
37
|
export function summaryRefToMessage(summary) {
|
|
39
38
|
// `trust` is ALWAYS "untrusted" (the row is untrusted-by-derivation; the value
|
|
40
|
-
// is derived, never widened to "trusted").
|
|
39
|
+
// is derived, never widened to "trusted"). When the row's
|
|
41
40
|
// `fallback` flag is set — the breaker/spend-cap bypass or the deterministic
|
|
42
41
|
// Level-3 floor produced this summary with NO LLM — append the unspoofable
|
|
43
42
|
// `LCD_FALLBACK_HEADER_MARKER` so the model is honestly told the summary is a
|
|
@@ -54,13 +53,13 @@ export function summaryRefToMessage(summary) {
|
|
|
54
53
|
`${range}, trust=${trust}${fallbackMarker}]`;
|
|
55
54
|
// The body is UNTRUSTED — scrub secrets, THEN wrap it. `source: "unknown"`
|
|
56
55
|
// (label "External") is the generic untrusted-text source; the
|
|
57
|
-
// `ExternalContentSource` union has no `lcd_summary` label and
|
|
58
|
-
// edit the core security enum. The honesty markers live OUTSIDE
|
|
59
|
-
// region (the trusted header/footer), so no `includeWarning` wall
|
|
60
|
-
// summary — the header + the
|
|
56
|
+
// `ExternalContentSource` union has no `lcd_summary` label and this rendering
|
|
57
|
+
// layer does not edit the core security enum. The honesty markers live OUTSIDE
|
|
58
|
+
// this wrapped region (the trusted header/footer), so no `includeWarning` wall
|
|
59
|
+
// is needed per summary — the header + the system-prompt clause carry the policy.
|
|
61
60
|
//
|
|
62
|
-
// Egress scrub
|
|
63
|
-
// contain a credential (the
|
|
61
|
+
// Egress scrub: a summary is DERIVED from a region that can legitimately
|
|
62
|
+
// contain a credential (the lossless base store keeps the raw conversation). The
|
|
64
63
|
// summary re-enters the model context every turn it is assembled, so the derived
|
|
65
64
|
// body must never carry the secret verbatim — scrub this egress copy (the base
|
|
66
65
|
// store stays lossless), mirroring the ctx_expand / ctx_search egress scrub.
|