@4fu/dsh-arbor-ui 0.0.0-stage → 2026.1110.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/i18n.d.ts ADDED
@@ -0,0 +1,235 @@
1
+ /**
2
+ * The arbor pages' own copy: Chinese first, English for the other locale.
3
+ *
4
+ * Every string the pages draw comes from this table, registered as a DSH
5
+ * locale namespace through `ctx.locale.register` and read through its bound
6
+ * `t`, so switching DSH's language switches the pages with the rest of the
7
+ * page. The English dictionary is the key-set source of truth; the Chinese
8
+ * one must carry every key.
9
+ */
10
+ /** The locale namespace this package registers. */
11
+ export declare const NAMESPACE = "arborUi";
12
+ /** The English dictionary: the key set every other language must match. */
13
+ export declare const en: {
14
+ readonly expandStream: "Show more";
15
+ readonly collapseStream: "Show less";
16
+ readonly heroIdleOne: "1 session is quiet; {ended} windows have finished.";
17
+ readonly chainSummaryOne: "{count} window · {window} {state}";
18
+ readonly dateLocale: "en-US";
19
+ readonly filterAll: "All";
20
+ readonly filterWindows: "Windows";
21
+ readonly filterBoard: "Board";
22
+ readonly filterNotes: "Notes";
23
+ readonly filterEnv: "Environment";
24
+ readonly filterSchedules: "Schedules";
25
+ readonly heroLive: "{window} is working. The board holds {board} things.";
26
+ readonly heroLiveBoardOne: "{window} is working. The board holds {board} thing.";
27
+ readonly heroFirst: "{window} is working. The board holds {board} things.";
28
+ readonly heroIdle: "{sessions} sessions are quiet; {ended} windows have finished.";
29
+ readonly heroIdleEndedOne: "{sessions} sessions are quiet; {ended} window has finished.";
30
+ readonly heroIdleBothOne: "1 session is quiet; {ended} window has finished.";
31
+ readonly heroIdleWait: "{waiting} sessions are waiting for you; {ended} windows have finished.";
32
+ readonly heroIdleWaitEndedOne: "{waiting} sessions are waiting for you; {ended} window has finished.";
33
+ readonly heroIdleWaitOne: "1 session is waiting for you; {ended} windows have finished.";
34
+ readonly heroIdleWaitBothOne: "1 session is waiting for you; {ended} window has finished.";
35
+ readonly heroLiveWait: "{window} is working. The board holds {board} things, and {waiting} other sessions are waiting for you.";
36
+ readonly heroLiveWaitBoardOne: "{window} is working. The board holds {board} thing, and {waiting} other sessions are waiting for you.";
37
+ readonly heroLiveWaitWaitingOne: "{window} is working. The board holds {board} things, and {waiting} other session is waiting for you.";
38
+ readonly heroLiveWaitBothOne: "{window} is working. The board holds {board} thing, and {waiting} other session is waiting for you.";
39
+ readonly heroLiveNoBoardWait: "{window} is working; the board is empty, and {waiting} other sessions are waiting for you.";
40
+ readonly heroLiveNoBoardWaitOne: "{window} is working; the board is empty, and {waiting} other session is waiting for you.";
41
+ readonly heroEmpty: "No arbor window yet.";
42
+ readonly heroEmptyHint: "Pick Arbor in any session and send a message; this page will light up.";
43
+ readonly sessionHeroLive: "{window} is carrying on from {previous}, with {board} things still on the board.";
44
+ readonly sessionHeroLiveBoardOne: "{window} is carrying on from {previous}, with {board} thing still on the board.";
45
+ readonly sessionHeroFirst: "{window} is working, with {board} things on the board.";
46
+ readonly sessionHeroFirstBoardOne: "{window} is working, with {board} thing on the board.";
47
+ readonly sessionHeroIdle: "{window} is waiting for your next message.";
48
+ readonly sessionHeroEnded: "All {count} windows are finished; the chain ends at {window}.";
49
+ readonly sessionHeroEndedOne: "1 window is finished; the chain ends at {window}.";
50
+ readonly sessionHeroEmpty: "This session has no window yet.";
51
+ readonly sessionHeroEmptyHint: "Send the first message and arbor will open its first window.";
52
+ readonly cardChain: "Window chain";
53
+ readonly cardWorkspace: "Workspace";
54
+ readonly cardEnvironment: "Environment";
55
+ readonly cardSchedules: "Schedules";
56
+ readonly cardSession: "Session";
57
+ readonly streamEmpty: "When the model starts writing, the lines appear here.";
58
+ readonly emptyWindows: "No window yet.";
59
+ readonly emptyWindowsHint: "The first message opens the first window.";
60
+ readonly emptyBoard: "The board is empty.";
61
+ readonly emptyBoardHint: "A running window writes what it is doing here.";
62
+ readonly emptyNotes: "No active note yet.";
63
+ readonly emptyNotesHint: "Notes are the memory a window writes for the next one.";
64
+ readonly emptyEnv: "The environment is empty.";
65
+ readonly emptyEnvHint: "Skills, MCP servers and services appear here.";
66
+ readonly emptySchedules: "No schedule yet.";
67
+ readonly emptySchedulesHint: "When arbor needs to work at a time, its schedule appears here.";
68
+ readonly openSearch: "Search";
69
+ readonly openSettings: "Settings";
70
+ readonly closeSheet: "Close";
71
+ readonly settingsHostData: "Host data";
72
+ readonly settingsBackend: "Workspace backend";
73
+ readonly settingsShared: "Shared folder";
74
+ readonly chainRestart: "restart";
75
+ readonly chainHandoff: "handoff";
76
+ readonly chainStart: "start";
77
+ readonly chainEnd: "end";
78
+ readonly tabTitle: "Arbor";
79
+ readonly panelLabel: "Arbor";
80
+ readonly pageTitle: "Arbor";
81
+ readonly pageIntro: "The whole arbor host: every session, window, board line, note, environment item, schedule and setting.";
82
+ readonly tabOverview: "Overview";
83
+ readonly sessions: "Sessions";
84
+ readonly liveWindows: "Live windows";
85
+ readonly noSessions: "No arbor window yet.";
86
+ readonly noSessionsHint: "Pick Arbor in any session and send a message; its windows appear here.";
87
+ readonly openSessionTab: "Expand session";
88
+ readonly closeTab: "Close tab";
89
+ readonly openInDsh: "Open session";
90
+ readonly now: "Now";
91
+ readonly noLiveWindow: "No live window.";
92
+ readonly chain: "Window chain";
93
+ readonly chainSummary: "{count} windows · {window} {state}";
94
+ readonly summarySessions: "Sessions";
95
+ readonly summaryWindows: "Live windows";
96
+ readonly summaryNotes: "Active notes";
97
+ readonly summaryEnv: "Environment";
98
+ readonly summarySchedules: "Schedules";
99
+ readonly host: "host";
100
+ readonly dataRoot: "Data root";
101
+ readonly sessionTabHint: "This tab has only this session's state.";
102
+ readonly chipTitle: "Arbor";
103
+ readonly chipAria: "Open the arbor panel";
104
+ readonly chipNoWindow: "No window";
105
+ readonly chipWindows: "{count} windows";
106
+ readonly chipWindowOne: "1 window";
107
+ readonly chipIdle: "Idle · {count} windows";
108
+ readonly chipIdleOne: "Idle · 1 window";
109
+ readonly chipLive: "Live";
110
+ readonly panelIntro: "What arbor is actually doing in this session, read from arbor itself.";
111
+ readonly notArbor: "This session does not run on arbor.";
112
+ readonly loading: "Reading arbor…";
113
+ readonly error: "The arbor channel is unavailable: {message}";
114
+ readonly retry: "Retrying…";
115
+ readonly statusRunning: "Running";
116
+ readonly statusIdle: "Idle";
117
+ readonly statusEnded: "Ended";
118
+ readonly statusPaused: "Paused";
119
+ readonly sectionWindows: "Windows";
120
+ readonly sectionWorkspace: "Workspace";
121
+ readonly sectionBoard: "Board";
122
+ readonly sectionNotes: "Notes";
123
+ readonly sectionEnvironment: "Environment";
124
+ readonly sectionSchedules: "Schedules";
125
+ readonly sectionSettings: "Settings";
126
+ readonly sectionSearch: "Search";
127
+ readonly noWindows: "No window yet.";
128
+ readonly noWindowsHint: "The first message opens this session's first arbor window.";
129
+ readonly live: "live";
130
+ readonly ended: "ended";
131
+ readonly windowCount: "{count} in the chain";
132
+ readonly endModel: "model ended";
133
+ readonly endIdle: "idle timeout";
134
+ readonly endHardLimit: "context limit";
135
+ readonly endRestart: "host restart";
136
+ readonly endFailed: "model failed";
137
+ readonly endPaused: "paused";
138
+ readonly handoff: "handoff";
139
+ readonly handoffTo: "continued by {window}";
140
+ readonly continuesFrom: "continues {window}";
141
+ readonly handoffRefs: "handoff refs";
142
+ readonly handoffTopics: "Topics";
143
+ readonly handoffProgress: "Progress";
144
+ readonly handoffPending: "Pending";
145
+ readonly handoffAgreements: "Agreements";
146
+ readonly refused: "refused: {rule}";
147
+ readonly endRefusedTitle: "The last end was refused";
148
+ readonly endRefusedHint: "The window is still open, so nothing ended. Send another message in DSH to keep working; the model can call end again with the handoff fields arbor named.";
149
+ readonly usage: "{used} / {limit} tokens";
150
+ readonly streamText: "Model output";
151
+ readonly streamSend: "send draft";
152
+ readonly streamWaiting: "No output yet.";
153
+ readonly workspaceBackend: "Workspace";
154
+ readonly workspaceShared: "Shared folder";
155
+ readonly workspaceProject: "Project";
156
+ readonly workspaceCwd: "Session directory";
157
+ readonly workspacePointers: "External pointers";
158
+ readonly workspaceCheckouts: "Checkouts";
159
+ readonly workspaceKeeps: "Persistent directories";
160
+ readonly workspaceOpenWork: "Open work";
161
+ readonly workspaceDirty: "unapplied";
162
+ readonly workspaceClean: "clean";
163
+ readonly none: "None.";
164
+ readonly boardEmpty: "No live window is on the board.";
165
+ readonly boardTargets: "Targets";
166
+ readonly notesActive: "Active set";
167
+ readonly notesCount: "{count} notes · {tokens} / {budget} tokens";
168
+ readonly notesCountOne: "1 note · {tokens} / {budget} tokens";
169
+ readonly notesEpoch: "Epoch {epoch}";
170
+ readonly notesEmpty: "The active set is empty.";
171
+ readonly envCounts: "{skills} skills · {servers} MCP servers · {services} services";
172
+ readonly envBuiltin: "built-in";
173
+ readonly envFunctions: "functions";
174
+ readonly envSkills: "Skills";
175
+ readonly envSkillOne: "Skill";
176
+ readonly envMcp: "MCP servers";
177
+ readonly envMcpOne: "MCP server";
178
+ readonly envServices: "Services";
179
+ readonly envServiceOne: "Service";
180
+ readonly envState: "state";
181
+ readonly envPath: "path";
182
+ readonly envEmpty: "The environment holds no item.";
183
+ readonly schedulesEmpty: "Arbor holds no schedule.";
184
+ readonly scheduleNext: "next {time}";
185
+ readonly scheduleEvery: "every {value}";
186
+ readonly scheduleDaily: "daily at {value}";
187
+ readonly scheduleWeekly: "weekdays {value}";
188
+ readonly schedulePaused: "paused";
189
+ readonly scheduleMine: "this session";
190
+ readonly scheduleFired: "{count} fired";
191
+ readonly settingsSourceEnvironment: "from /env/settings.json";
192
+ readonly settingsSourceDeployment: "deployment seed";
193
+ readonly settingsIdentity: "Identity";
194
+ readonly settingsRules: "General rules";
195
+ readonly settingsJudge: "Judge";
196
+ readonly settingsTiers: "Model tiers";
197
+ readonly settingsDefaultTier: "Default tier";
198
+ readonly settingsWindow: "Window";
199
+ readonly settingsIdle: "Idle";
200
+ readonly settingsContext: "Context";
201
+ readonly settingsReserve: "Reserve";
202
+ readonly settingsProtection: "Protection";
203
+ readonly settingsNotes: "Notes";
204
+ readonly settingsNotesCount: "Active count";
205
+ readonly settingsNotesTokens: "Active tokens";
206
+ readonly settingsSecrets: "Secret names";
207
+ readonly settingsJudgeOn: "on";
208
+ readonly settingsJudgeOff: "off";
209
+ readonly settingsJudgeShadow: "shadow";
210
+ readonly settingsDsh: "DSH's Agent loop page configures ordinary sessions; an arbor window runs under the tier and window limits above.";
211
+ readonly settingsEmpty: "Arbor runs on its own defaults.";
212
+ readonly searchPlaceholder: "Search the journal and notes";
213
+ readonly searchButton: "Search";
214
+ readonly searchEmpty: "Nothing matched.";
215
+ readonly searchTotal: "{count} hits";
216
+ readonly searchTotalOne: "1 hit";
217
+ readonly searchJournal: "Journal";
218
+ readonly searchNotes: "Notes";
219
+ readonly searchBoard: "Board";
220
+ readonly searchHint: "Arbor's own search over its journal, notes and board.";
221
+ readonly searchError: "Search failed: {message}";
222
+ readonly seconds: "{value}s";
223
+ readonly minutes: "{value}m";
224
+ readonly hours: "{value}h";
225
+ readonly tokens: "tokens";
226
+ readonly window: "window";
227
+ readonly heroLiveNoBoard: "{window} is working; the board is empty.";
228
+ };
229
+ export declare const zh: Record<keyof typeof en, string>;
230
+ /** One translate function, as `ctx.locale.bind` answers it. */
231
+ export type Translate = (key: string, args?: Record<string, string | number>) => string;
232
+ /** Replace `{name}` placeholders in one string. */
233
+ export declare function format(template: string, args?: Record<string, string | number>): string;
234
+ /** The fallback translate function, for a reduced client graph with no locale service. */
235
+ export declare function fallbackTranslate(key: string, args?: Record<string, string | number>): string;