@xrkseek/harness 0.4.12 → 0.5.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/node_modules/@xrkseek/a2a/README.md +8 -6
- package/node_modules/@xrkseek/a2a/dist/client.d.ts +1 -0
- package/node_modules/@xrkseek/a2a/dist/client.d.ts.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/client.js +36 -20
- package/node_modules/@xrkseek/a2a/dist/client.js.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/inbound.d.ts +9 -2
- package/node_modules/@xrkseek/a2a/dist/inbound.d.ts.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/inbound.js +86 -41
- package/node_modules/@xrkseek/a2a/dist/inbound.js.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/index.d.ts +2 -1
- package/node_modules/@xrkseek/a2a/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/index.js +2 -1
- package/node_modules/@xrkseek/a2a/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/protocol.d.ts +9 -0
- package/node_modules/@xrkseek/a2a/dist/protocol.d.ts.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/protocol.js +25 -0
- package/node_modules/@xrkseek/a2a/dist/protocol.js.map +1 -1
- package/node_modules/@xrkseek/a2a/dist/task-store.d.ts +43 -0
- package/node_modules/@xrkseek/a2a/dist/task-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/a2a/dist/task-store.js +105 -0
- package/node_modules/@xrkseek/a2a/dist/task-store.js.map +1 -0
- package/node_modules/@xrkseek/context-fragments/README.md +4 -2
- package/node_modules/@xrkseek/context-fragments/dist/index.d.ts +10 -2
- package/node_modules/@xrkseek/context-fragments/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/context-fragments/dist/index.js +16 -11
- package/node_modules/@xrkseek/context-fragments/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts +5 -0
- package/node_modules/@xrkseek/core-agent/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent/dist/index.js +3 -0
- package/node_modules/@xrkseek/core-agent/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts +11 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js +9 -0
- package/node_modules/@xrkseek/core-agent-loop/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/index.js +3 -0
- package/node_modules/@xrkseek/core-session/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js +16 -0
- package/node_modules/@xrkseek/core-session/dist/sqlite-store.js.map +1 -1
- package/node_modules/@xrkseek/core-session/dist/store.d.ts +5 -0
- package/node_modules/@xrkseek/core-session/dist/store.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/background.js +2 -2
- package/node_modules/@xrkseek/exec-computer-use/dist/background.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts +22 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/format.js +75 -9
- package/node_modules/@xrkseek/exec-computer-use/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts +2 -2
- package/node_modules/@xrkseek/exec-computer-use/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/index.js +2 -2
- package/node_modules/@xrkseek/exec-computer-use/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts +2 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.js +18 -2
- package/node_modules/@xrkseek/exec-computer-use/dist/memory.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts +15 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.js +77 -22
- package/node_modules/@xrkseek/exec-computer-use/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts +5 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/types.js.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts +4 -0
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js +138 -6
- package/node_modules/@xrkseek/exec-computer-use/dist/windows-uia.js.map +1 -1
- package/node_modules/@xrkseek/exec-environment/README.md +2 -2
- package/node_modules/@xrkseek/exec-environment/dist/index.d.ts +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/index.js +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/memory.d.ts +25 -0
- package/node_modules/@xrkseek/exec-environment/dist/memory.d.ts.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/memory.js +290 -0
- package/node_modules/@xrkseek/exec-environment/dist/memory.js.map +1 -0
- package/node_modules/@xrkseek/exec-environment/dist/resolve.d.ts +5 -3
- package/node_modules/@xrkseek/exec-environment/dist/resolve.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/resolve.js +13 -5
- package/node_modules/@xrkseek/exec-environment/dist/resolve.js.map +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/types.d.ts +1 -1
- package/node_modules/@xrkseek/exec-environment/dist/types.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-environment/package.json +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts +2 -0
- package/node_modules/@xrkseek/exec-fs/dist/read-image.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/read-image.js +69 -31
- package/node_modules/@xrkseek/exec-fs/dist/read-image.js.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.js +10 -1
- package/node_modules/@xrkseek/exec-fs/dist/routing-prompt.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts +14 -0
- package/node_modules/@xrkseek/exec-image-gen/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/format.js +28 -6
- package/node_modules/@xrkseek/exec-image-gen/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/references.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/references.js +8 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/references.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/schema.js +11 -7
- package/node_modules/@xrkseek/exec-image-gen/dist/schema.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts +2 -2
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js +38 -14
- package/node_modules/@xrkseek/exec-image-gen/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-image-gen/package.json +2 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts +23 -3
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js +40 -5
- package/node_modules/@xrkseek/exec-sandbox/dist/bwrap.js.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/doctor.js +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/doctor.js.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.js +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts +8 -0
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js +13 -4
- package/node_modules/@xrkseek/exec-sandbox/dist/resolve.js.map +1 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.d.ts +6 -3
- package/node_modules/@xrkseek/exec-shell/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-shell/dist/index.js +40 -10
- package/node_modules/@xrkseek/exec-shell/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-subprocess/dist/index.d.ts +4 -0
- package/node_modules/@xrkseek/exec-subprocess/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-subprocess/dist/index.js +2 -0
- package/node_modules/@xrkseek/exec-subprocess/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/format.js +6 -6
- package/node_modules/@xrkseek/exec-video-gen/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js +2 -2
- package/node_modules/@xrkseek/exec-video-gen/dist/tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js +26 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-cdp.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts +10 -2
- package/node_modules/@xrkseek/exec-web/dist/browser-session.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-session.js +27 -4
- package/node_modules/@xrkseek/exec-web/dist/browser-session.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.js +43 -14
- package/node_modules/@xrkseek/exec-web/dist/browser-tools.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/format.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/format.js +2 -1
- package/node_modules/@xrkseek/exec-web/dist/format.js.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/exec-web/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.d.ts +14 -0
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.d.ts.map +1 -0
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.js +21 -0
- package/node_modules/@xrkseek/llm/dist/reasoning-effort.js.map +1 -0
- package/node_modules/@xrkseek/preset-harness/dist/preset.d.ts.map +1 -1
- package/node_modules/@xrkseek/preset-harness/dist/preset.js +28 -4
- 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-minimal/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/preset-server/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.d.ts.map +1 -1
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.js +3 -1
- package/node_modules/@xrkseek/protocol/dist/workspace-changes.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/attach-http.d.ts +6 -2
- package/node_modules/@xrkseek/server-face/dist/attach-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/attach-http.js +120 -46
- package/node_modules/@xrkseek/server-face/dist/attach-http.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/canvas-store.d.ts +63 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-store.js +235 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-store.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-tools.d.ts +14 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-tools.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-tools.js +229 -0
- package/node_modules/@xrkseek/server-face/dist/canvas-tools.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/context.d.ts +21 -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 +13 -3
- package/node_modules/@xrkseek/server-face/dist/dispatch.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/face-schema.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/face-schema.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/goal-store.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/goal-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/goal-store.js +6 -0
- package/node_modules/@xrkseek/server-face/dist/goal-store.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/canvas.d.ts +4 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/canvas.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/canvas.js +70 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/canvas.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 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/catalog.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.d.ts +11 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.js +170 -4
- package/node_modules/@xrkseek/server-face/dist/handlers/remotes.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 -2
- 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 +6 -0
- package/node_modules/@xrkseek/server-face/dist/handlers/session.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js +90 -6
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.d.mts +3734 -0
- package/node_modules/@xrkseek/server-face/dist/index.d.mts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/index.d.ts +8 -3
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +8 -3
- package/node_modules/@xrkseek/server-face/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.mjs +22085 -0
- package/node_modules/@xrkseek/server-face/dist/index.mjs.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.d.ts +51 -0
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.js +104 -0
- package/node_modules/@xrkseek/server-face/dist/model-reasoning.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.d.ts +34 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.js +41 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-agent-presets.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts +5 -2
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js +13 -2
- package/node_modules/@xrkseek/server-face/dist/plugin-inventory.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js +3 -1
- package/node_modules/@xrkseek/server-face/dist/projections/units/context-timeline.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/remote-event.d.ts +1 -1
- package/node_modules/@xrkseek/server-face/dist/remote-event.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/remote-event.js +1 -0
- package/node_modules/@xrkseek/server-face/dist/remote-event.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts +17 -4
- package/node_modules/@xrkseek/server-face/dist/runtime.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/runtime.js +22 -2
- package/node_modules/@xrkseek/server-face/dist/runtime.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.d.ts +14 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.js +71 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset-store.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset.d.ts +17 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset.js +50 -0
- package/node_modules/@xrkseek/server-face/dist/session-agent-preset.js.map +1 -0
- package/node_modules/@xrkseek/server-face/dist/session-attachment.d.ts +4 -0
- package/node_modules/@xrkseek/server-face/dist/session-attachment.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-attachment.js +30 -7
- package/node_modules/@xrkseek/server-face/dist/session-attachment.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.js +2 -1
- package/node_modules/@xrkseek/server-face/dist/session-status.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.d.ts +6 -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 +68 -12
- package/node_modules/@xrkseek/server-face/dist/settings-credentials.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js +7 -3
- package/node_modules/@xrkseek/server-face/dist/settings-schemas.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js +25 -1
- package/node_modules/@xrkseek/server-face/dist/subagent-tools.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/types.d.ts +3 -0
- 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 +15 -0
- 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 +2 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-face.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js +61 -3
- package/node_modules/@xrkseek/server-face/dist/workspace-face.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts +33 -2
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.js +61 -2
- package/node_modules/@xrkseek/server-face/dist/workspace-registry.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-store.d.ts +2 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/workspace-store.js +4 -0
- package/node_modules/@xrkseek/server-face/dist/workspace-store.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/cron-http.d.ts +26 -0
- package/node_modules/@xrkseek/server-host/dist/cron-http.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/cron-http.js +77 -0
- package/node_modules/@xrkseek/server-host/dist/cron-http.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/index.js +258 -128
- package/node_modules/@xrkseek/server-host/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts +8 -0
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.js +33 -1
- package/node_modules/@xrkseek/server-host/dist/mcp-wire.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js +2 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-face-bridge.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.d.ts +2 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.js +98 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-agent.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.d.ts +18 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.js +141 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty-worker.js.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts +11 -4
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js +353 -2
- package/node_modules/@xrkseek/server-host/dist/sidebar-pty.js.map +1 -1
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.d.ts +30 -0
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.js +96 -0
- package/node_modules/@xrkseek/server-host/dist/win-fd-inherit.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts +14 -0
- package/node_modules/@xrkseek/server-http/dist/boot-inject.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/boot-inject.js +31 -0
- 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 +306 -11
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/adapter-providers.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js +53 -3
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/audit-community-client.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.js +80 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/billing.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.js +152 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/code-server.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.d.ts +5 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.js +31 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-plugin-root.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts +17 -3
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js +265 -8
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/community-root-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js +6 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-client-scan.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.js +188 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-codex-ui.js.map +1 -0
- 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 +3 -3
- 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-context.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-context.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-context.js +117 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-context.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.js +381 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-email.js.map +1 -0
- 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 +43 -1
- 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/dsh-pet-legacy.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.js +173 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-pet-legacy.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.d.ts +17 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.js +209 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-skins.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.js +470 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-ssh.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.js +93 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/dsh-update.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.d.ts +27 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.js +213 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/free-search.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts +6 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js +92 -14
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-dsh-http.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/generic-plugin-http.d.ts +1 -0
- 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 +72 -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/git-graph.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.js +341 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/git-graph.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js +3 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/honest-http-catchall.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.js +138 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/im-connect.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.js +85 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/install.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.d.ts +27 -0
- 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 +230 -52
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/market.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.js +182 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mcp-connector.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.d.ts +13 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.js +151 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/michengai.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon-store.d.ts +6 -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 +34 -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 +2 -0
- 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 +271 -20
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/mnemon.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js +105 -21
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/modlens.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.js +81 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/niulai-kws.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.d.ts +8 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.js +378 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/pet.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.js +229 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/remote-web-ui.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.js +300 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/server-deck.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js +10 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-defaults.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js +40 -9
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/settings-store.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.d.ts +8 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.js +428 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skills-manager.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.d.ts +12 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.js +166 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-assets.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.d.ts +20 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.js +308 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-center.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.d.ts +32 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.js +183 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-discover.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts +2 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js +20 -16
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/skin-market.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.d.ts +7 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.js +245 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/task-board.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.d.ts +9 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.js +116 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/token-usage-stats-dash.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.d.ts +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.js +5 -2
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/http-json.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts +2 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js +2 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.d.ts +18 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.js +65 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/underlying/plugin-surface-store.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.d.ts +11 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.js +114 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/univer-api.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts +3 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js +42 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wallpaper.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.d.ts +6 -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 +68 -8
- package/node_modules/@xrkseek/server-http/dist/dsh-compat/wire/stub-handlers.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/fetch-dispatch.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/fetch-dispatch.js +111 -26
- package/node_modules/@xrkseek/server-http/dist/fetch-dispatch.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/host-owned-paths.d.ts +6 -0
- package/node_modules/@xrkseek/server-http/dist/host-owned-paths.d.ts.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/host-owned-paths.js +32 -0
- package/node_modules/@xrkseek/server-http/dist/host-owned-paths.js.map +1 -0
- package/node_modules/@xrkseek/server-http/dist/index.d.ts +2 -1
- package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.js +2 -1
- package/node_modules/@xrkseek/server-http/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js +10 -0
- package/node_modules/@xrkseek/server-http/dist/sidebar/sidebar-adapter.js.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.d.ts +9 -0
- 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 +68 -21
- package/node_modules/@xrkseek/server-http/dist/xrk/plugin-mutate.js.map +1 -1
- package/node_modules/@xrkseek/server-http/package.json +1 -0
- package/node_modules/@xrkseek/server-loader/dist/index.d.ts +1 -1
- package/node_modules/@xrkseek/server-loader/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/load.js +5 -2
- package/node_modules/@xrkseek/server-loader/dist/load.js.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts +11 -1
- package/node_modules/@xrkseek/server-loader/dist/managed-state.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-loader/dist/managed-state.js +11 -2
- package/node_modules/@xrkseek/server-loader/dist/managed-state.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.d.ts +9 -0
- package/node_modules/@xrkseek/workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/index.js +4 -2
- package/node_modules/@xrkseek/workspace/dist/index.js.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts +32 -2
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.d.ts.map +1 -1
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js +69 -2
- package/node_modules/@xrkseek/workspace/dist/workspace-anchor.js.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/README.md +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/README.zh.md +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts +5 -3
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.d.ts.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js +20 -17
- package/node_modules/@xrkseek/xrk-session-reference/dist/spill.js.map +1 -1
- package/node_modules/@xrkseek/xrk-session-reference/package.json +1 -1
- package/package.json +1 -1
- package/node_modules/@xrkseek/server-face/dist/opencode-zen.d.ts +0 -13
- package/node_modules/@xrkseek/server-face/dist/opencode-zen.d.ts.map +0 -1
- package/node_modules/@xrkseek/server-face/dist/opencode-zen.js +0 -40
- package/node_modules/@xrkseek/server-face/dist/opencode-zen.js.map +0 -1
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { createDuckDuckGoSearch } from "@xrkseek/exec-web";
|
|
2
|
+
import { sendJson } from "./underlying/http-json.js";
|
|
3
|
+
import { createPersistedSettingsDocStore } from "./persisted-settings-store.js";
|
|
4
|
+
import { httpMethod, parseJsonBody } from "./underlying/http-kit.js";
|
|
5
|
+
import { DSH_COMPAT_ADAPTER } from "./meta.js";
|
|
6
|
+
const NS = "web-search-free";
|
|
7
|
+
const DEFAULTS = {
|
|
8
|
+
provider: "ddg",
|
|
9
|
+
lang: "zh",
|
|
10
|
+
keyStorage: "credentials",
|
|
11
|
+
safeSearch: "off",
|
|
12
|
+
bingMarket: "zh-CN",
|
|
13
|
+
anysearchApiKey: "",
|
|
14
|
+
exaApiKey: "",
|
|
15
|
+
tavilyApiKey: "",
|
|
16
|
+
keenableApiKey: "",
|
|
17
|
+
firecrawlApiKey: "",
|
|
18
|
+
parallelApiKey: "",
|
|
19
|
+
perplexityApiKey: "",
|
|
20
|
+
serpbaseApiKey: "",
|
|
21
|
+
};
|
|
22
|
+
const KEY_FIELDS = [
|
|
23
|
+
"anysearchApiKey",
|
|
24
|
+
"exaApiKey",
|
|
25
|
+
"tavilyApiKey",
|
|
26
|
+
"keenableApiKey",
|
|
27
|
+
"firecrawlApiKey",
|
|
28
|
+
"parallelApiKey",
|
|
29
|
+
"perplexityApiKey",
|
|
30
|
+
"serpbaseApiKey",
|
|
31
|
+
];
|
|
32
|
+
function storeFor(xrkHome) {
|
|
33
|
+
return createPersistedSettingsDocStore(xrkHome, NS, DEFAULTS);
|
|
34
|
+
}
|
|
35
|
+
function describeBody(xrkHome) {
|
|
36
|
+
const store = storeFor(xrkHome);
|
|
37
|
+
return {
|
|
38
|
+
ok: true,
|
|
39
|
+
value: {
|
|
40
|
+
writable: true,
|
|
41
|
+
namespaces: [
|
|
42
|
+
{
|
|
43
|
+
ns: NS,
|
|
44
|
+
value: store.value(),
|
|
45
|
+
base: store.base(),
|
|
46
|
+
user: store.user(),
|
|
47
|
+
revision: store.revision(),
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function credentialsConfigured(value) {
|
|
55
|
+
const out = {};
|
|
56
|
+
for (const key of KEY_FIELDS) {
|
|
57
|
+
const raw = value[key];
|
|
58
|
+
out[key] = typeof raw === "string" && raw.trim().length > 0;
|
|
59
|
+
}
|
|
60
|
+
return out;
|
|
61
|
+
}
|
|
62
|
+
function resolveProvider(settings) {
|
|
63
|
+
const raw = typeof settings.provider === "string" ? settings.provider.trim() : "ddg";
|
|
64
|
+
return raw || "ddg";
|
|
65
|
+
}
|
|
66
|
+
/** Keyless providers we can run in-process; keyed engines stay deferred. */
|
|
67
|
+
function isKeylessProvider(provider) {
|
|
68
|
+
const id = provider.toLowerCase();
|
|
69
|
+
return id === "ddg" || id === "duckduckgo" || id === "parallel-free";
|
|
70
|
+
}
|
|
71
|
+
export function isFreeSearchPath(pathname) {
|
|
72
|
+
return (pathname === "/api/dsh-free-search-settings" ||
|
|
73
|
+
pathname.startsWith("/api/dsh-free-search-settings/"));
|
|
74
|
+
}
|
|
75
|
+
export async function handleFreeSearchHttp(req, res, pathname, options = {}) {
|
|
76
|
+
if (!isFreeSearchPath(pathname))
|
|
77
|
+
return false;
|
|
78
|
+
const method = httpMethod(req);
|
|
79
|
+
const xrkHome = options.xrkHome;
|
|
80
|
+
const rel = pathname.replace(/^\/api\/dsh-free-search-settings\/?/, "/");
|
|
81
|
+
if (rel === "/describe" || rel === "/" || rel === "") {
|
|
82
|
+
if (method === "POST")
|
|
83
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
84
|
+
sendJson(res, 200, describeBody(xrkHome));
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
if (rel === "/mutate") {
|
|
88
|
+
const body = await parseJsonBody(req);
|
|
89
|
+
const store = storeFor(xrkHome);
|
|
90
|
+
const ops = Array.isArray(body.ops) ? body.ops : [];
|
|
91
|
+
if (ops.length > 0)
|
|
92
|
+
store.applyOps(ops);
|
|
93
|
+
if (body.document && typeof body.document === "object") {
|
|
94
|
+
store.replaceUser(body.document);
|
|
95
|
+
}
|
|
96
|
+
sendJson(res, 200, {
|
|
97
|
+
ok: true,
|
|
98
|
+
value: {
|
|
99
|
+
value: store.value(),
|
|
100
|
+
writable: true,
|
|
101
|
+
revision: store.revision(),
|
|
102
|
+
namespaces: [
|
|
103
|
+
{
|
|
104
|
+
ns: NS,
|
|
105
|
+
value: store.value(),
|
|
106
|
+
revision: store.revision(),
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
111
|
+
});
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
if (rel === "/credentials-status") {
|
|
115
|
+
if (method === "POST")
|
|
116
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
117
|
+
const value = storeFor(xrkHome).value();
|
|
118
|
+
sendJson(res, 200, {
|
|
119
|
+
ok: true,
|
|
120
|
+
configured: credentialsConfigured(value),
|
|
121
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
122
|
+
note: "Reports non-empty keys stored in settings; credential-center refs stay separate.",
|
|
123
|
+
});
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
if (rel === "/credentials-set") {
|
|
127
|
+
await parseJsonBody(req);
|
|
128
|
+
sendJson(res, 200, {
|
|
129
|
+
ok: false,
|
|
130
|
+
error: "credentials-unavailable",
|
|
131
|
+
message: "Use Settings keyStorage=settings or Host credentials file; bridge set is not embedded.",
|
|
132
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
133
|
+
});
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
if (rel === "/raw-search") {
|
|
137
|
+
const body = await parseJsonBody(req);
|
|
138
|
+
const query = typeof body.query === "string" ? body.query.trim() : "";
|
|
139
|
+
if (!query) {
|
|
140
|
+
sendJson(res, 200, {
|
|
141
|
+
ok: false,
|
|
142
|
+
code: "search-rejected",
|
|
143
|
+
message: "malformed bridge search request (query is required)",
|
|
144
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
145
|
+
});
|
|
146
|
+
return true;
|
|
147
|
+
}
|
|
148
|
+
const settings = storeFor(xrkHome).value();
|
|
149
|
+
const requested = typeof body.engine === "string" && body.engine.trim()
|
|
150
|
+
? body.engine.trim()
|
|
151
|
+
: typeof body.provider === "string" && body.provider.trim()
|
|
152
|
+
? body.provider.trim()
|
|
153
|
+
: resolveProvider(settings);
|
|
154
|
+
const maxResults = Math.min(Math.max(Number(body.maxResults) || 5, 1), 10);
|
|
155
|
+
if (!isKeylessProvider(requested)) {
|
|
156
|
+
sendJson(res, 200, {
|
|
157
|
+
ok: false,
|
|
158
|
+
code: "search-unavailable",
|
|
159
|
+
message: `Provider "${requested}" needs an API key / engine host; keyless ddg is available.`,
|
|
160
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
161
|
+
});
|
|
162
|
+
return true;
|
|
163
|
+
}
|
|
164
|
+
try {
|
|
165
|
+
const search = options.search ??
|
|
166
|
+
createDuckDuckGoSearch(typeof settings.lang === "string" && settings.lang.startsWith("zh")
|
|
167
|
+
? { region: "wt-wt" }
|
|
168
|
+
: {});
|
|
169
|
+
const result = await search.search({ query, maxResults });
|
|
170
|
+
sendJson(res, 200, {
|
|
171
|
+
ok: true,
|
|
172
|
+
value: {
|
|
173
|
+
provider: requested === "duckduckgo" ? "ddg" : requested,
|
|
174
|
+
sources: result.sources.map((s) => ({
|
|
175
|
+
url: s.url,
|
|
176
|
+
...(s.title ? { title: s.title } : {}),
|
|
177
|
+
...(s.snippet ? { snippet: s.snippet } : {}),
|
|
178
|
+
...(s.publishedAt ? { publishedAt: s.publishedAt } : {}),
|
|
179
|
+
})),
|
|
180
|
+
content: result.content ?? "",
|
|
181
|
+
},
|
|
182
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
catch (err) {
|
|
186
|
+
sendJson(res, 200, {
|
|
187
|
+
ok: false,
|
|
188
|
+
code: "engine-failed",
|
|
189
|
+
message: err instanceof Error ? err.message : String(err),
|
|
190
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
return true;
|
|
194
|
+
}
|
|
195
|
+
if (rel === "/check-update") {
|
|
196
|
+
if (method === "POST")
|
|
197
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
198
|
+
sendJson(res, 200, {
|
|
199
|
+
ok: true,
|
|
200
|
+
updateAvailable: false,
|
|
201
|
+
current: null,
|
|
202
|
+
latest: null,
|
|
203
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
204
|
+
});
|
|
205
|
+
return true;
|
|
206
|
+
}
|
|
207
|
+
if (method === "POST" || method === "PUT" || method === "PATCH") {
|
|
208
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
209
|
+
}
|
|
210
|
+
sendJson(res, 200, describeBody(xrkHome));
|
|
211
|
+
return true;
|
|
212
|
+
}
|
|
213
|
+
//# sourceMappingURL=free-search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"free-search.js","sourceRoot":"","sources":["../../src/dsh-compat/free-search.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAsB/C,MAAM,EAAE,GAAG,iBAAiB,CAAC;AAE7B,MAAM,QAAQ,GAA4B;IACxC,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,IAAI;IACV,UAAU,EAAE,aAAa;IACzB,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,OAAO;IACnB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE;IACb,YAAY,EAAE,EAAE;IAChB,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,EAAE;IACnB,cAAc,EAAE,EAAE;IAClB,gBAAgB,EAAE,EAAE;IACpB,cAAc,EAAE,EAAE;CACnB,CAAC;AAEF,MAAM,UAAU,GAAG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C,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7C,CAAC;IACD,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1C,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generic `/_dsh/<plugin>/…` HTTP surface (not a per-plugin list).
|
|
3
3
|
* Mounted once via `dsh-path-capabilities` as `xrk-dsh-http`.
|
|
4
|
+
* Settings / config / state persist under ~/.xrk/community-surfaces/<plugin>/.
|
|
4
5
|
*/
|
|
5
6
|
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
7
|
+
export interface GenericDshHttpOptions {
|
|
8
|
+
readonly xrkHome?: string;
|
|
9
|
+
}
|
|
6
10
|
/**
|
|
7
11
|
* Honest JSON for community plugins that call `/_dsh/<pkg>/status` etc.
|
|
8
|
-
* Cordis Host process is not embedded — panels get shape
|
|
12
|
+
* Cordis Host process is not embedded — panels get shape + local persist.
|
|
9
13
|
*/
|
|
10
|
-
export declare function handleGenericDshHttp(req: IncomingMessage, res: ServerResponse, pathname: string): Promise<boolean>;
|
|
14
|
+
export declare function handleGenericDshHttp(req: IncomingMessage, res: ServerResponse, pathname: string, options?: GenericDshHttpOptions): Promise<boolean>;
|
|
11
15
|
//# sourceMappingURL=generic-dsh-http.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic-dsh-http.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/generic-dsh-http.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"generic-dsh-http.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/generic-dsh-http.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAcjE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAkED;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,OAAO,CAAC,CAiGlB"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { sendJson } from "./underlying/http-json.js";
|
|
2
|
+
import { httpMethod, isMutatingMethod, parseJsonBody, } from "./underlying/http-kit.js";
|
|
3
|
+
import { patchPluginSurface, readPluginSurface, } from "./underlying/plugin-surface-store.js";
|
|
2
4
|
import { DSH_COMPAT_ADAPTER, tag } from "./meta.js";
|
|
3
5
|
function pluginIdFromPath(pathname) {
|
|
4
6
|
const parts = pathname.split("/").filter(Boolean);
|
|
@@ -9,53 +11,129 @@ function tailFromPath(pathname) {
|
|
|
9
11
|
const parts = pathname.split("/").filter(Boolean);
|
|
10
12
|
return parts.slice(2).join("/") || "status";
|
|
11
13
|
}
|
|
14
|
+
function bucketOf(tail) {
|
|
15
|
+
if (tail === "settings" || tail.endsWith("/settings"))
|
|
16
|
+
return "settings";
|
|
17
|
+
if (tail === "config" || tail.endsWith("/config"))
|
|
18
|
+
return "config";
|
|
19
|
+
if (tail === "state" ||
|
|
20
|
+
tail.endsWith("/state") ||
|
|
21
|
+
tail === "workstate" ||
|
|
22
|
+
tail.endsWith("/workstate")) {
|
|
23
|
+
return "state";
|
|
24
|
+
}
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
function extractPatch(body) {
|
|
28
|
+
if (body.value && typeof body.value === "object" && !Array.isArray(body.value)) {
|
|
29
|
+
return {
|
|
30
|
+
patch: body.value,
|
|
31
|
+
mode: "replace",
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
if (body.document &&
|
|
35
|
+
typeof body.document === "object" &&
|
|
36
|
+
!Array.isArray(body.document)) {
|
|
37
|
+
return {
|
|
38
|
+
patch: body.document,
|
|
39
|
+
mode: "replace",
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
if (body.config && typeof body.config === "object" && !Array.isArray(body.config)) {
|
|
43
|
+
return {
|
|
44
|
+
patch: body.config,
|
|
45
|
+
mode: "merge",
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
if (body.state && typeof body.state === "object" && !Array.isArray(body.state)) {
|
|
49
|
+
return {
|
|
50
|
+
patch: body.state,
|
|
51
|
+
mode: "merge",
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const { action: _a, expectedRevision: _e, ...rest } = body;
|
|
55
|
+
return { patch: rest, mode: "merge" };
|
|
56
|
+
}
|
|
12
57
|
/**
|
|
13
58
|
* Honest JSON for community plugins that call `/_dsh/<pkg>/status` etc.
|
|
14
|
-
* Cordis Host process is not embedded — panels get shape
|
|
59
|
+
* Cordis Host process is not embedded — panels get shape + local persist.
|
|
15
60
|
*/
|
|
16
|
-
export async function handleGenericDshHttp(req, res, pathname) {
|
|
61
|
+
export async function handleGenericDshHttp(req, res, pathname, options = {}) {
|
|
17
62
|
if (!pathname.startsWith("/_dsh/"))
|
|
18
63
|
return false;
|
|
19
|
-
const method = (req
|
|
20
|
-
|
|
21
|
-
await readBody(req);
|
|
22
|
-
}
|
|
64
|
+
const method = httpMethod(req);
|
|
65
|
+
const xrkHome = options.xrkHome;
|
|
23
66
|
const plugin = pluginIdFromPath(pathname);
|
|
24
67
|
const tail = tailFromPath(pathname);
|
|
25
|
-
const
|
|
68
|
+
const surface = readPluginSurface(xrkHome, plugin);
|
|
69
|
+
const bucket = bucketOf(tail);
|
|
26
70
|
if (tail === "status" ||
|
|
27
71
|
tail === "health" ||
|
|
28
72
|
tail === "" ||
|
|
29
73
|
tail === "ping") {
|
|
74
|
+
if (isMutatingMethod(method))
|
|
75
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
30
76
|
sendJson(res, 200, tag({
|
|
31
77
|
ok: true,
|
|
32
78
|
status: "ready",
|
|
33
79
|
plugin,
|
|
34
80
|
path: pathname,
|
|
35
81
|
adapter: DSH_COMPAT_ADAPTER,
|
|
36
|
-
writable:
|
|
82
|
+
writable: true,
|
|
83
|
+
revision: surface.revision,
|
|
37
84
|
note: "XRK generic _dsh HTTP; Cordis Host apply() not embedded.",
|
|
38
|
-
}, [
|
|
85
|
+
}, ["dsh-host"]));
|
|
39
86
|
return true;
|
|
40
87
|
}
|
|
41
|
-
if (
|
|
88
|
+
if (bucket) {
|
|
89
|
+
if (isMutatingMethod(method)) {
|
|
90
|
+
const body = await parseJsonBody(req);
|
|
91
|
+
const { patch, mode } = extractPatch(body);
|
|
92
|
+
const next = Object.keys(patch).length > 0
|
|
93
|
+
? patchPluginSurface(xrkHome, plugin, bucket, patch, mode)
|
|
94
|
+
: readPluginSurface(xrkHome, plugin);
|
|
95
|
+
const value = next[bucket];
|
|
96
|
+
sendJson(res, 200, {
|
|
97
|
+
ok: true,
|
|
98
|
+
plugin,
|
|
99
|
+
path: pathname,
|
|
100
|
+
[bucket]: value,
|
|
101
|
+
value,
|
|
102
|
+
config: next.config,
|
|
103
|
+
state: next.state,
|
|
104
|
+
settings: next.settings,
|
|
105
|
+
revision: next.revision,
|
|
106
|
+
writable: true,
|
|
107
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
108
|
+
});
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
42
111
|
sendJson(res, 200, {
|
|
43
112
|
ok: true,
|
|
44
113
|
plugin,
|
|
45
114
|
path: pathname,
|
|
46
|
-
|
|
115
|
+
[bucket]: surface[bucket],
|
|
116
|
+
value: surface[bucket],
|
|
117
|
+
config: surface.config,
|
|
118
|
+
state: surface.state,
|
|
119
|
+
settings: surface.settings,
|
|
120
|
+
revision: surface.revision,
|
|
121
|
+
writable: true,
|
|
47
122
|
adapter: DSH_COMPAT_ADAPTER,
|
|
48
|
-
incomplete: [...incomplete],
|
|
49
123
|
});
|
|
50
124
|
return true;
|
|
51
125
|
}
|
|
126
|
+
if (isMutatingMethod(method)) {
|
|
127
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
128
|
+
}
|
|
52
129
|
sendJson(res, 200, tag({
|
|
53
130
|
ok: true,
|
|
54
131
|
plugin,
|
|
55
132
|
path: pathname,
|
|
56
133
|
endpoint: tail,
|
|
134
|
+
revision: surface.revision,
|
|
57
135
|
adapter: DSH_COMPAT_ADAPTER,
|
|
58
|
-
}, [
|
|
136
|
+
}, ["dsh-host"]));
|
|
59
137
|
return true;
|
|
60
138
|
}
|
|
61
139
|
//# sourceMappingURL=generic-dsh-http.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic-dsh-http.js","sourceRoot":"","sources":["../../src/dsh-compat/generic-dsh-http.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generic-dsh-http.js","sourceRoot":"","sources":["../../src/dsh-compat/generic-dsh-http.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,aAAa,GACd,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,kBAAkB,EAClB,iBAAiB,GAElB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAMpD,SAAS,gBAAgB,CAAC,QAAgB;IACxC,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAClD,mBAAmB;IACnB,OAAO,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC;AAC/B,CAAC;AAED,SAAS,YAAY,CAAC,QAAgB;IACpC,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACl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EAAE,IAAI;gBACd,OAAO,EAAE,kBAAkB;aAC5B,CAAC,CAAC;YACH,OAAO,IAAI,CAAC;QACd,CAAC;QAED,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE;YACjB,EAAE,EAAE,IAAI;YACR,MAAM;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC;YACzB,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC;YACtB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,kBAAkB;SAC5B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC;QAC7B,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,QAAQ,CACN,GAAG,EACH,GAAG,EACH,GAAG,CACD;QACE,EAAE,EAAE,IAAI;QACR,MAAM;QACN,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,OAAO,EAAE,kBAAkB;KAC5B,EACD,CAAC,UAAU,CAAC,CACb,CACF,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
2
|
export interface PluginAssetOptions {
|
|
3
3
|
readonly pluginsDir?: string;
|
|
4
|
+
readonly xrkHome?: string;
|
|
4
5
|
}
|
|
5
6
|
export declare function handlePluginAssetHttp(req: IncomingMessage, res: ServerResponse, pathname: string, options?: PluginAssetOptions): Promise<boolean>;
|
|
6
7
|
export declare function isPluginAssetPath(pathname: string): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic-plugin-http.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/generic-plugin-http.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generic-plugin-http.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/generic-plugin-http.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKjE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AA0HD,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,OAAO,CAAC,CA6IlB;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE3D"}
|
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
* API-shaped paths return honest JSON. Unmatched platform bundles fall through to webDist.
|
|
4
4
|
*/
|
|
5
5
|
import { createReadStream, statSync } from "node:fs";
|
|
6
|
+
import { randomUUID } from "node:crypto";
|
|
6
7
|
import path from "node:path";
|
|
7
8
|
import { readBody, sendJson } from "./underlying/http-json.js";
|
|
9
|
+
import { createXrkDocStore } from "./underlying/doc-store.js";
|
|
8
10
|
import { DSH_COMPAT_ADAPTER, tag } from "./meta.js";
|
|
11
|
+
const AGENT_TEAMS_STORE = createXrkDocStore(["dsh-agent-teams", "teams.json"], { teams: [] });
|
|
9
12
|
function pluginDir(pluginsDir, pluginId) {
|
|
10
13
|
if (!pluginsDir?.trim())
|
|
11
14
|
return undefined;
|
|
@@ -98,8 +101,17 @@ export async function handlePluginAssetHttp(req, res, pathname, options = {}) {
|
|
|
98
101
|
if (!pathname.startsWith("/plugins/"))
|
|
99
102
|
return false;
|
|
100
103
|
const method = (req.method ?? "GET").toUpperCase();
|
|
104
|
+
let mutateBody = {};
|
|
101
105
|
if (method === "POST" || method === "PUT" || method === "PATCH") {
|
|
102
|
-
|
|
106
|
+
try {
|
|
107
|
+
const raw = await readBody(req);
|
|
108
|
+
mutateBody = raw.trim()
|
|
109
|
+
? JSON.parse(raw)
|
|
110
|
+
: {};
|
|
111
|
+
}
|
|
112
|
+
catch {
|
|
113
|
+
mutateBody = {};
|
|
114
|
+
}
|
|
103
115
|
}
|
|
104
116
|
const { pluginId, tail } = parsePluginPath(pathname);
|
|
105
117
|
const baseDir = pluginDir(options.pluginsDir, pluginId);
|
|
@@ -117,6 +129,65 @@ export async function handlePluginAssetHttp(req, res, pathname, options = {}) {
|
|
|
117
129
|
return true;
|
|
118
130
|
}
|
|
119
131
|
}
|
|
132
|
+
// @nanmicoder/dsh-agent-teams — persisted team catalog (run/halt stay local).
|
|
133
|
+
if (pluginId === "dsh-agent-teams" ||
|
|
134
|
+
pluginId.endsWith("/dsh-agent-teams")) {
|
|
135
|
+
const xrkHome = options.xrkHome;
|
|
136
|
+
if (tail === "state" || tail.startsWith("state?")) {
|
|
137
|
+
const url = new URL(req.url ?? "/", "http://127.0.0.1");
|
|
138
|
+
const archived = url.searchParams.get("archived") === "1";
|
|
139
|
+
const teams = AGENT_TEAMS_STORE.read(xrkHome).data.teams.filter((t) => archived ? t.archived : !t.archived);
|
|
140
|
+
sendJson(res, 200, {
|
|
141
|
+
teams,
|
|
142
|
+
...(archived ? { archived: true } : {}),
|
|
143
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
144
|
+
});
|
|
145
|
+
return true;
|
|
146
|
+
}
|
|
147
|
+
if (tail === "plan" && method === "POST") {
|
|
148
|
+
const body = mutateBody;
|
|
149
|
+
const now = new Date().toISOString();
|
|
150
|
+
const id = typeof body.id === "string" && body.id ? body.id : randomUUID();
|
|
151
|
+
const row = {
|
|
152
|
+
id,
|
|
153
|
+
name: typeof body.name === "string"
|
|
154
|
+
? body.name
|
|
155
|
+
: `team-${id.slice(0, 8)}`,
|
|
156
|
+
...(typeof body.plan === "string" ? { plan: body.plan } : {}),
|
|
157
|
+
status: "planned",
|
|
158
|
+
archived: false,
|
|
159
|
+
createdAt: now,
|
|
160
|
+
updatedAt: now,
|
|
161
|
+
};
|
|
162
|
+
AGENT_TEAMS_STORE.patch(xrkHome, (doc) => ({
|
|
163
|
+
teams: [...doc.teams.filter((t) => t.id !== id), row],
|
|
164
|
+
}));
|
|
165
|
+
sendJson(res, 200, {
|
|
166
|
+
ok: true,
|
|
167
|
+
team: row,
|
|
168
|
+
teams: AGENT_TEAMS_STORE.read(xrkHome).data.teams.filter((t) => !t.archived),
|
|
169
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
170
|
+
});
|
|
171
|
+
return true;
|
|
172
|
+
}
|
|
173
|
+
if (tail === "halt" && method === "POST") {
|
|
174
|
+
const body = mutateBody;
|
|
175
|
+
const id = typeof body.id === "string" ? body.id : "";
|
|
176
|
+
const now = new Date().toISOString();
|
|
177
|
+
AGENT_TEAMS_STORE.patch(xrkHome, (doc) => ({
|
|
178
|
+
teams: doc.teams.map((t) => !id || t.id === id
|
|
179
|
+
? { ...t, status: "halted", updatedAt: now }
|
|
180
|
+
: t),
|
|
181
|
+
}));
|
|
182
|
+
sendJson(res, 200, {
|
|
183
|
+
ok: true,
|
|
184
|
+
teams: AGENT_TEAMS_STORE.read(xrkHome).data.teams.filter((t) => !t.archived),
|
|
185
|
+
path: pathname,
|
|
186
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
187
|
+
});
|
|
188
|
+
return true;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
120
191
|
if (method !== "GET" && method !== "HEAD") {
|
|
121
192
|
sendJson(res, 405, { error: "method not allowed", adapter: DSH_COMPAT_ADAPTER });
|
|
122
193
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic-plugin-http.js","sourceRoot":"","sources":["../../src/dsh-compat/generic-plugin-http.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"generic-plugin-http.js","sourceRoot":"","sources":["../../src/dsh-compat/generic-plugin-http.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAqBpD,MAAM,iBAAiB,GAAG,iBAAiB,CACzC,CAAC,iBAAiB,EAAE,YAAY,CAAC,EACjC,EAAE,KAAK,EAAE,EAAE,EAAE,CACd,CAAC;AAEF,SAAS,SAAS,CAChB,UAA8B,EAC9B,QAAgB;IAEhB,IAAI,CAAC,UAAU,EAAE,IAAI,EAAE;QAAE,OAAO,SAAS,CAAC;IAC1C,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IACrD,IAAI,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GA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C1C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
+
export interface GitGraphHttpOptions {
|
|
3
|
+
readonly xrkHome?: string;
|
|
4
|
+
readonly workspaceRoot?: string;
|
|
5
|
+
readonly defaultCwd?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function isGitGraphPath(pathname: string): boolean;
|
|
8
|
+
export declare function handleGitGraphHttp(req: IncomingMessage, res: ServerResponse, pathname: string, options?: GitGraphHttpOptions): Promise<boolean>;
|
|
9
|
+
//# sourceMappingURL=git-graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-graph.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/git-graph.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAYjE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAqOD,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,OAAO,CAAC,CAoKlB"}
|