dsh-cliworker-now 0.7.7 → 0.7.8

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 (87) hide show
  1. package/README.en.md +29 -7
  2. package/README.md +30 -7
  3. package/lib/account-models.mjs +33 -5
  4. package/lib/client.js +575 -102
  5. package/lib/client.js.map +1 -1
  6. package/lib/index.js +7573 -6269
  7. package/lib/index.js.map +1 -1
  8. package/lib/pi-native-catalog.mjs +15 -5
  9. package/lib/pi-omp-refresh.mjs +3 -3
  10. package/lib/typert.host.js +194 -26
  11. package/lib/typert.remote-client.d.ts +6 -0
  12. package/lib/typert.remote-client.d.ts.map +1 -1
  13. package/lib/typert.remote-client.js +176 -26
  14. package/lib/types/client/cli-executable-settings.d.ts +13 -0
  15. package/lib/types/client/cli-executable-settings.js +128 -0
  16. package/lib/types/client/cli-executable-settings.js.map +1 -0
  17. package/lib/types/client/management-styles.d.ts +1 -1
  18. package/lib/types/client/management-styles.js +4 -0
  19. package/lib/types/client/management-styles.js.map +1 -1
  20. package/lib/types/client/settings-dialog.js +134 -45
  21. package/lib/types/client/settings-dialog.js.map +1 -1
  22. package/lib/types/client/styles.d.ts +1 -1
  23. package/lib/types/client/styles.js +18 -16
  24. package/lib/types/client/styles.js.map +1 -1
  25. package/lib/types/host/account-models.d.mts +7 -1
  26. package/lib/types/host/account-models.mjs +33 -5
  27. package/lib/types/host/accounts.js +51 -19
  28. package/lib/types/host/accounts.js.map +1 -1
  29. package/lib/types/host/adapters.d.ts +2 -0
  30. package/lib/types/host/adapters.js +93 -15
  31. package/lib/types/host/adapters.js.map +1 -1
  32. package/lib/types/host/agy-background-environment.d.ts +2 -0
  33. package/lib/types/host/agy-background-environment.js +7 -0
  34. package/lib/types/host/agy-background-environment.js.map +1 -0
  35. package/lib/types/host/claude-native-oauth.js +2 -0
  36. package/lib/types/host/claude-native-oauth.js.map +1 -1
  37. package/lib/types/host/claude-own-route.d.ts +15 -3
  38. package/lib/types/host/claude-own-route.js +158 -33
  39. package/lib/types/host/claude-own-route.js.map +1 -1
  40. package/lib/types/host/cli-account-binding.js +9 -4
  41. package/lib/types/host/cli-account-binding.js.map +1 -1
  42. package/lib/types/host/cli-executable-paths.d.ts +30 -0
  43. package/lib/types/host/cli-executable-paths.js +272 -0
  44. package/lib/types/host/cli-executable-paths.js.map +1 -0
  45. package/lib/types/host/codex-models.d.ts +3 -1
  46. package/lib/types/host/codex-models.js +37 -4
  47. package/lib/types/host/codex-models.js.map +1 -1
  48. package/lib/types/host/first-party-models.d.ts +4 -0
  49. package/lib/types/host/first-party-models.js +43 -9
  50. package/lib/types/host/first-party-models.js.map +1 -1
  51. package/lib/types/host/hermes-accounts.js +54 -9
  52. package/lib/types/host/hermes-accounts.js.map +1 -1
  53. package/lib/types/host/hermes-models.js +21 -2
  54. package/lib/types/host/hermes-models.js.map +1 -1
  55. package/lib/types/host/index.d.ts +10 -0
  56. package/lib/types/host/index.js +121 -6
  57. package/lib/types/host/index.js.map +1 -1
  58. package/lib/types/host/native-process.js +14 -4
  59. package/lib/types/host/native-process.js.map +1 -1
  60. package/lib/types/host/opencode-native.js +13 -0
  61. package/lib/types/host/opencode-native.js.map +1 -1
  62. package/lib/types/host/pi-omp-adapter.js +2 -2
  63. package/lib/types/host/pi-omp-adapter.js.map +1 -1
  64. package/lib/types/host/pi-omp-native.js +5 -3
  65. package/lib/types/host/pi-omp-native.js.map +1 -1
  66. package/lib/types/host/pi-omp-refresh.mjs +3 -3
  67. package/lib/types/host/process.d.ts +3 -0
  68. package/lib/types/host/process.js +3 -1
  69. package/lib/types/host/process.js.map +1 -1
  70. package/lib/types/host/runtime.js +5 -1
  71. package/lib/types/host/runtime.js.map +1 -1
  72. package/lib/types/host/settings-catalog-cache.d.ts +28 -0
  73. package/lib/types/host/settings-catalog-cache.js +189 -0
  74. package/lib/types/host/settings-catalog-cache.js.map +1 -0
  75. package/lib/types/host/windows-cli-installation.d.ts +4 -0
  76. package/lib/types/host/windows-cli-installation.js +7 -0
  77. package/lib/types/host/windows-cli-installation.js.map +1 -1
  78. package/lib/types/host/windows-codex-launch.d.ts +9 -0
  79. package/lib/types/host/windows-codex-launch.js +216 -0
  80. package/lib/types/host/windows-codex-launch.js.map +1 -0
  81. package/lib/types/host/windows-desktop-cli-installation.d.ts +20 -0
  82. package/lib/types/host/windows-desktop-cli-installation.js +420 -0
  83. package/lib/types/host/windows-desktop-cli-installation.js.map +1 -0
  84. package/lib/types/host/windows-hidden-launch.mjs +3 -1
  85. package/lib/types/shared/cli-settings.d.ts +8 -0
  86. package/lib/windows-hidden-launch.mjs +3 -1
  87. package/package.json +2 -2
