@deepseek-ai/dsh-plugin-manager 0.1.6-alpha.2

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.
@@ -0,0 +1,3 @@
1
+ /* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
2
+
3
+ export declare const TYPERT: unknown
@@ -0,0 +1,604 @@
1
+ /* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
2
+ import { z } from 'zod'
3
+
4
+ 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()))
6
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_result$schema$value
7
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_result$schema$value ??= z.object({
8
+ 'status': z.union([z.literal("cancelled"), z.literal("not-running"), z.literal("too-late")]).readonly(),
9
+ }))
10
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0$schema$value
11
+ 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
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema$value
13
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema$value ??= z.union([z.object({
14
+ 'status': z.literal("accepted").readonly(),
15
+ 'kind': z.union([z.literal("registry"), z.literal("path"), z.literal("git"), z.literal("tarball")]).readonly(),
16
+ 'name': z.string().readonly().optional(),
17
+ 'version': z.string().readonly().optional(),
18
+ 'description': z.string().readonly().optional(),
19
+ 'bundle': z.union([z.literal(null), z.literal(false), z.literal(true)]).readonly(),
20
+ }), z.object({
21
+ 'status': z.literal("refused").readonly(),
22
+ 'problem': z.union([z.literal("invalid-spec"), z.literal("already-installed"), z.literal("not-found"), z.literal("not-a-package"), z.literal("not-a-bundle"), z.literal("network"), z.literal("unknown")]).readonly(),
23
+ 'reason': z.string().readonly(),
24
+ })]))
25
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0$schema$value
26
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0$schema$value ??= z.string())
27
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1$schema$value
28
+ 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({
29
+ 'enabled': z.boolean().optional(),
30
+ 'requestId': z.intersection(z.string(), z.unknown()).optional(),
31
+ 'approvedBuilds': z.array(z.string()).optional(),
32
+ })]))
33
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema$value
34
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema$value ??= z.object({
35
+ 'changed': z.boolean(),
36
+ 'application': z.union([z.literal("failed"), z.literal("cancelled"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]),
37
+ 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]),
38
+ 'target': z.string(),
39
+ 'enabled': z.boolean().optional(),
40
+ 'error': z.object({
41
+ '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("operation-error")]),
42
+ 'diagnostic': z.string().optional(),
43
+ }).optional(),
44
+ 'warnings': z.array(z.string()).optional(),
45
+ 'packageResult': z.object({
46
+ 'exitCode': z.number(),
47
+ 'output': z.string(),
48
+ 'truncated': z.boolean(),
49
+ 'logPath': z.string(),
50
+ 'kind': z.union([z.literal("not-found"), z.literal("network"), z.literal("unknown"), z.literal("pnpm-missing"), z.literal("timeout"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked"), z.literal("integrity")]).optional(),
51
+ }).optional(),
52
+ 'bundle': z.string().optional(),
53
+ 'pendingBuilds': z.array(z.string()).optional(),
54
+ 'approvedBuilds': z.array(z.string()).optional(),
55
+ }))
56
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema$value
57
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema$value ??= z.array(z.object({
58
+ 'name': z.string(),
59
+ 'version': z.string().optional(),
60
+ 'description': z.string().optional(),
61
+ 'enabled': z.boolean(),
62
+ 'installed': z.boolean(),
63
+ 'optional': z.boolean(),
64
+ 'removable': z.boolean(),
65
+ 'readOnlyReason': z.union([z.literal("management-required"), z.literal("unaddressable")]).optional(),
66
+ 'error': z.object({
67
+ '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("operation-error")]),
68
+ 'diagnostic': z.string().optional(),
69
+ }).optional(),
70
+ 'rows': z.array(z.object({
71
+ 'rowId': z.string(),
72
+ 'moduleName': z.string(),
73
+ 'entryId': z.intersection(z.string(), z.unknown()).optional(),
74
+ })),
75
+ 'overrides': z.array(z.string()),
76
+ })))
77
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema$value
78
+ 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({
79
+ 'entryId': z.intersection(z.string(), z.unknown()).readonly(),
80
+ 'moduleName': z.string().readonly(),
81
+ 'enabled': z.boolean().readonly(),
82
+ 'fiberPhase': z.union([z.literal(null), z.literal("pending"), z.literal("active"), z.literal("failed"), z.literal("loading"), z.literal("unloading")]).readonly(),
83
+ }), z.object({
84
+ 'patchId': z.string(),
85
+ 'readOnlyReason': z.never().optional(),
86
+ })), z.intersection(z.object({
87
+ 'entryId': z.intersection(z.string(), z.unknown()).readonly(),
88
+ 'moduleName': z.string().readonly(),
89
+ 'enabled': z.boolean().readonly(),
90
+ 'fiberPhase': z.union([z.literal(null), z.literal("pending"), z.literal("active"), z.literal("failed"), z.literal("loading"), z.literal("unloading")]).readonly(),
91
+ }), z.object({
92
+ 'patchId': z.never().optional(),
93
+ 'readOnlyReason': z.union([z.literal("management-required"), z.literal("unaddressable")]),
94
+ }))])))
95
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0$schema$value
96
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0$schema$value ??= z.string())
97
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema$value
98
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema$value ??= z.object({
99
+ 'changed': z.boolean(),
100
+ 'application': z.union([z.literal("failed"), z.literal("cancelled"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]),
101
+ 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]),
102
+ 'target': z.string(),
103
+ 'enabled': z.boolean().optional(),
104
+ 'error': z.object({
105
+ '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("operation-error")]),
106
+ 'diagnostic': z.string().optional(),
107
+ }).optional(),
108
+ 'warnings': z.array(z.string()).optional(),
109
+ 'packageResult': z.object({
110
+ 'exitCode': z.number(),
111
+ 'output': z.string(),
112
+ 'truncated': z.boolean(),
113
+ 'logPath': z.string(),
114
+ 'kind': z.union([z.literal("not-found"), z.literal("network"), z.literal("unknown"), z.literal("pnpm-missing"), z.literal("timeout"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked"), z.literal("integrity")]).optional(),
115
+ }).optional(),
116
+ 'bundle': z.string().optional(),
117
+ 'pendingBuilds': z.array(z.string()).optional(),
118
+ 'approvedBuilds': z.array(z.string()).optional(),
119
+ }))
120
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0$schema$value
121
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0$schema$value ??= z.string())
122
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_1$schema$value
123
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_1$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_1$schema$value ??= z.boolean())
124
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema$value
125
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema$value ??= z.object({
126
+ 'changed': z.boolean(),
127
+ 'application': z.union([z.literal("failed"), z.literal("cancelled"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]),
128
+ 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]),
129
+ 'target': z.string(),
130
+ 'enabled': z.boolean().optional(),
131
+ 'error': z.object({
132
+ '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("operation-error")]),
133
+ 'diagnostic': z.string().optional(),
134
+ }).optional(),
135
+ 'warnings': z.array(z.string()).optional(),
136
+ 'packageResult': z.object({
137
+ 'exitCode': z.number(),
138
+ 'output': z.string(),
139
+ 'truncated': z.boolean(),
140
+ 'logPath': z.string(),
141
+ 'kind': z.union([z.literal("not-found"), z.literal("network"), z.literal("unknown"), z.literal("pnpm-missing"), z.literal("timeout"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked"), z.literal("integrity")]).optional(),
142
+ }).optional(),
143
+ 'bundle': z.string().optional(),
144
+ 'pendingBuilds': z.array(z.string()).optional(),
145
+ 'approvedBuilds': z.array(z.string()).optional(),
146
+ }))
147
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0$schema$value
148
+ 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()))
149
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1$schema$value
150
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1$schema$value ??= z.boolean())
151
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema$value
152
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema = () => (_deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema$value ??= z.object({
153
+ 'changed': z.boolean(),
154
+ 'application': z.union([z.literal("failed"), z.literal("cancelled"), z.literal("applied"), z.literal("restart-required"), z.literal("overridden")]),
155
+ 'stage': z.union([z.literal("remove"), z.literal("install"), z.literal("enable")]),
156
+ 'target': z.string(),
157
+ 'enabled': z.boolean().optional(),
158
+ 'error': z.object({
159
+ '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("operation-error")]),
160
+ 'diagnostic': z.string().optional(),
161
+ }).optional(),
162
+ 'warnings': z.array(z.string()).optional(),
163
+ 'packageResult': z.object({
164
+ 'exitCode': z.number(),
165
+ 'output': z.string(),
166
+ 'truncated': z.boolean(),
167
+ 'logPath': z.string(),
168
+ 'kind': z.union([z.literal("not-found"), z.literal("network"), z.literal("unknown"), z.literal("pnpm-missing"), z.literal("timeout"), z.literal("no-matching-version"), z.literal("disk-full"), z.literal("permission"), z.literal("build-blocked"), z.literal("integrity")]).optional(),
169
+ }).optional(),
170
+ 'bundle': z.string().optional(),
171
+ 'pendingBuilds': z.array(z.string()).optional(),
172
+ 'approvedBuilds': z.array(z.string()).optional(),
173
+ }))
174
+
175
+ export const TYPERT = {
176
+ package: '@deepseek-ai/dsh-plugin-manager',
177
+ face: 'host',
178
+ schemas: [
179
+ ],
180
+ invocations: [
181
+ {
182
+ id: '@deepseek-ai/dsh-plugin-manager#pluginManager/cancelInstall',
183
+ service: 'pluginManager',
184
+ namespace: 'pluginManager',
185
+ method: 'cancelInstall',
186
+ invocation: { kind: 'direct' },
187
+ parameters: [
188
+ {
189
+ name: 'requestId',
190
+ wire: 'requestId',
191
+ source: 'json',
192
+ codec: {
193
+ mode: 'strict',
194
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginInstallRequestId',
195
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_parameter_0$schema,
196
+ },
197
+ },
198
+ ],
199
+ result: {
200
+ mode: 'strict',
201
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginInstallCancellation',
202
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_cancelInstall_result$schema,
203
+ },
204
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":406,"column":9},
205
+ },
206
+ {
207
+ id: '@deepseek-ai/dsh-plugin-manager#pluginManager/inspect',
208
+ service: 'pluginManager',
209
+ namespace: 'pluginManager',
210
+ method: 'inspect',
211
+ invocation: { kind: 'direct' },
212
+ parameters: [
213
+ {
214
+ name: 'spec',
215
+ wire: 'spec',
216
+ source: 'json',
217
+ codec: {
218
+ mode: 'strict',
219
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/inspect:spec',
220
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0$schema,
221
+ },
222
+ },
223
+ ],
224
+ cancellation: { parameter: 'signal' },
225
+ result: {
226
+ mode: 'strict',
227
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#PluginSpecInspection',
228
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema,
229
+ },
230
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":233,"column":9},
231
+ },
232
+ {
233
+ id: '@deepseek-ai/dsh-plugin-manager#pluginManager/installBundle',
234
+ service: 'pluginManager',
235
+ namespace: 'pluginManager',
236
+ method: 'installBundle',
237
+ invocation: { kind: 'direct' },
238
+ parameters: [
239
+ {
240
+ name: 'spec',
241
+ wire: 'spec',
242
+ source: 'json',
243
+ codec: {
244
+ mode: 'strict',
245
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/installBundle:spec',
246
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0$schema,
247
+ },
248
+ },
249
+ {
250
+ name: 'options',
251
+ wire: 'options',
252
+ source: 'json',
253
+ acceptsUndefined: true,
254
+ codec: {
255
+ mode: 'strict',
256
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#InstallBundleOptions',
257
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1$schema,
258
+ },
259
+ },
260
+ ],
261
+ result: {
262
+ mode: 'strict',
263
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#ChangeResult',
264
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema,
265
+ },
266
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":338,"column":3},
267
+ },
268
+ {
269
+ id: '@deepseek-ai/dsh-plugin-manager#pluginManager/listBundles',
270
+ service: 'pluginManager',
271
+ namespace: 'pluginManager',
272
+ method: 'listBundles',
273
+ invocation: { kind: 'direct' },
274
+ parameters: [
275
+ ],
276
+ result: {
277
+ mode: 'strict',
278
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/listBundles:result',
279
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema,
280
+ },
281
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":194,"column":3},
282
+ },
283
+ {
284
+ id: '@deepseek-ai/dsh-plugin-manager#pluginManager/listPlugins',
285
+ service: 'pluginManager',
286
+ namespace: 'pluginManager',
287
+ method: 'listPlugins',
288
+ invocation: { kind: 'direct' },
289
+ parameters: [
290
+ ],
291
+ result: {
292
+ mode: 'strict',
293
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/listPlugins:result',
294
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema,
295
+ },
296
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":170,"column":9},
297
+ },
298
+ {
299
+ id: '@deepseek-ai/dsh-plugin-manager#pluginManager/removeBundle',
300
+ service: 'pluginManager',
301
+ namespace: 'pluginManager',
302
+ method: 'removeBundle',
303
+ invocation: { kind: 'direct' },
304
+ parameters: [
305
+ {
306
+ name: 'name',
307
+ wire: 'name',
308
+ source: 'json',
309
+ codec: {
310
+ mode: 'strict',
311
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/removeBundle:name',
312
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0$schema,
313
+ },
314
+ },
315
+ ],
316
+ result: {
317
+ mode: 'strict',
318
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#ChangeResult',
319
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema,
320
+ },
321
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":421,"column":3},
322
+ },
323
+ {
324
+ id: '@deepseek-ai/dsh-plugin-manager#pluginManager/setBundleEnabled',
325
+ service: 'pluginManager',
326
+ namespace: 'pluginManager',
327
+ method: 'setBundleEnabled',
328
+ invocation: { kind: 'direct' },
329
+ parameters: [
330
+ {
331
+ name: 'name',
332
+ wire: 'name',
333
+ source: 'json',
334
+ codec: {
335
+ mode: 'strict',
336
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setBundleEnabled:name',
337
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0$schema,
338
+ },
339
+ },
340
+ {
341
+ name: 'enabled',
342
+ wire: 'enabled',
343
+ source: 'json',
344
+ codec: {
345
+ mode: 'strict',
346
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setBundleEnabled:enabled',
347
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_1$schema,
348
+ },
349
+ },
350
+ ],
351
+ result: {
352
+ mode: 'strict',
353
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#ChangeResult',
354
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema,
355
+ },
356
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":321,"column":3},
357
+ },
358
+ {
359
+ id: '@deepseek-ai/dsh-plugin-manager#pluginManager/setPluginEnabled',
360
+ service: 'pluginManager',
361
+ namespace: 'pluginManager',
362
+ method: 'setPluginEnabled',
363
+ invocation: { kind: 'direct' },
364
+ parameters: [
365
+ {
366
+ name: 'id',
367
+ wire: 'id',
368
+ source: 'json',
369
+ codec: {
370
+ mode: 'strict',
371
+ typeSymbol: '@deepseek-ai/dsh-host-plugin-inventory/types#PluginEntryId',
372
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0$schema,
373
+ },
374
+ },
375
+ {
376
+ name: 'enabled',
377
+ wire: 'enabled',
378
+ source: 'json',
379
+ codec: {
380
+ mode: 'strict',
381
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager#pluginManager/setPluginEnabled:enabled',
382
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_1$schema,
383
+ },
384
+ },
385
+ ],
386
+ result: {
387
+ mode: 'strict',
388
+ typeSymbol: '@deepseek-ai/dsh-plugin-manager/types#ChangeResult',
389
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema,
390
+ },
391
+ sourceLocation: {"file":"packages/boot/plugin-manager/src/index.ts","line":303,"column":3},
392
+ },
393
+ ],
394
+ model: {
395
+ "services": [
396
+ {
397
+ "description": "Manage profile files and apply their declared reload lifecycle.",
398
+ "summary": "Manage profile files and apply their declared reload lifecycle.",
399
+ "tags": [],
400
+ "jsDoc": "/** Manage profile files and apply their declared reload lifecycle. */",
401
+ "key": "pluginManager",
402
+ "exportName": "PluginManager",
403
+ "members": [
404
+ {
405
+ "kind": "method",
406
+ "name": "listPlugins",
407
+ "signature": "@Remote async listPlugins(): Promise<PluginInfo[]>",
408
+ "summary": "Read current plugins, including why a row cannot be changed through the profile patch.",
409
+ "jsDoc": "/** Read current plugins, including why a row cannot be changed through the profile patch.\n * @returns Current runtime entries with persistent patch targets.\n */"
410
+ },
411
+ {
412
+ "kind": "method",
413
+ "name": "listBundles",
414
+ "signature": "@Remote listBundles(): Promise<BundleInfo[]>",
415
+ "summary": "Read the profile's installed bundles, the bundles this dsh installation supplies, and the selected names that are not bundles.",
416
+ "jsDoc": "/** Read the profile's installed bundles, the bundles this dsh installation supplies, and the selected names that are not bundles.\n * A dependency without a bundle patch is listed, as a `not-bundle` problem, only while it is selected.\n * @returns Package versions, one-liners, rows, activation selections, whether the installation offers the\n * bundle, and removal availability.\n */"
417
+ },
418
+ {
419
+ "kind": "method",
420
+ "name": "inspect",
421
+ "signature": "@Remote async inspect(spec: string, signal?: AbortSignal): Promise<PluginSpecInspection>",
422
+ "summary": "Read what a spec names before installing it.",
423
+ "jsDoc": "/** Read what a spec names before installing it.\n * @param spec One package spec: a registry name, an absolute path, a git address, or a tarball.\n * @param signal Ends a registry lookup early.\n * @returns The package the spec names, or why it is refused.\n */"
424
+ },
425
+ {
426
+ "kind": "method",
427
+ "name": "setPluginEnabled",
428
+ "signature": "@Remote setPluginEnabled(id: PluginEntryId, enabled: boolean): Promise<ChangeResult>",
429
+ "summary": "Persist a plugin entry's desired enablement and apply it on live profiles.",
430
+ "jsDoc": "/** Persist a plugin entry's desired enablement and apply it on live profiles.\n * @param id Loader entry identity returned by listPlugins.\n * @param enabled Whether the plugin should run.\n * @returns Saved and runtime outcomes, including higher-priority overrides.\n */"
431
+ },
432
+ {
433
+ "kind": "method",
434
+ "name": "setBundleEnabled",
435
+ "signature": "@Remote setBundleEnabled(name: string, enabled: boolean): Promise<ChangeResult>",
436
+ "summary": "Select or remove a bundle layer while retaining installed dependencies.",
437
+ "jsDoc": "/** Select or remove a bundle layer while retaining installed dependencies.\n * @param name Bundle package name.\n * @param enabled Whether the bundle contributes its patch layer.\n * @returns Persisted and runtime outcomes.\n */"
438
+ },
439
+ {
440
+ "kind": "method",
441
+ "name": "installBundle",
442
+ "signature": "@Remote installBundle(spec: string, options?: InstallBundleOptions): Promise<ChangeResult>",
443
+ "summary": "Install a package using the same pnpm implementation as dsh plugin.",
444
+ "jsDoc": "/**\n * Install a package using the same pnpm implementation as dsh plugin. A run\n * that fails, is cancelled, or adds a package without a bundle patch restores\n * `package.json` and `pnpm-lock.yaml` as they were; downloaded files can stay.\n * @param spec One package spec, including local paths relative to the invocation directory.\n * @param options Whether to activate the installed bundle (defaults to true), the request id a cancellation names, and\n * the pending build scripts to allow for this profile before pnpm runs.\n * @returns Package-manager diagnostics and observed activation outcome.\n */"
445
+ },
446
+ {
447
+ "kind": "method",
448
+ "name": "cancelInstall",
449
+ "signature": "@Remote async cancelInstall(requestId: PluginInstallRequestId): Promise<PluginInstallCancellation>",
450
+ "summary": "Stop an installation this manager owns and wait until its files are back.",
451
+ "jsDoc": "/** Stop an installation this manager owns and wait until its files are back.\n * @param requestId The id the installation was started with.\n * @returns `cancelled` once pnpm exited and the files are restored, `too-late` once the bundle is being\n * applied, `not-running` for any other id.\n */"
452
+ },
453
+ {
454
+ "kind": "method",
455
+ "name": "removeBundle",
456
+ "signature": "@Remote removeBundle(name: string): Promise<ChangeResult>",
457
+ "summary": "Unload and remove a profile-owned bundle dependency through dsh plugin's pnpm path.",
458
+ "jsDoc": "/** Unload and remove a profile-owned bundle dependency through dsh plugin's pnpm path.\n * @param name Installed dependency name.\n * @returns Removal diagnostics and the remaining profile state.\n */"
459
+ }
460
+ ],
461
+ "types": [
462
+ {
463
+ "name": "Branded",
464
+ "declaration": "export type Branded<B extends string> = string & { readonly [BRAND]: B; };"
465
+ },
466
+ {
467
+ "name": "BundleInfo",
468
+ "declaration": "export interface BundleInfo {\n name: string;\n version?: string;\n description?: string;\n enabled: boolean;\n installed: boolean;\n optional: boolean;\n removable: boolean;\n readOnlyReason?: ReadOnlyReason;\n error?: ManagementError;\n rows: BundleRowInfo[];\n overrides: string[];\n}"
469
+ },
470
+ {
471
+ "name": "BundleRowInfo",
472
+ "declaration": "export interface BundleRowInfo {\n rowId: string;\n moduleName: string;\n entryId?: PluginEntryId;\n}"
473
+ },
474
+ {
475
+ "name": "ChangeResult",
476
+ "declaration": "export interface ChangeResult {\n changed: boolean;\n application: 'applied' | 'restart-required' | 'overridden' | 'failed' | 'cancelled';\n stage: 'install' | 'enable' | 'remove';\n target: string;\n enabled?: boolean;\n error?: ManagementError;\n warnings?: string[];\n packageResult?: PackageResult;\n bundle?: string;\n pendingBuilds?: string[];\n approvedBuilds?: string[];\n}"
477
+ },
478
+ {
479
+ "name": "InstallBundleOptions",
480
+ "declaration": "export interface InstallBundleOptions {\n enabled?: boolean;\n requestId?: PluginInstallRequestId;\n approvedBuilds?: string[];\n}"
481
+ },
482
+ {
483
+ "name": "InstallSpecKind",
484
+ "declaration": "export type InstallSpecKind = 'registry' | 'path' | 'git' | 'tarball';"
485
+ },
486
+ {
487
+ "name": "ManagementError",
488
+ "declaration": "export interface ManagementError {\n code: ReadOnlyReason | 'unknown-plugin' | 'invalid-spec' | 'ambiguous-install' | 'not-bundle' | 'not-removable' | 'stop-profile' | 'bundle-in-use' | 'stale-approval' | 'operation-error';\n diagnostic?: string;\n}"
489
+ },
490
+ {
491
+ "name": "PackageResult",
492
+ "declaration": "export interface PackageResult {\n exitCode: number;\n output: string;\n truncated: boolean;\n logPath: string;\n kind?: PluginInstallFailureKind;\n}"
493
+ },
494
+ {
495
+ "name": "PluginEntryId",
496
+ "declaration": "export type PluginEntryId = Branded<'PluginEntryId'>;"
497
+ },
498
+ {
499
+ "name": "PluginFiberPhase",
500
+ "declaration": "export type PluginFiberPhase = 'pending' | 'loading' | 'active' | 'failed' | 'unloading' | null;"
501
+ },
502
+ {
503
+ "name": "PluginInfo",
504
+ "declaration": "export type PluginInfo = PluginInventoryEntry & ({ patchId: string; readOnlyReason?: never; } | { patchId?: never; readOnlyReason: ReadOnlyReason; });"
505
+ },
506
+ {
507
+ "name": "PluginInspectProblem",
508
+ "declaration": "export type PluginInspectProblem = 'invalid-spec' | 'already-installed' | 'not-found' | 'not-a-package' | 'not-a-bundle' | 'network' | 'unknown';"
509
+ },
510
+ {
511
+ "name": "PluginInstallCancellation",
512
+ "declaration": "export interface PluginInstallCancellation {\n readonly status: 'cancelled' | 'too-late' | 'not-running';\n}"
513
+ },
514
+ {
515
+ "name": "PluginInstallFailureKind",
516
+ "declaration": "export type PluginInstallFailureKind = 'pnpm-missing' | 'timeout' | 'not-found' | 'no-matching-version' | 'network' | 'disk-full' | 'permission' | 'build-blocked' | 'integrity' | 'unknown';"
517
+ },
518
+ {
519
+ "name": "PluginInstallRequestId",
520
+ "declaration": "export type PluginInstallRequestId = Branded<'PluginInstallRequestId'>;"
521
+ },
522
+ {
523
+ "name": "PluginInventoryEntry",
524
+ "declaration": "export interface PluginInventoryEntry {\n readonly entryId: PluginEntryId;\n readonly moduleName: string;\n readonly enabled: boolean;\n readonly fiberPhase: PluginFiberPhase;\n}"
525
+ },
526
+ {
527
+ "name": "PluginSpecInspection",
528
+ "declaration": "export type PluginSpecInspection = { readonly status: 'accepted'; readonly kind: InstallSpecKind; readonly name?: string; readonly version?: string; readonly description?: string; readonly bundle: boolean | null; } | { readonly status: 'refused'; readonly problem: PluginInspectProblem; readonly reason: string; };"
529
+ },
530
+ {
531
+ "name": "ReadOnlyReason",
532
+ "declaration": "export type ReadOnlyReason = 'management-required' | 'unaddressable';"
533
+ }
534
+ ]
535
+ }
536
+ ],
537
+ "events": [
538
+ {
539
+ "description": "The profile's plugins, bundles, or composition changed: a manager operation completed. A patch generation applied outside the manager, by HMR's watcher after a CLI or hand edit, announces nothing here.",
540
+ "summary": "The profile's plugins, bundles, or composition changed: a manager operation completed.",
541
+ "tags": [
542
+ {
543
+ "name": "mode",
544
+ "comment": "emit",
545
+ "text": "@mode emit\n *"
546
+ },
547
+ {
548
+ "name": "param",
549
+ "argument": "change",
550
+ "comment": "- what changed.",
551
+ "text": "@param change - what changed."
552
+ }
553
+ ],
554
+ "jsDoc": "/**\n * The profile's plugins, bundles, or composition changed: a manager\n * operation completed. A patch generation applied outside the manager,\n * by HMR's watcher after a CLI or hand edit, announces nothing here.\n * @mode emit\n * @param change - what changed.\n */",
555
+ "name": "plugin-manager/changed",
556
+ "mode": "emit",
557
+ "signature": "'plugin-manager/changed'(change: PluginChange): void"
558
+ },
559
+ {
560
+ "description": "One chunk of a pnpm run's output, streamed as the run produces it.",
561
+ "summary": "One chunk of a pnpm run's output, streamed as the run produces it.",
562
+ "tags": [
563
+ {
564
+ "name": "mode",
565
+ "comment": "emit",
566
+ "text": "@mode emit\n *"
567
+ },
568
+ {
569
+ "name": "param",
570
+ "argument": "chunk",
571
+ "comment": "- the chunk and the run it belongs to.",
572
+ "text": "@param chunk - the chunk and the run it belongs to."
573
+ }
574
+ ],
575
+ "jsDoc": "/**\n * One chunk of a pnpm run's output, streamed as the run produces it.\n * @mode emit\n * @param chunk - the chunk and the run it belongs to.\n */",
576
+ "name": "plugin-manager/install-log",
577
+ "mode": "emit",
578
+ "signature": "'plugin-manager/install-log'(chunk: PluginInstallLogChunk): void"
579
+ },
580
+ {
581
+ "description": "An installation moved between its Host phases.",
582
+ "summary": "An installation moved between its Host phases.",
583
+ "tags": [
584
+ {
585
+ "name": "mode",
586
+ "comment": "emit",
587
+ "text": "@mode emit\n *"
588
+ },
589
+ {
590
+ "name": "param",
591
+ "argument": "progress",
592
+ "comment": "- the installation's request id and phase.",
593
+ "text": "@param progress - the installation's request id and phase."
594
+ }
595
+ ],
596
+ "jsDoc": "/**\n * An installation moved between its Host phases.\n * @mode emit\n * @param progress - the installation's request id and phase.\n */",
597
+ "name": "plugin-manager/install-state",
598
+ "mode": "emit",
599
+ "signature": "'plugin-manager/install-state'(progress: PluginInstallProgress): void"
600
+ }
601
+ ],
602
+ "objects": []
603
+ },
604
+ }
@@ -0,0 +1,37 @@
1
+ /* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
2
+ import type {
3
+ RemoteResult,
4
+ TypertRemoteContribution,
5
+ } from '@deepseek-ai/dsh-typert-protocol'
6
+ import type { PluginEntryId } from '@deepseek-ai/dsh-host-plugin-inventory/types'
7
+ import type { BundleInfo, ChangeResult, InstallBundleOptions, PluginInfo, PluginInstallCancellation, PluginInstallRequestId, PluginSpecInspection } from '@deepseek-ai/dsh-plugin-manager/types'
8
+
9
+ declare module '@deepseek-ai/dsh-typert-protocol' {
10
+ interface TypertRemoteNamespace$706c7567696e4d616e61676572 {
11
+ cancelInstall: (requestId: PluginInstallRequestId) => Promise<RemoteResult<PluginInstallCancellation>>
12
+ inspect: (spec: string, signal?: AbortSignal) => Promise<RemoteResult<PluginSpecInspection>>
13
+ installBundle: (spec: string, options?: InstallBundleOptions) => Promise<RemoteResult<ChangeResult>>
14
+ listBundles: () => Promise<RemoteResult<BundleInfo[]>>
15
+ listPlugins: () => Promise<RemoteResult<PluginInfo[]>>
16
+ removeBundle: (name: string) => Promise<RemoteResult<ChangeResult>>
17
+ setBundleEnabled: (name: string, enabled: boolean) => Promise<RemoteResult<ChangeResult>>
18
+ setPluginEnabled: (id: PluginEntryId, enabled: boolean) => Promise<RemoteResult<ChangeResult>>
19
+ }
20
+ interface TypertRemoteMap {
21
+ 'pluginManager/cancelInstall': (requestId: PluginInstallRequestId) => Promise<RemoteResult<PluginInstallCancellation>>
22
+ 'pluginManager/inspect': (spec: string, signal?: AbortSignal) => Promise<RemoteResult<PluginSpecInspection>>
23
+ 'pluginManager/installBundle': (spec: string, options?: InstallBundleOptions) => Promise<RemoteResult<ChangeResult>>
24
+ 'pluginManager/listBundles': () => Promise<RemoteResult<BundleInfo[]>>
25
+ 'pluginManager/listPlugins': () => Promise<RemoteResult<PluginInfo[]>>
26
+ 'pluginManager/removeBundle': (name: string) => Promise<RemoteResult<ChangeResult>>
27
+ 'pluginManager/setBundleEnabled': (name: string, enabled: boolean) => Promise<RemoteResult<ChangeResult>>
28
+ 'pluginManager/setPluginEnabled': (id: PluginEntryId, enabled: boolean) => Promise<RemoteResult<ChangeResult>>
29
+ }
30
+ interface TypertRemoteNamespaceMap {
31
+ 'pluginManager': TypertRemoteNamespace$706c7567696e4d616e61676572
32
+ }
33
+ }
34
+
35
+ export declare const TYPERT_REMOTE: TypertRemoteContribution
36
+ export default TYPERT_REMOTE
37
+ //# sourceMappingURL=typert.remote-client.d.ts.map