@theoremjs/react 0.0.0-stage → 0.3.1

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 (320) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +772 -2
  3. package/client/attachment-hover-preview.d.ts +11 -0
  4. package/client/attachment-hover-preview.js +36 -0
  5. package/client/audio-level.d.ts +5 -0
  6. package/client/audio-level.js +24 -0
  7. package/client/composer-attachments.d.ts +30 -0
  8. package/client/composer-attachments.js +33 -0
  9. package/client/composer-drawer.d.ts +19 -0
  10. package/client/composer-drawer.js +15 -0
  11. package/client/composer-hints.d.ts +25 -0
  12. package/client/composer-hints.js +20 -0
  13. package/client/composer-primary.d.ts +16 -0
  14. package/client/composer-primary.js +25 -0
  15. package/client/decision-images.d.ts +76 -0
  16. package/client/decision-images.js +139 -0
  17. package/client/decision-transport.d.ts +70 -0
  18. package/client/decision-transport.js +175 -0
  19. package/client/decode-composer-draft.d.ts +11 -0
  20. package/client/decode-composer-draft.js +12 -0
  21. package/client/embedding-input.d.ts +84 -0
  22. package/client/embedding-input.js +194 -0
  23. package/client/embedding-space.d.ts +82 -0
  24. package/client/embedding-space.js +389 -0
  25. package/client/embedding-transport.d.ts +40 -0
  26. package/client/embedding-transport.js +71 -0
  27. package/client/encode-composer-draft.d.ts +9 -0
  28. package/client/encode-composer-draft.js +34 -0
  29. package/client/encode-files.d.ts +18 -0
  30. package/client/encode-files.js +54 -0
  31. package/client/failure.d.ts +29 -0
  32. package/client/failure.js +34 -0
  33. package/client/generation-selection.d.ts +15 -0
  34. package/client/generation-selection.js +24 -0
  35. package/client/host-call.d.ts +51 -0
  36. package/client/host-call.js +47 -0
  37. package/client/host-transport.d.ts +70 -0
  38. package/client/host-transport.js +75 -0
  39. package/client/image-output.d.ts +6 -0
  40. package/client/image-output.js +13 -0
  41. package/client/index.d.ts +28 -0
  42. package/client/index.js +22 -0
  43. package/client/ink-waveform.d.ts +17 -0
  44. package/client/ink-waveform.js +68 -0
  45. package/client/live/apply-live-turn-tool-event.d.ts +14 -0
  46. package/client/live/apply-live-turn-tool-event.js +39 -0
  47. package/client/live/live-captions.d.ts +53 -0
  48. package/client/live/live-captions.js +174 -0
  49. package/client/live/live-mic-forward.d.ts +30 -0
  50. package/client/live/live-mic-forward.js +46 -0
  51. package/client/live/live-page-tool.d.ts +34 -0
  52. package/client/live/live-page-tool.js +11 -0
  53. package/client/live/live-state.d.ts +13 -0
  54. package/client/live/live-state.js +22 -0
  55. package/client/live/live-tool.d.ts +11 -0
  56. package/client/live/live-tool.js +1 -0
  57. package/client/live/live-video.d.ts +10 -0
  58. package/client/live/live-video.js +71 -0
  59. package/client/live/run-live-tool-call.d.ts +22 -0
  60. package/client/live/run-live-tool-call.js +70 -0
  61. package/client/live/use-live-caption-log.d.ts +17 -0
  62. package/client/live/use-live-caption-log.js +51 -0
  63. package/client/live-client.d.ts +189 -0
  64. package/client/live-client.js +829 -0
  65. package/client/live-errors.d.ts +2 -0
  66. package/client/live-errors.js +9 -0
  67. package/client/live-messages.d.ts +148 -0
  68. package/client/live-messages.js +100 -0
  69. package/client/mic-capture.d.ts +4 -0
  70. package/client/mic-capture.js +6 -0
  71. package/client/oauth-popup.d.ts +26 -0
  72. package/client/oauth-popup.js +30 -0
  73. package/client/page-dispatch.d.ts +15 -0
  74. package/client/page-dispatch.js +63 -0
  75. package/client/pcm-downsample.d.ts +4 -0
  76. package/client/pcm-downsample.js +45 -0
  77. package/client/run-commit.d.ts +34 -0
  78. package/client/run-commit.js +49 -0
  79. package/client/run-session.d.ts +79 -0
  80. package/client/run-session.js +207 -0
  81. package/client/schema-fields.d.ts +63 -0
  82. package/client/schema-fields.js +199 -0
  83. package/client/shaped-data.d.ts +118 -0
  84. package/client/shaped-data.js +343 -0
  85. package/client/source-citations.d.ts +13 -0
  86. package/client/source-citations.js +56 -0
  87. package/client/space-geometry.d.ts +39 -0
  88. package/client/space-geometry.js +183 -0
  89. package/client/state-fields.d.ts +16 -0
  90. package/client/state-fields.js +44 -0
  91. package/client/tool-result.d.ts +78 -0
  92. package/client/tool-result.js +293 -0
  93. package/client/tool-resume.d.ts +50 -0
  94. package/client/tool-resume.js +14 -0
  95. package/client/trace-feed.d.ts +13 -0
  96. package/client/trace-feed.js +18 -0
  97. package/client/trace-story.d.ts +163 -0
  98. package/client/trace-story.js +440 -0
  99. package/client/trace-view.d.ts +130 -0
  100. package/client/trace-view.js +333 -0
  101. package/client/transcript-groups.d.ts +140 -0
  102. package/client/transcript-groups.js +217 -0
  103. package/client/transcript-schema.d.ts +10 -0
  104. package/client/transcript-schema.js +120 -0
  105. package/client/transcript-scroll.d.ts +7 -0
  106. package/client/transcript-scroll.js +6 -0
  107. package/client/transport.d.ts +264 -0
  108. package/client/transport.js +330 -0
  109. package/client/turn-client.d.ts +44 -0
  110. package/client/turn-client.js +88 -0
  111. package/client/voice-label.d.ts +2 -0
  112. package/client/voice-label.js +15 -0
  113. package/client/voice-recorder.d.ts +27 -0
  114. package/client/voice-recorder.js +162 -0
  115. package/client/wire-line.d.ts +56 -0
  116. package/client/wire-line.js +90 -0
  117. package/client/worklets/mic-capture.js +16 -0
  118. package/components/InkWaveform.d.ts +21 -0
  119. package/components/InkWaveform.js +131 -0
  120. package/components/live/use-live-runner-controls.d.ts +47 -0
  121. package/components/live/use-live-runner-controls.js +96 -0
  122. package/components/live/use-live-runner-model.d.ts +49 -0
  123. package/components/live/use-live-runner-model.js +190 -0
  124. package/components/live/use-live-runner-ui.d.ts +67 -0
  125. package/components/live/use-live-runner-ui.js +167 -0
  126. package/components/live/use-live-session-client.d.ts +41 -0
  127. package/components/live/use-live-session-client.js +126 -0
  128. package/components/use-composer-voice.d.ts +28 -0
  129. package/components/use-composer-voice.js +90 -0
  130. package/components/use-editor-selection.d.ts +3 -0
  131. package/components/use-editor-selection.js +19 -0
  132. package/components/use-voice-playback.d.ts +17 -0
  133. package/components/use-voice-playback.js +68 -0
  134. package/hooks/use-described.d.ts +12 -0
  135. package/hooks/use-described.js +25 -0
  136. package/hooks/use-embedding-index.d.ts +27 -0
  137. package/hooks/use-embedding-index.js +43 -0
  138. package/hooks/use-one-call.d.ts +31 -0
  139. package/hooks/use-one-call.js +76 -0
  140. package/hooks/use-page-tool-warnings.d.ts +6 -0
  141. package/hooks/use-page-tool-warnings.js +25 -0
  142. package/hooks/use-second-ticker.d.ts +2 -0
  143. package/hooks/use-second-ticker.js +13 -0
  144. package/hooks/use-theorem-chat-actions.d.ts +79 -0
  145. package/hooks/use-theorem-chat-actions.js +287 -0
  146. package/hooks/use-theorem-chat-state.d.ts +66 -0
  147. package/hooks/use-theorem-chat-state.js +122 -0
  148. package/hooks/use-theorem-chat.d.ts +97 -0
  149. package/hooks/use-theorem-chat.js +528 -0
  150. package/hooks/use-theorem-decision.d.ts +18 -0
  151. package/hooks/use-theorem-decision.js +12 -0
  152. package/hooks/use-theorem-embedding.d.ts +18 -0
  153. package/hooks/use-theorem-embedding.js +12 -0
  154. package/hooks/use-theorem-host.d.ts +45 -0
  155. package/hooks/use-theorem-host.js +135 -0
  156. package/hooks/use-theorem-interface.d.ts +22 -0
  157. package/hooks/use-theorem-interface.js +15 -0
  158. package/hooks/use-trace-records.d.ts +4 -0
  159. package/hooks/use-trace-records.js +7 -0
  160. package/index.d.ts +17 -0
  161. package/index.js +17 -0
  162. package/live.d.ts +9 -0
  163. package/live.js +10 -0
  164. package/package.json +74 -4
  165. package/server/checkpoint-ownership.d.ts +6 -0
  166. package/server/checkpoint-ownership.js +42 -0
  167. package/server/conversation-store.d.ts +92 -0
  168. package/server/conversation-store.js +131 -0
  169. package/server/conversation.d.ts +193 -0
  170. package/server/conversation.js +552 -0
  171. package/server/credential-store.d.ts +24 -0
  172. package/server/credential-store.js +14 -0
  173. package/server/decision-handler.d.ts +42 -0
  174. package/server/decision-handler.js +46 -0
  175. package/server/embedding-handler.d.ts +33 -0
  176. package/server/embedding-handler.js +45 -0
  177. package/server/handler.d.ts +152 -0
  178. package/server/handler.js +771 -0
  179. package/server/json-response.d.ts +2 -0
  180. package/server/json-response.js +7 -0
  181. package/server/mod.d.ts +25 -0
  182. package/server/mod.js +23 -0
  183. package/server/page-dispatch.d.ts +22 -0
  184. package/server/page-dispatch.js +127 -0
  185. package/server/request-body.d.ts +2 -0
  186. package/server/request-body.js +42 -0
  187. package/server/request-check.d.ts +21 -0
  188. package/server/request-check.js +49 -0
  189. package/server/session-authority.d.ts +8 -0
  190. package/server/session-authority.js +78 -0
  191. package/server/session-boundary.d.ts +26 -0
  192. package/server/session-boundary.js +64 -0
  193. package/server/session-identity.d.ts +16 -0
  194. package/server/session-identity.js +41 -0
  195. package/server/session-limits.d.ts +12 -0
  196. package/server/session-limits.js +59 -0
  197. package/server/session-store.d.ts +123 -0
  198. package/server/session-store.js +264 -0
  199. package/server/single-action.d.ts +21 -0
  200. package/server/single-action.js +30 -0
  201. package/server/steer-inbox.d.ts +35 -0
  202. package/server/steer-inbox.js +52 -0
  203. package/server/tool-operations.d.ts +6 -0
  204. package/server/tool-operations.js +132 -0
  205. package/server/turn-input.d.ts +10 -0
  206. package/server/turn-input.js +29 -0
  207. package/styles/ink-controls.css +134 -0
  208. package/ui/CardWall.d.ts +10 -0
  209. package/ui/CardWall.js +61 -0
  210. package/ui/ChatComposerBar.d.ts +62 -0
  211. package/ui/ChatComposerBar.js +306 -0
  212. package/ui/ChatTranscript.d.ts +43 -0
  213. package/ui/ChatTranscript.js +527 -0
  214. package/ui/ConsoleFrame.d.ts +104 -0
  215. package/ui/ConsoleFrame.js +146 -0
  216. package/ui/DecisionAnswers.d.ts +53 -0
  217. package/ui/DecisionAnswers.js +233 -0
  218. package/ui/DecisionImages.d.ts +16 -0
  219. package/ui/DecisionImages.js +46 -0
  220. package/ui/EmbeddingDocuments.d.ts +78 -0
  221. package/ui/EmbeddingDocuments.js +278 -0
  222. package/ui/EmbeddingQuery.d.ts +27 -0
  223. package/ui/EmbeddingQuery.js +95 -0
  224. package/ui/EmbeddingResults.d.ts +41 -0
  225. package/ui/EmbeddingResults.js +165 -0
  226. package/ui/EmbeddingSpace.d.ts +26 -0
  227. package/ui/EmbeddingSpace.js +106 -0
  228. package/ui/LiveCaptionsPanel.d.ts +22 -0
  229. package/ui/LiveCaptionsPanel.js +27 -0
  230. package/ui/LiveRunner.d.ts +30 -0
  231. package/ui/LiveRunner.js +180 -0
  232. package/ui/PaneState.d.ts +33 -0
  233. package/ui/PaneState.js +50 -0
  234. package/ui/SchemaFields.d.ts +10 -0
  235. package/ui/SchemaFields.js +150 -0
  236. package/ui/ShapedData.d.ts +11 -0
  237. package/ui/ShapedData.js +196 -0
  238. package/ui/SidePanel.d.ts +126 -0
  239. package/ui/SidePanel.js +123 -0
  240. package/ui/StateFields.d.ts +44 -0
  241. package/ui/StateFields.js +139 -0
  242. package/ui/TheoremChat.d.ts +122 -0
  243. package/ui/TheoremChat.js +134 -0
  244. package/ui/TheoremDecision.d.ts +30 -0
  245. package/ui/TheoremDecision.js +130 -0
  246. package/ui/TheoremEmbedding.d.ts +27 -0
  247. package/ui/TheoremEmbedding.js +122 -0
  248. package/ui/TheoremHost.d.ts +55 -0
  249. package/ui/TheoremHost.js +240 -0
  250. package/ui/ToolGateCard.d.ts +32 -0
  251. package/ui/ToolGateCard.js +107 -0
  252. package/ui/ToolResult.d.ts +10 -0
  253. package/ui/ToolResult.js +62 -0
  254. package/ui/ToolResultCharts.d.ts +5 -0
  255. package/ui/ToolResultCharts.js +103 -0
  256. package/ui/TraceCharts.d.ts +13 -0
  257. package/ui/TraceCharts.js +266 -0
  258. package/ui/TraceGuardrails.d.ts +11 -0
  259. package/ui/TraceGuardrails.js +74 -0
  260. package/ui/TraceInspector.d.ts +16 -0
  261. package/ui/TraceInspector.js +206 -0
  262. package/ui/TraceInspectorPanel.d.ts +46 -0
  263. package/ui/TraceInspectorPanel.js +95 -0
  264. package/ui/TraceOverview.d.ts +38 -0
  265. package/ui/TraceOverview.js +126 -0
  266. package/ui/TraceSpanDetail.d.ts +10 -0
  267. package/ui/TraceSpanDetail.js +190 -0
  268. package/ui/TraceStory.d.ts +20 -0
  269. package/ui/TraceStory.js +108 -0
  270. package/ui/TraceValues.d.ts +36 -0
  271. package/ui/TraceValues.js +123 -0
  272. package/ui/TraceWaterfall.d.ts +13 -0
  273. package/ui/TraceWaterfall.js +135 -0
  274. package/ui/VoiceNote.d.ts +12 -0
  275. package/ui/VoiceNote.js +28 -0
  276. package/ui/approval-heading.d.ts +4 -0
  277. package/ui/approval-heading.js +9 -0
  278. package/ui/arrive.d.ts +18 -0
  279. package/ui/arrive.js +46 -0
  280. package/ui/built/theme.css +792 -0
  281. package/ui/built/theme.css.d.ts +9 -0
  282. package/ui/built/theorem.d.ts +13 -0
  283. package/ui/built/theorem.js +660 -0
  284. package/ui/built/theorem.variants.d.ts +22 -0
  285. package/ui/code-language.d.ts +12 -0
  286. package/ui/code-language.js +50 -0
  287. package/ui/disclosure-motion.d.ts +6 -0
  288. package/ui/disclosure-motion.js +207 -0
  289. package/ui/embedding-space-gl.d.ts +37 -0
  290. package/ui/embedding-space-gl.js +663 -0
  291. package/ui/embedding-space-view.d.ts +8 -0
  292. package/ui/embedding-space-view.js +8 -0
  293. package/ui/glide.d.ts +7 -0
  294. package/ui/glide.js +44 -0
  295. package/ui/icons.d.ts +4 -0
  296. package/ui/icons.js +38 -0
  297. package/ui/index.d.ts +36 -0
  298. package/ui/index.js +39 -0
  299. package/ui/labels-provider.d.ts +16 -0
  300. package/ui/labels-provider.js +64 -0
  301. package/ui/labels.d.ts +1442 -0
  302. package/ui/labels.js +1443 -0
  303. package/ui/markdown-plugins.d.ts +9 -0
  304. package/ui/markdown-plugins.js +13 -0
  305. package/ui/mcp-icon.d.ts +6 -0
  306. package/ui/mcp-icon.js +8 -0
  307. package/ui/row-keys.d.ts +19 -0
  308. package/ui/row-keys.js +33 -0
  309. package/ui/theme.d.ts +10 -0
  310. package/ui/theme.js +13 -0
  311. package/ui/theorem-theme.d.ts +10 -0
  312. package/ui/theorem-theme.js +105 -0
  313. package/ui/trace-palette.d.ts +10 -0
  314. package/ui/trace-palette.js +10 -0
  315. package/ui/trace-patterns.d.ts +40 -0
  316. package/ui/trace-patterns.js +57 -0
  317. package/ui/transcript-copy-text.d.ts +4 -0
  318. package/ui/transcript-copy-text.js +40 -0
  319. package/ui/wall-columns.d.ts +8 -0
  320. package/ui/wall-columns.js +19 -0