@@ -196,16 +196,23 @@ async function nativeCandidates(
196
196
  // Availability is deliberately separate from native catalog presence. A model
197
197
  // is selectable only through current account scope or a declared exact API route.
198
198
  async function privateJSON(path, fallback = {}) {
199
- const { open } = await import('node:fs/promises')
199
+ const { open, lstat } = await import('node:fs/promises')
200
200
  const { constants } = await import('node:fs')
201
- let handle
201
+ let handle, entry
202
202
  try {
203
+ // Windows does not implement O_NOFOLLOW. Check the directory entry before
204
+ // opening and bind it to the descriptor and final entry on every platform.
205
+ entry = await lstat(path)
206
+ if (entry.isSymbolicLink() || !entry.isFile() || entry.nlink !== 1)
207
+ throw new Error('Unsafe private metadata input')
203
208
  handle = await open(path, constants.O_RDONLY | constants.O_NOFOLLOW | constants.O_NONBLOCK)
204
209
  const info = await handle.stat()
205
- if (!info.isFile() || info.nlink !== 1 || info.size > 2 * 1024 * 1024)
210
+ if (!info.isFile() || info.nlink !== 1 || info.size > 2 * 1024 * 1024 ||
211
+ info.dev !== entry.dev || info.ino !== entry.ino)
206
212
  throw new Error('Unsafe private metadata input')
207
213
  const text = await handle.readFile('utf8')
208
214
  const after = await handle.stat()
215
+ const current = await lstat(path)
209
216
  const value = JSON.parse(text)
210
217
  if (
211
218
  !value ||
@@ -213,12 +220,15 @@ async function privateJSON(path, fallback = {}) {
213
220
  Array.isArray(value) ||
214
221
  Buffer.byteLength(text) > 2 * 1024 * 1024 ||
215
222
  info.size !== after.size ||
216
- info.mtimeMs !== after.mtimeMs
223
+ info.mtimeMs !== after.mtimeMs ||
224
+ current.isSymbolicLink() || !current.isFile() || current.nlink !== 1 ||
225
+ current.dev !== info.dev || current.ino !== info.ino ||
226
+ current.size !== after.size || current.mtimeMs !== after.mtimeMs
217
227
  )
218
228
  throw new Error('Invalid private metadata input')
219
229
  return value
220
230
  } catch (error) {
221
- if (error?.code === 'ENOENT') return fallback
231
+ if (!entry && error?.code === 'ENOENT') return fallback
222
232
  throw error
223
233
  } finally {
224
234
  await handle?.close()
@@ -2,7 +2,7 @@ import { constants } from 'node:fs'
2
2
  import { lstat, open, realpath, rename, rm, writeFile } from 'node:fs/promises'
3
3
  import { createHash, randomUUID } from 'node:crypto'
4
4
  import { createRequire } from 'node:module'
5
- import { dirname, join } from 'node:path'
5
+ import { dirname, join, toNamespacedPath } from 'node:path'
6
6
  import { pathToFileURL } from 'node:url'
7
7
  import { DatabaseSync } from 'node:sqlite'
8
8
  import { inspectPiInstallation } from './pi-installation.mjs'
@@ -138,7 +138,7 @@ export async function assertPiOmpRefreshSources(root, expected) {
138
138
  let current
139
139
  if (receipt.cli === 'pi') current = (await refreshJson(entry.path, false))[entry.provider]
140
140
  else {
141
- const db = new DatabaseSync(entry.path, { readOnly: true })
141
+ const db = new DatabaseSync(toNamespacedPath(entry.path), { readOnly: true })
142
142
  try {
143
143
  current = rowCredential(
144
144
  db
@@ -173,7 +173,7 @@ async function refreshedEntries(root, receipt) {
173
173
  if (refreshFingerprint(data[entry.provider]) !== entry.hash) throw unsafe()
174
174
  for (const entry of receipt.entries) result.push([entry, data[entry.provider]])
175
175
  } else {
176
- const db = new DatabaseSync(join(root, 'agent/agent.db'), { readOnly: true })
176
+ const db = new DatabaseSync(toNamespacedPath(join(root, 'agent/agent.db')), { readOnly: true })
177
177
  try {
178
178
  const rows = db
179
179
  .prepare('SELECT rowid AS id,provider,credential_type,data,disabled_cause FROM auth_credentials')
@@ -75,6 +75,12 @@ let dsh_cliworker_now_cliworker_catalogForCli_parameter_1$schema$value
75
75
  const dsh_cliworker_now_cliworker_catalogForCli_parameter_1$schema = () => (dsh_cliworker_now_cliworker_catalogForCli_parameter_1$schema$value ??= z.string())
76
76
  let dsh_cliworker_now_cliworker_catalogForCli_result$schema$value
77
77
  const dsh_cliworker_now_cliworker_catalogForCli_result$schema = () => (dsh_cliworker_now_cliworker_catalogForCli_result$schema$value ??= z.string())
78
+ let dsh_cliworker_now_cliworker_cliExecutablePath_parameter_0$schema$value
79
+ const dsh_cliworker_now_cliworker_cliExecutablePath_parameter_0$schema = () => (dsh_cliworker_now_cliworker_cliExecutablePath_parameter_0$schema$value ??= z.string())
80
+ let dsh_cliworker_now_cliworker_cliExecutablePath_parameter_1$schema$value
81
+ const dsh_cliworker_now_cliworker_cliExecutablePath_parameter_1$schema = () => (dsh_cliworker_now_cliworker_cliExecutablePath_parameter_1$schema$value ??= z.string())
82
+ let dsh_cliworker_now_cliworker_cliExecutablePath_result$schema$value
83
+ const dsh_cliworker_now_cliworker_cliExecutablePath_result$schema = () => (dsh_cliworker_now_cliworker_cliExecutablePath_result$schema$value ??= z.string())
78
84
  let dsh_cliworker_now_cliworker_cliSettings_parameter_0$schema$value
79
85
  const dsh_cliworker_now_cliworker_cliSettings_parameter_0$schema = () => (dsh_cliworker_now_cliworker_cliSettings_parameter_0$schema$value ??= z.string())
80
86
  let dsh_cliworker_now_cliworker_cliSettings_result$schema$value
@@ -123,6 +129,22 @@ let dsh_cliworker_now_cliworker_history_parameter_3$schema$value
123
129
  const dsh_cliworker_now_cliworker_history_parameter_3$schema = () => (dsh_cliworker_now_cliworker_history_parameter_3$schema$value ??= z.string())
124
130
  let dsh_cliworker_now_cliworker_history_result$schema$value
125
131
  const dsh_cliworker_now_cliworker_history_result$schema = () => (dsh_cliworker_now_cliworker_history_result$schema$value ??= z.string())
132
+ let dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_0$schema$value
133
+ const dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_0$schema = () => (dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_0$schema$value ??= z.string())
134
+ let dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_1$schema$value
135
+ const dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_1$schema = () => (dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_1$schema$value ??= z.string())
136
+ let dsh_cliworker_now_cliworker_refreshCatalogForCli_result$schema$value
137
+ const dsh_cliworker_now_cliworker_refreshCatalogForCli_result$schema = () => (dsh_cliworker_now_cliworker_refreshCatalogForCli_result$schema$value ??= z.string())
138
+ let dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_0$schema$value
139
+ const dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_0$schema = () => (dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_0$schema$value ??= z.string())
140
+ let dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_1$schema$value
141
+ const dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_1$schema = () => (dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_1$schema$value ??= z.string())
142
+ let dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_2$schema$value
143
+ const dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_2$schema = () => (dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_2$schema$value ??= z.string())
144
+ let dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_3$schema$value
145
+ const dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_3$schema = () => (dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_3$schema$value ??= z.string())
146
+ let dsh_cliworker_now_cliworker_refreshCliExecutablePath_result$schema$value
147
+ const dsh_cliworker_now_cliworker_refreshCliExecutablePath_result$schema = () => (dsh_cliworker_now_cliworker_refreshCliExecutablePath_result$schema$value ??= z.string())
126
148
  let dsh_cliworker_now_cliworker_renameWorker_parameter_0$schema$value
127
149
  const dsh_cliworker_now_cliworker_renameWorker_parameter_0$schema = () => (dsh_cliworker_now_cliworker_renameWorker_parameter_0$schema$value ??= z.string())
128
150
  let dsh_cliworker_now_cliworker_renameWorker_parameter_1$schema$value
@@ -243,7 +265,7 @@ export const TYPERT = {
243
265
  typeSymbol: 'dsh-cliworker-now#cliworker/accountResize:result',
244
266
  create: dsh_cliworker_now_cliworker_accountResize_result$schema,
245
267
  },
246
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":942,"column":9},
268
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1035,"column":9},
247
269
  },
248
270
  {
249
271
  id: 'dsh-cliworker-now#cliworker/accountStart',
@@ -289,7 +311,7 @@ export const TYPERT = {
289
311
  typeSymbol: 'dsh-cliworker-now#cliworker/accountStart:result',
290
312
  create: dsh_cliworker_now_cliworker_accountStart_result$schema,
291
313
  },
292
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":838,"column":9},
314
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":930,"column":9},
293
315
  },
294
316
  {
295
317
  id: 'dsh-cliworker-now#cliworker/accountStartForProvider',
@@ -345,7 +367,7 @@ export const TYPERT = {
345
367
  typeSymbol: 'dsh-cliworker-now#cliworker/accountStartForProvider:result',
346
368
  create: dsh_cliworker_now_cliworker_accountStartForProvider_result$schema,
347
369
  },
348
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":866,"column":9},
370
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":958,"column":9},
349
371
  },
350
372
  {
351
373
  id: 'dsh-cliworker-now#cliworker/accountStartForSource',
@@ -401,7 +423,7 @@ export const TYPERT = {
401
423
  typeSymbol: 'dsh-cliworker-now#cliworker/accountStartForSource:result',
402
424
  create: dsh_cliworker_now_cliworker_accountStartForSource_result$schema,
403
425
  },
404
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":849,"column":9},
426
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":941,"column":9},
405
427
  },
406
428
  {
407
429
  id: 'dsh-cliworker-now#cliworker/accountStatus',
@@ -437,7 +459,7 @@ export const TYPERT = {
437
459
  typeSymbol: 'dsh-cliworker-now#cliworker/accountStatus:result',
438
460
  create: dsh_cliworker_now_cliworker_accountStatus_result$schema,
439
461
  },
440
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":822,"column":9},
462
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":831,"column":9},
441
463
  },
442
464
  {
443
465
  id: 'dsh-cliworker-now#cliworker/accountStop',
@@ -472,7 +494,7 @@ export const TYPERT = {
472
494
  typeSymbol: 'dsh-cliworker-now#cliworker/accountStop:result',
473
495
  create: dsh_cliworker_now_cliworker_accountStop_result$schema,
474
496
  },
475
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":958,"column":9},
497
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1051,"column":9},
476
498
  },
477
499
  {
478
500
  id: 'dsh-cliworker-now#cliworker/accountWatch',
@@ -509,7 +531,7 @@ export const TYPERT = {
509
531
  typeSymbol: 'dsh-cliworker-now#cliworker/accountWatch:result',
510
532
  create: dsh_cliworker_now_cliworker_accountWatch_result$schema,
511
533
  },
512
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":916,"column":10},
534
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1009,"column":10},
513
535
  },
514
536
  {
515
537
  id: 'dsh-cliworker-now#cliworker/accountWrite',
@@ -554,7 +576,7 @@ export const TYPERT = {
554
576
  typeSymbol: 'dsh-cliworker-now#cliworker/accountWrite:result',
555
577
  create: dsh_cliworker_now_cliworker_accountWrite_result$schema,
556
578
  },
557
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":931,"column":9},
579
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1024,"column":9},
558
580
  },
559
581
  {
560
582
  id: 'dsh-cliworker-now#cliworker/catalog',
@@ -580,7 +602,7 @@ export const TYPERT = {
580
602
  typeSymbol: 'dsh-cliworker-now#cliworker/catalog:result',
581
603
  create: dsh_cliworker_now_cliworker_catalog_result$schema,
582
604
  },
583
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":968,"column":9},
605
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1061,"column":9},
584
606
  },
585
607
  {
586
608
  id: 'dsh-cliworker-now#cliworker/catalogForCli',
@@ -616,7 +638,43 @@ export const TYPERT = {
616
638
  typeSymbol: 'dsh-cliworker-now#cliworker/catalogForCli:result',
617
639
  create: dsh_cliworker_now_cliworker_catalogForCli_result$schema,
618
640
  },
619
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":973,"column":9},
641
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1066,"column":9},
642
+ },
643
+ {
644
+ id: 'dsh-cliworker-now#cliworker/cliExecutablePath',
645
+ service: 'cliworker',
646
+ namespace: 'cliworker',
647
+ method: 'cliExecutablePath',
648
+ invocation: { kind: 'direct' },
649
+ parameters: [
650
+ {
651
+ name: 'parentSessionId',
652
+ wire: 'parentSessionId',
653
+ source: 'json',
654
+ codec: {
655
+ mode: 'strict',
656
+ typeSymbol: 'dsh-cliworker-now#cliworker/cliExecutablePath:parentSessionId',
657
+ create: dsh_cliworker_now_cliworker_cliExecutablePath_parameter_0$schema,
658
+ },
659
+ },
660
+ {
661
+ name: 'cli',
662
+ wire: 'cli',
663
+ source: 'json',
664
+ codec: {
665
+ mode: 'strict',
666
+ typeSymbol: 'dsh-cliworker-now#cliworker/cliExecutablePath:cli',
667
+ create: dsh_cliworker_now_cliworker_cliExecutablePath_parameter_1$schema,
668
+ },
669
+ },
670
+ ],
671
+ cancellation: { parameter: 'signal' },
672
+ result: {
673
+ mode: 'strict',
674
+ typeSymbol: 'dsh-cliworker-now#cliworker/cliExecutablePath:result',
675
+ create: dsh_cliworker_now_cliworker_cliExecutablePath_result$schema,
676
+ },
677
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":880,"column":9},
620
678
  },
621
679
  {
622
680
  id: 'dsh-cliworker-now#cliworker/cliSettings',
@@ -642,7 +700,7 @@ export const TYPERT = {
642
700
  typeSymbol: 'dsh-cliworker-now#cliworker/cliSettings:result',
643
701
  create: dsh_cliworker_now_cliworker_cliSettings_result$schema,
644
702
  },
645
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":698,"column":9},
703
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":707,"column":9},
646
704
  },
647
705
  {
648
706
  id: 'dsh-cliworker-now#cliworker/configure',
@@ -678,7 +736,7 @@ export const TYPERT = {
678
736
  typeSymbol: 'dsh-cliworker-now#cliworker/configure:result',
679
737
  create: dsh_cliworker_now_cliworker_configure_result$schema,
680
738
  },
681
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":991,"column":9},
739
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1105,"column":9},
682
740
  },
683
741
  {
684
742
  id: 'dsh-cliworker-now#cliworker/configureWorker',
@@ -724,7 +782,7 @@ export const TYPERT = {
724
782
  typeSymbol: 'dsh-cliworker-now#cliworker/configureWorker:result',
725
783
  create: dsh_cliworker_now_cliworker_configureWorker_result$schema,
726
784
  },
727
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1018,"column":9},
785
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1132,"column":9},
728
786
  },
