maka-agent 0.2.1-dev.80.20261012 → 0.2.1-dev.83.20261014

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 (60) hide show
  1. package/dist/acp/tool-event-mapper.js +14 -6
  2. package/dist/cli-core.js +1 -0
  3. package/dist/fullscreen-mode.js +165 -0
  4. package/dist/mcp-capability-provider.js +1 -0
  5. package/dist/pi-transcript.js +19 -7
  6. package/dist/pi-tui-layout.js +266 -0
  7. package/dist/pi-tui-runner.js +67 -4
  8. package/dist/runtime-host-tui-command.js +7 -2
  9. package/dist/skill-highlight-editor.js +9 -0
  10. package/dist/tui-copy-catalog.js +515 -488
  11. package/native/runtime-host-windows-task-launcher/prebuilds/win32-x64/maka-runtime-host-task-launcher.exe +0 -0
  12. package/node_modules/@maka/core/dist/connection-readiness.js +1 -1
  13. package/node_modules/@maka/core/dist/display-redaction.js +3 -2
  14. package/node_modules/@maka/core/dist/model-catalog.js +2 -1
  15. package/node_modules/@maka/core/dist/provider-auth.js +2 -1
  16. package/node_modules/@maka/core/dist/provider-registry.js +1 -11
  17. package/node_modules/@maka/core/dist/provider-retirement.js +45 -0
  18. package/node_modules/@maka/core/dist/redaction.js +4 -3
  19. package/node_modules/@maka/core/dist/relative-time-policy.js +3 -2
  20. package/node_modules/@maka/core/dist/runtime-event.js +5 -1
  21. package/node_modules/@maka/core/dist/session-trace.js +4 -1
  22. package/node_modules/@maka/core/dist/session.js +5 -0
  23. package/node_modules/@maka/core/dist/tool-quiet-preview.js +3 -2
  24. package/node_modules/@maka/core/dist/tool-result-status.js +12 -1
  25. package/node_modules/@maka/core/dist/ui-locale.js +8 -2
  26. package/node_modules/@maka/core/package.json +1 -0
  27. package/node_modules/@maka/runtime/dist/computer-use-tools.js +94 -22
  28. package/node_modules/@maka/runtime/dist/mcp-tools.js +1 -0
  29. package/node_modules/@maka/runtime/dist/read-page.js +28 -10
  30. package/node_modules/@maka/runtime/dist/runtime-event-backfill.js +1 -0
  31. package/node_modules/@maka/runtime/dist/runtime-event-read-model.js +1 -0
  32. package/node_modules/@maka/runtime/dist/session-event-runtime-mapper.js +1 -0
  33. package/node_modules/@maka/runtime/dist/session-trace-projection.js +6 -1
  34. package/node_modules/@maka/runtime/dist/test-connection.js +3 -1
  35. package/node_modules/@maka/runtime/dist/tool-runtime.js +65 -24
  36. package/node_modules/@maka/runtime/dist/workers/filesystem-worker.mjs +24 -10
  37. package/node_modules/@maka/runtime-host/dist/adapter/session-projector.js +2 -1
  38. package/node_modules/@maka/runtime-host/dist/client/client-capability-channel.js +1 -0
  39. package/node_modules/@maka/runtime-host/dist/client/connection.js +19 -0
  40. package/node_modules/@maka/runtime-host/dist/client/host-handoff-copy.js +3 -2
  41. package/node_modules/@maka/runtime-host/dist/client/reconnecting-connection.js +8 -0
  42. package/node_modules/@maka/runtime-host/dist/protocol/artifact-change.js +46 -0
  43. package/node_modules/@maka/runtime-host/dist/protocol/client-capability.js +6 -1
  44. package/node_modules/@maka/runtime-host/dist/protocol/index.js +10 -1
  45. package/node_modules/@maka/runtime-host/dist/protocol/session-continuity.js +3 -1
  46. package/node_modules/@maka/runtime-host/dist/server/artifact-coordinator.js +4 -1
  47. package/node_modules/@maka/runtime-host/dist/server/client-capability-coordinator.js +3 -0
  48. package/node_modules/@maka/runtime-host/dist/server/connection-session.js +8 -0
  49. package/node_modules/@maka/runtime-host/dist/server/execution-composition.js +3 -1
  50. package/node_modules/@maka/runtime-host/dist/server/host-change-feed.js +8 -0
  51. package/node_modules/@maka/runtime-host/dist/server/session-continuity-coordinator.js +1 -1
  52. package/node_modules/@maka/runtime-host/dist/server/session-retirement-coordinator.js +3 -0
  53. package/node_modules/@maka/runtime-host/dist/server/session-revision-coordinator.js +49 -8
  54. package/node_modules/@maka/runtime-host/dist/server/session-sidecar-purge.js +5 -2
  55. package/node_modules/@maka/runtime-host/dist/server/shared-session-transcript.js +1 -0
  56. package/node_modules/@maka/storage/dist/config-transfer.js +2 -1
  57. package/node_modules/@maka/storage/dist/session-store-values.js +11 -1
  58. package/node_modules/node-pty/lib/windowsPtyAgent.js +7 -0
  59. package/node_modules/node-pty/lib/windowsTerminal.js +11 -1
  60. package/package.json +1 -1
@@ -16,19 +16,474 @@
16
16
  * specific language governing permissions and limitations
17
17
  * under the License.
18
18
  */
