dsh-dty 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +224 -2
  3. package/assets/icon.png +0 -0
  4. package/cordis.patch.yml +9 -0
  5. package/lib/client.js +13201 -0
  6. package/lib/index.js +7275 -0
  7. package/lib/typert.host.d.ts +3 -0
  8. package/lib/typert.host.js +724 -0
  9. package/lib/typert.remote-client.d.ts +46 -0
  10. package/lib/typert.remote-client.js +512 -0
  11. package/lib/types/client/EntryIcon.d.ts +27 -0
  12. package/lib/types/client/FoldableRedBlock.d.ts +27 -0
  13. package/lib/types/client/ShopDetailAction.d.ts +46 -0
  14. package/lib/types/client/ShopGlyph.d.ts +12 -0
  15. package/lib/types/client/ShopPage.d.ts +27 -0
  16. package/lib/types/client/ShopTab.d.ts +110 -0
  17. package/lib/types/client/flow-registry.d.ts +91 -0
  18. package/lib/types/client/index.d.ts +89 -0
  19. package/lib/types/client/listeners.d.ts +27 -0
  20. package/lib/types/client/locales.d.ts +427 -0
  21. package/lib/types/client/module-table.d.ts +131 -0
  22. package/lib/types/client/page-store.d.ts +259 -0
  23. package/lib/types/client/present.d.ts +627 -0
  24. package/lib/types/client/restart-monitor.d.ts +156 -0
  25. package/lib/types/client/useFlows.d.ts +88 -0
  26. package/lib/types/client/useFoldableRedBlock.d.ts +36 -0
  27. package/lib/types/client/useUpdateSelf.d.ts +28 -0
  28. package/lib/types/host/activation.d.ts +58 -0
  29. package/lib/types/host/bundle-patch.d.ts +35 -0
  30. package/lib/types/host/catalog.d.ts +82 -0
  31. package/lib/types/host/child-env.d.ts +36 -0
  32. package/lib/types/host/client-half.d.ts +28 -0
  33. package/lib/types/host/compatibility.d.ts +244 -0
  34. package/lib/types/host/dsh-cli.d.ts +88 -0
  35. package/lib/types/host/executor.d.ts +288 -0
  36. package/lib/types/host/harness.d.ts +166 -0
  37. package/lib/types/host/hot.d.ts +134 -0
  38. package/lib/types/host/index.d.ts +965 -0
  39. package/lib/types/host/install.d.ts +69 -0
  40. package/lib/types/host/manager-runner.d.ts +81 -0
  41. package/lib/types/host/npm-origin.d.ts +28 -0
  42. package/lib/types/host/npmrc.d.ts +23 -0
  43. package/lib/types/host/origin.d.ts +46 -0
  44. package/lib/types/host/peers.d.ts +269 -0
  45. package/lib/types/host/plugin-manager.d.ts +144 -0
  46. package/lib/types/host/prefetch.d.ts +67 -0
  47. package/lib/types/host/profile.d.ts +173 -0
  48. package/lib/types/host/race.d.ts +41 -0
  49. package/lib/types/host/repo-pins.d.ts +22 -0
  50. package/lib/types/host/restart.d.ts +76 -0
  51. package/lib/types/host/self-update.d.ts +17 -0
  52. package/lib/types/host/state.d.ts +118 -0
  53. package/lib/types/host/supervisor.d.ts +15 -0
  54. package/lib/types/host/types.d.ts +166 -0
  55. package/lib/types/index.d.ts +3 -0
  56. package/lib/types/own-version.d.ts +45 -0
  57. package/lib/types/shared/identity.d.ts +97 -0
  58. package/lib/types/shared/install-state.d.ts +16 -0
  59. package/lib/types/shared/npm-name.d.ts +42 -0
  60. package/lib/types/shared/shop-like.d.ts +32 -0
  61. package/lib/types/shared/tar.d.ts +18 -0
  62. package/lib/types/shared/zh-intents.d.ts +89 -0
  63. package/package.json +136 -3