729
787
  {
730
788
  id: 'dsh-cliworker-now#cliworker/deleteRolePreset',
@@ -760,7 +818,7 @@ export const TYPERT = {
760
818
  typeSymbol: 'dsh-cliworker-now#cliworker/deleteRolePreset:result',
761
819
  create: dsh_cliworker_now_cliworker_deleteRolePreset_result$schema,
762
820
  },
763
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":733,"column":9},
821
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":742,"column":9},
764
822
  },
765
823
  {
766
824
  id: 'dsh-cliworker-now#cliworker/deleteWorker',
@@ -796,7 +854,7 @@ export const TYPERT = {
796
854
  typeSymbol: 'dsh-cliworker-now#cliworker/deleteWorker:result',
797
855
  create: dsh_cliworker_now_cliworker_deleteWorker_result$schema,
798
856
  },
799
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":777,"column":9},
857
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":786,"column":9},
800
858
  },
801
859
  {
802
860
  id: 'dsh-cliworker-now#cliworker/followup',
@@ -842,7 +900,7 @@ export const TYPERT = {
842
900
  typeSymbol: 'dsh-cliworker-now#cliworker/followup:result',
843
901
  create: dsh_cliworker_now_cliworker_followup_result$schema,
844
902
  },
845
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1052,"column":9},
903
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1166,"column":9},
846
904
  },
