@sixb/app 0.1.14 → 0.1.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 (167) hide show
  1. package/dist/agent/agent-chat.d.ts +8 -1
  2. package/dist/agent/agent-chat.d.ts.map +1 -1
  3. package/dist/agent/agent-panel.d.ts +8 -1
  4. package/dist/agent/agent-panel.d.ts.map +1 -1
  5. package/dist/agent/agent-surface.d.ts +8 -1
  6. package/dist/agent/agent-surface.d.ts.map +1 -1
  7. package/dist/agent/approvals.d.ts +1 -4
  8. package/dist/agent/approvals.d.ts.map +1 -1
  9. package/dist/agent/artifact-panel.d.ts +21 -2
  10. package/dist/agent/artifact-panel.d.ts.map +1 -1
  11. package/dist/agent/components/activity-status.d.ts +1 -1
  12. package/dist/agent/components/activity-status.d.ts.map +1 -1
  13. package/dist/agent/components/agent-threads.d.ts +15 -0
  14. package/dist/agent/components/agent-threads.d.ts.map +1 -0
  15. package/dist/agent/components/approval-card.d.ts +4 -4
  16. package/dist/agent/components/approval-card.d.ts.map +1 -1
  17. package/dist/agent/components/approval-mode-chip.d.ts +4 -6
  18. package/dist/agent/components/approval-mode-chip.d.ts.map +1 -1
  19. package/dist/agent/components/auto-model-chip.d.ts +2 -3
  20. package/dist/agent/components/auto-model-chip.d.ts.map +1 -1
  21. package/dist/agent/components/composer-menu.d.ts +42 -0
  22. package/dist/agent/components/composer-menu.d.ts.map +1 -0
  23. package/dist/agent/components/composer.d.ts +8 -5
  24. package/dist/agent/components/composer.d.ts.map +1 -1
  25. package/dist/agent/components/conversation-panel.d.ts +3 -12
  26. package/dist/agent/components/conversation-panel.d.ts.map +1 -1
  27. package/dist/agent/components/dictation-bar.d.ts +13 -0
  28. package/dist/agent/components/dictation-bar.d.ts.map +1 -0
  29. package/dist/agent/components/message-parts.d.ts.map +1 -1
  30. package/dist/agent/components/message-view.d.ts +3 -1
  31. package/dist/agent/components/message-view.d.ts.map +1 -1
  32. package/dist/agent/components/model-controls.d.ts +15 -0
  33. package/dist/agent/components/model-controls.d.ts.map +1 -1
  34. package/dist/agent/components/model-picker-row.d.ts +9 -2
  35. package/dist/agent/components/model-picker-row.d.ts.map +1 -1
  36. package/dist/agent/components/participant-input.d.ts +7 -6
  37. package/dist/agent/components/participant-input.d.ts.map +1 -1
  38. package/dist/agent/components/thread-people.d.ts +4 -4
  39. package/dist/agent/components/thread-people.d.ts.map +1 -1
  40. package/dist/agent/components/threads-button.d.ts +14 -0
  41. package/dist/agent/components/threads-button.d.ts.map +1 -0
  42. package/dist/agent/conversation.d.ts +3 -1
  43. package/dist/agent/conversation.d.ts.map +1 -1
  44. package/dist/agent/delegation/child-card.d.ts +24 -11
  45. package/dist/agent/delegation/child-card.d.ts.map +1 -1
  46. package/dist/agent/delegation/child-cards.d.ts +2 -2
  47. package/dist/agent/delegation/child-cards.d.ts.map +1 -1
  48. package/dist/agent/delegation/child-group.d.ts +5 -4
  49. package/dist/agent/delegation/child-group.d.ts.map +1 -1
  50. package/dist/agent/delegation/child-parts.d.ts +17 -18
  51. package/dist/agent/delegation/child-parts.d.ts.map +1 -1
  52. package/dist/agent/delegation/child-work.d.ts +0 -13
  53. package/dist/agent/delegation/child-work.d.ts.map +1 -1
  54. package/dist/agent/delegation/interpret.d.ts +0 -5
  55. package/dist/agent/delegation/interpret.d.ts.map +1 -1
  56. package/dist/agent/delegation/model.d.ts +12 -6
  57. package/dist/agent/delegation/model.d.ts.map +1 -1
  58. package/dist/agent/dictation.d.ts +16 -0
  59. package/dist/agent/dictation.d.ts.map +1 -0
  60. package/dist/agent/hooks/use-agent-conversation.d.ts +3 -270
  61. package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
  62. package/dist/agent/hooks/use-people-suggestions.d.ts +21 -0
  63. package/dist/agent/hooks/use-people-suggestions.d.ts.map +1 -0
  64. package/dist/agent/hooks/use-thread-lists.d.ts +220 -0
  65. package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -0
  66. package/dist/agent/i18n/en.d.ts +47 -36
  67. package/dist/agent/i18n/en.d.ts.map +1 -1
  68. package/dist/agent/i18n/fr.d.ts.map +1 -1
  69. package/dist/agent/i18n/index.d.ts +84 -72
  70. package/dist/agent/i18n/index.d.ts.map +1 -1
  71. package/dist/agent/react-router.d.ts +9 -0
  72. package/dist/agent/react-router.d.ts.map +1 -1
  73. package/dist/agent/run-presentation.d.ts +4 -1
  74. package/dist/agent/run-presentation.d.ts.map +1 -1
  75. package/dist/agent/thread-navigation.d.ts +8 -0
  76. package/dist/agent/thread-navigation.d.ts.map +1 -1
  77. package/dist/agent/thread-pages.d.ts +11 -0
  78. package/dist/agent/thread-pages.d.ts.map +1 -0
  79. package/dist/artifacts/person-avatar.d.ts +2 -2
  80. package/dist/{chunk-aes17xmx.js → chunk-12v6y89k.js} +4180 -3793
  81. package/dist/{chunk-aes17xmx.js.map → chunk-12v6y89k.js.map} +48 -42
  82. package/dist/{chunk-0yb22w6m.js → chunk-2a69ge8h.js} +1 -1
  83. package/dist/{chunk-vtp6nk44.js → chunk-bpj9mg5c.js} +1 -1
  84. package/dist/{chunk-1rhht9y0.js → chunk-hzy2g13h.js} +1 -1
  85. package/dist/createCustomApp.d.ts.map +1 -1
  86. package/dist/index.d.ts +2 -1
  87. package/dist/index.d.ts.map +1 -1
  88. package/dist/index.js +19 -6
  89. package/dist/index.js.map +6 -6
  90. package/dist/pages/home.d.ts.map +1 -1
  91. package/dist/pages/observability/ai-usage/calls.d.ts.map +1 -1
  92. package/dist/pages/settings/memory-history.d.ts.map +1 -1
  93. package/dist/pages/settings/messages.d.ts.map +1 -1
  94. package/dist/pages/values.d.ts +5 -0
  95. package/dist/pages/values.d.ts.map +1 -1
  96. package/dist/pages.d.ts +1 -1
  97. package/dist/pages.d.ts.map +1 -1
  98. package/dist/pages.js +60 -44
  99. package/dist/pages.js.map +8 -8
  100. package/dist/server.js +12 -6
  101. package/dist/server.js.map +3 -3
  102. package/dist/shell/agent-dock.d.ts.map +1 -1
  103. package/package.json +4 -4
  104. package/src/agent/agent-chat.tsx +15 -23
  105. package/src/agent/agent-panel.tsx +11 -0
  106. package/src/agent/agent-surface.tsx +11 -0
  107. package/src/agent/agent.css +33 -3
  108. package/src/agent/approvals.ts +4 -5
  109. package/src/agent/artifact-panel.tsx +113 -37
  110. package/src/agent/components/activity-status.tsx +1 -1
  111. package/src/agent/components/agent-threads.tsx +377 -0
  112. package/src/agent/components/approval-card.tsx +336 -327
  113. package/src/agent/components/approval-mode-chip.tsx +38 -145
  114. package/src/agent/components/auto-model-chip.tsx +103 -167
  115. package/src/agent/components/composer-menu.tsx +185 -0
  116. package/src/agent/components/composer.tsx +168 -103
  117. package/src/agent/components/context-chips.tsx +1 -1
  118. package/src/agent/components/conversation-panel.tsx +16 -36
  119. package/src/agent/components/dictation-bar.tsx +110 -0
  120. package/src/agent/components/file-attachment-card.tsx +5 -2
  121. package/src/agent/components/message-parts.tsx +27 -11
  122. package/src/agent/components/message-view.tsx +182 -68
  123. package/src/agent/components/model-controls.tsx +133 -125
  124. package/src/agent/components/model-picker-row.tsx +38 -17
  125. package/src/agent/components/participant-input.tsx +159 -31
  126. package/src/agent/components/reasoning-effort-slider.tsx +27 -27
  127. package/src/agent/components/shared-thread-notice.tsx +1 -1
  128. package/src/agent/components/thread-people.tsx +45 -15
  129. package/src/agent/components/threads-button.tsx +70 -0
  130. package/src/agent/components/transcript.tsx +30 -1
  131. package/src/agent/conversation.ts +25 -1
  132. package/src/agent/delegation/child-card.tsx +187 -247
  133. package/src/agent/delegation/child-cards.tsx +4 -7
  134. package/src/agent/delegation/child-group.tsx +179 -98
  135. package/src/agent/delegation/child-parts.tsx +71 -106
  136. package/src/agent/delegation/child-work.tsx +6 -52
  137. package/src/agent/delegation/interpret.ts +0 -28
  138. package/src/agent/delegation/model.ts +115 -39
  139. package/src/agent/dictation.ts +48 -0
  140. package/src/agent/hooks/use-agent-conversation.ts +10 -92
  141. package/src/agent/hooks/use-people-suggestions.ts +90 -0
  142. package/src/agent/hooks/use-thread-lists.ts +77 -0
  143. package/src/agent/i18n/en.ts +100 -83
  144. package/src/agent/i18n/fr.ts +109 -100
  145. package/src/agent/react-router.tsx +48 -5
  146. package/src/agent/run-presentation.ts +6 -2
  147. package/src/agent/thread-navigation.ts +16 -0
  148. package/src/agent/thread-pages.ts +24 -0
  149. package/src/artifacts/person-avatar.tsx +1 -1
  150. package/src/createCustomApp.ts +13 -6
  151. package/src/index.ts +7 -3
  152. package/src/pages/home.tsx +3 -1
  153. package/src/pages/observability/ai-usage/calls.tsx +2 -1
  154. package/src/pages/settings/memory-history.tsx +2 -1
  155. package/src/pages/settings/messages.ts +2 -3
  156. package/src/pages/values.tsx +23 -1
  157. package/src/pages.ts +5 -1
  158. package/src/shell/agent-dock.tsx +4 -2
  159. package/dist/agent/agents-page.d.ts +0 -4
  160. package/dist/agent/agents-page.d.ts.map +0 -1
  161. package/dist/agent/components/agent-thread-switcher.d.ts +0 -37
  162. package/dist/agent/components/agent-thread-switcher.d.ts.map +0 -1
  163. package/src/agent/agents-page.ts +0 -7
  164. package/src/agent/components/agent-thread-switcher.tsx +0 -519
  165. /package/dist/{chunk-0yb22w6m.js.map → chunk-2a69ge8h.js.map} +0 -0
  166. /package/dist/{chunk-vtp6nk44.js.map → chunk-bpj9mg5c.js.map} +0 -0
  167. /package/dist/{chunk-1rhht9y0.js.map → chunk-hzy2g13h.js.map} +0 -0
