dsh-leader-agent 0.8.0 → 0.9.0
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/.agents/skills/init-leader-agent/SKILL.md +2 -1
- package/.agents/skills/init-leader-agent/references/SLOTS.md +6 -1
- package/.agents/skills/leader-mode/SKILL.md +2 -2
- package/.agents/skills/leader-mode/playbooks/program.md +3 -2
- package/README.md +10 -11
- package/README_ZH.md +10 -11
- package/lib/client.js +647 -295
- package/locale/de.json +22 -12
- package/locale/en.json +22 -12
- package/locale/es.json +22 -12
- package/locale/fr.json +22 -12
- package/locale/ja.json +22 -12
- package/locale/pt.json +22 -12
- package/locale/ru.json +22 -12
- package/locale/zh.json +22 -12
- package/package.json +1 -1
- package/src/client/agent-bubble-styles.js +4 -7
- package/src/client/board-mode.js +35 -77
- package/src/client/board-settings.js +311 -47
- package/src/client/board-styles.js +146 -59
- package/src/client/board.js +22 -13
- package/src/client/leader-changes.js +3 -7
- package/src/client/locales.generated.js +120 -40
- package/src/client/modal-shell.js +5 -9
- package/src/client/project-remote.js +22 -3
- package/src/client/project-section.js +3 -7
- package/src/client/session-tabs.js +3 -9
- package/src/client/style-sheet.js +32 -0
- package/src/client/toast-view.js +3 -7
- package/src/client/worker-task-styles.js +4 -7
- package/src/client/workspace-exclusion.js +4 -7
- package/src/host/dispatch.js +268 -52
- package/src/host/index.js +31 -5
- package/src/host/leader-context.js +7 -4
- package/src/host/projects/remote.js +45 -3
- package/src/host/settings-store.js +231 -0
- package/src/host/slots/slot-templates.js +71 -16
- package/src/host/tools/gate.js +2 -1
- package/src/host/tools/list-worker-models.js +204 -0
- package/src/host/tools/read-worker.js +15 -3
- package/src/host/tools/spawn-worker.js +46 -3
- package/src/host/worker-model.js +274 -0
- package/src/host/worker-sessions.js +31 -4
- package/src/host/worker-transcript.js +49 -52
- package/src/shared/projects.js +8 -2
- package/src/shared/settings.js +81 -0
- package/src/shared/truncate.js +49 -0
- package/src/shared/turn-failure.js +25 -0
package/lib/client.js
CHANGED
|
@@ -66,8 +66,8 @@ function requiredWatermark(rows, currentSessionId) {
|
|
|
66
66
|
const position = index + 1;
|
|
67
67
|
if (position > SESSION_WATERMARK_AUTO_MAX) break;
|
|
68
68
|
const row = rows[index];
|
|
69
|
-
const
|
|
70
|
-
if (row?.running === true || row?.completed === true ||
|
|
69
|
+
const current3 = currentSessionId !== void 0 && row?.id === currentSessionId;
|
|
70
|
+
if (row?.running === true || row?.completed === true || current3) required = position;
|
|
71
71
|
}
|
|
72
72
|
return required;
|
|
73
73
|
}
|
|
@@ -239,10 +239,10 @@ function removeCardFromList(cards, id) {
|
|
|
239
239
|
if (!Array.isArray(cards)) return [];
|
|
240
240
|
return cards.filter((card) => card?.id !== id);
|
|
241
241
|
}
|
|
242
|
-
function mergeDetailCard(
|
|
243
|
-
if (
|
|
244
|
-
if (updated === null || typeof updated !== "object") return
|
|
245
|
-
return
|
|
242
|
+
function mergeDetailCard(current3, updated) {
|
|
243
|
+
if (current3 === null || current3 === void 0) return null;
|
|
244
|
+
if (updated === null || typeof updated !== "object") return current3;
|
|
245
|
+
return current3.card?.id === updated.id ? { ...current3, card: updated } : current3;
|
|
246
246
|
}
|
|
247
247
|
function reconcileBoardOverlays(cards, detail, pendingDelete) {
|
|
248
248
|
const ids = new Set(Array.isArray(cards) ? cards.map((card) => card?.id) : []);
|
|
@@ -251,8 +251,8 @@ function reconcileBoardOverlays(cards, detail, pendingDelete) {
|
|
|
251
251
|
pendingDelete: pendingDelete !== null && pendingDelete !== void 0 && ids.has(pendingDelete.id) ? pendingDelete : null
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
|
-
function mergeCardSnapshot(
|
|
255
|
-
const byId = new Map(
|
|
254
|
+
function mergeCardSnapshot(current3, next) {
|
|
255
|
+
const byId = new Map(current3.map((card) => [card.id, card]));
|
|
256
256
|
return next.map((card) => {
|
|
257
257
|
const kept = byId.get(card.id);
|
|
258
258
|
return kept !== void 0 && (kept.revision ?? 0) > (card.revision ?? 0) ? kept : card;
|
|
@@ -611,9 +611,9 @@ var LOCALE_UI = Object.freeze({
|
|
|
611
611
|
"board.fold.expand": "Weitere Karten anzeigen ({count})",
|
|
612
612
|
"board.leaderDead.hint": "Ersetzen Sie den Leader dieses Projekts im Projektbereich der linken Seitenleiste und \xF6ffnen Sie das Board erneut.",
|
|
613
613
|
"board.leaderDead.title": "Die Leader-Sitzung dieses Projekts ist nicht mehr verf\xFCgbar",
|
|
614
|
-
"board.mode.cinema.desc": "Nur
|
|
614
|
+
"board.mode.cinema.desc": "Nur f\xFCr Social-Media-Traffic gebaut.",
|
|
615
615
|
"board.mode.cinema.title": "Kino",
|
|
616
|
-
"board.mode.work.desc": "
|
|
616
|
+
"board.mode.work.desc": "Schlicht und effizient. Empfohlen.",
|
|
617
617
|
"board.mode.work.title": "Arbeit",
|
|
618
618
|
"board.noProject.hint": "Das Board ist nach Projekten organisiert: \xD6ffnen Sie es aus einer Projektsitzung (Leader oder Worker).",
|
|
619
619
|
"board.noProject.title": "Diese Sitzung geh\xF6rt zu keinem Projekt",
|
|
@@ -622,9 +622,11 @@ var LOCALE_UI = Object.freeze({
|
|
|
622
622
|
"board.notProject.unknown": "Diese Sitzung geh\xF6rt zu keinem Projekt; \xF6ffnen Sie die Leader- oder Worker-Sitzung eines Projekts, um dessen Board zu sehen.",
|
|
623
623
|
"board.rail.leader": "Leader",
|
|
624
624
|
"board.rail.summary": "{running} laufen \xB7 {total} Aufgaben",
|
|
625
|
-
"board.settings.desc": "W\xE4hle die Darstellung des Boards.
|
|
625
|
+
"board.settings.desc": "W\xE4hle die Darstellung des Boards.",
|
|
626
|
+
"board.settings.loadFailed": "Board-Einstellung konnte nicht gelesen werden: {message}",
|
|
626
627
|
"board.settings.nav": "Leader Agent",
|
|
627
|
-
"board.settings.
|
|
628
|
+
"board.settings.retry": "Erneut versuchen",
|
|
629
|
+
"board.settings.saveFailed": "Board-Einstellung konnte nicht gespeichert werden: {message}",
|
|
628
630
|
"board.settings.title": "Aufgabenboard",
|
|
629
631
|
"board.slot.title": "{name}: {state}",
|
|
630
632
|
"board.state.attention": "Braucht Aufmerksamkeit",
|
|
@@ -675,7 +677,7 @@ var LOCALE_UI = Object.freeze({
|
|
|
675
677
|
"common.saving": "Wird gespeichert\u2026",
|
|
676
678
|
"guide.action.dismiss": "Verstanden",
|
|
677
679
|
"guide.action.intro": "Zeigen Sie mir, wie es funktioniert",
|
|
678
|
-
"guide.intro.prompt": "
|
|
680
|
+
"guide.intro.prompt": "Zeigen Sie mir, wie dsh-leader-agent funktioniert; lesen, \xE4ndern oder erstellen Sie beim Erkl\xE4ren keine Dateien.",
|
|
679
681
|
"guide.steps": "Aufgabenkarten anlegen, Arbeit an Agenten \xFCbergeben und den Fortschritt im Board verfolgen",
|
|
680
682
|
"guide.title": "Dieses Verzeichnis hat einen Leader",
|
|
681
683
|
"markdown.code": "Code",
|
|
@@ -726,6 +728,14 @@ var LOCALE_UI = Object.freeze({
|
|
|
726
728
|
"project.rename": "Umbenennen",
|
|
727
729
|
"project.replaceLeader": "Leader ersetzen",
|
|
728
730
|
"session.fold.expand": "Weitere Sitzungen anzeigen ({count})",
|
|
731
|
+
"settings.autoResume.desc": "Wie oft der Leader Agent von Workern geweckt werden darf.",
|
|
732
|
+
"settings.autoResume.invalid": "Gib eine ganze Zahl zwischen {min} und {max} ein.",
|
|
733
|
+
"settings.autoResume.loadFailed": "Einstellungen konnten nicht gelesen werden: {message}",
|
|
734
|
+
"settings.autoResume.retry": "Erneut versuchen",
|
|
735
|
+
"settings.autoResume.saveFailed": "Speichern fehlgeschlagen: {message}",
|
|
736
|
+
"settings.autoResume.saved": "Gespeichert",
|
|
737
|
+
"settings.autoResume.title": "Automatische Fortsetzung",
|
|
738
|
+
"settings.autoResume.unit": "Mal",
|
|
729
739
|
"slot.dev": "Entwicklung",
|
|
730
740
|
"slot.discuss": "Diskussion",
|
|
731
741
|
"slot.review": "Review",
|
|
@@ -749,9 +759,9 @@ var LOCALE_UI = Object.freeze({
|
|
|
749
759
|
"board.fold.expand": "Show {count} more cards",
|
|
750
760
|
"board.leaderDead.hint": "Use the project section in the left sidebar to replace this project's Leader, then open the board again.",
|
|
751
761
|
"board.leaderDead.title": "This project's Leader session is no longer available",
|
|
752
|
-
"board.mode.cinema.desc": "
|
|
762
|
+
"board.mode.cinema.desc": "Built purely to pull social media traffic.",
|
|
753
763
|
"board.mode.cinema.title": "Cinematic",
|
|
754
|
-
"board.mode.work.desc": "
|
|
764
|
+
"board.mode.work.desc": "Clean and efficient. Recommended.",
|
|
755
765
|
"board.mode.work.title": "Work",
|
|
756
766
|
"board.noProject.hint": "The board is organized by project: open it from a project session (Leader or worker).",
|
|
757
767
|
"board.noProject.title": "This session does not belong to a project",
|
|
@@ -760,9 +770,11 @@ var LOCALE_UI = Object.freeze({
|
|
|
760
770
|
"board.notProject.unknown": "This session is not connected to a project; open a project's Leader or worker session to see its delivery board.",
|
|
761
771
|
"board.rail.leader": "Leader",
|
|
762
772
|
"board.rail.summary": "{running} running \xB7 {total} tasks",
|
|
763
|
-
"board.settings.desc": "Choose how the board looks.
|
|
773
|
+
"board.settings.desc": "Choose how the board looks.",
|
|
774
|
+
"board.settings.loadFailed": "Failed to read the board setting: {message}",
|
|
764
775
|
"board.settings.nav": "Leader Agent",
|
|
765
|
-
"board.settings.
|
|
776
|
+
"board.settings.retry": "Retry",
|
|
777
|
+
"board.settings.saveFailed": "Failed to save the board setting: {message}",
|
|
766
778
|
"board.settings.title": "Task board",
|
|
767
779
|
"board.slot.title": "{name}: {state}",
|
|
768
780
|
"board.state.attention": "Needs attention",
|
|
@@ -813,7 +825,7 @@ var LOCALE_UI = Object.freeze({
|
|
|
813
825
|
"common.saving": "Saving\u2026",
|
|
814
826
|
"guide.action.dismiss": "Got it",
|
|
815
827
|
"guide.action.intro": "Show me how to use it",
|
|
816
|
-
"guide.intro.prompt": "
|
|
828
|
+
"guide.intro.prompt": "Show me how dsh-leader-agent works; while explaining, don't read, modify, or create any files.",
|
|
817
829
|
"guide.steps": "Open task cards, hand work to Agents, track progress in the board",
|
|
818
830
|
"guide.title": "This directory has a Leader",
|
|
819
831
|
"markdown.code": "Code",
|
|
@@ -864,6 +876,14 @@ var LOCALE_UI = Object.freeze({
|
|
|
864
876
|
"project.rename": "Rename",
|
|
865
877
|
"project.replaceLeader": "Replace Leader",
|
|
866
878
|
"session.fold.expand": "Show {count} more sessions",
|
|
879
|
+
"settings.autoResume.desc": "How many times can the Leader Agent be woken by Workers?",
|
|
880
|
+
"settings.autoResume.invalid": "Enter a whole number between {min} and {max}.",
|
|
881
|
+
"settings.autoResume.loadFailed": "Failed to read settings: {message}",
|
|
882
|
+
"settings.autoResume.retry": "Retry",
|
|
883
|
+
"settings.autoResume.saveFailed": "Failed to save: {message}",
|
|
884
|
+
"settings.autoResume.saved": "Saved",
|
|
885
|
+
"settings.autoResume.title": "Auto-resume",
|
|
886
|
+
"settings.autoResume.unit": "times",
|
|
867
887
|
"slot.dev": "Dev",
|
|
868
888
|
"slot.discuss": "Discuss",
|
|
869
889
|
"slot.review": "Review",
|
|
@@ -887,9 +907,9 @@ var LOCALE_UI = Object.freeze({
|
|
|
887
907
|
"board.fold.expand": "Mostrar las tarjetas restantes ({count})",
|
|
888
908
|
"board.leaderDead.hint": "Use la secci\xF3n de proyectos de la barra lateral izquierda para reemplazar el Leader de este proyecto y vuelva a abrir el tablero.",
|
|
889
909
|
"board.leaderDead.title": "La sesi\xF3n del Leader de este proyecto ya no est\xE1 disponible",
|
|
890
|
-
"board.mode.cinema.desc": "
|
|
910
|
+
"board.mode.cinema.desc": "Hecho solo para atraer tr\xE1fico en redes sociales.",
|
|
891
911
|
"board.mode.cinema.title": "Modo espect\xE1culo",
|
|
892
|
-
"board.mode.work.desc": "
|
|
912
|
+
"board.mode.work.desc": "Simple y eficiente. Recomendado.",
|
|
893
913
|
"board.mode.work.title": "Modo trabajo",
|
|
894
914
|
"board.noProject.hint": "El tablero se organiza por proyecto: \xE1bralo desde una sesi\xF3n del proyecto (Leader o worker).",
|
|
895
915
|
"board.noProject.title": "Esta sesi\xF3n no pertenece a ning\xFAn proyecto",
|
|
@@ -898,9 +918,11 @@ var LOCALE_UI = Object.freeze({
|
|
|
898
918
|
"board.notProject.unknown": "Esta sesi\xF3n no pertenece a ning\xFAn proyecto; abra la sesi\xF3n del Leader o de un worker del proyecto para ver su tablero de entregas.",
|
|
899
919
|
"board.rail.leader": "Leader",
|
|
900
920
|
"board.rail.summary": "{running} en curso \xB7 {total} tareas",
|
|
901
|
-
"board.settings.desc": "Elige c\xF3mo se
|
|
921
|
+
"board.settings.desc": "Elige c\xF3mo se ve el tablero.",
|
|
922
|
+
"board.settings.loadFailed": "No se pudo leer la configuraci\xF3n del tablero: {message}",
|
|
902
923
|
"board.settings.nav": "Leader Agent",
|
|
903
|
-
"board.settings.
|
|
924
|
+
"board.settings.retry": "Reintentar",
|
|
925
|
+
"board.settings.saveFailed": "No se pudo guardar la configuraci\xF3n del tablero: {message}",
|
|
904
926
|
"board.settings.title": "Tablero de tareas",
|
|
905
927
|
"board.slot.title": "{name}: {state}",
|
|
906
928
|
"board.state.attention": "Requiere atenci\xF3n",
|
|
@@ -951,7 +973,7 @@ var LOCALE_UI = Object.freeze({
|
|
|
951
973
|
"common.saving": "Guardando\u2026",
|
|
952
974
|
"guide.action.dismiss": "Entendido",
|
|
953
975
|
"guide.action.intro": "Mu\xE9streme c\xF3mo se usa",
|
|
954
|
-
"guide.intro.prompt": "
|
|
976
|
+
"guide.intro.prompt": "Mu\xE9streme c\xF3mo funciona dsh-leader-agent; al explicar, no lea, modifique ni cree ning\xFAn archivo.",
|
|
955
977
|
"guide.steps": "Cree tarjetas de tareas, delegue trabajo en agentes y siga el progreso en el tablero",
|
|
956
978
|
"guide.title": "Este directorio tiene un Leader",
|
|
957
979
|
"markdown.code": "C\xF3digo",
|
|
@@ -1002,6 +1024,14 @@ var LOCALE_UI = Object.freeze({
|
|
|
1002
1024
|
"project.rename": "Renombrar",
|
|
1003
1025
|
"project.replaceLeader": "Reemplazar Leader",
|
|
1004
1026
|
"session.fold.expand": "Mostrar las sesiones restantes ({count})",
|
|
1027
|
+
"settings.autoResume.desc": "\xBFCu\xE1ntas veces pueden despertar los Workers al Leader Agent?",
|
|
1028
|
+
"settings.autoResume.invalid": "Introduce un n\xFAmero entero entre {min} y {max}.",
|
|
1029
|
+
"settings.autoResume.loadFailed": "No se pudo leer la configuraci\xF3n: {message}",
|
|
1030
|
+
"settings.autoResume.retry": "Reintentar",
|
|
1031
|
+
"settings.autoResume.saveFailed": "No se pudo guardar: {message}",
|
|
1032
|
+
"settings.autoResume.saved": "Guardado",
|
|
1033
|
+
"settings.autoResume.title": "Reanudaci\xF3n autom\xE1tica",
|
|
1034
|
+
"settings.autoResume.unit": "veces",
|
|
1005
1035
|
"slot.dev": "Desarrollo",
|
|
1006
1036
|
"slot.discuss": "Discusi\xF3n",
|
|
1007
1037
|
"slot.review": "Revisi\xF3n",
|
|
@@ -1025,9 +1055,9 @@ var LOCALE_UI = Object.freeze({
|
|
|
1025
1055
|
"board.fold.expand": "Afficher les cartes restantes ({count})",
|
|
1026
1056
|
"board.leaderDead.hint": "Utilisez la section projets de la barre lat\xE9rale gauche pour remplacer le Leader de ce projet, puis rouvrez le tableau.",
|
|
1027
1057
|
"board.leaderDead.title": "La session Leader de ce projet n'est plus disponible",
|
|
1028
|
-
"board.mode.cinema.desc": "
|
|
1058
|
+
"board.mode.cinema.desc": "Con\xE7u uniquement pour attirer du trafic sur les r\xE9seaux sociaux.",
|
|
1029
1059
|
"board.mode.cinema.title": "Mode spectacle",
|
|
1030
|
-
"board.mode.work.desc": "
|
|
1060
|
+
"board.mode.work.desc": "Simple et efficace. Recommand\xE9.",
|
|
1031
1061
|
"board.mode.work.title": "Mode travail",
|
|
1032
1062
|
"board.noProject.hint": "Le tableau est organis\xE9 par projet : ouvrez-le depuis une session du projet (Leader ou worker).",
|
|
1033
1063
|
"board.noProject.title": "Cette session n'appartient \xE0 aucun projet",
|
|
@@ -1036,9 +1066,11 @@ var LOCALE_UI = Object.freeze({
|
|
|
1036
1066
|
"board.notProject.unknown": "Cette session n'est li\xE9e \xE0 aucun projet ; ouvrez la session Leader ou worker d'un projet pour voir son tableau de livraison.",
|
|
1037
1067
|
"board.rail.leader": "Leader",
|
|
1038
1068
|
"board.rail.summary": "{running} en cours \xB7 {total} t\xE2ches",
|
|
1039
|
-
"board.settings.desc": "Choisissez l
|
|
1069
|
+
"board.settings.desc": "Choisissez l\u2019apparence du tableau.",
|
|
1070
|
+
"board.settings.loadFailed": "Impossible de lire le r\xE9glage du tableau : {message}",
|
|
1040
1071
|
"board.settings.nav": "Leader Agent",
|
|
1041
|
-
"board.settings.
|
|
1072
|
+
"board.settings.retry": "R\xE9essayer",
|
|
1073
|
+
"board.settings.saveFailed": "Impossible d\u2019enregistrer le r\xE9glage du tableau : {message}",
|
|
1042
1074
|
"board.settings.title": "Tableau des t\xE2ches",
|
|
1043
1075
|
"board.slot.title": "{name} : {state}",
|
|
1044
1076
|
"board.state.attention": "N\xE9cessite votre attention",
|
|
@@ -1089,7 +1121,7 @@ var LOCALE_UI = Object.freeze({
|
|
|
1089
1121
|
"common.saving": "Enregistrement\u2026",
|
|
1090
1122
|
"guide.action.dismiss": "Compris",
|
|
1091
1123
|
"guide.action.intro": "Montrez-moi comment l'utiliser",
|
|
1092
|
-
"guide.intro.prompt": "
|
|
1124
|
+
"guide.intro.prompt": "Montrez-moi comment fonctionne dsh-leader-agent ; pendant l'explication, ne lisez, ne modifiez ni ne cr\xE9ez aucun fichier.",
|
|
1093
1125
|
"guide.steps": "Cr\xE9ez des cartes de t\xE2ches, confiez le travail aux agents et suivez l'avancement dans le tableau",
|
|
1094
1126
|
"guide.title": "Ce dossier a un Leader",
|
|
1095
1127
|
"markdown.code": "Code",
|
|
@@ -1140,6 +1172,14 @@ var LOCALE_UI = Object.freeze({
|
|
|
1140
1172
|
"project.rename": "Renommer",
|
|
1141
1173
|
"project.replaceLeader": "Remplacer le Leader",
|
|
1142
1174
|
"session.fold.expand": "Afficher les sessions restantes ({count})",
|
|
1175
|
+
"settings.autoResume.desc": "Nombre de fois o\xF9 le Leader Agent peut \xEAtre r\xE9veill\xE9 par des Workers.",
|
|
1176
|
+
"settings.autoResume.invalid": "Saisissez un nombre entier entre {min} et {max}.",
|
|
1177
|
+
"settings.autoResume.loadFailed": "Impossible de lire les r\xE9glages : {message}",
|
|
1178
|
+
"settings.autoResume.retry": "R\xE9essayer",
|
|
1179
|
+
"settings.autoResume.saveFailed": "\xC9chec de l'enregistrement : {message}",
|
|
1180
|
+
"settings.autoResume.saved": "Enregistr\xE9",
|
|
1181
|
+
"settings.autoResume.title": "Reprise automatique",
|
|
1182
|
+
"settings.autoResume.unit": "fois",
|
|
1143
1183
|
"slot.dev": "D\xE9veloppement",
|
|
1144
1184
|
"slot.discuss": "Discussion",
|
|
1145
1185
|
"slot.review": "Revue",
|
|
@@ -1163,9 +1203,9 @@ var LOCALE_UI = Object.freeze({
|
|
|
1163
1203
|
"board.fold.expand": "\u6B8B\u308A {count} \u679A\u306E\u30AB\u30FC\u30C9\u3092\u8868\u793A",
|
|
1164
1204
|
"board.leaderDead.hint": "\u5DE6\u30B5\u30A4\u30C9\u30D0\u30FC\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u6B04\u3067\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E Leader \u3092\u4EA4\u4EE3\u3057\u3066\u304B\u3089\u3001\u30DC\u30FC\u30C9\u3092\u958B\u304D\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
1165
1205
|
"board.leaderDead.title": "\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E Leader \u30BB\u30C3\u30B7\u30E7\u30F3\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093",
|
|
1166
|
-
"board.mode.cinema.desc": "\
|
|
1206
|
+
"board.mode.cinema.desc": "SNS \u306E\u6CE8\u76EE\u3092\u96C6\u3081\u308B\u305F\u3081\u3060\u3051\u306B\u958B\u767A\u3002",
|
|
1167
1207
|
"board.mode.cinema.title": "\u30B7\u30CD\u30DE\u30E2\u30FC\u30C9",
|
|
1168
|
-
"board.mode.work.desc": "\
|
|
1208
|
+
"board.mode.work.desc": "\u30B7\u30F3\u30D7\u30EB\u3067\u52B9\u7387\u7684\u3002\u304A\u3059\u3059\u3081\u3002",
|
|
1169
1209
|
"board.mode.work.title": "\u30EF\u30FC\u30AF\u30E2\u30FC\u30C9",
|
|
1170
1210
|
"board.noProject.hint": "\u30DC\u30FC\u30C9\u306F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u5358\u4F4D\u3067\u3059\u3002\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\uFF08Leader \u307E\u305F\u306F\u30EF\u30FC\u30AB\u30FC\uFF09\u304B\u3089\u958B\u3044\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
1171
1211
|
"board.noProject.title": "\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u306F\u3069\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306B\u3082\u5C5E\u3057\u3066\u3044\u307E\u305B\u3093",
|
|
@@ -1174,9 +1214,11 @@ var LOCALE_UI = Object.freeze({
|
|
|
1174
1214
|
"board.notProject.unknown": "\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u306F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306B\u5C5E\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E Leader \u307E\u305F\u306F\u30EF\u30FC\u30AB\u30FC\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3067\u30DC\u30FC\u30C9\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
1175
1215
|
"board.rail.leader": "Leader",
|
|
1176
1216
|
"board.rail.summary": "{running} \u5B9F\u884C\u4E2D \xB7 {total} \u30BF\u30B9\u30AF",
|
|
1177
|
-
"board.settings.desc": "\u30DC\u30FC\u30C9\u306E\u8868\u793A\u65B9\u6CD5\u3092\u9078\
|
|
1217
|
+
"board.settings.desc": "\u30DC\u30FC\u30C9\u306E\u8868\u793A\u65B9\u6CD5\u3092\u9078\u629E\u3057\u307E\u3059\u3002",
|
|
1218
|
+
"board.settings.loadFailed": "\u30DC\u30FC\u30C9\u8A2D\u5B9A\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
|
|
1178
1219
|
"board.settings.nav": "Leader Agent",
|
|
1179
|
-
"board.settings.
|
|
1220
|
+
"board.settings.retry": "\u518D\u8A66\u884C",
|
|
1221
|
+
"board.settings.saveFailed": "\u30DC\u30FC\u30C9\u8A2D\u5B9A\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
|
|
1180
1222
|
"board.settings.title": "\u30BF\u30B9\u30AF\u30DC\u30FC\u30C9",
|
|
1181
1223
|
"board.slot.title": "{name}\uFF1A{state}",
|
|
1182
1224
|
"board.state.attention": "\u8981\u6CE8\u610F",
|
|
@@ -1227,7 +1269,7 @@ var LOCALE_UI = Object.freeze({
|
|
|
1227
1269
|
"common.saving": "\u4FDD\u5B58\u4E2D\u2026",
|
|
1228
1270
|
"guide.action.dismiss": "\u4E86\u89E3",
|
|
1229
1271
|
"guide.action.intro": "\u4F7F\u3044\u65B9\u3092\u898B\u308B",
|
|
1230
|
-
"guide.intro.prompt": "\
|
|
1272
|
+
"guide.intro.prompt": "dsh-leader-agent \u306E\u4F7F\u3044\u65B9\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u3002\u8AAC\u660E\u3059\u308B\u3068\u304D\u306F\u3001\u30D5\u30A1\u30A4\u30EB\u3092\u8AAD\u3093\u3060\u308A\u3001\u5909\u66F4\u3057\u305F\u308A\u3001\u4F5C\u6210\u3057\u305F\u308A\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",
|
|
1231
1273
|
"guide.steps": "\u30BF\u30B9\u30AF\u30AB\u30FC\u30C9\u3092\u4F5C\u6210\u3057\u3001\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306B\u4F5C\u696D\u3092\u4EFB\u305B\u3001\u30DC\u30FC\u30C9\u3067\u9032\u6357\u3092\u78BA\u8A8D\u3067\u304D\u307E\u3059",
|
|
1232
1274
|
"guide.title": "\u3053\u306E\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u306B\u306F Leader \u304C\u3044\u307E\u3059",
|
|
1233
1275
|
"markdown.code": "\u30B3\u30FC\u30C9",
|
|
@@ -1278,6 +1320,14 @@ var LOCALE_UI = Object.freeze({
|
|
|
1278
1320
|
"project.rename": "\u540D\u524D\u3092\u5909\u66F4",
|
|
1279
1321
|
"project.replaceLeader": "Leader \u3092\u4EA4\u4EE3",
|
|
1280
1322
|
"session.fold.expand": "\u6B8B\u308A {count} \u4EF6\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u8868\u793A",
|
|
1323
|
+
"settings.autoResume.desc": "Leader Agent \u304C Worker \u304B\u3089\u8D77\u3053\u3055\u308C\u308B\u6700\u5927\u56DE\u6570\u3067\u3059\u3002",
|
|
1324
|
+
"settings.autoResume.invalid": "{min}\u2013{max} \u306E\u6574\u6570\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
1325
|
+
"settings.autoResume.loadFailed": "\u8A2D\u5B9A\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
|
|
1326
|
+
"settings.autoResume.retry": "\u518D\u8A66\u884C",
|
|
1327
|
+
"settings.autoResume.saveFailed": "\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
|
|
1328
|
+
"settings.autoResume.saved": "\u4FDD\u5B58\u3057\u307E\u3057\u305F",
|
|
1329
|
+
"settings.autoResume.title": "\u81EA\u52D5\u518D\u958B",
|
|
1330
|
+
"settings.autoResume.unit": "\u56DE",
|
|
1281
1331
|
"slot.dev": "\u958B\u767A",
|
|
1282
1332
|
"slot.discuss": "\u30C7\u30A3\u30B9\u30AB\u30C3\u30B7\u30E7\u30F3",
|
|
1283
1333
|
"slot.review": "\u30EC\u30D3\u30E5\u30FC",
|
|
@@ -1301,9 +1351,9 @@ var LOCALE_UI = Object.freeze({
|
|
|
1301
1351
|
"board.fold.expand": "Mostrar os cart\xF5es restantes ({count})",
|
|
1302
1352
|
"board.leaderDead.hint": "Use a se\xE7\xE3o de projetos na barra lateral esquerda para substituir o Leader deste projeto e abra o quadro novamente.",
|
|
1303
1353
|
"board.leaderDead.title": "A sess\xE3o do Leader deste projeto n\xE3o est\xE1 mais dispon\xEDvel",
|
|
1304
|
-
"board.mode.cinema.desc": "
|
|
1354
|
+
"board.mode.cinema.desc": "Feito apenas para atrair tr\xE1fego nas redes sociais.",
|
|
1305
1355
|
"board.mode.cinema.title": "Modo cinema",
|
|
1306
|
-
"board.mode.work.desc": "
|
|
1356
|
+
"board.mode.work.desc": "Simples e eficiente. Recomendado.",
|
|
1307
1357
|
"board.mode.work.title": "Modo trabalho",
|
|
1308
1358
|
"board.noProject.hint": "O quadro \xE9 organizado por projeto: abra-o a partir de uma sess\xE3o do projeto (Leader ou worker).",
|
|
1309
1359
|
"board.noProject.title": "Esta sess\xE3o n\xE3o pertence a nenhum projeto",
|
|
@@ -1312,9 +1362,11 @@ var LOCALE_UI = Object.freeze({
|
|
|
1312
1362
|
"board.notProject.unknown": "Esta sess\xE3o n\xE3o pertence a nenhum projeto; abra a sess\xE3o do Leader ou de um worker do projeto para ver o quadro de entregas.",
|
|
1313
1363
|
"board.rail.leader": "Leader",
|
|
1314
1364
|
"board.rail.summary": "{running} em execu\xE7\xE3o \xB7 {total} tarefas",
|
|
1315
|
-
"board.settings.desc": "Escolha como o quadro aparece.
|
|
1365
|
+
"board.settings.desc": "Escolha como o quadro aparece.",
|
|
1366
|
+
"board.settings.loadFailed": "Falha ao ler a configura\xE7\xE3o do quadro: {message}",
|
|
1316
1367
|
"board.settings.nav": "Leader Agent",
|
|
1317
|
-
"board.settings.
|
|
1368
|
+
"board.settings.retry": "Tentar novamente",
|
|
1369
|
+
"board.settings.saveFailed": "Falha ao salvar a configura\xE7\xE3o do quadro: {message}",
|
|
1318
1370
|
"board.settings.title": "Quadro de tarefas",
|
|
1319
1371
|
"board.slot.title": "{name}: {state}",
|
|
1320
1372
|
"board.state.attention": "Precisa de aten\xE7\xE3o",
|
|
@@ -1365,7 +1417,7 @@ var LOCALE_UI = Object.freeze({
|
|
|
1365
1417
|
"common.saving": "Salvando\u2026",
|
|
1366
1418
|
"guide.action.dismiss": "Entendi",
|
|
1367
1419
|
"guide.action.intro": "Mostre-me como us\xE1-lo",
|
|
1368
|
-
"guide.intro.prompt": "
|
|
1420
|
+
"guide.intro.prompt": "Mostre-me como o dsh-leader-agent funciona; ao explicar, n\xE3o leia, modifique nem crie nenhum arquivo.",
|
|
1369
1421
|
"guide.steps": "Crie cart\xF5es de tarefas, entregue o trabalho aos agentes e acompanhe o progresso no quadro",
|
|
1370
1422
|
"guide.title": "Este diret\xF3rio tem um Leader",
|
|
1371
1423
|
"markdown.code": "C\xF3digo",
|
|
@@ -1416,6 +1468,14 @@ var LOCALE_UI = Object.freeze({
|
|
|
1416
1468
|
"project.rename": "Renomear",
|
|
1417
1469
|
"project.replaceLeader": "Substituir Leader",
|
|
1418
1470
|
"session.fold.expand": "Mostrar as sess\xF5es restantes ({count})",
|
|
1471
|
+
"settings.autoResume.desc": "Quantas vezes os Workers podem despertar o Leader Agent?",
|
|
1472
|
+
"settings.autoResume.invalid": "Digite um n\xFAmero inteiro entre {min} e {max}.",
|
|
1473
|
+
"settings.autoResume.loadFailed": "Falha ao ler as configura\xE7\xF5es: {message}",
|
|
1474
|
+
"settings.autoResume.retry": "Tentar novamente",
|
|
1475
|
+
"settings.autoResume.saveFailed": "Falha ao salvar: {message}",
|
|
1476
|
+
"settings.autoResume.saved": "Salvo",
|
|
1477
|
+
"settings.autoResume.title": "Retomada autom\xE1tica",
|
|
1478
|
+
"settings.autoResume.unit": "vezes",
|
|
1419
1479
|
"slot.dev": "Desenvolvimento",
|
|
1420
1480
|
"slot.discuss": "Discuss\xE3o",
|
|
1421
1481
|
"slot.review": "Revis\xE3o",
|
|
@@ -1439,9 +1499,9 @@ var LOCALE_UI = Object.freeze({
|
|
|
1439
1499
|
"board.fold.expand": "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 ({count})",
|
|
1440
1500
|
"board.leaderDead.hint": "\u0417\u0430\u043C\u0435\u043D\u0438\u0442\u0435 Leader \u044D\u0442\u043E\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \u0432 \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u043E\u0432 \u043D\u0430 \u043B\u0435\u0432\u043E\u0439 \u043F\u0430\u043D\u0435\u043B\u0438, \u0437\u0430\u0442\u0435\u043C \u0441\u043D\u043E\u0432\u0430 \u043E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 \u0434\u043E\u0441\u043A\u0443.",
|
|
1441
1501
|
"board.leaderDead.title": "\u0421\u0435\u0430\u043D\u0441 Leader \u044D\u0442\u043E\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",
|
|
1442
|
-
"board.mode.cinema.desc": "\
|
|
1502
|
+
"board.mode.cinema.desc": "\u0421\u043E\u0437\u0434\u0430\u043D \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u043F\u0440\u0438\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430 \u0432 \u0441\u043E\u0446\u0441\u0435\u0442\u044F\u0445.",
|
|
1443
1503
|
"board.mode.cinema.title": "\u041A\u0438\u043D\u0435\u043C\u0430\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u043D\u044B\u0439",
|
|
1444
|
-
"board.mode.work.desc": "\u041F\u0440\u043E\u0441\u0442\u043E
|
|
1504
|
+
"board.mode.work.desc": "\u041F\u0440\u043E\u0441\u0442\u043E \u0438 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u0442\u0441\u044F.",
|
|
1445
1505
|
"board.mode.work.title": "\u0420\u0430\u0431\u043E\u0447\u0438\u0439",
|
|
1446
1506
|
"board.noProject.hint": "\u0414\u043E\u0441\u043A\u0430 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043E\u0432\u0430\u043D\u0430 \u043F\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430\u043C: \u043E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 \u0435\u0451 \u0438\u0437 \u0441\u0435\u0430\u043D\u0441\u0430 \u043F\u0440\u043E\u0435\u043A\u0442\u0430 (Leader \u0438\u043B\u0438 \u0432\u043E\u0440\u043A\u0435\u0440\u0430).",
|
|
1447
1507
|
"board.noProject.title": "\u042D\u0442\u043E\u0442 \u0441\u0435\u0430\u043D\u0441 \u043D\u0435 \u043E\u0442\u043D\u043E\u0441\u0438\u0442\u0441\u044F \u043D\u0438 \u043A \u043E\u0434\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0435\u043A\u0442\u0443",
|
|
@@ -1450,9 +1510,11 @@ var LOCALE_UI = Object.freeze({
|
|
|
1450
1510
|
"board.notProject.unknown": "\u042D\u0442\u043E\u0442 \u0441\u0435\u0430\u043D\u0441 \u043D\u0435 \u043E\u0442\u043D\u043E\u0441\u0438\u0442\u0441\u044F \u043A \u043F\u0440\u043E\u0435\u043A\u0442\u0443. \u041E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 \u0441\u0435\u0430\u043D\u0441 Leader \u0438\u043B\u0438 \u0432\u043E\u0440\u043A\u0435\u0440\u0430 \u043F\u0440\u043E\u0435\u043A\u0442\u0430, \u0447\u0442\u043E\u0431\u044B \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u0435\u0433\u043E \u0434\u043E\u0441\u043A\u0443.",
|
|
1451
1511
|
"board.rail.leader": "Leader",
|
|
1452
1512
|
"board.rail.summary": "{running} \u0432 \u0440\u0430\u0431\u043E\u0442\u0435 \xB7 {total} \u0437\u0430\u0434\u0430\u0447",
|
|
1453
|
-
"board.settings.desc": "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \
|
|
1513
|
+
"board.settings.desc": "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435, \u043A\u0430\u043A \u0432\u044B\u0433\u043B\u044F\u0434\u0438\u0442 \u0434\u043E\u0441\u043A\u0430.",
|
|
1514
|
+
"board.settings.loadFailed": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443 \u0434\u043E\u0441\u043A\u0438: {message}",
|
|
1454
1515
|
"board.settings.nav": "Leader Agent",
|
|
1455
|
-
"board.settings.
|
|
1516
|
+
"board.settings.retry": "\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",
|
|
1517
|
+
"board.settings.saveFailed": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443 \u0434\u043E\u0441\u043A\u0438: {message}",
|
|
1456
1518
|
"board.settings.title": "\u0414\u043E\u0441\u043A\u0430 \u0437\u0430\u0434\u0430\u0447",
|
|
1457
1519
|
"board.slot.title": "{name}: {state}",
|
|
1458
1520
|
"board.state.attention": "\u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u043D\u0438\u043C\u0430\u043D\u0438\u044F",
|
|
@@ -1503,7 +1565,7 @@ var LOCALE_UI = Object.freeze({
|
|
|
1503
1565
|
"common.saving": "\u0421\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435\u2026",
|
|
1504
1566
|
"guide.action.dismiss": "\u041F\u043E\u043D\u044F\u0442\u043D\u043E",
|
|
1505
1567
|
"guide.action.intro": "\u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435, \u043A\u0430\u043A \u044D\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C",
|
|
1506
|
-
"guide.intro.prompt": "\
|
|
1568
|
+
"guide.intro.prompt": "\u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435, \u043A\u0430\u043A \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 dsh-leader-agent; \u043E\u0431\u044A\u044F\u0441\u043D\u044F\u044F, \u043D\u0435 \u0447\u0438\u0442\u0430\u0439\u0442\u0435, \u043D\u0435 \u0438\u0437\u043C\u0435\u043D\u044F\u0439\u0442\u0435 \u0438 \u043D\u0435 \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043D\u0438\u043A\u0430\u043A\u0438\u0445 \u0444\u0430\u0439\u043B\u043E\u0432.",
|
|
1507
1569
|
"guide.steps": "\u0421\u043E\u0437\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u0437\u0430\u0434\u0430\u0447, \u043F\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0431\u043E\u0442\u0443 \u0430\u0433\u0435\u043D\u0442\u0430\u043C \u0438 \u0441\u043B\u0435\u0434\u0438\u0442\u0435 \u0437\u0430 \u043F\u0440\u043E\u0433\u0440\u0435\u0441\u0441\u043E\u043C \u043D\u0430 \u0434\u043E\u0441\u043A\u0435",
|
|
1508
1570
|
"guide.title": "\u0412 \u044D\u0442\u043E\u043C \u043A\u0430\u0442\u0430\u043B\u043E\u0433\u0435 \u0435\u0441\u0442\u044C Leader",
|
|
1509
1571
|
"markdown.code": "\u041A\u043E\u0434",
|
|
@@ -1554,6 +1616,14 @@ var LOCALE_UI = Object.freeze({
|
|
|
1554
1616
|
"project.rename": "\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C",
|
|
1555
1617
|
"project.replaceLeader": "\u0417\u0430\u043C\u0435\u043D\u0438\u0442\u044C Leader",
|
|
1556
1618
|
"session.fold.expand": "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451 \u0441\u0435\u0430\u043D\u0441\u044B ({count})",
|
|
1619
|
+
"settings.autoResume.desc": "\u0421\u043A\u043E\u043B\u044C\u043A\u043E \u0440\u0430\u0437 Worker \u043C\u043E\u0433\u0443\u0442 \u0440\u0430\u0437\u0431\u0443\u0434\u0438\u0442\u044C Leader Agent.",
|
|
1620
|
+
"settings.autoResume.invalid": "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0446\u0435\u043B\u043E\u0435 \u0447\u0438\u0441\u043B\u043E \u043E\u0442 {min} \u0434\u043E {max}.",
|
|
1621
|
+
"settings.autoResume.loadFailed": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438: {message}",
|
|
1622
|
+
"settings.autoResume.retry": "\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",
|
|
1623
|
+
"settings.autoResume.saveFailed": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C: {message}",
|
|
1624
|
+
"settings.autoResume.saved": "\u0421\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u043E",
|
|
1625
|
+
"settings.autoResume.title": "\u0410\u0432\u0442\u043E\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u0435",
|
|
1626
|
+
"settings.autoResume.unit": "\u0440\u0430\u0437",
|
|
1557
1627
|
"slot.dev": "\u0420\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0430",
|
|
1558
1628
|
"slot.discuss": "\u041E\u0431\u0441\u0443\u0436\u0434\u0435\u043D\u0438\u0435",
|
|
1559
1629
|
"slot.review": "\u0420\u0435\u0432\u044C\u044E",
|
|
@@ -1577,9 +1647,9 @@ var LOCALE_UI = Object.freeze({
|
|
|
1577
1647
|
"board.fold.expand": "\u5C55\u5F00\u5176\u4F59 {count} \u5F20\u5361",
|
|
1578
1648
|
"board.leaderDead.hint": "\u8BF7\u5728\u5DE6\u680F\u9879\u76EE\u533A\u5757\u5BF9\u8BE5\u9879\u76EE\u6362\u65B0 Leader\uFF0C\u518D\u6253\u5F00\u770B\u677F\u3002",
|
|
1579
1649
|
"board.leaderDead.title": "\u8BE5\u9879\u76EE\u7684 leader \u4F1A\u8BDD\u5DF2\u5931\u6548",
|
|
1580
|
-
"board.mode.cinema.desc": "\u7EAF\
|
|
1650
|
+
"board.mode.cinema.desc": "\u7EAF\u4E3A\u793E\u4EA4\u5A92\u4F53\u5438\u6D41\u91CF\u5F00\u53D1",
|
|
1581
1651
|
"board.mode.cinema.title": "\u70AB\u9177\u6A21\u5F0F",
|
|
1582
|
-
"board.mode.work.desc": "\
|
|
1652
|
+
"board.mode.work.desc": "\u7B80\u6D01\u9AD8\u6548\uFF0C\u63A8\u8350\u4F7F\u7528",
|
|
1583
1653
|
"board.mode.work.title": "\u5DE5\u4F5C\u6A21\u5F0F",
|
|
1584
1654
|
"board.noProject.hint": "\u770B\u677F\u6309\u9879\u76EE\u7EC4\u7EC7\uFF1A\u5728\u9879\u76EE\u4F1A\u8BDD\uFF08leader \u6216 worker\uFF09\u91CC\u6253\u5F00\u5B83\u3002",
|
|
1585
1655
|
"board.noProject.title": "\u5F53\u524D\u4F1A\u8BDD\u4E0D\u5C5E\u4E8E\u4EFB\u4F55\u9879\u76EE",
|
|
@@ -1588,9 +1658,11 @@ var LOCALE_UI = Object.freeze({
|
|
|
1588
1658
|
"board.notProject.unknown": "\u8FD9\u4E2A\u4F1A\u8BDD\u4E0D\u5C5E\u4E8E\u4EFB\u4F55\u9879\u76EE\uFF1B\u6253\u5F00\u9879\u76EE\u7684 leader \u6216 worker \u4F1A\u8BDD\u67E5\u770B\u4EA4\u4ED8\u770B\u677F\u3002",
|
|
1589
1659
|
"board.rail.leader": "Leader",
|
|
1590
1660
|
"board.rail.summary": "{running} \u6267\u884C\u4E2D \xB7 {total} \u4E2A\u4EFB\u52A1",
|
|
1591
|
-
"board.settings.desc": "\u9009\u62E9\u770B\u677F\u7684\u5448\u73B0\u65B9\u5F0F\u3002
|
|
1661
|
+
"board.settings.desc": "\u9009\u62E9\u770B\u677F\u7684\u5448\u73B0\u65B9\u5F0F\u3002",
|
|
1662
|
+
"board.settings.loadFailed": "\u8BFB\u53D6\u770B\u677F\u8BBE\u7F6E\u5931\u8D25\uFF1A{message}",
|
|
1592
1663
|
"board.settings.nav": "Leader Agent",
|
|
1593
|
-
"board.settings.
|
|
1664
|
+
"board.settings.retry": "\u91CD\u8BD5",
|
|
1665
|
+
"board.settings.saveFailed": "\u4FDD\u5B58\u770B\u677F\u8BBE\u7F6E\u5931\u8D25\uFF1A{message}",
|
|
1594
1666
|
"board.settings.title": "\u4EFB\u52A1\u770B\u677F",
|
|
1595
1667
|
"board.slot.title": "{name}\uFF1A{state}",
|
|
1596
1668
|
"board.state.attention": "\u9700\u6CE8\u610F",
|
|
@@ -1641,7 +1713,7 @@ var LOCALE_UI = Object.freeze({
|
|
|
1641
1713
|
"common.saving": "\u4FDD\u5B58\u4E2D\u2026",
|
|
1642
1714
|
"guide.action.dismiss": "\u77E5\u9053\u4E86",
|
|
1643
1715
|
"guide.action.intro": "\u4E86\u89E3\u600E\u4E48\u7528",
|
|
1644
|
-
"guide.intro.prompt": "\
|
|
1716
|
+
"guide.intro.prompt": "\u5148\u8BB2\u8BB2 dsh-leader-agent \u600E\u4E48\u7528\uFF1B\u8BB2\u7528\u6CD5\u65F6\u4E0D\u8981\u8BFB\u53D6\u3001\u4FEE\u6539\u6216\u521B\u5EFA\u4EFB\u4F55\u6587\u4EF6\u3002",
|
|
1645
1717
|
"guide.steps": "\u4F60\u53EF\u4EE5\u8BA9\u5B83\u5EFA\u4EFB\u52A1\u5361\u3001\u7ED9 Agent \u6D3E\u6D3B\uFF0C\u5728\u53F3\u680F\u770B\u677F\u8DDF\u8FDB",
|
|
1646
1718
|
"guide.title": "\u8FD9\u4E2A\u76EE\u5F55\u6709\u4E00\u4E2A Leader \u4E86",
|
|
1647
1719
|
"markdown.code": "\u4EE3\u7801",
|
|
@@ -1692,6 +1764,14 @@ var LOCALE_UI = Object.freeze({
|
|
|
1692
1764
|
"project.rename": "\u91CD\u547D\u540D",
|
|
1693
1765
|
"project.replaceLeader": "\u6362\u65B0 Leader",
|
|
1694
1766
|
"session.fold.expand": "\u5C55\u5F00\u5176\u4F59 {count} \u4E2A\u4F1A\u8BDD",
|
|
1767
|
+
"settings.autoResume.desc": "Leader Agent \u6700\u591A\u88AB Worker \u5524\u9192\u591A\u5C11\u6B21\u3002",
|
|
1768
|
+
"settings.autoResume.invalid": "\u8BF7\u8F93\u5165 {min}\u2013{max} \u4E4B\u95F4\u7684\u6574\u6570\u3002",
|
|
1769
|
+
"settings.autoResume.loadFailed": "\u8BFB\u53D6\u8BBE\u7F6E\u5931\u8D25\uFF1A{message}",
|
|
1770
|
+
"settings.autoResume.retry": "\u91CD\u8BD5",
|
|
1771
|
+
"settings.autoResume.saveFailed": "\u4FDD\u5B58\u5931\u8D25\uFF1A{message}",
|
|
1772
|
+
"settings.autoResume.saved": "\u4FDD\u5B58\u6210\u529F",
|
|
1773
|
+
"settings.autoResume.title": "\u81EA\u52A8\u7EED\u884C",
|
|
1774
|
+
"settings.autoResume.unit": "\u6B21",
|
|
1695
1775
|
"slot.dev": "\u5F00\u53D1",
|
|
1696
1776
|
"slot.discuss": "\u8BA8\u8BBA",
|
|
1697
1777
|
"slot.review": "\u5BA1\u6838",
|
|
@@ -2185,6 +2265,20 @@ function escapeAction(event) {
|
|
|
2185
2265
|
return event.repeat === true ? "prevent-only" : "close";
|
|
2186
2266
|
}
|
|
2187
2267
|
|
|
2268
|
+
// src/client/style-sheet.js
|
|
2269
|
+
function ensureStyleSheet(id, text) {
|
|
2270
|
+
if (typeof document === "undefined") return;
|
|
2271
|
+
const existing = document.getElementById(id);
|
|
2272
|
+
if (existing !== null) {
|
|
2273
|
+
if (existing.textContent !== text) existing.textContent = text;
|
|
2274
|
+
return;
|
|
2275
|
+
}
|
|
2276
|
+
const style = document.createElement("style");
|
|
2277
|
+
style.id = id;
|
|
2278
|
+
style.textContent = text;
|
|
2279
|
+
document.head.append(style);
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2188
2282
|
// src/client/modal-shell.js
|
|
2189
2283
|
var STYLE_ID = "dsh-leader-agent-modal";
|
|
2190
2284
|
var STYLE_TEXT = `
|
|
@@ -2362,12 +2456,7 @@ var STYLE_TEXT = `
|
|
|
2362
2456
|
}
|
|
2363
2457
|
`;
|
|
2364
2458
|
function ensureStyles() {
|
|
2365
|
-
|
|
2366
|
-
if (document.getElementById(STYLE_ID) !== null) return;
|
|
2367
|
-
const style = document.createElement("style");
|
|
2368
|
-
style.id = STYLE_ID;
|
|
2369
|
-
style.textContent = STYLE_TEXT;
|
|
2370
|
-
document.head.append(style);
|
|
2459
|
+
ensureStyleSheet(STYLE_ID, STYLE_TEXT);
|
|
2371
2460
|
}
|
|
2372
2461
|
var AUTOMATIC_FOCUS_ATTRIBUTE = "data-dsh-automatic-focus";
|
|
2373
2462
|
var NAVIGATION_KEYS = /* @__PURE__ */ new Set(["Tab", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End"]);
|
|
@@ -2542,7 +2631,13 @@ var PROJECT_REMOTE_METHODS = Object.freeze({
|
|
|
2542
2631
|
projectSlots: Object.freeze({ projectId: "string" }),
|
|
2543
2632
|
detachSession: Object.freeze({ sessionId: "string" }),
|
|
2544
2633
|
updateCardLinks: Object.freeze({ id: "string", links: "links" }),
|
|
2545
|
-
deleteCard: Object.freeze({ id: "string" })
|
|
2634
|
+
deleteCard: Object.freeze({ id: "string" }),
|
|
2635
|
+
// 设置页也走这条通道:浏览器侧没有文件系统,护栏必须由宿主读写。命名空间
|
|
2636
|
+
// 仍是 projects,它是本插件唯一的 client→host RPC 面;方法名带 Settings
|
|
2637
|
+
// 以示与业务数据分开。
|
|
2638
|
+
readSettings: Object.freeze({}),
|
|
2639
|
+
updateAutoResumeLimit: Object.freeze({ autoResumeLimit: "number" }),
|
|
2640
|
+
setBoardMode: Object.freeze({ boardMode: "string" })
|
|
2546
2641
|
});
|
|
2547
2642
|
|
|
2548
2643
|
// src/client/project-remote.js
|
|
@@ -2570,7 +2665,21 @@ function linksCodec() {
|
|
|
2570
2665
|
})
|
|
2571
2666
|
};
|
|
2572
2667
|
}
|
|
2573
|
-
|
|
2668
|
+
function numberCodec() {
|
|
2669
|
+
return {
|
|
2670
|
+
mode: "strict",
|
|
2671
|
+
typeSymbol: "number",
|
|
2672
|
+
create: () => ({
|
|
2673
|
+
parse: (value) => {
|
|
2674
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
2675
|
+
throw new TypeError(`\u671F\u671B\u6570\u5B57\uFF0C\u6536\u5230 ${typeof value}`);
|
|
2676
|
+
}
|
|
2677
|
+
return value;
|
|
2678
|
+
}
|
|
2679
|
+
})
|
|
2680
|
+
};
|
|
2681
|
+
}
|
|
2682
|
+
var CODEC_FACTORIES = Object.assign(/* @__PURE__ */ Object.create(null), { string: stringCodec, links: linksCodec, number: numberCodec });
|
|
2574
2683
|
function codecFor(type) {
|
|
2575
2684
|
return CODEC_FACTORIES[type]();
|
|
2576
2685
|
}
|
|
@@ -2714,15 +2823,15 @@ function CardLinksEditor({ card, onSave, onCancel, t }) {
|
|
|
2714
2823
|
}, [saving]);
|
|
2715
2824
|
function update(key, field, value) {
|
|
2716
2825
|
setError("");
|
|
2717
|
-
setDrafts((
|
|
2826
|
+
setDrafts((current3) => current3.map((draft) => draft.key === key ? { ...draft, [field]: value } : draft));
|
|
2718
2827
|
}
|
|
2719
2828
|
function remove(key) {
|
|
2720
2829
|
setError("");
|
|
2721
|
-
setDrafts((
|
|
2830
|
+
setDrafts((current3) => current3.filter((draft) => draft.key !== key));
|
|
2722
2831
|
}
|
|
2723
2832
|
function add() {
|
|
2724
2833
|
setError("");
|
|
2725
|
-
setDrafts((
|
|
2834
|
+
setDrafts((current3) => [...current3, { key: nextDraftKey(), label: "", url: "" }]);
|
|
2726
2835
|
}
|
|
2727
2836
|
async function submit() {
|
|
2728
2837
|
if (saving) return;
|
|
@@ -4014,17 +4123,19 @@ ${signalStyleText("dsh-leader-agent-board-signal")}
|
|
|
4014
4123
|
|
|
4015
4124
|
/* leader \u4F1A\u8BDD\u7684\u4E00\u6B21\u6027\u5F15\u5BFC\u6761\uFF1A\u4E0E\u8F93\u5165\u6846\u540C\u4E00\u5957\u51E0\u4F55\u2014\u2014\u5BBD\u5EA6\u5171\u7528\u5BBF\u4E3B\u7ED9\u8F93\u5165\u6846\u5916\u58F3\u7684
|
|
4016
4125
|
--dsh-composer-card-max-width\uFF08\u540C\u4E00\u4E2A token\uFF0C\u7A97\u53E3\u53D8\u7A84\u65F6\u4E00\u8D77\u6536\uFF09\uFF0C\u5706\u89D2\u540C\u53D6
|
|
4017
|
-
--dsw-radius-panel\u3002\
|
|
4018
|
-
\
|
|
4019
|
-
\
|
|
4020
|
-
\
|
|
4126
|
+
--dsw-radius-panel\u3002\u5BBF\u4E3B\u8F93\u5165\u6761\u5728\u5916\u5C42 root \u4E0A\u6309 --dsh-composer-side-clearance
|
|
4127
|
+
\u5DE6\u53F3\u5185\u7F29\uFF1B\u672C\u6761\u7684\u69FD\u4F4D\u5728 padding \u4E4B\u5916\uFF0C\u5FC5\u987B\u81EA\u5DF1\u51CF\u6389\u540C\u4E00\u6761 clearance\uFF0C\u5426\u5219\u7A84\u7A97\u53E3
|
|
4128
|
+
\u4E0B\u4F1A\u6BD4\u8F93\u5165\u6846\u4E24\u8FB9\u5404\u5BBD\u4E00\u622A\u3001\u770B\u8D77\u6765\u6CA1\u5BF9\u9F50\u3002\u6750\u8D28\u523B\u610F\u6BD4\u8F93\u5165\u6846\u8F7B\u4E00\u6863\uFF1A\u8F93\u5165\u6846\u662F\u767D\u9762 +
|
|
4129
|
+
elevation-soft\uFF0C\u5F15\u5BFC\u6761\u53D6\u4EA4\u4E92\u60AC\u505C\u6863\u7684\u6D45\u5E95\u3001\u4E0D\u53E0\u6295\u5F71\uFF0C\u4E24\u5757\u53E0\u5728\u4E00\u8D77\u624D\u4E0D\u4F1A\u88AB\u8BFB\u6210
|
|
4130
|
+
\u4E24\u4E2A\u8F93\u5165\u6846\u3002\u6587\u5B57\u6863\u5BF9\u9F50\u5BBF\u4E3B\u6B63\u6587\uFF1A\u6807\u9898 14/22 500\uFF0C\u6B65\u9AA4 13/20\uFF08\u5BBF\u4E3B\u91CC 11/12 \u53EA
|
|
4131
|
+
\u7528\u4E8E\u5143\u4FE1\u606F\uFF0C\u63D0\u793A\u6B63\u6587\u4E0D\u8BE5\u6BD4\u5B83\u66F4\u5C0F\uFF09\u3002 */
|
|
4021
4132
|
.dsh-leader-agent-guide-card {
|
|
4022
4133
|
display: flex;
|
|
4023
4134
|
flex-wrap: wrap;
|
|
4024
4135
|
align-items: flex-start;
|
|
4025
4136
|
gap: 8px 10px;
|
|
4026
4137
|
box-sizing: border-box;
|
|
4027
|
-
width: 100
|
|
4138
|
+
width: calc(100% - 2 * var(--dsh-composer-side-clearance, 16px));
|
|
4028
4139
|
max-width: var(--dsh-composer-card-max-width, 952px);
|
|
4029
4140
|
margin: 0 auto 8px;
|
|
4030
4141
|
padding: 10px 14px;
|
|
@@ -4343,121 +4454,205 @@ ${signalStyleText("dsh-leader-agent-board-signal")}
|
|
|
4343
4454
|
}
|
|
4344
4455
|
|
|
4345
4456
|
/* ===== \u8BBE\u7F6E\u9875 ===== */
|
|
4457
|
+
/* \u5BF9\u9F50\u5BBF\u4E3B\u7684\u8BBE\u7F6E\u884C\uFF1A564px \u5185\u5BB9\u5BBD\u300114/22 \u6807\u9898\u300112/18 \u8BF4\u660E\u300116px \u4E0A\u4E0B\u5185\u8FB9\u8DDD\u3001
|
|
4458
|
+
1px \u5E95\u90E8\u5206\u9694\u7EBF\uFF1B\u63A7\u4EF6\u653E\u5728\u53F3\u4FA7\uFF0C\u4E0D\u518D\u7528\u63D2\u4EF6\u81EA\u5DF1\u7684\u5361\u7247\u58F3\u3002 */
|
|
4346
4459
|
.dsh-leader-agent-settings {
|
|
4347
4460
|
display: flex;
|
|
4348
4461
|
flex-direction: column;
|
|
4349
|
-
|
|
4350
|
-
max-width: 720px;
|
|
4462
|
+
max-width: 564px;
|
|
4351
4463
|
color: var(--dsw-alias-label-primary);
|
|
4352
4464
|
}
|
|
4353
4465
|
|
|
4354
|
-
.dsh-leader-agent-settings-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4466
|
+
.dsh-leader-agent-settings-section {
|
|
4467
|
+
display: flex;
|
|
4468
|
+
flex-direction: column;
|
|
4469
|
+
gap: 8px;
|
|
4470
|
+
padding: 16px 0;
|
|
4471
|
+
border-bottom: 0.5px solid var(--dsw-alias-border-l3);
|
|
4359
4472
|
}
|
|
4360
4473
|
|
|
4361
|
-
.dsh-leader-agent-settings-
|
|
4474
|
+
.dsh-leader-agent-settings-section:last-child {
|
|
4475
|
+
border-bottom: 0;
|
|
4476
|
+
}
|
|
4477
|
+
|
|
4478
|
+
.dsh-leader-agent-settings-title,
|
|
4479
|
+
.dsh-leader-agent-settings-subtitle {
|
|
4362
4480
|
margin: 0;
|
|
4363
4481
|
font-size: 14px;
|
|
4364
4482
|
line-height: 22px;
|
|
4483
|
+
font-weight: 400;
|
|
4484
|
+
color: var(--dsw-alias-label-primary);
|
|
4485
|
+
}
|
|
4486
|
+
|
|
4487
|
+
.dsh-leader-agent-settings-desc {
|
|
4488
|
+
margin: 0;
|
|
4489
|
+
font-size: 12px;
|
|
4490
|
+
line-height: 18px;
|
|
4365
4491
|
color: var(--dsw-alias-label-tertiary);
|
|
4366
4492
|
}
|
|
4367
4493
|
|
|
4368
4494
|
.dsh-leader-agent-settings-options {
|
|
4369
4495
|
display: flex;
|
|
4370
|
-
flex-direction: column;
|
|
4371
4496
|
gap: 8px;
|
|
4372
4497
|
}
|
|
4373
4498
|
|
|
4374
4499
|
.dsh-leader-agent-settings-option {
|
|
4375
4500
|
display: flex;
|
|
4501
|
+
flex: 1 1 180px;
|
|
4502
|
+
flex-direction: column;
|
|
4376
4503
|
align-items: center;
|
|
4377
|
-
|
|
4504
|
+
justify-content: center;
|
|
4505
|
+
gap: 4px;
|
|
4378
4506
|
box-sizing: border-box;
|
|
4379
|
-
|
|
4380
|
-
padding:
|
|
4381
|
-
border:
|
|
4507
|
+
min-height: 96px;
|
|
4508
|
+
padding: 16px 20px;
|
|
4509
|
+
border: 1px solid var(--dsw-alias-settings-card-stroke);
|
|
4382
4510
|
border-radius: var(--dsw-radius-xl);
|
|
4383
|
-
background:
|
|
4384
|
-
color:
|
|
4511
|
+
background: transparent;
|
|
4512
|
+
color: var(--dsw-alias-label-primary);
|
|
4385
4513
|
font: inherit;
|
|
4386
|
-
|
|
4514
|
+
font-size: 14px;
|
|
4515
|
+
line-height: 22px;
|
|
4516
|
+
text-align: center;
|
|
4387
4517
|
cursor: pointer;
|
|
4388
4518
|
}
|
|
4389
4519
|
|
|
4520
|
+
@media (hover: hover) {
|
|
4521
|
+
.dsh-leader-agent-settings-option:hover:not(:disabled) {
|
|
4522
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
4523
|
+
}
|
|
4524
|
+
}
|
|
4525
|
+
|
|
4390
4526
|
.dsh-leader-agent-settings-option:focus-visible {
|
|
4391
4527
|
outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-alias-state-business-primary);
|
|
4392
4528
|
outline-offset: 1px;
|
|
4393
4529
|
}
|
|
4394
4530
|
|
|
4531
|
+
.dsh-leader-agent-settings-option:disabled {
|
|
4532
|
+
opacity: 0.6;
|
|
4533
|
+
cursor: default;
|
|
4534
|
+
}
|
|
4535
|
+
|
|
4395
4536
|
.dsh-leader-agent-settings-option-selected {
|
|
4396
|
-
|
|
4537
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
4538
|
+
border-color: var(--dsw-static-neutral-bluish-400);
|
|
4397
4539
|
}
|
|
4398
4540
|
|
|
4399
|
-
.dsh-leader-agent-settings-
|
|
4400
|
-
flex: none;
|
|
4541
|
+
.dsh-leader-agent-settings-option-icon {
|
|
4401
4542
|
display: inline-flex;
|
|
4402
|
-
color: var(--dsw-alias-label-
|
|
4543
|
+
color: var(--dsw-alias-label-primary);
|
|
4403
4544
|
}
|
|
4404
4545
|
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
.dsh-leader-agent-settings-preview-dot {
|
|
4408
|
-
fill: var(--dsw-alias-state-business-primary);
|
|
4546
|
+
.dsh-leader-agent-settings-option-label {
|
|
4547
|
+
display: block;
|
|
4409
4548
|
}
|
|
4410
4549
|
|
|
4411
|
-
.dsh-leader-agent-settings-
|
|
4550
|
+
.dsh-leader-agent-settings-option-desc {
|
|
4551
|
+
font-size: 12px;
|
|
4552
|
+
line-height: 18px;
|
|
4553
|
+
color: var(--dsw-alias-label-tertiary);
|
|
4554
|
+
}
|
|
4555
|
+
|
|
4556
|
+
.dsh-leader-agent-settings-row {
|
|
4412
4557
|
display: flex;
|
|
4558
|
+
align-items: center;
|
|
4559
|
+
gap: 8px;
|
|
4560
|
+
}
|
|
4561
|
+
|
|
4562
|
+
.dsh-leader-agent-settings-row-text {
|
|
4563
|
+
display: flex;
|
|
4564
|
+
flex: 1;
|
|
4413
4565
|
flex-direction: column;
|
|
4414
|
-
gap:
|
|
4415
|
-
|
|
4566
|
+
gap: 4px;
|
|
4567
|
+
padding-right: 48px;
|
|
4568
|
+
}
|
|
4569
|
+
|
|
4570
|
+
.dsh-leader-agent-settings-control {
|
|
4571
|
+
display: flex;
|
|
4572
|
+
flex: none;
|
|
4573
|
+
align-items: center;
|
|
4574
|
+
gap: 6px;
|
|
4575
|
+
height: 36px;
|
|
4416
4576
|
}
|
|
4417
4577
|
|
|
4418
|
-
.dsh-leader-agent-settings-
|
|
4578
|
+
.dsh-leader-agent-settings-input {
|
|
4579
|
+
box-sizing: border-box;
|
|
4580
|
+
width: 72px;
|
|
4581
|
+
height: 36px;
|
|
4582
|
+
padding: 0 10px;
|
|
4583
|
+
border: 0.5px solid var(--dsw-alias-border-l4);
|
|
4584
|
+
border-radius: var(--dsw-radius-md);
|
|
4585
|
+
outline: none;
|
|
4586
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
4587
|
+
color: var(--dsw-alias-label-primary);
|
|
4588
|
+
font: inherit;
|
|
4419
4589
|
font-size: 14px;
|
|
4420
4590
|
line-height: 22px;
|
|
4421
|
-
|
|
4422
|
-
|
|
4591
|
+
text-align: center;
|
|
4592
|
+
font-variant-numeric: tabular-nums;
|
|
4423
4593
|
}
|
|
4424
4594
|
|
|
4425
|
-
.dsh-leader-agent-settings-
|
|
4595
|
+
.dsh-leader-agent-settings-control input.dsh-leader-agent-settings-input:focus-visible {
|
|
4596
|
+
border-color: var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
4597
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary)) 18%, transparent);
|
|
4598
|
+
outline: none;
|
|
4599
|
+
}
|
|
4600
|
+
|
|
4601
|
+
.dsh-leader-agent-settings-input:disabled {
|
|
4602
|
+
opacity: 0.6;
|
|
4603
|
+
}
|
|
4604
|
+
|
|
4605
|
+
.dsh-leader-agent-settings-input[aria-invalid="true"] {
|
|
4606
|
+
color: var(--dsw-alias-state-error-primary);
|
|
4607
|
+
}
|
|
4608
|
+
|
|
4609
|
+
.dsh-leader-agent-settings-unit {
|
|
4610
|
+
font-size: 14px;
|
|
4611
|
+
line-height: 22px;
|
|
4612
|
+
color: var(--dsw-alias-label-tertiary);
|
|
4613
|
+
}
|
|
4614
|
+
|
|
4615
|
+
.dsh-leader-agent-settings-error,
|
|
4616
|
+
.dsh-leader-agent-settings-saved {
|
|
4617
|
+
margin: 0;
|
|
4426
4618
|
font-size: 12px;
|
|
4427
4619
|
line-height: 18px;
|
|
4428
|
-
color: var(--dsw-alias-label-tertiary);
|
|
4429
4620
|
}
|
|
4430
4621
|
|
|
4431
|
-
.dsh-leader-agent-settings-
|
|
4432
|
-
|
|
4433
|
-
box-sizing: border-box;
|
|
4434
|
-
width: 16px;
|
|
4435
|
-
height: 16px;
|
|
4436
|
-
margin-left: auto;
|
|
4437
|
-
border: 0.5px solid var(--dsw-alias-border-l4);
|
|
4438
|
-
border-radius: 50%;
|
|
4439
|
-
corner-shape: round;
|
|
4622
|
+
.dsh-leader-agent-settings-error {
|
|
4623
|
+
color: var(--dsw-alias-state-error-primary);
|
|
4440
4624
|
}
|
|
4441
4625
|
|
|
4442
|
-
.dsh-leader-agent-settings-
|
|
4443
|
-
|
|
4626
|
+
.dsh-leader-agent-settings-saved {
|
|
4627
|
+
color: var(--dsw-alias-state-success-primary);
|
|
4444
4628
|
}
|
|
4445
4629
|
|
|
4446
|
-
.dsh-leader-agent-settings-
|
|
4447
|
-
|
|
4630
|
+
.dsh-leader-agent-settings-retry-row {
|
|
4631
|
+
display: flex;
|
|
4632
|
+
align-items: center;
|
|
4633
|
+
gap: 8px;
|
|
4634
|
+
flex-wrap: wrap;
|
|
4635
|
+
}
|
|
4636
|
+
|
|
4637
|
+
.dsh-leader-agent-settings-retry {
|
|
4638
|
+
padding: 0;
|
|
4639
|
+
border: 0;
|
|
4640
|
+
background: none;
|
|
4641
|
+
color: var(--dsw-alias-link);
|
|
4642
|
+
font: inherit;
|
|
4448
4643
|
font-size: 12px;
|
|
4449
4644
|
line-height: 18px;
|
|
4450
|
-
|
|
4645
|
+
cursor: pointer;
|
|
4646
|
+
}
|
|
4647
|
+
|
|
4648
|
+
.dsh-leader-agent-settings-retry:focus-visible {
|
|
4649
|
+
outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-alias-state-business-primary);
|
|
4650
|
+
outline-offset: 2px;
|
|
4451
4651
|
}
|
|
4452
4652
|
|
|
4453
4653
|
`;
|
|
4454
4654
|
function ensureBoardStyles() {
|
|
4455
|
-
|
|
4456
|
-
if (document.getElementById(STYLE_ID2) !== null) return;
|
|
4457
|
-
const style = document.createElement("style");
|
|
4458
|
-
style.id = STYLE_ID2;
|
|
4459
|
-
style.textContent = STYLE_TEXT2;
|
|
4460
|
-
document.head.append(style);
|
|
4655
|
+
ensureStyleSheet(STYLE_ID2, STYLE_TEXT2);
|
|
4461
4656
|
}
|
|
4462
4657
|
|
|
4463
4658
|
// src/client/card-detail.js
|
|
@@ -4684,91 +4879,44 @@ function lastBoardForegroundSession() {
|
|
|
4684
4879
|
return foregroundSessionId;
|
|
4685
4880
|
}
|
|
4686
4881
|
|
|
4687
|
-
// src/
|
|
4688
|
-
var
|
|
4689
|
-
var
|
|
4882
|
+
// src/shared/settings.js
|
|
4883
|
+
var AUTO_RESUME_LIMIT_DEFAULT = 200;
|
|
4884
|
+
var AUTO_RESUME_LIMIT_MIN = 1;
|
|
4885
|
+
var AUTO_RESUME_LIMIT_MAX = 1e4;
|
|
4886
|
+
function parseAutoResumeLimit(raw) {
|
|
4887
|
+
const value = typeof raw === "string" ? Number(raw.trim()) : raw;
|
|
4888
|
+
if (typeof value !== "number" || !Number.isInteger(value)) return void 0;
|
|
4889
|
+
if (value < AUTO_RESUME_LIMIT_MIN || value > AUTO_RESUME_LIMIT_MAX) return void 0;
|
|
4890
|
+
return value;
|
|
4891
|
+
}
|
|
4690
4892
|
var BOARD_MODE_WORK = "work";
|
|
4893
|
+
var BOARD_MODE_CINEMA = "cinema";
|
|
4691
4894
|
var BOARD_MODE_DEFAULT = BOARD_MODE_WORK;
|
|
4692
4895
|
var BOARD_MODES = Object.freeze([BOARD_MODE_WORK, BOARD_MODE_CINEMA]);
|
|
4693
4896
|
function normalizeBoardMode(value) {
|
|
4694
4897
|
return value === BOARD_MODE_CINEMA ? BOARD_MODE_CINEMA : BOARD_MODE_WORK;
|
|
4695
4898
|
}
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
} catch {
|
|
4700
|
-
return BOARD_MODE_DEFAULT;
|
|
4701
|
-
}
|
|
4702
|
-
}
|
|
4703
|
-
function writeBoardMode(storage, mode) {
|
|
4704
|
-
const next = normalizeBoardMode(mode);
|
|
4705
|
-
try {
|
|
4706
|
-
storage?.setItem?.(BOARD_MODE_KEY, next);
|
|
4707
|
-
} catch {
|
|
4708
|
-
}
|
|
4709
|
-
return next;
|
|
4710
|
-
}
|
|
4899
|
+
|
|
4900
|
+
// src/client/board-mode.js
|
|
4901
|
+
var current = BOARD_MODE_DEFAULT;
|
|
4711
4902
|
var listeners = /* @__PURE__ */ new Set();
|
|
4903
|
+
function getBoardMode() {
|
|
4904
|
+
return current;
|
|
4905
|
+
}
|
|
4712
4906
|
function subscribeBoardMode(listener) {
|
|
4713
4907
|
listeners.add(listener);
|
|
4714
4908
|
return () => {
|
|
4715
4909
|
listeners.delete(listener);
|
|
4716
4910
|
};
|
|
4717
4911
|
}
|
|
4718
|
-
function
|
|
4912
|
+
function setBoardMode(mode) {
|
|
4719
4913
|
const next = normalizeBoardMode(mode);
|
|
4914
|
+
if (next === current) return next;
|
|
4915
|
+
current = next;
|
|
4720
4916
|
for (const listener of Array.from(listeners)) listener(next);
|
|
4721
|
-
}
|
|
4722
|
-
function setBoardMode(storage, mode) {
|
|
4723
|
-
const next = writeBoardMode(storage, mode);
|
|
4724
|
-
announceBoardMode(next);
|
|
4725
4917
|
return next;
|
|
4726
4918
|
}
|
|
4727
4919
|
|
|
4728
|
-
// src/client/guide-card-logic.js
|
|
4729
|
-
var GUIDE_DISMISS_PREFIX = "dsh-leader-agent.guide.dismissed.";
|
|
4730
|
-
function guideDismissKey(sessionId) {
|
|
4731
|
-
return `${GUIDE_DISMISS_PREFIX}${sessionId}`;
|
|
4732
|
-
}
|
|
4733
|
-
function shouldShowGuide({ isLeader, blank, dismissed }) {
|
|
4734
|
-
return isLeader === true && blank === true && dismissed !== true;
|
|
4735
|
-
}
|
|
4736
|
-
function readLocalStorage(scope) {
|
|
4737
|
-
try {
|
|
4738
|
-
return scope?.localStorage;
|
|
4739
|
-
} catch {
|
|
4740
|
-
return void 0;
|
|
4741
|
-
}
|
|
4742
|
-
}
|
|
4743
|
-
function sendIntroPrompt(inputActions, prompt) {
|
|
4744
|
-
if (!canSendIntro(inputActions)) return false;
|
|
4745
|
-
inputActions.setDraft(prompt);
|
|
4746
|
-
inputActions.submit();
|
|
4747
|
-
return true;
|
|
4748
|
-
}
|
|
4749
|
-
function canSendIntro(inputActions) {
|
|
4750
|
-
return typeof inputActions?.setDraft === "function" && typeof inputActions?.submit === "function";
|
|
4751
|
-
}
|
|
4752
|
-
function createGuideDismissal(storage) {
|
|
4753
|
-
return {
|
|
4754
|
-
isDismissed: (sessionId) => {
|
|
4755
|
-
if (typeof sessionId !== "string" || sessionId === "") return false;
|
|
4756
|
-
try {
|
|
4757
|
-
return storage?.getItem?.(guideDismissKey(sessionId)) === "1";
|
|
4758
|
-
} catch {
|
|
4759
|
-
return false;
|
|
4760
|
-
}
|
|
4761
|
-
},
|
|
4762
|
-
dismiss: (sessionId) => {
|
|
4763
|
-
if (typeof sessionId !== "string" || sessionId === "") return;
|
|
4764
|
-
try {
|
|
4765
|
-
storage?.setItem?.(guideDismissKey(sessionId), "1");
|
|
4766
|
-
} catch {
|
|
4767
|
-
}
|
|
4768
|
-
}
|
|
4769
|
-
};
|
|
4770
|
-
}
|
|
4771
|
-
|
|
4772
4920
|
// src/client/board-rail.js
|
|
4773
4921
|
var import_react8 = require("react");
|
|
4774
4922
|
|
|
@@ -5020,20 +5168,29 @@ function BoardRail({ railKey, orthogonal, theme }) {
|
|
|
5020
5168
|
}
|
|
5021
5169
|
|
|
5022
5170
|
// src/client/board.js
|
|
5023
|
-
function useBoardMode() {
|
|
5024
|
-
const [mode, setMode] = (0, import_react9.useState)(
|
|
5171
|
+
function useBoardMode(callRemote) {
|
|
5172
|
+
const [mode, setMode] = (0, import_react9.useState)(getBoardMode);
|
|
5025
5173
|
(0, import_react9.useEffect)(() => {
|
|
5174
|
+
let cancelled = false;
|
|
5026
5175
|
const off = subscribeBoardMode(setMode);
|
|
5027
|
-
const
|
|
5028
|
-
|
|
5029
|
-
|
|
5176
|
+
const load = () => {
|
|
5177
|
+
callRemote("readSettings", []).then((value) => {
|
|
5178
|
+
if (cancelled) return;
|
|
5179
|
+
setBoardMode(value?.boardMode);
|
|
5180
|
+
}).catch(() => {
|
|
5181
|
+
});
|
|
5182
|
+
};
|
|
5183
|
+
load();
|
|
5184
|
+
const onFocus = () => {
|
|
5185
|
+
load();
|
|
5030
5186
|
};
|
|
5031
|
-
globalThis.addEventListener?.("
|
|
5187
|
+
globalThis.addEventListener?.("focus", onFocus);
|
|
5032
5188
|
return () => {
|
|
5189
|
+
cancelled = true;
|
|
5033
5190
|
off();
|
|
5034
|
-
globalThis.removeEventListener?.("
|
|
5191
|
+
globalThis.removeEventListener?.("focus", onFocus);
|
|
5035
5192
|
};
|
|
5036
|
-
}, []);
|
|
5193
|
+
}, [callRemote]);
|
|
5037
5194
|
return mode;
|
|
5038
5195
|
}
|
|
5039
5196
|
function readColorScheme(getTheme) {
|
|
@@ -5201,8 +5358,8 @@ function useSlotStates(cards, getSessions, useSessionStatus, parentSessionId) {
|
|
|
5201
5358
|
},
|
|
5202
5359
|
onState: (sessionId, state) => {
|
|
5203
5360
|
setSnapshots((previous) => {
|
|
5204
|
-
const
|
|
5205
|
-
if (
|
|
5361
|
+
const current3 = previous.get(sessionId);
|
|
5362
|
+
if (current3 !== void 0 && current3.running === state.running && current3.failed === state.failed) {
|
|
5206
5363
|
return previous;
|
|
5207
5364
|
}
|
|
5208
5365
|
const next = new Map(previous);
|
|
@@ -5383,8 +5540,8 @@ function BoardPanel({
|
|
|
5383
5540
|
const refresh = () => {
|
|
5384
5541
|
fetchBoardCards(callRemote, project.id).then((next) => {
|
|
5385
5542
|
if (cancelled) return;
|
|
5386
|
-
setCards((
|
|
5387
|
-
const merged = mergeCardSnapshot(
|
|
5543
|
+
setCards((current3) => {
|
|
5544
|
+
const merged = mergeCardSnapshot(current3, next);
|
|
5388
5545
|
return deletedCardIds.current.size === 0 ? merged : merged.filter((card) => !deletedCardIds.current.has(card.id));
|
|
5389
5546
|
});
|
|
5390
5547
|
setLoaded(true);
|
|
@@ -5420,7 +5577,7 @@ function BoardPanel({
|
|
|
5420
5577
|
done: sortDoneCards(cardList.filter((card) => card.status === "done"))
|
|
5421
5578
|
}), [cardList, states]);
|
|
5422
5579
|
const doneFold = foldDoneCards(done, doneWatermark, t);
|
|
5423
|
-
const mode = useBoardMode();
|
|
5580
|
+
const mode = useBoardMode(callRemote);
|
|
5424
5581
|
const cinema = mode === "cinema";
|
|
5425
5582
|
const scheme = useHostColorScheme(getTheme, onThemeChange);
|
|
5426
5583
|
const listClass = cinema ? cinemaListClass(scheme) : "dsh-leader-agent-board-list";
|
|
@@ -5449,8 +5606,8 @@ function BoardPanel({
|
|
|
5449
5606
|
}, []);
|
|
5450
5607
|
const cardUpdated = (0, import_react9.useCallback)((updated) => {
|
|
5451
5608
|
if (updated === null || typeof updated !== "object") return;
|
|
5452
|
-
setCards((
|
|
5453
|
-
setDetail((
|
|
5609
|
+
setCards((current3) => mergeCardUpdate(current3, updated));
|
|
5610
|
+
setDetail((current3) => mergeDetailCard(current3, updated));
|
|
5454
5611
|
}, []);
|
|
5455
5612
|
const requestDelete = (0, import_react9.useCallback)(() => {
|
|
5456
5613
|
setDeleteError("");
|
|
@@ -5468,8 +5625,8 @@ function BoardPanel({
|
|
|
5468
5625
|
try {
|
|
5469
5626
|
await callRemote("deleteCard", [pendingDelete.id]);
|
|
5470
5627
|
deletedCardIds.current.add(pendingDelete.id);
|
|
5471
|
-
setCards((
|
|
5472
|
-
setDetail((
|
|
5628
|
+
setCards((current3) => removeCardFromList(current3, pendingDelete.id));
|
|
5629
|
+
setDetail((current3) => current3?.card?.id === pendingDelete.id ? null : current3);
|
|
5473
5630
|
setPendingDelete(null);
|
|
5474
5631
|
} catch (error) {
|
|
5475
5632
|
setDeleteError(projectRemoteErrorText(error, t, "board.error.delete"));
|
|
@@ -5671,28 +5828,30 @@ var MODE_KEYS = Object.freeze({
|
|
|
5671
5828
|
[BOARD_MODE_CINEMA]: { title: "board.mode.cinema.title", desc: "board.mode.cinema.desc" },
|
|
5672
5829
|
[BOARD_MODE_WORK]: { title: "board.mode.work.title", desc: "board.mode.work.desc" }
|
|
5673
5830
|
});
|
|
5674
|
-
function
|
|
5831
|
+
function errorText(error) {
|
|
5832
|
+
return error instanceof Error ? error.message : String(error);
|
|
5833
|
+
}
|
|
5834
|
+
function ModeIcon({ cinema }) {
|
|
5675
5835
|
if (cinema) {
|
|
5676
5836
|
return (0, import_react10.createElement)(
|
|
5677
5837
|
"svg",
|
|
5678
|
-
{ width:
|
|
5679
|
-
(0, import_react10.createElement)("path", { d: "
|
|
5680
|
-
(0, import_react10.createElement)("path", { d: "
|
|
5681
|
-
(0, import_react10.createElement)("circle", { cx:
|
|
5682
|
-
(0, import_react10.createElement)("circle", { cx:
|
|
5683
|
-
(0, import_react10.createElement)("circle", { cx:
|
|
5684
|
-
(0, import_react10.createElement)("circle", { cx: 36, cy: 9, r: 2.6, className: "dsh-leader-agent-settings-preview-dot" })
|
|
5838
|
+
{ width: 16, height: 16, viewBox: "0 0 18 18", fill: "none", "aria-hidden": "true" },
|
|
5839
|
+
(0, import_react10.createElement)("path", { d: "M4 3V15", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }),
|
|
5840
|
+
(0, import_react10.createElement)("path", { d: "M4 6H10M4 12H10", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }),
|
|
5841
|
+
(0, import_react10.createElement)("circle", { cx: 4, cy: 6, r: 1.5, fill: "currentColor" }),
|
|
5842
|
+
(0, import_react10.createElement)("circle", { cx: 4, cy: 12, r: 1.5, fill: "currentColor" }),
|
|
5843
|
+
(0, import_react10.createElement)("circle", { cx: 12, cy: 6, r: 1.5, fill: "currentColor" })
|
|
5685
5844
|
);
|
|
5686
5845
|
}
|
|
5687
5846
|
return (0, import_react10.createElement)(
|
|
5688
5847
|
"svg",
|
|
5689
|
-
{ width:
|
|
5690
|
-
(0, import_react10.createElement)("rect", { x:
|
|
5691
|
-
(0, import_react10.createElement)("rect", { x:
|
|
5692
|
-
(0, import_react10.createElement)("rect", { x:
|
|
5848
|
+
{ width: 16, height: 16, viewBox: "0 0 18 18", fill: "none", "aria-hidden": "true" },
|
|
5849
|
+
(0, import_react10.createElement)("rect", { x: 3, y: 3.5, width: 12, height: 3, rx: 1.5, fill: "currentColor", fillOpacity: 0.25 }),
|
|
5850
|
+
(0, import_react10.createElement)("rect", { x: 3, y: 7.5, width: 12, height: 3, rx: 1.5, fill: "currentColor", fillOpacity: 0.25 }),
|
|
5851
|
+
(0, import_react10.createElement)("rect", { x: 3, y: 11.5, width: 12, height: 3, rx: 1.5, fill: "currentColor", fillOpacity: 0.25 })
|
|
5693
5852
|
);
|
|
5694
5853
|
}
|
|
5695
|
-
function ModeOption({ value, mode, onChoose, t }) {
|
|
5854
|
+
function ModeOption({ value, mode, onChoose, disabled, t }) {
|
|
5696
5855
|
const selected = value === mode;
|
|
5697
5856
|
return (0, import_react10.createElement)(
|
|
5698
5857
|
"button",
|
|
@@ -5700,6 +5859,7 @@ function ModeOption({ value, mode, onChoose, t }) {
|
|
|
5700
5859
|
type: "button",
|
|
5701
5860
|
role: "radio",
|
|
5702
5861
|
"aria-checked": selected,
|
|
5862
|
+
disabled,
|
|
5703
5863
|
className: selected ? "dsh-leader-agent-settings-option dsh-leader-agent-settings-option-selected" : "dsh-leader-agent-settings-option",
|
|
5704
5864
|
onClick: () => {
|
|
5705
5865
|
onChoose(value);
|
|
@@ -5707,53 +5867,237 @@ function ModeOption({ value, mode, onChoose, t }) {
|
|
|
5707
5867
|
},
|
|
5708
5868
|
(0, import_react10.createElement)(
|
|
5709
5869
|
"span",
|
|
5710
|
-
{ className: "dsh-leader-agent-settings-
|
|
5711
|
-
(0, import_react10.createElement)(
|
|
5870
|
+
{ className: "dsh-leader-agent-settings-option-icon" },
|
|
5871
|
+
(0, import_react10.createElement)(ModeIcon, { cinema: value === BOARD_MODE_CINEMA })
|
|
5712
5872
|
),
|
|
5713
|
-
(0, import_react10.createElement)(
|
|
5714
|
-
|
|
5715
|
-
{ className: "dsh-leader-agent-settings-copy" },
|
|
5716
|
-
(0, import_react10.createElement)("b", null, t(MODE_KEYS[value].title)),
|
|
5717
|
-
(0, import_react10.createElement)("span", null, t(MODE_KEYS[value].desc))
|
|
5718
|
-
),
|
|
5719
|
-
(0, import_react10.createElement)("span", { className: "dsh-leader-agent-settings-radio", "aria-hidden": "true" })
|
|
5873
|
+
(0, import_react10.createElement)("span", { className: "dsh-leader-agent-settings-option-label" }, t(MODE_KEYS[value].title)),
|
|
5874
|
+
(0, import_react10.createElement)("span", { className: "dsh-leader-agent-settings-option-desc" }, t(MODE_KEYS[value].desc))
|
|
5720
5875
|
);
|
|
5721
5876
|
}
|
|
5722
|
-
function
|
|
5723
|
-
const
|
|
5724
|
-
const [mode, setMode] = (0, import_react10.useState)(
|
|
5877
|
+
function BoardModeSection({ t, callRemote }) {
|
|
5878
|
+
const [phase, setPhase] = (0, import_react10.useState)("loading");
|
|
5879
|
+
const [mode, setMode] = (0, import_react10.useState)(getBoardMode);
|
|
5880
|
+
const [busy, setBusy] = (0, import_react10.useState)(false);
|
|
5881
|
+
const [message, setMessage] = (0, import_react10.useState)("");
|
|
5882
|
+
const [attempt, setAttempt] = (0, import_react10.useState)(0);
|
|
5883
|
+
(0, import_react10.useEffect)(() => {
|
|
5884
|
+
let cancelled = false;
|
|
5885
|
+
setPhase("loading");
|
|
5886
|
+
setMessage("");
|
|
5887
|
+
callRemote("readSettings", []).then((value) => {
|
|
5888
|
+
if (cancelled) return;
|
|
5889
|
+
const next = normalizeBoardMode(value?.boardMode);
|
|
5890
|
+
setBoardMode(next);
|
|
5891
|
+
setMode(next);
|
|
5892
|
+
setPhase("ready");
|
|
5893
|
+
}).catch((error) => {
|
|
5894
|
+
if (cancelled) return;
|
|
5895
|
+
setPhase("error");
|
|
5896
|
+
setMessage(t("board.settings.loadFailed", { message: errorText(error) }));
|
|
5897
|
+
});
|
|
5898
|
+
return () => {
|
|
5899
|
+
cancelled = true;
|
|
5900
|
+
};
|
|
5901
|
+
}, [attempt, callRemote]);
|
|
5725
5902
|
(0, import_react10.useEffect)(() => subscribeBoardMode(setMode), []);
|
|
5903
|
+
function choose(next) {
|
|
5904
|
+
if (phase !== "ready" || busy || next === mode) return;
|
|
5905
|
+
setBusy(true);
|
|
5906
|
+
setMessage("");
|
|
5907
|
+
callRemote("setBoardMode", [next]).then((value) => {
|
|
5908
|
+
const applied = normalizeBoardMode(value?.boardMode);
|
|
5909
|
+
setBoardMode(applied);
|
|
5910
|
+
setMode(applied);
|
|
5911
|
+
setBusy(false);
|
|
5912
|
+
}).catch((error) => {
|
|
5913
|
+
setBusy(false);
|
|
5914
|
+
setMessage(t("board.settings.saveFailed", { message: errorText(error) }));
|
|
5915
|
+
});
|
|
5916
|
+
}
|
|
5917
|
+
const disabled = phase !== "ready" || busy;
|
|
5726
5918
|
return (0, import_react10.createElement)(
|
|
5727
5919
|
"section",
|
|
5728
|
-
{ className: "dsh-leader-agent-settings" },
|
|
5729
|
-
(0, import_react10.createElement)("h3", {
|
|
5920
|
+
{ className: "dsh-leader-agent-settings-section dsh-leader-agent-settings-group", "aria-labelledby": "dsh-leader-agent-settings-board" },
|
|
5921
|
+
(0, import_react10.createElement)("h3", {
|
|
5922
|
+
id: "dsh-leader-agent-settings-board",
|
|
5923
|
+
className: "dsh-leader-agent-settings-title"
|
|
5924
|
+
}, t("board.settings.title")),
|
|
5730
5925
|
(0, import_react10.createElement)("p", { className: "dsh-leader-agent-settings-desc" }, t("board.settings.desc")),
|
|
5731
5926
|
(0, import_react10.createElement)(
|
|
5732
5927
|
"div",
|
|
5733
5928
|
{
|
|
5734
5929
|
className: "dsh-leader-agent-settings-options",
|
|
5735
5930
|
role: "radiogroup",
|
|
5736
|
-
"aria-label": t("board.settings.title")
|
|
5931
|
+
"aria-label": t("board.settings.title"),
|
|
5932
|
+
"aria-busy": busy
|
|
5737
5933
|
},
|
|
5738
5934
|
BOARD_MODES.map((value) => (0, import_react10.createElement)(ModeOption, {
|
|
5739
5935
|
key: value,
|
|
5740
5936
|
value,
|
|
5741
5937
|
mode,
|
|
5742
|
-
|
|
5938
|
+
disabled,
|
|
5939
|
+
onChoose: choose,
|
|
5743
5940
|
t
|
|
5744
5941
|
}))
|
|
5745
5942
|
),
|
|
5746
|
-
(0, import_react10.createElement)(
|
|
5943
|
+
phase === "error" ? (0, import_react10.createElement)(
|
|
5944
|
+
"div",
|
|
5945
|
+
{ className: "dsh-leader-agent-settings-retry-row" },
|
|
5946
|
+
(0, import_react10.createElement)("span", { className: "dsh-leader-agent-settings-error", role: "alert" }, message),
|
|
5947
|
+
(0, import_react10.createElement)("button", {
|
|
5948
|
+
type: "button",
|
|
5949
|
+
className: "dsh-leader-agent-settings-retry",
|
|
5950
|
+
onClick: () => setAttempt((value) => value + 1)
|
|
5951
|
+
}, t("board.settings.retry"))
|
|
5952
|
+
) : null,
|
|
5953
|
+
phase === "ready" && message !== "" ? (0, import_react10.createElement)("p", { className: "dsh-leader-agent-settings-error", role: "alert" }, message) : null
|
|
5954
|
+
);
|
|
5955
|
+
}
|
|
5956
|
+
function AutoResumeSection({ t, callRemote }) {
|
|
5957
|
+
const [phase, setPhase] = (0, import_react10.useState)("loading");
|
|
5958
|
+
const [saved, setSaved] = (0, import_react10.useState)(AUTO_RESUME_LIMIT_DEFAULT);
|
|
5959
|
+
const [draft, setDraft] = (0, import_react10.useState)(String(AUTO_RESUME_LIMIT_DEFAULT));
|
|
5960
|
+
const [status, setStatus] = (0, import_react10.useState)("idle");
|
|
5961
|
+
const [message, setMessage] = (0, import_react10.useState)("");
|
|
5962
|
+
const [attempt, setAttempt] = (0, import_react10.useState)(0);
|
|
5963
|
+
(0, import_react10.useEffect)(() => {
|
|
5964
|
+
let cancelled = false;
|
|
5965
|
+
setPhase("loading");
|
|
5966
|
+
setStatus("idle");
|
|
5967
|
+
setMessage("");
|
|
5968
|
+
callRemote("readSettings", []).then((value) => {
|
|
5969
|
+
if (cancelled) return;
|
|
5970
|
+
const limit2 = parseAutoResumeLimit(value?.autoResumeLimit);
|
|
5971
|
+
const effective = limit2 ?? AUTO_RESUME_LIMIT_DEFAULT;
|
|
5972
|
+
setSaved(effective);
|
|
5973
|
+
setDraft(String(effective));
|
|
5974
|
+
setPhase("ready");
|
|
5975
|
+
}).catch((error) => {
|
|
5976
|
+
if (cancelled) return;
|
|
5977
|
+
setPhase("error");
|
|
5978
|
+
setMessage(t("settings.autoResume.loadFailed", { message: errorText(error) }));
|
|
5979
|
+
});
|
|
5980
|
+
return () => {
|
|
5981
|
+
cancelled = true;
|
|
5982
|
+
};
|
|
5983
|
+
}, [attempt, callRemote]);
|
|
5984
|
+
const limit = parseAutoResumeLimit(draft);
|
|
5985
|
+
const invalid = limit === void 0;
|
|
5986
|
+
const dirty = limit !== void 0 && limit !== saved;
|
|
5987
|
+
function commit(value) {
|
|
5988
|
+
if (phase !== "ready" || status === "saving") return;
|
|
5989
|
+
const next = parseAutoResumeLimit(value);
|
|
5990
|
+
if (next === void 0 || next === saved) return;
|
|
5991
|
+
setStatus("saving");
|
|
5992
|
+
setMessage("");
|
|
5993
|
+
callRemote("updateAutoResumeLimit", [next]).then((result) => {
|
|
5994
|
+
const applied = parseAutoResumeLimit(result?.autoResumeLimit) ?? next;
|
|
5995
|
+
setSaved(applied);
|
|
5996
|
+
setDraft(String(applied));
|
|
5997
|
+
setStatus("saved");
|
|
5998
|
+
}).catch((error) => {
|
|
5999
|
+
setStatus("error");
|
|
6000
|
+
setMessage(t("settings.autoResume.saveFailed", { message: errorText(error) }));
|
|
6001
|
+
});
|
|
6002
|
+
}
|
|
6003
|
+
(0, import_react10.useEffect)(() => {
|
|
6004
|
+
if (phase !== "ready" || !dirty || status === "saving" || status === "error") return void 0;
|
|
6005
|
+
const timer = setTimeout(() => {
|
|
6006
|
+
commit(draft);
|
|
6007
|
+
}, 600);
|
|
6008
|
+
return () => clearTimeout(timer);
|
|
6009
|
+
}, [draft, phase, dirty, status, saved, callRemote]);
|
|
6010
|
+
const describedBy = invalid ? "dsh-leader-agent-auto-resume-error" : void 0;
|
|
6011
|
+
return (0, import_react10.createElement)(
|
|
6012
|
+
"section",
|
|
6013
|
+
{ className: "dsh-leader-agent-settings-section", "aria-labelledby": "dsh-leader-agent-settings-auto-resume" },
|
|
6014
|
+
(0, import_react10.createElement)(
|
|
6015
|
+
"div",
|
|
6016
|
+
{ className: "dsh-leader-agent-settings-row" },
|
|
6017
|
+
(0, import_react10.createElement)(
|
|
6018
|
+
"div",
|
|
6019
|
+
{ className: "dsh-leader-agent-settings-row-text" },
|
|
6020
|
+
(0, import_react10.createElement)("h3", {
|
|
6021
|
+
id: "dsh-leader-agent-settings-auto-resume",
|
|
6022
|
+
className: "dsh-leader-agent-settings-subtitle"
|
|
6023
|
+
}, t("settings.autoResume.title")),
|
|
6024
|
+
(0, import_react10.createElement)("p", { className: "dsh-leader-agent-settings-desc" }, t("settings.autoResume.desc"))
|
|
6025
|
+
),
|
|
6026
|
+
(0, import_react10.createElement)(
|
|
6027
|
+
"div",
|
|
6028
|
+
{ className: "dsh-leader-agent-settings-control" },
|
|
6029
|
+
(0, import_react10.createElement)("input", {
|
|
6030
|
+
id: "dsh-leader-agent-auto-resume",
|
|
6031
|
+
className: "dsh-leader-agent-settings-input",
|
|
6032
|
+
type: "text",
|
|
6033
|
+
inputMode: "numeric",
|
|
6034
|
+
pattern: "[0-9]*",
|
|
6035
|
+
maxLength: 5,
|
|
6036
|
+
value: draft,
|
|
6037
|
+
disabled: phase !== "ready",
|
|
6038
|
+
readOnly: status === "saving",
|
|
6039
|
+
"aria-label": t("settings.autoResume.title"),
|
|
6040
|
+
"aria-invalid": invalid,
|
|
6041
|
+
"aria-describedby": describedBy,
|
|
6042
|
+
onChange: (event) => {
|
|
6043
|
+
setDraft(event.target.value);
|
|
6044
|
+
setStatus("idle");
|
|
6045
|
+
setMessage("");
|
|
6046
|
+
},
|
|
6047
|
+
onBlur: () => {
|
|
6048
|
+
commit(draft);
|
|
6049
|
+
},
|
|
6050
|
+
onKeyDown: (event) => {
|
|
6051
|
+
if (event.key !== "Enter") return;
|
|
6052
|
+
event.preventDefault();
|
|
6053
|
+
commit(draft);
|
|
6054
|
+
}
|
|
6055
|
+
}),
|
|
6056
|
+
(0, import_react10.createElement)("span", { className: "dsh-leader-agent-settings-unit" }, t("settings.autoResume.unit"))
|
|
6057
|
+
)
|
|
6058
|
+
),
|
|
6059
|
+
invalid ? (0, import_react10.createElement)("p", {
|
|
6060
|
+
id: "dsh-leader-agent-auto-resume-error",
|
|
6061
|
+
className: "dsh-leader-agent-settings-error",
|
|
6062
|
+
role: "alert"
|
|
6063
|
+
}, t("settings.autoResume.invalid", {
|
|
6064
|
+
min: AUTO_RESUME_LIMIT_MIN,
|
|
6065
|
+
max: AUTO_RESUME_LIMIT_MAX
|
|
6066
|
+
})) : null,
|
|
6067
|
+
status === "saved" ? (0, import_react10.createElement)("p", {
|
|
6068
|
+
className: "dsh-leader-agent-settings-saved",
|
|
6069
|
+
role: "status"
|
|
6070
|
+
}, t("settings.autoResume.saved")) : null,
|
|
6071
|
+
status === "error" ? (0, import_react10.createElement)("p", { className: "dsh-leader-agent-settings-error", role: "alert" }, message) : null,
|
|
6072
|
+
phase === "error" ? (0, import_react10.createElement)(
|
|
6073
|
+
"div",
|
|
6074
|
+
{ className: "dsh-leader-agent-settings-retry-row" },
|
|
6075
|
+
(0, import_react10.createElement)("span", { className: "dsh-leader-agent-settings-error" }, message),
|
|
6076
|
+
(0, import_react10.createElement)("button", {
|
|
6077
|
+
type: "button",
|
|
6078
|
+
className: "dsh-leader-agent-settings-retry",
|
|
6079
|
+
onClick: () => setAttempt((value) => value + 1)
|
|
6080
|
+
}, t("settings.autoResume.retry"))
|
|
6081
|
+
) : null
|
|
6082
|
+
);
|
|
6083
|
+
}
|
|
6084
|
+
function BoardSettingsSection({ t, callRemote }) {
|
|
6085
|
+
return (0, import_react10.createElement)(
|
|
6086
|
+
"section",
|
|
6087
|
+
{ className: "dsh-leader-agent-settings" },
|
|
6088
|
+
(0, import_react10.createElement)(BoardModeSection, { t, callRemote }),
|
|
6089
|
+
(0, import_react10.createElement)(AutoResumeSection, { t, callRemote })
|
|
5747
6090
|
);
|
|
5748
6091
|
}
|
|
5749
6092
|
function mountBoardSettings(ctx, t) {
|
|
5750
6093
|
ensureBoardStyles();
|
|
6094
|
+
const callRemote = (method, args = []) => callProjectRemote(ctx, method, args);
|
|
5751
6095
|
ctx.effect(() => ctx.slots.inject("settings.section", () => ctx.slots.register({
|
|
5752
6096
|
name: "settings.section",
|
|
5753
6097
|
id: SECTION_ID,
|
|
5754
6098
|
order: SECTION_ORDER,
|
|
5755
6099
|
label: () => t("board.settings.nav"),
|
|
5756
|
-
inject: () => ({ t })
|
|
6100
|
+
inject: () => ({ t, callRemote })
|
|
5757
6101
|
}, BoardSettingsSection)), "dsh-leader-agent \u8BBE\u7F6E\u9875");
|
|
5758
6102
|
}
|
|
5759
6103
|
|
|
@@ -6611,12 +6955,7 @@ var STYLE_TEXT3 = `
|
|
|
6611
6955
|
}
|
|
6612
6956
|
`;
|
|
6613
6957
|
function ensureStyles2() {
|
|
6614
|
-
|
|
6615
|
-
if (document.getElementById(STYLE_ID3) !== null) return;
|
|
6616
|
-
const style = document.createElement("style");
|
|
6617
|
-
style.id = STYLE_ID3;
|
|
6618
|
-
style.textContent = STYLE_TEXT3;
|
|
6619
|
-
document.head.append(style);
|
|
6958
|
+
ensureStyleSheet(STYLE_ID3, STYLE_TEXT3);
|
|
6620
6959
|
}
|
|
6621
6960
|
function ProjectSection(props) {
|
|
6622
6961
|
const {
|
|
@@ -7205,7 +7544,7 @@ function createSessionCompletionTracker() {
|
|
|
7205
7544
|
// src/client/toast.js
|
|
7206
7545
|
var HOLD_MS = 4e3;
|
|
7207
7546
|
var FADE_MS = 1e3;
|
|
7208
|
-
var
|
|
7547
|
+
var current2 = null;
|
|
7209
7548
|
var sequence = 0;
|
|
7210
7549
|
var listeners3 = /* @__PURE__ */ new Set();
|
|
7211
7550
|
function emit() {
|
|
@@ -7213,16 +7552,16 @@ function emit() {
|
|
|
7213
7552
|
}
|
|
7214
7553
|
function showToast(text) {
|
|
7215
7554
|
if (typeof text !== "string" || text === "") return;
|
|
7216
|
-
|
|
7555
|
+
current2 = { id: sequence += 1, text, holdMs: HOLD_MS, fadeMs: FADE_MS };
|
|
7217
7556
|
emit();
|
|
7218
7557
|
}
|
|
7219
7558
|
function dismissToast(id) {
|
|
7220
|
-
if (
|
|
7221
|
-
|
|
7559
|
+
if (current2 === null || current2.id !== id) return;
|
|
7560
|
+
current2 = null;
|
|
7222
7561
|
emit();
|
|
7223
7562
|
}
|
|
7224
7563
|
function currentToast() {
|
|
7225
|
-
return
|
|
7564
|
+
return current2;
|
|
7226
7565
|
}
|
|
7227
7566
|
function subscribeToasts(listener) {
|
|
7228
7567
|
listeners3.add(listener);
|
|
@@ -7250,12 +7589,7 @@ var STYLE_TEXT4 = `
|
|
|
7250
7589
|
}
|
|
7251
7590
|
`;
|
|
7252
7591
|
function ensureStyles3() {
|
|
7253
|
-
|
|
7254
|
-
if (document.getElementById(STYLE_ID4) !== null) return;
|
|
7255
|
-
const style = document.createElement("style");
|
|
7256
|
-
style.id = STYLE_ID4;
|
|
7257
|
-
style.textContent = STYLE_TEXT4;
|
|
7258
|
-
document.head.append(style);
|
|
7592
|
+
ensureStyleSheet(STYLE_ID4, STYLE_TEXT4);
|
|
7259
7593
|
}
|
|
7260
7594
|
function idOf(rowKey, prefix) {
|
|
7261
7595
|
if (typeof rowKey !== "string" || !rowKey.startsWith(prefix)) return void 0;
|
|
@@ -7431,9 +7765,9 @@ function createFrameScheduler({ schedule, cancel }) {
|
|
|
7431
7765
|
if (pending) return;
|
|
7432
7766
|
pending = true;
|
|
7433
7767
|
generation += 1;
|
|
7434
|
-
const
|
|
7768
|
+
const current3 = generation;
|
|
7435
7769
|
handle = schedule(() => {
|
|
7436
|
-
if (
|
|
7770
|
+
if (current3 !== generation) return;
|
|
7437
7771
|
pending = false;
|
|
7438
7772
|
handle = void 0;
|
|
7439
7773
|
task();
|
|
@@ -7793,7 +8127,7 @@ function ProjectPanel(props) {
|
|
|
7793
8127
|
setNaming(null);
|
|
7794
8128
|
}, []);
|
|
7795
8129
|
const onNamingChange = (0, import_react13.useCallback)((value) => {
|
|
7796
|
-
setNaming((
|
|
8130
|
+
setNaming((current3) => current3 === null ? null : { ...current3, name: value, error: "" });
|
|
7797
8131
|
}, []);
|
|
7798
8132
|
const openProject = (0, import_react13.useCallback)(async (project) => {
|
|
7799
8133
|
if (!isProjectOpenable(project)) {
|
|
@@ -7830,7 +8164,7 @@ function ProjectPanel(props) {
|
|
|
7830
8164
|
}
|
|
7831
8165
|
}, [busy, callRemote, refresh, t]);
|
|
7832
8166
|
const reorderProject = (0, import_react13.useCallback)((projectId, beforeId) => {
|
|
7833
|
-
setProjects((
|
|
8167
|
+
setProjects((current3) => moveProjectBefore(current3, projectId, beforeId));
|
|
7834
8168
|
return reorderQueue.push(async (isLatest) => {
|
|
7835
8169
|
try {
|
|
7836
8170
|
await callRemote("reorder", [projectId, beforeId]);
|
|
@@ -7847,7 +8181,7 @@ function ProjectPanel(props) {
|
|
|
7847
8181
|
const updated = await callRemote("replaceLeader", [project.id]);
|
|
7848
8182
|
const leaderSessionId = typeof updated?.leaderSessionId === "string" ? updated.leaderSessionId : "";
|
|
7849
8183
|
if (leaderSessionId !== "") {
|
|
7850
|
-
setProjects((
|
|
8184
|
+
setProjects((current3) => current3.map((item) => item.id === project.id ? { ...item, ...updated } : item));
|
|
7851
8185
|
const uiWorkspace = getUiWorkspace?.();
|
|
7852
8186
|
if (uiWorkspace !== void 0) uiWorkspace.openSession(leaderSessionId);
|
|
7853
8187
|
}
|
|
@@ -7958,8 +8292,8 @@ function ProjectPanel(props) {
|
|
|
7958
8292
|
expandedProjects,
|
|
7959
8293
|
listExpanded,
|
|
7960
8294
|
onToggleList: () => setListExpanded((value) => !value),
|
|
7961
|
-
onToggleExpand: (projectId) => setExpandedProjects((
|
|
7962
|
-
const next = new Set(
|
|
8295
|
+
onToggleExpand: (projectId) => setExpandedProjects((current3) => {
|
|
8296
|
+
const next = new Set(current3);
|
|
7963
8297
|
if (next.has(projectId)) next.delete(projectId);
|
|
7964
8298
|
else next.add(projectId);
|
|
7965
8299
|
return next;
|
|
@@ -8116,6 +8450,50 @@ function SidebarPlacement(props) {
|
|
|
8116
8450
|
var import_dsh_client_ui_primitives3 = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
8117
8451
|
var import_react14 = require("react");
|
|
8118
8452
|
|
|
8453
|
+
// src/client/guide-card-logic.js
|
|
8454
|
+
var GUIDE_DISMISS_PREFIX = "dsh-leader-agent.guide.dismissed.";
|
|
8455
|
+
function guideDismissKey(sessionId) {
|
|
8456
|
+
return `${GUIDE_DISMISS_PREFIX}${sessionId}`;
|
|
8457
|
+
}
|
|
8458
|
+
function shouldShowGuide({ isLeader, blank, dismissed }) {
|
|
8459
|
+
return isLeader === true && blank === true && dismissed !== true;
|
|
8460
|
+
}
|
|
8461
|
+
function readLocalStorage(scope) {
|
|
8462
|
+
try {
|
|
8463
|
+
return scope?.localStorage;
|
|
8464
|
+
} catch {
|
|
8465
|
+
return void 0;
|
|
8466
|
+
}
|
|
8467
|
+
}
|
|
8468
|
+
function sendIntroPrompt(inputActions, prompt) {
|
|
8469
|
+
if (!canSendIntro(inputActions)) return false;
|
|
8470
|
+
inputActions.setDraft(prompt);
|
|
8471
|
+
inputActions.submit();
|
|
8472
|
+
return true;
|
|
8473
|
+
}
|
|
8474
|
+
function canSendIntro(inputActions) {
|
|
8475
|
+
return typeof inputActions?.setDraft === "function" && typeof inputActions?.submit === "function";
|
|
8476
|
+
}
|
|
8477
|
+
function createGuideDismissal(storage) {
|
|
8478
|
+
return {
|
|
8479
|
+
isDismissed: (sessionId) => {
|
|
8480
|
+
if (typeof sessionId !== "string" || sessionId === "") return false;
|
|
8481
|
+
try {
|
|
8482
|
+
return storage?.getItem?.(guideDismissKey(sessionId)) === "1";
|
|
8483
|
+
} catch {
|
|
8484
|
+
return false;
|
|
8485
|
+
}
|
|
8486
|
+
},
|
|
8487
|
+
dismiss: (sessionId) => {
|
|
8488
|
+
if (typeof sessionId !== "string" || sessionId === "") return;
|
|
8489
|
+
try {
|
|
8490
|
+
storage?.setItem?.(guideDismissKey(sessionId), "1");
|
|
8491
|
+
} catch {
|
|
8492
|
+
}
|
|
8493
|
+
}
|
|
8494
|
+
};
|
|
8495
|
+
}
|
|
8496
|
+
|
|
8119
8497
|
// src/client/leader-view-logic.js
|
|
8120
8498
|
var LEADER_VIEW_TARGET = "dsh-leader-agent";
|
|
8121
8499
|
function createLeaderViewDefinition() {
|
|
@@ -8306,12 +8684,7 @@ var STYLE_TEXT5 = `
|
|
|
8306
8684
|
}
|
|
8307
8685
|
`;
|
|
8308
8686
|
function ensureLeaderChangesStyles() {
|
|
8309
|
-
|
|
8310
|
-
if (document.getElementById(STYLE_ID5) !== null) return;
|
|
8311
|
-
const style = document.createElement("style");
|
|
8312
|
-
style.id = STYLE_ID5;
|
|
8313
|
-
style.textContent = STYLE_TEXT5;
|
|
8314
|
-
document.head.append(style);
|
|
8687
|
+
ensureStyleSheet(STYLE_ID5, STYLE_TEXT5);
|
|
8315
8688
|
}
|
|
8316
8689
|
function isLeaderSession(leaderIds, sessionId) {
|
|
8317
8690
|
if (typeof sessionId !== "string" || sessionId === "") return false;
|
|
@@ -8524,19 +8897,19 @@ function hasOpenTab(store, projectId, sessionId) {
|
|
|
8524
8897
|
}
|
|
8525
8898
|
function addOpenTab(store, projectId, sessionId) {
|
|
8526
8899
|
if (!validKey(projectId) || !validKey(sessionId)) return store;
|
|
8527
|
-
const
|
|
8528
|
-
if (
|
|
8529
|
-
if (
|
|
8900
|
+
const current3 = openTabIds(store, projectId);
|
|
8901
|
+
if (current3.includes(sessionId)) return store;
|
|
8902
|
+
if (current3.length >= MAX_OPEN_TABS_PER_PROJECT) return store;
|
|
8530
8903
|
return {
|
|
8531
8904
|
version: 1,
|
|
8532
|
-
projects: { ...projectsOf(store), [projectId]: [...
|
|
8905
|
+
projects: { ...projectsOf(store), [projectId]: [...current3, sessionId] }
|
|
8533
8906
|
};
|
|
8534
8907
|
}
|
|
8535
8908
|
function removeOpenTab(store, projectId, sessionId) {
|
|
8536
8909
|
if (!validKey(projectId) || !validKey(sessionId)) return store;
|
|
8537
|
-
const
|
|
8538
|
-
if (!
|
|
8539
|
-
const next =
|
|
8910
|
+
const current3 = openTabIds(store, projectId);
|
|
8911
|
+
if (!current3.includes(sessionId)) return store;
|
|
8912
|
+
const next = current3.filter((id) => id !== sessionId);
|
|
8540
8913
|
const projects = { ...projectsOf(store) };
|
|
8541
8914
|
if (next.length === 0) delete projects[projectId];
|
|
8542
8915
|
else projects[projectId] = next;
|
|
@@ -8844,12 +9217,7 @@ ${signalStyleText("dsh-leader-agent-tab-signal")}
|
|
|
8844
9217
|
}
|
|
8845
9218
|
`;
|
|
8846
9219
|
function ensureStyles4() {
|
|
8847
|
-
|
|
8848
|
-
if (document.getElementById(STYLE_ID6) !== null) return;
|
|
8849
|
-
const style = document.createElement("style");
|
|
8850
|
-
style.id = STYLE_ID6;
|
|
8851
|
-
style.textContent = STYLE_TEXT6;
|
|
8852
|
-
document.head.append(style);
|
|
9220
|
+
ensureStyleSheet(STYLE_ID6, STYLE_TEXT6);
|
|
8853
9221
|
}
|
|
8854
9222
|
function SessionTabsAnchor(props) {
|
|
8855
9223
|
const [host, setHost] = (0, import_react17.useState)(null);
|
|
@@ -8925,7 +9293,6 @@ function SessionTabsAnchor(props) {
|
|
|
8925
9293
|
column?.removeAttribute(COLUMN_ATTR);
|
|
8926
9294
|
mainBody?.removeAttribute(MAIN_ATTR);
|
|
8927
9295
|
created.remove();
|
|
8928
|
-
document.getElementById(STYLE_ID6)?.remove();
|
|
8929
9296
|
};
|
|
8930
9297
|
}, []);
|
|
8931
9298
|
return host === null ? null : (0, import_react_dom4.createPortal)((0, import_react17.createElement)(SessionTabBar, { ...props, reportVisible }), host);
|
|
@@ -9059,7 +9426,7 @@ function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout,
|
|
|
9059
9426
|
(0, import_react17.useEffect)(() => {
|
|
9060
9427
|
if (!view.visible || !view.isWorkerCurrent || currentSessionId === void 0) return;
|
|
9061
9428
|
if (hasOpenTab(store, view.project.id, currentSessionId)) return;
|
|
9062
|
-
setStore((
|
|
9429
|
+
setStore((current3) => addOpenTab(current3, view.project.id, currentSessionId));
|
|
9063
9430
|
}, [view.visible, view.isWorkerCurrent, view.project?.id, currentSessionId]);
|
|
9064
9431
|
const lastBoardCarry = (0, import_react17.useRef)(void 0);
|
|
9065
9432
|
const carryBoard = (0, import_react17.useCallback)(() => {
|
|
@@ -9131,7 +9498,7 @@ function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout,
|
|
|
9131
9498
|
if (workspace === void 0 || typeof workspace.openSession !== "function") return;
|
|
9132
9499
|
workspace.openSession(fallback);
|
|
9133
9500
|
}
|
|
9134
|
-
setStore((
|
|
9501
|
+
setStore((current3) => removeOpenTab(current3, view.project.id, sessionId));
|
|
9135
9502
|
};
|
|
9136
9503
|
return (0, import_react17.createElement)(
|
|
9137
9504
|
"div",
|
|
@@ -9274,12 +9641,7 @@ var STYLE_TEXT7 = `
|
|
|
9274
9641
|
}
|
|
9275
9642
|
`;
|
|
9276
9643
|
function ensureStyles5() {
|
|
9277
|
-
|
|
9278
|
-
if (document.getElementById(STYLE_ID7) !== null) return;
|
|
9279
|
-
const style = document.createElement("style");
|
|
9280
|
-
style.id = STYLE_ID7;
|
|
9281
|
-
style.textContent = STYLE_TEXT7;
|
|
9282
|
-
document.head.append(style);
|
|
9644
|
+
ensureStyleSheet(STYLE_ID7, STYLE_TEXT7);
|
|
9283
9645
|
}
|
|
9284
9646
|
function ToastOverlay() {
|
|
9285
9647
|
const [toast, setToast] = (0, import_react18.useState)(currentToast);
|
|
@@ -9974,12 +10336,7 @@ var STYLE_TEXT8 = `
|
|
|
9974
10336
|
}
|
|
9975
10337
|
`;
|
|
9976
10338
|
function ensureAgentBubbleStyles() {
|
|
9977
|
-
|
|
9978
|
-
if (document.getElementById(STYLE_ID8) !== null) return;
|
|
9979
|
-
const style = document.createElement("style");
|
|
9980
|
-
style.id = STYLE_ID8;
|
|
9981
|
-
style.textContent = STYLE_TEXT8;
|
|
9982
|
-
document.head.append(style);
|
|
10339
|
+
ensureStyleSheet(STYLE_ID8, STYLE_TEXT8);
|
|
9983
10340
|
}
|
|
9984
10341
|
|
|
9985
10342
|
// src/client/bubble-clock.js
|
|
@@ -10249,12 +10606,7 @@ var STYLE_TEXT9 = `
|
|
|
10249
10606
|
}
|
|
10250
10607
|
`;
|
|
10251
10608
|
function ensureWorkerTaskStyles() {
|
|
10252
|
-
|
|
10253
|
-
if (document.getElementById(STYLE_ID9) !== null) return;
|
|
10254
|
-
const style = document.createElement("style");
|
|
10255
|
-
style.id = STYLE_ID9;
|
|
10256
|
-
style.textContent = STYLE_TEXT9;
|
|
10257
|
-
document.head.append(style);
|
|
10609
|
+
ensureStyleSheet(STYLE_ID9, STYLE_TEXT9);
|
|
10258
10610
|
}
|
|
10259
10611
|
|
|
10260
10612
|
// src/client/worker-task-view.js
|