847
905
  {
848
906
  id: 'dsh-cliworker-now#cliworker/history',
@@ -897,7 +955,99 @@ export const TYPERT = {
897
955
  typeSymbol: 'dsh-cliworker-now#cliworker/history:result',
898
956
  create: dsh_cliworker_now_cliworker_history_result$schema,
899
957
  },
900
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":684,"column":9},
958
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":693,"column":9},
959
+ },
960
+ {
961
+ id: 'dsh-cliworker-now#cliworker/refreshCatalogForCli',
962
+ service: 'cliworker',
963
+ namespace: 'cliworker',
964
+ method: 'refreshCatalogForCli',
965
+ invocation: { kind: 'direct' },
966
+ parameters: [
967
+ {
968
+ name: 'parentSessionId',
969
+ wire: 'parentSessionId',
970
+ source: 'json',
971
+ codec: {
972
+ mode: 'strict',
973
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCatalogForCli:parentSessionId',
974
+ create: dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_0$schema,
975
+ },
976
+ },
977
+ {
978
+ name: 'cli',
979
+ wire: 'cli',
980
+ source: 'json',
981
+ codec: {
982
+ mode: 'strict',
983
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCatalogForCli:cli',
984
+ create: dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_1$schema,
985
+ },
986
+ },
987
+ ],
988
+ cancellation: { parameter: 'signal' },
989
+ result: {
990
+ mode: 'strict',
991
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCatalogForCli:result',
992
+ create: dsh_cliworker_now_cliworker_refreshCatalogForCli_result$schema,
993
+ },
994
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1071,"column":9},
995
+ },
996
+ {
997
+ id: 'dsh-cliworker-now#cliworker/refreshCliExecutablePath',
998
+ service: 'cliworker',
999
+ namespace: 'cliworker',
1000
+ method: 'refreshCliExecutablePath',
1001
+ invocation: { kind: 'direct' },
1002
+ parameters: [
1003
+ {
1004
+ name: 'parentSessionId',
1005
+ wire: 'parentSessionId',
1006
+ source: 'json',
1007
+ codec: {
1008
+ mode: 'strict',
1009
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCliExecutablePath:parentSessionId',
1010
+ create: dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_0$schema,
1011
+ },
1012
+ },
1013
+ {
1014
+ name: 'cli',
1015
+ wire: 'cli',
1016
+ source: 'json',
1017
+ codec: {
1018
+ mode: 'strict',
1019
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCliExecutablePath:cli',
1020
+ create: dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_1$schema,
1021
+ },
1022
+ },
1023
+ {
1024
+ name: 'path',
1025
+ wire: 'path',
1026
+ source: 'json',
1027
+ codec: {
1028
+ mode: 'strict',
1029
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCliExecutablePath:path',
1030
+ create: dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_2$schema,
1031
+ },
1032
+ },
1033
+ {
1034
+ name: 'action',
1035
+ wire: 'action',
1036
+ source: 'json',
1037
+ codec: {
1038
+ mode: 'strict',
1039
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCliExecutablePath:action',
1040
+ create: dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_3$schema,
1041
+ },
1042
+ },
1043
+ ],
1044
+ cancellation: { parameter: 'signal' },
1045
+ result: {
1046
+ mode: 'strict',
1047
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCliExecutablePath:result',
1048
+ create: dsh_cliworker_now_cliworker_refreshCliExecutablePath_result$schema,
1049
+ },
1050
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":901,"column":9},
901
1051
  },
