dsh-tidy-display 0.2.4-beta.4 → 0.3.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/CHANGELOG.de.md +4 -0
- package/CHANGELOG.es.md +4 -0
- package/CHANGELOG.fr.md +4 -0
- package/CHANGELOG.it.md +4 -0
- package/CHANGELOG.md +4 -0
- package/CHANGELOG.ru.md +4 -0
- package/compat/harness-020rc2.json +5 -5
- package/lib/client.js +2499 -44
- package/lib/client.js.map +1 -1
- package/lib/types/client/OfficialContent.d.ts.map +1 -1
- package/lib/types/client/OfficialContent.js +10 -3
- package/lib/types/client/OfficialContent.js.map +1 -1
- package/lib/types/client/Reader.d.ts.map +1 -1
- package/lib/types/client/Reader.js +18 -2
- package/lib/types/client/Reader.js.map +1 -1
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/index.js +36 -10
- package/lib/types/client/index.js.map +1 -1
- package/lib/types/client/locales.d.ts +289 -0
- package/lib/types/client/locales.d.ts.map +1 -0
- package/lib/types/client/locales.js +2255 -0
- package/lib/types/client/locales.js.map +1 -0
- package/lib/types/client/official-slots.d.ts +1 -0
- package/lib/types/client/official-slots.d.ts.map +1 -1
- package/lib/types/client/official-slots.js +24 -9
- package/lib/types/client/official-slots.js.map +1 -1
- package/lib/types/client/projection.d.ts.map +1 -1
- package/lib/types/client/projection.js +6 -5
- package/lib/types/client/projection.js.map +1 -1
- package/lib/types/client/settings-copy.d.ts +3 -1
- package/lib/types/client/settings-copy.d.ts.map +1 -1
- package/lib/types/client/settings-copy.js +80 -2
- package/lib/types/client/settings-copy.js.map +1 -1
- package/lib/types/client/settings.d.ts.map +1 -1
- package/lib/types/client/settings.js +7 -6
- package/lib/types/client/settings.js.map +1 -1
- package/lib/types/client/soft-svc.d.ts +21 -0
- package/lib/types/client/soft-svc.d.ts.map +1 -0
- package/lib/types/client/soft-svc.js +42 -0
- package/lib/types/client/soft-svc.js.map +1 -0
- package/lib/types/client/store-face.d.ts +31 -0
- package/lib/types/client/store-face.d.ts.map +1 -0
- package/lib/types/client/store-face.js +81 -0
- package/lib/types/client/store-face.js.map +1 -0
- package/lib/types/client/store.js +1 -1
- package/lib/types/client/store.js.map +1 -1
- package/package.json +3 -2
- package/src/client/OfficialContent.tsx +11 -5
- package/src/client/Reader.tsx +20 -2
- package/src/client/index.tsx +43 -10
- package/src/client/locales.ts +2422 -0
- package/src/client/official-slots.tsx +25 -10
- package/src/client/projection.ts +7 -6
- package/src/client/settings-copy.ts +83 -3
- package/src/client/settings.tsx +7 -5
- package/src/client/soft-svc.ts +36 -0
- package/src/client/store-face.ts +126 -0
- package/src/client/store.ts +4 -4
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin-owned i18n dictionaries for the Tidy Display reader UI.
|
|
3
|
+
*
|
|
4
|
+
* The settings panel ships its own vocabulary in `settings-copy.ts` under the
|
|
5
|
+
* `tidy-display` namespace; this module owns the *conversation* surface (the
|
|
6
|
+
* reading view, the message rail, tool cards, metrics chips) under the plugin
|
|
7
|
+
* namespace `dsh-tidy-display`, registered through the DSH `locale` service.
|
|
8
|
+
*
|
|
9
|
+
* `zh` is the key-set source of truth — it holds the copy the components used
|
|
10
|
+
* before i18n existed — and every other language is typed as
|
|
11
|
+
* `Record<TidyKey, string>`, so a missing or extra key is a COMPILE error
|
|
12
|
+
* instead of a runtime fallback to a raw key.
|
|
13
|
+
*/
|
|
14
|
+
/** The namespace owned by this plugin. */
|
|
15
|
+
export declare const NS = "dsh-tidy-display";
|
|
16
|
+
/** Simplified Chinese dictionary — the key-set source of truth. */
|
|
17
|
+
export declare const zh: {
|
|
18
|
+
'common.copy': string;
|
|
19
|
+
'common.copied': string;
|
|
20
|
+
'common.collapse': string;
|
|
21
|
+
'common.expand': string;
|
|
22
|
+
'common.expandLines': string;
|
|
23
|
+
'view.reader': string;
|
|
24
|
+
'reader.fallbackError': string;
|
|
25
|
+
'reader.stopped': string;
|
|
26
|
+
'reader.steering': string;
|
|
27
|
+
'reader.turnError': string;
|
|
28
|
+
'reader.maxTokens': string;
|
|
29
|
+
'reader.retryNotice': string;
|
|
30
|
+
'reader.commandError': string;
|
|
31
|
+
'reader.commandRecordFallback': string;
|
|
32
|
+
'reader.unknownNode': string;
|
|
33
|
+
'reader.viewInChat': string;
|
|
34
|
+
'reader.rawRecord': string;
|
|
35
|
+
'reader.systemPrompt': string;
|
|
36
|
+
'reader.modelRetryRecord': string;
|
|
37
|
+
'reader.commandRecord': string;
|
|
38
|
+
'reader.sessionError': string;
|
|
39
|
+
'reader.loading': string;
|
|
40
|
+
'reader.deepDiving': string;
|
|
41
|
+
'reader.jumpBottom': string;
|
|
42
|
+
'reader.pendingQuestion': string;
|
|
43
|
+
'reader.pendingConfirm': string;
|
|
44
|
+
'reader.pendingHint': string;
|
|
45
|
+
'reader.blockError': string;
|
|
46
|
+
'reader.unknownBlock': string;
|
|
47
|
+
'reader.rawContent': string;
|
|
48
|
+
'reader.toolArgs': string;
|
|
49
|
+
'reader.copyFailed': string;
|
|
50
|
+
'reader.copyAnswer': string;
|
|
51
|
+
'reader.forkAria': string;
|
|
52
|
+
'reader.forkTitle': string;
|
|
53
|
+
'reader.copyMessage': string;
|
|
54
|
+
'reader.blockErrorDetail': string;
|
|
55
|
+
'image.zoom': string;
|
|
56
|
+
'image.zoomNamed': string;
|
|
57
|
+
'image.alt': string;
|
|
58
|
+
'image.altPending': string;
|
|
59
|
+
'image.error': string;
|
|
60
|
+
'image.loading': string;
|
|
61
|
+
'image.retry': string;
|
|
62
|
+
'image.preview': string;
|
|
63
|
+
'image.close': string;
|
|
64
|
+
'status.process': string;
|
|
65
|
+
'status.elapsedSec': string;
|
|
66
|
+
'status.elapsedMin': string;
|
|
67
|
+
'status.awaitUser': string;
|
|
68
|
+
'status.subagents': string;
|
|
69
|
+
'status.usingTool': string;
|
|
70
|
+
'status.thinking': string;
|
|
71
|
+
'status.outputting': string;
|
|
72
|
+
'status.preparingReply': string;
|
|
73
|
+
'status.processing': string;
|
|
74
|
+
'compaction.label': string;
|
|
75
|
+
'compaction.items': string;
|
|
76
|
+
'compaction.tokens': string;
|
|
77
|
+
'compaction.itemsTokens': string;
|
|
78
|
+
'compaction.titleCollapse': string;
|
|
79
|
+
'compaction.titleExpand': string;
|
|
80
|
+
'compaction.toggleCollapse': string;
|
|
81
|
+
'compaction.toggleExpand': string;
|
|
82
|
+
'compaction.summaryHeader': string;
|
|
83
|
+
'compaction.errorTitle': string;
|
|
84
|
+
'deliverables.label': string;
|
|
85
|
+
'deliverables.more': string;
|
|
86
|
+
'deliverables.workspaceTitle': string;
|
|
87
|
+
'deliverables.workspaceOpened': string;
|
|
88
|
+
'deliverables.showInFolder': string;
|
|
89
|
+
'deliverables.openSidebar': string;
|
|
90
|
+
'deliverables.openExternal': string;
|
|
91
|
+
'deliverables.openedSidebar': string;
|
|
92
|
+
'deliverables.openedExternal': string;
|
|
93
|
+
'deliverables.fileActions': string;
|
|
94
|
+
'deliverables.revealTitle': string;
|
|
95
|
+
'deliverables.revealAria': string;
|
|
96
|
+
'deliverables.copyPath': string;
|
|
97
|
+
'deliverables.openPath': string;
|
|
98
|
+
'toolbar.autoFoldTitle': string;
|
|
99
|
+
'toolbar.autoFoldOn': string;
|
|
100
|
+
'toolbar.autoFoldOff': string;
|
|
101
|
+
'history.loading': string;
|
|
102
|
+
'history.load': string;
|
|
103
|
+
'history.error': string;
|
|
104
|
+
'tool.phase.preparing': string;
|
|
105
|
+
'tool.phase.running': string;
|
|
106
|
+
'tool.phase.returned': string;
|
|
107
|
+
'tool.phase.succeeded': string;
|
|
108
|
+
'tool.phase.failed': string;
|
|
109
|
+
'tool.phase.interrupted': string;
|
|
110
|
+
'tool.generatingInput': string;
|
|
111
|
+
'tool.inputFileContent': string;
|
|
112
|
+
'tool.previewTruncated': string;
|
|
113
|
+
'tool.fileContent': string;
|
|
114
|
+
'tool.generatingCommand': string;
|
|
115
|
+
'tool.submittedCommand': string;
|
|
116
|
+
'tool.receivedFields': string;
|
|
117
|
+
'tool.input': string;
|
|
118
|
+
'tool.interruptedNoResult': string;
|
|
119
|
+
'tool.preparingNote': string;
|
|
120
|
+
'tool.waitingResult': string;
|
|
121
|
+
'tool.cancelled': string;
|
|
122
|
+
'tool.writeReturned': string;
|
|
123
|
+
'tool.codeNoOutput': string;
|
|
124
|
+
'tool.mediaElsewhere': string;
|
|
125
|
+
'tool.noContent': string;
|
|
126
|
+
'tool.stoppedKept': string;
|
|
127
|
+
'tool.tab.preview': string;
|
|
128
|
+
'tool.tab.result': string;
|
|
129
|
+
'tool.tab.input': string;
|
|
130
|
+
'tool.tab.raw': string;
|
|
131
|
+
'tool.deepNested': string;
|
|
132
|
+
'tool.ledger': string;
|
|
133
|
+
'tool.receivedChars': string;
|
|
134
|
+
'tool.submittedWaiting': string;
|
|
135
|
+
'tool.stoppedInputKept': string;
|
|
136
|
+
'tool.executedFor': string;
|
|
137
|
+
'tool.resultRecorded': string;
|
|
138
|
+
'tool.exitCode': string;
|
|
139
|
+
'tool.signal': string;
|
|
140
|
+
'tool.tabsAria': string;
|
|
141
|
+
'tool.selectionPaused': string;
|
|
142
|
+
'tool.allInputFields': string;
|
|
143
|
+
'tool.inputFields': string;
|
|
144
|
+
'tool.rawNote': string;
|
|
145
|
+
'tool.result': string;
|
|
146
|
+
'tool.inputNotArrived': string;
|
|
147
|
+
'tool.subCalls': string;
|
|
148
|
+
'tool.ms': string;
|
|
149
|
+
'tool.sec': string;
|
|
150
|
+
'tool.verbWrite': string;
|
|
151
|
+
'tool.verbEdit': string;
|
|
152
|
+
'tool.verbRead': string;
|
|
153
|
+
'tool.titleEditPatch': string;
|
|
154
|
+
'tool.titleWriteFile': string;
|
|
155
|
+
'tool.titleEditFile': string;
|
|
156
|
+
'tool.titleReadFile': string;
|
|
157
|
+
'tool.runCommand': string;
|
|
158
|
+
'tool.findFiles': string;
|
|
159
|
+
'tool.searchContent': string;
|
|
160
|
+
'tool.webSearch': string;
|
|
161
|
+
'tool.webFetch': string;
|
|
162
|
+
'tool.runCode': string;
|
|
163
|
+
'tool.preparingFile': string;
|
|
164
|
+
'tool.preparingCommand': string;
|
|
165
|
+
'tool.preparingInput': string;
|
|
166
|
+
'reason.label': string;
|
|
167
|
+
'reason.step': string;
|
|
168
|
+
'reason.region': string;
|
|
169
|
+
'reason.regionScrollable': string;
|
|
170
|
+
'reason.pauseAria': string;
|
|
171
|
+
'reason.resumeAria': string;
|
|
172
|
+
'reason.selectionHint': string;
|
|
173
|
+
'reason.pause': string;
|
|
174
|
+
'reason.follow': string;
|
|
175
|
+
'reason.manualReading': string;
|
|
176
|
+
'reason.scrollableReading': string;
|
|
177
|
+
'reason.collapseAria': string;
|
|
178
|
+
'reason.expandAria': string;
|
|
179
|
+
'reason.expandRead': string;
|
|
180
|
+
'disclosure.process': string;
|
|
181
|
+
'disclosure.collapseAria': string;
|
|
182
|
+
'disclosure.expandAria': string;
|
|
183
|
+
'fold.previous': string;
|
|
184
|
+
'fold.processDetail': string;
|
|
185
|
+
'fold.reasoning': string;
|
|
186
|
+
'fold.body': string;
|
|
187
|
+
'fold.tool': string;
|
|
188
|
+
'fold.record': string;
|
|
189
|
+
'turn.aborted': string;
|
|
190
|
+
'turn.blocked': string;
|
|
191
|
+
'turn.maxTokens': string;
|
|
192
|
+
'turn.error': string;
|
|
193
|
+
'turn.unknown': string;
|
|
194
|
+
'metrics.tokensTitle': string;
|
|
195
|
+
'metrics.usage': string;
|
|
196
|
+
'metrics.timingTitle': string;
|
|
197
|
+
'metrics.dialogAria': string;
|
|
198
|
+
'metrics.header': string;
|
|
199
|
+
'metrics.timingSection': string;
|
|
200
|
+
'metrics.totalTime': string;
|
|
201
|
+
'metrics.tps': string;
|
|
202
|
+
'metrics.ttft': string;
|
|
203
|
+
'metrics.tokenSection': string;
|
|
204
|
+
'metrics.total': string;
|
|
205
|
+
'metrics.input': string;
|
|
206
|
+
'metrics.cacheHit': string;
|
|
207
|
+
'metrics.cacheRead': string;
|
|
208
|
+
'metrics.output': string;
|
|
209
|
+
'metrics.thinkingTokens': string;
|
|
210
|
+
'time.seconds': string;
|
|
211
|
+
'time.minutesSeconds': string;
|
|
212
|
+
'time.ranFor': string;
|
|
213
|
+
'time.overtime': string;
|
|
214
|
+
'date.monthDay': string;
|
|
215
|
+
'date.yearMonthDay': string;
|
|
216
|
+
'rail.olderHead': string;
|
|
217
|
+
'rail.olderTip': string;
|
|
218
|
+
'rail.aria': string;
|
|
219
|
+
'diff.linesAria': string;
|
|
220
|
+
'mcp.defaultTitle': string;
|
|
221
|
+
'mcp.receiptChoice': string;
|
|
222
|
+
'mcp.receiptAction': string;
|
|
223
|
+
'mcp.receiptVariant': string;
|
|
224
|
+
'mcp.reset': string;
|
|
225
|
+
'mcp.ready': string;
|
|
226
|
+
'mcp.fillHint': string;
|
|
227
|
+
'mcp.fillButton': string;
|
|
228
|
+
'mcp.generating': string;
|
|
229
|
+
'mcp.generatingNamed': string;
|
|
230
|
+
'md.copyCode': string;
|
|
231
|
+
'md.footnotes': string;
|
|
232
|
+
'read.code': string;
|
|
233
|
+
'read.wrap': string;
|
|
234
|
+
'read.unwrap': string;
|
|
235
|
+
'read.window': string;
|
|
236
|
+
'read.collapseAria': string;
|
|
237
|
+
'term.noExitCode': string;
|
|
238
|
+
'term.noOutput': string;
|
|
239
|
+
'term.collapseAria': string;
|
|
240
|
+
'diff.collapseAria': string;
|
|
241
|
+
'search.paths': string;
|
|
242
|
+
'search.matches': string;
|
|
243
|
+
'search.truncated': string;
|
|
244
|
+
'search.noResults': string;
|
|
245
|
+
'search.collapseAria': string;
|
|
246
|
+
'web.sourcesTruncated': string;
|
|
247
|
+
'web.contentTruncated': string;
|
|
248
|
+
'json.truncated': string;
|
|
249
|
+
'json.copyValue': string;
|
|
250
|
+
'json.copyJson': string;
|
|
251
|
+
'json.copyPath': string;
|
|
252
|
+
'json.copyPretty': string;
|
|
253
|
+
'json.copyCompact': string;
|
|
254
|
+
'json.copyFailed': string;
|
|
255
|
+
'json.collapseNode': string;
|
|
256
|
+
'json.expandNode': string;
|
|
257
|
+
};
|
|
258
|
+
/** The key union: what a `t('…')` call may name inside this namespace. */
|
|
259
|
+
export type TidyKey = keyof typeof zh;
|
|
260
|
+
/** English dictionary, checked complete against the zh key set. */
|
|
261
|
+
export declare const en: Record<TidyKey, string>;
|
|
262
|
+
/** Japanese dictionary, checked complete against the zh key set. */
|
|
263
|
+
export declare const ja: Record<TidyKey, string>;
|
|
264
|
+
/** Korean dictionary, checked complete against the zh key set. */
|
|
265
|
+
export declare const ko: Record<TidyKey, string>;
|
|
266
|
+
/** French dictionary, checked complete against the zh key set. */
|
|
267
|
+
export declare const fr: Record<TidyKey, string>;
|
|
268
|
+
/** German dictionary, checked complete against the zh key set. */
|
|
269
|
+
export declare const de: Record<TidyKey, string>;
|
|
270
|
+
/** Italian dictionary, checked complete against the zh key set. */
|
|
271
|
+
export declare const it: Record<TidyKey, string>;
|
|
272
|
+
/** Russian dictionary, checked complete against the zh key set. */
|
|
273
|
+
export declare const ru: Record<TidyKey, string>;
|
|
274
|
+
/** Spanish dictionary, checked complete against the zh key set. */
|
|
275
|
+
export declare const es: Record<TidyKey, string>;
|
|
276
|
+
/** All languages this plugin ships, in one call to the host locale service. */
|
|
277
|
+
export declare const dictionaries: Record<string, Record<string, string>>;
|
|
278
|
+
/** Install the host-backed lookup; `null` unbinds it (tests, SSR, early boot). */
|
|
279
|
+
export declare function installTranslate(fn: ((key: string) => string) | null): void;
|
|
280
|
+
/**
|
|
281
|
+
* Translate `key` inside {@link NS}, interpolating `{placeholder}` params.
|
|
282
|
+
*
|
|
283
|
+
* Fallback chain: active locale → the `zh` source copy → the raw key. Falling
|
|
284
|
+
* back to `zh` (instead of the key) keeps every string readable — and keeps the
|
|
285
|
+
* existing unit tests, which assert the Chinese copy — green when no locale
|
|
286
|
+
* service is installed.
|
|
287
|
+
*/
|
|
288
|
+
export declare function t(key: string, params?: Record<string, string | number>): string;
|
|
289
|
+
//# sourceMapping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