@deepseek-ai/dsh-plugin-manager 0.2.1-rc.5 → 0.2.2-alpha.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 (41) hide show
  1. package/README.i18n.yaml +13 -10
  2. package/README.md +43 -8
  3. package/README.zh.md +43 -8
  4. package/lib/index.js +974 -139
  5. package/lib/typert.host.js +513 -55
  6. package/lib/typert.remote-client.d.ts +11 -1
  7. package/lib/typert.remote-client.js +411 -48
  8. package/lib/types/build-approval.d.ts +5 -5
  9. package/lib/types/build-approval.js +23 -10
  10. package/lib/types/bundle-detail.d.ts +40 -0
  11. package/lib/types/bundle-detail.js +85 -0
  12. package/lib/types/diagnostic.d.ts +17 -0
  13. package/lib/types/diagnostic.js +72 -0
  14. package/lib/types/git-transport.d.ts +27 -0
  15. package/lib/types/git-transport.js +65 -0
  16. package/lib/types/github-connection.d.ts +15 -3
  17. package/lib/types/github-connection.js +13 -3
  18. package/lib/types/index.d.ts +91 -2
  19. package/lib/types/index.js +530 -101
  20. package/lib/types/install-failure.js +1 -1
  21. package/lib/types/install-spec.d.ts +2 -0
  22. package/lib/types/install-spec.js +1 -1
  23. package/lib/types/operations.d.ts +5 -1
  24. package/lib/types/operations.js +31 -6
  25. package/lib/types/tools.js +5 -1
  26. package/lib/types/types.d.ts +169 -7
  27. package/lib/types/versions.d.ts +40 -0
  28. package/lib/types/versions.js +61 -0
  29. package/locale/de.json +6 -0
  30. package/locale/es.json +6 -0
  31. package/locale/fr.json +6 -0
  32. package/locale/ja.json +6 -0
  33. package/locale/pt.json +6 -0
  34. package/locale/ru.json +6 -0
  35. package/locale/tools/de.json +5 -0
  36. package/locale/tools/es.json +5 -0
  37. package/locale/tools/fr.json +5 -0
  38. package/locale/tools/ja.json +5 -0
  39. package/locale/tools/pt.json +5 -0
  40. package/locale/tools/ru.json +5 -0
  41. package/package.json +48 -34
@@ -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("invalid-spec"), z.literal("already-installed"), z.literal("not-found"), z.literal("not-a-package"), z.literal("not-a-bundle")]).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(),
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
  })]))
@@ -50,7 +50,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema
50
50
  'target': z.string(),
51
51
  'enabled': z.boolean().optional(),
52
52
  '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("operation-error")]),
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")]),
54
54
  'diagnostic': z.string().optional(),