19
- export const TUI_COPY_RESOURCES = {
20
- todo: {
21
- en: {
22
- title: 'Current Todo',
23
- markedComplete: 'marked complete',
24
- open: '/todo to view',
25
- usage: 'Usage: /todo',
26
- progress: 'Todo',
27
- unavailable: 'Todo unavailable',
28
- empty: 'No Todo items',
29
- loading: 'Loading Todo…',
30
- hint: '↑↓/PgUp/PgDn scroll · Home/End · Esc close',
19
+ import { defineShippedUiMessageCatalog, resolveUiMessageCatalog, } from '@maka/core/ui-locale';
20
+ const TUI_COPY_RESOURCES_SESSION_STATUS_EN = {
21
+ running: 'running',
22
+ waitingForUser: 'waiting for you',
23
+ permissionRequired: 'needs permission',
24
+ connectionRequired: 'needs connection',
25
+ signInRequired: 'needs sign-in',
26
+ stopped: 'stopped',
27
+ };
28
+ const TUI_COPY_RESOURCES_UNREAD_INDICATOR_EN = {
29
+ hint: '↓ {count, plural, one {# new line} other {# new lines}} — End to jump to latest',
30
+ };
31
+ const TUI_COPY_RESOURCES_PENDING_QUEUE_EN = {
32
+ steeringLabel: 'Steering:',
33
+ queuedLabel: 'Queued:',
34
+ requeueHint: 'Shift+← take queued messages back to re-edit',
35
+ };
36
+ const TUI_COPY_RESOURCES_SESSION_ACTIONS_EN = {
37
+ externalCatalogFailed: 'Could not read external sessions.',
38
+ externalImport: 'Import external session…',
39
+ externalImportDescription: 'from the connected Runtime Host',
40
+ externalSourceTitle: 'Choose external source',
41
+ externalSessionTitle: 'Import from {source}',
42
+ externalLoadMore: 'Load more…',
43
+ externalAllWorkspaces: 'Show all workspaces',
44
+ externalCurrentWorkspace: 'Show current workspace',
45
+ externalEmpty: 'No external sessions found.',
46
+ externalUnavailable: 'The external sessions on this page are not currently available to import.',
47
+ externalImportedCount: 'imported {count} times',
48
+ externalImportedActionsTitle: 'Choose an action for {source}',
49
+ externalOpenLatestImported: 'Open latest imported task',
50
+ externalImportAgain: 'Import again',
51
+ externalImportBusy: 'Cannot import while a turn or another action is running. Wait for it to finish and try again.',
52
+ externalImportFailed: 'Could not import the external session.',
53
+ externalImportModelUnavailable: 'No usable model connection is available. Configure and enable one before importing.',
54
+ externalImportSourceUnreadable: 'The external session could not be read or converted.',
55
+ externalImportLimit: 'The external session exceeds the supported {kind} limit ({max}).',
56
+ externalImportLimitTranscriptBytes: 'source file size',
57
+ externalImportLimitRecordBytes: 'single-record size',
58
+ externalImportLimitRecords: 'record count',
59
+ externalImportLimitConvertedBytes: 'converted content size',
60
+ externalImportLimitMessages: 'message count',
61
+ externalImportUncertain: 'The import result is uncertain. Check the session list or import again; importing again creates an independent task.',
62
+ externalOpenFailed: 'Imported as {sessionId}, but Maka could not open it. Use /session to retry.',
63
+ externalOpenLatestFailed: 'Could not open the latest imported task ({sessionId}). Use /session to retry.',
64
+ newSessionFailed: 'Could not start a new session: a local command could not be stopped. Press Ctrl+C to stop it, then try again.',
65
+ };
66
+ const TUI_COPY_RESOURCES_CONNECTION_IDENTITY_EN = {
67
+ withRecovery: '{notice} {recovery}',
68
+ emptyChoiceRecovery: 'If /model has no choices, add or enable a connection first (run /setup to add one).',
69
+ confirmAccount: 'This task comes from an older version and needs a one-time account confirmation. Run /model and choose an existing account and model.',
70
+ accountDeleted: 'The original account was deleted. Run /model and choose a new account and model to continue.',
71
+ identityMismatch: 'The saved account identity no longer matches its connection. Run /model and choose an account and model again.',
72
+ accountDisabled: 'The original account is disabled. Enable it, or run /model and choose a new account and model.',
73
+ };
74
+ const TUI_COPY_RESOURCES_SKILLS_EN = {
75
+ pickerTitle: 'Invoke Skill',
76
+ usage: 'Usage: /skill, or type /skill:<name> inline in a message',
77
+ noneAvailable: 'No skills are available to invoke right now.',
78
+ loaded: 'Skills loaded: {names}',
79
+ loadFailed: 'Could not load skills {failures}; {outcome}',
80
+ outcomeNoRequest: 'no model request was made.',
81
+ outcomeMarkersNotSent: 'the failed invocation markers were not sent to the model.',
82
+ failedItem: '/skill:{request} ({reason})',
83
+ tooManyRequestsItem: 'more than the {limit}-request limit ({reason})',
84
+ listSeparator: ', ',
85
+ failureReasons: {
86
+ invalid_name: 'invalid name',
87
+ not_found: 'not found',
88
+ disabled: 'disabled',
89
+ host_incompatible: 'the current host is missing a tool it depends on',
90
+ resolution_failed: 'resolution failed',
91
+ too_many_requests: 'too many requests',
92
+ },
93
+ };
94
+ const TUI_COPY_RESOURCES_REWIND_EN = {
95
+ pickerTitle: 'Rewind',
96
+ pending: 'Rewinding to before this turn…',
97
+ doneRefilled: 'Rewound to before this turn (branched into a new task; the original task is kept). The turn’s prompt was refilled into the input box — edit it and send again.',
98
+ doneKeptDraft: 'Rewound to before this turn (branched into a new task; the original task is kept). The input box already had unsent content and was left untouched; the turn’s prompt was saved to input history — press ↑ to recall it.',
99
+ noTargets: 'No turns to rewind to.',
100
+ busy: 'Cannot rewind: another action is in progress — wait for it to finish, or interrupt (Esc) and retry.',
101
+ unsupportedQuotes: 'Cannot rewind to this turn: it carries quoted excerpts, and the TUI cannot restore those into the replacement prompt yet. Rewind to an earlier plain-text turn instead.',
102
+ unsupportedAttachments: 'Cannot rewind to this turn: it carries attachments, and the TUI cannot restore those into the replacement prompt yet. Rewind to an earlier plain-text turn instead.',
103
+ unsupportedDirectoryReferences: 'Cannot rewind to this turn: it carries directory references, and the TUI cannot restore those into the replacement prompt yet. Rewind to an earlier plain-text turn instead.',
104
+ pickerHint: 'Return to before the selected turn (discards it and later turns; the prompt refills the input box) · enter select / esc cancel',
105
+ };
106
+ const TUI_COPY_RESOURCES_PRIMARY_GUIDANCE_EN = {
107
+ welcome: {
108
+ tagline: 'Get things done together',
109
+ start: 'Type a message to start',
110
+ session: 'Switch or resume a session',
111
+ model: 'Switch models',
112
+ setup: 'Set up a model provider',
113
+ },
114
+ commands: {
115
+ compact: 'Compact session context',
116
+ context: 'Show latest request context usage',
117
+ copy: 'Copy the last reply (or /copy all) to the clipboard',
118
+ exit: 'Disconnect this TUI; leave the attached Host running',
119
+ host: 'Inspect the Host or stop/restart its local owner',
120
+ update: 'Update the npm-global CLI and its local Host',
121
+ goal: 'Show autonomous goal status',
122
+ graph: 'Show, enable, disable, or run one Graph turn',
123
+ help: 'Show commands and keybindings',
124
+ mcp: 'Manage client-owned MCP servers and tool publication status',
125
+ model: 'Select model',
126
+ move: 'Move current session to another directory',
127
+ new: 'Start a new session',
128
+ permissions: 'Set session permissions',
129
+ recap: 'One-sentence recap of the session so far',
130
+ rename: 'Rename current session',
131
+ resume: 'Resume latest interrupted run at a safe boundary',
132
+ rewind: 'Rewind to an earlier turn',
133
+ session: 'Resume session',
134
+ setup: 'Set up a model provider',
135
+ side: 'Open a temporary side conversation',
136
+ skill: 'Invoke a skill (or type /skill:<name> inline)',
137
+ swarm: 'Show, enable, disable, or run one Swarm turn',
138
+ thinking: 'Set thinking level',
139
+ todo: 'Show the current session Todo list',
140
+ transcript: 'Browse the full transcript inside Maka',
141
+ },
142
+ help: {
143
+ commandsHeading: 'Commands',
144
+ userCommand: ' !<command> — run one shell command visible only to you',
145
+ keybindingsHeading: 'Keybindings',
146
+ keybindings: [
147
+ ' Ctrl+O — open detailed transcript (Ctrl+E toggles details inside)',
148
+ ' Ctrl+T — expand or collapse all thinking in view',
149
+ ' Scroll the transcript with your terminal or trackpad',
150
+ ' Enter (during a turn) — steer: inject a message into the running turn',
151
+ ' Tab (during a turn) — queue a message for the next turn',
152
+ ' Shift+← — take queued messages back into the editor to re-edit',
153
+ ' Esc Esc (during a turn) — interrupt the turn',
154
+ ' Esc Esc (when idle) — rewind to an earlier turn',
155
+ ' Ctrl+C — stop the turn, clear input, or press twice to exit',
156
+ ' Ctrl+D — exit when input is empty',
157
+ ],
158
+ },
159
+ };
160
+ const TUI_COPY_RESOURCES_PICKERS_EN = {
161
+ modelPickerTitle: 'Select Model',
162
+ modelSwitchCacheWarning: '\u26a0 Switching models may rebuild the prompt cache; the next request may be slower or cost more.',
163
+ modelSearchHint: 'Search models / providers / connections · ↑↓ select · Enter confirm · Esc cancel',
164
+ searchLabel: 'Search',
165
+ noMatchingModels: 'No matching models',
166
+ resumeSessionTitle: 'Resume Session',
167
+ sessionScopeCurrent: 'Current',
168
+ sessionScopeAll: 'All',
169
+ sessionSearchHint: 'Search name / id / path / model / connection · Tab scope · ↑↓ select · Enter open · Esc close',
170
+ noMatchingSessions: 'No matching sessions',
171
+ resumeCandidateCheckFailed: 'Could not check whether any sessions can be resumed.',
172
+ resumeAvailabilityNotice: 'An interrupted run is available — use /resume to continue from a safe boundary.',
173
+ resumeStartingNotice: 'Resuming from the latest safe boundary…',
174
+ resumeUnavailableNotice: 'Safe-boundary resume is unavailable on this runtime.',
175
+ resumeCatalogIncompleteNotice: 'Session discovery stopped before the full catalog was checked. Showing the sessions found so far.',
176
+ selectPickerHint: '↑↓ select · Enter confirm · Esc close',
177
+ providerConfigured: 'configured',
178
+ addAccount: 'add account',
179
+ thinkingLevels: {
180
+ off: 'Off',
181
+ minimal: 'Minimal',
182
+ low: 'Low',
183
+ medium: 'Medium',
184
+ high: 'High',
185
+ xhigh: 'Extra high',
186
+ max: 'Maximum',
187
+ },
188
+ defaultThinkingLevel: 'Default',
189
+ thinkingPickerTitle: 'Select Thinking Level',
190
+ currentMarker: 'current',
191
+ defaultMarker: 'default',
192
+ setupTitle: 'Set Up Provider',
193
+ baseUrlLabel: 'Base URL',
194
+ apiKeyLabel: 'API key',
195
+ connectionNameLabel: 'Name',
196
+ connectionSlugLabel: 'Slug',
197
+ identityHint: 'Name this connection, or keep the defaults to auto-assign · Enter continues · Esc returns',
198
+ identitySlugInvalid: 'Slug must be 2–64 characters: lowercase letters, digits, and hyphens',
199
+ identityNameTooLong: 'Name must be 256 characters or fewer',
200
+ onboardingUnavailable: 'Onboarding is unavailable: this environment does not provide a setup surface.',
201
+ onboardingRequestFailed: 'Could not reach the Runtime Host. Try again.',
202
+ onboardingRejections: {
203
+ provider_unsupported: 'This provider does not support API-key onboarding.',
204
+ connection_not_found: 'This connection no longer exists. Reopen /setup and try again.',
205
+ credential_not_configured: 'An API key is required.',
206
+ base_url_not_configured: 'A Base URL is required for this provider.',
207
+ catalog_full: 'The connection catalog is full.',
208
+ model_unavailable: 'A selected model is no longer available. Verify and select again.',
209
+ slug_taken: 'That slug is already taken. Pick another, or clear it to auto-assign.',
210
+ superseded: 'This connection changed. Reopen /setup and try again.',
211
+ },
212
+ onboardingFailures: {
213
+ auth: 'Provider authentication failed. Check the API key and try again.',
214
+ timeout: 'Provider verification timed out. Try again.',
215
+ provider_unavailable: 'The provider is unavailable. Try again later.',
216
+ network: 'A network error interrupted provider verification. Try again.',
217
+ invalid_response: 'The provider returned an invalid response. Try again.',
218
+ unknown: 'Provider verification failed. Try again.',
219
+ },
220
+ oauthFailures: {
221
+ capability_unavailable: 'This client cannot present OAuth sign-in.',
222
+ authorization_failed: 'Authorization did not complete. Try again.',
223
+ provider_rejected: 'The provider rejected this account.',
224
+ slug_taken: 'That slug is already taken. Pick another, or clear it to auto-assign.',
225
+ credential_changed: 'The credential changed during sign-in. Try again.',
226
+ connection_changed: 'The connection changed during sign-in. Reopen /setup.',
227
+ persistence_failed: 'The signed-in account could not be saved. Try again.',
228
+ internal_failure: 'OAuth sign-in failed. Try again.',
229
+ connection_not_found: 'This connection no longer exists. Reopen /setup.',
230
+ operation_conflict: 'Another OAuth login is active, or this identity is unavailable.',
231
+ unavailable: 'Could not reach the Runtime Host. Try again.',
232
+ },
233
+ accountSavedRefreshFailed: 'Account saved, but the model list has not refreshed. Restart Maka to reload it.',
234
+ listProvidersFailed: 'Could not read configured connections.',
235
+ noConfigurableProviders: 'No configurable providers are available.',
236
+ baseUrlRequired: 'Enter a Base URL',
237
+ baseUrlInvalid: 'Base URL is not a valid URL',
238
+ baseUrlProtocol: 'Base URL must use http or https',
239
+ baseUrlCredentials: 'Base URL cannot include credentials',
240
+ baseUrlQuery: 'Base URL cannot include a query or fragment',
241
+ baseUrlTooLong: 'Base URL cannot exceed 2048 bytes',
242
+ selectModelBeforeSaving: 'Select at least one model before saving',
243
+ reuseBaseUrlHint: 'Leave blank to reuse the saved Base URL, or enter a replacement · Esc returns to provider selection',
244
+ enterBaseUrlHint: 'Enter the relay Base URL (http/https) · Esc returns to provider selection',
245
+ continueAction: 'Enter to continue',
246
+ providerSearchHint: 'Search providers · ↑↓ select · Enter confirm · Esc cancel',
247
+ noMatchingProviders: 'No matching providers',
248
+ keyHints: {
249
+ reuse: {
250
+ baseUrl: 'Leave blank to reuse the saved key, or enter a new key to rotate it · Esc returns to Base URL',
251
+ provider: 'Leave blank to reuse the saved key, or enter a new key to rotate it · Esc returns to provider selection',
252
+ // The identity step only exists for create targets, so a `reuse`
253
+ // hint never lands here; the provider text keeps the record total.
254
+ identity: 'Leave blank to reuse the saved key, or enter a new key to rotate it · Esc returns to provider selection',
255
+ },
256
+ enter: {
257
+ baseUrl: 'Enter an API key · stored only on this machine · Esc returns to Base URL',
258
+ provider: 'Enter an API key · stored only on this machine · Esc returns to provider selection',
259
+ identity: 'Enter an API key · stored only on this machine · Esc returns to connection naming',
260
+ },
261
+ },
262
+ submitAction: 'Enter to submit',
263
+ verifyingKey: 'Verifying key…',
264
+ oauthHint: 'Open the device page and enter the sign-in code · Esc returns',
265
+ oauthBackHint: 'Esc returns to provider selection',
266
+ oauthCodeLabel: 'Sign-in code',
267
+ oauthStarting: 'Preparing sign-in…',
268
+ oauthWaiting: 'Waiting for browser authorization…',
269
+ oauthCancelling: 'Cancelling sign-in…',
270
+ oauthUnconfirmed: 'Sign-in result is not confirmed; it may have completed',
271
+ oauthRecheckAction: 'Enter checks the sign-in result · Esc closes setup',
272
+ oauthLoadingModels: 'Signed in · Loading models…',
273
+ oauthContinueToModels: 'Signed in · Enter to continue to models',
274
+ oauthRetryAction: 'Enter retry · Esc returns',
275
+ oauthRetryModelsAction: 'Signed in · Enter retries model loading',
276
+ modelSelectionHint: 'Search models · ↑↓ select · Space toggle · Enter save · Esc back',
277
+ selectedModels: '{count} selected',
278
+ selectedModelsAndSave: '{count} selected · Enter to save',
279
+ saving: 'Saving…',
280
+ complete: 'Complete',
281
+ enabledModels: 'Models enabled: {count}',
282
+ closeAction: 'Enter to close',
283
+ thinkingUnsupported: 'This model does not support changing the thinking level.',
284
+ };
285
+ const TUI_COPY_RESOURCES_FORM_INTERACTION_EN = {
286
+ requestedBy: 'Requested by {detail}',
287
+ sensitiveWarning: 'Do not enter passwords, API keys, access tokens, or payment details.',
288
+ required: 'required',
289
+ optional: 'optional',
290
+ omitted: 'omitted',
291
+ empty: 'empty',
292
+ invalid: "Value does not meet this field's constraints",
293
+ minimumLength: 'At least {minimum} characters',
294
+ maximumLength: 'At most {maximum} characters',
295
+ lengthRange: '{minimum}–{maximum} characters',
296
+ minimumValue: 'Minimum {minimum}',
297
+ maximumValue: 'Maximum {maximum}',
298
+ valueRange: 'Range {minimum}–{maximum}',
299
+ minimumItems: 'Select at least {minimum}',
300
+ maximumItems: 'Select at most {maximum}',
301
+ itemRange: 'Select {minimum}–{maximum}',
302
+ format: 'Format: {format}',
303
+ reviewHint: '↑↓ field · Enter edit · Space include/omit · s submit · d decline · Esc cancel',
304
+ textHint: 'Type a value · Enter review · Esc review',
305
+ choiceHint: '↑↓ select · Enter review · Esc review',
306
+ multiHint: '↑↓ move · Space toggle · Enter review · Esc review',
307
+ trueValue: 'true',
308
+ falseValue: 'false',
309
+ selectedCount: '{count} selected',
310
+ };
311
+ const TUI_COPY_RESOURCES_MCP_STATUS_EN = {
312
+ title: 'MCP SERVERS',
313
+ footer: {
314
+ back: 'Esc back',
315
+ diagnostic: '↑/↓ scroll · Esc back',
316
+ readOnly: '↑/↓ scroll · q/Esc close',
317
+ manage: 'a Add · Enter Edit · Space Enable/disable · t Test · r Reconnect · d Remove · Esc Close',
318
+ managePublication: 'a Add · Enter Edit · Space Enable/disable · t Test · r Reconnect · d Remove · p Set provider credential · x Remove credential · Esc Close',
319
+ },
320
+ unavailableTitle: 'This TUI is not connected to a local MCP control plane.',
321
+ unavailableDetail: 'Client MCP tool association for remote Runtime Hosts is planned for a later release.',
322
+ loading: 'Loading mcp.json and discovering tools…',
323
+ loadError: 'MCP configuration could not be loaded; no tools were published to the Runtime Host.',
324
+ invalidConfigFile: 'Invalid JSON in {path}. The file is unchanged. Quit maka, back up and repair this file before retrying.',
325
+ noServers: 'No MCP servers are configured. Press a to add one.',
326
+ publication: {
327
+ waiting: 'waiting to publish',
328
+ host_unavailable: 'Runtime Host reconnecting',
329
+ credential_required: 'provider credential required',
330
+ credential_rejected: 'provider credential rejected',
331
+ provider_conflict: 'provider active in another TUI',
332
+ target_mismatch: 'provider target mismatch',
333
+ publishing: 'publishing',
334
+ published: 'published',
335
+ not_published: 'not published',
336
+ error: 'publication failed',
337
+ },
338
+ serverState: {
339
+ disabled: 'disabled',
340
+ disconnected: 'disconnected',
341
+ connecting: 'connecting',
342
+ connected: 'connected',
343
+ 'needs-auth': 'needs-auth',
344
+ error: 'error',
345
+ },
346
+ configuredOnly: 'configured only',
347
+ configPending: 'config pending',
348
+ toolCount: '{count, plural, one {# tool} other {# tools}}',
349
+ connectionFailed: 'MCP server connection failed',
350
+ editor: {
351
+ addTitle: 'Add MCP server',
352
+ transportTitle: 'Transport',
353
+ protocolTitle: 'Protocol preference',
354
+ confirmAddTitle: 'Add this MCP server?',
355
+ confirmImportTitle: 'Import MCP servers?',
356
+ confirmRemoveTitle: 'Remove {serverId}?',
357
+ confirmRemoveCredentialTitle: 'Remove the remote provider credential?',
358
+ confirmRemoveCredentialDetail: 'This stops publishing MCP tools to the selected Runtime Host.',
359
+ confirmHint: 'y Confirm · Esc cancel',
360
+ synchronizing: 'Configuration is synchronizing…',
361
+ outOfSync: 'Durable configuration and MCP Manager are out of sync.',
362
+ action: {
363
+ test: 'Testing MCP server…',
364
+ reconnect: 'Reconnecting MCP server…',
365
+ apply: 'Applying MCP configuration…',
366
+ },
367
+ inputLabels: {
368
+ server_id: 'Server ID',
369
+ command: 'Command',
370
+ args: 'Arguments',
371
+ url: 'Streamable HTTP URL',
372
+ cwd: 'Working directory',
373
+ env: 'Environment',
374
+ headers: 'Request headers',
375
+ edit: 'Edit server JSON',
376
+ import: 'Paste MCP JSON',
377
+ publication_credential: 'Provider credential',
378
+ },
379
+ hints: {
380
+ args: 'JSON string array, optional',
381
+ map: 'JSON string map, optional',
382
+ optional: 'optional',
383
+ submit: 'Enter submit · Esc back',
384
+ credential: 'Stored only in the local credential store; never written to profiles, arguments, or chat · Enter submit · Esc back',
31
385
  },
386
+ results: {
387
+ exists: 'That server ID already exists.',
388
+ stale_config: 'MCP configuration changed; retry the action.',
389
+ stale_edit: 'This server changed; reopen it before editing.',
390
+ stale_import: 'An imported entry changed; preview the import again.',
391
+ missing: 'That server no longer exists.',
392
+ closed: 'The MCP controller is closed.',
393
+ 'invalid-config': 'The server configuration is invalid.',
394
+ 'credential-cleanup-failed': 'Stored credentials could not be removed; the configuration was not changed.',
395
+ 'publication-credential-failed': 'The provider credential could not be stored or applied.',
396
+ 'persist-failed': 'The configuration could not be saved.',
397
+ 'commit-unknown': 'Configuration published; crash durability is uncertain. Check synchronization before retrying.',
398
+ 'manager-failed': 'The MCP connection action failed.',
399
+ turn_active: 'MCP cannot be changed while a turn or another control action is running.',
400
+ invalid: 'Check the value and try again.',
401
+ published: 'Configuration saved and tools refreshed.',
402
+ pending_host: 'Configuration saved; publication is waiting for Runtime Host.',
403
+ sync_failed: 'Configuration saved, but the MCP manager is out of sync.',
404
+ publication_failed: 'Configuration saved, but capability publication failed.',
405
+ test_ok: 'Connection test passed.',
406
+ test_failed: 'Connection test failed.',
407
+ test_publication_failed: 'Connection test passed, but capability publication failed.',
408
+ test_pending_host: 'Connection test passed; publication is waiting for Runtime Host.',
409
+ },
410
+ },
411
+ };
412
+ const TUI_COPY_RESOURCES_COPY_EN = {
413
+ copiedLast: 'Sent the last reply to the terminal via OSC 52 · {count, plural, one {# char} other {# chars}} — it reaches the clipboard only if your terminal (and tmux, if used) allows OSC 52 writes.',
414
+ copiedAll: 'Sent the conversation to the terminal via OSC 52 · {count, plural, one {# char} other {# chars}} — it reaches the clipboard only if your terminal (and tmux, if used) allows OSC 52 writes.',
415
+ tooLarge: 'Too large to copy over OSC 52 · {bytes} bytes exceeds the {limit}-byte limit; a larger payload is silently dropped by the terminal.',
416
+ nothingToCopy: 'Nothing to copy yet.',
417
+ usage: 'Usage: /copy [all]',
418
+ roleUser: 'You:',
419
+ roleAssistant: 'Maka:',
420
+ roleGoalContinuation: 'Goal continuation (autonomous):',
421
+ roleLegacyAutomation: 'Legacy automation (history only):',
422
+ };
423
+ const TUI_COPY_RESOURCES_HOST_OWNER_EN = {
424
+ unavailable: 'Runtime Host owner controls are unavailable.',
425
+ usage: 'Usage: /host [status|stop|restart] or /update [latest|next|version]',
426
+ pickerTitle: 'Runtime Host owner action',
427
+ cancel: 'Cancel',
428
+ cancelDescription: 'Keep this Host and its work running',
429
+ safe: 'Safe handoff',
430
+ safeDescription: 'Continue only at a verified safe boundary',
431
+ interrupt: 'Interrupt active work',
432
+ interruptDescription: 'May stop work from every attached Surface',
433
+ pending: 'A Host owner action is already pending.',
434
+ disconnected: 'The TUI has already disconnected.',
435
+ foreign: 'This TUI is attached to another Host. Run its owner controls on that Host; /exit only disconnects.',
436
+ notOwner: 'This npm-global installation does not own the local Host. Use its actual operator; /exit only disconnects.',
437
+ hostChanged: 'The local Host changed or requires its managed-service operator.',
438
+ actionSummary: '{action}: {name}',
439
+ action_stop: 'Stop',
440
+ action_restart: 'Restart',
441
+ action_update: 'Update',
442
+ owner: 'Owner: {owner}',
443
+ root: 'Root: {root}',
444
+ epoch: 'Epoch: {epoch}',
445
+ composition: 'Composition: {composition} ({revision})',
446
+ activity: 'Connections: {connections}; operations: {operations}; residencies: {residencies}',
447
+ unknownActivity: 'Activity is unknown. Other Surfaces and autonomous tasks may be affected.',
448
+ updateSafeOnly: 'Update supports safe handoff only.',
449
+ invalidTarget: 'Update target must be latest, next, or an exact release version.',
450
+ updateRequiresSafe: 'TUI update uses safe handoff only. Stop active work explicitly before updating.',
451
+ installationChanged: 'The npm-global installation changed. Reopen Maka before retrying.',
452
+ ownerChanged: 'The local Host installation owner changed. Reopen Maka before retrying.',
453
+ retirementHostChanged: 'The Host changed before owner retirement; no replacement was interrupted.',
454
+ activityChanged: 'Host activity changed after confirmation. Reopen Maka and confirm the new work before retrying.',
455
+ stillActive: 'The Host still has active work. Reopen Maka and retry /host {action}; interruption requires a new confirmation.',
456
+ restartFailed: 'Host restart did not complete: {detail}',
457
+ status: '{name}: {state}',
458
+ state_starting: 'Starting',
459
+ state_containing: 'Containing',
460
+ state_recovering: 'Recovering',
461
+ state_ready: 'Ready',
462
+ state_draining: 'Draining',
463
+ localOwnerHint: 'Owner controls require this npm-global installation to own the Host. /exit only disconnects.',
464
+ attachedOwnerHint: 'Attached Host: lifecycle changes require its operator. /exit only disconnects.',
465
+ };
466
+ const TUI_COPY_RESOURCES_TRANSCRIPT_READER_EN = {
467
+ title: 'DETAILED TRANSCRIPT',
468
+ scope: 'loaded history',
469
+ hint: 'Esc/Ctrl+O close · Ctrl+E details · / search · ↑↓/PgUp/PgDn · Home/End',
470
+ matches: 'matches in displayed text',
471
+ back: 'return',
472
+ };
473
+ const TUI_COPY_RESOURCES_TODO_EN = {
474
+ title: 'Current Todo',
475
+ markedComplete: 'marked complete',
476
+ open: '/todo to view',
477
+ usage: 'Usage: /todo',
478
+ progress: 'Todo',
479
+ unavailable: 'Todo unavailable',
480
+ empty: 'No Todo items',
481
+ loading: 'Loading Todo…',
482
+ hint: '↑↓/PgUp/PgDn scroll · Home/End · Esc close',
483
+ };
484
+ export const TUI_COPY_RESOURCES = {
485
+ todo: resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
486
+ en: TUI_COPY_RESOURCES_TODO_EN,
32
487
  'zh-CN': {
33
488
  title: '当前待办',
34
489
  markedComplete: '标记完成',
@@ -51,15 +506,9 @@ export const TUI_COPY_RESOURCES = {
51
506
  loading: '正在載入待辦…',
52
507
  hint: '↑↓/PgUp/PgDn 捲動 · Home/End · Esc 關閉',
53
508
  },
54
- },
55
- 'transcript-reader': {
56
- en: {
57
- title: 'DETAILED TRANSCRIPT',
58
- scope: 'loaded history',
59
- hint: 'Esc/Ctrl+O close · Ctrl+E details · / search · ↑↓/PgUp/PgDn · Home/End',
60
- matches: 'matches in displayed text',
61
- back: 'return',
62
- },
509
+ })),
510
+ 'transcript-reader': resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
511
+ en: TUI_COPY_RESOURCES_TRANSCRIPT_READER_EN,
63
512
  'zh-CN': {
64
513
  title: '详细记录',
65
514
  scope: '已加载历史',
@@ -74,51 +523,9 @@ export const TUI_COPY_RESOURCES = {
74
523
  matches: '處符合(目前顯示內容)',
75
524
  back: '回到原位置',
76
525
  },
77
- },
78
- 'host-owner': {
79
- en: {
80
- unavailable: 'Runtime Host owner controls are unavailable.',
81
- usage: 'Usage: /host [status|stop|restart] or /update [latest|next|version]',
82
- pickerTitle: 'Runtime Host owner action',
83
- cancel: 'Cancel',
84
- cancelDescription: 'Keep this Host and its work running',
85
- safe: 'Safe handoff',
86
- safeDescription: 'Continue only at a verified safe boundary',
87
- interrupt: 'Interrupt active work',
88
- interruptDescription: 'May stop work from every attached Surface',
89
- pending: 'A Host owner action is already pending.',
90
- disconnected: 'The TUI has already disconnected.',
91
- foreign: 'This TUI is attached to another Host. Run its owner controls on that Host; /exit only disconnects.',
92
- notOwner: 'This npm-global installation does not own the local Host. Use its actual operator; /exit only disconnects.',
93
- hostChanged: 'The local Host changed or requires its managed-service operator.',
94
- actionSummary: '{action}: {name}',
95
- action_stop: 'Stop',
96
- action_restart: 'Restart',
97
- action_update: 'Update',
98
- owner: 'Owner: {owner}',
99
- root: 'Root: {root}',
100
- epoch: 'Epoch: {epoch}',
101
- composition: 'Composition: {composition} ({revision})',
102
- activity: 'Connections: {connections}; operations: {operations}; residencies: {residencies}',
103
- unknownActivity: 'Activity is unknown. Other Surfaces and autonomous tasks may be affected.',
104
- updateSafeOnly: 'Update supports safe handoff only.',
105
- invalidTarget: 'Update target must be latest, next, or an exact release version.',
106
- updateRequiresSafe: 'TUI update uses safe handoff only. Stop active work explicitly before updating.',
107
- installationChanged: 'The npm-global installation changed. Reopen Maka before retrying.',
108
- ownerChanged: 'The local Host installation owner changed. Reopen Maka before retrying.',
109
- retirementHostChanged: 'The Host changed before owner retirement; no replacement was interrupted.',
110
- activityChanged: 'Host activity changed after confirmation. Reopen Maka and confirm the new work before retrying.',
111
- stillActive: 'The Host still has active work. Reopen Maka and retry /host {action}; interruption requires a new confirmation.',
112
- restartFailed: 'Host restart did not complete: {detail}',
113
- status: '{name}: {state}',
114
- state_starting: 'Starting',
115
- state_containing: 'Containing',
116
- state_recovering: 'Recovering',
117
- state_ready: 'Ready',
118
- state_draining: 'Draining',
119
- localOwnerHint: 'Owner controls require this npm-global installation to own the Host. /exit only disconnects.',
120
- attachedOwnerHint: 'Attached Host: lifecycle changes require its operator. /exit only disconnects.',
121
- },
526
+ })),
527
+ 'host-owner': resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
528
+ en: TUI_COPY_RESOURCES_HOST_OWNER_EN,
122
529
  'zh-CN': {
123
530
  unavailable: 'Runtime Host 所有者控制不可用。',
124
531
  usage: '用法:/host [status|stop|restart] 或 /update [latest|next|version]',
@@ -205,19 +612,9 @@ export const TUI_COPY_RESOURCES = {
205
612
  localOwnerHint: '僅當此 npm-global 安裝擁有該 Host 時才能使用擁有者控制。/exit 僅中斷連線。',
206
613
  attachedOwnerHint: '已連線的 Host:生命週期變更需由其擁有者操作。/exit 僅中斷連線。',
207
614
  },
208
- },
209
- copy: {
210
- en: {
211
- copiedLast: 'Sent the last reply to the terminal via OSC 52 · {count, plural, one {# char} other {# chars}} — it reaches the clipboard only if your terminal (and tmux, if used) allows OSC 52 writes.',
212
- copiedAll: 'Sent the conversation to the terminal via OSC 52 · {count, plural, one {# char} other {# chars}} — it reaches the clipboard only if your terminal (and tmux, if used) allows OSC 52 writes.',
213
- tooLarge: 'Too large to copy over OSC 52 · {bytes} bytes exceeds the {limit}-byte limit; a larger payload is silently dropped by the terminal.',
214
- nothingToCopy: 'Nothing to copy yet.',
215
- usage: 'Usage: /copy [all]',
216
- roleUser: 'You:',
217
- roleAssistant: 'Maka:',
218
- roleGoalContinuation: 'Goal continuation (autonomous):',
219
- roleLegacyAutomation: 'Legacy automation (history only):',
220
- },
615
+ })),
616
+ copy: resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
617
+ en: TUI_COPY_RESOURCES_COPY_EN,
221
618
  'zh-CN': {
222
619
  copiedLast: '已将最后一条回复发送到终端 · {count} 个字符——仅当终端(以及 tmux,如使用)允许写入剪贴板时才会真正复制。',
223
620
  copiedAll: '已将整段对话发送到终端 · {count} 个字符——仅当终端(以及 tmux,如使用)允许写入剪贴板时才会真正复制。',
@@ -240,109 +637,9 @@ export const TUI_COPY_RESOURCES = {
240
637
  roleGoalContinuation: 'Goal 繼續執行(自主):',
241
638
  roleLegacyAutomation: '舊版自動化(僅歷史):',
242
639
  },
243
- },
244
- 'mcp-status': {
245
- en: {
246
- title: 'MCP SERVERS',
247
- footer: {
248
- back: 'Esc back',
249
- diagnostic: '↑/↓ scroll · Esc back',
250
- readOnly: '↑/↓ scroll · q/Esc close',
251
- manage: 'a Add · Enter Edit · Space Enable/disable · t Test · r Reconnect · d Remove · Esc Close',
252
- managePublication: 'a Add · Enter Edit · Space Enable/disable · t Test · r Reconnect · d Remove · p Set provider credential · x Remove credential · Esc Close',
253
- },
254
- unavailableTitle: 'This TUI is not connected to a local MCP control plane.',
255
- unavailableDetail: 'Client MCP tool association for remote Runtime Hosts is planned for a later release.',
256
- loading: 'Loading mcp.json and discovering tools…',
257
- loadError: 'MCP configuration could not be loaded; no tools were published to the Runtime Host.',
258
- invalidConfigFile: 'Invalid JSON in {path}. The file is unchanged. Quit maka, back up and repair this file before retrying.',
259
- noServers: 'No MCP servers are configured. Press a to add one.',
260
- publication: {
261
- waiting: 'waiting to publish',
262
- host_unavailable: 'Runtime Host reconnecting',
263
- credential_required: 'provider credential required',
264
- credential_rejected: 'provider credential rejected',
265
- provider_conflict: 'provider active in another TUI',
266
- target_mismatch: 'provider target mismatch',
267
- publishing: 'publishing',
268
- published: 'published',
269
- not_published: 'not published',
270
- error: 'publication failed',
271
- },
272
- serverState: {
273
- disabled: 'disabled',
274
- disconnected: 'disconnected',
275
- connecting: 'connecting',
276
- connected: 'connected',
277
- 'needs-auth': 'needs-auth',
278
- error: 'error',
279
- },
280
- configuredOnly: 'configured only',
281
- configPending: 'config pending',
282
- toolCount: '{count, plural, one {# tool} other {# tools}}',
283
- connectionFailed: 'MCP server connection failed',
284
- editor: {
285
- addTitle: 'Add MCP server',
286
- transportTitle: 'Transport',
287
- protocolTitle: 'Protocol preference',
288
- confirmAddTitle: 'Add this MCP server?',
289
- confirmImportTitle: 'Import MCP servers?',
290
- confirmRemoveTitle: 'Remove {serverId}?',
291
- confirmRemoveCredentialTitle: 'Remove the remote provider credential?',
292
- confirmRemoveCredentialDetail: 'This stops publishing MCP tools to the selected Runtime Host.',
293
- confirmHint: 'y Confirm · Esc cancel',
294
- synchronizing: 'Configuration is synchronizing…',
295
- outOfSync: 'Durable configuration and MCP Manager are out of sync.',
296
- action: {
297
- test: 'Testing MCP server…',
298
- reconnect: 'Reconnecting MCP server…',
299
- apply: 'Applying MCP configuration…',
300
- },
301
- inputLabels: {
302
- server_id: 'Server ID',
303
- command: 'Command',
304
- args: 'Arguments',
305
- url: 'Streamable HTTP URL',
306
- cwd: 'Working directory',
307
- env: 'Environment',
308
- headers: 'Request headers',
309
- edit: 'Edit server JSON',
310
- import: 'Paste MCP JSON',
311
- publication_credential: 'Provider credential',
312
- },
313
- hints: {
314
- args: 'JSON string array, optional',
315
- map: 'JSON string map, optional',
316
- optional: 'optional',
317
- submit: 'Enter submit · Esc back',
318
- credential: 'Stored only in the local credential store; never written to profiles, arguments, or chat · Enter submit · Esc back',
319
- },
320
- results: {
321
- exists: 'That server ID already exists.',
322
- stale_config: 'MCP configuration changed; retry the action.',
323
- stale_edit: 'This server changed; reopen it before editing.',
324
- stale_import: 'An imported entry changed; preview the import again.',
325
- missing: 'That server no longer exists.',
326
- closed: 'The MCP controller is closed.',
327
- 'invalid-config': 'The server configuration is invalid.',
328
- 'credential-cleanup-failed': 'Stored credentials could not be removed; the configuration was not changed.',
329
- 'publication-credential-failed': 'The provider credential could not be stored or applied.',
330
- 'persist-failed': 'The configuration could not be saved.',
331
- 'commit-unknown': 'Configuration published; crash durability is uncertain. Check synchronization before retrying.',
332
- 'manager-failed': 'The MCP connection action failed.',
333
- turn_active: 'MCP cannot be changed while a turn or another control action is running.',
334
- invalid: 'Check the value and try again.',
335
- published: 'Configuration saved and tools refreshed.',
336
- pending_host: 'Configuration saved; publication is waiting for Runtime Host.',
337
- sync_failed: 'Configuration saved, but the MCP manager is out of sync.',
338
- publication_failed: 'Configuration saved, but capability publication failed.',
339
- test_ok: 'Connection test passed.',
340
- test_failed: 'Connection test failed.',
341
- test_publication_failed: 'Connection test passed, but capability publication failed.',
342
- test_pending_host: 'Connection test passed; publication is waiting for Runtime Host.',
343
- },
344
- },
345
- },
640
+ })),
641
+ 'mcp-status': resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
642
+ en: TUI_COPY_RESOURCES_MCP_STATUS_EN,
346
643
  'zh-CN': {
347
644
  title: 'MCP 服务器',
348
645
  footer: {
@@ -545,34 +842,9 @@ export const TUI_COPY_RESOURCES = {
545
842
  },
546
843
  },
547
844
  },