@@ -0,0 +1,77 @@
1
+ import { listAgentApprovalsOptions, listAgentThreadsInfiniteOptions } from "@sixb/client/hooks"
2
+ import { useInfiniteQuery, useQuery } from "@tanstack/react-query"
3
+ import { useMemo } from "react"
4
+ import { THREAD_PAGE_SIZE } from "../thread-navigation"
5
+
6
+ const THREAD_LIST_QUERY = {
7
+ limit: String(THREAD_PAGE_SIZE),
8
+ order: "desc" as const,
9
+ }
10
+
11
+ /** The threads others shared with the reader: one page, newest first. */
12
+ const SHARED_THREAD_LIST_QUERY = {
13
+ sharedWithMe: "true" as const,
14
+ limit: String(THREAD_PAGE_SIZE),
15
+ order: "desc" as const,
16
+ }
17
+
18
+ /** The calls waiting for the reader across threads, for the thread list. */
19
+ const PENDING_APPROVALS_QUERY = { status: "pending" as const, limit: "200" }
20
+
21
+ /**
22
+ * The reader's threads, the ones shared with them, and those where a call waits for them: what a
23
+ * thread's header counts and the threads page lists. One read for both, so opening the page from a
24
+ * thread shows what the thread already had.
25
+ */
26
+ export function useAgentThreadLists(options: {
27
+ /** How often to read again while nothing announces changes; off by default. */
28
+ readonly refetchInterval?: number | false
29
+ }) {
30
+ const refetchInterval = options.refetchInterval ?? false
31
+ const threadsQuery = useInfiniteQuery({
32
+ ...listAgentThreadsInfiniteOptions({ query: THREAD_LIST_QUERY }),
33
+ initialPageParam: { query: THREAD_LIST_QUERY },
34
+ getNextPageParam: nextPage(THREAD_LIST_QUERY),
35
+ refetchInterval,
36
+ })
37
+ // Nothing announces a new share or a removal: read the list again when the reader comes back.
38
+ const sharedThreadsQuery = useInfiniteQuery({
39
+ ...listAgentThreadsInfiniteOptions({ query: SHARED_THREAD_LIST_QUERY }),
40
+ initialPageParam: { query: SHARED_THREAD_LIST_QUERY },
41
+ getNextPageParam: nextPage(SHARED_THREAD_LIST_QUERY),
42
+ refetchInterval,
43
+ refetchOnWindowFocus: true,
44
+ })
45
+ const pendingApprovalsQuery = useQuery({
46
+ ...listAgentApprovalsOptions({ query: PENDING_APPROVALS_QUERY }),
47
+ refetchInterval,
48
+ retry: false,
49
+ })
50
+
51
+ const threads = useMemo(
52
+ () => threadsQuery.data?.pages.flatMap((page) => page.threads) ?? [],
53
+ [threadsQuery.data]
54
+ )
55
+ const sharedThreads = useMemo(
56
+ () => sharedThreadsQuery.data?.pages.flatMap((page) => page.threads) ?? [],
57
+ [sharedThreadsQuery.data]
58
+ )
59
+ /** The threads where a call waits for the reader. */
60
+ const waitingThreadIds = useMemo(
61
+ () =>
62
+ new Set(
63
+ (pendingApprovalsQuery.data?.approvals ?? []).map((approval) => approval.threadId)
64
+ ) as ReadonlySet<string>,
65
+ [pendingApprovalsQuery.data]
66
+ )
67
+
68
+ return { threadsQuery, sharedThreadsQuery, threads, sharedThreads, waitingThreadIds }
69
+ }
70
+
71
+ /** The page after those read so far, while the server says there are more. */
72
+ function nextPage<Query extends object>(query: Query) {
73
+ return (lastPage: { readonly hasMore: boolean }, pages: readonly unknown[]) =>
74
+ lastPage.hasMore
75
+ ? { query: { ...query, offset: String(pages.length * THREAD_PAGE_SIZE) } }
76
+ : undefined
77
+ }
@@ -46,14 +46,14 @@ export const en = {
46
46
  loadingConversation: "Loading conversation…",
47
47
  messagesLoadFailed: "Could not load this conversation.",
48
48
  threadsLoadFailed: "Could not load threads.",
49
- sharedThreadsLoadFailed: "Could not load the conversations shared with you.",
49
+ sharedThreadsLoadFailed: "Could not load the threads shared with you.",
50
50
  sendFailed: "Couldn't send your message. Please try again.",
51
51
  busy: "An answer is already in progress. Send yours when it finishes.",
52
52
  busyOther: "Someone else's message is being answered. Send yours when it finishes.",
53
53
  sandboxUnavailable: "This conversation's sandbox must be recovered before another answer.",
54
54
  retryFailed: "Couldn't retry this answer. Try again.",
55
55
  stopFailed: "Couldn't stop this answer. Try again.",
56
- removed: "You no longer take part in this conversation.",
56
+ removed: "You no longer take part in this thread.",
57
57
  },
