@deepseek-ai/dsh-plugin-manager 0.2.1-alpha.2 → 0.2.1-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.
@@ -1,8 +1,10 @@
1
1
  /* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
2
2
  import { z } from 'zod'
3
3
 
4
+ import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
5
+
4
6
  let _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_parameter_0$schema$value
5
- const _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
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())
6
8
  let _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_result$schema$value
7
9
  const _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_result$schema$value ??= z.object({
8
10
  'status': z.union([z.literal("cancelled"), z.literal("not-running"), z.literal("too-late")]).readonly(),
@@ -11,7 +13,7 @@ let _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0$schema$val
11
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())
12
14
  let _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1$schema$value
13
15
  const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1$schema$value ??= z.union([z.undefined(), z.object({
14
- 'registry': z.union([z.literal(null), z.string()]).readonly().optional(),
16
+ 'registry': z.union([z.literal(null), z.string()]).readonly().optional().describe('The registry asked first; absent, the configured one.'),
15
17
  })]))
16
18
  let _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema$value
17
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({
@@ -19,157 +21,156 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema = () =
19
21
  'kind': z.union([z.literal("registry"), z.literal("path"), z.literal("git"), z.literal("tarball")]).readonly(),
20
22
  'name': z.string().readonly().optional(),
21
23
  'version': z.string().readonly().optional(),
22
- 'description': z.string().readonly().optional(),
23
- 'bundle': z.union([z.literal(null), z.literal(false), z.literal(true)]).readonly(),
24
- 'registry': z.union([z.literal(null), z.string()]).readonly(),
25
- 'host': z.string().readonly().optional(),
24
+ 'description': z.string().readonly().optional().describe('`description` of the package manifest.'),
25
+ 'bundle': z.union([z.literal(null), z.literal(false), z.literal(true)]).readonly().describe('Whether the package declares a bundle patch; null when the spec\'s form does not say.'),
26
+ 'registry': z.union([z.literal(null), z.string()]).readonly().describe('The registry that answered for a name, and for the other forms the one an install of the spec asks first.'),
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.'),
26
28
  }), z.object({
27
29
  'status': z.literal("refused").readonly(),
28
- 'problem': z.union([z.literal("network"), z.literal("unknown"), z.literal("invalid-spec"), z.literal("not-found"), z.literal("already-installed"), z.literal("not-a-package"), z.literal("not-a-bundle")]).readonly(),
29
- 'reason': z.string().readonly(),
30
- 'registries': z.array(z.union([z.literal(null), z.string()])).readonly().optional(),
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(),
31
+ 'reason': z.string().readonly().describe('What pnpm, the registry, or the file system said.'),
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.'),
31
33
  })]))
32
34
  let _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0$schema$value
33
35
  const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0$schema$value ??= z.string())
34
36
  let _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1$schema$value
35
37
  const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1$schema$value ??= z.union([z.undefined(), z.object({
36
38
  'enabled': z.boolean().optional(),
37
- 'saveExact': z.boolean().optional(),
38
- 'requestId': z.intersection(z.string(), z.unknown()).optional(),
39
- 'approvedBuilds': z.array(z.string()).optional(),
40
- 'registry': z.union([z.literal(null), z.string()]).optional(),
39
+ 'saveExact': z.boolean().optional().describe('Save the resolved dependency version without a range; applies to any bundle installation.'),
40
+ 'requestId': z.string().optional(),
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
+ '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.'),
41
43
  })]))
42
44
  let _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema$value
43
45
  const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema$value ??= z.object({
44
46
  'changed': z.boolean(),
45
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]),
46
- 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]),
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.'),
48
+ '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
+ 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
47
50
  'target': z.string(),
48
51
  'enabled': z.boolean().optional(),
49
52
  'error': z.object({
50
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), 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("operation-error")]),
51
54
  'diagnostic': z.string().optional(),
52
55
  'incompatible': z.array(z.object({
53
56
  'name': z.string(),
54
57
  'version': z.string(),
55
58
  'runtimeVersion': z.string(),
56
- 'peers': z.record(z.string(), z.string()),
57
- })).optional(),
59
+ 'peers': z.record(z.string(), z.string()).describe('Only the DSH peer ranges the running version does not satisfy.'),
60
+ })).optional().describe('Present with `incompatible-version`: the packages the running DSH version rejects.'),
58
61
  }).optional(),
59
- 'warnings': z.array(z.string()).optional(),
62
+ 'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
60
63
  'packageResult': z.object({
61
64
  'exitCode': z.number(),
62
65
  'output': z.string(),
63
66
  'truncated': z.boolean(),
64
67
  'logPath': z.string(),
65
- '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(),
66
- 'timedOut': z.boolean().optional(),
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.'),
67
70
  'incompatible': z.array(z.object({
68
71
  'name': z.string(),
69
72
  'version': z.string(),
70
73
  'runtimeVersion': z.string(),
71
- 'peers': z.record(z.string(), z.string()),
72
- })).optional(),
74
+ 'peers': z.record(z.string(), z.string()).describe('Only the DSH peer ranges the running version does not satisfy.'),
75
+ })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
73
76
  }).optional(),
74
- 'bundle': z.string().optional(),
75
- 'version': z.string().optional(),
76
- 'pendingBuilds': z.array(z.string()).optional(),
77
- 'approvedBuilds': z.array(z.string()).optional(),
78
- 'registries': z.array(z.union([z.literal(null), z.string()])).optional(),
79
- 'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional(),
77
+ 'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
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.'),
80
+ 'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
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
+ '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.'),
80
83
  }))
81
84
  let _deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema$value
82
85
  const _deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema$value ??= z.array(z.object({
83
86
  'name': z.string(),
84
- 'official': z.boolean(),
85
- 'availability': z.union([z.literal("profile"), z.literal("installation"), z.literal("missing")]),
87
+ 'official': z.boolean().describe('Project-maintained shipped optional bundle or on-demand catalog entry, independent of installation and selection.'),
88
+ 'availability': z.union([z.literal("profile"), z.literal("installation"), z.literal("missing")]).describe('Readable package location; on-demand catalog entries exclude undeclared transitive copies, and declared files may be missing.'),
86
89
  'installTarget': z.object({
87
90
  'spec': z.string(),
88
91
  'version': z.string(),
89
- }).optional(),
92
+ }).optional().describe('Exact released Host version or same-checkout development link offered for an on-demand catalog entry.'),
90
93
  'version': z.string().optional(),
91
94
  'meta': z.object({
92
95
  'title': z.union([z.string(), z.intersection(z.object({
93
96
  'en': z.string().readonly(),
94
- }), z.record(z.string(), z.string()).readonly())]).readonly().optional(),
97
+ }), z.record(z.string(), z.string()).readonly())]).readonly().optional().describe('Display title; omission preserves the consumer\'s technical-name fallback.'),
95
98
  'description': z.union([z.string(), z.intersection(z.object({
96
99
  'en': z.string().readonly(),
97
- }), z.record(z.string(), z.string()).readonly())]).readonly().optional(),
98
- 'icon': z.string().readonly().optional(),
99
- 'error': z.string().readonly().optional(),
100
- }).optional(),
101
- 'description': z.string().optional(),
102
- 'enabled': z.boolean(),
103
- 'installed': z.boolean(),
104
- 'source': z.string().optional(),
105
- 'optional': z.boolean(),
100
+ }), z.record(z.string(), z.string()).readonly())]).readonly().optional().describe('Display introduction after locale and package-field fallback.'),
101
+ 'icon': z.string().readonly().optional().describe('Base64 image data URL from a package root\'s manifest icon or an exported `<specifier>/icon`; render as an image, not inline markup.'),
102
+ 'error': z.string().readonly().optional().describe('Unmodified local metadata diagnostic; the plugin remains manageable.'),
103
+ }).optional().describe('Local display text with available translations or literal fallbacks, or a metadata diagnostic.'),
104
+ 'description': z.string().optional().describe('Untranslated `description` of this bundle\'s package manifest.'),
105
+ 'enabled': z.boolean().describe('Selected in the profile manifest; a load error means its layer was skipped.'),
106
+ 'installed': z.boolean().describe('Whether the profile declares this dependency; availability separately reports whether its files can be read.'),
107
+ '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
+ '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.'),
106
109
  'removable': z.boolean(),
107
110
  'readOnlyReason': z.union([z.literal("management-required"), z.literal("unaddressable")]).optional(),
108
111
  'error': z.object({
109
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), 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")]),
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")]),
110
113
  'diagnostic': z.string().optional(),
111
114
  'incompatible': z.array(z.object({
112
115
  'name': z.string(),
113
116
  'version': z.string(),
114
117
  'runtimeVersion': z.string(),
115
- 'peers': z.record(z.string(), z.string()),
116
- })).optional(),
118
+ 'peers': z.record(z.string(), z.string()).describe('Only the DSH peer ranges the running version does not satisfy.'),
119
+ })).optional().describe('Present with `incompatible-version`: the packages the running DSH version rejects.'),
117
120
  }).optional(),
118
121
  'rows': z.array(z.object({
119
- 'rowId': z.string(),
120
- 'moduleName': z.string(),
122
+ 'rowId': z.string().describe('The row id as the patch declares it.'),
123
+ 'moduleName': z.string().describe('The module the row names.'),
121
124
  'meta': z.object({
122
125
  'title': z.union([z.string(), z.intersection(z.object({
123
126
  'en': z.string().readonly(),
124
- }), z.record(z.string(), z.string()).readonly())]).readonly().optional(),
127
+ }), z.record(z.string(), z.string()).readonly())]).readonly().optional().describe('Display title; omission preserves the consumer\'s technical-name fallback.'),
125
128
  'description': z.union([z.string(), z.intersection(z.object({
126
129
  'en': z.string().readonly(),
127
- }), z.record(z.string(), z.string()).readonly())]).readonly().optional(),
128
- 'icon': z.string().readonly().optional(),
129
- 'error': z.string().readonly().optional(),
130
- }).optional(),
131
- 'entryId': z.intersection(z.string(), z.unknown()).optional(),
132
- })),
133
- 'overrides': z.array(z.string()),
130
+ }), z.record(z.string(), z.string()).readonly())]).readonly().optional().describe('Display introduction after locale and package-field fallback.'),
131
+ 'icon': z.string().readonly().optional().describe('Base64 image data URL from a package root\'s manifest icon or an exported `<specifier>/icon`; render as an image, not inline markup.'),
132
+ 'error': z.string().readonly().optional().describe('Unmodified local metadata diagnostic; the plugin remains manageable.'),
133
+ }).optional().describe('Local package display metadata, including rows whose bundle is disabled.'),
134
+ 'entryId': z.string().optional().describe('The Loader entry carrying this row, when exactly one live entry has its id.'),
135
+ })).describe('The rows the bundle\'s patch inserts, in declaration order; empty when the patch cannot be read.'),
136
+ 'overrides': z.array(z.string()).describe('Ids of rows the bundle\'s patch changes without declaring them: the built-in rows it configures or disables.'),
134
137
  })))
135
138
  let _deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema$value
136
- const _deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema$value ??= z.array(z.union([z.intersection(z.object({
137
- 'entryId': z.intersection(z.string(), z.unknown()).readonly(),
138
- 'moduleName': z.string().readonly(),
139
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema$value ??= z.array(z.union([z.object({
140
+ 'entryId': z.string().readonly(),
141
+ 'moduleName': z.string().readonly().describe('Exact module specifier imported by the Loader entry.'),
139
142
  'meta': z.object({
140
143
  'title': z.union([z.string(), z.intersection(z.object({
141
144
  'en': z.string().readonly(),
142
- }), z.record(z.string(), z.string()).readonly())]).readonly().optional(),
145
+ }), z.record(z.string(), z.string()).readonly())]).readonly().optional().describe('Display title; omission preserves the consumer\'s technical-name fallback.'),
143
146
  'description': z.union([z.string(), z.intersection(z.object({
144
147
  'en': z.string().readonly(),
145
- }), z.record(z.string(), z.string()).readonly())]).readonly().optional(),
146
- 'icon': z.string().readonly().optional(),
147
- 'error': z.string().readonly().optional(),
148
- }).readonly().optional(),
149
- 'enabled': z.boolean().readonly(),
148
+ }), z.record(z.string(), z.string()).readonly())]).readonly().optional().describe('Display introduction after locale and package-field fallback.'),
149
+ 'icon': z.string().readonly().optional().describe('Base64 image data URL from a package root\'s manifest icon or an exported `<specifier>/icon`; render as an image, not inline markup.'),
150
+ 'error': z.string().readonly().optional().describe('Unmodified local metadata diagnostic; the plugin remains manageable.'),
151
+ }).readonly().optional().describe('Local package display metadata, independent of whether the entry is enabled.'),
152
+ 'enabled': z.boolean().readonly().describe('Effective Loader enablement, including disabled ancestor groups.'),
150
153
  'fiberPhase': z.union([z.literal(null), z.literal("failed"), z.literal("pending"), z.literal("active"), z.literal("loading"), z.literal("unloading")]).readonly(),
151
- }), z.object({
152
154
  'patchId': z.string(),
153
155
  'readOnlyReason': z.never().optional(),
154
- })), z.intersection(z.object({
155
- 'entryId': z.intersection(z.string(), z.unknown()).readonly(),
156
- 'moduleName': z.string().readonly(),
156
+ }), z.object({
157
+ 'entryId': z.string().readonly(),
158
+ 'moduleName': z.string().readonly().describe('Exact module specifier imported by the Loader entry.'),
157
159
  'meta': z.object({
158
160
  'title': z.union([z.string(), z.intersection(z.object({
159
161
  'en': z.string().readonly(),
160
- }), z.record(z.string(), z.string()).readonly())]).readonly().optional(),
162
+ }), z.record(z.string(), z.string()).readonly())]).readonly().optional().describe('Display title; omission preserves the consumer\'s technical-name fallback.'),
161
163
  'description': z.union([z.string(), z.intersection(z.object({
162
164
  'en': z.string().readonly(),
163
- }), z.record(z.string(), z.string()).readonly())]).readonly().optional(),
164
- 'icon': z.string().readonly().optional(),
165
- 'error': z.string().readonly().optional(),
166
- }).readonly().optional(),
167
- 'enabled': z.boolean().readonly(),
165
+ }), z.record(z.string(), z.string()).readonly())]).readonly().optional().describe('Display introduction after locale and package-field fallback.'),
166
+ 'icon': z.string().readonly().optional().describe('Base64 image data URL from a package root\'s manifest icon or an exported `<specifier>/icon`; render as an image, not inline markup.'),
167
+ 'error': z.string().readonly().optional().describe('Unmodified local metadata diagnostic; the plugin remains manageable.'),
168
+ }).readonly().optional().describe('Local package display metadata, independent of whether the entry is enabled.'),
169
+ 'enabled': z.boolean().readonly().describe('Effective Loader enablement, including disabled ancestor groups.'),
168
170
  'fiberPhase': z.union([z.literal(null), z.literal("failed"), z.literal("pending"), z.literal("active"), z.literal("loading"), z.literal("unloading")]).readonly(),
169
- }), z.object({
170
171
  'patchId': z.never().optional(),
171
172
  'readOnlyReason': z.union([z.literal("management-required"), z.literal("unaddressable")]),
172
- }))])))
173
+ })])))
173
174
  let _deepseek_ai_dsh_plugin_manager_pluginManager_listVersionExemptions_result$schema$value
174
175
  const _deepseek_ai_dsh_plugin_manager_pluginManager_listVersionExemptions_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_listVersionExemptions_result$schema$value ??= z.object({
175
176
  'exemptions': z.record(z.string(), z.array(z.string())),
@@ -179,48 +180,49 @@ let _deepseek_ai_dsh_plugin_manager_pluginManager_registries_result$schema$value
179
180
  const _deepseek_ai_dsh_plugin_manager_pluginManager_registries_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_registries_result$schema$value ??= z.object({
180
181
  'registry': z.union([z.literal(null), z.string()]).readonly(),
181
182
  'fallbackRegistries': z.array(z.string()).readonly(),
182
- 'resolved': z.union([z.literal(null), z.string()]).readonly(),
183
+ 'resolved': z.union([z.literal(null), z.string()]).readonly().describe('The URL pnpm\'s own configuration names in the profile, read from pnpm; null when it could not be read.'),
183
184
  }))
184
185
  let _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0$schema$value
185
186
  const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0$schema$value ??= z.string())
186
187
  let _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema$value
187
188
  const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema$value ??= z.object({
188
189
  'changed': z.boolean(),
189
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]),
190
- 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]),
190
+ '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.'),
191
+ '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.'),
192
+ 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
191
193
  'target': z.string(),
192
194
  'enabled': z.boolean().optional(),
193
195
  'error': z.object({
194
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), 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")]),
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")]),
195
197
  'diagnostic': z.string().optional(),
196
198
  'incompatible': z.array(z.object({
197
199
  'name': z.string(),
198
200
  'version': z.string(),
199
201
  'runtimeVersion': z.string(),
200
- 'peers': z.record(z.string(), z.string()),
201
- })).optional(),
202
+ 'peers': z.record(z.string(), z.string()).describe('Only the DSH peer ranges the running version does not satisfy.'),
203
+ })).optional().describe('Present with `incompatible-version`: the packages the running DSH version rejects.'),
202
204
  }).optional(),
203
- 'warnings': z.array(z.string()).optional(),
205
+ 'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
204
206
  'packageResult': z.object({
205
207
  'exitCode': z.number(),
206
208
  'output': z.string(),
207
209
  'truncated': z.boolean(),
208
210
  'logPath': z.string(),
209
- '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(),
210
- 'timedOut': z.boolean().optional(),
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.'),
211
213
  'incompatible': z.array(z.object({
212
214
  'name': z.string(),
213
215
  'version': z.string(),
214
216
  'runtimeVersion': z.string(),
215
- 'peers': z.record(z.string(), z.string()),
216
- })).optional(),
217
+ 'peers': z.record(z.string(), z.string()).describe('Only the DSH peer ranges the running version does not satisfy.'),
218
+ })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
217
219
  }).optional(),
218
- 'bundle': z.string().optional(),
219
- 'version': z.string().optional(),
220
- 'pendingBuilds': z.array(z.string()).optional(),
221
- 'approvedBuilds': z.array(z.string()).optional(),
222
- 'registries': z.array(z.union([z.literal(null), z.string()])).optional(),
223
- 'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional(),
220
+ 'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
221
+ '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.'),
223
+ 'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
224
+ '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
+ '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.'),
224
226
  }))
225
227
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0$schema$value
226
228
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0$schema$value ??= z.string())
@@ -229,84 +231,86 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_1
229
231
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema$value
230
232
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema$value ??= z.object({
231
233
  'changed': z.boolean(),
232
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]),
233
- 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]),
234
+ '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.'),
235
+ '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.'),
236
+ 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
234
237
  'target': z.string(),
235
238
  'enabled': z.boolean().optional(),
236
239
  'error': z.object({
237
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), 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")]),
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")]),
238
241
  'diagnostic': z.string().optional(),
239
242
  'incompatible': z.array(z.object({
240
243
  'name': z.string(),
241
244
  'version': z.string(),
242
245
  'runtimeVersion': z.string(),
243
- 'peers': z.record(z.string(), z.string()),
244
- })).optional(),
246
+ 'peers': z.record(z.string(), z.string()).describe('Only the DSH peer ranges the running version does not satisfy.'),
247
+ })).optional().describe('Present with `incompatible-version`: the packages the running DSH version rejects.'),
245
248
  }).optional(),
246
- 'warnings': z.array(z.string()).optional(),
249
+ 'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
247
250
  'packageResult': z.object({
248
251
  'exitCode': z.number(),
249
252
  'output': z.string(),
250
253
  'truncated': z.boolean(),
251
254
  'logPath': z.string(),
252
- '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(),
253
- 'timedOut': z.boolean().optional(),
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.'),
254
257
  'incompatible': z.array(z.object({
255
258
  'name': z.string(),
256
259
  'version': z.string(),
257
260
  'runtimeVersion': z.string(),
258
- 'peers': z.record(z.string(), z.string()),
259
- })).optional(),
261
+ 'peers': z.record(z.string(), z.string()).describe('Only the DSH peer ranges the running version does not satisfy.'),
262
+ })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
260
263
  }).optional(),
261
- 'bundle': z.string().optional(),
262
- 'version': z.string().optional(),
263
- 'pendingBuilds': z.array(z.string()).optional(),
264
- 'approvedBuilds': z.array(z.string()).optional(),
265
- 'registries': z.array(z.union([z.literal(null), z.string()])).optional(),
266
- 'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional(),
264
+ 'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
265
+ '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.'),
267
+ 'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
268
+ '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
+ '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.'),
267
270
  }))
268
271
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0$schema$value
269
- const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
272
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0$schema$value ??= z.string())
270
273
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1$schema$value
271
274
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1$schema$value ??= z.boolean())
272
275
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema$value
273
276
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema$value ??= z.object({
274
277
  'changed': z.boolean(),
275
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]),
276
- 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]),
278
+ '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.'),
279
+ '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.'),
280
+ 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
277
281
  'target': z.string(),
278
282
  'enabled': z.boolean().optional(),
279
283
  'error': z.object({
280
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), 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")]),
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")]),
281
285
  'diagnostic': z.string().optional(),
282
286
  'incompatible': z.array(z.object({
283
287
  'name': z.string(),
284
288
  'version': z.string(),
285
289
  'runtimeVersion': z.string(),
286
- 'peers': z.record(z.string(), z.string()),
287
- })).optional(),
290
+ 'peers': z.record(z.string(), z.string()).describe('Only the DSH peer ranges the running version does not satisfy.'),
291
+ })).optional().describe('Present with `incompatible-version`: the packages the running DSH version rejects.'),
288
292
  }).optional(),
289
- 'warnings': z.array(z.string()).optional(),
293
+ 'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
290
294
  'packageResult': z.object({
291
295
  'exitCode': z.number(),
292
296
  'output': z.string(),
293
297
  'truncated': z.boolean(),
294
298
  'logPath': z.string(),
295
- '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(),
296
- 'timedOut': z.boolean().optional(),
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.'),
297
301
  'incompatible': z.array(z.object({
298
302
  'name': z.string(),
299
303
  'version': z.string(),
300
304
  'runtimeVersion': z.string(),
301
- 'peers': z.record(z.string(), z.string()),
302
- })).optional(),
305
+ 'peers': z.record(z.string(), z.string()).describe('Only the DSH peer ranges the running version does not satisfy.'),
306
+ })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
303
307
  }).optional(),
304
- 'bundle': z.string().optional(),
305
- 'version': z.string().optional(),
306
- 'pendingBuilds': z.array(z.string()).optional(),
307
- 'approvedBuilds': z.array(z.string()).optional(),
308
- 'registries': z.array(z.union([z.literal(null), z.string()])).optional(),
309
- 'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional(),
308
+ 'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
309
+ '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.'),
311
+ 'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
312
+ '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
+ '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.'),
310
314
  }))
311
315
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_0$schema$value
312
316
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_0$schema$value ??= z.string())
@@ -319,102 +323,147 @@ const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_paramete
319
323
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$schema$value
320
324
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$schema$value ??= z.object({
321
325
  'changed': z.boolean(),
322
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]),
323
- 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]),
326
+ '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.'),
327
+ '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.'),
328
+ 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
324
329
  'target': z.string(),
325
330
  'enabled': z.boolean().optional(),
326
331
  'error': z.object({
327
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), 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")]),
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")]),
328
333
  'diagnostic': z.string().optional(),
329
334
  'incompatible': z.array(z.object({
330
335
  'name': z.string(),
331
336
  'version': z.string(),
332
337
  'runtimeVersion': z.string(),
333
- 'peers': z.record(z.string(), z.string()),
334
- })).optional(),
338
+ 'peers': z.record(z.string(), z.string()).describe('Only the DSH peer ranges the running version does not satisfy.'),
339
+ })).optional().describe('Present with `incompatible-version`: the packages the running DSH version rejects.'),
335
340
  }).optional(),
336
- 'warnings': z.array(z.string()).optional(),
341
+ 'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
337
342
  'packageResult': z.object({
338
343
  'exitCode': z.number(),
339
344
  'output': z.string(),
340
345
  'truncated': z.boolean(),
341
346
  'logPath': z.string(),
342
- '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(),
343
- 'timedOut': z.boolean().optional(),
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.'),
344
349
  'incompatible': z.array(z.object({
345
350
  'name': z.string(),
346
351
  'version': z.string(),
347
352
  'runtimeVersion': z.string(),
348
- 'peers': z.record(z.string(), z.string()),
349
- })).optional(),
353
+ 'peers': z.record(z.string(), z.string()).describe('Only the DSH peer ranges the running version does not satisfy.'),
354
+ })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
350
355
  }).optional(),
351
- 'bundle': z.string().optional(),
352
- 'version': z.string().optional(),
353
- 'pendingBuilds': z.array(z.string()).optional(),
354
- 'approvedBuilds': z.array(z.string()).optional(),
355
- 'registries': z.array(z.union([z.literal(null), z.string()])).optional(),
356
- 'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional(),
356
+ 'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
357
+ '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.'),
359
+ 'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
360
+ '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
+ '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.'),
357
362
  }))
358
363
  let _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$schema$value
359
- const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
364
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$schema$value ??= z.string())
360
365
  let _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema$value
361
366
  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({
362
367
  'changed': z.boolean(),
363
- 'application': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]),
364
- 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]),
368
+ '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.'),
369
+ '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.'),
370
+ 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]).describe('Last attempted step; successful installation can proceed to enablement.'),
365
371
  'target': z.string(),
366
372
  'enabled': z.boolean().optional(),
367
373
  'error': z.object({
368
- 'code': z.union([z.literal("management-required"), z.literal("unaddressable"), z.literal("unknown-plugin"), z.literal("invalid-spec"), 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")]),
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")]),
369
375
  'diagnostic': z.string().optional(),
370
376
  'incompatible': z.array(z.object({
371
377
  'name': z.string(),
372
378
  'version': z.string(),
373
379
  'runtimeVersion': z.string(),
374
- 'peers': z.record(z.string(), z.string()),
375
- })).optional(),
380
+ 'peers': z.record(z.string(), z.string()).describe('Only the DSH peer ranges the running version does not satisfy.'),
381
+ })).optional().describe('Present with `incompatible-version`: the packages the running DSH version rejects.'),
376
382
  }).optional(),
377
- 'warnings': z.array(z.string()).optional(),
383
+ 'warnings': z.array(z.string()).optional().describe('Pre-existing inactive entries the operation left as they were.'),
378
384
  'packageResult': z.object({
379
385
  'exitCode': z.number(),
380
386
  'output': z.string(),
381
387
  'truncated': z.boolean(),
382
388
  'logPath': z.string(),
383
- '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(),
384
- 'timedOut': z.boolean().optional(),
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.'),
385
391
  'incompatible': z.array(z.object({
386
392
  'name': z.string(),
387
393
  'version': z.string(),
388
394
  'runtimeVersion': z.string(),
389
- 'peers': z.record(z.string(), z.string()),
390
- })).optional(),
395
+ 'peers': z.record(z.string(), z.string()).describe('Only the DSH peer ranges the running version does not satisfy.'),
396
+ })).optional().describe('Present when a compatibility check refused the run: the packages the running DSH version rejects.'),
391
397
  }).optional(),
392
- 'bundle': z.string().optional(),
393
- 'version': z.string().optional(),
394
- 'pendingBuilds': z.array(z.string()).optional(),
395
- 'approvedBuilds': z.array(z.string()).optional(),
396
- 'registries': z.array(z.union([z.literal(null), z.string()])).optional(),
397
- 'failedAt': z.union([z.literal("registry"), z.literal("spec-host")]).optional(),
398
+ 'bundle': z.string().optional().describe('The bundle an installation added, once pnpm and the bundle check accepted it.'),
399
+ '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.'),
401
+ 'approvedBuilds': z.array(z.string()).optional().describe('Package script permissions saved before this installation attempt.'),
402
+ '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
+ '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.'),
398
404
  })]))
405
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_parameter_0_strict$schema$value
406
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_parameter_0_strict$schema$value ??= z.string())
407
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0_strict$schema$value
408
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0_strict$schema$value ??= z.string())
409
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1_strict$schema$value
410
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1_strict$schema$value ??= z.union([z.undefined(), z.strictObject({
411
+ 'registry': z.union([z.literal(null), z.string()]).readonly().optional().describe('The registry asked first; absent, the configured one.'),
412
+ })]))
413
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0_strict$schema$value
414
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0_strict$schema$value ??= z.string())
415
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1_strict$schema$value
416
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1_strict$schema$value ??= z.union([z.undefined(), z.strictObject({
417
+ 'enabled': z.boolean().optional(),
418
+ 'saveExact': z.boolean().optional().describe('Save the resolved dependency version without a range; applies to any bundle installation.'),
419
+ 'requestId': z.string().optional(),
420
+ '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
+ '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
+ })]))
423
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0_strict$schema$value
424
+ 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
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0_strict$schema$value
426
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0_strict$schema$value ??= z.string())
427
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_1_strict$schema$value
428
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_1_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_1_strict$schema$value ??= z.boolean())
429
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0_strict$schema$value
430
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0_strict$schema$value ??= z.string())
431
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1_strict$schema$value
432
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1_strict$schema$value ??= z.boolean())
433
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_0_strict$schema$value
434
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_0_strict$schema$value ??= z.string())
435
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_1_strict$schema$value
436
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_1_strict$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_1_strict$schema$value ??= z.string())
437
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_2_strict$schema$value
438
+ 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
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_3_strict$schema$value
440
+ 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)]))
441
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0_strict$schema$value
442
+ 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())
399
443
 
400
- export const TYPERT_REMOTE = {
444
+ export const TYPERT_REMOTE = createTypertRemoteInfo({
401
445
  package: '@deepseek-ai/dsh-plugin-manager',
402
- descriptors: [
403
- {
404
- id: '@deepseek-ai/dsh-plugin-manager#pluginManager/cancelInstall',
446
+ methods: {
447
+ 'pluginManager/cancelInstall': {
405
448
  service: 'pluginManager',
406
- namespace: 'pluginManager',
407
- method: 'cancelInstall',
449
+ description: 'Stop an installation this manager owns and wait until its files are back.',
408
450
  invocation: { kind: 'direct' },
409
451
  parameters: [
410
452
  {
411
453
  name: 'requestId',
412
- wire: 'requestId',
454
+ description: 'The id the installation was started with.',
413
455
  source: 'json',
414
456
  codec: {
415
457
  mode: 'strict',
416
458
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginInstallRequestId',
417
459
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_parameter_0$schema,
460
+ jsonSchema: {"type":"string"},
461
+ },
462
+ strictCodec: {
463
+ mode: 'strict',
464
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginInstallRequestId',
465
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_parameter_0_strict$schema,
466
+ jsonSchema: {"type":"string"},
418
467
  },
419
468
  },
420
469
  ],
@@ -422,35 +471,49 @@ export const TYPERT_REMOTE = {
422
471
  mode: 'strict',
423
472
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginInstallCancellation',
424
473
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_result$schema,
474
+ 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
+ jsonSchema: {"type":"object","properties":{"status":{"type":"string","enum":["cancelled","not-running","too-late"]}},"required":["status"],"additionalProperties":true},
425
476
  },
426
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":628,"column":9},
477
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":669,"column":9},
427
478
  },
428
- {
429
- id: '@deepseek-ai/dsh-plugin-manager#pluginManager/inspect',
479
+ 'pluginManager/inspect': {
430
480
  service: 'pluginManager',
431
- namespace: 'pluginManager',
432
- method: 'inspect',
481
+ description: 'Read what a spec names before installing it.',
433
482
  invocation: { kind: 'direct' },
434
483
  parameters: [
435
484
  {
436
485
  name: 'spec',
437
- wire: 'spec',
486
+ description: 'One package spec: a registry name, an absolute path, a git address, or a tarball.',
438
487
  source: 'json',
439
488
  codec: {
440
489
  mode: 'strict',
441
490
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/inspect:spec',
442
491
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0$schema,
492
+ jsonSchema: {"type":"string"},
493
+ },
494
+ strictCodec: {
495
+ mode: 'strict',
496
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/inspect:spec',
497
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0_strict$schema,
498
+ jsonSchema: {"type":"string"},
443
499
  },
444
500
  },
445
501
  {
446
502
  name: 'options',
447
- wire: 'options',
503
+ description: 'The registry asked first.',
448
504
  source: 'json',
449
505
  acceptsUndefined: true,
450
506
  codec: {
451
507
  mode: 'strict',
452
508
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#InspectOptions',
453
509
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1$schema,
510
+ jsonSchema: {"type":"object","properties":{"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry asked first; absent, the configured one."}},"required":[],"additionalProperties":true},
511
+ },
512
+ strictCodec: {
513
+ mode: 'strict',
514
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#InspectOptions',
515
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1_strict$schema,
516
+ jsonSchema: {"type":"object","properties":{"registry":{"oneOf":[{"type":"null","const":null},{"type":"string"}],"description":"The registry asked first; absent, the configured one."}},"required":[],"additionalProperties":false},
454
517
  },
455
518
  },
456
519
  ],
@@ -459,35 +522,49 @@ export const TYPERT_REMOTE = {
459
522
  mode: 'strict',
460
523
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginSpecInspection',
461
524
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema,
525
+ 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}]},
462
527
  },
463
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":374,"column":9},
528
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":408,"column":9},
464
529
  },
465
- {
466
- id: '@deepseek-ai/dsh-plugin-manager#pluginManager/installBundle',
530
+ 'pluginManager/installBundle': {
467
531
  service: 'pluginManager',
468
- namespace: 'pluginManager',
469
- method: 'installBundle',
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.',
470
533
  invocation: { kind: 'direct' },
471
534
  parameters: [
472
535
  {
473
536
  name: 'spec',
474
- wire: 'spec',
537
+ description: 'One package spec, including local paths relative to the invocation directory.',
475
538
  source: 'json',
476
539
  codec: {
477
540
  mode: 'strict',
478
541
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/installBundle:spec',
479
542
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0$schema,
543
+ jsonSchema: {"type":"string"},
544
+ },
545
+ strictCodec: {
546
+ mode: 'strict',
547
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/installBundle:spec',
548
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0_strict$schema,
549
+ jsonSchema: {"type":"string"},
480
550
  },
481
551
  },
482
552
  {
483
553
  name: 'options',
484
- wire: 'options',
554
+ description: 'Whether to activate the installed bundle (defaults to true), the request id a cancellation names, the pending build scripts to allow, whether to save an exact dependency, and the registry asked first.',
485
555
  source: 'json',
486
556
  acceptsUndefined: true,
487
557
  codec: {
488
558
  mode: 'strict',
489
559
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#InstallBundleOptions',
490
560
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1$schema,
561
+ 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},
562
+ },
563
+ strictCodec: {
564
+ mode: 'strict',
565
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#InstallBundleOptions',
566
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1_strict$schema,
567
+ 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},
491
568
  },
492
569
  },
493
570
  ],
@@ -495,14 +572,14 @@ export const TYPERT_REMOTE = {
495
572
  mode: 'strict',
496
573
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#ChangeResult',
497
574
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema,
575
+ description: 'Package-manager diagnostics, the registries asked, and the observed activation outcome.',
576
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
498
577
  },
499
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":497,"column":3},
578
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":529,"column":3},
500
579
  },
501
- {
502
- id: '@deepseek-ai/dsh-plugin-manager#pluginManager/listBundles',
580
+ 'pluginManager/listBundles': {
503
581
  service: 'pluginManager',
504
- namespace: 'pluginManager',
505
- method: 'listBundles',
582
+ description: 'Read installed, installation-provided, and offline Official catalog bundles, plus selected non-bundle names. A dependency without a bundle patch is listed, as a `not-bundle` problem, only while it is selected.',
506
583
  invocation: { kind: 'direct' },
507
584
  parameters: [
508
585
  ],
@@ -510,14 +587,14 @@ export const TYPERT_REMOTE = {
510
587
  mode: 'strict',
511
588
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/listBundles:result',
512
589
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema,
590
+ 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
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
513
592
  },
514
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":282,"column":3},
593
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":316,"column":3},
515
594
  },
516
- {
517
- id: '@deepseek-ai/dsh-plugin-manager#pluginManager/listPlugins',
595
+ 'pluginManager/listPlugins': {
518
596
  service: 'pluginManager',
519
- namespace: 'pluginManager',
520
- method: 'listPlugins',
597
+ description: 'Read current plugins, including why a row cannot be changed through the profile patch.',
521
598
  invocation: { kind: 'direct' },
522
599
  parameters: [
523
600
  ],
@@ -525,14 +602,14 @@ export const TYPERT_REMOTE = {
525
602
  mode: 'strict',
526
603
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/listPlugins:result',
527
604
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema,
605
+ description: 'Current runtime entries with persistent patch targets.',
606
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
528
607
  },
529
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":258,"column":9},
608
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":292,"column":9},
530
609
  },
531
- {
532
- id: '@deepseek-ai/dsh-plugin-manager#pluginManager/listVersionExemptions',
610
+ 'pluginManager/listVersionExemptions': {
533
611
  service: 'pluginManager',
534
- namespace: 'pluginManager',
535
- method: 'listVersionExemptions',
612
+ description: 'Read exact plugin-version exemptions saved in this profile.',
536
613
  invocation: { kind: 'direct' },
537
614
  parameters: [
538
615
  ],
@@ -540,14 +617,14 @@ export const TYPERT_REMOTE = {
540
617
  mode: 'strict',
541
618
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/listVersionExemptions:result',
542
619
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_listVersionExemptions_result$schema,
620
+ 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
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
543
622
  },
544
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":234,"column":3},
623
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":268,"column":3},
545
624
  },
546
- {
547
- id: '@deepseek-ai/dsh-plugin-manager#pluginManager/registries',
625
+ 'pluginManager/registries': {
548
626
  service: 'pluginManager',
549
- namespace: 'pluginManager',
550
- method: 'registries',
627
+ description: 'Read the registries this manager asks: the configured first one, its fallbacks in order, and what pnpm\'s own configuration names.',
551
628
  invocation: { kind: 'direct' },
552
629
  parameters: [
553
630
  ],
@@ -555,24 +632,31 @@ export const TYPERT_REMOTE = {
555
632
  mode: 'strict',
556
633
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginRegistries',
557
634
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_registries_result$schema,
635
+ description: 'The registries in pnpm\'s comparison form; null is the one pnpm\'s own configuration names, `resolved` as pnpm reads it now.',
636
+ 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},
558
637
  },
559
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":358,"column":9},
638
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":392,"column":9},
560
639
  },
561
- {
562
- id: '@deepseek-ai/dsh-plugin-manager#pluginManager/removeBundle',
640
+ 'pluginManager/removeBundle': {
563
641
  service: 'pluginManager',
564
- namespace: 'pluginManager',
565
- method: 'removeBundle',
642
+ description: 'Unload and remove a profile-owned bundle dependency through dsh plugin\'s pnpm path; a selected name no dependency holds is only deselected.',
566
643
  invocation: { kind: 'direct' },
567
644
  parameters: [
568
645
  {
569
646
  name: 'name',
570
- wire: 'name',
647
+ description: 'Installed dependency or selected bundle name.',
571
648
  source: 'json',
572
649
  codec: {
573
650
  mode: 'strict',
574
651
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/removeBundle:name',
575
652
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0$schema,
653
+ jsonSchema: {"type":"string"},
654
+ },
655
+ strictCodec: {
656
+ mode: 'strict',
657
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/removeBundle:name',
658
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0_strict$schema,
659
+ jsonSchema: {"type":"string"},
576
660
  },
577
661
  },
578
662
  ],
@@ -580,34 +664,48 @@ export const TYPERT_REMOTE = {
580
664
  mode: 'strict',
581
665
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#ChangeResult',
582
666
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema,
667
+ description: 'Removal diagnostics and the remaining profile state.',
668
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
583
669
  },
584
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":645,"column":3},
670
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":686,"column":3},
585
671
  },
586
- {
587
- id: '@deepseek-ai/dsh-plugin-manager#pluginManager/setBundleEnabled',
672
+ 'pluginManager/setBundleEnabled': {
588
673
  service: 'pluginManager',
589
- namespace: 'pluginManager',
590
- method: 'setBundleEnabled',
674
+ description: 'Select or remove a bundle layer while retaining installed dependencies.',
591
675
  invocation: { kind: 'direct' },
592
676
  parameters: [
593
677
  {
594
678
  name: 'name',
595
- wire: 'name',
679
+ description: 'Bundle package name.',
596
680
  source: 'json',
597
681
  codec: {
598
682
  mode: 'strict',
599
683
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setBundleEnabled:name',
600
684
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0$schema,
685
+ jsonSchema: {"type":"string"},
686
+ },
687
+ strictCodec: {
688
+ mode: 'strict',
689
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setBundleEnabled:name',
690
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0_strict$schema,
691
+ jsonSchema: {"type":"string"},
601
692
  },
602
693
  },
603
694
  {
604
695
  name: 'enabled',
605
- wire: 'enabled',
696
+ description: 'Whether the bundle contributes its patch layer.',
606
697
  source: 'json',
607
698
  codec: {
608
699
  mode: 'strict',
609
700
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setBundleEnabled:enabled',
610
701
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_1$schema,
702
+ jsonSchema: {"type":"boolean"},
703
+ },
704
+ strictCodec: {
705
+ mode: 'strict',
706
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setBundleEnabled:enabled',
707
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_1_strict$schema,
708
+ jsonSchema: {"type":"boolean"},
611
709
  },
612
710
  },
613
711
  ],
@@ -615,34 +713,48 @@ export const TYPERT_REMOTE = {
615
713
  mode: 'strict',
616
714
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#ChangeResult',
617
715
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema,
716
+ description: 'Persisted and runtime outcomes.',
717
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
618
718
  },
619
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":476,"column":3},
719
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":510,"column":3},
620
720
  },
621
- {
622
- id: '@deepseek-ai/dsh-plugin-manager#pluginManager/setPluginEnabled',
721
+ 'pluginManager/setPluginEnabled': {
623
722
  service: 'pluginManager',
624
- namespace: 'pluginManager',
625
- method: 'setPluginEnabled',
723
+ description: 'Persist a plugin entry\'s desired enablement and apply it on live profiles.',
626
724
  invocation: { kind: 'direct' },
627
725
  parameters: [
628
726
  {
629
727
  name: 'id',
630
- wire: 'id',
728
+ description: 'Loader entry identity returned by listPlugins.',
631
729
  source: 'json',
632
730
  codec: {
633
731
  mode: 'strict',
634
732
  typeSymbol: '@deepseek-ai/dsh-host-plugin-inventory/types#PluginEntryId',
635
733
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0$schema,
734
+ jsonSchema: {"type":"string"},
735
+ },
736
+ strictCodec: {
737
+ mode: 'strict',
738
+ typeSymbol: '@deepseek-ai/dsh-host-plugin-inventory/types#PluginEntryId',
739
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0_strict$schema,
740
+ jsonSchema: {"type":"string"},
636
741
  },
637
742
  },
638
743
  {
639
744
  name: 'enabled',
640
- wire: 'enabled',
745
+ description: 'Whether the plugin should run.',
641
746
  source: 'json',
642
747
  codec: {
643
748
  mode: 'strict',
644
749
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setPluginEnabled:enabled',
645
750
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1$schema,
751
+ jsonSchema: {"type":"boolean"},
752
+ },
753
+ strictCodec: {
754
+ mode: 'strict',
755
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setPluginEnabled:enabled',
756
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1_strict$schema,
757
+ jsonSchema: {"type":"boolean"},
646
758
  },
647
759
  },
648
760
  ],
@@ -650,55 +762,83 @@ export const TYPERT_REMOTE = {
650
762
  mode: 'strict',
651
763
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#ChangeResult',
652
764
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema,
765
+ description: 'Saved and runtime outcomes, including higher-priority overrides.',
766
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
653
767
  },
654
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":458,"column":3},
768
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":492,"column":3},
655
769
  },
656
- {
657
- id: '@deepseek-ai/dsh-plugin-manager#pluginManager/setVersionExemption',
770
+ 'pluginManager/setVersionExemption': {
658
771
  service: 'pluginManager',
659
- namespace: 'pluginManager',
660
- method: 'setVersionExemption',
772
+ description: 'Grant or revoke one exact plugin/runtime exemption and reevaluate live plugins.',
661
773
  invocation: { kind: 'direct' },
662
774
  parameters: [
663
775
  {
664
776
  name: 'packageVersion',
665
- wire: 'packageVersion',
777
+ description: 'Exact manifest package name followed by @ and its version; never an installation spec or alias.',
666
778
  source: 'json',
667
779
  codec: {
668
780
  mode: 'strict',
669
781
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setVersionExemption:packageVersion',
670
782
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_0$schema,
783
+ jsonSchema: {"type":"string"},
784
+ },
785
+ strictCodec: {
786
+ mode: 'strict',
787
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setVersionExemption:packageVersion',
788
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_0_strict$schema,
789
+ jsonSchema: {"type":"string"},
671
790
  },
672
791
  },
673
792
  {
674
793
  name: 'runtimeVersion',
675
- wire: 'runtimeVersion',
794
+ description: 'Exact current DSH version for grants; revocation may name a previous runtime.',
676
795
  source: 'json',
677
796
  codec: {
678
797
  mode: 'strict',
679
798
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setVersionExemption:runtimeVersion',
680
799
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_1$schema,
800
+ jsonSchema: {"type":"string"},
801
+ },
802
+ strictCodec: {
803
+ mode: 'strict',
804
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setVersionExemption:runtimeVersion',
805
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_1_strict$schema,
806
+ jsonSchema: {"type":"string"},
681
807
  },
682
808
  },
683
809
  {
684
810
  name: 'enabled',
685
- wire: 'enabled',
811
+ description: 'Whether to grant rather than revoke the exemption.',
686
812
  source: 'json',
687
813
  codec: {
688
814
  mode: 'strict',
689
815
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setVersionExemption:enabled',
690
816
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_2$schema,
817
+ jsonSchema: {"type":"boolean"},
818
+ },
819
+ strictCodec: {
820
+ mode: 'strict',
821
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setVersionExemption:enabled',
822
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_2_strict$schema,
823
+ jsonSchema: {"type":"boolean"},
691
824
  },
692
825
  },
693
826
  {
694
827
  name: 'acceptRisk',
695
- wire: 'acceptRisk',
828
+ description: 'Required true for grants after the user accepts possible crashes and data loss.',
696
829
  source: 'json',
697
830
  acceptsUndefined: true,
698
831
  codec: {
699
832
  mode: 'strict',
700
833
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setVersionExemption:acceptRisk',
701
834
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_3$schema,
835
+ jsonSchema: {"type":"boolean","enum":[false,true]},
836
+ },
837
+ strictCodec: {
838
+ mode: 'strict',
839
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setVersionExemption:acceptRisk',
840
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_parameter_3_strict$schema,
841
+ jsonSchema: {"type":"boolean","enum":[false,true]},
702
842
  },
703
843
  },
704
844
  ],
@@ -706,24 +846,31 @@ export const TYPERT_REMOTE = {
706
846
  mode: 'strict',
707
847
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#ChangeResult',
708
848
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_setVersionExemption_result$schema,
849
+ description: 'Saved and runtime outcomes. Startup-only profiles require restart.',
850
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
709
851
  },
710
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":247,"column":3},
852
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":281,"column":3},
711
853
  },
712
- {
713
- id: '@deepseek-ai/dsh-plugin-manager#pluginManager/waitForInstall',
854
+ 'pluginManager/waitForInstall': {
714
855
  service: 'pluginManager',
715
- namespace: 'pluginManager',
716
- method: 'waitForInstall',
856
+ description: 'Recover the result of an active installation without cancelling it.',
717
857
  invocation: { kind: 'direct' },
718
858
  parameters: [
719
859
  {
720
860
  name: 'requestId',
721
- wire: 'requestId',
861
+ description: 'The id supplied when installation started.',
722
862
  source: 'json',
723
863
  codec: {
724
864
  mode: 'strict',
725
865
  typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginInstallRequestId',
726
866
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$schema,
867
+ jsonSchema: {"type":"string"},
868
+ },
869
+ strictCodec: {
870
+ mode: 'strict',
871
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginInstallRequestId',
872
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0_strict$schema,
873
+ jsonSchema: {"type":"string"},
727
874
  },
728
875
  },
729
876
  ],
@@ -731,10 +878,12 @@ export const TYPERT_REMOTE = {
731
878
  mode: 'strict',
732
879
  typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/waitForInstall:result',
733
880
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema,
881
+ 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
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
734
883
  },
735
- sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":618,"column":9},
884
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":659,"column":9},
736
885
  },
737
- ],
738
- }
886
+ },
887
+ }, z)
739
888
 
740
889
  export default TYPERT_REMOTE