55
55
  'incompatible': z.array(z.object({
56
56
  'name': z.string(),
@@ -61,12 +61,12 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema
61
61
  }).optional(),
62
62
  'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
63
63
  'packageResult': z.object({
64
- 'exitCode': z.number(),
64
+ 'exitCode': z.number().describe('The status the run is read as having ended with; a run the manager terminated records the coerced status 1.'),
65
65
  'output': z.string(),
66
66
  'truncated': z.boolean(),
67
67
  'logPath': z.string(),
68
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("pnpm-missing"), z.literal("not-found"), 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
- 'timedOut': z.boolean().optional().describe('The manager terminated the run after it printed nothing for its silence bound; `exitCode` still reports how it ended.'),
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.'),
69
+ '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
70
  'incompatible': z.array(z.object({
71
71
  'name': z.string(),
72
72
  'version': z.string(),
@@ -76,7 +76,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema
76
76
  }).optional(),
77
77
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
78
78
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
79
- 'pendingBuilds': z.array(z.string()).optional().describe('Exact package names awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
79
+ 'pendingBuilds': z.array(z.string()).optional().describe('Exact `allowBuilds` keys awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
80
80
  'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
81
81
  'registries': z.array(z.union([z.literal(null), z.string()])).optional().describe('The registries the installation asked, in order; `packageResult` is the last one\'s run.'),
82
82
  'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional().describe('What the last failed run could not reach or get an answer from: the registry it asked, or the host a git or tarball spec is fetched from, which no registry stands in for; absent for a failure neither explains.'),
@@ -102,14 +102,16 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema =
102
102
  'error': z.string().readonly().optional().describe('Unmodified local metadata diagnostic; the plugin remains manageable.'),
103
103
  }).optional().describe('Local display text with available translations or literal fallbacks, or a metadata diagnostic.'),
104
104
  'description': z.string().optional().describe('Untranslated `description` of this bundle\'s package manifest.'),
105
+ 'listedByDefault': z.boolean().optional().describe('Default GUI visibility after package and Host checks; selected or profile-installed bundles remain manageable.'),
105
106
  'enabled': z.boolean().describe('Selected in the profile manifest; a load error means its layer was skipped.'),
106
107
  'installed': z.boolean().describe('Whether the profile declares this dependency; availability separately reports whether its files can be read.'),
107
108
  '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.'),
108
109
  '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.'),
109
110
  '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.'),
110
112
  'readOnlyReason': z.union([z.literal("management-required"), z.literal("unaddressable")]).optional(),
111
113
  'error': z.object({
112
- '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("operation-error")]),
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")]),
113
115
  'diagnostic': z.string().optional(),
114
116
  'incompatible': z.array(z.object({
115
117
  'name': z.string(),
@@ -150,7 +152,8 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema =
150
152
  'error': z.string().readonly().optional().describe('Unmodified local metadata diagnostic; the plugin remains manageable.'),
151
153
  }).readonly().optional().describe('Local package display metadata, independent of whether the entry is enabled.'),
152
154
  'enabled': z.boolean().readonly().describe('Effective Loader enablement, including disabled ancestor groups.'),
153
- 'fiberPhase': z.union([z.literal(null), z.literal("failed"), z.literal("pending"), z.literal("active"), z.literal("loading"), z.literal("unloading")]).readonly(),
155
+ 'fiberPhase': z.union([z.literal(null), z.literal("failed"), z.literal("active"), z.literal("pending"), z.literal("loading"), z.literal("unloading")]).readonly(),
156
+ 'diagnostic': z.string().readonly().optional().describe('Current startup failure message; absent when this entry has no failed fiber.'),
154
157
  'patchId': z.string(),
155
158
  'readOnlyReason': z.never().optional(),
156
159
  }), z.object({
@@ -167,7 +170,8 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema =
167
170
  'error': z.string().readonly().optional().describe('Unmodified local metadata diagnostic; the plugin remains manageable.'),
168
171
  }).readonly().optional().describe('Local package display metadata, independent of whether the entry is enabled.'),
169
172
  'enabled': z.boolean().readonly().describe('Effective Loader enablement, including disabled ancestor groups.'),
170
- 'fiberPhase': z.union([z.literal(null), z.literal("failed"), z.literal("pending"), z.literal("active"), z.literal("loading"), z.literal("unloading")]).readonly(),
173
+ 'fiberPhase': z.union([z.literal(null), z.literal("failed"), z.literal("active"), z.literal("pending"), z.literal("loading"), z.literal("unloading")]).readonly(),
174
+ 'diagnostic': z.string().readonly().optional().describe('Current startup failure message; absent when this entry has no failed fiber.'),
171
175
  'patchId': z.never().optional(),
172
176
  'readOnlyReason': z.union([z.literal("management-required"), z.literal("unaddressable")]),
173
177
  })])))
@@ -176,6 +180,64 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_listVersionExemptions_result
176
180
  'exemptions': z.record(z.string(), z.array(z.string())),
177
181
  'warnings': z.array(z.string()),
178
182
  }))
183
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_0$schema$value
184
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_0$schema$value ??= z.string())
185
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_1$schema$value
186
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_1$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_1$schema$value ??= z.union([z.undefined(), z.object({
187
+ 'registry': z.union([z.literal(null), z.string()]).readonly().optional().describe('The registry asked first; absent, the one this process last installed the package from, else the configured one.'),
188
+ })]))
189
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_result$schema$value
190
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_result$schema$value ??= z.union([z.object({
191
+ 'status': z.literal("listed").readonly(),
192
+ 'installed': z.string().readonly().describe('The installed version the list is newer than.'),
193
+ 'registry': z.union([z.literal(null), z.string()]).readonly().describe('The registry that answered; an update installs from it.'),
194
+ 'attempts': z.array(z.object({
195
+ '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.'),
197
+ 'reason': z.string().readonly().optional().describe('What pnpm or the registry said, verbatim.'),
198
+ })).readonly(),
199
+ 'versions': z.array(z.object({
200
+ 'version': z.string().readonly(),
201
+ 'publishedAt': z.string().readonly().optional().describe('The registry\'s publication time, as an ISO 8601 string.'),
202
+ 'tags': z.array(z.string()).readonly().describe('The dist-tags pointing at this version, such as `latest`.'),
203
+ 'prerelease': z.boolean().readonly().describe('Whether the version carries a semver prerelease suffix.'),
204
+ 'deprecated': z.string().readonly().optional().describe('The registry\'s deprecation message, when the version is deprecated.'),
205
+ 'bundle': z.boolean().readonly().describe('Whether the version declares a `dsh.bundle`; a version that does not cannot replace a bundle.'),
206
+ 'incompatible': z.object({
207
+ 'name': z.string(),
208
+ 'version': z.string(),
209
+ 'runtimeVersion': z.string(),
210
+ '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.'),
211
+ }).readonly().optional().describe('Present when the version\'s `engines.dsh` or DSH peers reject the running DSH version without an exemption for the exact pair.'),
212
+ })).readonly().describe('Published versions newer than `installed`, newest first, at most `versionListLimit` of them.'),
213
+ 'omitted': z.number().readonly().describe('Newer versions beyond `versionListLimit` that the list leaves out.'),
214
+ }), z.object({
215
+ '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.'),
217
+ 'reason': z.string().readonly(),
218
+ 'attempts': z.array(z.object({
219
+ '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.'),
221
+ 'reason': z.string().readonly().optional().describe('What pnpm or the registry said, verbatim.'),
222
+ })).readonly().describe('The registries asked, in order; empty for `not-updatable`.'),
223
+ })]))
224
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_0$schema$value
225
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_0$schema$value ??= z.string())
226
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_1$schema$value
227
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_1$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_1$schema$value ??= z.string())
228
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_2$schema$value
229
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_2$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_2$schema$value ??= z.union([z.undefined(), z.object({
230
+ 'npmFileSources': z.array(z.union([z.literal("jsdelivr"), z.literal("unpkg"), z.literal("npmmirror")])).optional(),
231
+ })]))
232
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_result$schema$value
233
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_result$schema$value ??= z.union([z.object({
234
+ 'status': z.literal("found").readonly(),
235
+ 'origin': z.union([z.literal("locale"), z.literal("readme")]).readonly().describe('`locale` for the file locale `meta.detail` names, `readme` for the package\'s README.'),
236
+ 'path': z.string().readonly().describe('`/`-separated path of the document inside the package.'),
237
+ 'markdown': z.string().readonly().describe('Markdown text without a byte order mark or a leading YAML front matter block.'),
238
+ }), z.object({
239
+ 'status': z.literal("none").readonly(),
240
+ })]))
179
241
  let _deepseek_ai_dsh_plugin_manager_pluginManager_registries_result$schema$value