58
58
  composer: {
59
59
  message: "Message",
@@ -70,6 +70,10 @@ export const en = {
70
70
  removeUnnamedAttachment: "Remove attachment",
71
71
  addFiles: "Add files",
72
72
  dropFiles: "Drop any file here to attach it to the conversation.",
73
+ dictationListening: "Listening…",
74
+ dictationTranscribing: "Transcribing…",
75
+ cancelDictation: "Cancel dictation",
76
+ finishDictation: "Done",
73
77
  },
74
78
  files: {
75
79
  spreadsheet: "Spreadsheet",
@@ -110,7 +114,6 @@ export const en = {
110
114
  empty: "No matching models.",
111
115
  default: "Default",
112
116
  defaultSummary: (summary: string) => `Default · ${summary}`,
113
- resetToDefault: "Reset",
114
117
  details: (name: string) => `Details about ${name}`,
115
118
  contextWindow: "Context window",
116
119
  tokens: (tokens: number) => count(tokens, "token"),
@@ -125,9 +128,8 @@ export const en = {
125
128
  title: "Model",
126
129
  chip: (name: string) => `Model: ${name}. Change it`,
127
130
  auto: "Auto",
128
- autoRouting: "Sixb picks the model of each message",
131
+ autoRouting: "Picks the right model for each message",
129
132
  autoStandard: (name: string) => `Sixb uses ${name}`,
130
- backToAuto: "Back to Auto",
131
133
  },
132
134
  reasoning: {
133
135
  thinking: "Thinking",
@@ -145,38 +147,35 @@ export const en = {
145
147
  max: "Max",
146
148
  },
147
149
  descriptions: {
148
- "provider-default": "Use the model provider's default",
150
+ "provider-default": "The model decides how much to think",
149
151
  none: "Answer without extended reasoning",
150
152
  minimal: "Faster for straightforward work",
151
- low: "Faster for straightforward work",
152
- medium: "A balanced level for most tasks",
153
- high: "More depth for complex tasks",
154
- xhigh: "More depth for complex tasks",
155
- max: "Maximum reasoning depth for the hardest tasks",
153
+ low: "Quicker, lighter answers",
154
+ medium: "Balances speed and care",
155
+ high: "Slower, more careful answers",
156
+ xhigh: "Very careful answers, slower still",
157
+ max: "The most careful answers, and the slowest",
156
158
  },
157
159
  },
158
160
  threads: {
159
- history: "Thread history",
160
- historyCurrent: (title: string) => `Thread history. Current: ${title}`,
161
- runningHistory: (running: number, title: string) =>
162
- `${count(running, "thread")} running. Open thread history. Current: ${title}`,
163
161
  running: (running: number) => `${number(running)} running`,
162
+ /** A thread the agent is at work in, on the threads page. */
163
+ working: "Working",
164
164
  title: "Threads",
165
- description: (agent: string) => `Search and switch between conversations with ${agent}.`,
166
165
  new: "New thread",
167
- close: "Close thread history",
168
166
  search: "Search threads",
167
+ clearSearch: "Clear search",
169
168
  searchLabel: (agent: string) => `Search ${agent} threads`,
170
169
  filter: "Filter threads",
171
170
  all: "All",
172
171
  archivedFilter: (archived: number) => `Archived ${number(archived)}`,
173
172
  archived: "Archived",
173
+ messageCount: (messages: number) => count(messages, "message"),
174
+ /** The button in a thread's header that opens the threads page. */
175
+ open: "All threads",
174
176
  sharedFilter: (shared: number) =>
175
177
  shared > 0 ? `Shared with me ${number(shared)}` : "Shared with me",
176
- sharedEmpty: "Conversations others share with you appear here.",
177
- sharedBy: (owner: string, messages: number) => `${owner} · ${count(messages, "message")}`,
178
- current: "Current",
179
- currentState: "current",
178
+ sharedEmpty: "Threads others share with you appear here.",
180
179
  today: "Today",
181
180
  yesterday: "Yesterday",
182
181
  thisWeek: "This week",
@@ -185,8 +184,8 @@ export const en = {
185
184
  loading: "Loading…",
186
185
  loadMore: "Load more threads",
187
186
  empty: "No matching threads.",
188
- messages: (messages: number) => count(messages, "message"),
189
- untitled: "Untitled chat",
187
+ none: "Your threads with the agent appear here.",
188
+ untitled: "Untitled thread",
190
189
  },
191
190
  time: {
192
191
  now: "now",
@@ -202,10 +201,10 @@ export const en = {
202
201
  thinking: "Thinking",
203
202
  takingLonger: "Taking a little longer",
204
203
  stopped: "Stopped.",
205
- stoppedAtLimit: (limit: string) => `Stopped after reaching ${limit}.`,
204
+ stoppedAtLimit: (limit: string) => `Paused at ${limit}.`,
206
205
  limitBeforeAnswer: (limit: string) =>
207
206
  `The response reached ${limit} before producing an answer.`,
208
- turnLimit: "the configured turn limit",
207
+ turnLimit: "the time limit",
209
208
  turnLimitOf: (amount: number, unit: "hour" | "minute" | "second") =>
210
209
  `the ${number(amount)}-${unit} turn limit`,
211
210
  continue: "Continue",
@@ -244,7 +243,6 @@ export const en = {
244
243
  answeredAgentShort: (key: string) => `Answered ${key}`,
245
244
  agentAsks: (key: string, text: string) => `${key} asks: ${text}`,
246
245
  messageAgentFailed: (key: string) => `Could not message ${key}`,
247
- worked: "Worked",
248
246
  reasoning: "Reasoning",
249
247
  steps: (steps: number) => count(steps, "step"),
250
248
  searchFailedHint: "Web search failed. See work details.",
@@ -261,12 +259,11 @@ export const en = {
261
259
  group: "Sub-agents of this reply",
262
260
  count: (agents: number) => count(agents, "sub-agent"),
263
261
  working: (agents: number) => `${number(agents)} working`,
264
- waitingYou: (agents: number) => `${number(agents)} waiting for you`,
265
262
  waitingOn: (agents: number, name: string) => `${number(agents)} waiting for ${name}`,
266
263
  waitingOthers: (agents: number) => `${number(agents)} waiting`,
267
264
  later: (agents: number) =>
268
265
  agents === 1 ? "1 continues later" : `${number(agents)} continue later`,
269
- done: (agents: number) => `${number(agents)} done`,
266
+ done: (agents: number) => `${number(agents)} finished`,
270
267
  failed: (agents: number) => `${number(agents)} failed`,
271
268
  stopped: (agents: number) => `${number(agents)} stopped`,
272
269
  states: {
@@ -279,7 +276,7 @@ export const en = {
279
276
  answer: "Waiting for your answer",
280
277
  answerAnyone: "Waiting for an answer",
281
278
  resume: "Decided · continues when the agent resumes",
282
- done: "Done",
279
+ done: "Finished",
283
280
  failed: "Failed",
284
281
  stopped: "Stopped",
285
282
  stopping: "Stopping…",
@@ -295,15 +292,10 @@ export const en = {
295
292
  fromAgent: "Agent said",
296
293
  asks: "Asked",
297
294
  answer: "Agent answered",
298
- answerHint: "Reply in the conversation to let it continue.",
299
- showWork: "Show work",
300
- hideWork: "Hide work",
301
- showWorkOf: (title: string) => `Show work: ${title}`,
302
- hideWorkOf: (title: string) => `Hide work: ${title}`,
295
+ answerHint: "Your next message answers it.",
303
296
  close: "Close",
304
297
  viewRequest: "See its request below",
305
298
  stepsLater: "At work. Its steps show here once it finishes.",
306
- worked: (duration: string) => `worked ${duration}`,
307
299
  stop: "Stop",
308
300
  stopLabel: (title: string) => `Stop ${title}`,
309
301
  stopFailed: "Couldn't stop it. Try again.",
@@ -317,7 +309,7 @@ export const en = {
317
309
  loadingWork: "Loading its work…",
318
310
  loadFailed: "Couldn't load its work.",
319
311
  elsewhere: "Its work is in the original conversation.",
320
- tiers: { light: "Light", standard: "Standard", heavy: "Heavy" },
312
+ tiers: { light: "Fast", standard: "Balanced", heavy: "Thorough" },
321
313
  seconds: (seconds: number) => `${number(seconds)}s`,
322
314
  minutes: (minutes: number, seconds: number) =>
323
315
  seconds === 0 ? `${number(minutes)}m` : `${number(minutes)}m ${number(seconds)}s`,
@@ -333,6 +325,35 @@ export const en = {
333
325
  heardFromCount: (agents: number) => `Heard back from ${count(agents, "sub-agent")}`,
334
326
  waitFailed: "Couldn't wait for the sub-agents",
335
327
  askedAgent: (question: string) => `Asked the agent: ${question}`,
328
+ /** The reply's line: the sub-agents by name, and how they stand. */
329
+ line: {
330
+ names: (names: readonly string[]) =>
331
+ names.length <= 1
332
+ ? (names[0] ?? "")
333
+ : names.length <= 3
334
+ ? `${names.slice(0, -1).join(", ")} and ${names.at(-1)}`
335
+ : `${names.slice(0, 2).join(", ")} and ${number(names.length - 2)} others`,
336
+ starting: (agents: number): string => (agents === 1 ? "is starting" : "are starting"),
337
+ working: (agents: number): string => (agents === 1 ? "is working" : "are working"),
338
+ asking: (agents: number): string =>
339
+ agents === 1 ? "is asking the agent" : "are asking the agent",
340
+ approval: (agents: number): string =>
341
+ agents === 1 ? "needs your approval" : "need your approval",
342
+ answer: (agents: number): string =>
343
+ agents === 1 ? "has a question for you" : "have a question for you",
344
+ waitingOn: (agents: number, name: string): string =>
345
+ `${agents === 1 ? "is" : "are"} waiting for ${name}`,
346
+ waiting: (agents: number): string => (agents === 1 ? "is waiting" : "are waiting"),
347
+ later: (agents: number): string => (agents === 1 ? "continues later" : "continue later"),
348
+ done: (_agents: number): string => "finished",
349
+ failed: (_agents: number): string => "couldn't finish",
350
+ stopped: (agents: number): string => (agents === 1 ? "was stopped" : "were stopped"),
351
+ },
352
+ /** The panel that lists a reply's sub-agents and opens each one's thread. */
353
+ panel: (agents: number) => count(agents, "sub-agent"),
354
+ back: "All sub-agents",
355
+ task: "Its task",
356
+ open: (names: string) => `Open ${names}`,
336
357
  },
337
358
  web: {
338
359
  searching: "Searching the web",
@@ -652,6 +673,7 @@ export const en = {
652
673
  open: (title: string) => `Open ${title}`,
653
674
  /** Labels the cards of what one response published. */
654
675
  cards: "Published in this response",
676
+ close: "Close",
655
677
  },
656
678
  memory: {
657
679
  /** Closes a turn once per save, before what the save says the agent remembered. */
@@ -673,45 +695,48 @@ export const en = {
673
695
  },
674
696
  /** A conversation its owner shares with other users of the project. */
675
697
  sharing: {
676
- share: "Share conversation",
698
+ share: "Share thread",
677
699
  shareShort: "Share",
678
700
  names: (names: readonly string[]) => names.join(", "),
679
- emailPlaceholderEmpty: "Add people by email",
680
- addHint: "Press Enter to add each email.",
681
- people: (people: number) => `${count(people, "person", "people")} in this conversation`,
682
- shareTitle: "Share conversation",
683
- peopleTitle: "People in this conversation",
684
- description:
685
- "Everyone here reads the whole conversation and talks to the agent with their own access.",
701
+ people: (people: number) => `${count(people, "person", "people")} in this thread`,
702
+ shareTitle: "Share thread",
703
+ peopleTitle: "People in this thread",
704
+ description: "Everyone here reads the whole thread and asks the agent with their own access.",
705
+ inThread: "In this thread",
686
706
  owner: "Owner",
687
707
  you: "You",
688
708
  remove: (name: string) => `Remove ${name}`,
689
709
  removeFailed: "Couldn't remove this person. Try again.",
690
- email: "Email",
691
- emailPlaceholder: "colleague@example.com",
710
+ addLabel: "Add people",
711
+ addPlaceholder: "Add people by name or email",
712
+ addByEmail: "Add people by email",
713
+ addMore: "Add more",
714
+ suggestions: "People",
715
+ addEmail: (email: string) => `Add ${email}`,
692
716
  invalidEmail: "Enter an email address, such as colleague@example.com.",
693
- unstage: (email: string) => `Don't add ${email}`,
717
+ notFound: "No one in the project matches. Enter their email instead.",
718
+ unstage: (name: string) => `Don't add ${name}`,
694
719
  warning:
695
- "Participants will see the whole conversation, including data the agent read with your access, now and in future messages. Some of it may be data they cannot normally see.",
720
+ "They'll see the whole thread, now and later, including data the agent read with your access that they may not normally see.",
696
721
  confirm: (people: number) => `Share with ${count(people, "person", "people")}`,
697
722
  sharing: "Sharing…",
698
723
  shareRefused:
699
- "Couldn't add them: each email must belong to an active member other than you, up to 50 people.",
700
- shareFailed: "Couldn't share this conversation.",
724
+ "Couldn't add them: each must be an active member other than you, up to 50 people.",
725
+ shareFailed: "Couldn't share this thread.",
701
726
  staged: "People to add",
702
- leave: "Leave conversation",
703
- leaveTitle: "Leave this conversation?",
727
+ leave: "Leave thread",
728
+ leaveTitle: "Leave this thread?",
704
729
  leaveDescription: (owner: string) =>
705
730
  `You will no longer see it or its new messages. ${owner} can add you again.`,
706
- leaveFailed: "Couldn't leave this conversation. Try again.",
731
+ leaveFailed: "Couldn't leave this thread. Try again.",
707
732
  cancel: "Cancel",
708
733
  close: "Close",
709
- sharedBy: (owner: string) => `${owner}'s conversation`,
734
+ sharedBy: (owner: string) => `${owner}'s thread`,
710
735
  answering: (name: string) => `${name} is getting an answer…`,
711
- continueMine: "Continue in my conversation",
736
+ continueMine: "Continue in my own thread",
712
737
  continuing: "Copying…",
713
- continueHint: "A copy of the finished messages, that only you take part in.",
714
- forkFailed: "Couldn't copy this conversation. Try again.",
738
+ continueHint: "A copy of the finished messages, just for you.",
739
+ forkFailed: "Couldn't copy this thread. Try again.",
715
740
  sharedWith: (names: readonly string[]) =>
716
741
  names.length === 1
717
742
  ? `Shared with ${names[0]}`
@@ -719,35 +744,30 @@ export const en = {
719
744
  ? `Shared with ${names[0]} and ${names[1]}`
720
745
  : `Shared with ${number(names.length)} people`,
721
746
  removed: (name: string) => `Removed ${name}`,
722
- left: "You left the conversation",
723
- copied: "Copied to your conversations",
747
+ left: "You left the thread",
748
+ copied: "Copied to your threads",
724
749
  },
725
750
  /** What the agent may change without asking: the composer's chip and its menu. */
726
751
  approvalModes: {
727
- title: "When the agent changes things",
728
- chip: (mode: string) => `Approval mode: ${mode}. Change it`,
729
- changed: (mode: string) => `Approval mode: ${mode}`,
730
- shortcut: "Shift+Tab in an empty message switches between Manual and Accept edits",
752
+ title: "What can the agent do without asking?",
753
+ chip: (mode: string) => `Permissions: ${mode}. Change them`,
754
+ changed: (mode: string) => `Permissions: ${mode}`,
755
+ shortcut: "Shift+Tab in an empty message switches to the next mode",
731
756
  modes: {
732
757
  manual: {
733
758
  label: "Manual",
734
- short: "Manual",
735
759
  description: "Asks before each action or workflow the agent requests",
736
760
  },
737
761
  "accept-edits": {
738
762
  label: "Accept edits",
739
- short: "Edits",
740
763
  description:
741
764
  "Changes your data without asking. Asks before reaching other systems or starting workflows",
742
765
  },
743
766
  auto: {
744
767
  label: "Auto",
745
- short: "Auto",
746
768
  description: "Runs every action and workflow without asking",
747
769
  },
748
770
  },
749
- makeDefault: "Use as my default",
750
- isDefault: "Your default",
751
771
  saveFailed: "Couldn't change what the agent may do. Try again.",
752
772
  },
753
773
  /** A call the agent made that waits for its requester's approval. */
@@ -760,40 +780,38 @@ export const en = {
760
780
  approving: "Approving…",
761
781
  deny: "Deny",
762
782
  denying: "Denying…",
763
- alwaysAllow: (mode: string) => `Always allow · switches to ${mode}`,
783
+ alwaysAllow: "Always allow",
784
+ /** "Always allow" on a call that reaches outside the app, which lets every such call run. */
785
+ alwaysAllowAll: "Allow all from now on",
786
+ alwaysAllowHint: (mode: string) => `Approves this, then sets this conversation to “${mode}”`,
764
787
  alwaysAllowAlso: (others: number) =>
765
788
  `Also approves ${count(others, "other request")} waiting in this reply.`,
766
- modeRaised: (mode: string) => `You're now in ${mode} in this conversation.`,
789
+ modeRaised: (mode: string) => `This conversation is now set to “${mode}”.`,
767
790
  approved: "Approved",
768
- ran: "Ran",
769
791
  running: "Running…",
770
792
  failed: "Approved, but it failed",
771
793
  notRun: "Approved, but it didn't run",
772
794
  authorityLost: "The sign-in that asked for it ended before it could run. Ask the agent again.",
773
795
  denied: "Denied",
774
- deniedDetail: "Didn't run",
775
796
  superseded: "Set aside",
776
- supersededDetail: "A new message moved the conversation on first. It didn't run.",
797
+ supersededDetail: "Didn't run: a newer message came first.",
777
798
  cancelled: "Stopped",
778
799
  cancelledDetail: "The answer was stopped. It didn't run.",
779
800
  expired: "Expired",
780
801
  expiredDetail: (days: number) => `Nobody decided within ${count(days, "day")}. It didn't run.`,
781
802
  askedForApproval: "Asked for approval",
782
- fromSubagent: (key: string) => `Asked by the sub-agent ${key}`,
803
+ fromSubagent: (name: string) => `From ${name}`,
783
804
  effects: {
784
- ontology: "Changes stay in your data",
785
- external: "Reaches an external system, then updates your data",
786
- workflow: (name: string) => `Starts the workflow ${name}`,
805
+ ontology: "Only changes records in this app",
806
+ writeback: "Also updates the system this record comes from",
807
+ external: "Also acts outside this app",
808
+ workflow: (name: string) => `Starts the ${name} workflow`,
787
809
  },
788
810
  noInput: "No details to review",
789
- showInput: "Show details",
790
- hideInput: "Hide details",
791
- viewRun: "View run",
792
811
  stopWaiting: "Stop waiting",
793
812
  stoppingWaiting: "Stopping…",
794
813
  stopWaitingHint: "Sets aside every request this reply waits on. It won't continue.",
795
814
  stopFailed: "Couldn't stop waiting. Try again.",
796
- open: (name: string) => `Open ${name}`,
797
815
  resume: {
798
816
  retrying: "The agent continues as soon as it can.",
799
817
  refused: "The agent couldn't continue. Send a message to pick up from here.",
@@ -805,8 +823,7 @@ export const en = {
805
823
  },
806
824
  composerPlaceholder: "Approve above, or reply instead",
807
825
  setsAside: (name: string) => `Sending now sets aside ${name}'s request waiting for approval.`,
808
- waitingThreads: (waiting: number) =>
809
- `${count(waiting, "conversation")} waiting for your approval`,
826
+ waitingThreads: (waiting: number) => `${count(waiting, "thread")} waiting for your approval`,
810
827
  threadWaiting: "Waiting for you",
811
828
  },
812
829
  /** Someone else's conversation, read with can.observe(agent.threads). */