@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,378 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @linxin666/dsh-pet — `/api/pet/*` · `/pet/*` asset + runtime shapes the client expects.
|
|
3
|
+
* When the pack is staged under pluginsDir, serve real assets; otherwise honest defaults.
|
|
4
|
+
*/
|
|
5
|
+
import { createReadStream, existsSync, readdirSync, readFileSync, statSync } from "node:fs";
|
|
6
|
+
import path from "node:path";
|
|
7
|
+
import { readBody, sendJson } from "./underlying/http-json.js";
|
|
8
|
+
import { createXrkDocStore } from "./underlying/doc-store.js";
|
|
9
|
+
import { DSH_COMPAT_ADAPTER } from "./meta.js";
|
|
10
|
+
import { findCommunityPluginRoot } from "./community-plugin-root.js";
|
|
11
|
+
const DEFAULT_DISPLAY = {
|
|
12
|
+
visible: true,
|
|
13
|
+
size: 160,
|
|
14
|
+
right: 24,
|
|
15
|
+
bottom: 120,
|
|
16
|
+
bubbleScale: 1,
|
|
17
|
+
};
|
|
18
|
+
const FALLBACK_ENTRY = {
|
|
19
|
+
id: "whale-girl",
|
|
20
|
+
displayName: "鲸鱼娘",
|
|
21
|
+
description: "XRK compat default pet",
|
|
22
|
+
renderer: "sprite2d",
|
|
23
|
+
folder: "whale",
|
|
24
|
+
atlasUrl: "/pet/whale/spritesheet.webp",
|
|
25
|
+
manifestUrl: "/pet/whale/pet.json",
|
|
26
|
+
};
|
|
27
|
+
const STORE = createXrkDocStore(["dsh-pet", "pet.json"], {
|
|
28
|
+
petId: FALLBACK_ENTRY.id,
|
|
29
|
+
display: { ...DEFAULT_DISPLAY },
|
|
30
|
+
names: {},
|
|
31
|
+
});
|
|
32
|
+
function contentType(file) {
|
|
33
|
+
switch (path.extname(file).toLowerCase()) {
|
|
34
|
+
case ".js":
|
|
35
|
+
case ".mjs":
|
|
36
|
+
return "application/javascript; charset=utf-8";
|
|
37
|
+
case ".json":
|
|
38
|
+
return "application/json; charset=utf-8";
|
|
39
|
+
case ".webp":
|
|
40
|
+
return "image/webp";
|
|
41
|
+
case ".png":
|
|
42
|
+
return "image/png";
|
|
43
|
+
case ".svg":
|
|
44
|
+
return "image/svg+xml";
|
|
45
|
+
case ".css":
|
|
46
|
+
return "text/css; charset=utf-8";
|
|
47
|
+
default:
|
|
48
|
+
return "application/octet-stream";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function sendFile(res, abs, method) {
|
|
52
|
+
try {
|
|
53
|
+
const st = statSync(abs);
|
|
54
|
+
if (!st.isFile())
|
|
55
|
+
return false;
|
|
56
|
+
res.writeHead(200, {
|
|
57
|
+
"content-type": contentType(abs),
|
|
58
|
+
"content-length": String(st.size),
|
|
59
|
+
"cache-control": "no-store",
|
|
60
|
+
});
|
|
61
|
+
if (method === "HEAD") {
|
|
62
|
+
res.end();
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
createReadStream(abs).pipe(res);
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
catch {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function sendText(res, status, body, type) {
|
|
73
|
+
res.writeHead(status, {
|
|
74
|
+
"content-type": type,
|
|
75
|
+
"cache-control": "no-store",
|
|
76
|
+
"content-length": Buffer.byteLength(body),
|
|
77
|
+
});
|
|
78
|
+
res.end(body);
|
|
79
|
+
}
|
|
80
|
+
function packageRoot(options) {
|
|
81
|
+
return findCommunityPluginRoot(options.pluginsDir, [
|
|
82
|
+
"@linxin666/dsh-pet",
|
|
83
|
+
"dsh-pet",
|
|
84
|
+
]);
|
|
85
|
+
}
|
|
86
|
+
function loadEntries(root) {
|
|
87
|
+
if (!root)
|
|
88
|
+
return [FALLBACK_ENTRY];
|
|
89
|
+
const assets = path.join(root, "assets");
|
|
90
|
+
if (!existsSync(assets))
|
|
91
|
+
return [FALLBACK_ENTRY];
|
|
92
|
+
const out = [];
|
|
93
|
+
try {
|
|
94
|
+
for (const ent of readdirSync(assets, { withFileTypes: true })) {
|
|
95
|
+
if (!ent.isDirectory())
|
|
96
|
+
continue;
|
|
97
|
+
if (ent.name === "decorations")
|
|
98
|
+
continue;
|
|
99
|
+
const folder = ent.name;
|
|
100
|
+
const manifestPath = path.join(assets, folder, "pet.json");
|
|
101
|
+
if (!existsSync(manifestPath))
|
|
102
|
+
continue;
|
|
103
|
+
try {
|
|
104
|
+
const raw = JSON.parse(readFileSync(manifestPath, "utf8"));
|
|
105
|
+
const id = typeof raw.id === "string" ? raw.id : folder;
|
|
106
|
+
const displayName = typeof raw.displayName === "string" ? raw.displayName : id;
|
|
107
|
+
const description = typeof raw.description === "string" ? raw.description : undefined;
|
|
108
|
+
const sheet = existsSync(path.join(assets, folder, "spritesheet.webp"))
|
|
109
|
+
? "spritesheet.webp"
|
|
110
|
+
: existsSync(path.join(assets, folder, "spritesheet.png"))
|
|
111
|
+
? "spritesheet.png"
|
|
112
|
+
: undefined;
|
|
113
|
+
out.push({
|
|
114
|
+
id,
|
|
115
|
+
displayName,
|
|
116
|
+
...(description ? { description } : {}),
|
|
117
|
+
renderer: "sprite2d",
|
|
118
|
+
folder,
|
|
119
|
+
...(sheet
|
|
120
|
+
? { atlasUrl: `/pet/${folder}/${sheet}` }
|
|
121
|
+
: {}),
|
|
122
|
+
manifestUrl: `/pet/${folder}/pet.json`,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
catch {
|
|
126
|
+
/* skip bad manifest */
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
catch {
|
|
131
|
+
return [FALLBACK_ENTRY];
|
|
132
|
+
}
|
|
133
|
+
return out.length > 0 ? out : [FALLBACK_ENTRY];
|
|
134
|
+
}
|
|
135
|
+
function readPersist(options) {
|
|
136
|
+
const doc = STORE.read(options.xrkHome);
|
|
137
|
+
return {
|
|
138
|
+
petId: doc.data.petId || FALLBACK_ENTRY.id,
|
|
139
|
+
display: { ...DEFAULT_DISPLAY, ...doc.data.display },
|
|
140
|
+
names: { ...doc.data.names },
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function writePersist(options, next) {
|
|
144
|
+
STORE.write(options.xrkHome, next);
|
|
145
|
+
}
|
|
146
|
+
function entryView(entry) {
|
|
147
|
+
return {
|
|
148
|
+
id: entry.id,
|
|
149
|
+
displayName: entry.displayName,
|
|
150
|
+
...(entry.description ? { description: entry.description } : {}),
|
|
151
|
+
renderer: entry.renderer,
|
|
152
|
+
...(entry.atlasUrl ? { atlasUrl: entry.atlasUrl } : {}),
|
|
153
|
+
...(entry.manifestUrl ? { manifestUrl: entry.manifestUrl } : {}),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function stateBody(options, entries) {
|
|
157
|
+
const persist = readPersist(options);
|
|
158
|
+
const entry = entries.find((e) => e.id === persist.petId) ?? entries[0] ?? FALLBACK_ENTRY;
|
|
159
|
+
const name = persist.names[entry.id]?.trim() || entry.displayName;
|
|
160
|
+
return {
|
|
161
|
+
animation: "idle",
|
|
162
|
+
phase: "idle",
|
|
163
|
+
sessionActive: false,
|
|
164
|
+
sessions: [],
|
|
165
|
+
affinity: {
|
|
166
|
+
points: 0,
|
|
167
|
+
rank: "stranger",
|
|
168
|
+
rankEmoji: "👋",
|
|
169
|
+
pets: 0,
|
|
170
|
+
feeds: 0,
|
|
171
|
+
turns: 0,
|
|
172
|
+
petCooldown: false,
|
|
173
|
+
feedCooldown: false,
|
|
174
|
+
},
|
|
175
|
+
display: persist.display,
|
|
176
|
+
pet: {
|
|
177
|
+
id: entry.id,
|
|
178
|
+
displayName: entry.displayName,
|
|
179
|
+
...(entry.description ? { description: entry.description } : {}),
|
|
180
|
+
},
|
|
181
|
+
name,
|
|
182
|
+
treats: { stocked: 3, max: 10 },
|
|
183
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
async function parseJson(req) {
|
|
187
|
+
try {
|
|
188
|
+
const raw = await readBody(req);
|
|
189
|
+
if (!raw.trim())
|
|
190
|
+
return {};
|
|
191
|
+
const parsed = JSON.parse(raw);
|
|
192
|
+
return parsed && typeof parsed === "object"
|
|
193
|
+
? parsed
|
|
194
|
+
: {};
|
|
195
|
+
}
|
|
196
|
+
catch {
|
|
197
|
+
return {};
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
function resolvePetAsset(root, pathname) {
|
|
201
|
+
if (!root)
|
|
202
|
+
return undefined;
|
|
203
|
+
// /pet/<folder>/...
|
|
204
|
+
const parts = pathname.split("/").filter(Boolean);
|
|
205
|
+
if (parts[0] !== "pet" || parts.length < 3)
|
|
206
|
+
return undefined;
|
|
207
|
+
const folder = parts[1];
|
|
208
|
+
const rel = parts.slice(2).join("/");
|
|
209
|
+
if (!folder || !rel || rel.includes("..") || path.isAbsolute(rel)) {
|
|
210
|
+
return undefined;
|
|
211
|
+
}
|
|
212
|
+
const abs = path.resolve(root, "assets", folder, rel);
|
|
213
|
+
const base = path.resolve(root, "assets", folder);
|
|
214
|
+
if (abs !== base && !abs.startsWith(base + path.sep))
|
|
215
|
+
return undefined;
|
|
216
|
+
return existsSync(abs) ? abs : undefined;
|
|
217
|
+
}
|
|
218
|
+
export function isPetHttpPath(pathname) {
|
|
219
|
+
return (pathname === "/api/pet" ||
|
|
220
|
+
pathname.startsWith("/api/pet/") ||
|
|
221
|
+
pathname === "/pet" ||
|
|
222
|
+
pathname.startsWith("/pet/"));
|
|
223
|
+
}
|
|
224
|
+
export async function handlePetHttp(req, res, pathname, options = {}) {
|
|
225
|
+
if (!isPetHttpPath(pathname))
|
|
226
|
+
return false;
|
|
227
|
+
const method = (req.method ?? "GET").toUpperCase();
|
|
228
|
+
const root = packageRoot(options);
|
|
229
|
+
const entries = loadEntries(root);
|
|
230
|
+
if (pathname.startsWith("/pet/")) {
|
|
231
|
+
if (method !== "GET" && method !== "HEAD") {
|
|
232
|
+
sendJson(res, 405, { ok: false, error: "method not allowed" });
|
|
233
|
+
return true;
|
|
234
|
+
}
|
|
235
|
+
const abs = resolvePetAsset(root, pathname);
|
|
236
|
+
if (abs && sendFile(res, abs, method))
|
|
237
|
+
return true;
|
|
238
|
+
sendJson(res, 404, {
|
|
239
|
+
ok: false,
|
|
240
|
+
error: "pet asset not found",
|
|
241
|
+
path: pathname,
|
|
242
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
243
|
+
note: root
|
|
244
|
+
? "Asset missing in staged dsh-pet package."
|
|
245
|
+
: "Install @linxin666/dsh-pet to serve pet assets.",
|
|
246
|
+
});
|
|
247
|
+
return true;
|
|
248
|
+
}
|
|
249
|
+
if (pathname.startsWith("/api/pet/runtime/")) {
|
|
250
|
+
if (method !== "GET" && method !== "HEAD") {
|
|
251
|
+
sendJson(res, 405, { ok: false, error: "method not allowed" });
|
|
252
|
+
return true;
|
|
253
|
+
}
|
|
254
|
+
const name = pathname.slice("/api/pet/runtime/".length);
|
|
255
|
+
if (name.includes("..") || path.isAbsolute(name)) {
|
|
256
|
+
sendJson(res, 400, { ok: false, error: "bad runtime path" });
|
|
257
|
+
return true;
|
|
258
|
+
}
|
|
259
|
+
if (root) {
|
|
260
|
+
const abs = path.join(root, "lib", name);
|
|
261
|
+
if (sendFile(res, abs, method))
|
|
262
|
+
return true;
|
|
263
|
+
}
|
|
264
|
+
sendText(res, 200, `/* xrk-dsh-compat: ${name} not bundled; Live2D runtime optional */\n`, "application/javascript; charset=utf-8");
|
|
265
|
+
return true;
|
|
266
|
+
}
|
|
267
|
+
if (pathname === "/api/pet/state" || pathname === "/api/pet/state/") {
|
|
268
|
+
if (method === "POST" || method === "PUT" || method === "PATCH") {
|
|
269
|
+
await readBody(req);
|
|
270
|
+
}
|
|
271
|
+
sendJson(res, 200, stateBody(options, entries));
|
|
272
|
+
return true;
|
|
273
|
+
}
|
|
274
|
+
if (pathname === "/api/pet/pets" || pathname === "/api/pet/pets/") {
|
|
275
|
+
sendJson(res, 200, entries.map(entryView));
|
|
276
|
+
return true;
|
|
277
|
+
}
|
|
278
|
+
if (pathname === "/api/pet/diagnostics") {
|
|
279
|
+
sendJson(res, 200, {
|
|
280
|
+
diagnostics: {
|
|
281
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
282
|
+
packageRoot: root ?? null,
|
|
283
|
+
entries: entries.length,
|
|
284
|
+
},
|
|
285
|
+
});
|
|
286
|
+
return true;
|
|
287
|
+
}
|
|
288
|
+
if (method === "POST") {
|
|
289
|
+
const body = await parseJson(req);
|
|
290
|
+
const persist = readPersist(options);
|
|
291
|
+
if (pathname === "/api/pet/set-visible") {
|
|
292
|
+
const visible = body.visible === true;
|
|
293
|
+
const next = {
|
|
294
|
+
...persist,
|
|
295
|
+
display: { ...persist.display, visible },
|
|
296
|
+
};
|
|
297
|
+
writePersist(options, next);
|
|
298
|
+
sendJson(res, 200, { ok: true, display: next.display });
|
|
299
|
+
return true;
|
|
300
|
+
}
|
|
301
|
+
if (pathname === "/api/pet/set-pet") {
|
|
302
|
+
const petId = typeof body.petId === "string" ? body.petId : "";
|
|
303
|
+
const entry = entries.find((e) => e.id === petId);
|
|
304
|
+
if (!entry) {
|
|
305
|
+
sendJson(res, 200, { ok: false, error: "unknown-pet" });
|
|
306
|
+
return true;
|
|
307
|
+
}
|
|
308
|
+
writePersist(options, { ...persist, petId: entry.id });
|
|
309
|
+
sendJson(res, 200, { ok: true, petId: entry.id });
|
|
310
|
+
return true;
|
|
311
|
+
}
|
|
312
|
+
if (pathname === "/api/pet/set-config") {
|
|
313
|
+
const patch = body;
|
|
314
|
+
const display = { ...persist.display };
|
|
315
|
+
if (typeof patch.visible === "boolean")
|
|
316
|
+
display.visible = patch.visible;
|
|
317
|
+
if (typeof patch.size === "number" && Number.isFinite(patch.size)) {
|
|
318
|
+
display.size = patch.size;
|
|
319
|
+
}
|
|
320
|
+
if (typeof patch.right === "number" && Number.isFinite(patch.right)) {
|
|
321
|
+
display.right = patch.right;
|
|
322
|
+
}
|
|
323
|
+
if (typeof patch.bottom === "number" && Number.isFinite(patch.bottom)) {
|
|
324
|
+
display.bottom = patch.bottom;
|
|
325
|
+
}
|
|
326
|
+
if (typeof patch.bubbleScale === "number" &&
|
|
327
|
+
Number.isFinite(patch.bubbleScale)) {
|
|
328
|
+
display.bubbleScale = patch.bubbleScale;
|
|
329
|
+
}
|
|
330
|
+
const next = { ...persist, display };
|
|
331
|
+
writePersist(options, next);
|
|
332
|
+
sendJson(res, 200, { ok: true, display });
|
|
333
|
+
return true;
|
|
334
|
+
}
|
|
335
|
+
if (pathname === "/api/pet/set-name") {
|
|
336
|
+
const name = typeof body.name === "string" ? body.name.trim() : "";
|
|
337
|
+
const petId = persist.petId;
|
|
338
|
+
const next = {
|
|
339
|
+
...persist,
|
|
340
|
+
names: { ...persist.names, ...(name ? { [petId]: name } : {}) },
|
|
341
|
+
};
|
|
342
|
+
if (!name)
|
|
343
|
+
delete next.names[petId];
|
|
344
|
+
writePersist(options, next);
|
|
345
|
+
sendJson(res, 200, { ok: true, name: name || undefined });
|
|
346
|
+
return true;
|
|
347
|
+
}
|
|
348
|
+
if (pathname === "/api/pet/interact") {
|
|
349
|
+
sendJson(res, 200, {
|
|
350
|
+
ok: true,
|
|
351
|
+
reaction: "idle",
|
|
352
|
+
delta: 0,
|
|
353
|
+
affinity: stateBody(options, entries).affinity,
|
|
354
|
+
});
|
|
355
|
+
return true;
|
|
356
|
+
}
|
|
357
|
+
if (pathname === "/api/pet/set-skin" ||
|
|
358
|
+
pathname.startsWith("/api/pet/gameplay/")) {
|
|
359
|
+
sendJson(res, 200, {
|
|
360
|
+
ok: true,
|
|
361
|
+
path: pathname,
|
|
362
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
363
|
+
});
|
|
364
|
+
return true;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
if (method === "GET" || method === "HEAD") {
|
|
368
|
+
sendJson(res, 200, {
|
|
369
|
+
ok: true,
|
|
370
|
+
path: pathname,
|
|
371
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
372
|
+
});
|
|
373
|
+
return true;
|
|
374
|
+
}
|
|
375
|
+
sendJson(res, 405, { ok: false, error: "method not allowed" });
|
|
376
|
+
return true;
|
|
377
|
+
}
|
|
378
|
+
//# sourceMappingURL=pet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pet.js","sourceRoot":"","sources":["../../src/dsh-compat/pet.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,IAA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B;YAChC,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,EACzC,CAAC;YACD,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE;gBACjB,EAAE,EAAE,IAAI;gBACR,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,kBAAkB;aAC5B,CAAC,CAAC;YACH,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,IAAI,MAAM,KAAK,KAAK,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QAC1C,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE;YACjB,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,kBAAkB;SAC5B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC,CAAC;IAC/D,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
+
export interface RemoteWebUiOptions {
|
|
3
|
+
readonly xrkHome?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function isRemoteWebUiPath(pathname: string): boolean;
|
|
6
|
+
export declare function handleRemoteWebUiHttp(req: IncomingMessage, res: ServerResponse, pathname: string, options?: RemoteWebUiOptions): Promise<boolean>;
|
|
7
|
+
//# sourceMappingURL=remote-web-ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-web-ui.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/remote-web-ui.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMjE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAkED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAW3D;AAED,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,OAAO,CAAC,CAsLlB"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@linxin666/dsh-remote-web-ui` — pair status + persisted web-ui settings.
|
|
3
|
+
* Live LAN pairing / remote.mux upgrade remain honest seat gaps.
|
|
4
|
+
*/
|
|
5
|
+
import { randomUUID } from "node:crypto";
|
|
6
|
+
import { networkInterfaces } from "node:os";
|
|
7
|
+
import { sendJson } from "./underlying/http-json.js";
|
|
8
|
+
import { createXrkDocStore } from "./underlying/doc-store.js";
|
|
9
|
+
import { httpMethod, parseJsonBody } from "./underlying/http-kit.js";
|
|
10
|
+
import { DSH_COMPAT_ADAPTER } from "./meta.js";
|
|
11
|
+
const STORE = createXrkDocStore(["dsh-remote-web-ui", "state.json"], {
|
|
12
|
+
phase: "idle",
|
|
13
|
+
devices: [],
|
|
14
|
+
settings: {},
|
|
15
|
+
pairCode: null,
|
|
16
|
+
pairCodeExpiresAt: null,
|
|
17
|
+
});
|
|
18
|
+
function lanAddresses() {
|
|
19
|
+
const out = [];
|
|
20
|
+
const ifaces = networkInterfaces();
|
|
21
|
+
for (const rows of Object.values(ifaces)) {
|
|
22
|
+
if (!rows)
|
|
23
|
+
continue;
|
|
24
|
+
for (const row of rows) {
|
|
25
|
+
if (row.internal)
|
|
26
|
+
continue;
|
|
27
|
+
if (row.family !== "IPv4" && String(row.family) !== "4")
|
|
28
|
+
continue;
|
|
29
|
+
out.push(row.address);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return out;
|
|
33
|
+
}
|
|
34
|
+
function pairStatus(doc) {
|
|
35
|
+
const lan = lanAddresses();
|
|
36
|
+
const onlineCount = doc.devices.filter((d) => d.online).length;
|
|
37
|
+
return {
|
|
38
|
+
ok: true,
|
|
39
|
+
phase: doc.phase,
|
|
40
|
+
lanAvailable: lan.length > 0,
|
|
41
|
+
lanAddresses: lan,
|
|
42
|
+
deviceCount: doc.devices.length,
|
|
43
|
+
onlineCount,
|
|
44
|
+
devices: doc.devices.map((d) => ({ ...d })),
|
|
45
|
+
pairCode: doc.pairCode,
|
|
46
|
+
pairCodeExpiresAt: doc.pairCodeExpiresAt,
|
|
47
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function seatGap(message) {
|
|
51
|
+
return {
|
|
52
|
+
ok: false,
|
|
53
|
+
error: "compat-readonly",
|
|
54
|
+
message,
|
|
55
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function isRemoteWebUiPath(pathname) {
|
|
59
|
+
return (pathname === "/api/pair" ||
|
|
60
|
+
pathname.startsWith("/api/pair/") ||
|
|
61
|
+
pathname === "/api/dsh-web-ui-settings" ||
|
|
62
|
+
pathname.startsWith("/api/dsh-web-ui-settings/") ||
|
|
63
|
+
pathname === "/api/remote.mux" ||
|
|
64
|
+
pathname === "/api/session/uploadFileBinary" ||
|
|
65
|
+
pathname === "/remote" ||
|
|
66
|
+
pathname.startsWith("/remote/"));
|
|
67
|
+
}
|
|
68
|
+
export async function handleRemoteWebUiHttp(req, res, pathname, options = {}) {
|
|
69
|
+
if (!isRemoteWebUiPath(pathname))
|
|
70
|
+
return false;
|
|
71
|
+
const method = httpMethod(req);
|
|
72
|
+
const xrkHome = options.xrkHome;
|
|
73
|
+
if (pathname === "/api/pair/status" ||
|
|
74
|
+
pathname === "/api/pair" ||
|
|
75
|
+
pathname === "/api/pair/") {
|
|
76
|
+
if (method === "GET" || method === "HEAD") {
|
|
77
|
+
sendJson(res, 200, pairStatus(STORE.read(xrkHome).data));
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if (pathname === "/api/pair/start" || pathname === "/api/pair/listen") {
|
|
82
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
83
|
+
const code = String(Math.floor(100000 + Math.random() * 900000));
|
|
84
|
+
const expires = new Date(Date.now() + 10 * 60_000).toISOString();
|
|
85
|
+
const doc = STORE.patch(xrkHome, (current) => ({
|
|
86
|
+
...current,
|
|
87
|
+
phase: "listening",
|
|
88
|
+
pairCode: code,
|
|
89
|
+
pairCodeExpiresAt: expires,
|
|
90
|
+
}));
|
|
91
|
+
sendJson(res, 200, {
|
|
92
|
+
ok: true,
|
|
93
|
+
...pairStatus(doc.data),
|
|
94
|
+
});
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
if (pathname === "/api/pair/stop" || pathname === "/api/pair/cancel") {
|
|
98
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
99
|
+
const doc = STORE.patch(xrkHome, (current) => ({
|
|
100
|
+
...current,
|
|
101
|
+
phase: current.devices.length > 0 ? "paired" : "idle",
|
|
102
|
+
pairCode: null,
|
|
103
|
+
pairCodeExpiresAt: null,
|
|
104
|
+
}));
|
|
105
|
+
sendJson(res, 200, { ok: true, ...pairStatus(doc.data) });
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
if (pathname === "/api/pair/claim" || pathname === "/api/pair/complete") {
|
|
109
|
+
const body = await parseJsonBody(req);
|
|
110
|
+
const name = typeof body.name === "string" && body.name.trim()
|
|
111
|
+
? body.name.trim()
|
|
112
|
+
: "Remote device";
|
|
113
|
+
const now = new Date().toISOString();
|
|
114
|
+
const device = {
|
|
115
|
+
id: randomUUID(),
|
|
116
|
+
name,
|
|
117
|
+
online: true,
|
|
118
|
+
pairedAt: now,
|
|
119
|
+
lastSeenAt: now,
|
|
120
|
+
};
|
|
121
|
+
const doc = STORE.patch(xrkHome, (current) => ({
|
|
122
|
+
...current,
|
|
123
|
+
phase: "paired",
|
|
124
|
+
pairCode: null,
|
|
125
|
+
pairCodeExpiresAt: null,
|
|
126
|
+
devices: [...current.devices, device],
|
|
127
|
+
}));
|
|
128
|
+
sendJson(res, 200, { ok: true, device, ...pairStatus(doc.data) });
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
if (pathname === "/api/pair/unpair" ||
|
|
132
|
+
pathname === "/api/pair/remove" ||
|
|
133
|
+
pathname === "/api/pair/device") {
|
|
134
|
+
const body = await parseJsonBody(req);
|
|
135
|
+
const id = typeof body.id === "string"
|
|
136
|
+
? body.id
|
|
137
|
+
: typeof body.deviceId === "string"
|
|
138
|
+
? body.deviceId
|
|
139
|
+
: "";
|
|
140
|
+
const doc = STORE.patch(xrkHome, (current) => {
|
|
141
|
+
const devices = id
|
|
142
|
+
? current.devices.filter((d) => d.id !== id)
|
|
143
|
+
: [];
|
|
144
|
+
return {
|
|
145
|
+
...current,
|
|
146
|
+
devices,
|
|
147
|
+
phase: devices.length > 0
|
|
148
|
+
? "paired"
|
|
149
|
+
: "idle",
|
|
150
|
+
};
|
|
151
|
+
});
|
|
152
|
+
sendJson(res, 200, { ok: true, ...pairStatus(doc.data) });
|
|
153
|
+
return true;
|
|
154
|
+
}
|
|
155
|
+
if (pathname.startsWith("/api/pair/")) {
|
|
156
|
+
if (method === "POST" || method === "PUT" || method === "PATCH" || method === "DELETE") {
|
|
157
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
158
|
+
}
|
|
159
|
+
sendJson(res, 200, {
|
|
160
|
+
...seatGap("This pair action is not wired; status/start/stop/claim/unpair are available."),
|
|
161
|
+
...pairStatus(STORE.read(xrkHome).data),
|
|
162
|
+
});
|
|
163
|
+
return true;
|
|
164
|
+
}
|
|
165
|
+
if (pathname === "/api/dsh-web-ui-settings" ||
|
|
166
|
+
pathname.startsWith("/api/dsh-web-ui-settings/")) {
|
|
167
|
+
if (method === "GET" || method === "HEAD") {
|
|
168
|
+
const settings = STORE.read(xrkHome).data.settings;
|
|
169
|
+
sendJson(res, 200, {
|
|
170
|
+
ok: true,
|
|
171
|
+
value: settings,
|
|
172
|
+
writable: true,
|
|
173
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
174
|
+
});
|
|
175
|
+
return true;
|
|
176
|
+
}
|
|
177
|
+
if (method === "PUT" || method === "POST" || method === "PATCH") {
|
|
178
|
+
const body = await parseJsonBody(req);
|
|
179
|
+
const next = body.value && typeof body.value === "object"
|
|
180
|
+
? body.value
|
|
181
|
+
: body.settings && typeof body.settings === "object"
|
|
182
|
+
? body.settings
|
|
183
|
+
: body;
|
|
184
|
+
const doc = STORE.patch(xrkHome, (current) => ({
|
|
185
|
+
...current,
|
|
186
|
+
settings: { ...current.settings, ...next },
|
|
187
|
+
}));
|
|
188
|
+
sendJson(res, 200, {
|
|
189
|
+
ok: true,
|
|
190
|
+
value: doc.data.settings,
|
|
191
|
+
writable: true,
|
|
192
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
193
|
+
});
|
|
194
|
+
return true;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
if (pathname === "/api/remote.mux") {
|
|
198
|
+
sendJson(res, 426, {
|
|
199
|
+
ok: false,
|
|
200
|
+
error: "upgrade-required",
|
|
201
|
+
message: "remote.mux requires WebSocket upgrade (not embedded here).",
|
|
202
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
203
|
+
});
|
|
204
|
+
return true;
|
|
205
|
+
}
|
|
206
|
+
if (pathname === "/api/session/uploadFileBinary") {
|
|
207
|
+
await parseJsonBody(req).catch(() => ({}));
|
|
208
|
+
sendJson(res, 200, {
|
|
209
|
+
...seatGap("Binary session upload is not persisted on XRK-Harness."),
|
|
210
|
+
});
|
|
211
|
+
return true;
|
|
212
|
+
}
|
|
213
|
+
if (pathname === "/remote" || pathname === "/remote/" || pathname.startsWith("/remote/")) {
|
|
214
|
+
sendJson(res, 200, {
|
|
215
|
+
ok: true,
|
|
216
|
+
path: pathname,
|
|
217
|
+
phase: STORE.read(xrkHome).data.phase,
|
|
218
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
219
|
+
});
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
222
|
+
sendJson(res, 200, {
|
|
223
|
+
ok: true,
|
|
224
|
+
path: pathname,
|
|
225
|
+
adapter: DSH_COMPAT_ADAPTER,
|
|
226
|
+
});
|
|
227
|
+
return true;
|
|
228
|
+
}
|
|
229
|
+
//# sourceMappingURL=remote-web-ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-web-ui.js","sourceRoot":"","sources":["../../src/dsh-compat/remote-web-ui.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAsB/C,MAAM,KAAK,GAAG,iBAAiB,CAAY,CAAC,mBAAmB,EAAE,YAAY,CAAC,EAAE;IAC9E,KAAK,EAAE,MAAM;IACb,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,IAAI;IACd,iBAAiB,EAAE,IAAI;CACxB,CAAC,CAAC;AAEH,SAAS,YAAY;IACnB,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,MAAM,MAAM,GAAG,iBAAiB,EAAE,CAAC;IACnC,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QACzC,IAAI,CAAC,IAAI;YAAE,SAAS;QACpB,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,IAAI,GAAG,CAAC,QAAQ;gBAAE,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,kBAAkB;YACzB,OAAO,EAAE,4DAA4D;YACrE,OAAO,EAAE,kBAAkB;SAC5B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,QAAQ,KAAK,+BAA+B,EAAE,CAAC;QACjD,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC3C,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE;YACjB,GAAG,OAAO,CAAC,wDAAwD,CAAC;SACrE,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,UAAU,IAAI,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QACzF,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE;YACjB,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK;YACrC,OAAO,EAAE,kBAAkB;SAC5B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED,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 interface ServerDeckOptions {
|
|
3
|
+
readonly xrkHome?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function isServerDeckPath(pathname: string): boolean;
|
|
6
|
+
export declare function handleServerDeckHttp(req: IncomingMessage, res: ServerResponse, pathname: string, options?: ServerDeckOptions): Promise<boolean>;
|
|
7
|
+
//# sourceMappingURL=server-deck.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-deck.d.ts","sourceRoot":"","sources":["../../src/dsh-compat/server-deck.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMjE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAkGD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAI1D;AAED,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,OAAO,CAAC,CAiNlB"}
|