@@ -0,0 +1,46 @@
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 { InstallArgs, ShopCatalogResult, ShopInstalledEntry, ShopInstallResult, ShopInstallStatusResult, ShopRestartResult, ShopSetEnabledResult, ShopStateResult, ShopUninstallResult, ShopUpdateResult, ShopVersionResult } from 'dsh-dty/types'
7
+
8
+ declare module '@deepseek-ai/dsh-typert-protocol' {
9
+ interface TypertRemoteNamespace$73686f70 {
10
+ catalog: (args?: { refresh?: boolean; }) => Promise<RemoteResult<ShopCatalogResult>>
11
+ installed: () => Promise<RemoteResult<ShopInstalledEntry[]>>
12
+ installedSpecs: () => Promise<RemoteResult<Record<string, string> | null>>
13
+ installStart: (args: InstallArgs) => Promise<RemoteResult<ShopInstallResult>>
14
+ installStatus: (args: { installId: string; }) => Promise<RemoteResult<ShopInstallStatusResult>>
15
+ restart: () => Promise<RemoteResult<ShopRestartResult>>
16
+ rollbackStart: (args: { key: string; }) => Promise<RemoteResult<ShopInstallResult>>
17
+ setEnabled: (args: { name: string; enabled: boolean; }) => Promise<RemoteResult<ShopSetEnabledResult>>
18
+ setFavorite: (args: { key: string; favorite: boolean; }) => Promise<RemoteResult<{ ok: boolean; detail?: string; }>>
19
+ state: () => Promise<RemoteResult<ShopStateResult>>
20
+ uninstallStart: (args: { name: string; }) => Promise<RemoteResult<ShopUninstallResult>>
21
+ updateStart: (args: { version: string; }) => Promise<RemoteResult<ShopUpdateResult>>
22
+ version: () => Promise<RemoteResult<ShopVersionResult>>
23
+ }
24
+ interface TypertRemoteMap {
25
+ 'shop/catalog': (args?: { refresh?: boolean; }) => Promise<RemoteResult<ShopCatalogResult>>
26
+ 'shop/installed': () => Promise<RemoteResult<ShopInstalledEntry[]>>
27
+ 'shop/installedSpecs': () => Promise<RemoteResult<Record<string, string> | null>>
28
+ 'shop/installStart': (args: InstallArgs) => Promise<RemoteResult<ShopInstallResult>>
29
+ 'shop/installStatus': (args: { installId: string; }) => Promise<RemoteResult<ShopInstallStatusResult>>
30
+ 'shop/restart': () => Promise<RemoteResult<ShopRestartResult>>
31
+ 'shop/rollbackStart': (args: { key: string; }) => Promise<RemoteResult<ShopInstallResult>>
32
+ 'shop/setEnabled': (args: { name: string; enabled: boolean; }) => Promise<RemoteResult<ShopSetEnabledResult>>
33
+ 'shop/setFavorite': (args: { key: string; favorite: boolean; }) => Promise<RemoteResult<{ ok: boolean; detail?: string; }>>
34
+ 'shop/state': () => Promise<RemoteResult<ShopStateResult>>
35
+ 'shop/uninstallStart': (args: { name: string; }) => Promise<RemoteResult<ShopUninstallResult>>
36
+ 'shop/updateStart': (args: { version: string; }) => Promise<RemoteResult<ShopUpdateResult>>
37
+ 'shop/version': () => Promise<RemoteResult<ShopVersionResult>>
38
+ }
39
+ interface TypertRemoteNamespaceMap {
40
+ 'shop': TypertRemoteNamespace$73686f70
41
+ }
42
+ }
43
+
44
+ export declare const TYPERT_REMOTE: TypertRemoteContribution
45
+ export default TYPERT_REMOTE
46
+ //# sourceMappingURL=typert.remote-client.d.ts.map
@@ -0,0 +1,512 @@
1
+ /* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
2
+ /* dsh-plugin-shop: create() added beside every schema for harness 0.1.7 (scripts/typert-dual-codecs.ts). */
3
+ import { z } from 'zod'
4
+
5
+ const dsh_dty_shop_catalog_parameter_0$schema = z.union([z.undefined(), z.object({
6
+ 'refresh': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
7
+ })])
8
+ const dsh_dty_shop_catalog_result$schema = z.object({
9
+ 'schemaVersion': z.number(),
10
+ 'builtAt': z.string(),
11
+ 'stale': z.boolean(),
12
+ 'plugins': z.array(z.object({
13
+ 'name': z.string(),
14
+ 'version': z.string(),
15
+ 'integrity': z.union([z.literal(null), z.string()]),
16
+ 'publishedAt': z.union([z.literal(null), z.string()]),
17
+ 'repository': z.union([z.literal(null), z.string()]),
18
+ 'license': z.union([z.literal(null), z.string()]),
19
+ 'tier': z.union([z.literal("verified"), z.literal("verified-stale"), z.literal("community")]),
20
+ 'metadata': z.union([z.literal("declared"), z.literal("derived")]),
21
+ 'review': z.union([z.undefined(), z.object({
22
+ 'reviewedVersion': z.union([z.undefined(), z.string()]).optional(),
23
+ 'reviewedCommit': z.union([z.undefined(), z.string()]).optional(),
24
+ 'reviewedSha256': z.union([z.undefined(), z.string()]).optional(),
25
+ 'repo': z.union([z.undefined(), z.string()]).optional(),
26
+ 'reviewer': z.string(),
27
+ 'reviewCommit': z.string(),
28
+ 'notes': z.string(),
29
+ })]).optional(),
30
+ 'catalog': z.union([z.undefined(), z.object({
31
+ 'category': z.union([z.literal("tool"), z.literal("provider"), z.literal("ui"), z.literal("workflow"), z.literal("integration"), z.literal("theme"), z.literal("other")]),
32
+ 'summary': z.object({
33
+ 'en': z.string(),
34
+ 'zh': z.union([z.undefined(), z.string()]).optional(),
35
+ }),
36
+ 'capabilities': z.array(z.string()),
37
+ })]).optional(),
38
+ 'source': z.union([z.literal("npm"), z.literal("github")]),
39
+ 'publisher': z.union([z.undefined(), z.string()]).optional(),
40
+ 'repo': z.union([z.undefined(), z.string()]).optional(),
41
+ 'subdir': z.union([z.undefined(), z.string()]).optional(),
42
+ 'tarball': z.union([z.undefined(), z.object({
43
+ 'url': z.string(),
44
+ 'sha256': z.string(),
45
+ })]).optional(),
46
+ 'added': z.union([z.undefined(), z.string()]).optional(),
47
+ 'peers': z.union([z.undefined(), z.array(z.string())]).optional(),
48
+ 'compatibility': z.union([z.undefined(), z.object({
49
+ 'dsh': z.union([z.undefined(), z.string()]).optional(),
50
+ 'profiles': z.union([z.undefined(), z.array(z.string())]).optional(),
51
+ })]).optional(),
52
+ 'dshPeers': z.union([z.undefined(), z.record(z.string(), z.string())]).optional(),
53
+ 'manifestVersion': z.union([z.undefined(), z.string()]).optional(),
54
+ 'engines': z.union([z.undefined(), z.string()]).optional(),
55
+ 'dependencies': z.union([z.undefined(), z.number()]).optional(),
56
+ 'bin': z.union([z.undefined(), z.array(z.string())]).optional(),
57
+ 'installScripts': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
58
+ 'unpackedSize': z.union([z.undefined(), z.number()]).optional(),
59
+ 'installSize': z.union([z.undefined(), z.number()]).optional(),
60
+ 'archived': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
61
+ 'forked': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
62
+ 'icon': z.union([z.undefined(), z.string()]).optional(),
63
+ })),
64
+ 'denied': z.array(z.object({
65
+ 'name': z.string(),
66
+ 'detail': z.string(),
67
+ 'replacement': z.union([z.undefined(), z.string()]).optional(),
68
+ })),
69
+ 'notAShop': z.union([z.undefined(), z.array(z.string())]).optional(),
70
+ 'stars': z.record(z.string(), z.number()),
71
+ 'icons': z.record(z.string(), z.string()),
72
+ 'incompatible': z.record(z.string(), z.array(z.string())),
73
+ 'incompatibleHarness': z.record(z.string(), z.object({
74
+ 'dsh': z.union([z.undefined(), z.object({
75
+ 'range': z.string(),
76
+ 'running': z.string(),
77
+ })]).optional(),
78
+ 'profile': z.union([z.undefined(), z.object({
79
+ 'declared': z.array(z.string()),
80
+ 'running': z.string(),
81
+ })]).optional(),
82
+ 'peers': z.union([z.undefined(), z.object({
83
+ 'refused': z.record(z.string(), z.string()),
84
+ 'running': z.string(),
85
+ 'allowCommand': z.union([z.literal(null), z.string()]),
86
+ })]).optional(),
87
+ })),
88
+ })
89
+ const dsh_dty_shop_installed_result$schema = z.array(z.object({
90
+ 'name': z.string(),
91
+ 'source': z.union([z.literal("npm"), z.literal("github")]),
92
+ 'repo': z.union([z.undefined(), z.string()]).optional(),
93
+ 'subdir': z.union([z.undefined(), z.string()]).optional(),
94
+ 'installed': z.string(),
95
+ 'latest': z.union([z.literal(null), z.string()]),
96
+ 'outdated': z.boolean(),
97
+ 'enabled': z.boolean(),
98
+ 'shadowed': z.union([z.undefined(), z.literal(true)]).optional(),
99
+ }))
100
+ const dsh_dty_shop_installedSpecs_result$schema = z.union([z.literal(null), z.record(z.string(), z.string())])
101
+ const dsh_dty_shop_installStart_parameter_0$schema = z.object({
102
+ 'name': z.string(),
103
+ 'version': z.string(),
104
+ 'acknowledged': z.union([z.undefined(), z.literal(false), z.literal(true)]).optional(),
105
+ 'source': z.union([z.undefined(), z.literal("npm"), z.literal("github")]).optional(),
106
+ 'repo': z.union([z.undefined(), z.string()]).optional(),
107
+ 'subdir': z.union([z.undefined(), z.string()]).optional(),
108
+ })
109
+ const dsh_dty_shop_installStart_result$schema = z.union([z.object({
110
+ 'ok': z.literal(true),
111
+ 'installId': z.string(),
112
+ 'state': z.union([z.literal("downloading"), z.literal("running"), z.literal("done"), z.literal("failed")]),
113
+ }), z.object({
114
+ 'ok': z.literal(false),
115
+ 'code': z.union([z.literal("not-in-catalog"), z.literal("denied"), z.literal("version-mismatch"), z.literal("needs-acknowledgement"), z.literal("tarball-integrity"), z.literal("ambiguous-identity"), z.literal("name-taken"), z.literal("desktop-profile")]),
116
+ 'detail': z.string(),
117
+ })])
118
+ const dsh_dty_shop_installStatus_parameter_0$schema = z.object({
119
+ 'installId': z.string(),
120
+ })
121
+ const dsh_dty_shop_installStatus_result$schema = z.object({
122
+ 'found': z.boolean(),
123
+ 'state': z.union([z.literal("downloading"), z.literal("running"), z.literal("done"), z.literal("failed")]),
124
+ 'log': z.array(z.string()),
125
+ 'activation': z.union([z.undefined(), z.literal("live"), z.literal("reload"), z.literal("restart")]).optional(),
126
+ 'restartReason': z.union([z.undefined(), z.literal("no-patch"), z.literal("not-simple"), z.literal("host-unsupported"), z.literal("timeout"), z.literal("mount-failed"), z.literal("already-loaded")]).optional(),
127
+ 'detail': z.union([z.undefined(), z.string()]).optional(),
128
+ 'command': z.union([z.undefined(), z.string()]).optional(),
129
+ })
130
+ const dsh_dty_shop_restart_result$schema = z.union([z.object({
131
+ 'ok': z.literal(true),
132
+ 'logFile': z.union([z.undefined(), z.string()]).optional(),
133
+ 'bootId': z.union([z.undefined(), z.string()]).optional(),
134
+ 'pid': z.union([z.undefined(), z.number()]).optional(),
135
+ }), z.object({
136
+ 'ok': z.literal(false),
137
+ 'detail': z.string(),
138
+ })])
139
+ const dsh_dty_shop_rollbackStart_parameter_0$schema = z.object({
140
+ 'key': z.string(),
141
+ })
142
+ const dsh_dty_shop_rollbackStart_result$schema = z.union([z.object({
143
+ 'ok': z.literal(true),
144
+ 'installId': z.string(),
145
+ 'state': z.union([z.literal("downloading"), z.literal("running"), z.literal("done"), z.literal("failed")]),
146
+ }), z.object({
147
+ 'ok': z.literal(false),
148
+ 'code': z.union([z.literal("not-in-catalog"), z.literal("denied"), z.literal("version-mismatch"), z.literal("needs-acknowledgement"), z.literal("tarball-integrity"), z.literal("ambiguous-identity"), z.literal("name-taken"), z.literal("desktop-profile")]),
149
+ 'detail': z.string(),
150
+ })])
151
+ const dsh_dty_shop_setEnabled_parameter_0$schema = z.object({
152
+ 'name': z.string(),
153
+ 'enabled': z.boolean(),
154
+ })
155
+ const dsh_dty_shop_setEnabled_result$schema = z.union([z.object({
156
+ 'ok': z.literal(true),
157
+ 'activation': z.union([z.literal("live"), z.literal("reload"), z.literal("restart")]),
158
+ }), z.object({
159
+ 'ok': z.literal(false),
160
+ 'detail': z.string(),
161
+ })])
162
+ const dsh_dty_shop_setFavorite_parameter_0$schema = z.object({
163
+ 'key': z.string(),
164
+ 'favorite': z.boolean(),
165
+ })
166
+ const dsh_dty_shop_setFavorite_result$schema = z.object({
167
+ 'ok': z.boolean(),
168
+ 'detail': z.union([z.undefined(), z.string()]).optional(),
169
+ })
170
+ const dsh_dty_shop_state_result$schema = z.object({
171
+ 'favorites': z.array(z.string()),
172
+ 'rollback': z.record(z.string(), z.string()),
173
+ })
174
+ const dsh_dty_shop_uninstallStart_parameter_0$schema = z.object({
175
+ 'name': z.string(),
176
+ })
177
+ const dsh_dty_shop_uninstallStart_result$schema = z.union([z.object({
178
+ 'ok': z.literal(true),
179
+ 'installId': z.string(),
180
+ }), z.object({
181
+ 'ok': z.literal(false),
182
+ 'detail': z.string(),
183
+ })])
184
+ const dsh_dty_shop_updateStart_parameter_0$schema = z.object({
185
+ 'version': z.string(),
186
+ })
187
+ const dsh_dty_shop_updateStart_result$schema = z.union([z.object({
188
+ 'ok': z.literal(true),
189
+ 'installId': z.string(),
190
+ 'state': z.union([z.literal("downloading"), z.literal("running"), z.literal("done"), z.literal("failed")]),
191
+ }), z.object({
192
+ 'ok': z.literal(false),
193
+ 'code': z.union([z.undefined(), z.literal("desktop-manual")]).optional(),
194
+ 'detail': z.string(),
195
+ })])
196
+ const dsh_dty_shop_version_result$schema = z.object({
197
+ 'installed': z.string(),
198
+ 'latest': z.union([z.literal(null), z.string()]),
199
+ 'outdated': z.boolean(),
200
+ 'restartBlocked': z.union([z.literal(null), z.literal("desktop"), z.literal("from-default-profile"), z.literal("windows"), z.literal("systemd"), z.literal("port-zero")]),
201
+ 'pendingVersion': z.union([z.undefined(), z.literal(null), z.string()]).optional(),
202
+ 'bootId': z.union([z.undefined(), z.string()]).optional(),
203
+ 'selfUpdate': z.union([z.undefined(), z.literal(null), z.literal("dsh-page")]).optional(),
204
+ })
205
+
206
+ export const TYPERT_REMOTE = {
207
+ package: 'dsh-dty',
208
+ descriptors: [
209
+ {
210
+ id: 'dsh-dty#shop/catalog',
211
+ service: 'shop',
212
+ namespace: 'shop',
213
+ method: 'catalog',
214
+ invocation: { kind: 'direct' },
215
+ parameters: [
216
+ {
217
+ name: 'args',
218
+ wire: 'args',
219
+ source: 'json',
220
+ acceptsUndefined: true,
221
+ codec: {
222
+ mode: 'strict',
223
+ typeSymbol: 'dsh-dty#shop/catalog:args',
224
+ schema: dsh_dty_shop_catalog_parameter_0$schema,
225
+ create: () => dsh_dty_shop_catalog_parameter_0$schema,
226
+ },
227
+ },
228
+ ],
229
+ result: {
230
+ mode: 'strict',
231
+ typeSymbol: 'dsh-dty/types#ShopCatalogResult',
232
+ schema: dsh_dty_shop_catalog_result$schema,
233
+ create: () => dsh_dty_shop_catalog_result$schema,
234
+ },
235
+ sourceLocation: {"file":"packages/dsh-plugin-shop/src/host/index.ts","line":1384,"column":9},
236
+ },
237
+ {
238
+ id: 'dsh-dty#shop/installed',
239
+ service: 'shop',
240
+ namespace: 'shop',
241
+ method: 'installed',
242
+ invocation: { kind: 'direct' },
243
+ parameters: [
244
+ ],
245
+ result: {
246
+ mode: 'strict',
247
+ typeSymbol: 'dsh-dty#shop/installed:result',
248
+ schema: dsh_dty_shop_installed_result$schema,
249
+ create: () => dsh_dty_shop_installed_result$schema,
250
+ },
251
+ sourceLocation: {"file":"packages/dsh-plugin-shop/src/host/index.ts","line":2226,"column":9},
252
+ },
253
+ {
254
+ id: 'dsh-dty#shop/installedSpecs',
255
+ service: 'shop',
256
+ namespace: 'shop',
257
+ method: 'installedSpecs',
258
+ invocation: { kind: 'direct' },
259
+ parameters: [
260
+ ],
261
+ result: {
262
+ mode: 'strict',
263
+ typeSymbol: 'dsh-dty#shop/installedSpecs:result',
264
+ schema: dsh_dty_shop_installedSpecs_result$schema,
265
+ create: () => dsh_dty_shop_installedSpecs_result$schema,
266
+ },
267
+ sourceLocation: {"file":"packages/dsh-plugin-shop/src/host/index.ts","line":2064,"column":9},
268
+ },
269
+ {
270
+ id: 'dsh-dty#shop/installStart',
271
+ service: 'shop',
272
+ namespace: 'shop',
273
+ method: 'installStart',
274
+ implementation: 'install',
275
+ invocation: { kind: 'direct' },
276
+ parameters: [
277
+ {
278
+ name: 'args',
279
+ wire: 'args',
280
+ source: 'json',
281
+ codec: {
282
+ mode: 'strict',
283
+ typeSymbol: 'dsh-dty/types#InstallArgs',
284
+ schema: dsh_dty_shop_installStart_parameter_0$schema,
285
+ create: () => dsh_dty_shop_installStart_parameter_0$schema,
286
+ },
287
+ },
288
+ ],
289
+ result: {
290
+ mode: 'strict',
291
+ typeSymbol: 'dsh-dty/types#ShopInstallResult',
292
+ schema: dsh_dty_shop_installStart_result$schema,
293
+ create: () => dsh_dty_shop_installStart_result$schema,
294
+ },
295
+ sourceLocation: {"file":"packages/dsh-plugin-shop/src/host/index.ts","line":1511,"column":9},
296
+ },
297
+ {
298
+ id: 'dsh-dty#shop/installStatus',
299
+ service: 'shop',
300
+ namespace: 'shop',
301
+ method: 'installStatus',
302
+ invocation: { kind: 'direct' },
303
+ parameters: [
304
+ {
305
+ name: 'args',
306
+ wire: 'args',
307
+ source: 'json',
308
+ codec: {
309
+ mode: 'strict',
310
+ typeSymbol: 'dsh-dty#shop/installStatus:args',
311
+ schema: dsh_dty_shop_installStatus_parameter_0$schema,
312
+ create: () => dsh_dty_shop_installStatus_parameter_0$schema,
313
+ },
314
+ },
315
+ ],
316
+ result: {
317
+ mode: 'strict',
318
+ typeSymbol: 'dsh-dty/types#ShopInstallStatusResult',
319
+ schema: dsh_dty_shop_installStatus_result$schema,
320
+ create: () => dsh_dty_shop_installStatus_result$schema,
321
+ },
322
+ sourceLocation: {"file":"packages/dsh-plugin-shop/src/host/index.ts","line":2040,"column":3},
323
+ },
324
+ {
325
+ id: 'dsh-dty#shop/restart',
326
+ service: 'shop',
327
+ namespace: 'shop',
328
+ method: 'restart',
329
+ invocation: { kind: 'direct' },
330
+ parameters: [
331
+ ],
332
+ result: {
333
+ mode: 'strict',
334
+ typeSymbol: 'dsh-dty/types#ShopRestartResult',
335
+ schema: dsh_dty_shop_restart_result$schema,
336
+ create: () => dsh_dty_shop_restart_result$schema,
337
+ },
338
+ sourceLocation: {"file":"packages/dsh-plugin-shop/src/host/index.ts","line":2477,"column":9},
339
+ },
340
+ {
341
+ id: 'dsh-dty#shop/rollbackStart',
342
+ service: 'shop',
343
+ namespace: 'shop',
344
+ method: 'rollbackStart',
345
+ invocation: { kind: 'direct' },
346
+ parameters: [
347
+ {
348
+ name: 'args',
349
+ wire: 'args',
350
+ source: 'json',
351
+ codec: {
352
+ mode: 'strict',
353
+ typeSymbol: 'dsh-dty#shop/rollbackStart:args',
354
+ schema: dsh_dty_shop_rollbackStart_parameter_0$schema,
355
+ create: () => dsh_dty_shop_rollbackStart_parameter_0$schema,
356
+ },
357
+ },
358
+ ],
359
+ result: {
360
+ mode: 'strict',
361
+ typeSymbol: 'dsh-dty/types#ShopInstallResult',
362
+ schema: dsh_dty_shop_rollbackStart_result$schema,
363
+ create: () => dsh_dty_shop_rollbackStart_result$schema,
364
+ },
365
+ sourceLocation: {"file":"packages/dsh-plugin-shop/src/host/index.ts","line":2157,"column":9},
366
+ },
367
+ {
368
+ id: 'dsh-dty#shop/setEnabled',
369
+ service: 'shop',
370
+ namespace: 'shop',
371
+ method: 'setEnabled',
372
+ invocation: { kind: 'direct' },
373
+ parameters: [
374
+ {
375
+ name: 'args',
376
+ wire: 'args',
377
+ source: 'json',
378
+ codec: {
379
+ mode: 'strict',
380
+ typeSymbol: 'dsh-dty#shop/setEnabled:args',
381
+ schema: dsh_dty_shop_setEnabled_parameter_0$schema,
382
+ create: () => dsh_dty_shop_setEnabled_parameter_0$schema,
383
+ },
384
+ },
385
+ ],
386
+ result: {
387
+ mode: 'strict',
388
+ typeSymbol: 'dsh-dty/types#ShopSetEnabledResult',
389
+ schema: dsh_dty_shop_setEnabled_result$schema,
390
+ create: () => dsh_dty_shop_setEnabled_result$schema,
391
+ },
392
+ sourceLocation: {"file":"packages/dsh-plugin-shop/src/host/index.ts","line":1036,"column":9},
393
+ },
394
+ {
395
+ id: 'dsh-dty#shop/setFavorite',
396
+ service: 'shop',
397
+ namespace: 'shop',
398
+ method: 'setFavorite',
399
+ invocation: { kind: 'direct' },
400
+ parameters: [
401
+ {
402
+ name: 'args',
403
+ wire: 'args',
404
+ source: 'json',
405
+ codec: {
406
+ mode: 'strict',
407
+ typeSymbol: 'dsh-dty#shop/setFavorite:args',
408
+ schema: dsh_dty_shop_setFavorite_parameter_0$schema,
409
+ create: () => dsh_dty_shop_setFavorite_parameter_0$schema,
410
+ },
411
+ },
412
+ ],
413
+ result: {
414
+ mode: 'strict',
415
+ typeSymbol: 'dsh-dty#shop/setFavorite:result',
416
+ schema: dsh_dty_shop_setFavorite_result$schema,
417
+ create: () => dsh_dty_shop_setFavorite_result$schema,
418
+ },
419
+ sourceLocation: {"file":"packages/dsh-plugin-shop/src/host/index.ts","line":2114,"column":9},
420
+ },
421
+ {
422
+ id: 'dsh-dty#shop/state',
423
+ service: 'shop',
424
+ namespace: 'shop',
425
+ method: 'state',
426
+ implementation: 'shopState',
427
+ invocation: { kind: 'direct' },
428
+ parameters: [
429
+ ],
430
+ result: {
431
+ mode: 'strict',
432
+ typeSymbol: 'dsh-dty/types#ShopStateResult',
433
+ schema: dsh_dty_shop_state_result$schema,
434
+ create: () => dsh_dty_shop_state_result$schema,
435
+ },
436
+ sourceLocation: {"file":"packages/dsh-plugin-shop/src/host/index.ts","line":2079,"column":9},
437
+ },
438
+ {
439
+ id: 'dsh-dty#shop/uninstallStart',
440
+ service: 'shop',
441
+ namespace: 'shop',
442
+ method: 'uninstallStart',
443
+ implementation: 'uninstall',
444
+ invocation: { kind: 'direct' },
445
+ parameters: [
446
+ {
447
+ name: 'args',
448
+ wire: 'args',
449
+ source: 'json',
450
+ codec: {
451
+ mode: 'strict',
452
+ typeSymbol: 'dsh-dty#shop/uninstallStart:args',
453
+ schema: dsh_dty_shop_uninstallStart_parameter_0$schema,
454
+ create: () => dsh_dty_shop_uninstallStart_parameter_0$schema,
455
+ },
456
+ },
457
+ ],
458
+ result: {
459
+ mode: 'strict',
460
+ typeSymbol: 'dsh-dty/types#ShopUninstallResult',
461
+ schema: dsh_dty_shop_uninstallStart_result$schema,
462
+ create: () => dsh_dty_shop_uninstallStart_result$schema,
463
+ },
464
+ sourceLocation: {"file":"packages/dsh-plugin-shop/src/host/index.ts","line":2371,"column":9},
465
+ },
466
+ {
467
+ id: 'dsh-dty#shop/updateStart',
468
+ service: 'shop',
469
+ namespace: 'shop',
470
+ method: 'updateStart',
471
+ invocation: { kind: 'direct' },
472
+ parameters: [
473
+ {
474
+ name: 'args',
475
+ wire: 'args',
476
+ source: 'json',
477
+ codec: {
478
+ mode: 'strict',
479
+ typeSymbol: 'dsh-dty#shop/updateStart:args',
480
+ schema: dsh_dty_shop_updateStart_parameter_0$schema,
481
+ create: () => dsh_dty_shop_updateStart_parameter_0$schema,
482
+ },
483
+ },
484
+ ],
485
+ result: {
486
+ mode: 'strict',
487
+ typeSymbol: 'dsh-dty/types#ShopUpdateResult',
488
+ schema: dsh_dty_shop_updateStart_result$schema,
489
+ create: () => dsh_dty_shop_updateStart_result$schema,
490
+ },
491
+ sourceLocation: {"file":"packages/dsh-plugin-shop/src/host/index.ts","line":2585,"column":9},
492
+ },
493
+ {
494
+ id: 'dsh-dty#shop/version',
495
+ service: 'shop',
496
+ namespace: 'shop',
497
+ method: 'version',
498
+ invocation: { kind: 'direct' },
499
+ parameters: [
500
+ ],
501
+ result: {
502
+ mode: 'strict',
503
+ typeSymbol: 'dsh-dty/types#ShopVersionResult',
504
+ schema: dsh_dty_shop_version_result$schema,
505
+ create: () => dsh_dty_shop_version_result$schema,
506
+ },
507
+ sourceLocation: {"file":"packages/dsh-plugin-shop/src/host/index.ts","line":2541,"column":9},
508
+ },
509
+ ],
510
+ }
511
+
512
+ export default TYPERT_REMOTE
@@ -0,0 +1,27 @@
1
+ import { type ReactNode } from 'react';
2
+ /** The artwork an entry without a usable icon draws: dsh's own default,
3
+ * `PluginArtworkDefault` from `dsh-client-ui-primitives` (MIT, DeepSeek — see
4
+ * the dsh repository's LICENSE). Copied rather than imported because
5
+ * 0.1.5-rc.3 exports nothing this build could borrow at run time.
6
+ *
7
+ * A constant data URL drawn through an `<img>`, not inline markup: the SVG
8
+ * carries a gradient addressed by id, so thousands of inline copies would each
9
+ * need one, while an image document is its own namespace and needs none
10
+ * (design 2026-10-23-shop-plugin-icons §8.1). The id inside this string is
11
+ * fixed for the same reason.
12
+ */
13
+ export declare const DEFAULT_ICON_DATA_URL = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjQuNjI5NCA4LjYzNjk2QzI2LjI4NjIgOC42MzcwNSAyNy42Mjk0IDkuOTgwMTYgMjcuNjI5NCAxMS42MzdWMTIuNzgyNUMyNy42MjkyIDE0LjQzOTEgMjYuMjg2MSAxNS43ODI0IDI0LjYyOTQgMTUuNzgyNUgyMy40ODM5QzIyLjY1MTkgMTUuNzgyNSAyMS41NDU0IDE2LjM0NTkgMjEuNTQ1NCAxNy4xNzc4VjE4LjE1NzNDMjEuNTQ1NCAxOC43NzU3IDIyLjIxNiAxOS4xOTY2IDIyLjgzNDUgMTkuMTk2NUgyNC42Mjk0QzI2LjI4NjEgMTkuMTk2NSAyNy42MjkyIDIwLjUzOTggMjcuNjI5NCAyMi4xOTY1VjIzLjk5MjRDMjcuNjI5MiAyNS42NDkxIDI2LjI4NjEgMjYuOTkyNCAyNC42Mjk0IDI2Ljk5MjRIMjIuODM0NUMyMS4xNzc4IDI2Ljk5MjQgMTkuODM0NyAyNS42NDkgMTkuODM0NSAyMy45OTI0VjIyLjE5NjVDMTkuODM0NSAyMS43MTQ4IDE5LjQ5NTcgMjEuMjMyNyAxOS4wMTQgMjEuMjMyN0gxNi40NzkyQzE1Ljc5NzUgMjEuMjMyNyAxNS4zMzc0IDIyLjAwNjEgMTUuMzM3NCAyMi42ODc3VjIzLjgzMzNDMTUuMzM3MyAyNS40OSAxMy45OTQyIDI2LjgzMzMgMTIuMzM3NCAyNi44MzMzSDExLjE5MTlDOS41MzUwOSAyNi44MzMzIDguMTkxOTggMjUuNDkgOC4xOTE4OSAyMy44MzMzVjIyLjY4NzdDOC4xOTE4OSAyMS4wMzA5IDkuNTM1MDQgMTkuNjg3NyAxMS4xOTE5IDE5LjY4NzdIMTIuMzM3NEMxMy4xOTY0IDE5LjY4NzcgMTQuMzk5OSAxOS4wOTU5IDE0LjM5OTkgMTguMjM2OVYxNi4wMTg1QzE0LjM5OTkgMTQuOTUxOCAxNS4yNjQ2IDE0LjA4NzIgMTYuMzMxMiAxNC4wODcySDE5LjQzNUMyMC4wNTk2IDE0LjA4NzIgMjAuNDg0IDEzLjQwNzEgMjAuNDgzOSAxMi43ODI1VjExLjYzN0MyMC40ODM5IDkuOTgwMTEgMjEuODI3IDguNjM2OTYgMjMuNDgzOSA4LjYzNjk2SDI0LjYyOTRaTTEzLjQxMTYgMTEuMjQ2OEMxMy40MTE2IDEyLjY4ODIgMTIuMjQzMSAxMy44NTY3IDEwLjgwMTggMTMuODU2N0M5LjM2MDM3IDEzLjg1NjcgOC4xOTE4OSAxMi42ODgyIDguMTkxODkgMTEuMjQ2OEM4LjE5MTg5IDkuODA1NDQgOS4zNjAzNyA4LjYzNjk2IDEwLjgwMTggOC42MzY5NkMxMi4yNDMxIDguNjM2OTYgMTMuNDExNiA5LjgwNTQ0IDEzLjQxMTYgMTEuMjQ2OFoiIGZpbGw9InVybCgjYSkiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSIxNS4xNDgxIiB5MT0iOS45NDE4OCIgeDI9IjE1LjE0ODEiIHkyPSIxMy42Mzc1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzU0RUNFNyIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzY1OEVGRiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjwvc3ZnPg==";
14
+ /** One entry's icon: a 32px tile holding a 24px image (design §8.3).
15
+ *
16
+ * An author's icon reaches the DOM only here, as this `<img>`'s `src` — a
17
+ * `data:` URL built from bytes the catalog carried. Never `innerHTML`, never
18
+ * an inline `<svg>`: an image document runs no script and loads nothing
19
+ * external, and that is the whole defence for an SVG (§8.5).
20
+ *
21
+ * `onError` swaps a source that will not decode for the default, as dsh's own
22
+ * `PackageArtwork` does. The failed source, not a boolean, is remembered, so a
23
+ * later entry reusing this component instance still tries its own icon.
24
+ */
25
+ export declare function EntryIcon({ icon }: {
26
+ icon: string | undefined;
27
+ }): ReactNode;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * The shared fold: one surface's whole red block, clamped to two lines by
3
+ * default, expanded on one press of the small pill under it, and back to two
4
+ * on a second. One fold per surface, never per blocker: a card's body and an
5
+ * Updatable row's refusal print the same verdict through two spellings, and
6
+ * each folds on its own.
7
+ *
8
+ * The fold is measured, NOT declared: `useFoldableRedBlock` watches the block
9
+ * and answers "is this too tall to leave alone?" from the block's own
10
+ * rendered height, whenever the box or the text in it changes. Where nothing
11
+ * can be measured — jsdom lays nothing out — no toggle is offered, and the
12
+ * unit suite supplies a model of the engine instead
13
+ * (`tests/fixtures/fold-geometry.ts`).
14
+ *
15
+ * The toggle is a BUTTON with `aria-expanded`, not a semantic fold the DOM
16
+ * carries. A screen reader meets the whole block either way: the label
17
+ * above it (`role="img"` + `aria-label` and `title`) is the accessible name
18
+ * of the whole verdict, and it is NOT the thing that folds.
19
+ */
20
+ import type { ReactNode } from 'react';
21
+ import type { ShopTabProps } from './ShopTab.tsx';
22
+ export declare function FoldableRedBlock({ children, t, attrName }: {
23
+ children: ReactNode;
24
+ t: ShopTabProps['t'];
25
+ /** The data attribute the block is located by; its suffix names the toggle. */
26
+ attrName: 'data-shop-remedy' | 'data-shop-refusal' | 'data-shop-blocker-lines';
27
+ }): ReactNode;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * The shop's two buttons on dsh's Plugins page (design
3
+ * 2026-10-16-shop-sidebar-page §7), in the head of a detail page, before the
4
+ * page's own switch and uninstall (`plugins.detail.actions`, dsh 0.1.7-rc.2
5
+ * and later): "Open Plugin shop" on the shop's own bundle page, and "View in
6
+ * Plugin shop" on the page of any bundle the shelf lists. Any other subject
7
+ * renders nothing, as the slot's contract asks of an entry.
8
+ *
9
+ * It renders inside dsh's page, so it carries its own error boundary: a
10
+ * throw here costs the reader a button, never dsh's page.
11
+ */
12
+ import { type ReactNode } from 'react';
13
+ import type { InjectFace, PropsLocale } from '@deepseek-ai/dsh-client-ui-slots';
14
+ import type { ShopCatalogResult } from '../host/index.ts';
15
+ import type { ShopPageStore } from './page-store.ts';
16
+ /** One bundle as a detail contribution sees it: the field this reads of the
17
+ * Plugins page's `PluginPackageRef` (`dsh-client-ui-plugin-manager`'s slot
18
+ * contract, identical in 0.1.7-rc.2 and 0.2.0-rc.2). */
19
+ export interface PluginPackageRef {
20
+ readonly name: string;
21
+ }
22
+ /** What a detail page is about, as the Plugins page hands it over. */
23
+ export type PluginsSubject = {
24
+ readonly kind: 'bundle';
25
+ readonly pkg: PluginPackageRef;
26
+ } | {
27
+ readonly kind: 'row';
28
+ readonly pkg: PluginPackageRef;
29
+ } | {
30
+ readonly kind: 'item';
31
+ readonly id: string;
32
+ };
33
+ /** The face index.ts hands the buttons. */
34
+ export interface ShopDetailActionInjected {
35
+ /** The catalog a listing question is asked of (index.ts `listing`). */
36
+ listing: () => Promise<ShopCatalogResult>;
37
+ /** Whether the page can be opened at all: false without a layout service
38
+ * that can select a panel. */
39
+ canOpen: () => boolean;
40
+ openShop: () => void;
41
+ page: ShopPageStore;
42
+ }
43
+ export type ShopDetailActionProps = {
44
+ subject: PluginsSubject;
45
+ } & PropsLocale<'settings.shop'> & InjectFace<ShopDetailActionInjected>;
46
+ export declare function ShopDetailAction(props: ShopDetailActionProps): ReactNode;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The shop's glyph in dsh's sidebar (design 2026-10-16-shop-sidebar-page
3
+ * §4.3): a bag with a whale tail, drawn the way dsh draws its own panel
4
+ * glyphs — a 16×16 view box, one-pixel `currentColor` strokes, no fill — so
5
+ * the row's colour and its selection treatment reach it unchanged. `active`
6
+ * is ignored, as dsh's own glyphs ignore it: the row draws the selection.
7
+ */
8
+ import type { ReactNode } from 'react';
9
+ export declare function ShopGlyph({ size }: {
10
+ size: number;
11
+ active: boolean;
12
+ }): ReactNode;