package/ui/labels.js ADDED
@@ -0,0 +1,1443 @@
1
+ /**
2
+ * The default UI's words, as an Astryx i18n catalog under `@theorem.*` keys:
3
+ * the same mechanism that words Astryx's own components (`@astryx.*`), so one
4
+ * override table replaces any line on screen, per locale. Messages are ICU
5
+ * (`{handle}`, `{n, plural, …}`); `params` names the values each one is given.
6
+ * Failures are worded by the profile labels, not here.
7
+ *
8
+ * @module
9
+ */
10
+ import { IntlMessageFormat } from 'intl-messageformat';
11
+ export const THEOREM_UI_CATALOG = {
12
+ '@theorem.agent.handle': {
13
+ defaultMessage: '@{handle}',
14
+ description: "The agent's name above its messages, on the landing and in captions.",
15
+ params: ['handle'],
16
+ },
17
+ '@theorem.chat.greeting': {
18
+ defaultMessage: 'What are we working on?',
19
+ description: 'Chat landing heading, before the first message.',
20
+ },
21
+ '@theorem.chat.loading': {
22
+ defaultMessage: 'Loading…',
23
+ description: 'Spinner label while the profile loads.',
24
+ },
25
+ '@theorem.chat.live_unsupported.title': {
26
+ defaultMessage: "Live profiles aren't supported here",
27
+ description: 'Shown when TheoremChat is pointed at a live profile.',
28
+ },
29
+ '@theorem.chat.live_unsupported.description': {
30
+ defaultMessage: 'Use LiveRunner from @theoremjs/react/live.',
31
+ description: 'Where to go instead, under the live-profile warning.',
32
+ },
33
+ '@theorem.composer.placeholder': {
34
+ defaultMessage: 'Message @{handle}',
35
+ description: 'Empty composer placeholder.',
36
+ params: ['handle'],
37
+ },
38
+ '@theorem.composer.listening': {
39
+ defaultMessage: 'Listening…',
40
+ description: 'Composer placeholder while a voice note records.',
41
+ },
42
+ '@theorem.composer.attach': { defaultMessage: 'Attach files', description: 'Paperclip button.' },
43
+ '@theorem.composer.record': {
44
+ defaultMessage: 'Record voice',
45
+ description: 'Microphone button, idle.',
46
+ },
47
+ '@theorem.composer.stop_recording': {
48
+ defaultMessage: 'Stop recording',
49
+ description: 'Microphone button, recording.',
50
+ },
51
+ '@theorem.composer.send_options': {
52
+ defaultMessage: 'More send options',
53
+ description: 'Menu button beside send.',
54
+ },
55
+ '@theorem.composer.menu.queue': { defaultMessage: 'Queue', description: 'Send menu item.' },
56
+ '@theorem.composer.menu.queue.description': {
57
+ defaultMessage: 'Send it once this reply finishes.',
58
+ description: 'Send menu item detail: the message waits its turn.',
59
+ },
60
+ '@theorem.composer.menu.steer': {
61
+ defaultMessage: 'Steer this reply',
62
+ description: 'Send menu item.',
63
+ },
64
+ '@theorem.composer.menu.steer.description': {
65
+ defaultMessage: 'Add it to the reply in progress. The agent reads it at its next step.',
66
+ description: 'Send menu item detail: the message joins the running reply instead of waiting.',
67
+ },
68
+ '@theorem.composer.menu.send_now': { defaultMessage: 'Send now', description: 'Send menu item.' },
69
+ '@theorem.composer.menu.send_now.description': {
70
+ defaultMessage: 'Stop this reply and send it instead.',
71
+ description: 'Send menu item detail: ends the running reply (or its wait for approval), then sends.',
72
+ },
73
+ '@theorem.composer.menu.stash': { defaultMessage: 'Stash', description: 'Send menu item.' },
74
+ '@theorem.composer.menu.stash.description': {
75
+ defaultMessage: 'Set it aside to send later.',
76
+ description: 'Send menu item detail: the message waits in the composer until sent.',
77
+ },
78
+ '@theorem.composer.hint.stash-selected-draft.message': {
79
+ defaultMessage: 'Replacing this?',
80
+ description: 'Hint when the whole draft is selected and could be stashed.',
81
+ },
82
+ '@theorem.composer.hint.stash-selected-draft.action': {
83
+ defaultMessage: 'Stash it',
84
+ description: "The hint's button.",
85
+ },
86
+ '@theorem.composer.drawer.steer': {
87
+ defaultMessage: 'steering',
88
+ description: 'Drawer header when only steering messages wait.',
89
+ },
90
+ '@theorem.composer.drawer.queue': {
91
+ defaultMessage: 'queued',
92
+ description: 'Drawer header when only queued messages wait.',
93
+ },
94
+ '@theorem.composer.drawer.stash': {
95
+ defaultMessage: 'stashed',
96
+ description: 'Drawer header when only stashed messages wait.',
97
+ },
98
+ '@theorem.composer.drawer.attached': {
99
+ defaultMessage: 'attached',
100
+ description: 'Drawer header when only files wait.',
101
+ },
102
+ '@theorem.composer.drawer.steer.count': {
103
+ defaultMessage: '{n} steering',
104
+ description: 'One part of a mixed drawer header.',
105
+ params: ['n'],
106
+ },
107
+ '@theorem.composer.drawer.queue.count': {
108
+ defaultMessage: '{n} queued',
109
+ description: 'One part of a mixed drawer header.',
110
+ params: ['n'],
111
+ },
112
+ '@theorem.composer.drawer.stash.count': {
113
+ defaultMessage: '{n} stashed',
114
+ description: 'One part of a mixed drawer header.',
115
+ params: ['n'],
116
+ },
117
+ '@theorem.composer.drawer.attached.count': {
118
+ defaultMessage: '{n} attached',
119
+ description: 'One part of a mixed drawer header.',
120
+ params: ['n'],
121
+ },
122
+ '@theorem.composer.drawer.separator': {
123
+ defaultMessage: ' · ',
124
+ description: 'Between the parts of a mixed drawer header.',
125
+ },
126
+ '@theorem.composer.pending.steer': {
127
+ defaultMessage: 'Steering',
128
+ description: 'Badge on a waiting steering message.',
129
+ },
130
+ '@theorem.composer.pending.queue': {
131
+ defaultMessage: 'Queued',
132
+ description: 'Badge on a waiting queued message.',
133
+ },
134
+ '@theorem.composer.pending.stash': {
135
+ defaultMessage: 'Stashed',
136
+ description: 'Badge on a waiting stashed message.',
137
+ },
138
+ '@theorem.composer.pending.edit': {
139
+ defaultMessage: 'Edit',
140
+ description: 'Waiting message: back into the composer.',
141
+ },
142
+ '@theorem.composer.pending.queue_action': {
143
+ defaultMessage: 'Queue',
144
+ description: 'Stashed message: queue it.',
145
+ },
146
+ '@theorem.composer.pending.send_now': {
147
+ defaultMessage: 'Send now',
148
+ description: 'Waiting message: send it now.',
149
+ },
150
+ '@theorem.composer.pending.move_up': {
151
+ defaultMessage: 'Move up',
152
+ description: 'Waiting message: earlier.',
153
+ },
154
+ '@theorem.composer.pending.move_down': {
155
+ defaultMessage: 'Move down',
156
+ description: 'Waiting message: later.',
157
+ },
158
+ '@theorem.composer.pending.remove': {
159
+ defaultMessage: 'Remove',
160
+ description: 'Waiting message: discard.',
161
+ },
162
+ '@theorem.transcript.copy': { defaultMessage: 'Copy', description: 'Copy a message.' },
163
+ '@theorem.transcript.copied': {
164
+ defaultMessage: 'Copied',
165
+ description: 'Right after copying a message.',
166
+ },
167
+ '@theorem.transcript.now': {
168
+ defaultMessage: 'now',
169
+ description: 'Message time during its first minute.',
170
+ },
171
+ '@theorem.transcript.failed': {
172
+ defaultMessage: 'failed',
173
+ description: 'Message status: the turn failed. The reason shows on hover.',
174
+ },
175
+ '@theorem.transcript.generated_image': {
176
+ defaultMessage: 'Generated image',
177
+ description: 'Alt text for a generated image.',
178
+ },
179
+ '@theorem.transcript.generated_video': {
180
+ defaultMessage: 'Generated video',
181
+ description: 'Alt text for a generated video.',
182
+ },
183
+ '@theorem.transcript.open_generated_image': {
184
+ defaultMessage: 'Open generated image',
185
+ description: 'Opens the image full size.',
186
+ },
187
+ '@theorem.transcript.generating_image': {
188
+ defaultMessage: 'Generating image',
189
+ description: 'Placeholder while an image generates.',
190
+ },
191
+ '@theorem.transcript.sources': {
192
+ defaultMessage: 'Sources',
193
+ description: 'The row of source chips (screen readers).',
194
+ },
195
+ '@theorem.transcript.tool_input': {
196
+ defaultMessage: 'Input',
197
+ description: "A tool call's arguments, in its detail.",
198
+ },
199
+ '@theorem.transcript.tool_input_edited': {
200
+ defaultMessage: 'Input (edited)',
201
+ description: "A tool call's arguments after the user edited them on approval.",
202
+ },
203
+ '@theorem.transcript.tool_output': {
204
+ defaultMessage: 'Output',
205
+ description: "A tool call's result, in its detail.",
206
+ },
207
+ '@theorem.transcript.tool_error': {
208
+ defaultMessage: 'Error',
209
+ description: "A failed tool call's failure, in its detail.",
210
+ },
211
+ '@theorem.transcript.tokens': {
212
+ defaultMessage: '{count, plural, one {# token} other {# tokens}}',
213
+ description: "Tokens a reply used, under it, or an agent tool's called agent used, on its call row.",
214
+ params: ['count'],
215
+ },
216
+ '@theorem.data.view': {
217
+ defaultMessage: 'View as',
218
+ description: 'Switch between tool data drawn by its shape and its JSON.',
219
+ },
220
+ '@theorem.data.shaped': {
221
+ defaultMessage: 'Data',
222
+ description: 'Tool data drawn as fields, sections, and tables.',
223
+ },
224
+ '@theorem.data.json': { defaultMessage: 'JSON', description: 'Tool data as its raw JSON.' },
225
+ '@theorem.data.item': {
226
+ defaultMessage: 'Item {index}',
227
+ description: 'A list row with no name of its own.',
228
+ params: ['index'],
229
+ },
230
+ '@theorem.data.none': {
231
+ defaultMessage: 'Empty',
232
+ description: 'An empty list or object in tool data.',
233
+ },
234
+ '@theorem.data.yes': { defaultMessage: 'Yes', description: 'A true value in tool data.' },
235
+ '@theorem.data.no': { defaultMessage: 'No', description: 'A false value in tool data.' },
236
+ '@theorem.data.more': {
237
+ defaultMessage: '{count} more — switch to JSON to see them',
238
+ description: 'Rows past the shown ones, left to the JSON view.',
239
+ params: ['count'],
240
+ },
241
+ '@theorem.data.large': {
242
+ defaultMessage: 'Too large to lay out — showing the first {size} of its JSON',
243
+ description: 'A payload too big to draw by its shape, shown as the start of its JSON.',
244
+ params: ['size'],
245
+ },
246
+ '@theorem.transcript.copy_text.tool': {
247
+ defaultMessage: 'Tool: {name}',
248
+ description: 'A tool call in copied message text.',
249
+ params: ['name'],
250
+ },
251
+ '@theorem.transcript.copy_text.media': {
252
+ defaultMessage: '[{mimeType} media]',
253
+ description: 'Media without a link, in copied message text.',
254
+ params: ['mimeType'],
255
+ },
256
+ '@theorem.transcript.working': {
257
+ defaultMessage: 'Working…',
258
+ description: 'Turn status while running, start unknown.',
259
+ },
260
+ '@theorem.transcript.working_for': {
261
+ defaultMessage: 'Working for {duration}',
262
+ description: 'Turn status while running.',
263
+ params: ['duration'],
264
+ },
265
+ '@theorem.transcript.worked': {
266
+ defaultMessage: 'Worked',
267
+ description: 'Turn status once done, duration unknown.',
268
+ },
269
+ '@theorem.transcript.worked_for': {
270
+ defaultMessage: 'Worked for {duration}',
271
+ description: 'Turn status once done.',
272
+ params: ['duration'],
273
+ },
274
+ '@theorem.duration.milliseconds': {
275
+ defaultMessage: '{ms}ms',
276
+ description: 'Under a second.',
277
+ params: ['ms'],
278
+ },
279
+ '@theorem.duration.belowTenth': {
280
+ defaultMessage: '<0.1ms',
281
+ description: 'Above zero but under a tenth of a millisecond, such as a quick guardrail check.',
282
+ },
283
+ '@theorem.duration.seconds': {
284
+ defaultMessage: '{seconds}s',
285
+ description: 'Under a minute.',
286
+ params: ['seconds'],
287
+ },
288
+ '@theorem.duration.minutes': {
289
+ defaultMessage: '{minutes}m',
290
+ description: 'Whole minutes.',
291
+ params: ['minutes'],
292
+ },
293
+ '@theorem.duration.minutes_seconds': {
294
+ defaultMessage: '{minutes}m {seconds}s',
295
+ description: 'Minutes and seconds.',
296
+ params: ['minutes', 'seconds'],
297
+ },
298
+ '@theorem.gate.approval.title': {
299
+ defaultMessage: '{agent} wants to {request}',
300
+ description: "Approval card heading. {agent} is the agent's handle; {request} is what the call would do, e.g. 'check the weather'.",
301
+ params: ['agent', 'request'],
302
+ },
303
+ '@theorem.gate.approval.title_no_agent': {
304
+ defaultMessage: 'The agent wants to {request}',
305
+ description: 'Approval card heading when the host names no agent.',
306
+ params: ['request'],
307
+ },
308
+ '@theorem.gate.approval.use_tool': {
309
+ defaultMessage: 'use {tool}',
310
+ description: "The {request} in the heading when the tool sets no labels.request. {tool} is the tool's name in words.",
311
+ params: ['tool'],
312
+ },
313
+ '@theorem.gate.approval.input': {
314
+ defaultMessage: 'Details',
315
+ description: 'Expands the arguments the tool would run with.',
316
+ },
317
+ '@theorem.gate.approval.deny': { defaultMessage: 'Reject', description: 'Approval card button.' },
318
+ '@theorem.gate.approval.approve': {
319
+ defaultMessage: 'Approve',
320
+ description: 'Approval card button.',
321
+ },
322
+ '@theorem.gate.tag.bearer': { defaultMessage: 'bearer', description: 'Credential type tag.' },
323
+ '@theorem.gate.tag.api_key': { defaultMessage: 'api_key', description: 'Credential type tag.' },
324
+ '@theorem.gate.tag.oauth2': { defaultMessage: 'oauth2', description: 'Credential type tag.' },
325
+ '@theorem.gate.auth.title': {
326
+ defaultMessage: 'Sign in to use {tool}',
327
+ description: "Credential card heading. {tool} is the tool's name in words.",
328
+ params: ['tool'],
329
+ },
330
+ '@theorem.gate.auth.resource': {
331
+ defaultMessage: 'Resource: {resource}',
332
+ description: 'What the credential is for.',
333
+ params: ['resource'],
334
+ },
335
+ '@theorem.gate.auth.no_oauth': {
336
+ defaultMessage: 'No OAuth authorization endpoint is configured.',
337
+ description: 'OAuth tool without an authorization URL.',
338
+ },
339
+ '@theorem.gate.auth.authorize': {
340
+ defaultMessage: 'Authorize with provider',
341
+ description: 'Opens the OAuth sign-in.',
342
+ },
343
+ '@theorem.gate.auth.provided': {
344
+ defaultMessage: 'Credential provided for {slot}',
345
+ description: 'After submitting a credential or finishing an OAuth sign-in.',
346
+ params: ['slot'],
347
+ },
348
+ '@theorem.gate.auth.api_key': {
349
+ defaultMessage: 'API key',
350
+ description: 'Secret field label, API-key tools.',
351
+ },
352
+ '@theorem.gate.auth.bearer': {
353
+ defaultMessage: 'Bearer token',
354
+ description: 'Secret field label, bearer tools.',
355
+ },
356
+ '@theorem.gate.auth.secret_placeholder': {
357
+ defaultMessage: "Secret for slot ''{slot}''",
358
+ description: 'Secret field placeholder.',
359
+ params: ['slot'],
360
+ },
361
+ '@theorem.gate.auth.secret_note': {
362
+ defaultMessage: ' ',
363
+ description: 'Under the secret field: how the host handles the credential. Blank by default, since only the host knows; the studio says it is used for one call.',
364
+ },
365
+ '@theorem.gate.auth.submit': {
366
+ defaultMessage: 'Submit & continue',
367
+ description: 'Sends the credential.',
368
+ },
369
+ '@theorem.voice_note.name': {
370
+ defaultMessage: 'voice.{format}',
371
+ description: "A voice note's name, by audio format (webm, wav, mp3, m4a, ogg).",
372
+ params: ['format'],
373
+ },
374
+ '@theorem.voice_note.unnamed': {
375
+ defaultMessage: 'voice note',
376
+ description: "A voice note's name when its format is unknown.",
377
+ },
378
+ '@theorem.voice_note.play': {
379
+ defaultMessage: 'Play {name}',
380
+ description: 'Voice note, paused.',
381
+ params: ['name'],
382
+ },
383
+ '@theorem.voice_note.pause': {
384
+ defaultMessage: 'Pause {name}',
385
+ description: 'Voice note, playing.',
386
+ params: ['name'],
387
+ },
388
+ '@theorem.voice_note.remove': {
389
+ defaultMessage: 'Remove {name}',
390
+ description: 'Unstages a voice note.',
391
+ params: ['name'],
392
+ },
393
+ '@theorem.decision.state': {
394
+ defaultMessage: 'State',
395
+ description: 'The JSON a decision is asked about (field label).',
396
+ },
397
+ '@theorem.decision.state_size': {
398
+ defaultMessage: '{size} of {limit}',
399
+ description: "The state's size against the profile's limit, under the field.",
400
+ params: ['size', 'limit'],
401
+ },
402
+ '@theorem.decision.view': {
403
+ defaultMessage: 'Edit as',
404
+ description: 'Switch between the state as fields and as JSON.',
405
+ },
406
+ '@theorem.decision.fields': {
407
+ defaultMessage: 'Fields',
408
+ description: 'The state edited field by field.',
409
+ },
410
+ '@theorem.decision.add_item': {
411
+ defaultMessage: 'Add to {field}',
412
+ description: 'Adds a row to a list in the state.',
413
+ params: ['field'],
414
+ },
415
+ '@theorem.decision.remove_item': {
416
+ defaultMessage: 'Remove {item}',
417
+ description: 'Removes a row from a list in the state.',
418
+ params: ['item'],
419
+ },
420
+ '@theorem.decision.add_value': {
421
+ defaultMessage: 'Add a value',
422
+ description: 'A list of words in the state, while it is empty.',
423
+ },
424
+ '@theorem.decision.invalid_json': {
425
+ defaultMessage: 'Not valid JSON yet',
426
+ description: "The state doesn't parse.",
427
+ },
428
+ '@theorem.decision.null_state': {
429
+ defaultMessage: 'State can’t be null',
430
+ description: 'The state is the JSON null.',
431
+ },
432
+ '@theorem.decision.too_large': {
433
+ defaultMessage: 'Over the {limit} limit',
434
+ description: "The state is larger than the profile's limit.",
435
+ params: ['limit'],
436
+ },
437
+ '@theorem.decision.answers': {
438
+ defaultMessage: 'Answers',
439
+ description: 'The decision response column.',
440
+ },
441
+ '@theorem.decision.decide': {
442
+ defaultMessage: 'Decide',
443
+ description: 'Asks the questions about the state.',
444
+ },
445
+ '@theorem.decision.deciding': {
446
+ defaultMessage: 'Deciding…',
447
+ description: 'The decide button while it runs.',
448
+ },
449
+ '@theorem.decision.stop': {
450
+ defaultMessage: 'Stop',
451
+ description: 'Cancels the running decision.',
452
+ },
453
+ '@theorem.decision.confidence': {
454
+ defaultMessage: '{percent} sure',
455
+ description: "How sure the model is of a choice or score; percent is formatted, e.g. '92%'.",
456
+ params: ['percent'],
457
+ },
458
+ '@theorem.decision.option': {
459
+ defaultMessage: '{label}, {percent}',
460
+ description: 'One option and its probability (screen readers); percent is formatted.',
461
+ params: ['label', 'percent'],
462
+ },
463
+ '@theorem.decision.score_of': {
464
+ defaultMessage: '{score} of {max}',
465
+ description: 'A score on its scale from 0, e.g. 1.4 of 3.',
466
+ params: ['score', 'max'],
467
+ },
468
+ '@theorem.decision.type.choice': {
469
+ defaultMessage: 'Choice',
470
+ description: 'A question that picks one label.',
471
+ },
472
+ '@theorem.decision.type.score': {
473
+ defaultMessage: 'Score',
474
+ description: 'A question that places the state on a scale.',
475
+ },
476
+ '@theorem.decision.type.noul': {
477
+ defaultMessage: 'Noul',
478
+ description: 'A question answered with one number.',
479
+ },
480
+ '@theorem.decision.type.box': {
481
+ defaultMessage: 'Box',
482
+ description: 'A question answered with one box in an image.',
483
+ },
484
+ '@theorem.decision.box_edges': {
485
+ defaultMessage: 'Left {left}, top {top}, right {right}, bottom {bottom}',
486
+ description: 'Where a box sits in its image, each edge as a share of the image from its top-left corner.',
487
+ params: ['left', 'top', 'right', 'bottom'],
488
+ },
489
+ '@theorem.decision.add_image': {
490
+ defaultMessage: 'Add an image',
491
+ description: 'The drop area under the state: each image dropped or chosen becomes a state field.',
492
+ },
493
+ '@theorem.decision.add_image_hint': {
494
+ defaultMessage: 'Drop a PNG or JPEG, or choose one. It becomes a field the questions can name.',
495
+ description: 'What the drop area under the state says it does.',
496
+ },
497
+ '@theorem.decision.replace_image': {
498
+ defaultMessage: 'Replace',
499
+ description: "An image field's file input, which swaps in another PNG or JPEG.",
500
+ },
501
+ '@theorem.decision.image_bad': {
502
+ defaultMessage: '{file} is not a PNG or JPEG.',
503
+ description: 'A file attached as an image that is neither.',
504
+ params: ['file'],
505
+ },
506
+ '@theorem.decision.edit_question': {
507
+ defaultMessage: 'Edit {question}',
508
+ description: 'The button on an answer that opens its question where it is set up. The page shows it only when it can.',
509
+ params: ['question'],
510
+ },
511
+ '@theorem.decision.box_in': {
512
+ defaultMessage: 'The box, cut from the image',
513
+ description: 'The alt text of the part of the image a box answer covers.',
514
+ },
515
+ '@theorem.decision.open_box': {
516
+ defaultMessage: 'See the box in the whole image',
517
+ description: 'The cut-out box on an answer, which opens the whole image with the box outlined.',
518
+ },
519
+ '@theorem.decision.box_marked': {
520
+ defaultMessage: 'The whole image, the box outlined and the rest shaded',
521
+ description: 'The alt text of the whole image a box answer opens.',
522
+ },
523
+ '@theorem.decision.tokens': {
524
+ defaultMessage: '{count, plural, one {# token} other {# tokens}}',
525
+ description: 'Input tokens the decision used, in the line under the answers.',
526
+ params: ['count'],
527
+ },
528
+ '@theorem.embedding.documents': {
529
+ defaultMessage: 'Documents',
530
+ description: 'What a search looks through: the texts and files to embed (card title).',
531
+ },
532
+ '@theorem.embedding.document': {
533
+ defaultMessage: 'Document {number}',
534
+ description: 'One document, by its place in the list.',
535
+ params: ['number'],
536
+ },
537
+ '@theorem.embedding.text': {
538
+ defaultMessage: 'Text',
539
+ description: 'Text to split into documents (field label).',
540
+ },
541
+ '@theorem.embedding.text_placeholder': {
542
+ defaultMessage: 'Paste text to search through',
543
+ description: 'The empty text field on the documents card.',
544
+ },
545
+ '@theorem.embedding.split': {
546
+ defaultMessage: 'Split by',
547
+ description: 'Where the text is cut into documents (field label).',
548
+ },
549
+ '@theorem.embedding.split_whole': {
550
+ defaultMessage: 'Nothing: one document',
551
+ description: 'The text is one document.',
552
+ },
553
+ '@theorem.embedding.split_lines': {
554
+ defaultMessage: 'Lines',
555
+ description: 'Each line of the text is a document.',
556
+ },
557
+ '@theorem.embedding.split_paragraphs': {
558
+ defaultMessage: 'Paragraphs',
559
+ description: 'Each run of text between blank lines is a document.',
560
+ },
561
+ '@theorem.embedding.split_commas': {
562
+ defaultMessage: 'Commas',
563
+ description: 'Each piece of the text between commas is a document.',
564
+ },
565
+ '@theorem.embedding.split_custom': {
566
+ defaultMessage: 'A separator you type',
567
+ description: 'The text is cut wherever a separator of the user’s own appears.',
568
+ },
569
+ '@theorem.embedding.separator': {
570
+ defaultMessage: 'Separator',
571
+ description: 'The text the documents are cut at (field label).',
572
+ },
573
+ '@theorem.embedding.files': {
574
+ defaultMessage: 'Files',
575
+ description: 'Adds files as documents (field label).',
576
+ },
577
+ '@theorem.embedding.drop_files': {
578
+ defaultMessage: 'Drop files here, or click to upload',
579
+ description: "The file field's prompt.",
580
+ },
581
+ '@theorem.embedding.unreadable': {
582
+ defaultMessage: "{name} couldn't be read.",
583
+ description: 'A chosen file the browser could not read.',
584
+ params: ['name'],
585
+ },
586
+ '@theorem.embedding.remove': {
587
+ defaultMessage: 'Remove {name}',
588
+ description: 'Takes a document off the list.',
589
+ params: ['name'],
590
+ },
591
+ '@theorem.embedding.from_file': {
592
+ defaultMessage: 'From {name}',
593
+ description: 'A document that is a piece of a text file, under its text.',
594
+ params: ['name'],
595
+ },
596
+ '@theorem.embedding.from_json': {
597
+ defaultMessage: 'From the JSON',
598
+ description: 'The documents of a pasted list, as a group.',
599
+ },
600
+ '@theorem.embedding.group': {
601
+ defaultMessage: '{source} · {count, plural, one {# document} other {# documents}}',
602
+ description: 'A group of documents from one source, above its first few.',
603
+ params: ['source', 'count'],
604
+ },
605
+ '@theorem.embedding.held_file': {
606
+ defaultMessage: 'Held by the provider',
607
+ description: 'A file the provider already holds, referred to by address, beside its type.',
608
+ },
609
+ '@theorem.embedding.more': {
610
+ defaultMessage: '{count, plural, one {# more document} other {# more documents}}',
611
+ description: 'Documents past the ones the list shows.',
612
+ params: ['count'],
613
+ },
614
+ '@theorem.embedding.invalid_json': {
615
+ defaultMessage: 'Not a list of documents: each is text, or an object with parts.',
616
+ description: "The documents' JSON doesn't read as the inputs an embedding takes.",
617
+ },
618
+ '@theorem.embedding.no_documents': {
619
+ defaultMessage: 'Add text or files to search through.',
620
+ description: 'There are no documents yet.',
621
+ },
622
+ '@theorem.embedding.empty': {
623
+ defaultMessage: '{name} is empty.',
624
+ description: 'A document or the query has no text and no file.',
625
+ params: ['name'],
626
+ },
627
+ '@theorem.embedding.text_off': {
628
+ defaultMessage: '{name} has text, and this profile embeds files only.',
629
+ description: 'A document or the query has text the profile does not take.',
630
+ params: ['name'],
631
+ },
632
+ '@theorem.embedding.too_many': {
633
+ defaultMessage: 'One request takes at most {max} documents.',
634
+ description: "A request holds more inputs than the profile's model takes in one call.",
635
+ params: ['max'],
636
+ },
637
+ '@theorem.embedding.ready': {
638
+ defaultMessage: '{count, plural, one {# document} other {# documents}} in {requests, plural, one {# request} other {# requests}}',
639
+ description: 'The documents are ready: how many, and how many requests the profile’s limits make them.',
640
+ params: ['count', 'requests'],
641
+ },
642
+ '@theorem.embedding.index': {
643
+ defaultMessage: 'Index',
644
+ description: 'Embeds the documents so they can be searched.',
645
+ },
646
+ '@theorem.embedding.indexing': {
647
+ defaultMessage: 'Indexing…',
648
+ description: 'The index button while the documents are embedded.',
649
+ },
650
+ '@theorem.embedding.indexing_progress': {
651
+ defaultMessage: 'Indexing {done}/{total}…',
652
+ description: 'The pane while the documents are embedded: the request in flight, of all of them.',
653
+ params: ['done', 'total'],
654
+ },
655
+ '@theorem.embedding.stop': {
656
+ defaultMessage: 'Stop',
657
+ description: 'Cancels the running index or search.',
658
+ },
659
+ '@theorem.embedding.query': {
660
+ defaultMessage: 'Query',
661
+ description: 'What to search the documents for (card title).',
662
+ },
663
+ '@theorem.embedding.query_placeholder': {
664
+ defaultMessage: 'What to search for',
665
+ description: 'The empty query field.',
666
+ },
667
+ '@theorem.embedding.query_file': {
668
+ defaultMessage: 'Search with a file',
669
+ description: 'Adds a file to the query, such as an image to find documents like it.',
670
+ },
671
+ '@theorem.embedding.query_invalid_json': {
672
+ defaultMessage: 'Not a query: text, or an object with parts.',
673
+ description: "The query's JSON doesn't read as one embedding input.",
674
+ },
675
+ '@theorem.embedding.stale': {
676
+ defaultMessage: 'The documents changed. Index them again.',
677
+ description: 'The documents differ from the ones last embedded.',
678
+ },
679
+ '@theorem.embedding.remodelled': {
680
+ defaultMessage: 'The model changed. Index the documents again.',
681
+ description: 'The last query came from another model than the one the documents were embedded with.',
682
+ },
683
+ '@theorem.embedding.search': {
684
+ defaultMessage: 'Search',
685
+ description: 'Embeds the query and ranks the documents by it.',
686
+ },
687
+ '@theorem.embedding.searching': {
688
+ defaultMessage: 'Searching…',
689
+ description: 'The search button while the query is embedded.',
690
+ },
691
+ '@theorem.embedding.results': {
692
+ defaultMessage: 'Results',
693
+ description: 'The index and the matches (heading).',
694
+ },
695
+ '@theorem.embedding.indexed': {
696
+ defaultMessage: '{count, plural, one {# document} other {# documents}}',
697
+ description: 'How many documents the index holds, its card’s figure.',
698
+ params: ['count'],
699
+ },
700
+ '@theorem.embedding.view': {
701
+ defaultMessage: 'View',
702
+ description: 'Switches the index card between the space and the list of vectors.',
703
+ },
704
+ '@theorem.embedding.space': {
705
+ defaultMessage: 'Space',
706
+ description: 'The index drawn in three dimensions, alike documents together.',
707
+ },
708
+ '@theorem.embedding.list': {
709
+ defaultMessage: 'List',
710
+ description: 'The index as a list of documents and their vectors.',
711
+ },
712
+ '@theorem.embedding.space_label': {
713
+ defaultMessage: '{count, plural, one {# document} other {# documents}} drawn in three dimensions by where their vectors differ most: each document is joined to the one most like it when that pair is far more alike than the typical pair in this index, heavier the more alike, documents the lines connect share a colour, and three circles mark the planes of the axes.',
714
+ description: 'What the space shows, for screen readers.',
715
+ params: ['count'],
716
+ },
717
+ '@theorem.embedding.space_query': {
718
+ defaultMessage: 'The query lands among its matches, with a line to each match far more alike than its typical document.',
719
+ description: 'What the space shows after a search, for screen readers.',
720
+ },
721
+ '@theorem.embedding.space_off': {
722
+ defaultMessage: 'This browser can’t draw the space, so the vectors are listed.',
723
+ description: 'WebGL2 is unavailable, so the index card shows the list.',
724
+ },
725
+ '@theorem.embedding.copy_vector': {
726
+ defaultMessage: 'Copy vector',
727
+ description: "Copies one document's vector as JSON.",
728
+ },
729
+ '@theorem.embedding.copy_vectors': {
730
+ defaultMessage: 'Copy all',
731
+ description: 'Copies every vector in the index as JSON, in document order.',
732
+ },
733
+ '@theorem.embedding.copied': {
734
+ defaultMessage: 'Copied',
735
+ description: 'Right after copying a vector.',
736
+ },
737
+ '@theorem.embedding.width': {
738
+ defaultMessage: '{dimensions, plural, one {# dimension} other {# dimensions}}',
739
+ description: 'How wide a vector is, after its first values in the list.',
740
+ params: ['dimensions'],
741
+ },
742
+ '@theorem.embedding.matches': {
743
+ defaultMessage: 'Matches',
744
+ description: 'The documents most like the query, best first (card title).',
745
+ },
746
+ '@theorem.embedding.matches_shown': {
747
+ defaultMessage: 'Top {shown} of {count}',
748
+ description: 'The matches card lists the best documents only.',
749
+ params: ['shown', 'count'],
750
+ },
751
+ '@theorem.embedding.best': {
752
+ defaultMessage: 'Best: {name}',
753
+ description: 'The document most like the query, under the matches figure.',
754
+ params: ['name'],
755
+ },
756
+ '@theorem.embedding.no_matches': {
757
+ defaultMessage: 'No document has a vector as wide as the query’s.',
758
+ description: 'The query and the documents were embedded by models of different widths.',
759
+ },
760
+ '@theorem.embedding.tokens': {
761
+ defaultMessage: '{count, plural, one {# token} other {# tokens}}',
762
+ description: 'Input tokens a call used, in the line under the results.',
763
+ params: ['count'],
764
+ },
765
+ '@theorem.host.tool': {
766
+ defaultMessage: 'Tool',
767
+ description: 'Picks which of the host’s tools to call (field label).',
768
+ },
769
+ '@theorem.host.request': {
770
+ defaultMessage: 'Request',
771
+ description: 'The input a tool call sends (card heading).',
772
+ },
773
+ '@theorem.host.response': {
774
+ defaultMessage: 'Response',
775
+ description: 'What a tool call returned (section heading).',
776
+ },
777
+ '@theorem.host.run': { defaultMessage: 'Run', description: 'Calls the tool with the request.' },
778
+ '@theorem.host.image': {
779
+ defaultMessage: 'Image the tool returned',
780
+ description: 'Alt text for an image a tool returned beside its output.',
781
+ },
782
+ '@theorem.host.running': {
783
+ defaultMessage: 'Running…',
784
+ description: 'The run button while the call runs.',
785
+ },
786
+ '@theorem.host.stop': { defaultMessage: 'Stop', description: 'Cancels the running call.' },
787
+ '@theorem.host.missing': {
788
+ defaultMessage: 'Needs {fields}',
789
+ description: 'Required fields the request is still missing, under the form.',
790
+ params: ['fields'],
791
+ },
792
+ '@theorem.host.shortcut': {
793
+ defaultMessage: '⌘↵ to run',
794
+ description: 'The keyboard shortcut that runs the call, under the form.',
795
+ },
796
+ '@theorem.host.no_tools': {
797
+ defaultMessage: 'This host has no tools yet',
798
+ description: 'A host profile that allows no tools.',
799
+ },
800
+ '@theorem.host.earlier': {
801
+ defaultMessage: 'Earlier calls',
802
+ description: 'Heading over this page’s previous tool calls.',
803
+ },
804
+ '@theorem.host.kind.function': {
805
+ defaultMessage: 'Function',
806
+ description: 'A tool that runs a function on the host.',
807
+ },
808
+ '@theorem.host.kind.http': {
809
+ defaultMessage: 'HTTP',
810
+ description: 'A tool that calls an HTTP endpoint.',
811
+ },
812
+ '@theorem.host.kind.mcp': {
813
+ defaultMessage: 'MCP',
814
+ description: 'A tool served by an MCP server.',
815
+ },
816
+ '@theorem.tool.access.read-only': {
817
+ defaultMessage: 'Read only',
818
+ description: 'A tool that only reads.',
819
+ },
820
+ '@theorem.tool.access.read-write': {
821
+ defaultMessage: 'Read and write',
822
+ description: 'A tool that can change things.',
823
+ },
824
+ '@theorem.tool.access.destructive': {
825
+ defaultMessage: 'Destructive',
826
+ description: 'A tool that can delete or overwrite.',
827
+ },
828
+ '@theorem.host.status.running': {
829
+ defaultMessage: 'running',
830
+ description: 'A tool call in progress.',
831
+ },
832
+ '@theorem.host.status.gate': {
833
+ defaultMessage: 'waiting',
834
+ description: 'A tool call paused on approval or sign-in.',
835
+ },
836
+ '@theorem.host.status.complete': {
837
+ defaultMessage: 'done',
838
+ description: 'A tool call that returned.',
839
+ },
840
+ '@theorem.host.status.error': {
841
+ defaultMessage: 'failed',
842
+ description: 'A tool call that failed.',
843
+ },
844
+ '@theorem.host.status.cancel': {
845
+ defaultMessage: 'stopped',
846
+ description: 'A tool call that was cancelled.',
847
+ },
848
+ '@theorem.host.finished': {
849
+ defaultMessage: '{activity} in {duration}',
850
+ description: 'A finished tool call: what it did, and how long it took.',
851
+ params: ['activity', 'duration'],
852
+ },
853
+ '@theorem.panel.trace.name': {
854
+ defaultMessage: 'Trace',
855
+ description: 'Trace side panel (screen readers).',
856
+ },
857
+ '@theorem.panel.trace.show': {
858
+ defaultMessage: 'Show trace',
859
+ description: 'Trace panel toggle, closed.',
860
+ },
861
+ '@theorem.panel.trace.hide': {
862
+ defaultMessage: 'Hide trace',
863
+ description: 'Trace panel toggle, open.',
864
+ },
865
+ '@theorem.panel.trace.resize': {
866
+ defaultMessage: 'Resize trace',
867
+ description: 'Trace panel drag handle.',
868
+ },
869
+ '@theorem.panel.resize': {
870
+ defaultMessage: 'Resize {name}',
871
+ description: 'Drag handle for a named console panel.',
872
+ params: ['name'],
873
+ },
874
+ '@theorem.panel.trace.empty.title': {
875
+ defaultMessage: 'No trace yet',
876
+ description: 'Empty trace panel.',
877
+ },
878
+ '@theorem.panel.trace.empty.description': {
879
+ defaultMessage: 'Spans for each run will show here.',
880
+ description: 'Empty trace panel.',
881
+ },
882
+ '@theorem.panel.trace.summary': {
883
+ defaultMessage: '{traces, plural, one {# trace} other {# traces}} · {spans, plural, one {# span} other {# spans}}',
884
+ description: 'Trace panel line under the search: how many traces and spans it holds.',
885
+ params: ['traces', 'spans'],
886
+ },
887
+ '@theorem.panel.trace.separator': {
888
+ defaultMessage: ' · ',
889
+ description: 'Between facts on one trace panel line.',
890
+ },
891
+ '@theorem.panel.trace.search': {
892
+ defaultMessage: 'Search spans',
893
+ description: 'Trace panel search (screen readers).',
894
+ },
895
+ '@theorem.panel.trace.search.placeholder': {
896
+ defaultMessage: 'Filter by type, status, model, text…',
897
+ description: 'Trace panel search, empty.',
898
+ },
899
+ '@theorem.panel.trace.search.text': {
900
+ defaultMessage: 'Any text',
901
+ description: 'Search field matching any text a span holds.',
902
+ },
903
+ '@theorem.panel.trace.search.text.description': {
904
+ defaultMessage: 'Names, values, and stored text.',
905
+ description: 'What the any-text search field matches.',
906
+ },
907
+ '@theorem.panel.trace.no_match': {
908
+ defaultMessage: 'No spans match',
909
+ description: 'Trace panel, when the search matches nothing.',
910
+ },
911
+ '@theorem.panel.trace.back': {
912
+ defaultMessage: 'Back',
913
+ description: 'Leaves an open span for its turn.',
914
+ },
915
+ '@theorem.panel.trace.show_text': {
916
+ defaultMessage: 'Show text',
917
+ description: 'Reveals stored text, JSON, or messages.',
918
+ },
919
+ '@theorem.panel.trace.hide_text': {
920
+ defaultMessage: 'Hide text',
921
+ description: 'Hides revealed stored text.',
922
+ },
923
+ '@theorem.panel.trace.other': {
924
+ defaultMessage: 'Other',
925
+ description: 'Group for attributes the trace catalog does not name.',
926
+ },
927
+ '@theorem.panel.trace.yes': { defaultMessage: 'Yes', description: 'A true trace value.' },
928
+ '@theorem.panel.trace.no': { defaultMessage: 'No', description: 'A false trace value.' },
929
+ '@theorem.panel.trace.tokens': { defaultMessage: 'Tokens', description: 'Card of token counts.' },
930
+ '@theorem.panel.trace.errors': {
931
+ defaultMessage: 'Errors',
932
+ description: 'Card counting failed spans.',
933
+ },
934
+ '@theorem.panel.trace.at_least': {
935
+ defaultMessage: 'At least {value}',
936
+ description: 'A total some calls did not report.',
937
+ params: ['value'],
938
+ },
939
+ '@theorem.panel.trace.about': {
940
+ defaultMessage: 'About {value}',
941
+ description: 'A total with estimated counts.',
942
+ params: ['value'],
943
+ },
944
+ '@theorem.panel.trace.offset': {
945
+ defaultMessage: '+{duration}',
946
+ description: 'When an event happened, after its span started.',
947
+ params: ['duration'],
948
+ },
949
+ '@theorem.panel.trace.unit.milliseconds': {
950
+ defaultMessage: 'ms',
951
+ description: 'Unit of a search field in milliseconds.',
952
+ },
953
+ '@theorem.panel.trace.unit.seconds': {
954
+ defaultMessage: 's',
955
+ description: 'Unit of a search field in seconds.',
956
+ },
957
+ '@theorem.panel.trace.unit.usd': {
958
+ defaultMessage: 'USD',
959
+ description: 'Unit of a search field in US dollars.',
960
+ },
961
+ '@theorem.panel.trace.turn': {
962
+ defaultMessage: '{label} {index} of {count}',
963
+ description: 'Which root of the trace is shown: "Turn 2 of 3".',
964
+ params: ['label', 'index', 'count'],
965
+ },
966
+ '@theorem.panel.trace.turns': {
967
+ defaultMessage: 'Turns',
968
+ description: 'List of every turn of the conversation; a row opens its turn.',
969
+ },
970
+ '@theorem.panel.trace.conversation': {
971
+ defaultMessage: '{count, plural, one {# turn} other {# turns}}',
972
+ description: 'Heading of the whole-conversation view: how many turns it holds.',
973
+ params: ['count'],
974
+ },
975
+ '@theorem.panel.trace.conversation.back': {
976
+ defaultMessage: 'All turns',
977
+ description: 'Leaves a turn for the whole-conversation view.',
978
+ },
979
+ '@theorem.panel.trace.previous': {
980
+ defaultMessage: 'Previous turn',
981
+ description: 'Opens the turn before this one.',
982
+ },
983
+ '@theorem.panel.trace.next': {
984
+ defaultMessage: 'Next turn',
985
+ description: 'Opens the turn after this one.',
986
+ },
987
+ '@theorem.panel.trace.calls': {
988
+ defaultMessage: 'Tool calls',
989
+ description: "List of every call of a host's trace; a row opens its call.",
990
+ },
991
+ '@theorem.panel.trace.calls.count': {
992
+ defaultMessage: '{count, plural, one {# tool call} other {# tool calls}}',
993
+ description: "Heading of a host's whole-trace view: how many tool calls it holds.",
994
+ params: ['count'],
995
+ },
996
+ '@theorem.panel.trace.calls.back': {
997
+ defaultMessage: 'All tool calls',
998
+ description: "Leaves a call for the host's whole-trace view.",
999
+ },
1000
+ '@theorem.panel.trace.calls.previous': {
1001
+ defaultMessage: 'Previous call',
1002
+ description: 'Opens the tool call before this one.',
1003
+ },
1004
+ '@theorem.panel.trace.calls.next': {
1005
+ defaultMessage: 'Next call',
1006
+ description: 'Opens the tool call after this one.',
1007
+ },
1008
+ '@theorem.panel.trace.steps': {
1009
+ defaultMessage: 'Steps',
1010
+ description: 'Card counting the model and tool calls of a turn.',
1011
+ },
1012
+ '@theorem.panel.trace.steps.detail': {
1013
+ defaultMessage: '{calls, plural, one {# model call} other {# model calls}} · {tools, plural, one {# tool} other {# tools}}',
1014
+ description: 'Under the steps count: how many were model calls and tool calls.',
1015
+ params: ['calls', 'tools'],
1016
+ },
1017
+ '@theorem.panel.trace.failed': {
1018
+ defaultMessage: '{count} failed',
1019
+ description: 'Under the steps count, when some failed.',
1020
+ params: ['count'],
1021
+ },
1022
+ '@theorem.panel.trace.firstText': {
1023
+ defaultMessage: 'First text',
1024
+ description: 'Card: how long the person waited before any of the answer appeared.',
1025
+ },
1026
+ '@theorem.panel.trace.rate': {
1027
+ defaultMessage: '{rate} tokens/s',
1028
+ description: 'Under the first-text time: how fast the model wrote once it started.',
1029
+ params: ['rate'],
1030
+ },
1031
+ '@theorem.panel.trace.held': {
1032
+ defaultMessage: '{duration} held back',
1033
+ description: 'Under the first-text time: how long guardrails held written text back before showing it.',
1034
+ params: ['duration'],
1035
+ },
1036
+ '@theorem.panel.trace.guardrails': {
1037
+ defaultMessage: 'Guardrails',
1038
+ description: 'Card: the time guardrail checks took in a turn.',
1039
+ },
1040
+ '@theorem.panel.trace.guardrails.passed': {
1041
+ defaultMessage: 'Passed: {checks}',
1042
+ description: 'Under the guardrail checks that acted: the checks that let the text through, each with what it checked and its time.',
1043
+ params: ['checks'],
1044
+ },
1045
+ '@theorem.panel.trace.guardrails.from': {
1046
+ defaultMessage: 'from {tool}',
1047
+ description: 'A guardrail check: the tool the checked text came from.',
1048
+ params: ['tool'],
1049
+ },
1050
+ '@theorem.panel.trace.guardrails.tainted': {
1051
+ defaultMessage: 'Tainted',
1052
+ description: 'A guardrail check: a tool that writes or deletes was called after the turn read remote content.',
1053
+ },
1054
+ '@theorem.panel.trace.guardrails.steered': {
1055
+ defaultMessage: 'Steered',
1056
+ description: 'A guardrail check: a tool that writes or deletes was called after the turn read remote content that looked like instructions.',
1057
+ },
1058
+ '@theorem.panel.trace.guardrails.detail': {
1059
+ defaultMessage: '{checks, plural, one {# check} other {# checks}} · {flagged, plural, =0 {all passed} other {# acted}}',
1060
+ description: 'Under the guardrail time: how many checks ran, and how many redacted, flagged, or blocked.',
1061
+ params: ['checks', 'flagged'],
1062
+ },
1063
+ '@theorem.panel.trace.tokens.detail': {
1064
+ defaultMessage: '{input} in · {output} out',
1065
+ description: 'Under the token total: tokens read and written.',
1066
+ params: ['input', 'output'],
1067
+ },
1068
+ '@theorem.panel.trace.time': {
1069
+ defaultMessage: 'Where the time went',
1070
+ description: 'Bar splitting a turn into model, tool, and other time.',
1071
+ },
1072
+ '@theorem.panel.trace.time.model': {
1073
+ defaultMessage: 'Model',
1074
+ description: 'Time spent waiting on the model.',
1075
+ },
1076
+ '@theorem.panel.trace.time.tools': {
1077
+ defaultMessage: 'Tools',
1078
+ description: 'Time spent running tools.',
1079
+ },
1080
+ '@theorem.panel.trace.time.guardrails': {
1081
+ defaultMessage: 'Guardrails',
1082
+ description: 'Time guardrail checks took: on the input, the stream, and the answer.',
1083
+ },
1084
+ '@theorem.panel.trace.time.hooks': {
1085
+ defaultMessage: 'Hooks',
1086
+ description: "Time the host's turn hooks took.",
1087
+ },
1088
+ '@theorem.panel.trace.time.other': {
1089
+ defaultMessage: 'Other',
1090
+ description: 'Time spent on none of these: waiting between steps, the host, the network.',
1091
+ },
1092
+ '@theorem.panel.trace.charts.calls': {
1093
+ defaultMessage: 'Tokens per model call',
1094
+ description: 'Chart of each model call: its tokens stacked as a bar.',
1095
+ },
1096
+ '@theorem.panel.trace.charts.cached': {
1097
+ defaultMessage: 'Cached',
1098
+ description: 'Legend: input tokens read from cache.',
1099
+ },
1100
+ '@theorem.panel.trace.charts.input': {
1101
+ defaultMessage: 'Input',
1102
+ description: 'Legend: input tokens read fresh.',
1103
+ },
1104
+ '@theorem.panel.trace.charts.output': {
1105
+ defaultMessage: 'Output',
1106
+ description: 'Legend: tokens the model wrote.',
1107
+ },
1108
+ '@theorem.panel.trace.charts.slowest': {
1109
+ defaultMessage: 'Slowest steps',
1110
+ description: 'Chart ranking the steps that took longest.',
1111
+ },
1112
+ '@theorem.panel.trace.charts.modelShare': {
1113
+ defaultMessage: '{share} on the model',
1114
+ description: "Beside a chart's total time: the model's share.",
1115
+ params: ['share'],
1116
+ },
1117
+ '@theorem.panel.trace.charts.cachedShare': {
1118
+ defaultMessage: '{share} of input cached',
1119
+ description: "Beside a chart's total tokens: the input read from cache.",
1120
+ params: ['share'],
1121
+ },
1122
+ '@theorem.panel.trace.charts.turnTime': {
1123
+ defaultMessage: 'Time per turn',
1124
+ description: 'Chart of each turn: its model, tool, and other time stacked.',
1125
+ },
1126
+ '@theorem.panel.trace.charts.callTime': {
1127
+ defaultMessage: 'Time per call',
1128
+ description: "Chart of each tool call of a host's trace: its tool, check, and hook time stacked.",
1129
+ },
1130
+ '@theorem.panel.trace.charts.turnTokens': {
1131
+ defaultMessage: 'Tokens per turn',
1132
+ description: 'Chart of each turn: its tokens stacked as a bar.',
1133
+ },
1134
+ '@theorem.panel.trace.charts.turn': {
1135
+ defaultMessage: 'Turn {index}',
1136
+ description: 'A turn, by its order in the conversation.',
1137
+ params: ['index'],
1138
+ },
1139
+ '@theorem.panel.trace.charts.hostCall': {
1140
+ defaultMessage: 'Call {index}',
1141
+ description: "A tool call, by its order in a host's trace.",
1142
+ params: ['index'],
1143
+ },
1144
+ '@theorem.panel.trace.charts.call': {
1145
+ defaultMessage: 'Model call {index}',
1146
+ description: 'A model call, by its order in the turn.',
1147
+ params: ['index'],
1148
+ },
1149
+ '@theorem.panel.trace.charts.tokens': {
1150
+ defaultMessage: '{cached} cached · {fresh} new in · {output} out',
1151
+ description: "A model call's tokens: read from cache, read fresh, and written.",
1152
+ params: ['cached', 'fresh', 'output'],
1153
+ },
1154
+ '@theorem.panel.trace.story': {
1155
+ defaultMessage: 'What happened',
1156
+ description: 'The turn told step by step.',
1157
+ },
1158
+ '@theorem.panel.trace.story.asked': {
1159
+ defaultMessage: 'User asked',
1160
+ description: 'The first step: what the user sent.',
1161
+ },
1162
+ '@theorem.panel.trace.story.requested': {
1163
+ defaultMessage: 'Asked for {count, plural, one {# tool} other {# tools}}',
1164
+ description: 'A model call that answered with tool calls.',
1165
+ params: ['count'],
1166
+ },
1167
+ '@theorem.panel.trace.story.wrote': {
1168
+ defaultMessage: 'Wrote a reply',
1169
+ description: 'A model call that answered with text.',
1170
+ },
1171
+ '@theorem.panel.trace.story.answered': {
1172
+ defaultMessage: 'Answered',
1173
+ description: 'The last step: the turn ended with this answer.',
1174
+ },
1175
+ '@theorem.panel.trace.story.failed': {
1176
+ defaultMessage: 'Ended with an error',
1177
+ description: 'The last step, when the turn failed.',
1178
+ },
1179
+ '@theorem.panel.trace.timeline': {
1180
+ defaultMessage: 'Timeline',
1181
+ description: 'Every span of the turn on one time axis.',
1182
+ },
1183
+ '@theorem.panel.trace.timeline.zoom': {
1184
+ defaultMessage: 'Drag across the strip to zoom',
1185
+ description: 'Hint beside the activity strip that zooms the timeline.',
1186
+ },
1187
+ '@theorem.panel.trace.timeline.reset': {
1188
+ defaultMessage: 'Show the whole turn',
1189
+ description: 'Zooms the timeline back out to the full turn.',
1190
+ },
1191
+ '@theorem.panel.trace.input': { defaultMessage: 'Input', description: 'What a span was given.' },
1192
+ '@theorem.panel.trace.output': {
1193
+ defaultMessage: 'Output',
1194
+ description: 'What a span gave back.',
1195
+ },
1196
+ '@theorem.panel.trace.details': {
1197
+ defaultMessage: 'All details',
1198
+ description: "A span's every attribute, event, and link.",
1199
+ },
1200
+ '@theorem.panel.trace.close': { defaultMessage: 'Close', description: 'Closes the open span.' },
1201
+ '@theorem.panel.captions.name': {
1202
+ defaultMessage: 'Captions',
1203
+ description: 'Captions side panel (screen readers).',
1204
+ },
1205
+ '@theorem.panel.captions.show': {
1206
+ defaultMessage: 'Show captions',
1207
+ description: 'Captions panel toggle, closed.',
1208
+ },
1209
+ '@theorem.panel.captions.hide': {
1210
+ defaultMessage: 'Hide captions',
1211
+ description: 'Captions panel toggle, open.',
1212
+ },
1213
+ '@theorem.panel.captions.resize': {
1214
+ defaultMessage: 'Resize captions',
1215
+ description: 'Captions panel drag handle.',
1216
+ },
1217
+ '@theorem.panel.captions.empty.title': {
1218
+ defaultMessage: 'No captions yet',
1219
+ description: 'Empty captions panel.',
1220
+ },
1221
+ '@theorem.panel.captions.empty.description': {
1222
+ defaultMessage: 'What you and the agent say will show here.',
1223
+ description: 'Empty captions panel.',
1224
+ },
1225
+ '@theorem.live.greeting': {
1226
+ defaultMessage: 'Ready when you are.',
1227
+ description: 'Live landing heading, before a call.',
1228
+ },
1229
+ '@theorem.live.start_voice_call': {
1230
+ defaultMessage: 'Start voice call',
1231
+ description: 'Live landing, voice profiles.',
1232
+ },
1233
+ '@theorem.live.start_call': {
1234
+ defaultMessage: 'Start call',
1235
+ description: 'Starts or restarts a call.',
1236
+ },
1237
+ '@theorem.live.start_video_call': {
1238
+ defaultMessage: 'Start video call',
1239
+ description: 'Live landing, video profiles.',
1240
+ },
1241
+ '@theorem.live.microphone': { defaultMessage: 'Microphone', description: 'Mic toggle.' },
1242
+ '@theorem.live.mute': { defaultMessage: 'Mute', description: 'Mic toggle tooltip, unmuted.' },
1243
+ '@theorem.live.unmute': { defaultMessage: 'Unmute', description: 'Mic toggle tooltip, muted.' },
1244
+ '@theorem.live.camera': { defaultMessage: 'Camera', description: 'Camera toggle.' },
1245
+ '@theorem.live.camera_on': {
1246
+ defaultMessage: 'Turn camera on',
1247
+ description: 'Camera toggle tooltip, off.',
1248
+ },
1249
+ '@theorem.live.camera_off': {
1250
+ defaultMessage: 'Turn camera off',
1251
+ description: 'Camera toggle tooltip, on.',
1252
+ },
1253
+ '@theorem.live.flip_camera': {
1254
+ defaultMessage: 'Flip camera',
1255
+ description: 'Switches front and back camera.',
1256
+ },
1257
+ '@theorem.live.end_call': { defaultMessage: 'End call', description: 'Hangs up.' },
1258
+ '@theorem.live.new_session': {
1259
+ defaultMessage: 'New session',
1260
+ description: 'Captions divider between calls.',
1261
+ },
1262
+ '@theorem.live.controls': {
1263
+ defaultMessage: 'Call controls',
1264
+ description: 'The control toolbar (screen readers).',
1265
+ },
1266
+ '@theorem.live.camera_preview': {
1267
+ defaultMessage: 'Camera preview',
1268
+ description: 'Self-view (screen readers).',
1269
+ },
1270
+ '@theorem.live.state.calling_tool': {
1271
+ defaultMessage: 'calling {tool}',
1272
+ description: 'Call status: a tool runs.',
1273
+ params: ['tool'],
1274
+ },
1275
+ '@theorem.live.state.connecting': { defaultMessage: 'connecting', description: 'Call status.' },
1276
+ '@theorem.live.state.reconnecting': {
1277
+ defaultMessage: 'reconnecting',
1278
+ description: 'Call status: the call dropped and is being taken up again.',
1279
+ },
1280
+ '@theorem.live.state.requesting_mic': {
1281
+ defaultMessage: 'requesting mic',
1282
+ description: 'Call status.',
1283
+ },
1284
+ '@theorem.live.state.speaking': {
1285
+ defaultMessage: 'speaking',
1286
+ description: 'Call status: the agent speaks.',
1287
+ },
1288
+ '@theorem.live.state.connected': { defaultMessage: 'connected', description: 'Call status.' },
1289
+ '@theorem.live.state.muted': { defaultMessage: 'muted', description: 'Call status.' },
1290
+ '@theorem.live.state.listening': { defaultMessage: 'listening', description: 'Call status.' },
1291
+ '@theorem.live.state.error': { defaultMessage: 'error', description: 'Call status.' },
1292
+ '@theorem.live.state.ended': { defaultMessage: 'ended', description: 'Call status.' },
1293
+ };
1294
+ /** A single kind is just its word ("queued"); a mix spells out each count ("2 queued · 1 attached"). */
1295
+ export function composerDrawerLabel(t, summary) {
1296
+ const [only] = summary.parts;
1297
+ if (summary.parts.length === 1 && only)
1298
+ return t(`@theorem.composer.drawer.${only.kind}`);
1299
+ return summary.parts
1300
+ .map((part) => t(`@theorem.composer.drawer.${part.kind}.count`, { n: part.n }))
1301
+ .join(t('@theorem.composer.drawer.separator'));
1302
+ }
1303
+ /** What a reply or a called agent used: its tokens, then its cost when the provider gave one. */
1304
+ export function usageLine(t, locale, tokens) {
1305
+ const count = t('@theorem.transcript.tokens', { count: tokens.total });
1306
+ if (!tokens.cost)
1307
+ return count;
1308
+ const usd = new Intl.NumberFormat(locale, {
1309
+ style: 'currency',
1310
+ currency: 'USD',
1311
+ maximumSignificantDigits: 2,
1312
+ });
1313
+ const cost = usd.format(tokens.cost.usd);
1314
+ // why: A partial cost covers only the calls that reported one.
1315
+ return `${count} · ${tokens.cost.partial ? t('@theorem.panel.trace.at_least', { value: cost }) : cost}`;
1316
+ }
1317
+ /** Wall-clock duration, matching Seance's builder-trace formatter: "<0.1ms", "0.4ms", "850ms", "3.2s", "12s", "1m 5s". */
1318
+ export function workDuration(t, durationMs) {
1319
+ const ms = Math.max(0, durationMs);
1320
+ // why: A guardrail check can take a fraction of a millisecond; one decimal keeps it from reading as nothing.
1321
+ if (ms > 0 && ms < 0.05)
1322
+ return t('@theorem.duration.belowTenth');
1323
+ if (ms < 10)
1324
+ return t('@theorem.duration.milliseconds', { ms: Math.round(ms * 10) / 10 });
1325
+ if (ms < 1_000)
1326
+ return t('@theorem.duration.milliseconds', { ms: Math.round(ms) });
1327
+ if (ms < 10_000)
1328
+ return t('@theorem.duration.seconds', { seconds: Math.round(ms / 100) / 10 });
1329
+ if (ms < 60_000)
1330
+ return t('@theorem.duration.seconds', { seconds: Math.round(ms / 1_000) });
1331
+ return minutesAndSeconds(t, Math.floor(ms / 60_000), Math.round((ms % 60_000) / 1_000));
1332
+ }
1333
+ /** A console result's quiet line: model, time, tokens, and cost, leaving out what it lacks. */
1334
+ export function resultMeta(t, usd, result) {
1335
+ const { usage, elapsedMs } = result;
1336
+ return [
1337
+ result.model,
1338
+ elapsedMs == null ? null : workDuration(t, elapsedMs),
1339
+ usage?.inputTokens === undefined ? null : result.tokens(usage.inputTokens),
1340
+ usage?.costUsd === undefined ? null : usd.format(usage.costUsd),
1341
+ ]
1342
+ .filter(Boolean)
1343
+ .join(' · ');
1344
+ }
1345
+ /** Whole-second ticker while a turn runs: "0s", "12s", "1m 5s". */
1346
+ export function liveDuration(t, durationMs) {
1347
+ const total = Math.floor(Math.max(0, durationMs) / 1_000);
1348
+ if (total < 60)
1349
+ return t('@theorem.duration.seconds', { seconds: total });
1350
+ return minutesAndSeconds(t, Math.floor(total / 60), total % 60);
1351
+ }
1352
+ function minutesAndSeconds(t, minutes, seconds) {
1353
+ if (seconds === 0)
1354
+ return t('@theorem.duration.minutes', { minutes });
1355
+ return t('@theorem.duration.minutes_seconds', { minutes, seconds });
1356
+ }
1357
+ /** "Working for 12s" while streaming (when the start is known), "Worked for 3.2s" after. */
1358
+ export function workStatusLabel(t, status) {
1359
+ if (!status)
1360
+ return '';
1361
+ if (status.phase === 'working') {
1362
+ return status.elapsedMs === undefined
1363
+ ? t('@theorem.transcript.working')
1364
+ : t('@theorem.transcript.working_for', { duration: liveDuration(t, status.elapsedMs) });
1365
+ }
1366
+ return status.elapsedMs === undefined
1367
+ ? t('@theorem.transcript.worked')
1368
+ : t('@theorem.transcript.worked_for', { duration: workDuration(t, status.elapsedMs) });
1369
+ }
1370
+ /** A live call's status line; `calling_tool` names the tool. */
1371
+ export function liveStateLabel(t, state, toolName) {
1372
+ if (state === 'calling_tool')
1373
+ return t('@theorem.live.state.calling_tool', { tool: toolName ?? '' });
1374
+ return t(`@theorem.live.state.${state}`);
1375
+ }
1376
+ /** A voice note's name from its audio format; the unnamed line when the format is unknown. */
1377
+ export function voiceNoteName(t, format) {
1378
+ return format ? t('@theorem.voice_note.name', { format }) : t('@theorem.voice_note.unnamed');
1379
+ }
1380
+ const CATALOG_KEYS = new Set(Object.keys(THEOREM_UI_CATALOG));
1381
+ function catalogParams(key) {
1382
+ const entry = THEOREM_UI_CATALOG[key];
1383
+ return entry?.params ?? [];
1384
+ }
1385
+ /**
1386
+ * Checks a label table before it renders: every `@theorem.*` key must exist
1387
+ * and its message must format with that key's values only; with `strict`
1388
+ * (the `labels` prop), every other key must be an `@astryx.*` line whose
1389
+ * message parses. A host's own Astryx overrides are checked for `@theorem.*`
1390
+ * keys only, since the rest may be the host app's own strings. Throws, naming
1391
+ * the locale and key, so a typo fails at mount instead of showing a raw key or
1392
+ * crashing mid-render.
1393
+ */
1394
+ export function assertLabelOverrides(labels, strict) {
1395
+ for (const [locale, table] of Object.entries(labels)) {
1396
+ if (!isLocale(locale))
1397
+ throw new Error(`Theorem labels: ${locale}: not a BCP 47 locale`); // labels-exempt: builder contract error
1398
+ for (const [key, message] of Object.entries(table ?? {})) {
1399
+ if (!strict && !key.startsWith('@theorem.'))
1400
+ continue;
1401
+ const problem = labelProblem(locale, key, message);
1402
+ if (problem)
1403
+ throw new Error(`Theorem labels: ${locale} ${key}: ${problem}`); // labels-exempt: builder contract error
1404
+ }
1405
+ }
1406
+ }
1407
+ function isLocale(locale) {
1408
+ try {
1409
+ return Intl.getCanonicalLocales(locale).length === 1;
1410
+ }
1411
+ catch {
1412
+ return false;
1413
+ }
1414
+ }
1415
+ function labelProblem(locale, key, message) {
1416
+ if (typeof message !== 'string')
1417
+ return 'the message must be a string';
1418
+ const theorem = key.startsWith('@theorem.');
1419
+ if (!theorem && !key.startsWith('@astryx.'))
1420
+ return 'keys start with @theorem. or @astryx.';
1421
+ if (theorem && !CATALOG_KEYS.has(key))
1422
+ return 'no such label';
1423
+ let format;
1424
+ try {
1425
+ format = new IntlMessageFormat(message, locale);
1426
+ }
1427
+ catch (error) {
1428
+ return `not a valid ICU message (${String(error)})`;
1429
+ }
1430
+ if (!theorem)
1431
+ return undefined;
1432
+ const params = catalogParams(key);
1433
+ try {
1434
+ format.format(Object.fromEntries(params.map((name) => [name, 1])));
1435
+ }
1436
+ catch (error) {
1437
+ const allowed = params.length > 0
1438
+ ? `may only use ${params.map((name) => `{${name}}`).join(', ')}`
1439
+ : 'takes no values';
1440
+ return `the message ${allowed} (${String(error)})`;
1441
+ }
1442
+ return undefined;
1443
+ }