@xrkseek/harness 0.6.23 → 0.7.0-rc.1
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/@xrkseek/a2a/README.md +45 -45
- package/node_modules/@xrkseek/attachment/README.md +23 -23
- package/node_modules/@xrkseek/attachment-local/README.md +6 -6
- package/node_modules/@xrkseek/attachment-local/package.json +26 -26
- package/node_modules/@xrkseek/checkpoint/README.md +90 -90
- package/node_modules/@xrkseek/checkpoint/dist/store.d.ts +21 -0
- package/node_modules/@xrkseek/checkpoint/dist/store.d.ts.map +1 -1
- package/node_modules/@xrkseek/checkpoint/dist/store.js +33 -0
- package/node_modules/@xrkseek/checkpoint/dist/store.js.map +1 -1
- package/node_modules/@xrkseek/checkpoint/package.json +26 -26
- package/node_modules/@xrkseek/claude-code-mods/README.md +152 -0
- package/node_modules/@xrkseek/claude-code-mods/README.zh.md +172 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/api.d.ts +36 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/api.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/api.js +215 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/api.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/attach.d.ts +92 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/attach.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/attach.js +106 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/attach.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/chain.d.ts +105 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/chain.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/chain.js +324 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/chain.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/define-mod.d.ts +39 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/define-mod.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/define-mod.js +39 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/define-mod.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/elements.d.ts +96 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/elements.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/elements.js +171 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/elements.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/engine.d.ts +155 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/engine.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/engine.js +356 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/engine.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/host-ops.d.ts +72 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/host-ops.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/host-ops.js +603 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/host-ops.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/index.d.ts +112 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/index.js +654 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/matcher.d.ts +45 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/matcher.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/matcher.js +195 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/matcher.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/module.d.ts +74 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/module.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/module.js +167 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/module.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/native-import.d.ts +31 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/native-import.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/native-import.js +32 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/native-import.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/plugin-dir.d.ts +70 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/plugin-dir.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/plugin-dir.js +167 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/plugin-dir.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/product-agent.d.ts +57 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/product-agent.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/product-agent.js +85 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/product-agent.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/runtime.d.ts +117 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/runtime.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/runtime.js +252 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/runtime.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/storage-domain.d.ts +68 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/storage-domain.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/storage-domain.js +104 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/storage-domain.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/surfaces.d.ts +82 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/surfaces.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/surfaces.js +243 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/surfaces.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/testing.d.ts +157 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/testing.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/testing.js +266 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/testing.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/tool-names.d.ts +21 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/tool-names.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/tool-names.js +37 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/tool-names.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/types.d.ts +592 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/types.js +10 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/values.d.ts +58 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/values.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/values.js +75 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/values.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/working-directory.d.ts +45 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/working-directory.d.ts.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/working-directory.js +29 -0
- package/node_modules/@xrkseek/claude-code-mods/dist/working-directory.js.map +1 -0
- package/node_modules/@xrkseek/claude-code-mods/package.json +47 -0
- package/node_modules/@xrkseek/code-runtime/README.md +20 -20
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts +87 -0
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js +9 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/package.json +42 -42
- package/node_modules/@xrkseek/core-session/README.md +35 -35
- package/node_modules/@xrkseek/core-session/dist/compaction.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.js +62 -37
- package/node_modules/@xrkseek/core-session/dist/compaction.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/freeze.d.ts +6 -0
- package/node_modules/@xrkseek/core-session/dist/freeze.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/freeze.js +9 -0
- package/node_modules/@xrkseek/core-session/dist/freeze.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.d.ts +18 -2
- package/node_modules/@xrkseek/core-session/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.js +53 -12
- package/node_modules/@xrkseek/core-session/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/list-hints.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/list-hints.js +14 -4
- package/node_modules/@xrkseek/core-session/dist/list-hints.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/repair-open-turn.d.ts +8 -1
- package/node_modules/@xrkseek/core-session/dist/repair-open-turn.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/repair-open-turn.js +14 -4
- package/node_modules/@xrkseek/core-session/dist/repair-open-turn.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts +55 -0
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js +670 -92
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/store.d.ts +38 -0
- package/node_modules/@xrkseek/core-session/dist/store.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/package.json +34 -34
- package/node_modules/@xrkseek/core-system-prompt/README.md +14 -14
- package/node_modules/@xrkseek/core-tools/dist/session-query-prompt.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/session-query-prompt.js +3 -2
- package/node_modules/@xrkseek/core-tools/dist/session-query-prompt.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/std-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/std-tools.js +1 -13
- package/node_modules/@xrkseek/core-tools/dist/std-tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/README.md +14 -14
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js +402 -402
- package/node_modules/@xrkseek/exec-computer-use/package.json +26 -26
- package/node_modules/@xrkseek/exec-fs/README.md +12 -12
- package/node_modules/@xrkseek/exec-fs/dist/read-image.js +4 -4
- package/node_modules/@xrkseek/exec-image-gen/README.md +13 -13
- package/node_modules/@xrkseek/exec-image-gen/package.json +28 -28
- package/node_modules/@xrkseek/exec-memory/README.md +14 -14
- package/node_modules/@xrkseek/exec-memory/dist/live-fragment.d.ts +11 -0
- package/node_modules/@xrkseek/exec-memory/dist/live-fragment.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/live-fragment.js +40 -0
- package/node_modules/@xrkseek/exec-memory/dist/live-fragment.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/package.json +28 -28
- package/node_modules/@xrkseek/exec-sandbox/README.md +15 -15
- package/node_modules/@xrkseek/exec-ssh/README.md +19 -19
- package/node_modules/@xrkseek/exec-subprocess/README.md +10 -10
- package/node_modules/@xrkseek/exec-video-analyze/README.md +11 -11
- package/node_modules/@xrkseek/exec-video-analyze/package.json +26 -26
- package/node_modules/@xrkseek/exec-video-gen/README.md +26 -26
- package/node_modules/@xrkseek/exec-voice/README.md +25 -25
- package/node_modules/@xrkseek/exec-web/README.md +11 -11
- package/node_modules/@xrkseek/llm-deepseek/README.md +22 -22
- package/node_modules/@xrkseek/llm-deepseek/package.json +30 -30
- package/node_modules/@xrkseek/llm-registry/dist/index.d.ts +2 -2
- package/node_modules/@xrkseek/llm-registry/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/index.js +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/types.d.ts +29 -0
- package/node_modules/@xrkseek/llm-registry/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-registry/dist/types.js +21 -0
- package/node_modules/@xrkseek/llm-registry/dist/types.js.map +1 -1
- package/node_modules/@xrkseek/mcp/README.md +78 -78
- package/node_modules/@xrkseek/policy/README.md +18 -18
- package/node_modules/@xrkseek/policy/package.json +31 -31
- package/node_modules/@xrkseek/preset-harness/README.md +7 -7
- package/node_modules/@xrkseek/preset-harness/dist/mods.d.ts +68 -0
- package/node_modules/@xrkseek/preset-harness/dist/mods.d.ts.map +1 -0
- package/node_modules/@xrkseek/preset-harness/dist/mods.js +510 -0
- package/node_modules/@xrkseek/preset-harness/dist/mods.js.map +1 -0
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +12 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +73 -26
- package/node_modules/@xrkseek/preset-harness/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-harness/package.json +9 -8
- package/node_modules/@xrkseek/preset-minimal/README.md +6 -6
- package/node_modules/@xrkseek/preset-minimal/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/preset.js +9 -3
- package/node_modules/@xrkseek/preset-minimal/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-server/README.md +4 -4
- package/node_modules/@xrkseek/preset-server/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-server/dist/preset.js +2 -1
- package/node_modules/@xrkseek/preset-server/dist/preset.js.map +1 -1
- package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/protocol/README.md +34 -34
- package/node_modules/@xrkseek/protocol/dist/index.d.ts +3 -2
- package/node_modules/@xrkseek/protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.js +1 -0
- package/node_modules/@xrkseek/protocol/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts +12 -0
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.js +9 -0
- package/node_modules/@xrkseek/protocol/dist/json-schema.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-value.d.ts +25 -0
- package/node_modules/@xrkseek/protocol/dist/json-value.d.ts.map +1 -0
- package/node_modules/@xrkseek/protocol/dist/json-value.js +181 -0
- package/node_modules/@xrkseek/protocol/dist/json-value.js.map +1 -0
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts +21 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.js +1 -0
- package/node_modules/@xrkseek/protocol/dist/session-events.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.d.ts +4 -1
- package/node_modules/@xrkseek/protocol/dist/validate.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.js +28 -2
- package/node_modules/@xrkseek/protocol/dist/validate.js.map +1 -1
- package/node_modules/@xrkseek/schemastery/lib/index.cjs +597 -597
- package/node_modules/@xrkseek/schemastery/lib/index.mjs +597 -597
- package/node_modules/@xrkseek/schemastery/lib/types/index.d.ts +203 -203
- package/node_modules/@xrkseek/schemastery/src/index.d.ts +203 -203
- package/node_modules/@xrkseek/schemastery/src/index.ts +906 -906
- package/node_modules/@xrkseek/server-config/package.json +28 -28
- package/node_modules/@xrkseek/server-cron/README.md +12 -12
- package/node_modules/@xrkseek/server-cron/package.json +26 -26
- package/node_modules/@xrkseek/server-face/dist/adapt/history-paginate.d.ts +22 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/history-paginate.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/history-paginate.js +40 -3
- package/node_modules/@xrkseek/server-face/dist/adapt/history-paginate.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/subagent-notice.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/subagent-notice.js +2 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/subagent-notice.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.d.ts +1 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js +2 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.d.ts +5 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.js +7 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-ids.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/agent-home-boundary.d.ts +31 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home-boundary.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home-boundary.js +71 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home-boundary.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home.d.ts +18 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home.js +64 -0
- package/node_modules/@xrkseek/server-face/dist/agent-home.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-roster-store.d.ts +41 -2
- package/node_modules/@xrkseek/server-face/dist/agent-roster-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/agent-roster-store.js +200 -28
- package/node_modules/@xrkseek/server-face/dist/agent-roster-store.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/agent-team-roles.js +1 -1
- package/node_modules/@xrkseek/server-face/dist/agent-team-roles.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/attach-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/attach-http.js +9 -0
- package/node_modules/@xrkseek/server-face/dist/attach-http.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/boss-status-broadcast.d.ts +55 -0
- package/node_modules/@xrkseek/server-face/dist/boss-status-broadcast.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/boss-status-broadcast.js +167 -0
- package/node_modules/@xrkseek/server-face/dist/boss-status-broadcast.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/collab-board.d.ts +12 -0
- package/node_modules/@xrkseek/server-face/dist/collab-board.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/collab-board.js +101 -19
- package/node_modules/@xrkseek/server-face/dist/collab-board.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/context.d.ts +18 -0
- package/node_modules/@xrkseek/server-face/dist/context.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/dispatch.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/dispatch.js +4 -1
- package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.js +2 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/fork-cut.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/fork-cut.js +15 -3
- package/node_modules/@xrkseek/server-face/dist/fork-cut.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/fork-lineage.d.ts +7 -0
- package/node_modules/@xrkseek/server-face/dist/fork-lineage.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/fork-lineage.js +23 -8
- package/node_modules/@xrkseek/server-face/dist/fork-lineage.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/band.d.ts +7 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/band.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/band.js +40 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/band.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/checkpoint.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/checkpoint.js +81 -3
- package/node_modules/@xrkseek/server-face/dist/handlers/checkpoint.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.js +4 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js +236 -62
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/team.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/team.js +100 -9
- package/node_modules/@xrkseek/server-face/dist/handlers/team.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +5 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +5 -1
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/instruction-authority-fragment.d.ts +19 -0
- package/node_modules/@xrkseek/server-face/dist/instruction-authority-fragment.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/instruction-authority-fragment.js +28 -0
- package/node_modules/@xrkseek/server-face/dist/instruction-authority-fragment.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/log-cut-reset.d.ts +3 -0
- package/node_modules/@xrkseek/server-face/dist/log-cut-reset.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/log-cut-reset.js +22 -0
- package/node_modules/@xrkseek/server-face/dist/log-cut-reset.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/model-catalog.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/model-catalog.js +60 -5
- package/node_modules/@xrkseek/server-face/dist/model-catalog.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts +2 -2
- package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.js +2 -2
- package/node_modules/@xrkseek/server-face/dist/projections/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/list-checkpoint-cache.d.ts +50 -4
- package/node_modules/@xrkseek/server-face/dist/projections/list-checkpoint-cache.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/list-checkpoint-cache.js +167 -19
- package/node_modules/@xrkseek/server-face/dist/projections/list-checkpoint-cache.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.d.ts +21 -1
- package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.js +21 -1
- package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js +58 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.js +85 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/cost-usage.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.js +14 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/title.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/title.js +14 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/title.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/turn-outline.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/turn-outline.js +24 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/turn-outline.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +115 -15
- package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/seat-identity.d.ts +26 -0
- package/node_modules/@xrkseek/server-face/dist/seat-identity.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/seat-identity.js +137 -0
- package/node_modules/@xrkseek/server-face/dist/seat-identity.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/seat-titles.d.ts +29 -0
- package/node_modules/@xrkseek/server-face/dist/seat-titles.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/seat-titles.js +74 -0
- package/node_modules/@xrkseek/server-face/dist/seat-titles.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-capability.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-capability.js +9 -6
- package/node_modules/@xrkseek/server-face/dist/session-capability.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-event-window.d.ts +37 -0
- package/node_modules/@xrkseek/server-face/dist/session-event-window.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-event-window.js +88 -0
- package/node_modules/@xrkseek/server-face/dist/session-event-window.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-identity-store.d.ts +20 -0
- package/node_modules/@xrkseek/server-face/dist/session-identity-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-identity-store.js +82 -0
- package/node_modules/@xrkseek/server-face/dist/session-identity-store.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-posture.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-posture.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-posture.js +20 -5
- package/node_modules/@xrkseek/server-face/dist/session-posture.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-query-tools.d.ts +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-query-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-query-tools.js +172 -25
- package/node_modules/@xrkseek/server-face/dist/session-query-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-search.d.ts +20 -2
- package/node_modules/@xrkseek/server-face/dist/session-search.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-search.js +125 -19
- package/node_modules/@xrkseek/server-face/dist/session-search.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.js +143 -21
- package/node_modules/@xrkseek/server-face/dist/session-status.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-thread-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-thread-tools.js +5 -0
- package/node_modules/@xrkseek/server-face/dist/session-thread-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-tool-copy.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-tool-copy.js +2 -1
- package/node_modules/@xrkseek/server-face/dist/session-tool-copy.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js +10 -2
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js +48 -10
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-documents.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-documents.js +14 -4
- package/node_modules/@xrkseek/server-face/dist/skill-documents.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-list.d.ts +4 -2
- package/node_modules/@xrkseek/server-face/dist/skill-list.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-list.js +10 -4
- package/node_modules/@xrkseek/server-face/dist/skill-list.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-read.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-read.js +9 -2
- package/node_modules/@xrkseek/server-face/dist/skill-read.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-source.d.ts +2 -1
- package/node_modules/@xrkseek/server-face/dist/skill-source.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/skill-source.js +12 -2
- package/node_modules/@xrkseek/server-face/dist/skill-source.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/slash.d.ts +10 -1
- package/node_modules/@xrkseek/server-face/dist/slash.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/slash.js +97 -22
- package/node_modules/@xrkseek/server-face/dist/slash.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/status-snapshot-cache.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/status-snapshot-cache.js +53 -0
- package/node_modules/@xrkseek/server-face/dist/status-snapshot-cache.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js +7 -2
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/types.d.ts +23 -0
- package/node_modules/@xrkseek/server-face/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.d.ts +6 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.js +17 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-checkpoint.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-face.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js +19 -14
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-member-look.d.ts +22 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-member-look.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-member-look.js +35 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-member-look.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-orchestrate-tools.d.ts +3 -2
- package/node_modules/@xrkseek/server-face/dist/workspace-orchestrate-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-orchestrate-tools.js +74 -57
- package/node_modules/@xrkseek/server-face/dist/workspace-orchestrate-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts +31 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.js +109 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-store.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-store.js +7 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-store.js.map +1 -1
- package/node_modules/@xrkseek/server-face/package.json +60 -60
- package/node_modules/@xrkseek/server-host/dist/index.d.ts +37 -6
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +112 -23
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/log.d.ts +6 -0
- package/node_modules/@xrkseek/server-host/dist/log.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js +17 -2
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/standing-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/standing-tools.js +3 -3
- package/node_modules/@xrkseek/server-host/dist/standing-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-host/package.json +75 -75
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-tool-pre.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-tool-pre.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.js +188 -188
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-auth.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-auth.js +292 -24
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-auth.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-gate.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-gate.js +12 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access-gate.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts +16 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js +47 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mobile-access.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.js +53 -53
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/mobile-gate-kit.d.ts +9 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/mobile-gate-kit.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/mobile-gate-kit.js +39 -20
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/mobile-gate-kit.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.d.ts +2 -1
- package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.js +2 -1
- package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sunflower-free/ensure.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/sunflower-free/ensure.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/sunflower-free/ensure.js +85 -0
- package/node_modules/@xrkseek/server-http/dist/sunflower-free/ensure.js.map +1 -0
- package/node_modules/@xrkseek/server-http/package.json +72 -72
- package/node_modules/@xrkseek/server-loader/dist/load.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.js +132 -0
- package/node_modules/@xrkseek/server-loader/dist/load.js.map +1 -1
- package/node_modules/@xrkseek/session-projection/README.md +26 -26
- package/node_modules/@xrkseek/session-projection/dist/index.d.ts +31 -2
- package/node_modules/@xrkseek/session-projection/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/session-projection/dist/index.js +135 -19
- package/node_modules/@xrkseek/session-projection/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/session-telemetry/README.md +11 -11
- package/node_modules/@xrkseek/session-telemetry/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/session-telemetry/dist/index.js +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/session-telemetry/dist/redact.d.ts +14 -0
- package/node_modules/@xrkseek/session-telemetry/dist/redact.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/redact.js +58 -0
- package/node_modules/@xrkseek/session-telemetry/dist/redact.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.d.ts +7 -0
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.js +43 -12
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.js.map +1 -1
- package/node_modules/@xrkseek/session-telemetry/package.json +27 -27
- package/node_modules/@xrkseek/workspace/dist/durable-inject.d.ts +13 -0
- package/node_modules/@xrkseek/workspace/dist/durable-inject.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/durable-inject.js +40 -4
- package/node_modules/@xrkseek/workspace/dist/durable-inject.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.d.ts +10 -9
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.js +67 -19
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.d.ts +19 -20
- package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.js +43 -20
- package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.d.ts +2 -0
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.js +23 -12
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-sources.d.ts +7 -4
- package/node_modules/@xrkseek/workspace/dist/inject-sources.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-sources.js +10 -0
- package/node_modules/@xrkseek/workspace/dist/inject-sources.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/instruction-authority.d.ts +27 -0
- package/node_modules/@xrkseek/workspace/dist/instruction-authority.d.ts.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/instruction-authority.js +78 -0
- package/node_modules/@xrkseek/workspace/dist/instruction-authority.js.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.d.ts +7 -0
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.js +4 -2
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-tools.js +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-tools.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skills.d.ts +13 -1
- package/node_modules/@xrkseek/workspace/dist/skills.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skills.js +45 -5
- package/node_modules/@xrkseek/workspace/dist/skills.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/standing-skill-dirs.d.ts +26 -0
- package/node_modules/@xrkseek/workspace/dist/standing-skill-dirs.d.ts.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/standing-skill-dirs.js +80 -0
- package/node_modules/@xrkseek/workspace/dist/standing-skill-dirs.js.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts +7 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js +21 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js.map +1 -1
- package/node_modules/@xrkseek/workspace/package.json +28 -28
- package/node_modules/@xrkseek/xrk-agent/lib/index.js +1 -793
- package/node_modules/@xrkseek/xrk-agent/lib/invariant.js +1 -23
- package/node_modules/@xrkseek/xrk-attachment/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-attachment/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-attachment/lib/types/brand.js +10 -0
- package/node_modules/@xrkseek/xrk-attachment/lib/types/error.js +48 -0
- package/node_modules/@xrkseek/xrk-attachment/lib/types/index.js +42 -0
- package/node_modules/@xrkseek/xrk-attachment/lib/types/invariant.js +16 -0
- package/node_modules/@xrkseek/xrk-attachment/lib/types/types.d.ts +6 -0
- package/node_modules/@xrkseek/xrk-attachment/lib/types/types.js +3 -0
- package/node_modules/@xrkseek/xrk-attachment/package.json +1 -0
- package/node_modules/@xrkseek/xrk-brand/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-brand/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-brand/lib/types/index.js +24 -0
- package/node_modules/@xrkseek/xrk-brand/lib/types/invariant.js +22 -0
- package/node_modules/@xrkseek/xrk-brand/package.json +1 -0
- package/node_modules/@xrkseek/xrk-commands/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-commands/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-file-reference-local/README.md +46 -46
- package/node_modules/@xrkseek/xrk-file-reference-local/README.zh.md +46 -46
- package/node_modules/@xrkseek/xrk-file-reference-local/package.json +30 -30
- package/node_modules/@xrkseek/xrk-invariants/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-invariants/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-invariants/lib/types/index.js +148 -0
- package/node_modules/@xrkseek/xrk-invariants/lib/types/invariant.js +22 -0
- package/node_modules/@xrkseek/xrk-invariants/package.json +1 -0
- package/node_modules/@xrkseek/xrk-llm/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-llm/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-llm/lib/types/index.js +4 -0
- package/node_modules/@xrkseek/xrk-llm/lib/types/types.d.ts +11 -0
- package/node_modules/@xrkseek/xrk-permission-presets/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-permission-presets/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-scope/lib/index.js +1 -0
- package/node_modules/@xrkseek/xrk-scope/lib/types/index.d.ts +129 -0
- package/node_modules/@xrkseek/xrk-scope/lib/types/index.js +243 -0
- package/node_modules/@xrkseek/xrk-scope/package.json +34 -0
- package/node_modules/@xrkseek/xrk-session/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-session/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-session-projection/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-session-projection/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-session-reference/README.md +50 -50
- package/node_modules/@xrkseek/xrk-session-reference/README.zh.md +50 -50
- package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.js +13 -13
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js +2 -2
- package/node_modules/@xrkseek/xrk-session-reference/package.json +56 -56
- package/node_modules/@xrkseek/xrk-settings/lib/index.js +1 -638
- package/node_modules/@xrkseek/xrk-settings/lib/invariant.js +1 -67
- package/node_modules/@xrkseek/xrk-system-prompt/package.json +15 -15
- package/node_modules/@xrkseek/xrk-system-prompt/src/index.ts +144 -144
- package/node_modules/@xrkseek/xrk-token-meter/README.i18n.yaml +6 -0
- package/node_modules/@xrkseek/xrk-token-meter/README.md +68 -0
- package/node_modules/@xrkseek/xrk-token-meter/README.zh.md +68 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/index.js +1 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/breakdown-projection.d.ts +29 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/breakdown-projection.js +56 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/client.d.ts +9 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/client.js +7 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/estimate.d.ts +42 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/estimate.js +79 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/index.d.ts +62 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/index.js +250 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/invariant.d.ts +16 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/invariant.js +30 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/projection.d.ts +74 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/projection.js +7 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/surface-fold.d.ts +38 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/surface-fold.js +47 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/surface-projection.d.ts +59 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/surface-projection.js +66 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/turn-usage.d.ts +33 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/turn-usage.js +247 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/types.d.ts +44 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/types.js +7 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/usage-projection.d.ts +64 -0
- package/node_modules/@xrkseek/xrk-token-meter/lib/types/usage-projection.js +161 -0
- package/node_modules/@xrkseek/xrk-token-meter/package.json +57 -0
- package/node_modules/@xrkseek/xrk-tools/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-tools/lib/invariant.js +1 -1
- package/node_modules/@xrkseek/xrk-tools/src/presentation.ts +39 -39
- package/node_modules/@xrkseek/xrk-typert-protocol/lib/index.js +1 -1
- package/node_modules/@xrkseek/xrk-typert-protocol/lib/invariant.js +1 -0
- package/node_modules/@xrkseek/xrk-workflow/README.md +73 -73
- package/node_modules/@xrkseek/xrk-workflow/README.zh.md +72 -72
- package/node_modules/@xrkseek/xrk-workflow/lib/types/index.js +118 -118
- package/package.json +7 -1
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.d.ts +0 -14
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.d.ts.map +0 -1
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.js +0 -21
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.js.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.mts +0 -3734
- package/node_modules/@xrkseek/server-face/dist/index.d.mts.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/index.mjs +0 -22085
- package/node_modules/@xrkseek/server-face/dist/index.mjs.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.d.ts +0 -51
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.js +0 -104
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.js.map +0 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.d.ts +0 -2
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.js +0 -98
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.js.map +0 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.d.ts +0 -18
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.js +0 -141
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.js.map +0 -1
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.d.ts +0 -30
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.js +0 -96
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.js.map +0 -1
|
@@ -94,11 +94,96 @@ function projectionTotals(byProviderModel) {
|
|
|
94
94
|
byProviderModel,
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
+
function parseBuckets(value, label) {
|
|
98
|
+
if (!value || typeof value !== "object") {
|
|
99
|
+
throw new Error(`${label} must be an object`);
|
|
100
|
+
}
|
|
101
|
+
const v = value;
|
|
102
|
+
const num = (k) => {
|
|
103
|
+
const n = v[k];
|
|
104
|
+
if (typeof n !== "number" || !Number.isFinite(n)) {
|
|
105
|
+
throw new Error(`${label}.${k} must be a finite number`);
|
|
106
|
+
}
|
|
107
|
+
return n;
|
|
108
|
+
};
|
|
109
|
+
return {
|
|
110
|
+
input: num("input"),
|
|
111
|
+
output: num("output"),
|
|
112
|
+
cacheRead: num("cacheRead"),
|
|
113
|
+
cacheWrite: num("cacheWrite"),
|
|
114
|
+
reasoning: num("reasoning"),
|
|
115
|
+
cost: num("cost"),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function parseBucketMap(value, label) {
|
|
119
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
120
|
+
throw new Error(`${label} must be an object`);
|
|
121
|
+
}
|
|
122
|
+
const out = {};
|
|
123
|
+
for (const [key, buckets] of Object.entries(value)) {
|
|
124
|
+
out[key] = parseBuckets(buckets, `${label}.${key}`);
|
|
125
|
+
}
|
|
126
|
+
return out;
|
|
127
|
+
}
|
|
128
|
+
function parseCostUsageProjection(value) {
|
|
129
|
+
const totals = parseBuckets(value, "costUsage.state.totals");
|
|
130
|
+
if (!value || typeof value !== "object") {
|
|
131
|
+
throw new Error("costUsage.state.totals must be an object");
|
|
132
|
+
}
|
|
133
|
+
const v = value;
|
|
134
|
+
return {
|
|
135
|
+
...totals,
|
|
136
|
+
byModel: parseBucketMap(v.byModel ?? {}, "costUsage.state.totals.byModel"),
|
|
137
|
+
byProviderModel: parseBucketMap(v.byProviderModel ?? {}, "costUsage.state.totals.byProviderModel"),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
function parseRoute(value) {
|
|
141
|
+
if (value === null)
|
|
142
|
+
return null;
|
|
143
|
+
if (!value || typeof value !== "object") {
|
|
144
|
+
throw new Error("costUsage.state.route must be object | null");
|
|
145
|
+
}
|
|
146
|
+
const v = value;
|
|
147
|
+
if (typeof v.provider !== "string" || typeof v.model !== "string") {
|
|
148
|
+
throw new Error("costUsage.state.route needs string provider/model");
|
|
149
|
+
}
|
|
150
|
+
return { provider: v.provider, model: v.model };
|
|
151
|
+
}
|
|
152
|
+
function parseLast(value) {
|
|
153
|
+
if (value === null)
|
|
154
|
+
return null;
|
|
155
|
+
if (!value || typeof value !== "object") {
|
|
156
|
+
throw new Error("costUsage.state.last must be object | null");
|
|
157
|
+
}
|
|
158
|
+
const v = value;
|
|
159
|
+
if (typeof v.turnId !== "string" || typeof v.stepId !== "string") {
|
|
160
|
+
throw new Error("costUsage.state.last needs string turnId/stepId");
|
|
161
|
+
}
|
|
162
|
+
if (typeof v.modelKey !== "string") {
|
|
163
|
+
throw new Error("costUsage.state.last.modelKey must be a string");
|
|
164
|
+
}
|
|
165
|
+
return {
|
|
166
|
+
turnId: v.turnId,
|
|
167
|
+
stepId: v.stepId,
|
|
168
|
+
modelKey: v.modelKey,
|
|
169
|
+
buckets: parseBuckets(v.buckets, "costUsage.state.last.buckets"),
|
|
170
|
+
};
|
|
171
|
+
}
|
|
97
172
|
export function createCostUsageProjectionUnit() {
|
|
98
173
|
return {
|
|
99
174
|
key: "costUsage",
|
|
100
175
|
stateVersion: 1,
|
|
101
176
|
init: () => ({ totals: ZERO, last: null, route: null }),
|
|
177
|
+
parseState(value) {
|
|
178
|
+
if (!value || typeof value !== "object") {
|
|
179
|
+
throw new Error("costUsage state must be an object");
|
|
180
|
+
}
|
|
181
|
+
const v = value;
|
|
182
|
+
const totals = parseCostUsageProjection(v.totals);
|
|
183
|
+
const route = parseRoute(v.route);
|
|
184
|
+
const last = parseLast(v.last);
|
|
185
|
+
return { totals, route, last };
|
|
186
|
+
},
|
|
102
187
|
apply(state, event) {
|
|
103
188
|
if (event.type === "request/header") {
|
|
104
189
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cost-usage.js","sourceRoot":"","sources":["../../../src/projections/units/cost-usage.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,mBAAmB,EAAqB,MAAM,mBAAmB,CAAC;AAE3E,OAAO,EACL,2BAA2B,EAC3B,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AAiCrC,MAAM,YAAY,GAAqB;IACrC,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CAAC;IACZ,UAAU,EAAE,CAAC;IACb,SAAS,EAAE,CAAC;IACZ,IAAI,EAAE,CAAC;CACR,CAAC;AAEF,MAAM,IAAI,GAAwB;IAChC,GAAG,YAAY;IACf,OAAO,EAAE,EAAE;IACX,eAAe,EAAE,EAAE;CACpB,CAAC;AAEF,SAAS,iBAAiB,CACxB,KAAiD;IAEjD,IAAI,KAAK;QAAE,OAAO,GAAG,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;IACrD,OAAO,iBAAiB,CA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WAAW,CAAC;oBAC3B,UAAU,EAAE,GAAG,CAAC,YAAY,CAAC;oBAC7B,SAAS,EAAE,GAAG,CAAC,WAAW,CAAC;oBAC3B,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC;oBACjB,OAAO,EACL,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAK,QAAQ;wBACxC,CAAC,CAAE,CAAC,CAAC,OAA4C;wBACjD,CAAC,CAAC,EAAE;oBACR,eAAe,EACb,CAAC,CAAC,eAAe,IAAI,OAAO,CAAC,CAAC,eAAe,KAAK,QAAQ;wBACxD,CAAC,CAAE,CAAC,CAAC,eAAoD;wBACzD,CAAC,CAAC,EAAE;iBACT,CAAC;YACJ,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
|
package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-list-metadata.d.ts","sourceRoot":"","sources":["../../../src/projections/units/session-list-metadata.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,6BAA6B,IAAI,oBAAoB,CACnE,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,CACpB,
|
|
1
|
+
{"version":3,"file":"session-list-metadata.d.ts","sourceRoot":"","sources":["../../../src/projections/units/session-list-metadata.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,6BAA6B,IAAI,oBAAoB,CACnE,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,CACpB,CAyDA"}
|
|
@@ -4,6 +4,19 @@ export function createSessionListMetadataUnit() {
|
|
|
4
4
|
key: "sessionListMetadata",
|
|
5
5
|
stateVersion: 1,
|
|
6
6
|
init: () => ({ blank: true, lastPromptAt: null }),
|
|
7
|
+
parseState(value) {
|
|
8
|
+
if (value === null || typeof value !== "object") {
|
|
9
|
+
throw new Error("sessionListMetadata state must be an object");
|
|
10
|
+
}
|
|
11
|
+
const v = value;
|
|
12
|
+
if (typeof v.blank !== "boolean") {
|
|
13
|
+
throw new Error("sessionListMetadata.state.blank must be boolean");
|
|
14
|
+
}
|
|
15
|
+
if (!(v.lastPromptAt === null || typeof v.lastPromptAt === "number")) {
|
|
16
|
+
throw new Error("sessionListMetadata.state.lastPromptAt must be number|null");
|
|
17
|
+
}
|
|
18
|
+
return { blank: v.blank, lastPromptAt: v.lastPromptAt };
|
|
19
|
+
},
|
|
7
20
|
apply(state, event) {
|
|
8
21
|
// Leave blank on the first agent turn *or* slash command so Hero can
|
|
9
22
|
// render durable command cards (/mcp, /status, …) without a prompt.
|
|
@@ -20,6 +33,7 @@ export function createSessionListMetadataUnit() {
|
|
|
20
33
|
return { blank, lastPromptAt };
|
|
21
34
|
},
|
|
22
35
|
wire: {
|
|
36
|
+
summary: true,
|
|
23
37
|
view: (state) => state,
|
|
24
38
|
parse(value) {
|
|
25
39
|
if (value === null || typeof value !== "object") {
|
package/node_modules/@xrkseek/server-face/dist/projections/units/session-list-metadata.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-list-metadata.js","sourceRoot":"","sources":["../../../src/projections/units/session-list-metadata.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAM7D,MAAM,UAAU,6BAA6B;IAK3C,OAAO;QACL,GAAG,EAAE,qBAAqB;QAC1B,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;QACjD,KAAK,CAAC,KAAK,EAAE,KAAmB;YAC9B,qEAAqE;YACrE,oEAAoE;YACpE,MAAM,KAAK,GACT,KAAK,CAAC,KAAK;gBACX,KAAK,CAAC,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AC1B;AAED,wBAAgB,yBAAyB,IAAI,oBAAoB,CAC/D,OAAO,EACP,oBAAoB,EACpB,MAAM,GAAG,IAAI,CACd,
|
|
1
|
+
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../src/projections/units/title.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,gEAAgE;IAChE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,yBAAyB,IAAI,oBAAoB,CAC/D,OAAO,EACP,oBAAoB,EACpB,MAAM,GAAG,IAAI,CACd,CAqCA"}
|
|
@@ -3,6 +3,19 @@ export function createTitleProjectionUnit() {
|
|
|
3
3
|
key: "title",
|
|
4
4
|
stateVersion: 1,
|
|
5
5
|
init: () => ({ title: null, pinned: false }),
|
|
6
|
+
parseState(value) {
|
|
7
|
+
if (!value || typeof value !== "object") {
|
|
8
|
+
throw new Error("title state must be an object");
|
|
9
|
+
}
|
|
10
|
+
const v = value;
|
|
11
|
+
if (!(v.title === null || typeof v.title === "string")) {
|
|
12
|
+
throw new Error("title.state.title must be string | null");
|
|
13
|
+
}
|
|
14
|
+
if (typeof v.pinned !== "boolean") {
|
|
15
|
+
throw new Error("title.state.pinned must be boolean");
|
|
16
|
+
}
|
|
17
|
+
return { title: v.title, pinned: v.pinned };
|
|
18
|
+
},
|
|
6
19
|
apply(state, event) {
|
|
7
20
|
if (event.type !== "session/title")
|
|
8
21
|
return state;
|
|
@@ -16,6 +29,7 @@ export function createTitleProjectionUnit() {
|
|
|
16
29
|
return { title: event.title, pinned: false };
|
|
17
30
|
},
|
|
18
31
|
wire: {
|
|
32
|
+
summary: true,
|
|
19
33
|
view: (state) => state.title,
|
|
20
34
|
parse(value) {
|
|
21
35
|
if (value === null)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.js","sourceRoot":"","sources":["../../../src/projections/units/title.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,yBAAyB;IAKvC,OAAO;QACL,GAAG,EAAE,OAAO;QACZ,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;QAC5C,KAAK,CAAC,KAAK,EAAE,KAAmB;YAC9B,IAAI,KAAK,CAAC,IAAI,KAAK,eAAe;gBAAE,OAAO,KAAK,CAAC;YACjD,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;gBACjC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;YAC9C,CAAC;YACD,IAAI,KAAK,CAAC,MAAM;gBAAE,OAAO,KAAK,CAAC;YAC/B,IAAI,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK;gBAAE,OAAO,KAAK,CAAC;YAC9C,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;QAC/C,CAAC;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;YAC5B,KAAK,CAAC,KAAc;gBAClB,IAAI,KAAK,KAAK,IAAI;oBAAE,OAAO,IAAI,CAAC;gBAChC,IAAI,OAAO,KAAK,KAAK,QAAQ;oBAAE,OAAO,KAAK,CAAC;gBAC5C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;YAC5D,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"title.js","sourceRoot":"","sources":["../../../src/projections/units/title.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,yBAAyB;IAKvC,OAAO;QACL,GAAG,EAAE,OAAO;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;;OAMG;IACH,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC;AAkED,qEAAqE;AACrE,wBAAgB,+BAA+B,IAAI,oBAAoB,CACrE,aAAa,EACb,gBAAgB,EAChB,SAAS,gBAAgB,EAAE,CAC5B,CA+GA"}
|
|
@@ -91,6 +91,30 @@ export function createTurnOutlineProjectionUnit() {
|
|
|
91
91
|
// Sharing one instance lets a streaming session's draft bleed into the
|
|
92
92
|
// next session's first `user/message`, which forwards the field.
|
|
93
93
|
init: () => ({ turns: [], draft: "", seenTurnIds: [] }),
|
|
94
|
+
parseState(value) {
|
|
95
|
+
if (!value || typeof value !== "object") {
|
|
96
|
+
throw new Error("turnOutline state must be an object");
|
|
97
|
+
}
|
|
98
|
+
const v = value;
|
|
99
|
+
if (!Array.isArray(v.turns)) {
|
|
100
|
+
throw new Error("turnOutline.state.turns must be an array");
|
|
101
|
+
}
|
|
102
|
+
if (typeof v.draft !== "string") {
|
|
103
|
+
throw new Error("turnOutline.state.draft must be a string");
|
|
104
|
+
}
|
|
105
|
+
if (!Array.isArray(v.seenTurnIds)) {
|
|
106
|
+
throw new Error("turnOutline.state.seenTurnIds must be an array");
|
|
107
|
+
}
|
|
108
|
+
const turns = v.turns.map(parseFoldEntry);
|
|
109
|
+
const seenTurnIds = [];
|
|
110
|
+
for (const id of v.seenTurnIds) {
|
|
111
|
+
if (typeof id !== "string" || id === "") {
|
|
112
|
+
throw new Error("turnOutline.state.seenTurnIds must be non-empty strings");
|
|
113
|
+
}
|
|
114
|
+
seenTurnIds.push(id);
|
|
115
|
+
}
|
|
116
|
+
return { turns, draft: v.draft, seenTurnIds };
|
|
117
|
+
},
|
|
94
118
|
apply(state, event, seq) {
|
|
95
119
|
switch (event.type) {
|
|
96
120
|
case "turn/start": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"turn-outline.js","sourceRoot":"","sources":["../../../src/projections/units/turn-outline.ts"],"names":[],"mappings":"AAUA,OAA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CAAC;oBACJ,CAAC;oBACD,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC;oBACtB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACrB,CAAC;gBACD,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC;YACtC,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AttachmentStore } from "@xrkseek/attachment";
|
|
2
2
|
import { type SessionStore } from "@xrkseek/core-session";
|
|
3
3
|
import type { AgentHandle } from "@xrkseek/core-agent";
|
|
4
|
-
import type
|
|
4
|
+
import { type ToolRegistry } from "@xrkseek/core-tools";
|
|
5
5
|
import { type ProviderRegistry } from "@xrkseek/llm-registry";
|
|
6
6
|
import type { PolicyEngine } from "@xrkseek/policy";
|
|
7
7
|
import type { ShellService } from "@xrkseek/exec-shell";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAQL,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAQL,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY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M,CAAC;IAC1C,yDAAyD;IACzD,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;CAC/B;AAmBD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,WAAW,CAsyChF"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { forkSession, listPendingAdmits, listSessionsWithPendingAdmits, newSession, readSessionEvents, sessionEventCount, } from "@xrkseek/core-session";
|
|
3
|
+
import { EXIT_PLAN_MODE } from "@xrkseek/core-tools";
|
|
3
4
|
import { createProviderRegistry, } from "@xrkseek/llm-registry";
|
|
4
5
|
import { contentHasImage, flattenText, isHumanUserMessageSource, newUserMessageId, } from "@xrkseek/protocol";
|
|
5
6
|
import { createFaceBus } from "./bus.js";
|
|
6
7
|
import { createFacePermissionAutoGate } from "./permission-auto.js";
|
|
7
8
|
import { createFaceSeqClock } from "./seq.js";
|
|
8
|
-
import { createFaceListProjectionCache, createFaceProjectionRegistry, FaceTitleController, installDefaultFaceProjections, } from "./projections/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { createFaceListProjectionCache, createFaceProjectionRegistry, FaceTitleController, installDefaultFaceProjections, listProjectionIdentityFromHints, } from "./projections/index.js";
|
|
10
|
+
import { sessionListProjectionKeys } from "./projections/snapshot-keys.js";
|
|
10
11
|
import { FaceInboxWireMaps, FaceToolArgMaps, toMuxSessionEvent, routeFromRequestHeader, FACE_USAGE_ROUTE_PLACEHOLDER } from "./adapt/index.js";
|
|
11
12
|
import { formatJobCompletionNotice, isSettledJobStatus, jobViews, JOB_COMPLETION_MAX_WAKES, } from "./adapt/job-view.js";
|
|
12
13
|
import { wireJobSessionJournal } from "./job-session-journal.js";
|
|
@@ -20,7 +21,7 @@ import { hydrateFaceSettingsDocument } from "./settings-document.js";
|
|
|
20
21
|
import { FaceApprovalBroker, approvalRequestedFrame, approvalResolvedFrame } from "./approvals.js";
|
|
21
22
|
import { SessionPathAllowlist } from "./path-allowlist.js";
|
|
22
23
|
import { SessionToolDisclosure } from "./tool-disclosure.js";
|
|
23
|
-
import { FaceQuestionBroker, bindAskUserTool,
|
|
24
|
+
import { FaceQuestionBroker, bindAskUserTool, formatLateQuestionSteer, formatQuestionAnswer, questionRequestedFrame, questionResolvedFrame, } from "./questions.js";
|
|
24
25
|
import { bindSettingsTools } from "./settings-agent-tools.js";
|
|
25
26
|
import { bindSessionQueryTools } from "./session-query-tools.js";
|
|
26
27
|
import { bindGoalTools } from "./goal-tools.js";
|
|
@@ -34,6 +35,7 @@ import { bindPresenceTools } from "./presence-tools.js";
|
|
|
34
35
|
import { bindProposeSkillTool } from "./propose-skill.js";
|
|
35
36
|
import { resolveSessionCwd } from "./session-cwd.js";
|
|
36
37
|
import { FaceWorkspaceRegistry } from "./workspace-registry.js";
|
|
38
|
+
import { FaceSessionIdentityStore, sessionIdentitiesPath, } from "./session-identity-store.js";
|
|
37
39
|
import { hydrateWorkspaceRegistry, persistWorkspaceDoc, } from "./workspace-store.js";
|
|
38
40
|
import { IM_WORKSPACE_ID } from "./im-workspace.js";
|
|
39
41
|
import { bindImWorkspaceTools } from "./im-workspace-tools.js";
|
|
@@ -114,9 +116,15 @@ export function createFaceRuntime(options) {
|
|
|
114
116
|
const rememberListProjections = (sessionId) => {
|
|
115
117
|
// Only the list-tier keys are cached; asking `checkpoint` for all ~17 units
|
|
116
118
|
// folded the whole log for units that were never materialized.
|
|
119
|
+
const hints = store.listHints?.(sessionId) ?? {
|
|
120
|
+
lastEventTs: null,
|
|
121
|
+
eventCount: 0,
|
|
122
|
+
hasTurnStart: false,
|
|
123
|
+
hasCommandRun: false,
|
|
124
|
+
};
|
|
117
125
|
listProjectionCache.remember(sessionId, projections.checkpoint(sessionId, {
|
|
118
|
-
keys: [...
|
|
119
|
-
}));
|
|
126
|
+
keys: [...sessionListProjectionKeys(projections)],
|
|
127
|
+
}), listProjectionIdentityFromHints(hints));
|
|
120
128
|
};
|
|
121
129
|
const rpcAdmitMap = new Map();
|
|
122
130
|
const admitRpcMap = new Map();
|
|
@@ -197,6 +205,7 @@ export function createFaceRuntime(options) {
|
|
|
197
205
|
? path.join(path.dirname(options.subagentPersistPath), "fork-lineage.json")
|
|
198
206
|
: undefined);
|
|
199
207
|
const agentRoster = new FaceAgentRosterStore(productHome);
|
|
208
|
+
const sessionIdentities = new FaceSessionIdentityStore(sessionIdentitiesPath(productHome));
|
|
200
209
|
const presence = new FacePresenceStore();
|
|
201
210
|
const wireIds = new FaceWireIdMaps();
|
|
202
211
|
const toolArgMaps = new FaceToolArgMaps();
|
|
@@ -246,6 +255,10 @@ export function createFaceRuntime(options) {
|
|
|
246
255
|
const noticeAdmitIds = new Set();
|
|
247
256
|
/** Optimistic Stop: Status turnActive false while drain join still held. */
|
|
248
257
|
const turnUiIdle = new Set();
|
|
258
|
+
/** Claude Code mods AbovePrompt watch aborts, by session. */
|
|
259
|
+
const bandAborts = new Map();
|
|
260
|
+
const rememberedBands = new Map();
|
|
261
|
+
const lastBand = new Map();
|
|
249
262
|
const hasJobsRegistry = () => options.jobs !== undefined || rememberedJobs.size > 0;
|
|
250
263
|
const listJobViews = (sessionId) => {
|
|
251
264
|
const owned = rememberedJobs.get(sessionId)?.list() ?? [];
|
|
@@ -285,6 +298,50 @@ export function createFaceRuntime(options) {
|
|
|
285
298
|
deliverOwnedJobCompletions(sessionId, agent);
|
|
286
299
|
}));
|
|
287
300
|
};
|
|
301
|
+
const publishBand = (sessionId, snap) => {
|
|
302
|
+
lastBand.set(sessionId, snap);
|
|
303
|
+
bus.publishMux({
|
|
304
|
+
type: "session/band",
|
|
305
|
+
sessionId,
|
|
306
|
+
generation: snap.generation,
|
|
307
|
+
tree: snap.tree,
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
const bindAgentBand = (sessionId, agent) => {
|
|
311
|
+
bandAborts.get(sessionId)?.abort();
|
|
312
|
+
bandAborts.delete(sessionId);
|
|
313
|
+
rememberedBands.delete(sessionId);
|
|
314
|
+
if (!agent.pluginBand) {
|
|
315
|
+
lastBand.delete(sessionId);
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
rememberedBands.set(sessionId, agent.pluginBand);
|
|
319
|
+
const ac = new AbortController();
|
|
320
|
+
bandAborts.set(sessionId, ac);
|
|
321
|
+
const source = agent.pluginBand;
|
|
322
|
+
void (async () => {
|
|
323
|
+
try {
|
|
324
|
+
for await (const snap of source.watch(ac.signal)) {
|
|
325
|
+
if (ac.signal.aborted)
|
|
326
|
+
break;
|
|
327
|
+
publishBand(sessionId, snap);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
catch {
|
|
331
|
+
// Aborted or agent disposed mid-watch.
|
|
332
|
+
}
|
|
333
|
+
})();
|
|
334
|
+
};
|
|
335
|
+
const bandSnapshotFor = (sessionId) => lastBand.get(sessionId);
|
|
336
|
+
const pressBand = async (sessionId, generation, actionId) => {
|
|
337
|
+
const source = rememberedBands.get(sessionId) ??
|
|
338
|
+
(await resolveAgent(sessionId).catch(() => undefined))?.pluginBand;
|
|
339
|
+
if (source === undefined)
|
|
340
|
+
return undefined;
|
|
341
|
+
const snap = await source.press(generation, actionId);
|
|
342
|
+
publishBand(sessionId, snap);
|
|
343
|
+
return snap;
|
|
344
|
+
};
|
|
288
345
|
/**
|
|
289
346
|
* DSH tool-jobs `onJobDone`: idle + wake budget → steer + wake;
|
|
290
347
|
* busy → steer (+ wake, promotes at next tool-step / turn boundary);
|
|
@@ -529,9 +586,9 @@ export function createFaceRuntime(options) {
|
|
|
529
586
|
},
|
|
530
587
|
});
|
|
531
588
|
/**
|
|
532
|
-
* Registries whose Face tools are already bound. `ask_user`
|
|
533
|
-
*
|
|
534
|
-
*
|
|
589
|
+
* Registries whose Face tools are already bound. `ask_user`
|
|
590
|
+
* rebinds through `replace()` (new object identity), so a second bind
|
|
591
|
+
* inside one turn would make `materializeTools.settle` answer
|
|
535
592
|
* "Stale tool call" for a call the snapshot already captured. One bind per
|
|
536
593
|
* registry; the rest of the binders are keep-first anyway.
|
|
537
594
|
*/
|
|
@@ -564,6 +621,8 @@ export function createFaceRuntime(options) {
|
|
|
564
621
|
}
|
|
565
622
|
sessionToolsBound.add(agent.tools);
|
|
566
623
|
rememberedTools.set(sessionId, agent.tools);
|
|
624
|
+
// Product plan mode retired — drop std exit_plan_mode from every surface.
|
|
625
|
+
agent.tools.unregister(EXIT_PLAN_MODE);
|
|
567
626
|
// Tool surfaces:
|
|
568
627
|
// - IM: channel + roster + orchestrate + thread (pin/mail peers) + search
|
|
569
628
|
// (Host binds im_send + subagent→coding). No canvas / ask_user.
|
|
@@ -613,8 +672,8 @@ export function createFaceRuntime(options) {
|
|
|
613
672
|
bindAskUserTool(agent.tools, (qs, signal, opts) => questions
|
|
614
673
|
.ask(sessionId, qs, signal, opts)
|
|
615
674
|
.then(formatQuestionAnswer));
|
|
616
|
-
|
|
617
|
-
|
|
675
|
+
// Coding 经理席 stays tool-light: settings / workspace mint·delete live on 向阳.
|
|
676
|
+
// (奇创 branch above still binds settings_*.)
|
|
618
677
|
bindSessionQueryTools(agent.tools, {
|
|
619
678
|
runtime,
|
|
620
679
|
parentSessionId: sessionId,
|
|
@@ -658,10 +717,11 @@ export function createFaceRuntime(options) {
|
|
|
658
717
|
bindAskParentTool(agent.tools, {
|
|
659
718
|
parentSessionId: childLink.parentSessionId,
|
|
660
719
|
childLabel: childLink.label,
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
720
|
+
// Raise the card on the immediate parent (经理父席), not the
|
|
721
|
+
// walked human_face root — 经理 answers; 经理 asks 老板 via ask_user.
|
|
722
|
+
ask: (qs, signal) => questions
|
|
723
|
+
.ask(childLink.parentSessionId, qs, signal)
|
|
724
|
+
.then(formatQuestionAnswer),
|
|
665
725
|
});
|
|
666
726
|
bindAgentRosterTools(agent.tools, {
|
|
667
727
|
runtime,
|
|
@@ -694,9 +754,22 @@ export function createFaceRuntime(options) {
|
|
|
694
754
|
// Role + member tools policy (child surface may be tighter than parent).
|
|
695
755
|
applyRosterToolPolicy(agent.tools, childLink.role, childLink.tools);
|
|
696
756
|
}
|
|
757
|
+
else if (agent.tools) {
|
|
758
|
+
const identity = runtime.sessionIdentities.get(sessionId);
|
|
759
|
+
if (identity) {
|
|
760
|
+
const home = runtime.agentRoster.findHome(identity.memberId);
|
|
761
|
+
const member = home
|
|
762
|
+
? runtime.agentRoster.get(home.rosterWorkspaceId, identity.memberId)
|
|
763
|
+
: undefined;
|
|
764
|
+
if (member) {
|
|
765
|
+
applyRosterToolPolicy(agent.tools, member.role, member.tools);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
697
769
|
}
|
|
698
770
|
}
|
|
699
771
|
bindAgentJobs(sessionId, agent);
|
|
772
|
+
bindAgentBand(sessionId, agent);
|
|
700
773
|
};
|
|
701
774
|
const resolveAgent = async (sessionId) => {
|
|
702
775
|
const agent = await options.resolveAgent(sessionId);
|
|
@@ -715,6 +788,10 @@ export function createFaceRuntime(options) {
|
|
|
715
788
|
subagentIdleEpoch.delete(sessionId);
|
|
716
789
|
subagentIdleFailCount.delete(sessionId);
|
|
717
790
|
suppressSubagentCompletion.delete(sessionId);
|
|
791
|
+
bandAborts.get(sessionId)?.abort();
|
|
792
|
+
bandAborts.delete(sessionId);
|
|
793
|
+
rememberedBands.delete(sessionId);
|
|
794
|
+
lastBand.delete(sessionId);
|
|
718
795
|
await options.invalidateAgent(sessionId, opts);
|
|
719
796
|
}
|
|
720
797
|
: undefined;
|
|
@@ -837,7 +914,13 @@ export function createFaceRuntime(options) {
|
|
|
837
914
|
if (frozen.type === "user/message" &&
|
|
838
915
|
!replayingLog &&
|
|
839
916
|
isHumanUserMessageSource(frozen.source)) {
|
|
840
|
-
|
|
917
|
+
// Tool-delegated children skip automatic fallback (sidebar noise).
|
|
918
|
+
// UI forks stay in forkLineage, not subagents — still get titles.
|
|
919
|
+
const childLink = subagents.getByChild(id);
|
|
920
|
+
const delegatedChild = childLink && childLink.mode !== "fork";
|
|
921
|
+
if (!delegatedChild) {
|
|
922
|
+
titleBox.controller?.maybeFallbackFromUserMessage(id, eventSeq, flattenText(frozen.content));
|
|
923
|
+
}
|
|
841
924
|
}
|
|
842
925
|
if (frozen.type === "prompt/promoted") {
|
|
843
926
|
if (noticeAdmitIds.has(frozen.admitId)) {
|
|
@@ -859,6 +942,17 @@ export function createFaceRuntime(options) {
|
|
|
859
942
|
? frozen.reason.kind
|
|
860
943
|
: undefined;
|
|
861
944
|
runtimeBox.current?.goals.onTurnEnd(id, reasonKind);
|
|
945
|
+
// DSH durability point: list-tier title/blank must survive a crash
|
|
946
|
+
// before the next open/history page. Skip log replay (prime path).
|
|
947
|
+
if (!replayingLog) {
|
|
948
|
+
try {
|
|
949
|
+
rememberListProjections(id);
|
|
950
|
+
}
|
|
951
|
+
catch {
|
|
952
|
+
// Same posture as LRU eviction: never fail the append; cold list
|
|
953
|
+
// falls back to listHints until a later remember succeeds.
|
|
954
|
+
}
|
|
955
|
+
}
|
|
862
956
|
}
|
|
863
957
|
return frozen;
|
|
864
958
|
};
|
|
@@ -1004,6 +1098,7 @@ export function createFaceRuntime(options) {
|
|
|
1004
1098
|
canvases,
|
|
1005
1099
|
sessionThreads,
|
|
1006
1100
|
agentRoster,
|
|
1101
|
+
sessionIdentities,
|
|
1007
1102
|
presence,
|
|
1008
1103
|
wireIds,
|
|
1009
1104
|
inboxWire,
|
|
@@ -1036,6 +1131,8 @@ export function createFaceRuntime(options) {
|
|
|
1036
1131
|
},
|
|
1037
1132
|
jobViewsFor,
|
|
1038
1133
|
publishJobs,
|
|
1134
|
+
bandSnapshotFor,
|
|
1135
|
+
pressBand,
|
|
1039
1136
|
markTurnUiIdle(sessionId) {
|
|
1040
1137
|
turnUiIdle.add(sessionId);
|
|
1041
1138
|
},
|
|
@@ -1044,6 +1141,9 @@ export function createFaceRuntime(options) {
|
|
|
1044
1141
|
},
|
|
1045
1142
|
watchSession(sessionId) {
|
|
1046
1143
|
publishJobs(sessionId, { baseline: true });
|
|
1144
|
+
const band = bandSnapshotFor(sessionId);
|
|
1145
|
+
if (band !== undefined)
|
|
1146
|
+
publishBand(sessionId, band);
|
|
1047
1147
|
},
|
|
1048
1148
|
forkSession(sourceId, boundaryIndex, childId) {
|
|
1049
1149
|
// Seed via store.seed (or originalAppend fallback): skip per-event mux /
|