mixdog 0.9.63 → 0.9.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/package.json +9 -2
- package/scripts/code-graph-description-contract.mjs +3 -3
- package/scripts/verify-release-assets.mjs +2 -2
- package/src/runtime/agent/orchestrator/agent-runtime/agent-dispatch.mjs +11 -14
- package/src/runtime/agent/orchestrator/agent-runtime/agent-progress-watchdog.mjs +6 -6
- package/src/runtime/agent/orchestrator/agent-runtime/cache-strategy.mjs +2 -2
- package/src/runtime/agent/orchestrator/agent-trace-format.mjs +1 -0
- package/src/runtime/agent/orchestrator/config.mjs +19 -124
- package/src/runtime/agent/orchestrator/context/collect.mjs +6 -6
- package/src/runtime/agent/orchestrator/dispatch-persist.mjs +2 -2
- package/src/runtime/agent/orchestrator/internal-agents.mjs +2 -2
- package/src/runtime/agent/orchestrator/mcp/child-tree.mjs +1 -1
- package/src/runtime/agent/orchestrator/mcp/client.mjs +4 -4
- package/src/runtime/agent/orchestrator/providers/admission-scheduler.mjs +2 -2
- package/src/runtime/agent/orchestrator/providers/anthropic-betas.mjs +4 -4
- package/src/runtime/agent/orchestrator/providers/anthropic-effort.mjs +2 -2
- package/src/runtime/agent/orchestrator/providers/anthropic-max-tokens.mjs +4 -4
- package/src/runtime/agent/orchestrator/providers/anthropic-messages.mjs +333 -0
- package/src/runtime/agent/orchestrator/providers/anthropic-model-resolve.mjs +2 -2
- package/src/runtime/agent/orchestrator/providers/anthropic-oauth-credentials.mjs +4 -4
- package/src/runtime/agent/orchestrator/providers/anthropic-oauth.mjs +1 -1
- package/src/runtime/agent/orchestrator/providers/anthropic.mjs +3 -277
- package/src/runtime/agent/orchestrator/providers/codex-client-meta.mjs +2 -2
- package/src/runtime/agent/orchestrator/providers/custom-tool-wire.mjs +1 -1
- package/src/runtime/agent/orchestrator/providers/gemini-cache.mjs +2 -2
- package/src/runtime/agent/orchestrator/providers/gemini-stream.mjs +6 -6
- package/src/runtime/agent/orchestrator/providers/grok-oauth-login.mjs +196 -0
- package/src/runtime/agent/orchestrator/providers/grok-oauth-tokens.mjs +460 -0
- package/src/runtime/agent/orchestrator/providers/grok-oauth.mjs +14 -593
- package/src/runtime/agent/orchestrator/providers/lib/anthropic-request-utils.mjs +1 -1
- package/src/runtime/agent/orchestrator/providers/media-normalization.mjs +1 -1
- package/src/runtime/agent/orchestrator/providers/openai-compat-wire.mjs +1 -1
- package/src/runtime/agent/orchestrator/providers/openai-compat-xai.mjs +4 -4
- package/src/runtime/agent/orchestrator/providers/openai-oauth-ws.mjs +2 -2
- package/src/runtime/agent/orchestrator/providers/openai-oauth.mjs +5 -280
- package/src/runtime/agent/orchestrator/providers/openai-responses-payload.mjs +357 -0
- package/src/runtime/agent/orchestrator/providers/openai-ws-headers.mjs +216 -0
- package/src/runtime/agent/orchestrator/providers/openai-ws-pool.mjs +2 -188
- package/src/runtime/agent/orchestrator/providers/openai-ws-stream.mjs +2 -2
- package/src/runtime/agent/orchestrator/providers/openai-ws.mjs +2 -2
- package/src/runtime/agent/orchestrator/providers/opencode-go.mjs +1 -1
- package/src/runtime/agent/orchestrator/providers/provider-catalog-cache.mjs +1 -1
- package/src/runtime/agent/orchestrator/providers/registry.mjs +1 -1
- package/src/runtime/agent/orchestrator/providers/retry-classifier.mjs +2 -2
- package/src/runtime/agent/orchestrator/providers/statusline-route-meta.mjs +1 -1
- package/src/runtime/agent/orchestrator/session/cache/prefetch-cache.mjs +1 -1
- package/src/runtime/agent/orchestrator/session/cache/scoped-cache.mjs +3 -3
- package/src/runtime/agent/orchestrator/session/compact/budget.mjs +2 -2
- package/src/runtime/agent/orchestrator/session/compact/file-reattach.mjs +2 -2
- package/src/runtime/agent/orchestrator/session/compact/summary-schema.mjs +1 -1
- package/src/runtime/agent/orchestrator/session/compact/summary.mjs +1 -1
- package/src/runtime/agent/orchestrator/session/compact/text-utils.mjs +2 -2
- package/src/runtime/agent/orchestrator/session/context-utils.mjs +4 -4
- package/src/runtime/agent/orchestrator/session/loop/deferred-call-through.mjs +1 -1
- package/src/runtime/agent/orchestrator/session/loop/pre-dispatch-deny.mjs +17 -0
- package/src/runtime/agent/orchestrator/session/loop/steering.mjs +1 -1
- package/src/runtime/agent/orchestrator/session/loop/stored-tool-args.mjs +18 -26
- package/src/runtime/agent/orchestrator/session/loop/termination.mjs +1 -1
- package/src/runtime/agent/orchestrator/session/loop/tool-classify.mjs +3 -3
- package/src/runtime/agent/orchestrator/session/manager/compaction-runner.mjs +1 -0
- package/src/runtime/agent/orchestrator/session/manager/context-meta.mjs +1 -1
- package/src/runtime/agent/orchestrator/session/manager/delivered-completions.mjs +1 -1
- package/src/runtime/agent/orchestrator/session/manager/status-telemetry.mjs +1 -1
- package/src/runtime/agent/orchestrator/session/store/live-state.mjs +49 -0
- package/src/runtime/agent/orchestrator/session/store/load-cache.mjs +49 -0
- package/src/runtime/agent/orchestrator/session/store/save-worker.mjs +260 -0
- package/src/runtime/agent/orchestrator/session/store/serialize.mjs +72 -0
- package/src/runtime/agent/orchestrator/session/store/summary-cache.mjs +163 -0
- package/src/runtime/agent/orchestrator/session/store/write-guards.mjs +1 -1
- package/src/runtime/agent/orchestrator/session/store-summary-index.mjs +1 -1
- package/src/runtime/agent/orchestrator/session/store-summary-reader.mjs +4 -1
- package/src/runtime/agent/orchestrator/session/store.mjs +9 -561
- package/src/runtime/agent/orchestrator/session/tool-envelope.mjs +1 -1
- package/src/runtime/agent/orchestrator/session/tool-result-offload.mjs +2 -2
- package/src/runtime/agent/orchestrator/stall-policy.mjs +11 -11
- package/src/runtime/agent/orchestrator/tools/bash-policy-scan.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/bash-session.mjs +2 -2
- package/src/runtime/agent/orchestrator/tools/builtin/advisory-lock.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/builtin/arg-guard.mjs +2 -2
- package/src/runtime/agent/orchestrator/tools/builtin/atomic-write.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/builtin/bash-tool.mjs +2 -154
- package/src/runtime/agent/orchestrator/tools/builtin/cache-layers.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/builtin/cwd-utils.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/builtin/fs-reachability.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/builtin/fuzzy-match.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/builtin/glob-walk.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/builtin/path-locks.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/builtin/path-utils.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/builtin/read-args.mjs +2 -2
- package/src/runtime/agent/orchestrator/tools/builtin/read-formatting.mjs +2 -3
- package/src/runtime/agent/orchestrator/tools/builtin/read-image-resize.mjs +4 -4
- package/src/runtime/agent/orchestrator/tools/builtin/read-open.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/builtin/read-streaming.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/builtin/rg-runner.mjs +2 -2
- package/src/runtime/agent/orchestrator/tools/builtin/search-path-diagnostics.mjs +5 -5
- package/src/runtime/agent/orchestrator/tools/builtin/shell-analysis.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/builtin/shell-job-paths.mjs +2 -2
- package/src/runtime/agent/orchestrator/tools/builtin/shell-job-process.mjs +2 -2
- package/src/runtime/agent/orchestrator/tools/builtin/shell-job-spawn.mjs +519 -0
- package/src/runtime/agent/orchestrator/tools/builtin/shell-jobs.mjs +5 -449
- package/src/runtime/agent/orchestrator/tools/builtin/snapshot-helpers.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/builtin/task-tool.mjs +212 -0
- package/src/runtime/agent/orchestrator/tools/builtin.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/code-graph/build.mjs +1 -7
- package/src/runtime/agent/orchestrator/tools/code-graph/disk-cache.mjs +9 -36
- package/src/runtime/agent/orchestrator/tools/code-graph/dispatch.mjs +15 -3
- package/src/runtime/agent/orchestrator/tools/code-graph/search-references.mjs +429 -0
- package/src/runtime/agent/orchestrator/tools/code-graph/search.mjs +2 -395
- package/src/runtime/agent/orchestrator/tools/code-graph/symbol-index.mjs +2 -2
- package/src/runtime/agent/orchestrator/tools/code-graph/text-mask.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/code-graph/trusted-roots.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/code-graph-prewarm-worker.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/code-graph-state.mjs +3 -3
- package/src/runtime/agent/orchestrator/tools/mutation-planner.mjs +5 -5
- package/src/runtime/agent/orchestrator/tools/next-call-utils.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/patch/dispatch.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/patch/matcher.mjs +7 -7
- package/src/runtime/agent/orchestrator/tools/patch/orchestrator.mjs +72 -9
- package/src/runtime/agent/orchestrator/tools/patch/parsing.mjs +4 -4
- package/src/runtime/agent/orchestrator/tools/patch/paths.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/patch/v4a-convert.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/patch-tool-defs.mjs +4 -4
- package/src/runtime/agent/orchestrator/tools/patch.mjs +1 -1
- package/src/runtime/agent/orchestrator/tools/result-compression.mjs +3 -3
- package/src/runtime/agent/orchestrator/tools/shell-command.mjs +2 -444
- package/src/runtime/agent/orchestrator/tools/shell-exec-output.mjs +505 -0
- package/src/runtime/agent/orchestrator/tools/shell-exec-policy.mjs +2 -2
- package/src/runtime/agent/orchestrator/tools/shell-snapshot.mjs +1 -1
- package/src/runtime/channels/lib/backend-dispatch.mjs +20 -5
- package/src/runtime/channels/lib/scheduler.mjs +1 -1
- package/src/runtime/channels/lib/telegram-format.mjs +1 -1
- package/src/runtime/channels/lib/voice-runtime-fetcher.mjs +4 -4
- package/src/runtime/channels/tool-defs.mjs +2 -3
- package/src/runtime/memory/index.mjs +1 -5
- package/src/runtime/memory/lib/core-memory-candidates.mjs +357 -0
- package/src/runtime/memory/lib/core-memory-store.mjs +7 -357
- package/src/runtime/memory/lib/cycle-signatures.mjs +1 -1
- package/src/runtime/memory/lib/embedding-model-config.mjs +1 -1
- package/src/runtime/memory/lib/embedding-provider.mjs +1 -5
- package/src/runtime/memory/lib/embedding-worker.mjs +1 -5
- package/src/runtime/memory/lib/ko-morph.mjs +2 -2
- package/src/runtime/memory/lib/memory-config-flags.mjs +2 -5
- package/src/runtime/memory/lib/memory-cycle-requests.mjs +3 -7
- package/src/runtime/memory/lib/memory-cycle1.mjs +4 -8
- package/src/runtime/memory/lib/memory-cycle2-gate.mjs +1 -1
- package/src/runtime/memory/lib/memory-cycle2-mutations.mjs +1 -1
- package/src/runtime/memory/lib/memory-cycle2-shared.mjs +2 -5
- package/src/runtime/memory/lib/memory-cycle3.mjs +1 -5
- package/src/runtime/memory/lib/memory-embed.mjs +2 -6
- package/src/runtime/memory/lib/memory-log.mjs +8 -0
- package/src/runtime/memory/lib/memory-ops-policy.mjs +4 -8
- package/src/runtime/memory/lib/memory-recall-scope-filter.mjs +1 -1
- package/src/runtime/memory/lib/memory-recall-store.mjs +2 -193
- package/src/runtime/memory/lib/memory-score.mjs +1 -1
- package/src/runtime/memory/lib/memory-text-utils.mjs +2 -2
- package/src/runtime/memory/lib/memory.mjs +2 -6
- package/src/runtime/memory/lib/pg/adapter.mjs +2 -6
- package/src/runtime/memory/lib/pg/process.mjs +1 -5
- package/src/runtime/memory/lib/pg/supervisor.mjs +1 -5
- package/src/runtime/memory/lib/recall-format.mjs +2 -2
- package/src/runtime/memory/lib/recall-scoring.mjs +195 -0
- package/src/runtime/memory/lib/runtime-fetcher.mjs +1 -5
- package/src/runtime/memory/lib/trace-store.mjs +2 -6
- package/src/runtime/search/lib/http-fetch.mjs +6 -6
- package/src/runtime/search/lib/web-tools.mjs +2 -2
- package/src/runtime/shared/buffered-appender.mjs +1 -1
- package/src/runtime/shared/child-guardian.mjs +1 -1
- package/src/runtime/shared/child-spawn-gate.mjs +1 -1
- package/src/runtime/shared/config.mjs +4 -4
- package/src/runtime/shared/launcher-control.mjs +9 -10
- package/src/runtime/shared/llm/index.mjs +5 -20
- package/src/runtime/shared/markdown-frontmatter.mjs +1 -1
- package/src/runtime/shared/memory-snapshot.mjs +4 -4
- package/src/runtime/shared/pristine-execution.mjs +1 -1
- package/src/runtime/shared/process-lifecycle.mjs +0 -1
- package/src/runtime/shared/process-shutdown.mjs +1 -1
- package/src/runtime/shared/resource-admission.mjs +2 -2
- package/src/runtime/shared/schedule-session-run.mjs +1 -1
- package/src/runtime/shared/schedules-db.mjs +1 -1
- package/src/runtime/shared/service-discovery.mjs +2 -2
- package/src/runtime/shared/staged-update.mjs +6 -6
- package/src/runtime/shared/tool-execution-contract.mjs +1 -1
- package/src/runtime/shared/tool-primitives.mjs +1 -1
- package/src/runtime/shared/tool-surface.mjs +2 -2
- package/src/runtime/shared/update-checker.mjs +1 -1
- package/src/runtime/shared/user-cwd.mjs +3 -3
- package/src/runtime/shared/user-data-guard.mjs +4 -4
- package/src/runtime/shared/workspace-router.mjs +5 -5
- package/src/session-runtime/config-helpers.mjs +2 -3
- package/src/session-runtime/config-lifecycle.mjs +1 -1
- package/src/session-runtime/hitch-profile.mjs +1 -1
- package/src/session-runtime/lifecycle-api.mjs +6 -4
- package/src/session-runtime/model-recency.mjs +5 -5
- package/src/session-runtime/plugin-mcp.mjs +1 -1
- package/src/session-runtime/provider-request-snapshot.mjs +338 -0
- package/src/session-runtime/session-text.mjs +4 -4
- package/src/session-runtime/tool-catalog-schema.mjs +197 -0
- package/src/session-runtime/tool-catalog.mjs +6 -483
- package/src/session-runtime/tool-defs.mjs +1 -1
- package/src/standalone/agent-task-status.mjs +1 -1
- package/src/standalone/agent-tool/helpers.mjs +2 -2
- package/src/standalone/channel-admin.mjs +4 -4
- package/src/standalone/explore-tool.mjs +3 -3
- package/src/standalone/hook-bus/config.mjs +1 -1
- package/src/standalone/hook-bus/constants.mjs +1 -1
- package/src/standalone/hook-bus/rules.mjs +1 -1
- package/src/standalone/projects.mjs +1 -1
- package/src/standalone/provider-admin.mjs +2 -2
- package/src/tui/app/app-format.mjs +2 -2
- package/src/tui/app/clipboard.mjs +3 -3
- package/src/tui/app/input-parsers.mjs +1 -1
- package/src/tui/app/text-layout.mjs +1 -1
- package/src/tui/app/transcript-row-estimate.mjs +360 -0
- package/src/tui/app/transcript-window.mjs +5 -347
- package/src/tui/app/use-mouse-input.mjs +1 -1
- package/src/tui/app/use-prompt-handlers.mjs +1 -1
- package/src/tui/components/tool-execution/surface-detail.mjs +9 -9
- package/src/tui/components/tool-execution/text-format.mjs +2 -2
- package/src/tui/components/tool-output-format.mjs +7 -7
- package/src/tui/display-width.mjs +4 -4
- package/src/tui/dist/index.mjs +63 -97
- package/src/tui/engine/agent-envelope.mjs +5 -5
- package/src/tui/engine/notification-plan.mjs +1 -1
- package/src/tui/engine/queue-helpers.mjs +3 -3
- package/src/tui/engine/render-timing.mjs +4 -5
- package/src/tui/engine/session-api-ext.mjs +3 -3
- package/src/tui/engine/tool-result-status.mjs +5 -5
- package/src/tui/engine/tool-result-text.mjs +1 -1
- package/src/tui/engine/transcript-spill.mjs +585 -0
- package/src/tui/engine/tui-steering-persist.mjs +1 -1
- package/src/tui/engine.mjs +2 -474
- package/src/tui/lib/voice-setup.mjs +1 -1
- package/src/tui/markdown/format-token.mjs +1 -1
- package/src/tui/markdown/render-ansi.mjs +1 -1
- package/src/tui/markdown/table-layout.mjs +4 -4
- package/src/tui/paste-attachments.mjs +1 -1
- package/src/tui/prompt-history-store.mjs +3 -3
- package/src/tui/statusline-ansi-bridge.mjs +2 -2
- package/src/tui/theme.mjs +1 -1
- package/src/tui/transcript-tool-failures.mjs +2 -2
- package/src/ui/ansi.mjs +0 -9
- package/src/ui/statusline-format.mjs +2 -4
- package/scripts/_bench-cwc.json +0 -20
- package/scripts/_jitter-fuzz.jsx +0 -42
- package/scripts/_jitter-fuzz2.jsx +0 -30
- package/scripts/_jitter-probe.jsx +0 -35
- package/scripts/_jp2.jsx +0 -16
- package/scripts/_smoke_wd.mjs +0 -7
- package/scripts/abort-recovery-test.mjs +0 -175
- package/scripts/agent-dispatch-abort-compose-test.mjs +0 -31
- package/scripts/agent-live-arg-guard-smoke.mjs +0 -20
- package/scripts/agent-live-path-suffix-smoke.mjs +0 -34
- package/scripts/agent-live-toolcall-args-smoke.mjs +0 -45
- package/scripts/agent-loop-policy-test.mjs +0 -37
- package/scripts/agent-model-liveness-test.mjs +0 -763
- package/scripts/agent-parallel-smoke.mjs +0 -435
- package/scripts/agent-route-batch-test.mjs +0 -40
- package/scripts/agent-tag-reuse-smoke.mjs +0 -441
- package/scripts/agent-terminal-reap-test.mjs +0 -252
- package/scripts/agent-trace-io-test.mjs +0 -133
- package/scripts/ansi-color-capability-test.mjs +0 -90
- package/scripts/anthropic-admission-retry-integration-test.mjs +0 -119
- package/scripts/anthropic-maxtokens-test.mjs +0 -119
- package/scripts/anthropic-oauth-refresh-race-test.mjs +0 -397
- package/scripts/anthropic-transport-policy-test.mjs +0 -726
- package/scripts/apply-patch-edit-smoke.mjs +0 -71
- package/scripts/arg-guard-test.mjs +0 -93
- package/scripts/async-notify-settlement-test.mjs +0 -99
- package/scripts/atomic-lock-tryonce-test.mjs +0 -125
- package/scripts/background-task-meta-smoke.mjs +0 -38
- package/scripts/bench-run.mjs +0 -508
- package/scripts/boot-smoke.mjs +0 -137
- package/scripts/build-runtime-windows.ps1 +0 -242
- package/scripts/channel-daemon-smoke.mjs +0 -1103
- package/scripts/code-graph-aggregate-cwd-test.mjs +0 -158
- package/scripts/code-graph-disk-hit-test.mjs +0 -290
- package/scripts/code-graph-dispatch-test.mjs +0 -96
- package/scripts/code-graph-root-federation-test.mjs +0 -273
- package/scripts/compact-active-turn-test.mjs +0 -68
- package/scripts/compact-file-reattach-test.mjs +0 -88
- package/scripts/compact-pressure-test.mjs +0 -788
- package/scripts/compact-prior-context-flatten-test.mjs +0 -252
- package/scripts/compact-recall-digest-test.mjs +0 -57
- package/scripts/compact-smoke.mjs +0 -1017
- package/scripts/compact-trigger-migration-smoke.mjs +0 -261
- package/scripts/compacted-placeholder-scrub-test.mjs +0 -63
- package/scripts/context-mcp-metering-test.mjs +0 -1406
- package/scripts/debounced-skills-async-save-test.mjs +0 -57
- package/scripts/deferred-tool-loading-test.mjs +0 -250
- package/scripts/desktop-session-bridge-test.mjs +0 -1013
- package/scripts/dispatch-persist-recovery-test.mjs +0 -141
- package/scripts/embedding-worker-exit-test.mjs +0 -76
- package/scripts/execution-completion-dedup-test.mjs +0 -205
- package/scripts/execution-pending-resume-kick-test.mjs +0 -151
- package/scripts/execution-resume-esc-integration-test.mjs +0 -176
- package/scripts/explore-bench-tmp.mjs +0 -36
- package/scripts/explore-bench.mjs +0 -248
- package/scripts/explore-prompt-policy-test.mjs +0 -256
- package/scripts/explore-timeout-cancel-test.mjs +0 -345
- package/scripts/find-fuzzy-hidden-test.mjs +0 -267
- package/scripts/forwarder-rebind-tail-test.mjs +0 -67
- package/scripts/freevar-smoke.mjs +0 -98
- package/scripts/gemini-provider-test.mjs +0 -1448
- package/scripts/generate-oc-icons.mjs +0 -11
- package/scripts/grok-oauth-refresh-race-test.mjs +0 -273
- package/scripts/headless-pristine-execution-test.mjs +0 -614
- package/scripts/hook-bus-test.mjs +0 -552
- package/scripts/ingest-pure-conversation-smoke.mjs +0 -175
- package/scripts/internal-comms-bench-test.mjs +0 -226
- package/scripts/internal-comms-bench.mjs +0 -853
- package/scripts/internal-comms-smoke.mjs +0 -277
- package/scripts/internal-tools-normalization-test.mjs +0 -62
- package/scripts/interrupted-turn-history-test.mjs +0 -399
- package/scripts/lead-workflow-smoke.mjs +0 -592
- package/scripts/lifecycle-api-test.mjs +0 -137
- package/scripts/live-share-test.mjs +0 -148
- package/scripts/live-worker-smoke.mjs +0 -333
- package/scripts/log-writer-guard-smoke.mjs +0 -131
- package/scripts/maintenance-default-routes-test.mjs +0 -164
- package/scripts/max-output-recovery-persist-test.mjs +0 -81
- package/scripts/max-output-recovery-test.mjs +0 -368
- package/scripts/mcp-client-normalization-test.mjs +0 -45
- package/scripts/mcp-grace-deferred-test.mjs +0 -225
- package/scripts/memory-core-input-test.mjs +0 -167
- package/scripts/memory-cycle-routing-test.mjs +0 -111
- package/scripts/memory-meta-concurrency-test.mjs +0 -20
- package/scripts/memory-pg-recovery-test.mjs +0 -59
- package/scripts/memory-rule-contract-test.mjs +0 -93
- package/scripts/model-list-sanitize-test.mjs +0 -37
- package/scripts/mouse-tracking-restore-smoke.mjs +0 -107
- package/scripts/native-edit-wire-test.mjs +0 -152
- package/scripts/notify-completion-mirror-test.mjs +0 -73
- package/scripts/openai-oauth-refresh-race-test.mjs +0 -120
- package/scripts/openai-oauth-ws-1006-retry-test.mjs +0 -954
- package/scripts/openai-ws-early-settle-test.mjs +0 -216
- package/scripts/output-style-bench.mjs +0 -292
- package/scripts/output-style-smoke.mjs +0 -145
- package/scripts/parent-abort-link-test.mjs +0 -90
- package/scripts/patch-binary-cache-test.mjs +0 -181
- package/scripts/path-suffix-test.mjs +0 -57
- package/scripts/pending-completion-drop-test.mjs +0 -239
- package/scripts/pending-messages-lock-nonblocking-test.mjs +0 -62
- package/scripts/pretool-ask-runtime-test.mjs +0 -54
- package/scripts/process-lifecycle-test.mjs +0 -461
- package/scripts/prompt-immediate-render-test.mjs +0 -89
- package/scripts/prompt-input-parity-test.mjs +0 -145
- package/scripts/provider-admission-scheduler-test.mjs +0 -681
- package/scripts/provider-contract-test.mjs +0 -632
- package/scripts/provider-stream-stall-test.mjs +0 -276
- package/scripts/provider-toolcall-test.mjs +0 -3063
- package/scripts/reactive-compact-persist-smoke.mjs +0 -203
- package/scripts/recall-bench.mjs +0 -359
- package/scripts/resource-admission-test.mjs +0 -792
- package/scripts/result-classification-test.mjs +0 -75
- package/scripts/rg-runner-test.mjs +0 -240
- package/scripts/routing-corpus-test.mjs +0 -349
- package/scripts/sanitize-tool-pairs-test.mjs +0 -260
- package/scripts/session-bench-cache-break-test.mjs +0 -102
- package/scripts/session-bench.mjs +0 -1708
- package/scripts/session-context-bench.mjs +0 -344
- package/scripts/session-heartbeat-lifecycle-test.mjs +0 -68
- package/scripts/session-ingest-compaction-smoke.mjs +0 -279
- package/scripts/session-ingest-smoke.mjs +0 -177
- package/scripts/session-orphan-sweep-test.mjs +0 -109
- package/scripts/set-effort-config-test.mjs +0 -41
- package/scripts/shell-failure-diagnostics-test.mjs +0 -280
- package/scripts/shell-hardening-test.mjs +0 -209
- package/scripts/shell-jobs-windows-hide-test.mjs +0 -164
- package/scripts/ship-mode-test.mjs +0 -98
- package/scripts/smoke-loop-failure-summary-test.mjs +0 -38
- package/scripts/smoke-loop-failure-summary.mjs +0 -16
- package/scripts/smoke-loop-report.mjs +0 -221
- package/scripts/smoke-loop.mjs +0 -202
- package/scripts/smoke-runtime-negative.ps1 +0 -106
- package/scripts/statusline-quota-hysteresis-test.mjs +0 -62
- package/scripts/steering-drain-buckets-test.mjs +0 -467
- package/scripts/steering-fold-provenance-test.mjs +0 -71
- package/scripts/streaming-tail-window-test.mjs +0 -175
- package/scripts/submit-commandbusy-race-test.mjs +0 -257
- package/scripts/task-bench.mjs +0 -205
- package/scripts/terminal-bench-isolation-guards-test.mjs +0 -102
- package/scripts/termio-input-smoke.mjs +0 -199
- package/scripts/tool-result-hook-test.mjs +0 -48
- package/scripts/tool-smoke.mjs +0 -2453
- package/scripts/tool-tui-presentation-test.mjs +0 -286
- package/scripts/toolcall-args-test.mjs +0 -239
- package/scripts/tui-ambiguous-width-test.mjs +0 -113
- package/scripts/tui-background-failure-smoke.mjs +0 -73
- package/scripts/tui-perf-run.ps1 +0 -26
- package/scripts/tui-render-smoke.mjs +0 -90
- package/scripts/tui-runtime-load-bench-entry.jsx +0 -608
- package/scripts/tui-runtime-load-bench.mjs +0 -50
- package/scripts/tui-store-frame-batch-test.mjs +0 -99
- package/scripts/tui-transcript-jitter-harness-entry.jsx +0 -383
- package/scripts/tui-transcript-perf-test.mjs +0 -934
- package/scripts/usage-metrics-epoch-smoke.mjs +0 -114
- package/scripts/verify-release-assets-test.mjs +0 -281
- package/scripts/web-fetch-routing-test.mjs +0 -158
- package/scripts/webhook-smoke.mjs +0 -201
- package/scripts/windows-hide-spawn-options-test.mjs +0 -19
- package/scripts/worker-notify-rejection-test.mjs +0 -51
- package/scripts/write-backpressure-test.mjs +0 -147
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import test from 'node:test';
|
|
3
|
-
import assert from 'node:assert/strict';
|
|
4
|
-
|
|
5
|
-
import { agentLoop } from '../src/runtime/agent/orchestrator/session/agent-loop.mjs';
|
|
6
|
-
import { HIDDEN_AGENT_NAMES } from '../src/runtime/agent/orchestrator/session/loop/hidden-agents.mjs';
|
|
7
|
-
|
|
8
|
-
function queuedProvider(responses, streamed = []) {
|
|
9
|
-
const sent = [];
|
|
10
|
-
let index = 0;
|
|
11
|
-
return {
|
|
12
|
-
sent,
|
|
13
|
-
async send(messages, _model, _tools, opts = {}) {
|
|
14
|
-
sent.push(structuredClone(messages));
|
|
15
|
-
const response = responses[index++];
|
|
16
|
-
assert.ok(response, `unexpected provider send ${index}`);
|
|
17
|
-
if (response instanceof Error) {
|
|
18
|
-
if (typeof response.partialContent === 'string') {
|
|
19
|
-
opts.onTextDelta?.(response.partialContent);
|
|
20
|
-
streamed.push(response.partialContent);
|
|
21
|
-
}
|
|
22
|
-
throw response;
|
|
23
|
-
}
|
|
24
|
-
if (typeof response.content === 'string') {
|
|
25
|
-
opts.onTextDelta?.(response.content);
|
|
26
|
-
streamed.push(response.content);
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
usage: { inputTokens: 1, outputTokens: 1 },
|
|
30
|
-
...response,
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
async function run(provider, messages = [{ role: 'user', content: 'answer fully' }], options = {}) {
|
|
37
|
-
return agentLoop(provider, messages, 'fake-model', [], options.onToolCall, process.cwd(), {
|
|
38
|
-
onTextDelta: options.onTextDelta,
|
|
39
|
-
takeAssistantTranscriptMetadata: options.takeAssistantTranscriptMetadata,
|
|
40
|
-
session: options.session,
|
|
41
|
-
providerState: options.providerState,
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function persistedAssistantText(messages, result) {
|
|
46
|
-
const terminal = typeof result.historyContent === 'string' ? result.historyContent : result.content;
|
|
47
|
-
return [
|
|
48
|
-
...messages.filter((message) => message.role === 'assistant').map((message) => message.content),
|
|
49
|
-
terminal,
|
|
50
|
-
].join('');
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
test('one max-output continuation resumes from preserved partial and returns one complete text', async () => {
|
|
54
|
-
const streamed = [];
|
|
55
|
-
const provider = queuedProvider([
|
|
56
|
-
{ content: 'alpha ', stopReason: 'length', truncated: true },
|
|
57
|
-
{ content: 'omega', stopReason: 'end_turn' },
|
|
58
|
-
], streamed);
|
|
59
|
-
const messages = [{ role: 'user', content: 'answer fully' }];
|
|
60
|
-
const recoveryTranscriptMeta = {
|
|
61
|
-
at: 1_735_689_600_000,
|
|
62
|
-
model: 'Fake Model',
|
|
63
|
-
provider: 'fake-provider',
|
|
64
|
-
agent: 'Test Workflow',
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
const result = await run(provider, messages, {
|
|
68
|
-
onTextDelta: () => {},
|
|
69
|
-
takeAssistantTranscriptMetadata: () => recoveryTranscriptMeta,
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
assert.equal(provider.sent.length, 2);
|
|
73
|
-
assert.equal(result.content, 'alpha omega');
|
|
74
|
-
assert.equal(streamed.join(''), result.content);
|
|
75
|
-
assert.equal(result.historyContent, 'omega');
|
|
76
|
-
assert.equal(result.maxOutputRecoveryAttempts, 1);
|
|
77
|
-
assert.equal(result.terminationReason, undefined);
|
|
78
|
-
assert.deepEqual(provider.sent[1].map((message) => message.role), ['user', 'assistant', 'user']);
|
|
79
|
-
assert.equal(provider.sent[1][1].content, 'alpha ');
|
|
80
|
-
assert.deepEqual(provider.sent[1][1].meta?.transcript, recoveryTranscriptMeta);
|
|
81
|
-
assert.match(provider.sent[1][2].content, /Resume directly/);
|
|
82
|
-
assert.match(provider.sent[1][2].content, /no apology, no recap/i);
|
|
83
|
-
assert.equal(persistedAssistantText(messages, result), result.content);
|
|
84
|
-
assert.equal(messages.some((message) => message.role === 'assistant' && message.content === result.content), false);
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
test('Gemini MAX_TOKENS ProviderIncompleteError enters the same bounded recovery and aggregates usage', async () => {
|
|
88
|
-
const streamed = [];
|
|
89
|
-
const geminiIncomplete = Object.assign(new Error('Gemini response incomplete: finishReason=MAX_TOKENS'), {
|
|
90
|
-
name: 'ProviderIncompleteError',
|
|
91
|
-
code: 'PROVIDER_INCOMPLETE',
|
|
92
|
-
providerIncomplete: true,
|
|
93
|
-
finishReason: 'MAX_TOKENS',
|
|
94
|
-
partialContent: 'gemini ',
|
|
95
|
-
partialToolCalls: undefined,
|
|
96
|
-
model: 'gemini-test',
|
|
97
|
-
rawUsage: {
|
|
98
|
-
promptTokenCount: 10,
|
|
99
|
-
candidatesTokenCount: 4,
|
|
100
|
-
thoughtsTokenCount: 1,
|
|
101
|
-
cachedContentTokenCount: 3,
|
|
102
|
-
},
|
|
103
|
-
});
|
|
104
|
-
const provider = queuedProvider([
|
|
105
|
-
geminiIncomplete,
|
|
106
|
-
{
|
|
107
|
-
content: 'complete',
|
|
108
|
-
stopReason: 'end_turn',
|
|
109
|
-
usage: { inputTokens: 1, outputTokens: 2, cachedTokens: 1, promptTokens: 1 },
|
|
110
|
-
},
|
|
111
|
-
], streamed);
|
|
112
|
-
const messages = [{ role: 'user', content: 'answer fully' }];
|
|
113
|
-
|
|
114
|
-
const result = await run(provider, messages, { onTextDelta: () => {} });
|
|
115
|
-
|
|
116
|
-
assert.equal(provider.sent.length, 2);
|
|
117
|
-
assert.equal(result.content, 'gemini complete');
|
|
118
|
-
assert.equal(streamed.join(''), result.content, 'TUI-facing deltas and final aggregate contain each segment once');
|
|
119
|
-
assert.deepEqual(
|
|
120
|
-
{
|
|
121
|
-
inputTokens: result.usage.inputTokens,
|
|
122
|
-
outputTokens: result.usage.outputTokens,
|
|
123
|
-
cachedTokens: result.usage.cachedTokens,
|
|
124
|
-
promptTokens: result.usage.promptTokens,
|
|
125
|
-
},
|
|
126
|
-
{ inputTokens: 11, outputTokens: 7, cachedTokens: 4, promptTokens: 11 },
|
|
127
|
-
);
|
|
128
|
-
assert.equal(result.lastTurnUsage.outputTokens, 2);
|
|
129
|
-
assert.equal(provider.sent[1][1].content, 'gemini ');
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
test('Gemini MAX_TOKENS recovery derives missing prompt usage from total minus output', async () => {
|
|
133
|
-
const incomplete = Object.assign(new Error('Gemini response incomplete: finishReason=MAX_TOKENS'), {
|
|
134
|
-
code: 'PROVIDER_INCOMPLETE',
|
|
135
|
-
providerIncomplete: true,
|
|
136
|
-
finishReason: 'MAX_TOKENS',
|
|
137
|
-
partialContent: 'gemini ',
|
|
138
|
-
rawUsage: {
|
|
139
|
-
total_token_count: 20,
|
|
140
|
-
candidates_token_count: 4,
|
|
141
|
-
thoughts_token_count: 1,
|
|
142
|
-
},
|
|
143
|
-
});
|
|
144
|
-
const result = await run(queuedProvider([
|
|
145
|
-
incomplete,
|
|
146
|
-
{
|
|
147
|
-
content: 'complete',
|
|
148
|
-
stopReason: 'end_turn',
|
|
149
|
-
usage: { inputTokens: 1, outputTokens: 2, promptTokens: 1 },
|
|
150
|
-
},
|
|
151
|
-
]), undefined, { onTextDelta: () => {} });
|
|
152
|
-
|
|
153
|
-
assert.deepEqual(
|
|
154
|
-
{
|
|
155
|
-
inputTokens: result.usage.inputTokens,
|
|
156
|
-
outputTokens: result.usage.outputTokens,
|
|
157
|
-
promptTokens: result.usage.promptTokens,
|
|
158
|
-
},
|
|
159
|
-
{ inputTokens: 16, outputTokens: 7, promptTokens: 16 },
|
|
160
|
-
);
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
test('Gemini MAX_TOKENS continuation preserves provider-scoped replay metadata', async () => {
|
|
164
|
-
const providerMetadata = {
|
|
165
|
-
gemini: { thoughtParts: [{ text: 'signed thought', thoughtSignature: 'sig-gemini' }] },
|
|
166
|
-
};
|
|
167
|
-
const incomplete = Object.assign(new Error('MAX_TOKENS'), {
|
|
168
|
-
code: 'PROVIDER_INCOMPLETE',
|
|
169
|
-
providerIncomplete: true,
|
|
170
|
-
finishReason: 'MAX_TOKENS',
|
|
171
|
-
partialContent: 'first ',
|
|
172
|
-
providerMetadata,
|
|
173
|
-
});
|
|
174
|
-
const provider = queuedProvider([
|
|
175
|
-
incomplete,
|
|
176
|
-
{ content: 'second', stopReason: 'end_turn' },
|
|
177
|
-
]);
|
|
178
|
-
await run(provider);
|
|
179
|
-
assert.deepEqual(provider.sent[1][1].providerMetadata, providerMetadata);
|
|
180
|
-
});
|
|
181
|
-
|
|
182
|
-
test('Gemini partial-final stall commits signed provider metadata with partial text', async () => {
|
|
183
|
-
const providerMetadata = {
|
|
184
|
-
gemini: {
|
|
185
|
-
thoughtParts: [{ text: 'private', thoughtSignature: 'sig-private' }],
|
|
186
|
-
textParts: [{ text: 'partial answer', thoughtSignature: 'sig-text' }],
|
|
187
|
-
},
|
|
188
|
-
};
|
|
189
|
-
const stalled = Object.assign(new Error('stalled'), {
|
|
190
|
-
streamStalled: true,
|
|
191
|
-
pendingToolUse: false,
|
|
192
|
-
emittedToolCall: false,
|
|
193
|
-
partialContent: 'partial answer',
|
|
194
|
-
providerMetadata,
|
|
195
|
-
});
|
|
196
|
-
const messages = [{ role: 'user', content: 'answer' }];
|
|
197
|
-
const result = await run(queuedProvider([stalled]), messages);
|
|
198
|
-
assert.equal(result.content, 'partial answer');
|
|
199
|
-
assert.deepEqual(result.providerMetadata, providerMetadata);
|
|
200
|
-
});
|
|
201
|
-
|
|
202
|
-
test('pause_turn and Gemini OTHER preserve prior non-empty semantics and do not recover', async () => {
|
|
203
|
-
for (const stopReason of ['pause_turn', 'OTHER']) {
|
|
204
|
-
const provider = queuedProvider([{ content: `partial-${stopReason}`, stopReason }]);
|
|
205
|
-
const result = await run(provider);
|
|
206
|
-
assert.equal(provider.sent.length, 1, stopReason);
|
|
207
|
-
assert.equal(result.content, `partial-${stopReason}`, stopReason);
|
|
208
|
-
assert.equal(result.terminationReason, undefined, stopReason);
|
|
209
|
-
assert.equal(Object.hasOwn(result, 'historyContent'), false, stopReason);
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
test('empty safety refusal gets one context-changing retry, then terminates as refusal', async () => {
|
|
214
|
-
const provider = queuedProvider([
|
|
215
|
-
{ content: '', stopReason: 'refusal', stopDetails: { category: 'safety' } },
|
|
216
|
-
{ content: '', stopReason: 'refusal', stopDetails: { category: 'safety' } },
|
|
217
|
-
]);
|
|
218
|
-
const messages = [{ role: 'user', content: 'answer fully' }];
|
|
219
|
-
|
|
220
|
-
const result = await run(provider, messages);
|
|
221
|
-
|
|
222
|
-
assert.equal(provider.sent.length, 2);
|
|
223
|
-
assert.equal(result.terminationReason, 'refusal');
|
|
224
|
-
assert.equal(messages.filter((message) => message?.meta?.source === 'refusal-recovery').length, 1);
|
|
225
|
-
assert.match(provider.sent[1].at(-1).content, /safety classifier/);
|
|
226
|
-
assert.match(provider.sent[1].at(-1).content, /within policy/);
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
test('one refusal retry can recover to a normal answer', async () => {
|
|
230
|
-
const provider = queuedProvider([
|
|
231
|
-
{ content: '', stopReason: 'refusal' },
|
|
232
|
-
{ content: 'compliant answer', stopReason: 'end_turn' },
|
|
233
|
-
]);
|
|
234
|
-
|
|
235
|
-
const result = await run(provider);
|
|
236
|
-
|
|
237
|
-
assert.equal(provider.sent.length, 2);
|
|
238
|
-
assert.equal(result.content, 'compliant answer');
|
|
239
|
-
assert.equal(result.terminationReason, undefined);
|
|
240
|
-
});
|
|
241
|
-
|
|
242
|
-
test('hidden-agent empty refusal gets one retry, then terminates as refusal', async () => {
|
|
243
|
-
const hiddenAgent = HIDDEN_AGENT_NAMES.values().next().value;
|
|
244
|
-
assert.ok(hiddenAgent, 'expected at least one configured hidden agent');
|
|
245
|
-
const provider = queuedProvider([
|
|
246
|
-
{ content: '', stopReason: 'refusal' },
|
|
247
|
-
{ content: '', stopReason: 'refusal' },
|
|
248
|
-
]);
|
|
249
|
-
const messages = [{ role: 'user', content: 'complete the assigned output' }];
|
|
250
|
-
|
|
251
|
-
const result = await run(provider, messages, { session: { agent: hiddenAgent } });
|
|
252
|
-
|
|
253
|
-
assert.equal(provider.sent.length, 2);
|
|
254
|
-
assert.equal(result.terminationReason, 'refusal');
|
|
255
|
-
assert.equal(messages.filter((message) => message?.meta?.source === 'refusal-recovery').length, 1);
|
|
256
|
-
assert.match(provider.sent[1].at(-1).content, /assigned output within policy/);
|
|
257
|
-
assert.doesNotMatch(provider.sent[1].at(-1).content, /answer the user/i);
|
|
258
|
-
});
|
|
259
|
-
|
|
260
|
-
test('non-output ProviderIncompleteError remains an error', async () => {
|
|
261
|
-
const other = Object.assign(new Error('Gemini response incomplete: finishReason=OTHER'), {
|
|
262
|
-
code: 'PROVIDER_INCOMPLETE',
|
|
263
|
-
providerIncomplete: true,
|
|
264
|
-
finishReason: 'OTHER',
|
|
265
|
-
partialContent: 'unsafe partial',
|
|
266
|
-
partialToolCalls: undefined,
|
|
267
|
-
});
|
|
268
|
-
await assert.rejects(run(queuedProvider([other])), (error) => error === other);
|
|
269
|
-
});
|
|
270
|
-
|
|
271
|
-
test('adaptive-thinking replay state is preserved on the partial assistant history turn', async () => {
|
|
272
|
-
const thinkingBlocks = [{ type: 'thinking', thinking: 'signed thought', signature: 'sig-123' }];
|
|
273
|
-
const reasoningItems = [{ type: 'reasoning', encrypted_content: 'enc-1' }];
|
|
274
|
-
const provider = queuedProvider([
|
|
275
|
-
{
|
|
276
|
-
content: 'first ',
|
|
277
|
-
stopReason: 'max_tokens',
|
|
278
|
-
truncated: true,
|
|
279
|
-
thinkingBlocks,
|
|
280
|
-
reasoningItems,
|
|
281
|
-
reasoningContent: 'display thought',
|
|
282
|
-
},
|
|
283
|
-
{ content: 'second', stopReason: 'end_turn' },
|
|
284
|
-
]);
|
|
285
|
-
|
|
286
|
-
const result = await run(provider);
|
|
287
|
-
|
|
288
|
-
assert.equal(result.content, 'first second');
|
|
289
|
-
assert.deepEqual(provider.sent[1][1].thinkingBlocks, thinkingBlocks);
|
|
290
|
-
assert.deepEqual(provider.sent[1][1].reasoningItems, reasoningItems);
|
|
291
|
-
assert.equal(provider.sent[1][1].reasoningContent, 'display thought');
|
|
292
|
-
});
|
|
293
|
-
|
|
294
|
-
test('max-output recovery stops after three continuations and surfaces explicit truncation', async () => {
|
|
295
|
-
const provider = queuedProvider([
|
|
296
|
-
{ content: 'A', stopReason: 'max_tokens', truncated: true },
|
|
297
|
-
{ content: 'B', stopReason: 'max_tokens', truncated: true },
|
|
298
|
-
{ content: 'C', stopReason: 'max_tokens', truncated: true },
|
|
299
|
-
{ content: 'D', stopReason: 'max_tokens', truncated: true },
|
|
300
|
-
]);
|
|
301
|
-
const messages = [{ role: 'user', content: 'answer fully' }];
|
|
302
|
-
|
|
303
|
-
const result = await run(provider, messages);
|
|
304
|
-
|
|
305
|
-
assert.equal(provider.sent.length, 4);
|
|
306
|
-
assert.equal(result.maxOutputRecoveryAttempts, 3);
|
|
307
|
-
assert.equal(result.terminationReason, 'truncated');
|
|
308
|
-
assert.match(result.content, /^ABCD/);
|
|
309
|
-
assert.match(result.content, /remained truncated after 3 continuation attempts/);
|
|
310
|
-
assert.equal(messages.filter((message) => message?.meta?.source === 'max-output-recovery').length, 3);
|
|
311
|
-
assert.equal(messages.filter((message) => message.role === 'assistant').length, 3);
|
|
312
|
-
assert.equal(persistedAssistantText(messages, result), result.content);
|
|
313
|
-
});
|
|
314
|
-
|
|
315
|
-
test('clean end_turn is unchanged and does not enter recovery', async () => {
|
|
316
|
-
const provider = queuedProvider([
|
|
317
|
-
{ content: 'clean answer', stopReason: 'end_turn' },
|
|
318
|
-
]);
|
|
319
|
-
const messages = [{ role: 'user', content: 'answer fully' }];
|
|
320
|
-
|
|
321
|
-
const result = await run(provider, messages);
|
|
322
|
-
|
|
323
|
-
assert.equal(provider.sent.length, 1);
|
|
324
|
-
assert.equal(result.content, 'clean answer');
|
|
325
|
-
assert.equal(result.terminationReason, undefined);
|
|
326
|
-
assert.equal(Object.hasOwn(result, 'historyContent'), false);
|
|
327
|
-
assert.deepEqual(messages, [{ role: 'user', content: 'answer fully' }]);
|
|
328
|
-
});
|
|
329
|
-
|
|
330
|
-
test('providerState distinguishes no update from an explicit clear for other providers', async () => {
|
|
331
|
-
const initial = { otherProvider: { continuation: 'keep' } };
|
|
332
|
-
const noUpdate = await run(queuedProvider([
|
|
333
|
-
{ content: 'done', stopReason: 'end_turn' },
|
|
334
|
-
]), undefined, { providerState: initial });
|
|
335
|
-
assert.deepEqual(noUpdate.providerState, initial);
|
|
336
|
-
assert.equal(noUpdate.providerStateUpdated, false);
|
|
337
|
-
|
|
338
|
-
const cleared = await run(queuedProvider([
|
|
339
|
-
{ content: 'done', stopReason: 'end_turn', providerState: null },
|
|
340
|
-
]), undefined, { providerState: initial });
|
|
341
|
-
assert.equal(cleared.providerState, null);
|
|
342
|
-
assert.equal(cleared.providerStateUpdated, true);
|
|
343
|
-
});
|
|
344
|
-
|
|
345
|
-
test('tool-call turns keep the normal tool execution path', async () => {
|
|
346
|
-
const provider = queuedProvider([
|
|
347
|
-
{
|
|
348
|
-
content: '',
|
|
349
|
-
stopReason: 'tool_use',
|
|
350
|
-
toolCalls: [{ id: 'call-1', name: 'unknown_test_tool', arguments: {} }],
|
|
351
|
-
},
|
|
352
|
-
{ content: 'done', stopReason: 'end_turn' },
|
|
353
|
-
]);
|
|
354
|
-
const batches = [];
|
|
355
|
-
const messages = [{ role: 'user', content: 'use a tool' }];
|
|
356
|
-
|
|
357
|
-
const result = await run(provider, messages, {
|
|
358
|
-
onToolCall: (_iteration, calls) => batches.push(calls),
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
assert.equal(provider.sent.length, 2);
|
|
362
|
-
assert.equal(result.content, 'done');
|
|
363
|
-
assert.equal(result.toolCallsTotal, 1);
|
|
364
|
-
assert.equal(result.terminationReason, undefined);
|
|
365
|
-
assert.equal(Object.hasOwn(result, 'historyContent'), false);
|
|
366
|
-
assert.equal(batches.length, 1);
|
|
367
|
-
assert.deepEqual(messages.map((message) => message.role), ['user', 'assistant', 'tool']);
|
|
368
|
-
});
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import test from 'node:test';
|
|
3
|
-
import assert from 'node:assert/strict';
|
|
4
|
-
import { normalizeMcpToolResult } from '../src/runtime/agent/orchestrator/mcp/client.mjs';
|
|
5
|
-
import { classifyResultKind } from '../src/runtime/agent/orchestrator/session/result-classification.mjs';
|
|
6
|
-
import { normalizeToolEnvelope } from '../src/runtime/agent/orchestrator/session/tool-envelope.mjs';
|
|
7
|
-
|
|
8
|
-
test('isError:true plain MCP text receives one canonical Error: prefix', () => {
|
|
9
|
-
const result = normalizeMcpToolResult({
|
|
10
|
-
content: [{ type: 'text', text: 'connection refused' }],
|
|
11
|
-
isError: true,
|
|
12
|
-
});
|
|
13
|
-
assert.equal(result, 'Error: connection refused');
|
|
14
|
-
assert.equal(classifyResultKind(result), 'error');
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
test('isError:true already-prefixed MCP text is unchanged', () => {
|
|
18
|
-
const result = normalizeMcpToolResult({
|
|
19
|
-
content: [{ type: 'text', text: 'Error: connection refused' }],
|
|
20
|
-
isError: true,
|
|
21
|
-
});
|
|
22
|
-
assert.equal(result, 'Error: connection refused');
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
test('absent or false isError leaves MCP text untouched', () => {
|
|
26
|
-
for (const isError of [undefined, false]) {
|
|
27
|
-
const result = normalizeMcpToolResult({
|
|
28
|
-
content: [{ type: 'text', text: 'search complete' }],
|
|
29
|
-
...(isError === undefined ? {} : { isError }),
|
|
30
|
-
});
|
|
31
|
-
assert.equal(result, 'search complete');
|
|
32
|
-
assert.equal(classifyResultKind(result), 'normal');
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
test('isError:false Error:-leading MCP text stays untouched and normal', () => {
|
|
37
|
-
const returned = normalizeMcpToolResult({
|
|
38
|
-
content: [{ type: 'text', text: 'Error: quoted search result' }],
|
|
39
|
-
isError: false,
|
|
40
|
-
});
|
|
41
|
-
const normalized = normalizeToolEnvelope(returned);
|
|
42
|
-
assert.equal(normalized.result, 'Error: quoted search result');
|
|
43
|
-
assert.equal(normalized.explicitSuccess, true);
|
|
44
|
-
assert.equal(classifyResultKind(normalized.result, normalized.explicitSuccess), 'normal');
|
|
45
|
-
});
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
// Regression tests for turn-time deferred-manifest construction (claude-code
|
|
2
|
-
// style). An MCP server that finishes its handshake BETWEEN session-create and
|
|
3
|
-
// the user's FIRST send is folded — on the first turn, synchronously, with no
|
|
4
|
-
// boot await — into the INITIAL <available-deferred-tools> manifest (BP1) and
|
|
5
|
-
// pre-marked announced, so the first-turn tool-catalog reconcile emits NO late
|
|
6
|
-
// <system-reminder> for it. A server that connects AFTER the first turn keeps
|
|
7
|
-
// the append-only late-reminder path. Unit-style: exercise the tool-catalog
|
|
8
|
-
// exports directly (no runtime, no spawn) the way session-turn-api/runtime-core
|
|
9
|
-
// wire them.
|
|
10
|
-
import test from 'node:test';
|
|
11
|
-
import assert from 'node:assert/strict';
|
|
12
|
-
import {
|
|
13
|
-
applyDeferredToolSurface,
|
|
14
|
-
rebuildDeferredToolSurfaceForProvider,
|
|
15
|
-
refreshInitialDeferredMcpSurface,
|
|
16
|
-
reconcileDeferredMcpToolCatalog,
|
|
17
|
-
} from '../src/session-runtime/tool-catalog.mjs';
|
|
18
|
-
|
|
19
|
-
function baseSession(provider = 'anthropic-oauth') {
|
|
20
|
-
return {
|
|
21
|
-
provider,
|
|
22
|
-
tools: [{ name: 'read', description: 'read a file' }, { name: 'grep', description: 'search' }],
|
|
23
|
-
messages: [{ role: 'system', content: 'BASE PROMPT' }],
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// A freshly-created session: the create-time surface is baked WITHOUT any MCP
|
|
28
|
-
// (server still mid-handshake at create). `shell` is a deferred (non-active)
|
|
29
|
-
// standalone tool so BP1 carries a manifest block even before MCP arrives.
|
|
30
|
-
function createdSession(provider = 'anthropic-oauth') {
|
|
31
|
-
const session = baseSession(provider);
|
|
32
|
-
applyDeferredToolSurface(session, 'full', [{ name: 'shell', description: 'run a command' }], { provider: session.provider });
|
|
33
|
-
return session;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function systemContent(session) {
|
|
37
|
-
return session.messages.find((m) => m.role === 'system').content;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const mcpTool = { name: 'mcp__unity__get_scene', description: 'Return the active Unity scene graph.' };
|
|
41
|
-
const mcpTool2 = { name: 'mcp__unity__run_tests', description: 'Run the Unity test runner.' };
|
|
42
|
-
|
|
43
|
-
// Mirror the session-turn-api first-turn gate: refresh runs ONCE, only for a
|
|
44
|
-
// session flagged fresh (deferredInitialRefreshPending) at create; a resumed
|
|
45
|
-
// session (reloaded transcript, flag absent) takes the late-reconcile path and
|
|
46
|
-
// its already-baked BP1 is never rebuilt or re-announced.
|
|
47
|
-
function firstTurnGate(session, liveMcp) {
|
|
48
|
-
if (session.deferredInitialRefreshPending) {
|
|
49
|
-
session.deferredInitialRefreshPending = false;
|
|
50
|
-
return refreshInitialDeferredMcpSurface(session, liveMcp) ? 'refreshed' : 'refresh-noop';
|
|
51
|
-
}
|
|
52
|
-
return 'late';
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
test('MCP connecting between session-create and first send lands in the INITIAL manifest, not a late reminder', () => {
|
|
56
|
-
const session = createdSession();
|
|
57
|
-
assert.ok(!systemContent(session).includes('mcp__unity__get_scene'), 'MCP absent from create-time BP1');
|
|
58
|
-
|
|
59
|
-
// First-turn refresh: the live registry now includes the connected server.
|
|
60
|
-
const changed = refreshInitialDeferredMcpSurface(session, [mcpTool]);
|
|
61
|
-
assert.equal(changed, true, 'first-turn refresh folded the newly-connected MCP tool');
|
|
62
|
-
|
|
63
|
-
const sys = systemContent(session);
|
|
64
|
-
assert.ok(sys.includes('<available-deferred-tools>'), 'manifest block present');
|
|
65
|
-
assert.ok(sys.includes('mcp__unity__get_scene'), 'MCP tool in the INITIAL manifest');
|
|
66
|
-
assert.ok(session.deferredAnnouncedTools.includes('mcp__unity__get_scene'), 'MCP tool pre-marked announced');
|
|
67
|
-
|
|
68
|
-
let enqueued = null;
|
|
69
|
-
const result = reconcileDeferredMcpToolCatalog(session, [mcpTool], {
|
|
70
|
-
enqueue: (text) => { enqueued = text; return true; },
|
|
71
|
-
});
|
|
72
|
-
assert.equal(result, null, 'no late-tool announcement for a first-turn-folded tool');
|
|
73
|
-
assert.equal(enqueued, null, 'nothing enqueued for a first-turn-folded tool');
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
test('an MCP server connecting AFTER the first turn is still announced via the late reminder', () => {
|
|
77
|
-
const session = createdSession();
|
|
78
|
-
// First turn: no MCP connected yet — nothing to fold.
|
|
79
|
-
assert.equal(refreshInitialDeferredMcpSurface(session, []), false, 'no live MCP => first-turn no-op');
|
|
80
|
-
assert.ok(!(session.deferredAnnouncedTools || []).includes('mcp__unity__get_scene'), 'MCP not pre-announced');
|
|
81
|
-
|
|
82
|
-
// A later turn: the server has since connected → late path fires.
|
|
83
|
-
let enqueued = null;
|
|
84
|
-
const result = reconcileDeferredMcpToolCatalog(session, [mcpTool], {
|
|
85
|
-
enqueue: (text) => { enqueued = text; return true; },
|
|
86
|
-
});
|
|
87
|
-
assert.deepEqual(result, ['mcp__unity__get_scene'], 'late tool announced');
|
|
88
|
-
assert.ok(enqueued && enqueued.includes('mcp__unity__get_scene'), 'late reminder enqueued');
|
|
89
|
-
assert.ok(enqueued.includes('connected after this session started'), 'reminder carries the late-tool sentinel');
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
test('recreated session (MCP already connected at create) seeds its manifest, no late re-announce', () => {
|
|
93
|
-
// Recreate/reset path: createCurrentSession folds the live MCP tools into the
|
|
94
|
-
// surface at create time, so a cwd-change recreate seeds its BP1 directly and
|
|
95
|
-
// never needs the first-turn refresh.
|
|
96
|
-
const session = baseSession();
|
|
97
|
-
applyDeferredToolSurface(session, 'full', [{ name: 'shell', description: 'run a command' }, mcpTool], { provider: session.provider });
|
|
98
|
-
assert.ok(systemContent(session).includes('mcp__unity__get_scene'), 'MCP in recreated BP1');
|
|
99
|
-
assert.ok(session.deferredAnnouncedTools.includes('mcp__unity__get_scene'), 'recreated MCP pre-marked announced');
|
|
100
|
-
|
|
101
|
-
let enqueued = null;
|
|
102
|
-
const result = reconcileDeferredMcpToolCatalog(session, [mcpTool], {
|
|
103
|
-
enqueue: (text) => { enqueued = text; return true; },
|
|
104
|
-
});
|
|
105
|
-
assert.equal(result, null, 'no late announcement on recreate');
|
|
106
|
-
assert.equal(enqueued, null, 'nothing enqueued on recreate');
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
test('first-turn refresh is idempotent: a re-render with no new MCP is a no-op and keeps ONE manifest block', () => {
|
|
110
|
-
const session = createdSession();
|
|
111
|
-
assert.equal(refreshInitialDeferredMcpSurface(session, [mcpTool]), true, 'first fold applies');
|
|
112
|
-
const once = systemContent(session);
|
|
113
|
-
assert.equal(refreshInitialDeferredMcpSurface(session, [mcpTool]), false, 'no genuinely-new MCP => no-op');
|
|
114
|
-
const twice = systemContent(session);
|
|
115
|
-
assert.equal(once, twice, 'BP1 byte-identical on re-render');
|
|
116
|
-
assert.equal((twice.match(/<available-deferred-tools>/g) || []).length, 1, 'exactly one manifest block (no duplicate)');
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
test('a second newly-connected MCP tool re-renders BP1 in place (both listed, still one block)', () => {
|
|
120
|
-
const session = createdSession();
|
|
121
|
-
refreshInitialDeferredMcpSurface(session, [mcpTool]);
|
|
122
|
-
assert.equal(refreshInitialDeferredMcpSurface(session, [mcpTool, mcpTool2]), true, 're-fold applies the new tool');
|
|
123
|
-
const sys = systemContent(session);
|
|
124
|
-
assert.ok(sys.includes('mcp__unity__get_scene') && sys.includes('mcp__unity__run_tests'), 'both MCP tools listed');
|
|
125
|
-
assert.equal((sys.match(/<available-deferred-tools>/g) || []).length, 1, 'still exactly one block (rebuilt in place)');
|
|
126
|
-
assert.ok(session.deferredAnnouncedTools.includes('mcp__unity__run_tests'), 'the new tool is pre-announced too');
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
test('a resumed session (no fresh flag, prior baked BP1) is NOT refreshed on its next turn', () => {
|
|
130
|
-
// A prior run baked BP1 with the MCP tool; resume reloads that transcript.
|
|
131
|
-
const session = baseSession();
|
|
132
|
-
applyDeferredToolSurface(session, 'full', [{ name: 'shell', description: 'run a command' }, mcpTool], { provider: session.provider });
|
|
133
|
-
const before = systemContent(session);
|
|
134
|
-
const announcedBefore = [...session.deferredAnnouncedTools];
|
|
135
|
-
// Resume path never sets the per-session fresh flag.
|
|
136
|
-
assert.equal(session.deferredInitialRefreshPending, undefined, 'resumed session carries no fresh flag');
|
|
137
|
-
const route = firstTurnGate(session, [mcpTool, mcpTool2]);
|
|
138
|
-
assert.equal(route, 'late', 'resumed session takes the late-reconcile path, not the initial refresh');
|
|
139
|
-
assert.equal(systemContent(session), before, 'BP1 untouched on resume (no rebuild)');
|
|
140
|
-
assert.deepEqual([...session.deferredAnnouncedTools], announcedBefore, 'announced set unchanged on resume');
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
test('fresh-session refresh state is isolated, one-shot, and survives provider switches without leaking', () => {
|
|
144
|
-
const refreshedSession = createdSession();
|
|
145
|
-
const noOpSession = createdSession();
|
|
146
|
-
refreshedSession.deferredInitialRefreshPending = true;
|
|
147
|
-
noOpSession.deferredInitialRefreshPending = true;
|
|
148
|
-
|
|
149
|
-
assert.equal(firstTurnGate(refreshedSession, [mcpTool]), 'refreshed', 'fresh session refreshes on its first turn');
|
|
150
|
-
assert.equal(refreshedSession.deferredInitialRefreshPending, false, 'fresh flag consumed (one-shot)');
|
|
151
|
-
assert.equal(noOpSession.deferredInitialRefreshPending, true, 'consuming one session does not consume another');
|
|
152
|
-
assert.ok(refreshedSession.deferredAnnouncedTools.includes('mcp__unity__get_scene'), 'first-turn MCP pre-announced');
|
|
153
|
-
assert.ok(!noOpSession.deferredAnnouncedTools.includes('mcp__unity__get_scene'), 'announced state does not leak between sessions');
|
|
154
|
-
assert.equal(firstTurnGate(refreshedSession, [mcpTool2]), 'late', 'second turn no longer refreshes');
|
|
155
|
-
|
|
156
|
-
rebuildDeferredToolSurfaceForProvider(noOpSession, 'xai');
|
|
157
|
-
noOpSession.provider = 'xai';
|
|
158
|
-
const beforeNoOp = systemContent(noOpSession);
|
|
159
|
-
assert.equal(beforeNoOp.includes('<available-deferred-tools>'), false, 'canonical switch removes native manifest state');
|
|
160
|
-
assert.equal(firstTurnGate(noOpSession, []), 'refresh-noop', 'canonical provider consumes an empty one-shot without a manifest refresh');
|
|
161
|
-
assert.equal(noOpSession.deferredInitialRefreshPending, false, 'no-op also consumes the fresh flag');
|
|
162
|
-
assert.equal(systemContent(noOpSession), beforeNoOp, 'canonical no-op leaves the initial manifest byte-identical');
|
|
163
|
-
|
|
164
|
-
rebuildDeferredToolSurfaceForProvider(noOpSession, 'anthropic-oauth');
|
|
165
|
-
noOpSession.provider = 'anthropic-oauth';
|
|
166
|
-
assert.equal(firstTurnGate(noOpSession, [mcpTool2]), 'late', 'switching back cannot resurrect first-turn refresh state');
|
|
167
|
-
assert.ok(!noOpSession.deferredAnnouncedTools.includes('mcp__unity__run_tests'), 'post-switch tool remains eligible for the late path');
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
test('legacy canonical snapshot gains a grace-connected MCP tool for the first turn and session lifetime', () => {
|
|
171
|
-
const session = createdSession('legacy');
|
|
172
|
-
session.deferredInitialRefreshPending = true;
|
|
173
|
-
const before = systemContent(session);
|
|
174
|
-
|
|
175
|
-
assert.equal(firstTurnGate(session, [mcpTool]), 'refreshed', 'grace fold updates the canonical snapshot');
|
|
176
|
-
assert.ok(session.tools.some((tool) => tool.name === mcpTool.name), 'tool is provider-visible on the first turn');
|
|
177
|
-
assert.ok(session.deferredCallableTools.includes(mcpTool.name), 'tool is callable for the session');
|
|
178
|
-
assert.ok(session.deferredToolCatalog.some((tool) => tool.name === mcpTool.name), 'tool persists in the session catalog');
|
|
179
|
-
assert.equal(systemContent(session), before, 'canonical refresh does not introduce a native manifest');
|
|
180
|
-
assert.equal(systemContent(session).includes('<available-deferred-tools>'), false);
|
|
181
|
-
|
|
182
|
-
const toolsOnce = JSON.stringify(session.tools);
|
|
183
|
-
assert.equal(refreshInitialDeferredMcpSurface(session, [mcpTool]), false, 'repeated fold is a no-op');
|
|
184
|
-
assert.equal(JSON.stringify(session.tools), toolsOnce, 'repeated fold leaves the fixed surface byte-identical');
|
|
185
|
-
assert.equal(firstTurnGate(session, [mcpTool]), 'late', 'one-shot gate remains consumed');
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
test('legacy to Anthropic and back preserves grace MCP availability without manifest leakage or duplication', () => {
|
|
189
|
-
const session = createdSession('legacy');
|
|
190
|
-
assert.equal(refreshInitialDeferredMcpSurface(session, [mcpTool]), true);
|
|
191
|
-
|
|
192
|
-
rebuildDeferredToolSurfaceForProvider(session, 'anthropic-oauth');
|
|
193
|
-
session.provider = 'anthropic-oauth';
|
|
194
|
-
assert.ok(session.deferredToolCatalog.some((tool) => tool.name === mcpTool.name), 'native switch retains the MCP catalog entry');
|
|
195
|
-
assert.ok(systemContent(session).includes(mcpTool.name), 'native switch advertises the retained deferred tool');
|
|
196
|
-
assert.equal((systemContent(session).match(/<available-deferred-tools>/g) || []).length, 1, 'native switch creates one manifest');
|
|
197
|
-
|
|
198
|
-
rebuildDeferredToolSurfaceForProvider(session, 'legacy');
|
|
199
|
-
session.provider = 'legacy';
|
|
200
|
-
assert.ok(session.tools.some((tool) => tool.name === mcpTool.name), 'canonical switch restores the MCP tool to the active surface');
|
|
201
|
-
assert.ok(session.deferredCallableTools.includes(mcpTool.name), 'canonical switch keeps the MCP tool callable');
|
|
202
|
-
assert.equal(systemContent(session).includes('<available-deferred-tools>'), false, 'native manifest does not leak back to canonical');
|
|
203
|
-
assert.deepEqual(session.deferredAnnouncedTools, [], 'native announcement state does not leak back to canonical');
|
|
204
|
-
|
|
205
|
-
rebuildDeferredToolSurfaceForProvider(session, 'anthropic-oauth');
|
|
206
|
-
session.provider = 'anthropic-oauth';
|
|
207
|
-
assert.equal((systemContent(session).match(/<available-deferred-tools>/g) || []).length, 1, 'repeat switch still creates only one manifest');
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
test('canonical MCP arriving after the first-turn grace keeps the fixed snapshot and emits no late reminder', () => {
|
|
211
|
-
const session = createdSession('legacy');
|
|
212
|
-
session.deferredInitialRefreshPending = true;
|
|
213
|
-
assert.equal(firstTurnGate(session, []), 'refresh-noop');
|
|
214
|
-
const before = JSON.stringify(session.tools);
|
|
215
|
-
let enqueued = null;
|
|
216
|
-
|
|
217
|
-
const result = reconcileDeferredMcpToolCatalog(session, [mcpTool2], {
|
|
218
|
-
enqueue: (text) => { enqueued = text; return true; },
|
|
219
|
-
});
|
|
220
|
-
assert.equal(result, null, 'canonical reconciliation keeps the create/grace snapshot fixed');
|
|
221
|
-
assert.equal(JSON.stringify(session.tools), before, 'post-grace MCP does not churn the canonical surface');
|
|
222
|
-
assert.equal(session.deferredToolCatalog.some((tool) => tool.name === mcpTool2.name), false);
|
|
223
|
-
assert.equal(enqueued, null, 'canonical provider emits no native late reminder');
|
|
224
|
-
assert.equal(systemContent(session).includes('<available-deferred-tools>'), false);
|
|
225
|
-
});
|