548
- },
549
- 'form-interaction': {
550
- en: {
551
- requestedBy: 'Requested by {detail}',
552
- sensitiveWarning: 'Do not enter passwords, API keys, access tokens, or payment details.',
553
- required: 'required',
554
- optional: 'optional',
555
- omitted: 'omitted',
556
- empty: 'empty',
557
- invalid: "Value does not meet this field's constraints",
558
- minimumLength: 'At least {minimum} characters',
559
- maximumLength: 'At most {maximum} characters',
560
- lengthRange: '{minimum}–{maximum} characters',
561
- minimumValue: 'Minimum {minimum}',
562
- maximumValue: 'Maximum {maximum}',
563
- valueRange: 'Range {minimum}–{maximum}',
564
- minimumItems: 'Select at least {minimum}',
565
- maximumItems: 'Select at most {maximum}',
566
- itemRange: 'Select {minimum}–{maximum}',
567
- format: 'Format: {format}',
568
- reviewHint: '↑↓ field · Enter edit · Space include/omit · s submit · d decline · Esc cancel',
569
- textHint: 'Type a value · Enter review · Esc review',
570
- choiceHint: '↑↓ select · Enter review · Esc review',
571
- multiHint: '↑↓ move · Space toggle · Enter review · Esc review',
572
- trueValue: 'true',
573
- falseValue: 'false',
574
- selectedCount: '{count} selected',
575
- },
845
+ })),
846
+ 'form-interaction': resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
847
+ en: TUI_COPY_RESOURCES_FORM_INTERACTION_EN,
576
848
  'zh-CN': {
577
849
  requestedBy: '由 {detail} 请求',
578
850
  sensitiveWarning: '请勿输入密码、API 密钥、访问令牌或支付信息。',
@@ -625,133 +897,9 @@ export const TUI_COPY_RESOURCES = {
625
897
  falseValue: '否',
626
898
  selectedCount: '已選取 {count} 項',
627
899
  },
628
- },
629
- pickers: {
630
- en: {
631
- modelPickerTitle: 'Select Model',
632
- modelSwitchCacheWarning: '\u26a0 Switching models may rebuild the prompt cache; the next request may be slower or cost more.',
633
- modelSearchHint: 'Search models / providers / connections · ↑↓ select · Enter confirm · Esc cancel',
634
- searchLabel: 'Search',
635
- noMatchingModels: 'No matching models',
636
- resumeSessionTitle: 'Resume Session',
637
- sessionScopeCurrent: 'Current',
638
- sessionScopeAll: 'All',
639
- sessionSearchHint: 'Search name / id / path / model / connection · Tab scope · ↑↓ select · Enter open · Esc close',
640
- noMatchingSessions: 'No matching sessions',
641
- resumeCandidateCheckFailed: 'Could not check whether any sessions can be resumed.',
642
- resumeAvailabilityNotice: 'An interrupted run is available — use /resume to continue from a safe boundary.',
643
- resumeStartingNotice: 'Resuming from the latest safe boundary…',
644
- resumeUnavailableNotice: 'Safe-boundary resume is unavailable on this runtime.',
645
- resumeCatalogIncompleteNotice: 'Session discovery stopped before the full catalog was checked. Showing the sessions found so far.',
646
- selectPickerHint: '↑↓ select · Enter confirm · Esc close',
647
- providerConfigured: 'configured',
648
- addAccount: 'add account',
649
- thinkingLevels: {
650
- off: 'Off',
651
- minimal: 'Minimal',
652
- low: 'Low',
653
- medium: 'Medium',
654
- high: 'High',
655
- xhigh: 'Extra high',
656
- max: 'Maximum',
657
- },
658
- defaultThinkingLevel: 'Default',
659
- thinkingPickerTitle: 'Select Thinking Level',
660
- currentMarker: 'current',
661
- defaultMarker: 'default',
662
- setupTitle: 'Set Up Provider',
663
- baseUrlLabel: 'Base URL',
664
- apiKeyLabel: 'API key',
665
- connectionNameLabel: 'Name',
666
- connectionSlugLabel: 'Slug',
667
- identityHint: 'Name this connection, or keep the defaults to auto-assign · Enter continues · Esc returns',
668
- identitySlugInvalid: 'Slug must be 2–64 characters: lowercase letters, digits, and hyphens',
669
- identityNameTooLong: 'Name must be 256 characters or fewer',
670
- onboardingUnavailable: 'Onboarding is unavailable: this environment does not provide a setup surface.',
671
- onboardingRequestFailed: 'Could not reach the Runtime Host. Try again.',
672
- onboardingRejections: {
673
- provider_unsupported: 'This provider does not support API-key onboarding.',
674
- connection_not_found: 'This connection no longer exists. Reopen /setup and try again.',
675
- credential_not_configured: 'An API key is required.',
676
- base_url_not_configured: 'A Base URL is required for this provider.',
677
- catalog_full: 'The connection catalog is full.',
678
- model_unavailable: 'A selected model is no longer available. Verify and select again.',
679
- slug_taken: 'That slug is already taken. Pick another, or clear it to auto-assign.',
680
- superseded: 'This connection changed. Reopen /setup and try again.',
681
- },
682
- onboardingFailures: {
683
- auth: 'Provider authentication failed. Check the API key and try again.',
684
- timeout: 'Provider verification timed out. Try again.',
685
- provider_unavailable: 'The provider is unavailable. Try again later.',
686
- network: 'A network error interrupted provider verification. Try again.',
687
- invalid_response: 'The provider returned an invalid response. Try again.',
688
- unknown: 'Provider verification failed. Try again.',
689
- },
690
- oauthFailures: {
691
- capability_unavailable: 'This client cannot present OAuth sign-in.',
692
- authorization_failed: 'Authorization did not complete. Try again.',
693
- provider_rejected: 'The provider rejected this account.',
694
- slug_taken: 'That slug is already taken. Pick another, or clear it to auto-assign.',
695
- credential_changed: 'The credential changed during sign-in. Try again.',
696
- connection_changed: 'The connection changed during sign-in. Reopen /setup.',
697
- persistence_failed: 'The signed-in account could not be saved. Try again.',
698
- internal_failure: 'OAuth sign-in failed. Try again.',
699
- connection_not_found: 'This connection no longer exists. Reopen /setup.',
700
- operation_conflict: 'Another OAuth login is active, or this identity is unavailable.',
701
- unavailable: 'Could not reach the Runtime Host. Try again.',
702
- },
703
- accountSavedRefreshFailed: 'Account saved, but the model list has not refreshed. Restart Maka to reload it.',
704
- listProvidersFailed: 'Could not read configured connections.',
705
- noConfigurableProviders: 'No configurable providers are available.',
706
- baseUrlRequired: 'Enter a Base URL',
707
- baseUrlInvalid: 'Base URL is not a valid URL',
708
- baseUrlProtocol: 'Base URL must use http or https',
709
- baseUrlCredentials: 'Base URL cannot include credentials',
710
- baseUrlQuery: 'Base URL cannot include a query or fragment',
711
- baseUrlTooLong: 'Base URL cannot exceed 2048 bytes',
712
- selectModelBeforeSaving: 'Select at least one model before saving',
713
- reuseBaseUrlHint: 'Leave blank to reuse the saved Base URL, or enter a replacement · Esc returns to provider selection',
714
- enterBaseUrlHint: 'Enter the relay Base URL (http/https) · Esc returns to provider selection',
715
- continueAction: 'Enter to continue',
716
- providerSearchHint: 'Search providers · ↑↓ select · Enter confirm · Esc cancel',
717
- noMatchingProviders: 'No matching providers',
718
- keyHints: {
719
- reuse: {
720
- baseUrl: 'Leave blank to reuse the saved key, or enter a new key to rotate it · Esc returns to Base URL',
721
- provider: 'Leave blank to reuse the saved key, or enter a new key to rotate it · Esc returns to provider selection',
722
- // The identity step only exists for create targets, so a `reuse`
723
- // hint never lands here; the provider text keeps the record total.
724
- identity: 'Leave blank to reuse the saved key, or enter a new key to rotate it · Esc returns to provider selection',
725
- },
726
- enter: {
727
- baseUrl: 'Enter an API key · stored only on this machine · Esc returns to Base URL',
728
- provider: 'Enter an API key · stored only on this machine · Esc returns to provider selection',
729
- identity: 'Enter an API key · stored only on this machine · Esc returns to connection naming',
730
- },
731
- },
732
- submitAction: 'Enter to submit',
733
- verifyingKey: 'Verifying key…',
734
- oauthHint: 'Open the device page and enter the sign-in code · Esc returns',
735
- oauthBackHint: 'Esc returns to provider selection',
736
- oauthCodeLabel: 'Sign-in code',
737
- oauthStarting: 'Preparing sign-in…',
738
- oauthWaiting: 'Waiting for browser authorization…',
739
- oauthCancelling: 'Cancelling sign-in…',
740
- oauthUnconfirmed: 'Sign-in result is not confirmed; it may have completed',
741
- oauthRecheckAction: 'Enter checks the sign-in result · Esc closes setup',
742
- oauthLoadingModels: 'Signed in · Loading models…',
743
- oauthContinueToModels: 'Signed in · Enter to continue to models',
744
- oauthRetryAction: 'Enter retry · Esc returns',
745
- oauthRetryModelsAction: 'Signed in · Enter retries model loading',
746
- modelSelectionHint: 'Search models · ↑↓ select · Space toggle · Enter save · Esc back',
747
- selectedModels: '{count} selected',
748
- selectedModelsAndSave: '{count} selected · Enter to save',
749
- saving: 'Saving…',
750
- complete: 'Complete',
751
- enabledModels: 'Models enabled: {count}',
752
- closeAction: 'Enter to close',
753
- thinkingUnsupported: 'This model does not support changing the thinking level.',
754
- },
900
+ })),
901
+ pickers: resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
902
+ en: TUI_COPY_RESOURCES_PICKERS_EN,
755
903
  'zh-CN': {
756
904
  modelPickerTitle: '选择模型',
757
905
  modelSwitchCacheWarning: '\u26a0 切换模型可能需要重建提示缓存;下一次请求可能更慢或成本更高。',
@@ -1000,62 +1148,9 @@ export const TUI_COPY_RESOURCES = {
1000
1148
  closeAction: 'Enter 關閉',
1001
1149
  thinkingUnsupported: '目前模型不支援思考級別切換。',
1002
1150
  },
1003
- },
1004
- 'primary-guidance': {
1005
- en: {
1006
- welcome: {
1007
- tagline: 'Get things done together',
1008
- start: 'Type a message to start',
1009
- session: 'Switch or resume a session',
1010
- model: 'Switch models',
1011
- setup: 'Set up a model provider',
1012
- },
1013
- commands: {
1014
- compact: 'Compact session context',
1015
- context: 'Show latest request context usage',
1016
- copy: 'Copy the last reply (or /copy all) to the clipboard',
1017
- exit: 'Disconnect this TUI; leave the attached Host running',
1018
- host: 'Inspect the Host or stop/restart its local owner',
1019
- update: 'Update the npm-global CLI and its local Host',
1020
- goal: 'Show autonomous goal status',
1021
- graph: 'Show, enable, disable, or run one Graph turn',
1022
- help: 'Show commands and keybindings',
1023
- mcp: 'Manage client-owned MCP servers and tool publication status',
1024
- model: 'Select model',
1025
- move: 'Move current session to another directory',
1026
- new: 'Start a new session',
1027
- permissions: 'Set session permissions',
1028
- recap: 'One-sentence recap of the session so far',
1029
- rename: 'Rename current session',
1030
- resume: 'Resume latest interrupted run at a safe boundary',
1031
- rewind: 'Rewind to an earlier turn',
1032
- session: 'Resume session',
1033
- setup: 'Set up a model provider',
1034
- side: 'Open a temporary side conversation',
1035
- skill: 'Invoke a skill (or type /skill:<name> inline)',
1036
- swarm: 'Show, enable, disable, or run one Swarm turn',
1037
- thinking: 'Set thinking level',
1038
- todo: 'Show the current session Todo list',
1039
- transcript: 'Browse the full transcript inside Maka',
1040
- },
1041
- help: {
1042
- commandsHeading: 'Commands',
1043
- userCommand: ' !<command> — run one shell command visible only to you',
1044
- keybindingsHeading: 'Keybindings',
1045
- keybindings: [
1046
- ' Ctrl+O — open detailed transcript (Ctrl+E toggles details inside)',
1047
- ' Ctrl+T — expand or collapse all thinking in view',
1048
- ' Scroll the transcript with your terminal or trackpad',
1049
- ' Enter (during a turn) — steer: inject a message into the running turn',
1050
- ' Tab (during a turn) — queue a message for the next turn',
1051
- ' Shift+← — take queued messages back into the editor to re-edit',
1052
- ' Esc Esc (during a turn) — interrupt the turn',
1053
- ' Esc Esc (when idle) — rewind to an earlier turn',
1054
- ' Ctrl+C — stop the turn, clear input, or press twice to exit',
1055
- ' Ctrl+D — exit when input is empty',
1056
- ],
1057
- },
1058
- },
1151
+ })),
1152
+ 'primary-guidance': resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
1153
+ en: TUI_COPY_RESOURCES_PRIMARY_GUIDANCE_EN,
1059
1154
  'zh-CN': {
1060
1155
  welcome: {
1061
1156
  tagline: '陪你把事做完',
@@ -1164,20 +1259,9 @@ export const TUI_COPY_RESOURCES = {
1164
1259
  ],
1165
1260
  },
1166
1261
  },
