@xrkseek/harness 0.4.11 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@xrkseek/a2a/README.md +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/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 -48
- package/node_modules/@xrkseek/server-face/dist/attach-http.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/context.d.ts +18 -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 +6 -2
- 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/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.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/handlers/session.js +7 -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 +7 -4
- package/node_modules/@xrkseek/server-face/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/index.js +7 -4
- 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 +14 -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/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 +23 -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 +37 -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-face/dist/ws-heartbeat.d.ts +9 -3
- package/node_modules/@xrkseek/server-face/dist/ws-heartbeat.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/ws-heartbeat.js +11 -7
- package/node_modules/@xrkseek/server-face/dist/ws-heartbeat.js.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/ws-send-queue.d.ts +4 -9
- package/node_modules/@xrkseek/server-face/dist/ws-send-queue.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-face/dist/ws-send-queue.js +12 -24
- package/node_modules/@xrkseek/server-face/dist/ws-send-queue.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 +222 -123
- 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/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 +1 -0
- package/node_modules/@xrkseek/server-http/dist/index.d.ts.map +1 -1
- package/node_modules/@xrkseek/server-http/dist/index.js +1 -0
- 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,470 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@linxin666/dsh-ssh` — persisted host catalog under `~/.xrk/dsh-ssh/`.
|
|
3
|
+
* `/test` does a TCP connect probe; exec / tunnel remain honest (no SSH engine).
|
|
4
|
+
*/
|
|
5
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
6
|
+
import { createConnection } from "node:net";
|
|
7
|
+
import { homedir } from "node:os";
|
|
8
|
+
import path from "node:path";
|
|
9
|
+
import { sendJson } from "./underlying/http-json.js";
|
|
10
|
+
import { createXrkDocStore } from "./underlying/doc-store.js";
|
|
11
|
+
import { httpMethod, parseJsonBody } from "./underlying/http-kit.js";
|
|
12
|
+
import { DSH_COMPAT_ADAPTER } from "./meta.js";
|
|
13
|
+
const STORE = createXrkDocStore(["dsh-ssh", "hosts.json"], {
|
|
14
|
+
hosts: [],
|
|
15
|
+
});
|
|
16
|
+
function seatGap(message) {
|
|
17
|
+
return {
|
|
18
|
+
ok: false,
|
|
19
|
+
error: "ssh-engine-unavailable",
|
|
20
|
+
message,
|
|
21
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/** TCP reachability only — not an SSH handshake. */
|
|
25
|
+
function probeTcp(host, port, timeoutMs = 3000) {
|
|
26
|
+
const started = Date.now();
|
|
27
|
+
return new Promise((resolve) => {
|
|
28
|
+
const socket = createConnection({ host, port });
|
|
29
|
+
let settled = false;
|
|
30
|
+
const finish = (ok, error) => {
|
|
31
|
+
if (settled)
|
|
32
|
+
return;
|
|
33
|
+
settled = true;
|
|
34
|
+
socket.destroy();
|
|
35
|
+
resolve({
|
|
36
|
+
ok,
|
|
37
|
+
latencyMs: Date.now() - started,
|
|
38
|
+
...(error ? { error } : {}),
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
socket.setTimeout(timeoutMs);
|
|
42
|
+
socket.once("connect", () => finish(true));
|
|
43
|
+
socket.once("timeout", () => finish(false, "tcp-timeout"));
|
|
44
|
+
socket.once("error", (err) => finish(false, err instanceof Error ? err.message : String(err)));
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function asString(value, fallback = "") {
|
|
48
|
+
return typeof value === "string" ? value.trim() : fallback;
|
|
49
|
+
}
|
|
50
|
+
function asPort(value, fallback = 22) {
|
|
51
|
+
const n = typeof value === "number" ? value : Number(value);
|
|
52
|
+
return Number.isInteger(n) && n > 0 && n <= 65535 ? n : fallback;
|
|
53
|
+
}
|
|
54
|
+
function asStringList(value) {
|
|
55
|
+
if (Array.isArray(value)) {
|
|
56
|
+
return value
|
|
57
|
+
.filter((v) => typeof v === "string")
|
|
58
|
+
.map((v) => v.trim())
|
|
59
|
+
.filter(Boolean);
|
|
60
|
+
}
|
|
61
|
+
if (typeof value === "string") {
|
|
62
|
+
return value
|
|
63
|
+
.split(/[,;\s]+/)
|
|
64
|
+
.map((v) => v.trim())
|
|
65
|
+
.filter(Boolean);
|
|
66
|
+
}
|
|
67
|
+
return [];
|
|
68
|
+
}
|
|
69
|
+
function normalizeAuth(raw, previous) {
|
|
70
|
+
if (raw && typeof raw === "object") {
|
|
71
|
+
const auth = raw;
|
|
72
|
+
const kind = asString(auth.kind, previous?.kind ?? "key");
|
|
73
|
+
if (kind === "password") {
|
|
74
|
+
const password = asString(auth.password) || previous?.password || "";
|
|
75
|
+
return {
|
|
76
|
+
kind: "password",
|
|
77
|
+
...(password ? { password } : {}),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
if (kind === "agent") {
|
|
81
|
+
const agentPath = asString(auth.agentPath) || previous?.agentPath || "";
|
|
82
|
+
return {
|
|
83
|
+
kind: "agent",
|
|
84
|
+
...(agentPath ? { agentPath } : {}),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
const keyPath = asString(auth.keyPath) || previous?.keyPath || "";
|
|
88
|
+
const passphrase = asString(auth.passphrase) || previous?.passphrase || "";
|
|
89
|
+
return {
|
|
90
|
+
kind: "key",
|
|
91
|
+
...(keyPath ? { keyPath } : {}),
|
|
92
|
+
...(passphrase ? { passphrase } : {}),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
return previous ?? { kind: "key" };
|
|
96
|
+
}
|
|
97
|
+
function publicHost(host) {
|
|
98
|
+
return {
|
|
99
|
+
alias: host.alias,
|
|
100
|
+
host: host.host,
|
|
101
|
+
port: host.port,
|
|
102
|
+
user: host.user,
|
|
103
|
+
auth: host.auth.kind,
|
|
104
|
+
proxyJump: [...host.proxyJump],
|
|
105
|
+
...(host.proxyCommand ? { proxyCommand: host.proxyCommand } : {}),
|
|
106
|
+
...(host.description ? { description: host.description } : {}),
|
|
107
|
+
...(host.environment ? { environment: host.environment } : {}),
|
|
108
|
+
tags: [...host.tags],
|
|
109
|
+
...(host.location ? { location: host.location } : {}),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function mergeHost(alias, body, previous) {
|
|
113
|
+
const host = asString(body.host, previous?.host ?? "");
|
|
114
|
+
const user = asString(body.user, previous?.user ?? "");
|
|
115
|
+
if (!alias)
|
|
116
|
+
return { error: "alias-required" };
|
|
117
|
+
if (!host)
|
|
118
|
+
return { error: "host-required" };
|
|
119
|
+
if (!user)
|
|
120
|
+
return { error: "user-required" };
|
|
121
|
+
const proxyCommand = asString(body.proxyCommand, previous?.proxyCommand ?? "");
|
|
122
|
+
const description = asString(body.description, previous?.description ?? "");
|
|
123
|
+
const environment = asString(body.environment, previous?.environment ?? "");
|
|
124
|
+
const location = asString(body.location, previous?.location ?? "");
|
|
125
|
+
return {
|
|
126
|
+
alias,
|
|
127
|
+
host,
|
|
128
|
+
port: asPort(body.port, previous?.port ?? 22),
|
|
129
|
+
user,
|
|
130
|
+
auth: normalizeAuth(body.auth, previous?.auth),
|
|
131
|
+
proxyJump: body.proxyJump !== undefined
|
|
132
|
+
? asStringList(body.proxyJump)
|
|
133
|
+
: [...(previous?.proxyJump ?? [])],
|
|
134
|
+
...(proxyCommand && proxyCommand.toLowerCase() !== "none"
|
|
135
|
+
? { proxyCommand }
|
|
136
|
+
: {}),
|
|
137
|
+
...(description ? { description } : {}),
|
|
138
|
+
...(environment ? { environment } : {}),
|
|
139
|
+
tags: body.tags !== undefined
|
|
140
|
+
? asStringList(body.tags)
|
|
141
|
+
: [...(previous?.tags ?? [])],
|
|
142
|
+
...(location ? { location } : {}),
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function requestUrl(req) {
|
|
146
|
+
return new URL(req.url ?? "/", "http://127.0.0.1");
|
|
147
|
+
}
|
|
148
|
+
/** Minimal OpenSSH config Host-block parser for import. */
|
|
149
|
+
function parseSshConfig(text) {
|
|
150
|
+
const hosts = [];
|
|
151
|
+
const skippedBlocks = [];
|
|
152
|
+
let current = null;
|
|
153
|
+
const flush = () => {
|
|
154
|
+
if (!current?.aliases?.length) {
|
|
155
|
+
current = null;
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
for (const alias of current.aliases) {
|
|
159
|
+
if (alias === "*" || alias.includes("*") || alias.includes("?")) {
|
|
160
|
+
skippedBlocks.push({ alias, reason: "pattern-alias" });
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
if (!current.host) {
|
|
164
|
+
skippedBlocks.push({ alias, reason: "missing-hostname" });
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
hosts.push({
|
|
168
|
+
alias,
|
|
169
|
+
host: current.host,
|
|
170
|
+
port: current.port ?? 22,
|
|
171
|
+
user: current.user ?? process.env.USERNAME ?? "user",
|
|
172
|
+
auth: current.auth ?? { kind: "key" },
|
|
173
|
+
proxyJump: current.proxyJump ?? [],
|
|
174
|
+
...(current.proxyCommand ? { proxyCommand: current.proxyCommand } : {}),
|
|
175
|
+
tags: [],
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
current = null;
|
|
179
|
+
};
|
|
180
|
+
for (const rawLine of text.split(/\r?\n/)) {
|
|
181
|
+
const line = rawLine.replace(/#.*$/, "").trim();
|
|
182
|
+
if (!line)
|
|
183
|
+
continue;
|
|
184
|
+
const m = /^(\S+)\s+(.+)$/.exec(line);
|
|
185
|
+
if (!m)
|
|
186
|
+
continue;
|
|
187
|
+
const key = m[1].toLowerCase();
|
|
188
|
+
const value = m[2].trim();
|
|
189
|
+
if (key === "host") {
|
|
190
|
+
flush();
|
|
191
|
+
current = { aliases: value.split(/\s+/).filter(Boolean) };
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
if (!current)
|
|
195
|
+
continue;
|
|
196
|
+
if (key === "hostname")
|
|
197
|
+
current.host = value;
|
|
198
|
+
else if (key === "port")
|
|
199
|
+
current.port = asPort(value, 22);
|
|
200
|
+
else if (key === "user")
|
|
201
|
+
current.user = value;
|
|
202
|
+
else if (key === "identityfile") {
|
|
203
|
+
current.auth = { kind: "key", keyPath: value.replace(/^~/, homedir()) };
|
|
204
|
+
}
|
|
205
|
+
else if (key === "proxyjump") {
|
|
206
|
+
current.proxyJump = value.split(/[, ]+/).filter(Boolean);
|
|
207
|
+
}
|
|
208
|
+
else if (key === "proxycommand") {
|
|
209
|
+
current.proxyCommand = value;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
flush();
|
|
213
|
+
return { hosts, skippedBlocks };
|
|
214
|
+
}
|
|
215
|
+
export function isDshSshPath(pathname) {
|
|
216
|
+
return pathname === "/api/dsh-ssh" || pathname.startsWith("/api/dsh-ssh/");
|
|
217
|
+
}
|
|
218
|
+
export async function handleDshSshHttp(req, res, pathname, options = {}) {
|
|
219
|
+
if (!isDshSshPath(pathname))
|
|
220
|
+
return false;
|
|
221
|
+
const method = httpMethod(req);
|
|
222
|
+
const url = requestUrl(req);
|
|
223
|
+
const xrkHome = options.xrkHome;
|
|
224
|
+
if (pathname === "/api/dsh-ssh/hosts") {
|
|
225
|
+
if (method === "GET" || method === "HEAD") {
|
|
226
|
+
const q = (url.searchParams.get("query") ?? "").trim().toLowerCase();
|
|
227
|
+
const hosts = STORE.read(xrkHome).data.hosts
|
|
228
|
+
.filter((h) => {
|
|
229
|
+
if (!q)
|
|
230
|
+
return true;
|
|
231
|
+
const hay = [
|
|
232
|
+
h.alias,
|
|
233
|
+
h.host,
|
|
234
|
+
h.user,
|
|
235
|
+
h.description ?? "",
|
|
236
|
+
h.environment ?? "",
|
|
237
|
+
h.location ?? "",
|
|
238
|
+
...h.tags,
|
|
239
|
+
]
|
|
240
|
+
.join(" ")
|
|
241
|
+
.toLowerCase();
|
|
242
|
+
return hay.includes(q);
|
|
243
|
+
})
|
|
244
|
+
.map(publicHost);
|
|
245
|
+
sendJson(res, 200, { hosts, adapter: DSH_COMPAT_ADAPTER });
|
|
246
|
+
return true;
|
|
247
|
+
}
|
|
248
|
+
if (method === "POST") {
|
|
249
|
+
const body = await parseJsonBody(req);
|
|
250
|
+
const alias = asString(body.alias);
|
|
251
|
+
const existing = STORE.read(xrkHome).data.hosts;
|
|
252
|
+
if (existing.some((h) => h.alias === alias)) {
|
|
253
|
+
sendJson(res, 409, {
|
|
254
|
+
ok: false,
|
|
255
|
+
error: "alias-exists",
|
|
256
|
+
message: `Host alias already exists: ${alias}`,
|
|
257
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
258
|
+
});
|
|
259
|
+
return true;
|
|
260
|
+
}
|
|
261
|
+
const merged = mergeHost(alias, body);
|
|
262
|
+
if ("error" in merged) {
|
|
263
|
+
sendJson(res, 400, {
|
|
264
|
+
ok: false,
|
|
265
|
+
error: merged.error,
|
|
266
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
267
|
+
});
|
|
268
|
+
return true;
|
|
269
|
+
}
|
|
270
|
+
STORE.patch(xrkHome, (doc) => ({ hosts: [...doc.hosts, merged] }));
|
|
271
|
+
sendJson(res, 200, {
|
|
272
|
+
ok: true,
|
|
273
|
+
host: publicHost(merged),
|
|
274
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
275
|
+
});
|
|
276
|
+
return true;
|
|
277
|
+
}
|
|
278
|
+
if (method === "PATCH") {
|
|
279
|
+
const body = await parseJsonBody(req);
|
|
280
|
+
const alias = asString(url.searchParams.get("alias") ?? body.alias);
|
|
281
|
+
const doc = STORE.read(xrkHome).data;
|
|
282
|
+
const prev = doc.hosts.find((h) => h.alias === alias);
|
|
283
|
+
if (!prev) {
|
|
284
|
+
sendJson(res, 404, {
|
|
285
|
+
ok: false,
|
|
286
|
+
error: "host-not-found",
|
|
287
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
288
|
+
});
|
|
289
|
+
return true;
|
|
290
|
+
}
|
|
291
|
+
const merged = mergeHost(alias, body, prev);
|
|
292
|
+
if ("error" in merged) {
|
|
293
|
+
sendJson(res, 400, {
|
|
294
|
+
ok: false,
|
|
295
|
+
error: merged.error,
|
|
296
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
297
|
+
});
|
|
298
|
+
return true;
|
|
299
|
+
}
|
|
300
|
+
STORE.patch(xrkHome, (current) => ({
|
|
301
|
+
hosts: current.hosts.map((h) => (h.alias === alias ? merged : h)),
|
|
302
|
+
}));
|
|
303
|
+
sendJson(res, 200, {
|
|
304
|
+
ok: true,
|
|
305
|
+
host: publicHost(merged),
|
|
306
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
307
|
+
});
|
|
308
|
+
return true;
|
|
309
|
+
}
|
|
310
|
+
if (method === "DELETE") {
|
|
311
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
312
|
+
const alias = asString(url.searchParams.get("alias"));
|
|
313
|
+
const before = STORE.read(xrkHome).data.hosts.length;
|
|
314
|
+
STORE.patch(xrkHome, (doc) => ({
|
|
315
|
+
hosts: doc.hosts.filter((h) => h.alias !== alias),
|
|
316
|
+
}));
|
|
317
|
+
const after = STORE.read(xrkHome).data.hosts.length;
|
|
318
|
+
sendJson(res, 200, {
|
|
319
|
+
ok: before !== after,
|
|
320
|
+
deleted: before !== after,
|
|
321
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
322
|
+
});
|
|
323
|
+
return true;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
if (pathname === "/api/dsh-ssh/hosts/import-ssh-config") {
|
|
327
|
+
if (method === "POST" || method === "PUT") {
|
|
328
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
329
|
+
}
|
|
330
|
+
const configPath = path.join(homedir(), ".ssh", "config");
|
|
331
|
+
if (!existsSync(configPath)) {
|
|
332
|
+
sendJson(res, 200, {
|
|
333
|
+
result: {
|
|
334
|
+
parsed: 0,
|
|
335
|
+
added: 0,
|
|
336
|
+
skipped: 0,
|
|
337
|
+
skippedBlocks: [],
|
|
338
|
+
},
|
|
339
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
340
|
+
});
|
|
341
|
+
return true;
|
|
342
|
+
}
|
|
343
|
+
let text;
|
|
344
|
+
try {
|
|
345
|
+
text = readFileSync(configPath, "utf8");
|
|
346
|
+
}
|
|
347
|
+
catch {
|
|
348
|
+
sendJson(res, 200, {
|
|
349
|
+
result: {
|
|
350
|
+
parsed: 0,
|
|
351
|
+
added: 0,
|
|
352
|
+
skipped: 0,
|
|
353
|
+
skippedBlocks: [{ alias: "*", reason: "unreadable-config" }],
|
|
354
|
+
},
|
|
355
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
356
|
+
});
|
|
357
|
+
return true;
|
|
358
|
+
}
|
|
359
|
+
const parsed = parseSshConfig(text);
|
|
360
|
+
let added = 0;
|
|
361
|
+
const skippedBlocks = [...parsed.skippedBlocks];
|
|
362
|
+
STORE.patch(xrkHome, (doc) => {
|
|
363
|
+
const aliases = new Set(doc.hosts.map((h) => h.alias));
|
|
364
|
+
const next = [...doc.hosts];
|
|
365
|
+
for (const host of parsed.hosts) {
|
|
366
|
+
if (aliases.has(host.alias)) {
|
|
367
|
+
skippedBlocks.push({ alias: host.alias, reason: "already-exists" });
|
|
368
|
+
continue;
|
|
369
|
+
}
|
|
370
|
+
aliases.add(host.alias);
|
|
371
|
+
next.push(host);
|
|
372
|
+
added += 1;
|
|
373
|
+
}
|
|
374
|
+
return { hosts: next };
|
|
375
|
+
});
|
|
376
|
+
sendJson(res, 200, {
|
|
377
|
+
result: {
|
|
378
|
+
parsed: parsed.hosts.length + parsed.skippedBlocks.length,
|
|
379
|
+
added,
|
|
380
|
+
skipped: skippedBlocks.length,
|
|
381
|
+
skippedBlocks,
|
|
382
|
+
},
|
|
383
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
384
|
+
});
|
|
385
|
+
return true;
|
|
386
|
+
}
|
|
387
|
+
if (pathname === "/api/dsh-ssh/test") {
|
|
388
|
+
const body = await parseJsonBody(req);
|
|
389
|
+
const alias = asString(body.alias);
|
|
390
|
+
const row = STORE.read(xrkHome).data.hosts.find((h) => h.alias === alias);
|
|
391
|
+
if (!row) {
|
|
392
|
+
sendJson(res, 200, {
|
|
393
|
+
result: {
|
|
394
|
+
ok: false,
|
|
395
|
+
alias,
|
|
396
|
+
latencyMs: null,
|
|
397
|
+
error: alias ? `Unknown host alias: ${alias}` : "alias-required",
|
|
398
|
+
},
|
|
399
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
400
|
+
});
|
|
401
|
+
return true;
|
|
402
|
+
}
|
|
403
|
+
const probe = await probeTcp(row.host, row.port);
|
|
404
|
+
sendJson(res, 200, {
|
|
405
|
+
result: {
|
|
406
|
+
ok: probe.ok,
|
|
407
|
+
alias,
|
|
408
|
+
latencyMs: probe.latencyMs,
|
|
409
|
+
...(probe.error ? { error: probe.error } : {}),
|
|
410
|
+
probe: "tcp",
|
|
411
|
+
note: "TCP connect only; SSH auth/exec is not embedded on XRK-Harness.",
|
|
412
|
+
},
|
|
413
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
414
|
+
});
|
|
415
|
+
return true;
|
|
416
|
+
}
|
|
417
|
+
if (pathname === "/api/dsh-ssh/exec") {
|
|
418
|
+
const body = await parseJsonBody(req);
|
|
419
|
+
sendJson(res, 200, {
|
|
420
|
+
result: {
|
|
421
|
+
...seatGap("Remote exec requires an embedded SSH engine (not on XRK-Harness)."),
|
|
422
|
+
alias: asString(body.alias),
|
|
423
|
+
exitCode: null,
|
|
424
|
+
stdout: "",
|
|
425
|
+
stderr: "",
|
|
426
|
+
durationMs: 0,
|
|
427
|
+
},
|
|
428
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
429
|
+
});
|
|
430
|
+
return true;
|
|
431
|
+
}
|
|
432
|
+
if (pathname === "/api/dsh-ssh/cluster") {
|
|
433
|
+
const body = await parseJsonBody(req);
|
|
434
|
+
const aliases = asStringList(body.aliases ?? body.hosts);
|
|
435
|
+
sendJson(res, 200, {
|
|
436
|
+
results: aliases.map((alias) => ({
|
|
437
|
+
alias,
|
|
438
|
+
...seatGap("Cluster exec is not embedded on XRK-Harness."),
|
|
439
|
+
exitCode: null,
|
|
440
|
+
stdout: "",
|
|
441
|
+
stderr: "",
|
|
442
|
+
durationMs: 0,
|
|
443
|
+
})),
|
|
444
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
445
|
+
});
|
|
446
|
+
return true;
|
|
447
|
+
}
|
|
448
|
+
if (pathname === "/api/dsh-ssh/upload" ||
|
|
449
|
+
pathname === "/api/dsh-ssh/download" ||
|
|
450
|
+
pathname === "/api/dsh-ssh/ls" ||
|
|
451
|
+
pathname === "/api/dsh-ssh/tunnel" ||
|
|
452
|
+
pathname === "/api/dsh-ssh/terminal") {
|
|
453
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
454
|
+
sendJson(res, 200, {
|
|
455
|
+
result: seatGap(`${pathname} requires an embedded SSH engine (not on XRK-Harness).`),
|
|
456
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
457
|
+
});
|
|
458
|
+
return true;
|
|
459
|
+
}
|
|
460
|
+
if (method === "POST" || method === "PUT" || method === "PATCH") {
|
|
461
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
462
|
+
}
|
|
463
|
+
sendJson(res, 200, {
|
|
464
|
+
ok: true,
|
|
465
|
+
path: pathname,
|
|
466
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
467
|
+
});
|
|
468
|
+
return true;
|
|
469
|
+
}
|
|
470
|
+
//# sourceMappingURL=dsh-ssh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dsh-ssh.js","sourceRoot":"","sources":["../../src/dsh-compat/dsh-ssh.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE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AC;QAC3C,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE;YACjB,MAAM,EAAE,OAAO,CACb,GAAG,QAAQ,wDAAwD,CACpE;YACD,OAAO,EAAE,kBAAkB;SAC5B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,MAAM,KAAK,MAAM,IAAI,MAAM,KAAK,KAAK,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QAChE,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7C,CAAC;IACD,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE;QACjB,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,kBAAkB;KAC5B,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
+
export type DshUpdateHttpOptions = {
|
|
3
|
+
readonly pluginsDir?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function isDshUpdatePath(pathname: string): boolean;
|
|
6
|
+
export declare function handleDshUpdateHttp(req: IncomingMessage, res: ServerResponse, pathname: string, options?: DshUpdateHttpOptions): Promise<boolean>;
|
|
7
|
+
//# sourceMappingURL=dsh-update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dsh-update.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/dsh-update.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMjE,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAiFF,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,OAAO,CAAC,CA2BlB"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `/api/update/*` for `@linxin666/dsh-web-all` / dsh-update client.
|
|
3
|
+
*
|
|
4
|
+
* The browser half treats any 200 JSON as {@link UpdateStatus} and reads
|
|
5
|
+
* `packages` without optional chaining on the array — the honest HTTP
|
|
6
|
+
* catch-all body (`{ ok, status, path, … }`) throws during ResultBody and
|
|
7
|
+
* takes down `sidebar.footer.action`. Return a client-shaped snapshot instead.
|
|
8
|
+
*
|
|
9
|
+
* XRK does not run DSH profile `pnpm update`; status reports the staged
|
|
10
|
+
* aggregate when present, otherwise `mode: "missing"`. Run is refused with
|
|
11
|
+
* `errorCode: "link"` (translated by the panel).
|
|
12
|
+
*/
|
|
13
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
14
|
+
import path from "node:path";
|
|
15
|
+
import { sendJson } from "./underlying/http-json.js";
|
|
16
|
+
import { DSH_COMPAT_ADAPTER } from "./meta.js";
|
|
17
|
+
const AGGREGATE = "@linxin666/dsh-web-all";
|
|
18
|
+
function readStagedAggregateVersion(pluginsDir) {
|
|
19
|
+
if (!pluginsDir)
|
|
20
|
+
return undefined;
|
|
21
|
+
const manifest = path.join(path.resolve(pluginsDir), "web", "plugins", ...AGGREGATE.split("/"), "package.json");
|
|
22
|
+
if (!existsSync(manifest))
|
|
23
|
+
return undefined;
|
|
24
|
+
try {
|
|
25
|
+
const raw = JSON.parse(readFileSync(manifest, "utf8"));
|
|
26
|
+
return typeof raw.version === "string" && raw.version.trim()
|
|
27
|
+
? raw.version.trim()
|
|
28
|
+
: undefined;
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function statusOf(pluginsDir) {
|
|
35
|
+
const version = readStagedAggregateVersion(pluginsDir);
|
|
36
|
+
if (version === undefined) {
|
|
37
|
+
return {
|
|
38
|
+
mode: "missing",
|
|
39
|
+
packages: [],
|
|
40
|
+
outdated: false,
|
|
41
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
42
|
+
note: "No staged @linxin666/dsh-web-all; DSH profile pnpm update is not hosted on XRK.",
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
mode: "npm",
|
|
47
|
+
anchor: AGGREGATE,
|
|
48
|
+
packages: [{ name: AGGREGATE, current: version, latest: version }],
|
|
49
|
+
outdated: false,
|
|
50
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
51
|
+
note: "XRK reports the staged aggregate; DSH profile pnpm update is not hosted here.",
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function runRefused() {
|
|
55
|
+
return {
|
|
56
|
+
ok: false,
|
|
57
|
+
exitCode: null,
|
|
58
|
+
output: "",
|
|
59
|
+
errorCode: "link",
|
|
60
|
+
error: "XRK does not run DSH profile `pnpm update`. Update community clients from Settings → Plugins.",
|
|
61
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export function isDshUpdatePath(pathname) {
|
|
65
|
+
return pathname === "/api/update" || pathname.startsWith("/api/update/");
|
|
66
|
+
}
|
|
67
|
+
export async function handleDshUpdateHttp(req, res, pathname, options = {}) {
|
|
68
|
+
if (!isDshUpdatePath(pathname))
|
|
69
|
+
return false;
|
|
70
|
+
const method = (req.method ?? "GET").toUpperCase();
|
|
71
|
+
const sub = pathname === "/api/update" ? "" : pathname.slice("/api/update/".length);
|
|
72
|
+
if ((sub === "" || sub === "status") && (method === "GET" || method === "HEAD")) {
|
|
73
|
+
if (method === "HEAD") {
|
|
74
|
+
res.writeHead(200, { "cache-control": "no-store", "content-length": "0" });
|
|
75
|
+
res.end();
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
sendJson(res, 200, statusOf(options.pluginsDir));
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
if (sub === "run" && method === "POST") {
|
|
82
|
+
sendJson(res, 200, runRefused());
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
sendJson(res, 404, {
|
|
86
|
+
ok: false,
|
|
87
|
+
error: "not-found",
|
|
88
|
+
path: pathname,
|
|
89
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
90
|
+
});
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=dsh-update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dsh-update.js","sourceRoot":"","sources":["../../src/dsh-compat/dsh-update.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,SAAS,GAAG,wBAAwB,CAAC;AAgC3C,SAAS,0BAA0B,CAAC,UAA8B;IAChE,IAAI,CAAC,UAAU;QAAE,OAAO,SAAS,CAAC;IAClC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CACxB,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EACxB,KAAK,EACL,SAAS,EACT,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,EACvB,cAAc,CACf,CAAC;IACF,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO,SAAS,CAAC;IAC5C,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAA0B,CAAC;QAChF,OAAO,OAAO,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e/mutate + raw-search.
|
|
3
|
+
* Keyless `ddg` uses `@xrkseek/exec-web` DuckDuckGo HTML search.
|
|
4
|
+
*/
|
|
5
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
6
|
+
export interface FreeSearchOptions {
|
|
7
|
+
readonly xrkHome?: string;
|
|
8
|
+
/** Injected for tests — defaults to DuckDuckGo HTML search. */
|
|
9
|
+
readonly search?: {
|
|
10
|
+
search(request: {
|
|
11
|
+
query: string;
|
|
12
|
+
maxResults: number;
|
|
13
|
+
}, signal?: AbortSignal): Promise<{
|
|
14
|
+
sources: ReadonlyArray<{
|
|
15
|
+
url: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
snippet?: string;
|
|
18
|
+
publishedAt?: string;
|
|
19
|
+
}>;
|
|
20
|
+
truncated: boolean;
|
|
21
|
+
content?: string;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export declare function isFreeSearchPath(pathname: string): boolean;
|
|
26
|
+
export declare function handleFreeSearchHttp(req: IncomingMessage, res: ServerResponse, pathname: string, options?: FreeSearchOptions): Promise<boolean>;
|
|
27
|
+
//# sourceMappingURL=free-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"free-search.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/free-search.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAOjE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,+DAA+D;IAC/D,QAAQ,CAAC,MAAM,CAAC,EAAE;QAChB,MAAM,CACJ,OAAO,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAA;SAAE,EAC9C,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;YACT,OAAO,EAAE,aAAa,CAAC;gBACrB,GAAG,EAAE,MAAM,CAAC;gBACZ,KAAK,CAAC,EAAE,MAAM,CAAC;gBACf,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,WAAW,CAAC,EAAE,MAAM,CAAC;aACtB,CAAC,CAAC;YACH,SAAS,EAAE,OAAO,CAAC;YACnB,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB,CAAC,CAAC;KACJ,CAAC;CACH;AA8ED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAK1D;AAED,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,OAAO,CAAC,CAoJlB"}
|