@songsid/agend 2.4.0-beta.14 → 2.4.0-beta.16

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 (184) hide show
  1. package/dist/accounts-profiles.d.ts +1 -1
  2. package/dist/accounts-view.d.ts +3 -0
  3. package/dist/accounts-view.js.map +1 -1
  4. package/dist/auth-api.js +5 -0
  5. package/dist/auth-api.js.map +1 -1
  6. package/dist/backend/claude-code.d.ts +6 -1
  7. package/dist/backend/claude-code.js +63 -8
  8. package/dist/backend/claude-code.js.map +1 -1
  9. package/dist/backend/kiro.js +6 -1
  10. package/dist/backend/kiro.js.map +1 -1
  11. package/dist/backend/types.d.ts +2 -0
  12. package/dist/backend/types.js.map +1 -1
  13. package/dist/backend-command.d.ts +4 -2
  14. package/dist/backend-command.js +3 -0
  15. package/dist/backend-command.js.map +1 -1
  16. package/dist/browser-backend-signins.d.ts +1 -0
  17. package/dist/browser-backend-signins.js +3 -1
  18. package/dist/browser-backend-signins.js.map +1 -1
  19. package/dist/build-provenance.json +1 -1
  20. package/dist/classic-channel-manager.d.ts +1 -0
  21. package/dist/classic-channel-manager.js +4 -1
  22. package/dist/classic-channel-manager.js.map +1 -1
  23. package/dist/claude-credential-change.d.ts +22 -0
  24. package/dist/claude-credential-change.js +47 -0
  25. package/dist/claude-credential-change.js.map +1 -0
  26. package/dist/claude-credential-launch.d.ts +62 -0
  27. package/dist/claude-credential-launch.js +304 -0
  28. package/dist/claude-credential-launch.js.map +1 -0
  29. package/dist/claude-credential-runner.d.ts +1 -0
  30. package/dist/claude-credential-runner.js +56 -0
  31. package/dist/claude-credential-runner.js.map +1 -0
  32. package/dist/claude-credential-vault.d.ts +51 -0
  33. package/dist/claude-credential-vault.js +252 -0
  34. package/dist/claude-credential-vault.js.map +1 -0
  35. package/dist/claude-setup-token-transport.d.ts +9 -0
  36. package/dist/claude-setup-token-transport.js +82 -0
  37. package/dist/claude-setup-token-transport.js.map +1 -0
  38. package/dist/claude-setup-token.d.ts +51 -0
  39. package/dist/claude-setup-token.js +83 -0
  40. package/dist/claude-setup-token.js.map +1 -0
  41. package/dist/cli-audited.js +7 -6
  42. package/dist/cli-audited.js.map +1 -1
  43. package/dist/command-report.d.ts +11 -0
  44. package/dist/command-report.js +2 -0
  45. package/dist/command-report.js.map +1 -0
  46. package/dist/config-validator.js +9 -0
  47. package/dist/config-validator.js.map +1 -1
  48. package/dist/config.js +4 -2
  49. package/dist/config.js.map +1 -1
  50. package/dist/contact-auth-api.d.ts +2 -1
  51. package/dist/contact-auth-api.js +15 -5
  52. package/dist/contact-auth-api.js.map +1 -1
  53. package/dist/contact-auth-policy.d.ts +5 -0
  54. package/dist/contact-auth-policy.js +2 -0
  55. package/dist/contact-auth-policy.js.map +1 -1
  56. package/dist/contact-auth-store.d.ts +12 -1
  57. package/dist/contact-auth-store.js +67 -5
  58. package/dist/contact-auth-store.js.map +1 -1
  59. package/dist/contact-auth-types.d.ts +27 -1
  60. package/dist/contact-auth-types.js.map +1 -1
  61. package/dist/daemon.d.ts +5 -0
  62. package/dist/daemon.js +59 -3
  63. package/dist/daemon.js.map +1 -1
  64. package/dist/fleet-level-config.d.ts +1 -1
  65. package/dist/fleet-level-config.js +1 -0
  66. package/dist/fleet-level-config.js.map +1 -1
  67. package/dist/fleet-manager.d.ts +48 -3
  68. package/dist/fleet-manager.js +446 -27
  69. package/dist/fleet-manager.js.map +1 -1
  70. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +16 -6
  71. package/dist/general-knowledge/skills/web-appearance/SKILL.md +4 -1
  72. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +23 -5
  73. package/dist/host-monitoring-config.d.ts +14 -0
  74. package/dist/host-monitoring-config.js +31 -0
  75. package/dist/host-monitoring-config.js.map +1 -0
  76. package/dist/hub/group-policy/resources.d.ts +1 -1
  77. package/dist/instance-config-impact.js +1 -1
  78. package/dist/instance-config-impact.js.map +1 -1
  79. package/dist/instructions.js +1 -0
  80. package/dist/instructions.js.map +1 -1
  81. package/dist/locale.d.ts +2 -0
  82. package/dist/locale.js +19 -1
  83. package/dist/locale.js.map +1 -1
  84. package/dist/needs-you-hub.js +3 -0
  85. package/dist/needs-you-hub.js.map +1 -1
  86. package/dist/needs-you.d.ts +2 -0
  87. package/dist/needs-you.js.map +1 -1
  88. package/dist/office-share-page.js +1 -1
  89. package/dist/office-share-page.js.map +1 -1
  90. package/dist/profile-signins.d.ts +1 -0
  91. package/dist/profile-signins.js +3 -1
  92. package/dist/profile-signins.js.map +1 -1
  93. package/dist/public-web-gateway.js +2 -0
  94. package/dist/public-web-gateway.js.map +1 -1
  95. package/dist/public-web-link.d.ts +21 -2
  96. package/dist/public-web-link.js +22 -2
  97. package/dist/public-web-link.js.map +1 -1
  98. package/dist/settings-api.d.ts +12 -0
  99. package/dist/settings-api.js +146 -7
  100. package/dist/settings-api.js.map +1 -1
  101. package/dist/settings-change.js +2 -0
  102. package/dist/settings-change.js.map +1 -1
  103. package/dist/settings-effect.js +13 -1
  104. package/dist/settings-effect.js.map +1 -1
  105. package/dist/topic-commands.d.ts +7 -1
  106. package/dist/topic-commands.js +98 -88
  107. package/dist/topic-commands.js.map +1 -1
  108. package/dist/types.d.ts +2 -0
  109. package/dist/ui/accounts-view.js +12 -6
  110. package/dist/ui/backend-signin.js +3 -1
  111. package/dist/ui/chat-commands.js +2 -0
  112. package/dist/ui/chat-popout-transport.js +49 -19
  113. package/dist/ui/chat-popout.js +15 -1
  114. package/dist/ui/chat-store.js +1 -1
  115. package/dist/ui/claude-credentials.js +112 -0
  116. package/dist/ui/claude-setup-token.js +36 -0
  117. package/dist/ui/contact-auth-client.js +9 -2
  118. package/dist/ui/contact-auth-strings.js +78 -16
  119. package/dist/ui/contact-authorizations.js +47 -26
  120. package/dist/ui/contact-needs.js +22 -6
  121. package/dist/ui/contact-permissions.js +55 -10
  122. package/dist/ui/contact-tool-groups.js +39 -0
  123. package/dist/ui/fleet-canvas.js +3 -2
  124. package/dist/ui/fleet-office-card.js +414 -41
  125. package/dist/ui/fleet-office-dialogue.js +3 -3
  126. package/dist/ui/fleet-office-pack.d.ts +67 -1
  127. package/dist/ui/fleet-office-pack.js +412 -18
  128. package/dist/ui/fleet-office-play.js +262 -3
  129. package/dist/ui/fleet-office-skin.js +67 -20
  130. package/dist/ui/fleet-office-zones.js +19 -1
  131. package/dist/ui/fleet-office.js +393 -47
  132. package/dist/ui/office-share-page.js +5 -1
  133. package/dist/ui/panel-chat.js +47 -3
  134. package/dist/ui/panel-fleet.js +1 -1
  135. package/dist/ui/panel-needs.js +7 -4
  136. package/dist/ui/panel-settings.js +2 -1
  137. package/dist/ui/preview-popout.js +134 -0
  138. package/dist/ui/reply-file-preview.js +1 -1
  139. package/dist/ui/settings-appearance.js +6 -1
  140. package/dist/ui/settings-host-monitoring.js +51 -0
  141. package/dist/ui/settings-registry.js +1 -1
  142. package/dist/ui/settings-shared.js +3 -2
  143. package/dist/ui/shared/app-i18n.js +4 -0
  144. package/dist/ui/shared/app-shell.js +16 -7
  145. package/dist/ui/shared/app.css +266 -27
  146. package/dist/ui/shared/app.js +7 -1
  147. package/dist/ui/shared/chat-strings.js +8 -2
  148. package/dist/ui/shared/info-tip.js +64 -0
  149. package/dist/ui/shared/office-dialogue.css +12 -0
  150. package/dist/ui/shared/preview-panel.js +44 -18
  151. package/dist/ui/shared/preview-popout.css +11 -0
  152. package/dist/ui/shared/theme-picker.js +46 -0
  153. package/dist/ui/shared/theme.js +47 -4
  154. package/dist/ui/shared/tokens.css +273 -0
  155. package/dist/ui/shared/ui-confirm.js +5 -2
  156. package/dist/ui/shared/usage-dialog.js +9 -34
  157. package/dist/ui/shared/view-strings.js +2 -0
  158. package/dist/usage/i18n-keys.d.ts +1 -1
  159. package/dist/usage/i18n-keys.js +1 -1
  160. package/dist/usage/i18n-keys.js.map +1 -1
  161. package/dist/usage/providers.d.ts +1 -0
  162. package/dist/usage/providers.js +14 -1
  163. package/dist/usage/providers.js.map +1 -1
  164. package/dist/usage/usage-api.js +5 -2
  165. package/dist/usage/usage-api.js.map +1 -1
  166. package/dist/web-api.d.ts +5 -1
  167. package/dist/web-api.js +29 -9
  168. package/dist/web-api.js.map +1 -1
  169. package/dist/web-claude-credentials.d.ts +31 -0
  170. package/dist/web-claude-credentials.js +138 -0
  171. package/dist/web-claude-credentials.js.map +1 -0
  172. package/dist/web-commands.d.ts +5 -2
  173. package/dist/web-commands.js +4 -2
  174. package/dist/web-commands.js.map +1 -1
  175. package/dist/web-office-skins.d.ts +7 -2
  176. package/dist/web-office-skins.js +42 -16
  177. package/dist/web-office-skins.js.map +1 -1
  178. package/dist/web-session.d.ts +20 -1
  179. package/dist/web-session.js +27 -0
  180. package/dist/web-session.js.map +1 -1
  181. package/dist/web-terminal.d.ts +4 -0
  182. package/dist/web-terminal.js +16 -1
  183. package/dist/web-terminal.js.map +1 -1
  184. package/package.json +1 -1