180
242
  const _deepseek_ai_dsh_plugin_manager_pluginManager_registries_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_registries_result$schema$value ??= z.object({
181
243
  'registry': z.union([z.literal(null), z.string()]).readonly(),
@@ -193,7 +255,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema =
193
255
  'target': z.string(),
194
256
  'enabled': z.boolean().optional(),
195
257
  'error': z.object({
196
- '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("operation-error")]),
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")]),
197
259
  'diagnostic': z.string().optional(),
198
260
  'incompatible': z.array(z.object({
199
261
  'name': z.string(),
@@ -204,12 +266,12 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema =
204
266
  }).optional(),
205
267
  'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
206
268
  'packageResult': z.object({
207
- 'exitCode': z.number(),
269
+ 'exitCode': z.number().describe('The status the run is read as having ended with; a run the manager terminated records the coerced status 1.'),
208
270
  'output': z.string(),
209
271
  'truncated': z.boolean(),
210
272
  'logPath': z.string(),
211
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("pnpm-missing"), z.literal("not-found"), 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.'),
212
- 'timedOut': z.boolean().optional().describe('The manager terminated the run after it printed nothing for its silence bound; `exitCode` still reports how it ended.'),
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.'),
274
+ '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.'),
213
275
  'incompatible': z.array(z.object({
214
276
  'name': z.string(),
215
277
  'version': z.string(),
@@ -219,7 +281,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema =
219
281
  }).optional(),
220
282
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
221
283
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
222
- 'pendingBuilds': z.array(z.string()).optional().describe('Exact package names awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
284
+ 'pendingBuilds': z.array(z.string()).optional().describe('Exact `allowBuilds` keys awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
223
285
  'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
224
286
  'registries': z.array(z.union([z.literal(null), z.string()])).optional().describe('The registries the installation asked, in order; `packageResult` is the last one\'s run.'),
225
287
  'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional().describe('What the last failed run could not reach or get an answer from: the registry it asked, or the host a git or tarball spec is fetched from, which no registry stands in for; absent for a failure neither explains.'),
@@ -237,7 +299,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$sche
237
299
  'target': z.string(),
238
300
  'enabled': z.boolean().optional(),
239
301
  'error': z.object({
240
- '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("operation-error")]),
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")]),
241
303
  'diagnostic': z.string().optional(),
242
304
  'incompatible': z.array(z.object({
243
305
  'name': z.string(),
@@ -248,12 +310,12 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$sche
248
310
  }).optional(),
249
311
  'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
250
312
  'packageResult': z.object({
251
- 'exitCode': z.number(),
313
+ 'exitCode': z.number().describe('The status the run is read as having ended with; a run the manager terminated records the coerced status 1.'),
252
314
  'output': z.string(),
253
315
  'truncated': z.boolean(),
254
316
  'logPath': z.string(),
255
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("pnpm-missing"), z.literal("not-found"), 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.'),
256
- 'timedOut': z.boolean().optional().describe('The manager terminated the run after it printed nothing for its silence bound; `exitCode` still reports how it ended.'),
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.'),
318
+ '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.'),
257
319
  'incompatible': z.array(z.object({
258
320
  'name': z.string(),
259
321
  'version': z.string(),
@@ -263,7 +325,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$sche
263
325
  }).optional(),
264
326
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
265
327
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
266
- 'pendingBuilds': z.array(z.string()).optional().describe('Exact package names awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
328
+ 'pendingBuilds': z.array(z.string()).optional().describe('Exact `allowBuilds` keys awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
267
329
  'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
268
330
  'registries': z.array(z.union([z.literal(null), z.string()])).optional().describe('The registries the installation asked, in order; `packageResult` is the last one\'s run.'),
269
331
  'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional().describe('What the last failed run could not reach or get an answer from: the registry it asked, or the host a git or tarball spec is fetched from, which no registry stands in for; absent for a failure neither explains.'),
@@ -281,7 +343,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$sche
281
343
  'target': z.string(),
282
344
  'enabled': z.boolean().optional(),
283
345
  'error': z.object({
284
- '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("operation-error")]),
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")]),
285
347
  'diagnostic': z.string().optional(),
286
348
  'incompatible': z.array(z.object({
287
349
  'name': z.string(),
@@ -292,12 +354,12 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$sche
292
354
  }).optional(),
293
355
  'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
294
356
  'packageResult': z.object({
295
- 'exitCode': z.number(),
357
+ 'exitCode': z.number().describe('The status the run is read as having ended with; a run the manager terminated records the coerced status 1.'),
296
358
  'output': z.string(),
297
359
  'truncated': z.boolean(),
298
360
  'logPath': z.string(),
299
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("pnpm-missing"), z.literal("not-found"), 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.'),
300
- 'timedOut': z.boolean().optional().describe('The manager terminated the run after it printed nothing for its silence bound; `exitCode` still reports how it ended.'),
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.'),
362
+ '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.'),
301
363
  'incompatible': z.array(z.object({
302
364
  'name': z.string(),
303
365
  'version': z.string(),
@@ -307,7 +369,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$sche
307
369
  }).optional(),
308
370
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
309
371
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
310
- 'pendingBuilds': z.array(z.string()).optional().describe('Exact package names awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
372
+ 'pendingBuilds': z.array(z.string()).optional().describe('Exact `allowBuilds` keys awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
311
373
  'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
312
374
  'registries': z.array(z.union([z.literal(null), z.string()])).optional().describe('The registries the installation asked, in order; `packageResult` is the last one\'s run.'),
313
375
  'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional().describe('What the last failed run could not reach or get an answer from: the registry it asked, or the host a git or tarball spec is fetched from, which no registry stands in for; absent for a failure neither explains.'),
@@ -329,7 +391,99 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$s
329
391
  'target': z.string(),
330
392
  'enabled': z.boolean().optional(),
331
393
  'error': z.object({
332
- '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("operation-error")]),
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")]),
395
+ 'diagnostic': z.string().optional(),
396
+ 'incompatible': z.array(z.object({
397
+ 'name': z.string(),
398
+ 'version': z.string(),
399
+ 'runtimeVersion': z.string(),
400
+ '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.'),
401
+ })).optional().describe('Present with `incompatible-version`: the packages the running DSH version rejects.'),
402
+ }).optional(),
403
+ 'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
404
+ 'packageResult': z.object({
405
+ 'exitCode': z.number().describe('The status the run is read as having ended with; a run the manager terminated records the coerced status 1.'),
406
+ 'output': z.string(),
407
+ 'truncated': z.boolean(),
408
+ '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.'),
410
+ '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
+ 'incompatible': z.array(z.object({
412
+ 'name': z.string(),
413
+ 'version': z.string(),
414
+ 'runtimeVersion': z.string(),
415
+ '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
+ })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
417
+ }).optional(),
418
+ 'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
419
+ 'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
420
+ 'pendingBuilds': z.array(z.string()).optional().describe('Exact `allowBuilds` keys awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
421
+ 'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
422
+ 'registries': z.array(z.union([z.literal(null), z.string()])).optional().describe('The registries the installation asked, in order; `packageResult` is the last one\'s run.'),
423
+ 'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional().describe('What the last failed run could not reach or get an answer from: the registry it asked, or the host a git or tarball spec is fetched from, which no registry stands in for; absent for a failure neither explains.'),
424
+ }))
425
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_0$schema$value
426
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_0$schema$value ??= z.string())
427
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_1$schema$value
428
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_1$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_1$schema$value ??= z.string())
429
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_2$schema$value
430
+ 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
+ '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`.'),
432
+ 'requestId': z.string().readonly().optional().describe('Names the update\'s progress and the target installation\'s logs; `cancelInstall` stops only that installation.'),
433
+ })]))
434
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_result$schema$value
435
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_result$schema$value ??= z.object({
436
+ 'from': z.string().readonly(),
437
+ 'to': z.string().readonly(),
438
+ 'step': z.union([z.literal("remove"), z.literal("check"), z.literal("install")]).readonly(),
439
+ 'result': z.object({
440
+ '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.'),
442
+ '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
+ 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
444
+ 'target': z.string(),
445
+ 'enabled': z.boolean().optional(),
446
+ '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")]),
448
+ 'diagnostic': z.string().optional(),
449
+ 'incompatible': z.array(z.object({
450
+ 'name': z.string(),
451
+ 'version': z.string(),
452
+ 'runtimeVersion': z.string(),
453
+ '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.'),
454
+ })).optional().describe('Present with `incompatible-version`: the packages the running DSH version rejects.'),
455
+ }).optional(),
456
+ 'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
457
+ 'packageResult': z.object({
458
+ 'exitCode': z.number().describe('The status the run is read as having ended with; a run the manager terminated records the coerced status 1.'),
459
+ 'output': z.string(),
460
+ 'truncated': z.boolean(),
461
+ '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.'),
463
+ '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
+ 'incompatible': z.array(z.object({
465
+ 'name': z.string(),
466
+ 'version': z.string(),
467
+ 'runtimeVersion': z.string(),
468
+ '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
+ })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
470
+ }).optional(),
471
+ 'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
472
+ 'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
473
+ 'pendingBuilds': z.array(z.string()).optional().describe('Exact `allowBuilds` keys awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
474
+ 'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
475
+ 'registries': z.array(z.union([z.literal(null), z.string()])).optional().describe('The registries the installation asked, in order; `packageResult` is the last one\'s run.'),
476
+ 'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional().describe('What the last failed run could not reach or get an answer from: the registry it asked, or the host a git or tarball spec is fetched from, which no registry stands in for; absent for a failure neither explains.'),
477
+ }).readonly(),
478
+ 'restore': z.object({
479
+ '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.'),
481
+ '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
+ 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
483
+ 'target': z.string(),
484
+ 'enabled': z.boolean().optional(),
485
+ '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")]),
333
487
  'diagnostic': z.string().optional(),
334
488
  'incompatible': z.array(z.object({
335
489
  'name': z.string(),
@@ -340,12 +494,12 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$s
340
494
  }).optional(),
341
495
  'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
342
496
  'packageResult': z.object({
343
- 'exitCode': z.number(),
497
+ 'exitCode': z.number().describe('The status the run is read as having ended with; a run the manager terminated records the coerced status 1.'),
344
498
  'output': z.string(),
345
499
  'truncated': z.boolean(),
346
500
  'logPath': z.string(),
347
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("pnpm-missing"), z.literal("not-found"), 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.'),
348
- 'timedOut': z.boolean().optional().describe('The manager terminated the run after it printed nothing for its silence bound; `exitCode` still reports how it ended.'),
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.'),
502
+ '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.'),
349
503
  'incompatible': z.array(z.object({
350
504
  'name': z.string(),
351
505
  'version': z.string(),
@@ -355,10 +509,11 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$s
355
509
  }).optional(),
356
510
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
357
511
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
358
- 'pendingBuilds': z.array(z.string()).optional().describe('Exact package names awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
512
+ 'pendingBuilds': z.array(z.string()).optional().describe('Exact `allowBuilds` keys awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
359
513
  'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
360
514
  'registries': z.array(z.union([z.literal(null), z.string()])).optional().describe('The registries the installation asked, in order; `packageResult` is the last one\'s run.'),
361
515
  'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional().describe('What the last failed run could not reach or get an answer from: the registry it asked, or the host a git or tarball spec is fetched from, which no registry stands in for; absent for a failure neither explains.'),
516
+ }).readonly().optional(),
362
517
  }))
363
518
  let _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$schema$value
364
519
  const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$schema$value ??= z.string())
@@ -371,7 +526,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema
371
526
  'target': z.string(),
372
527
  'enabled': z.boolean().optional(),
373
528
  'error': z.object({
374
- '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("operation-error")]),
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")]),
375
530
  'diagnostic': z.string().optional(),
376
531
  'incompatible': z.array(z.object({
377
532
  'name': z.string(),
@@ -382,12 +537,12 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema
382
537
  }).optional(),
383
538
  'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
384
539
  'packageResult': z.object({
385
- 'exitCode': z.number(),
540
+ 'exitCode': z.number().describe('The status the run is read as having ended with; a run the manager terminated records the coerced status 1.'),
386
541
  'output': z.string(),
387
542
  'truncated': z.boolean(),
388
543
  'logPath': z.string(),
389
- 'kind': z.union([z.literal("network"), z.literal("unknown"), z.literal("timeout"), z.literal("integrity"), z.literal("pnpm-missing"), z.literal("not-found"), 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.'),
390
- 'timedOut': z.boolean().optional().describe('The manager terminated the run after it printed nothing for its silence bound; `exitCode` still reports how it ended.'),
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.'),
545
+ '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.'),
391
546
  'incompatible': z.array(z.object({
392
547
  'name': z.string(),
393
548
  'version': z.string(),
@@ -397,7 +552,7 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema
397
552
  }).optional(),
398
553
  'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
399
554
  'version': z.string().optional().describe('The installed bundle\'s manifest version, when declared; pnpm\'s `minimumReleaseAge` can make it older than the newest release.'),
400
- 'pendingBuilds': z.array(z.string()).optional().describe('Exact package names awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
555
+ 'pendingBuilds': z.array(z.string()).optional().describe('Exact `allowBuilds` keys awaiting explicit script approval in the profile\'s pnpm settings, read after a failed run.'),
401
556
  'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
402
557
  'registries': z.array(z.union([z.literal(null), z.string()])).optional().describe('The registries the installation asked, in order; `packageResult` is the last one\'s run.'),
403
558
  'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional().describe('What the last failed run could not reach or get an answer from: the registry it asked, or the host a git or tarball spec is fetched from, which no registry stands in for; absent for a failure neither explains.'),
@@ -420,6 +575,20 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1_st
420
575
  '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.'),
421
576
  '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.'),
422
577
  })]))
578
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_0_strict$schema$value
579
+ 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())
580
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_1_strict$schema$value
581
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_1_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_1_strict$schema$value ??= z.union([z.undefined(), z.strictObject({
582
+ 'registry': z.union([z.literal(null), z.string()]).readonly().optional().describe('The registry asked first; absent, the one this process last installed the package from, else the configured one.'),
583
+ })]))
584
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_0_strict$schema$value
585
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_0_strict$schema$value ??= z.string())
586
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_1_strict$schema$value
587
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_1_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_1_strict$schema$value ??= z.string())
588
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_2_strict$schema$value
589
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_2_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_2_strict$schema$value ??= z.union([z.undefined(), z.strictObject({
590
+ 'npmFileSources': z.array(z.union([z.literal("jsdelivr"), z.literal("unpkg"), z.literal("npmmirror")])).optional(),
591
+ })]))
423
592
  let _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0_strict$schema$value
424
593
  const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0_strict$schema$value ??= z.string())
425
594
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0_strict$schema$value
@@ -438,6 +607,15 @@ let _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_
438
607
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_2_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_2_strict$schema$value ??= z.boolean())
439
608
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_3_strict$schema$value
440
609
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_3_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_3_strict$schema$value ??= z.union([z.undefined(), z.literal(false), z.literal(true)]))
610
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_0_strict$schema$value
611
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_0_strict$schema$value ??= z.string())
612
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_1_strict$schema$value
613
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_1_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_1_strict$schema$value ??= z.string())
614
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_2_strict$schema$value
615
+ 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
+ '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`.'),
617
+ 'requestId': z.string().readonly().optional().describe('Names the update\'s progress and the target installation\'s logs; `cancelInstall` stops only that installation.'),
618
+ })]))
441
619
  let _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0_strict$schema$value