902
1052
  {
903
1053
  id: 'dsh-cliworker-now#cliworker/renameWorker',
@@ -943,7 +1093,7 @@ export const TYPERT = {
943
1093
  typeSymbol: 'dsh-cliworker-now#cliworker/renameWorker:result',
944
1094
  create: dsh_cliworker_now_cliworker_renameWorker_result$schema,
945
1095
  },
946
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":745,"column":9},
1096
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":754,"column":9},
947
1097
  },
948
1098
  {
949
1099
  id: 'dsh-cliworker-now#cliworker/renameWorkerTitle',
@@ -989,7 +1139,7 @@ export const TYPERT = {
989
1139
  typeSymbol: 'dsh-cliworker-now#cliworker/renameWorkerTitle:result',
990
1140
  create: dsh_cliworker_now_cliworker_renameWorkerTitle_result$schema,
991
1141
  },
992
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":761,"column":9},
1142
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":770,"column":9},
993
1143
  },
994
1144
  {
995
1145
  id: 'dsh-cliworker-now#cliworker/restartWorker',
@@ -1035,7 +1185,7 @@ export const TYPERT = {
1035
1185
  typeSymbol: 'dsh-cliworker-now#cliworker/restartWorker:result',
1036
1186
  create: dsh_cliworker_now_cliworker_restartWorker_result$schema,
1037
1187
  },
1038
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1080,"column":9},
1188
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1194,"column":9},
1039
1189
  },
