@xrkseek/harness 0.3.11 → 0.4.0-rc.2
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 +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/request-image-bound.d.ts +4 -2
- package/node_modules/@xrkseek/attachment/dist/request-image-bound.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment/dist/request-image-bound.js +59 -32
- package/node_modules/@xrkseek/attachment/dist/request-image-bound.js.map +1 -1
- package/node_modules/@xrkseek/attachment-local/README.md +6 -3
- package/node_modules/@xrkseek/attachment-local/dist/index.d.ts +2 -0
- package/node_modules/@xrkseek/attachment-local/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment-local/dist/index.js +9 -8
- package/node_modules/@xrkseek/attachment-local/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts +3 -2
- package/node_modules/@xrkseek/attachment-local/dist/request-image.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment-local/dist/request-image.js +3 -2
- package/node_modules/@xrkseek/attachment-local/dist/request-image.js.map +1 -1
- package/node_modules/@xrkseek/attachment-local/dist/store.d.ts.map +1 -1
- package/node_modules/@xrkseek/attachment-local/dist/store.js +3 -0
- package/node_modules/@xrkseek/attachment-local/dist/store.js.map +1 -1
- package/node_modules/@xrkseek/attachment-local/package.json +26 -25
- package/node_modules/@xrkseek/code-runtime/README.md +13 -5
- package/node_modules/@xrkseek/code-runtime/dist/index.d.ts +39 -1
- package/node_modules/@xrkseek/code-runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/code-runtime/dist/index.js +202 -60
- package/node_modules/@xrkseek/code-runtime/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts +17 -0
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.js +15 -0
- package/node_modules/@xrkseek/core-agent/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts +7 -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 +72 -37
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.d.ts +11 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.js +48 -38
- package/node_modules/@xrkseek/core-agent-loop/dist/tool-result-bound.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/workspace-changes-emit.d.ts +31 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/workspace-changes-emit.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/workspace-changes-emit.js +54 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/workspace-changes-emit.js.map +1 -0
- package/node_modules/@xrkseek/core-agent-loop/package.json +35 -34
- package/node_modules/@xrkseek/core-session/README.md +33 -33
- package/node_modules/@xrkseek/core-session/dist/admit.d.ts +5 -0
- package/node_modules/@xrkseek/core-session/dist/admit.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/admit.js +14 -0
- package/node_modules/@xrkseek/core-session/dist/admit.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.d.ts +16 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/compaction.js +56 -6
- package/node_modules/@xrkseek/core-session/dist/compaction.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/dangling.d.ts +0 -4
- package/node_modules/@xrkseek/core-session/dist/dangling.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/dangling.js +0 -2
- package/node_modules/@xrkseek/core-session/dist/dangling.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/drain-hub.d.ts +2 -0
- package/node_modules/@xrkseek/core-session/dist/drain-hub.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/drain-hub.js +8 -0
- package/node_modules/@xrkseek/core-session/dist/drain-hub.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/image-offload.d.ts +26 -0
- package/node_modules/@xrkseek/core-session/dist/image-offload.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-session/dist/image-offload.js +141 -0
- package/node_modules/@xrkseek/core-session/dist/image-offload.js.map +1 -0
- package/node_modules/@xrkseek/core-session/dist/index.d.ts +29 -10
- package/node_modules/@xrkseek/core-session/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.js +59 -14
- package/node_modules/@xrkseek/core-session/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/session-interchange.d.ts +26 -0
- package/node_modules/@xrkseek/core-session/dist/session-interchange.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-session/dist/session-interchange.js +271 -0
- package/node_modules/@xrkseek/core-session/dist/session-interchange.js.map +1 -0
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts +8 -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 +131 -49
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/store-lock.d.ts +22 -0
- package/node_modules/@xrkseek/core-session/dist/store-lock.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-session/dist/store-lock.js +143 -0
- package/node_modules/@xrkseek/core-session/dist/store-lock.js.map +1 -0
- package/node_modules/@xrkseek/core-system-prompt/README.md +2 -1
- package/node_modules/@xrkseek/core-system-prompt/dist/index.d.ts +8 -0
- package/node_modules/@xrkseek/core-system-prompt/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-system-prompt/dist/index.js +25 -4
- package/node_modules/@xrkseek/core-system-prompt/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-system-prompt/dist/prompt-vars.d.ts +27 -0
- package/node_modules/@xrkseek/core-system-prompt/dist/prompt-vars.d.ts.map +1 -0
- package/node_modules/@xrkseek/core-system-prompt/dist/prompt-vars.js +56 -0
- package/node_modules/@xrkseek/core-system-prompt/dist/prompt-vars.js.map +1 -0
- package/node_modules/@xrkseek/core-tools/dist/output-bound.d.ts +6 -1
- package/node_modules/@xrkseek/core-tools/dist/output-bound.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/output-bound.js +6 -1
- package/node_modules/@xrkseek/core-tools/dist/output-bound.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/pipeline.d.ts +2 -1
- package/node_modules/@xrkseek/core-tools/dist/pipeline.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/pipeline.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/presentation.d.ts +3 -5
- package/node_modules/@xrkseek/core-tools/dist/presentation.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/presentation.js.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.js +1 -0
- package/node_modules/@xrkseek/core-tools/dist/subagent-prompt.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/README.md +13 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/background.d.ts +11 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/background.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/background.js +76 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/background.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts +20 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/format.js +58 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/format.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts +28 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/index.js +62 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts +12 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.js +100 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/registry.d.ts +12 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/registry.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/registry.js +28 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/registry.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts +15 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.js +133 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts +74 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/types.js +24 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts +10 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js +253 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js.map +1 -0
- package/node_modules/@xrkseek/exec-computer-use/package.json +26 -0
- package/node_modules/@xrkseek/exec-fs/dist/document-extract.d.ts +9 -0
- package/node_modules/@xrkseek/exec-fs/dist/document-extract.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/document-extract.js +427 -0
- package/node_modules/@xrkseek/exec-fs/dist/document-extract.js.map +1 -0
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +6 -3
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js +13 -17
- package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/paths.d.ts +9 -0
- package/node_modules/@xrkseek/exec-fs/dist/paths.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/paths.js +101 -2
- package/node_modules/@xrkseek/exec-fs/dist/paths.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/README.md +11 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts +2 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/format.js +7 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/format.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts +24 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js +55 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/memory.d.ts +11 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/memory.js +32 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.d.ts +13 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.js +67 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/openai-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts +17 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js +130 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/types.d.ts +37 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/types.js +15 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/exec-image-gen/package.json +27 -0
- package/node_modules/@xrkseek/exec-memory/README.md +11 -0
- package/node_modules/@xrkseek/exec-memory/dist/index.d.ts +4 -0
- package/node_modules/@xrkseek/exec-memory/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/index.js +4 -0
- package/node_modules/@xrkseek/exec-memory/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/store.d.ts +43 -0
- package/node_modules/@xrkseek/exec-memory/dist/store.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/store.js +365 -0
- package/node_modules/@xrkseek/exec-memory/dist/store.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/tools.d.ts +8 -0
- package/node_modules/@xrkseek/exec-memory/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/tools.js +145 -0
- package/node_modules/@xrkseek/exec-memory/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/write-path.d.ts +26 -0
- package/node_modules/@xrkseek/exec-memory/dist/write-path.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-memory/dist/write-path.js +82 -0
- package/node_modules/@xrkseek/exec-memory/dist/write-path.js.map +1 -0
- package/node_modules/@xrkseek/exec-memory/package.json +27 -0
- package/node_modules/@xrkseek/exec-pty/dist/backend.d.ts +3 -0
- package/node_modules/@xrkseek/exec-pty/dist/backend.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/backend.js +7 -2
- package/node_modules/@xrkseek/exec-pty/dist/backend.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/bounded-text-buffer.d.ts +35 -0
- package/node_modules/@xrkseek/exec-pty/dist/bounded-text-buffer.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-pty/dist/bounded-text-buffer.js +161 -0
- package/node_modules/@xrkseek/exec-pty/dist/bounded-text-buffer.js.map +1 -0
- package/node_modules/@xrkseek/exec-pty/dist/handle.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/handle.js +2 -0
- package/node_modules/@xrkseek/exec-pty/dist/handle.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/index.d.ts +3 -0
- package/node_modules/@xrkseek/exec-pty/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/index.js +3 -0
- package/node_modules/@xrkseek/exec-pty/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/process-inspector.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/process-inspector.js +6 -1
- package/node_modules/@xrkseek/exec-pty/dist/process-inspector.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/sandbox-fence.d.ts +8 -2
- package/node_modules/@xrkseek/exec-pty/dist/sandbox-fence.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/sandbox-fence.js +4 -3
- package/node_modules/@xrkseek/exec-pty/dist/sandbox-fence.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/session.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/session.js +3 -37
- package/node_modules/@xrkseek/exec-pty/dist/session.js.map +1 -1
- package/node_modules/@xrkseek/exec-pty/dist/windows-pty.d.ts +9 -0
- package/node_modules/@xrkseek/exec-pty/dist/windows-pty.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-pty/dist/windows-pty.js +14 -0
- package/node_modules/@xrkseek/exec-pty/dist/windows-pty.js.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/README.md +15 -6
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts +14 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js +56 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/docker.d.ts +30 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/docker.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/docker.js +89 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/docker.js.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts +5 -28
- package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.js +5 -85
- package/node_modules/@xrkseek/exec-sandbox/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts +44 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js +108 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/service.d.ts +37 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/service.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/service.js +112 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/service.js.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/windows.d.ts +56 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/windows.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/windows.js +134 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/windows.js.map +1 -0
- package/node_modules/@xrkseek/exec-shell/dist/index.d.ts +12 -0
- package/node_modules/@xrkseek/exec-shell/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.js +51 -5
- package/node_modules/@xrkseek/exec-shell/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-ssh/README.md +16 -0
- package/node_modules/@xrkseek/exec-ssh/dist/code.d.ts +8 -0
- package/node_modules/@xrkseek/exec-ssh/dist/code.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/code.js +66 -0
- package/node_modules/@xrkseek/exec-ssh/dist/code.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/config.d.ts +21 -0
- package/node_modules/@xrkseek/exec-ssh/dist/config.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/config.js +30 -0
- package/node_modules/@xrkseek/exec-ssh/dist/config.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/directory.d.ts +29 -0
- package/node_modules/@xrkseek/exec-ssh/dist/directory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/directory.js +109 -0
- package/node_modules/@xrkseek/exec-ssh/dist/directory.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/fs.d.ts +11 -0
- package/node_modules/@xrkseek/exec-ssh/dist/fs.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/fs.js +214 -0
- package/node_modules/@xrkseek/exec-ssh/dist/fs.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/index.d.ts +10 -0
- package/node_modules/@xrkseek/exec-ssh/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/index.js +10 -0
- package/node_modules/@xrkseek/exec-ssh/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/paths.d.ts +10 -0
- package/node_modules/@xrkseek/exec-ssh/dist/paths.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/paths.js +34 -0
- package/node_modules/@xrkseek/exec-ssh/dist/paths.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/providers.d.ts +19 -0
- package/node_modules/@xrkseek/exec-ssh/dist/providers.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/providers.js +22 -0
- package/node_modules/@xrkseek/exec-ssh/dist/providers.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/quote.d.ts +5 -0
- package/node_modules/@xrkseek/exec-ssh/dist/quote.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/quote.js +11 -0
- package/node_modules/@xrkseek/exec-ssh/dist/quote.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/session.d.ts +31 -0
- package/node_modules/@xrkseek/exec-ssh/dist/session.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/session.js +89 -0
- package/node_modules/@xrkseek/exec-ssh/dist/session.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/subprocess.d.ts +8 -0
- package/node_modules/@xrkseek/exec-ssh/dist/subprocess.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/dist/subprocess.js +30 -0
- package/node_modules/@xrkseek/exec-ssh/dist/subprocess.js.map +1 -0
- package/node_modules/@xrkseek/exec-ssh/package.json +28 -0
- package/node_modules/@xrkseek/exec-subprocess/README.md +1 -1
- package/node_modules/@xrkseek/exec-video-gen/README.md +19 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/format.d.ts +2 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/format.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/format.js +8 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/format.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts +24 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/index.js +57 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/memory.d.ts +20 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/memory.js +105 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.d.ts +16 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.js +113 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/openai-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.d.ts +23 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js +242 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/types.d.ts +66 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/types.js +25 -0
- package/node_modules/@xrkseek/exec-video-gen/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/exec-video-gen/package.json +27 -0
- package/node_modules/@xrkseek/exec-voice/README.md +25 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/dictation.d.ts +44 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/dictation.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/dictation.js +163 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/dictation.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/env.d.ts +23 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/env.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/env.js +93 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/env.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/index.d.ts +51 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/index.js +44 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/session.d.ts +26 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/session.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/session.js +96 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/session.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/types.d.ts +91 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/types.js +10 -0
- package/node_modules/@xrkseek/exec-voice/dist/browser/types.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/format.d.ts +2 -0
- package/node_modules/@xrkseek/exec-voice/dist/format.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/format.js +8 -0
- package/node_modules/@xrkseek/exec-voice/dist/format.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/index.d.ts +24 -0
- package/node_modules/@xrkseek/exec-voice/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/index.js +53 -0
- package/node_modules/@xrkseek/exec-voice/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/memory.d.ts +11 -0
- package/node_modules/@xrkseek/exec-voice/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/memory.js +85 -0
- package/node_modules/@xrkseek/exec-voice/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/openai-http.d.ts +16 -0
- package/node_modules/@xrkseek/exec-voice/dist/openai-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/openai-http.js +135 -0
- package/node_modules/@xrkseek/exec-voice/dist/openai-http.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/tools.d.ts +14 -0
- package/node_modules/@xrkseek/exec-voice/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/tools.js +240 -0
- package/node_modules/@xrkseek/exec-voice/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/types.d.ts +69 -0
- package/node_modules/@xrkseek/exec-voice/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-voice/dist/types.js +16 -0
- package/node_modules/@xrkseek/exec-voice/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/exec-voice/package.json +31 -0
- package/node_modules/@xrkseek/exec-web/README.md +5 -5
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.d.ts +23 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js +286 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-html.d.ts +26 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-html.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-html.js +118 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-html.js.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts +33 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-session.js +113 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-session.js.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts +22 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.js +172 -0
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.js.map +1 -0
- package/node_modules/@xrkseek/exec-web/dist/format.d.ts +4 -0
- package/node_modules/@xrkseek/exec-web/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/format.js +13 -0
- package/node_modules/@xrkseek/exec-web/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts +5 -1
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.js +5 -1
- package/node_modules/@xrkseek/exec-web/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm/dist/index.d.ts +0 -4
- package/node_modules/@xrkseek/llm/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm/dist/index.js +0 -20
- package/node_modules/@xrkseek/llm/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.d.ts.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js +2 -6
- package/node_modules/@xrkseek/llm-deepseek/dist/upload-index.js.map +1 -1
- package/node_modules/@xrkseek/llm-deepseek/package.json +30 -29
- package/node_modules/@xrkseek/mcp/README.md +36 -2
- package/node_modules/@xrkseek/mcp/dist/client.d.ts.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/client.js +220 -28
- package/node_modules/@xrkseek/mcp/dist/client.js.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/index.d.ts +7 -4
- package/node_modules/@xrkseek/mcp/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/index.js +6 -3
- package/node_modules/@xrkseek/mcp/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/list-tools.d.ts +15 -0
- package/node_modules/@xrkseek/mcp/dist/list-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/list-tools.js +40 -0
- package/node_modules/@xrkseek/mcp/dist/list-tools.js.map +1 -1
- package/node_modules/@xrkseek/mcp/dist/oauth-device.d.ts +104 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-device.d.ts.map +1 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-device.js +338 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-device.js.map +1 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-discovery.d.ts +92 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-discovery.d.ts.map +1 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-discovery.js +232 -0
- package/node_modules/@xrkseek/mcp/dist/oauth-discovery.js.map +1 -0
- package/node_modules/@xrkseek/mcp/dist/resources.d.ts +24 -0
- package/node_modules/@xrkseek/mcp/dist/resources.d.ts.map +1 -0
- package/node_modules/@xrkseek/mcp/dist/resources.js +127 -0
- package/node_modules/@xrkseek/mcp/dist/resources.js.map +1 -0
- package/node_modules/@xrkseek/mcp/dist/types.d.ts +61 -0
- package/node_modules/@xrkseek/mcp/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/engine.d.ts +12 -1
- package/node_modules/@xrkseek/policy/dist/engine.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/engine.js +31 -5
- package/node_modules/@xrkseek/policy/dist/engine.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/index.d.ts +6 -5
- package/node_modules/@xrkseek/policy/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/index.js +5 -4
- package/node_modules/@xrkseek/policy/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/load.d.ts +12 -4
- package/node_modules/@xrkseek/policy/dist/load.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/load.js +40 -21
- package/node_modules/@xrkseek/policy/dist/load.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/permission-pre.d.ts +7 -0
- package/node_modules/@xrkseek/policy/dist/permission-pre.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/permission-pre.js +14 -0
- package/node_modules/@xrkseek/policy/dist/permission-pre.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/rules.d.ts +30 -0
- package/node_modules/@xrkseek/policy/dist/rules.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/rules.js +102 -0
- package/node_modules/@xrkseek/policy/dist/rules.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/ruleset.d.ts +4 -1
- package/node_modules/@xrkseek/policy/dist/ruleset.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/ruleset.js +39 -2
- package/node_modules/@xrkseek/policy/dist/ruleset.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/schema.d.ts +16 -1
- package/node_modules/@xrkseek/policy/dist/schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/schema.js +15 -1
- package/node_modules/@xrkseek/policy/dist/schema.js.map +1 -1
- package/node_modules/@xrkseek/policy/dist/types.d.ts +40 -2
- package/node_modules/@xrkseek/policy/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/policy/dist/wire-error.d.ts +30 -0
- package/node_modules/@xrkseek/policy/dist/wire-error.d.ts.map +1 -0
- package/node_modules/@xrkseek/policy/dist/wire-error.js +42 -0
- package/node_modules/@xrkseek/policy/dist/wire-error.js.map +1 -0
- package/node_modules/@xrkseek/policy/package.json +31 -26
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts +107 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +331 -19
- 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 +7 -0
- package/node_modules/@xrkseek/preset-minimal/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-minimal/dist/preset.js +7 -4
- 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/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-server/dist/preset.js +5 -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 +33 -35
- package/node_modules/@xrkseek/protocol/dist/content.d.ts +5 -0
- package/node_modules/@xrkseek/protocol/dist/content.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/content.js +4 -2
- package/node_modules/@xrkseek/protocol/dist/content.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.d.ts +4 -2
- package/node_modules/@xrkseek/protocol/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/index.js +3 -1
- package/node_modules/@xrkseek/protocol/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts +2 -321
- package/node_modules/@xrkseek/protocol/dist/json-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/json-schema.js +106 -61
- package/node_modules/@xrkseek/protocol/dist/json-schema.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts +28 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/session-events.js +2 -0
- package/node_modules/@xrkseek/protocol/dist/session-events.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/sidebar-previews.d.ts +84 -0
- package/node_modules/@xrkseek/protocol/dist/sidebar-previews.d.ts.map +1 -0
- package/node_modules/@xrkseek/protocol/dist/sidebar-previews.js +36 -0
- package/node_modules/@xrkseek/protocol/dist/sidebar-previews.js.map +1 -0
- package/node_modules/@xrkseek/protocol/dist/validate.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/validate.js +154 -0
- package/node_modules/@xrkseek/protocol/dist/validate.js.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.d.ts +132 -0
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.d.ts.map +1 -0
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.js +160 -0
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.js.map +1 -0
- package/node_modules/@xrkseek/server-config/dist/home.d.ts +26 -10
- package/node_modules/@xrkseek/server-config/dist/home.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/home.js +40 -30
- package/node_modules/@xrkseek/server-config/dist/home.js.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/index.d.ts +2 -1
- package/node_modules/@xrkseek/server-config/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/index.js +1 -1
- package/node_modules/@xrkseek/server-config/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/mcp-servers.d.ts +2 -0
- package/node_modules/@xrkseek/server-config/dist/mcp-servers.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-config/dist/mcp-servers.js +1 -0
- package/node_modules/@xrkseek/server-config/dist/mcp-servers.js.map +1 -1
- package/node_modules/@xrkseek/server-config/package.json +28 -27
- package/node_modules/@xrkseek/server-cron/README.md +11 -0
- package/node_modules/@xrkseek/server-cron/dist/deliver.d.ts +9 -0
- package/node_modules/@xrkseek/server-cron/dist/deliver.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/deliver.js +59 -0
- package/node_modules/@xrkseek/server-cron/dist/deliver.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/index.d.ts +27 -0
- package/node_modules/@xrkseek/server-cron/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/index.js +48 -0
- package/node_modules/@xrkseek/server-cron/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/runner.d.ts +10 -0
- package/node_modules/@xrkseek/server-cron/dist/runner.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/runner.js +62 -0
- package/node_modules/@xrkseek/server-cron/dist/runner.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/schedule.d.ts +9 -0
- package/node_modules/@xrkseek/server-cron/dist/schedule.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/schedule.js +108 -0
- package/node_modules/@xrkseek/server-cron/dist/schedule.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/scheduler.d.ts +29 -0
- package/node_modules/@xrkseek/server-cron/dist/scheduler.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/scheduler.js +152 -0
- package/node_modules/@xrkseek/server-cron/dist/scheduler.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/store.d.ts +26 -0
- package/node_modules/@xrkseek/server-cron/dist/store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/store.js +127 -0
- package/node_modules/@xrkseek/server-cron/dist/store.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/tools.d.ts +8 -0
- package/node_modules/@xrkseek/server-cron/dist/tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/tools.js +183 -0
- package/node_modules/@xrkseek/server-cron/dist/tools.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/types.d.ts +77 -0
- package/node_modules/@xrkseek/server-cron/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-cron/dist/types.js +17 -0
- package/node_modules/@xrkseek/server-cron/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/server-cron/package.json +26 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/index.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/index.js +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/adapt/subagent-notice.d.ts +9 -0
- 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 +31 -4
- 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 +2 -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 +16 -0
- package/node_modules/@xrkseek/server-face/dist/adapt/wire-event.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/agent-team-graph.d.ts +56 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-graph.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-graph.js +233 -0
- package/node_modules/@xrkseek/server-face/dist/agent-team-graph.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/approvals.d.ts +10 -1
- package/node_modules/@xrkseek/server-face/dist/approvals.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/approvals.js +24 -0
- package/node_modules/@xrkseek/server-face/dist/approvals.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/context.d.ts +51 -3
- 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 +3 -0
- package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.d.ts +34 -0
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.js +287 -0
- package/node_modules/@xrkseek/server-face/dist/external-agent-runtime.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/face-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/face-schema.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/fork-cut.d.ts +33 -0
- package/node_modules/@xrkseek/server-face/dist/fork-cut.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/fork-cut.js +114 -0
- package/node_modules/@xrkseek/server-face/dist/fork-cut.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/catalog.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/catalog.js +2 -2
- package/node_modules/@xrkseek/server-face/dist/handlers/catalog.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/changes.d.ts +23 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/changes.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/changes.js +113 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/changes.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js +10 -3
- package/node_modules/@xrkseek/server-face/dist/handlers/cordis-stub.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/host.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/host.js +62 -9
- package/node_modules/@xrkseek/server-face/dist/handlers/host.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session-added.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session-added.js +3 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session-added.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js +45 -23
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/subagent.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/subagent.js +3 -2
- package/node_modules/@xrkseek/server-face/dist/handlers/subagent.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/host-open-path.d.ts +4 -0
- package/node_modules/@xrkseek/server-face/dist/host-open-path.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/host-open-path.js +24 -2
- package/node_modules/@xrkseek/server-face/dist/host-open-path.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +7 -6
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +6 -5
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/last-good-config.d.ts +30 -0
- package/node_modules/@xrkseek/server-face/dist/last-good-config.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/last-good-config.js +39 -0
- package/node_modules/@xrkseek/server-face/dist/last-good-config.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/permissions.d.ts +10 -2
- package/node_modules/@xrkseek/server-face/dist/permissions.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/permissions.js +40 -3
- package/node_modules/@xrkseek/server-face/dist/permissions.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/plugin-boot.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/plugin-boot.js +4 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-boot.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/presets-catalog.d.ts +12 -4
- package/node_modules/@xrkseek/server-face/dist/presets-catalog.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/presets-catalog.js +6 -6
- package/node_modules/@xrkseek/server-face/dist/presets-catalog.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.js +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js +3 -0
- package/node_modules/@xrkseek/server-face/dist/projections/install-defaults.js.map +1 -1
- 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 +46 -12
- package/node_modules/@xrkseek/server-face/dist/projections/list-checkpoint-cache.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts +8 -1
- package/node_modules/@xrkseek/server-face/dist/projections/registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/registry.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.d.ts +2 -7
- 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 +2 -11
- package/node_modules/@xrkseek/server-face/dist/projections/snapshot-keys.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/todos.d.ts +4 -2
- package/node_modules/@xrkseek/server-face/dist/projections/units/todos.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/todos.js +5 -5
- package/node_modules/@xrkseek/server-face/dist/projections/units/todos.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/workspace-changes.d.ts +13 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/workspace-changes.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/workspace-changes.js +104 -0
- package/node_modules/@xrkseek/server-face/dist/projections/units/workspace-changes.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +10 -3
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +105 -10
- package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/select-session-model.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/select-session-model.js +12 -1
- package/node_modules/@xrkseek/server-face/dist/select-session-model.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +4 -0
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js +253 -41
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-document.d.ts +3 -0
- package/node_modules/@xrkseek/server-face/dist/settings-document.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-document.js +84 -23
- package/node_modules/@xrkseek/server-face/dist/settings-document.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 +11 -0
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-registry.d.ts +9 -2
- package/node_modules/@xrkseek/server-face/dist/subagent-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-registry.js +21 -3
- package/node_modules/@xrkseek/server-face/dist/subagent-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts +8 -2
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js +185 -38
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-worktree.d.ts +33 -0
- package/node_modules/@xrkseek/server-face/dist/subagent-worktree.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/subagent-worktree.js +172 -0
- package/node_modules/@xrkseek/server-face/dist/subagent-worktree.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/types.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/paths.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/paths.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/wire/paths.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.js +16 -1
- package/node_modules/@xrkseek/server-face/dist/wire/rpc-error.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 +40 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js.map +1 -1
- package/node_modules/@xrkseek/server-face/package.json +56 -55
- package/node_modules/@xrkseek/server-host/dist/index.d.ts +18 -2
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +340 -48
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-deferred-dispose.d.ts +22 -0
- package/node_modules/@xrkseek/server-host/dist/mcp-deferred-dispose.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/mcp-deferred-dispose.js +37 -0
- package/node_modules/@xrkseek/server-host/dist/mcp-deferred-dispose.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts +19 -5
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.js +161 -30
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/policy-file-watch.d.ts +18 -0
- package/node_modules/@xrkseek/server-host/dist/policy-file-watch.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/policy-file-watch.js +91 -0
- package/node_modules/@xrkseek/server-host/dist/policy-file-watch.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-opens.d.ts +29 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-opens.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-opens.js +111 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-opens.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-pty.d.ts +101 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-pty.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-pty.js +377 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-pty.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-tools.d.ts +25 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-tools.js +343 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-agent-tools.js.map +1 -0
- 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 +66 -6
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts +11 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js +188 -12
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/ssh-directory-backend.d.ts +35 -0
- package/node_modules/@xrkseek/server-host/dist/ssh-directory-backend.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/ssh-directory-backend.js +86 -0
- package/node_modules/@xrkseek/server-host/dist/ssh-directory-backend.js.map +1 -0
- package/node_modules/@xrkseek/server-host/package.json +3 -0
- package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts +6 -2
- package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/boot-inject.js +6 -1
- package/node_modules/@xrkseek/server-http/dist/boot-inject.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js +4 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-types.d.ts +1 -3
- 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-classifier.d.ts +36 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.js +102 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-classifier.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts +5 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js +43 -17
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/auto-review-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js +23 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/chat-import.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js +16 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/cordis-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-boot.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-boot.js +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-boot.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts +4 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js +33 -6
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-compat-matrix.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js +0 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-path-capabilities.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.d.ts +13 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.js +254 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-browser-runtime.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-npm-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-npm-bridge.js +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui-npm-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js +4 -5
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/genui.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts +9 -11
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js +19 -47
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-envelope.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js +3 -15
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-channels.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-local-ws.d.ts +15 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-local-ws.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-local-ws.js +165 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-local-ws.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-sidecar.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-sidecar.js +11 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-gateway-sidecar.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-long-lived-gateway.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-long-lived-gateway.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-long-lived-gateway.js +23 -33
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-long-lived-gateway.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts +9 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js +36 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-office.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-vendors.d.ts +4 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-vendors.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-vendors.js +13 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-vendors.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.d.ts +4 -2
- 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 +3 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js +12 -8
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-engine.d.ts +40 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-engine.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-engine.js +139 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-engine.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js +4 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js +137 -27
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js +4 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/shared-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-node-runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-python-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-python-bridge.js +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow-python-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts +3 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js +45 -15
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/tongflow.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.d.ts +1 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.js +3 -23
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/json-store.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js +14 -4
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire-normalize.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire-normalize.js +4 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire-normalize.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/host-policy-error.d.ts +12 -0
- package/node_modules/@xrkseek/server-http/dist/host-policy-error.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/host-policy-error.js +19 -0
- package/node_modules/@xrkseek/server-http/dist/host-policy-error.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/host-wire.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/host-wire.js +18 -0
- package/node_modules/@xrkseek/server-http/dist/host-wire.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.d.ts +3 -3
- package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.js +3 -3
- package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/index.d.ts +5 -2
- package/node_modules/@xrkseek/server-http/dist/sidebar/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/index.js +4 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/office-to-pdf.d.ts +23 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/office-to-pdf.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/office-to-pdf.js +103 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/office-to-pdf.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.d.ts +26 -4
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js +158 -11
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-browser.d.ts +5 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-browser.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-browser.js +0 -4
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-browser.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-face-bridge.d.ts +45 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-face-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-git.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-git.js +2 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-git.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-html.d.ts +4 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-html.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-html.js +24 -2
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-html.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-policy.d.ts +41 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-policy.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-policy.js +60 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-policy.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-prefs-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-prefs-store.js +1 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-prefs-store.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts +0 -6
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js +1 -10
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts +0 -11
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js +8 -4
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-routes.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js +2 -8
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-services.js.map +1 -1
- package/node_modules/@xrkseek/server-http/package.json +42 -40
- package/node_modules/@xrkseek/server-loader/dist/hooks.d.ts +32 -0
- package/node_modules/@xrkseek/server-loader/dist/hooks.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/hooks.js +70 -0
- package/node_modules/@xrkseek/server-loader/dist/hooks.js.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/index.d.ts +19 -4
- package/node_modules/@xrkseek/server-loader/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/index.js +42 -8
- package/node_modules/@xrkseek/server-loader/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts +5 -2
- package/node_modules/@xrkseek/server-loader/dist/kinds.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/kinds.js +6 -1
- package/node_modules/@xrkseek/server-loader/dist/kinds.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/lifecycle-webhooks.d.ts +63 -0
- package/node_modules/@xrkseek/server-loader/dist/lifecycle-webhooks.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/lifecycle-webhooks.js +185 -0
- package/node_modules/@xrkseek/server-loader/dist/lifecycle-webhooks.js.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/load-failures.d.ts +54 -0
- package/node_modules/@xrkseek/server-loader/dist/load-failures.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/load-failures.js +50 -0
- package/node_modules/@xrkseek/server-loader/dist/load-failures.js.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/load.d.ts +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.js +33 -7
- package/node_modules/@xrkseek/server-loader/dist/load.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts +9 -2
- package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/managed-state.js +27 -4
- package/node_modules/@xrkseek/server-loader/dist/managed-state.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/manifest.d.ts +5 -0
- package/node_modules/@xrkseek/server-loader/dist/manifest.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/manifest.js +3 -3
- package/node_modules/@xrkseek/server-loader/dist/manifest.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/policy.d.ts +13 -4
- package/node_modules/@xrkseek/server-loader/dist/policy.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/policy.js +21 -3
- package/node_modules/@xrkseek/server-loader/dist/policy.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/shell-hooks.d.ts +49 -0
- package/node_modules/@xrkseek/server-loader/dist/shell-hooks.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/shell-hooks.js +248 -0
- package/node_modules/@xrkseek/server-loader/dist/shell-hooks.js.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/startup-audit.d.ts +46 -0
- package/node_modules/@xrkseek/server-loader/dist/startup-audit.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/startup-audit.js +121 -0
- package/node_modules/@xrkseek/server-loader/dist/startup-audit.js.map +1 -0
- package/node_modules/@xrkseek/server-loader/dist/types.d.ts +25 -1
- package/node_modules/@xrkseek/server-loader/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/session-projection/dist/index.d.ts +1 -3
- package/node_modules/@xrkseek/session-projection/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/session-projection/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/session-telemetry/README.md +11 -0
- package/node_modules/@xrkseek/session-telemetry/dist/index.d.ts +28 -0
- package/node_modules/@xrkseek/session-telemetry/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/index.js +80 -0
- package/node_modules/@xrkseek/session-telemetry/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/memory.d.ts +11 -0
- package/node_modules/@xrkseek/session-telemetry/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/memory.js +18 -0
- package/node_modules/@xrkseek/session-telemetry/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/otlp-http.d.ts +26 -0
- package/node_modules/@xrkseek/session-telemetry/dist/otlp-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/otlp-http.js +161 -0
- package/node_modules/@xrkseek/session-telemetry/dist/otlp-http.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/record.d.ts +8 -0
- package/node_modules/@xrkseek/session-telemetry/dist/record.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/record.js +54 -0
- package/node_modules/@xrkseek/session-telemetry/dist/record.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/types.d.ts +33 -0
- package/node_modules/@xrkseek/session-telemetry/dist/types.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/types.js +13 -0
- package/node_modules/@xrkseek/session-telemetry/dist/types.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.d.ts +14 -0
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.js +52 -0
- package/node_modules/@xrkseek/session-telemetry/dist/wrap-store.js.map +1 -0
- package/node_modules/@xrkseek/session-telemetry/package.json +27 -0
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.js +2 -1
- package/node_modules/@xrkseek/workspace/dist/ecosystem-instructions.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.d.ts +3 -1
- package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.js +3 -1
- package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.d.ts +2 -1
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.js +9 -4
- package/node_modules/@xrkseek/workspace/dist/inject-fingerprint.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-sources.d.ts +15 -2
- package/node_modules/@xrkseek/workspace/dist/inject-sources.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/inject-sources.js +23 -5
- package/node_modules/@xrkseek/workspace/dist/inject-sources.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.js +3 -1
- package/node_modules/@xrkseek/workspace/dist/skill-dirs.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/skill-install.d.ts +61 -0
- package/node_modules/@xrkseek/workspace/dist/skill-install.d.ts.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/skill-install.js +346 -0
- package/node_modules/@xrkseek/workspace/dist/skill-install.js.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/tool-output-persist.d.ts +1 -5
- package/node_modules/@xrkseek/workspace/dist/tool-output-persist.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/tool-output-persist.js +10 -22
- package/node_modules/@xrkseek/workspace/dist/tool-output-persist.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/user-product-home.d.ts +18 -0
- package/node_modules/@xrkseek/workspace/dist/user-product-home.d.ts.map +1 -0
- package/node_modules/@xrkseek/workspace/dist/user-product-home.js +45 -0
- package/node_modules/@xrkseek/workspace/dist/user-product-home.js.map +1 -0
- package/node_modules/@xrkseek/workspace/package.json +28 -27
- package/node_modules/@xrkseek/xrk-home-paths/README.md +4 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/index.d.ts +44 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/index.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/index.js +83 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/index.js.map +1 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/spill-budget.d.ts +22 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/spill-budget.d.ts.map +1 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/spill-budget.js +139 -0
- package/node_modules/@xrkseek/xrk-home-paths/dist/spill-budget.js.map +1 -0
- package/node_modules/@xrkseek/xrk-home-paths/package.json +24 -0
- package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.d.ts +0 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.d.ts.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.js +0 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/prepare-face.js.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts +3 -2
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js +11 -21
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/package.json +56 -55
- package/node_modules/smol-toml/LICENSE +24 -0
- package/node_modules/smol-toml/README.md +418 -0
- package/node_modules/smol-toml/dist/date.d.ts +41 -0
- package/node_modules/smol-toml/dist/date.js +127 -0
- package/node_modules/smol-toml/dist/error.d.ts +38 -0
- package/node_modules/smol-toml/dist/error.js +63 -0
- package/node_modules/smol-toml/dist/extract.js +69 -0
- package/node_modules/smol-toml/dist/index.cjs +734 -0
- package/node_modules/smol-toml/dist/index.d.ts +43 -0
- package/node_modules/smol-toml/dist/index.js +33 -0
- package/node_modules/smol-toml/dist/parse.d.ts +36 -0
- package/node_modules/smol-toml/dist/parse.js +149 -0
- package/node_modules/smol-toml/dist/primitive.js +238 -0
- package/node_modules/smol-toml/dist/stringify.d.ts +31 -0
- package/node_modules/smol-toml/dist/stringify.js +181 -0
- package/node_modules/smol-toml/dist/struct.js +179 -0
- package/node_modules/smol-toml/dist/util.d.ts +38 -0
- package/node_modules/smol-toml/dist/util.js +89 -0
- package/node_modules/smol-toml/package.json +68 -0
- package/package.json +21 -1
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@xrkseek/core-agent-loop",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"exports": {
|
|
6
|
-
".": {
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"import": "./dist/index.js",
|
|
9
|
-
"default": "./dist/index.js"
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"files": [
|
|
13
|
-
"dist",
|
|
14
|
-
"README.md"
|
|
15
|
-
],
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"@xrkseek/core-session": "workspace:*",
|
|
18
|
-
"@xrkseek/core-system-prompt": "workspace:*",
|
|
19
|
-
"@xrkseek/core-tools": "workspace:*",
|
|
20
|
-
"@xrkseek/llm": "workspace:*",
|
|
21
|
-
"@xrkseek/protocol": "workspace:*"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"@xrkseek/llm
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@xrkseek/core-agent-loop",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"import": "./dist/index.js",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@xrkseek/core-session": "workspace:*",
|
|
18
|
+
"@xrkseek/core-system-prompt": "workspace:*",
|
|
19
|
+
"@xrkseek/core-tools": "workspace:*",
|
|
20
|
+
"@xrkseek/llm": "workspace:*",
|
|
21
|
+
"@xrkseek/protocol": "workspace:*",
|
|
22
|
+
"@xrkseek/xrk-home-paths": "workspace:*"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@xrkseek/llm": "workspace:*",
|
|
26
|
+
"@xrkseek/llm-replay": "workspace:*"
|
|
27
|
+
},
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/xrkseek/XRK-harness.git",
|
|
32
|
+
"directory": "packages/core/agent-loop"
|
|
33
|
+
},
|
|
34
|
+
"private": true
|
|
35
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
# @xrkseek/core-session
|
|
2
|
-
|
|
3
|
-
Append-only session log, `deriveMessages()`, model-visible invariant, and execution latches.
|
|
4
|
-
|
|
5
|
-
## Layers (this package)
|
|
6
|
-
|
|
7
|
-
| Area | Files | Role |
|
|
8
|
-
|------|-------|------|
|
|
9
|
-
| Store | `store.ts` · `index.ts` (memory) · `sqlite-store.ts` | `SessionStore` · required `readEvents` · persistent hydrate / flush |
|
|
10
|
-
| Log positions | `seq.ts` · `list-hints.ts` | `SessionSeq` / `SessionLogOffset` · `readSessionEvents` · `computeListHints` / `sessionListHints` |
|
|
11
|
-
| History | `compaction.ts` · admit / dangling / prune | `deriveMessages` · window helpers · settlement |
|
|
12
|
-
| Budget vs meter | `surface-estimate.ts` · `surface-fold.ts` | `estimateTokens*` (budget) ≠ `foldSurfaceTokens` / `priceCurrentSurfaceWindow` (meter) |
|
|
13
|
-
| Request envelope | `request-header.ts` | Reconstructable LLM header fold |
|
|
14
|
-
|
|
15
|
-
Specs: [docs/session-log.md](../../../docs/session-log.md) · [docs/session-compaction.md](../../../docs/session-compaction.md).
|
|
16
|
-
|
|
17
|
-
## Invariant
|
|
18
|
-
|
|
19
|
-
**Model-visible ≡ Logged** — anything sent to the model must be reconstructible from session events.
|
|
20
|
-
|
|
21
|
-
## Latches
|
|
22
|
-
|
|
23
|
-
- `createTurnLatch` — exclusive turn; busy → `SessionBusyError`(wired into `createAgent`)
|
|
24
|
-
- `createSessionDrainLatch` / `createSessionDrainHub` — `run` / `wake` / `cancel`(host admit wake/resume)
|
|
25
|
-
|
|
26
|
-
See [docs/session-latch.md](../../../docs/session-latch.md), [docs/session-api.md](../../../docs/session-api.md), [docs/session-delivery.md](../../../docs/session-delivery.md), [docs/session-safety.md](../../../docs/session-safety.md), [docs/session-compaction.md](../../../docs/session-compaction.md), [docs/protocol-events.md](../../../docs/protocol-events.md), and [docs/tool-settlement.md](../../../docs/tool-settlement.md).
|
|
27
|
-
|
|
28
|
-
## Store
|
|
29
|
-
|
|
30
|
-
`createMemorySessionStore` — `append` runs `assertSessionEvent` then deep-freeze. `has(id)` 不抛。全量 `get` / `readEvents` 复用驻留数组身份。
|
|
31
|
-
`createPersistentSessionStore(dir)` — 工作区 `{dir}/sessions.db`(WAL · **schema v3** · `node:sqlite` · FTS5 trigram · lazy load · chunk 写批并物理 `text-chunks` / `tool-call-chunks` · `flush()` · open-turn
|
|
32
|
-
|
|
33
|
-
日志位置与读面:`SessionSeq` · `SessionLogOffset` · `SessionSeqCursor` · 必选 `store.readEvents` · `readSessionEvents` · `sessionEventCount` / `lastSessionEvent` / `sessionEventsFrom` · `snapshotEvents` — 见 [docs/session-log.md](../../../docs/session-log.md)。
|
|
1
|
+
# @xrkseek/core-session
|
|
2
|
+
|
|
3
|
+
Append-only session log, `deriveMessages()`, model-visible invariant, and execution latches.
|
|
4
|
+
|
|
5
|
+
## Layers (this package)
|
|
6
|
+
|
|
7
|
+
| Area | Files | Role |
|
|
8
|
+
|------|-------|------|
|
|
9
|
+
| Store | `store.ts` · `index.ts` (memory) · `sqlite-store.ts` | `SessionStore` · required `readEvents` · persistent hydrate / flush |
|
|
10
|
+
| Log positions | `seq.ts` · `list-hints.ts` | `SessionSeq` / `SessionLogOffset` · `readSessionEvents` · `computeListHints` / `sessionListHints` |
|
|
11
|
+
| History | `compaction.ts` · admit / dangling / prune | `deriveMessages` · window helpers · settlement |
|
|
12
|
+
| Budget vs meter | `surface-estimate.ts` · `surface-fold.ts` | `estimateTokens*` (budget) ≠ `foldSurfaceTokens` / `priceCurrentSurfaceWindow` (meter) |
|
|
13
|
+
| Request envelope | `request-header.ts` | Reconstructable LLM header fold |
|
|
14
|
+
|
|
15
|
+
Specs: [docs/session-log.md](../../../docs/session-log.md) · [docs/session-compaction.md](../../../docs/session-compaction.md).
|
|
16
|
+
|
|
17
|
+
## Invariant
|
|
18
|
+
|
|
19
|
+
**Model-visible ≡ Logged** — anything sent to the model must be reconstructible from session events.
|
|
20
|
+
|
|
21
|
+
## Latches
|
|
22
|
+
|
|
23
|
+
- `createTurnLatch` — exclusive turn; busy → `SessionBusyError`(wired into `createAgent`)
|
|
24
|
+
- `createSessionDrainLatch` / `createSessionDrainHub` — `run` / `wake` / `cancel`(host admit wake/resume)
|
|
25
|
+
|
|
26
|
+
See [docs/session-latch.md](../../../docs/session-latch.md), [docs/session-api.md](../../../docs/session-api.md), [docs/session-delivery.md](../../../docs/session-delivery.md), [docs/session-safety.md](../../../docs/session-safety.md), [docs/session-compaction.md](../../../docs/session-compaction.md), [docs/protocol-events.md](../../../docs/protocol-events.md), and [docs/tool-settlement.md](../../../docs/tool-settlement.md).
|
|
27
|
+
|
|
28
|
+
## Store
|
|
29
|
+
|
|
30
|
+
`createMemorySessionStore` — `append` runs `assertSessionEvent` then deep-freeze. `has(id)` 不抛。全量 `get` / `readEvents` 复用驻留数组身份。
|
|
31
|
+
`createPersistentSessionStore(dir)` — 工作区 `{dir}/sessions.db`(WAL · **schema v3** · `node:sqlite` · FTS5 trigram · lazy load · chunk 写批并物理 `text-chunks` / `tool-call-chunks` · `flush()` · open-turn 崩溃修复);打开时默认取得目录独占写锁(`sessions.write.lock`),第二实例抛 `SessionsDirInUseError`(提示退出其它 Host 后重试),`{ shared: true }` 以只读打开供巡检(禁止 create/append,崩溃修复仅内存);Host 经 `XRK_SESSIONS_DIR` 默认选用;drain idle / `stop` 时 flush/close。ZIP 导出 `toPackedJSONL` + `.jsonl.zst` sidecar;`fromPackedJSONL` 可导入;`searchSessionIds` 供 Face `session.search`。
|
|
32
|
+
|
|
33
|
+
日志位置与读面:`SessionSeq` · `SessionLogOffset` · `SessionSeqCursor` · 必选 `store.readEvents` · `readSessionEvents` · `sessionEventCount` / `lastSessionEvent` / `sessionEventsFrom` · `snapshotEvents` — 见 [docs/session-log.md](../../../docs/session-log.md)。
|
|
@@ -32,6 +32,11 @@ export declare function newSession(store: SessionStore, id?: string): SessionRec
|
|
|
32
32
|
export declare function admitPrompt(store: SessionStore, sessionId: string, content: MessageContent, options?: AdmitPromptOptions): AdmitReceipt;
|
|
33
33
|
/** Pending admits in FIFO order (admitted without later promoted/withdrawn). */
|
|
34
34
|
export declare function listPendingAdmits(events: readonly SessionEvent[], sessionId?: string): readonly AdmitReceipt[];
|
|
35
|
+
/**
|
|
36
|
+
* Session ids that still have pending Inbox rows (queue or steer).
|
|
37
|
+
* Used after Host restart to republish / wake without a separate inbox table.
|
|
38
|
+
*/
|
|
39
|
+
export declare function listSessionsWithPendingAdmits(store: SessionStore): readonly string[];
|
|
35
40
|
export declare class AdmitNotPending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nB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;CAAE,GACxC,IAAI,CAWN;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;CAAE,GACxC,YAAY,CAad;AAED,MAAM,WAAW,oBAAoB;IACnC,yDAAyD;IACzD,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IACjC,uEAAuE;IACvE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAC;IAC3C;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;CAAE,GACxC,oBAAoB,CAgCtB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;CAAE,GACxC,oBAAoB,GAAG,SAAS,CAIlC"}
|
|
@@ -83,6 +83,20 @@ export function listPendingAdmits(events, sessionId = "") {
|
|
|
83
83
|
}
|
|
84
84
|
return out;
|
|
85
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Session ids that still have pending Inbox rows (queue or steer).
|
|
88
|
+
* Used after Host restart to republish / wake without a separate inbox table.
|
|
89
|
+
*/
|
|
90
|
+
export function listSessionsWithPendingAdmits(store) {
|
|
91
|
+
const out = [];
|
|
92
|
+
for (const sessionId of store.list()) {
|
|
93
|
+
if (listPendingAdmits(readSessionEvents(store, sessionId), sessionId).length >
|
|
94
|
+
0) {
|
|
95
|
+
out.push(sessionId);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return out;
|
|
99
|
+
}
|
|
86
100
|
export class AdmitNotPendingError extends Error {
|
|
87
101
|
constructor(admitId) {
|
|
88
102
|
super(`admit not pending: ${admitId}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admit.js","sourceRoot":"","sources":["../src/admit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAGxF;;;;;;GAMG;AACH,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAC5C,YAAY,OAAO,GAAG,6BAA6B;QACjD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACpC,CAAC;CACF;AAiBD,SAAS,UAAU;IACjB,OAAO,SAAS,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AACtF,CAAC;AAED,SAAS,iBAAiB,CAAC,KAAiC;IAC1D,OAAO,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;AAC/C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,KAAmB,EAAE,EAAW;IACzD,IAAI,EAAE,EAAE,CAAC;QACP,IAAI,CAAC;YACH,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,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
import type { ChatMessage, ContextCompactionEvent, SessionEvent } from "@xrkseek/protocol";
|
|
7
7
|
export declare const DEFAULT_COMPACTION_KEEP_TOKENS = 8000;
|
|
8
8
|
export declare const DEFAULT_COMPACTION_BUFFER_TOKENS = 2000;
|
|
9
|
+
/** Soft-budget auto-compact attempts before fail-closed (DSH-style remeasure loop). */
|
|
10
|
+
export declare const DEFAULT_SOFT_BUDGET_COMPACT_ATTEMPTS = 2;
|
|
9
11
|
/**
|
|
10
12
|
* Budget estimator for `selectHeadRecent` / overflow (`chars/4` via {@link estimateText}).
|
|
11
13
|
*/
|
|
@@ -25,6 +27,12 @@ export declare function estimateRequestTokens(input: {
|
|
|
25
27
|
}[];
|
|
26
28
|
readonly system?: string;
|
|
27
29
|
}): number;
|
|
30
|
+
/**
|
|
31
|
+
* Inclusive soft-budget allow ceiling: `maxRequestTokens − buffer`.
|
|
32
|
+
* A buffer ≥ max would yield a non-positive ceiling and fail-closed every
|
|
33
|
+
* non-empty turn (误杀) — treat that misconfig as buffer 0.
|
|
34
|
+
*/
|
|
35
|
+
export declare function resolveSoftBudgetCeiling(maxRequestTokens: number, bufferTokens: number): number;
|
|
28
36
|
export declare const COMPACTION_SUMMARY_TEMPLATE = "Output exactly this Markdown structure (keep section order). Do not mention that context was compacted.\n\n## Objective\n- [what the user is trying to accomplish, or \"(none)\"]\n\n## Decisions\n- [constraints, choices and why, or \"(none)\"]\n\n## State\n### Done\n- [finished work / verified facts, or \"(none)\"]\n### Active\n- [current work / partial state, or \"(none)\"]\n### Blocked\n- [blockers / unknowns, or \"(none)\"]\n\n## Next\n1. [immediate next action, or \"(none)\"]\n\n## Files\n- [path: why it matters, or \"(none)\"]";
|
|
29
37
|
/**
|
|
30
38
|
* Split conversation into summarized head vs kept recent (from the end).
|
|
@@ -45,8 +53,15 @@ export declare function findLatestCompaction(events: readonly SessionEvent[]): {
|
|
|
45
53
|
} | undefined;
|
|
46
54
|
/**
|
|
47
55
|
* Fold full history ignoring compaction windows (for summarizer input).
|
|
56
|
+
* @param options.indexOffset Absolute log index of `events[0]` when folding a
|
|
57
|
+
* post-compaction slice — `image/offload` targets use durable-log seq.
|
|
58
|
+
* @param options.markSource Full session log for folding offload marks
|
|
59
|
+
* (defaults to `events`).
|
|
48
60
|
*/
|
|
49
|
-
export declare function deriveMessagesUnwindowed(events: readonly SessionEvent[]
|
|
61
|
+
export declare function deriveMessagesUnwindowed(events: readonly SessionEvent[], options?: {
|
|
62
|
+
readonly indexOffset?: number;
|
|
63
|
+
readonly markSource?: readonly SessionEvent[];
|
|
64
|
+
}): ChatMessage[];
|
|
50
65
|
export interface CompactionOptions {
|
|
51
66
|
/** Soft ceiling for request tokens; proactive compact when exceeded. */
|
|
52
67
|
readonly maxRequestTokens?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compaction.d.ts","sourceRoot":"","sources":["../src/compaction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,sBAAsB,
|
|
1
|
+
{"version":3,"file":"compaction.d.ts","sourceRoot":"","sources":["../src/compaction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,sBAAsB,EAEtB,YAAY,EACb,MAAM,mBAAmB,CAAC;AAQ3B,eAAO,MAAM,8BAA8B,OAAQ,CAAC;AACpD,eAAO,MAAM,gCAAgC,OAAQ,CAAC;AACtD,uFAAuF;AACvF,eAAO,MAAM,oCAAoC,IAAI,CAAC;AAEtD;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEnD;AAsBD,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAC/B,MAAM,CAmBR;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,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C,MAAM,EAAE,SAAS,YAAY,EAAE,EAC/B,OAAO,CAAC,EAAE;IACR,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;CAC/C,GACA,WAAW,EAAE,CAMf;AAuED,MAAM,WAAW,iBAAiB;IAChC,wEAAwE;IACxE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,oDAAoD;IACpD,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,SAAS,YAAY,EAAE,EAC/B,UAAU,EAAE,MAAM,GAEhB;IACE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,GACD,SAAS,CAeZ"}
|
|
@@ -5,8 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { flattenText } from "@xrkseek/protocol";
|
|
7
7
|
import { estimateText } from "./surface-estimate.js";
|
|
8
|
+
import { foldImageOffloadMarks, projectOffloadedImages, } from "./image-offload.js";
|
|
8
9
|
export const DEFAULT_COMPACTION_KEEP_TOKENS = 8_000;
|
|
9
10
|
export const DEFAULT_COMPACTION_BUFFER_TOKENS = 2_000;
|
|
11
|
+
/** Soft-budget auto-compact attempts before fail-closed (DSH-style remeasure loop). */
|
|
12
|
+
export const DEFAULT_SOFT_BUDGET_COMPACT_ATTEMPTS = 2;
|
|
10
13
|
/**
|
|
11
14
|
* Budget estimator for `selectHeadRecent` / overflow (`chars/4` via {@link estimateText}).
|
|
12
15
|
*/
|
|
@@ -20,10 +23,32 @@ function messagePlainText(m) {
|
|
|
20
23
|
return flattenText(m.content ?? "");
|
|
21
24
|
return flattenText(m.content);
|
|
22
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Blocks that {@link flattenText} skips (images) or under-prices relative to the
|
|
28
|
+
* outbound wire — soft budget must not miss them (漏压).
|
|
29
|
+
*/
|
|
30
|
+
function estimateOpaqueContentBlocks(content) {
|
|
31
|
+
if (typeof content === "string")
|
|
32
|
+
return 0;
|
|
33
|
+
let n = 0;
|
|
34
|
+
for (const block of content) {
|
|
35
|
+
if (block.type === "text" || block.type === "file")
|
|
36
|
+
continue;
|
|
37
|
+
n += estimateTokens(JSON.stringify(block));
|
|
38
|
+
}
|
|
39
|
+
return n;
|
|
40
|
+
}
|
|
23
41
|
export function estimateMessagesTokens(messages) {
|
|
24
42
|
let n = 0;
|
|
25
43
|
for (const m of messages) {
|
|
26
44
|
n += estimateTokens(messagePlainText(m));
|
|
45
|
+
if (m.role === "assistant" && m.reasoning?.trim()) {
|
|
46
|
+
// On the wire as reasoning_content; flattenText never sees it.
|
|
47
|
+
n += estimateTokens(m.reasoning);
|
|
48
|
+
}
|
|
49
|
+
if (m.role === "user" || m.role === "tool") {
|
|
50
|
+
n += estimateOpaqueContentBlocks(m.content);
|
|
51
|
+
}
|
|
27
52
|
if (m.role === "assistant" && m.toolCalls) {
|
|
28
53
|
for (const c of m.toolCalls) {
|
|
29
54
|
n += estimateTokens(c.name);
|
|
@@ -54,6 +79,18 @@ export function estimateRequestTokens(input) {
|
|
|
54
79
|
}
|
|
55
80
|
return n;
|
|
56
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Inclusive soft-budget allow ceiling: `maxRequestTokens − buffer`.
|
|
84
|
+
* A buffer ≥ max would yield a non-positive ceiling and fail-closed every
|
|
85
|
+
* non-empty turn (误杀) — treat that misconfig as buffer 0.
|
|
86
|
+
*/
|
|
87
|
+
export function resolveSoftBudgetCeiling(maxRequestTokens, bufferTokens) {
|
|
88
|
+
const max = Math.max(0, Math.trunc(maxRequestTokens));
|
|
89
|
+
let buffer = Math.max(0, Math.trunc(bufferTokens));
|
|
90
|
+
if (buffer >= max)
|
|
91
|
+
buffer = 0;
|
|
92
|
+
return max - buffer;
|
|
93
|
+
}
|
|
57
94
|
export const COMPACTION_SUMMARY_TEMPLATE = `Output exactly this Markdown structure (keep section order). Do not mention that context was compacted.
|
|
58
95
|
|
|
59
96
|
## Objective
|
|
@@ -80,6 +117,9 @@ function serializeMessage(m) {
|
|
|
80
117
|
return `[User]: ${flattenText(m.content)}`;
|
|
81
118
|
if (m.role === "assistant") {
|
|
82
119
|
const parts = [`[Assistant]: ${m.content}`];
|
|
120
|
+
if (m.reasoning?.trim()) {
|
|
121
|
+
parts.push(`[Reasoning]: ${m.reasoning}`);
|
|
122
|
+
}
|
|
83
123
|
if (m.toolCalls?.length) {
|
|
84
124
|
for (const c of m.toolCalls) {
|
|
85
125
|
parts.push(`[Tool call]: ${c.name}(${JSON.stringify(c.arguments ?? {})})`);
|
|
@@ -145,16 +185,26 @@ export function findLatestCompaction(events) {
|
|
|
145
185
|
}
|
|
146
186
|
/**
|
|
147
187
|
* Fold full history ignoring compaction windows (for summarizer input).
|
|
188
|
+
* @param options.indexOffset Absolute log index of `events[0]` when folding a
|
|
189
|
+
* post-compaction slice — `image/offload` targets use durable-log seq.
|
|
190
|
+
* @param options.markSource Full session log for folding offload marks
|
|
191
|
+
* (defaults to `events`).
|
|
148
192
|
*/
|
|
149
|
-
export function deriveMessagesUnwindowed(events) {
|
|
150
|
-
return foldChat(events);
|
|
193
|
+
export function deriveMessagesUnwindowed(events, options) {
|
|
194
|
+
return foldChat(events, options?.markSource ?? events, options?.indexOffset ?? 0);
|
|
151
195
|
}
|
|
152
|
-
function foldChat(events) {
|
|
196
|
+
function foldChat(events, markSource, indexOffset) {
|
|
197
|
+
const offloadMarks = foldImageOffloadMarks(markSource);
|
|
153
198
|
const messages = [];
|
|
154
|
-
for (
|
|
199
|
+
for (let i = 0; i < events.length; i++) {
|
|
200
|
+
const ev = events[i];
|
|
201
|
+
const absSeq = i + indexOffset;
|
|
155
202
|
switch (ev.type) {
|
|
156
203
|
case "user/message":
|
|
157
|
-
messages.push({
|
|
204
|
+
messages.push({
|
|
205
|
+
role: "user",
|
|
206
|
+
content: projectOffloadedImages(ev.content, offloadMarks.get(absSeq)),
|
|
207
|
+
});
|
|
158
208
|
break;
|
|
159
209
|
case "safety/notice":
|
|
160
210
|
messages.push({ role: "user", content: ev.content });
|
|
@@ -180,7 +230,7 @@ function foldChat(events) {
|
|
|
180
230
|
case "tool/result": {
|
|
181
231
|
const msg = {
|
|
182
232
|
role: "tool",
|
|
183
|
-
content: ev.result.content,
|
|
233
|
+
content: projectOffloadedImages(ev.result.content, offloadMarks.get(absSeq)),
|
|
184
234
|
toolCallId: ev.result.toolCallId,
|
|
185
235
|
name: ev.result.name,
|
|
186
236
|
...(ev.result.isError ? { isError: true } : {}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compaction.js","sourceRoot":"","sources":["../src/compaction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"compaction.js","sourceRoot":"","sources":["../src/compaction.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,8BAA8B,GAAG,KAAK,CAAC;AACpD,MAAM,CAAC,MAAM,gCAAgC,GAAG,KAAK,CAAC;AACtD,uFAAuF;AACvF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC;AAEtD;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,SAAS,gBAAgB,CAAC,CAAc;IACtC,IAAI,CAAC,CAAC,IAAI,KAAK,MAAM;QAAE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AWD,MAAM,UAAU,wBAAwB,CACtC,MAA+B,EAC/B,UAAkB;IAOlB,MAAM,IAAI,GAAG,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAC9C,MAAM,QAAQ,GAAG,gBAAgB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC;IAErD,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,KAAK,SAAS,CAAC,EAAE,CAAC;QACxE,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,MAAM,GAAG,qBAAqB,CAAC;QACnC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1D,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KACrE,CAAC,CAAC;IAEH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;AAC7C,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { ChatMessage, SessionEvent, ToolCall } from "@xrkseek/protocol";
|
|
2
2
|
export { TOOL_ABORTED, TOOL_ABORTED_BEFORE_DISPATCH, TOOL_ABORTED_MESSAGE, TOOL_ABORTED_BEFORE_DISPATCH_MESSAGE, } from "@xrkseek/protocol";
|
|
3
3
|
import type { SessionStore } from "./index.js";
|
|
4
|
-
/** @deprecated Prefer source-specific messages below. */
|
|
5
|
-
export declare const TOOL_INTERRUPTED_MESSAGE = "Tool execution interrupted";
|
|
6
4
|
/** Recovery code: assistant named the call but no `tool/call` was recorded. */
|
|
7
5
|
export declare const TOOL_NOT_STARTED = "TOOL_NOT_STARTED";
|
|
8
6
|
/** Recovery code: `tool/call` recorded but no durable `tool/result`. */
|
|
@@ -57,8 +55,6 @@ export declare function abortedBeforeDispatchSettlement(): {
|
|
|
57
55
|
};
|
|
58
56
|
export interface SettleDanglingOptions {
|
|
59
57
|
readonly now?: () => number;
|
|
60
|
-
/** @deprecated Ignored; settlement text is source-specific (DSH repair). */
|
|
61
|
-
readonly message?: string;
|
|
62
58
|
/**
|
|
63
59
|
* `aborted-before-dispatch` — cancel path (known: body never ran).
|
|
64
60
|
* Default `crash` — source-specific unknown / not-started codes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dangling.d.ts","sourceRoot":"","sources":["../src/dangling.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7E,OAAO,EACL,YAAY,EACZ,4BAA4B,EAC5B,oBAAoB,EACpB,oCAAoC,GACrC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C
|
|
1
|
+
{"version":3,"file":"dangling.d.ts","sourceRoot":"","sources":["../src/dangling.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7E,OAAO,EACL,YAAY,EACZ,4BAA4B,EAC5B,oBAAoB,EACpB,oCAAoC,GACrC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,wEAAwE;AACxE,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAE3D,eAAO,MAAM,wBAAwB,6GACuE,CAAC;AAE7G,eAAO,MAAM,4BAA4B,8TACoR,CAAC;AAE9T,MAAM,WAAW,gBAAgB;I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AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,yBAAyB,CAAC;CACrD;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAC/C;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,qBAA0B,GAClC,oBAAoB,CAuBtB"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { readSessionEvents } from "./seq.js";
|
|
2
2
|
import { TOOL_ABORTED_BEFORE_DISPATCH, TOOL_ABORTED_BEFORE_DISPATCH_MESSAGE, } from "@xrkseek/protocol";
|
|
3
3
|
export { TOOL_ABORTED, TOOL_ABORTED_BEFORE_DISPATCH, TOOL_ABORTED_MESSAGE, TOOL_ABORTED_BEFORE_DISPATCH_MESSAGE, } from "@xrkseek/protocol";
|
|
4
|
-
/** @deprecated Prefer source-specific messages below. */
|
|
5
|
-
export const TOOL_INTERRUPTED_MESSAGE = "Tool execution interrupted";
|
|
6
4
|
/** Recovery code: assistant named the call but no `tool/call` was recorded. */
|
|
7
5
|
export const TOOL_NOT_STARTED = "TOOL_NOT_STARTED";
|
|
8
6
|
/** Recovery code: `tool/call` recorded but no durable `tool/result`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dangling.js","sourceRoot":"","sources":["../src/dangling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,EACL,4BAA4B,EAC5B,oCAAoC,GACrC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,YAAY,EACZ,4BAA4B,EAC5B,oBAAoB,EACpB,oCAAoC,GACrC,MAAM,mBAAmB,CAAC;A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MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC;IACpC,MAAM,QAAQ,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;IAC5E,KAAK,MAAM,CAAC,IAAI,QAAQ,EAAE,CAAC;QACzB,MAAM,OAAO,GACX,OAAO,CAAC,IAAI,KAAK,yBAAyB;YACxC,CAAC,CAAC,+BAA+B,EAAE;YACnC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;QAC5B,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE;YACtB,IAAI,EAAE,aAAa;YACnB,EAAE,EAAE,GAAG,EAAE;YACT,MAAM,EAAE,CAAC,CAAC,MAAM;YAChB,MAAM,EAAE,CAAC,CAAC,MAAM;YAChB,MAAM,EAAE;gBACN,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE;gBACrB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI;gBACjB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,OAAO,EAAE,IAAI;gBACb,KAAK,EAAE,OAAO,CAAC,KAAK;aACrB;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;AAC/B,CAAC"}
|
|
@@ -13,6 +13,8 @@ export interface SessionDrainHub {
|
|
|
13
13
|
wake(sessionId: string): void;
|
|
14
14
|
cancel(sessionId: string): Promise<void>;
|
|
15
15
|
isActive(sessionId: string): boolean;
|
|
16
|
+
/** Session ids whose latch is currently draining (Host MCP mid-drain skip). */
|
|
17
|
+
activeIds(): readonly string[];
|
|
16
18
|
/** Drop idle latch entry (optional GC). Active latches are kept. */
|
|
17
19
|
forget(sessionId: string): void;
|
|
18
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drain-hub.d.ts","sourceRoot":"","sources":["../src/drain-hub.ts"],"names":[],"mappings":"AAA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AG,OAAO,CAAC;IACrC,+EAA+E;IAC/E,SAAS,IAAI,SAAS,MAAM,EAAE,CAAC;IAC/B,oEAAoE;IACpE,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE;IAC7C,8DAA8D;IAC9D,QAAQ,CAAC,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC;CACtD,GAAG,eAAe,CAsClB"}
|
|
@@ -28,6 +28,14 @@ export function createSessionDrainHub(options) {
|
|
|
28
28
|
isActive(sessionId) {
|
|
29
29
|
return latches.get(sessionId)?.isActive() ?? false;
|
|
30
30
|
},
|
|
31
|
+
activeIds() {
|
|
32
|
+
const ids = [];
|
|
33
|
+
for (const [id, L] of latches) {
|
|
34
|
+
if (L.isActive())
|
|
35
|
+
ids.push(id);
|
|
36
|
+
}
|
|
37
|
+
return ids;
|
|
38
|
+
},
|
|
31
39
|
forget(sessionId) {
|
|
32
40
|
const L = latches.get(sessionId);
|
|
33
41
|
if (L && !L.isActive())
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drain-hub.js","sourceRoot":"","sources":["../src/drain-hub.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,uBAAuB,GAGxB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"drain-hub.js","sourceRoot":"","sources":["../src/drain-hub.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,uBAAuB,GAGxB,MAAM,YAAY,CAAC;AAiBpB,MAAM,UAAU,qBAAqB,CAAC,OAGrC;IACC,MAAM,OAAO,GAAG,IAAI,GAAG,EAA6B,CAAC;IAErD,MAAM,KAAK,GAAG,CAAC,SAAiB,EAAqB,EAAE;QACrD,IAAI,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACtC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,QAAQ,GAAG,uBAAuB,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;YACnE,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QACnC,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC;IAEF,OAAO;QACL,KAAK;QACL,GAAG,CAAC,SAAS;YACX,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,CAAC;QAChC,CAAC;QACD,IAAI,CAAC,SAAS;YACZ,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC;QAC1B,CAAC;QACD,MAAM,CAAC,SAAS;YACd,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,CAAC;QACnC,CAAC;QACD,QAAQ,CAAC,SAAS;YAChB,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,KAAK,CAAC;QACrD,CAAC;QACD,SAAS;YACP,MAAM,GAAG,GAAa,EAAE,CAAC;YACzB,KAAK,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC;gBAC9B,IAAI,CAAC,CAAC,QAAQ,EAAE;oBAAE,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACjC,CAAC;YACD,OAAO,GAAG,CAAC;QACb,CAAC;QACD,MAAM,CAAC,SAAS;YACd,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YACjC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE;gBAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACpD,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Durable image offload: log `image/offload`, project marks in deriveMessages.
|
|
3
|
+
* Selections survive resume and fork with the seeded prefix.
|
|
4
|
+
*/
|
|
5
|
+
import { type ImageOffloadTarget, type MessageContent, type SessionEvent } from "@xrkseek/protocol";
|
|
6
|
+
import type { SessionStore } from "./store.js";
|
|
7
|
+
/** Match `@xrkseek/attachment` request bound (DSH rc.8). */
|
|
8
|
+
export declare const DEFAULT_MAX_REQUEST_IMAGE_BYTES: number;
|
|
9
|
+
/** Fold all `image/offload` marks: log index → selected image indexes. */
|
|
10
|
+
export declare function foldImageOffloadMarks(events: readonly SessionEvent[]): ReadonlyMap<number, ReadonlySet<number>>;
|
|
11
|
+
/**
|
|
12
|
+
* Project selected image occurrences to `offloaded: true` (immutable content).
|
|
13
|
+
* Indexes count every image in depth-first order, including already marked ones.
|
|
14
|
+
*/
|
|
15
|
+
export declare function projectOffloadedImages(content: MessageContent, indexes: ReadonlySet<number> | readonly number[] | undefined): MessageContent;
|
|
16
|
+
/**
|
|
17
|
+
* Plan additional offload targets so retained (non-offloaded) image payload
|
|
18
|
+
* fits `maxBytes`. Walks the log in order; skips assistant nodes.
|
|
19
|
+
*/
|
|
20
|
+
export declare function planImageOffloadTargets(events: readonly SessionEvent[], maxBytes?: number): ImageOffloadTarget[];
|
|
21
|
+
/**
|
|
22
|
+
* Append one `image/offload` when the current log would exceed the request
|
|
23
|
+
* image budget. Returns whether an event was written (caller should re-read).
|
|
24
|
+
*/
|
|
25
|
+
export declare function ensureDurableImageOffloads(store: SessionStore, sessionId: string, maxBytes?: number, now?: () => number): boolean;
|
|
26
|
+
//# sourceMappingURL=image-offload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-offload.d.ts","sourceRoot":"","sources":["../src/image-offload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,4DAA4D;AAC5D,eAAO,MAAM,+BAA+B,QAAmB,CAAC;AAMhE,0EAA0E;AAC1E,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,SAAS,YAAY,EAAE,GAC9B,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,CAc1C;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,GAC3D,cAAc,CA+BhB;AAiBD;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,SAAS,YAAY,EAAE,EAC/B,QAAQ,GAAE,MAAwC,GACjD,kBAAkB,EAAE,CAwCtB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,MAAM,EACjB,QAAQ,GAAE,MAAwC,EAClD,GAAG,GAAE,MAAM,MAAyB,GACnC,OAAO,CAUT"}
|