@@ -99,13 +99,23 @@ read tools. A non-admin or unknown-origin peer contact is held as an application
99
99
  `sent:false`, `held:true`, with `authorization_id` and its state. Nothing has reached
100
100
  the target. Do not resend or work around it with another contact tool, a schedule,
101
101
  or a new instance. The target's Fleet administrator decides the retained request.
102
- Approval delivers it once; decline or expiry delivers nothing. A standing narrow
103
- contact grant can admit matching requests without another card.
104
-
105
- The server retains an origin union per agent instance, including receiving ordinary
106
- workers, across relays, later turns and compaction. An earlier non-admin request
102
+ Approval delivers it once; decline or expiry does not forward the held request.
103
+ On decline or expiry, one AgEnD system notice names the ticket, target and outcome;
104
+ stop waiting for that request. This is status only, not authority or a grant.
105
+ A standing narrow contact grant can admit matching requests without another card.
106
+
107
+ An administrator's approval or a matching administrator-written grant endorses
108
+ that delivery: the receiving agent's origin stays unchanged. The source keeps its
109
+ own origin, and the ticket keeps the original origin and decision audit. Existing
110
+ target origins are not cleared. The server still retains an origin union per
111
+ agent instance for ordinary relays without this endorsement, later turns and
112
+ compaction. An earlier non-admin request
107
113
  can therefore require approval after an admin speaks directly to that worker.
