@deepseek-ai/dsh-plugin-manager 0.2.2-rc.1 → 0.2.2-rc.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 (70) hide show
  1. package/README.i18n.yaml +4 -4
  2. package/README.md +6 -5
  3. package/README.zh.md +6 -5
  4. package/lib/index.js +255 -68
  5. package/lib/typert.host.js +84 -66
  6. package/lib/typert.remote-client.d.ts.map +1 -0
  7. package/lib/typert.remote-client.js +77 -59
  8. package/lib/types/build-approval.d.ts.map +1 -0
  9. package/lib/types/build-approval.js.map +1 -0
  10. package/lib/types/bundle-detail.d.ts.map +1 -0
  11. package/lib/types/bundle-detail.js.map +1 -0
  12. package/lib/types/diagnostic.d.ts.map +1 -0
  13. package/lib/types/diagnostic.js +1 -0
  14. package/lib/types/diagnostic.js.map +1 -0
  15. package/lib/types/failure.d.ts.map +1 -0
  16. package/lib/types/failure.js.map +1 -0
  17. package/lib/types/git-transport.d.ts.map +1 -0
  18. package/lib/types/git-transport.js.map +1 -0
  19. package/lib/types/github-connection.d.ts +16 -5
  20. package/lib/types/github-connection.d.ts.map +1 -0
  21. package/lib/types/github-connection.js +18 -8
  22. package/lib/types/github-connection.js.map +1 -0
  23. package/lib/types/index.d.ts +39 -10
  24. package/lib/types/index.d.ts.map +1 -0
  25. package/lib/types/index.js +144 -46
  26. package/lib/types/index.js.map +1 -0
  27. package/lib/types/install-failure.d.ts.map +1 -0
  28. package/lib/types/install-failure.js.map +1 -0
  29. package/lib/types/install-spec.d.ts +13 -1
  30. package/lib/types/install-spec.d.ts.map +1 -0
  31. package/lib/types/install-spec.js +41 -1
  32. package/lib/types/install-spec.js.map +1 -0
  33. package/lib/types/official-install-target.d.ts.map +1 -0
  34. package/lib/types/official-install-target.js.map +1 -0
  35. package/lib/types/operations.d.ts +16 -4
  36. package/lib/types/operations.d.ts.map +1 -0
  37. package/lib/types/operations.js +38 -5
  38. package/lib/types/operations.js.map +1 -0
  39. package/lib/types/patch.d.ts.map +1 -0
  40. package/lib/types/patch.js.map +1 -0
  41. package/lib/types/registry.d.ts.map +1 -0
  42. package/lib/types/registry.js.map +1 -0
  43. package/lib/types/run-tree.d.ts.map +1 -0
  44. package/lib/types/run-tree.js.map +1 -0
  45. package/lib/types/tools.d.ts.map +1 -0
  46. package/lib/types/tools.js +2 -1
  47. package/lib/types/tools.js.map +1 -0
  48. package/lib/types/types.d.ts +31 -5
  49. package/lib/types/types.d.ts.map +1 -0
  50. package/lib/types/types.js.map +1 -0
  51. package/lib/types/versions.d.ts.map +1 -0
  52. package/lib/types/versions.js.map +1 -0
  53. package/package.json +39 -35
  54. package/src/build-approval.ts +96 -0
  55. package/src/bundle-detail.ts +104 -0
  56. package/src/diagnostic.ts +86 -0
  57. package/src/failure.ts +29 -0
  58. package/src/git-transport.ts +72 -0
  59. package/src/github-connection.ts +102 -0
  60. package/src/index.ts +1458 -0
  61. package/src/install-failure.ts +44 -0
  62. package/src/install-spec.ts +159 -0
  63. package/src/official-install-target.ts +58 -0
  64. package/src/operations.ts +695 -0
  65. package/src/patch.ts +78 -0
  66. package/src/registry.ts +98 -0
  67. package/src/run-tree.ts +77 -0
  68. package/src/tools.ts +164 -0
  69. package/src/types.ts +477 -0
  70. package/src/versions.ts +80 -0
@@ -7,7 +7,7 @@ let _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_parameter_0$sche
7
7
  const _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_parameter_0$schema$value ??= z.string())
8
8
  let _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_result$schema$value
9
9
  const _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_result$schema$value ??= z.object({
10
- 'status': z.union([z.literal("cancelled"), z.literal("not-running"), z.literal("too-late")]).readonly(),
10
+ 'status': z.union([z.literal("not-running"), z.literal("cancelled"), z.literal("too-late")]).readonly(),
11
11
  }))
12
12
  let _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0$schema$value
13
13
  const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0$schema$value ??= z.string())
@@ -18,7 +18,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1$schema =
18
18
  let _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema$value
19
19
  const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema$value ??= z.union([z.object({
20
20
  'status': z.literal("accepted").readonly(),
21
- 'kind': z.union([z.literal("registry"), z.literal("path"), z.literal("git"), z.literal("tarball")]).readonly(),
21
+ 'kind': z.union([z.literal("registry"), z.literal("git"), z.literal("path"), z.literal("tarball")]).readonly(),
22
22
  'name': z.string().readonly().optional(),
23
23
  'version': z.string().readonly().optional(),
24
24
  'description': z.string().readonly().optional().describe('`description` of the package manifest.'),
@@ -27,7 +27,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema = () =
27
27
  'host': z.string().readonly().optional().describe('The host a git spec or a tarball URL is fetched from, which no registry stands in for.'),
28
28
  }), z.object({
29
29
  'status': z.literal("refused").readonly(),
30
- 'problem': z.union([z.literal("network"), z.literal("unknown"), z.literal("not-found"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("not-a-package"), z.literal("not-a-bundle")]).readonly(),
30
+ 'problem': z.union([z.literal("unknown"), z.literal("network"), z.literal("not-found"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("not-a-package"), z.literal("not-a-bundle")]).readonly(),
31
31
  'reason': z.string().readonly().describe('What pnpm, the registry, or the file system said.'),
32
32
  'registries': z.array(z.union([z.literal(null), z.string()])).readonly().optional().describe('The registries asked, in order, when the refusal came from asking them; `reason` is the last one\'s.'),
33
33
  })]))
@@ -40,17 +40,21 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1$sc
40
40
  'requestId': z.string().optional(),
41
41
  'approvedBuilds': z.array(z.string()).optional().describe('Explicitly allow these pending packages\' scripts for this profile, then install; a name no longer pending refuses the call.'),
42
42
  'registry': z.union([z.literal(null), z.string()]).optional().describe('The registry asked first; absent, the configured one. The configured fallbacks follow while a registry is unreachable or stale.'),
43
+ 'expected': z.object({
44
+ 'name': z.string().readonly(),
45
+ 'version': z.string().readonly(),
46
+ }).optional().describe('The package and manifest version the spec must install. An installation that leaves this package missing or at another version, or that adds or changes another direct dependency, is undone with its profile files and modules before its bundle loads, and fails with `unexpected-package`; one whose package declares no bundle is undone the same way and fails with `not-bundle`, and one whose bundle patches cannot load fails as an operation error.'),
43
47
  })]))
44
48
  let _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema$value
