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.
- package/LICENSE +201 -0
- package/README.md +224 -2
- package/assets/icon.png +0 -0
- package/cordis.patch.yml +9 -0
- package/lib/client.js +13201 -0
- package/lib/index.js +7275 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +724 -0
- package/lib/typert.remote-client.d.ts +46 -0
- package/lib/typert.remote-client.js +512 -0
- package/lib/types/client/EntryIcon.d.ts +27 -0
- package/lib/types/client/FoldableRedBlock.d.ts +27 -0
- package/lib/types/client/ShopDetailAction.d.ts +46 -0
- package/lib/types/client/ShopGlyph.d.ts +12 -0
- package/lib/types/client/ShopPage.d.ts +27 -0
- package/lib/types/client/ShopTab.d.ts +110 -0
- package/lib/types/client/flow-registry.d.ts +91 -0
- package/lib/types/client/index.d.ts +89 -0
- package/lib/types/client/listeners.d.ts +27 -0
- package/lib/types/client/locales.d.ts +427 -0
- package/lib/types/client/module-table.d.ts +131 -0
- package/lib/types/client/page-store.d.ts +259 -0
- package/lib/types/client/present.d.ts +627 -0
- package/lib/types/client/restart-monitor.d.ts +156 -0
- package/lib/types/client/useFlows.d.ts +88 -0
- package/lib/types/client/useFoldableRedBlock.d.ts +36 -0
- package/lib/types/client/useUpdateSelf.d.ts +28 -0
- package/lib/types/host/activation.d.ts +58 -0
- package/lib/types/host/bundle-patch.d.ts +35 -0
- package/lib/types/host/catalog.d.ts +82 -0
- package/lib/types/host/child-env.d.ts +36 -0
- package/lib/types/host/client-half.d.ts +28 -0
- package/lib/types/host/compatibility.d.ts +244 -0
- package/lib/types/host/dsh-cli.d.ts +88 -0
- package/lib/types/host/executor.d.ts +288 -0
- package/lib/types/host/harness.d.ts +166 -0
- package/lib/types/host/hot.d.ts +134 -0
- package/lib/types/host/index.d.ts +965 -0
- package/lib/types/host/install.d.ts +69 -0
- package/lib/types/host/manager-runner.d.ts +81 -0
- package/lib/types/host/npm-origin.d.ts +28 -0
- package/lib/types/host/npmrc.d.ts +23 -0
- package/lib/types/host/origin.d.ts +46 -0
- package/lib/types/host/peers.d.ts +269 -0
- package/lib/types/host/plugin-manager.d.ts +144 -0
- package/lib/types/host/prefetch.d.ts +67 -0
- package/lib/types/host/profile.d.ts +173 -0
- package/lib/types/host/race.d.ts +41 -0
- package/lib/types/host/repo-pins.d.ts +22 -0
- package/lib/types/host/restart.d.ts +76 -0
- package/lib/types/host/self-update.d.ts +17 -0
- package/lib/types/host/state.d.ts +118 -0
- package/lib/types/host/supervisor.d.ts +15 -0
- package/lib/types/host/types.d.ts +166 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/own-version.d.ts +45 -0
- package/lib/types/shared/identity.d.ts +97 -0
- package/lib/types/shared/install-state.d.ts +16 -0
- package/lib/types/shared/npm-name.d.ts +42 -0
- package/lib/types/shared/shop-like.d.ts +32 -0
- package/lib/types/shared/tar.d.ts +18 -0
- package/lib/types/shared/zh-intents.d.ts +89 -0
- package/package.json +136 -3
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
/** Copy dictionaries for the shop's page in dsh's main column, its row in the
|
|
2
|
+
* sidebar, and its two buttons on dsh's Plugins page. */
|
|
3
|
+
/** Simplified Chinese dictionary and key source of truth. */
|
|
4
|
+
export declare const zh: {
|
|
5
|
+
/** The shop's name: its sidebar row and its page title (design
|
|
6
|
+
* 2026-10-16-shop-sidebar-page §4.1), one key so the two cannot drift
|
|
7
|
+
* apart. */
|
|
8
|
+
title: string;
|
|
9
|
+
/** The page's intro line, under its title, as dsh's own pages carry one. */
|
|
10
|
+
intro: string;
|
|
11
|
+
/** The Plugins page's button on the shop's own bundle page (design
|
|
12
|
+
* 2026-10-16-shop-sidebar-page §7). */
|
|
13
|
+
openShop: string;
|
|
14
|
+
/** Its button on a page of a bundle the shelf lists. */
|
|
15
|
+
viewInShop: string;
|
|
16
|
+
loading: string;
|
|
17
|
+
error: string;
|
|
18
|
+
installedLoading: string;
|
|
19
|
+
installedError: string;
|
|
20
|
+
retry: string;
|
|
21
|
+
/** The shop's own error boundary caught a render error; the error's message
|
|
22
|
+
* follows on its own line, and Retry remounts the tab (design
|
|
23
|
+
* 2026-09-26-market-borrowings §4). */
|
|
24
|
+
tabCrashed: string;
|
|
25
|
+
search: string;
|
|
26
|
+
/** One subdued line under the search box when a Chinese query fired a
|
|
27
|
+
* dictionary intent (design 2026-10-08-search-query-expansion §4).
|
|
28
|
+
* `{terms}` is the comma-joined recall terms, without the `#` marker
|
|
29
|
+
* (boundary-only surface detail, not a reader's fact). */
|
|
30
|
+
zhExpansionNote: string;
|
|
31
|
+
all: string;
|
|
32
|
+
catalog: string;
|
|
33
|
+
catalogStats: string;
|
|
34
|
+
/** The shelf's order control, and the date each card carries under the two
|
|
35
|
+
* date orders (design 2026-10-12-shelf-orders §4). */
|
|
36
|
+
sortLabel: string;
|
|
37
|
+
/** The wide layout's rail headings (design 2026-11-02-shop-widescreen-layout
|
|
38
|
+
* §4): the category group above, the hide-incompatible modifier below. */
|
|
39
|
+
categoriesHeading: string;
|
|
40
|
+
filterHeading: string;
|
|
41
|
+
sortStars: string;
|
|
42
|
+
sortAdded: string;
|
|
43
|
+
sortUpdated: string;
|
|
44
|
+
listedOn: string;
|
|
45
|
+
updatedOn: string;
|
|
46
|
+
stars: string;
|
|
47
|
+
categoryTool: string;
|
|
48
|
+
categoryProvider: string;
|
|
49
|
+
categoryUi: string;
|
|
50
|
+
categoryWorkflow: string;
|
|
51
|
+
categoryIntegration: string;
|
|
52
|
+
categoryTheme: string;
|
|
53
|
+
categoryOther: string;
|
|
54
|
+
empty: string;
|
|
55
|
+
emptySearch: string;
|
|
56
|
+
tierVerified: string;
|
|
57
|
+
tierVerifiedStale: string;
|
|
58
|
+
tierCommunity: string;
|
|
59
|
+
/** The github repository GitHub reports as archived (design 2026-10-08 §1.3).
|
|
60
|
+
* Subdued register, like `tierCommunity`: nothing is wrong with the install
|
|
61
|
+
* itself; the owner has simply frozen the project. */
|
|
62
|
+
archivedBadge: string;
|
|
63
|
+
capabilitiesNote: string;
|
|
64
|
+
install: string;
|
|
65
|
+
cancel: string;
|
|
66
|
+
dismiss: string;
|
|
67
|
+
/** The copy button beside a failed install's command line (design
|
|
68
|
+
* 2026-11-02-market-borrowings §5). `copied` replaces it only after the
|
|
69
|
+
* clipboard write resolved, so it is never claimed early. */
|
|
70
|
+
copyCommand: string;
|
|
71
|
+
copied: string;
|
|
72
|
+
/** The fold toggle under a card's collapsed red block. `aria-expanded` plus:
|
|
73
|
+
* open shows the whole block; closed shows two lines of it. This toggle is
|
|
74
|
+
* independent of the card's own header-expand. */
|
|
75
|
+
moreRedLines: string;
|
|
76
|
+
lessRedLines: string;
|
|
77
|
+
installing: string;
|
|
78
|
+
downloading: string;
|
|
79
|
+
installedRestartNotice: string;
|
|
80
|
+
incompatibleBadge: string;
|
|
81
|
+
incompatibleDetail: string;
|
|
82
|
+
/** The author's own `dsh.compatibility`, unmet on this machine (design
|
|
83
|
+
* 2026-09-01 §8.2). Each names BOTH sides — what the author declared and
|
|
84
|
+
* what this dsh runs — because the host sends both, and a bare
|
|
85
|
+
* "unsupported" leaves the reader guessing which side is off. */
|
|
86
|
+
harnessRangeDetail: string;
|
|
87
|
+
harnessProfileDetail: string;
|
|
88
|
+
/** dsh's OWN refusal (0.1.7 on), not the author's claim: the card shows the
|
|
89
|
+
* refused label in the install button's place (design
|
|
90
|
+
* 2026-09-26-dsh-017-readiness, B1, amended 2026-10-14). `{peers}`
|
|
91
|
+
* is each refused peer with the range the package declared. The remedy
|
|
92
|
+
* leads into the exemption command, rendered on its own line after it, and
|
|
93
|
+
* names the Refresh button by its label. */
|
|
94
|
+
harnessPeersDetail: string;
|
|
95
|
+
harnessPeersRemedy: string;
|
|
96
|
+
hotNoPatchNotice: string;
|
|
97
|
+
hotNotSimpleNotice: string;
|
|
98
|
+
hotHostUnsupportedNotice: string;
|
|
99
|
+
hotTimeoutNotice: string;
|
|
100
|
+
hotMountFailedNotice: string;
|
|
101
|
+
/** No mount was tried: this dsh already loaded the package once, and Node
|
|
102
|
+
* will not load a second copy from the same place (design
|
|
103
|
+
* 2026-09-26-market-borrowings §1). Covers an update and a reinstall alike,
|
|
104
|
+
* so it names the new files rather than a "new version". */
|
|
105
|
+
hotAlreadyLoadedNotice: string;
|
|
106
|
+
installedNoRestartNotice: string;
|
|
107
|
+
installedReloadNotice: string;
|
|
108
|
+
reload: string;
|
|
109
|
+
reloadNote: string;
|
|
110
|
+
installFailed: string;
|
|
111
|
+
installTransportFailed: string;
|
|
112
|
+
refresh: string;
|
|
113
|
+
refreshing: string;
|
|
114
|
+
refreshFailed: string;
|
|
115
|
+
staleLabel: string;
|
|
116
|
+
showing: string;
|
|
117
|
+
repository: string;
|
|
118
|
+
npmPage: string;
|
|
119
|
+
authorLine: string;
|
|
120
|
+
/** The accessible name and tooltip of the size label; the label itself shows
|
|
121
|
+
* the bare figure. "磁盘占用" is the load-bearing phrase — the number is what
|
|
122
|
+
* the install lands on disk, not the download. It replaced "解包后", which
|
|
123
|
+
* was npm's word: a commit-pinned github entry unpacks nothing, its figure
|
|
124
|
+
* being the sum of its git tree's blobs. One phrase now covers both sources
|
|
125
|
+
* and stays true of npm, whose number is unchanged. */
|
|
126
|
+
sizeLabel: string;
|
|
127
|
+
/** The incompatible filter's label. FIXED — the switch beside it carries the
|
|
128
|
+
* state, so the words name what the switch does and never flip with it. */
|
|
129
|
+
hideIncompatible: string;
|
|
130
|
+
/** The favorites switch (design 2026-11-02-market-borrowings §7), fixed for
|
|
131
|
+
* the same reason `hideIncompatible` is: the switch carries the state. */
|
|
132
|
+
favoritesFilter: string;
|
|
133
|
+
favoritesFilterTitle: string;
|
|
134
|
+
emptyFavoritesFiltered: string;
|
|
135
|
+
/** What the filter takes away is every card whose badge reads 不兼容 —
|
|
136
|
+
* missing components OR an author's declaration this dsh does not meet —
|
|
137
|
+
* so these three name the badge, not one of its reasons. */
|
|
138
|
+
incompatibleFilterTitle: string;
|
|
139
|
+
showIncompatibleTitle: string;
|
|
140
|
+
emptyIncompatibleFiltered: string;
|
|
141
|
+
license: string;
|
|
142
|
+
customLicense: string;
|
|
143
|
+
/** The prepurchase facts' detail rows (design 2026-11-02-market-borrowings
|
|
144
|
+
* §1–§2). `requiresDsh` names the field as dsh's own refusal names it — a
|
|
145
|
+
* manifest path, not a package — and the row prints the range the author
|
|
146
|
+
* wrote, verbatim. */
|
|
147
|
+
requiresDsh: string;
|
|
148
|
+
dependencies: string;
|
|
149
|
+
commands: string;
|
|
150
|
+
/** The install-scripts row (design 2026-11-04-borrowings-round-4 §2). The
|
|
151
|
+
* second line states what pnpm does with it, so the fact is not read as a
|
|
152
|
+
* verdict on the script. */
|
|
153
|
+
installScripts: string;
|
|
154
|
+
/** The failure report's prefilled issue (design 2026-11-05-failure-report.md). */
|
|
155
|
+
reportProblem: string;
|
|
156
|
+
installScriptsDeclared: string;
|
|
157
|
+
/** The size label's tooltip for an install that lands more than 50 MB on
|
|
158
|
+
* disk. The figure is already large on screen; this phrase says why it is
|
|
159
|
+
* tinted, without inventing a threshold nobody measured — 50 MB is the
|
|
160
|
+
* figure the competitor's own users proposed. */
|
|
161
|
+
sizeLabelLarge: string;
|
|
162
|
+
reviewedVersionLine: string;
|
|
163
|
+
reviewedPinLine: string;
|
|
164
|
+
deniedCode: string;
|
|
165
|
+
notInCatalogCode: string;
|
|
166
|
+
versionMismatchCode: string;
|
|
167
|
+
needsAcknowledgementCode: string;
|
|
168
|
+
tarballIntegrityCode: string;
|
|
169
|
+
ambiguousIdentityCode: string;
|
|
170
|
+
nameTakenCode: string;
|
|
171
|
+
desktopProfileCode: string;
|
|
172
|
+
nameTakenBadge: string;
|
|
173
|
+
nameTakenDetail: string;
|
|
174
|
+
npmSource: string;
|
|
175
|
+
githubSource: string;
|
|
176
|
+
/** The accessible name and the tooltip of a card's version, which say which
|
|
177
|
+
* of three things the printed string is (market borrowings §11): the string
|
|
178
|
+
* alone cannot tell a release tag from a version number, and a short commit
|
|
179
|
+
* printed with a `v` read as one. */
|
|
180
|
+
npmVersionLabel: string;
|
|
181
|
+
commitVersionLabel: string;
|
|
182
|
+
releaseVersionLabel: string;
|
|
183
|
+
/** The badge and the explanation for an installed github entry no catalog
|
|
184
|
+
* row claims (C10 MVP). The mechanism synthesizes a row for ANY github spec
|
|
185
|
+
* with no catalog row — shadowed by a same-named npm package, an unlisted
|
|
186
|
+
* fork, a removed listing, or a same-named conflict with a different repo —
|
|
187
|
+
* so the copy names the catalog fact and lists the causes, rather than
|
|
188
|
+
* claiming the npm-twin one. */
|
|
189
|
+
shadowedBadge: string;
|
|
190
|
+
shadowedDetail: string;
|
|
191
|
+
updatableSection: string;
|
|
192
|
+
/** `{version}` is the shelf's own version text (`versionLabel`), which
|
|
193
|
+
* carries the `v` an npm version takes and no other kind does. */
|
|
194
|
+
installedVersion: string;
|
|
195
|
+
latestVersion: string;
|
|
196
|
+
/** The rollback offer on an installed card (design
|
|
197
|
+
* 2026-11-02-market-borrowings §6). `{version}` is the version the record
|
|
198
|
+
* names, formatted by `versionLabel` before it gets here. */
|
|
199
|
+
/** The star's accessible name and tooltip (design 2026-11-02-market-borrowings
|
|
200
|
+
* §7). A fixed pair: the visible glyph is the same in both states, so the
|
|
201
|
+
* label names the action, and `aria-pressed` carries the state. */
|
|
202
|
+
favorite: string;
|
|
203
|
+
unfavorite: string;
|
|
204
|
+
rollbackTo: string;
|
|
205
|
+
rollingBack: string;
|
|
206
|
+
rollbackFailed: string;
|
|
207
|
+
/** The update row's link to what the new version changed (design
|
|
208
|
+
* 2026-11-02-market-borrowings §4): the npm page of the target version, the
|
|
209
|
+
* GitHub compare view, or the repository's releases. */
|
|
210
|
+
whatChanged: string;
|
|
211
|
+
update: string;
|
|
212
|
+
/** The Updatable section's one batch action (design
|
|
213
|
+
* 2026-11-04-borrowings-round-4 §3). `{count}` is the rows it will start. */
|
|
214
|
+
updateAll: string;
|
|
215
|
+
installed: string;
|
|
216
|
+
uninstall: string;
|
|
217
|
+
uninstalling: string;
|
|
218
|
+
uninstallFailed: string;
|
|
219
|
+
uninstallTransportFailed: string;
|
|
220
|
+
uninstalledLiveNotice: string;
|
|
221
|
+
uninstalledRestartNotice: string;
|
|
222
|
+
uninstalledReloadNotice: string;
|
|
223
|
+
restart: string;
|
|
224
|
+
restartTitle: string;
|
|
225
|
+
restartBody: string;
|
|
226
|
+
restartConfirm: string;
|
|
227
|
+
restarting: string;
|
|
228
|
+
restartFailedNotice: string;
|
|
229
|
+
/** The same failure, when the host said where the new process writes —
|
|
230
|
+
* which is where a boot that died explains itself (design
|
|
231
|
+
* 2026-09-26-market-borrowings §3). "Or did not stay up": the page now
|
|
232
|
+
* waits for the new server to keep answering, so this also covers a boot
|
|
233
|
+
* that answered and then died. */
|
|
234
|
+
restartFailedLogNotice: string;
|
|
235
|
+
restartTransportFailed: string;
|
|
236
|
+
notRestartedNotice: string;
|
|
237
|
+
notRestartedPidNotice: string;
|
|
238
|
+
notRestartedLogNotice: string;
|
|
239
|
+
restartBlockedDesktopNotice: string;
|
|
240
|
+
restartBlockedFromDefaultProfileNotice: string;
|
|
241
|
+
restartBlockedWindowsNotice: string;
|
|
242
|
+
restartBlockedSystemdNotice: string;
|
|
243
|
+
restartBlockedPortZeroNotice: string;
|
|
244
|
+
updateFailed: string;
|
|
245
|
+
updateTransportFailed: string;
|
|
246
|
+
checkUpdate: string;
|
|
247
|
+
checkUpdateTitle: string;
|
|
248
|
+
updateInDshPage: string;
|
|
249
|
+
updateInDshPageTitle: string;
|
|
250
|
+
upToDate: string;
|
|
251
|
+
github: string;
|
|
252
|
+
enabledSwitch: string;
|
|
253
|
+
toggleFailed: string;
|
|
254
|
+
hotApplyNote: string;
|
|
255
|
+
toggleRestartNote: string;
|
|
256
|
+
};
|
|
257
|
+
/** Shop locale key union. */
|
|
258
|
+
export type ShopLocaleKey = keyof typeof zh;
|
|
259
|
+
/** English dictionary checked against the Chinese key set. */
|
|
260
|
+
export declare const en: {
|
|
261
|
+
title: string;
|
|
262
|
+
intro: string;
|
|
263
|
+
openShop: string;
|
|
264
|
+
viewInShop: string;
|
|
265
|
+
loading: string;
|
|
266
|
+
error: string;
|
|
267
|
+
installedLoading: string;
|
|
268
|
+
installedError: string;
|
|
269
|
+
retry: string;
|
|
270
|
+
tabCrashed: string;
|
|
271
|
+
search: string;
|
|
272
|
+
/** One subdued line under the search box when a Chinese query fired a
|
|
273
|
+
* dictionary intent (design 2026-10-08-search-query-expansion §4). */
|
|
274
|
+
zhExpansionNote: string;
|
|
275
|
+
all: string;
|
|
276
|
+
catalog: string;
|
|
277
|
+
catalogStats: string;
|
|
278
|
+
/** The shelf's order control, and the date each card carries under the two
|
|
279
|
+
* date orders (design 2026-10-12-shelf-orders §4). */
|
|
280
|
+
sortLabel: string;
|
|
281
|
+
/** The wide layout's rail headings (design 2026-11-02-shop-widescreen-layout
|
|
282
|
+
* §4): the category group above, the hide-incompatible modifier below. */
|
|
283
|
+
categoriesHeading: string;
|
|
284
|
+
filterHeading: string;
|
|
285
|
+
sortStars: string;
|
|
286
|
+
sortAdded: string;
|
|
287
|
+
sortUpdated: string;
|
|
288
|
+
listedOn: string;
|
|
289
|
+
updatedOn: string;
|
|
290
|
+
stars: string;
|
|
291
|
+
categoryTool: string;
|
|
292
|
+
categoryProvider: string;
|
|
293
|
+
categoryUi: string;
|
|
294
|
+
categoryWorkflow: string;
|
|
295
|
+
categoryIntegration: string;
|
|
296
|
+
categoryTheme: string;
|
|
297
|
+
categoryOther: string;
|
|
298
|
+
empty: string;
|
|
299
|
+
emptySearch: string;
|
|
300
|
+
tierVerified: string;
|
|
301
|
+
/** The github repository GitHub reports as archived (design 2026-10-08 §1.3).
|
|
302
|
+
* Subdued register: nothing is wrong with the install; the owner has simply
|
|
303
|
+
* frozen the project. */
|
|
304
|
+
archivedBadge: string;
|
|
305
|
+
tierVerifiedStale: string;
|
|
306
|
+
tierCommunity: string;
|
|
307
|
+
capabilitiesNote: string;
|
|
308
|
+
install: string;
|
|
309
|
+
cancel: string;
|
|
310
|
+
dismiss: string;
|
|
311
|
+
copyCommand: string;
|
|
312
|
+
copied: string;
|
|
313
|
+
moreRedLines: string;
|
|
314
|
+
lessRedLines: string;
|
|
315
|
+
installing: string;
|
|
316
|
+
downloading: string;
|
|
317
|
+
installedRestartNotice: string;
|
|
318
|
+
incompatibleBadge: string;
|
|
319
|
+
incompatibleDetail: string;
|
|
320
|
+
harnessRangeDetail: string;
|
|
321
|
+
harnessProfileDetail: string;
|
|
322
|
+
harnessPeersDetail: string;
|
|
323
|
+
harnessPeersRemedy: string;
|
|
324
|
+
hotNoPatchNotice: string;
|
|
325
|
+
hotNotSimpleNotice: string;
|
|
326
|
+
hotHostUnsupportedNotice: string;
|
|
327
|
+
hotTimeoutNotice: string;
|
|
328
|
+
hotMountFailedNotice: string;
|
|
329
|
+
hotAlreadyLoadedNotice: string;
|
|
330
|
+
installedNoRestartNotice: string;
|
|
331
|
+
installedReloadNotice: string;
|
|
332
|
+
reload: string;
|
|
333
|
+
reloadNote: string;
|
|
334
|
+
installFailed: string;
|
|
335
|
+
installTransportFailed: string;
|
|
336
|
+
refresh: string;
|
|
337
|
+
refreshing: string;
|
|
338
|
+
refreshFailed: string;
|
|
339
|
+
staleLabel: string;
|
|
340
|
+
showing: string;
|
|
341
|
+
repository: string;
|
|
342
|
+
npmPage: string;
|
|
343
|
+
authorLine: string;
|
|
344
|
+
sizeLabel: string;
|
|
345
|
+
hideIncompatible: string;
|
|
346
|
+
favoritesFilter: string;
|
|
347
|
+
favoritesFilterTitle: string;
|
|
348
|
+
emptyFavoritesFiltered: string;
|
|
349
|
+
incompatibleFilterTitle: string;
|
|
350
|
+
showIncompatibleTitle: string;
|
|
351
|
+
emptyIncompatibleFiltered: string;
|
|
352
|
+
license: string;
|
|
353
|
+
customLicense: string;
|
|
354
|
+
requiresDsh: string;
|
|
355
|
+
dependencies: string;
|
|
356
|
+
commands: string;
|
|
357
|
+
installScripts: string;
|
|
358
|
+
reportProblem: string;
|
|
359
|
+
installScriptsDeclared: string;
|
|
360
|
+
sizeLabelLarge: string;
|
|
361
|
+
reviewedVersionLine: string;
|
|
362
|
+
reviewedPinLine: string;
|
|
363
|
+
deniedCode: string;
|
|
364
|
+
notInCatalogCode: string;
|
|
365
|
+
versionMismatchCode: string;
|
|
366
|
+
needsAcknowledgementCode: string;
|
|
367
|
+
tarballIntegrityCode: string;
|
|
368
|
+
ambiguousIdentityCode: string;
|
|
369
|
+
nameTakenCode: string;
|
|
370
|
+
desktopProfileCode: string;
|
|
371
|
+
nameTakenBadge: string;
|
|
372
|
+
nameTakenDetail: string;
|
|
373
|
+
npmSource: string;
|
|
374
|
+
githubSource: string;
|
|
375
|
+
npmVersionLabel: string;
|
|
376
|
+
commitVersionLabel: string;
|
|
377
|
+
releaseVersionLabel: string;
|
|
378
|
+
shadowedBadge: string;
|
|
379
|
+
shadowedDetail: string;
|
|
380
|
+
updatableSection: string;
|
|
381
|
+
installedVersion: string;
|
|
382
|
+
latestVersion: string;
|
|
383
|
+
favorite: string;
|
|
384
|
+
unfavorite: string;
|
|
385
|
+
rollbackTo: string;
|
|
386
|
+
rollingBack: string;
|
|
387
|
+
rollbackFailed: string;
|
|
388
|
+
whatChanged: string;
|
|
389
|
+
update: string;
|
|
390
|
+
updateAll: string;
|
|
391
|
+
installed: string;
|
|
392
|
+
uninstall: string;
|
|
393
|
+
uninstalling: string;
|
|
394
|
+
uninstallFailed: string;
|
|
395
|
+
uninstallTransportFailed: string;
|
|
396
|
+
uninstalledLiveNotice: string;
|
|
397
|
+
uninstalledRestartNotice: string;
|
|
398
|
+
uninstalledReloadNotice: string;
|
|
399
|
+
restart: string;
|
|
400
|
+
restartTitle: string;
|
|
401
|
+
restartBody: string;
|
|
402
|
+
restartConfirm: string;
|
|
403
|
+
restarting: string;
|
|
404
|
+
restartFailedNotice: string;
|
|
405
|
+
restartFailedLogNotice: string;
|
|
406
|
+
restartTransportFailed: string;
|
|
407
|
+
notRestartedNotice: string;
|
|
408
|
+
notRestartedPidNotice: string;
|
|
409
|
+
notRestartedLogNotice: string;
|
|
410
|
+
restartBlockedDesktopNotice: string;
|
|
411
|
+
restartBlockedFromDefaultProfileNotice: string;
|
|
412
|
+
restartBlockedWindowsNotice: string;
|
|
413
|
+
restartBlockedSystemdNotice: string;
|
|
414
|
+
restartBlockedPortZeroNotice: string;
|
|
415
|
+
updateFailed: string;
|
|
416
|
+
updateTransportFailed: string;
|
|
417
|
+
checkUpdate: string;
|
|
418
|
+
checkUpdateTitle: string;
|
|
419
|
+
updateInDshPage: string;
|
|
420
|
+
updateInDshPageTitle: string;
|
|
421
|
+
upToDate: string;
|
|
422
|
+
github: string;
|
|
423
|
+
enabledSwitch: string;
|
|
424
|
+
toggleFailed: string;
|
|
425
|
+
hotApplyNote: string;
|
|
426
|
+
toggleRestartNote: string;
|
|
427
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The browser half of the peer verdict (design 2026-09-01-harness-compatibility
|
|
3
|
+
* §9): a declared peer is missing only if NEITHER the host NOR this page's
|
|
4
|
+
* module table provides it.
|
|
5
|
+
*
|
|
6
|
+
* The host judges each entry's peers by node resolution from the profile
|
|
7
|
+
* (`host/peers.ts`), and that answers only half of how a client plugin's
|
|
8
|
+
* `require(x)` is served. The module table in `@deepseek-ai/dsh-client-modules`
|
|
9
|
+
* answers in this order: a platform SEED word; an already materialized module
|
|
10
|
+
* (`loadCache`); a graph row (`manifest.modules` — a `dsh.client` package in
|
|
11
|
+
* this profile's boot graph); a registered factory; otherwise it throws. Seed
|
|
12
|
+
* words never touch node resolution, and of the nine the 0.1.5-rc.3 web shell
|
|
13
|
+
* seeds only `@deepseek-ai/cordis` exists as a package on disk — so the host
|
|
14
|
+
* reports the other eight missing for every plugin that declares them, which
|
|
15
|
+
* on the live catalog made most of the host's badges false — `react` among
|
|
16
|
+
* them, the very module this shop's own client runs with. Design
|
|
17
|
+
* 2026-09-01-harness-compatibility §9.1 owns the measurement.
|
|
18
|
+
*
|
|
19
|
+
* So the host's list is never rendered as it arrives: every name the live
|
|
20
|
+
* table provides is removed first (`index.ts`, at the moment a result is
|
|
21
|
+
* handed to the tab). A pure core, `refineIncompatible`, driven by any oracle;
|
|
22
|
+
* and a thin shell, `moduleTableOracle`, over the harness's live object.
|
|
23
|
+
*/
|
|
24
|
+
/** What the module table says about one specifier: `true` provided, `false`
|
|
25
|
+
* absent, `null` unknown. Injected, so fixtures drive every verdict and only
|
|
26
|
+
* one oracle ever touches the harness. */
|
|
27
|
+
export type ModuleOracle = (spec: string) => Promise<boolean | null>;
|
|
28
|
+
/**
|
|
29
|
+
* How long one probe may take before its answer counts as unknown.
|
|
30
|
+
*
|
|
31
|
+
* The work a probe can actually reach is a microtask: a seed-word lookup, or a
|
|
32
|
+
* factory this page already registered. So this bounds a harness that never
|
|
33
|
+
* answers, not work — and it exists because the cost of the alternative is the
|
|
34
|
+
* whole shelf. `refineAgainstModuleTable` promises that a table in any state
|
|
35
|
+
* cannot cost the reader the catalog, and an `import()` that never settles
|
|
36
|
+
* would have made that promise false by leaving the tab with nothing to render
|
|
37
|
+
* (§9's degradation rule: an unavailable fact is silence, never an accusation).
|
|
38
|
+
* A probe per name, not one deadline for the whole refinement: every other
|
|
39
|
+
* name is still judged, and the tab waits at most this long however many names
|
|
40
|
+
* there are.
|
|
41
|
+
*/
|
|
42
|
+
export declare const MODULE_PROBE_TIMEOUT_MS = 2000;
|
|
43
|
+
/**
|
|
44
|
+
* The host's verdict less every name the oracle provides.
|
|
45
|
+
*
|
|
46
|
+
* An entry whose list empties is dropped, and an entry ANY of whose names
|
|
47
|
+
* comes back unknown gets no verdict at all — the rule `incompatibilityMap`
|
|
48
|
+
* follows on the host, for the host's reason: an unavailable fact must never
|
|
49
|
+
* read as an accusation, and keeping the rest of a list whose one unknown name
|
|
50
|
+
* was dropped would publish a partial answer as the whole one. Each distinct
|
|
51
|
+
* name is asked once, however many entries declare it. Never rejects: any
|
|
52
|
+
* failure of the oracle is an unknown.
|
|
53
|
+
*/
|
|
54
|
+
export declare function refineIncompatible(incompatible: Readonly<Record<string, readonly string[]>>, provides: ModuleOracle, timeoutMs?: number): Promise<Record<string, string[]>>;
|
|
55
|
+
/**
|
|
56
|
+
* An oracle over the live `modules` service, or null when the page offers no
|
|
57
|
+
* usable table.
|
|
58
|
+
*
|
|
59
|
+
* The service is the harness's `ClientModuleLoader`, published to client
|
|
60
|
+
* plugins as `ctx.reflect.provide('modules', …)`. It arrives as unknown-typed
|
|
61
|
+
* foreign state, so only its PUBLIC contract is read, and only after
|
|
62
|
+
* narrowing: `manifest.modules` must be an array, `loadCache` a Map and
|
|
63
|
+
* `import` a function. `seed`, `factories` and `graphRows` exist on the
|
|
64
|
+
* instance too, but they are TypeScript-`private` in the harness's own
|
|
65
|
+
* declarations, and nothing here names them.
|
|
66
|
+
*
|
|
67
|
+
* Per spec, in the table's own order but with every side effect kept out:
|
|
68
|
+
* 1. A graph row provides it, and `import` is NOT called — for a row it
|
|
69
|
+
* fetches the bundle and runs the module body, and a probe must never be
|
|
70
|
+
* what loads a plugin. `manifest.modules` is the row index, but it is not
|
|
71
|
+
* fixed for the page's whole life on every harness build. On 0.1.5-rc.3
|
|
72
|
+
* `this.manifest = options.manifest` is the constructor's only write, so a
|
|
73
|
+
* row placed at boot stands unchanged for as long as the page lives. On
|
|
74
|
+
* 0.1.7-rc.2 (`next`) `updateManifest` REPLACES `this.manifest` outright
|
|
75
|
+
* with a new manifest that no longer lists an uninstalled package, and
|
|
76
|
+
* `reconcile` removes the plugin from the loader — so UNTIL this page's own
|
|
77
|
+
* uninstall reconciles, the OLD row still stands in `manifest.modules` and
|
|
78
|
+
* this step clears the entry falsely; AFTER it reconciles, this step can no
|
|
79
|
+
* longer be the false clear, because `manifest.modules` has already dropped
|
|
80
|
+
* the package. The false clear then comes from `prune`, which keeps the
|
|
81
|
+
* removed id only in the PRIVATE `graphRows` and in `loadCache`, and only
|
|
82
|
+
* while some retained module still references it — that is step 2 below,
|
|
83
|
+
* or the side effect of `import` in step 3 (a private graph row this
|
|
84
|
+
* function cannot see).
|
|
85
|
+
* 2. A `loadCache` record provides it, again without `import`.
|
|
86
|
+
* 3. Otherwise `import(spec, '', {})`, with the spec as written — the seed
|
|
87
|
+
* holds `react-dom/client` itself, not its stripped form. Resolving means a
|
|
88
|
+
* seed word, whose lookup has no side effect; rejecting with the
|
|
89
|
+
* "cannot resolve" message means absent; any other rejection is unknown.
|
|
90
|
+
*
|
|
91
|
+
* A kept-but-unmaterialized row is this function's own remaining blind spot:
|
|
92
|
+
* asked about here, it still reaches step 3's `import` probe, which fetches
|
|
93
|
+
* and runs it — the one side effect this module promises never to cause on
|
|
94
|
+
* its own account. `refineAgainstModuleTable`'s page-removed set is the fix
|
|
95
|
+
* for the one case a page can know about on its own — a name uninstalled
|
|
96
|
+
* through THIS shop, on THIS page, since it loaded — by bypassing this oracle
|
|
97
|
+
* for that name entirely rather than trusting a row that may only be kept. An
|
|
98
|
+
* uninstall made from another tab, another window, or the CLI is not in that
|
|
99
|
+
* set and stays unknown to this page until it reloads.
|
|
100
|
+
*
|
|
101
|
+
* One side-effect path remains: a registered page-local factory that is
|
|
102
|
+
* neither a graph row nor yet materialized, which `import` materializes. That
|
|
103
|
+
* is reachable only for a name the host could not resolve AND the page
|
|
104
|
+
* registered without a row — the shell's own page-local modules are
|
|
105
|
+
* node-resolvable, so the host never lists them. And what it does is what the
|
|
106
|
+
* first real `require` of that name does anyway: run a factory this page
|
|
107
|
+
* registered precisely so it would be materialized, once, memoized in
|
|
108
|
+
* `loadCache`, fetching nothing. It moves that moment earlier; it runs nothing
|
|
109
|
+
* the page did not already hold.
|
|
110
|
+
*/
|
|
111
|
+
export declare function moduleTableOracle(service: unknown): ModuleOracle | null;
|
|
112
|
+
/**
|
|
113
|
+
* The host's verdict as this page can stand behind it: refined against the
|
|
114
|
+
* live table, or `{}` — no verdicts at all — when there is no usable table.
|
|
115
|
+
*
|
|
116
|
+
* Never the host's list unrefined. Measured, that list is majority-false on
|
|
117
|
+
* this harness line (see the header), so showing it whenever the table cannot
|
|
118
|
+
* be read would hand the reader a verdict already known to be unreliable;
|
|
119
|
+
* silence is this project's documented degradation — an unavailable fact must
|
|
120
|
+
* never read as an accusation. Never rejects, so a table in any state cannot
|
|
121
|
+
* cost the reader the catalog.
|
|
122
|
+
*
|
|
123
|
+
* `removed` is the page-removed set (design 2026-09-01-harness-compatibility
|
|
124
|
+
* section 9.1): package names this page has uninstalled since it loaded.
|
|
125
|
+
* Every name in it is reported missing exactly
|
|
126
|
+
* as the host said, WITHOUT ever reaching the table — not the rows check, not
|
|
127
|
+
* `loadCache`, not `import` — because a row or a cache record can outlive a
|
|
128
|
+
* restart-free uninstall (`moduleTableOracle`'s header), and the table's own
|
|
129
|
+
* "provided" would be precisely the false clear this set exists to prevent.
|
|
130
|
+
*/
|
|
131
|
+
export declare function refineAgainstModuleTable(incompatible: Readonly<Record<string, readonly string[]>>, service: unknown, removed?: ReadonlySet<string>, timeoutMs?: number): Promise<Record<string, string[]>>;
|