1040
1190
  {
1041
1191
  id: 'dsh-cliworker-now#cliworker/restoreWorker',
@@ -1071,7 +1221,7 @@ export const TYPERT = {
1071
1221
  typeSymbol: 'dsh-cliworker-now#cliworker/restoreWorker:result',
1072
1222
  create: dsh_cliworker_now_cliworker_restoreWorker_result$schema,
1073
1223
  },
1074
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":788,"column":9},
1224
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":797,"column":9},
1075
1225
  },
1076
1226
  {
1077
1227
  id: 'dsh-cliworker-now#cliworker/rolePresets',
@@ -1097,7 +1247,7 @@ export const TYPERT = {
1097
1247
  typeSymbol: 'dsh-cliworker-now#cliworker/rolePresets:result',
1098
1248
  create: dsh_cliworker_now_cliworker_rolePresets_result$schema,
1099
1249
  },
1100
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":709,"column":9},
1250
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":718,"column":9},
1101
1251
  },
1102
1252
  {
1103
1253
  id: 'dsh-cliworker-now#cliworker/saveRolePreset',
@@ -1133,7 +1283,7 @@ export const TYPERT = {
1133
1283
  typeSymbol: 'dsh-cliworker-now#cliworker/saveRolePreset:result',
1134
1284
  create: dsh_cliworker_now_cliworker_saveRolePreset_result$schema,
1135
1285
  },
1136
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":720,"column":9},
1286
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":729,"column":9},
1137
1287
  },
1138
1288
  {
1139
1289
  id: 'dsh-cliworker-now#cliworker/setCliEnabled',
@@ -1179,7 +1329,7 @@ export const TYPERT = {
1179
1329
  typeSymbol: 'dsh-cliworker-now#cliworker/setCliEnabled:result',
1180
1330
  create: dsh_cliworker_now_cliworker_setCliEnabled_result$schema,
1181
1331
  },
1182
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":799,"column":9},
1332
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":808,"column":9},
1183
1333
  },
1184
1334
  {
1185
1335
  id: 'dsh-cliworker-now#cliworker/stop',
@@ -1214,7 +1364,7 @@ export const TYPERT = {
1214
1364
  typeSymbol: 'dsh-cliworker-now#cliworker/stop:result',
1215
1365
  create: dsh_cliworker_now_cliworker_stop_result$schema,
1216
1366
  },
1217
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1109,"column":9},
1367
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1223,"column":9},
1218
1368
  },