45
49
  const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema$value ??= z.object({
46
50
  'changed': z.boolean(),
47
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
51
+ 'application': z.union([z.literal("failed"), z.literal("cancelled"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
48
52
  'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
49
53
  'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
50
54
  'target': z.string(),
51
55
  'enabled': z.boolean().optional(),
52
56
  'error': z.object({
53
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("operation-error")]),
57
+ 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("unexpected-package"), z.literal("operation-error")]),
54
58
  'diagnostic': z.string().optional(),
55
59
  'incompatible': z.array(z.object({
56
60
  'name': z.string(),
@@ -65,7 +69,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema
65
69
  'output': z.string(),
66
70
  'truncated': z.boolean(),
67
71
  'logPath': z.string(),
68
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
72
+ 'kind': z.union([z.literal("unknown"), z.literal("timeout"), z.literal("network"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
69
73
  'timedOut': z.boolean().optional().describe('The run outlived its bound: the manager terminated it after it printed nothing for its silence bound, or the GitHub connection check hit its deadline. Such a run reports no exit status of its own, so `exitCode` records the status its failure is read as rather than a status the process returned.'),
70
74
  'incompatible': z.array(z.object({
71
75
  'name': z.string(),
@@ -73,6 +77,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema
73
77
  'runtimeVersion': z.string(),
74
78
  'requirements': z.record(z.string(), z.string()).describe('Only the requirements the running version does not satisfy, keyed `engines.dsh` or by DSH peer package name.'),
75
79
  })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
80
+ 'unmet': z.union([z.literal("not-bundle"), z.literal("unexpected-package")]).optional().describe('Present when an `expected` check refused the run: `unexpected-package` when the run left the expected package missing or at another version, or added or changed another direct dependency; otherwise `not-bundle` when the expected package declares no bundle. The output names what the run installed.'),
76
81
  }).optional(),
77
82
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
78
83
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
@@ -103,15 +108,15 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema =
103
108
  }).optional().describe('Local display text with available translations or literal fallbacks, or a metadata diagnostic.'),
104
109
  'description': z.string().optional().describe('Untranslated `description` of this bundle\'s package manifest.'),
105
110
  'listedByDefault': z.boolean().optional().describe('Default GUI visibility after package and Host checks; selected or profile-installed bundles remain manageable.'),
106
- 'enabled': z.boolean().describe('Selected in the profile manifest; a load error means its layer was skipped.'),
111
+ 'enabled': z.boolean().describe('Selected in the profile manifest; a selected bundle whose layer was skipped carries the load `error`, and none of its `rows` has an `entryId`.'),
107
112
  'installed': z.boolean().describe('Whether the profile declares this dependency; availability separately reports whether its files can be read.'),
108
113
  'source': z.string().optional().describe('Present for a profile dependency the installation does not also supply: the spec `pnpm add` accepts, with local paths made absolute and the user information of an http(s) URL removed.'),
109
114
  'optional': z.boolean().describe('Whether the installation ships the bundle for the person to switch on: named by the launcher\'s `OPTIONAL_BUNDLES`, held by the installation\'s dependencies, selected by no shipped template, and never removable.'),
110
115
  'removable': z.boolean(),
111
- 'updatable': z.boolean().describe('Whether `listVersions` and `updateBundle` accept the bundle: a third-party profile dependency saved as a registry spec under its own name, whose installed manifest declares a semver version, and that carries no plugin management.'),
116
+ 'update': z.union([z.literal("registry"), z.literal("git")]).optional().describe('How `updateBundle` replaces the bundle, absent when it cannot: `registry` for a third-party profile dependency saved as a registry spec under its own name, whose newer versions `listVersions` reads; `git` for one saved as a Git spec pinned to a full commit, which updates to another commit of the same repository directory. Either needs a semver manifest version and no plugin management.'),
112
117
  'readOnlyReason': z.union([z.literal("management-required"), z.literal("unaddressable")]).optional(),
113
118
  'error': z.object({
114
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("operation-error")]),
119
+ 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("unexpected-package"), z.literal("operation-error")]),
115
120
  'diagnostic': z.string().optional(),
116
121
  'incompatible': z.array(z.object({
117
122
  'name': z.string(),
@@ -152,7 +157,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema =
152
157
  'error': z.string().readonly().optional().describe('Unmodified local metadata diagnostic; the plugin remains manageable.'),
153
158
  }).readonly().optional().describe('Local package display metadata, independent of whether the entry is enabled.'),
154
159
  'enabled': z.boolean().readonly().describe('Effective Loader enablement, including disabled ancestor groups.'),
155
- 'fiberPhase': z.union([z.literal(null), z.literal("failed"), z.literal("active"), z.literal("pending"), z.literal("loading"), z.literal("unloading")]).readonly(),
160
+ 'fiberPhase': z.union([z.literal(null), z.literal("failed"), z.literal("pending"), z.literal("active"), z.literal("loading"), z.literal("unloading")]).readonly(),
156
161
  'diagnostic': z.string().readonly().optional().describe('Current startup failure message; absent when this entry has no failed fiber.'),
157
162
  'patchId': z.string(),
158
163
  'readOnlyReason': z.never().optional(),
@@ -170,7 +175,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema =
170
175
  'error': z.string().readonly().optional().describe('Unmodified local metadata diagnostic; the plugin remains manageable.'),
171
176
  }).readonly().optional().describe('Local package display metadata, independent of whether the entry is enabled.'),
172
177
  'enabled': z.boolean().readonly().describe('Effective Loader enablement, including disabled ancestor groups.'),
173
- 'fiberPhase': z.union([z.literal(null), z.literal("failed"), z.literal("active"), z.literal("pending"), z.literal("loading"), z.literal("unloading")]).readonly(),
178
+ 'fiberPhase': z.union([z.literal(null), z.literal("failed"), z.literal("pending"), z.literal("active"), z.literal("loading"), z.literal("unloading")]).readonly(),
174
179
  'diagnostic': z.string().readonly().optional().describe('Current startup failure message; absent when this entry has no failed fiber.'),
175
180
  'patchId': z.never().optional(),
176
181
  'readOnlyReason': z.union([z.literal("management-required"), z.literal("unaddressable")]),
@@ -193,7 +198,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_result$schema =
193
198
  'registry': z.union([z.literal(null), z.string()]).readonly().describe('The registry that answered; an update installs from it.'),
194
199
  'attempts': z.array(z.object({
195
200
  'registry': z.union([z.literal(null), z.string()]).readonly(),
196
- 'problem': z.union([z.literal("network"), z.literal("unknown"), z.literal("not-found")]).readonly().optional().describe('Why this registry gave no usable answer; absent for the registry that answered.'),
201
+ 'problem': z.union([z.literal("unknown"), z.literal("network"), z.literal("not-found")]).readonly().optional().describe('Why this registry gave no usable answer; absent for the registry that answered.'),
197
202
  'reason': z.string().readonly().optional().describe('What pnpm or the registry said, verbatim.'),
198
203
  })).readonly(),
199
204
  'versions': z.array(z.object({
@@ -213,11 +218,11 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_result$schema =
213
218
  'omitted': z.number().readonly().describe('Newer versions beyond `versionListLimit` that the list leaves out.'),
214
219
  }), z.object({
215
220
  'status': z.literal("refused").readonly(),
216
- 'problem': z.union([z.literal("network"), z.literal("unknown"), z.literal("not-found"), z.literal("not-updatable")]).readonly().describe('`not-updatable`: the package is not an installed profile dependency resolved from a registry.'),
221
+ 'problem': z.union([z.literal("unknown"), z.literal("network"), z.literal("not-found"), z.literal("not-updatable")]).readonly().describe('`not-updatable`: the package is not an installed profile dependency resolved from a registry.'),
217
222
  'reason': z.string().readonly(),
218
223
  'attempts': z.array(z.object({
219
224
  'registry': z.union([z.literal(null), z.string()]).readonly(),
220
- 'problem': z.union([z.literal("network"), z.literal("unknown"), z.literal("not-found")]).readonly().optional().describe('Why this registry gave no usable answer; absent for the registry that answered.'),
225
+ 'problem': z.union([z.literal("unknown"), z.literal("network"), z.literal("not-found")]).readonly().optional().describe('Why this registry gave no usable answer; absent for the registry that answered.'),
221
226
  'reason': z.string().readonly().optional().describe('What pnpm or the registry said, verbatim.'),
222
227
  })).readonly().describe('The registries asked, in order; empty for `not-updatable`.'),
223
228
  })]))
@@ -249,13 +254,13 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0$sch
249
254
  let _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema$value
250
255
  const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema$value ??= z.object({
251
256
  'changed': z.boolean(),
252
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
257
+ 'application': z.union([z.literal("failed"), z.literal("cancelled"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
253
258
  'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
254
259
  'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
255
260
  'target': z.string(),
256
261
  'enabled': z.boolean().optional(),
257
262
  'error': z.object({
258
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("operation-error")]),
263
+ 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("unexpected-package"), z.literal("operation-error")]),
259
264
  'diagnostic': z.string().optional(),
260
265
  'incompatible': z.array(z.object({
261
266
  'name': z.string(),
@@ -270,7 +275,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema =
270
275
  'output': z.string(),
271
276
  'truncated': z.boolean(),
272
277
  'logPath': z.string(),
273
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
278
+ 'kind': z.union([z.literal("unknown"), z.literal("timeout"), z.literal("network"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
274
279
  'timedOut': z.boolean().optional().describe('The run outlived its bound: the manager terminated it after it printed nothing for its silence bound, or the GitHub connection check hit its deadline. Such a run reports no exit status of its own, so `exitCode` records the status its failure is read as rather than a status the process returned.'),
275
280
  'incompatible': z.array(z.object({
276
281
  'name': z.string(),
@@ -278,6 +283,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema =
278
283
  'runtimeVersion': z.string(),
279
284
  'requirements': z.record(z.string(), z.string()).describe('Only the requirements the running version does not satisfy, keyed `engines.dsh` or by DSH peer package name.'),
280
285
  })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
286
+ 'unmet': z.union([z.literal("not-bundle"), z.literal("unexpected-package")]).optional().describe('Present when an `expected` check refused the run: `unexpected-package` when the run left the expected package missing or at another version, or added or changed another direct dependency; otherwise `not-bundle` when the expected package declares no bundle. The output names what the run installed.'),
281
287
  }).optional(),
282
288
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
283
289
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
@@ -293,13 +299,13 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_1
293
299
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema$value
294
300
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema$value ??= z.object({
295
301
  'changed': z.boolean(),
296
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
302
+ 'application': z.union([z.literal("failed"), z.literal("cancelled"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
297
303
  'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
298
304
  'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
299
305
  'target': z.string(),
300
306
  'enabled': z.boolean().optional(),
301
307
  'error': z.object({
302
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("operation-error")]),
308
+ 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("unexpected-package"), z.literal("operation-error")]),
303
309
  'diagnostic': z.string().optional(),
304
310
  'incompatible': z.array(z.object({
305
311
  'name': z.string(),
@@ -314,7 +320,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$sche
314
320
  'output': z.string(),
315
321
  'truncated': z.boolean(),
316
322
  'logPath': z.string(),
317
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
323
+ 'kind': z.union([z.literal("unknown"), z.literal("timeout"), z.literal("network"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
318
324
  'timedOut': z.boolean().optional().describe('The run outlived its bound: the manager terminated it after it printed nothing for its silence bound, or the GitHub connection check hit its deadline. Such a run reports no exit status of its own, so `exitCode` records the status its failure is read as rather than a status the process returned.'),
319
325
  'incompatible': z.array(z.object({
320
326
  'name': z.string(),
@@ -322,6 +328,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$sche
322
328
  'runtimeVersion': z.string(),
323
329
  'requirements': z.record(z.string(), z.string()).describe('Only the requirements the running version does not satisfy, keyed `engines.dsh` or by DSH peer package name.'),
324
330
  })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
331
+ 'unmet': z.union([z.literal("not-bundle"), z.literal("unexpected-package")]).optional().describe('Present when an `expected` check refused the run: `unexpected-package` when the run left the expected package missing or at another version, or added or changed another direct dependency; otherwise `not-bundle` when the expected package declares no bundle. The output names what the run installed.'),
325
332
  }).optional(),
326
333
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
327
334
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
@@ -337,13 +344,13 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1
337
344
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema$value
338
345
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema$value ??= z.object({
339
346
  'changed': z.boolean(),
340
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
347
+ 'application': z.union([z.literal("failed"), z.literal("cancelled"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
341
348
  'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
342
349
  'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
343
350
  'target': z.string(),
344
351
  'enabled': z.boolean().optional(),
345
352
  'error': z.object({
346
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("operation-error")]),
353
+ 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("unexpected-package"), z.literal("operation-error")]),
347
354
  'diagnostic': z.string().optional(),
348
355
  'incompatible': z.array(z.object({
349
356
  'name': z.string(),
@@ -358,7 +365,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$sche
358
365
  'output': z.string(),
359
366
  'truncated': z.boolean(),
360
367
  'logPath': z.string(),
361
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
368
+ 'kind': z.union([z.literal("unknown"), z.literal("timeout"), z.literal("network"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
362
369
  'timedOut': z.boolean().optional().describe('The run outlived its bound: the manager terminated it after it printed nothing for its silence bound, or the GitHub connection check hit its deadline. Such a run reports no exit status of its own, so `exitCode` records the status its failure is read as rather than a status the process returned.'),
363
370
  'incompatible': z.array(z.object({
364
371
  'name': z.string(),
@@ -366,6 +373,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$sche
366
373
  'runtimeVersion': z.string(),
367
374
  'requirements': z.record(z.string(), z.string()).describe('Only the requirements the running version does not satisfy, keyed `engines.dsh` or by DSH peer package name.'),
368
375
  })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
376
+ 'unmet': z.union([z.literal("not-bundle"), z.literal("unexpected-package")]).optional().describe('Present when an `expected` check refused the run: `unexpected-package` when the run left the expected package missing or at another version, or added or changed another direct dependency; otherwise `not-bundle` when the expected package declares no bundle. The output names what the run installed.'),
369
377
  }).optional(),
370
378
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
371
379
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
@@ -385,13 +393,13 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_paramete
385
393
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$schema$value
386
394
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$schema$value ??= z.object({
387
395
  'changed': z.boolean(),
388
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
396
+ 'application': z.union([z.literal("failed"), z.literal("cancelled"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
389
397
  'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
390
398
  'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
391
399
  'target': z.string(),
392
400
  'enabled': z.boolean().optional(),
393
401
  'error': z.object({
394
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("operation-error")]),
402
+ 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("unexpected-package"), z.literal("operation-error")]),
395
403
  'diagnostic': z.string().optional(),
396
404
  'incompatible': z.array(z.object({
397
405
  'name': z.string(),
@@ -406,7 +414,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$s
406
414
  'output': z.string(),
407
415
  'truncated': z.boolean(),
408
416
  'logPath': z.string(),
409
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
417
+ 'kind': z.union([z.literal("unknown"), z.literal("timeout"), z.literal("network"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
410
418
  'timedOut': z.boolean().optional().describe('The run outlived its bound: the manager terminated it after it printed nothing for its silence bound, or the GitHub connection check hit its deadline. Such a run reports no exit status of its own, so `exitCode` records the status its failure is read as rather than a status the process returned.'),
411
419
  'incompatible': z.array(z.object({
412
420
  'name': z.string(),
@@ -414,6 +422,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$s
414
422
  'runtimeVersion': z.string(),
415
423
  'requirements': z.record(z.string(), z.string()).describe('Only the requirements the running version does not satisfy, keyed `engines.dsh` or by DSH peer package name.'),
416
424
  })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
425
+ 'unmet': z.union([z.literal("not-bundle"), z.literal("unexpected-package")]).optional().describe('Present when an `expected` check refused the run: `unexpected-package` when the run left the expected package missing or at another version, or added or changed another direct dependency; otherwise `not-bundle` when the expected package declares no bundle. The output names what the run installed.'),
417
426
  }).optional(),
418
427
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
419
428
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
@@ -429,6 +438,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_1$sch
429
438
  let _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_2$schema$value
430
439
  const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_2$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_2$schema$value ??= z.union([z.undefined(), z.object({
431
440
  'registry': z.union([z.literal(null), z.string()]).readonly().optional().describe('The registry asked first, normally the one that answered `listVersions`; absent, as for `listVersions`.'),
441
+ 'spec': z.string().readonly().optional().describe('The Git spec of the target version: required for a bundle listed with `update: \'git\'`, where it must pin a full commit of the installed copy\'s repository directory, and refused for any other.'),
432
442
  'requestId': z.string().readonly().optional().describe('Names the update\'s progress and the target installation\'s logs; `cancelInstall` stops only that installation.'),
433
443
  })]))
434
444
  let _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_result$schema$value
@@ -438,13 +448,13 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_result$schema =
438
448
  'step': z.union([z.literal("remove"), z.literal("check"), z.literal("install")]).readonly(),
439
449
  'result': z.object({
440
450
  'changed': z.boolean(),
441
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
451
+ 'application': z.union([z.literal("failed"), z.literal("cancelled"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
442
452
  'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
443
453
  'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
444
454
  'target': z.string(),
445
455
  'enabled': z.boolean().optional(),
446
456
  'error': z.object({
447
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("operation-error")]),
457
+ 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("unexpected-package"), z.literal("operation-error")]),
448
458
  'diagnostic': z.string().optional(),
449
459
  'incompatible': z.array(z.object({
450
460
  'name': z.string(),
@@ -459,7 +469,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_result$schema =
459
469
  'output': z.string(),
460
470
  'truncated': z.boolean(),
461
471
  'logPath': z.string(),
462
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
472
+ 'kind': z.union([z.literal("unknown"), z.literal("timeout"), z.literal("network"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
463
473
  'timedOut': z.boolean().optional().describe('The run outlived its bound: the manager terminated it after it printed nothing for its silence bound, or the GitHub connection check hit its deadline. Such a run reports no exit status of its own, so `exitCode` records the status its failure is read as rather than a status the process returned.'),
464
474
  'incompatible': z.array(z.object({
465
475
  'name': z.string(),
@@ -467,6 +477,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_result$schema =
467
477
  'runtimeVersion': z.string(),
468
478
  'requirements': z.record(z.string(), z.string()).describe('Only the requirements the running version does not satisfy, keyed `engines.dsh` or by DSH peer package name.'),
469
479
  })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
480
+ 'unmet': z.union([z.literal("not-bundle"), z.literal("unexpected-package")]).optional().describe('Present when an `expected` check refused the run: `unexpected-package` when the run left the expected package missing or at another version, or added or changed another direct dependency; otherwise `not-bundle` when the expected package declares no bundle. The output names what the run installed.'),
470
481
  }).optional(),
471
482
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
472
483
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
@@ -477,13 +488,13 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_result$schema =
477
488
  }).readonly(),
478
489
  'restore': z.object({
479
490
  'changed': z.boolean(),
480
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
491
+ 'application': z.union([z.literal("failed"), z.literal("cancelled"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
481
492
  'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
482
493
  'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
483
494
  'target': z.string(),
484
495
  'enabled': z.boolean().optional(),
485
496
  'error': z.object({
486
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("operation-error")]),
497
+ 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("unexpected-package"), z.literal("operation-error")]),
487
498
  'diagnostic': z.string().optional(),
488
499
  'incompatible': z.array(z.object({
489
500
  'name': z.string(),
@@ -498,7 +509,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_result$schema =
498
509
  'output': z.string(),
499
510
  'truncated': z.boolean(),
500
511
  'logPath': z.string(),
501
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
512
+ 'kind': z.union([z.literal("unknown"), z.literal("timeout"), z.literal("network"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
502
513
  'timedOut': z.boolean().optional().describe('The run outlived its bound: the manager terminated it after it printed nothing for its silence bound, or the GitHub connection check hit its deadline. Such a run reports no exit status of its own, so `exitCode` records the status its failure is read as rather than a status the process returned.'),
503
514
  'incompatible': z.array(z.object({
504
515
  'name': z.string(),
@@ -506,6 +517,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_result$schema =
506
517
  'runtimeVersion': z.string(),
507
518
  'requirements': z.record(z.string(), z.string()).describe('Only the requirements the running version does not satisfy, keyed `engines.dsh` or by DSH peer package name.'),
508
519
  })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
520
+ 'unmet': z.union([z.literal("not-bundle"), z.literal("unexpected-package")]).optional().describe('Present when an `expected` check refused the run: `unexpected-package` when the run left the expected package missing or at another version, or added or changed another direct dependency; otherwise `not-bundle` when the expected package declares no bundle. The output names what the run installed.'),
509
521
  }).optional(),
510
522
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
511
523
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
@@ -520,13 +532,13 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$s
520
532
  let _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema$value
521
533
  const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema$value ??= z.union([z.literal(null), z.object({
522
534
  'changed': z.boolean(),
523
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
535
+ 'application': z.union([z.literal("failed"), z.literal("cancelled"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]).describe('`cancelled` is an installation the caller stopped, its files restored.'),
524
536
  'restartReason': z.union([z.literal("no-hmr"), z.literal("package-moved"), z.literal("host-module"), z.literal("unmanaged-plugin"), z.literal("module-comparison")]).optional().describe('Present with `restart-required`: why the change takes effect only at the next start.'),
525
537
  'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
526
538
  'target': z.string(),
527
539
  'enabled': z.boolean().optional(),
528
540
  'error': z.object({
529
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("operation-error")]),
541
+ 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), z.literal("already-installed"), z.literal("ambiguous-install"), z.literal("not-bundle"), z.literal("not-removable"), z.literal("stop-profile"), z.literal("bundle-in-use"), z.literal("stale-approval"), z.literal("incompatible-version"), z.literal("unsupported-platform"), z.literal("unexpected-package"), z.literal("operation-error")]),
530
542
  'diagnostic': z.string().optional(),
531
543
  'incompatible': z.array(z.object({
532
544
  'name': z.string(),
@@ -541,7 +553,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema
541
553
  'output': z.string(),
542
554
  'truncated': z.boolean(),
543
555
  'logPath': z.string(),
544
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
556
+ 'kind': z.union([z.literal("unknown"), z.literal("timeout"), z.literal("network"), z.literal("integrity"), z.literal("not-found"), z.literal("pnpm-missing"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked")]).optional().describe('Present when the run failed: what kind of failure its exit and output describe.'),
545
557
  'timedOut': z.boolean().optional().describe('The run outlived its bound: the manager terminated it after it printed nothing for its silence bound, or the GitHub connection check hit its deadline. Such a run reports no exit status of its own, so `exitCode` records the status its failure is read as rather than a status the process returned.'),
546
558
  'incompatible': z.array(z.object({
547
559
  'name': z.string(),
@@ -549,6 +561,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema
549
561
  'runtimeVersion': z.string(),
550
562
  'requirements': z.record(z.string(), z.string()).describe('Only the requirements the running version does not satisfy, keyed `engines.dsh` or by DSH peer package name.'),
551
563
  })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
564
+ 'unmet': z.union([z.literal("not-bundle"), z.literal("unexpected-package")]).optional().describe('Present when an `expected` check refused the run: `unexpected-package` when the run left the expected package missing or at another version, or added or changed another direct dependency; otherwise `not-bundle` when the expected package declares no bundle. The output names what the run installed.'),
552
565
  }).optional(),
553
566
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
554
567
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
@@ -574,6 +587,10 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1_st
574
587
  'requestId': z.string().optional(),
575
588
  'approvedBuilds': z.array(z.string()).optional().describe('Explicitly allow these pending packages\' scripts for this profile, then install; a name no longer pending refuses the call.'),
576
589
  'registry': z.union([z.literal(null), z.string()]).optional().describe('The registry asked first; absent, the configured one. The configured fallbacks follow while a registry is unreachable or stale.'),
590
+ 'expected': z.strictObject({
591
+ 'name': z.string().readonly(),
592
+ 'version': z.string().readonly(),
593
+ }).optional().describe('The package and manifest version the spec must install. An installation that leaves this package missing or at another version, or that adds or changes another direct dependency, is undone with its profile files and modules before its bundle loads, and fails with `unexpected-package`; one whose package declares no bundle is undone the same way and fails with `not-bundle`, and one whose bundle patches cannot load fails as an operation error.'),
577
594
  })]))
578
595
  let _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_0_strict$schema$value
579
596
  const _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_0_strict$schema$value ??= z.string())
@@ -614,6 +631,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_1_str
614
631
  let _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_2_strict$schema$value
615
632
  const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_2_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_2_strict$schema$value ??= z.union([z.undefined(), z.strictObject({
616
633
  'registry': z.union([z.literal(null), z.string()]).readonly().optional().describe('The registry asked first, normally the one that answered `listVersions`; absent, as for `listVersions`.'),
634
+ 'spec': z.string().readonly().optional().describe('The Git spec of the target version: required for a bundle listed with `update: \'git\'`, where it must pin a full commit of the installed copy\'s repository directory, and refused for any other.'),
617
635
  'requestId': z.string().readonly().optional().describe('Names the update\'s progress and the target installation\'s logs; `cancelInstall` stops only that installation.'),
618
636
  })]))
619
637
  let _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0_strict$schema$value
@@ -650,9 +668,9 @@ const $remote = createTypertRemoteInfo({
650
668
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginInstallCancellation',
651
669
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_result$schema,
652
670
  description: '`cancelled` once the Git check or pnpm exited and the files are restored, `too-late` once the bundle is being applied, `not-running` for any other id.',
653
- jsonSchema: {"type":"object","properties":{"status":{"type":"string","enum":["cancelled","not-running","too-late"]}},"required":["status"],"additionalProperties":true},
671
+ jsonSchema: {"type":"object","properties":{"status":{"type":"string","enum":["not-running","cancelled","too-late"]}},"required":["status"],"additionalProperties":true},
654
672
  },
655
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":1030,"column":9},
673
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":1131,"column":9},
656
674
  },
657
675
  'pluginManager/inspect': {
658
676
  service: 'pluginManager',
@@ -701,9 +719,9 @@ const $remote = createTypertRemoteInfo({
701
719
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginSpecInspection',
702
720
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema,
703
721
  description: 'The package the spec names, or why it is refused.',
704
- jsonSchema: {"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"accepted"},"kind":{"type":"string","enum":["registry","path","git","tarball"]},"name":{"type":"string"},"version":{"type":"string"},"description":{"type":"string","description":"`description` of the package manifest."},"bundle":{"oneOf":[{"type":"null","const":null},{"type":"boolean","enum":[false,true]}],"description":"Whether the package declares a bundle patch; null when the spec's form does not say."},"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry that answered for a name, and for the other forms the one an install of the spec asks first."},"host":{"type":"string","description":"The host a git spec or a tarball URL is fetched from, which no registry stands in for."}},"required":["status","kind","bundle","registry"],"additionalProperties":true},{"type":"object","properties":{"status":{"type":"string","const":"refused"},"problem":{"type":"string","enum":["network","unknown","not-found","invalid-spec","already-installed","not-a-package","not-a-bundle"]},"reason":{"type":"string","description":"What pnpm, the registry, or the file system said."},"registries":{"type":"array","items":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"description":"The registries asked, in order, when the refusal came from asking them; `reason` is the last one's."}},"required":["status","problem","reason"],"additionalProperties":true}]},
722
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"accepted"},"kind":{"type":"string","enum":["registry","git","path","tarball"]},"name":{"type":"string"},"version":{"type":"string"},"description":{"type":"string","description":"`description` of the package manifest."},"bundle":{"oneOf":[{"type":"null","const":null},{"type":"boolean","enum":[false,true]}],"description":"Whether the package declares a bundle patch; null when the spec's form does not say."},"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry that answered for a name, and for the other forms the one an install of the spec asks first."},"host":{"type":"string","description":"The host a git spec or a tarball URL is fetched from, which no registry stands in for."}},"required":["status","kind","bundle","registry"],"additionalProperties":true},{"type":"object","properties":{"status":{"type":"string","const":"refused"},"problem":{"type":"string","enum":["unknown","network","not-found","invalid-spec","already-installed","not-a-package","not-a-bundle"]},"reason":{"type":"string","description":"What pnpm, the registry, or the file system said."},"registries":{"type":"array","items":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"description":"The registries asked, in order, when the refusal came from asking them; `reason` is the last one's."}},"required":["status","problem","reason"],"additionalProperties":true}]},
705
723
  },
706
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":603,"column":9},
724
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":620,"column":9},
707
725
  },
708
726
  'pluginManager/installBundle': {
709
727
  service: 'pluginManager',
@@ -736,13 +754,13 @@ const $remote = createTypertRemoteInfo({
736
754
  mode: 'strict',
737
755
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#InstallBundleOptions',
738
756
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1$schema,
739
- jsonSchema: {"type":"object","properties":{"enabled":{"type":"boolean"},"saveExact":{"type":"boolean","description":"Save the resolved dependency version without a range; applies to any bundle installation."},"requestId":{"type":"string"},"approvedBuilds":{"type":"array","items":{"type":"string"},"description":"Explicitly allow these pending packages' scripts for this profile, then install; a name no longer pending refuses the call."},"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry asked first; absent, the configured one. The configured fallbacks follow while a registry is unreachable or stale."}},"required":[],"additionalProperties":true},
757
+ jsonSchema: {"type":"object","properties":{"enabled":{"type":"boolean"},"saveExact":{"type":"boolean","description":"Save the resolved dependency version without a range; applies to any bundle installation."},"requestId":{"type":"string"},"approvedBuilds":{"type":"array","items":{"type":"string"},"description":"Explicitly allow these pending packages' scripts for this profile, then install; a name no longer pending refuses the call."},"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry asked first; absent, the configured one. The configured fallbacks follow while a registry is unreachable or stale."},"expected":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"}},"required":["name","version"],"additionalProperties":true,"description":"The package and manifest version the spec must install. An installation that leaves this package missing or at another version, or that adds or changes another direct dependency, is undone with its profile files and modules before its bundle loads, and fails with `unexpected-package`; one whose package declares no bundle is undone the same way and fails with `not-bundle`, and one whose bundle patches cannot load fails as an operation error."}},"required":[],"additionalProperties":true},
740
758
  },
741
759
  strictCodec: {
742
760
  mode: 'strict',
743
761
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#InstallBundleOptions',
744
762
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1_strict$schema,
745
- jsonSchema: {"type":"object","properties":{"enabled":{"type":"boolean"},"saveExact":{"type":"boolean","description":"Save the resolved dependency version without a range; applies to any bundle installation."},"requestId":{"type":"string"},"approvedBuilds":{"type":"array","items":{"type":"string"},"description":"Explicitly allow these pending packages' scripts for this profile, then install; a name no longer pending refuses the call."},"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry asked first; absent, the configured one. The configured fallbacks follow while a registry is unreachable or stale."}},"required":[],"additionalProperties":false},
763
+ jsonSchema: {"type":"object","properties":{"enabled":{"type":"boolean"},"saveExact":{"type":"boolean","description":"Save the resolved dependency version without a range; applies to any bundle installation."},"requestId":{"type":"string"},"approvedBuilds":{"type":"array","items":{"type":"string"},"description":"Explicitly allow these pending packages' scripts for this profile, then install; a name no longer pending refuses the call."},"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry asked first; absent, the configured one. The configured fallbacks follow while a registry is unreachable or stale."},"expected":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"}},"required":["name","version"],"additionalProperties":false,"description":"The package and manifest version the spec must install. An installation that leaves this package missing or at another version, or that adds or changes another direct dependency, is undone with its profile files and modules before its bundle loads, and fails with `unexpected-package`; one whose package declares no bundle is undone the same way and fails with `not-bundle`, and one whose bundle patches cannot load fails as an operation error."}},"required":[],"additionalProperties":false},
746
764
  },
747
765
  },
748
766
  ],
@@ -753,7 +771,7 @@ const $remote = createTypertRemoteInfo({
753
771
  description: 'Package-manager diagnostics, the registries asked, and the observed activation outcome.',
754
772
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
755
773
  },
756
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":873,"column":3},
774
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":969,"column":3},
757
775
  },
758
776
  'pluginManager/listBundles': {
759
777
  service: 'pluginManager',
@@ -768,7 +786,7 @@ const $remote = createTypertRemoteInfo({
768
786
  description: 'Package versions, manifest descriptions, the installable spec of profile dependencies, rows, optional display metadata, activation selections, whether the installation offers the bundle, and removal availability.',
769
787
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
770
788
  },
771
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":489,"column":3},
789
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":500,"column":3},
772
790
  },
773
791
  'pluginManager/listPlugins': {
774
792
  service: 'pluginManager',
@@ -783,7 +801,7 @@ const $remote = createTypertRemoteInfo({
783
801
  description: 'Current runtime entries with persistent patch targets.',
784
802
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
785
803
  },
786
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":465,"column":9},
804
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":476,"column":9},
787
805
  },
788
806
  'pluginManager/listVersionExemptions': {
789
807
  service: 'pluginManager',
@@ -798,7 +816,7 @@ const $remote = createTypertRemoteInfo({
798
816
  description: 'Accepted package-name@version keys with the runtime versions they may run on, and any record or file problem the reader rejected, which the caller reports instead of failing.',
799
817
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
800
818
  },
801
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":441,"column":3},
819
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":452,"column":3},
802
820
  },
803
821
  'pluginManager/listVersions': {
804
822
  service: 'pluginManager',
@@ -849,7 +867,7 @@ const $remote = createTypertRemoteInfo({
849
867
  description: 'At most `versionListLimit` newer versions, newest first, with their tags, deprecation, bundle declaration, and DSH compatibility, and the registry that answered; or why no list could be read, with every registry asked.',
850
868
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
851
869
  },
852
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":663,"column":9},
870
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":680,"column":9},
853
871
  },
854
872
  'pluginManager/readBundleDetail': {
855
873
  service: 'pluginManager',
@@ -916,7 +934,7 @@ const $remote = createTypertRemoteInfo({
916
934
  description: 'the document with its origin and path, or `none`.',
917
935
  jsonSchema: {"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"found"},"origin":{"type":"string","enum":["locale","readme"],"description":"`locale` for the file locale `meta.detail` names, `readme` for the package's README."},"path":{"type":"string","description":"`/`-separated path of the document inside the package."},"markdown":{"type":"string","description":"Markdown text without a byte order mark or a leading YAML front matter block."}},"required":["status","origin","path","markdown"],"additionalProperties":true},{"type":"object","properties":{"status":{"type":"string","const":"none"}},"required":["status"],"additionalProperties":true}]},
918
936
  },
919
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":405,"column":9},
937
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":416,"column":9},
920
938
  },
921
939
  'pluginManager/registries': {
922
940
  service: 'pluginManager',
@@ -931,7 +949,7 @@ const $remote = createTypertRemoteInfo({
931
949
  description: 'The registries in pnpm\'s comparison form; null is the one pnpm\'s own configuration names, `resolved` as pnpm reads it now.',
932
950
  jsonSchema: {"type":"object","properties":{"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}]},"fallbackRegistries":{"type":"array","items":{"type":"string"}},"resolved":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The URL pnpm's own configuration names in the profile, read from pnpm; null when it could not be read."}},"required":["registry","fallbackRegistries","resolved"],"additionalProperties":true},
933
951
  },
934
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":587,"column":9},
952
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":604,"column":9},
935
953
  },
936
954
  'pluginManager/removeBundle': {
937
955
  service: 'pluginManager',
@@ -963,7 +981,7 @@ const $remote = createTypertRemoteInfo({
963
981
  description: 'Removal diagnostics and the remaining profile state.',
964
982
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
965
983
  },
966
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":1047,"column":3},
984
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":1148,"column":3},
967
985
  },
968
986
  'pluginManager/setBundleEnabled': {
969
987
  service: 'pluginManager',
@@ -1012,7 +1030,7 @@ const $remote = createTypertRemoteInfo({
1012
1030
  description: 'Persisted and runtime outcomes.',
1013
1031
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
1014
1032
  },
1015
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":851,"column":3},
1033
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":947,"column":3},
1016
1034
  },
1017
1035
  'pluginManager/setPluginEnabled': {
1018
1036
  service: 'pluginManager',
@@ -1061,7 +1079,7 @@ const $remote = createTypertRemoteInfo({
1061
1079
  description: 'Saved and runtime outcomes, including higher-priority overrides.',
1062
1080
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
1063
1081
  },
1064
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":833,"column":3},
1082
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":929,"column":3},
1065
1083
  },
1066
1084
  'pluginManager/setVersionExemption': {
1067
1085
  service: 'pluginManager',
@@ -1145,11 +1163,11 @@ const $remote = createTypertRemoteInfo({
1145
1163
  description: 'Saved and runtime outcomes. Startup-only profiles require restart.',
1146
1164
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
1147
1165
  },
1148
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":454,"column":3},
1166
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":465,"column":3},
1149
1167
  },
1150
1168
  'pluginManager/updateBundle': {
1151
1169
  service: 'pluginManager',
1152
- description: 'Replace an installed registry bundle with a newer published version. The target is checked on the registry first: it must exist, declare a bundle, and accept the running DSH version, or nothing changes. With HMR the installed version is removed, so its plugins stop, and the target is installed with the same selection; when that installation fails or is cancelled, the removed version is installed again from the registry it came from. Without HMR the target is installed over the running version and the result reports the restart.',
1170
+ description: 'Replace an installed bundle with a newer version. A registry copy updates to `name@version`, checked on the registry first: it must exist, declare a bundle, and accept the running DSH version, or nothing changes. A Git copy updates to the Git spec `options.spec` names, which must pin a full commit of the repository directory the copy came from; with HMR, a network failure or timeout reaching its repository stops the update before anything changes. pnpm reads a Git package only while installing it, so its bundle and compatibility are checked then. Either target installation is undone, profile files and modules included, before its bundle loads unless it installs `name` at `version`. With HMR the installed version is removed, so its plugins stop, and the target is installed with the same selection; when that installation fails or is cancelled, the removed version is installed again: a registry copy from the registry it came from, a Git copy from its saved spec. Without HMR the target is installed over the running version and the result reports the restart.',
1153
1171
  invocation: { kind: 'direct' },
1154
1172
  parameters: [
1155
1173
  {
@@ -1171,7 +1189,7 @@ const $remote = createTypertRemoteInfo({
1171
1189
  },
1172
1190
  {
1173
1191
  name: 'version',
1174
- description: 'Exact published version newer than the installed one.',
1192
+ description: 'Exact version newer than the installed one.',
1175
1193
  source: 'json',
1176
1194
  codec: {
1177
1195
  mode: 'strict',
@@ -1188,20 +1206,20 @@ const $remote = createTypertRemoteInfo({
1188
1206
  },
1189
1207
  {
1190
1208
  name: 'options',
1191
- description: 'The registry asked first, as for `listVersions`, and the request id naming the progress and the target installation\'s logs and cancellation.',
1209
+ description: 'The registry asked first, as for `listVersions`; the Git spec of `version`, required for and accepted only by a bundle `listBundles` lists with `update: \'git\'`; and the request id naming the progress and the target installation\'s logs and cancellation.',
1192
1210
  source: 'json',
1193
1211
  acceptsUndefined: true,
1194
1212
  codec: {
1195
1213
  mode: 'strict',
1196
1214
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#UpdateBundleOptions',
1197
1215
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_2$schema,
1198
- jsonSchema: {"type":"object","properties":{"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry asked first, normally the one that answered `listVersions`; absent, as for `listVersions`."},"requestId":{"type":"string","description":"Names the update's progress and the target installation's logs; `cancelInstall` stops only that installation."}},"required":[],"additionalProperties":true},
1216
+ jsonSchema: {"type":"object","properties":{"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry asked first, normally the one that answered `listVersions`; absent, as for `listVersions`."},"spec":{"type":"string","description":"The Git spec of the target version: required for a bundle listed with `update: 'git'`, where it must pin a full commit of the installed copy's repository directory, and refused for any other."},"requestId":{"type":"string","description":"Names the update's progress and the target installation's logs; `cancelInstall` stops only that installation."}},"required":[],"additionalProperties":true},
1199
1217
  },
1200
1218
  strictCodec: {
1201
1219
  mode: 'strict',
1202
1220
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#UpdateBundleOptions',
1203
1221
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_2_strict$schema,
1204
- jsonSchema: {"type":"object","properties":{"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry asked first, normally the one that answered `listVersions`; absent, as for `listVersions`."},"requestId":{"type":"string","description":"Names the update's progress and the target installation's logs; `cancelInstall` stops only that installation."}},"required":[],"additionalProperties":false},
1222
+ jsonSchema: {"type":"object","properties":{"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry asked first, normally the one that answered `listVersions`; absent, as for `listVersions`."},"spec":{"type":"string","description":"The Git spec of the target version: required for a bundle listed with `update: 'git'`, where it must pin a full commit of the installed copy's repository directory, and refused for any other."},"requestId":{"type":"string","description":"Names the update's progress and the target installation's logs; `cancelInstall` stops only that installation."}},"required":[],"additionalProperties":false},
1205
1223
  },
1206
1224
  },
1207
1225
  ],
@@ -1212,7 +1230,7 @@ const $remote = createTypertRemoteInfo({
1212
1230
  description: 'The versions, the last step that ran with its result, and the reinstallation when one ran.',
1213
1231
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
1214
1232
  },
1215
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":714,"column":9},
1233
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":738,"column":9},
1216
1234
  },
1217
1235
  'pluginManager/waitForInstall': {
1218
1236
  service: 'pluginManager',
@@ -1244,7 +1262,7 @@ const $remote = createTypertRemoteInfo({
1244
1262
  description: 'The installation\'s outcome after it settles, or null if no active request has that id. Completed results are not retained; null establishes neither success nor cancellation.',
1245
1263
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
1246
1264
  },
1247
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":1020,"column":9},
1265
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":1121,"column":9},
1248
1266
  },
1249
1267
  },
1250
1268
  }, z)
@@ -1325,8 +1343,8 @@ export const TYPERT = {
1325
1343
  "kind": "method",
1326
1344
  "name": "updateBundle",
1327
1345
  "signature": "@Remote async updateBundle(name: string, version: string, options?: UpdateBundleOptions): Promise<PluginUpdateResult>",
1328
- "summary": "Replace an installed registry bundle with a newer published version.",
1329
- "jsDoc": "/**\n * Replace an installed registry bundle with a newer published version. The target is checked on the registry first:\n * it must exist, declare a bundle, and accept the running DSH version, or nothing changes. With HMR the installed\n * version is removed, so its plugins stop, and the target is installed with the same selection; when that\n * installation fails or is cancelled, the removed version is installed again from the registry it came from.\n * Without HMR the target is installed over the running version and the result reports the restart.\n * @param name Installed profile dependency name.\n * @param version Exact published version newer than the installed one.\n * @param options The registry asked first, as for `listVersions`, and the request id naming the progress and the\n * target installation's logs and cancellation.\n * @returns The versions, the last step that ran with its result, and the reinstallation when one ran.\n */"
1346
+ "summary": "Replace an installed bundle with a newer version.",
1347
+ "jsDoc": "/**\n * Replace an installed bundle with a newer version. A registry copy updates to `name@version`, checked on the registry\n * first: it must exist, declare a bundle, and accept the running DSH version, or nothing changes. A Git copy updates\n * to the Git spec `options.spec` names, which must pin a full commit of the repository directory the copy came from;\n * with HMR, a network failure or timeout reaching its repository stops the update before anything changes. pnpm reads\n * a Git package only while installing it, so its bundle and compatibility are checked then. Either target\n * installation is undone, profile files and modules included, before its bundle loads unless it installs `name` at\n * `version`. With HMR the installed version is removed, so its plugins stop, and the target is installed with the same\n * selection; when that installation fails or is cancelled, the removed version is installed again: a registry copy\n * from the registry it came from, a Git copy from its saved spec. Without HMR the target is installed over the running\n * version and the result reports the restart.\n * @param name Installed profile dependency name.\n * @param version Exact version newer than the installed one.\n * @param options The registry asked first, as for `listVersions`; the Git spec of `version`, required for and accepted\n * only by a bundle `listBundles` lists with `update: 'git'`; and the request id naming the progress and the target\n * installation's logs and cancellation.\n * @returns The versions, the last step that ran with its result, and the reinstallation when one ran.\n */"
1330
1348
  },
1331
1349
  {
1332
1350
  "kind": "method",
@@ -1382,7 +1400,7 @@ export const TYPERT = {
1382
1400
  },
1383
1401
  {
1384
1402
  "name": "BundleInfo",
1385
- "declaration": "export interface BundleInfo {\n name: string;\n official: boolean;\n availability: 'installation' | 'profile' | 'missing';\n installTarget?: { spec: string; version: string; };\n version?: string;\n meta?: PluginLocalizedMeta;\n description?: string;\n listedByDefault?: boolean;\n enabled: boolean;\n installed: boolean;\n source?: string;\n optional: boolean;\n removable: boolean;\n updatable: boolean;\n readOnlyReason?: ReadOnlyReason;\n error?: ManagementError;\n rows: BundleRowInfo[];\n overrides: string[];\n}"
1403
+ "declaration": "export interface BundleInfo {\n name: string;\n official: boolean;\n availability: 'installation' | 'profile' | 'missing';\n installTarget?: { spec: string; version: string; };\n version?: string;\n meta?: PluginLocalizedMeta;\n description?: string;\n listedByDefault?: boolean;\n enabled: boolean;\n installed: boolean;\n source?: string;\n optional: boolean;\n removable: boolean;\n update?: 'registry' | 'git';\n readOnlyReason?: ReadOnlyReason;\n error?: ManagementError;\n rows: BundleRowInfo[];\n overrides: string[];\n}"
1386
1404
  },
1387
1405
  {
1388
1406
  "name": "BundleRowInfo",
@@ -1402,7 +1420,7 @@ export const TYPERT = {
1402
1420
  },
1403
1421
  {
1404
1422
  "name": "InstallBundleOptions",
1405
- "declaration": "export interface InstallBundleOptions {\n enabled?: boolean;\n saveExact?: boolean;\n requestId?: PluginInstallRequestId;\n approvedBuilds?: string[];\n registry?: Registry;\n}"
1423
+ "declaration": "export interface InstallBundleOptions {\n enabled?: boolean;\n saveExact?: boolean;\n requestId?: PluginInstallRequestId;\n approvedBuilds?: string[];\n registry?: Registry;\n expected?: { readonly name: string; readonly version: string; };\n}"
1406
1424
  },
1407
1425
  {
1408
1426
  "name": "InstallSpecKind",
@@ -1418,7 +1436,7 @@ export const TYPERT = {
1418
1436
  },
1419
1437
  {
1420
1438
  "name": "ManagementError",
1421
- "declaration": "export interface ManagementError {\n code: ReadOnlyReason | 'unknown-plugin' | 'invalid-spec' | 'already-installed' | 'ambiguous-install' | 'not-bundle' | 'not-removable' | 'stop-profile' | 'bundle-in-use' | 'stale-approval' | 'incompatible-version' | 'unsupported-platform' | 'operation-error';\n diagnostic?: string;\n incompatible?: IncompatiblePlugin[];\n}"
1439
+ "declaration": "export interface ManagementError {\n code: ReadOnlyReason | 'unknown-plugin' | 'invalid-spec' | 'already-installed' | 'ambiguous-install' | 'not-bundle' | 'not-removable' | 'stop-profile' | 'bundle-in-use' | 'stale-approval' | 'incompatible-version' | 'unsupported-platform' | 'unexpected-package' | 'operation-error';\n diagnostic?: string;\n incompatible?: IncompatiblePlugin[];\n}"
1422
1440
  },
1423
1441
  {
1424
1442
  "name": "NpmFileSource",
@@ -1426,7 +1444,7 @@ export const TYPERT = {
1426
1444
  },
1427
1445
  {
1428
1446
  "name": "PackageResult",
1429
- "declaration": "export interface PackageResult {\n exitCode: number;\n output: string;\n truncated: boolean;\n logPath: string;\n kind?: PluginInstallFailureKind;\n timedOut?: boolean;\n incompatible?: IncompatiblePlugin[];\n}"
1447
+ "declaration": "export interface PackageResult {\n exitCode: number;\n output: string;\n truncated: boolean;\n logPath: string;\n kind?: PluginInstallFailureKind;\n timedOut?: boolean;\n incompatible?: IncompatiblePlugin[];\n unmet?: 'unexpected-package' | 'not-bundle';\n}"
1430
1448
  },
1431
1449
  {
1432
1450
  "name": "PluginEntryId",
@@ -1502,7 +1520,7 @@ export const TYPERT = {
1502
1520
  },
1503
1521
  {
1504
1522
  "name": "UpdateBundleOptions",
1505
- "declaration": "export interface UpdateBundleOptions {\n readonly registry?: Registry;\n readonly requestId?: PluginInstallRequestId;\n}"
1523
+ "declaration": "export interface UpdateBundleOptions {\n readonly registry?: Registry;\n readonly spec?: string;\n readonly requestId?: PluginInstallRequestId;\n}"
1506
1524
  }
1507
1525
  ]
1508
1526
  }