dsh-baton-host 0.5.1 → 0.5.3

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.
Files changed (2) hide show
  1. package/lib/index.js +6 -4
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -663,8 +663,10 @@ export function apply(ctx) {
663
663
  setImmediate(guard('register', async () => {
664
664
  const root = serverRoot()
665
665
  if (!root) { registration = { state: 'done', ok: false, error: 'no-server', clients: [] }; return }
666
- const { autoRegister } = await import(pathToFileURL(path.join(root, 'src', 'register.mjs')).href)
667
- const result = autoRegister({ root, harnessDir: harnessDir() })
666
+ const { autoRegister, harnessRuntime } = await import(pathToFileURL(path.join(root, 'src', 'register.mjs')).href)
667
+ // Inside the desktop app, its own binary can stand in for a missing Node.js.
668
+ const fallback = process.versions.electron && harnessRuntime ? harnessRuntime(process.execPath) : null
669
+ const result = autoRegister({ root, harnessDir: harnessDir(), fallback })
668
670
  registration = { state: 'done', ...result }
669
671
  const summary = result.clients.map((c) => `${c.label}: ${c.state}${c.error ? ` (${c.error})` : ''}`).join(', ')
670
672
  ctx.logger?.[result.ok ? 'info' : 'error']?.(`dsh-baton-host MCP registration: ${summary || result.error}`)
@@ -678,9 +680,9 @@ export function apply(ctx) {
678
680
  kind: 'exact',
679
681
  path: '/dsh-baton/status',
680
682
  handler: (request, response) => {
681
- const { state, ok, error, version, clients = [] } = registration
683
+ const { state, ok, error, version, runtime, clients = [] } = registration
682
684
  response.writeHead(200, { 'content-type': 'application/json', 'cache-control': 'no-store' })
683
- response.end(JSON.stringify({ version: VERSION, registration: { state, ok, error, version, clients: clients.map(({ id, label, state }) => ({ id, label, state })) } }))
685
+ response.end(JSON.stringify({ version: VERSION, registration: { state, ok, error, version, runtime, clients: clients.map(({ id, label, state }) => ({ id, label, state })) } }))
684
686
  },
685
687
  }), 'dsh-baton-host status route')
686
688
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-baton-host",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "DeepSeek Harness plugin for dsh-baton: adding it is the whole install. Switched on, it registers the dsh-baton MCP server for Claude Code and Codex, then takes the baton over a local, owner-only control socket, runs it in a specific session through the host's own session controller, and hands the result back when the turn is done.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -20,7 +20,7 @@
20
20
  "LICENSE"
21
21
  ],
22
22
  "dependencies": {
23
- "dsh-baton-mcp": "0.5.1"
23
+ "dsh-baton-mcp": "0.5.3"
24
24
  },
25
25
  "license": "MIT",
26
26
  "dsh": {