@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.
- package/dist/agent/agent-chat.d.ts +8 -1
- package/dist/agent/agent-chat.d.ts.map +1 -1
- package/dist/agent/agent-panel.d.ts +8 -1
- package/dist/agent/agent-panel.d.ts.map +1 -1
- package/dist/agent/agent-surface.d.ts +8 -1
- package/dist/agent/agent-surface.d.ts.map +1 -1
- package/dist/agent/approvals.d.ts +1 -4
- package/dist/agent/approvals.d.ts.map +1 -1
- package/dist/agent/artifact-panel.d.ts +21 -2
- package/dist/agent/artifact-panel.d.ts.map +1 -1
- package/dist/agent/components/activity-status.d.ts +1 -1
- package/dist/agent/components/activity-status.d.ts.map +1 -1
- package/dist/agent/components/agent-threads.d.ts +15 -0
- package/dist/agent/components/agent-threads.d.ts.map +1 -0
- package/dist/agent/components/approval-card.d.ts +4 -4
- package/dist/agent/components/approval-card.d.ts.map +1 -1
- package/dist/agent/components/approval-mode-chip.d.ts +4 -6
- package/dist/agent/components/approval-mode-chip.d.ts.map +1 -1
- package/dist/agent/components/auto-model-chip.d.ts +2 -3
- package/dist/agent/components/auto-model-chip.d.ts.map +1 -1
- package/dist/agent/components/composer-menu.d.ts +42 -0
- package/dist/agent/components/composer-menu.d.ts.map +1 -0
- package/dist/agent/components/composer.d.ts +8 -5
- package/dist/agent/components/composer.d.ts.map +1 -1
- package/dist/agent/components/conversation-panel.d.ts +3 -12
- package/dist/agent/components/conversation-panel.d.ts.map +1 -1
- package/dist/agent/components/dictation-bar.d.ts +13 -0
- package/dist/agent/components/dictation-bar.d.ts.map +1 -0
- package/dist/agent/components/message-parts.d.ts.map +1 -1
- package/dist/agent/components/message-view.d.ts +3 -1
- package/dist/agent/components/message-view.d.ts.map +1 -1
- package/dist/agent/components/model-controls.d.ts +15 -0
- package/dist/agent/components/model-controls.d.ts.map +1 -1
- package/dist/agent/components/model-picker-row.d.ts +9 -2
- package/dist/agent/components/model-picker-row.d.ts.map +1 -1
- package/dist/agent/components/participant-input.d.ts +7 -6
- package/dist/agent/components/participant-input.d.ts.map +1 -1
- package/dist/agent/components/thread-people.d.ts +4 -4
- package/dist/agent/components/thread-people.d.ts.map +1 -1
- package/dist/agent/components/threads-button.d.ts +14 -0
- package/dist/agent/components/threads-button.d.ts.map +1 -0
- package/dist/agent/conversation.d.ts +3 -1
- package/dist/agent/conversation.d.ts.map +1 -1
- package/dist/agent/delegation/child-card.d.ts +24 -11
- package/dist/agent/delegation/child-card.d.ts.map +1 -1
- package/dist/agent/delegation/child-cards.d.ts +2 -2
- package/dist/agent/delegation/child-cards.d.ts.map +1 -1
- package/dist/agent/delegation/child-group.d.ts +5 -4
- package/dist/agent/delegation/child-group.d.ts.map +1 -1
- package/dist/agent/delegation/child-parts.d.ts +17 -18
- package/dist/agent/delegation/child-parts.d.ts.map +1 -1
- package/dist/agent/delegation/child-work.d.ts +0 -13
- package/dist/agent/delegation/child-work.d.ts.map +1 -1
- package/dist/agent/delegation/interpret.d.ts +0 -5
- package/dist/agent/delegation/interpret.d.ts.map +1 -1
- package/dist/agent/delegation/model.d.ts +12 -6
- package/dist/agent/delegation/model.d.ts.map +1 -1
- package/dist/agent/dictation.d.ts +16 -0
- package/dist/agent/dictation.d.ts.map +1 -0
- package/dist/agent/hooks/use-agent-conversation.d.ts +3 -270
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
- package/dist/agent/hooks/use-people-suggestions.d.ts +21 -0
- package/dist/agent/hooks/use-people-suggestions.d.ts.map +1 -0
- package/dist/agent/hooks/use-thread-lists.d.ts +220 -0
- package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -0
- package/dist/agent/i18n/en.d.ts +47 -36
- package/dist/agent/i18n/en.d.ts.map +1 -1
- package/dist/agent/i18n/fr.d.ts.map +1 -1
- package/dist/agent/i18n/index.d.ts +84 -72
- package/dist/agent/i18n/index.d.ts.map +1 -1
- package/dist/agent/react-router.d.ts +9 -0
- package/dist/agent/react-router.d.ts.map +1 -1
- package/dist/agent/run-presentation.d.ts +4 -1
- package/dist/agent/run-presentation.d.ts.map +1 -1
- package/dist/agent/thread-navigation.d.ts +8 -0
- package/dist/agent/thread-navigation.d.ts.map +1 -1
- package/dist/agent/thread-pages.d.ts +11 -0
- package/dist/agent/thread-pages.d.ts.map +1 -0
- package/dist/artifacts/person-avatar.d.ts +2 -2
- package/dist/{chunk-aes17xmx.js → chunk-12v6y89k.js} +4180 -3793
- package/dist/{chunk-aes17xmx.js.map → chunk-12v6y89k.js.map} +48 -42
- package/dist/{chunk-0yb22w6m.js → chunk-2a69ge8h.js} +1 -1
- package/dist/{chunk-vtp6nk44.js → chunk-bpj9mg5c.js} +1 -1
- package/dist/{chunk-1rhht9y0.js → chunk-hzy2g13h.js} +1 -1
- package/dist/createCustomApp.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -6
- package/dist/index.js.map +6 -6
- package/dist/pages/home.d.ts.map +1 -1
- package/dist/pages/observability/ai-usage/calls.d.ts.map +1 -1
- package/dist/pages/settings/memory-history.d.ts.map +1 -1
- package/dist/pages/settings/messages.d.ts.map +1 -1
- package/dist/pages/values.d.ts +5 -0
- package/dist/pages/values.d.ts.map +1 -1
- package/dist/pages.d.ts +1 -1
- package/dist/pages.d.ts.map +1 -1
- package/dist/pages.js +60 -44
- package/dist/pages.js.map +8 -8
- package/dist/server.js +12 -6
- package/dist/server.js.map +3 -3
- package/dist/shell/agent-dock.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/agent/agent-chat.tsx +15 -23
- package/src/agent/agent-panel.tsx +11 -0
- package/src/agent/agent-surface.tsx +11 -0
- package/src/agent/agent.css +33 -3
- package/src/agent/approvals.ts +4 -5
- package/src/agent/artifact-panel.tsx +113 -37
- package/src/agent/components/activity-status.tsx +1 -1
- package/src/agent/components/agent-threads.tsx +377 -0
- package/src/agent/components/approval-card.tsx +336 -327
- package/src/agent/components/approval-mode-chip.tsx +38 -145
- package/src/agent/components/auto-model-chip.tsx +103 -167
- package/src/agent/components/composer-menu.tsx +185 -0
- package/src/agent/components/composer.tsx +168 -103
- package/src/agent/components/context-chips.tsx +1 -1
- package/src/agent/components/conversation-panel.tsx +16 -36
- package/src/agent/components/dictation-bar.tsx +110 -0
- package/src/agent/components/file-attachment-card.tsx +5 -2
- package/src/agent/components/message-parts.tsx +27 -11
- package/src/agent/components/message-view.tsx +182 -68
- package/src/agent/components/model-controls.tsx +133 -125
- package/src/agent/components/model-picker-row.tsx +38 -17
- package/src/agent/components/participant-input.tsx +159 -31
- package/src/agent/components/reasoning-effort-slider.tsx +27 -27
- package/src/agent/components/shared-thread-notice.tsx +1 -1
- package/src/agent/components/thread-people.tsx +45 -15
- package/src/agent/components/threads-button.tsx +70 -0
- package/src/agent/components/transcript.tsx +30 -1
- package/src/agent/conversation.ts +25 -1
- package/src/agent/delegation/child-card.tsx +187 -247
- package/src/agent/delegation/child-cards.tsx +4 -7
- package/src/agent/delegation/child-group.tsx +179 -98
- package/src/agent/delegation/child-parts.tsx +71 -106
- package/src/agent/delegation/child-work.tsx +6 -52
- package/src/agent/delegation/interpret.ts +0 -28
- package/src/agent/delegation/model.ts +115 -39
- package/src/agent/dictation.ts +48 -0
- package/src/agent/hooks/use-agent-conversation.ts +10 -92
- package/src/agent/hooks/use-people-suggestions.ts +90 -0
- package/src/agent/hooks/use-thread-lists.ts +77 -0
- package/src/agent/i18n/en.ts +100 -83
- package/src/agent/i18n/fr.ts +109 -100
- package/src/agent/react-router.tsx +48 -5
- package/src/agent/run-presentation.ts +6 -2
- package/src/agent/thread-navigation.ts +16 -0
- package/src/agent/thread-pages.ts +24 -0
- package/src/artifacts/person-avatar.tsx +1 -1
- package/src/createCustomApp.ts +13 -6
- package/src/index.ts +7 -3
- package/src/pages/home.tsx +3 -1
- package/src/pages/observability/ai-usage/calls.tsx +2 -1
- package/src/pages/settings/memory-history.tsx +2 -1
- package/src/pages/settings/messages.ts +2 -3
- package/src/pages/values.tsx +23 -1
- package/src/pages.ts +5 -1
- package/src/shell/agent-dock.tsx +4 -2
- package/dist/agent/agents-page.d.ts +0 -4
- package/dist/agent/agents-page.d.ts.map +0 -1
- package/dist/agent/components/agent-thread-switcher.d.ts +0 -37
- package/dist/agent/components/agent-thread-switcher.d.ts.map +0 -1
- package/src/agent/agents-page.ts +0 -7
- package/src/agent/components/agent-thread-switcher.tsx +0 -519
- /package/dist/{chunk-0yb22w6m.js.map → chunk-2a69ge8h.js.map} +0 -0
- /package/dist/{chunk-vtp6nk44.js.map → chunk-bpj9mg5c.js.map} +0 -0
- /package/dist/{chunk-1rhht9y0.js.map → chunk-hzy2g13h.js.map} +0 -0
package/src/agent/i18n/fr.ts
CHANGED
|
@@ -36,8 +36,8 @@ export const fr: Translation<AgentMessages> = {
|
|
|
36
36
|
placeholder: "Poser une question",
|
|
37
37
|
loadingConversation: "Chargement de la conversation…",
|
|
38
38
|
messagesLoadFailed: "Impossible de charger cette conversation.",
|
|
39
|
-
threadsLoadFailed: "Impossible de charger les
|
|
40
|
-
sharedThreadsLoadFailed: "Impossible de charger les
|
|
39
|
+
threadsLoadFailed: "Impossible de charger les fils.",
|
|
40
|
+
sharedThreadsLoadFailed: "Impossible de charger les fils partagés avec vous.",
|
|
41
41
|
sendFailed: "Le message n’a pas pu être envoyé. Réessayez.",
|
|
42
42
|
busy: "Une réponse est déjà en cours. Envoyez votre message quand elle sera terminée.",
|
|
43
43
|
busyOther:
|
|
@@ -46,7 +46,7 @@ export const fr: Translation<AgentMessages> = {
|
|
|
46
46
|
"L’environnement de cette conversation doit être récupéré avant une nouvelle réponse.",
|
|
47
47
|
retryFailed: "Impossible de relancer cette réponse. Réessayez.",
|
|
48
48
|
stopFailed: "Impossible d’arrêter cette réponse. Réessayez.",
|
|
49
|
-
removed: "Vous ne participez plus à
|
|
49
|
+
removed: "Vous ne participez plus à ce fil.",
|
|
50
50
|
},
|
|
51
51
|
composer: {
|
|
52
52
|
message: "Message",
|
|
@@ -66,6 +66,10 @@ export const fr: Translation<AgentMessages> = {
|
|
|
66
66
|
removeUnnamedAttachment: "Retirer la pièce jointe",
|
|
67
67
|
addFiles: "Ajouter des fichiers",
|
|
68
68
|
dropFiles: "Déposez un fichier ici pour le joindre à la conversation.",
|
|
69
|
+
dictationListening: "À l’écoute…",
|
|
70
|
+
dictationTranscribing: "Transcription…",
|
|
71
|
+
cancelDictation: "Annuler la dictée",
|
|
72
|
+
finishDictation: "Terminer",
|
|
69
73
|
},
|
|
70
74
|
files: {
|
|
71
75
|
spreadsheet: "Feuille de calcul",
|
|
@@ -105,7 +109,6 @@ export const fr: Translation<AgentMessages> = {
|
|
|
105
109
|
empty: "Aucun modèle correspondant.",
|
|
106
110
|
default: "Par défaut",
|
|
107
111
|
defaultSummary: (summary) => `Par défaut · ${summary}`,
|
|
108
|
-
resetToDefault: "Réinitialiser",
|
|
109
112
|
details: (name) => `Détails sur ${name}`,
|
|
110
113
|
contextWindow: "Fenêtre de contexte",
|
|
111
114
|
tokens: (tokens) => count(tokens, "jeton"),
|
|
@@ -119,9 +122,8 @@ export const fr: Translation<AgentMessages> = {
|
|
|
119
122
|
title: "Modèle",
|
|
120
123
|
chip: (name) => `Modèle : ${name}. Le changer`,
|
|
121
124
|
auto: "Auto",
|
|
122
|
-
autoRouting: "
|
|
125
|
+
autoRouting: "Choisit le bon modèle pour chaque message",
|
|
123
126
|
autoStandard: (name) => `Sixb utilise ${name}`,
|
|
124
|
-
backToAuto: "Revenir à Auto",
|
|
125
127
|
},
|
|
126
128
|
reasoning: {
|
|
127
129
|
thinking: "Réflexion",
|
|
@@ -139,48 +141,43 @@ export const fr: Translation<AgentMessages> = {
|
|
|
139
141
|
max: "Maximal",
|
|
140
142
|
},
|
|
141
143
|
descriptions: {
|
|
142
|
-
"provider-default": "
|
|
144
|
+
"provider-default": "Le modèle décide combien réfléchir",
|
|
143
145
|
none: "Répondre sans raisonnement approfondi",
|
|
144
146
|
minimal: "Plus rapide pour les tâches simples",
|
|
145
|
-
low: "
|
|
146
|
-
medium: "
|
|
147
|
-
high: "
|
|
148
|
-
xhigh: "
|
|
149
|
-
max: "
|
|
147
|
+
low: "Réponses plus rapides et plus légères",
|
|
148
|
+
medium: "Équilibre entre rapidité et soin",
|
|
149
|
+
high: "Réponses plus lentes et plus soignées",
|
|
150
|
+
xhigh: "Réponses très soignées, encore plus lentes",
|
|
151
|
+
max: "Les réponses les plus soignées, et les plus lentes",
|
|
150
152
|
},
|
|
151
153
|
},
|
|
152
154
|
threads: {
|
|
153
|
-
history: "Historique des conversations",
|
|
154
|
-
historyCurrent: (title) => `Historique des conversations. Conversation actuelle : ${title}`,
|
|
155
|
-
runningHistory: (running, title) =>
|
|
156
|
-
`${count(running, "conversation")} en cours. Ouvrir l’historique. Conversation actuelle : ${title}`,
|
|
157
155
|
running: (running) => `${number(running)} en cours`,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
new: "
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
searchLabel: (agent) => `Rechercher dans les
|
|
164
|
-
filter: "Filtrer les
|
|
165
|
-
all: "
|
|
166
|
-
archivedFilter: (archived) => `
|
|
167
|
-
archived: "
|
|
156
|
+
working: "En cours",
|
|
157
|
+
title: "Fils de discussion",
|
|
158
|
+
new: "Nouveau fil",
|
|
159
|
+
search: "Rechercher un fil",
|
|
160
|
+
clearSearch: "Effacer la recherche",
|
|
161
|
+
searchLabel: (agent) => `Rechercher dans les fils avec ${agent}`,
|
|
162
|
+
filter: "Filtrer les fils",
|
|
163
|
+
all: "Tous",
|
|
164
|
+
archivedFilter: (archived) => `Archivés ${number(archived)}`,
|
|
165
|
+
archived: "Archivé",
|
|
166
|
+
messageCount: (messages) => count(messages, "message"),
|
|
167
|
+
open: "Tous les fils",
|
|
168
168
|
sharedFilter: (shared) =>
|
|
169
|
-
shared > 0 ? `
|
|
170
|
-
sharedEmpty: "Les
|
|
171
|
-
sharedBy: (owner, messages) => `${owner} · ${count(messages, "message")}`,
|
|
172
|
-
current: "Actuelle",
|
|
173
|
-
currentState: "actuelle",
|
|
169
|
+
shared > 0 ? `Partagés avec moi ${number(shared)}` : "Partagés avec moi",
|
|
170
|
+
sharedEmpty: "Les fils que d’autres partagent avec vous apparaissent ici.",
|
|
174
171
|
today: "Aujourd’hui",
|
|
175
172
|
yesterday: "Hier",
|
|
176
173
|
thisWeek: "Cette semaine",
|
|
177
|
-
older: "Plus
|
|
178
|
-
loadMoreFailed: "Impossible de charger plus de
|
|
174
|
+
older: "Plus anciens",
|
|
175
|
+
loadMoreFailed: "Impossible de charger plus de fils. Réessayez.",
|
|
179
176
|
loading: "Chargement…",
|
|
180
|
-
loadMore: "Afficher plus de
|
|
181
|
-
empty: "
|
|
182
|
-
|
|
183
|
-
untitled: "
|
|
177
|
+
loadMore: "Afficher plus de fils",
|
|
178
|
+
empty: "Aucun fil correspondant.",
|
|
179
|
+
none: "Vos fils avec l’assistant apparaissent ici.",
|
|
180
|
+
untitled: "Fil sans titre",
|
|
184
181
|
},
|
|
185
182
|
time: {
|
|
186
183
|
now: "à l’instant",
|
|
@@ -198,7 +195,7 @@ export const fr: Translation<AgentMessages> = {
|
|
|
198
195
|
stopped: "Arrêté.",
|
|
199
196
|
stoppedAtLimit: (limit) => `Arrêté après avoir atteint ${limit}.`,
|
|
200
197
|
limitBeforeAnswer: (limit) => `La réponse a atteint ${limit} avant d’aboutir.`,
|
|
201
|
-
turnLimit: "la durée maximale
|
|
198
|
+
turnLimit: "la durée maximale",
|
|
202
199
|
turnLimitOf: (amount, unit) => `la durée maximale de ${count(amount, DURATION_UNITS[unit])}`,
|
|
203
200
|
continue: "Continuer",
|
|
204
201
|
continuing: "Reprise…",
|
|
@@ -235,7 +232,6 @@ export const fr: Translation<AgentMessages> = {
|
|
|
235
232
|
answeredAgentShort: (key) => `Réponse envoyée à ${key}`,
|
|
236
233
|
agentAsks: (key, text) => `${key} demande : ${text}`,
|
|
237
234
|
messageAgentFailed: (key) => `Impossible d’envoyer un message à ${key}`,
|
|
238
|
-
worked: "Travail effectué",
|
|
239
235
|
reasoning: "Raisonnement",
|
|
240
236
|
steps: (steps) => count(steps, "étape"),
|
|
241
237
|
searchFailedHint: "La recherche web a échoué. Voir le détail du travail.",
|
|
@@ -251,8 +247,6 @@ export const fr: Translation<AgentMessages> = {
|
|
|
251
247
|
group: "Sous-agents de cette réponse",
|
|
252
248
|
count: (agents) => count(agents, "sous-agent"),
|
|
253
249
|
working: (agents) => `${number(agents)} en cours`,
|
|
254
|
-
waitingYou: (agents) =>
|
|
255
|
-
`${number(agents)} ${plural("fr", agents, { one: "vous attend", other: "vous attendent" })}`,
|
|
256
250
|
waitingOn: (agents, name) =>
|
|
257
251
|
`${number(agents)} ${plural("fr", agents, { one: "attend", other: "attendent" })} ${name}`,
|
|
258
252
|
waitingOthers: (agents) => `${number(agents)} en attente`,
|
|
@@ -289,15 +283,10 @@ export const fr: Translation<AgentMessages> = {
|
|
|
289
283
|
fromAgent: "L’agent a dit",
|
|
290
284
|
asks: "A demandé",
|
|
291
285
|
answer: "L’agent a répondu",
|
|
292
|
-
answerHint: "
|
|
293
|
-
showWork: "Voir le travail",
|
|
294
|
-
hideWork: "Masquer le travail",
|
|
295
|
-
showWorkOf: (title) => `Voir le travail : ${title}`,
|
|
296
|
-
hideWorkOf: (title) => `Masquer le travail : ${title}`,
|
|
286
|
+
answerHint: "Votre prochain message lui répond.",
|
|
297
287
|
close: "Fermer",
|
|
298
288
|
viewRequest: "Voir sa demande plus bas",
|
|
299
289
|
stepsLater: "En cours. Ses étapes s’afficheront ici une fois terminé.",
|
|
300
|
-
worked: (duration) => `${duration} de travail`,
|
|
301
290
|
stop: "Arrêter",
|
|
302
291
|
stopLabel: (title) => `Arrêter ${title}`,
|
|
303
292
|
stopFailed: "Impossible de l’arrêter. Réessayez.",
|
|
@@ -311,7 +300,7 @@ export const fr: Translation<AgentMessages> = {
|
|
|
311
300
|
loadingWork: "Chargement de son travail…",
|
|
312
301
|
loadFailed: "Impossible de charger son travail.",
|
|
313
302
|
elsewhere: "Son travail se trouve dans la conversation d’origine.",
|
|
314
|
-
tiers: { light: "
|
|
303
|
+
tiers: { light: "Rapide", standard: "Équilibré", heavy: "Approfondi" },
|
|
315
304
|
seconds: (seconds) => `${number(seconds)} s`,
|
|
316
305
|
minutes: (minutes, seconds) =>
|
|
317
306
|
seconds === 0 ? `${number(minutes)} min` : `${number(minutes)} min ${number(seconds)} s`,
|
|
@@ -326,6 +315,31 @@ export const fr: Translation<AgentMessages> = {
|
|
|
326
315
|
heardFrom: (key) => `Réponse de ${key}`,
|
|
327
316
|
heardFromCount: (agents) => `Réponses de ${count(agents, "sous-agent")}`,
|
|
328
317
|
waitFailed: "Impossible d’attendre les sous-agents",
|
|
318
|
+
line: {
|
|
319
|
+
names: (names) =>
|
|
320
|
+
names.length <= 1
|
|
321
|
+
? (names[0] ?? "")
|
|
322
|
+
: names.length <= 3
|
|
323
|
+
? `${names.slice(0, -1).join(", ")} et ${names.at(-1)}`
|
|
324
|
+
: `${names.slice(0, 2).join(", ")} et ${number(names.length - 2)} autres`,
|
|
325
|
+
starting: (agents) => (agents === 1 ? "démarre" : "démarrent"),
|
|
326
|
+
working: (agents) => (agents === 1 ? "travaille" : "travaillent"),
|
|
327
|
+
asking: (agents) => (agents === 1 ? "interroge l’agent" : "interrogent l’agent"),
|
|
328
|
+
approval: (agents) =>
|
|
329
|
+
agents === 1 ? "attend votre approbation" : "attendent votre approbation",
|
|
330
|
+
answer: (agents) =>
|
|
331
|
+
agents === 1 ? "a une question pour vous" : "ont une question pour vous",
|
|
332
|
+
waitingOn: (agents, name) => `${agents === 1 ? "attend" : "attendent"} ${name}`,
|
|
333
|
+
waiting: (agents) => (agents === 1 ? "attend" : "attendent"),
|
|
334
|
+
later: (agents) => (agents === 1 ? "reprendra plus tard" : "reprendront plus tard"),
|
|
335
|
+
done: (agents) => (agents === 1 ? "a terminé" : "ont terminé"),
|
|
336
|
+
failed: (agents) => (agents === 1 ? "n’a pas pu terminer" : "n’ont pas pu terminer"),
|
|
337
|
+
stopped: (agents) => (agents === 1 ? "a été arrêté" : "ont été arrêtés"),
|
|
338
|
+
},
|
|
339
|
+
panel: (agents) => count(agents, "sous-agent"),
|
|
340
|
+
back: "Tous les sous-agents",
|
|
341
|
+
task: "Sa tâche",
|
|
342
|
+
open: (names) => `Ouvrir ${names}`,
|
|
329
343
|
askedAgent: (question) => `Question à l’agent : ${question}`,
|
|
330
344
|
},
|
|
331
345
|
web: {
|
|
@@ -692,6 +706,7 @@ export const fr: Translation<AgentMessages> = {
|
|
|
692
706
|
title ? `Impossible de publier ${title}` : "Impossible de publier l’artefact",
|
|
693
707
|
open: (title) => `Ouvrir ${title}`,
|
|
694
708
|
cards: "Publié dans cette réponse",
|
|
709
|
+
close: "Fermer",
|
|
695
710
|
},
|
|
696
711
|
memory: {
|
|
697
712
|
saved: (project) =>
|
|
@@ -713,80 +728,78 @@ export const fr: Translation<AgentMessages> = {
|
|
|
713
728
|
`${owner} est la seule personne à pouvoir faire repartir cette conversation d’un nouvel environnement.`,
|
|
714
729
|
},
|
|
715
730
|
sharing: {
|
|
716
|
-
share: "Partager
|
|
731
|
+
share: "Partager le fil",
|
|
717
732
|
shareShort: "Partager",
|
|
718
733
|
names: (names) => names.join(", "),
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
description:
|
|
725
|
-
"Chaque personne ici lit toute la conversation et parle à l’agent avec ses propres accès.",
|
|
734
|
+
people: (people) => `${count(people, "personne")} dans ce fil`,
|
|
735
|
+
shareTitle: "Partager le fil",
|
|
736
|
+
peopleTitle: "Personnes dans ce fil",
|
|
737
|
+
description: "Chaque personne ici lit tout le fil et interroge l’agent avec ses propres accès.",
|
|
738
|
+
inThread: "Dans ce fil",
|
|
726
739
|
owner: "Propriétaire",
|
|
727
740
|
you: "Vous",
|
|
728
741
|
remove: (name) => `Retirer ${name}`,
|
|
729
742
|
removeFailed: "Impossible de retirer cette personne. Réessayez.",
|
|
730
|
-
|
|
731
|
-
|
|
743
|
+
addLabel: "Ajouter des personnes",
|
|
744
|
+
addPlaceholder: "Ajouter des personnes par nom ou e-mail",
|
|
745
|
+
addByEmail: "Ajouter des personnes par e-mail",
|
|
746
|
+
addMore: "Ajouter d’autres personnes",
|
|
747
|
+
suggestions: "Personnes",
|
|
748
|
+
addEmail: (email) => `Ajouter ${email}`,
|
|
732
749
|
invalidEmail: "Saisissez une adresse e-mail, par exemple collegue@example.com.",
|
|
733
|
-
|
|
750
|
+
notFound: "Personne dans le projet ne correspond. Saisissez plutôt son e-mail.",
|
|
751
|
+
unstage: (name) => `Ne pas ajouter ${name}`,
|
|
734
752
|
warning:
|
|
735
|
-
"
|
|
753
|
+
"Elles verront tout le fil, maintenant et ensuite, y compris les données que l’agent a lues avec vos accès et qu’elles ne voient pas d’habitude.",
|
|
736
754
|
confirm: (people) => `Partager avec ${count(people, "personne")}`,
|
|
737
755
|
sharing: "Partage…",
|
|
738
756
|
shareRefused:
|
|
739
|
-
"Impossible de les ajouter :
|
|
740
|
-
shareFailed: "Impossible de partager
|
|
757
|
+
"Impossible de les ajouter : chacun doit être un membre actif autre que vous, dans la limite de 50 personnes.",
|
|
758
|
+
shareFailed: "Impossible de partager ce fil.",
|
|
741
759
|
staged: "Personnes à ajouter",
|
|
742
|
-
leave: "Quitter
|
|
743
|
-
leaveTitle: "Quitter
|
|
760
|
+
leave: "Quitter le fil",
|
|
761
|
+
leaveTitle: "Quitter ce fil ?",
|
|
744
762
|
leaveDescription: (owner) =>
|
|
745
|
-
`Vous ne
|
|
746
|
-
leaveFailed: "Impossible de quitter
|
|
763
|
+
`Vous ne le verrez plus, ni ses nouveaux messages. ${owner} peut vous ajouter à nouveau.`,
|
|
764
|
+
leaveFailed: "Impossible de quitter ce fil. Réessayez.",
|
|
747
765
|
cancel: "Annuler",
|
|
748
766
|
close: "Fermer",
|
|
749
|
-
sharedBy: (owner) => `
|
|
767
|
+
sharedBy: (owner) => `Fil de ${owner}`,
|
|
750
768
|
answering: (name) => `L’agent répond à ${name}…`,
|
|
751
|
-
continueMine: "Continuer dans
|
|
769
|
+
continueMine: "Continuer dans mon propre fil",
|
|
752
770
|
continuing: "Copie…",
|
|
753
|
-
continueHint: "Une copie des messages terminés,
|
|
754
|
-
forkFailed: "Impossible de copier
|
|
771
|
+
continueHint: "Une copie des messages terminés, rien qu’à vous.",
|
|
772
|
+
forkFailed: "Impossible de copier ce fil. Réessayez.",
|
|
755
773
|
sharedWith: (names) =>
|
|
756
774
|
names.length === 1
|
|
757
|
-
? `
|
|
775
|
+
? `Partagé avec ${names[0]}`
|
|
758
776
|
: names.length === 2
|
|
759
|
-
? `
|
|
760
|
-
: `
|
|
761
|
-
removed: (name) => `${name} ne fait plus partie
|
|
762
|
-
left: "Vous avez quitté
|
|
763
|
-
copied: "
|
|
777
|
+
? `Partagé avec ${names[0]} et ${names[1]}`
|
|
778
|
+
: `Partagé avec ${number(names.length)} personnes`,
|
|
779
|
+
removed: (name) => `${name} ne fait plus partie du fil`,
|
|
780
|
+
left: "Vous avez quitté le fil",
|
|
781
|
+
copied: "Copié dans vos fils",
|
|
764
782
|
},
|
|
765
783
|
approvalModes: {
|
|
766
|
-
title: "
|
|
767
|
-
chip: (mode) => `
|
|
768
|
-
changed: (mode) => `
|
|
769
|
-
shortcut: "Maj+Tab dans un message vide
|
|
784
|
+
title: "Que peut faire l’agent sans demander ?",
|
|
785
|
+
chip: (mode) => `Autorisations : ${mode}. Les changer`,
|
|
786
|
+
changed: (mode) => `Autorisations : ${mode}`,
|
|
787
|
+
shortcut: "Maj+Tab dans un message vide passe au mode suivant",
|
|
770
788
|
modes: {
|
|
771
789
|
manual: {
|
|
772
790
|
label: "Manuel",
|
|
773
|
-
short: "Manuel",
|
|
774
791
|
description: "Demande avant chaque action ou workflow que l’agent lance",
|
|
775
792
|
},
|
|
776
793
|
"accept-edits": {
|
|
777
794
|
label: "Modifications acceptées",
|
|
778
|
-
short: "Modifs",
|
|
779
795
|
description:
|
|
780
796
|
"Modifie vos données sans demander. Demande avant de contacter d’autres systèmes ou de lancer un workflow",
|
|
781
797
|
},
|
|
782
798
|
auto: {
|
|
783
799
|
label: "Auto",
|
|
784
|
-
short: "Auto",
|
|
785
800
|
description: "Lance toutes les actions et tous les workflows sans demander",
|
|
786
801
|
},
|
|
787
802
|
},
|
|
788
|
-
makeDefault: "En faire mon choix par défaut",
|
|
789
|
-
isDefault: "Votre choix par défaut",
|
|
790
803
|
saveFailed: "Impossible de changer ce que l’agent peut faire. Réessayez.",
|
|
791
804
|
},
|
|
792
805
|
approvals: {
|
|
@@ -799,45 +812,42 @@ export const fr: Translation<AgentMessages> = {
|
|
|
799
812
|
approving: "Approbation…",
|
|
800
813
|
deny: "Refuser",
|
|
801
814
|
denying: "Refus…",
|
|
802
|
-
alwaysAllow:
|
|
815
|
+
alwaysAllow: "Toujours autoriser",
|
|
816
|
+
alwaysAllowAll: "Tout autoriser désormais",
|
|
817
|
+
alwaysAllowHint: (mode) =>
|
|
818
|
+
`Approuve cette demande, puis règle cette conversation sur « ${mode} »`,
|
|
803
819
|
alwaysAllowAlso: (others) =>
|
|
804
820
|
others === 1
|
|
805
821
|
? "Approuve aussi une autre demande en attente dans cette réponse."
|
|
806
822
|
: `Approuve aussi ${number(others)} autres demandes en attente dans cette réponse.`,
|
|
807
|
-
modeRaised: (mode) => `
|
|
823
|
+
modeRaised: (mode) => `Cette conversation est désormais réglée sur « ${mode} ».`,
|
|
808
824
|
approved: "Approuvé",
|
|
809
|
-
ran: "Exécuté",
|
|
810
825
|
running: "Exécution…",
|
|
811
826
|
failed: "Approuvé, mais en échec",
|
|
812
827
|
notRun: "Approuvé, mais non exécuté",
|
|
813
828
|
authorityLost:
|
|
814
829
|
"La connexion qui l’a demandé a pris fin avant l’exécution. Redemandez à l’agent.",
|
|
815
830
|
denied: "Refusé",
|
|
816
|
-
deniedDetail: "Non exécuté",
|
|
817
831
|
superseded: "Mis de côté",
|
|
818
|
-
supersededDetail:
|
|
819
|
-
"Un nouveau message a fait avancer la conversation avant. Rien n’a été exécuté.",
|
|
832
|
+
supersededDetail: "Non exécuté : un message plus récent est passé avant.",
|
|
820
833
|
cancelled: "Arrêté",
|
|
821
834
|
cancelledDetail: "La réponse a été arrêtée. Rien n’a été exécuté.",
|
|
822
835
|
expired: "Expiré",
|
|
823
836
|
expiredDetail: (days) => `Personne n’a décidé en ${count(days, "jour")}. Rien n’a été exécuté.`,
|
|
824
837
|
askedForApproval: "Approbation demandée",
|
|
825
|
-
fromSubagent: (
|
|
838
|
+
fromSubagent: (name: string) => `De ${name}`,
|
|
826
839
|
effects: {
|
|
827
|
-
ontology: "
|
|
828
|
-
|
|
840
|
+
ontology: "Ne modifie que des données de cette app",
|
|
841
|
+
writeback: "Met aussi à jour le système d’où vient cet enregistrement",
|
|
842
|
+
external: "Agit aussi en dehors de cette app",
|
|
829
843
|
workflow: (name) => `Démarre le workflow ${quoted(name)}`,
|
|
830
844
|
},
|
|
831
845
|
noInput: "Aucun détail à vérifier",
|
|
832
|
-
showInput: "Voir les détails",
|
|
833
|
-
hideInput: "Masquer les détails",
|
|
834
|
-
viewRun: "Voir l’exécution",
|
|
835
846
|
stopWaiting: "Ne plus attendre",
|
|
836
847
|
stoppingWaiting: "Arrêt…",
|
|
837
848
|
stopWaitingHint:
|
|
838
849
|
"Met de côté toutes les demandes que cette réponse attend. Elle ne reprendra pas.",
|
|
839
850
|
stopFailed: "Impossible d’arrêter l’attente. Réessayez.",
|
|
840
|
-
open: (name) => `Ouvrir ${name}`,
|
|
841
851
|
resume: {
|
|
842
852
|
retrying: "L’agent reprendra dès que possible.",
|
|
843
853
|
refused: "L’agent n’a pas pu continuer. Envoyez un message pour reprendre d’ici.",
|
|
@@ -850,8 +860,7 @@ export const fr: Translation<AgentMessages> = {
|
|
|
850
860
|
composerPlaceholder: "Approuvez ci-dessus, ou répondez",
|
|
851
861
|
setsAside: (name) =>
|
|
852
862
|
`Envoyer maintenant met de côté la demande de ${name} en attente d’approbation.`,
|
|
853
|
-
waitingThreads: (waiting) =>
|
|
854
|
-
`${count(waiting, "conversation")} en attente de votre approbation`,
|
|
863
|
+
waitingThreads: (waiting) => `${count(waiting, "fil")} en attente de votre approbation`,
|
|
855
864
|
threadWaiting: "En attente de vous",
|
|
856
865
|
},
|
|
857
866
|
observed: {
|
|
@@ -10,7 +10,9 @@ import {
|
|
|
10
10
|
} from "../artifacts/target"
|
|
11
11
|
import { AgentChat, type AgentChatProps } from "./agent-chat"
|
|
12
12
|
import { useRegisteredAgentContext } from "./agent-context-provider"
|
|
13
|
+
import { AgentThreads } from "./components/agent-threads"
|
|
13
14
|
import { useAgentMessages } from "./i18n"
|
|
15
|
+
import { THREADS_PATH, threadPath } from "./thread-navigation"
|
|
14
16
|
|
|
15
17
|
export type { AgentFileRef } from "./types"
|
|
16
18
|
|
|
@@ -22,8 +24,12 @@ export interface AgentChatPageProps
|
|
|
22
24
|
readonly routeBase?: string
|
|
23
25
|
}
|
|
24
26
|
|
|
27
|
+
/**
|
|
28
|
+
* One conversation on a page of its own, at `${routeBase}/:threadId`. A new conversation starts at
|
|
29
|
+
* the app's home, and the page of every conversation is `routeBase` itself.
|
|
30
|
+
*/
|
|
25
31
|
export function AgentChatPage({
|
|
26
|
-
routeBase =
|
|
32
|
+
routeBase = THREADS_PATH,
|
|
27
33
|
className,
|
|
28
34
|
ambientContext,
|
|
29
35
|
conversationHeaderActions,
|
|
@@ -49,16 +55,20 @@ export function AgentChatPage({
|
|
|
49
55
|
)
|
|
50
56
|
|
|
51
57
|
const onNavigateHome = useCallback(() => {
|
|
52
|
-
navigate(
|
|
53
|
-
}, [navigate
|
|
58
|
+
navigate("/")
|
|
59
|
+
}, [navigate])
|
|
54
60
|
|
|
55
61
|
const onNavigateThread = useCallback(
|
|
56
62
|
(threadId: string) => {
|
|
57
|
-
navigate(
|
|
63
|
+
navigate(threadPathUnder(normalizedRouteBase, threadId))
|
|
58
64
|
},
|
|
59
65
|
[navigate, normalizedRouteBase]
|
|
60
66
|
)
|
|
61
67
|
|
|
68
|
+
const onOpenThreads = useCallback(() => {
|
|
69
|
+
navigate(normalizedRouteBase)
|
|
70
|
+
}, [navigate, normalizedRouteBase])
|
|
71
|
+
|
|
62
72
|
return (
|
|
63
73
|
<section className="fixed inset-0 z-50 flex h-dvh min-h-0 overflow-hidden bg-background text-foreground">
|
|
64
74
|
<AgentChat
|
|
@@ -67,6 +77,7 @@ export function AgentChatPage({
|
|
|
67
77
|
threadId={routeThreadId ?? null}
|
|
68
78
|
onNavigateHome={onNavigateHome}
|
|
69
79
|
onNavigateThread={onNavigateThread}
|
|
80
|
+
onOpenThreads={onOpenThreads}
|
|
70
81
|
artifactTarget={artifactTarget}
|
|
71
82
|
onArtifactTargetChange={onArtifactTargetChange}
|
|
72
83
|
conversationHeaderActions={
|
|
@@ -97,7 +108,39 @@ function normalizeRouteBase(routeBase: string): string {
|
|
|
97
108
|
return withLeadingSlash.replace(/\/+$/, "") || "/"
|
|
98
109
|
}
|
|
99
110
|
|
|
100
|
-
|
|
111
|
+
/**
|
|
112
|
+
* Every conversation, on a page of its own beside the chat: search them, open one, or start
|
|
113
|
+
* another.
|
|
114
|
+
*/
|
|
115
|
+
export function AgentThreadsPage() {
|
|
116
|
+
const messages = useAgentMessages().surface
|
|
117
|
+
const navigate = useNavigate()
|
|
118
|
+
|
|
119
|
+
return (
|
|
120
|
+
<section className="fixed inset-0 z-50 flex h-dvh min-h-0 flex-col overflow-hidden bg-background text-foreground">
|
|
121
|
+
<AgentThreads
|
|
122
|
+
className="min-h-0 flex-1"
|
|
123
|
+
onSelectThread={(threadId) => navigate(threadPath(threadId))}
|
|
124
|
+
onNewThread={() => navigate("/")}
|
|
125
|
+
headerActions={
|
|
126
|
+
<Button
|
|
127
|
+
type="button"
|
|
128
|
+
variant="ghost"
|
|
129
|
+
size="icon-lg"
|
|
130
|
+
aria-label={messages.backToApp}
|
|
131
|
+
title={messages.backToApp}
|
|
132
|
+
onClick={() => navigate("/")}
|
|
133
|
+
className="-ml-2"
|
|
134
|
+
>
|
|
135
|
+
<ArrowLeft />
|
|
136
|
+
</Button>
|
|
137
|
+
}
|
|
138
|
+
/>
|
|
139
|
+
</section>
|
|
140
|
+
)
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function threadPathUnder(routeBase: string, threadId: string): string {
|
|
101
144
|
const encoded = encodeURIComponent(threadId)
|
|
102
145
|
return routeBase === "/" ? `/${encoded}` : `${routeBase}/${encoded}`
|
|
103
146
|
}
|
|
@@ -44,13 +44,16 @@ export function isContinuableDiagnostic(code: string): boolean {
|
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Whether the conversation offers Continue: a turn cut short with its progress saved, or, once
|
|
47
|
-
* nothing runs, a newest answer
|
|
47
|
+
* nothing runs, a newest answer that stopped short of finishing — by its diagnostic, or because its
|
|
48
|
+
* run failed after saving it.
|
|
48
49
|
*/
|
|
49
50
|
export function offersContinue(input: {
|
|
50
51
|
readonly presentation: ActiveTurnPresentation
|
|
51
52
|
readonly isRunning: boolean
|
|
52
53
|
readonly sandboxRecovery: boolean
|
|
53
54
|
readonly messages: readonly AgentMessage[]
|
|
55
|
+
/** The newest run in the thread's history. */
|
|
56
|
+
readonly latestRun?: AgentRun | null
|
|
54
57
|
}): boolean {
|
|
55
58
|
const { presentation } = input
|
|
56
59
|
if (input.sandboxRecovery) return false
|
|
@@ -62,7 +65,8 @@ export function offersContinue(input: {
|
|
|
62
65
|
presentation.kind === "idle" &&
|
|
63
66
|
!input.isRunning &&
|
|
64
67
|
latest?.role === "assistant" &&
|
|
65
|
-
latest.annotations.some((annotation) => isContinuableDiagnostic(annotation.code))
|
|
68
|
+
(latest.annotations.some((annotation) => isContinuableDiagnostic(annotation.code)) ||
|
|
69
|
+
(input.latestRun?.status === "failed" && latest.runId === input.latestRun.id))
|
|
66
70
|
)
|
|
67
71
|
}
|
|
68
72
|
|
|
@@ -9,3 +9,19 @@ export function agentThreadTitle(
|
|
|
9
9
|
): string {
|
|
10
10
|
return thread?.title?.trim() || (thread ? messages.untitled : messages.new)
|
|
11
11
|
}
|
|
12
|
+
|
|
13
|
+
/** The app's page of every thread; each thread opens beneath it. */
|
|
14
|
+
export const THREADS_PATH = "/threads"
|
|
15
|
+
|
|
16
|
+
export function threadPath(threadId: string): string {
|
|
17
|
+
return `${THREADS_PATH}/${encodeURIComponent(threadId)}`
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The page a stored thread link opens. Memory saves name the thread they came from as
|
|
22
|
+
* `/agents/<threadId>`, the form core checks them against; this links straight to its page.
|
|
23
|
+
*/
|
|
24
|
+
export function threadPathFromLink(link: string): string {
|
|
25
|
+
const legacy = /^\/agents\/([^/?#]+)$/.exec(link)
|
|
26
|
+
return legacy?.[1] ? threadPath(decodeURIComponent(legacy[1])) : link
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElement } from "react"
|
|
2
|
+
import { Navigate, useParams } from "react-router-dom"
|
|
3
|
+
import { AgentChatPage, type AgentChatPageProps, AgentThreadsPage } from "./react-router"
|
|
4
|
+
import { THREADS_PATH, threadPath } from "./thread-navigation"
|
|
5
|
+
|
|
6
|
+
/** The framework's `/threads/:threadId` route: one thread, full page. */
|
|
7
|
+
export function ThreadPage(props: Omit<AgentChatPageProps, "routeBase">) {
|
|
8
|
+
return createElement(AgentChatPage, props)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** The framework's `/threads` route: every thread, to search and open. */
|
|
12
|
+
export const ThreadsPage = AgentThreadsPage
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Threads used to open at `/agents/:threadId`, and memory saves still name their thread that way:
|
|
16
|
+
* those links open the thread at its page.
|
|
17
|
+
*/
|
|
18
|
+
export function AgentThreadRedirect() {
|
|
19
|
+
const { threadId } = useParams()
|
|
20
|
+
return createElement(Navigate, {
|
|
21
|
+
to: threadId ? threadPath(threadId) : THREADS_PATH,
|
|
22
|
+
replace: true,
|
|
23
|
+
})
|
|
24
|
+
}
|
|
@@ -2,7 +2,7 @@ import { Avatar, AvatarFallback } from "@sixb/ui/components"
|
|
|
2
2
|
import { cn } from "@sixb/ui/lib/utils"
|
|
3
3
|
|
|
4
4
|
const SIZES = {
|
|
5
|
-
xs: { root: "size-
|
|
5
|
+
xs: { root: "size-5", text: "text-[9px]" },
|
|
6
6
|
sm: { root: "size-6", text: "text-[9px]" },
|
|
7
7
|
md: { root: "size-8", text: "text-xs" },
|
|
8
8
|
} as const
|
package/src/createCustomApp.ts
CHANGED
|
@@ -88,7 +88,6 @@ export interface CustomAppInstance {
|
|
|
88
88
|
type BunServeRoutes = NonNullable<Parameters<typeof Bun.serve>[0]["routes"]>
|
|
89
89
|
type BunServeRoute = BunServeRoutes[string]
|
|
90
90
|
const packageRoot = resolve(import.meta.dir, "..")
|
|
91
|
-
const builtInAgentRoutePaths = ["/agents", "/agents/new/:agentId", "/agents/:threadId"] as const
|
|
92
91
|
// The shell parts a layout imports from `@sixb/app` style themselves with the same Tailwind build.
|
|
93
92
|
const shellSourcePath = join(packageRoot, "src", "shell")
|
|
94
93
|
const builtInPageModule = "@sixb/app/pages"
|
|
@@ -730,12 +729,20 @@ export class AppPackagesMissingError extends Error {
|
|
|
730
729
|
function builtInRoutesFor(routes: readonly PageRoute[]): BuiltInRouteManifestEntry[] {
|
|
731
730
|
const projectRoutePatterns = new Set(routes.map((route) => routePatternKey(route.path)))
|
|
732
731
|
const builtInRoutes: BuiltInRouteManifestEntry[] = [
|
|
733
|
-
|
|
734
|
-
|
|
732
|
+
{ path: "/threads", moduleSpecifier: builtInPageModule, exportName: "ThreadsPage" },
|
|
733
|
+
{
|
|
734
|
+
path: "/threads/:threadId",
|
|
735
735
|
moduleSpecifier: builtInPageModule,
|
|
736
|
-
exportName: "
|
|
737
|
-
}
|
|
738
|
-
|
|
736
|
+
exportName: "ThreadPage",
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
path: "/agents/:threadId",
|
|
740
|
+
moduleSpecifier: builtInPageModule,
|
|
741
|
+
exportName: "AgentThreadRedirect",
|
|
742
|
+
// It only sends the reader on; the conversation it opens records the view.
|
|
743
|
+
recordsActivity: false,
|
|
744
|
+
},
|
|
745
|
+
// Home starts threads that continue under /threads, so it ships with them.
|
|
739
746
|
{ path: "/", moduleSpecifier: builtInPageModule, exportName: "HomePage" },
|
|
740
747
|
// Every object has a page, outside any section: grants decide who reads it.
|
|
741
748
|
{
|
package/src/index.ts
CHANGED
|
@@ -35,9 +35,9 @@ export {
|
|
|
35
35
|
type AgentToolPartProps,
|
|
36
36
|
} from "./agent/components/agent-message-body"
|
|
37
37
|
export {
|
|
38
|
-
|
|
39
|
-
type
|
|
40
|
-
} from "./agent/components/agent-
|
|
38
|
+
AgentThreads,
|
|
39
|
+
type AgentThreadsProps,
|
|
40
|
+
} from "./agent/components/agent-threads"
|
|
41
41
|
export { Composer, type ComposerProps } from "./agent/components/composer"
|
|
42
42
|
export { ContextChips, type ContextChipsProps } from "./agent/components/context-chips"
|
|
43
43
|
export {
|
|
@@ -53,6 +53,10 @@ export {
|
|
|
53
53
|
} from "./agent/components/reasoning-effort-slider"
|
|
54
54
|
export { SandboxRecovery, type SandboxRecoveryProps } from "./agent/components/sandbox-recovery"
|
|
55
55
|
export { ThreadArtifactsMenu } from "./agent/components/thread-artifacts-menu"
|
|
56
|
+
export {
|
|
57
|
+
ThreadsButton,
|
|
58
|
+
type ThreadsButtonProps,
|
|
59
|
+
} from "./agent/components/threads-button"
|
|
56
60
|
export { Transcript, type TranscriptProps } from "./agent/components/transcript"
|
|
57
61
|
export type {
|
|
58
62
|
AgentConversationAuthor,
|