1167
- },
1168
- rewind: {
1169
- en: {
1170
- pickerTitle: 'Rewind',
1171
- pending: 'Rewinding to before this turn…',
1172
- doneRefilled: 'Rewound to before this turn (branched into a new task; the original task is kept). The turn’s prompt was refilled into the input box — edit it and send again.',
1173
- doneKeptDraft: 'Rewound to before this turn (branched into a new task; the original task is kept). The input box already had unsent content and was left untouched; the turn’s prompt was saved to input history — press ↑ to recall it.',
1174
- noTargets: 'No turns to rewind to.',
1175
- busy: 'Cannot rewind: another action is in progress — wait for it to finish, or interrupt (Esc) and retry.',
1176
- unsupportedQuotes: 'Cannot rewind to this turn: it carries quoted excerpts, and the TUI cannot restore those into the replacement prompt yet. Rewind to an earlier plain-text turn instead.',
1177
- unsupportedAttachments: 'Cannot rewind to this turn: it carries attachments, and the TUI cannot restore those into the replacement prompt yet. Rewind to an earlier plain-text turn instead.',
1178
- unsupportedDirectoryReferences: 'Cannot rewind to this turn: it carries directory references, and the TUI cannot restore those into the replacement prompt yet. Rewind to an earlier plain-text turn instead.',
1179
- pickerHint: 'Return to before the selected turn (discards it and later turns; the prompt refills the input box) · enter select / esc cancel',
1180
- },
1262
+ })),
1263
+ rewind: resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
1264
+ en: TUI_COPY_RESOURCES_REWIND_EN,
1181
1265
  'zh-CN': {
1182
1266
  pickerTitle: '回退',
1183
1267
  pending: '正在回退到该轮之前…',
@@ -1202,28 +1286,9 @@ export const TUI_COPY_RESOURCES = {
1202
1286
  unsupportedDirectoryReferences: '無法回退到這一輪:它攜帶目錄參照,TUI 暫時無法把它們還原進替換 prompt。請改為回退到更早的純文字輪次。',
1203
1287
  pickerHint: '回到選定輪次之前(捨棄該輪及之後,prompt 回填輸入框) · enter 選擇 / esc 取消',
1204
1288
  },
1205
- },
1206
- skills: {
1207
- en: {
1208
- pickerTitle: 'Invoke Skill',
1209
- usage: 'Usage: /skill, or type /skill:<name> inline in a message',
1210
- noneAvailable: 'No skills are available to invoke right now.',
1211
- loaded: 'Skills loaded: {names}',
1212
- loadFailed: 'Could not load skills {failures}; {outcome}',
1213
- outcomeNoRequest: 'no model request was made.',
1214
- outcomeMarkersNotSent: 'the failed invocation markers were not sent to the model.',
1215
- failedItem: '/skill:{request} ({reason})',
1216
- tooManyRequestsItem: 'more than the {limit}-request limit ({reason})',
1217
- listSeparator: ', ',
1218
- failureReasons: {
1219
- invalid_name: 'invalid name',
1220
- not_found: 'not found',
1221
- disabled: 'disabled',
1222
- host_incompatible: 'the current host is missing a tool it depends on',
1223
- resolution_failed: 'resolution failed',
1224
- too_many_requests: 'too many requests',
1225
- },
1226
- },
1289
+ })),
1290
+ skills: resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
1291
+ en: TUI_COPY_RESOURCES_SKILLS_EN,
1227
1292
  'zh-CN': {
1228
1293
  pickerTitle: '调用技能',
1229
1294
  usage: 'Usage: /skill,或直接在消息中输入 /skill:<name>',
@@ -1264,16 +1329,9 @@ export const TUI_COPY_RESOURCES = {
1264
1329
  too_many_requests: '呼叫請求過多',
1265
1330
  },
1266
1331
  },
