dsh-leader-agent 0.5.0 → 0.7.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.
Files changed (68) hide show
  1. package/.agents/skills/e2e-scenarios/SKILL.md +3 -1
  2. package/.agents/skills/leader-mode/SKILL.md +1 -1
  3. package/.agents/skills/leader-mode/playbooks/program.md +3 -1
  4. package/.agents/skills/leader-mode/references/parallel.md +1 -1
  5. package/README.md +13 -5
  6. package/README_ZH.md +13 -5
  7. package/THIRD_PARTY_LICENSE +84 -0
  8. package/lib/client.js +2974 -601
  9. package/locale/de.json +134 -0
  10. package/locale/en.json +129 -1
  11. package/locale/es.json +134 -0
  12. package/locale/fr.json +134 -0
  13. package/locale/ja.json +134 -0
  14. package/locale/pt.json +134 -0
  15. package/locale/ru.json +134 -0
  16. package/locale/zh.json +130 -2
  17. package/package.json +20 -4
  18. package/src/client/agent-bubble-styles.js +31 -1
  19. package/src/client/agent-bubble-view.js +42 -17
  20. package/src/client/board-card.js +18 -16
  21. package/src/client/board-foreground.js +40 -0
  22. package/src/client/board-projection.js +6 -2
  23. package/src/client/board-styles.js +11 -41
  24. package/src/client/board.js +142 -39
  25. package/src/client/bubble-clock.js +10 -6
  26. package/src/client/card-detail-view.js +8 -11
  27. package/src/client/card-detail.js +12 -11
  28. package/src/client/card-links-editor.js +27 -15
  29. package/src/client/index.js +83 -9
  30. package/src/client/leader-changes-anchor.js +51 -0
  31. package/src/client/leader-changes.js +150 -0
  32. package/src/client/leader-view-logic.js +2 -1
  33. package/src/client/leader-view.js +1 -1
  34. package/src/client/locales.generated.js +1028 -0
  35. package/src/client/locales.js +27 -31
  36. package/src/client/main-panel.js +73 -0
  37. package/src/client/markdown.js +34 -11
  38. package/src/client/project-board-data.js +36 -1
  39. package/src/client/project-changes.js +2 -1
  40. package/src/client/project-panel-logic.js +24 -17
  41. package/src/client/project-panel.js +47 -45
  42. package/src/client/project-remote.js +56 -29
  43. package/src/client/project-section.js +25 -18
  44. package/src/client/ready-signal.js +1 -1
  45. package/src/client/session-tabs-logic.js +383 -0
  46. package/src/client/session-tabs.js +722 -0
  47. package/src/client/session-watermark.js +10 -6
  48. package/src/client/signal-styles.js +56 -0
  49. package/src/client/toast-view.js +1 -0
  50. package/src/client/worker-report-avatar.js +243 -51
  51. package/src/client/worker-report-view.js +4 -2
  52. package/src/client/worker-task-view.js +8 -7
  53. package/src/host/cards/card-context.js +1 -1
  54. package/src/host/cards/card-list-view.js +65 -10
  55. package/src/host/cards/store.js +24 -5
  56. package/src/host/dispatch.js +386 -27
  57. package/src/host/index.js +22 -5
  58. package/src/host/notification-store.js +19 -0
  59. package/src/host/projects/remote.js +4 -1
  60. package/src/host/projects/store.js +1 -2
  61. package/src/host/skills.js +1 -1
  62. package/src/host/tools/cards.js +105 -17
  63. package/src/host/tools/gate.js +17 -12
  64. package/src/host/tools/spawn-worker.js +1 -1
  65. package/src/host/worker-registry.js +73 -2
  66. package/src/host/worker-stall.js +207 -0
  67. package/src/shared/card-links.js +6 -6
  68. package/src/shared/worker-stall.js +66 -0
package/lib/client.js CHANGED
@@ -1,7 +1,10 @@
1
1
  window.__ModuleLoader__.load({ id: "dsh-leader-agent", factory: (require) => {
2
2
  /*!
3
- * minidenticons - https://github.com/laurentpayot/minidenticons
4
- * Copyright (c) 2021 Laurent Payot
3
+ * blobatar - https://github.com/Alain00/blobatar
4
+ *
5
+ * MIT License
6
+ *
7
+ * Copyright (c) 2026 Alain
5
8
  *
6
9
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
10
  * of this software and associated documentation files (the "Software"), to deal
@@ -18,8 +21,7 @@ window.__ModuleLoader__.load({ id: "dsh-leader-agent", factory: (require) => {
18
21
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
22
  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
23
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
24
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR OTHER DEALINGS IN THE SOFTWARE.
23
25
  */
24
26
  var module = { exports: {} }; var exports = module.exports;
25
27
  var __defProp = Object.defineProperty;
@@ -69,13 +71,13 @@ function requiredWatermark(rows, currentSessionId) {
69
71
  }
70
72
  return required;
71
73
  }
72
- function foldRows(rows, watermark, { pageSize, baseline = pageSize, noun }) {
74
+ function foldRows(rows, watermark, { pageSize, baseline = pageSize, expandLabel }) {
73
75
  const limit = Math.max(baseline, watermark);
74
76
  const visible = watermarkRows(rows, limit);
75
77
  return {
76
78
  ...visible,
77
79
  expanded: visible.hiddenCount === 0 && limit > baseline,
78
- expandLabel: `\u5C55\u5F00\u5176\u4F59 ${visible.hiddenCount} \u4E2A${noun}`
80
+ expandLabel: expandLabel(visible.hiddenCount)
79
81
  };
80
82
  }
81
83
  function nextRowWatermark(hiddenCount, visibleCount, pageSize) {
@@ -85,9 +87,13 @@ function nextRowWatermark(hiddenCount, visibleCount, pageSize) {
85
87
  function nextWatermark(hiddenCount, visibleCount, pageSize = SESSION_WATERMARK_BASE) {
86
88
  return nextRowWatermark(hiddenCount, visibleCount, pageSize);
87
89
  }
88
- function foldSessions(rows, storedWatermark, currentSessionId, pageSize = SESSION_WATERMARK_BASE) {
90
+ function foldSessions(rows, storedWatermark, currentSessionId, t, pageSize = SESSION_WATERMARK_BASE) {
89
91
  const baseline = Math.max(pageSize, requiredWatermark(rows, currentSessionId));
90
- return foldRows(rows, Math.max(baseline, storedWatermark), { pageSize, baseline, noun: "\u4F1A\u8BDD" });
92
+ return foldRows(rows, Math.max(baseline, storedWatermark), {
93
+ pageSize,
94
+ baseline,
95
+ expandLabel: (hiddenCount) => t("session.fold.expand", { count: hiddenCount })
96
+ });
91
97
  }
92
98
 
93
99
  // src/client/board-projection.js
@@ -216,8 +222,11 @@ function sortDoneCards(cards) {
216
222
  });
217
223
  }
218
224
  var DONE_PAGE_SIZE = 30;
219
- function foldDoneCards(cards, watermark) {
220
- return foldRows(cards, watermark, { pageSize: DONE_PAGE_SIZE, noun: "\u5361\u7247" });
225
+ function foldDoneCards(cards, watermark, t) {
226
+ return foldRows(cards, watermark, {
227
+ pageSize: DONE_PAGE_SIZE,
228
+ expandLabel: (hiddenCount) => t("board.fold.expand", { count: hiddenCount })
229
+ });
221
230
  }
222
231
  function nextDoneWatermark(hiddenCount, visibleCount) {
223
232
  return nextRowWatermark(hiddenCount, visibleCount, DONE_PAGE_SIZE);
@@ -320,7 +329,7 @@ function isBoardEntryVisible(project, sessionId, isWorker) {
320
329
  }
321
330
  async function resolveBoardAccess(callRemote, sessionId) {
322
331
  const project = await resolveProject(callRemote, sessionId);
323
- if (project === void 0) return { project, worker: false };
332
+ if (project === void 0) return resolveBoardAccessFromRegistry(callRemote, sessionId);
324
333
  if (isLeaderProject(project, sessionId)) return { project, worker: false };
325
334
  if (isRetiredLeaderSession(project, sessionId)) return { project, worker: false };
326
335
  try {
@@ -330,6 +339,26 @@ async function resolveBoardAccess(callRemote, sessionId) {
330
339
  return { project, worker: false };
331
340
  }
332
341
  }
342
+ async function resolveBoardAccessFromRegistry(callRemote, sessionId) {
343
+ try {
344
+ const sessions = await fetchProjectSessions(callRemote);
345
+ let projectId;
346
+ for (const [id, ids] of sessions) {
347
+ if (ids.has(sessionId)) {
348
+ projectId = id;
349
+ break;
350
+ }
351
+ }
352
+ if (projectId === void 0) return { project: void 0, worker: false };
353
+ const projects = await callRemote("list", []);
354
+ const project = Array.isArray(projects) ? projects.find((item) => item?.id === projectId) : void 0;
355
+ if (project === void 0) return { project: void 0, worker: false };
356
+ if (isRetiredLeaderSession(project, sessionId)) return { project, worker: false };
357
+ return { project, worker: !isLeaderProject(project, sessionId) };
358
+ } catch {
359
+ return { project: void 0, worker: false };
360
+ }
361
+ }
333
362
  async function fetchProjectSessions(callRemote) {
334
363
  const groups = await callRemote("sessionsByProject", []);
335
364
  const table = /* @__PURE__ */ new Map();
@@ -508,16 +537,16 @@ function isHttpUrl(value) {
508
537
  return normalizeHttpUrl(value) !== null;
509
538
  }
510
539
  function normalizeLinkDrafts(links) {
511
- if (!Array.isArray(links)) return { error: "\u94FE\u63A5\u5FC5\u987B\u662F\u6570\u7EC4" };
540
+ if (!Array.isArray(links)) return { error: { code: "notArray" } };
512
541
  const normalized = [];
513
542
  const seenIds = /* @__PURE__ */ new Set();
514
543
  for (const entry of links) {
515
544
  if (entry === null || typeof entry !== "object" || Array.isArray(entry)) {
516
- return { error: "\u94FE\u63A5\u6761\u76EE\u5FC5\u987B\u662F\u5BF9\u8C61" };
545
+ return { error: { code: "entryNotObject" } };
517
546
  }
518
547
  for (const field of ["id", "label", "url", "purpose"]) {
519
548
  if (entry[field] !== void 0 && typeof entry[field] !== "string") {
520
- return { error: `\u94FE\u63A5\u6761\u76EE\u7684 ${field} \u5FC5\u987B\u662F\u5B57\u7B26\u4E32` };
549
+ return { error: { code: "fieldNotString", params: { field } } };
521
550
  }
522
551
  }
523
552
  const label = (entry.label ?? "").trim();
@@ -525,13 +554,13 @@ function normalizeLinkDrafts(links) {
525
554
  const purpose = (entry.purpose ?? "").trim();
526
555
  if (label === "") {
527
556
  if (rawUrl === "" && purpose === "") continue;
528
- return { error: `\u6709\u4E00\u6761\u94FE\u63A5\u53EA\u586B\u4E86${rawUrl === "" ? "\u7528\u9014" : " URL"}\uFF0C\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A` };
557
+ return { error: { code: rawUrl === "" ? "labelMissingPurpose" : "labelMissingUrl" } };
529
558
  }
530
559
  let url = "";
531
560
  if (rawUrl !== "") {
532
561
  const normalizedUrl = normalizeHttpUrl(rawUrl);
533
562
  if (normalizedUrl === null) {
534
- return { error: `\u300C${label}\u300D\u7684\u94FE\u63A5 URL \u5FC5\u987B\u662F http(s) \u7EDD\u5BF9\u5730\u5740\uFF0C\u4F8B\u5982 https://example.com/\u2026` };
563
+ return { error: { code: "invalidUrl", params: { label } } };
535
564
  }
536
565
  url = normalizedUrl;
537
566
  }
@@ -566,33 +595,1045 @@ function planLinkRow(links, visibleCount) {
566
595
  };
567
596
  }
568
597
 
598
+ // src/client/locales.generated.js
599
+ var LOCALE_UI = Object.freeze({
600
+ "de": Object.freeze({
601
+ "board.delete.title": "Karte l\xF6schen",
602
+ "board.done": "Erledigt",
603
+ "board.empty.doneHintNamed": "Alle Karten in \u201E{project}\u201C sind erledigt",
604
+ "board.empty.doneHintOwn": "Alle Karten in diesem Projekt sind erledigt",
605
+ "board.empty.doneTitle": "Alles erledigt",
606
+ "board.empty.hint": "Karten erscheinen hier, sobald der Leader create_card aufruft",
607
+ "board.empty.title": "Noch keine Karten",
608
+ "board.error.cards": "Karten konnten nicht gelesen werden: {message}",
609
+ "board.error.delete": "Karte konnte nicht gel\xF6scht werden: {message}",
610
+ "board.error.project": "Projekt konnte nicht gelesen werden: {message}",
611
+ "board.fold.expand": "Weitere Karten anzeigen ({count})",
612
+ "board.leaderDead.hint": "Ersetzen Sie den Leader dieses Projekts im Projektbereich der linken Seitenleiste und \xF6ffnen Sie das Board erneut.",
613
+ "board.leaderDead.title": "Die Leader-Sitzung dieses Projekts ist nicht mehr verf\xFCgbar",
614
+ "board.noProject.hint": "Das Board ist nach Projekten organisiert: \xD6ffnen Sie es aus einer Projektsitzung (Leader oder Worker).",
615
+ "board.noProject.title": "Diese Sitzung geh\xF6rt zu keinem Projekt",
616
+ "board.notProject.hint": "Dies ist eine gew\xF6hnliche Sitzung im Ordner von \u201E{project}\u201C. \xD6ffnen Sie die Leader- oder Worker-Sitzung des Projekts, um dessen Board zu sehen.",
617
+ "board.notProject.title": "Das Board \xF6ffnet sich nur in Projektsitzungen",
618
+ "board.notProject.unknown": "Diese Sitzung geh\xF6rt zu keinem Projekt; \xF6ffnen Sie die Leader- oder Worker-Sitzung eines Projekts, um dessen Board zu sehen.",
619
+ "board.slot.title": "{name}: {state}",
620
+ "board.state.attention": "Braucht Aufmerksamkeit",
621
+ "board.state.empty": "Nicht zugewiesen",
622
+ "board.state.idle": "Inaktiv",
623
+ "board.state.none": "Kein Signal",
624
+ "board.state.running": "L\xE4uft",
625
+ "board.state.unknown": "Unbekannt",
626
+ "board.state.unread": "Ungelesen",
627
+ "board.state.waiting": "Wartet auf Ihre Antwort",
628
+ "bubble.clock.day": "{day}.{month}.",
629
+ "bubble.clock.dayYear": "{day}.{month}.{year}",
630
+ "bubble.copied": "Kopiert",
631
+ "bubble.copy": "Kopieren",
632
+ "bubble.more": "Mehr anzeigen",
633
+ "bubble.openSession": "Untergeordnete Sitzung von {name} \xF6ffnen",
634
+ "bubble.taskTitle": "Aufgabe vom Leader",
635
+ "card.detail.delete": "Karte l\xF6schen",
636
+ "card.detail.editLinks": "Links bearbeiten",
637
+ "card.detail.empty": "Diese Karte hat noch keine Beschreibung.",
638
+ "card.detail.links": "Links",
639
+ "card.detail.remove": "Karte #{number} \u201E{title}\u201C l\xF6schen. Das kann nicht r\xFCckg\xE4ngig gemacht werden; die Nummer wird nicht wiederverwendet und die Slot-Bindungen der Karte werden freigegeben.",
640
+ "card.detail.spec": "Beschreibung",
641
+ "card.links.add": "+ Link hinzuf\xFCgen",
642
+ "card.links.addPurpose": "Zweck hinzuf\xFCgen",
643
+ "card.links.empty": "Diese Karte hat noch keine Links.",
644
+ "card.links.error.entryNotObject": "Jeder Link muss ein Objekt sein.",
645
+ "card.links.error.fieldNotString": "Das Feld {field} des Links muss eine Zeichenkette sein.",
646
+ "card.links.error.invalidUrl": "Die URL f\xFCr \u201E{label}\u201C muss eine absolute http(s)-Adresse sein, zum Beispiel https://example.com/\u2026",
647
+ "card.links.error.labelMissingPurpose": "Ein Link hat einen Zweck, aber keine Bezeichnung. F\xFCgen Sie vor dem Speichern eine Bezeichnung hinzu.",
648
+ "card.links.error.labelMissingUrl": "Ein Link hat eine URL, aber keine Bezeichnung. F\xFCgen Sie vor dem Speichern eine Bezeichnung hinzu.",
649
+ "card.links.error.notArray": "Links m\xFCssen ein Array sein.",
650
+ "card.links.label": "Bezeichnung",
651
+ "card.links.labelAria": "Link-Bezeichnung",
652
+ "card.links.purpose": "Zweck (optional)",
653
+ "card.links.purposeAria": "Zweck des Links",
654
+ "card.links.remove": "Link entfernen",
655
+ "card.links.saveFailed": "Links konnten nicht gespeichert werden: {message}",
656
+ "card.links.urlAria": "Link-URL",
657
+ "card.status.active": "In Arbeit",
658
+ "card.status.archived": "Archiviert",
659
+ "card.status.done": "Erledigt",
660
+ "common.cancel": "Abbrechen",
661
+ "common.close": "Schlie\xDFen",
662
+ "common.collapse": "Einklappen",
663
+ "common.delete": "L\xF6schen",
664
+ "common.save": "Speichern",
665
+ "common.saving": "Wird gespeichert\u2026",
666
+ "guide.action.dismiss": "Verstanden",
667
+ "guide.action.intro": "Zeigen Sie mir, wie es funktioniert",
668
+ "guide.intro.prompt": "Dieses Projekt ist noch nicht eingerichtet \u2013 zeigen Sie mir, wie dsh-leader-agent funktioniert.",
669
+ "guide.steps": "Aufgabenkarten anlegen, Arbeit an Agenten \xFCbergeben und den Fortschritt im Board verfolgen",
670
+ "guide.title": "Dieses Verzeichnis hat einen Leader",
671
+ "markdown.code": "Code",
672
+ "markdown.copied": "Kopiert",
673
+ "markdown.copy": "Kopieren",
674
+ "markdown.footnotes": "Fu\xDFnoten",
675
+ "markdown.unwrap": "Nicht umbrechen",
676
+ "markdown.wrap": "Umbrechen",
677
+ "project.add": "Projekt hinzuf\xFCgen: Ordner ausw\xE4hlen",
678
+ "project.archive": "Sitzung archivieren: aus der Liste entfernen und die Slot-Bindungen der Karten freigeben",
679
+ "project.archive.aria": "Sitzung {title} archivieren",
680
+ "project.archive.confirm": "Beenden und archivieren",
681
+ "project.archive.description": "Diese Sitzung l\xE4uft. Beim Archivieren werden zuerst ihre Aufgaben beendet, dann wird sie aus der Liste entfernt und die Slot-Bindungen der Karten werden freigegeben. Der Sitzungsverlauf bleibt erhalten.",
682
+ "project.archive.title": "Sitzung l\xE4uft noch",
683
+ "project.collapseList": "Projektliste einklappen",
684
+ "project.collapseSessions": "Sitzungen einklappen",
685
+ "project.completedUnread": "Erledigt, ungelesen",
686
+ "project.create": "Projekt erstellen",
687
+ "project.empty": "Noch keine Projekte. F\xFCgen Sie eines hinzu, um eine Leader-Sitzung in seinem Ordner zu erstellen.",
688
+ "project.error.archive": "Sitzung konnte nicht archiviert werden: {message}",
689
+ "project.error.archivePartial": "Sitzung archiviert, aber die Slot-Freigabe der Karten ist fehlgeschlagen: {message}",
690
+ "project.error.create": "Projekt konnte nicht erstellt werden: {message}",
691
+ "project.error.delete": "Projekt konnte nicht gel\xF6scht werden: {message}",
692
+ "project.error.deleteReason": "Projekt konnte nicht gel\xF6scht werden.",
693
+ "project.error.directoryPicker": "Ordnerauswahl nicht verf\xFCgbar: Dieser Host kann keinen Ordner ausw\xE4hlen. Wechseln Sie zum Web-Profil und versuchen Sie es erneut.",
694
+ "project.error.namespaceMissing": "Der Projektkanal ist nicht verf\xFCgbar.",
695
+ "project.error.navigation": "Navigationsdienst nicht verf\xFCgbar: Die Sitzung kann nicht ge\xF6ffnet werden.",
696
+ "project.error.read": "Projekte konnten nicht gelesen werden: {message}",
697
+ "project.error.rename": "Projekt konnte nicht umbenannt werden: {message}",
698
+ "project.error.reorder": "Projekte konnten nicht neu angeordnet werden: {message}",
699
+ "project.error.replaceLeader": "Leader konnte nicht ersetzt werden: {message}",
700
+ "project.error.sessions": "Sitzungen des Projekts konnten nicht gelesen werden: {message}",
701
+ "project.error.stopArchive": "Sitzung konnte nicht beendet und archiviert werden: {message}",
702
+ "project.error.workspaces": "Arbeitsbereichsdienst nicht verf\xFCgbar: Die Sitzung kann nicht archiviert werden.",
703
+ "project.expandList": "Projektliste ausklappen",
704
+ "project.expandSessions": "Sitzungen ausklappen",
705
+ "project.label": "Projekte",
706
+ "project.leaderDeleted": "Die Leader-Sitzung des Projekts \u201E{name}\u201C wurde gel\xF6scht. Ersetzen Sie den Leader.",
707
+ "project.leaderMissing": "Das Projekt \u201E{name}\u201C hat keine Leader-Sitzung zum \xD6ffnen. Ersetzen Sie den Leader.",
708
+ "project.more": "Mehr",
709
+ "project.name.empty": "Der Projektname darf nicht leer sein",
710
+ "project.name.tooLong": "Der Projektname ist zu lang (h\xF6chstens {max} Zeichen)",
711
+ "project.noSessions": "Dieses Projekt hat noch keine Sitzungen.",
712
+ "project.remoteNotReady": "Der Projektkanal ist noch nicht bereit.",
713
+ "project.remove.description": "Dadurch wird das Projekt \u201E{name}\u201C gel\xF6scht. Ordner, Sitzungsverlauf und dsh-Arbeitsbereiche bleiben erhalten.",
714
+ "project.remove.notice": "Projekt \u201E{name}\u201C gel\xF6scht.",
715
+ "project.remove.title": "Projekt l\xF6schen",
716
+ "project.rename": "Umbenennen",
717
+ "project.replaceLeader": "Leader ersetzen",
718
+ "session.fold.expand": "Weitere Sitzungen anzeigen ({count})",
719
+ "slot.dev": "Entwicklung",
720
+ "slot.discuss": "Diskussion",
721
+ "slot.review": "Review",
722
+ "tab.board": "Board",
723
+ "tab.board.description": "Board f\xFCr Aufgaben aus den Leader- und Worker-Sitzungen dieses Projekts",
724
+ "tabs.close": "Tab schlie\xDFen",
725
+ "tabs.list": "Sitzungs-Tabs des Projekts",
726
+ "tabs.more": "Mehr"
727
+ }),
728
+ "en": Object.freeze({
729
+ "board.delete.title": "Delete card",
730
+ "board.done": "Done",
731
+ "board.empty.doneHintNamed": "Every card in \u201C{project}\u201D is done",
732
+ "board.empty.doneHintOwn": "Every card in this project is done",
733
+ "board.empty.doneTitle": "All done",
734
+ "board.empty.hint": "Cards appear here after the Leader calls create_card",
735
+ "board.empty.title": "No cards yet",
736
+ "board.error.cards": "Failed to read cards: {message}",
737
+ "board.error.delete": "Failed to delete card: {message}",
738
+ "board.error.project": "Failed to read project: {message}",
739
+ "board.fold.expand": "Show {count} more cards",
740
+ "board.leaderDead.hint": "Use the project section in the left sidebar to replace this project's Leader, then open the board again.",
741
+ "board.leaderDead.title": "This project's Leader session is no longer available",
742
+ "board.noProject.hint": "The board is organized by project: open it from a project session (Leader or worker).",
743
+ "board.noProject.title": "This session does not belong to a project",
744
+ "board.notProject.hint": "This is an ordinary session in the folder of \u201C{project}\u201D; open the project's Leader or worker session to see its delivery board.",
745
+ "board.notProject.title": "The board opens only in project sessions",
746
+ "board.notProject.unknown": "This session is not connected to a project; open a project's Leader or worker session to see its delivery board.",
747
+ "board.slot.title": "{name}: {state}",
748
+ "board.state.attention": "Needs attention",
749
+ "board.state.empty": "Unassigned",
750
+ "board.state.idle": "Idle",
751
+ "board.state.none": "No signal",
752
+ "board.state.running": "Running",
753
+ "board.state.unknown": "Unknown",
754
+ "board.state.unread": "Unread",
755
+ "board.state.waiting": "Waiting for your reply",
756
+ "bubble.clock.day": "{month}/{day}",
757
+ "bubble.clock.dayYear": "{month}/{day}/{year}",
758
+ "bubble.copied": "Copied",
759
+ "bubble.copy": "Copy",
760
+ "bubble.more": "Show more",
761
+ "bubble.openSession": "Open {name}'s child session",
762
+ "bubble.taskTitle": "Task from the Leader",
763
+ "card.detail.delete": "Delete card",
764
+ "card.detail.editLinks": "Edit links",
765
+ "card.detail.empty": "This card has no description yet.",
766
+ "card.detail.links": "Links",
767
+ "card.detail.remove": `Delete card #{number} "{title}". This cannot be undone; the number will not be reused, and the card's slot bindings will be released.`,
768
+ "card.detail.spec": "Description",
769
+ "card.links.add": "+ Add link",
770
+ "card.links.addPurpose": "Add purpose",
771
+ "card.links.empty": "No links on this card yet.",
772
+ "card.links.error.entryNotObject": "Each link must be an object.",
773
+ "card.links.error.fieldNotString": "Link {field} must be a string.",
774
+ "card.links.error.invalidUrl": "The URL for \u201C{label}\u201D must be an absolute http(s) address, for example https://example.com/\u2026",
775
+ "card.links.error.labelMissingPurpose": "A link has a purpose but no label. Add a label before saving.",
776
+ "card.links.error.labelMissingUrl": "A link has a URL but no label. Add a label before saving.",
777
+ "card.links.error.notArray": "Links must be an array.",
778
+ "card.links.label": "Label",
779
+ "card.links.labelAria": "Link label",
780
+ "card.links.purpose": "Purpose (optional)",
781
+ "card.links.purposeAria": "Link purpose",
782
+ "card.links.remove": "Remove link",
783
+ "card.links.saveFailed": "Failed to save links: {message}",
784
+ "card.links.urlAria": "Link URL",
785
+ "card.status.active": "In progress",
786
+ "card.status.archived": "Archived",
787
+ "card.status.done": "Done",
788
+ "common.cancel": "Cancel",
789
+ "common.close": "Close",
790
+ "common.collapse": "Collapse",
791
+ "common.delete": "Delete",
792
+ "common.save": "Save",
793
+ "common.saving": "Saving\u2026",
794
+ "guide.action.dismiss": "Got it",
795
+ "guide.action.intro": "Show me how to use it",
796
+ "guide.intro.prompt": "This project isn't set up yet \u2014 show me how dsh-leader-agent works.",
797
+ "guide.steps": "Open task cards, hand work to Agents, track progress in the board",
798
+ "guide.title": "This directory has a Leader",
799
+ "markdown.code": "Code",
800
+ "markdown.copied": "Copied",
801
+ "markdown.copy": "Copy",
802
+ "markdown.footnotes": "Footnotes",
803
+ "markdown.unwrap": "Unwrap",
804
+ "markdown.wrap": "Wrap",
805
+ "project.add": "Add project: choose a folder",
806
+ "project.archive": "Archive session: remove it from the list and release its card slot bindings",
807
+ "project.archive.aria": "Archive session {title}",
808
+ "project.archive.confirm": "Stop and archive",
809
+ "project.archive.description": "This session is running. Archiving stops its tasks first, then removes it from the list and releases its card slot bindings. Session history is kept.",
810
+ "project.archive.title": "Session still running",
811
+ "project.collapseList": "Collapse project list",
812
+ "project.collapseSessions": "Collapse sessions",
813
+ "project.completedUnread": "Done, unread",
814
+ "project.create": "Create project",
815
+ "project.empty": "No projects yet. Add one to create a Leader session in its folder.",
816
+ "project.error.archive": "Failed to archive session: {message}",
817
+ "project.error.archivePartial": "Session archived, but releasing its card slots failed: {message}",
818
+ "project.error.create": "Failed to create project: {message}",
819
+ "project.error.delete": "Failed to delete project: {message}",
820
+ "project.error.deleteReason": "Failed to delete project.",
821
+ "project.error.directoryPicker": "Directory picker unavailable: this host cannot choose a folder. Switch to the web profile and try again.",
822
+ "project.error.namespaceMissing": "The project channel is unavailable.",
823
+ "project.error.navigation": "Navigation service unavailable: cannot open the session.",
824
+ "project.error.read": "Failed to read projects: {message}",
825
+ "project.error.rename": "Failed to rename project: {message}",
826
+ "project.error.reorder": "Failed to reorder projects: {message}",
827
+ "project.error.replaceLeader": "Failed to replace the Leader: {message}",
828
+ "project.error.sessions": "Failed to read project sessions: {message}",
829
+ "project.error.stopArchive": "Failed to stop and archive: {message}",
830
+ "project.error.workspaces": "Workspace service unavailable: cannot archive the session.",
831
+ "project.expandList": "Expand project list",
832
+ "project.expandSessions": "Expand sessions",
833
+ "project.label": "Projects",
834
+ "project.leaderDeleted": 'The Leader session for project "{name}" has been deleted. Replace its Leader.',
835
+ "project.leaderMissing": 'Project "{name}" has no Leader session to open. Replace its Leader.',
836
+ "project.more": "More",
837
+ "project.name.empty": "Project name cannot be empty",
838
+ "project.name.tooLong": "Project name is too long (at most {max} characters)",
839
+ "project.noSessions": "No sessions in this project yet.",
840
+ "project.remoteNotReady": "Project channel not ready.",
841
+ "project.remove.description": 'This deletes the project "{name}". The folder, session history, and dsh workspaces are kept.',
842
+ "project.remove.notice": 'Deleted project "{name}".',
843
+ "project.remove.title": "Delete project",
844
+ "project.rename": "Rename",
845
+ "project.replaceLeader": "Replace Leader",
846
+ "session.fold.expand": "Show {count} more sessions",
847
+ "slot.dev": "Dev",
848
+ "slot.discuss": "Discuss",
849
+ "slot.review": "Review",
850
+ "tab.board": "Board",
851
+ "tab.board.description": "Delivery board for tasks in this project's Leader and worker sessions",
852
+ "tabs.close": "Close tab",
853
+ "tabs.list": "Project session tabs",
854
+ "tabs.more": "More"
855
+ }),
856
+ "es": Object.freeze({
857
+ "board.delete.title": "Eliminar tarjeta",
858
+ "board.done": "Hecho",
859
+ "board.empty.doneHintNamed": "Todas las tarjetas de \xAB{project}\xBB est\xE1n hechas",
860
+ "board.empty.doneHintOwn": "Todas las tarjetas de este proyecto est\xE1n hechas",
861
+ "board.empty.doneTitle": "Todo listo",
862
+ "board.empty.hint": "Las tarjetas aparecen aqu\xED cuando el Leader llama a create_card",
863
+ "board.empty.title": "A\xFAn no hay tarjetas",
864
+ "board.error.cards": "No se pudieron leer las tarjetas: {message}",
865
+ "board.error.delete": "No se pudo eliminar la tarjeta: {message}",
866
+ "board.error.project": "No se pudo leer el proyecto: {message}",
867
+ "board.fold.expand": "Mostrar las tarjetas restantes ({count})",
868
+ "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.",
869
+ "board.leaderDead.title": "La sesi\xF3n del Leader de este proyecto ya no est\xE1 disponible",
870
+ "board.noProject.hint": "El tablero se organiza por proyecto: \xE1bralo desde una sesi\xF3n del proyecto (Leader o worker).",
871
+ "board.noProject.title": "Esta sesi\xF3n no pertenece a ning\xFAn proyecto",
872
+ "board.notProject.hint": "Esta es una sesi\xF3n normal en la carpeta de \xAB{project}\xBB; abra la sesi\xF3n del Leader o de un worker del proyecto para ver su tablero de entregas.",
873
+ "board.notProject.title": "El tablero solo se abre en sesiones de proyecto",
874
+ "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.",
875
+ "board.slot.title": "{name}: {state}",
876
+ "board.state.attention": "Requiere atenci\xF3n",
877
+ "board.state.empty": "Sin asignar",
878
+ "board.state.idle": "Inactivo",
879
+ "board.state.none": "Sin se\xF1al",
880
+ "board.state.running": "En ejecuci\xF3n",
881
+ "board.state.unknown": "Desconocido",
882
+ "board.state.unread": "Sin leer",
883
+ "board.state.waiting": "Esperando su respuesta",
884
+ "bubble.clock.day": "{day}/{month}",
885
+ "bubble.clock.dayYear": "{day}/{month}/{year}",
886
+ "bubble.copied": "Copiado",
887
+ "bubble.copy": "Copiar",
888
+ "bubble.more": "Mostrar m\xE1s",
889
+ "bubble.openSession": "Abrir la sesi\xF3n hija de {name}",
890
+ "bubble.taskTitle": "Tarea del Leader",
891
+ "card.detail.delete": "Eliminar tarjeta",
892
+ "card.detail.editLinks": "Editar enlaces",
893
+ "card.detail.empty": "Esta tarjeta a\xFAn no tiene descripci\xF3n.",
894
+ "card.detail.links": "Enlaces",
895
+ "card.detail.remove": "Eliminar la tarjeta #{number} \xAB{title}\xBB. No se puede deshacer; el n\xFAmero no se reutilizar\xE1 y se liberar\xE1n las ranuras vinculadas de la tarjeta.",
896
+ "card.detail.spec": "Descripci\xF3n",
897
+ "card.links.add": "+ A\xF1adir enlace",
898
+ "card.links.addPurpose": "A\xF1adir finalidad",
899
+ "card.links.empty": "Esta tarjeta a\xFAn no tiene enlaces.",
900
+ "card.links.error.entryNotObject": "Cada enlace debe ser un objeto.",
901
+ "card.links.error.fieldNotString": "El campo {field} del enlace debe ser una cadena.",
902
+ "card.links.error.invalidUrl": "La URL de \xAB{label}\xBB debe ser una direcci\xF3n absoluta http(s), por ejemplo https://example.com/\u2026",
903
+ "card.links.error.labelMissingPurpose": "Hay un enlace con finalidad pero sin etiqueta. A\xF1ada una etiqueta antes de guardar.",
904
+ "card.links.error.labelMissingUrl": "Hay un enlace con URL pero sin etiqueta. A\xF1ada una etiqueta antes de guardar.",
905
+ "card.links.error.notArray": "Los enlaces deben ser una matriz.",
906
+ "card.links.label": "Etiqueta",
907
+ "card.links.labelAria": "Etiqueta del enlace",
908
+ "card.links.purpose": "Finalidad (opcional)",
909
+ "card.links.purposeAria": "Finalidad del enlace",
910
+ "card.links.remove": "Quitar enlace",
911
+ "card.links.saveFailed": "No se pudieron guardar los enlaces: {message}",
912
+ "card.links.urlAria": "URL del enlace",
913
+ "card.status.active": "En curso",
914
+ "card.status.archived": "Archivada",
915
+ "card.status.done": "Completada",
916
+ "common.cancel": "Cancelar",
917
+ "common.close": "Cerrar",
918
+ "common.collapse": "Contraer",
919
+ "common.delete": "Eliminar",
920
+ "common.save": "Guardar",
921
+ "common.saving": "Guardando\u2026",
922
+ "guide.action.dismiss": "Entendido",
923
+ "guide.action.intro": "Mu\xE9streme c\xF3mo se usa",
924
+ "guide.intro.prompt": "Este proyecto a\xFAn no est\xE1 configurado: mu\xE9streme c\xF3mo funciona dsh-leader-agent.",
925
+ "guide.steps": "Cree tarjetas de tareas, delegue trabajo en agentes y siga el progreso en el tablero",
926
+ "guide.title": "Este directorio tiene un Leader",
927
+ "markdown.code": "C\xF3digo",
928
+ "markdown.copied": "Copiado",
929
+ "markdown.copy": "Copiar",
930
+ "markdown.footnotes": "Notas a pie de p\xE1gina",
931
+ "markdown.unwrap": "No ajustar l\xEDneas",
932
+ "markdown.wrap": "Ajustar l\xEDneas",
933
+ "project.add": "A\xF1adir proyecto: elegir una carpeta",
934
+ "project.archive": "Archivar sesi\xF3n: quitarla de la lista y liberar las ranuras vinculadas de las tarjetas",
935
+ "project.archive.aria": "Archivar la sesi\xF3n {title}",
936
+ "project.archive.confirm": "Detener y archivar",
937
+ "project.archive.description": "Esta sesi\xF3n est\xE1 en ejecuci\xF3n. Al archivarla se detienen primero sus tareas, luego se quita de la lista y se liberan las ranuras vinculadas de las tarjetas. El historial de la sesi\xF3n se conserva.",
938
+ "project.archive.title": "La sesi\xF3n sigue en ejecuci\xF3n",
939
+ "project.collapseList": "Contraer lista de proyectos",
940
+ "project.collapseSessions": "Contraer sesiones",
941
+ "project.completedUnread": "Completada, sin leer",
942
+ "project.create": "Crear proyecto",
943
+ "project.empty": "A\xFAn no hay proyectos. A\xF1ada uno para crear una sesi\xF3n del Leader en su carpeta.",
944
+ "project.error.archive": "No se pudo archivar la sesi\xF3n: {message}",
945
+ "project.error.archivePartial": "Sesi\xF3n archivada, pero no se pudieron liberar las ranuras de las tarjetas: {message}",
946
+ "project.error.create": "No se pudo crear el proyecto: {message}",
947
+ "project.error.delete": "No se pudo eliminar el proyecto: {message}",
948
+ "project.error.deleteReason": "No se pudo eliminar el proyecto.",
949
+ "project.error.directoryPicker": "Selector de carpetas no disponible: este host no puede elegir una carpeta. Cambie al perfil web e int\xE9ntelo de nuevo.",
950
+ "project.error.namespaceMissing": "El canal de proyectos no est\xE1 disponible.",
951
+ "project.error.navigation": "Servicio de navegaci\xF3n no disponible: no se puede abrir la sesi\xF3n.",
952
+ "project.error.read": "No se pudieron leer los proyectos: {message}",
953
+ "project.error.rename": "No se pudo renombrar el proyecto: {message}",
954
+ "project.error.reorder": "No se pudieron reordenar los proyectos: {message}",
955
+ "project.error.replaceLeader": "No se pudo reemplazar el Leader: {message}",
956
+ "project.error.sessions": "No se pudieron leer las sesiones del proyecto: {message}",
957
+ "project.error.stopArchive": "No se pudo detener y archivar: {message}",
958
+ "project.error.workspaces": "Servicio de espacios de trabajo no disponible: no se puede archivar la sesi\xF3n.",
959
+ "project.expandList": "Expandir lista de proyectos",
960
+ "project.expandSessions": "Expandir sesiones",
961
+ "project.label": "Proyectos",
962
+ "project.leaderDeleted": "La sesi\xF3n del Leader del proyecto \xAB{name}\xBB se ha eliminado. Reemplace su Leader.",
963
+ "project.leaderMissing": "El proyecto \xAB{name}\xBB no tiene una sesi\xF3n del Leader disponible para abrir. Reemplace su Leader.",
964
+ "project.more": "M\xE1s",
965
+ "project.name.empty": "El nombre del proyecto no puede estar vac\xEDo",
966
+ "project.name.tooLong": "El nombre del proyecto es demasiado largo (m\xE1ximo {max} caracteres)",
967
+ "project.noSessions": "A\xFAn no hay sesiones en este proyecto.",
968
+ "project.remoteNotReady": "El canal de proyectos no est\xE1 listo.",
969
+ "project.remove.description": "Esto elimina el proyecto \xAB{name}\xBB. La carpeta, el historial de sesiones y los espacios de trabajo de dsh se conservan.",
970
+ "project.remove.notice": "Proyecto \xAB{name}\xBB eliminado.",
971
+ "project.remove.title": "Eliminar proyecto",
972
+ "project.rename": "Renombrar",
973
+ "project.replaceLeader": "Reemplazar Leader",
974
+ "session.fold.expand": "Mostrar las sesiones restantes ({count})",
975
+ "slot.dev": "Desarrollo",
976
+ "slot.discuss": "Discusi\xF3n",
977
+ "slot.review": "Revisi\xF3n",
978
+ "tab.board": "Tablero",
979
+ "tab.board.description": "Tablero de entregas para las tareas de las sesiones del Leader y de los workers de este proyecto",
980
+ "tabs.close": "Cerrar pesta\xF1a",
981
+ "tabs.list": "Pesta\xF1as de sesiones del proyecto",
982
+ "tabs.more": "M\xE1s"
983
+ }),
984
+ "fr": Object.freeze({
985
+ "board.delete.title": "Supprimer la carte",
986
+ "board.done": "Termin\xE9",
987
+ "board.empty.doneHintNamed": "Toutes les cartes de \xAB {project} \xBB sont termin\xE9es",
988
+ "board.empty.doneHintOwn": "Toutes les cartes de ce projet sont termin\xE9es",
989
+ "board.empty.doneTitle": "Tout est termin\xE9",
990
+ "board.empty.hint": "Les cartes apparaissent ici lorsque le Leader appelle create_card",
991
+ "board.empty.title": "Aucune carte pour l'instant",
992
+ "board.error.cards": "\xC9chec de la lecture des cartes : {message}",
993
+ "board.error.delete": "\xC9chec de la suppression de la carte : {message}",
994
+ "board.error.project": "\xC9chec de la lecture du projet : {message}",
995
+ "board.fold.expand": "Afficher les cartes restantes ({count})",
996
+ "board.leaderDead.hint": "Utilisez la section projets de la barre lat\xE9rale gauche pour remplacer le Leader de ce projet, puis rouvrez le tableau.",
997
+ "board.leaderDead.title": "La session Leader de ce projet n'est plus disponible",
998
+ "board.noProject.hint": "Le tableau est organis\xE9 par projet : ouvrez-le depuis une session du projet (Leader ou worker).",
999
+ "board.noProject.title": "Cette session n'appartient \xE0 aucun projet",
1000
+ "board.notProject.hint": "Il s'agit d'une session ordinaire dans le dossier de \xAB {project} \xBB ; ouvrez la session Leader ou worker du projet pour voir son tableau de livraison.",
1001
+ "board.notProject.title": "Le tableau ne s'ouvre que dans les sessions de projet",
1002
+ "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.",
1003
+ "board.slot.title": "{name} : {state}",
1004
+ "board.state.attention": "N\xE9cessite votre attention",
1005
+ "board.state.empty": "Non attribu\xE9",
1006
+ "board.state.idle": "Inactif",
1007
+ "board.state.none": "Aucun signal",
1008
+ "board.state.running": "En cours d'ex\xE9cution",
1009
+ "board.state.unknown": "Inconnu",
1010
+ "board.state.unread": "Non lu",
1011
+ "board.state.waiting": "En attente de votre r\xE9ponse",
1012
+ "bubble.clock.day": "{day}/{month}",
1013
+ "bubble.clock.dayYear": "{day}/{month}/{year}",
1014
+ "bubble.copied": "Copi\xE9",
1015
+ "bubble.copy": "Copier",
1016
+ "bubble.more": "Afficher plus",
1017
+ "bubble.openSession": "Ouvrir la session enfant de {name}",
1018
+ "bubble.taskTitle": "T\xE2che du Leader",
1019
+ "card.detail.delete": "Supprimer la carte",
1020
+ "card.detail.editLinks": "Modifier les liens",
1021
+ "card.detail.empty": "Cette carte n'a pas encore de description.",
1022
+ "card.detail.links": "Liens",
1023
+ "card.detail.remove": "Supprimer la carte #{number} \xAB {title} \xBB. Cette action est irr\xE9versible ; le num\xE9ro ne sera pas r\xE9utilis\xE9 et les emplacements li\xE9s \xE0 la carte seront lib\xE9r\xE9s.",
1024
+ "card.detail.spec": "Description",
1025
+ "card.links.add": "+ Ajouter un lien",
1026
+ "card.links.addPurpose": "Ajouter une finalit\xE9",
1027
+ "card.links.empty": "Cette carte n'a pas encore de lien.",
1028
+ "card.links.error.entryNotObject": "Chaque lien doit \xEAtre un objet.",
1029
+ "card.links.error.fieldNotString": "Le champ {field} du lien doit \xEAtre une cha\xEEne.",
1030
+ "card.links.error.invalidUrl": "L'URL de \xAB {label} \xBB doit \xEAtre une adresse absolue http(s), par exemple https://example.com/\u2026",
1031
+ "card.links.error.labelMissingPurpose": "Un lien a une finalit\xE9 mais pas de libell\xE9. Ajoutez un libell\xE9 avant d'enregistrer.",
1032
+ "card.links.error.labelMissingUrl": "Un lien a une URL mais pas de libell\xE9. Ajoutez un libell\xE9 avant d'enregistrer.",
1033
+ "card.links.error.notArray": "Les liens doivent \xEAtre un tableau.",
1034
+ "card.links.label": "Libell\xE9",
1035
+ "card.links.labelAria": "Libell\xE9 du lien",
1036
+ "card.links.purpose": "Finalit\xE9 (facultative)",
1037
+ "card.links.purposeAria": "Finalit\xE9 du lien",
1038
+ "card.links.remove": "Retirer le lien",
1039
+ "card.links.saveFailed": "\xC9chec de l'enregistrement des liens : {message}",
1040
+ "card.links.urlAria": "URL du lien",
1041
+ "card.status.active": "En cours",
1042
+ "card.status.archived": "Archiv\xE9e",
1043
+ "card.status.done": "Termin\xE9e",
1044
+ "common.cancel": "Annuler",
1045
+ "common.close": "Fermer",
1046
+ "common.collapse": "R\xE9duire",
1047
+ "common.delete": "Supprimer",
1048
+ "common.save": "Enregistrer",
1049
+ "common.saving": "Enregistrement\u2026",
1050
+ "guide.action.dismiss": "Compris",
1051
+ "guide.action.intro": "Montrez-moi comment l'utiliser",
1052
+ "guide.intro.prompt": "Ce projet n'est pas encore configur\xE9 : montrez-moi comment fonctionne dsh-leader-agent.",
1053
+ "guide.steps": "Cr\xE9ez des cartes de t\xE2ches, confiez le travail aux agents et suivez l'avancement dans le tableau",
1054
+ "guide.title": "Ce dossier a un Leader",
1055
+ "markdown.code": "Code",
1056
+ "markdown.copied": "Copi\xE9",
1057
+ "markdown.copy": "Copier",
1058
+ "markdown.footnotes": "Notes de bas de page",
1059
+ "markdown.unwrap": "Sans retour \xE0 la ligne",
1060
+ "markdown.wrap": "Activer le retour \xE0 la ligne",
1061
+ "project.add": "Ajouter un projet : choisir un dossier",
1062
+ "project.archive": "Archiver la session : la retirer de la liste et lib\xE9rer les emplacements li\xE9s aux cartes",
1063
+ "project.archive.aria": "Archiver la session {title}",
1064
+ "project.archive.confirm": "Arr\xEAter et archiver",
1065
+ "project.archive.description": "Cette session est en cours d'ex\xE9cution. L'archivage arr\xEAte d'abord ses t\xE2ches, puis la retire de la liste et lib\xE8re les emplacements li\xE9s aux cartes. L'historique de la session est conserv\xE9.",
1066
+ "project.archive.title": "La session est toujours en cours",
1067
+ "project.collapseList": "R\xE9duire la liste des projets",
1068
+ "project.collapseSessions": "R\xE9duire les sessions",
1069
+ "project.completedUnread": "Termin\xE9e, non lue",
1070
+ "project.create": "Cr\xE9er un projet",
1071
+ "project.empty": "Aucun projet pour l'instant. Ajoutez-en un pour cr\xE9er une session Leader dans son dossier.",
1072
+ "project.error.archive": "\xC9chec de l'archivage de la session : {message}",
1073
+ "project.error.archivePartial": "Session archiv\xE9e, mais la lib\xE9ration des emplacements des cartes a \xE9chou\xE9 : {message}",
1074
+ "project.error.create": "\xC9chec de la cr\xE9ation du projet : {message}",
1075
+ "project.error.delete": "\xC9chec de la suppression du projet : {message}",
1076
+ "project.error.deleteReason": "\xC9chec de la suppression du projet.",
1077
+ "project.error.directoryPicker": "S\xE9lecteur de dossier indisponible : cet h\xF4te ne peut pas choisir un dossier. Passez au profil web et r\xE9essayez.",
1078
+ "project.error.namespaceMissing": "Le canal des projets est indisponible.",
1079
+ "project.error.navigation": "Service de navigation indisponible : impossible d'ouvrir la session.",
1080
+ "project.error.read": "\xC9chec de la lecture des projets : {message}",
1081
+ "project.error.rename": "\xC9chec du renommage du projet : {message}",
1082
+ "project.error.reorder": "\xC9chec de la r\xE9organisation des projets : {message}",
1083
+ "project.error.replaceLeader": "\xC9chec du remplacement du Leader : {message}",
1084
+ "project.error.sessions": "\xC9chec de la lecture des sessions du projet : {message}",
1085
+ "project.error.stopArchive": "\xC9chec de l'arr\xEAt et de l'archivage : {message}",
1086
+ "project.error.workspaces": "Service des espaces de travail indisponible : impossible d'archiver la session.",
1087
+ "project.expandList": "D\xE9velopper la liste des projets",
1088
+ "project.expandSessions": "D\xE9velopper les sessions",
1089
+ "project.label": "Projets",
1090
+ "project.leaderDeleted": "La session Leader du projet \xAB {name} \xBB a \xE9t\xE9 supprim\xE9e. Remplacez son Leader.",
1091
+ "project.leaderMissing": "Le projet \xAB {name} \xBB n'a aucune session Leader \xE0 ouvrir. Remplacez son Leader.",
1092
+ "project.more": "Plus",
1093
+ "project.name.empty": "Le nom du projet ne peut pas \xEAtre vide",
1094
+ "project.name.tooLong": "Le nom du projet est trop long ({max} caract\xE8res maximum)",
1095
+ "project.noSessions": "Aucune session dans ce projet pour l'instant.",
1096
+ "project.remoteNotReady": "Le canal des projets n'est pas pr\xEAt.",
1097
+ "project.remove.description": "Cette action supprime le projet \xAB {name} \xBB. Le dossier, l'historique des sessions et les espaces de travail dsh sont conserv\xE9s.",
1098
+ "project.remove.notice": "Projet \xAB {name} \xBB supprim\xE9.",
1099
+ "project.remove.title": "Supprimer le projet",
1100
+ "project.rename": "Renommer",
1101
+ "project.replaceLeader": "Remplacer le Leader",
1102
+ "session.fold.expand": "Afficher les sessions restantes ({count})",
1103
+ "slot.dev": "D\xE9veloppement",
1104
+ "slot.discuss": "Discussion",
1105
+ "slot.review": "Revue",
1106
+ "tab.board": "Tableau",
1107
+ "tab.board.description": "Tableau de livraison des t\xE2ches des sessions Leader et worker de ce projet",
1108
+ "tabs.close": "Fermer l'onglet",
1109
+ "tabs.list": "Onglets des sessions du projet",
1110
+ "tabs.more": "Plus"
1111
+ }),
1112
+ "ja": Object.freeze({
1113
+ "board.delete.title": "\u30AB\u30FC\u30C9\u3092\u524A\u9664",
1114
+ "board.done": "\u5B8C\u4E86",
1115
+ "board.empty.doneHintNamed": "\u300C{project}\u300D\u306E\u30AB\u30FC\u30C9\u306F\u3059\u3079\u3066\u5B8C\u4E86\u3057\u307E\u3057\u305F",
1116
+ "board.empty.doneHintOwn": "\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30AB\u30FC\u30C9\u306F\u3059\u3079\u3066\u5B8C\u4E86\u3057\u307E\u3057\u305F",
1117
+ "board.empty.doneTitle": "\u3059\u3079\u3066\u5B8C\u4E86",
1118
+ "board.empty.hint": "Leader \u304C create_card \u3092\u547C\u3073\u51FA\u3059\u3068\u3001\u3053\u3053\u306B\u30AB\u30FC\u30C9\u304C\u8868\u793A\u3055\u308C\u307E\u3059",
1119
+ "board.empty.title": "\u30AB\u30FC\u30C9\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093",
1120
+ "board.error.cards": "\u30AB\u30FC\u30C9\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1121
+ "board.error.delete": "\u524A\u9664\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1122
+ "board.error.project": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1123
+ "board.fold.expand": "\u6B8B\u308A {count} \u679A\u306E\u30AB\u30FC\u30C9\u3092\u8868\u793A",
1124
+ "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",
1125
+ "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",
1126
+ "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",
1127
+ "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",
1128
+ "board.notProject.hint": "\u3053\u308C\u306F\u300C{project}\u300D\u306E\u30D5\u30A9\u30EB\u30C0\u30FC\u306B\u3042\u308B\u901A\u5E38\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3067\u3059\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",
1129
+ "board.notProject.title": "\u30DC\u30FC\u30C9\u306F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3067\u306E\u307F\u958B\u3051\u307E\u3059",
1130
+ "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",
1131
+ "board.slot.title": "{name}\uFF1A{state}",
1132
+ "board.state.attention": "\u8981\u6CE8\u610F",
1133
+ "board.state.empty": "\u672A\u5272\u308A\u5F53\u3066",
1134
+ "board.state.idle": "\u5F85\u6A5F\u4E2D",
1135
+ "board.state.none": "\u30B7\u30B0\u30CA\u30EB\u306A\u3057",
1136
+ "board.state.running": "\u5B9F\u884C\u4E2D",
1137
+ "board.state.unknown": "\u72B6\u614B\u4E0D\u660E",
1138
+ "board.state.unread": "\u672A\u8AAD",
1139
+ "board.state.waiting": "\u5165\u529B\u5F85\u3061",
1140
+ "bubble.clock.day": "{month}\u6708{day}\u65E5",
1141
+ "bubble.clock.dayYear": "{year}\u5E74{month}\u6708{day}\u65E5",
1142
+ "bubble.copied": "\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
1143
+ "bubble.copy": "\u30B3\u30D4\u30FC",
1144
+ "bubble.more": "\u3082\u3063\u3068\u8868\u793A",
1145
+ "bubble.openSession": "{name} \u306E\u5B50\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u958B\u304F",
1146
+ "bubble.taskTitle": "Leader \u304B\u3089\u306E\u30BF\u30B9\u30AF",
1147
+ "card.detail.delete": "\u30AB\u30FC\u30C9\u3092\u524A\u9664",
1148
+ "card.detail.editLinks": "\u30EA\u30F3\u30AF\u3092\u7DE8\u96C6",
1149
+ "card.detail.empty": "\u3053\u306E\u30AB\u30FC\u30C9\u306B\u306F\u307E\u3060\u8AAC\u660E\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
1150
+ "card.detail.links": "\u30EA\u30F3\u30AF",
1151
+ "card.detail.remove": "\u30AB\u30FC\u30C9 #{number}\u300C{title}\u300D\u3092\u524A\u9664\u3057\u307E\u3059\u3002\u524A\u9664\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u756A\u53F7\u306F\u518D\u5229\u7528\u3055\u308C\u305A\u3001\u30AB\u30FC\u30C9\u306E\u30B9\u30ED\u30C3\u30C8\u5272\u308A\u5F53\u3066\u3082\u89E3\u9664\u3055\u308C\u307E\u3059\u3002",
1152
+ "card.detail.spec": "\u8AAC\u660E",
1153
+ "card.links.add": "+ \u30EA\u30F3\u30AF\u3092\u8FFD\u52A0",
1154
+ "card.links.addPurpose": "\u7528\u9014\u3092\u8FFD\u52A0",
1155
+ "card.links.empty": "\u3053\u306E\u30AB\u30FC\u30C9\u306B\u306F\u307E\u3060\u30EA\u30F3\u30AF\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
1156
+ "card.links.error.entryNotObject": "\u5404\u30EA\u30F3\u30AF\u306F\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",
1157
+ "card.links.error.fieldNotString": "\u30EA\u30F3\u30AF\u306E {field} \u306F\u6587\u5B57\u5217\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",
1158
+ "card.links.error.invalidUrl": "\u300C{label}\u300D\u306E URL \u306F http(s) \u306E\u7D76\u5BFE\u30A2\u30C9\u30EC\u30B9\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\uFF08\u4F8B\uFF1Ahttps://example.com/\u2026\uFF09",
1159
+ "card.links.error.labelMissingPurpose": "\u7528\u9014\u3060\u3051\u304C\u8A2D\u5B9A\u3055\u308C\u305F\u30EA\u30F3\u30AF\u304C\u3042\u308A\u307E\u3059\u3002\u4FDD\u5B58\u3059\u308B\u524D\u306B\u30E9\u30D9\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
1160
+ "card.links.error.labelMissingUrl": "URL \u3060\u3051\u304C\u8A2D\u5B9A\u3055\u308C\u305F\u30EA\u30F3\u30AF\u304C\u3042\u308A\u307E\u3059\u3002\u4FDD\u5B58\u3059\u308B\u524D\u306B\u30E9\u30D9\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
1161
+ "card.links.error.notArray": "\u30EA\u30F3\u30AF\u306F\u914D\u5217\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",
1162
+ "card.links.label": "\u30E9\u30D9\u30EB",
1163
+ "card.links.labelAria": "\u30EA\u30F3\u30AF\u30E9\u30D9\u30EB",
1164
+ "card.links.purpose": "\u7528\u9014\uFF08\u4EFB\u610F\uFF09",
1165
+ "card.links.purposeAria": "\u30EA\u30F3\u30AF\u306E\u7528\u9014",
1166
+ "card.links.remove": "\u30EA\u30F3\u30AF\u3092\u524A\u9664",
1167
+ "card.links.saveFailed": "\u30EA\u30F3\u30AF\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1168
+ "card.links.urlAria": "\u30EA\u30F3\u30AF URL",
1169
+ "card.status.active": "\u9032\u884C\u4E2D",
1170
+ "card.status.archived": "\u30A2\u30FC\u30AB\u30A4\u30D6\u6E08\u307F",
1171
+ "card.status.done": "\u5B8C\u4E86",
1172
+ "common.cancel": "\u30AD\u30E3\u30F3\u30BB\u30EB",
1173
+ "common.close": "\u9589\u3058\u308B",
1174
+ "common.collapse": "\u6298\u308A\u305F\u305F\u3080",
1175
+ "common.delete": "\u524A\u9664",
1176
+ "common.save": "\u4FDD\u5B58",
1177
+ "common.saving": "\u4FDD\u5B58\u4E2D\u2026",
1178
+ "guide.action.dismiss": "\u4E86\u89E3",
1179
+ "guide.action.intro": "\u4F7F\u3044\u65B9\u3092\u898B\u308B",
1180
+ "guide.intro.prompt": "\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306F\u307E\u3060\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002dsh-leader-agent \u306E\u4F7F\u3044\u65B9\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u3002",
1181
+ "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",
1182
+ "guide.title": "\u3053\u306E\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u306B\u306F Leader \u304C\u3044\u307E\u3059",
1183
+ "markdown.code": "\u30B3\u30FC\u30C9",
1184
+ "markdown.copied": "\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
1185
+ "markdown.copy": "\u30B3\u30D4\u30FC",
1186
+ "markdown.footnotes": "\u811A\u6CE8",
1187
+ "markdown.unwrap": "\u6298\u308A\u8FD4\u3055\u306A\u3044",
1188
+ "markdown.wrap": "\u6298\u308A\u8FD4\u3059",
1189
+ "project.add": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u8FFD\u52A0\uFF1A\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u9078\u629E",
1190
+ "project.archive": "\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u30A2\u30FC\u30AB\u30A4\u30D6\uFF1A\u4E00\u89A7\u304B\u3089\u524A\u9664\u3057\u3001\u30AB\u30FC\u30C9\u306E\u30B9\u30ED\u30C3\u30C8\u5272\u308A\u5F53\u3066\u3092\u89E3\u9664\u3057\u307E\u3059",
1191
+ "project.archive.aria": "\u30BB\u30C3\u30B7\u30E7\u30F3 {title} \u3092\u30A2\u30FC\u30AB\u30A4\u30D6",
1192
+ "project.archive.confirm": "\u505C\u6B62\u3057\u3066\u30A2\u30FC\u30AB\u30A4\u30D6",
1193
+ "project.archive.description": "\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u306F\u5B9F\u884C\u4E2D\u3067\u3059\u3002\u30A2\u30FC\u30AB\u30A4\u30D6\u3059\u308B\u3068\u307E\u305A\u30BF\u30B9\u30AF\u3092\u505C\u6B62\u3057\u3001\u4E00\u89A7\u304B\u3089\u524A\u9664\u3057\u3066\u30AB\u30FC\u30C9\u306E\u30B9\u30ED\u30C3\u30C8\u5272\u308A\u5F53\u3066\u3092\u89E3\u9664\u3057\u307E\u3059\u3002\u30BB\u30C3\u30B7\u30E7\u30F3\u5C65\u6B74\u306F\u4FDD\u6301\u3055\u308C\u307E\u3059\u3002",
1194
+ "project.archive.title": "\u30BB\u30C3\u30B7\u30E7\u30F3\u306F\u307E\u3060\u5B9F\u884C\u4E2D\u3067\u3059",
1195
+ "project.collapseList": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u4E00\u89A7\u3092\u6298\u308A\u305F\u305F\u3080",
1196
+ "project.collapseSessions": "\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u6298\u308A\u305F\u305F\u3080",
1197
+ "project.completedUnread": "\u5B8C\u4E86\u30FB\u672A\u8AAD",
1198
+ "project.create": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u6210",
1199
+ "project.empty": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002\u8FFD\u52A0\u3059\u308B\u3068\u3001\u305D\u306E\u30D5\u30A9\u30EB\u30C0\u30FC\u306B Leader \u30BB\u30C3\u30B7\u30E7\u30F3\u304C\u4F5C\u6210\u3055\u308C\u307E\u3059\u3002",
1200
+ "project.error.archive": "\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u30A2\u30FC\u30AB\u30A4\u30D6\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1201
+ "project.error.archivePartial": "\u30BB\u30C3\u30B7\u30E7\u30F3\u306F\u30A2\u30FC\u30AB\u30A4\u30D6\u3055\u308C\u307E\u3057\u305F\u304C\u3001\u30AB\u30FC\u30C9\u306E\u30B9\u30ED\u30C3\u30C8\u89E3\u9664\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1202
+ "project.error.create": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u4F5C\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1203
+ "project.error.delete": "\u524A\u9664\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1204
+ "project.error.deleteReason": "\u524A\u9664\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",
1205
+ "project.error.directoryPicker": "\u30D5\u30A9\u30EB\u30C0\u30FC\u9078\u629E\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093\uFF1A\u3053\u306E\u30DB\u30B9\u30C8\u3067\u306F\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3002web \u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u306B\u5207\u308A\u66FF\u3048\u3066\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
1206
+ "project.error.namespaceMissing": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30C1\u30E3\u30F3\u30CD\u30EB\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002",
1207
+ "project.error.navigation": "\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u30B5\u30FC\u30D3\u30B9\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093\uFF1A\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u958B\u3051\u307E\u305B\u3093\u3002",
1208
+ "project.error.read": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1209
+ "project.error.rename": "\u540D\u524D\u306E\u5909\u66F4\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1210
+ "project.error.reorder": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u4E26\u3079\u66FF\u3048\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1211
+ "project.error.replaceLeader": "Leader \u306E\u4EA4\u4EE3\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1212
+ "project.error.sessions": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1213
+ "project.error.stopArchive": "\u505C\u6B62\u3068\u30A2\u30FC\u30AB\u30A4\u30D6\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{message}",
1214
+ "project.error.workspaces": "\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30B5\u30FC\u30D3\u30B9\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093\uFF1A\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u30A2\u30FC\u30AB\u30A4\u30D6\u3067\u304D\u307E\u305B\u3093\u3002",
1215
+ "project.expandList": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u4E00\u89A7\u3092\u5C55\u958B",
1216
+ "project.expandSessions": "\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u5C55\u958B",
1217
+ "project.label": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8",
1218
+ "project.leaderDeleted": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u300C{name}\u300D\u306E Leader \u30BB\u30C3\u30B7\u30E7\u30F3\u304C\u524A\u9664\u3055\u308C\u307E\u3057\u305F\u3002Leader \u3092\u4EA4\u4EE3\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
1219
+ "project.leaderMissing": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u300C{name}\u300D\u306B\u306F\u958B\u3051\u308B Leader \u30BB\u30C3\u30B7\u30E7\u30F3\u304C\u3042\u308A\u307E\u305B\u3093\u3002Leader \u3092\u4EA4\u4EE3\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
1220
+ "project.more": "\u305D\u306E\u4ED6",
1221
+ "project.name.empty": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
1222
+ "project.name.tooLong": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D\u304C\u9577\u3059\u304E\u307E\u3059\uFF08\u6700\u5927 {max} \u6587\u5B57\uFF09",
1223
+ "project.noSessions": "\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306B\u306F\u307E\u3060\u30BB\u30C3\u30B7\u30E7\u30F3\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
1224
+ "project.remoteNotReady": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30C1\u30E3\u30F3\u30CD\u30EB\u306E\u6E96\u5099\u304C\u3067\u304D\u3066\u3044\u307E\u305B\u3093\u3002",
1225
+ "project.remove.description": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u300C{name}\u300D\u3092\u524A\u9664\u3057\u307E\u3059\u3002\u30D5\u30A9\u30EB\u30C0\u30FC\u3001\u30BB\u30C3\u30B7\u30E7\u30F3\u5C65\u6B74\u3001dsh \u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306F\u4FDD\u6301\u3055\u308C\u307E\u3059\u3002",
1226
+ "project.remove.notice": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u300C{name}\u300D\u3092\u524A\u9664\u3057\u307E\u3057\u305F\u3002",
1227
+ "project.remove.title": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u524A\u9664",
1228
+ "project.rename": "\u540D\u524D\u3092\u5909\u66F4",
1229
+ "project.replaceLeader": "Leader \u3092\u4EA4\u4EE3",
1230
+ "session.fold.expand": "\u6B8B\u308A {count} \u4EF6\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u8868\u793A",
1231
+ "slot.dev": "\u958B\u767A",
1232
+ "slot.discuss": "\u30C7\u30A3\u30B9\u30AB\u30C3\u30B7\u30E7\u30F3",
1233
+ "slot.review": "\u30EC\u30D3\u30E5\u30FC",
1234
+ "tab.board": "\u30DC\u30FC\u30C9",
1235
+ "tab.board.description": "\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E Leader \u3068\u30EF\u30FC\u30AB\u30FC\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u306B\u3042\u308B\u30BF\u30B9\u30AF\u306E\u30DC\u30FC\u30C9",
1236
+ "tabs.close": "\u30BF\u30D6\u3092\u9589\u3058\u308B",
1237
+ "tabs.list": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u30BF\u30D6",
1238
+ "tabs.more": "\u305D\u306E\u4ED6"
1239
+ }),
1240
+ "pt": Object.freeze({
1241
+ "board.delete.title": "Excluir cart\xE3o",
1242
+ "board.done": "Conclu\xEDdo",
1243
+ "board.empty.doneHintNamed": "Todos os cart\xF5es de \u201C{project}\u201D foram conclu\xEDdos",
1244
+ "board.empty.doneHintOwn": "Todos os cart\xF5es deste projeto foram conclu\xEDdos",
1245
+ "board.empty.doneTitle": "Tudo conclu\xEDdo",
1246
+ "board.empty.hint": "Os cart\xF5es aparecem aqui quando o Leader chama create_card",
1247
+ "board.empty.title": "Ainda n\xE3o h\xE1 cart\xF5es",
1248
+ "board.error.cards": "Falha ao ler os cart\xF5es: {message}",
1249
+ "board.error.delete": "Falha ao excluir o cart\xE3o: {message}",
1250
+ "board.error.project": "Falha ao ler o projeto: {message}",
1251
+ "board.fold.expand": "Mostrar os cart\xF5es restantes ({count})",
1252
+ "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.",
1253
+ "board.leaderDead.title": "A sess\xE3o do Leader deste projeto n\xE3o est\xE1 mais dispon\xEDvel",
1254
+ "board.noProject.hint": "O quadro \xE9 organizado por projeto: abra-o a partir de uma sess\xE3o do projeto (Leader ou worker).",
1255
+ "board.noProject.title": "Esta sess\xE3o n\xE3o pertence a nenhum projeto",
1256
+ "board.notProject.hint": "Esta \xE9 uma sess\xE3o comum na pasta de \u201C{project}\u201D; abra a sess\xE3o do Leader ou de um worker do projeto para ver o quadro de entregas.",
1257
+ "board.notProject.title": "O quadro s\xF3 abre em sess\xF5es de projeto",
1258
+ "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.",
1259
+ "board.slot.title": "{name}: {state}",
1260
+ "board.state.attention": "Precisa de aten\xE7\xE3o",
1261
+ "board.state.empty": "N\xE3o atribu\xEDdo",
1262
+ "board.state.idle": "Ocioso",
1263
+ "board.state.none": "Sem sinal",
1264
+ "board.state.running": "Em execu\xE7\xE3o",
1265
+ "board.state.unknown": "Desconhecido",
1266
+ "board.state.unread": "N\xE3o lido",
1267
+ "board.state.waiting": "Aguardando sua resposta",
1268
+ "bubble.clock.day": "{day}/{month}",
1269
+ "bubble.clock.dayYear": "{day}/{month}/{year}",
1270
+ "bubble.copied": "Copiado",
1271
+ "bubble.copy": "Copiar",
1272
+ "bubble.more": "Mostrar mais",
1273
+ "bubble.openSession": "Abrir a sess\xE3o filha de {name}",
1274
+ "bubble.taskTitle": "Tarefa do Leader",
1275
+ "card.detail.delete": "Excluir cart\xE3o",
1276
+ "card.detail.editLinks": "Editar links",
1277
+ "card.detail.empty": "Este cart\xE3o ainda n\xE3o tem descri\xE7\xE3o.",
1278
+ "card.detail.links": "Links",
1279
+ "card.detail.remove": "Excluir o cart\xE3o #{number} \u201C{title}\u201D. Isso n\xE3o pode ser desfeito; o n\xFAmero n\xE3o ser\xE1 reutilizado e os v\xEDnculos de slot do cart\xE3o ser\xE3o liberados.",
1280
+ "card.detail.spec": "Descri\xE7\xE3o",
1281
+ "card.links.add": "+ Adicionar link",
1282
+ "card.links.addPurpose": "Adicionar finalidade",
1283
+ "card.links.empty": "Este cart\xE3o ainda n\xE3o tem links.",
1284
+ "card.links.error.entryNotObject": "Cada link deve ser um objeto.",
1285
+ "card.links.error.fieldNotString": "O campo {field} do link deve ser uma string.",
1286
+ "card.links.error.invalidUrl": "A URL de \u201C{label}\u201D deve ser um endere\xE7o absoluto http(s), por exemplo https://example.com/\u2026",
1287
+ "card.links.error.labelMissingPurpose": "Um link tem finalidade, mas n\xE3o tem r\xF3tulo. Adicione um r\xF3tulo antes de salvar.",
1288
+ "card.links.error.labelMissingUrl": "Um link tem URL, mas n\xE3o tem r\xF3tulo. Adicione um r\xF3tulo antes de salvar.",
1289
+ "card.links.error.notArray": "Os links devem ser um array.",
1290
+ "card.links.label": "R\xF3tulo",
1291
+ "card.links.labelAria": "R\xF3tulo do link",
1292
+ "card.links.purpose": "Finalidade (opcional)",
1293
+ "card.links.purposeAria": "Finalidade do link",
1294
+ "card.links.remove": "Remover link",
1295
+ "card.links.saveFailed": "Falha ao salvar os links: {message}",
1296
+ "card.links.urlAria": "URL do link",
1297
+ "card.status.active": "Em andamento",
1298
+ "card.status.archived": "Arquivado",
1299
+ "card.status.done": "Conclu\xEDdo",
1300
+ "common.cancel": "Cancelar",
1301
+ "common.close": "Fechar",
1302
+ "common.collapse": "Recolher",
1303
+ "common.delete": "Excluir",
1304
+ "common.save": "Salvar",
1305
+ "common.saving": "Salvando\u2026",
1306
+ "guide.action.dismiss": "Entendi",
1307
+ "guide.action.intro": "Mostre-me como us\xE1-lo",
1308
+ "guide.intro.prompt": "Este projeto ainda n\xE3o est\xE1 configurado \u2014 mostre-me como o dsh-leader-agent funciona.",
1309
+ "guide.steps": "Crie cart\xF5es de tarefas, entregue o trabalho aos agentes e acompanhe o progresso no quadro",
1310
+ "guide.title": "Este diret\xF3rio tem um Leader",
1311
+ "markdown.code": "C\xF3digo",
1312
+ "markdown.copied": "Copiado",
1313
+ "markdown.copy": "Copiar",
1314
+ "markdown.footnotes": "Notas de rodap\xE9",
1315
+ "markdown.unwrap": "N\xE3o quebrar",
1316
+ "markdown.wrap": "Quebrar linhas",
1317
+ "project.add": "Adicionar projeto: escolher uma pasta",
1318
+ "project.archive": "Arquivar sess\xE3o: remov\xEA-la da lista e liberar os v\xEDnculos de slot dos cart\xF5es",
1319
+ "project.archive.aria": "Arquivar a sess\xE3o {title}",
1320
+ "project.archive.confirm": "Parar e arquivar",
1321
+ "project.archive.description": "Esta sess\xE3o est\xE1 em execu\xE7\xE3o. Arquivar interrompe primeiro as tarefas dela, depois a remove da lista e libera os v\xEDnculos de slot dos cart\xF5es. O hist\xF3rico da sess\xE3o \xE9 mantido.",
1322
+ "project.archive.title": "A sess\xE3o ainda est\xE1 em execu\xE7\xE3o",
1323
+ "project.collapseList": "Recolher lista de projetos",
1324
+ "project.collapseSessions": "Recolher sess\xF5es",
1325
+ "project.completedUnread": "Conclu\xEDda, n\xE3o lida",
1326
+ "project.create": "Criar projeto",
1327
+ "project.empty": "Ainda n\xE3o h\xE1 projetos. Adicione um para criar uma sess\xE3o do Leader na pasta dele.",
1328
+ "project.error.archive": "Falha ao arquivar a sess\xE3o: {message}",
1329
+ "project.error.archivePartial": "Sess\xE3o arquivada, mas a libera\xE7\xE3o dos v\xEDnculos de slot dos cart\xF5es falhou: {message}",
1330
+ "project.error.create": "Falha ao criar o projeto: {message}",
1331
+ "project.error.delete": "Falha ao excluir o projeto: {message}",
1332
+ "project.error.deleteReason": "Falha ao excluir o projeto.",
1333
+ "project.error.directoryPicker": "Seletor de pasta indispon\xEDvel: este host n\xE3o consegue escolher uma pasta. Mude para o perfil web e tente novamente.",
1334
+ "project.error.namespaceMissing": "O canal de projetos n\xE3o est\xE1 dispon\xEDvel.",
1335
+ "project.error.navigation": "Servi\xE7o de navega\xE7\xE3o indispon\xEDvel: n\xE3o \xE9 poss\xEDvel abrir a sess\xE3o.",
1336
+ "project.error.read": "Falha ao ler os projetos: {message}",
1337
+ "project.error.rename": "Falha ao renomear o projeto: {message}",
1338
+ "project.error.reorder": "Falha ao reordenar os projetos: {message}",
1339
+ "project.error.replaceLeader": "Falha ao substituir o Leader: {message}",
1340
+ "project.error.sessions": "Falha ao ler as sess\xF5es do projeto: {message}",
1341
+ "project.error.stopArchive": "Falha ao parar e arquivar: {message}",
1342
+ "project.error.workspaces": "Servi\xE7o de espa\xE7os de trabalho indispon\xEDvel: n\xE3o \xE9 poss\xEDvel arquivar a sess\xE3o.",
1343
+ "project.expandList": "Expandir lista de projetos",
1344
+ "project.expandSessions": "Expandir sess\xF5es",
1345
+ "project.label": "Projetos",
1346
+ "project.leaderDeleted": "A sess\xE3o do Leader do projeto \u201C{name}\u201D foi exclu\xEDda. Substitua o Leader do projeto.",
1347
+ "project.leaderMissing": "O projeto \u201C{name}\u201D n\xE3o tem nenhuma sess\xE3o do Leader para abrir. Substitua o Leader do projeto.",
1348
+ "project.more": "Mais",
1349
+ "project.name.empty": "O nome do projeto n\xE3o pode ficar vazio",
1350
+ "project.name.tooLong": "O nome do projeto \xE9 muito longo (no m\xE1ximo {max} caracteres)",
1351
+ "project.noSessions": "Ainda n\xE3o h\xE1 sess\xF5es neste projeto.",
1352
+ "project.remoteNotReady": "O canal de projetos n\xE3o est\xE1 pronto.",
1353
+ "project.remove.description": "Isso exclui o projeto \u201C{name}\u201D. A pasta, o hist\xF3rico de sess\xF5es e os espa\xE7os de trabalho do dsh s\xE3o mantidos.",
1354
+ "project.remove.notice": "Projeto \u201C{name}\u201D exclu\xEDdo.",
1355
+ "project.remove.title": "Excluir projeto",
1356
+ "project.rename": "Renomear",
1357
+ "project.replaceLeader": "Substituir Leader",
1358
+ "session.fold.expand": "Mostrar as sess\xF5es restantes ({count})",
1359
+ "slot.dev": "Desenvolvimento",
1360
+ "slot.discuss": "Discuss\xE3o",
1361
+ "slot.review": "Revis\xE3o",
1362
+ "tab.board": "Quadro",
1363
+ "tab.board.description": "Quadro de entregas das tarefas nas sess\xF5es do Leader e dos workers deste projeto",
1364
+ "tabs.close": "Fechar aba",
1365
+ "tabs.list": "Abas de sess\xF5es do projeto",
1366
+ "tabs.more": "Mais"
1367
+ }),
1368
+ "ru": Object.freeze({
1369
+ "board.delete.title": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443",
1370
+ "board.done": "\u0413\u043E\u0442\u043E\u0432\u043E",
1371
+ "board.empty.doneHintNamed": "\u0412\u0441\u0435 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u0432 \xAB{project}\xBB \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u044B",
1372
+ "board.empty.doneHintOwn": "\u0412\u0441\u0435 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u0432 \u044D\u0442\u043E\u043C \u043F\u0440\u043E\u0435\u043A\u0442\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u044B",
1373
+ "board.empty.doneTitle": "\u0412\u0441\u0451 \u0433\u043E\u0442\u043E\u0432\u043E",
1374
+ "board.empty.hint": "\u041A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u043F\u043E\u044F\u0432\u044F\u0442\u0441\u044F \u0437\u0434\u0435\u0441\u044C, \u043A\u043E\u0433\u0434\u0430 Leader \u0432\u044B\u0437\u043E\u0432\u0435\u0442 create_card",
1375
+ "board.empty.title": "\u041A\u0430\u0440\u0442\u043E\u0447\u0435\u043A \u043F\u043E\u043A\u0430 \u043D\u0435\u0442",
1376
+ "board.error.cards": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438: {message}",
1377
+ "board.error.delete": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443: {message}",
1378
+ "board.error.project": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u043F\u0440\u043E\u0435\u043A\u0442: {message}",
1379
+ "board.fold.expand": "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 ({count})",
1380
+ "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.",
1381
+ "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",
1382
+ "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).",
1383
+ "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",
1384
+ "board.notProject.hint": "\u042D\u0442\u043E \u043E\u0431\u044B\u0447\u043D\u044B\u0439 \u0441\u0435\u0430\u043D\u0441 \u0432 \u043F\u0430\u043F\u043A\u0435 \xAB{project}\xBB. \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 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432.",
1385
+ "board.notProject.title": "\u0414\u043E\u0441\u043A\u0430 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \u0441\u0435\u0430\u043D\u0441\u0430\u0445 \u043F\u0440\u043E\u0435\u043A\u0442\u0430",
1386
+ "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.",
1387
+ "board.slot.title": "{name}: {state}",
1388
+ "board.state.attention": "\u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u043D\u0438\u043C\u0430\u043D\u0438\u044F",
1389
+ "board.state.empty": "\u041D\u0435 \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u043E",
1390
+ "board.state.idle": "\u0411\u0435\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442",
1391
+ "board.state.none": "\u041D\u0435\u0442 \u0441\u0438\u0433\u043D\u0430\u043B\u0430",
1392
+ "board.state.running": "\u0412\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F",
1393
+ "board.state.unknown": "\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E",
1394
+ "board.state.unread": "\u041D\u0435 \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u043D\u043E",
1395
+ "board.state.waiting": "\u041E\u0436\u0438\u0434\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0433\u043E \u043E\u0442\u0432\u0435\u0442\u0430",
1396
+ "bubble.clock.day": "{day}.{month}",
1397
+ "bubble.clock.dayYear": "{day}.{month}.{year}",
1398
+ "bubble.copied": "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E",
1399
+ "bubble.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
1400
+ "bubble.more": "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451",
1401
+ "bubble.openSession": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0439 \u0441\u0435\u0430\u043D\u0441 {name}",
1402
+ "bubble.taskTitle": "\u0417\u0430\u0434\u0430\u0447\u0430 \u043E\u0442 Leader",
1403
+ "card.detail.delete": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443",
1404
+ "card.detail.editLinks": "\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0438",
1405
+ "card.detail.empty": "\u0423 \u044D\u0442\u043E\u0439 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u043F\u043E\u043A\u0430 \u043D\u0435\u0442 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u044F.",
1406
+ "card.detail.links": "\u0421\u0441\u044B\u043B\u043A\u0438",
1407
+ "card.detail.remove": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443 #{number} \xAB{title}\xBB. \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u044D\u0442\u043E \u043D\u0435\u043B\u044C\u0437\u044F; \u043D\u043E\u043C\u0435\u0440 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E, \u0430 \u043F\u0440\u0438\u0432\u044F\u0437\u043A\u0438 \u0441\u043B\u043E\u0442\u043E\u0432 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u0431\u0443\u0434\u0443\u0442 \u043E\u0441\u0432\u043E\u0431\u043E\u0436\u0434\u0435\u043D\u044B.",
1408
+ "card.detail.spec": "\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",
1409
+ "card.links.add": "+ \u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",
1410
+ "card.links.addPurpose": "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",
1411
+ "card.links.empty": "\u0423 \u044D\u0442\u043E\u0439 \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0438 \u043F\u043E\u043A\u0430 \u043D\u0435\u0442 \u0441\u0441\u044B\u043B\u043E\u043A.",
1412
+ "card.links.error.entryNotObject": "\u041A\u0430\u0436\u0434\u0430\u044F \u0441\u0441\u044B\u043B\u043A\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u043C.",
1413
+ "card.links.error.fieldNotString": "\u041F\u043E\u043B\u0435 {field} \u0441\u0441\u044B\u043B\u043A\u0438 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u043E\u0439.",
1414
+ "card.links.error.invalidUrl": "URL \u0434\u043B\u044F \xAB{label}\xBB \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0430\u0431\u0441\u043E\u043B\u044E\u0442\u043D\u044B\u043C \u0430\u0434\u0440\u0435\u0441\u043E\u043C http(s), \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 https://example.com/\u2026",
1415
+ "card.links.error.labelMissingPurpose": "\u0423 \u043E\u0434\u043D\u043E\u0439 \u0438\u0437 \u0441\u0441\u044B\u043B\u043E\u043A \u0443\u043A\u0430\u0437\u0430\u043D\u043E \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435, \u043D\u043E \u043D\u0435\u0442 \u043F\u043E\u0434\u043F\u0438\u0441\u0438. \u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u044C \u043F\u0435\u0440\u0435\u0434 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435\u043C.",
1416
+ "card.links.error.labelMissingUrl": "\u0423 \u043E\u0434\u043D\u043E\u0439 \u0438\u0437 \u0441\u0441\u044B\u043B\u043E\u043A \u0443\u043A\u0430\u0437\u0430\u043D URL, \u043D\u043E \u043D\u0435\u0442 \u043F\u043E\u0434\u043F\u0438\u0441\u0438. \u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u044C \u043F\u0435\u0440\u0435\u0434 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435\u043C.",
1417
+ "card.links.error.notArray": "\u0421\u0441\u044B\u043B\u043A\u0438 \u0434\u043E\u043B\u0436\u043D\u044B \u0431\u044B\u0442\u044C \u043C\u0430\u0441\u0441\u0438\u0432\u043E\u043C.",
1418
+ "card.links.label": "\u041F\u043E\u0434\u043F\u0438\u0441\u044C",
1419
+ "card.links.labelAria": "\u041F\u043E\u0434\u043F\u0438\u0441\u044C \u0441\u0441\u044B\u043B\u043A\u0438",
1420
+ "card.links.purpose": "\u041D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 (\u043D\u0435\u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E)",
1421
+ "card.links.purposeAria": "\u041D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0441\u0441\u044B\u043B\u043A\u0438",
1422
+ "card.links.remove": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",
1423
+ "card.links.saveFailed": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0438: {message}",
1424
+ "card.links.urlAria": "URL \u0441\u0441\u044B\u043B\u043A\u0438",
1425
+ "card.status.active": "\u0412 \u0440\u0430\u0431\u043E\u0442\u0435",
1426
+ "card.status.archived": "\u0412 \u0430\u0440\u0445\u0438\u0432\u0435",
1427
+ "card.status.done": "\u0413\u043E\u0442\u043E\u0432\u043E",
1428
+ "common.cancel": "\u041E\u0442\u043C\u0435\u043D\u0430",
1429
+ "common.close": "\u0417\u0430\u043A\u0440\u044B\u0442\u044C",
1430
+ "common.collapse": "\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",
1431
+ "common.delete": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C",
1432
+ "common.save": "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",
1433
+ "common.saving": "\u0421\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435\u2026",
1434
+ "guide.action.dismiss": "\u041F\u043E\u043D\u044F\u0442\u043D\u043E",
1435
+ "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",
1436
+ "guide.intro.prompt": "\u042D\u0442\u043E\u0442 \u043F\u0440\u043E\u0435\u043A\u0442 \u0435\u0449\u0451 \u043D\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D \u2014 \u043F\u043E\u043A\u0430\u0436\u0438\u0442\u0435, \u043A\u0430\u043A \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 dsh-leader-agent.",
1437
+ "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",
1438
+ "guide.title": "\u0412 \u044D\u0442\u043E\u043C \u043A\u0430\u0442\u0430\u043B\u043E\u0433\u0435 \u0435\u0441\u0442\u044C Leader",
1439
+ "markdown.code": "\u041A\u043E\u0434",
1440
+ "markdown.copied": "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E",
1441
+ "markdown.copy": "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
1442
+ "markdown.footnotes": "\u0421\u043D\u043E\u0441\u043A\u0438",
1443
+ "markdown.unwrap": "\u0411\u0435\u0437 \u043F\u0435\u0440\u0435\u043D\u043E\u0441\u0430 \u0441\u0442\u0440\u043E\u043A",
1444
+ "markdown.wrap": "\u041F\u0435\u0440\u0435\u043D\u043E\u0441\u0438\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0438",
1445
+ "project.add": "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0435\u043A\u0442: \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u043F\u0430\u043F\u043A\u0443",
1446
+ "project.archive": "\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u0430\u043D\u0441: \u0443\u0431\u0440\u0430\u0442\u044C \u0438\u0437 \u0441\u043F\u0438\u0441\u043A\u0430 \u0438 \u043E\u0441\u0432\u043E\u0431\u043E\u0434\u0438\u0442\u044C \u043F\u0440\u0438\u0432\u044F\u0437\u043A\u0438 \u0441\u043B\u043E\u0442\u043E\u0432 \u043A\u0430\u0440\u0442\u043E\u0447\u0435\u043A",
1447
+ "project.archive.aria": "\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u0430\u043D\u0441 {title}",
1448
+ "project.archive.confirm": "\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
1449
+ "project.archive.description": "\u042D\u0442\u043E\u0442 \u0441\u0435\u0430\u043D\u0441 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F. \u041F\u0440\u0438 \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u0438 \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u043E\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u044E\u0442\u0441\u044F \u0435\u0433\u043E \u0437\u0430\u0434\u0430\u0447\u0438, \u0437\u0430\u0442\u0435\u043C \u043E\u043D \u0443\u0434\u0430\u043B\u044F\u0435\u0442\u0441\u044F \u0438\u0437 \u0441\u043F\u0438\u0441\u043A\u0430 \u0438 \u043F\u0440\u0438\u0432\u044F\u0437\u043A\u0438 \u0441\u043B\u043E\u0442\u043E\u0432 \u043A\u0430\u0440\u0442\u043E\u0447\u0435\u043A \u043E\u0441\u0432\u043E\u0431\u043E\u0436\u0434\u0430\u044E\u0442\u0441\u044F. \u0418\u0441\u0442\u043E\u0440\u0438\u044F \u0441\u0435\u0430\u043D\u0441\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u044F\u0435\u0442\u0441\u044F.",
1450
+ "project.archive.title": "\u0421\u0435\u0430\u043D\u0441 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F",
1451
+ "project.collapseList": "\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0440\u043E\u0435\u043A\u0442\u043E\u0432",
1452
+ "project.collapseSessions": "\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u0435\u0430\u043D\u0441\u044B",
1453
+ "project.completedUnread": "\u0413\u043E\u0442\u043E\u0432\u043E, \u043D\u0435 \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u043D\u043E",
1454
+ "project.create": "\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043F\u0440\u043E\u0435\u043A\u0442",
1455
+ "project.empty": "\u041F\u0440\u043E\u0435\u043A\u0442\u043E\u0432 \u043F\u043E\u043A\u0430 \u043D\u0435\u0442. \u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u043F\u0440\u043E\u0435\u043A\u0442, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u0441\u0435\u0430\u043D\u0441 Leader \u0432 \u0435\u0433\u043E \u043F\u0430\u043F\u043A\u0435.",
1456
+ "project.error.archive": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u0430\u043D\u0441: {message}",
1457
+ "project.error.archivePartial": "\u0421\u0435\u0430\u043D\u0441 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D, \u043D\u043E \u043E\u0441\u0432\u043E\u0431\u043E\u0434\u0438\u0442\u044C \u0441\u043B\u043E\u0442\u044B \u043A\u0430\u0440\u0442\u043E\u0447\u0435\u043A \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C: {message}",
1458
+ "project.error.create": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u043F\u0440\u043E\u0435\u043A\u0442: {message}",
1459
+ "project.error.delete": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u043F\u0440\u043E\u0435\u043A\u0442: {message}",
1460
+ "project.error.deleteReason": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u043F\u0440\u043E\u0435\u043A\u0442.",
1461
+ "project.error.directoryPicker": "\u0412\u044B\u0431\u043E\u0440 \u043F\u0430\u043F\u043A\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D: \u044D\u0442\u043E\u0442 \u0445\u043E\u0441\u0442 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u043F\u0430\u043F\u043A\u0443. \u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u0435\u0441\u044C \u043D\u0430 \u043F\u0440\u043E\u0444\u0438\u043B\u044C web \u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443.",
1462
+ "project.error.namespaceMissing": "\u041A\u0430\u043D\u0430\u043B \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D.",
1463
+ "project.error.navigation": "\u0421\u043B\u0443\u0436\u0431\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430: \u043D\u0435 \u0443\u0434\u0430\u0451\u0442\u0441\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0441\u0435\u0430\u043D\u0441.",
1464
+ "project.error.read": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u043F\u0440\u043E\u0435\u043A\u0442\u044B: {message}",
1465
+ "project.error.rename": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0435\u043A\u0442: {message}",
1466
+ "project.error.reorder": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u043E\u0440\u044F\u0434\u043E\u043A \u043F\u0440\u043E\u0435\u043A\u0442\u043E\u0432: {message}",
1467
+ "project.error.replaceLeader": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u043C\u0435\u043D\u0438\u0442\u044C Leader: {message}",
1468
+ "project.error.sessions": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u0441\u0435\u0430\u043D\u0441\u044B \u043F\u0440\u043E\u0435\u043A\u0442\u0430: {message}",
1469
+ "project.error.stopArchive": "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C: {message}",
1470
+ "project.error.workspaces": "\u0421\u043B\u0443\u0436\u0431\u0430 \u0440\u0430\u0431\u043E\u0447\u0438\u0445 \u043E\u0431\u043B\u0430\u0441\u0442\u0435\u0439 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430: \u043D\u0435 \u0443\u0434\u0430\u0451\u0442\u0441\u044F \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u0430\u043D\u0441.",
1471
+ "project.expandList": "\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0440\u043E\u0435\u043A\u0442\u043E\u0432",
1472
+ "project.expandSessions": "\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u0435\u0430\u043D\u0441\u044B",
1473
+ "project.label": "\u041F\u0440\u043E\u0435\u043A\u0442\u044B",
1474
+ "project.leaderDeleted": "\u0421\u0435\u0430\u043D\u0441 Leader \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \xAB{name}\xBB \u0443\u0434\u0430\u043B\u0451\u043D. \u0417\u0430\u043C\u0435\u043D\u0438\u0442\u0435 Leader \u043F\u0440\u043E\u0435\u043A\u0442\u0430.",
1475
+ "project.leaderMissing": "\u0423 \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \xAB{name}\xBB \u043D\u0435\u0442 \u0441\u0435\u0430\u043D\u0441\u0430 Leader, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u043C\u043E\u0436\u043D\u043E \u043E\u0442\u043A\u0440\u044B\u0442\u044C. \u0417\u0430\u043C\u0435\u043D\u0438\u0442\u0435 Leader \u043F\u0440\u043E\u0435\u043A\u0442\u0430.",
1476
+ "project.more": "\u0415\u0449\u0451",
1477
+ "project.name.empty": "\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u043C",
1478
+ "project.name.tooLong": "\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0434\u043B\u0438\u043D\u043D\u043E\u0435 (\u043D\u0435 \u0431\u043E\u043B\u0435\u0435 {max} \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432)",
1479
+ "project.noSessions": "\u0412 \u044D\u0442\u043E\u043C \u043F\u0440\u043E\u0435\u043A\u0442\u0435 \u043F\u043E\u043A\u0430 \u043D\u0435\u0442 \u0441\u0435\u0430\u043D\u0441\u043E\u0432.",
1480
+ "project.remoteNotReady": "\u041A\u0430\u043D\u0430\u043B \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \u043D\u0435 \u0433\u043E\u0442\u043E\u0432.",
1481
+ "project.remove.description": "\u041F\u0440\u043E\u0435\u043A\u0442 \xAB{name}\xBB \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043B\u0451\u043D. \u041F\u0430\u043F\u043A\u0430, \u0438\u0441\u0442\u043E\u0440\u0438\u044F \u0441\u0435\u0430\u043D\u0441\u043E\u0432 \u0438 \u0440\u0430\u0431\u043E\u0447\u0438\u0435 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 dsh \u0441\u043E\u0445\u0440\u0430\u043D\u044F\u0442\u0441\u044F.",
1482
+ "project.remove.notice": "\u041F\u0440\u043E\u0435\u043A\u0442 \xAB{name}\xBB \u0443\u0434\u0430\u043B\u0451\u043D.",
1483
+ "project.remove.title": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043F\u0440\u043E\u0435\u043A\u0442",
1484
+ "project.rename": "\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C",
1485
+ "project.replaceLeader": "\u0417\u0430\u043C\u0435\u043D\u0438\u0442\u044C Leader",
1486
+ "session.fold.expand": "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451 \u0441\u0435\u0430\u043D\u0441\u044B ({count})",
1487
+ "slot.dev": "\u0420\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0430",
1488
+ "slot.discuss": "\u041E\u0431\u0441\u0443\u0436\u0434\u0435\u043D\u0438\u0435",
1489
+ "slot.review": "\u0420\u0435\u0432\u044C\u044E",
1490
+ "tab.board": "\u0414\u043E\u0441\u043A\u0430",
1491
+ "tab.board.description": "\u0414\u043E\u0441\u043A\u0430 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432 \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u0447 \u0432 \u0441\u0435\u0430\u043D\u0441\u0430\u0445 Leader \u0438 \u0432\u043E\u0440\u043A\u0435\u0440\u043E\u0432 \u044D\u0442\u043E\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430",
1492
+ "tabs.close": "\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u0432\u043A\u043B\u0430\u0434\u043A\u0443",
1493
+ "tabs.list": "\u0412\u043A\u043B\u0430\u0434\u043A\u0438 \u0441\u0435\u0430\u043D\u0441\u043E\u0432 \u043F\u0440\u043E\u0435\u043A\u0442\u0430",
1494
+ "tabs.more": "\u0415\u0449\u0451"
1495
+ }),
1496
+ "zh": Object.freeze({
1497
+ "board.delete.title": "\u5220\u9664\u5361\u7247",
1498
+ "board.done": "\u5DF2\u5B8C\u6210",
1499
+ "board.empty.doneHintNamed": "\u300C{project}\u300D\u7684\u5361\u7247\u90FD\u5DF2\u5B8C\u6210",
1500
+ "board.empty.doneHintOwn": "\u672C\u9879\u76EE\u7684\u5361\u7247\u90FD\u5DF2\u5B8C\u6210",
1501
+ "board.empty.doneTitle": "\u5168\u90E8\u5B8C\u6210",
1502
+ "board.empty.hint": "leader \u8C03\u7528 create_card \u540E\uFF0C\u5361\u7247\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC",
1503
+ "board.empty.title": "\u8FD8\u6CA1\u6709\u5361\u7247",
1504
+ "board.error.cards": "\u8BFB\u53D6\u5361\u7247\u5931\u8D25\uFF1A{message}",
1505
+ "board.error.delete": "\u5220\u9664\u5931\u8D25\uFF1A{message}",
1506
+ "board.error.project": "\u8BFB\u53D6\u9879\u76EE\u5931\u8D25\uFF1A{message}",
1507
+ "board.fold.expand": "\u5C55\u5F00\u5176\u4F59 {count} \u5F20\u5361",
1508
+ "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",
1509
+ "board.leaderDead.title": "\u8BE5\u9879\u76EE\u7684 leader \u4F1A\u8BDD\u5DF2\u5931\u6548",
1510
+ "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",
1511
+ "board.noProject.title": "\u5F53\u524D\u4F1A\u8BDD\u4E0D\u5C5E\u4E8E\u4EFB\u4F55\u9879\u76EE",
1512
+ "board.notProject.hint": "\u8FD9\u662F\u300C{project}\u300D\u6240\u5728\u76EE\u5F55\u91CC\u7684\u666E\u901A\u4F1A\u8BDD\uFF1B\u53BB\u8BE5\u9879\u76EE\u7684 leader \u6216 worker \u4F1A\u8BDD\u67E5\u770B\u4EA4\u4ED8\u770B\u677F\u3002",
1513
+ "board.notProject.title": "\u770B\u677F\u53EA\u5728\u9879\u76EE\u4F1A\u8BDD\u4E2D\u6253\u5F00",
1514
+ "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",
1515
+ "board.slot.title": "{name}\uFF1A{state}",
1516
+ "board.state.attention": "\u9700\u6CE8\u610F",
1517
+ "board.state.empty": "\u672A\u6D3E\u5DE5",
1518
+ "board.state.idle": "\u7A7A\u95F2",
1519
+ "board.state.none": "\u65E0\u4FE1\u53F7",
1520
+ "board.state.running": "\u6267\u884C\u4E2D",
1521
+ "board.state.unknown": "\u72B6\u6001\u672A\u77E5",
1522
+ "board.state.unread": "\u672A\u8BFB",
1523
+ "board.state.waiting": "\u7B49\u4F60\u8F93\u5165",
1524
+ "bubble.clock.day": "{month}\u6708{day}\u65E5",
1525
+ "bubble.clock.dayYear": "{year}\u5E74{month}\u6708{day}\u65E5",
1526
+ "bubble.copied": "\u5DF2\u590D\u5236",
1527
+ "bubble.copy": "\u590D\u5236",
1528
+ "bubble.more": "\u5C55\u793A\u66F4\u591A",
1529
+ "bubble.openSession": "\u6253\u5F00 {name} \u7684\u5B50\u4F1A\u8BDD",
1530
+ "bubble.taskTitle": "Leader \u6D3E\u53D1\u7684\u4EFB\u52A1",
1531
+ "card.detail.delete": "\u5220\u9664\u5361\u7247",
1532
+ "card.detail.editLinks": "\u7F16\u8F91\u94FE\u63A5",
1533
+ "card.detail.empty": "\u8FD9\u5F20\u5361\u8FD8\u6CA1\u6709\u5199\u8BF4\u660E\u3002",
1534
+ "card.detail.links": "\u94FE\u63A5",
1535
+ "card.detail.remove": "\u5C06\u5220\u9664\u5361\u7247 #{number}\u300C{title}\u300D\u3002\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\uFF0C\u7F16\u53F7\u4E0D\u4F1A\u518D\u5206\u914D\uFF0C\u5361\u7247\u4E0A\u7684\u69FD\u4F4D\u7ED1\u5B9A\u4F1A\u4E00\u5E76\u89E3\u9664\u3002",
1536
+ "card.detail.spec": "\u8BF4\u660E",
1537
+ "card.links.add": "+ \u6DFB\u52A0\u94FE\u63A5",
1538
+ "card.links.addPurpose": "\u6DFB\u52A0\u7528\u9014",
1539
+ "card.links.empty": "\u8FD9\u5F20\u5361\u8FD8\u6CA1\u6709\u6302\u94FE\u63A5\u3002",
1540
+ "card.links.error.entryNotObject": "\u6BCF\u4E00\u6761\u94FE\u63A5\u5FC5\u987B\u662F\u5BF9\u8C61\u3002",
1541
+ "card.links.error.fieldNotString": "\u94FE\u63A5\u6761\u76EE\u7684 {field} \u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u3002",
1542
+ "card.links.error.invalidUrl": "\u300C{label}\u300D\u7684\u94FE\u63A5 URL \u5FC5\u987B\u662F http(s) \u7EDD\u5BF9\u5730\u5740\uFF0C\u4F8B\u5982 https://example.com/\u2026",
1543
+ "card.links.error.labelMissingPurpose": "\u6709\u4E00\u6761\u94FE\u63A5\u53EA\u586B\u4E86\u7528\u9014\uFF0C\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A\u3002",
1544
+ "card.links.error.labelMissingUrl": "\u6709\u4E00\u6761\u94FE\u63A5\u53EA\u586B\u4E86 URL\uFF0C\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A\u3002",
1545
+ "card.links.error.notArray": "\u94FE\u63A5\u5FC5\u987B\u662F\u6570\u7EC4\u3002",
1546
+ "card.links.label": "\u6807\u7B7E",
1547
+ "card.links.labelAria": "\u94FE\u63A5\u6807\u7B7E",
1548
+ "card.links.purpose": "\u7528\u9014\uFF08\u53EF\u9009\uFF09",
1549
+ "card.links.purposeAria": "\u94FE\u63A5\u7528\u9014",
1550
+ "card.links.remove": "\u79FB\u9664\u94FE\u63A5",
1551
+ "card.links.saveFailed": "\u4FDD\u5B58\u94FE\u63A5\u5931\u8D25\uFF1A{message}",
1552
+ "card.links.urlAria": "\u94FE\u63A5 URL",
1553
+ "card.status.active": "\u8FDB\u884C\u4E2D",
1554
+ "card.status.archived": "\u5DF2\u5F52\u6863",
1555
+ "card.status.done": "\u5DF2\u5B8C\u6210",
1556
+ "common.cancel": "\u53D6\u6D88",
1557
+ "common.close": "\u5173\u95ED",
1558
+ "common.collapse": "\u6536\u8D77",
1559
+ "common.delete": "\u5220\u9664",
1560
+ "common.save": "\u4FDD\u5B58",
1561
+ "common.saving": "\u4FDD\u5B58\u4E2D\u2026",
1562
+ "guide.action.dismiss": "\u77E5\u9053\u4E86",
1563
+ "guide.action.intro": "\u4E86\u89E3\u600E\u4E48\u7528",
1564
+ "guide.intro.prompt": "\u8FD9\u4E2A\u9879\u76EE\u8FD8\u6CA1\u914D\u7F6E\uFF0C\u5148\u8BB2\u8BB2 dsh-leader-agent \u600E\u4E48\u7528\u3002",
1565
+ "guide.steps": "\u4F60\u53EF\u4EE5\u8BA9\u5B83\u5EFA\u4EFB\u52A1\u5361\u3001\u7ED9 Agent \u6D3E\u6D3B\uFF0C\u5728\u53F3\u680F\u770B\u677F\u8DDF\u8FDB",
1566
+ "guide.title": "\u8FD9\u4E2A\u76EE\u5F55\u6709\u4E00\u4E2A Leader \u4E86",
1567
+ "markdown.code": "\u4EE3\u7801",
1568
+ "markdown.copied": "\u5DF2\u590D\u5236",
1569
+ "markdown.copy": "\u590D\u5236",
1570
+ "markdown.footnotes": "\u811A\u6CE8",
1571
+ "markdown.unwrap": "\u53D6\u6D88\u6362\u884C",
1572
+ "markdown.wrap": "\u6362\u884C",
1573
+ "project.add": "\u52A0\u9879\u76EE\uFF1A\u9009\u4E00\u4E2A\u76EE\u5F55",
1574
+ "project.archive": "\u5F52\u6863\u4F1A\u8BDD\uFF1A\u4ECE\u5217\u8868\u79FB\u9664\uFF0C\u5E76\u6458\u6389\u5361\u7247\u4E0A\u7ED1\u5B9A\u7684\u69FD\u4F4D",
1575
+ "project.archive.aria": "\u5F52\u6863\u4F1A\u8BDD {title}",
1576
+ "project.archive.confirm": "\u505C\u6B62\u5E76\u5F52\u6863",
1577
+ "project.archive.description": "\u8FD9\u4E2A\u4F1A\u8BDD\u6B63\u5728\u8DD1\u3002\u5F52\u6863\u4F1A\u5148\u505C\u6389\u5B83\u7684\u4EFB\u52A1\uFF0C\u518D\u4ECE\u5217\u8868\u79FB\u9664\u5E76\u6458\u6389\u5361\u7247\u4E0A\u7ED1\u5B9A\u7684\u69FD\u4F4D\u3002\u4F1A\u8BDD\u8BB0\u5F55\u4FDD\u7559\u3002",
1578
+ "project.archive.title": "\u4F1A\u8BDD\u8FD8\u5728\u6267\u884C",
1579
+ "project.collapseList": "\u6536\u8D77\u9879\u76EE\u5217\u8868",
1580
+ "project.collapseSessions": "\u6536\u8D77\u4F1A\u8BDD",
1581
+ "project.completedUnread": "\u5DF2\u5B8C\u6210\uFF0C\u5F85\u67E5\u770B",
1582
+ "project.create": "\u5EFA\u9879\u76EE",
1583
+ "project.empty": "\u8FD8\u6CA1\u6709\u9879\u76EE\u3002\u52A0\u4E00\u4E2A\u5373\u5728\u5B83\u7684\u76EE\u5F55\u91CC\u5EFA\u597D leader \u4F1A\u8BDD\u3002",
1584
+ "project.error.archive": "\u5F52\u6863\u4F1A\u8BDD\u5931\u8D25\uFF1A{message}",
1585
+ "project.error.archivePartial": "\u4F1A\u8BDD\u5DF2\u5F52\u6863\uFF0C\u4F46\u6458\u5361\u5931\u8D25\uFF1A{message}",
1586
+ "project.error.create": "\u5EFA\u9879\u76EE\u5931\u8D25\uFF1A{message}",
1587
+ "project.error.delete": "\u5220\u9664\u5931\u8D25\uFF1A{message}",
1588
+ "project.error.deleteReason": "\u5220\u9664\u5931\u8D25\u3002",
1589
+ "project.error.directoryPicker": "\u76EE\u5F55\u9009\u62E9\u5668\u4E0D\u53EF\u7528\uFF1A\u5F53\u524D\u5BBF\u4E3B\u65E0\u6CD5\u9009\u62E9\u76EE\u5F55\uFF0C\u8BF7\u6362\u7528 web profile \u540E\u518D\u8BD5\u3002",
1590
+ "project.error.namespaceMissing": "\u9879\u76EE\u901A\u9053\u4E0D\u53EF\u7528\u3002",
1591
+ "project.error.navigation": "\u5BFC\u822A\u670D\u52A1\u4E0D\u53EF\u7528\uFF1A\u65E0\u6CD5\u6253\u5F00\u4F1A\u8BDD\u3002",
1592
+ "project.error.read": "\u8BFB\u53D6\u9879\u76EE\u5931\u8D25\uFF1A{message}",
1593
+ "project.error.rename": "\u6539\u540D\u5931\u8D25\uFF1A{message}",
1594
+ "project.error.reorder": "\u8C03\u6574\u9879\u76EE\u987A\u5E8F\u5931\u8D25\uFF1A{message}",
1595
+ "project.error.replaceLeader": "\u6362\u65B0 Leader \u5931\u8D25\uFF1A{message}",
1596
+ "project.error.sessions": "\u8BFB\u53D6\u9879\u76EE\u4F1A\u8BDD\u5931\u8D25\uFF1A{message}",
1597
+ "project.error.stopArchive": "\u505C\u6B62\u5E76\u5F52\u6863\u5931\u8D25\uFF1A{message}",
1598
+ "project.error.workspaces": "\u5DE5\u4F5C\u533A\u670D\u52A1\u4E0D\u53EF\u7528\uFF1A\u65E0\u6CD5\u5F52\u6863\u4F1A\u8BDD\u3002",
1599
+ "project.expandList": "\u5C55\u5F00\u9879\u76EE\u5217\u8868",
1600
+ "project.expandSessions": "\u5C55\u5F00\u4F1A\u8BDD",
1601
+ "project.label": "\u9879\u76EE",
1602
+ "project.leaderDeleted": "\u9879\u76EE\u300C{name}\u300D\u7684 leader \u4F1A\u8BDD\u5DF2\u88AB\u5220\u9664\uFF0C\u8BF7\u6362\u65B0 Leader\u3002",
1603
+ "project.leaderMissing": "\u9879\u76EE\u300C{name}\u300D\u6CA1\u6709\u53EF\u6253\u5F00\u7684 leader \u4F1A\u8BDD\uFF0C\u8BF7\u6362\u65B0 Leader\u3002",
1604
+ "project.more": "\u66F4\u591A",
1605
+ "project.name.empty": "\u9879\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A",
1606
+ "project.name.tooLong": "\u9879\u76EE\u540D\u8FC7\u957F\uFF08\u4E0A\u9650 {max} \u5B57\uFF09",
1607
+ "project.noSessions": "\u8BE5\u9879\u76EE\u4E0B\u8FD8\u6CA1\u6709\u4F1A\u8BDD\u3002",
1608
+ "project.remoteNotReady": "\u9879\u76EE\u901A\u9053\u672A\u5C31\u7EEA\u3002",
1609
+ "project.remove.description": "\u5C06\u628A\u9879\u76EE\u300C{name}\u300D\u5220\u9664\u3002\u6587\u4EF6\u5939\u3001\u4F1A\u8BDD\u8BB0\u5F55\u4E0E dsh \u5DE5\u4F5C\u533A\u90FD\u4F1A\u4FDD\u7559\u3002",
1610
+ "project.remove.notice": "\u5DF2\u5220\u9664\u9879\u76EE\u300C{name}\u300D\u3002",
1611
+ "project.remove.title": "\u5220\u9664\u9879\u76EE",
1612
+ "project.rename": "\u91CD\u547D\u540D",
1613
+ "project.replaceLeader": "\u6362\u65B0 Leader",
1614
+ "session.fold.expand": "\u5C55\u5F00\u5176\u4F59 {count} \u4E2A\u4F1A\u8BDD",
1615
+ "slot.dev": "\u5F00\u53D1",
1616
+ "slot.discuss": "\u8BA8\u8BBA",
1617
+ "slot.review": "\u5BA1\u6838",
1618
+ "tab.board": "\u770B\u677F",
1619
+ "tab.board.description": "\u9879\u76EE leader \u4E0E worker \u4F1A\u8BDD\u91CC\u7684\u4EFB\u52A1\u4EA4\u4ED8\u770B\u677F",
1620
+ "tabs.close": "\u5173\u95ED\u6807\u7B7E",
1621
+ "tabs.list": "\u9879\u76EE\u4F1A\u8BDD\u6807\u7B7E",
1622
+ "tabs.more": "\u66F4\u591A"
1623
+ })
1624
+ });
1625
+
569
1626
  // src/client/locales.js
1627
+ function unknownLocaleCodes(localeUi, hostLocales) {
1628
+ const known = new Set(hostLocales.map((locale) => typeof locale === "string" ? locale : locale?.id).filter(Boolean));
1629
+ return Object.keys(localeUi).filter((code) => !known.has(code));
1630
+ }
570
1631
  var SLOT_LOCALE_NAMESPACE = "dsh-leader-agent";
571
1632
  var SLOT_LABEL_KEYS = Object.freeze({
572
1633
  discuss: "slot.discuss",
573
1634
  dev: "slot.dev",
574
1635
  review: "slot.review"
575
1636
  });
576
- var zh = Object.freeze({
577
- "slot.discuss": "\u8BA8\u8BBA",
578
- "slot.dev": "\u5F00\u53D1",
579
- "slot.review": "\u5BA1\u6838",
580
- "guide.title": "\u8FD9\u4E2A\u76EE\u5F55\u6709\u4E00\u4E2A Leader \u4E86",
581
- "guide.steps": "\u4F60\u53EF\u4EE5\u8BA9\u5B83\u5EFA\u4EFB\u52A1\u5361\u3001\u7ED9 Agent \u6D3E\u6D3B\uFF0C\u5728\u53F3\u680F\u770B\u677F\u8DDF\u8FDB",
582
- "guide.action.intro": "\u4E86\u89E3\u600E\u4E48\u7528",
583
- "guide.action.dismiss": "\u77E5\u9053\u4E86",
584
- "guide.intro.prompt": "\u8FD9\u4E2A\u9879\u76EE\u8FD8\u6CA1\u914D\u7F6E\uFF0C\u5148\u8BB2\u8BB2 dsh-leader-agent \u600E\u4E48\u7528\u3002"
585
- });
586
- var en = Object.freeze({
587
- "slot.discuss": "Discuss",
588
- "slot.dev": "Dev",
589
- "slot.review": "Review",
590
- "guide.title": "This directory has a Leader",
591
- "guide.steps": "Open task cards, hand work to Agents, track progress in the board",
592
- "guide.action.intro": "Show me how to use it",
593
- "guide.action.dismiss": "Got it",
594
- "guide.intro.prompt": "This project isn't set up yet \u2014 show me how dsh-leader-agent works."
595
- });
596
1637
  function slotLabel(name, t) {
597
1638
  const key = SLOT_LABEL_KEYS[name];
598
1639
  if (key === void 0 || typeof t !== "function") return name;
@@ -788,7 +1829,7 @@ function linkContent(link) {
788
1829
  (0, import_react2.createElement)("span", { className: "dsh-leader-agent-board-link-label" }, link.label ?? "")
789
1830
  );
790
1831
  }
791
- function BoardLinks({ links, onOpenDetail }) {
1832
+ function BoardLinks({ links, onOpenDetail, t }) {
792
1833
  const row = (0, import_react2.useRef)(null);
793
1834
  const measure = (0, import_react2.useRef)(null);
794
1835
  const [visibleCount, setVisibleCount] = (0, import_react2.useState)(links.length);
@@ -875,28 +1916,29 @@ function BoardLinks({ links, onOpenDetail }) {
875
1916
  event.stopPropagation();
876
1917
  setExpanded((value) => !value);
877
1918
  }
878
- }, expanded ? "\u6536\u8D77" : overflow) : null
1919
+ }, expanded ? t("common.collapse") : overflow) : null
879
1920
  );
880
1921
  }
881
- var STATE_LABELS = {
882
- waiting: "\u7B49\u4F60\u8F93\u5165",
883
- attention: "\u9700\u6CE8\u610F",
884
- running: "\u6267\u884C\u4E2D",
885
- unread: "\u672A\u8BFB",
886
- idle: "\u7A7A\u95F2",
887
- empty: "\u672A\u6D3E\u5DE5",
888
- unknown: "\u72B6\u6001\u672A\u77E5",
889
- none: "\u65E0\u4FE1\u53F7"
1922
+ var STATE_LABEL_KEYS = {
1923
+ waiting: "board.state.waiting",
1924
+ attention: "board.state.attention",
1925
+ running: "board.state.running",
1926
+ unread: "board.state.unread",
1927
+ idle: "board.state.idle",
1928
+ empty: "board.state.empty",
1929
+ unknown: "board.state.unknown",
1930
+ none: "board.state.none"
890
1931
  };
891
1932
  function BoardSlot({ slot, onOpenSession, labels, t }) {
892
- const stateLabel = STATE_LABELS[slot.state] ?? slot.state;
1933
+ const stateKey = STATE_LABEL_KEYS[slot.state];
1934
+ const stateLabel = stateKey === void 0 ? slot.state : t(stateKey);
893
1935
  const name = slotDisplayName(slot.name, labels, t);
894
1936
  return (0, import_react2.createElement)(
895
1937
  "button",
896
1938
  {
897
1939
  type: "button",
898
1940
  className: "dsh-leader-agent-board-slot",
899
- title: `${name}\uFF1A${stateLabel}`,
1941
+ title: t("board.slot.title", { name, state: stateLabel }),
900
1942
  onClick: (event) => {
901
1943
  event.stopPropagation();
902
1944
  onOpenSession(slot.sessionId);
@@ -965,12 +2007,12 @@ function BoardCardView({ card, states, now, onOpenDetail, onOpenSession, slotLab
965
2007
  { className: "dsh-leader-agent-board-signal-slot" },
966
2008
  (0, import_react2.createElement)("span", {
967
2009
  className: `dsh-leader-agent-board-signal dsh-leader-agent-board-signal-${signal}${hollow ? " dsh-leader-agent-board-signal-hollow" : ""}`,
968
- title: STATE_LABELS[signal] ?? signal
2010
+ title: STATE_LABEL_KEYS[signal] === void 0 ? signal : t(STATE_LABEL_KEYS[signal])
969
2011
  })
970
2012
  )
971
2013
  ),
972
2014
  (0, import_react2.createElement)("span", { className: "dsh-leader-agent-board-card-title", title: card.title }, card.title ?? ""),
973
- links.length > 0 ? (0, import_react2.createElement)(BoardLinks, { links, onOpenDetail: (anchor) => onOpenDetail(card, anchor) }) : null,
2015
+ links.length > 0 ? (0, import_react2.createElement)(BoardLinks, { links, onOpenDetail: (anchor) => onOpenDetail(card, anchor), t }) : null,
974
2016
  slots.length > 0 ? (0, import_react2.createElement)(
975
2017
  "div",
976
2018
  { className: "dsh-leader-agent-board-card-slots" },
@@ -1332,11 +2374,10 @@ function ModalShell({
1332
2374
  }
1333
2375
 
1334
2376
  // src/client/card-detail-view.js
1335
- var DETAIL_SPEC_EMPTY = "\u8FD9\u5F20\u5361\u8FD8\u6CA1\u6709\u5199\u8BF4\u660E\u3002";
1336
- function statusLabel(status) {
1337
- if (status === "done") return "\u5DF2\u5B8C\u6210";
1338
- if (status === "archived") return "\u5DF2\u5F52\u6863";
1339
- return "\u8FDB\u884C\u4E2D";
2377
+ function statusLabel(status, t) {
2378
+ if (status === "done") return t("card.status.done");
2379
+ if (status === "archived") return t("card.status.archived");
2380
+ return t("card.status.active");
1340
2381
  }
1341
2382
  function detailSections(card) {
1342
2383
  const spec = typeof card?.spec === "string" && card.spec !== "" ? card.spec : null;
@@ -1351,14 +2392,155 @@ function canEditCardLinks(card) {
1351
2392
  function canDeleteCard(card) {
1352
2393
  return typeof card?.id === "string" && card.id !== "";
1353
2394
  }
1354
- function describeCardRemoval(card) {
1355
- const number = card?.number ?? "?";
1356
- const title = card?.title ?? "";
1357
- return `\u5C06\u5220\u9664\u5361\u7247 #${number}\u300C${title}\u300D\u3002\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\uFF0C\u7F16\u53F7\u4E0D\u4F1A\u518D\u5206\u914D\uFF0C\u5361\u7247\u4E0A\u7684\u69FD\u4F4D\u7ED1\u5B9A\u4F1A\u4E00\u5E76\u89E3\u9664\u3002`;
2395
+ function describeCardRemoval(card, t) {
2396
+ return t("card.detail.remove", { number: card?.number ?? "?", title: card?.title ?? "" });
1358
2397
  }
1359
2398
 
1360
2399
  // src/client/card-links-editor.js
1361
2400
  var import_react4 = require("react");
2401
+
2402
+ // src/shared/projects.js
2403
+ var PROJECT_REMOTE_SERVICE_KEY = "dsh-leader-agentProjects";
2404
+ var PROJECT_REMOTE_NAMESPACE = "projects";
2405
+ var MAX_PROJECT_NAME_LENGTH = 200;
2406
+ var PROJECT_REMOTE_METHODS = Object.freeze({
2407
+ list: Object.freeze({}),
2408
+ create: Object.freeze({ directory: "string", name: "string" }),
2409
+ deleteProject: Object.freeze({ id: "string" }),
2410
+ rename: Object.freeze({ id: "string", name: "string" }),
2411
+ reorder: Object.freeze({ id: "string", beforeId: "string" }),
2412
+ replaceLeader: Object.freeze({ id: "string" }),
2413
+ sessionsByProject: Object.freeze({}),
2414
+ resolveProject: Object.freeze({ sessionId: "string" }),
2415
+ boardCards: Object.freeze({ projectId: "string" }),
2416
+ projectSlots: Object.freeze({ projectId: "string" }),
2417
+ detachSession: Object.freeze({ sessionId: "string" }),
2418
+ updateCardLinks: Object.freeze({ id: "string", links: "links" }),
2419
+ deleteCard: Object.freeze({ id: "string" })
2420
+ });
2421
+
2422
+ // src/client/project-remote.js
2423
+ function stringCodec() {
2424
+ return {
2425
+ mode: "strict",
2426
+ typeSymbol: "string",
2427
+ create: () => ({
2428
+ parse: (value) => {
2429
+ if (typeof value !== "string") throw new TypeError(`\u671F\u671B\u5B57\u7B26\u4E32\uFF0C\u6536\u5230 ${typeof value}`);
2430
+ return value;
2431
+ }
2432
+ })
2433
+ };
2434
+ }
2435
+ function linksCodec() {
2436
+ return {
2437
+ mode: "strict",
2438
+ typeSymbol: "array",
2439
+ create: () => ({
2440
+ parse: (value) => {
2441
+ if (!Array.isArray(value)) throw new TypeError(`\u671F\u671B\u94FE\u63A5\u6570\u7EC4\uFF0C\u6536\u5230 ${typeof value}`);
2442
+ return value;
2443
+ }
2444
+ })
2445
+ };
2446
+ }
2447
+ var CODEC_FACTORIES = Object.assign(/* @__PURE__ */ Object.create(null), { string: stringCodec, links: linksCodec });
2448
+ function codecFor(type) {
2449
+ return CODEC_FACTORIES[type]();
2450
+ }
2451
+ function buildDescriptor(method) {
2452
+ const parameters = Object.entries(PROJECT_REMOTE_METHODS[method]).map(([name, type]) => ({
2453
+ name,
2454
+ wire: name,
2455
+ source: "json",
2456
+ codec: codecFor(type)
2457
+ }));
2458
+ return {
2459
+ id: `dsh-leader-agent:${PROJECT_REMOTE_NAMESPACE}/${method}`,
2460
+ service: PROJECT_REMOTE_SERVICE_KEY,
2461
+ namespace: PROJECT_REMOTE_NAMESPACE,
2462
+ method,
2463
+ invocation: { kind: "direct" },
2464
+ parameters,
2465
+ result: { mode: "src-json" }
2466
+ };
2467
+ }
2468
+ var PROJECT_REMOTE_CONTRIBUTION = Object.freeze({
2469
+ package: "dsh-leader-agent",
2470
+ descriptors: Object.freeze(
2471
+ Object.keys(PROJECT_REMOTE_METHODS).map((method) => Object.freeze(buildDescriptor(method)))
2472
+ )
2473
+ });
2474
+ var NAMESPACE_SERVICE_KEY = `remote.${PROJECT_REMOTE_NAMESPACE}`;
2475
+ var readyListeners = /* @__PURE__ */ new Set();
2476
+ var ready = false;
2477
+ var ProjectRemoteError = class extends Error {
2478
+ /**
2479
+ * @param {'remote-missing' | 'namespace-missing' | 'call-failed'} code - 错误码
2480
+ * @param {{ method?: string, hostCode?: string, detail?: string }} [details] - 调用上下文
2481
+ */
2482
+ constructor(code, { method, hostCode, detail } = {}) {
2483
+ const context = [method, hostCode].filter((part) => typeof part === "string" && part !== "").join(" / ");
2484
+ super(context === "" ? code : `${code} (${context})`);
2485
+ this.name = "ProjectRemoteError";
2486
+ this.code = code;
2487
+ this.method = method;
2488
+ this.hostCode = hostCode;
2489
+ this.detail = typeof detail === "string" ? detail : "";
2490
+ }
2491
+ };
2492
+ function isProjectRemoteReady() {
2493
+ return ready;
2494
+ }
2495
+ function onProjectRemoteReady(listener) {
2496
+ readyListeners.add(listener);
2497
+ if (ready) queueMicrotask(listener);
2498
+ return () => readyListeners.delete(listener);
2499
+ }
2500
+ function notifyReady() {
2501
+ for (const listener of readyListeners) listener();
2502
+ }
2503
+ async function mountProjectRemote(ctx) {
2504
+ const remote = ctx.get("remote");
2505
+ if (remote === void 0) throw new ProjectRemoteError("remote-missing");
2506
+ await remote.$mount(PROJECT_REMOTE_CONTRIBUTION);
2507
+ ready = true;
2508
+ notifyReady();
2509
+ }
2510
+ async function callProjectRemote(ctx, method, args = []) {
2511
+ const namespace = ctx.get(NAMESPACE_SERVICE_KEY);
2512
+ if (namespace === void 0) throw new ProjectRemoteError("namespace-missing");
2513
+ const result = await namespace[method](...args);
2514
+ if (!result.ok) {
2515
+ throw new ProjectRemoteError("call-failed", {
2516
+ method,
2517
+ hostCode: result.error?.code ?? "unknown",
2518
+ // 宿主的业务原因(可能仍是宿主语言)原样保留,映射层只负责包前缀。
2519
+ detail: typeof result.error?.message === "string" ? result.error.message : ""
2520
+ });
2521
+ }
2522
+ return result.value;
2523
+ }
2524
+ function projectRemoteErrorText(error, t, fallbackKey) {
2525
+ if (error instanceof ProjectRemoteError) {
2526
+ if (error.code === "remote-missing") return t("project.remoteNotReady");
2527
+ if (error.code === "namespace-missing") return t("project.error.namespaceMissing");
2528
+ const technical = [error.method, error.hostCode].filter((part) => typeof part === "string" && part !== "").join(" / ");
2529
+ const message = technical === "" ? error.detail : error.detail === "" ? technical : `${error.detail} (${technical})`;
2530
+ return t(fallbackKey, { message });
2531
+ }
2532
+ return t(fallbackKey, { message: error instanceof Error ? error.message : String(error) });
2533
+ }
2534
+
2535
+ // src/client/card-links-editor.js
2536
+ var LINK_ERROR_KEYS = Object.freeze({
2537
+ notArray: "card.links.error.notArray",
2538
+ entryNotObject: "card.links.error.entryNotObject",
2539
+ fieldNotString: "card.links.error.fieldNotString",
2540
+ labelMissingUrl: "card.links.error.labelMissingUrl",
2541
+ labelMissingPurpose: "card.links.error.labelMissingPurpose",
2542
+ invalidUrl: "card.links.error.invalidUrl"
2543
+ });
1362
2544
  var draftSequence = 0;
1363
2545
  function nextDraftKey() {
1364
2546
  draftSequence += 1;
@@ -1382,7 +2564,7 @@ function toDrafts(links) {
1382
2564
  function isSubmitKey(event) {
1383
2565
  return event.key === "Enter" && event.nativeEvent?.isComposing !== true && event.nativeEvent?.keyCode !== 229;
1384
2566
  }
1385
- function CardLinksEditor({ card, onSave, onCancel }) {
2567
+ function CardLinksEditor({ card, onSave, onCancel, t }) {
1386
2568
  const [drafts, setDrafts] = (0, import_react4.useState)(() => toDrafts(card?.links));
1387
2569
  const [error, setError] = (0, import_react4.useState)("");
1388
2570
  const [saving, setSaving] = (0, import_react4.useState)(false);
@@ -1420,7 +2602,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
1420
2602
  if (saving) return;
1421
2603
  const normalized = normalizeLinkDrafts(drafts.map(({ key: _key, ...draft }) => draft));
1422
2604
  if (normalized.error !== void 0) {
1423
- setError(normalized.error);
2605
+ setError(t(LINK_ERROR_KEYS[normalized.error.code], normalized.error.params));
1424
2606
  return;
1425
2607
  }
1426
2608
  setError("");
@@ -1431,7 +2613,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
1431
2613
  try {
1432
2614
  await onSave(normalized.links);
1433
2615
  } catch (cause) {
1434
- setError(`\u4FDD\u5B58\u94FE\u63A5\u5931\u8D25\uFF1A${cause instanceof Error ? cause.message : String(cause)}`);
2616
+ setError(projectRemoteErrorText(cause, t, "card.links.saveFailed"));
1435
2617
  restoreFocus.current = true;
1436
2618
  } finally {
1437
2619
  setSaving(false);
@@ -1443,7 +2625,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
1443
2625
  drafts.length === 0 ? (0, import_react4.createElement)(
1444
2626
  "p",
1445
2627
  { className: "dsh-leader-agent-link-editor-empty" },
1446
- "\u8FD9\u5F20\u5361\u8FD8\u6CA1\u6709\u6302\u94FE\u63A5\u3002"
2628
+ t("card.links.empty")
1447
2629
  ) : drafts.map((draft, index) => (0, import_react4.createElement)(
1448
2630
  "div",
1449
2631
  { key: draft.key, className: "dsh-leader-agent-link-editor-row" },
@@ -1454,8 +2636,8 @@ function CardLinksEditor({ card, onSave, onCancel }) {
1454
2636
  type: "text",
1455
2637
  className: "dsh-leader-agent-link-editor-label",
1456
2638
  value: draft.label,
1457
- placeholder: "\u6807\u7B7E",
1458
- "aria-label": "\u94FE\u63A5\u6807\u7B7E",
2639
+ placeholder: t("card.links.label"),
2640
+ "aria-label": t("card.links.labelAria"),
1459
2641
  ...index === 0 ? { "data-modal-autofocus": "" } : {},
1460
2642
  disabled: saving,
1461
2643
  onChange: (event) => update(draft.key, "label", event.target.value),
@@ -1468,7 +2650,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
1468
2650
  className: "dsh-leader-agent-link-editor-url",
1469
2651
  value: draft.url,
1470
2652
  placeholder: "https://\u2026",
1471
- "aria-label": "\u94FE\u63A5 URL",
2653
+ "aria-label": t("card.links.urlAria"),
1472
2654
  disabled: saving,
1473
2655
  onChange: (event) => update(draft.key, "url", event.target.value),
1474
2656
  onKeyDown: (event) => {
@@ -1480,8 +2662,8 @@ function CardLinksEditor({ card, onSave, onCancel }) {
1480
2662
  {
1481
2663
  type: "button",
1482
2664
  className: "dsh-leader-agent-link-editor-remove",
1483
- title: "\u79FB\u9664\u94FE\u63A5",
1484
- "aria-label": "\u79FB\u9664\u94FE\u63A5",
2665
+ title: t("card.links.remove"),
2666
+ "aria-label": t("card.links.remove"),
1485
2667
  disabled: saving,
1486
2668
  onClick: () => remove(draft.key)
1487
2669
  },
@@ -1496,13 +2678,13 @@ function CardLinksEditor({ card, onSave, onCancel }) {
1496
2678
  disabled: saving,
1497
2679
  onClick: () => update(draft.key, "purpose", "")
1498
2680
  },
1499
- "\u6DFB\u52A0\u7528\u9014"
2681
+ t("card.links.addPurpose")
1500
2682
  ) : (0, import_react4.createElement)("input", {
1501
2683
  type: "text",
1502
2684
  className: "dsh-leader-agent-link-editor-purpose",
1503
2685
  value: draft.purpose,
1504
- placeholder: "\u7528\u9014\uFF08\u53EF\u9009\uFF09",
1505
- "aria-label": "\u94FE\u63A5\u7528\u9014",
2686
+ placeholder: t("card.links.purpose"),
2687
+ "aria-label": t("card.links.purposeAria"),
1506
2688
  disabled: saving,
1507
2689
  onChange: (event) => update(draft.key, "purpose", event.target.value),
1508
2690
  onKeyDown: (event) => {
@@ -1518,7 +2700,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
1518
2700
  disabled: saving,
1519
2701
  onClick: add
1520
2702
  },
1521
- "+ \u6DFB\u52A0\u94FE\u63A5"
2703
+ t("card.links.add")
1522
2704
  ),
1523
2705
  error === "" ? null : (0, import_react4.createElement)("div", { className: "dsh-leader-agent-link-editor-error", role: "alert" }, error),
1524
2706
  (0, import_react4.createElement)(
@@ -1532,7 +2714,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
1532
2714
  disabled: saving,
1533
2715
  onClick: onCancel
1534
2716
  },
1535
- "\u53D6\u6D88"
2717
+ t("common.cancel")
1536
2718
  ),
1537
2719
  (0, import_react4.createElement)(
1538
2720
  "button",
@@ -1544,7 +2726,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
1544
2726
  void submit();
1545
2727
  }
1546
2728
  },
1547
- saving ? "\u4FDD\u5B58\u4E2D\u2026" : "\u4FDD\u5B58"
2729
+ saving ? t("common.saving") : t("common.save")
1548
2730
  )
1549
2731
  )
1550
2732
  );
@@ -1553,17 +2735,69 @@ function CardLinksEditor({ card, onSave, onCancel }) {
1553
2735
  // src/client/markdown.js
1554
2736
  var import_react5 = require("react");
1555
2737
  var import_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
1556
- var MARKDOWN_LABELS = {
1557
- code: {
1558
- copyLabel: "\u590D\u5236",
1559
- copiedLabel: "\u5DF2\u590D\u5236",
1560
- toolbarLabels: { codeLabel: "\u4EE3\u7801", wrapLabel: "\u6362\u884C", unwrapLabel: "\u53D6\u6D88\u6362\u884C" }
1561
- },
1562
- footnotes: "\u811A\u6CE8"
1563
- };
1564
- function Markdown({ source = "", variant = "compact" }) {
2738
+ var LABEL_CACHE = /* @__PURE__ */ new Map();
2739
+ function markdownLabels(t) {
2740
+ const copyLabel = t("markdown.copy");
2741
+ const copiedLabel = t("markdown.copied");
2742
+ const codeLabel = t("markdown.code");
2743
+ const wrapLabel = t("markdown.wrap");
2744
+ const unwrapLabel = t("markdown.unwrap");
2745
+ const footnotes = t("markdown.footnotes");
2746
+ const key = [copyLabel, copiedLabel, codeLabel, wrapLabel, unwrapLabel, footnotes].join("\0");
2747
+ const cached = LABEL_CACHE.get(key);
2748
+ if (cached !== void 0) return cached;
2749
+ const labels = Object.freeze({
2750
+ code: Object.freeze({
2751
+ copyLabel,
2752
+ copiedLabel,
2753
+ toolbarLabels: Object.freeze({ codeLabel, wrapLabel, unwrapLabel })
2754
+ }),
2755
+ footnotes
2756
+ });
2757
+ LABEL_CACHE.set(key, labels);
2758
+ return labels;
2759
+ }
2760
+ function Markdown({ source = "", variant = "compact", t }) {
1565
2761
  if (typeof source !== "string" || source === "") return null;
1566
- return (0, import_react5.createElement)(import_dsh_client_ui_primitives.MarkdownText, { text: source, labels: MARKDOWN_LABELS, variant });
2762
+ return (0, import_react5.createElement)(import_dsh_client_ui_primitives.MarkdownText, { text: source, labels: markdownLabels(t), variant });
2763
+ }
2764
+
2765
+ // src/client/signal-styles.js
2766
+ var SIGNAL_PULSE_ANIMATION = "dsh-leader-agent-signal-pulse";
2767
+ function signalStyleText(prefix) {
2768
+ return `
2769
+ .${prefix} {
2770
+ display: inline-block;
2771
+ box-sizing: border-box;
2772
+ width: 8px;
2773
+ height: 8px;
2774
+ border-radius: 50%;
2775
+ corner-shape: round;
2776
+ --${prefix}-tone: var(--dsw-alias-label-tertiary);
2777
+ background: var(--${prefix}-tone);
2778
+ opacity: 0.4;
2779
+ }
2780
+ .${prefix}-running {
2781
+ --${prefix}-tone: var(--dsw-alias-state-warn-primary);
2782
+ opacity: 1;
2783
+ animation: ${SIGNAL_PULSE_ANIMATION} 1.6s ease-in-out infinite;
2784
+ }
2785
+ .${prefix}-unread {
2786
+ --${prefix}-tone: var(--dsw-static-blue-500);
2787
+ opacity: 1;
2788
+ }
2789
+ .${prefix}-idle {
2790
+ --${prefix}-tone: var(--dsw-alias-label-tertiary);
2791
+ opacity: 0.55;
2792
+ }
2793
+ @keyframes ${SIGNAL_PULSE_ANIMATION} {
2794
+ 0%, 100% { opacity: 1; }
2795
+ 50% { opacity: 0.35; }
2796
+ }
2797
+ @media (prefers-reduced-motion: reduce) {
2798
+ .${prefix}-running { animation: none; }
2799
+ }
2800
+ `;
1567
2801
  }
1568
2802
 
1569
2803
  // src/client/board-styles.js
@@ -1659,52 +2893,26 @@ var STYLE_TEXT2 = `
1659
2893
  /* \u56FE\u5F62\u70B9\u7684\u5F31\u5316\u6CBF\u7528 alpha\uFF1A\u8FD9\u91CC\u6CA1\u6709\u300C\u6BD4 tertiary \u66F4\u6D45\u300D\u7684 token \u6863\uFF0C\u800C\u70B9\u8981\u7684\u662F
1660
2894
  \u9762\u79EF\u4E0A\u7684\u9000\u8BA9\u800C\u4E0D\u662F\u8272\u76F8\u7684\u8BED\u4E49\u3002\u6587\u5B57\u7C7B\u5F31\u5316\u4E00\u5F8B\u6362\u6863\u4E0D\u53E0 alpha\uFF08\u7F16\u53F7/\u65F6\u95F4\u7528
1661
2895
  label-caption\u3001\u6298\u53E0\u5F00\u5173\u7528 label-secondary\uFF09\uFF0C\u4E24\u6761\u754C\u7EBF\u4E92\u4E0D\u8D8A\u754C\u3002
1662
- --dsh-leader-agent-signal-tone \u540C\u65F6\u4F9B\u5B9E\u5FC3\u4E0E\u7A7A\u5FC3\u4F7F\u7528\uFF1A\u7A7A\u5FC3\u706F\u53EA\u628A\u586B\u5145\u6362\u6210
2896
+ --dsh-leader-agent-board-signal-tone \u540C\u65F6\u4F9B\u5B9E\u5FC3\u4E0E\u7A7A\u5FC3\u4F7F\u7528\uFF1A\u7A7A\u5FC3\u706F\u53EA\u628A\u586B\u5145\u6362\u6210
1663
2897
  1px \u63CF\u8FB9\uFF0C\u8272\u76F8\u4E0D\u52A8\u2014\u2014\u505C\u6EDE\u662F\u5F62\u72B6\u53D8\u5316\uFF0C\u4E0D\u662F\u53E6\u4E00\u6863\u72B6\u6001\u8272 */
1664
- .dsh-leader-agent-board-signal {
1665
- display: inline-block;
1666
- box-sizing: border-box;
1667
- width: 8px;
1668
- height: 8px;
1669
- border-radius: 50%;
1670
- corner-shape: round;
1671
- --dsh-leader-agent-signal-tone: var(--dsw-alias-label-tertiary);
1672
- background: var(--dsh-leader-agent-signal-tone);
1673
- opacity: 0.4;
1674
- }
2898
+ ${signalStyleText("dsh-leader-agent-board-signal")}
1675
2899
 
1676
2900
  /* \u7B49\u4F60\u8F93\u5165\u4E0E\u672A\u8BFB\u540C\u8272\u4E0D\u540C\u52A8\u6548\uFF1A\u90FD\u5728\u7B49\u4F60\u52A8\u4F5C\uFF0C\u4F46\u300C\u6709\u4EBA\u5728\u7B49\u300D\u4E0E\u300C\u6709\u7ED3\u679C\u6CA1\u770B\u300D\u4E0D\u540C */
1677
2901
  .dsh-leader-agent-board-signal-waiting {
1678
- --dsh-leader-agent-signal-tone: var(--dsw-static-blue-500);
1679
- opacity: 1;
1680
- animation: dsh-leader-agent-board-pulse 1.6s ease-in-out infinite;
1681
- }
1682
-
1683
- .dsh-leader-agent-board-signal-unread {
1684
- --dsh-leader-agent-signal-tone: var(--dsw-static-blue-500);
2902
+ --dsh-leader-agent-board-signal-tone: var(--dsw-static-blue-500);
1685
2903
  opacity: 1;
1686
- }
1687
-
1688
- .dsh-leader-agent-board-signal-running {
1689
- --dsh-leader-agent-signal-tone: var(--dsw-alias-state-warn-primary);
1690
- opacity: 1;
1691
- animation: dsh-leader-agent-board-pulse 1.6s ease-in-out infinite;
2904
+ animation: ${SIGNAL_PULSE_ANIMATION} 1.6s ease-in-out infinite;
1692
2905
  }
1693
2906
 
1694
2907
  .dsh-leader-agent-board-signal-attention {
1695
- --dsh-leader-agent-signal-tone: var(--dsw-alias-state-error-primary);
2908
+ --dsh-leader-agent-board-signal-tone: var(--dsw-alias-state-error-primary);
1696
2909
  opacity: 1;
1697
2910
  }
1698
2911
 
1699
- .dsh-leader-agent-board-signal-idle {
1700
- --dsh-leader-agent-signal-tone: var(--dsw-alias-label-tertiary);
1701
- opacity: 0.55;
1702
- }
1703
-
1704
2912
  /* \u672A\u6D3E\u5DE5\u4E0E\u72B6\u6001\u672A\u77E5\u5171\u7528\u865A\u7EBF\u5708\uFF1A\u4E24\u8005\u90FD\u4E0D\u8C0E\u79F0\u7A7A\u95F2\uFF0C\u5F62\u72B6\u4E0A\u4E0E\u5B9E\u5FC3\u6863\u533A\u5206 */
1705
2913
  .dsh-leader-agent-board-signal-unknown,
1706
2914
  .dsh-leader-agent-board-signal-none {
1707
- --dsh-leader-agent-signal-tone: var(--dsw-alias-label-tertiary);
2915
+ --dsh-leader-agent-board-signal-tone: var(--dsw-alias-label-tertiary);
1708
2916
  background: transparent;
1709
2917
  border: 1px dashed var(--dsw-alias-label-tertiary);
1710
2918
  opacity: 0.55;
@@ -1714,16 +2922,10 @@ var STYLE_TEXT2 = `
1714
2922
  \u4FE1\u606F\uFF1B\u4E0E unknown/none \u7684\u865A\u7EBF\u533A\u5206\u5F00\u2014\u2014\u505C\u6EDE\u662F\u786E\u5B9A\u7684\u7A7A\u95F2\uFF0C\u4E0D\u662F\u4E0D\u53EF\u77E5 */
1715
2923
  .dsh-leader-agent-board-signal-hollow {
1716
2924
  background: transparent;
1717
- border: 1px solid var(--dsh-leader-agent-signal-tone);
1718
- }
1719
-
1720
- @keyframes dsh-leader-agent-board-pulse {
1721
- 0%, 100% { opacity: 1; }
1722
- 50% { opacity: 0.35; }
2925
+ border: 1px solid var(--dsh-leader-agent-board-signal-tone);
1723
2926
  }
1724
2927
 
1725
2928
  @media (prefers-reduced-motion: reduce) {
1726
- .dsh-leader-agent-board-signal-running,
1727
2929
  .dsh-leader-agent-board-signal-waiting { animation: none; }
1728
2930
  }
1729
2931
 
@@ -1967,7 +3169,7 @@ var STYLE_TEXT2 = `
1967
3169
  .dsh-leader-agent-board-slot-dot-waiting {
1968
3170
  background: var(--dsw-static-blue-500);
1969
3171
  opacity: 1;
1970
- animation: dsh-leader-agent-board-pulse 1.6s ease-in-out infinite;
3172
+ animation: ${SIGNAL_PULSE_ANIMATION} 1.6s ease-in-out infinite;
1971
3173
  }
1972
3174
 
1973
3175
  .dsh-leader-agent-board-slot-dot-unread {
@@ -1978,7 +3180,7 @@ var STYLE_TEXT2 = `
1978
3180
  .dsh-leader-agent-board-slot-dot-running {
1979
3181
  background: var(--dsw-alias-state-warn-primary);
1980
3182
  opacity: 1;
1981
- animation: dsh-leader-agent-board-pulse 1.6s ease-in-out infinite;
3183
+ animation: ${SIGNAL_PULSE_ANIMATION} 1.6s ease-in-out infinite;
1982
3184
  }
1983
3185
 
1984
3186
  .dsh-leader-agent-board-slot-dot-attention {
@@ -2750,7 +3952,7 @@ function ensureBoardStyles() {
2750
3952
  }
2751
3953
 
2752
3954
  // src/client/card-detail.js
2753
- function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFocus = null }) {
3955
+ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFocus = null, t }) {
2754
3956
  const [editing, setEditing] = (0, import_react6.useState)(false);
2755
3957
  const editButton = (0, import_react6.useRef)(null);
2756
3958
  const wasEditing = (0, import_react6.useRef)(false);
@@ -2780,7 +3982,7 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
2780
3982
  open: true,
2781
3983
  onClose,
2782
3984
  title: card?.title ?? "",
2783
- closeLabel: "\u5173\u95ED",
3985
+ closeLabel: t("common.close"),
2784
3986
  headless: true,
2785
3987
  wide: true,
2786
3988
  restoreFocus,
@@ -2796,7 +3998,7 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
2796
3998
  {
2797
3999
  type: "button",
2798
4000
  className: "dsh-leader-agent-card-detail-close",
2799
- "aria-label": "\u5173\u95ED",
4001
+ "aria-label": t("common.close"),
2800
4002
  onClick: onClose
2801
4003
  },
2802
4004
  productIcon("close-outline", { size: 16 })
@@ -2821,7 +4023,7 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
2821
4023
  {
2822
4024
  className: `dsh-leader-agent-card-detail-status${done ? " dsh-leader-agent-card-detail-status-done" : ""}`
2823
4025
  },
2824
- statusLabel(card?.status)
4026
+ statusLabel(card?.status, t)
2825
4027
  )
2826
4028
  ),
2827
4029
  (0, import_react6.createElement)(
@@ -2830,20 +4032,20 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
2830
4032
  sections.spec !== null ? (0, import_react6.createElement)(
2831
4033
  "section",
2832
4034
  { className: "dsh-leader-agent-card-detail-section" },
2833
- (0, import_react6.createElement)("div", { className: "dsh-leader-agent-card-detail-section-title" }, "\u8BF4\u660E"),
4035
+ (0, import_react6.createElement)("div", { className: "dsh-leader-agent-card-detail-section-title" }, t("card.detail.spec")),
2834
4036
  (0, import_react6.createElement)(
2835
4037
  "div",
2836
4038
  { className: "dsh-leader-agent-card-detail-text" },
2837
- (0, import_react6.createElement)(Markdown, { source: sections.spec })
4039
+ (0, import_react6.createElement)(Markdown, { source: sections.spec, t })
2838
4040
  )
2839
- ) : (0, import_react6.createElement)("div", { className: "dsh-leader-agent-card-detail-muted" }, DETAIL_SPEC_EMPTY),
4041
+ ) : (0, import_react6.createElement)("div", { className: "dsh-leader-agent-card-detail-muted" }, t("card.detail.empty")),
2840
4042
  sections.links.length > 0 || editable ? (0, import_react6.createElement)(
2841
4043
  "section",
2842
4044
  { className: "dsh-leader-agent-card-detail-section" },
2843
4045
  (0, import_react6.createElement)(
2844
4046
  "div",
2845
4047
  { className: "dsh-leader-agent-card-detail-section-head" },
2846
- (0, import_react6.createElement)("div", { className: "dsh-leader-agent-card-detail-section-title" }, "\u94FE\u63A5"),
4048
+ (0, import_react6.createElement)("div", { className: "dsh-leader-agent-card-detail-section-title" }, t("card.detail.links")),
2847
4049
  editable && !editing ? (0, import_react6.createElement)(
2848
4050
  "button",
2849
4051
  {
@@ -2854,7 +4056,7 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
2854
4056
  setEditing(true);
2855
4057
  }
2856
4058
  },
2857
- "\u7F16\u8F91\u94FE\u63A5"
4059
+ t("card.detail.editLinks")
2858
4060
  ) : null
2859
4061
  ),
2860
4062
  editing ? (0, import_react6.createElement)(CardLinksEditor, {
@@ -2862,7 +4064,8 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
2862
4064
  onSave: saveLinks,
2863
4065
  onCancel: () => {
2864
4066
  setEditing(false);
2865
- }
4067
+ },
4068
+ t
2866
4069
  }) : (0, import_react6.createElement)(
2867
4070
  "div",
2868
4071
  { className: "dsh-leader-agent-card-detail-links" },
@@ -2912,7 +4115,7 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
2912
4115
  onClick: onDelete
2913
4116
  },
2914
4117
  productIcon("trash-outline", { size: 14 }),
2915
- "\u5220\u9664\u5361\u7247"
4118
+ t("card.detail.delete")
2916
4119
  )
2917
4120
  ) : null
2918
4121
  )
@@ -2960,22 +4163,56 @@ function ConfirmDialog({
2960
4163
  });
2961
4164
  }
2962
4165
 
4166
+ // src/client/board-foreground.js
4167
+ var foregroundSessionId;
4168
+ function noteBoardForeground(sessionId) {
4169
+ foregroundSessionId = sessionId;
4170
+ }
4171
+ function clearBoardForeground(sessionId) {
4172
+ if (foregroundSessionId === sessionId) foregroundSessionId = void 0;
4173
+ }
4174
+ function lastBoardForegroundSession() {
4175
+ return foregroundSessionId;
4176
+ }
4177
+
2963
4178
  // src/client/board.js
2964
4179
  var PROJECT_RECHECK_MS = 3e4;
4180
+ var BOARD_CACHE = /* @__PURE__ */ new Map();
4181
+ function cachedBoard(projectId) {
4182
+ return BOARD_CACHE.get(projectId);
4183
+ }
4184
+ function rememberBoard(projectId, project, cards) {
4185
+ BOARD_CACHE.set(projectId, { project, cards });
4186
+ }
2965
4187
  function BoardBody(props) {
2966
- const { sessionId, getSessions, getUiWorkspace, useSessionStatus, callRemote, t } = props;
4188
+ const { sessionId, getSessions, getUiWorkspace, useSessionStatus, useTabInfo, getSidebarRight, callRemote, t } = props;
4189
+ const useInfo = typeof useTabInfo === "function" ? useTabInfo : useNoTabInfo;
4190
+ const tabInfo = useInfo();
4191
+ const visible = tabInfo?.tab?.visible !== false;
4192
+ const mountedSessionId = getSidebarRight?.()?.mounted?.getSnapshot?.();
4193
+ (0, import_react8.useEffect)(() => {
4194
+ if (visible) noteBoardForeground(sessionId);
4195
+ else if (mountedSessionId === sessionId) clearBoardForeground(sessionId);
4196
+ }, [visible, mountedSessionId, sessionId]);
4197
+ const params = tabInfo?.tab?.navigation?.params;
4198
+ const projectHint = typeof params?.projectId === "string" ? params.projectId : void 0;
2967
4199
  return (0, import_react8.createElement)(BoardPanel, {
2968
4200
  sessionId,
2969
4201
  getSessions,
2970
4202
  getUiWorkspace,
2971
4203
  useSessionStatus,
2972
4204
  callRemote,
2973
- t
4205
+ t,
4206
+ visible,
4207
+ projectHint
2974
4208
  });
2975
4209
  }
2976
4210
  function useNoSessionStatus() {
2977
4211
  return void 0;
2978
4212
  }
4213
+ function useNoTabInfo() {
4214
+ return void 0;
4215
+ }
2979
4216
  function sameSlotLabels(left, right) {
2980
4217
  const leftKeys = Object.keys(left);
2981
4218
  const rightKeys = Object.keys(right);
@@ -3090,8 +4327,7 @@ function useSlotStates(cards, getSessions, useSessionStatus, parentSessionId) {
3090
4327
  return merged;
3091
4328
  }, [needed, statuses, snapshots]);
3092
4329
  }
3093
- function BoardEmpty({ allDone, projectName }) {
3094
- const whose = projectName === void 0 ? "\u672C\u9879\u76EE" : `\u300C${projectName}\u300D`;
4330
+ function BoardEmpty({ allDone, projectName, t }) {
3095
4331
  return (0, import_react8.createElement)(
3096
4332
  "div",
3097
4333
  { className: "dsh-leader-agent-board-empty" },
@@ -3105,12 +4341,12 @@ function BoardEmpty({ allDone, projectName }) {
3105
4341
  (0, import_react8.createElement)(
3106
4342
  "div",
3107
4343
  { className: "dsh-leader-agent-board-empty-title" },
3108
- allDone ? "\u5168\u90E8\u5B8C\u6210" : "\u8FD8\u6CA1\u6709\u5361\u7247"
4344
+ allDone ? t("board.empty.doneTitle") : t("board.empty.title")
3109
4345
  ),
3110
4346
  (0, import_react8.createElement)(
3111
4347
  "div",
3112
4348
  { className: "dsh-leader-agent-board-empty-hint" },
3113
- allDone ? `${whose}\u7684\u5361\u7247\u90FD\u5DF2\u5B8C\u6210` : "leader \u8C03\u7528 create_card \u540E\uFF0C\u5361\u7247\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC"
4349
+ allDone ? projectName === void 0 ? t("board.empty.doneHintOwn") : t("board.empty.doneHintNamed", { project: projectName }) : t("board.empty.hint")
3114
4350
  )
3115
4351
  );
3116
4352
  }
@@ -3127,15 +4363,18 @@ function BoardSkeleton() {
3127
4363
  )
3128
4364
  );
3129
4365
  }
3130
- function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus, callRemote, t }) {
3131
- const [project, setProject] = (0, import_react8.useState)(void 0);
3132
- const [resolved, setResolved] = (0, import_react8.useState)(false);
3133
- const [worker, setWorker] = (0, import_react8.useState)(void 0);
3134
- const [cards, setCards] = (0, import_react8.useState)(() => []);
4366
+ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus, callRemote, t, visible, projectHint }) {
4367
+ const cached = projectHint === void 0 ? void 0 : cachedBoard(projectHint);
4368
+ const [project, setProject] = (0, import_react8.useState)(cached?.project);
4369
+ const [resolved, setResolved] = (0, import_react8.useState)(cached !== void 0);
4370
+ const [worker, setWorker] = (0, import_react8.useState)(cached === void 0 ? void 0 : true);
4371
+ const [cards, setCards] = (0, import_react8.useState)(() => cached?.cards ?? []);
3135
4372
  const [projectError, setProjectError] = (0, import_react8.useState)(null);
3136
4373
  const [cardsError, setCardsError] = (0, import_react8.useState)(null);
3137
4374
  const [slotLabels, setSlotLabels] = (0, import_react8.useState)(() => ({}));
3138
- const [loaded, setLoaded] = (0, import_react8.useState)(false);
4375
+ const [loaded, setLoaded] = (0, import_react8.useState)(cached !== void 0);
4376
+ const prefilled = (0, import_react8.useRef)(cached !== void 0);
4377
+ const accessSession = (0, import_react8.useRef)(void 0);
3139
4378
  const [detail, setDetail] = (0, import_react8.useState)(null);
3140
4379
  const [pendingDelete, setPendingDelete] = (0, import_react8.useState)(null);
3141
4380
  const [deleteBusy, setDeleteBusy] = (0, import_react8.useState)(false);
@@ -3152,22 +4391,37 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3152
4391
  setDeleteError("");
3153
4392
  }, [project?.id]);
3154
4393
  (0, import_react8.useEffect)(() => {
4394
+ if (!visible) return void 0;
4395
+ setNow(Date.now());
3155
4396
  const timer = setInterval(() => {
3156
4397
  setNow(Date.now());
3157
4398
  }, 6e4);
3158
4399
  return () => clearInterval(timer);
3159
- }, []);
4400
+ }, [visible]);
4401
+ (0, import_react8.useEffect)(() => {
4402
+ if (visible) return;
4403
+ setDetail(null);
4404
+ setPendingDelete(null);
4405
+ setDeleteError("");
4406
+ }, [visible]);
3160
4407
  (0, import_react8.useEffect)(() => {
4408
+ if (!visible) return void 0;
3161
4409
  let cancelled = false;
4410
+ const sameSession = accessSession.current === sessionId;
4411
+ accessSession.current = sessionId;
4412
+ const keepPrefilled = prefilled.current || sameSession;
4413
+ prefilled.current = false;
3162
4414
  setProjectError(null);
3163
- setResolved(false);
3164
- setCards([]);
3165
- setLoaded(false);
3166
- setWorker(void 0);
3167
- setSlotLabels({});
4415
+ if (!keepPrefilled) {
4416
+ setResolved(false);
4417
+ setCards([]);
4418
+ setLoaded(false);
4419
+ setWorker(void 0);
4420
+ setSlotLabels({});
4421
+ deletedCardIds.current.clear();
4422
+ }
3168
4423
  setPendingDelete(null);
3169
4424
  setDeleteError("");
3170
- deletedCardIds.current.clear();
3171
4425
  const load = () => {
3172
4426
  resolveBoardAccess(callRemote, sessionId).then((access) => {
3173
4427
  if (cancelled) return;
@@ -3186,7 +4440,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3186
4440
  });
3187
4441
  }).catch((cause) => {
3188
4442
  if (cancelled) return;
3189
- setProjectError(`\u8BFB\u53D6\u9879\u76EE\u5931\u8D25\uFF1A${cause instanceof Error ? cause.message : String(cause)}`);
4443
+ setProjectError(projectRemoteErrorText(cause, t, "board.error.project"));
3190
4444
  });
3191
4445
  };
3192
4446
  load();
@@ -3200,8 +4454,9 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3200
4454
  clearInterval(timer);
3201
4455
  window.removeEventListener("focus", onFocus);
3202
4456
  };
3203
- }, [sessionId, callRemote]);
4457
+ }, [sessionId, callRemote, visible, t]);
3204
4458
  (0, import_react8.useEffect)(() => {
4459
+ if (!visible) return void 0;
3205
4460
  if (!isBoardViewable(project, sessionId, worker)) return void 0;
3206
4461
  let cancelled = false;
3207
4462
  const refresh = () => {
@@ -3215,7 +4470,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3215
4470
  setCardsError(null);
3216
4471
  }).catch((cause) => {
3217
4472
  if (cancelled) return;
3218
- setCardsError(`\u8BFB\u53D6\u5361\u7247\u5931\u8D25\uFF1A${cause instanceof Error ? cause.message : String(cause)}`);
4473
+ setCardsError(projectRemoteErrorText(cause, t, "board.error.cards"));
3219
4474
  });
3220
4475
  };
3221
4476
  refresh();
@@ -3229,7 +4484,11 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3229
4484
  clearInterval(timer);
3230
4485
  window.removeEventListener("focus", onFocus);
3231
4486
  };
3232
- }, [project, worker, callRemote, sessionId]);
4487
+ }, [project, worker, callRemote, sessionId, visible, t]);
4488
+ (0, import_react8.useEffect)(() => {
4489
+ if (project === void 0 || !loaded) return;
4490
+ rememberBoard(project.id, project, cards);
4491
+ }, [project, cards, loaded]);
3233
4492
  const cardList = cards;
3234
4493
  const states = useSlotStates(cardList, getSessions, useSessionStatus, sessionId);
3235
4494
  const { active, done } = (0, import_react8.useMemo)(() => ({
@@ -3239,7 +4498,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3239
4498
  ),
3240
4499
  done: sortDoneCards(cardList.filter((card) => card.status === "done"))
3241
4500
  }), [cardList, states]);
3242
- const doneFold = foldDoneCards(done, doneWatermark);
4501
+ const doneFold = foldDoneCards(done, doneWatermark, t);
3243
4502
  const openSession = (0, import_react8.useCallback)((targetSessionId) => {
3244
4503
  const uiWorkspace = getUiWorkspace?.();
3245
4504
  if (uiWorkspace === void 0 || uiWorkspace === null) return;
@@ -3273,7 +4532,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3273
4532
  setDetail((current2) => current2?.card?.id === pendingDelete.id ? null : current2);
3274
4533
  setPendingDelete(null);
3275
4534
  } catch (error) {
3276
- setDeleteError(`\u5220\u9664\u5931\u8D25\uFF1A${error instanceof Error ? error.message : String(error)}`);
4535
+ setDeleteError(projectRemoteErrorText(error, t, "board.error.delete"));
3277
4536
  } finally {
3278
4537
  setDeleteBusy(false);
3279
4538
  }
@@ -3297,12 +4556,12 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3297
4556
  (0, import_react8.createElement)(
3298
4557
  "div",
3299
4558
  { className: "dsh-leader-agent-board-empty-title" },
3300
- "\u5F53\u524D\u4F1A\u8BDD\u4E0D\u5C5E\u4E8E\u4EFB\u4F55\u9879\u76EE"
4559
+ t("board.noProject.title")
3301
4560
  ),
3302
4561
  (0, import_react8.createElement)(
3303
4562
  "div",
3304
4563
  { className: "dsh-leader-agent-board-empty-hint" },
3305
- "\u770B\u677F\u6309\u9879\u76EE\u7EC4\u7EC7\uFF1A\u5728\u9879\u76EE\u4F1A\u8BDD\uFF08leader \u6216 worker\uFF09\u91CC\u6253\u5F00\u5B83\u3002"
4564
+ t("board.noProject.hint")
3306
4565
  )
3307
4566
  ) : (0, import_react8.createElement)(BoardSkeleton)
3308
4567
  );
@@ -3312,6 +4571,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3312
4571
  }
3313
4572
  if (view === "leader-dead" || view === "not-viewable") {
3314
4573
  const leaderDead = view === "leader-dead";
4574
+ const projectName = project?.name;
3315
4575
  return (0, import_react8.createElement)(
3316
4576
  "div",
3317
4577
  { className: "dsh-leader-agent-board-list" },
@@ -3321,12 +4581,12 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3321
4581
  (0, import_react8.createElement)(
3322
4582
  "div",
3323
4583
  { className: "dsh-leader-agent-board-empty-title" },
3324
- leaderDead ? "\u8BE5\u9879\u76EE\u7684 leader \u4F1A\u8BDD\u5DF2\u5931\u6548" : "\u770B\u677F\u53EA\u5728\u9879\u76EE\u4F1A\u8BDD\u4E2D\u6253\u5F00"
4584
+ leaderDead ? t("board.leaderDead.title") : t("board.notProject.title")
3325
4585
  ),
3326
4586
  (0, import_react8.createElement)(
3327
4587
  "div",
3328
4588
  { className: "dsh-leader-agent-board-empty-hint" },
3329
- leaderDead ? "\u8BF7\u5728\u5DE6\u680F\u9879\u76EE\u533A\u5757\u5BF9\u8BE5\u9879\u76EE\u6362\u65B0 Leader\uFF0C\u518D\u6253\u5F00\u770B\u677F\u3002" : `\u8FD9\u662F\u300C${project.name ?? "\u672C\u9879\u76EE"}\u300D\u6240\u5728\u76EE\u5F55\u91CC\u7684\u666E\u901A\u4F1A\u8BDD\uFF1B\u53BB\u8BE5\u9879\u76EE\u7684 leader \u6216 worker \u4F1A\u8BDD\u67E5\u770B\u4EA4\u4ED8\u770B\u677F\u3002`
4589
+ leaderDead ? t("board.leaderDead.hint") : projectName ? t("board.notProject.hint", { project: projectName }) : t("board.notProject.unknown")
3330
4590
  )
3331
4591
  )
3332
4592
  );
@@ -3345,15 +4605,15 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3345
4605
  return (0, import_react8.createElement)(
3346
4606
  "div",
3347
4607
  { className: "dsh-leader-agent-board-list" },
3348
- (0, import_react8.createElement)(BoardEmpty, { allDone: false, projectName: project.name })
4608
+ (0, import_react8.createElement)(BoardEmpty, { allDone: false, projectName: project.name, t })
3349
4609
  );
3350
4610
  }
3351
4611
  const deleteDialog = (0, import_react8.createElement)(ConfirmDialog, {
3352
4612
  open: overlays.pendingDelete !== null,
3353
- title: "\u5220\u9664\u5361\u7247",
3354
- description: overlays.pendingDelete === null ? "" : describeCardRemoval(overlays.pendingDelete),
3355
- confirmLabel: "\u5220\u9664",
3356
- cancelLabel: "\u53D6\u6D88",
4613
+ title: t("board.delete.title"),
4614
+ description: overlays.pendingDelete === null ? "" : describeCardRemoval(overlays.pendingDelete, t),
4615
+ confirmLabel: t("common.delete"),
4616
+ cancelLabel: t("common.cancel"),
3357
4617
  danger: true,
3358
4618
  busy: deleteBusy,
3359
4619
  error: deleteError,
@@ -3382,7 +4642,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3382
4642
  onOpenSession: openSession
3383
4643
  }))
3384
4644
  ) : null,
3385
- active.length === 0 ? (0, import_react8.createElement)(BoardEmpty, { allDone: true, projectName: project.name }) : null,
4645
+ active.length === 0 ? (0, import_react8.createElement)(BoardEmpty, { allDone: true, projectName: project.name, t }) : null,
3386
4646
  done.length > 0 ? (0, import_react8.createElement)(
3387
4647
  "div",
3388
4648
  { className: "dsh-leader-agent-board-done-section" },
@@ -3403,7 +4663,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3403
4663
  },
3404
4664
  productIcon("chevron-right-outline", { size: 14 })
3405
4665
  ),
3406
- "\u5DF2\u5B8C\u6210",
4666
+ t("board.done"),
3407
4667
  (0, import_react8.createElement)("span", { className: "dsh-leader-agent-board-done-count" }, String(done.length))
3408
4668
  ),
3409
4669
  doneOpen ? (0, import_react8.createElement)(
@@ -3436,7 +4696,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3436
4696
  ));
3437
4697
  }
3438
4698
  },
3439
- doneFold.expanded ? "\u6536\u8D77" : doneFold.expandLabel
4699
+ doneFold.expanded ? t("common.collapse") : doneFold.expandLabel
3440
4700
  )
3441
4701
  ) : null
3442
4702
  ) : null
@@ -3449,7 +4709,8 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3449
4709
  callRemote,
3450
4710
  onUpdated: cardUpdated,
3451
4711
  onDelete: requestDelete,
3452
- restoreFocus: overlays.detail.anchor
4712
+ restoreFocus: overlays.detail.anchor,
4713
+ t
3453
4714
  }),
3454
4715
  deleteDialog
3455
4716
  );
@@ -3458,134 +4719,20 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
3458
4719
  // src/client/board-guide-entry.js
3459
4720
  var import_react9 = require("react");
3460
4721
 
3461
- // src/shared/projects.js
3462
- var PROJECT_REMOTE_SERVICE_KEY = "dsh-leader-agentProjects";
3463
- var PROJECT_REMOTE_NAMESPACE = "projects";
3464
- var MAX_PROJECT_NAME_LENGTH = 200;
3465
- var PROJECT_REMOTE_METHODS = Object.freeze({
3466
- list: Object.freeze({}),
3467
- create: Object.freeze({ directory: "string", name: "string" }),
3468
- deleteProject: Object.freeze({ id: "string" }),
3469
- rename: Object.freeze({ id: "string", name: "string" }),
3470
- reorder: Object.freeze({ id: "string", beforeId: "string" }),
3471
- replaceLeader: Object.freeze({ id: "string" }),
3472
- sessionsByProject: Object.freeze({}),
3473
- resolveProject: Object.freeze({ sessionId: "string" }),
3474
- boardCards: Object.freeze({ projectId: "string" }),
3475
- projectSlots: Object.freeze({ projectId: "string" }),
3476
- detachSession: Object.freeze({ sessionId: "string" }),
3477
- updateCardLinks: Object.freeze({ id: "string", links: "links" }),
3478
- deleteCard: Object.freeze({ id: "string" })
3479
- });
3480
-
3481
- // src/client/project-remote.js
3482
- function stringCodec() {
3483
- return {
3484
- mode: "strict",
3485
- typeSymbol: "string",
3486
- create: () => ({
3487
- parse: (value) => {
3488
- if (typeof value !== "string") throw new TypeError(`\u671F\u671B\u5B57\u7B26\u4E32\uFF0C\u6536\u5230 ${typeof value}`);
3489
- return value;
3490
- }
3491
- })
3492
- };
3493
- }
3494
- function linksCodec() {
3495
- return {
3496
- mode: "strict",
3497
- typeSymbol: "array",
3498
- create: () => ({
3499
- parse: (value) => {
3500
- if (!Array.isArray(value)) throw new TypeError(`\u671F\u671B\u94FE\u63A5\u6570\u7EC4\uFF0C\u6536\u5230 ${typeof value}`);
3501
- return value;
3502
- }
3503
- })
3504
- };
4722
+ // src/client/project-changes.js
4723
+ var listeners = /* @__PURE__ */ new Set();
4724
+ function onProjectsChanged(listener) {
4725
+ listeners.add(listener);
4726
+ return () => listeners.delete(listener);
3505
4727
  }
3506
- var CODEC_FACTORIES = Object.assign(/* @__PURE__ */ Object.create(null), { string: stringCodec, links: linksCodec });
3507
- function codecFor(type) {
3508
- return CODEC_FACTORIES[type]();
3509
- }
3510
- function buildDescriptor(method) {
3511
- const parameters = Object.entries(PROJECT_REMOTE_METHODS[method]).map(([name, type]) => ({
3512
- name,
3513
- wire: name,
3514
- source: "json",
3515
- codec: codecFor(type)
3516
- }));
3517
- return {
3518
- id: `dsh-leader-agent:${PROJECT_REMOTE_NAMESPACE}/${method}`,
3519
- service: PROJECT_REMOTE_SERVICE_KEY,
3520
- namespace: PROJECT_REMOTE_NAMESPACE,
3521
- method,
3522
- invocation: { kind: "direct" },
3523
- parameters,
3524
- result: { mode: "src-json" }
3525
- };
3526
- }
3527
- var PROJECT_REMOTE_CONTRIBUTION = Object.freeze({
3528
- package: "dsh-leader-agent",
3529
- descriptors: Object.freeze(
3530
- Object.keys(PROJECT_REMOTE_METHODS).map((method) => Object.freeze(buildDescriptor(method)))
3531
- )
3532
- });
3533
- var NAMESPACE_SERVICE_KEY = `remote.${PROJECT_REMOTE_NAMESPACE}`;
3534
- var readyListeners = /* @__PURE__ */ new Set();
3535
- var ready = false;
3536
- var mountError = "";
3537
- function isProjectRemoteReady() {
3538
- return ready;
3539
- }
3540
- function projectRemoteError() {
3541
- return mountError;
3542
- }
3543
- function reportProjectRemoteError(message) {
3544
- mountError = message;
3545
- notifyReady();
3546
- }
3547
- function onProjectRemoteReady(listener) {
3548
- readyListeners.add(listener);
3549
- if (ready) queueMicrotask(listener);
3550
- return () => readyListeners.delete(listener);
3551
- }
3552
- function notifyReady() {
3553
- for (const listener of readyListeners) listener();
3554
- }
3555
- async function mountProjectRemote(ctx) {
3556
- const remote = ctx.get("remote");
3557
- if (remote === void 0) throw new Error("\u5BBF\u4E3B\u672A\u63D0\u4F9B\u8FDC\u7A0B\u8C03\u7528\u901A\u9053");
3558
- await remote.$mount(PROJECT_REMOTE_CONTRIBUTION);
3559
- ready = true;
3560
- mountError = "";
3561
- notifyReady();
3562
- }
3563
- async function callProjectRemote(ctx, method, args = []) {
3564
- const namespace = ctx.get(NAMESPACE_SERVICE_KEY);
3565
- if (namespace === void 0) throw new Error("\u9879\u76EE\u901A\u9053\u4E0D\u53EF\u7528");
3566
- const result = await namespace[method](...args);
3567
- if (!result.ok) {
3568
- const code = result.error?.code ?? "unknown";
3569
- const reason = typeof result.error?.message === "string" && result.error.message !== "" ? `\uFF1A${result.error.message}` : "";
3570
- throw new Error(`\u9879\u76EE\u901A\u9053\u8C03\u7528\u5931\u8D25\uFF1A${method}\uFF08${code}\uFF09${reason}`);
3571
- }
3572
- return result.value;
3573
- }
3574
-
3575
- // src/client/project-changes.js
3576
- var listeners = /* @__PURE__ */ new Set();
3577
- function onProjectsChanged(listener) {
3578
- listeners.add(listener);
3579
- return () => listeners.delete(listener);
3580
- }
3581
- function notifyProjectsChanged() {
3582
- for (const listener of [...listeners]) {
3583
- try {
3584
- listener();
3585
- } catch (error) {
3586
- console.error("dsh-leader-agent: \u9879\u76EE\u53D8\u66F4\u8BA2\u9605\u56DE\u8C03\u629B\u9519", error);
3587
- }
3588
- }
4728
+ function notifyProjectsChanged() {
4729
+ for (const listener of Array.from(listeners)) {
4730
+ try {
4731
+ listener();
4732
+ } catch (error) {
4733
+ console.error("dsh-leader-agent: \u9879\u76EE\u53D8\u66F4\u8BA2\u9605\u56DE\u8C03\u629B\u9519", error);
4734
+ }
4735
+ }
3589
4736
  }
3590
4737
 
3591
4738
  // src/client/project-board-monitor.js
@@ -3781,24 +4928,24 @@ function basenameOf(path) {
3781
4928
  const index = Math.max(trimmed.lastIndexOf("/"), trimmed.lastIndexOf("\\"));
3782
4929
  return index === -1 ? trimmed : trimmed.slice(index + 1);
3783
4930
  }
3784
- function validateProjectName(name) {
4931
+ function validateProjectName(name, t) {
3785
4932
  if (typeof name !== "string" || name.trim() === "") {
3786
- return { ok: false, error: "\u9879\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A" };
4933
+ return { ok: false, error: t("project.name.empty") };
3787
4934
  }
3788
4935
  if (name.trim().length > MAX_PROJECT_NAME_LENGTH) {
3789
- return { ok: false, error: `\u9879\u76EE\u540D\u8FC7\u957F\uFF08\u4E0A\u9650 ${MAX_PROJECT_NAME_LENGTH} \u5B57\uFF09` };
4936
+ return { ok: false, error: t("project.name.tooLong", { max: MAX_PROJECT_NAME_LENGTH }) };
3790
4937
  }
3791
4938
  return { ok: true, error: "" };
3792
4939
  }
3793
- function planProjectRename(currentName, nextName) {
4940
+ function planProjectRename(currentName, nextName, t) {
3794
4941
  if (nextName === currentName) return { action: "close" };
3795
- const check = validateProjectName(nextName);
4942
+ const check = validateProjectName(nextName, t);
3796
4943
  if (!check.ok) return { action: "keep", error: check.error };
3797
4944
  return { action: "commit", name: nextName };
3798
4945
  }
3799
- function defaultProjectName(directory) {
4946
+ function defaultProjectName(directory, t) {
3800
4947
  const name = basenameOf(directory);
3801
- const check = validateProjectName(name);
4948
+ const check = validateProjectName(name, t);
3802
4949
  return { name, ok: check.ok, error: check.error };
3803
4950
  }
3804
4951
  function isProjectOpenable(project) {
@@ -3891,26 +5038,26 @@ function isArchiveActiveRefusal(reason) {
3891
5038
  const code = reason.rpcError?.code;
3892
5039
  return code === "workspace/session-active";
3893
5040
  }
3894
- function openLeaderSession({ project, openSession }) {
5041
+ function openLeaderSession({ project, openSession, t }) {
3895
5042
  const sessionId = project?.leaderSessionId;
3896
5043
  if (typeof sessionId !== "string" || sessionId === "") {
3897
- return { ok: false, message: `\u9879\u76EE\u300C${project?.name ?? ""}\u300D\u6CA1\u6709\u53EF\u6253\u5F00\u7684 leader \u4F1A\u8BDD\uFF0C\u8BF7\u6362\u65B0 Leader\u3002` };
5044
+ return { ok: false, message: t("project.leaderMissing", { name: project?.name ?? "" }) };
3898
5045
  }
3899
5046
  openSession(sessionId);
3900
5047
  return { ok: true };
3901
5048
  }
3902
- function buildProjectMenuItems(project, handlers) {
5049
+ function buildProjectMenuItems(project, handlers, t) {
3903
5050
  const items = [];
3904
- items.push({ id: "rename", label: "\u91CD\u547D\u540D", icon: "edit-outline", onSelect: () => handlers.onRename(project) });
3905
- items.push({ id: "replace", label: "\u6362\u65B0 Leader", icon: "refresh-outline", onSelect: () => handlers.onReplace(project) });
3906
- items.push({ id: "remove", label: "\u5220\u9664", icon: "trash-outline", danger: true, onSelect: () => handlers.onRemove(project) });
5051
+ items.push({ id: "rename", label: t("project.rename"), icon: "edit-outline", onSelect: () => handlers.onRename(project) });
5052
+ items.push({ id: "replace", label: t("project.replaceLeader"), icon: "refresh-outline", onSelect: () => handlers.onReplace(project) });
5053
+ items.push({ id: "remove", label: t("common.delete"), icon: "trash-outline", danger: true, onSelect: () => handlers.onRemove(project) });
3907
5054
  return items;
3908
5055
  }
3909
- function describeProjectRemoval(project) {
3910
- return `\u5C06\u628A\u9879\u76EE\u300C${project.name}\u300D\u5220\u9664\u3002\u6587\u4EF6\u5939\u3001\u4F1A\u8BDD\u8BB0\u5F55\u4E0E dsh \u5DE5\u4F5C\u533A\u90FD\u4F1A\u4FDD\u7559\u3002`;
5056
+ function describeProjectRemoval(project, t) {
5057
+ return t("project.remove.description", { name: project.name });
3911
5058
  }
3912
- function describeDeletionNotice(project, _result) {
3913
- return `\u5DF2\u5220\u9664\u9879\u76EE\u300C${project.name}\u300D\u3002`;
5059
+ function describeDeletionNotice(project, _result, t) {
5060
+ return t("project.remove.notice", { name: project.name });
3914
5061
  }
3915
5062
  function classifyDeletionResult(result) {
3916
5063
  if (result?.removed === true) return "removed";
@@ -4454,7 +5601,8 @@ function ProjectSection(props) {
4454
5601
  listExpanded,
4455
5602
  onToggleList,
4456
5603
  currentSessionId,
4457
- onReorder
5604
+ onReorder,
5605
+ t
4458
5606
  } = props;
4459
5607
  (0, import_react10.useEffect)(() => {
4460
5608
  ensureStyles2();
@@ -4498,10 +5646,10 @@ function ProjectSection(props) {
4498
5646
  type: "button",
4499
5647
  className: "dsh-leader-agent-project-header-toggle",
4500
5648
  "aria-expanded": listExpanded,
4501
- title: listExpanded ? "\u6536\u8D77\u9879\u76EE\u5217\u8868" : "\u5C55\u5F00\u9879\u76EE\u5217\u8868",
5649
+ title: listExpanded ? t("project.collapseList") : t("project.expandList"),
4502
5650
  onClick: onToggleList
4503
5651
  },
4504
- (0, import_react10.createElement)("span", { className: "dsh-leader-agent-project-header-label" }, "\u9879\u76EE"),
5652
+ (0, import_react10.createElement)("span", { className: "dsh-leader-agent-project-header-label" }, t("project.label")),
4505
5653
  (0, import_react10.createElement)(
4506
5654
  "span",
4507
5655
  { className: "dsh-leader-agent-project-lead" },
@@ -4523,7 +5671,7 @@ function ProjectSection(props) {
4523
5671
  {
4524
5672
  type: "button",
4525
5673
  className: "dsh-leader-agent-project-icon-button",
4526
- title: "\u52A0\u9879\u76EE\uFF1A\u9009\u4E00\u4E2A\u76EE\u5F55",
5674
+ title: t("project.add"),
4527
5675
  disabled: busy,
4528
5676
  onClick: onAdd
4529
5677
  },
@@ -4539,7 +5687,7 @@ function ProjectSection(props) {
4539
5687
  layout.showEmpty ? (0, import_react10.createElement)(
4540
5688
  "div",
4541
5689
  { className: "dsh-leader-agent-project-notice" },
4542
- "\u8FD8\u6CA1\u6709\u9879\u76EE\u3002\u52A0\u4E00\u4E2A\u5373\u5728\u5B83\u7684\u76EE\u5F55\u91CC\u5EFA\u597D leader \u4F1A\u8BDD\u3002"
5690
+ t("project.empty")
4543
5691
  ) : null,
4544
5692
  layout.showList ? (0, import_react10.createElement)(
4545
5693
  "div",
@@ -4564,6 +5712,7 @@ function ProjectSection(props) {
4564
5712
  dragActive: draggingId !== null,
4565
5713
  dragging: draggingId === project.id,
4566
5714
  dropHalf: dropTarget !== null && dropTarget.id === project.id ? dropTarget.half : void 0,
5715
+ t,
4567
5716
  onDragBegin: beginDrag,
4568
5717
  onDragHover: (overId, half) => {
4569
5718
  setDropTarget(projectDropPlan(projectIds, dragIdRef.current, overId, half).indicator);
@@ -4595,12 +5744,12 @@ function ProjectSection(props) {
4595
5744
  (0, import_react10.createElement)(
4596
5745
  "button",
4597
5746
  { type: "button", disabled: busy, className: "dsh-leader-agent-project-draft-action", onClick: onConfirmNaming },
4598
- "\u5EFA\u9879\u76EE"
5747
+ t("project.create")
4599
5748
  ),
4600
5749
  (0, import_react10.createElement)(
4601
5750
  "button",
4602
5751
  { type: "button", className: "dsh-leader-agent-project-draft-action", onClick: onCancelNaming },
4603
- "\u53D6\u6D88"
5752
+ t("common.cancel")
4604
5753
  )
4605
5754
  ),
4606
5755
  naming.error === "" || naming.error === void 0 ? null : (0, import_react10.createElement)("div", { className: "dsh-leader-agent-project-notice" }, naming.error)
@@ -4634,7 +5783,8 @@ function ProjectRow(props) {
4634
5783
  onDragBegin,
4635
5784
  onDragHover,
4636
5785
  onDropOn,
4637
- onDragFinish
5786
+ onDragFinish,
5787
+ t
4638
5788
  } = props;
4639
5789
  const [menuOpen, setMenuOpen] = (0, import_react10.useState)(false);
4640
5790
  const [renaming, setRenaming] = (0, import_react10.useState)(false);
@@ -4658,7 +5808,7 @@ function ProjectRow(props) {
4658
5808
  };
4659
5809
  }, [menuOpen]);
4660
5810
  const commitRename = () => {
4661
- const plan = planProjectRename(project.name, name);
5811
+ const plan = planProjectRename(project.name, name, t);
4662
5812
  if (plan.action === "keep") {
4663
5813
  setRenameError(plan.error);
4664
5814
  return;
@@ -4681,12 +5831,12 @@ function ProjectRow(props) {
4681
5831
  leaderRunning: isLeaderRunning(project, sessionRows, archivedSessionIds)
4682
5832
  });
4683
5833
  const [watermark, setWatermark] = (0, import_react10.useState)(0);
4684
- const folded = foldSessions(childSessions, watermark, currentSessionId);
5834
+ const folded = foldSessions(childSessions, watermark, currentSessionId, t);
4685
5835
  const menuItems = buildProjectMenuItems(project, {
4686
5836
  onRename: () => setRenaming(true),
4687
5837
  onReplace,
4688
5838
  onRemove
4689
- });
5839
+ }, t);
4690
5840
  return (0, import_react10.createElement)(
4691
5841
  "div",
4692
5842
  {
@@ -4736,7 +5886,7 @@ function ProjectRow(props) {
4736
5886
  type: "button",
4737
5887
  ref: leadRef,
4738
5888
  className: "dsh-leader-agent-project-lead",
4739
- "aria-label": expanded ? "\u6536\u8D77\u4F1A\u8BDD" : "\u5C55\u5F00\u4F1A\u8BDD",
5889
+ "aria-label": expanded ? t("project.collapseSessions") : t("project.expandSessions"),
4740
5890
  "aria-expanded": expanded,
4741
5891
  onClick: (event) => {
4742
5892
  event.stopPropagation();
@@ -4789,7 +5939,7 @@ function ProjectRow(props) {
4789
5939
  {
4790
5940
  type: "button",
4791
5941
  className: "dsh-leader-agent-project-icon-button",
4792
- title: "\u6362\u65B0 Leader",
5942
+ title: t("project.replaceLeader"),
4793
5943
  disabled: busy,
4794
5944
  onClick: (event) => {
4795
5945
  event.stopPropagation();
@@ -4804,7 +5954,7 @@ function ProjectRow(props) {
4804
5954
  type: "button",
4805
5955
  ref: moreRef,
4806
5956
  className: "dsh-leader-agent-project-icon-button",
4807
- title: "\u66F4\u591A",
5957
+ title: t("project.more"),
4808
5958
  disabled: busy,
4809
5959
  onClick: (event) => {
4810
5960
  event.stopPropagation();
@@ -4834,7 +5984,7 @@ function ProjectRow(props) {
4834
5984
  childSessions.length === 0 ? (0, import_react10.createElement)(
4835
5985
  "div",
4836
5986
  { className: "dsh-leader-agent-project-notice" },
4837
- "\u8BE5\u9879\u76EE\u4E0B\u8FD8\u6CA1\u6709\u4F1A\u8BDD\u3002"
5987
+ t("project.noSessions")
4838
5988
  ) : [
4839
5989
  ...folded.rows.map((row) => (0, import_react10.createElement)(SessionRow, {
4840
5990
  key: row.id,
@@ -4842,7 +5992,8 @@ function ProjectRow(props) {
4842
5992
  selected: row.id === currentSessionId,
4843
5993
  onOpenSession,
4844
5994
  onArchiveSession,
4845
- busy
5995
+ busy,
5996
+ t
4846
5997
  })),
4847
5998
  folded.hiddenCount === 0 && !folded.expanded ? null : (0, import_react10.createElement)(
4848
5999
  "button",
@@ -4862,7 +6013,7 @@ function ProjectRow(props) {
4862
6013
  ));
4863
6014
  }
4864
6015
  },
4865
- folded.expanded ? "\u6536\u8D77" : folded.expandLabel
6016
+ folded.expanded ? t("common.collapse") : folded.expandLabel
4866
6017
  )
4867
6018
  ]
4868
6019
  ) : null,
@@ -4918,7 +6069,7 @@ function ProjectMenu(props) {
4918
6069
  );
4919
6070
  }
4920
6071
  function SessionRow(props) {
4921
- const { row, selected, onOpenSession, onArchiveSession, busy } = props;
6072
+ const { row, selected, onOpenSession, onArchiveSession, busy, t } = props;
4922
6073
  return (0, import_react10.createElement)(
4923
6074
  "div",
4924
6075
  {
@@ -4928,7 +6079,7 @@ function SessionRow(props) {
4928
6079
  "aria-current": selected ? "page" : void 0,
4929
6080
  onClick: () => onOpenSession(row.id),
4930
6081
  // 行没有官方那套悬停卡,完成状态拼进行标题里当唯一提示。
4931
- title: `${row.displayTitle ?? row.title ?? row.id}${row.completed === true ? " \xB7 \u5DF2\u5B8C\u6210\uFF0C\u5F85\u67E5\u770B" : ""}`
6082
+ title: `${row.displayTitle ?? row.title ?? row.id}${row.completed === true ? ` \xB7 ${t("project.completedUnread")}` : ""}`
4932
6083
  },
4933
6084
  (0, import_react10.createElement)(
4934
6085
  "span",
@@ -4948,8 +6099,8 @@ function SessionRow(props) {
4948
6099
  {
4949
6100
  type: "button",
4950
6101
  className: "dsh-leader-agent-session-archive",
4951
- title: "\u5F52\u6863\u4F1A\u8BDD\uFF1A\u4ECE\u5217\u8868\u79FB\u9664\uFF0C\u5E76\u6458\u6389\u5361\u7247\u4E0A\u7ED1\u5B9A\u7684\u69FD\u4F4D",
4952
- "aria-label": `\u5F52\u6863\u4F1A\u8BDD ${row.title ?? row.displayTitle ?? row.id}`,
6102
+ title: t("project.archive"),
6103
+ "aria-label": t("project.archive.aria", { title: row.title ?? row.displayTitle ?? row.id }),
4953
6104
  disabled: busy,
4954
6105
  onClick: (event) => {
4955
6106
  event.stopPropagation();
@@ -5322,7 +6473,7 @@ function createWorkspaceExclusion() {
5322
6473
  // src/client/project-panel.js
5323
6474
  var PROJECT_REFRESH_INTERVAL_MS = 5e3;
5324
6475
  function ProjectPanel(props) {
5325
- const { wide, callRemote, getUiWorkspace, getSessions, getWorkspaces, onWorkspacesReady } = props;
6476
+ const { wide, callRemote, getUiWorkspace, getSessions, getWorkspaces, onWorkspacesReady, t } = props;
5326
6477
  const [projects, setProjects] = (0, import_react11.useState)([]);
5327
6478
  const [busy, setBusy] = (0, import_react11.useState)(false);
5328
6479
  const [floating, setFloating] = (0, import_react11.useState)(false);
@@ -5351,9 +6502,9 @@ function ProjectPanel(props) {
5351
6502
  setProjects(next);
5352
6503
  notifyProjectsChanged();
5353
6504
  } catch (error) {
5354
- showToast(`\u8BFB\u53D6\u9879\u76EE\u5931\u8D25\uFF1A${error instanceof Error ? error.message : String(error)}`);
6505
+ showToast(projectRemoteErrorText(error, t, "project.error.read"));
5355
6506
  }
5356
- }, [callRemote]);
6507
+ }, [callRemote, t]);
5357
6508
  const refreshSessionIndex = (0, import_react11.useCallback)(async () => {
5358
6509
  if (!isProjectRemoteReady()) return;
5359
6510
  try {
@@ -5365,9 +6516,9 @@ function ProjectPanel(props) {
5365
6516
  }
5366
6517
  setSessionsByProject(grouped);
5367
6518
  } catch (error) {
5368
- showToast(`\u8BFB\u53D6\u9879\u76EE\u4F1A\u8BDD\u5931\u8D25\uFF1A${error instanceof Error ? error.message : String(error)}`);
6519
+ showToast(projectRemoteErrorText(error, t, "project.error.sessions"));
5369
6520
  }
5370
- }, [callRemote]);
6521
+ }, [callRemote, t]);
5371
6522
  (0, import_react11.useEffect)(() => {
5372
6523
  void refresh();
5373
6524
  void refreshSessionIndex();
@@ -5529,14 +6680,14 @@ function ProjectPanel(props) {
5529
6680
  setNaming(null);
5530
6681
  const uiWorkspace = getUiWorkspace?.();
5531
6682
  if (uiWorkspace === void 0) {
5532
- showToast("\u76EE\u5F55\u9009\u62E9\u5668\u4E0D\u53EF\u7528\uFF1A\u5F53\u524D\u5BBF\u4E3B\u65E0\u6CD5\u9009\u62E9\u76EE\u5F55\uFF0C\u8BF7\u6362\u7528 web profile \u540E\u518D\u8BD5\u3002");
6683
+ showToast(t("project.error.directoryPicker"));
5533
6684
  return;
5534
6685
  }
5535
6686
  setBusy(true);
5536
6687
  try {
5537
6688
  const directory = await uiWorkspace.pickDirectory();
5538
6689
  if (typeof directory !== "string" || directory === "") return;
5539
- const check = defaultProjectName(directory);
6690
+ const check = defaultProjectName(directory, t);
5540
6691
  if (!check.ok) {
5541
6692
  setNaming({ directory, name: check.name, error: check.error });
5542
6693
  return;
@@ -5545,14 +6696,14 @@ function ProjectPanel(props) {
5545
6696
  await refresh();
5546
6697
  setListExpanded(true);
5547
6698
  } catch (error) {
5548
- showToast(`\u5EFA\u9879\u76EE\u5931\u8D25\uFF1A${error instanceof Error ? error.message : String(error)}`);
6699
+ showToast(projectRemoteErrorText(error, t, "project.error.create"));
5549
6700
  } finally {
5550
6701
  setBusy(false);
5551
6702
  }
5552
- }, [busy, callRemote, getUiWorkspace, refresh]);
6703
+ }, [busy, callRemote, getUiWorkspace, refresh, t]);
5553
6704
  const confirmNaming = (0, import_react11.useCallback)(async () => {
5554
6705
  if (busy || naming === null) return;
5555
- const check = validateProjectName(naming.name);
6706
+ const check = validateProjectName(naming.name, t);
5556
6707
  if (!check.ok) {
5557
6708
  setNaming({ ...naming, error: check.error });
5558
6709
  return;
@@ -5565,11 +6716,11 @@ function ProjectPanel(props) {
5565
6716
  await refresh();
5566
6717
  setListExpanded(true);
5567
6718
  } catch (error) {
5568
- setNaming({ ...naming, error: `\u5EFA\u9879\u76EE\u5931\u8D25\uFF1A${error instanceof Error ? error.message : String(error)}` });
6719
+ setNaming({ ...naming, error: projectRemoteErrorText(error, t, "project.error.create") });
5569
6720
  } finally {
5570
6721
  setBusy(false);
5571
6722
  }
5572
- }, [busy, callRemote, naming, refresh]);
6723
+ }, [busy, callRemote, naming, refresh, t]);
5573
6724
  const cancelNaming = (0, import_react11.useCallback)(() => {
5574
6725
  setNaming(null);
5575
6726
  }, []);
@@ -5578,23 +6729,24 @@ function ProjectPanel(props) {
5578
6729
  }, []);
5579
6730
  const openProject = (0, import_react11.useCallback)(async (project) => {
5580
6731
  if (!isProjectOpenable(project)) {
5581
- showToast(`\u9879\u76EE\u300C${project.name}\u300D\u7684 leader \u4F1A\u8BDD\u5DF2\u88AB\u5220\u9664\uFF0C\u8BF7\u6362\u65B0 Leader\u3002`);
6732
+ showToast(t("project.leaderDeleted", { name: project.name }));
5582
6733
  return;
5583
6734
  }
5584
6735
  const uiWorkspace = getUiWorkspace?.();
5585
6736
  if (uiWorkspace === void 0) {
5586
- showToast("\u5BFC\u822A\u670D\u52A1\u4E0D\u53EF\u7528\uFF1A\u65E0\u6CD5\u6253\u5F00\u4F1A\u8BDD\u3002");
6737
+ showToast(t("project.error.navigation"));
5587
6738
  return;
5588
6739
  }
5589
6740
  const result = openLeaderSession({
5590
6741
  project,
5591
- openSession: (sessionId) => uiWorkspace.openSession(sessionId)
6742
+ openSession: (sessionId) => uiWorkspace.openSession(sessionId),
6743
+ t
5592
6744
  });
5593
6745
  if (result.ok !== true) showToast(result.message);
5594
- }, [getUiWorkspace]);
6746
+ }, [getUiWorkspace, t]);
5595
6747
  const renameProject = (0, import_react11.useCallback)(async (project, name) => {
5596
6748
  if (busy) return;
5597
- const check = validateProjectName(name);
6749
+ const check = validateProjectName(name, t);
5598
6750
  if (!check.ok) {
5599
6751
  showToast(check.error);
5600
6752
  return;
@@ -5604,22 +6756,22 @@ function ProjectPanel(props) {
5604
6756
  await callRemote("rename", [project.id, name]);
5605
6757
  await refresh();
5606
6758
  } catch (error) {
5607
- showToast(`\u6539\u540D\u5931\u8D25\uFF1A${error instanceof Error ? error.message : String(error)}`);
6759
+ showToast(projectRemoteErrorText(error, t, "project.error.rename"));
5608
6760
  } finally {
5609
6761
  setBusy(false);
5610
6762
  }
5611
- }, [busy, callRemote, refresh]);
6763
+ }, [busy, callRemote, refresh, t]);
5612
6764
  const reorderProject = (0, import_react11.useCallback)((projectId, beforeId) => {
5613
6765
  setProjects((current2) => moveProjectBefore(current2, projectId, beforeId));
5614
6766
  return reorderQueue.push(async (isLatest) => {
5615
6767
  try {
5616
6768
  await callRemote("reorder", [projectId, beforeId]);
5617
6769
  } catch (error) {
5618
- showToast(`\u8C03\u6574\u9879\u76EE\u987A\u5E8F\u5931\u8D25\uFF1A${error instanceof Error ? error.message : String(error)}`);
6770
+ showToast(projectRemoteErrorText(error, t, "project.error.reorder"));
5619
6771
  }
5620
6772
  if (isLatest()) await refresh();
5621
6773
  });
5622
- }, [callRemote, refresh, reorderQueue]);
6774
+ }, [callRemote, refresh, reorderQueue, t]);
5623
6775
  const replaceLeader = (0, import_react11.useCallback)(async (project) => {
5624
6776
  if (busy) return;
5625
6777
  setBusy(true);
@@ -5633,11 +6785,11 @@ function ProjectPanel(props) {
5633
6785
  }
5634
6786
  await refresh();
5635
6787
  } catch (error) {
5636
- showToast(`\u6362\u65B0 Leader \u5931\u8D25\uFF1A${error instanceof Error ? error.message : String(error)}`);
6788
+ showToast(projectRemoteErrorText(error, t, "project.error.replaceLeader"));
5637
6789
  } finally {
5638
6790
  setBusy(false);
5639
6791
  }
5640
- }, [busy, callRemote, getUiWorkspace, refresh]);
6792
+ }, [busy, callRemote, getUiWorkspace, refresh, t]);
5641
6793
  const requestDelete = (0, import_react11.useCallback)((project) => {
5642
6794
  setDeleteError("");
5643
6795
  setPendingDelete(project);
@@ -5654,23 +6806,23 @@ function ProjectPanel(props) {
5654
6806
  const result = await callRemote("deleteProject", [project.id]);
5655
6807
  const outcome = classifyDeletionResult(result);
5656
6808
  if (outcome === "failed") {
5657
- setDeleteError(result?.reason ?? "\u5220\u9664\u5931\u8D25\u3002");
6809
+ setDeleteError(result?.reason ?? t("project.error.deleteReason"));
5658
6810
  await refresh();
5659
6811
  return;
5660
6812
  }
5661
6813
  setPendingDelete(null);
5662
- showToast(describeDeletionNotice(project, result));
6814
+ showToast(describeDeletionNotice(project, result, t));
5663
6815
  await refresh();
5664
6816
  } catch (error) {
5665
- setDeleteError(`\u5220\u9664\u5931\u8D25\uFF1A${error instanceof Error ? error.message : String(error)}`);
6817
+ setDeleteError(projectRemoteErrorText(error, t, "project.error.delete"));
5666
6818
  } finally {
5667
6819
  setBusy(false);
5668
6820
  }
5669
- }, [busy, callRemote, pendingDelete, refresh]);
6821
+ }, [busy, callRemote, pendingDelete, refresh, t]);
5670
6822
  const archiveSession = (0, import_react11.useCallback)(async (sessionId, { stopActivity = false } = {}) => {
5671
6823
  const workspaces = getWorkspaces?.();
5672
6824
  if (workspaces?.archiveSession === void 0) {
5673
- showToast("\u5DE5\u4F5C\u533A\u670D\u52A1\u4E0D\u53EF\u7528\uFF1A\u65E0\u6CD5\u5F52\u6863\u4F1A\u8BDD\u3002");
6825
+ showToast(t("project.error.workspaces"));
5674
6826
  return;
5675
6827
  }
5676
6828
  setBusy(true);
@@ -5679,7 +6831,7 @@ function ProjectPanel(props) {
5679
6831
  try {
5680
6832
  await callRemote("detachSession", [sessionId]);
5681
6833
  } catch (error) {
5682
- showToast(`\u4F1A\u8BDD\u5DF2\u5F52\u6863\uFF0C\u4F46\u6458\u5361\u5931\u8D25\uFF1A${error instanceof Error ? error.message : String(error)}`);
6834
+ showToast(projectRemoteErrorText(error, t, "project.error.archivePartial"));
5683
6835
  }
5684
6836
  setPendingArchive(null);
5685
6837
  await refreshSessionIndex();
@@ -5689,16 +6841,15 @@ function ProjectPanel(props) {
5689
6841
  setPendingArchive({ sessionId });
5690
6842
  return;
5691
6843
  }
5692
- const message = error instanceof Error ? error.message : String(error);
5693
6844
  if (stopActivity) {
5694
- setArchiveError(`\u505C\u6B62\u5E76\u5F52\u6863\u5931\u8D25\uFF1A${message}`);
6845
+ setArchiveError(projectRemoteErrorText(error, t, "project.error.stopArchive"));
5695
6846
  return;
5696
6847
  }
5697
- showToast(`\u5F52\u6863\u4F1A\u8BDD\u5931\u8D25\uFF1A${message}`);
6848
+ showToast(projectRemoteErrorText(error, t, "project.error.archive"));
5698
6849
  } finally {
5699
6850
  setBusy(false);
5700
6851
  }
5701
- }, [callRemote, getWorkspaces, refreshSessionIndex]);
6852
+ }, [callRemote, getWorkspaces, refreshSessionIndex, t]);
5702
6853
  const confirmArchive = (0, import_react11.useCallback)(async () => {
5703
6854
  if (busy || pendingArchive === null) return;
5704
6855
  await archiveSession(pendingArchive.sessionId, { stopActivity: true });
@@ -5708,11 +6859,12 @@ function ProjectPanel(props) {
5708
6859
  setPendingArchive(null);
5709
6860
  }, []);
5710
6861
  const body = (0, import_react11.createElement)(ProjectSection, {
6862
+ t,
5711
6863
  projects,
5712
6864
  busy,
5713
6865
  // 通道状态是持续状态,不是一次性消息:放在列表位置,而不是弹一条会自己
5714
6866
  // 消失的提示。就绪后这里变空,列表照常出现。
5715
- remoteStatus: isProjectRemoteReady() ? "" : `\u9879\u76EE\u901A\u9053\u672A\u5C31\u7EEA\u3002${projectRemoteError()}`,
6867
+ remoteStatus: isProjectRemoteReady() ? "" : t("project.remoteNotReady"),
5716
6868
  onAdd: () => {
5717
6869
  void startAdd();
5718
6870
  },
@@ -5747,7 +6899,7 @@ function ProjectPanel(props) {
5747
6899
  onOpenSession: (sessionId) => {
5748
6900
  const uiWorkspace = getUiWorkspace?.();
5749
6901
  if (uiWorkspace === void 0) {
5750
- showToast("\u5BFC\u822A\u670D\u52A1\u4E0D\u53EF\u7528\uFF1A\u65E0\u6CD5\u6253\u5F00\u4F1A\u8BDD\u3002");
6902
+ showToast(t("project.error.navigation"));
5751
6903
  return;
5752
6904
  }
5753
6905
  uiWorkspace.openSession(sessionId);
@@ -5760,10 +6912,10 @@ function ProjectPanel(props) {
5760
6912
  });
5761
6913
  const dialog = (0, import_react11.createElement)(ConfirmDialog, {
5762
6914
  open: pendingDelete !== null,
5763
- title: "\u5220\u9664\u9879\u76EE",
5764
- description: pendingDelete === null ? "" : describeProjectRemoval(pendingDelete),
5765
- confirmLabel: "\u5220\u9664",
5766
- cancelLabel: "\u53D6\u6D88",
6915
+ title: t("project.remove.title"),
6916
+ description: pendingDelete === null ? "" : describeProjectRemoval(pendingDelete, t),
6917
+ confirmLabel: t("common.delete"),
6918
+ cancelLabel: t("common.cancel"),
5767
6919
  danger: true,
5768
6920
  busy,
5769
6921
  error: deleteError,
@@ -5774,10 +6926,10 @@ function ProjectPanel(props) {
5774
6926
  });
5775
6927
  const archiveDialog = (0, import_react11.createElement)(ConfirmDialog, {
5776
6928
  open: pendingArchive !== null,
5777
- title: "\u4F1A\u8BDD\u8FD8\u5728\u6267\u884C",
5778
- description: "\u8FD9\u4E2A\u4F1A\u8BDD\u6B63\u5728\u8DD1\u3002\u5F52\u6863\u4F1A\u5148\u505C\u6389\u5B83\u7684\u4EFB\u52A1\uFF0C\u518D\u4ECE\u5217\u8868\u79FB\u9664\u5E76\u6458\u6389\u5361\u7247\u4E0A\u7ED1\u5B9A\u7684\u69FD\u4F4D\u3002\u4F1A\u8BDD\u8BB0\u5F55\u4FDD\u7559\u3002",
5779
- confirmLabel: "\u505C\u6B62\u5E76\u5F52\u6863",
5780
- cancelLabel: "\u53D6\u6D88",
6929
+ title: t("project.archive.title"),
6930
+ description: t("project.archive.description"),
6931
+ confirmLabel: t("project.archive.confirm"),
6932
+ cancelLabel: t("common.cancel"),
5781
6933
  danger: true,
5782
6934
  busy,
5783
6935
  error: archiveError,
@@ -5794,8 +6946,8 @@ function ProjectPanel(props) {
5794
6946
  "button",
5795
6947
  {
5796
6948
  type: "button",
5797
- title: "\u9879\u76EE",
5798
- "aria-label": "\u9879\u76EE",
6949
+ title: t("project.label"),
6950
+ "aria-label": t("project.label"),
5799
6951
  onClick: () => setFloating((value) => !value),
5800
6952
  style: {
5801
6953
  width: "100%",
@@ -5981,7 +7133,7 @@ function createLeaderSessionIndex() {
5981
7133
  const nextIds = new Set(next);
5982
7134
  if (nextIds.size === ids.size && [...nextIds].every((id) => ids.has(id))) return;
5983
7135
  ids = nextIds;
5984
- for (const listener of [...listeners3]) listener(ids);
7136
+ for (const listener of Array.from(listeners3)) listener(ids);
5985
7137
  }
5986
7138
  };
5987
7139
  }
@@ -6093,11 +7245,137 @@ function mountGuideCard(ctx) {
6093
7245
  }, GuideCardEntry)), "dsh-leader-agent \u5F15\u5BFC\u5361");
6094
7246
  }
6095
7247
 
6096
- // src/client/leader-view.js
7248
+ // src/client/leader-changes-anchor.js
6097
7249
  var import_react13 = require("react");
7250
+
7251
+ // src/client/main-panel.js
7252
+ function findMainPanel() {
7253
+ if (typeof document === "undefined") return null;
7254
+ return document.querySelector('#root [class*="mainPanel"]') ?? document.querySelector('[class*="mainPanel"]');
7255
+ }
7256
+ function findMainSlot() {
7257
+ if (typeof document === "undefined") return null;
7258
+ return findMainPanel() ?? document.querySelector('#root [data-slot="main"]') ?? document.querySelector('[data-slot="main"]');
7259
+ }
7260
+ function findColumn(slot) {
7261
+ let column = slot.parentElement;
7262
+ while (column !== null && column.hasAttribute("data-slot") && column.parentElement !== null) {
7263
+ column = column.parentElement;
7264
+ }
7265
+ return column ?? slot;
7266
+ }
7267
+ function mainBodyOf(slot) {
7268
+ let body = slot.firstElementChild;
7269
+ while (body !== null && typeof window !== "undefined" && window.getComputedStyle(body).display === "contents") {
7270
+ body = body.firstElementChild;
7271
+ }
7272
+ return body;
7273
+ }
7274
+
7275
+ // src/client/leader-changes.js
7276
+ var HIDE_ATTR = "data-dsh-leader-agent-hide-changed-files";
7277
+ var STYLE_ID5 = "dsh-leader-agent-leader-changes";
7278
+ var STYLE_TEXT5 = `
7279
+ [${HIDE_ATTR}] [data-changed-files] {
7280
+ display: none !important;
7281
+ }
7282
+ `;
7283
+ function ensureLeaderChangesStyles() {
7284
+ if (typeof document === "undefined") return;
7285
+ if (document.getElementById(STYLE_ID5) !== null) return;
7286
+ const style = document.createElement("style");
7287
+ style.id = STYLE_ID5;
7288
+ style.textContent = STYLE_TEXT5;
7289
+ document.head.append(style);
7290
+ }
7291
+ function isLeaderSession(leaderIds, sessionId) {
7292
+ if (typeof sessionId !== "string" || sessionId === "") return false;
7293
+ return leaderIds instanceof Set && leaderIds.has(sessionId);
7294
+ }
7295
+ function applyHideState(column, hide) {
7296
+ if (column === null || column === void 0) return;
7297
+ if (hide) column.setAttribute(HIDE_ATTR, "");
7298
+ else column.removeAttribute(HIDE_ATTR);
7299
+ }
7300
+ function watchLeaderChanges(hide, {
7301
+ documentRef = typeof document === "undefined" ? void 0 : document,
7302
+ findPanel = findMainPanel,
7303
+ apply: apply2 = applyHideState,
7304
+ Observer = typeof MutationObserver === "undefined" ? void 0 : MutationObserver,
7305
+ schedule = (callback) => setTimeout(callback, 16),
7306
+ cancel = (timer) => clearTimeout(timer)
7307
+ } = {}) {
7308
+ let column = null;
7309
+ let scheduled = false;
7310
+ let timer = null;
7311
+ let alive = true;
7312
+ const applyNow = () => {
7313
+ if (!alive || documentRef === void 0) return;
7314
+ const next = findPanel();
7315
+ if (next === null) {
7316
+ apply2(column, false);
7317
+ column = null;
7318
+ return;
7319
+ }
7320
+ if (next !== column) {
7321
+ apply2(column, false);
7322
+ column = next;
7323
+ }
7324
+ apply2(column, hide);
7325
+ };
7326
+ applyNow();
7327
+ const observer = hide && documentRef?.body !== void 0 && Observer !== void 0 ? new Observer(() => {
7328
+ if (scheduled) return;
7329
+ scheduled = true;
7330
+ timer = schedule(() => {
7331
+ scheduled = false;
7332
+ applyNow();
7333
+ });
7334
+ }) : null;
7335
+ observer?.observe(documentRef.body, {
7336
+ childList: true,
7337
+ subtree: true,
7338
+ attributes: true,
7339
+ attributeFilter: ["class"]
7340
+ });
7341
+ return () => {
7342
+ alive = false;
7343
+ observer?.disconnect();
7344
+ if (timer !== null) cancel(timer);
7345
+ apply2(column, false);
7346
+ };
7347
+ }
7348
+
7349
+ // src/client/leader-changes-anchor.js
7350
+ function LeaderChangesAnchor({ getSessions }) {
7351
+ const sessions = getSessions?.();
7352
+ const [snapshot, setSnapshot] = (0, import_react13.useState)(() => sessions?.list?.getSnapshot?.() ?? {
7353
+ phase: "pending",
7354
+ ids: [],
7355
+ byId: {}
7356
+ });
7357
+ const [leaderIds, setLeaderIds] = (0, import_react13.useState)(() => leaderSessionIndex.getSnapshot());
7358
+ (0, import_react13.useEffect)(() => {
7359
+ if (typeof sessions?.list?.subscribe !== "function") return void 0;
7360
+ const sync = () => setSnapshot(sessions.list.getSnapshot());
7361
+ sync();
7362
+ return sessions.list.subscribe(sync);
7363
+ }, [sessions]);
7364
+ (0, import_react13.useEffect)(() => leaderSessionIndex.subscribe(setLeaderIds), []);
7365
+ const currentSessionId = currentSessionIdOf(snapshot.byId);
7366
+ const hide = isLeaderSession(leaderIds, currentSessionId);
7367
+ (0, import_react13.useEffect)(() => {
7368
+ ensureLeaderChangesStyles();
7369
+ return watchLeaderChanges(hide);
7370
+ }, [hide]);
7371
+ return null;
7372
+ }
7373
+
7374
+ // src/client/leader-view.js
7375
+ var import_react14 = require("react");
6098
7376
  function LeaderViewEntry(props) {
6099
7377
  const { sessionId, getUiConversation } = props;
6100
- (0, import_react13.useLayoutEffect)(() => leaderSessionIndex.subscribe((ids) => {
7378
+ (0, import_react14.useLayoutEffect)(() => leaderSessionIndex.subscribe((ids) => {
6101
7379
  if (!ids.has(sessionId)) return;
6102
7380
  activateLeaderView(getUiConversation?.(), sessionId);
6103
7381
  }), [getUiConversation, sessionId]);
@@ -6137,7 +7415,7 @@ function createReadySignal() {
6137
7415
  mark() {
6138
7416
  if (ready2) return;
6139
7417
  ready2 = true;
6140
- for (const listener of [...listeners3]) notify(listener);
7418
+ for (const listener of Array.from(listeners3)) notify(listener);
6141
7419
  },
6142
7420
  /**
6143
7421
  * 订阅就绪。已就绪时用微任务补一次通知——调用方通常在同步代码里先判空再订阅,
@@ -6164,10 +7442,768 @@ function createReadySignal() {
6164
7442
  };
6165
7443
  }
6166
7444
 
7445
+ // src/client/session-tabs.js
7446
+ var import_react15 = require("react");
7447
+ var import_react_dom4 = require("react-dom");
7448
+
7449
+ // src/client/session-tabs-logic.js
7450
+ var SESSION_TABS_STORAGE_KEY = "dsh-leader-agent.session-tabs.v1";
7451
+ var MAX_OPEN_TABS_PER_PROJECT = 50;
7452
+ function validKey(value) {
7453
+ return typeof value === "string" && value.length > 0 && value.length <= 200 && !/[\u0000-\u001f\u007f]/.test(value);
7454
+ }
7455
+ function emptyTabStore() {
7456
+ return { version: 1, projects: {} };
7457
+ }
7458
+ function projectsOf(store) {
7459
+ const projects = store?.projects;
7460
+ if (projects === null || typeof projects !== "object" || Array.isArray(projects)) return {};
7461
+ return projects;
7462
+ }
7463
+ function normalizeStore(value) {
7464
+ if (value === null || typeof value !== "object" || value.version !== 1) return emptyTabStore();
7465
+ const entries = [];
7466
+ for (const [projectId, ids] of Object.entries(projectsOf(value))) {
7467
+ if (!validKey(projectId) || !Array.isArray(ids)) continue;
7468
+ const seen = /* @__PURE__ */ new Set();
7469
+ for (const id of ids) {
7470
+ if (!validKey(id) || seen.has(id)) continue;
7471
+ seen.add(id);
7472
+ if (seen.size >= MAX_OPEN_TABS_PER_PROJECT) break;
7473
+ }
7474
+ if (seen.size > 0) entries.push([projectId, [...seen]]);
7475
+ }
7476
+ return { version: 1, projects: Object.fromEntries(entries) };
7477
+ }
7478
+ function parseTabStore(raw) {
7479
+ if (typeof raw !== "string" || raw === "") return emptyTabStore();
7480
+ let value;
7481
+ try {
7482
+ value = JSON.parse(raw);
7483
+ } catch {
7484
+ return emptyTabStore();
7485
+ }
7486
+ return normalizeStore(value);
7487
+ }
7488
+ function serializeTabStore(store) {
7489
+ return JSON.stringify(normalizeStore(store));
7490
+ }
7491
+ function openTabIds(store, projectId) {
7492
+ if (!validKey(projectId)) return [];
7493
+ const ids = projectsOf(store)[projectId];
7494
+ if (!Array.isArray(ids)) return [];
7495
+ return ids.filter((id) => validKey(id));
7496
+ }
7497
+ function hasOpenTab(store, projectId, sessionId) {
7498
+ return openTabIds(store, projectId).includes(sessionId);
7499
+ }
7500
+ function addOpenTab(store, projectId, sessionId) {
7501
+ if (!validKey(projectId) || !validKey(sessionId)) return store;
7502
+ const current2 = openTabIds(store, projectId);
7503
+ if (current2.includes(sessionId)) return store;
7504
+ if (current2.length >= MAX_OPEN_TABS_PER_PROJECT) return store;
7505
+ return {
7506
+ version: 1,
7507
+ projects: { ...projectsOf(store), [projectId]: [...current2, sessionId] }
7508
+ };
7509
+ }
7510
+ function removeOpenTab(store, projectId, sessionId) {
7511
+ if (!validKey(projectId) || !validKey(sessionId)) return store;
7512
+ const current2 = openTabIds(store, projectId);
7513
+ if (!current2.includes(sessionId)) return store;
7514
+ const next = current2.filter((id) => id !== sessionId);
7515
+ const projects = { ...projectsOf(store) };
7516
+ if (next.length === 0) delete projects[projectId];
7517
+ else projects[projectId] = next;
7518
+ return { version: 1, projects };
7519
+ }
7520
+ function workerTabState(row) {
7521
+ if (row?.running === true) return "running";
7522
+ if (row?.completed === true) return "unread";
7523
+ return "idle";
7524
+ }
7525
+ function sessionLabel(row, sessionId) {
7526
+ const display = row?.displayTitle;
7527
+ if (typeof display === "string" && display !== "") return display;
7528
+ const title = row?.title;
7529
+ if (typeof title === "string" && title !== "") return title;
7530
+ return sessionId;
7531
+ }
7532
+ function findProjectSession(projects, groups, sessionId) {
7533
+ if (!validKey(sessionId) || !Array.isArray(projects)) return null;
7534
+ const leaderProject = projects.find((project2) => project2 !== null && typeof project2 === "object" && project2.leaderSessionId === sessionId && validKey(project2.id));
7535
+ if (leaderProject !== void 0) {
7536
+ if (leaderProject.leaderAlive === false) return null;
7537
+ const group2 = Array.isArray(groups) ? groups.find((entry) => entry?.projectId === leaderProject.id) : void 0;
7538
+ return { project: leaderProject, group: group2, leader: true };
7539
+ }
7540
+ if (!Array.isArray(groups)) return null;
7541
+ const group = groups.find((entry) => entry !== null && typeof entry === "object" && Array.isArray(entry.sessionIds) && entry.sessionIds.includes(sessionId));
7542
+ if (group === void 0) return null;
7543
+ const project = projects.find((entry) => entry?.id === group.projectId);
7544
+ if (project === void 0 || !validKey(project.leaderSessionId)) return null;
7545
+ if (project.leaderAlive === false) return null;
7546
+ const retired = Array.isArray(project.retiredLeaderSessionIds) ? project.retiredLeaderSessionIds : [];
7547
+ if (retired.includes(sessionId)) return null;
7548
+ return { project, group, leader: false };
7549
+ }
7550
+ function hiddenView(activeSessionId) {
7551
+ return {
7552
+ visible: false,
7553
+ project: null,
7554
+ leaderId: null,
7555
+ tabs: [],
7556
+ activeSessionId,
7557
+ isLeaderCurrent: false,
7558
+ isWorkerCurrent: false,
7559
+ workerIds: []
7560
+ };
7561
+ }
7562
+ function resolveTabView({ projects, groups, rows, currentSessionId, store }) {
7563
+ if (!validKey(currentSessionId)) return hiddenView(currentSessionId);
7564
+ const found = findProjectSession(projects, groups, currentSessionId);
7565
+ if (found === null) return hiddenView(currentSessionId);
7566
+ const { project, group, leader } = found;
7567
+ const retired = new Set(Array.isArray(project.retiredLeaderSessionIds) ? project.retiredLeaderSessionIds : []);
7568
+ const groupIds = Array.isArray(group?.sessionIds) ? group.sessionIds : [];
7569
+ const workerIds = [];
7570
+ const seen = /* @__PURE__ */ new Set();
7571
+ for (const id of groupIds) {
7572
+ if (!validKey(id) || seen.has(id) || id === project.leaderSessionId || retired.has(id)) continue;
7573
+ seen.add(id);
7574
+ if (rows?.[id] === void 0) continue;
7575
+ workerIds.push(id);
7576
+ }
7577
+ if (workerIds.length === 0) return hiddenView(currentSessionId);
7578
+ const open = new Set(openTabIds(store, project.id));
7579
+ const tabs = [
7580
+ {
7581
+ id: project.leaderSessionId,
7582
+ kind: "leader",
7583
+ label: typeof project.name === "string" && project.name !== "" ? project.name : project.id,
7584
+ state: "idle"
7585
+ },
7586
+ ...workerIds.filter((id) => open.has(id)).map((id) => ({
7587
+ id,
7588
+ kind: "worker",
7589
+ label: sessionLabel(rows[id], id),
7590
+ state: workerTabState(rows[id])
7591
+ }))
7592
+ ];
7593
+ return {
7594
+ visible: true,
7595
+ project,
7596
+ leaderId: project.leaderSessionId,
7597
+ tabs,
7598
+ activeSessionId: currentSessionId,
7599
+ isLeaderCurrent: leader,
7600
+ isWorkerCurrent: !leader && workerIds.includes(currentSessionId),
7601
+ workerIds
7602
+ };
7603
+ }
7604
+ function tabIdForKey(tabs, activeId, key) {
7605
+ if (!Array.isArray(tabs) || tabs.length === 0) return void 0;
7606
+ const found = tabs.findIndex((tab) => tab?.id === activeId);
7607
+ const index = found === -1 ? 0 : found;
7608
+ switch (key) {
7609
+ case "ArrowRight":
7610
+ return tabs[(index + 1) % tabs.length]?.id;
7611
+ case "ArrowLeft":
7612
+ return tabs[(index - 1 + tabs.length) % tabs.length]?.id;
7613
+ case "Home":
7614
+ return tabs[0]?.id;
7615
+ case "End":
7616
+ return tabs[tabs.length - 1]?.id;
7617
+ default:
7618
+ return void 0;
7619
+ }
7620
+ }
7621
+ function tabAfterClose(view, closingId) {
7622
+ if (view?.visible !== true || typeof closingId !== "string") return null;
7623
+ if (view.activeSessionId !== closingId) return null;
7624
+ return view.leaderId;
7625
+ }
7626
+ function hasSessionMenu(contextMenus) {
7627
+ return contextMenus !== null && contextMenus !== void 0;
7628
+ }
7629
+
7630
+ // src/client/session-tabs.js
7631
+ var STYLE_ID6 = "dsh-leader-agent-session-tabs-style";
7632
+ var COLUMN_ATTR = "data-dsh-leader-agent-tabs-column";
7633
+ var MAIN_ATTR = "data-dsh-leader-agent-tabs-main";
7634
+ var SIGNAL_LABEL_KEYS = {
7635
+ running: "board.state.running",
7636
+ unread: "board.state.unread",
7637
+ idle: "board.state.idle"
7638
+ };
7639
+ var STYLE_TEXT6 = `
7640
+ [${COLUMN_ATTR}] { min-height: 0; }
7641
+ [${MAIN_ATTR}] {
7642
+ flex: 1 1 0 !important;
7643
+ min-height: 0 !important;
7644
+ height: auto !important;
7645
+ }
7646
+ [data-dsh-leader-agent-session-tabs] { display: contents; }
7647
+ .dsh-leader-agent-tabs {
7648
+ flex: none;
7649
+ display: flex;
7650
+ align-items: center;
7651
+ gap: 4px;
7652
+ height: 38px;
7653
+ min-width: 0;
7654
+ box-sizing: border-box;
7655
+ padding-block: 0;
7656
+ padding-inline-start: max(20px, var(--dsh-frame-leading-clearance, 0px));
7657
+ /* \u53F3\u4FA7\u53EA\u7559\u53F3\u680F\u5F00\u5173\uFF1A\u5B83\u88AB\u9489\u5230\u6807\u7B7E\u680F\u8FD9\u4E00\u884C\uFF08\u89C1\u4E0B\uFF09\uFF0C\u6807\u7B7E\u6EDA\u52A8\u533A\u5FC5\u987B\u5728\u5B83
7658
+ \u5DE6\u8FB9\u7ED3\u675F\uFF0C\u5426\u5219\u957F\u6807\u7B7E\u4F1A\u94BB\u5230\u6309\u94AE\u4E0B\u9762\u3002\u4F1A\u8BDD\u300C\u66F4\u591A\u300D\u662F\u672C\u63D2\u4EF6\u81EA\u5DF1\u6E32\u67D3\u7684
7659
+ flex \u5B50\u9879\uFF0C\u4E0D\u5360\u8FD9\u6BB5\u7559\u767D\u3002 */
7660
+ padding-inline-end: 42px;
7661
+ background: var(--dsw-alias-bg-base);
7662
+ border-bottom: .5px solid var(--dsw-alias-border-l3);
7663
+ -webkit-app-region: drag;
7664
+ overflow: hidden;
7665
+ }
7666
+ /* \u53F3\u680F\u5F00\u5173\u672C\u6765\u5728\u4F1A\u8BDD\u5934\u7684\u6807\u9898\u884C\uFF08\u6807\u7B7E\u680F\u4E0B\u4E00\u884C\uFF09\u3002\u6536\u8D77\u53F3\u680F\u65F6\u5B83\u5728\u4E0B\u9762\uFF0C
7667
+ \u5C55\u5F00\u540E\u5BBF\u4E3B\u628A\u9762\u677F\u7684\u6536\u8D77\u6309\u94AE\u753B\u5728\u9762\u677F\u81EA\u5DF1\u7684\u9876\u90E8\u6761\uFF08\u6807\u7B7E\u680F\u8FD9\u4E00\u884C\uFF09\u2014\u2014
7668
+ \u540C\u4E00\u4E2A\u5F00\u5173\u4F1A\u4E0A\u4E0B\u8DF3\u4E00\u884C\u3002\u8FD9\u91CC\u628A\u5F00\u5173\u9489\u5230\u6807\u7B7E\u680F\u8FD9\u4E00\u884C\uFF1A\u6536\u8D77\u65F6\u5B83\u5728
7669
+ [\u9876\u90E8\u6761\u53F3\u4FA7 6px\u3001\u9876\u884C\u5185\u5BB9\u8D77\u70B9]\uFF0C\u5C55\u5F00\u540E\u5BBF\u4E3B\u7684\u6536\u8D77\u6309\u94AE\u5728\u540C\u4E00\u5750\u6807\u63A5\u7BA1\u3002
7670
+ \u7528 fixed \u662F\u56E0\u4E3A\u4F1A\u8BDD\u6839\u5E26 overflow: hidden\uFF0C\u666E\u901A\u7EDD\u5BF9\u5B9A\u4F4D\u4F1A\u88AB\u88C1\u6389\u3002 */
7671
+ [${COLUMN_ATTR}] [data-sidebar-right-expand] {
7672
+ position: fixed;
7673
+ top: calc(var(--dsh-windows-titlebar-height, 0px) + 10px);
7674
+ right: 6px;
7675
+ z-index: 1;
7676
+ }
7677
+ /* \u5F00\u5173\u5DF2\u7ECF\u79FB\u51FA\u6807\u9898\u884C\uFF1B\u8BA9 corner \u7684\u76D2\u5B50\uFF08\u542B 8px/\u8D1F 16px \u5916\u8FB9\u8DDD\uFF09\u4E0D\u518D\u53C2\u4E0E
7678
+ \u6807\u9898\u884C\u6392\u7248\uFF0C\u5426\u5219\u6807\u9898\u53F3\u4FA7\u4F1A\u591A\u51FA\u4E00\u6BB5\u4E3A\u6309\u94AE\u4FDD\u7559\u7684\u7A7A\u767D\u3002 */
7679
+ [${COLUMN_ATTR}] [data-conversation-header-corner] {
7680
+ display: contents;
7681
+ }
7682
+ /* \u300C\u66F4\u591A\u300D\u7531\u6807\u7B7E\u680F\u81EA\u5DF1\u6E32\u67D3\uFF08\u89C1 SessionTabBar\uFF09\uFF1B\u53EA\u6709\u5BBF\u4E3B\u771F\u7ED9\u4E86 contextMenus
7683
+ \u670D\u52A1\u3001\u680F\u91CC\u771F\u7684\u8865\u51FA\u8FD9\u679A\u6309\u94AE\u65F6\u624D\u85CF\u5BBF\u4E3B\u6807\u9898\u884C\u91CC\u90A3\u4E00\u679A\uFF0C\u907F\u514D\u540C\u4E00\u4E2A\u4F1A\u8BDD\u83DC\u5355
7684
+ \u51FA\u73B0\u4E24\u6B21\uFF08\u670D\u52A1\u7F3A\u5931\u65F6\u5BBF\u4E3B\u539F\u6309\u94AE\u7EE7\u7EED\u53EF\u7528\uFF09\u3002 */
7685
+ [${COLUMN_ATTR}]:has([data-dsh-leader-agent-tabs-menu]) [class*="headerMenuButton"] {
7686
+ display: none;
7687
+ }
7688
+ .dsh-leader-agent-tabs-action {
7689
+ flex: none;
7690
+ align-self: flex-end;
7691
+ display: flex;
7692
+ align-items: center;
7693
+ justify-content: center;
7694
+ width: 28px;
7695
+ height: 28px;
7696
+ padding: 0;
7697
+ border: 0;
7698
+ border-radius: var(--dsw-radius-sm, 8px);
7699
+ background: transparent;
7700
+ color: var(--dsw-alias-label-secondary);
7701
+ cursor: pointer;
7702
+ -webkit-app-region: no-drag;
7703
+ }
7704
+ .dsh-leader-agent-tabs-action:hover {
7705
+ background: var(--dsw-alias-interactive-bg-hover);
7706
+ color: var(--dsw-alias-label-primary);
7707
+ }
7708
+ .dsh-leader-agent-tabs-action:focus-visible {
7709
+ outline: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
7710
+ outline-offset: -2px;
7711
+ }
7712
+ .dsh-leader-agent-tabs-scroll {
7713
+ flex: 1 1 auto;
7714
+ display: flex;
7715
+ align-items: center;
7716
+ gap: 4px;
7717
+ min-width: 0;
7718
+ overflow-x: auto;
7719
+ overflow-y: hidden;
7720
+ scrollbar-width: none;
7721
+ }
7722
+ .dsh-leader-agent-tabs-scroll::-webkit-scrollbar { display: none; }
7723
+ .dsh-leader-agent-tab {
7724
+ position: relative;
7725
+ flex: none;
7726
+ display: flex;
7727
+ align-items: center;
7728
+ gap: 5px;
7729
+ height: 28px;
7730
+ max-width: 240px;
7731
+ box-sizing: border-box;
7732
+ padding: 0 6px 0 8px;
7733
+ border-radius: var(--dsw-radius-sm, 8px);
7734
+ color: var(--dsw-alias-label-secondary);
7735
+ font-size: 13px;
7736
+ line-height: 18px;
7737
+ font-weight: 500;
7738
+ cursor: pointer;
7739
+ user-select: none;
7740
+ -webkit-app-region: no-drag;
7741
+ outline: none;
7742
+ }
7743
+ .dsh-leader-agent-tab:hover:not([aria-selected='true']) {
7744
+ background: color-mix(in srgb, var(--dsw-alias-interactive-bg-hover) 55%, transparent);
7745
+ color: var(--dsw-alias-label-primary);
7746
+ }
7747
+ .dsh-leader-agent-tab[aria-selected='true'] {
7748
+ background: var(--dsw-alias-interactive-bg-hover);
7749
+ color: var(--dsw-alias-label-primary);
7750
+ }
7751
+ .dsh-leader-agent-tab:focus-visible {
7752
+ outline: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
7753
+ outline-offset: -2px;
7754
+ }
7755
+ .dsh-leader-agent-tab[data-kind='leader'] { font-weight: 600; }
7756
+ .dsh-leader-agent-tab-icon {
7757
+ flex: none;
7758
+ display: flex;
7759
+ color: var(--dsw-alias-label-tertiary);
7760
+ }
7761
+ .dsh-leader-agent-tab-dot {
7762
+ flex: none;
7763
+ display: flex;
7764
+ align-items: center;
7765
+ justify-content: center;
7766
+ width: 12px;
7767
+ height: 12px;
7768
+ }
7769
+ /* \u6807\u7B7E\u8981\u7684\u662F\u4FE1\u53F7\u706F\uFF0C\u4E0D\u662F\u52A0\u8F7D\u6001\uFF1A\u5BBF\u4E3B\u7684 StateDot \u8FD0\u884C\u4E2D\u753B\u8F6C\u5708 spinner\uFF0C\u8FD9\u91CC\u6539\u6210
7770
+ \u4E0E\u770B\u677F\u5361\u9762\u540C\u4E00\u5957\u9759\u6001\u70B9\u2014\u2014\u8FD0\u884C\u4E2D\u7425\u73C0\u8272\u547C\u5438\u3001\u5B8C\u6210\u672A\u8BFB\u84DD\u3001\u7A7A\u95F2\u5F31\u5316\u7070\u3002\u5F62\u72B6\u4E0E
7771
+ \u8272\u76F8\u90FD\u8DDF\u5361\u9762\u5BF9\u5E94\uFF0C\u626B\u63CF\u6807\u7B7E\u65F6\u4E0D\u4F1A\u628A\u300C\u6B63\u5728\u8DD1\u300D\u8BFB\u6210\u300C\u6B63\u5728\u52A0\u8F7D\u300D\u3002 */
7772
+ ${signalStyleText("dsh-leader-agent-tab-signal")}
7773
+ .dsh-leader-agent-tab-label {
7774
+ min-width: 0;
7775
+ overflow: hidden;
7776
+ text-overflow: ellipsis;
7777
+ white-space: nowrap;
7778
+ }
7779
+ .dsh-leader-agent-tab-close {
7780
+ flex: none;
7781
+ display: flex;
7782
+ align-items: center;
7783
+ justify-content: center;
7784
+ width: 16px;
7785
+ height: 16px;
7786
+ margin-inline-start: 1px;
7787
+ padding: 0;
7788
+ border: 0;
7789
+ border-radius: var(--dsw-radius-xs, 4px);
7790
+ background: transparent;
7791
+ color: var(--dsw-alias-label-tertiary);
7792
+ cursor: pointer;
7793
+ opacity: 0;
7794
+ transition: opacity 120ms ease, background-color 120ms ease;
7795
+ }
7796
+ .dsh-leader-agent-tab:hover .dsh-leader-agent-tab-close,
7797
+ .dsh-leader-agent-tab[aria-selected='true'] .dsh-leader-agent-tab-close,
7798
+ .dsh-leader-agent-tab-close:focus-visible { opacity: 1; }
7799
+ .dsh-leader-agent-tab-close:hover {
7800
+ background: var(--dsw-alias-interactive-bg-hover);
7801
+ color: var(--dsw-alias-label-primary);
7802
+ }
7803
+ .dsh-leader-agent-tab-close:focus-visible {
7804
+ outline: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
7805
+ outline-offset: -2px;
7806
+ }
7807
+ @media (prefers-reduced-motion: reduce) {
7808
+ .dsh-leader-agent-tab-close { transition: none; }
7809
+ }
7810
+ `;
7811
+ function ensureStyles4() {
7812
+ if (typeof document === "undefined") return;
7813
+ if (document.getElementById(STYLE_ID6) !== null) return;
7814
+ const style = document.createElement("style");
7815
+ style.id = STYLE_ID6;
7816
+ style.textContent = STYLE_TEXT6;
7817
+ document.head.append(style);
7818
+ }
7819
+ function SessionTabsAnchor(props) {
7820
+ const [host, setHost] = (0, import_react15.useState)(null);
7821
+ const visibleRef = (0, import_react15.useRef)(false);
7822
+ const applyRef = (0, import_react15.useRef)(null);
7823
+ const reportVisible = (0, import_react15.useCallback)((next) => {
7824
+ if (visibleRef.current === next) return;
7825
+ visibleRef.current = next;
7826
+ applyRef.current?.();
7827
+ }, []);
7828
+ (0, import_react15.useEffect)(() => {
7829
+ ensureStyles4();
7830
+ const created = document.createElement("div");
7831
+ created.setAttribute("data-dsh-leader-agent-session-tabs", "");
7832
+ let column = null;
7833
+ let mainBody = null;
7834
+ let retry = null;
7835
+ let scheduled = false;
7836
+ let scheduleTimer = null;
7837
+ let alive = true;
7838
+ const apply2 = () => {
7839
+ if (!alive) return;
7840
+ if (!visibleRef.current) {
7841
+ column?.removeAttribute(COLUMN_ATTR);
7842
+ mainBody?.removeAttribute(MAIN_ATTR);
7843
+ created.remove();
7844
+ column = null;
7845
+ mainBody = null;
7846
+ return;
7847
+ }
7848
+ const slot = findMainSlot();
7849
+ if (slot === null) return;
7850
+ const nextColumn = findColumn(slot);
7851
+ const nextBody = mainBodyOf(slot);
7852
+ if (nextColumn !== column) {
7853
+ column?.removeAttribute(COLUMN_ATTR);
7854
+ column = nextColumn;
7855
+ }
7856
+ if (nextBody !== mainBody) {
7857
+ mainBody?.removeAttribute(MAIN_ATTR);
7858
+ mainBody = nextBody;
7859
+ }
7860
+ column.setAttribute(COLUMN_ATTR, "");
7861
+ mainBody?.setAttribute(MAIN_ATTR, "");
7862
+ if (created.parentElement !== column) column.insertBefore(created, column.firstElementChild);
7863
+ };
7864
+ applyRef.current = apply2;
7865
+ apply2();
7866
+ if (visibleRef.current && created.parentElement === null) {
7867
+ retry = setTimeout(apply2, 250);
7868
+ }
7869
+ setHost(created);
7870
+ const schedule = () => {
7871
+ if (!alive || scheduled) return;
7872
+ scheduled = true;
7873
+ scheduleTimer = setTimeout(() => {
7874
+ scheduled = false;
7875
+ if (!alive || !visibleRef.current) return;
7876
+ if (created.parentElement === null || mainBody !== null && !mainBody.isConnected) apply2();
7877
+ }, 16);
7878
+ };
7879
+ const observer = new MutationObserver(schedule);
7880
+ if (typeof document !== "undefined" && document.body !== null) {
7881
+ observer.observe(document.body, { childList: true, subtree: true });
7882
+ }
7883
+ return () => {
7884
+ alive = false;
7885
+ observer.disconnect();
7886
+ if (retry !== null) clearTimeout(retry);
7887
+ if (scheduleTimer !== null) clearTimeout(scheduleTimer);
7888
+ applyRef.current = null;
7889
+ visibleRef.current = false;
7890
+ column?.removeAttribute(COLUMN_ATTR);
7891
+ mainBody?.removeAttribute(MAIN_ATTR);
7892
+ created.remove();
7893
+ document.getElementById(STYLE_ID6)?.remove();
7894
+ };
7895
+ }, []);
7896
+ return host === null ? null : (0, import_react_dom4.createPortal)((0, import_react15.createElement)(SessionTabBar, { ...props, reportVisible }), host);
7897
+ }
7898
+ function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout, getSidebarRight, getContextMenus, reportVisible }) {
7899
+ const sessions = getSessions?.();
7900
+ const menus = getContextMenus?.() ?? null;
7901
+ const hasMenu = hasSessionMenu(menus);
7902
+ const [snapshot, setSnapshot] = (0, import_react15.useState)(() => sessions?.list?.getSnapshot?.() ?? {
7903
+ phase: "pending",
7904
+ ids: [],
7905
+ byId: {}
7906
+ });
7907
+ const [completed, setCompleted] = (0, import_react15.useState)(() => /* @__PURE__ */ new Set());
7908
+ const [projects, setProjects] = (0, import_react15.useState)([]);
7909
+ const [groups, setGroups] = (0, import_react15.useState)([]);
7910
+ const [store, setStore] = (0, import_react15.useState)(readStore);
7911
+ const [panelActive, setPanelActive] = (0, import_react15.useState)(false);
7912
+ const [menuOpen, setMenuOpen] = (0, import_react15.useState)(false);
7913
+ const lastCurrent = (0, import_react15.useRef)(void 0);
7914
+ const tabRefs = (0, import_react15.useRef)(/* @__PURE__ */ new Map());
7915
+ const pendingFocus = (0, import_react15.useRef)(void 0);
7916
+ const refresh = (0, import_react15.useCallback)(async () => {
7917
+ if (!isProjectRemoteReady()) return;
7918
+ try {
7919
+ const [nextProjects, nextGroups] = await Promise.all([
7920
+ callRemote("list", []),
7921
+ callRemote("sessionsByProject", [])
7922
+ ]);
7923
+ setProjects(Array.isArray(nextProjects) ? nextProjects : []);
7924
+ setGroups(Array.isArray(nextGroups) ? nextGroups : []);
7925
+ } catch (error) {
7926
+ console.error("dsh-leader-agent: \u8BFB\u53D6\u9879\u76EE\u6807\u7B7E\u6570\u636E\u5931\u8D25", error);
7927
+ }
7928
+ }, [callRemote]);
7929
+ (0, import_react15.useEffect)(() => {
7930
+ if (!sessions?.list?.subscribe) return void 0;
7931
+ const tracker = createSessionCompletionTracker();
7932
+ const sync = () => {
7933
+ const next = sessions.list.getSnapshot();
7934
+ setSnapshot(next);
7935
+ setCompleted(new Set(tracker.update(next)));
7936
+ };
7937
+ sync();
7938
+ return sessions.list.subscribe(sync);
7939
+ }, [sessions]);
7940
+ (0, import_react15.useEffect)(() => onProjectRemoteReady(() => {
7941
+ void refresh();
7942
+ }), [refresh]);
7943
+ (0, import_react15.useEffect)(() => {
7944
+ const stop = onProjectsChanged(() => {
7945
+ void refresh();
7946
+ });
7947
+ const onFocus = () => {
7948
+ void refresh();
7949
+ };
7950
+ window.addEventListener("focus", onFocus);
7951
+ return () => {
7952
+ stop();
7953
+ window.removeEventListener("focus", onFocus);
7954
+ };
7955
+ }, [refresh]);
7956
+ (0, import_react15.useEffect)(() => {
7957
+ const info = getLayout?.()?.panelInfo;
7958
+ if (info === void 0 || typeof info.subscribe !== "function") return void 0;
7959
+ const sync = () => setPanelActive(info.getSnapshot().activePanelId !== null);
7960
+ sync();
7961
+ return info.subscribe(sync);
7962
+ }, [getLayout]);
7963
+ const currentSessionId = (0, import_react15.useMemo)(() => currentSessionIdOf(snapshot.byId), [snapshot]);
7964
+ (0, import_react15.useEffect)(() => {
7965
+ const active = menus?.active;
7966
+ if (active === void 0 || typeof active.subscribe !== "function") return void 0;
7967
+ const sync = () => {
7968
+ const target = active.getSnapshot();
7969
+ setMenuOpen(target?.kind === "sessionHeader" && target.value?.sessionId === currentSessionId);
7970
+ };
7971
+ sync();
7972
+ return active.subscribe(sync);
7973
+ }, [menus, currentSessionId]);
7974
+ (0, import_react15.useEffect)(() => {
7975
+ const active = menus?.active;
7976
+ if (active === void 0 || typeof active.getSnapshot !== "function" || typeof menus.close !== "function") return;
7977
+ const target = active.getSnapshot();
7978
+ if (target?.kind === "sessionHeader" && typeof target.value?.sessionId === "string" && target.value.sessionId !== currentSessionId) {
7979
+ menus.close();
7980
+ }
7981
+ }, [menus, currentSessionId]);
7982
+ (0, import_react15.useEffect)(() => {
7983
+ const previous = lastCurrent.current;
7984
+ lastCurrent.current = currentSessionId;
7985
+ if (previous !== void 0 && currentSessionId !== void 0 && previous !== currentSessionId) {
7986
+ void refresh();
7987
+ }
7988
+ }, [currentSessionId, refresh]);
7989
+ (0, import_react15.useEffect)(() => {
7990
+ try {
7991
+ window.localStorage.setItem(SESSION_TABS_STORAGE_KEY, serializeTabStore(store));
7992
+ } catch {
7993
+ }
7994
+ }, [store]);
7995
+ const rows = (0, import_react15.useMemo)(() => {
7996
+ const next = {};
7997
+ for (const [id, row] of Object.entries(snapshot.byId ?? {})) {
7998
+ next[id] = {
7999
+ id,
8000
+ title: row.title,
8001
+ displayTitle: row.displayTitle,
8002
+ running: row.running,
8003
+ completed: completed.has(id)
8004
+ };
8005
+ }
8006
+ return next;
8007
+ }, [snapshot, completed]);
8008
+ const view = (0, import_react15.useMemo)(() => resolveTabView({
8009
+ projects,
8010
+ groups,
8011
+ rows,
8012
+ currentSessionId,
8013
+ store
8014
+ }), [projects, groups, rows, currentSessionId, store]);
8015
+ (0, import_react15.useEffect)(() => {
8016
+ const id = pendingFocus.current;
8017
+ if (id === void 0 || view.activeSessionId !== id) return void 0;
8018
+ pendingFocus.current = void 0;
8019
+ const frame = requestAnimationFrame(() => {
8020
+ tabRefs.current.get(id)?.focus();
8021
+ });
8022
+ return () => cancelAnimationFrame(frame);
8023
+ }, [view.activeSessionId]);
8024
+ (0, import_react15.useEffect)(() => {
8025
+ if (!view.visible || !view.isWorkerCurrent || currentSessionId === void 0) return;
8026
+ if (hasOpenTab(store, view.project.id, currentSessionId)) return;
8027
+ setStore((current2) => addOpenTab(current2, view.project.id, currentSessionId));
8028
+ }, [view.visible, view.isWorkerCurrent, view.project?.id, currentSessionId]);
8029
+ const lastBoardCarry = (0, import_react15.useRef)(void 0);
8030
+ const carryBoard = (0, import_react15.useCallback)(() => {
8031
+ if (panelActive || currentSessionId === void 0) return;
8032
+ if (!view.visible || !view.isWorkerCurrent) {
8033
+ lastBoardCarry.current = void 0;
8034
+ return;
8035
+ }
8036
+ if (lastBoardCarry.current === currentSessionId) return;
8037
+ const leaderId = view.project?.leaderSessionId;
8038
+ if (typeof leaderId !== "string" || leaderId === "") return;
8039
+ const sidebarRight = getSidebarRight?.();
8040
+ if (sidebarRight === void 0 || sidebarRight === null) return;
8041
+ if (typeof sidebarRight.tabsIn !== "function") return;
8042
+ if (lastBoardForegroundSession() !== leaderId) return;
8043
+ if (!sidebarRight.tabsIn(leaderId).some((tab) => tab.kind === BOARD_TAB_KIND)) return;
8044
+ if (sidebarRight.mounted?.getSnapshot?.() !== currentSessionId) return;
8045
+ const existing = sidebarRight.tabsIn(currentSessionId).find((tab) => tab.kind === BOARD_TAB_KIND);
8046
+ if (existing !== void 0) {
8047
+ lastBoardCarry.current = currentSessionId;
8048
+ if (sidebarRight.active?.()?.id !== existing.id) sidebarRight.focus(existing.id);
8049
+ return;
8050
+ }
8051
+ try {
8052
+ sidebarRight.openTab(BOARD_TAB_KIND, { params: { projectId: view.project.id } });
8053
+ } catch {
8054
+ return;
8055
+ }
8056
+ lastBoardCarry.current = currentSessionId;
8057
+ }, [currentSessionId, getSidebarRight, panelActive, view.visible, view.isWorkerCurrent, view.project?.id, view.project?.leaderSessionId]);
8058
+ (0, import_react15.useLayoutEffect)(() => {
8059
+ carryBoard();
8060
+ }, [carryBoard]);
8061
+ (0, import_react15.useEffect)(() => {
8062
+ carryBoard();
8063
+ }, [carryBoard]);
8064
+ const barVisible = view.visible && !panelActive;
8065
+ (0, import_react15.useLayoutEffect)(() => {
8066
+ reportVisible?.(barVisible);
8067
+ }, [barVisible, reportVisible]);
8068
+ if (!barVisible) return null;
8069
+ const listLabel = t("tabs.list");
8070
+ const closeLabel = t("tabs.close");
8071
+ const moreLabel = t("tabs.more");
8072
+ const openSessionMenu = (event) => {
8073
+ if (!hasMenu || currentSessionId === void 0) return;
8074
+ if (menuOpen) {
8075
+ menus.close();
8076
+ return;
8077
+ }
8078
+ const rect = event.currentTarget.getBoundingClientRect();
8079
+ menus.open(
8080
+ { kind: "sessionHeader", value: { sessionId: currentSessionId } },
8081
+ { x: rect.left, y: rect.bottom },
8082
+ { button: "dsh-leader-agent-session-tabs-more" }
8083
+ );
8084
+ };
8085
+ const openSession = (sessionId) => {
8086
+ if (sessionId === view.activeSessionId) return;
8087
+ const workspace = getUiWorkspace?.();
8088
+ if (workspace !== void 0 && typeof workspace.openSession === "function") {
8089
+ workspace.openSession(sessionId);
8090
+ }
8091
+ };
8092
+ const closeSession = (sessionId) => {
8093
+ const fallback = tabAfterClose(view, sessionId);
8094
+ if (fallback !== null) {
8095
+ const workspace = getUiWorkspace?.();
8096
+ if (workspace === void 0 || typeof workspace.openSession !== "function") return;
8097
+ workspace.openSession(fallback);
8098
+ }
8099
+ setStore((current2) => removeOpenTab(current2, view.project.id, sessionId));
8100
+ };
8101
+ return (0, import_react15.createElement)(
8102
+ "div",
8103
+ {
8104
+ className: "dsh-leader-agent-tabs",
8105
+ "data-dsh-leader-agent-session-tabs-bar": "",
8106
+ ...hasMenu ? { "data-dsh-leader-agent-tabs-menu": "" } : {}
8107
+ },
8108
+ (0, import_react15.createElement)(
8109
+ "div",
8110
+ { className: "dsh-leader-agent-tabs-scroll", role: "tablist", "aria-label": listLabel },
8111
+ ...view.tabs.map((tab) => (0, import_react15.createElement)(
8112
+ "div",
8113
+ {
8114
+ key: tab.id,
8115
+ className: "dsh-leader-agent-tab",
8116
+ "data-session-id": tab.id,
8117
+ "data-kind": tab.kind,
8118
+ role: "tab",
8119
+ tabIndex: tab.id === view.activeSessionId ? 0 : -1,
8120
+ "aria-selected": tab.id === view.activeSessionId ? "true" : "false",
8121
+ title: tab.label,
8122
+ ref: (node) => {
8123
+ if (node === null) tabRefs.current.delete(tab.id);
8124
+ else tabRefs.current.set(tab.id, node);
8125
+ },
8126
+ onClick: () => openSession(tab.id),
8127
+ onKeyDown: (event) => {
8128
+ if (event.target !== event.currentTarget) return;
8129
+ if (event.key === "Enter" || event.key === " ") {
8130
+ event.preventDefault();
8131
+ openSession(tab.id);
8132
+ return;
8133
+ }
8134
+ const nextId = tabIdForKey(view.tabs, tab.id, event.key);
8135
+ if (nextId === void 0) return;
8136
+ event.preventDefault();
8137
+ if (nextId === view.activeSessionId) {
8138
+ tabRefs.current.get(nextId)?.focus();
8139
+ return;
8140
+ }
8141
+ pendingFocus.current = nextId;
8142
+ openSession(nextId);
8143
+ }
8144
+ },
8145
+ tab.kind === "leader" ? (0, import_react15.createElement)(
8146
+ "span",
8147
+ { className: "dsh-leader-agent-tab-icon" },
8148
+ productIcon("apps-add-outline", { size: 14 })
8149
+ ) : (0, import_react15.createElement)(
8150
+ "span",
8151
+ { className: "dsh-leader-agent-tab-dot" },
8152
+ (0, import_react15.createElement)("span", {
8153
+ className: `dsh-leader-agent-tab-signal dsh-leader-agent-tab-signal-${tab.state}`,
8154
+ "data-signal": tab.state,
8155
+ role: "img",
8156
+ "aria-label": t(SIGNAL_LABEL_KEYS[tab.state]),
8157
+ title: t(SIGNAL_LABEL_KEYS[tab.state])
8158
+ })
8159
+ ),
8160
+ (0, import_react15.createElement)("span", { className: "dsh-leader-agent-tab-label" }, tab.label),
8161
+ tab.kind === "worker" ? (0, import_react15.createElement)(
8162
+ "button",
8163
+ {
8164
+ type: "button",
8165
+ className: "dsh-leader-agent-tab-close",
8166
+ "aria-label": closeLabel + " " + tab.label,
8167
+ title: closeLabel + " " + tab.label,
8168
+ onClick: (event) => {
8169
+ event.stopPropagation();
8170
+ closeSession(tab.id);
8171
+ }
8172
+ },
8173
+ productIcon("close-outline", { size: 12 })
8174
+ ) : null
8175
+ ))
8176
+ ),
8177
+ !hasMenu ? null : (0, import_react15.createElement)(
8178
+ "button",
8179
+ {
8180
+ type: "button",
8181
+ className: "dsh-leader-agent-tabs-action",
8182
+ "data-dsh-leader-agent-tabs-more": "",
8183
+ "aria-label": moreLabel,
8184
+ "aria-haspopup": "menu",
8185
+ "aria-expanded": menuOpen ? "true" : "false",
8186
+ title: moreLabel,
8187
+ disabled: currentSessionId === void 0,
8188
+ onClick: openSessionMenu
8189
+ },
8190
+ productIcon("ellipsis-outline", { size: 14 })
8191
+ )
8192
+ );
8193
+ }
8194
+ function readStore() {
8195
+ if (typeof window === "undefined") return emptyTabStore();
8196
+ try {
8197
+ return parseTabStore(window.localStorage.getItem(SESSION_TABS_STORAGE_KEY));
8198
+ } catch {
8199
+ return emptyTabStore();
8200
+ }
8201
+ }
8202
+
6167
8203
  // src/client/toast-view.js
6168
- var import_react14 = require("react");
6169
- var STYLE_ID5 = "dsh-leader-agent-toast-style";
6170
- var STYLE_TEXT5 = `
8204
+ var import_react16 = require("react");
8205
+ var STYLE_ID7 = "dsh-leader-agent-toast-style";
8206
+ var STYLE_TEXT7 = `
6171
8207
  .dsh-leader-agent-toast {
6172
8208
  position: fixed;
6173
8209
  top: 40px;
@@ -6182,6 +8218,7 @@ var STYLE_TEXT5 = `
6182
8218
  color: var(--dsw-alias-toast-label);
6183
8219
  font-size: 14px;
6184
8220
  line-height: 22px;
8221
+ overflow-wrap: anywhere;
6185
8222
  box-shadow: var(--dsw-shadow-lv3);
6186
8223
  transform: translateX(-50%);
6187
8224
  animation:
@@ -6201,32 +8238,32 @@ var STYLE_TEXT5 = `
6201
8238
  }
6202
8239
  }
6203
8240
  `;
6204
- function ensureStyles4() {
8241
+ function ensureStyles5() {
6205
8242
  if (typeof document === "undefined") return;
6206
- if (document.getElementById(STYLE_ID5) !== null) return;
8243
+ if (document.getElementById(STYLE_ID7) !== null) return;
6207
8244
  const style = document.createElement("style");
6208
- style.id = STYLE_ID5;
6209
- style.textContent = STYLE_TEXT5;
8245
+ style.id = STYLE_ID7;
8246
+ style.textContent = STYLE_TEXT7;
6210
8247
  document.head.append(style);
6211
8248
  }
6212
8249
  function ToastOverlay() {
6213
- const [toast, setToast] = (0, import_react14.useState)(currentToast);
6214
- (0, import_react14.useEffect)(() => {
6215
- ensureStyles4();
8250
+ const [toast, setToast] = (0, import_react16.useState)(currentToast);
8251
+ (0, import_react16.useEffect)(() => {
8252
+ ensureStyles5();
6216
8253
  setToast(currentToast());
6217
8254
  return subscribeToasts(() => setToast(currentToast()));
6218
8255
  }, []);
6219
- (0, import_react14.useEffect)(() => {
8256
+ (0, import_react16.useEffect)(() => {
6220
8257
  if (toast === null) return void 0;
6221
8258
  const timer = setTimeout(() => dismissToast(toast.id), toast.holdMs + toast.fadeMs);
6222
8259
  return () => clearTimeout(timer);
6223
8260
  }, [toast]);
6224
8261
  if (toast === null) return null;
6225
- return (0, import_react14.createElement)(
6226
- import_react14.Fragment,
8262
+ return (0, import_react16.createElement)(
8263
+ import_react16.Fragment,
6227
8264
  // key 跟着每次弹出换:同一条文案连着出现两次时重挂载,动画与计时都重来。
6228
8265
  { key: toast.id },
6229
- (0, import_react14.createElement)(
8266
+ (0, import_react16.createElement)(
6230
8267
  "div",
6231
8268
  {
6232
8269
  className: "dsh-leader-agent-toast",
@@ -6345,151 +8382,395 @@ var workerReportDefinition = {
6345
8382
  };
6346
8383
 
6347
8384
  // src/client/worker-report-view.js
6348
- var import_react16 = require("react");
8385
+ var import_react18 = require("react");
6349
8386
 
6350
8387
  // src/client/agent-bubble-view.js
6351
- var import_react15 = require("react");
8388
+ var import_react17 = require("react");
6352
8389
 
6353
- // node_modules/minidenticons/minidenticons.js
6354
- var COLORS_NB = 9;
6355
- var DEFAULT_SATURATION = 95;
6356
- var DEFAULT_LIGHTNESS = 45;
6357
- var MAGIC_NUMBER = 5;
6358
- function simpleHash(str) {
6359
- return str.split("").reduce((hash, char) => (hash ^ char.charCodeAt(0)) * -MAGIC_NUMBER, MAGIC_NUMBER) >>> 2;
6360
- }
6361
- function minidenticon(seed = "", saturation = DEFAULT_SATURATION, lightness = DEFAULT_LIGHTNESS, hashFn = simpleHash) {
6362
- const hash = hashFn(seed);
6363
- const hue = hash % COLORS_NB * (360 / COLORS_NB);
6364
- return [...Array(seed ? 25 : 0)].reduce(
6365
- (acc, e, i) => (
6366
- // testing the 15 lowest weight bits of the hash
6367
- hash & 1 << i % 15 ? acc + `<rect x="${i > 14 ? 7 - ~~(i / 5) : ~~(i / 5)}" y="${i % 5}" width="1" height="1"/>` : acc
6368
- ),
6369
- // xmlns attribute added in case of SVG file generation https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg#sect1
6370
- `<svg viewBox="-1.5 -1.5 8 8" xmlns="http://www.w3.org/2000/svg" fill="hsl(${hue} ${saturation}% ${lightness}%)">`
6371
- ) + "</svg>";
6372
- }
6373
- var minidenticonSvg = (
6374
- // declared as a pure function to be tree-shaken by the bundler
6375
- /* @__PURE__ */ globalThis.customElements?.get("minidenticon-svg") ? null : globalThis.customElements?.define(
6376
- "minidenticon-svg",
6377
- class MinidenticonSvg extends HTMLElement {
6378
- static observedAttributes = ["username", "saturation", "lightness"];
6379
- // private fields to allow Terser mangling
6380
- static #memoized = {};
6381
- #isConnected = false;
6382
- connectedCallback() {
6383
- this.#setContent();
6384
- this.#isConnected = true;
6385
- }
6386
- // attributeChangedCallback() is called for every observed attribute before connectedCallback()
6387
- attributeChangedCallback() {
6388
- if (this.#isConnected) this.#setContent();
6389
- }
6390
- #setContent() {
6391
- const args = MinidenticonSvg.observedAttributes.map((key) => this.getAttribute(key) || void 0);
6392
- const memoKey = args.join(",");
6393
- this.innerHTML = MinidenticonSvg.#memoized[memoKey] ??= // @ts-ignore
6394
- minidenticon(...args);
6395
- }
8390
+ // node_modules/blobatar/dist/index.js
8391
+ function I({ l: t, c: e, h: n }) {
8392
+ let a = n * Math.PI / 180, o = e * Math.cos(a), r = e * Math.sin(a), s = t + 0.3963377774 * o + 0.2158037573 * r, c = t - 0.1055613458 * o - 0.0638541728 * r, i = t - 0.0894841775 * o - 1.291485548 * r, l = s * s * s, m = c * c * c, u = i * i * i;
8393
+ return [4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * u, -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * u, -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * u];
8394
+ }
8395
+ var N = (t) => t.every((e) => e >= -1e-4 && e <= 1.0001);
8396
+ function Q(t) {
8397
+ let e = I(t);
8398
+ if (!N(e)) {
8399
+ let n = 0, a = t.c;
8400
+ for (let o = 0; o < 12; o++) {
8401
+ let r = (n + a) / 2;
8402
+ if (N(I({ ...t, c: r }))) n = r;
8403
+ else a = r;
6396
8404
  }
6397
- )
6398
- );
8405
+ e = I({ ...t, c: n });
8406
+ }
8407
+ return e.map((n) => Math.min(1, Math.max(0, n)));
8408
+ }
8409
+ function V(t) {
8410
+ let [e, n, a] = Q(t);
8411
+ return 0.2126 * e + 0.7152 * n + 0.0722 * a;
8412
+ }
8413
+ function O(t, e) {
8414
+ let n = V(t), a = V(e);
8415
+ return (Math.max(n, a) + 0.05) / (Math.min(n, a) + 0.05);
8416
+ }
8417
+ function E(t, e, n) {
8418
+ if (O(t, e) >= n) return t;
8419
+ let a = t.l >= e.l ? 1 : -1;
8420
+ for (let s of [a, -a]) {
8421
+ let c = { ...t };
8422
+ for (let i = 0; i < 60; i++) {
8423
+ if (c.l = Math.min(1, Math.max(0, c.l + s * 0.02)), O(c, e) >= n) return c;
8424
+ if (c.l === 0 || c.l === 1) break;
8425
+ }
8426
+ }
8427
+ let o = { ...t, l: 0, c: 0 }, r = { ...t, l: 1, c: 0 };
8428
+ return O(o, e) >= O(r, e) ? o : r;
8429
+ }
8430
+ function B(t) {
8431
+ return "#" + Q(t).map((e) => {
8432
+ let n = e <= 31308e-7 ? 12.92 * e : 1.055 * Math.pow(e, 0.4166666666666667) - 0.055;
8433
+ return Math.round(n * 255).toString(16).padStart(2, "0");
8434
+ }).join("");
8435
+ }
8436
+ var U = [[0.2, { l: 0.86, c: 0.085 }], [0.36, { l: 0.9, c: 0.028 }], [0.62, { l: 0.73, c: 0.135 }], [0.8, { l: 0.62, c: 0.165 }], [0.93, { l: 0.87, c: 0.16 }], [1, { l: 0.34, c: 0.035 }]];
8437
+ var It = (t) => U.find(([e]) => t < e)?.[1] ?? U[0][1];
8438
+ var G = { l: 0.145, c: 0, h: 0 };
8439
+ var J = 1.5;
8440
+ var vt = (t, e) => {
8441
+ let n = It(e), a = E({ l: n.l, c: n.c, h: t }, G, J);
8442
+ return { bg: { l: 0.965, c: 0.01, h: t }, head: a, eye: a.l >= 0.5 ? { l: 0.17, c: 0.02, h: t } : { l: 0.97, c: 0.012, h: t } };
8443
+ };
8444
+ var W = [["head", "bg", 1.25], ["eye", "head", 4.5]];
8445
+ function tt(t, e = true, n = 0) {
8446
+ let a = vt(t, n);
8447
+ if (e) for (let [o, r, s] of W) a[o] = E(a[o], a[r], s);
8448
+ return a;
8449
+ }
8450
+ function v(t, e = true, n = 0) {
8451
+ let a = tt(t, e, n), o = {};
8452
+ for (let r in a) o[r] = B(a[r]);
8453
+ return o;
8454
+ }
8455
+ var y = (t) => {
8456
+ let e = Math.round(t * 100) / 100;
8457
+ return Object.is(e, -0) ? "0" : String(e);
8458
+ };
8459
+ function P({ cx: t, cy: e, rx: n, ry: a, n: o = 4, rot: r = 0 }) {
8460
+ let s = Math.min(1, (8 * Math.pow(2, -1 / o) - 4) / 3), c = n, i = a, l = c * s, m = i * s, u = [[c, 0], [c, m], [l, i], [0, i], [-l, i], [-c, m], [-c, 0], [-c, -m], [-l, -i], [0, -i], [l, -i], [c, -m], [c, 0]], b = r * Math.PI / 180, p = Math.cos(b), d = Math.sin(b), h = (x) => {
8461
+ let [g, k] = u[x];
8462
+ return `${y(t + g * p - k * d)} ${y(e + g * d + k * p)}`;
8463
+ }, f = `M${h(0)}`;
8464
+ for (let x = 1; x < 13; x += 3) f += `C${h(x)} ${h(x + 1)} ${h(x + 2)}`;
8465
+ return f + "Z";
8466
+ }
8467
+ function et(t, e, n, a, o, r = 0) {
8468
+ let s = o.length, c = r * Math.PI / 180, i = o.map((u, b) => {
8469
+ let p = c + 2 * Math.PI * b / s;
8470
+ return [t + n * u * Math.cos(p), e + a * u * Math.sin(p)];
8471
+ }), l = (u) => i[(u % s + s) % s], m = `M${y(l(0)[0])} ${y(l(0)[1])}`;
8472
+ for (let u = 0; u < s; u++) {
8473
+ let [b, p] = l(u - 1), [d, h] = l(u), [f, x] = l(u + 1), [g, k] = l(u + 2);
8474
+ m += `C${y(d + (f - b) / 6)} ${y(h + (x - p) / 6)} ${y(f - (g - d) / 6)} ${y(x - (k - h) / 6)} ${y(f)} ${y(x)}`;
8475
+ }
8476
+ return m + "Z";
8477
+ }
8478
+ function nt({ cx: t, cy: e, rx: n, ry: a, sides: o, round: r = 0.3, rot: s = 0 }) {
8479
+ let c = r > 0 ? r < 1 ? r / 2 : 0.5 : 0, i = s * Math.PI / 180 - Math.PI / 2, l = Array.from({ length: o }, (p, d) => {
8480
+ let h = i + 2 * Math.PI * d / o;
8481
+ return [t + n * Math.cos(h), e + a * Math.sin(h)];
8482
+ }), m = (p) => l[(p % o + o) % o], u = (p, d) => {
8483
+ let [h, f] = m(p), [x, g] = m(d);
8484
+ return `${y(h + (x - h) * c)} ${y(f + (g - f) * c)}`;
8485
+ }, b = `M${u(0, -1)}`;
8486
+ for (let p = 0; p < o; p++) {
8487
+ let [d, h] = m(p);
8488
+ if (b += `Q${y(d)} ${y(h)} ${u(p, p + 1)}`, c < 0.5) b += `L${u(p + 1, p)}`;
8489
+ }
8490
+ return b + "Z";
8491
+ }
8492
+ function rt(t, e, n, a) {
8493
+ let o = y(t - n), r = y(t + n);
8494
+ return `M${o} ${y(e - a)}H${r}V${y(e + a)}H${o}Z`;
8495
+ }
8496
+ function ot(t, e, n, a, o) {
8497
+ let r = Math.max(1.05, o), s = n * Math.sqrt(1 - 1 / (r * r)), c = e - a / r, i = e - r * a, l = s * 0.14, m = c + 0.86 * (i - c);
8498
+ return `M${y(t - s)} ${y(c)}L${y(t - l)} ${y(m)}Q${y(t)} ${y(i)} ${y(t + l)} ${y(m)}L${y(t + s)} ${y(c)}Z`;
8499
+ }
8500
+ function R(t, e) {
8501
+ for (let n = 0; n < e.length; n++) t = Math.imul(t ^ e[n], 3432918353), t = t << 13 | t >>> 19;
8502
+ return t;
8503
+ }
8504
+ function Rt(t) {
8505
+ return t = Math.imul(t ^ t >>> 16, 2246822507), t = Math.imul(t ^ t >>> 13, 3266489909), (t ^ t >>> 16) >>> 0;
8506
+ }
8507
+ var at = new TextEncoder();
8508
+ function st(t) {
8509
+ return t.normalize("NFC").trim().toLowerCase();
8510
+ }
8511
+ function ct(t, e = true) {
8512
+ let n = e ? st(t) : t;
8513
+ return R(1779033703 ^ n.length, at.encode(n));
8514
+ }
8515
+ function A(t, e) {
8516
+ return Rt(R(R(t, Uint8Array.of(255)), at.encode(e))) / 4294967296;
8517
+ }
8518
+ function F(t, e = true, n) {
8519
+ let a = ct(t, e), o = (r) => {
8520
+ let s = n?.[r], c = Array.isArray(s) ? s[Math.floor(A(a, r) * s.length)] : s;
8521
+ return c === void 0 ? A(a, r) : c > 0 ? c < 1 ? c : 0.999999 : 0;
8522
+ };
8523
+ return o.num = (r, s, c) => s + o(r) * (c - s), o.int = (r, s, c) => s + Math.floor(o(r) * (c - s + 1)), o.pick = (r, s) => s[Math.floor(o(r) * s.length)], o.bool = (r, s = 0.5) => o(r) < s, o.jitter = (r, s) => (o(r) * 2 - 1) * s, o;
8524
+ }
8525
+ function w(t, e, n) {
8526
+ let a = e.expression;
8527
+ if (n || !a) return { l: t, wrap: "" };
8528
+ return a.bake(t, a.p);
8529
+ }
8530
+ var j = (t, e) => e?.tint ? e.tint(t, e.p) : t;
8531
+ var it = (t, e) => e ? `<g transform="${e}">${t}</g>` : t;
8532
+ var At = (t) => t.replace(/[&<>]/g, (e) => e === "&" ? "&amp;" : e === "<" ? "&lt;" : "&gt;");
8533
+ function T(t, e) {
8534
+ let n = F(t, e.normalize ?? true, e.traits);
8535
+ return { t: n, palette: { ...v(e.hue ?? n.num("hue", 0, 360), e.contrast ?? true, e.tone ?? n("tone")), ...e.palette } };
8536
+ }
8537
+ var Ft = (t) => t.title ? `<title>${At(t.title)}</title>` : "";
8538
+ function L(t, e, n) {
8539
+ let a = e.background ?? t.background;
8540
+ if (a === false) return;
8541
+ return { d: a === "square" ? "M0 0H100V100H0Z" : P({ cx: 50, cy: 50, rx: 50, ry: 50, n: a === "circle" ? 2 : 6 }), fill: n.bg };
8542
+ }
8543
+ var jt = (t) => t ? `<path d="${t.d}" fill="${t.fill}"/>` : "";
8544
+ function ut(t) {
8545
+ return (e, n = {}) => {
8546
+ let { t: a, palette: o } = T(e, n), r = j(o, n.expression), s = n.size ? ` width="${n.size}" height="${n.size}"` : "", c = w(t.layout(a), n), i = Ft(n) + jt(L(t, n, r)) + it(t.render(c.l, r), c.wrap);
8547
+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"${s}>${i}</svg>`;
8548
+ };
8549
+ }
8550
+ var mt = (t, e, n) => {
8551
+ let a = e.rx, o = t.num("eye.rx", 0.075, 0.105) * a, r = t.num("eye.ratio", 1.9, 3.2), s = t.num("eye.scale", 0.78, 1.24), c = t.num("eye.stretch", 0.85, 1.18), i = t.num("eye.gap", 0.1, 0.24) * a, l = o * Math.max(1, s), m = o * r * Math.max(1, s * c), u = l + a * 0.03 + i, b = t.jitter("gaze.x", 0.09) * n.rx, p = t.num("gaze.y", -0.2, 0.08) * n.ry, d = t.jitter("eye.dy", 0.04) * n.ry, h = Math.hypot(l, m), f = Math.hypot((Math.abs(b) + u + h) / n.rx, (Math.abs(p) + Math.abs(d) + h) / n.ry), x = f > 0.9 ? 0.9 / f : 1, g = o * x, k = g * r, C = u * x, Tt = Math.max(0, Math.min(1, i / m)), Bt = Math.min(12, Math.asin(Tt) * 180 / Math.PI), H = t.num("eye.lean", -1, 1) * Bt, Lt = Math.max(-12, Math.min(12, H + t.jitter("eye.lean2", 3.5))), X = n.cx + b * x, Y = n.cy + p * x;
8552
+ return [{ cx: X - C, cy: Y, rx: g, ry: k, n: t.num("eye.n", 3.5, 6), rot: H }, { cx: X + C, cy: Y + d * x, rx: g * s, ry: k * s * c, n: t.num("eye.n", 3.5, 6), rot: Lt }];
8553
+ };
8554
+ function pt(t, e) {
8555
+ let n = (r) => (t.find(([, s]) => r < s) ?? t[t.length - 1])[0];
8556
+ function a(r) {
8557
+ let s = n(r("shape")), c = r.num("body.r", 31, 38) * s.core, i = { cx: 50 + r.jitter("body.x", 1.5), cy: 50 + r.jitter("body.y", 1.5), rx: c, ry: c * r.num("body.ratio", 0.92, 1.08), n: r.num("body.n", 1.9, 2.5), rot: 0, radii: Array.from({ length: r.int("body.pts", 6, 8) }, (u, b) => 1 + r.jitter(`body.r${b}`, 0.16)) };
8558
+ s.body?.(r, i);
8559
+ let l = s.face?.(i) ?? i, m = { petals: [], extra: [] };
8560
+ return s.decorate?.(r, i, m), { shape: s.name, draw: s.path, body: i, face: l, petals: m.petals, extra: m.extra, eyes: e(r, i, l) };
8561
+ }
8562
+ function o(r, s, c) {
8563
+ let i = (u) => Math.round(u * 100) / 100, l = (u, b) => {
8564
+ let p = `<path d="${P(u)}"/>`;
8565
+ return c ? `<g class="mo-eye" style="--mo-wrap:${b ? 1 : -1};--mo-lean:${i(u.rot)};transform-origin:${i(u.cx)}px ${i(u.cy)}px">${p}</g>` : p;
8566
+ }, m = `<g fill="${s.head}">` + r.petals.map((u) => `<circle cx="${i(u.cx)}" cy="${i(u.cy)}" r="${i(u.r)}"/>`).join("") + r.extra.map((u) => `<path d="${u}"/>`).join("") + `<path d="${r.draw ? r.draw(r.body) : P(r.body)}"/></g><g fill="${s.eye}"${c ? ' class="mo-eyes"' : ""}>` + r.eyes.map(l).join("") + "</g>";
8567
+ return c ? `<g class="mo-breathe"><g class="mo-bob">${m}</g></g>` : m;
8568
+ }
8569
+ return { layout: a, render: o, background: false };
8570
+ }
8571
+ var yt = (t) => nt(t);
8572
+ var bt = (t) => et(t.cx, t.cy, t.rx, t.ry, t.radii, t.rot);
8573
+ var z = (t) => (e) => ({ cx: e.cx, cy: e.cy, rx: e.rx * t, ry: e.ry * t });
8574
+ var xt = (t) => z(Math.min(...t.radii) * 0.95)(t);
8575
+ var _t = (t) => z(0.84)(t);
8576
+ var ht = { name: "round", core: 1 };
8577
+ var dt = { name: "organic", core: 0.98, path: bt, face: xt };
8578
+ var ft = { name: "boxy", core: 0.86, body: (t, e) => {
8579
+ e.n = t.num("body.n", 3.4, 6), e.rot = t.num("body.rot", -20, 20);
8580
+ } };
8581
+ var gt = { name: "capsule", core: 1.02, body: (t, e) => {
8582
+ e.ry *= t.num("capsule.squat", 0.55, 0.68);
8583
+ }, face: z(0.94), decorate: (t, e, n) => {
8584
+ for (let a of [-1, 1]) n.petals.push({ cx: e.cx + a * (e.rx - e.ry), cy: e.cy, r: e.ry });
8585
+ }, path: (t) => rt(t.cx, t.cy, t.rx - t.ry, t.ry) };
8586
+ var Mt = { name: "nub", core: 0.88, decorate: (t, e, n) => {
8587
+ let a = t.int("nub.n", 1, 2);
8588
+ for (let o = 0; o < a; o++) {
8589
+ let r = t.num(`nub.a${o}`, 0, 2 * Math.PI);
8590
+ n.petals.push({ cx: e.cx + Math.cos(r) * e.rx * 0.88, cy: e.cy + Math.sin(r) * e.rx * 0.88, r: e.rx * t.num(`nub.r${o}`, 0.24, 0.4) });
8591
+ }
8592
+ } };
8593
+ var kt = { name: "cloud", core: 0.78, face: xt, path: bt, decorate: (t, e, n) => {
8594
+ let a = t.int("cloud.n", 4, 6);
8595
+ for (let o = 0; o < a; o++) {
8596
+ let r = Math.PI + Math.PI * (o + 0.5) / a;
8597
+ n.petals.push({ cx: e.cx + Math.cos(r) * e.rx * 0.8, cy: e.cy + Math.sin(r) * e.rx * 0.5, r: e.rx * t.num(`cloud.r${o}`, 0.44, 0.62) });
8598
+ }
8599
+ } };
8600
+ var $t = { name: "droplet", core: 0.78, body: (t, e) => {
8601
+ e.cy += 0.22 * e.ry, e.n = 2;
8602
+ }, face: (t) => ({ cx: t.cx, cy: t.cy + t.ry * 0.05, rx: t.rx * 0.88, ry: t.ry * 0.88 }), decorate: (t, e, n) => {
8603
+ n.extra.push(ot(e.cx, e.cy, e.rx, e.ry, t.num("droplet.tip", 1.4, 1.65)));
8604
+ } };
8605
+ var Pt = { name: "hexagon", core: 1.05, path: yt, face: _t, body: (t, e) => {
8606
+ e.sides = 6, e.rot = t.num("body.rot", -12, 12), e.round = t.num("poly.round", 0.24, 0.5);
8607
+ } };
8608
+ var Ot = { name: "sun", core: 0.7, decorate: (t, e, n) => {
8609
+ let a = t.int("sun.n", 6, 9), o = e.rx * t.num("sun.dist", 1, 1.08), r = e.rx * t.num("sun.r", 0.2, 0.26), s = t.num("sun.rot", 0, 2 * Math.PI);
8610
+ for (let c = 0; c < a; c++) {
8611
+ let i = s + 2 * Math.PI * c / a;
8612
+ n.petals.push({ cx: e.cx + Math.cos(i) * o, cy: e.cy + Math.sin(i) * o, r });
8613
+ }
8614
+ } };
8615
+ var St = { name: "triangle", core: 1.15, path: yt, body: (t, e) => {
8616
+ e.sides = 3, e.rot = t.num("body.rot", -5, 5), e.round = t.num("poly.round", 0.24, 0.5);
8617
+ }, face: (t) => ({ cx: t.cx, cy: t.cy + t.ry * 0.1, rx: t.rx * 0.54, ry: t.ry * 0.36 }) };
8618
+ var zt = [[ht, 0.22], [dt, 0.48], [ft, 0.6], [gt, 0.7], [Mt, 0.79], [kt, 0.86], [$t, 0.915], [Pt, 0.95], [Ot, 0.98], [St, 1]];
8619
+ var M = pt(zt, mt);
8620
+ var Ct = ut(M);
8621
+ function Xt(t, e = {}) {
8622
+ let { t: n, palette: a } = T(t, e), o = M.layout(n), r = e.expression, s = r ? r.bake(o, r.p).l : o;
8623
+ return { palette: r?.tint ? r.tint(a, r.p) : a, ...s };
8624
+ }
6399
8625
 
6400
8626
  // src/client/worker-report-avatar.js
6401
- var AGENT_AVATAR_SEEDS = [
6402
- "basalt",
6403
- "bloom",
6404
- "bolt",
6405
- "breeze",
6406
- "chalk",
6407
- "cipher",
6408
- "cliff",
6409
- "cloud",
6410
- "cobalt",
6411
- "crimson",
6412
- "crystal",
6413
- "fern",
6414
- "field",
6415
- "forest",
6416
- "forge",
6417
- "frost",
6418
- "glacier",
6419
- "glint",
6420
- "harbor",
6421
- "hazel",
6422
- "hedge",
6423
- "ink",
6424
- "ivory",
6425
- "kelp",
6426
- "lagoon",
6427
- "lichen",
6428
- "lime",
6429
- "maple",
6430
- "meadow",
6431
- "mist",
6432
- "moss",
6433
- "nickel",
6434
- "oak",
6435
- "onyx",
6436
- "orbit",
6437
- "ore",
6438
- "pearl",
6439
- "plain",
6440
- "pond",
6441
- "rain",
6442
- "raven",
6443
- "rope",
6444
- "rose",
6445
- "ruby",
6446
- "salt",
6447
- "sapphire",
6448
- "scale",
6449
- "shale",
6450
- "silver",
6451
- "slate",
6452
- "stream",
6453
- "sun",
6454
- "thunder",
6455
- "topaz",
6456
- "tundra",
6457
- "umber",
6458
- "velvet",
6459
- "vine",
6460
- "wald",
6461
- "wave",
6462
- "wheat",
6463
- "wind",
6464
- "zephyr"
6465
- ];
6466
- var SATURATION = 50;
6467
- var FOREGROUND_LIGHTNESS = 96;
6468
- var BACKGROUND_LIGHTNESS = 36;
6469
- var HUE_PATTERN = /hsl\((\d+)/;
6470
- var FNV_OFFSET_BASIS = 2166136261;
6471
- var FNV_PRIME = 16777619;
6472
- function backgroundRect(hue) {
6473
- return `<rect x="-1.5" y="-1.5" width="8" height="8" fill="hsl(${hue} ${SATURATION}% ${BACKGROUND_LIGHTNESS}%)"/>`;
6474
- }
6475
- function agentAvatarSeed(name) {
6476
- let hash = FNV_OFFSET_BASIS;
6477
- for (let i = 0; i < name.length; i++) {
6478
- hash ^= name.charCodeAt(i);
6479
- hash = Math.imul(hash, FNV_PRIME) >>> 0;
6480
- }
6481
- return AGENT_AVATAR_SEEDS[hash % AGENT_AVATAR_SEEDS.length] ?? AGENT_AVATAR_SEEDS[0];
6482
- }
6483
- function agentAvatarDataUri(name) {
6484
- const svg = minidenticon(agentAvatarSeed(name), SATURATION, FOREGROUND_LIGHTNESS);
6485
- const hue = HUE_PATTERN.exec(svg)?.[1] ?? "0";
6486
- const withBackground = svg.replace(/(<svg[^>]*>)/, `$1${backgroundRect(hue)}`);
6487
- return `data:image/svg+xml,${encodeURIComponent(withBackground)}`;
8627
+ var SHAPE_BANDS = [0.11, 0.35, 0.54, 0.9, 0.93];
8628
+ var TONE_BANDS = [0.4, 0.8];
8629
+ var TARGET_RADIUS = 34;
8630
+ var STROKE_FACTOR = 0.62;
8631
+ var STROKE_WIDTH2 = 2.5;
8632
+ var PATH_TOKEN = /[A-Z]|-?\d*\.?\d+(?:e[-+]?\d+)?/g;
8633
+ var BODY_GROUP = /<g fill="([^"]+)">(.*?)<\/g>/s;
8634
+ function round2(value) {
8635
+ return Math.round(value * 100) / 100;
8636
+ }
8637
+ function darken(hex) {
8638
+ const channels = hex.slice(1).match(/[0-9a-f]{2}/gi);
8639
+ return "#" + channels.map((channel) => Math.round(Number.parseInt(channel, 16) * STROKE_FACTOR).toString(16).padStart(2, "0")).join("");
8640
+ }
8641
+ function pathPolygon(d, steps = 24) {
8642
+ const tokens = d.match(PATH_TOKEN);
8643
+ const points = [];
8644
+ let cursor = [0, 0];
8645
+ let start = [0, 0];
8646
+ let index = 0;
8647
+ const lineTo = (x, y2) => {
8648
+ points.push([x, y2]);
8649
+ cursor = [x, y2];
8650
+ };
8651
+ while (index < tokens.length) {
8652
+ const command = tokens[index++];
8653
+ if (command === "M") {
8654
+ start = [Number(tokens[index++]), Number(tokens[index++])];
8655
+ cursor = start;
8656
+ points.push(start);
8657
+ } else if (command === "L") {
8658
+ lineTo(Number(tokens[index++]), Number(tokens[index++]));
8659
+ } else if (command === "C") {
8660
+ const x1 = Number(tokens[index++]);
8661
+ const y1 = Number(tokens[index++]);
8662
+ const x2 = Number(tokens[index++]);
8663
+ const y2 = Number(tokens[index++]);
8664
+ const x = Number(tokens[index++]);
8665
+ const y3 = Number(tokens[index++]);
8666
+ const from = cursor;
8667
+ for (let step = 1; step <= steps; step++) {
8668
+ const t = step / steps;
8669
+ const rest = 1 - t;
8670
+ lineTo(
8671
+ rest ** 3 * from[0] + 3 * rest ** 2 * t * x1 + 3 * rest * t ** 2 * x2 + t ** 3 * x,
8672
+ rest ** 3 * from[1] + 3 * rest ** 2 * t * y1 + 3 * rest * t ** 2 * y2 + t ** 3 * y3
8673
+ );
8674
+ }
8675
+ } else if (command === "Q") {
8676
+ const x1 = Number(tokens[index++]);
8677
+ const y1 = Number(tokens[index++]);
8678
+ const x = Number(tokens[index++]);
8679
+ const y2 = Number(tokens[index++]);
8680
+ const from = cursor;
8681
+ for (let step = 1; step <= steps; step++) {
8682
+ const t = step / steps;
8683
+ const rest = 1 - t;
8684
+ lineTo(
8685
+ rest ** 2 * from[0] + 2 * rest * t * x1 + t ** 2 * x,
8686
+ rest ** 2 * from[1] + 2 * rest * t * y1 + t ** 2 * y2
8687
+ );
8688
+ }
8689
+ } else if (command === "Z") {
8690
+ lineTo(start[0], start[1]);
8691
+ }
8692
+ }
8693
+ return points;
8694
+ }
8695
+ function polygonArea(points) {
8696
+ let area = 0;
8697
+ for (let index = 0; index < points.length; index++) {
8698
+ const [x0, y0] = points[index];
8699
+ const [x1, y1] = points[(index + 1) % points.length];
8700
+ area += x0 * y1 - x1 * y0;
8701
+ }
8702
+ return Math.abs(area) / 2;
8703
+ }
8704
+ function pathArea(d) {
8705
+ return polygonArea(pathPolygon(d));
8706
+ }
8707
+ function convexHull(points) {
8708
+ const sorted = [...points].sort((left, right) => left[0] - right[0] || left[1] - right[1]);
8709
+ const cross = (origin, a, b) => (a[0] - origin[0]) * (b[1] - origin[1]) - (a[1] - origin[1]) * (b[0] - origin[0]);
8710
+ const lower = [];
8711
+ for (const point of sorted) {
8712
+ while (lower.length >= 2 && cross(lower.at(-2), lower.at(-1), point) <= 0) lower.pop();
8713
+ lower.push(point);
8714
+ }
8715
+ const upper = [];
8716
+ for (const point of sorted.reverse()) {
8717
+ while (upper.length >= 2 && cross(upper.at(-2), upper.at(-1), point) <= 0) upper.pop();
8718
+ upper.push(point);
8719
+ }
8720
+ return lower.slice(0, -1).concat(upper.slice(0, -1));
8721
+ }
8722
+ function transformPath(d, scale, cx, cy, shiftY = 0) {
8723
+ const tokens = d.match(PATH_TOKEN);
8724
+ let index = 0;
8725
+ let output = "";
8726
+ const pair = () => {
8727
+ const x = round2(50 + (Number(tokens[index++]) - cx) * scale);
8728
+ const y2 = round2(50 + (Number(tokens[index++]) - cy) * scale + shiftY);
8729
+ return `${x} ${y2}`;
8730
+ };
8731
+ while (index < tokens.length) {
8732
+ const command = tokens[index++];
8733
+ if (command === "M" || command === "L") {
8734
+ output += `${command}${pair()}`;
8735
+ } else if (command === "C") {
8736
+ output += `C${pair()} ${pair()} ${pair()}`;
8737
+ } else if (command === "Q") {
8738
+ output += `Q${pair()} ${pair()}`;
8739
+ } else if (command === "Z") {
8740
+ output += "Z";
8741
+ }
8742
+ }
8743
+ return output;
8744
+ }
8745
+ function polygonPath(points, scale, cx, cy, shiftY) {
8746
+ return "M" + points.map(([x, y2]) => `${round2(50 + (x - cx) * scale)} ${round2(50 + (y2 - cy) * scale + shiftY)}`).join("L") + "Z";
8747
+ }
8748
+ var AVATAR_EYE_CLASS = "dsh-leader-agent-agent-bubble__avatar-eye";
8749
+ function buildAvatar(name) {
8750
+ const options = { traits: { shape: SHAPE_BANDS, tone: TONE_BANDS } };
8751
+ const layout = Xt(name, options);
8752
+ const svg = Ct(name, options);
8753
+ const bodyGroup = BODY_GROUP.exec(svg);
8754
+ const bodyMarkup = bodyGroup[2];
8755
+ const eyeGroup = BODY_GROUP.exec(svg.slice(bodyGroup.index + bodyGroup[0].length));
8756
+ const eyeMarkup = eyeGroup[2];
8757
+ const bodyPaths = [...bodyMarkup.matchAll(/<path d="([^"]+)"\/>/g)].map((match) => match[1]);
8758
+ const eyePaths = [...eyeMarkup.matchAll(/<path d="([^"]+)"\/>/g)].map((match) => match[1]);
8759
+ const union = bodyPaths.length > 1 ? convexHull(bodyPaths.flatMap((d) => pathPolygon(d, 32))) : null;
8760
+ const area = union === null ? bodyPaths.reduce((sum, d) => sum + pathArea(d), 0) : polygonArea(union);
8761
+ const scale = TARGET_RADIUS / Math.sqrt(area / Math.PI);
8762
+ const head = bodyGroup[1];
8763
+ const eye = eyeGroup[1];
8764
+ const padding = STROKE_WIDTH2 / 2 + 0.25;
8765
+ const shiftY = union === null ? 0 : Math.max(0, padding - Math.min(...union.map(([, y2]) => 50 + (y2 - layout.body.cy) * scale)));
8766
+ const body = union === null ? bodyPaths.map((d) => transformPath(d, scale, layout.body.cx, layout.body.cy)) : [polygonPath(union, scale, layout.body.cx, layout.body.cy, shiftY)];
8767
+ const eyes = eyePaths.map((d) => transformPath(d, scale, layout.body.cx, layout.body.cy, shiftY));
8768
+ return { shape: layout.shape, head, stroke: darken(head), eye, body, eyes, strokeWidth: STROKE_WIDTH2 };
6488
8769
  }
6489
8770
 
6490
8771
  // src/client/agent-bubble-styles.js
6491
- var STYLE_ID6 = "dsh-leader-agent-agent-bubble";
6492
- var STYLE_TEXT6 = `
8772
+ var STYLE_ID8 = "dsh-leader-agent-agent-bubble";
8773
+ var STYLE_TEXT8 = `
6493
8774
  .dsh-leader-agent-agent-bubble {
6494
8775
  display: flex;
6495
8776
  flex-direction: column;
@@ -6505,12 +8786,42 @@ var STYLE_TEXT6 = `
6505
8786
  }
6506
8787
 
6507
8788
  .dsh-leader-agent-agent-bubble__avatar {
8789
+ display: block;
6508
8790
  width: 20px;
6509
8791
  height: 20px;
6510
- border-radius: 5px;
6511
8792
  flex-shrink: 0;
6512
8793
  }
6513
8794
 
8795
+ .dsh-leader-agent-agent-bubble__avatar svg {
8796
+ display: block;
8797
+ width: 100%;
8798
+ height: 100%;
8799
+ }
8800
+
8801
+ .dsh-leader-agent-agent-bubble__avatar-eye {
8802
+ transform-box: fill-box;
8803
+ transform-origin: center;
8804
+ }
8805
+
8806
+ /* \u89E6\u5C4F\u6CA1\u6709 hover \u8BED\u4E49\uFF0C\u4E0D\u8981\u628A\u300C\u70B9\u4E00\u4E0B\u300D\u5F53\u6210\u60AC\u505C\u3002 */
8807
+ @media (hover: hover) {
8808
+ .dsh-leader-agent-agent-bubble__avatar:hover .dsh-leader-agent-agent-bubble__avatar-eye {
8809
+ animation: dsh-leader-agent-avatar-blink 520ms ease-in-out;
8810
+ }
8811
+ }
8812
+
8813
+ @keyframes dsh-leader-agent-avatar-blink {
8814
+ 0%, 38%, 100% { transform: scaleY(1); }
8815
+ 48%, 58% { transform: scaleY(0.08); }
8816
+ }
8817
+
8818
+ /* \u52A8\u6548\u662F\u88C5\u9970\uFF1B\u5BBF\u4E3B\u6216\u7CFB\u7EDF\u8981\u6C42\u51CF\u5C11\u52A8\u6001\u65F6\u4FDD\u6301\u7741\u773C\u3002 */
8819
+ @media (prefers-reduced-motion: reduce) {
8820
+ .dsh-leader-agent-agent-bubble__avatar:hover .dsh-leader-agent-agent-bubble__avatar-eye {
8821
+ animation: none;
8822
+ }
8823
+ }
8824
+
6514
8825
  .dsh-leader-agent-agent-bubble__name {
6515
8826
  font-size: 12px;
6516
8827
  font-weight: 500;
@@ -6629,41 +8940,44 @@ var STYLE_TEXT6 = `
6629
8940
  `;
6630
8941
  function ensureAgentBubbleStyles() {
6631
8942
  if (typeof document === "undefined") return;
6632
- if (document.getElementById(STYLE_ID6) !== null) return;
8943
+ if (document.getElementById(STYLE_ID8) !== null) return;
6633
8944
  const style = document.createElement("style");
6634
- style.id = STYLE_ID6;
6635
- style.textContent = STYLE_TEXT6;
8945
+ style.id = STYLE_ID8;
8946
+ style.textContent = STYLE_TEXT8;
6636
8947
  document.head.append(style);
6637
8948
  }
6638
8949
 
6639
8950
  // src/client/bubble-clock.js
6640
- function formatBubbleClock(time) {
8951
+ function formatBubbleClock(time, t) {
6641
8952
  const date = new Date(time);
6642
8953
  const now = /* @__PURE__ */ new Date();
6643
8954
  const clock = `${String(date.getHours()).padStart(2, "0")}:${String(date.getMinutes()).padStart(2, "0")}`;
6644
8955
  if (date.getFullYear() === now.getFullYear() && date.getMonth() === now.getMonth() && date.getDate() === now.getDate()) {
6645
8956
  return clock;
6646
8957
  }
6647
- const day = `${date.getMonth() + 1}\u6708${date.getDate()}\u65E5`;
6648
- const md = date.getFullYear() === now.getFullYear() ? day : `${date.getFullYear()}\u5E74${day}`;
8958
+ const parts = { month: date.getMonth() + 1, day: date.getDate() };
8959
+ const day = t("bubble.clock.day", parts);
8960
+ const md = date.getFullYear() === now.getFullYear() ? day : t("bubble.clock.dayYear", { ...parts, year: date.getFullYear() });
6649
8961
  return `${md} ${clock}`;
6650
8962
  }
6651
8963
 
6652
8964
  // src/client/agent-bubble-view.js
6653
- function AgentBubble({ name, avatarSeed, openTitle, onOpenName, body, format, time }) {
6654
- const [copied, setCopied] = (0, import_react15.useState)(false);
6655
- const [expanded, setExpanded] = (0, import_react15.useState)(false);
6656
- const [overflowing, setOverflowing] = (0, import_react15.useState)(false);
6657
- const bubbleRef = (0, import_react15.useRef)(null);
6658
- (0, import_react15.useLayoutEffect)(() => {
8965
+ function AgentBubble({ name, avatarSeed, openTitle, onOpenName, body, format, time, t }) {
8966
+ const [copied, setCopied] = (0, import_react17.useState)(false);
8967
+ const [expanded, setExpanded] = (0, import_react17.useState)(false);
8968
+ const [overflowing, setOverflowing] = (0, import_react17.useState)(false);
8969
+ const bubbleRef = (0, import_react17.useRef)(null);
8970
+ (0, import_react17.useLayoutEffect)(() => {
6659
8971
  ensureAgentBubbleStyles();
6660
8972
  const element = bubbleRef.current;
6661
8973
  if (element === null || expanded) return void 0;
6662
8974
  const measure = () => {
6663
8975
  setOverflowing(element.scrollHeight > element.clientHeight + 1);
6664
8976
  };
6665
- measure();
6666
- if (typeof ResizeObserver === "undefined") return void 0;
8977
+ if (typeof ResizeObserver === "undefined") {
8978
+ measure();
8979
+ return void 0;
8980
+ }
6667
8981
  const observer = new ResizeObserver(measure);
6668
8982
  observer.observe(element);
6669
8983
  return () => observer.disconnect();
@@ -6677,18 +8991,32 @@ function AgentBubble({ name, avatarSeed, openTitle, onOpenName, body, format, ti
6677
8991
  setCopied(true);
6678
8992
  setTimeout(() => setCopied(false), 1500);
6679
8993
  };
6680
- return (0, import_react15.createElement)(
8994
+ const avatar = buildAvatar(avatarSeed);
8995
+ return (0, import_react17.createElement)(
6681
8996
  "div",
6682
8997
  { className: "dsh-leader-agent-agent-bubble" },
6683
- (0, import_react15.createElement)(
8998
+ (0, import_react17.createElement)(
6684
8999
  "div",
6685
9000
  { className: "dsh-leader-agent-agent-bubble__identity" },
6686
- (0, import_react15.createElement)("img", {
6687
- className: "dsh-leader-agent-agent-bubble__avatar",
6688
- src: agentAvatarDataUri(avatarSeed),
6689
- alt: ""
6690
- }),
6691
- (0, import_react15.createElement)(
9001
+ (0, import_react17.createElement)(
9002
+ "span",
9003
+ { className: "dsh-leader-agent-agent-bubble__avatar", "aria-hidden": "true" },
9004
+ (0, import_react17.createElement)(
9005
+ "svg",
9006
+ { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 100", focusable: "false", "data-shape": avatar.shape },
9007
+ (0, import_react17.createElement)(
9008
+ "g",
9009
+ { fill: avatar.head, stroke: avatar.stroke, strokeWidth: avatar.strokeWidth, strokeLinejoin: "round" },
9010
+ avatar.body.map((d, index) => (0, import_react17.createElement)("path", { key: index, d }))
9011
+ ),
9012
+ (0, import_react17.createElement)(
9013
+ "g",
9014
+ { className: AVATAR_EYE_CLASS, fill: avatar.eye },
9015
+ avatar.eyes.map((d, index) => (0, import_react17.createElement)("path", { key: index, d }))
9016
+ )
9017
+ )
9018
+ ),
9019
+ (0, import_react17.createElement)(
6692
9020
  "button",
6693
9021
  {
6694
9022
  type: "button",
@@ -6699,20 +9027,20 @@ function AgentBubble({ name, avatarSeed, openTitle, onOpenName, body, format, ti
6699
9027
  name
6700
9028
  )
6701
9029
  ),
6702
- (0, import_react15.createElement)(
9030
+ (0, import_react17.createElement)(
6703
9031
  "div",
6704
9032
  { className: "dsh-leader-agent-agent-bubble__bubble" },
6705
9033
  // 裁剪只发生在正文层:按钮在气泡内、正文外,否则展开开关会跟着两行水位被裁掉
6706
- (0, import_react15.createElement)(
9034
+ (0, import_react17.createElement)(
6707
9035
  "div",
6708
9036
  {
6709
9037
  ref: bubbleRef,
6710
9038
  className: "dsh-leader-agent-agent-bubble__content",
6711
9039
  "data-collapsed": expanded ? void 0 : "true"
6712
9040
  },
6713
- format === "markdown" ? (0, import_react15.createElement)(Markdown, { source: body }) : (0, import_react15.createElement)("div", { className: "dsh-leader-agent-agent-bubble__plain" }, body)
9041
+ format === "markdown" ? (0, import_react17.createElement)(Markdown, { source: body, t }) : (0, import_react17.createElement)("div", { className: "dsh-leader-agent-agent-bubble__plain" }, body)
6714
9042
  ),
6715
- overflowing ? (0, import_react15.createElement)(
9043
+ overflowing ? (0, import_react17.createElement)(
6716
9044
  "button",
6717
9045
  {
6718
9046
  type: "button",
@@ -6720,20 +9048,20 @@ function AgentBubble({ name, avatarSeed, openTitle, onOpenName, body, format, ti
6720
9048
  "aria-expanded": expanded,
6721
9049
  onClick: () => setExpanded((value) => !value)
6722
9050
  },
6723
- expanded ? "\u6536\u8D77" : "\u5C55\u793A\u66F4\u591A"
9051
+ expanded ? t("common.collapse") : t("bubble.more")
6724
9052
  ) : null
6725
9053
  ),
6726
- (0, import_react15.createElement)(
9054
+ (0, import_react17.createElement)(
6727
9055
  "div",
6728
9056
  { className: "dsh-leader-agent-agent-bubble__meta" },
6729
- (0, import_react15.createElement)("span", { className: "dsh-leader-agent-agent-bubble__time" }, formatBubbleClock(time)),
6730
- (0, import_react15.createElement)(
9057
+ (0, import_react17.createElement)("span", { className: "dsh-leader-agent-agent-bubble__time" }, formatBubbleClock(time, t)),
9058
+ (0, import_react17.createElement)(
6731
9059
  "button",
6732
9060
  {
6733
9061
  type: "button",
6734
9062
  className: "dsh-leader-agent-agent-bubble__copy",
6735
- "aria-label": copied ? "\u5DF2\u590D\u5236" : "\u590D\u5236",
6736
- title: copied ? "\u5DF2\u590D\u5236" : "\u590D\u5236",
9063
+ "aria-label": copied ? t("bubble.copied") : t("bubble.copy"),
9064
+ title: copied ? t("bubble.copied") : t("bubble.copy"),
6737
9065
  onClick: () => {
6738
9066
  void copy();
6739
9067
  }
@@ -6745,19 +9073,20 @@ function AgentBubble({ name, avatarSeed, openTitle, onOpenName, body, format, ti
6745
9073
  }
6746
9074
 
6747
9075
  // src/client/worker-report-view.js
6748
- function WorkerReportView({ node, openSession }) {
9076
+ function WorkerReportView({ node, openSession, t }) {
6749
9077
  const data = node?.data;
6750
9078
  if (data === void 0) return null;
6751
- return (0, import_react16.createElement)(AgentBubble, {
9079
+ return (0, import_react18.createElement)(AgentBubble, {
6752
9080
  name: data.name,
6753
9081
  avatarSeed: data.name,
6754
- openTitle: `\u6253\u5F00 ${data.name} \u7684\u5B50\u4F1A\u8BDD`,
9082
+ openTitle: t("bubble.openSession", { name: data.name }),
6755
9083
  onOpenName: () => openSession?.(data.childSessionId),
6756
9084
  // 旧回报缺 report,回退整条通知正文;失败原因与逐行协议字段走纯文本,
6757
9085
  // 判据见 workerReportFormat。
6758
9086
  body: workerReportBody(data),
6759
9087
  format: workerReportFormat(data),
6760
- time: data.time
9088
+ time: data.time,
9089
+ t
6761
9090
  });
6762
9091
  }
6763
9092
 
@@ -6815,11 +9144,11 @@ var workerTaskDefinition = {
6815
9144
  };
6816
9145
 
6817
9146
  // src/client/worker-task-view.js
6818
- var import_react17 = require("react");
9147
+ var import_react19 = require("react");
6819
9148
 
6820
9149
  // src/client/worker-task-styles.js
6821
- var STYLE_ID7 = "dsh-leader-agent-worker-task";
6822
- var STYLE_TEXT7 = `
9150
+ var STYLE_ID9 = "dsh-leader-agent-worker-task";
9151
+ var STYLE_TEXT9 = `
6823
9152
  .dsh-leader-agent-worker-task {
6824
9153
  display: flex;
6825
9154
  flex-direction: column;
@@ -6886,18 +9215,18 @@ var STYLE_TEXT7 = `
6886
9215
  `;
6887
9216
  function ensureWorkerTaskStyles() {
6888
9217
  if (typeof document === "undefined") return;
6889
- if (document.getElementById(STYLE_ID7) !== null) return;
9218
+ if (document.getElementById(STYLE_ID9) !== null) return;
6890
9219
  const style = document.createElement("style");
6891
- style.id = STYLE_ID7;
6892
- style.textContent = STYLE_TEXT7;
9220
+ style.id = STYLE_ID9;
9221
+ style.textContent = STYLE_TEXT9;
6893
9222
  document.head.append(style);
6894
9223
  }
6895
9224
 
6896
9225
  // src/client/worker-task-view.js
6897
- function WorkerTaskView({ node }) {
9226
+ function WorkerTaskView({ node, t }) {
6898
9227
  const data = node?.data;
6899
- const [copied, setCopied] = (0, import_react17.useState)(false);
6900
- (0, import_react17.useLayoutEffect)(() => {
9228
+ const [copied, setCopied] = (0, import_react19.useState)(false);
9229
+ (0, import_react19.useLayoutEffect)(() => {
6901
9230
  ensureWorkerTaskStyles();
6902
9231
  }, []);
6903
9232
  if (data === void 0) return null;
@@ -6911,34 +9240,34 @@ function WorkerTaskView({ node }) {
6911
9240
  setCopied(true);
6912
9241
  setTimeout(() => setCopied(false), 1500);
6913
9242
  };
6914
- return (0, import_react17.createElement)(
9243
+ return (0, import_react19.createElement)(
6915
9244
  "div",
6916
9245
  { className: "dsh-leader-agent-worker-task" },
6917
- (0, import_react17.createElement)(
9246
+ (0, import_react19.createElement)(
6918
9247
  "div",
6919
9248
  {
6920
9249
  className: "dsh-leader-agent-worker-task__bubble",
6921
9250
  // 与宿主用户气泡同一标记,便于界面侧把这块内容当消息正文处理。
6922
9251
  "data-message-bubble": "",
6923
9252
  // 形态与用户自己的消息一样,只能靠内容判断来源;这两条只做悬停与读屏提示。
6924
- title: "Leader \u6D3E\u53D1\u7684\u4EFB\u52A1",
6925
- "aria-label": "Leader \u6D3E\u53D1\u7684\u4EFB\u52A1"
9253
+ title: t("bubble.taskTitle"),
9254
+ "aria-label": t("bubble.taskTitle")
6926
9255
  },
6927
9256
  // 与 assistant 内容同套 Markdown:原文直接交给基线 MarkdownText,不补硬换行、
6928
9257
  // 不做行级改写;单换行按 Markdown 合并。
6929
- (0, import_react17.createElement)(Markdown, { source: body, variant: "compact" })
9258
+ (0, import_react19.createElement)(Markdown, { source: body, variant: "compact", t })
6930
9259
  ),
6931
- (0, import_react17.createElement)(
9260
+ (0, import_react19.createElement)(
6932
9261
  "div",
6933
9262
  { className: "dsh-leader-agent-worker-task__meta" },
6934
- (0, import_react17.createElement)("span", { className: "dsh-leader-agent-worker-task__time" }, formatBubbleClock(data.time)),
6935
- (0, import_react17.createElement)(
9263
+ (0, import_react19.createElement)("span", { className: "dsh-leader-agent-worker-task__time" }, formatBubbleClock(data.time, t)),
9264
+ (0, import_react19.createElement)(
6936
9265
  "button",
6937
9266
  {
6938
9267
  type: "button",
6939
9268
  className: "dsh-leader-agent-worker-task__copy",
6940
- "aria-label": copied ? "\u5DF2\u590D\u5236" : "\u590D\u5236",
6941
- title: copied ? "\u5DF2\u590D\u5236" : "\u590D\u5236",
9269
+ "aria-label": copied ? t("bubble.copied") : t("bubble.copy"),
9270
+ title: copied ? t("bubble.copied") : t("bubble.copy"),
6942
9271
  onClick: () => {
6943
9272
  void copy();
6944
9273
  }
@@ -6954,20 +9283,37 @@ var PLUGIN_ID = "dsh-leader-agent";
6954
9283
  var inject = ["slots", "sidebarRightTabs", "sessions", "locale"];
6955
9284
  function apply(ctx) {
6956
9285
  ctx.effect(
6957
- () => ctx.locale.register(SLOT_LOCALE_NAMESPACE, { zh, en }),
9286
+ () => ctx.locale.register(SLOT_LOCALE_NAMESPACE, LOCALE_UI),
6958
9287
  "dsh-leader-agent \u69FD\u4F4D\u663E\u793A\u540D"
6959
9288
  );
9289
+ const t = ctx.locale.bind(SLOT_LOCALE_NAMESPACE);
9290
+ const hostLocales = ctx.locale?.getSnapshot?.()?.locales;
9291
+ if (Array.isArray(hostLocales)) {
9292
+ for (const code of unknownLocaleCodes(LOCALE_UI, hostLocales)) {
9293
+ const message = `dsh-leader-agent: locale/${code}.json \u4E0D\u5728\u5BBF\u4E3B\u8BED\u8A00\u76EE\u5F55\u91CC\uFF0C\u8FD0\u884C\u65F6\u4E0D\u4F1A\u88AB\u9009\u4E2D`;
9294
+ ctx.logger?.warn?.(message);
9295
+ console.warn(message);
9296
+ }
9297
+ }
6960
9298
  ctx.effect(() => ctx.sidebarRightTabs.register({
6961
9299
  id: PLUGIN_ID,
6962
9300
  kind: "dsh-leader-agent-board",
6963
- title: () => "\u770B\u677F",
9301
+ // 右栏按会话存布局:切会话时宿主会卸载非当前会话的栏。看板保留已访问的
9302
+ // body(keepMounted),切回来不重挂、不重新拉项目与卡片,避免闪一下。
9303
+ keepMounted: true,
9304
+ title: () => t("tab.board"),
6964
9305
  guide: [{
6965
9306
  id: "board",
6966
9307
  order: 10,
6967
- title: () => "\u770B\u677F",
6968
- description: () => "\u9879\u76EE leader \u4E0E worker \u4F1A\u8BDD\u91CC\u7684\u4EFB\u52A1\u4EA4\u4ED8\u770B\u677F"
9308
+ title: () => t("tab.board"),
9309
+ description: () => t("tab.board.description")
6969
9310
  }]
6970
9311
  }), "dsh-leader-agent \u770B\u677F tab \u7C7B\u578B");
9312
+ ctx.effect(() => ctx.slots.inject("sidebar.right.pane.tab.title", () => ctx.slots.register({
9313
+ name: "sidebar.right.pane.tab.title",
9314
+ key: PLUGIN_ID,
9315
+ locale: SLOT_LOCALE_NAMESPACE
9316
+ }, BoardTabTitle)), "dsh-leader-agent \u770B\u677F tab \u6807\u9898");
6971
9317
  ctx.effect(() => ctx.slots.inject("sidebar.right.pane.tab", () => ctx.slots.register({
6972
9318
  name: "sidebar.right.pane.tab",
6973
9319
  key: PLUGIN_ID,
@@ -6977,6 +9323,7 @@ function apply(ctx) {
6977
9323
  inject: () => ({
6978
9324
  getSessions: () => ctx.sessions,
6979
9325
  getUiWorkspace: () => ctx.get("uiWorkspace"),
9326
+ getSidebarRight: () => ctx.get("sidebarRight"),
6980
9327
  callRemote: (method, args) => callProjectRemote(ctx, method, args)
6981
9328
  })
6982
9329
  }, BoardBody)), "dsh-leader-agent \u770B\u677F\u9762\u677F");
@@ -6995,7 +9342,8 @@ function apply(ctx) {
6995
9342
  name: "sidebar.footer.action",
6996
9343
  id: "dsh-leader-agent-projects",
6997
9344
  order: 10,
6998
- label: "\u9879\u76EE",
9345
+ label: () => t("project.label"),
9346
+ locale: SLOT_LOCALE_NAMESPACE,
6999
9347
  inject: () => ({
7000
9348
  callRemote: (method, args) => callProjectRemote(ctx, method, args),
7001
9349
  getUiWorkspace: () => ctx.get("uiWorkspace"),
@@ -7010,6 +9358,28 @@ function apply(ctx) {
7010
9358
  id: "dsh-leader-agent-toast",
7011
9359
  order: 20
7012
9360
  }, ToastOverlay)), "dsh-leader-agent \u63D0\u793A\u6D6E\u5C42");
9361
+ ctx.effect(() => ctx.slots.inject("shell.overlay", () => ctx.slots.register({
9362
+ name: "shell.overlay",
9363
+ id: "dsh-leader-agent-session-tabs",
9364
+ order: 30,
9365
+ locale: SLOT_LOCALE_NAMESPACE,
9366
+ inject: () => ({
9367
+ callRemote: (method, args) => callProjectRemote(ctx, method, args),
9368
+ getSessions: () => ctx.sessions,
9369
+ getUiWorkspace: () => ctx.get("uiWorkspace"),
9370
+ getLayout: () => ctx.get("layout"),
9371
+ getSidebarRight: () => ctx.get("sidebarRight"),
9372
+ // 「更多」菜单走宿主的 contextMenus 服务:标签栏接管按钮本身,菜单项
9373
+ // 仍由宿主与其它插件按 sessionHeader 目标注册,不在本仓复制一份。
9374
+ getContextMenus: () => ctx.get("contextMenus")
9375
+ })
9376
+ }, SessionTabsAnchor)), "dsh-leader-agent \u4F1A\u8BDD\u6807\u7B7E\u680F");
9377
+ ctx.effect(() => ctx.slots.inject("shell.overlay", () => ctx.slots.register({
9378
+ name: "shell.overlay",
9379
+ id: "dsh-leader-agent-leader-changes",
9380
+ order: 40,
9381
+ inject: () => ({ getSessions: () => ctx.sessions })
9382
+ }, LeaderChangesAnchor)), "dsh-leader-agent leader \u6539\u52A8\u5361\u7247\u9690\u85CF");
7013
9383
  ctx.inject(["uiConversation"], function mountLeaderViewFiber(conversationCtx) {
7014
9384
  mountLeaderView(conversationCtx);
7015
9385
  mountGuideCard(conversationCtx);
@@ -7018,13 +9388,15 @@ function apply(ctx) {
7018
9388
  ctx.inject(["remote"], function mountProjectChannel(remoteCtx) {
7019
9389
  void mountProjectRemote(remoteCtx).catch((error) => {
7020
9390
  const message = error instanceof Error ? error.message : String(error);
7021
- reportProjectRemoteError(message);
7022
9391
  remoteCtx.logger?.warn?.(`dsh-leader-agent: \u9879\u76EE\u901A\u9053\u6302\u8F7D\u5931\u8D25\uFF1A${message}`);
7023
9392
  });
7024
9393
  watchLeaderSessions(remoteCtx);
7025
9394
  mountBoardMonitor(ctx);
7026
9395
  });
7027
9396
  }
9397
+ function BoardTabTitle({ t }) {
9398
+ return t("tab.board");
9399
+ }
7028
9400
  function mountBoardMonitor(ctx) {
7029
9401
  const sidebarRight = ctx.get("sidebarRight");
7030
9402
  if (sidebarRight === void 0 || sidebarRight === null) {
@@ -7056,6 +9428,7 @@ function mountMessageBubbles(ctx) {
7056
9428
  ctx.effect(() => ctx.slots.inject("conversation.chat.node", () => ctx.slots.register({
7057
9429
  name: "conversation.chat.node",
7058
9430
  key: bubble.kind,
9431
+ locale: SLOT_LOCALE_NAMESPACE,
7059
9432
  // `uiWorkspace` 只挂在 web-app bundle 上,写进 inject 的服务缺失会让整个插件
7060
9433
  // 挂起——惰性获取,点击名字时才取。
7061
9434
  inject: () => ({