442
620
  const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0_strict$schema$value ??= z.string())
443
621
 
@@ -474,7 +652,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
474
652
  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.',
475
653
  jsonSchema: {"type":"object","properties":{"status":{"type":"string","enum":["cancelled","not-running","too-late"]}},"required":["status"],"additionalProperties":true},
476
654
  },
477
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":669,"column":9},
655
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":1030,"column":9},
478
656
  },
479
657
  'pluginManager/inspect': {
480
658
  service: 'pluginManager',
@@ -523,13 +701,13 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
523
701
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginSpecInspection',
524
702
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema,
525
703
  description: 'The package the spec names, or why it is refused.',
526
- 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","invalid-spec","already-installed","not-found","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}]},
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}]},
527
705
  },
528
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":408,"column":9},
706
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":603,"column":9},
529
707
  },
530
708
  'pluginManager/installBundle': {
531
709
  service: 'pluginManager',
532
- description: 'Install a package using the same pnpm implementation as dsh plugin. GitHub repositories get a connection check bounded by githubConnectionTimeoutMs before pnpm starts; only network failures or timeouts stop installation, while pnpm owns authentication and transport fallback. A run that fails, is cancelled, or adds a package without a bundle patch restores `package.json` and `pnpm-lock.yaml` as they were; downloaded files can stay.',
710
+ description: 'Install a package using the same pnpm implementation as dsh plugin. GitHub repositories get a connection check bounded by githubConnectionTimeoutMs before pnpm starts; only network failures or timeouts stop installation, and a stop streams the check\'s diagnostic as the installation\'s install-log run under its request id, while pnpm owns authentication and transport fallback. An HTTP(S) Git URL on another host is installed over SSH instead when access probes bounded by gitTransportTimeoutMs find that only SSH can read it. A run that fails, is cancelled, or adds a package without a bundle patch restores `package.json` and `pnpm-lock.yaml` as they were; downloaded files can stay.',
533
711
  invocation: { kind: 'direct' },
534
712
  parameters: [
535
713
  {
@@ -575,7 +753,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
575
753
  description: 'Package-manager diagnostics, the registries asked, and the observed activation outcome.',
576
754
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
577
755
  },
578
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":529,"column":3},
756
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":873,"column":3},
579
757
  },
580
758
  'pluginManager/listBundles': {
581
759
  service: 'pluginManager',
@@ -590,7 +768,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
590
768
  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.',
591
769
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
592
770
  },
593
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":316,"column":3},
771
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":489,"column":3},
594
772
  },
