@sixb/app 0.1.14 → 0.1.15
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/{chunk-vtp6nk44.js → chunk-736c9akn.js} +1 -1
- package/dist/{chunk-1rhht9y0.js → chunk-n0cxwvej.js} +1 -1
- package/dist/{chunk-0yb22w6m.js → chunk-qh1panvd.js} +1 -1
- package/dist/{chunk-aes17xmx.js → chunk-twjs2sb9.js} +3928 -3717
- package/dist/{chunk-aes17xmx.js.map → chunk-twjs2sb9.js.map} +46 -42
- package/dist/index.js +15 -6
- package/dist/index.js.map +6 -6
- 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/package.json +3 -3
- package/src/agent/agent-chat.tsx +4 -22
- package/src/agent/agent-panel.tsx +4 -0
- package/src/agent/agent-surface.tsx +4 -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 +38 -43
- package/src/agent/components/context-chips.tsx +1 -1
- package/src/agent/components/conversation-panel.tsx +16 -36
- 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/hooks/use-agent-conversation.ts +7 -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 +96 -83
- package/src/agent/i18n/fr.ts +105 -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/src/agent/agents-page.ts +0 -7
- package/src/agent/components/agent-thread-switcher.tsx +0 -519
- /package/dist/{chunk-vtp6nk44.js.map → chunk-736c9akn.js.map} +0 -0
- /package/dist/{chunk-1rhht9y0.js.map → chunk-n0cxwvej.js.map} +0 -0
- /package/dist/{chunk-0yb22w6m.js.map → chunk-qh1panvd.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",
|
|
@@ -105,7 +105,6 @@ export const fr: Translation<AgentMessages> = {
|
|
|
105
105
|
empty: "Aucun modèle correspondant.",
|
|
106
106
|
default: "Par défaut",
|
|
107
107
|
defaultSummary: (summary) => `Par défaut · ${summary}`,
|
|
108
|
-
resetToDefault: "Réinitialiser",
|
|
109
108
|
details: (name) => `Détails sur ${name}`,
|
|
110
109
|
contextWindow: "Fenêtre de contexte",
|
|
111
110
|
tokens: (tokens) => count(tokens, "jeton"),
|
|
@@ -119,9 +118,8 @@ export const fr: Translation<AgentMessages> = {
|
|
|
119
118
|
title: "Modèle",
|
|
120
119
|
chip: (name) => `Modèle : ${name}. Le changer`,
|
|
121
120
|
auto: "Auto",
|
|
122
|
-
autoRouting: "
|
|
121
|
+
autoRouting: "Choisit le bon modèle pour chaque message",
|
|
123
122
|
autoStandard: (name) => `Sixb utilise ${name}`,
|
|
124
|
-
backToAuto: "Revenir à Auto",
|
|
125
123
|
},
|
|
126
124
|
reasoning: {
|
|
127
125
|
thinking: "Réflexion",
|
|
@@ -139,48 +137,43 @@ export const fr: Translation<AgentMessages> = {
|
|
|
139
137
|
max: "Maximal",
|
|
140
138
|
},
|
|
141
139
|
descriptions: {
|
|
142
|
-
"provider-default": "
|
|
140
|
+
"provider-default": "Le modèle décide combien réfléchir",
|
|
143
141
|
none: "Répondre sans raisonnement approfondi",
|
|
144
142
|
minimal: "Plus rapide pour les tâches simples",
|
|
145
|
-
low: "
|
|
146
|
-
medium: "
|
|
147
|
-
high: "
|
|
148
|
-
xhigh: "
|
|
149
|
-
max: "
|
|
143
|
+
low: "Réponses plus rapides et plus légères",
|
|
144
|
+
medium: "Équilibre entre rapidité et soin",
|
|
145
|
+
high: "Réponses plus lentes et plus soignées",
|
|
146
|
+
xhigh: "Réponses très soignées, encore plus lentes",
|
|
147
|
+
max: "Les réponses les plus soignées, et les plus lentes",
|
|
150
148
|
},
|
|
151
149
|
},
|
|
152
150
|
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
151
|
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: "
|
|
152
|
+
working: "En cours",
|
|
153
|
+
title: "Fils de discussion",
|
|
154
|
+
new: "Nouveau fil",
|
|
155
|
+
search: "Rechercher un fil",
|
|
156
|
+
clearSearch: "Effacer la recherche",
|
|
157
|
+
searchLabel: (agent) => `Rechercher dans les fils avec ${agent}`,
|
|
158
|
+
filter: "Filtrer les fils",
|
|
159
|
+
all: "Tous",
|
|
160
|
+
archivedFilter: (archived) => `Archivés ${number(archived)}`,
|
|
161
|
+
archived: "Archivé",
|
|
162
|
+
messageCount: (messages) => count(messages, "message"),
|
|
163
|
+
open: "Tous les fils",
|
|
168
164
|
sharedFilter: (shared) =>
|
|
169
|
-
shared > 0 ? `
|
|
170
|
-
sharedEmpty: "Les
|
|
171
|
-
sharedBy: (owner, messages) => `${owner} · ${count(messages, "message")}`,
|
|
172
|
-
current: "Actuelle",
|
|
173
|
-
currentState: "actuelle",
|
|
165
|
+
shared > 0 ? `Partagés avec moi ${number(shared)}` : "Partagés avec moi",
|
|
166
|
+
sharedEmpty: "Les fils que d’autres partagent avec vous apparaissent ici.",
|
|
174
167
|
today: "Aujourd’hui",
|
|
175
168
|
yesterday: "Hier",
|
|
176
169
|
thisWeek: "Cette semaine",
|
|
177
|
-
older: "Plus
|
|
178
|
-
loadMoreFailed: "Impossible de charger plus de
|
|
170
|
+
older: "Plus anciens",
|
|
171
|
+
loadMoreFailed: "Impossible de charger plus de fils. Réessayez.",
|
|
179
172
|
loading: "Chargement…",
|
|
180
|
-
loadMore: "Afficher plus de
|
|
181
|
-
empty: "
|
|
182
|
-
|
|
183
|
-
untitled: "
|
|
173
|
+
loadMore: "Afficher plus de fils",
|
|
174
|
+
empty: "Aucun fil correspondant.",
|
|
175
|
+
none: "Vos fils avec l’assistant apparaissent ici.",
|
|
176
|
+
untitled: "Fil sans titre",
|
|
184
177
|
},
|
|
185
178
|
time: {
|
|
186
179
|
now: "à l’instant",
|
|
@@ -198,7 +191,7 @@ export const fr: Translation<AgentMessages> = {
|
|
|
198
191
|
stopped: "Arrêté.",
|
|
199
192
|
stoppedAtLimit: (limit) => `Arrêté après avoir atteint ${limit}.`,
|
|
200
193
|
limitBeforeAnswer: (limit) => `La réponse a atteint ${limit} avant d’aboutir.`,
|
|
201
|
-
turnLimit: "la durée maximale
|
|
194
|
+
turnLimit: "la durée maximale",
|
|
202
195
|
turnLimitOf: (amount, unit) => `la durée maximale de ${count(amount, DURATION_UNITS[unit])}`,
|
|
203
196
|
continue: "Continuer",
|
|
204
197
|
continuing: "Reprise…",
|
|
@@ -235,7 +228,6 @@ export const fr: Translation<AgentMessages> = {
|
|
|
235
228
|
answeredAgentShort: (key) => `Réponse envoyée à ${key}`,
|
|
236
229
|
agentAsks: (key, text) => `${key} demande : ${text}`,
|
|
237
230
|
messageAgentFailed: (key) => `Impossible d’envoyer un message à ${key}`,
|
|
238
|
-
worked: "Travail effectué",
|
|
239
231
|
reasoning: "Raisonnement",
|
|
240
232
|
steps: (steps) => count(steps, "étape"),
|
|
241
233
|
searchFailedHint: "La recherche web a échoué. Voir le détail du travail.",
|
|
@@ -251,8 +243,6 @@ export const fr: Translation<AgentMessages> = {
|
|
|
251
243
|
group: "Sous-agents de cette réponse",
|
|
252
244
|
count: (agents) => count(agents, "sous-agent"),
|
|
253
245
|
working: (agents) => `${number(agents)} en cours`,
|
|
254
|
-
waitingYou: (agents) =>
|
|
255
|
-
`${number(agents)} ${plural("fr", agents, { one: "vous attend", other: "vous attendent" })}`,
|
|
256
246
|
waitingOn: (agents, name) =>
|
|
257
247
|
`${number(agents)} ${plural("fr", agents, { one: "attend", other: "attendent" })} ${name}`,
|
|
258
248
|
waitingOthers: (agents) => `${number(agents)} en attente`,
|
|
@@ -289,15 +279,10 @@ export const fr: Translation<AgentMessages> = {
|
|
|
289
279
|
fromAgent: "L’agent a dit",
|
|
290
280
|
asks: "A demandé",
|
|
291
281
|
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}`,
|
|
282
|
+
answerHint: "Votre prochain message lui répond.",
|
|
297
283
|
close: "Fermer",
|
|
298
284
|
viewRequest: "Voir sa demande plus bas",
|
|
299
285
|
stepsLater: "En cours. Ses étapes s’afficheront ici une fois terminé.",
|
|
300
|
-
worked: (duration) => `${duration} de travail`,
|
|
301
286
|
stop: "Arrêter",
|
|
302
287
|
stopLabel: (title) => `Arrêter ${title}`,
|
|
303
288
|
stopFailed: "Impossible de l’arrêter. Réessayez.",
|
|
@@ -311,7 +296,7 @@ export const fr: Translation<AgentMessages> = {
|
|
|
311
296
|
loadingWork: "Chargement de son travail…",
|
|
312
297
|
loadFailed: "Impossible de charger son travail.",
|
|
313
298
|
elsewhere: "Son travail se trouve dans la conversation d’origine.",
|
|
314
|
-
tiers: { light: "
|
|
299
|
+
tiers: { light: "Rapide", standard: "Équilibré", heavy: "Approfondi" },
|
|
315
300
|
seconds: (seconds) => `${number(seconds)} s`,
|
|
316
301
|
minutes: (minutes, seconds) =>
|
|
317
302
|
seconds === 0 ? `${number(minutes)} min` : `${number(minutes)} min ${number(seconds)} s`,
|
|
@@ -326,6 +311,31 @@ export const fr: Translation<AgentMessages> = {
|
|
|
326
311
|
heardFrom: (key) => `Réponse de ${key}`,
|
|
327
312
|
heardFromCount: (agents) => `Réponses de ${count(agents, "sous-agent")}`,
|
|
328
313
|
waitFailed: "Impossible d’attendre les sous-agents",
|
|
314
|
+
line: {
|
|
315
|
+
names: (names) =>
|
|
316
|
+
names.length <= 1
|
|
317
|
+
? (names[0] ?? "")
|
|
318
|
+
: names.length <= 3
|
|
319
|
+
? `${names.slice(0, -1).join(", ")} et ${names.at(-1)}`
|
|
320
|
+
: `${names.slice(0, 2).join(", ")} et ${number(names.length - 2)} autres`,
|
|
321
|
+
starting: (agents) => (agents === 1 ? "démarre" : "démarrent"),
|
|
322
|
+
working: (agents) => (agents === 1 ? "travaille" : "travaillent"),
|
|
323
|
+
asking: (agents) => (agents === 1 ? "interroge l’agent" : "interrogent l’agent"),
|
|
324
|
+
approval: (agents) =>
|
|
325
|
+
agents === 1 ? "attend votre approbation" : "attendent votre approbation",
|
|
326
|
+
answer: (agents) =>
|
|
327
|
+
agents === 1 ? "a une question pour vous" : "ont une question pour vous",
|
|
328
|
+
waitingOn: (agents, name) => `${agents === 1 ? "attend" : "attendent"} ${name}`,
|
|
329
|
+
waiting: (agents) => (agents === 1 ? "attend" : "attendent"),
|
|
330
|
+
later: (agents) => (agents === 1 ? "reprendra plus tard" : "reprendront plus tard"),
|
|
331
|
+
done: (agents) => (agents === 1 ? "a terminé" : "ont terminé"),
|
|
332
|
+
failed: (agents) => (agents === 1 ? "n’a pas pu terminer" : "n’ont pas pu terminer"),
|
|
333
|
+
stopped: (agents) => (agents === 1 ? "a été arrêté" : "ont été arrêtés"),
|
|
334
|
+
},
|
|
335
|
+
panel: (agents) => count(agents, "sous-agent"),
|
|
336
|
+
back: "Tous les sous-agents",
|
|
337
|
+
task: "Sa tâche",
|
|
338
|
+
open: (names) => `Ouvrir ${names}`,
|
|
329
339
|
askedAgent: (question) => `Question à l’agent : ${question}`,
|
|
330
340
|
},
|
|
331
341
|
web: {
|
|
@@ -692,6 +702,7 @@ export const fr: Translation<AgentMessages> = {
|
|
|
692
702
|
title ? `Impossible de publier ${title}` : "Impossible de publier l’artefact",
|
|
693
703
|
open: (title) => `Ouvrir ${title}`,
|
|
694
704
|
cards: "Publié dans cette réponse",
|
|
705
|
+
close: "Fermer",
|
|
695
706
|
},
|
|
696
707
|
memory: {
|
|
697
708
|
saved: (project) =>
|
|
@@ -713,80 +724,78 @@ export const fr: Translation<AgentMessages> = {
|
|
|
713
724
|
`${owner} est la seule personne à pouvoir faire repartir cette conversation d’un nouvel environnement.`,
|
|
714
725
|
},
|
|
715
726
|
sharing: {
|
|
716
|
-
share: "Partager
|
|
727
|
+
share: "Partager le fil",
|
|
717
728
|
shareShort: "Partager",
|
|
718
729
|
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.",
|
|
730
|
+
people: (people) => `${count(people, "personne")} dans ce fil`,
|
|
731
|
+
shareTitle: "Partager le fil",
|
|
732
|
+
peopleTitle: "Personnes dans ce fil",
|
|
733
|
+
description: "Chaque personne ici lit tout le fil et interroge l’agent avec ses propres accès.",
|
|
734
|
+
inThread: "Dans ce fil",
|
|
726
735
|
owner: "Propriétaire",
|
|
727
736
|
you: "Vous",
|
|
728
737
|
remove: (name) => `Retirer ${name}`,
|
|
729
738
|
removeFailed: "Impossible de retirer cette personne. Réessayez.",
|
|
730
|
-
|
|
731
|
-
|
|
739
|
+
addLabel: "Ajouter des personnes",
|
|
740
|
+
addPlaceholder: "Ajouter des personnes par nom ou e-mail",
|
|
741
|
+
addByEmail: "Ajouter des personnes par e-mail",
|
|
742
|
+
addMore: "Ajouter d’autres personnes",
|
|
743
|
+
suggestions: "Personnes",
|
|
744
|
+
addEmail: (email) => `Ajouter ${email}`,
|
|
732
745
|
invalidEmail: "Saisissez une adresse e-mail, par exemple collegue@example.com.",
|
|
733
|
-
|
|
746
|
+
notFound: "Personne dans le projet ne correspond. Saisissez plutôt son e-mail.",
|
|
747
|
+
unstage: (name) => `Ne pas ajouter ${name}`,
|
|
734
748
|
warning:
|
|
735
|
-
"
|
|
749
|
+
"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
750
|
confirm: (people) => `Partager avec ${count(people, "personne")}`,
|
|
737
751
|
sharing: "Partage…",
|
|
738
752
|
shareRefused:
|
|
739
|
-
"Impossible de les ajouter :
|
|
740
|
-
shareFailed: "Impossible de partager
|
|
753
|
+
"Impossible de les ajouter : chacun doit être un membre actif autre que vous, dans la limite de 50 personnes.",
|
|
754
|
+
shareFailed: "Impossible de partager ce fil.",
|
|
741
755
|
staged: "Personnes à ajouter",
|
|
742
|
-
leave: "Quitter
|
|
743
|
-
leaveTitle: "Quitter
|
|
756
|
+
leave: "Quitter le fil",
|
|
757
|
+
leaveTitle: "Quitter ce fil ?",
|
|
744
758
|
leaveDescription: (owner) =>
|
|
745
|
-
`Vous ne
|
|
746
|
-
leaveFailed: "Impossible de quitter
|
|
759
|
+
`Vous ne le verrez plus, ni ses nouveaux messages. ${owner} peut vous ajouter à nouveau.`,
|
|
760
|
+
leaveFailed: "Impossible de quitter ce fil. Réessayez.",
|
|
747
761
|
cancel: "Annuler",
|
|
748
762
|
close: "Fermer",
|
|
749
|
-
sharedBy: (owner) => `
|
|
763
|
+
sharedBy: (owner) => `Fil de ${owner}`,
|
|
750
764
|
answering: (name) => `L’agent répond à ${name}…`,
|
|
751
|
-
continueMine: "Continuer dans
|
|
765
|
+
continueMine: "Continuer dans mon propre fil",
|
|
752
766
|
continuing: "Copie…",
|
|
753
|
-
continueHint: "Une copie des messages terminés,
|
|
754
|
-
forkFailed: "Impossible de copier
|
|
767
|
+
continueHint: "Une copie des messages terminés, rien qu’à vous.",
|
|
768
|
+
forkFailed: "Impossible de copier ce fil. Réessayez.",
|
|
755
769
|
sharedWith: (names) =>
|
|
756
770
|
names.length === 1
|
|
757
|
-
? `
|
|
771
|
+
? `Partagé avec ${names[0]}`
|
|
758
772
|
: names.length === 2
|
|
759
|
-
? `
|
|
760
|
-
: `
|
|
761
|
-
removed: (name) => `${name} ne fait plus partie
|
|
762
|
-
left: "Vous avez quitté
|
|
763
|
-
copied: "
|
|
773
|
+
? `Partagé avec ${names[0]} et ${names[1]}`
|
|
774
|
+
: `Partagé avec ${number(names.length)} personnes`,
|
|
775
|
+
removed: (name) => `${name} ne fait plus partie du fil`,
|
|
776
|
+
left: "Vous avez quitté le fil",
|
|
777
|
+
copied: "Copié dans vos fils",
|
|
764
778
|
},
|
|
765
779
|
approvalModes: {
|
|
766
|
-
title: "
|
|
767
|
-
chip: (mode) => `
|
|
768
|
-
changed: (mode) => `
|
|
769
|
-
shortcut: "Maj+Tab dans un message vide
|
|
780
|
+
title: "Que peut faire l’agent sans demander ?",
|
|
781
|
+
chip: (mode) => `Autorisations : ${mode}. Les changer`,
|
|
782
|
+
changed: (mode) => `Autorisations : ${mode}`,
|
|
783
|
+
shortcut: "Maj+Tab dans un message vide passe au mode suivant",
|
|
770
784
|
modes: {
|
|
771
785
|
manual: {
|
|
772
786
|
label: "Manuel",
|
|
773
|
-
short: "Manuel",
|
|
774
787
|
description: "Demande avant chaque action ou workflow que l’agent lance",
|
|
775
788
|
},
|
|
776
789
|
"accept-edits": {
|
|
777
790
|
label: "Modifications acceptées",
|
|
778
|
-
short: "Modifs",
|
|
779
791
|
description:
|
|
780
792
|
"Modifie vos données sans demander. Demande avant de contacter d’autres systèmes ou de lancer un workflow",
|
|
781
793
|
},
|
|
782
794
|
auto: {
|
|
783
795
|
label: "Auto",
|
|
784
|
-
short: "Auto",
|
|
785
796
|
description: "Lance toutes les actions et tous les workflows sans demander",
|
|
786
797
|
},
|
|
787
798
|
},
|
|
788
|
-
makeDefault: "En faire mon choix par défaut",
|
|
789
|
-
isDefault: "Votre choix par défaut",
|
|
790
799
|
saveFailed: "Impossible de changer ce que l’agent peut faire. Réessayez.",
|
|
791
800
|
},
|
|
792
801
|
approvals: {
|
|
@@ -799,45 +808,42 @@ export const fr: Translation<AgentMessages> = {
|
|
|
799
808
|
approving: "Approbation…",
|
|
800
809
|
deny: "Refuser",
|
|
801
810
|
denying: "Refus…",
|
|
802
|
-
alwaysAllow:
|
|
811
|
+
alwaysAllow: "Toujours autoriser",
|
|
812
|
+
alwaysAllowAll: "Tout autoriser désormais",
|
|
813
|
+
alwaysAllowHint: (mode) =>
|
|
814
|
+
`Approuve cette demande, puis règle cette conversation sur « ${mode} »`,
|
|
803
815
|
alwaysAllowAlso: (others) =>
|
|
804
816
|
others === 1
|
|
805
817
|
? "Approuve aussi une autre demande en attente dans cette réponse."
|
|
806
818
|
: `Approuve aussi ${number(others)} autres demandes en attente dans cette réponse.`,
|
|
807
|
-
modeRaised: (mode) => `
|
|
819
|
+
modeRaised: (mode) => `Cette conversation est désormais réglée sur « ${mode} ».`,
|
|
808
820
|
approved: "Approuvé",
|
|
809
|
-
ran: "Exécuté",
|
|
810
821
|
running: "Exécution…",
|
|
811
822
|
failed: "Approuvé, mais en échec",
|
|
812
823
|
notRun: "Approuvé, mais non exécuté",
|
|
813
824
|
authorityLost:
|
|
814
825
|
"La connexion qui l’a demandé a pris fin avant l’exécution. Redemandez à l’agent.",
|
|
815
826
|
denied: "Refusé",
|
|
816
|
-
deniedDetail: "Non exécuté",
|
|
817
827
|
superseded: "Mis de côté",
|
|
818
|
-
supersededDetail:
|
|
819
|
-
"Un nouveau message a fait avancer la conversation avant. Rien n’a été exécuté.",
|
|
828
|
+
supersededDetail: "Non exécuté : un message plus récent est passé avant.",
|
|
820
829
|
cancelled: "Arrêté",
|
|
821
830
|
cancelledDetail: "La réponse a été arrêtée. Rien n’a été exécuté.",
|
|
822
831
|
expired: "Expiré",
|
|
823
832
|
expiredDetail: (days) => `Personne n’a décidé en ${count(days, "jour")}. Rien n’a été exécuté.`,
|
|
824
833
|
askedForApproval: "Approbation demandée",
|
|
825
|
-
fromSubagent: (
|
|
834
|
+
fromSubagent: (name: string) => `De ${name}`,
|
|
826
835
|
effects: {
|
|
827
|
-
ontology: "
|
|
828
|
-
|
|
836
|
+
ontology: "Ne modifie que des données de cette app",
|
|
837
|
+
writeback: "Met aussi à jour le système d’où vient cet enregistrement",
|
|
838
|
+
external: "Agit aussi en dehors de cette app",
|
|
829
839
|
workflow: (name) => `Démarre le workflow ${quoted(name)}`,
|
|
830
840
|
},
|
|
831
841
|
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
842
|
stopWaiting: "Ne plus attendre",
|
|
836
843
|
stoppingWaiting: "Arrêt…",
|
|
837
844
|
stopWaitingHint:
|
|
838
845
|
"Met de côté toutes les demandes que cette réponse attend. Elle ne reprendra pas.",
|
|
839
846
|
stopFailed: "Impossible d’arrêter l’attente. Réessayez.",
|
|
840
|
-
open: (name) => `Ouvrir ${name}`,
|
|
841
847
|
resume: {
|
|
842
848
|
retrying: "L’agent reprendra dès que possible.",
|
|
843
849
|
refused: "L’agent n’a pas pu continuer. Envoyez un message pour reprendre d’ici.",
|
|
@@ -850,8 +856,7 @@ export const fr: Translation<AgentMessages> = {
|
|
|
850
856
|
composerPlaceholder: "Approuvez ci-dessus, ou répondez",
|
|
851
857
|
setsAside: (name) =>
|
|
852
858
|
`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`,
|
|
859
|
+
waitingThreads: (waiting) => `${count(waiting, "fil")} en attente de votre approbation`,
|
|
855
860
|
threadWaiting: "En attente de vous",
|
|
856
861
|
},
|
|
857
862
|
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,
|
package/src/pages/home.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import { useQuery } from "@tanstack/react-query"
|
|
|
3
3
|
import { useState } from "react"
|
|
4
4
|
import { useNavigate } from "react-router-dom"
|
|
5
5
|
import { AgentChat } from "../agent/agent-chat"
|
|
6
|
+
import { THREADS_PATH, threadPath } from "../agent/thread-navigation"
|
|
6
7
|
import { useAppMessages } from "../locale"
|
|
7
8
|
import { readDocumentIdentity } from "../shell/brand"
|
|
8
9
|
import { Mosaic } from "./mosaic"
|
|
@@ -27,7 +28,8 @@ export function HomePage() {
|
|
|
27
28
|
threadId={null}
|
|
28
29
|
welcomeContent={<Welcome />}
|
|
29
30
|
onNavigateHome={() => navigate("/")}
|
|
30
|
-
onNavigateThread={(threadId) => navigate(
|
|
31
|
+
onNavigateThread={(threadId) => navigate(threadPath(threadId))}
|
|
32
|
+
onOpenThreads={() => navigate(THREADS_PATH)}
|
|
31
33
|
/>
|
|
32
34
|
) : (
|
|
33
35
|
<Empty />
|