108
- There is no verified reset in this version. A first legacy-to-restricted switch
114
+ Only a verified managing administrator can explicitly clear retained origin in
115
+ the agent's web Permissions tab, accepting the current conversation as their own
116
+ work without erasing its text. The agent and peers have no clear tool. New
117
+ non-admin input is restricted again; other agents, tickets and grants are unchanged.
118
+ There is no automatic reset. A first legacy-to-restricted switch
109
119
  treats earlier history as unknown; saving the same mode leaves the origin alone.
110
120
  Unknown origins never match standing grants, so new contacts need separate approval.
111
121
  Known-person authority does not change when old receipt or hop metadata is trimmed.
@@ -317,7 +317,10 @@ tools are not in your list), you can publish them yourself instead of asking a p
317
317
  - `office_pack_check` has its own allowance: at most **60 checks and 1 GiB (as sent) an hour**. Every check counts,
318
318
  passed or refused, so fix what a refusal names before checking again. `office_pack_list` shows `check_left`.
319
319
 
320
- The skin-pack manifest format — every key, its ranges, a minimal example — and the limits are in the Office guide:
320
+ The skin-pack manifest format — every key, its ranges, multi-sheet (`src: [...]`, up to 32 sheets / 600 frames) and
321
+ frame-list (`frames: [{ src, ms? }]`) long animations with `durations`, `once` and `loopFrom`, optional custom `snacks`
322
+ (1–12 items) and `characters.<set>.eat` strips (#4255), a minimal example — and
323
+ the limits (including the 64 Mpx decoded-pixel cap) are in the Office guide:
321
324
  [docs/office.md → Make a skin pack](https://github.com/songsid/AgEnD/blob/main/docs/office.md#make-a-skin-pack). Point people there too when they ask how the Office works.
322
325
 
323
326
  ## Limits
@@ -267,6 +267,10 @@ Access & security → **Shared pages** lists the live ones.
267
267
  **Slash commands** (the **Commands** palette): `/ctx`, `/compact [instructions]`, `/clear` (asks first), `/model
268
268
  [name]`, `/backend [backend] [model] [effort]` (asks first), `/effort [level]`, `/cancel`, `/btw`, `/steer`, `/pause`,
269
269
  `/wake`, `/save <file>` (not for a guest on a public link; an admin session there may, M-3278). Anything else: "Not a command here — Enter sends it as a message."
270
+ `/backend` also works in a ClassicBot room, on web, Discord and Telegram, for an admin of that room. Choose the backend,
271
+ then its model and effort, and confirm. Nothing changes before confirmation. Each backend's saved account settings
272
+ are kept; a stopped room stays stopped. For a restricted room, the confirmation explains guard coverage: an uncovered
273
+ backend or version runs with its normal permissions; contact approval still applies.
270
274
  At 70% context, quick actions **Compact** and **Clear…** appear. `/raw <text>` (an admin session, the public link's too since M-3278; never a guest there) passes text to the CLI
271
275
  unwrapped.
272
276
 
@@ -427,7 +431,7 @@ blinking light (needs you, crashed, looks stuck). With **Live** on, each message
427
431
  desk to desk along the corridors in the Key's colours; a delegation in progress is a purple folder on the worker's
428
432
  desk. Hover a desk for its name, state and backend; a click or tap (or Enter in the desk list) opens the
429
433
  person's profile card (#2661: a 320 px popover beside them, following them; Esc, a press elsewhere or the same person
430
- again closes it; on a phone a bottom sheet): level and XP, office and area, model, backend, today, first seen, the
434
+ again closes it; on a phone a bottom sheet; #4256: a skin pack's optional `card` key can pick a preset — `default`, `rpg`, `compact`, `dossier` — plus WCAG-checked `#rrggbb` colours, `backgroundImage`, 9-slice `frame`, and section/row layout while keeping share-link field stripping intact): level and XP, office and area, model, backend, today, first seen, the
431
435
  activity line, **Find in office** and **Chat**. A double-click opens the chat directly. Each name tag has a level badge
432
436
  (lifetime work, docs/office.md § Levels; **Settings → Web dashboard → Office levels**, `web.office_levels`; #3679: the
433
437
  fleet's own titles for every office in **Settings → Web dashboard → Level titles for every office**, a pack's `levels`
@@ -441,11 +445,14 @@ in each (Everyone, Picked: whole teams or single instances, or #2752 Nobody: its
441
445
  #4119 **Drag and pat** in the Office bar (per device, on by default, off with reduced motion; never on a share link): drag
442
446
  someone and they walk back; their card's Pat/Feed show hearts and words; nothing reaches the agent unless that card's
443
447
  **Tell <agent> (with their next message)** is ticked (per agent, off) — then one `[Office] … patted your head ×N` line rides
444
- its next real message's `[Recent reactions: …]` (never a wake; capped); a pack's `bubbles.<lang>.pat` / `.feed` give the words, and upload or delete **skin packs** (an
448
+ its next real message's `[Recent reactions: …]` (never a wake; capped); a pack's `bubbles.<lang>.pat` / `.feed` give the words; (#4255) packs with optional `snacks` (1–12 items, `sprite`, optional `eat` overlay, `radius`) and `characters.<set>.eat` show a floating snack tray (bottom-left; above zone pills on phone) for drag-to-feed, tap-to-arm, and placed snacks (up to 6 on floor, 30 s TTL, up to 4 nearest idle racers honoring `stayInArea`, first eats and others scatter; packs without `snacks` stay unchanged), and upload or delete **skin packs** (an
445
449
  artist's pictures: `manifest.json` plus PNGs, format v1, kept in `web-office-skins/` in the AgEnD home; the host
446
- checks every rule — PNG only, each strip exactly frames·w × h, a 16:9 background, size caps — and never changes a
447
- pack; a strip may give its displayed size, `dw`/`dh`, apart from its pictures' size, and a character may walk four
448
- ways with `walkDown`, `walkUp` and `walkSide`, the side one mirrored for left). #2692: an agent with **Office skin
450
+ checks every rule — PNG only, each strip sheet exactly frames·w × h, a 16:9 background, size and 64 Mpx decoded-pixel caps — and never changes a
451
+ pack; a strip may give its displayed size, `dw`/`dh`, apart from its pictures' size, a character may walk four
452
+ ways with `walkDown`, `walkUp` and `walkSide` (the side one mirrored for left), and (#4231) any strip may chain
453
+ multiple sheets (`src: [...]`, up to 32 sheets / 600 frames) or list individual frames with per-frame `ms`
454
+ (`frames: [{ src, ms? }]`) or `durations`, plus `once: true` or `loopFrom` (intro then loop), holding frame 0 under
455
+ reduced motion). #2692: an agent with **Office skin
449
456
  packs** on (`office_pack_access`, Dashboard access) can check, upload, replace, delete and restore packs itself (one
450
457
  previous version kept per pack); **Agents changing packs** under the packs names those agents, sets whether their changes
451
458
  **Need my yes** (the default) or **Apply at once**, and approves or rejects the waiting ones (also from the notice's
@@ -740,6 +747,10 @@ runs now. If the npm copy is still there, **Remove the npm copy** is a separate
740
747
  runs `npm -g uninstall @anthropic-ai/claude-code` in that npm folder; the card offers it whenever Claude Code runs from the native
741
748
  install and an npm copy is still on the computer (also after a restart). This offer is only on AI accounts, not in Needs you.
742
749
 
750
+ **Managed Claude credentials (M-3419)** — Accounts → Connect (also Needs you → Connect account) offers the existing subscription login, a token obtained with setup-token, or an Anthropic API key. Pasting, replacing and removing saved credentials requires the local dashboard and a current verified administrator, even though ordinary subscription login can run over a public link. Never put a key/token in chat, an agent tool call or a proposal. Values are encrypted; Save makes no model request and reports saved-unverified. Source-class checks are not provider validation. Managed profiles do not show an old subscription identity, meters or keep-alive. Used-profile changes list affected users, require idle local panes and positive old-pane retirement before commit; busy/paused/unknown consumers refuse, and failed restarts are listed. Removing the saved value leaves the profile disconnected; explicitly choosing Subscription switches back to its native login. Profile/conversation assignments stay. A managed secret must be removed before deleting its profile. Removing AgEnD's copy does not revoke it at Anthropic. The launcher clears ambient credentials and uses a private API-key helper or child-only setup-token environment. Organization-managed Claude settings are unsupported. Same-OS-user agents are not isolated from runtime secrets.
751
+
752
+ For the token method, **Get a token for me** opens a private browser sign-in on the local host. It uses the same verified-admin gate, a 10-minute Connect-account deadline and an owned cleanup; only safe sign-in controls reach the page, and the printed token goes directly to encrypted storage after cleanup. Paste remains available. Cancel or expiry never changes the selected source; if saving is uncertain, read account status before retrying. No model request is made by this flow.
753
+
743
754
  **Antigravity (agy) in Accounts (#3771; AGEND-224)** — agy **can** be connected from the dashboard now (it could not
744
755
  before), from Settings → AI accounts & keys → Accounts, admin sessions only (the public link's too, M-3278). What the Antigravity
745
756
  card offers, and what it means:
@@ -808,6 +819,8 @@ other Windows PCs to pair** (`runtimes.remote_runtime`), **Agents at once on eac
808
819
  under **Manual options**, a pairing code. Each computer: its CLIs (**Install a CLI**, **Update to *version***, only while
809
820
  that PC's owner allowed it there), its accounts, and its update status. See docs/remote-runtime.md.
810
821
 
822
+ **Notifications → Host monitoring** (「主機監測」, M-3454): **Monitor this computer** and **Include agent footprint** are both off by default. Off is explicitly saved as false. The cost hints are planning estimates. The card is hidden until a real collector capability is available; the settings alone never create a collector, monitoring timer or history file. Agent footprint requires monitoring as well as its own option. Turning monitoring off asks before recorded history is removed. The initial settings foundation has no visible card or search entry until its collector integration ships.
823
+
811
824
  **Notifications** — **Quota notices** (「用量提醒」, #3302): one reminder per account at the **Remaining percentages**
812
825
  and **Periods** you choose, shared by its agents, **Send to** General.
813
826
 
@@ -894,6 +907,11 @@ Alpha preview line"). Guests and agents can't update.
894
907
 
895
908
  For an agent changing its *own* look, the `web-appearance` skill has the tools and limits. What a person sees in
896
909
  Settings → **Look**, card by card (the app icon and card upload limits are in **Web dashboard**; following reduced motion and custom CSS off here are in **Preferences**):
910
+ - **Colours** — **Other…** (「其他…」) in the theme menu, or **Choose…** (「選擇…」) in Look, opens a centred chooser: Default, Clear Sky / 晴空,
911
+ Meadow / 青草, Night Violet / 夜紫 and Mint / 薄荷. Every palette works with System, Light and Dark; changing the
912
+ appearance keeps the palette. Choices preview at once; **Apply** keeps them, **Cancel** or Escape puts them back.
913
+ Meadow adds a soft sage gradient and an original static leaf/grass texture behind the chat.
914
+ The palette is kept in this browser. Agents' own themes and the person's custom CSS still take precedence.
897
915
  - **Agents' themes** — **Show agents' themes, effects and widgets**; off, every chat looks the same and pictures and
898
916
  ring colours fall back to the bots' own (all devices).
899
917
  - **Ambient effects** — an agent's falling petals, snow, rising lanterns, twinkles or stars on a click, drawn behind
@@ -0,0 +1,14 @@
1
+ /** M-3454: opt-in settings only. No I/O, providers, timers, workers or stores are created by reading them. */
2
+ export interface HostMonitoringConfig {
3
+ enabled: boolean;
4
+ agent_footprint: boolean;
5
+ }
6
+ export declare const HOST_MONITORING_COLLECTOR_AVAILABLE = false;
7
+ export declare const HOST_MONITORING_KEYS: readonly ['enabled', 'agent_footprint'];
8
+ export declare function monitoringProblem(value: unknown): string | null;
9
+ export declare function monitoringConfig(value?: unknown): HostMonitoringConfig;
10
+ export declare function parseMonitoringSettings(body: unknown): {
11
+ patch: Partial<HostMonitoringConfig>;
12
+ } | {
13
+ error: string;
14
+ };
@@ -0,0 +1,31 @@
1
+ // The first settings slice cannot claim collection exists. The collector slice
2
+ // changes this only when its production lifecycle is connected and tested.
3
+ export const HOST_MONITORING_COLLECTOR_AVAILABLE = false;
4
+ export const HOST_MONITORING_KEYS = ['enabled', 'agent_footprint'];
5
+ export function monitoringProblem(value) {
6
+ if (!value || typeof value !== 'object' || Array.isArray(value))
7
+ return 'must be a mapping';
8
+ for (const [key, setting] of Object.entries(value)) {
9
+ if (!HOST_MONITORING_KEYS.includes(key))
10
+ return `unknown key: ${key}`;
11
+ if (typeof setting !== 'boolean')
12
+ return `${key} must be a boolean`;
13
+ }
14
+ return null;
15
+ }
16
+ export function monitoringConfig(value) {
17
+ if (value !== undefined) {
18
+ const problem = monitoringProblem(value);
19
+ if (problem)
20
+ throw new Error(`monitoring: ${problem}`);
21
+ }
22
+ const v = value;
23
+ // Explicit literals, never a changeable default or an environment override.
24
+ return { enabled: v?.enabled === true, agent_footprint: v?.agent_footprint === true };
25
+ }
26
+ export function parseMonitoringSettings(body) {
27
+ if (monitoringProblem(body) || !Object.keys(body).length)
28
+ return { error: 'invalid_monitoring_settings' };
29
+ return { patch: { ...body } };
30
+ }
31
+ //# sourceMappingURL=host-monitoring-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-monitoring-config.js","sourceRoot":"","sources":["../src/host-monitoring-config.ts"],"names":[],"mappings":"AAEA,+EAA+E;AAC/E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,mCAAmC,GAAG,KAAK,CAAC;AACzD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,iBAAiB,CAAU,CAAC;AAC5E,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,mBAAmB,CAAC;IAC5F,KAAK,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACnD,IAAI,CAAE,oBAA0C,CAAC,QAAQ,CAAC,GAAG,CAAC;YAAE,OAAO,gBAAgB,GAAG,EAAE,CAAC;QAC7F,IAAI,OAAO,OAAO,KAAK,SAAS;YAAE,OAAO,GAAG,GAAG,oBAAoB,CAAC;IACtE,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AACD,MAAM,UAAU,gBAAgB,CAAC,KAAe;IAC9C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QAAC,MAAM,OAAO,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAAC,IAAI,OAAO;YAAE,MAAM,IAAI,KAAK,CAAC,eAAe,OAAO,EAAE,CAAC,CAAC;IAAC,CAAC;IAC9H,MAAM,CAAC,GAAG,KAAkD,CAAC;IAC7D,4EAA4E;IAC5E,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,KAAK,IAAI,EAAE,eAAe,EAAE,CAAC,EAAE,eAAe,KAAK,IAAI,EAAE,CAAC;AACxF,CAAC;AACD,MAAM,UAAU,uBAAuB,CAAC,IAAa;IACnD,IAAI,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAc,CAAC,CAAC,MAAM;QAAE,OAAO,EAAE,KAAK,EAAE,6BAA6B,EAAE,CAAC;IACpH,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,IAAqC,EAAE,EAAE,CAAC;AACjE,CAAC"}
@@ -22,7 +22,6 @@ declare const resourceSchema: z.ZodObject<{
22
22
  export type HubGroupResource = z.infer<typeof resourceSchema>;
23
23
  export declare function parseHubGroupResource(input: unknown): HubGroupResource;
24
24
  export declare function parseStoredHubGroupResource(input: unknown, source: string): {
25
- code?: undefined;
26
25
  resource: {
27
26
  kind: "asker" | "exposure" | "fleet";
28
27
  id: string;
@@ -32,6 +31,7 @@ export declare function parseStoredHubGroupResource(input: unknown, source: stri
32
31
  objectId: string;
33
32
  };
34
33
  };
34
+ code?: undefined;
35
35
  } | {
36
36
  resource: {
37
37
  kind: "asker" | "exposure" | "fleet";
@@ -82,7 +82,7 @@ const INSTANCE_FIELDS = [
82
82
  ];
83
83
  /** ClassicBot channel fields the settings page renders. */
84
84
  const CLASSIC_FIELDS = [
85
- "quota_notice", "backend", "model", "auto_pause_after", "tool_progress",
85
+ "quota_notice", "backend", "model", "effort", "auto_pause_after", "tool_progress",
86
86
  "reply_completion_guard", "reply_triggers", "collab", "context_lines", "pre_task_command",
87
87
  "web_echo",
88
88
  // M-2909: the room's AI account (backend_options.<cli>.credential_profile) — read at launch: a restart of that room's agent.
@@ -1 +1 @@
1
- {"version":3,"file":"instance-config-impact.js","sourceRoot":"","sources":["../src/instance-config-impact.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAM9C,0EAA0E;AAC1E,MAAM,CAAC,MAAM,YAAY,GAA4B,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;AAElF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAsC,IAAI,GAAG,CAAuB;IACvG,cAAc;IACd,eAAe;IACf,wBAAwB;IACxB,gBAAgB;IAChB,iBAAiB;IACjB,yBAAyB;IACzB,kBAAkB;IAClB,UAAU;IACV,cAAc;IACd,aAAa;IACb,MAAM;IACN,WAAW;IACX,sFAAsF;IACtF,2BAA2B;IAC3B,wFAAwF;IACxF,qBAAqB;IACrB,oGAAoG;IACpG,WAAW,EAAE,eAAe,EAAE,oBAAoB;CACnD,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAwB,IAAI,GAAG,CAChE,CAAC,cAAc,EAAE,eAAe,EAAE,wBAAwB,EAAE,gBAAgB,CAAW;KACrF,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,wBAAwB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CACpD,CAAC;AAEF;;;GAGG;AACH,MAAM,0BAA0B,GAAwB,IAAI,GAAG,CAAC;IAC9D,UAAU;IACV,YAAY;IACZ,eAAe;CAChB,CAAC,CAAC;AAEH,wDAAwD;AACxD,MAAM,eAAe,GAAG;IACtB,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AE,KAAK,EAAE,YAAY,EAAE,CAAC;AAC1C,CAAC"}
1
+ {"version":3,"file":"instance-config-impact.js","sourceRoot":"","sources":["../src/instance-config-impact.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAM9C,0EAA0E;AAC1E,MAAM,CAAC,MAAM,YAAY,GAA4B,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;AAElF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAsC,IAAI,GAAG,CAAuB;IACvG,cAAc;IACd,eAAe;IACf,wBAAwB;IACxB,gBAAgB;IAChB,iBAAiB;IACjB,yBAAyB;IACzB,kBAAkB;IAClB,UAAU;IACV,cAAc;IACd,aAAa;IACb,MAAM;IACN,WAAW;IACX,sFAAsF;IACtF,2BAA2B;IAC3B,wFAAwF;IACxF,qBAAqB;IACrB,oGAAoG;IACpG,WAAW,EAAE,eAAe,EAAE,oBAAoB;CACnD,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAwB,IAAI,GAAG,CAChE,CAAC,cAAc,EAAE,eAAe,EAAE,wBAAwB,EAAE,gBAAgB,CAAW;KACrF,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,wBAAwB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CACpD,CAAC;AAEF;;;GAGG;AACH,MAAM,0BAA0B,GAAwB,IAAI,GAAG,CAAC;IAC9D,UAAU;IACV,YAAY;IACZ,eAAe;CAChB,CAAC,CAAC;AAEH,wDAAwD;AACxD,MAAM,eAAe,GAAG;IACtB,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO,EAAE,mBAAmB;IACtF,yBAAyB,EAAE,kBAAkB,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe;IACpG,eAAe,EAAE,wBAAwB,EAAE,gBAA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CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC;AAC/D,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,IAAuB,EAAE,QAAuC;IAC1F,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,KAAK,MAAM,GAAG,IAAI,IAAI;QAAE,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACrF,OAAO,YAAY,CAAC,KAAK,CAAE,CAAC;AAC9B,CAAC;AASD,qDAAqD;AACrD,MAAM,UAAU,yBAAyB;IACvC,MAAM,OAAO,GAAiC,EAAE,GAAG,mBAAmB,EAAE,CAAC;IACzE,KAAK,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;QAClC,OAAO,CAAC,YAAY,GAAG,EAAE,CAAC,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;QACtD,wEAAwE;QACxE,sEAAsE;QACtE,IAAI,CAAC,0BAA0B,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,OAAO,CAAC,YAAY,GAAG,EAAE,CAAC,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;IAClG,CAAC;IACD,KAAK,MAAM,GAAG,IAAI,cAAc,EAAE,CAAC;QACjC,OAAO,CAAC,WAAW,GAAG,EAAE,CAAC,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;QACpD,OAAO,CAAC,oBAAoB,GAAG,EAAE,CAAC,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;AAC1C,CAAC"}
@@ -197,6 +197,7 @@ export function buildFleetInstructions(params) {
197
197
  "## Tool Usage",
198
198
  "- reply: respond to users. react: add an emoji reaction — needs `message_id` + `emoji`; a complete answer to a message that only acknowledges or thanks, on every platform including the web chat (a task's conclusion still needs reply). edit_message: update a sent message — needs `message_id` + `text`. download_attachment: fetch files.",
199
199
  "- reply can also offer choices: `buttons` (1–10, `{label, value?}`); a click comes back as a message `[button] <label>` (or `[button] <label> (value: <value>)` when the value differs). Add `poll: { seconds }` to make the buttons a timed vote by everyone there (Discord, Telegram, web chat); its results come back as one `[poll results]` message (`close_poll` ends it early). And `stickers` (up to 3 ids from `list_stickers`; not together with buttons).",
200
+ "- Reminding a person of a choice they haven't answered: one reply per pending decision, with `reply_to` set to the original button message (the quote jumps there), and the `buttons` attached again if the original's have expired (web buttons last 24 h).",
200
201
  "- `message_id` comes from the inbound message header line `(message_id: … | …)`, which lists the fields that are set.",
201
202
  "- `[📷 Image: PATH]` in a message: Read PATH — it is a photo. `[📎 File: NAME → PATH]`: a saved file at PATH.",
202
203
  "- If the header has `attachment_file_id`, call download_attachment then Read the returned path.",
@@ -1 +1 @@
1
- {"version":3,"file":"instructions.js","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA6BzC,uDAAuD;AACvD,MAAM,yBAAyB,GAAG,UAAU,CAAC;AAC7C,MAAM,eAAe,GAAG,8CAA8C,CAAC;AAEvE;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CAAC,QAAgB,EAAE,YAAuB;IAClF,IAAI,CAAC,YAAY,EAAE,MAAM;QAAE,OAAO,QAAQ,CAAC;IAC3C,MAAM,IAAI,GAAG,YA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ocale(fleetConfig?: {
17
17
  }): Locale;
18
18
  /** Translate a key with {0},{1},… positional args, using the active locale. */
19
19
  export declare function t(key: string, ...args: (string | number)[]): string;
20
+ /** Translate a request-local report without changing the platform locale. */
21
+ export declare function tForLocale(locale: Locale, key: string, ...args: (string | number)[]): string;
package/dist/locale.js CHANGED
@@ -93,6 +93,7 @@ const enMessages = {
93
93
  "classic.started.telegram": "✅ Agent started in this chat. @mention me to talk (or `/chat <message>`).",
94
94
  "classic.choose_backend": "Choose a backend for this agent:",
95
95
  "classic.restricted_start_notice": "New rooms start in restricted mode. Guard coverage is verified when the AI tool starts. If it is not covered, it runs with its normal permissions; only contact approval applies.",
96
+ "classic.restricted_backend_notice": "Guard coverage is verified when the AI tool starts. If it is not covered, it runs with its normal permissions; only contact approval applies.",
96
97
  "classic.backend_required": "Choose a backend in the `/start` command and try again. If no backend field is shown, refresh Discord and reopen the command.",
97
98
  "classic.selection_expired": "⏰ Backend selection expired. Run /start again to choose.",
98
99
  "classic.backend_not_installed": "⚠️ {0} CLI (`{1}`) was not found in PATH.\nInstall: `{2}`\nStarting anyway…",
@@ -390,10 +391,13 @@ const enMessages = {
390
391
  "contact.refusedUnknown": "Not sent: the originating person could not be verified. Contact requires approval. Do not resend; an approver can approve this exact application.",
391
392
  "contact.approved": "This contact application was approved for forwarding.",
392
393
  "contact.updated": "This contact application's status changed.",
394
+ "contact.noticeDeclined": "Contact #{0} to {1} was declined. It was not forwarded; stop waiting. Status only, no permission granted.",
395
+ "contact.noticeExpired": "Contact #{0} to {1} expired. It was not forwarded; stop waiting. Status only, no permission granted.",
393
396
  "contact.suggest": "Consider restricted mode: room chat continues, non-admin contact needs approval, and tools outside the room allowance stop. Review the tool impact in Permissions; nothing changes automatically.",
394
397
  "contact.mcpAccountWarning": "This tool may use the owner's API key or account, with its cost and identity. Review its configuration before allowing it.",
395
398
  "needs.reason.contact_request": "Contact application awaiting approval",
396
399
  "needs.reason.contact_restricted_suggestion": "Consider restricted mode for this room",
400
+ "needs.contact_suggestions": "{0} existing ClassicBot room(s) can switch to restricted mode — to review: /web → Needs you, or a room's Details → Permissions. Nothing changes on its own.",
397
401
  "hub.hold.hub-incomplete": "This version of AgEnD doesn't include every part of the Hub yet, so it stays off.",
398
402
  "hub.browserCertificate.replace": "Replace the Hub browser certificate. The member transport identity stays the same.",
399
403
  "hub.browserCertificate.fingerprint": "SHA-256 fingerprint: {0}",
@@ -1280,6 +1284,8 @@ const enMessages = {
1280
1284
  "usage.hint.grok_no_login": "auth.json has no usable login. Run `grok login`.",
1281
1285
  "usage.hint.login_kiro": "Log in with the Kiro CLI (`kiro-cli`).",
1282
1286
  "usage.hint.kiro_signed_out": "Signed out — run `kiro-cli` to log in.",
1287
+ "login.managed_credentials": "This profile uses a saved credential. Manage it in Settings → AI accounts & keys → Accounts on the local dashboard.",
1288
+ "usage.hint.claude_managed_source": "Saved credentials have no subscription meters. Manage this connection in Settings → AI accounts & keys → Accounts.",
1283
1289
  "usage.hint.claude_profile_signed_out": "Not connected — connect it in Settings → AI accounts & keys → Accounts.",
1284
1290
  "usage.hint.claude_profile_signed_out_chat": "Not connected — connect it in Settings → AI accounts & keys → Accounts, or with `{0}`.",
1285
1291
  "usage.hint.token_refreshing": "Token refreshing — try again in a moment.",
@@ -1397,6 +1403,7 @@ const enMessages = {
1397
1403
  "backend.same": "{0} already runs {1} — nothing changed. To change only its model or effort, use /model or /effort.",
1398
1404
  "backend.default": "default",
1399
1405
  "backend.default_inherited": "fleet default: {0}",
1406
+ "backend.default_classic_inherited": "default: {0}",
1400
1407
  "backend.default_cli": "the CLI's default",
1401
1408
  "backend.model_menu": "Model for {0}:",
1402
1409
  "backend.model_menu_empty": "No model list is known for {0} yet, so only its default can be chosen:",
@@ -1924,6 +1931,7 @@ const zhTWMessages = {
1924
1931
  "classic.started.telegram": "✅ Agent 已在此聊天啟動。@我 就能對話(也可用 `/chat <訊息>`)。",
1925
1932
  "classic.choose_backend": "請選擇此 Agent 的 Backend:",
1926
1933
  "classic.restricted_start_notice": "新房間預設使用受限模式。AI 工具啟動時會確認防護範圍;若不在防護範圍內,會以原本的權限執行,只有聯絡申請需要核准。",
1934
+ "classic.restricted_backend_notice": "AI 工具啟動時會確認防護範圍;若不在防護範圍內,會以原本的權限執行,只有聯絡申請需要核准。",
1927
1935
  "classic.backend_required": "請在 `/start` 指令中選擇 Backend 後重試。若沒有顯示 Backend 欄位,請重新整理 Discord 再開啟指令。",
1928
1936
  "classic.selection_expired": "⏰ 選擇逾時。請再次執行 /start。",
1929
1937
  "classic.backend_not_installed": "⚠️ 找不到 {0} CLI(`{1}`)於 PATH。\n安裝:`{2}`\n仍會嘗試啟動…",
@@ -2217,10 +2225,13 @@ const zhTWMessages = {
2217
2225
  "contact.refusedUnknown": "沒有送出:無法確認最初提問者的身分,因此聯絡須先核准。請勿重送;核准人可以核准這筆原樣轉交的申請。",
2218
2226
  "contact.approved": "這筆聯絡申請已核准轉交。",
2219
2227
  "contact.updated": "這筆聯絡申請的狀態已更新。",
2228
+ "contact.noticeDeclined": "聯絡申請 #{0}(目標:{1})已拒絕,沒有轉交,請停止等待。這只是狀態通知,未授予任何權限。",
2229
+ "contact.noticeExpired": "聯絡申請 #{0}(目標:{1})已到期,沒有轉交,請停止等待。這只是狀態通知,未授予任何權限。",
2220
2230
  "contact.suggest": "建議切換受限模式:房間仍可聊天,非管理員聯絡其他 Agent 先申請,房間允許清單以外的工具將停用。請在權限頁查看工具影響;不會自動切換。",
2221
2231
  "contact.mcpAccountWarning": "這個工具可能使用擁有者的 API key 或帳號,並以該帳號計費及執行。允許前請先確認設定。",
2222
2232
  "needs.reason.contact_request": "聯絡申請正在等待核准",
2223
2233
  "needs.reason.contact_restricted_suggestion": "建議將這個房間切換為受限模式",
2234
+ "needs.contact_suggestions": "{0} 個既有 ClassicBot 房間可以切換為受限模式 — 查看方式:/web → 等你處理,或房間的詳細資料 → 權限。不會自動切換。",
2224
2235
  "hub.hold.hub-incomplete": "這個版本的 AgEnD 還沒有包含 Hub 的所有部分,所以 Hub 維持關閉。",
2225
2236
  "hub.browserCertificate.replace": "更換 Hub 瀏覽器憑證;成員傳輸身分保持不變。",
2226
2237
  "hub.browserCertificate.fingerprint": "SHA-256 指紋:{0}",
@@ -3107,6 +3118,8 @@ const zhTWMessages = {
3107
3118
  "usage.hint.grok_no_login": "auth.json 沒有可用的登入資料。請執行 `grok login`。",
3108
3119
  "usage.hint.login_kiro": "請使用 Kiro CLI(`kiro-cli`)登入。",
3109
3120
  "usage.hint.kiro_signed_out": "目前已登出;請執行 `kiro-cli` 登入。",
3121
+ "login.managed_credentials": "這個設定檔使用保存的憑證。請在本機儀表板的設定 →「AI 帳號與金鑰」→「帳號」管理。",
3122
+ "usage.hint.claude_managed_source": "保存的憑證不提供訂閱額度表。請到設定 →「AI 帳號與金鑰」→「帳號」管理連接。",
3110
3123
  "usage.hint.claude_profile_signed_out": "尚未連接;請到設定 →「AI 帳號與金鑰」→「帳號」連接 AI 帳號。",
3111
3124
  "usage.hint.claude_profile_signed_out_chat": "尚未連接;請到設定 →「AI 帳號與金鑰」→「帳號」連接 AI 帳號,或用 `{0}` 連接。",
3112
3125
  "usage.hint.token_refreshing": "Token 更新中 — 請稍候再試。",
@@ -3224,6 +3237,7 @@ const zhTWMessages = {
3224
3237
  "backend.same": "{0} 已經在用 {1} — 沒有變更。只要換模型或推理強度,請用 /model 或 /effort。",
3225
3238
  "backend.default": "預設",
3226
3239
  "backend.default_inherited": "fleet 預設:{0}",
3240
+ "backend.default_classic_inherited": "預設:{0}",
3227
3241
  "backend.default_cli": "CLI 的預設",
3228
3242
  "backend.model_menu": "{0} 的模型:",
3229
3243
  "backend.model_menu_empty": "目前還沒有 {0} 的模型清單,只能選它的預設:",
@@ -3672,7 +3686,11 @@ const messages = {
3672
3686
  };
3673
3687
  /** Translate a key with {0},{1},… positional args, using the active locale. */
3674
3688
  export function t(key, ...args) {
3675
- const table = messages[current] ?? messages.en;
3689
+ return tForLocale(current, key, ...args);
3690
+ }
3691
+ /** Translate a request-local report without changing the platform locale. */
3692
+ export function tForLocale(locale, key, ...args) {
3693
+ const table = messages[locale] ?? messages.en;
3676
3694
  const msg = table[key] ?? messages.en[key] ?? key;
3677
3695
  return msg.replace(/\{(\d+)\}/g, (_, i) => String(args[Number(i)] ?? ""));
3678
3696
  }