1219
1369
  {
1220
1370
  id: 'dsh-cliworker-now#cliworker/watch',
@@ -1251,7 +1401,7 @@ export const TYPERT = {
1251
1401
  typeSymbol: 'dsh-cliworker-now#cliworker/watch:result',
1252
1402
  create: dsh_cliworker_now_cliworker_watch_result$schema,
1253
1403
  },
1254
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":653,"column":10},
1404
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":662,"column":10},
1255
1405
  },
1256
1406
  ],
1257
1407
  model: {
@@ -1336,6 +1486,18 @@ export const TYPERT = {
1336
1486
  "signature": "@Remote('accountStatus') async accountStatus(parentSessionId: string, cli: string, signal: AbortSignal): Promise<string>",
1337
1487
  "jsDoc": "/** @param parentSessionId - Owning session. @param cli - Selected CLI. @param signal - Query lifetime. @returns Safe account status JSON. */"
1338
1488
  },
1489
+ {
1490
+ "kind": "method",
1491
+ "name": "cliExecutablePath",
1492
+ "signature": "@Remote('cliExecutablePath') async cliExecutablePath(parentSessionId: string, cli: string, signal: AbortSignal): Promise<string>",
1493
+ "jsDoc": "/** @param parentSessionId - Owning session. @param cli - Selected CLI. @param signal - Query lifetime. @returns Machine-local executable path and availability JSON. */"
1494
+ },
1495
+ {
1496
+ "kind": "method",
1497
+ "name": "refreshCliExecutablePath",
1498
+ "signature": "@Remote('refreshCliExecutablePath') async refreshCliExecutablePath( parentSessionId: string, cli: string, path: string, action: string, signal: AbortSignal, ): Promise<string>",
1499
+ "jsDoc": "/** @param parentSessionId - Owning session. @param cli - Selected CLI. @param path - Full file path for manual selection. @param action - manual, refresh or auto. @param signal - Mutation/query lifetime. @returns Saved machine-local path and fresh availability JSON. */"
1500
+ },
1339
1501
  {
1340
1502
  "kind": "method",
1341
1503
  "name": "accountStart",
@@ -1390,6 +1552,12 @@ export const TYPERT = {
1390
1552
  "signature": "@Remote('catalogForCli') async catalogForCli(parentSessionId: string, cli: string, signal: AbortSignal): Promise<string>",
1391
1553
  "jsDoc": "/** @param parentSessionId - Parent session identity. @param cli - Selected CLI. @param signal - Caller lifetime. @returns CLI catalog and saved project preference. */"
1392
1554
  },
1555
+ {
1556
+ "kind": "method",
1557
+ "name": "refreshCatalogForCli",
1558
+ "signature": "@Remote('refreshCatalogForCli') async refreshCatalogForCli(parentSessionId: string, cli: string, signal: AbortSignal): Promise<string>",
1559
+ "jsDoc": "/** @param parentSessionId - Parent session identity. @param cli - Selected CLI. @param signal - Caller lifetime. @returns Fresh model catalog and saved project preference. */"
1560
+ },
1393
1561
  {
1394
1562
  "kind": "method",
1395
1563
  "name": "configure",
@@ -17,6 +17,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
17
17
  accountWrite: (parentSessionId: string, accountId: string, data: string) => Promise<RemoteResult<boolean>>
18
18
  catalog: (parentSessionId: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
19
19
  catalogForCli: (parentSessionId: string, cli: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
20
+ cliExecutablePath: (parentSessionId: string, cli: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
20
21
  cliSettings: (parentSessionId: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
21
22
  configure: (parentSessionId: string, selection: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
22
23
  configureWorker: (parentSessionId: string, workerId: string, selection: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
@@ -24,6 +25,8 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
24
25
  deleteWorker: (parentSessionId: string, workerId: string, signal?: AbortSignal) => Promise<RemoteResult<void>>
25
26
  followup: (parentSessionId: string, workerId: string, prompt: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
26
27
  history: (parentSessionId: string, workerId: string, anchor: string, direction: string) => Promise<RemoteResult<string>>
28
+ refreshCatalogForCli: (parentSessionId: string, cli: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
29
+ refreshCliExecutablePath: (parentSessionId: string, cli: string, path: string, action: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
27
30
  renameWorker: (parentSessionId: string, workerId: string, name: string, signal?: AbortSignal) => Promise<RemoteResult<void>>
28
31
  renameWorkerTitle: (parentSessionId: string, workerId: string, title: string, signal?: AbortSignal) => Promise<RemoteResult<void>>
29
32
  restartWorker: (parentSessionId: string, workerId: string, prompt: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
@@ -45,6 +48,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
45
48
  'cliworker/accountWrite': (parentSessionId: string, accountId: string, data: string) => Promise<RemoteResult<boolean>>
46
49
  'cliworker/catalog': (parentSessionId: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
47
50
  'cliworker/catalogForCli': (parentSessionId: string, cli: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
51
+ 'cliworker/cliExecutablePath': (parentSessionId: string, cli: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
48
52
  'cliworker/cliSettings': (parentSessionId: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
49
53
  'cliworker/configure': (parentSessionId: string, selection: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
50
54
  'cliworker/configureWorker': (parentSessionId: string, workerId: string, selection: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
@@ -52,6 +56,8 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
52
56
  'cliworker/deleteWorker': (parentSessionId: string, workerId: string, signal?: AbortSignal) => Promise<RemoteResult<void>>
53
57
  'cliworker/followup': (parentSessionId: string, workerId: string, prompt: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
54
58
  'cliworker/history': (parentSessionId: string, workerId: string, anchor: string, direction: string) => Promise<RemoteResult<string>>
59
+ 'cliworker/refreshCatalogForCli': (parentSessionId: string, cli: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
60
+ 'cliworker/refreshCliExecutablePath': (parentSessionId: string, cli: string, path: string, action: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
55
61
  'cliworker/renameWorker': (parentSessionId: string, workerId: string, name: string, signal?: AbortSignal) => Promise<RemoteResult<void>>
56
62
  'cliworker/renameWorkerTitle': (parentSessionId: string, workerId: string, title: string, signal?: AbortSignal) => Promise<RemoteResult<void>>
57
63
  'cliworker/restartWorker': (parentSessionId: string, workerId: string, prompt: string, signal?: AbortSignal) => Promise<RemoteResult<string>>
@@ -1 +1 @@
1
- {"version":3,"file":"typert.remote-client.d.ts","names":["accountResize","accountStart","accountStartForProvider","accountStartForSource","accountStatus","accountStop","accountWatch","accountWrite","catalog","catalogForCli","cliSettings","configure","configureWorker","deleteRolePreset","deleteWorker","followup","history","renameWorker","renameWorkerTitle","restartWorker","restoreWorker","rolePresets","saveRolePreset","setCliEnabled","stop","watch"],"sources":["../src/host/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;IA66BQA,a;IAxGAC,Y;IA4BAC,uB;IAjBAC,qB;IA3BAC,a;IAwIAC,W;IA1CCC,Y;IAeDC,Y;IAqCAC,O;IAKAC,a;IAnRAC,W;IAqSAC,S;IA2BAC,e;IA7RAC,gB;IA4CAC,Y;IAmRAC,Q;IAhXAC,O;IA6DAC,Y;IAgBAC,iB;IA+TAC,a;IApSAC,a;IA/EAC,W;IAWAC,c;IA+EAC,a;IAsTAC,I;IAxcCC,K;;;IAiSDzB,yB;IAxGAC,wB;IA4BAC,mC;IAjBAC,iC;IA3BAC,yB;IAwIAC,uB;IA1CCC,wB;IAeDC,wB;IAqCAC,mB;IAKAC,yB;IAnRAC,uB;IAqSAC,qB;IA2BAC,2B;IA7RAC,4B;IA4CAC,wB;IAmRAC,oB;IAhXAC,mB;IA6DAC,wB;IAgBAC,6B;IA+TAC,yB;IApSAC,yB;IA/EAC,uB;IAWAC,0B;IA+EAC,yB;IAsTAC,gB;IAxcCC,iB","ignoreList":[]}
1
+ {"version":3,"file":"typert.remote-client.d.ts","names":["accountResize","accountStart","accountStartForProvider","accountStartForSource","accountStatus","accountStop","accountWatch","accountWrite","catalog","catalogForCli","cliExecutablePath","cliSettings","configure","configureWorker","deleteRolePreset","deleteWorker","followup","history","refreshCatalogForCli","refreshCliExecutablePath","renameWorker","renameWorkerTitle","restartWorker","restoreWorker","rolePresets","saveRolePreset","setCliEnabled","stop","watch"],"sources":["../src/host/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;IA0gCQA,a;IAzGAC,Y;IA4BAC,uB;IAjBAC,qB;IA9GAC,a;IA4NAC,W;IA1CCC,Y;IAeDC,Y;IAqCAC,O;IAKAC,a;IA1LAC,iB;IA7KAC,W;IA8YAC,S;IA2BAC,e;IAtYAC,gB;IA4CAC,Y;IA4XAC,Q;IAzdAC,O;IA0XAC,oB;IA1KAC,wB;IAnJAC,Y;IAgBAC,iB;IAwaAC,a;IA7YAC,a;IA/EAC,W;IAWAC,c;IA+EAC,a;IA+ZAC,I;IAjjBCC,K;;;IAqXD5B,yB;IAzGAC,wB;IA4BAC,mC;IAjBAC,iC;IA9GAC,yB;IA4NAC,uB;IA1CCC,wB;IAeDC,wB;IAqCAC,mB;IAKAC,yB;IA1LAC,6B;IA7KAC,uB;IA8YAC,qB;IA2BAC,2B;IAtYAC,4B;IA4CAC,wB;IA4XAC,oB;IAzdAC,mB;IA0XAC,gC;IA1KAC,oC;IAnJAC,wB;IAgBAC,6B;IAwaAC,yB;IA7YAC,yB;IA/EAC,uB;IAWAC,0B;IA+EAC,yB;IA+ZAC,gB;IAjjBCC,iB","ignoreList":[]}