1267
- },
1268
- 'connection-identity': {
1269
- en: {
1270
- withRecovery: '{notice} {recovery}',
1271
- emptyChoiceRecovery: 'If /model has no choices, add or enable a connection first (run /setup to add one).',
1272
- confirmAccount: 'This task comes from an older version and needs a one-time account confirmation. Run /model and choose an existing account and model.',
1273
- accountDeleted: 'The original account was deleted. Run /model and choose a new account and model to continue.',
1274
- identityMismatch: 'The saved account identity no longer matches its connection. Run /model and choose an account and model again.',
1275
- accountDisabled: 'The original account is disabled. Enable it, or run /model and choose a new account and model.',
1276
- },
1332
+ })),
1333
+ 'connection-identity': resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
1334
+ en: TUI_COPY_RESOURCES_CONNECTION_IDENTITY_EN,
1277
1335
  'zh-CN': {
1278
1336
  withRecovery: '{notice}{recovery}',
1279
1337
  emptyChoiceRecovery: '如果 /model 没有可选项,请先添加或启用连接(可运行 /setup 添加)。',
@@ -1290,38 +1348,9 @@ export const TUI_COPY_RESOURCES = {
1290
1348
  identityMismatch: '任務儲存的帳號身分與目前連線不一致;執行 /model 重新選擇帳號和模型。',
1291
1349
  accountDisabled: '原帳號已停用;請啟用該帳號,或執行 /model 選擇新帳號和模型。',
1292
1350
  },
1293
- },
1294
- 'session-actions': {
1295
- en: {
1296
- externalCatalogFailed: 'Could not read external sessions.',
1297
- externalImport: 'Import external session…',
1298
- externalImportDescription: 'from the connected Runtime Host',
1299
- externalSourceTitle: 'Choose external source',
1300
- externalSessionTitle: 'Import from {source}',
1301
- externalLoadMore: 'Load more…',
1302
- externalAllWorkspaces: 'Show all workspaces',
1303
- externalCurrentWorkspace: 'Show current workspace',
1304
- externalEmpty: 'No external sessions found.',
1305
- externalUnavailable: 'The external sessions on this page are not currently available to import.',
1306
- externalImportedCount: 'imported {count} times',
1307
- externalImportedActionsTitle: 'Choose an action for {source}',
1308
- externalOpenLatestImported: 'Open latest imported task',
1309
- externalImportAgain: 'Import again',
1310
- externalImportBusy: 'Cannot import while a turn or another action is running. Wait for it to finish and try again.',
1311
- externalImportFailed: 'Could not import the external session.',
1312
- externalImportModelUnavailable: 'No usable model connection is available. Configure and enable one before importing.',
1313
- externalImportSourceUnreadable: 'The external session could not be read or converted.',
1314
- externalImportLimit: 'The external session exceeds the supported {kind} limit ({max}).',
1315
- externalImportLimitTranscriptBytes: 'source file size',
1316
- externalImportLimitRecordBytes: 'single-record size',
1317
- externalImportLimitRecords: 'record count',
1318
- externalImportLimitConvertedBytes: 'converted content size',
1319
- externalImportLimitMessages: 'message count',
1320
- externalImportUncertain: 'The import result is uncertain. Check the session list or import again; importing again creates an independent task.',
1321
- externalOpenFailed: 'Imported as {sessionId}, but Maka could not open it. Use /session to retry.',
1322
- externalOpenLatestFailed: 'Could not open the latest imported task ({sessionId}). Use /session to retry.',
1323
- newSessionFailed: 'Could not start a new session: a local command could not be stopped. Press Ctrl+C to stop it, then try again.',
1324
- },
1351
+ })),
1352
+ 'session-actions': resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
1353
+ en: TUI_COPY_RESOURCES_SESSION_ACTIONS_EN,
1325
1354
  'zh-CN': {
1326
1355
  externalCatalogFailed: '无法读取外部会话目录。',
1327
1356
  externalImport: '导入外部会话…',
@@ -1382,13 +1411,9 @@ export const TUI_COPY_RESOURCES = {
1382
1411
  externalOpenLatestFailed: '無法開啟最近匯入的任務({sessionId})。請用 /session 重試。',
1383
1412
  newSessionFailed: '無法開始新工作階段,請稍後重試。',
1384
1413
  },
1385
- },
1386
- 'pending-queue': {
1387
- en: {
1388
- steeringLabel: 'Steering:',
1389
- queuedLabel: 'Queued:',
1390
- requeueHint: 'Shift+← take queued messages back to re-edit',
1391
- },
1414
+ })),
1415
+ 'pending-queue': resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
1416
+ en: TUI_COPY_RESOURCES_PENDING_QUEUE_EN,
1392
1417
  'zh-CN': {
1393
1418
  steeringLabel: '注入:',
1394
1419
  queuedLabel: '已排队:',
@@ -1399,16 +1424,18 @@ export const TUI_COPY_RESOURCES = {
1399
1424
  queuedLabel: '已排入佇列:',
1400
1425
  requeueHint: 'Shift+← 取回佇列訊息重新編輯',
1401
1426
  },
1402
- },
1403
- 'session-status': {
1404
- en: {
1405
- running: 'running',
1406
- waitingForUser: 'waiting for you',
1407
- permissionRequired: 'needs permission',
1408
- connectionRequired: 'needs connection',
1409
- signInRequired: 'needs sign-in',
1410
- stopped: 'stopped',
1427
+ })),
1428
+ 'unread-indicator': resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
1429
+ en: TUI_COPY_RESOURCES_UNREAD_INDICATOR_EN,
1430
+ 'zh-CN': {
1431
+ hint: '↓ {count, plural, other {# 行新输出 · 按 End 跳到最新}}',
1411
1432
  },
1433
+ 'zh-TW': {
1434
+ hint: '↓ {count, plural, other {# 行新輸出 · 按 End 跳到最新}}',
1435
+ },
1436
+ })),
1437
+ 'session-status': resolveUiMessageCatalog(defineShippedUiMessageCatalog()({
1438
+ en: TUI_COPY_RESOURCES_SESSION_STATUS_EN,
1412
1439
  'zh-CN': {
1413
1440
  running: '进行中',
1414
1441
  waitingForUser: '等你确认',
@@ -1425,5 +1452,5 @@ export const TUI_COPY_RESOURCES = {
1425
1452
  signInRequired: '需要重新登入',
1426
1453
  stopped: '已中止',
1427
1454
  },
1428
- },
1455
+ })),
1429
1456
  };