595
773
  'pluginManager/listPlugins': {
596
774
  service: 'pluginManager',
@@ -605,7 +783,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
605
783
  description: 'Current runtime entries with persistent patch targets.',
606
784
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
607
785
  },
608
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":292,"column":9},
786
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":465,"column":9},
609
787
  },
610
788
  'pluginManager/listVersionExemptions': {
611
789
  service: 'pluginManager',
@@ -620,7 +798,125 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
620
798
  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.',
621
799
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
622
800
  },
623
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":268,"column":3},
801
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":441,"column":3},
802
+ },
803
+ 'pluginManager/listVersions': {
804
+ service: 'pluginManager',
805
+ description: 'Read the published versions newer than an installed registry package\'s version, from the first registry that answers. Official bundles follow the DSH version and are not listed.',
806
+ invocation: { kind: 'direct' },
807
+ parameters: [
808
+ {
809
+ name: 'name',
810
+ description: 'Installed profile dependency name.',
811
+ source: 'json',
812
+ codec: {
813
+ mode: 'strict',
814
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/listVersions:name',
815
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_0$schema,
816
+ jsonSchema: {"type":"string"},
817
+ },
818
+ strictCodec: {
819
+ mode: 'strict',
820
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/listVersions:name',
821
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_0_strict$schema,
822
+ jsonSchema: {"type":"string"},
823
+ },
824
+ },
825
+ {
826
+ name: 'options',
827
+ description: 'The registry asked first; absent, the one the package was installed from in this process, else the configured one.',
828
+ source: 'json',
829
+ acceptsUndefined: true,
830
+ codec: {
831
+ mode: 'strict',
832
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#ListVersionsOptions',
833
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_1$schema,
834
+ jsonSchema: {"type":"object","properties":{"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry asked first; absent, the one this process last installed the package from, else the configured one."}},"required":[],"additionalProperties":true},
835
+ },
836
+ strictCodec: {
837
+ mode: 'strict',
838
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#ListVersionsOptions',
839
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_parameter_1_strict$schema,
840
+ jsonSchema: {"type":"object","properties":{"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry asked first; absent, the one this process last installed the package from, else the configured one."}},"required":[],"additionalProperties":false},
841
+ },
842
+ },
843
+ ],
844
+ cancellation: { parameter: 'signal' },
845
+ result: {
846
+ mode: 'strict',
847
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginVersionList',
848
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_listVersions_result$schema,
849
+ 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
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
851
+ },
852
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":663,"column":9},
853
+ },
854
+ 'pluginManager/readBundleDetail': {
855
+ service: 'pluginManager',
856
+ description: 'Read a bundle\'s long description: the Markdown file its locale `meta.detail` names in `language`, otherwise its README. An installed bundle is read from its directory without network access; an official bundle the installation offers before it is installed is read from the npm file CDNs at its offered version. Nothing is cached.',
857
+ invocation: { kind: 'direct' },
858
+ parameters: [
859
+ {
860
+ name: 'name',
861
+ description: 'the bundle\'s package name, as `listBundles()` lists it.',
862
+ source: 'json',
863
+ codec: {
864
+ mode: 'strict',
865
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/readBundleDetail:name',
866
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_0$schema,
867
+ jsonSchema: {"type":"string"},
868
+ },
869
+ strictCodec: {
870
+ mode: 'strict',
871
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/readBundleDetail:name',
872
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_0_strict$schema,
873
+ jsonSchema: {"type":"string"},
874
+ },
875
+ },
876
+ {
877
+ name: 'language',
878
+ description: 'the display language, such as `zh-CN`; documents fall back through its prefixes to English.',
879
+ source: 'json',
880
+ codec: {
881
+ mode: 'strict',
882
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/readBundleDetail:language',
883
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_1$schema,
884
+ jsonSchema: {"type":"string"},
885
+ },
886
+ strictCodec: {
887
+ mode: 'strict',
888
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/readBundleDetail:language',
889
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_1_strict$schema,
890
+ jsonSchema: {"type":"string"},
891
+ },
892
+ },
893
+ {
894
+ name: 'options',
895
+ description: '`npmFileSources` names npm file CDNs to ask first for an offered bundle, in order, such as the one a Client measured as fastest; configured CDNs it omits follow, and CDNs that are not configured are not asked.',
896
+ source: 'json',
897
+ acceptsUndefined: true,
898
+ codec: {
899
+ mode: 'strict',
900
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/readBundleDetail:options',
901
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_2$schema,
902
+ jsonSchema: {"type":"object","properties":{"npmFileSources":{"type":"array","items":{"type":"string","enum":["jsdelivr","unpkg","npmmirror"]}}},"required":[],"additionalProperties":true},
903
+ },
904
+ strictCodec: {
905
+ mode: 'strict',
906
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/readBundleDetail:options',
907
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_parameter_2_strict$schema,
908
+ jsonSchema: {"type":"object","properties":{"npmFileSources":{"type":"array","items":{"type":"string","enum":["jsdelivr","unpkg","npmmirror"]}}},"required":[],"additionalProperties":false},
909
+ },
910
+ },
911
+ ],
912
+ result: {
913
+ mode: 'strict',
914
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#BundleDetail',
915
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_readBundleDetail_result$schema,
916
+ description: 'the document with its origin and path, or `none`.',
917
+ 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
+ },
919
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":405,"column":9},
624
920
  },
625
921
  'pluginManager/registries': {
626
922
  service: 'pluginManager',
@@ -635,7 +931,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
635
931
  description: 'The registries in pnpm\'s comparison form; null is the one pnpm\'s own configuration names, `resolved` as pnpm reads it now.',
636
932
  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},
637
933
  },
638
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":392,"column":9},
934
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":587,"column":9},
639
935
  },
640
936
  'pluginManager/removeBundle': {
641
937
  service: 'pluginManager',
@@ -667,7 +963,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
667
963
  description: 'Removal diagnostics and the remaining profile state.',
668
964
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
669
965
  },
670
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":686,"column":3},
966
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":1047,"column":3},
671
967
  },
672
968
  'pluginManager/setBundleEnabled': {
673
969
  service: 'pluginManager',
@@ -716,7 +1012,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
716
1012
  description: 'Persisted and runtime outcomes.',
717
1013
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
718
1014
  },
719
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":510,"column":3},
1015
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":851,"column":3},
720
1016
  },
721
1017
  'pluginManager/setPluginEnabled': {
722
1018
  service: 'pluginManager',
@@ -765,7 +1061,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
765
1061
  description: 'Saved and runtime outcomes, including higher-priority overrides.',
766
1062
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
767
1063
  },
768
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":492,"column":3},
1064
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":833,"column":3},
769
1065
  },
770
1066
  'pluginManager/setVersionExemption': {
771
1067
  service: 'pluginManager',
@@ -849,7 +1145,74 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
849
1145
  description: 'Saved and runtime outcomes. Startup-only profiles require restart.',
850
1146
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
851
1147
  },
852
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":281,"column":3},
1148
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":454,"column":3},
1149
+ },
1150
+ 'pluginManager/updateBundle': {
1151
+ 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.',
1153
+ invocation: { kind: 'direct' },
1154
+ parameters: [
1155
+ {
1156
+ name: 'name',
1157
+ description: 'Installed profile dependency name.',
1158
+ source: 'json',
1159
+ codec: {
1160
+ mode: 'strict',
1161
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/updateBundle:name',
1162
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_0$schema,
1163
+ jsonSchema: {"type":"string"},
1164
+ },
1165
+ strictCodec: {
1166
+ mode: 'strict',
1167
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/updateBundle:name',
1168
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_0_strict$schema,
1169
+ jsonSchema: {"type":"string"},
1170
+ },
1171
+ },
1172
+ {
1173
+ name: 'version',
1174
+ description: 'Exact published version newer than the installed one.',
1175
+ source: 'json',
1176
+ codec: {
1177
+ mode: 'strict',
1178
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/updateBundle:version',
1179
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_1$schema,
1180
+ jsonSchema: {"type":"string"},
1181
+ },
1182
+ strictCodec: {
1183
+ mode: 'strict',
1184
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/updateBundle:version',
1185
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_parameter_1_strict$schema,
1186
+ jsonSchema: {"type":"string"},
1187
+ },
1188
+ },
1189
+ {
1190
+ 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.',
1192
+ source: 'json',
1193
+ acceptsUndefined: true,
1194
+ codec: {
1195
+ mode: 'strict',
1196
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#UpdateBundleOptions',
1197
+ 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},
1199
+ },
1200
+ strictCodec: {
1201
+ mode: 'strict',
1202
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#UpdateBundleOptions',
1203
+ 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},
1205
+ },
1206
+ },
1207
+ ],
1208
+ result: {
1209
+ mode: 'strict',
1210
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginUpdateResult',
1211
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_updateBundle_result$schema,
1212
+ description: 'The versions, the last step that ran with its result, and the reinstallation when one ran.',
1213
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
1214
+ },
1215
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":714,"column":9},
853
1216
  },
854
1217
  'pluginManager/waitForInstall': {
855
1218
  service: 'pluginManager',
@@ -881,7 +1244,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
881
1244
  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.',
882
1245
  jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
883
1246
  },
884
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":659,"column":9},
1247
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":1020,"column":9},
885
1248
  },
886
1249
  },
887
1250
  }, z)