dsh-leader-agent 0.6.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.
- package/.agents/skills/e2e-scenarios/SKILL.md +3 -1
- package/.agents/skills/leader-mode/SKILL.md +1 -1
- package/.agents/skills/leader-mode/playbooks/program.md +1 -1
- package/.agents/skills/leader-mode/references/parallel.md +1 -1
- package/README.md +6 -6
- package/README_ZH.md +6 -6
- package/THIRD_PARTY_LICENSE +7 -7
- package/lib/client.js +2287 -676
- package/locale/de.json +134 -0
- package/locale/en.json +128 -0
- package/locale/es.json +134 -0
- package/locale/fr.json +134 -0
- package/locale/ja.json +134 -0
- package/locale/pt.json +134 -0
- package/locale/ru.json +134 -0
- package/locale/zh.json +128 -0
- package/package.json +17 -4
- package/src/client/agent-bubble-styles.js +31 -1
- package/src/client/agent-bubble-view.js +42 -17
- package/src/client/board-card.js +18 -16
- package/src/client/board-projection.js +6 -2
- package/src/client/board-styles.js +11 -41
- package/src/client/board.js +31 -23
- package/src/client/bubble-clock.js +10 -6
- package/src/client/card-detail-view.js +8 -11
- package/src/client/card-detail.js +12 -11
- package/src/client/card-links-editor.js +27 -15
- package/src/client/index.js +59 -8
- package/src/client/leader-changes-anchor.js +51 -0
- package/src/client/leader-changes.js +150 -0
- package/src/client/leader-view-logic.js +2 -1
- package/src/client/leader-view.js +1 -1
- package/src/client/locales.generated.js +1028 -0
- package/src/client/locales.js +27 -35
- package/src/client/main-panel.js +73 -0
- package/src/client/markdown.js +34 -11
- package/src/client/project-changes.js +2 -1
- package/src/client/project-panel-logic.js +24 -17
- package/src/client/project-panel.js +47 -45
- package/src/client/project-remote.js +56 -29
- package/src/client/project-section.js +25 -18
- package/src/client/ready-signal.js +1 -1
- package/src/client/session-tabs-logic.js +20 -6
- package/src/client/session-tabs.js +139 -53
- package/src/client/session-watermark.js +10 -6
- package/src/client/signal-styles.js +56 -0
- package/src/client/toast-view.js +1 -0
- package/src/client/worker-report-avatar.js +243 -51
- package/src/client/worker-report-view.js +4 -2
- package/src/client/worker-task-view.js +8 -7
- package/src/host/cards/card-context.js +1 -1
- package/src/host/cards/store.js +24 -5
- package/src/host/dispatch.js +115 -20
- package/src/host/index.js +17 -4
- package/src/host/projects/remote.js +4 -1
- package/src/host/projects/store.js +1 -2
- package/src/host/skills.js +1 -1
- package/src/host/tools/cards.js +54 -9
- package/src/host/tools/gate.js +17 -12
- package/src/host/tools/spawn-worker.js +1 -1
- package/src/host/worker-registry.js +52 -5
- package/src/shared/card-links.js +6 -6
package/lib/client.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
window.__ModuleLoader__.load({ id: "dsh-leader-agent", factory: (require) => {
|
|
2
2
|
/*!
|
|
3
|
-
*
|
|
4
|
-
*
|
|
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
|
|
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,
|
|
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:
|
|
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), {
|
|
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, {
|
|
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);
|
|
@@ -528,16 +537,16 @@ function isHttpUrl(value) {
|
|
|
528
537
|
return normalizeHttpUrl(value) !== null;
|
|
529
538
|
}
|
|
530
539
|
function normalizeLinkDrafts(links) {
|
|
531
|
-
if (!Array.isArray(links)) return { error: "
|
|
540
|
+
if (!Array.isArray(links)) return { error: { code: "notArray" } };
|
|
532
541
|
const normalized = [];
|
|
533
542
|
const seenIds = /* @__PURE__ */ new Set();
|
|
534
543
|
for (const entry of links) {
|
|
535
544
|
if (entry === null || typeof entry !== "object" || Array.isArray(entry)) {
|
|
536
|
-
return { error: "
|
|
545
|
+
return { error: { code: "entryNotObject" } };
|
|
537
546
|
}
|
|
538
547
|
for (const field of ["id", "label", "url", "purpose"]) {
|
|
539
548
|
if (entry[field] !== void 0 && typeof entry[field] !== "string") {
|
|
540
|
-
return { error:
|
|
549
|
+
return { error: { code: "fieldNotString", params: { field } } };
|
|
541
550
|
}
|
|
542
551
|
}
|
|
543
552
|
const label = (entry.label ?? "").trim();
|
|
@@ -545,13 +554,13 @@ function normalizeLinkDrafts(links) {
|
|
|
545
554
|
const purpose = (entry.purpose ?? "").trim();
|
|
546
555
|
if (label === "") {
|
|
547
556
|
if (rawUrl === "" && purpose === "") continue;
|
|
548
|
-
return { error:
|
|
557
|
+
return { error: { code: rawUrl === "" ? "labelMissingPurpose" : "labelMissingUrl" } };
|
|
549
558
|
}
|
|
550
559
|
let url = "";
|
|
551
560
|
if (rawUrl !== "") {
|
|
552
561
|
const normalizedUrl = normalizeHttpUrl(rawUrl);
|
|
553
562
|
if (normalizedUrl === null) {
|
|
554
|
-
return { error:
|
|
563
|
+
return { error: { code: "invalidUrl", params: { label } } };
|
|
555
564
|
}
|
|
556
565
|
url = normalizedUrl;
|
|
557
566
|
}
|
|
@@ -586,37 +595,1045 @@ function planLinkRow(links, visibleCount) {
|
|
|
586
595
|
};
|
|
587
596
|
}
|
|
588
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
|
+
|
|
589
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
|
+
}
|
|
590
1631
|
var SLOT_LOCALE_NAMESPACE = "dsh-leader-agent";
|
|
591
1632
|
var SLOT_LABEL_KEYS = Object.freeze({
|
|
592
1633
|
discuss: "slot.discuss",
|
|
593
1634
|
dev: "slot.dev",
|
|
594
1635
|
review: "slot.review"
|
|
595
1636
|
});
|
|
596
|
-
var zh = Object.freeze({
|
|
597
|
-
"slot.discuss": "\u8BA8\u8BBA",
|
|
598
|
-
"slot.dev": "\u5F00\u53D1",
|
|
599
|
-
"slot.review": "\u5BA1\u6838",
|
|
600
|
-
"guide.title": "\u8FD9\u4E2A\u76EE\u5F55\u6709\u4E00\u4E2A Leader \u4E86",
|
|
601
|
-
"guide.steps": "\u4F60\u53EF\u4EE5\u8BA9\u5B83\u5EFA\u4EFB\u52A1\u5361\u3001\u7ED9 Agent \u6D3E\u6D3B\uFF0C\u5728\u53F3\u680F\u770B\u677F\u8DDF\u8FDB",
|
|
602
|
-
"guide.action.intro": "\u4E86\u89E3\u600E\u4E48\u7528",
|
|
603
|
-
"guide.action.dismiss": "\u77E5\u9053\u4E86",
|
|
604
|
-
"guide.intro.prompt": "\u8FD9\u4E2A\u9879\u76EE\u8FD8\u6CA1\u914D\u7F6E\uFF0C\u5148\u8BB2\u8BB2 dsh-leader-agent \u600E\u4E48\u7528\u3002",
|
|
605
|
-
"tabs.list": "\u9879\u76EE\u4F1A\u8BDD\u6807\u7B7E",
|
|
606
|
-
"tabs.close": "\u5173\u95ED\u6807\u7B7E"
|
|
607
|
-
});
|
|
608
|
-
var en = Object.freeze({
|
|
609
|
-
"slot.discuss": "Discuss",
|
|
610
|
-
"slot.dev": "Dev",
|
|
611
|
-
"slot.review": "Review",
|
|
612
|
-
"guide.title": "This directory has a Leader",
|
|
613
|
-
"guide.steps": "Open task cards, hand work to Agents, track progress in the board",
|
|
614
|
-
"guide.action.intro": "Show me how to use it",
|
|
615
|
-
"guide.action.dismiss": "Got it",
|
|
616
|
-
"guide.intro.prompt": "This project isn't set up yet \u2014 show me how dsh-leader-agent works.",
|
|
617
|
-
"tabs.list": "Project session tabs",
|
|
618
|
-
"tabs.close": "Close tab"
|
|
619
|
-
});
|
|
620
1637
|
function slotLabel(name, t) {
|
|
621
1638
|
const key = SLOT_LABEL_KEYS[name];
|
|
622
1639
|
if (key === void 0 || typeof t !== "function") return name;
|
|
@@ -812,7 +1829,7 @@ function linkContent(link) {
|
|
|
812
1829
|
(0, import_react2.createElement)("span", { className: "dsh-leader-agent-board-link-label" }, link.label ?? "")
|
|
813
1830
|
);
|
|
814
1831
|
}
|
|
815
|
-
function BoardLinks({ links, onOpenDetail }) {
|
|
1832
|
+
function BoardLinks({ links, onOpenDetail, t }) {
|
|
816
1833
|
const row = (0, import_react2.useRef)(null);
|
|
817
1834
|
const measure = (0, import_react2.useRef)(null);
|
|
818
1835
|
const [visibleCount, setVisibleCount] = (0, import_react2.useState)(links.length);
|
|
@@ -899,28 +1916,29 @@ function BoardLinks({ links, onOpenDetail }) {
|
|
|
899
1916
|
event.stopPropagation();
|
|
900
1917
|
setExpanded((value) => !value);
|
|
901
1918
|
}
|
|
902
|
-
}, expanded ? "
|
|
1919
|
+
}, expanded ? t("common.collapse") : overflow) : null
|
|
903
1920
|
);
|
|
904
1921
|
}
|
|
905
|
-
var
|
|
906
|
-
waiting: "
|
|
907
|
-
attention: "
|
|
908
|
-
running: "
|
|
909
|
-
unread: "
|
|
910
|
-
idle: "
|
|
911
|
-
empty: "
|
|
912
|
-
unknown: "
|
|
913
|
-
none: "
|
|
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"
|
|
914
1931
|
};
|
|
915
1932
|
function BoardSlot({ slot, onOpenSession, labels, t }) {
|
|
916
|
-
const
|
|
1933
|
+
const stateKey = STATE_LABEL_KEYS[slot.state];
|
|
1934
|
+
const stateLabel = stateKey === void 0 ? slot.state : t(stateKey);
|
|
917
1935
|
const name = slotDisplayName(slot.name, labels, t);
|
|
918
1936
|
return (0, import_react2.createElement)(
|
|
919
1937
|
"button",
|
|
920
1938
|
{
|
|
921
1939
|
type: "button",
|
|
922
1940
|
className: "dsh-leader-agent-board-slot",
|
|
923
|
-
title:
|
|
1941
|
+
title: t("board.slot.title", { name, state: stateLabel }),
|
|
924
1942
|
onClick: (event) => {
|
|
925
1943
|
event.stopPropagation();
|
|
926
1944
|
onOpenSession(slot.sessionId);
|
|
@@ -989,12 +2007,12 @@ function BoardCardView({ card, states, now, onOpenDetail, onOpenSession, slotLab
|
|
|
989
2007
|
{ className: "dsh-leader-agent-board-signal-slot" },
|
|
990
2008
|
(0, import_react2.createElement)("span", {
|
|
991
2009
|
className: `dsh-leader-agent-board-signal dsh-leader-agent-board-signal-${signal}${hollow ? " dsh-leader-agent-board-signal-hollow" : ""}`,
|
|
992
|
-
title:
|
|
2010
|
+
title: STATE_LABEL_KEYS[signal] === void 0 ? signal : t(STATE_LABEL_KEYS[signal])
|
|
993
2011
|
})
|
|
994
2012
|
)
|
|
995
2013
|
),
|
|
996
2014
|
(0, import_react2.createElement)("span", { className: "dsh-leader-agent-board-card-title", title: card.title }, card.title ?? ""),
|
|
997
|
-
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,
|
|
998
2016
|
slots.length > 0 ? (0, import_react2.createElement)(
|
|
999
2017
|
"div",
|
|
1000
2018
|
{ className: "dsh-leader-agent-board-card-slots" },
|
|
@@ -1356,11 +2374,10 @@ function ModalShell({
|
|
|
1356
2374
|
}
|
|
1357
2375
|
|
|
1358
2376
|
// src/client/card-detail-view.js
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
if (status === "
|
|
1362
|
-
|
|
1363
|
-
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");
|
|
1364
2381
|
}
|
|
1365
2382
|
function detailSections(card) {
|
|
1366
2383
|
const spec = typeof card?.spec === "string" && card.spec !== "" ? card.spec : null;
|
|
@@ -1375,14 +2392,155 @@ function canEditCardLinks(card) {
|
|
|
1375
2392
|
function canDeleteCard(card) {
|
|
1376
2393
|
return typeof card?.id === "string" && card.id !== "";
|
|
1377
2394
|
}
|
|
1378
|
-
function describeCardRemoval(card) {
|
|
1379
|
-
|
|
1380
|
-
const title = card?.title ?? "";
|
|
1381
|
-
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 ?? "" });
|
|
1382
2397
|
}
|
|
1383
2398
|
|
|
1384
2399
|
// src/client/card-links-editor.js
|
|
1385
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
|
+
});
|
|
1386
2544
|
var draftSequence = 0;
|
|
1387
2545
|
function nextDraftKey() {
|
|
1388
2546
|
draftSequence += 1;
|
|
@@ -1406,7 +2564,7 @@ function toDrafts(links) {
|
|
|
1406
2564
|
function isSubmitKey(event) {
|
|
1407
2565
|
return event.key === "Enter" && event.nativeEvent?.isComposing !== true && event.nativeEvent?.keyCode !== 229;
|
|
1408
2566
|
}
|
|
1409
|
-
function CardLinksEditor({ card, onSave, onCancel }) {
|
|
2567
|
+
function CardLinksEditor({ card, onSave, onCancel, t }) {
|
|
1410
2568
|
const [drafts, setDrafts] = (0, import_react4.useState)(() => toDrafts(card?.links));
|
|
1411
2569
|
const [error, setError] = (0, import_react4.useState)("");
|
|
1412
2570
|
const [saving, setSaving] = (0, import_react4.useState)(false);
|
|
@@ -1444,7 +2602,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
|
|
|
1444
2602
|
if (saving) return;
|
|
1445
2603
|
const normalized = normalizeLinkDrafts(drafts.map(({ key: _key, ...draft }) => draft));
|
|
1446
2604
|
if (normalized.error !== void 0) {
|
|
1447
|
-
setError(normalized.error);
|
|
2605
|
+
setError(t(LINK_ERROR_KEYS[normalized.error.code], normalized.error.params));
|
|
1448
2606
|
return;
|
|
1449
2607
|
}
|
|
1450
2608
|
setError("");
|
|
@@ -1455,7 +2613,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
|
|
|
1455
2613
|
try {
|
|
1456
2614
|
await onSave(normalized.links);
|
|
1457
2615
|
} catch (cause) {
|
|
1458
|
-
setError(
|
|
2616
|
+
setError(projectRemoteErrorText(cause, t, "card.links.saveFailed"));
|
|
1459
2617
|
restoreFocus.current = true;
|
|
1460
2618
|
} finally {
|
|
1461
2619
|
setSaving(false);
|
|
@@ -1467,7 +2625,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
|
|
|
1467
2625
|
drafts.length === 0 ? (0, import_react4.createElement)(
|
|
1468
2626
|
"p",
|
|
1469
2627
|
{ className: "dsh-leader-agent-link-editor-empty" },
|
|
1470
|
-
"
|
|
2628
|
+
t("card.links.empty")
|
|
1471
2629
|
) : drafts.map((draft, index) => (0, import_react4.createElement)(
|
|
1472
2630
|
"div",
|
|
1473
2631
|
{ key: draft.key, className: "dsh-leader-agent-link-editor-row" },
|
|
@@ -1478,8 +2636,8 @@ function CardLinksEditor({ card, onSave, onCancel }) {
|
|
|
1478
2636
|
type: "text",
|
|
1479
2637
|
className: "dsh-leader-agent-link-editor-label",
|
|
1480
2638
|
value: draft.label,
|
|
1481
|
-
placeholder: "
|
|
1482
|
-
"aria-label": "
|
|
2639
|
+
placeholder: t("card.links.label"),
|
|
2640
|
+
"aria-label": t("card.links.labelAria"),
|
|
1483
2641
|
...index === 0 ? { "data-modal-autofocus": "" } : {},
|
|
1484
2642
|
disabled: saving,
|
|
1485
2643
|
onChange: (event) => update(draft.key, "label", event.target.value),
|
|
@@ -1492,7 +2650,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
|
|
|
1492
2650
|
className: "dsh-leader-agent-link-editor-url",
|
|
1493
2651
|
value: draft.url,
|
|
1494
2652
|
placeholder: "https://\u2026",
|
|
1495
|
-
"aria-label": "
|
|
2653
|
+
"aria-label": t("card.links.urlAria"),
|
|
1496
2654
|
disabled: saving,
|
|
1497
2655
|
onChange: (event) => update(draft.key, "url", event.target.value),
|
|
1498
2656
|
onKeyDown: (event) => {
|
|
@@ -1504,8 +2662,8 @@ function CardLinksEditor({ card, onSave, onCancel }) {
|
|
|
1504
2662
|
{
|
|
1505
2663
|
type: "button",
|
|
1506
2664
|
className: "dsh-leader-agent-link-editor-remove",
|
|
1507
|
-
title: "
|
|
1508
|
-
"aria-label": "
|
|
2665
|
+
title: t("card.links.remove"),
|
|
2666
|
+
"aria-label": t("card.links.remove"),
|
|
1509
2667
|
disabled: saving,
|
|
1510
2668
|
onClick: () => remove(draft.key)
|
|
1511
2669
|
},
|
|
@@ -1520,13 +2678,13 @@ function CardLinksEditor({ card, onSave, onCancel }) {
|
|
|
1520
2678
|
disabled: saving,
|
|
1521
2679
|
onClick: () => update(draft.key, "purpose", "")
|
|
1522
2680
|
},
|
|
1523
|
-
"
|
|
2681
|
+
t("card.links.addPurpose")
|
|
1524
2682
|
) : (0, import_react4.createElement)("input", {
|
|
1525
2683
|
type: "text",
|
|
1526
2684
|
className: "dsh-leader-agent-link-editor-purpose",
|
|
1527
2685
|
value: draft.purpose,
|
|
1528
|
-
placeholder: "
|
|
1529
|
-
"aria-label": "
|
|
2686
|
+
placeholder: t("card.links.purpose"),
|
|
2687
|
+
"aria-label": t("card.links.purposeAria"),
|
|
1530
2688
|
disabled: saving,
|
|
1531
2689
|
onChange: (event) => update(draft.key, "purpose", event.target.value),
|
|
1532
2690
|
onKeyDown: (event) => {
|
|
@@ -1542,7 +2700,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
|
|
|
1542
2700
|
disabled: saving,
|
|
1543
2701
|
onClick: add
|
|
1544
2702
|
},
|
|
1545
|
-
"
|
|
2703
|
+
t("card.links.add")
|
|
1546
2704
|
),
|
|
1547
2705
|
error === "" ? null : (0, import_react4.createElement)("div", { className: "dsh-leader-agent-link-editor-error", role: "alert" }, error),
|
|
1548
2706
|
(0, import_react4.createElement)(
|
|
@@ -1556,7 +2714,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
|
|
|
1556
2714
|
disabled: saving,
|
|
1557
2715
|
onClick: onCancel
|
|
1558
2716
|
},
|
|
1559
|
-
"
|
|
2717
|
+
t("common.cancel")
|
|
1560
2718
|
),
|
|
1561
2719
|
(0, import_react4.createElement)(
|
|
1562
2720
|
"button",
|
|
@@ -1568,7 +2726,7 @@ function CardLinksEditor({ card, onSave, onCancel }) {
|
|
|
1568
2726
|
void submit();
|
|
1569
2727
|
}
|
|
1570
2728
|
},
|
|
1571
|
-
saving ? "
|
|
2729
|
+
saving ? t("common.saving") : t("common.save")
|
|
1572
2730
|
)
|
|
1573
2731
|
)
|
|
1574
2732
|
);
|
|
@@ -1577,17 +2735,69 @@ function CardLinksEditor({ card, onSave, onCancel }) {
|
|
|
1577
2735
|
// src/client/markdown.js
|
|
1578
2736
|
var import_react5 = require("react");
|
|
1579
2737
|
var import_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
1580
|
-
var
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
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 }) {
|
|
1589
2761
|
if (typeof source !== "string" || source === "") return null;
|
|
1590
|
-
return (0, import_react5.createElement)(import_dsh_client_ui_primitives.MarkdownText, { text: source, labels:
|
|
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
|
+
`;
|
|
1591
2801
|
}
|
|
1592
2802
|
|
|
1593
2803
|
// src/client/board-styles.js
|
|
@@ -1683,52 +2893,26 @@ var STYLE_TEXT2 = `
|
|
|
1683
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
|
|
1684
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
|
|
1685
2895
|
label-caption\u3001\u6298\u53E0\u5F00\u5173\u7528 label-secondary\uFF09\uFF0C\u4E24\u6761\u754C\u7EBF\u4E92\u4E0D\u8D8A\u754C\u3002
|
|
1686
|
-
--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
|
|
1687
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 */
|
|
1688
|
-
|
|
1689
|
-
display: inline-block;
|
|
1690
|
-
box-sizing: border-box;
|
|
1691
|
-
width: 8px;
|
|
1692
|
-
height: 8px;
|
|
1693
|
-
border-radius: 50%;
|
|
1694
|
-
corner-shape: round;
|
|
1695
|
-
--dsh-leader-agent-signal-tone: var(--dsw-alias-label-tertiary);
|
|
1696
|
-
background: var(--dsh-leader-agent-signal-tone);
|
|
1697
|
-
opacity: 0.4;
|
|
1698
|
-
}
|
|
2898
|
+
${signalStyleText("dsh-leader-agent-board-signal")}
|
|
1699
2899
|
|
|
1700
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 */
|
|
1701
2901
|
.dsh-leader-agent-board-signal-waiting {
|
|
1702
|
-
--dsh-leader-agent-signal-tone: var(--dsw-static-blue-500);
|
|
1703
|
-
opacity: 1;
|
|
1704
|
-
animation: dsh-leader-agent-board-pulse 1.6s ease-in-out infinite;
|
|
1705
|
-
}
|
|
1706
|
-
|
|
1707
|
-
.dsh-leader-agent-board-signal-unread {
|
|
1708
|
-
--dsh-leader-agent-signal-tone: var(--dsw-static-blue-500);
|
|
1709
|
-
opacity: 1;
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
.dsh-leader-agent-board-signal-running {
|
|
1713
|
-
--dsh-leader-agent-signal-tone: var(--dsw-alias-state-warn-primary);
|
|
2902
|
+
--dsh-leader-agent-board-signal-tone: var(--dsw-static-blue-500);
|
|
1714
2903
|
opacity: 1;
|
|
1715
|
-
animation:
|
|
2904
|
+
animation: ${SIGNAL_PULSE_ANIMATION} 1.6s ease-in-out infinite;
|
|
1716
2905
|
}
|
|
1717
2906
|
|
|
1718
2907
|
.dsh-leader-agent-board-signal-attention {
|
|
1719
|
-
--dsh-leader-agent-signal-tone: var(--dsw-alias-state-error-primary);
|
|
2908
|
+
--dsh-leader-agent-board-signal-tone: var(--dsw-alias-state-error-primary);
|
|
1720
2909
|
opacity: 1;
|
|
1721
2910
|
}
|
|
1722
2911
|
|
|
1723
|
-
.dsh-leader-agent-board-signal-idle {
|
|
1724
|
-
--dsh-leader-agent-signal-tone: var(--dsw-alias-label-tertiary);
|
|
1725
|
-
opacity: 0.55;
|
|
1726
|
-
}
|
|
1727
|
-
|
|
1728
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 */
|
|
1729
2913
|
.dsh-leader-agent-board-signal-unknown,
|
|
1730
2914
|
.dsh-leader-agent-board-signal-none {
|
|
1731
|
-
--dsh-leader-agent-signal-tone: var(--dsw-alias-label-tertiary);
|
|
2915
|
+
--dsh-leader-agent-board-signal-tone: var(--dsw-alias-label-tertiary);
|
|
1732
2916
|
background: transparent;
|
|
1733
2917
|
border: 1px dashed var(--dsw-alias-label-tertiary);
|
|
1734
2918
|
opacity: 0.55;
|
|
@@ -1738,16 +2922,10 @@ var STYLE_TEXT2 = `
|
|
|
1738
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 */
|
|
1739
2923
|
.dsh-leader-agent-board-signal-hollow {
|
|
1740
2924
|
background: transparent;
|
|
1741
|
-
border: 1px solid var(--dsh-leader-agent-signal-tone);
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
@keyframes dsh-leader-agent-board-pulse {
|
|
1745
|
-
0%, 100% { opacity: 1; }
|
|
1746
|
-
50% { opacity: 0.35; }
|
|
2925
|
+
border: 1px solid var(--dsh-leader-agent-board-signal-tone);
|
|
1747
2926
|
}
|
|
1748
2927
|
|
|
1749
2928
|
@media (prefers-reduced-motion: reduce) {
|
|
1750
|
-
.dsh-leader-agent-board-signal-running,
|
|
1751
2929
|
.dsh-leader-agent-board-signal-waiting { animation: none; }
|
|
1752
2930
|
}
|
|
1753
2931
|
|
|
@@ -1991,7 +3169,7 @@ var STYLE_TEXT2 = `
|
|
|
1991
3169
|
.dsh-leader-agent-board-slot-dot-waiting {
|
|
1992
3170
|
background: var(--dsw-static-blue-500);
|
|
1993
3171
|
opacity: 1;
|
|
1994
|
-
animation:
|
|
3172
|
+
animation: ${SIGNAL_PULSE_ANIMATION} 1.6s ease-in-out infinite;
|
|
1995
3173
|
}
|
|
1996
3174
|
|
|
1997
3175
|
.dsh-leader-agent-board-slot-dot-unread {
|
|
@@ -2002,7 +3180,7 @@ var STYLE_TEXT2 = `
|
|
|
2002
3180
|
.dsh-leader-agent-board-slot-dot-running {
|
|
2003
3181
|
background: var(--dsw-alias-state-warn-primary);
|
|
2004
3182
|
opacity: 1;
|
|
2005
|
-
animation:
|
|
3183
|
+
animation: ${SIGNAL_PULSE_ANIMATION} 1.6s ease-in-out infinite;
|
|
2006
3184
|
}
|
|
2007
3185
|
|
|
2008
3186
|
.dsh-leader-agent-board-slot-dot-attention {
|
|
@@ -2774,7 +3952,7 @@ function ensureBoardStyles() {
|
|
|
2774
3952
|
}
|
|
2775
3953
|
|
|
2776
3954
|
// src/client/card-detail.js
|
|
2777
|
-
function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFocus = null }) {
|
|
3955
|
+
function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFocus = null, t }) {
|
|
2778
3956
|
const [editing, setEditing] = (0, import_react6.useState)(false);
|
|
2779
3957
|
const editButton = (0, import_react6.useRef)(null);
|
|
2780
3958
|
const wasEditing = (0, import_react6.useRef)(false);
|
|
@@ -2804,7 +3982,7 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
|
|
|
2804
3982
|
open: true,
|
|
2805
3983
|
onClose,
|
|
2806
3984
|
title: card?.title ?? "",
|
|
2807
|
-
closeLabel: "
|
|
3985
|
+
closeLabel: t("common.close"),
|
|
2808
3986
|
headless: true,
|
|
2809
3987
|
wide: true,
|
|
2810
3988
|
restoreFocus,
|
|
@@ -2820,7 +3998,7 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
|
|
|
2820
3998
|
{
|
|
2821
3999
|
type: "button",
|
|
2822
4000
|
className: "dsh-leader-agent-card-detail-close",
|
|
2823
|
-
"aria-label": "
|
|
4001
|
+
"aria-label": t("common.close"),
|
|
2824
4002
|
onClick: onClose
|
|
2825
4003
|
},
|
|
2826
4004
|
productIcon("close-outline", { size: 16 })
|
|
@@ -2845,7 +4023,7 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
|
|
|
2845
4023
|
{
|
|
2846
4024
|
className: `dsh-leader-agent-card-detail-status${done ? " dsh-leader-agent-card-detail-status-done" : ""}`
|
|
2847
4025
|
},
|
|
2848
|
-
statusLabel(card?.status)
|
|
4026
|
+
statusLabel(card?.status, t)
|
|
2849
4027
|
)
|
|
2850
4028
|
),
|
|
2851
4029
|
(0, import_react6.createElement)(
|
|
@@ -2854,20 +4032,20 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
|
|
|
2854
4032
|
sections.spec !== null ? (0, import_react6.createElement)(
|
|
2855
4033
|
"section",
|
|
2856
4034
|
{ className: "dsh-leader-agent-card-detail-section" },
|
|
2857
|
-
(0, import_react6.createElement)("div", { className: "dsh-leader-agent-card-detail-section-title" }, "
|
|
4035
|
+
(0, import_react6.createElement)("div", { className: "dsh-leader-agent-card-detail-section-title" }, t("card.detail.spec")),
|
|
2858
4036
|
(0, import_react6.createElement)(
|
|
2859
4037
|
"div",
|
|
2860
4038
|
{ className: "dsh-leader-agent-card-detail-text" },
|
|
2861
|
-
(0, import_react6.createElement)(Markdown, { source: sections.spec })
|
|
4039
|
+
(0, import_react6.createElement)(Markdown, { source: sections.spec, t })
|
|
2862
4040
|
)
|
|
2863
|
-
) : (0, import_react6.createElement)("div", { className: "dsh-leader-agent-card-detail-muted" },
|
|
4041
|
+
) : (0, import_react6.createElement)("div", { className: "dsh-leader-agent-card-detail-muted" }, t("card.detail.empty")),
|
|
2864
4042
|
sections.links.length > 0 || editable ? (0, import_react6.createElement)(
|
|
2865
4043
|
"section",
|
|
2866
4044
|
{ className: "dsh-leader-agent-card-detail-section" },
|
|
2867
4045
|
(0, import_react6.createElement)(
|
|
2868
4046
|
"div",
|
|
2869
4047
|
{ className: "dsh-leader-agent-card-detail-section-head" },
|
|
2870
|
-
(0, import_react6.createElement)("div", { className: "dsh-leader-agent-card-detail-section-title" }, "
|
|
4048
|
+
(0, import_react6.createElement)("div", { className: "dsh-leader-agent-card-detail-section-title" }, t("card.detail.links")),
|
|
2871
4049
|
editable && !editing ? (0, import_react6.createElement)(
|
|
2872
4050
|
"button",
|
|
2873
4051
|
{
|
|
@@ -2878,7 +4056,7 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
|
|
|
2878
4056
|
setEditing(true);
|
|
2879
4057
|
}
|
|
2880
4058
|
},
|
|
2881
|
-
"
|
|
4059
|
+
t("card.detail.editLinks")
|
|
2882
4060
|
) : null
|
|
2883
4061
|
),
|
|
2884
4062
|
editing ? (0, import_react6.createElement)(CardLinksEditor, {
|
|
@@ -2886,7 +4064,8 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
|
|
|
2886
4064
|
onSave: saveLinks,
|
|
2887
4065
|
onCancel: () => {
|
|
2888
4066
|
setEditing(false);
|
|
2889
|
-
}
|
|
4067
|
+
},
|
|
4068
|
+
t
|
|
2890
4069
|
}) : (0, import_react6.createElement)(
|
|
2891
4070
|
"div",
|
|
2892
4071
|
{ className: "dsh-leader-agent-card-detail-links" },
|
|
@@ -2936,7 +4115,7 @@ function CardDetail({ card, onClose, callRemote, onUpdated, onDelete, restoreFoc
|
|
|
2936
4115
|
onClick: onDelete
|
|
2937
4116
|
},
|
|
2938
4117
|
productIcon("trash-outline", { size: 14 }),
|
|
2939
|
-
"
|
|
4118
|
+
t("card.detail.delete")
|
|
2940
4119
|
)
|
|
2941
4120
|
) : null
|
|
2942
4121
|
)
|
|
@@ -3148,8 +4327,7 @@ function useSlotStates(cards, getSessions, useSessionStatus, parentSessionId) {
|
|
|
3148
4327
|
return merged;
|
|
3149
4328
|
}, [needed, statuses, snapshots]);
|
|
3150
4329
|
}
|
|
3151
|
-
function BoardEmpty({ allDone, projectName }) {
|
|
3152
|
-
const whose = projectName === void 0 ? "\u672C\u9879\u76EE" : `\u300C${projectName}\u300D`;
|
|
4330
|
+
function BoardEmpty({ allDone, projectName, t }) {
|
|
3153
4331
|
return (0, import_react8.createElement)(
|
|
3154
4332
|
"div",
|
|
3155
4333
|
{ className: "dsh-leader-agent-board-empty" },
|
|
@@ -3163,12 +4341,12 @@ function BoardEmpty({ allDone, projectName }) {
|
|
|
3163
4341
|
(0, import_react8.createElement)(
|
|
3164
4342
|
"div",
|
|
3165
4343
|
{ className: "dsh-leader-agent-board-empty-title" },
|
|
3166
|
-
allDone ? "
|
|
4344
|
+
allDone ? t("board.empty.doneTitle") : t("board.empty.title")
|
|
3167
4345
|
),
|
|
3168
4346
|
(0, import_react8.createElement)(
|
|
3169
4347
|
"div",
|
|
3170
4348
|
{ className: "dsh-leader-agent-board-empty-hint" },
|
|
3171
|
-
allDone ?
|
|
4349
|
+
allDone ? projectName === void 0 ? t("board.empty.doneHintOwn") : t("board.empty.doneHintNamed", { project: projectName }) : t("board.empty.hint")
|
|
3172
4350
|
)
|
|
3173
4351
|
);
|
|
3174
4352
|
}
|
|
@@ -3262,7 +4440,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3262
4440
|
});
|
|
3263
4441
|
}).catch((cause) => {
|
|
3264
4442
|
if (cancelled) return;
|
|
3265
|
-
setProjectError(
|
|
4443
|
+
setProjectError(projectRemoteErrorText(cause, t, "board.error.project"));
|
|
3266
4444
|
});
|
|
3267
4445
|
};
|
|
3268
4446
|
load();
|
|
@@ -3276,7 +4454,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3276
4454
|
clearInterval(timer);
|
|
3277
4455
|
window.removeEventListener("focus", onFocus);
|
|
3278
4456
|
};
|
|
3279
|
-
}, [sessionId, callRemote, visible]);
|
|
4457
|
+
}, [sessionId, callRemote, visible, t]);
|
|
3280
4458
|
(0, import_react8.useEffect)(() => {
|
|
3281
4459
|
if (!visible) return void 0;
|
|
3282
4460
|
if (!isBoardViewable(project, sessionId, worker)) return void 0;
|
|
@@ -3292,7 +4470,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3292
4470
|
setCardsError(null);
|
|
3293
4471
|
}).catch((cause) => {
|
|
3294
4472
|
if (cancelled) return;
|
|
3295
|
-
setCardsError(
|
|
4473
|
+
setCardsError(projectRemoteErrorText(cause, t, "board.error.cards"));
|
|
3296
4474
|
});
|
|
3297
4475
|
};
|
|
3298
4476
|
refresh();
|
|
@@ -3306,7 +4484,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3306
4484
|
clearInterval(timer);
|
|
3307
4485
|
window.removeEventListener("focus", onFocus);
|
|
3308
4486
|
};
|
|
3309
|
-
}, [project, worker, callRemote, sessionId, visible]);
|
|
4487
|
+
}, [project, worker, callRemote, sessionId, visible, t]);
|
|
3310
4488
|
(0, import_react8.useEffect)(() => {
|
|
3311
4489
|
if (project === void 0 || !loaded) return;
|
|
3312
4490
|
rememberBoard(project.id, project, cards);
|
|
@@ -3320,7 +4498,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3320
4498
|
),
|
|
3321
4499
|
done: sortDoneCards(cardList.filter((card) => card.status === "done"))
|
|
3322
4500
|
}), [cardList, states]);
|
|
3323
|
-
const doneFold = foldDoneCards(done, doneWatermark);
|
|
4501
|
+
const doneFold = foldDoneCards(done, doneWatermark, t);
|
|
3324
4502
|
const openSession = (0, import_react8.useCallback)((targetSessionId) => {
|
|
3325
4503
|
const uiWorkspace = getUiWorkspace?.();
|
|
3326
4504
|
if (uiWorkspace === void 0 || uiWorkspace === null) return;
|
|
@@ -3354,7 +4532,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3354
4532
|
setDetail((current2) => current2?.card?.id === pendingDelete.id ? null : current2);
|
|
3355
4533
|
setPendingDelete(null);
|
|
3356
4534
|
} catch (error) {
|
|
3357
|
-
setDeleteError(
|
|
4535
|
+
setDeleteError(projectRemoteErrorText(error, t, "board.error.delete"));
|
|
3358
4536
|
} finally {
|
|
3359
4537
|
setDeleteBusy(false);
|
|
3360
4538
|
}
|
|
@@ -3378,12 +4556,12 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3378
4556
|
(0, import_react8.createElement)(
|
|
3379
4557
|
"div",
|
|
3380
4558
|
{ className: "dsh-leader-agent-board-empty-title" },
|
|
3381
|
-
"
|
|
4559
|
+
t("board.noProject.title")
|
|
3382
4560
|
),
|
|
3383
4561
|
(0, import_react8.createElement)(
|
|
3384
4562
|
"div",
|
|
3385
4563
|
{ className: "dsh-leader-agent-board-empty-hint" },
|
|
3386
|
-
"
|
|
4564
|
+
t("board.noProject.hint")
|
|
3387
4565
|
)
|
|
3388
4566
|
) : (0, import_react8.createElement)(BoardSkeleton)
|
|
3389
4567
|
);
|
|
@@ -3393,6 +4571,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3393
4571
|
}
|
|
3394
4572
|
if (view === "leader-dead" || view === "not-viewable") {
|
|
3395
4573
|
const leaderDead = view === "leader-dead";
|
|
4574
|
+
const projectName = project?.name;
|
|
3396
4575
|
return (0, import_react8.createElement)(
|
|
3397
4576
|
"div",
|
|
3398
4577
|
{ className: "dsh-leader-agent-board-list" },
|
|
@@ -3402,12 +4581,12 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3402
4581
|
(0, import_react8.createElement)(
|
|
3403
4582
|
"div",
|
|
3404
4583
|
{ className: "dsh-leader-agent-board-empty-title" },
|
|
3405
|
-
leaderDead ? "
|
|
4584
|
+
leaderDead ? t("board.leaderDead.title") : t("board.notProject.title")
|
|
3406
4585
|
),
|
|
3407
4586
|
(0, import_react8.createElement)(
|
|
3408
4587
|
"div",
|
|
3409
4588
|
{ className: "dsh-leader-agent-board-empty-hint" },
|
|
3410
|
-
leaderDead ? "
|
|
4589
|
+
leaderDead ? t("board.leaderDead.hint") : projectName ? t("board.notProject.hint", { project: projectName }) : t("board.notProject.unknown")
|
|
3411
4590
|
)
|
|
3412
4591
|
)
|
|
3413
4592
|
);
|
|
@@ -3426,15 +4605,15 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3426
4605
|
return (0, import_react8.createElement)(
|
|
3427
4606
|
"div",
|
|
3428
4607
|
{ className: "dsh-leader-agent-board-list" },
|
|
3429
|
-
(0, import_react8.createElement)(BoardEmpty, { allDone: false, projectName: project.name })
|
|
4608
|
+
(0, import_react8.createElement)(BoardEmpty, { allDone: false, projectName: project.name, t })
|
|
3430
4609
|
);
|
|
3431
4610
|
}
|
|
3432
4611
|
const deleteDialog = (0, import_react8.createElement)(ConfirmDialog, {
|
|
3433
4612
|
open: overlays.pendingDelete !== null,
|
|
3434
|
-
title: "
|
|
3435
|
-
description: overlays.pendingDelete === null ? "" : describeCardRemoval(overlays.pendingDelete),
|
|
3436
|
-
confirmLabel: "
|
|
3437
|
-
cancelLabel: "
|
|
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"),
|
|
3438
4617
|
danger: true,
|
|
3439
4618
|
busy: deleteBusy,
|
|
3440
4619
|
error: deleteError,
|
|
@@ -3463,7 +4642,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3463
4642
|
onOpenSession: openSession
|
|
3464
4643
|
}))
|
|
3465
4644
|
) : null,
|
|
3466
|
-
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,
|
|
3467
4646
|
done.length > 0 ? (0, import_react8.createElement)(
|
|
3468
4647
|
"div",
|
|
3469
4648
|
{ className: "dsh-leader-agent-board-done-section" },
|
|
@@ -3484,7 +4663,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3484
4663
|
},
|
|
3485
4664
|
productIcon("chevron-right-outline", { size: 14 })
|
|
3486
4665
|
),
|
|
3487
|
-
"
|
|
4666
|
+
t("board.done"),
|
|
3488
4667
|
(0, import_react8.createElement)("span", { className: "dsh-leader-agent-board-done-count" }, String(done.length))
|
|
3489
4668
|
),
|
|
3490
4669
|
doneOpen ? (0, import_react8.createElement)(
|
|
@@ -3517,7 +4696,7 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3517
4696
|
));
|
|
3518
4697
|
}
|
|
3519
4698
|
},
|
|
3520
|
-
doneFold.expanded ? "
|
|
4699
|
+
doneFold.expanded ? t("common.collapse") : doneFold.expandLabel
|
|
3521
4700
|
)
|
|
3522
4701
|
) : null
|
|
3523
4702
|
) : null
|
|
@@ -3530,7 +4709,8 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3530
4709
|
callRemote,
|
|
3531
4710
|
onUpdated: cardUpdated,
|
|
3532
4711
|
onDelete: requestDelete,
|
|
3533
|
-
restoreFocus: overlays.detail.anchor
|
|
4712
|
+
restoreFocus: overlays.detail.anchor,
|
|
4713
|
+
t
|
|
3534
4714
|
}),
|
|
3535
4715
|
deleteDialog
|
|
3536
4716
|
);
|
|
@@ -3539,146 +4719,32 @@ function BoardPanel({ sessionId, getSessions, getUiWorkspace, useSessionStatus,
|
|
|
3539
4719
|
// src/client/board-guide-entry.js
|
|
3540
4720
|
var import_react9 = require("react");
|
|
3541
4721
|
|
|
3542
|
-
// src/
|
|
3543
|
-
var
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
list: Object.freeze({}),
|
|
3548
|
-
create: Object.freeze({ directory: "string", name: "string" }),
|
|
3549
|
-
deleteProject: Object.freeze({ id: "string" }),
|
|
3550
|
-
rename: Object.freeze({ id: "string", name: "string" }),
|
|
3551
|
-
reorder: Object.freeze({ id: "string", beforeId: "string" }),
|
|
3552
|
-
replaceLeader: Object.freeze({ id: "string" }),
|
|
3553
|
-
sessionsByProject: Object.freeze({}),
|
|
3554
|
-
resolveProject: Object.freeze({ sessionId: "string" }),
|
|
3555
|
-
boardCards: Object.freeze({ projectId: "string" }),
|
|
3556
|
-
projectSlots: Object.freeze({ projectId: "string" }),
|
|
3557
|
-
detachSession: Object.freeze({ sessionId: "string" }),
|
|
3558
|
-
updateCardLinks: Object.freeze({ id: "string", links: "links" }),
|
|
3559
|
-
deleteCard: Object.freeze({ id: "string" })
|
|
3560
|
-
});
|
|
3561
|
-
|
|
3562
|
-
// src/client/project-remote.js
|
|
3563
|
-
function stringCodec() {
|
|
3564
|
-
return {
|
|
3565
|
-
mode: "strict",
|
|
3566
|
-
typeSymbol: "string",
|
|
3567
|
-
create: () => ({
|
|
3568
|
-
parse: (value) => {
|
|
3569
|
-
if (typeof value !== "string") throw new TypeError(`\u671F\u671B\u5B57\u7B26\u4E32\uFF0C\u6536\u5230 ${typeof value}`);
|
|
3570
|
-
return value;
|
|
3571
|
-
}
|
|
3572
|
-
})
|
|
3573
|
-
};
|
|
3574
|
-
}
|
|
3575
|
-
function linksCodec() {
|
|
3576
|
-
return {
|
|
3577
|
-
mode: "strict",
|
|
3578
|
-
typeSymbol: "array",
|
|
3579
|
-
create: () => ({
|
|
3580
|
-
parse: (value) => {
|
|
3581
|
-
if (!Array.isArray(value)) throw new TypeError(`\u671F\u671B\u94FE\u63A5\u6570\u7EC4\uFF0C\u6536\u5230 ${typeof value}`);
|
|
3582
|
-
return value;
|
|
3583
|
-
}
|
|
3584
|
-
})
|
|
3585
|
-
};
|
|
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);
|
|
3586
4727
|
}
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
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
|
+
}
|
|
3590
4736
|
}
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
method,
|
|
3603
|
-
invocation: { kind: "direct" },
|
|
3604
|
-
parameters,
|
|
3605
|
-
result: { mode: "src-json" }
|
|
3606
|
-
};
|
|
3607
|
-
}
|
|
3608
|
-
var PROJECT_REMOTE_CONTRIBUTION = Object.freeze({
|
|
3609
|
-
package: "dsh-leader-agent",
|
|
3610
|
-
descriptors: Object.freeze(
|
|
3611
|
-
Object.keys(PROJECT_REMOTE_METHODS).map((method) => Object.freeze(buildDescriptor(method)))
|
|
3612
|
-
)
|
|
3613
|
-
});
|
|
3614
|
-
var NAMESPACE_SERVICE_KEY = `remote.${PROJECT_REMOTE_NAMESPACE}`;
|
|
3615
|
-
var readyListeners = /* @__PURE__ */ new Set();
|
|
3616
|
-
var ready = false;
|
|
3617
|
-
var mountError = "";
|
|
3618
|
-
function isProjectRemoteReady() {
|
|
3619
|
-
return ready;
|
|
3620
|
-
}
|
|
3621
|
-
function projectRemoteError() {
|
|
3622
|
-
return mountError;
|
|
3623
|
-
}
|
|
3624
|
-
function reportProjectRemoteError(message) {
|
|
3625
|
-
mountError = message;
|
|
3626
|
-
notifyReady();
|
|
3627
|
-
}
|
|
3628
|
-
function onProjectRemoteReady(listener) {
|
|
3629
|
-
readyListeners.add(listener);
|
|
3630
|
-
if (ready) queueMicrotask(listener);
|
|
3631
|
-
return () => readyListeners.delete(listener);
|
|
3632
|
-
}
|
|
3633
|
-
function notifyReady() {
|
|
3634
|
-
for (const listener of readyListeners) listener();
|
|
3635
|
-
}
|
|
3636
|
-
async function mountProjectRemote(ctx) {
|
|
3637
|
-
const remote = ctx.get("remote");
|
|
3638
|
-
if (remote === void 0) throw new Error("\u5BBF\u4E3B\u672A\u63D0\u4F9B\u8FDC\u7A0B\u8C03\u7528\u901A\u9053");
|
|
3639
|
-
await remote.$mount(PROJECT_REMOTE_CONTRIBUTION);
|
|
3640
|
-
ready = true;
|
|
3641
|
-
mountError = "";
|
|
3642
|
-
notifyReady();
|
|
3643
|
-
}
|
|
3644
|
-
async function callProjectRemote(ctx, method, args = []) {
|
|
3645
|
-
const namespace = ctx.get(NAMESPACE_SERVICE_KEY);
|
|
3646
|
-
if (namespace === void 0) throw new Error("\u9879\u76EE\u901A\u9053\u4E0D\u53EF\u7528");
|
|
3647
|
-
const result = await namespace[method](...args);
|
|
3648
|
-
if (!result.ok) {
|
|
3649
|
-
const code = result.error?.code ?? "unknown";
|
|
3650
|
-
const reason = typeof result.error?.message === "string" && result.error.message !== "" ? `\uFF1A${result.error.message}` : "";
|
|
3651
|
-
throw new Error(`\u9879\u76EE\u901A\u9053\u8C03\u7528\u5931\u8D25\uFF1A${method}\uFF08${code}\uFF09${reason}`);
|
|
3652
|
-
}
|
|
3653
|
-
return result.value;
|
|
3654
|
-
}
|
|
3655
|
-
|
|
3656
|
-
// src/client/project-changes.js
|
|
3657
|
-
var listeners = /* @__PURE__ */ new Set();
|
|
3658
|
-
function onProjectsChanged(listener) {
|
|
3659
|
-
listeners.add(listener);
|
|
3660
|
-
return () => listeners.delete(listener);
|
|
3661
|
-
}
|
|
3662
|
-
function notifyProjectsChanged() {
|
|
3663
|
-
for (const listener of [...listeners]) {
|
|
3664
|
-
try {
|
|
3665
|
-
listener();
|
|
3666
|
-
} catch (error) {
|
|
3667
|
-
console.error("dsh-leader-agent: \u9879\u76EE\u53D8\u66F4\u8BA2\u9605\u56DE\u8C03\u629B\u9519", error);
|
|
3668
|
-
}
|
|
3669
|
-
}
|
|
3670
|
-
}
|
|
3671
|
-
|
|
3672
|
-
// src/client/project-board-monitor.js
|
|
3673
|
-
var RECHECK_TICKS = 15;
|
|
3674
|
-
var BOARD_TAB_KIND = "dsh-leader-agent-board";
|
|
3675
|
-
function createBoardWatch({ callRemote, onNewCard }) {
|
|
3676
|
-
let sessionId = void 0;
|
|
3677
|
-
let project = void 0;
|
|
3678
|
-
let ineligible = false;
|
|
3679
|
-
let baseline = [];
|
|
3680
|
-
let primed = false;
|
|
3681
|
-
let ticks = 0;
|
|
4737
|
+
|
|
4738
|
+
// src/client/project-board-monitor.js
|
|
4739
|
+
var RECHECK_TICKS = 15;
|
|
4740
|
+
var BOARD_TAB_KIND = "dsh-leader-agent-board";
|
|
4741
|
+
function createBoardWatch({ callRemote, onNewCard }) {
|
|
4742
|
+
let sessionId = void 0;
|
|
4743
|
+
let project = void 0;
|
|
4744
|
+
let ineligible = false;
|
|
4745
|
+
let baseline = [];
|
|
4746
|
+
let primed = false;
|
|
4747
|
+
let ticks = 0;
|
|
3682
4748
|
return {
|
|
3683
4749
|
/**
|
|
3684
4750
|
* 跟随屏幕会话:换会话就换项目,并重建基线。
|
|
@@ -3862,24 +4928,24 @@ function basenameOf(path) {
|
|
|
3862
4928
|
const index = Math.max(trimmed.lastIndexOf("/"), trimmed.lastIndexOf("\\"));
|
|
3863
4929
|
return index === -1 ? trimmed : trimmed.slice(index + 1);
|
|
3864
4930
|
}
|
|
3865
|
-
function validateProjectName(name) {
|
|
4931
|
+
function validateProjectName(name, t) {
|
|
3866
4932
|
if (typeof name !== "string" || name.trim() === "") {
|
|
3867
|
-
return { ok: false, error: "
|
|
4933
|
+
return { ok: false, error: t("project.name.empty") };
|
|
3868
4934
|
}
|
|
3869
4935
|
if (name.trim().length > MAX_PROJECT_NAME_LENGTH) {
|
|
3870
|
-
return { ok: false, error:
|
|
4936
|
+
return { ok: false, error: t("project.name.tooLong", { max: MAX_PROJECT_NAME_LENGTH }) };
|
|
3871
4937
|
}
|
|
3872
4938
|
return { ok: true, error: "" };
|
|
3873
4939
|
}
|
|
3874
|
-
function planProjectRename(currentName, nextName) {
|
|
4940
|
+
function planProjectRename(currentName, nextName, t) {
|
|
3875
4941
|
if (nextName === currentName) return { action: "close" };
|
|
3876
|
-
const check = validateProjectName(nextName);
|
|
4942
|
+
const check = validateProjectName(nextName, t);
|
|
3877
4943
|
if (!check.ok) return { action: "keep", error: check.error };
|
|
3878
4944
|
return { action: "commit", name: nextName };
|
|
3879
4945
|
}
|
|
3880
|
-
function defaultProjectName(directory) {
|
|
4946
|
+
function defaultProjectName(directory, t) {
|
|
3881
4947
|
const name = basenameOf(directory);
|
|
3882
|
-
const check = validateProjectName(name);
|
|
4948
|
+
const check = validateProjectName(name, t);
|
|
3883
4949
|
return { name, ok: check.ok, error: check.error };
|
|
3884
4950
|
}
|
|
3885
4951
|
function isProjectOpenable(project) {
|
|
@@ -3972,26 +5038,26 @@ function isArchiveActiveRefusal(reason) {
|
|
|
3972
5038
|
const code = reason.rpcError?.code;
|
|
3973
5039
|
return code === "workspace/session-active";
|
|
3974
5040
|
}
|
|
3975
|
-
function openLeaderSession({ project, openSession }) {
|
|
5041
|
+
function openLeaderSession({ project, openSession, t }) {
|
|
3976
5042
|
const sessionId = project?.leaderSessionId;
|
|
3977
5043
|
if (typeof sessionId !== "string" || sessionId === "") {
|
|
3978
|
-
return { ok: false, message:
|
|
5044
|
+
return { ok: false, message: t("project.leaderMissing", { name: project?.name ?? "" }) };
|
|
3979
5045
|
}
|
|
3980
5046
|
openSession(sessionId);
|
|
3981
5047
|
return { ok: true };
|
|
3982
5048
|
}
|
|
3983
|
-
function buildProjectMenuItems(project, handlers) {
|
|
5049
|
+
function buildProjectMenuItems(project, handlers, t) {
|
|
3984
5050
|
const items = [];
|
|
3985
|
-
items.push({ id: "rename", label: "
|
|
3986
|
-
items.push({ id: "replace", label: "
|
|
3987
|
-
items.push({ id: "remove", label: "
|
|
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) });
|
|
3988
5054
|
return items;
|
|
3989
5055
|
}
|
|
3990
|
-
function describeProjectRemoval(project) {
|
|
3991
|
-
return
|
|
5056
|
+
function describeProjectRemoval(project, t) {
|
|
5057
|
+
return t("project.remove.description", { name: project.name });
|
|
3992
5058
|
}
|
|
3993
|
-
function describeDeletionNotice(project, _result) {
|
|
3994
|
-
return
|
|
5059
|
+
function describeDeletionNotice(project, _result, t) {
|
|
5060
|
+
return t("project.remove.notice", { name: project.name });
|
|
3995
5061
|
}
|
|
3996
5062
|
function classifyDeletionResult(result) {
|
|
3997
5063
|
if (result?.removed === true) return "removed";
|
|
@@ -4535,7 +5601,8 @@ function ProjectSection(props) {
|
|
|
4535
5601
|
listExpanded,
|
|
4536
5602
|
onToggleList,
|
|
4537
5603
|
currentSessionId,
|
|
4538
|
-
onReorder
|
|
5604
|
+
onReorder,
|
|
5605
|
+
t
|
|
4539
5606
|
} = props;
|
|
4540
5607
|
(0, import_react10.useEffect)(() => {
|
|
4541
5608
|
ensureStyles2();
|
|
@@ -4579,10 +5646,10 @@ function ProjectSection(props) {
|
|
|
4579
5646
|
type: "button",
|
|
4580
5647
|
className: "dsh-leader-agent-project-header-toggle",
|
|
4581
5648
|
"aria-expanded": listExpanded,
|
|
4582
|
-
title: listExpanded ? "
|
|
5649
|
+
title: listExpanded ? t("project.collapseList") : t("project.expandList"),
|
|
4583
5650
|
onClick: onToggleList
|
|
4584
5651
|
},
|
|
4585
|
-
(0, import_react10.createElement)("span", { className: "dsh-leader-agent-project-header-label" }, "
|
|
5652
|
+
(0, import_react10.createElement)("span", { className: "dsh-leader-agent-project-header-label" }, t("project.label")),
|
|
4586
5653
|
(0, import_react10.createElement)(
|
|
4587
5654
|
"span",
|
|
4588
5655
|
{ className: "dsh-leader-agent-project-lead" },
|
|
@@ -4604,7 +5671,7 @@ function ProjectSection(props) {
|
|
|
4604
5671
|
{
|
|
4605
5672
|
type: "button",
|
|
4606
5673
|
className: "dsh-leader-agent-project-icon-button",
|
|
4607
|
-
title: "
|
|
5674
|
+
title: t("project.add"),
|
|
4608
5675
|
disabled: busy,
|
|
4609
5676
|
onClick: onAdd
|
|
4610
5677
|
},
|
|
@@ -4620,7 +5687,7 @@ function ProjectSection(props) {
|
|
|
4620
5687
|
layout.showEmpty ? (0, import_react10.createElement)(
|
|
4621
5688
|
"div",
|
|
4622
5689
|
{ className: "dsh-leader-agent-project-notice" },
|
|
4623
|
-
"
|
|
5690
|
+
t("project.empty")
|
|
4624
5691
|
) : null,
|
|
4625
5692
|
layout.showList ? (0, import_react10.createElement)(
|
|
4626
5693
|
"div",
|
|
@@ -4645,6 +5712,7 @@ function ProjectSection(props) {
|
|
|
4645
5712
|
dragActive: draggingId !== null,
|
|
4646
5713
|
dragging: draggingId === project.id,
|
|
4647
5714
|
dropHalf: dropTarget !== null && dropTarget.id === project.id ? dropTarget.half : void 0,
|
|
5715
|
+
t,
|
|
4648
5716
|
onDragBegin: beginDrag,
|
|
4649
5717
|
onDragHover: (overId, half) => {
|
|
4650
5718
|
setDropTarget(projectDropPlan(projectIds, dragIdRef.current, overId, half).indicator);
|
|
@@ -4676,12 +5744,12 @@ function ProjectSection(props) {
|
|
|
4676
5744
|
(0, import_react10.createElement)(
|
|
4677
5745
|
"button",
|
|
4678
5746
|
{ type: "button", disabled: busy, className: "dsh-leader-agent-project-draft-action", onClick: onConfirmNaming },
|
|
4679
|
-
"
|
|
5747
|
+
t("project.create")
|
|
4680
5748
|
),
|
|
4681
5749
|
(0, import_react10.createElement)(
|
|
4682
5750
|
"button",
|
|
4683
5751
|
{ type: "button", className: "dsh-leader-agent-project-draft-action", onClick: onCancelNaming },
|
|
4684
|
-
"
|
|
5752
|
+
t("common.cancel")
|
|
4685
5753
|
)
|
|
4686
5754
|
),
|
|
4687
5755
|
naming.error === "" || naming.error === void 0 ? null : (0, import_react10.createElement)("div", { className: "dsh-leader-agent-project-notice" }, naming.error)
|
|
@@ -4715,7 +5783,8 @@ function ProjectRow(props) {
|
|
|
4715
5783
|
onDragBegin,
|
|
4716
5784
|
onDragHover,
|
|
4717
5785
|
onDropOn,
|
|
4718
|
-
onDragFinish
|
|
5786
|
+
onDragFinish,
|
|
5787
|
+
t
|
|
4719
5788
|
} = props;
|
|
4720
5789
|
const [menuOpen, setMenuOpen] = (0, import_react10.useState)(false);
|
|
4721
5790
|
const [renaming, setRenaming] = (0, import_react10.useState)(false);
|
|
@@ -4739,7 +5808,7 @@ function ProjectRow(props) {
|
|
|
4739
5808
|
};
|
|
4740
5809
|
}, [menuOpen]);
|
|
4741
5810
|
const commitRename = () => {
|
|
4742
|
-
const plan = planProjectRename(project.name, name);
|
|
5811
|
+
const plan = planProjectRename(project.name, name, t);
|
|
4743
5812
|
if (plan.action === "keep") {
|
|
4744
5813
|
setRenameError(plan.error);
|
|
4745
5814
|
return;
|
|
@@ -4762,12 +5831,12 @@ function ProjectRow(props) {
|
|
|
4762
5831
|
leaderRunning: isLeaderRunning(project, sessionRows, archivedSessionIds)
|
|
4763
5832
|
});
|
|
4764
5833
|
const [watermark, setWatermark] = (0, import_react10.useState)(0);
|
|
4765
|
-
const folded = foldSessions(childSessions, watermark, currentSessionId);
|
|
5834
|
+
const folded = foldSessions(childSessions, watermark, currentSessionId, t);
|
|
4766
5835
|
const menuItems = buildProjectMenuItems(project, {
|
|
4767
5836
|
onRename: () => setRenaming(true),
|
|
4768
5837
|
onReplace,
|
|
4769
5838
|
onRemove
|
|
4770
|
-
});
|
|
5839
|
+
}, t);
|
|
4771
5840
|
return (0, import_react10.createElement)(
|
|
4772
5841
|
"div",
|
|
4773
5842
|
{
|
|
@@ -4817,7 +5886,7 @@ function ProjectRow(props) {
|
|
|
4817
5886
|
type: "button",
|
|
4818
5887
|
ref: leadRef,
|
|
4819
5888
|
className: "dsh-leader-agent-project-lead",
|
|
4820
|
-
"aria-label": expanded ? "
|
|
5889
|
+
"aria-label": expanded ? t("project.collapseSessions") : t("project.expandSessions"),
|
|
4821
5890
|
"aria-expanded": expanded,
|
|
4822
5891
|
onClick: (event) => {
|
|
4823
5892
|
event.stopPropagation();
|
|
@@ -4870,7 +5939,7 @@ function ProjectRow(props) {
|
|
|
4870
5939
|
{
|
|
4871
5940
|
type: "button",
|
|
4872
5941
|
className: "dsh-leader-agent-project-icon-button",
|
|
4873
|
-
title: "
|
|
5942
|
+
title: t("project.replaceLeader"),
|
|
4874
5943
|
disabled: busy,
|
|
4875
5944
|
onClick: (event) => {
|
|
4876
5945
|
event.stopPropagation();
|
|
@@ -4885,7 +5954,7 @@ function ProjectRow(props) {
|
|
|
4885
5954
|
type: "button",
|
|
4886
5955
|
ref: moreRef,
|
|
4887
5956
|
className: "dsh-leader-agent-project-icon-button",
|
|
4888
|
-
title: "
|
|
5957
|
+
title: t("project.more"),
|
|
4889
5958
|
disabled: busy,
|
|
4890
5959
|
onClick: (event) => {
|
|
4891
5960
|
event.stopPropagation();
|
|
@@ -4915,7 +5984,7 @@ function ProjectRow(props) {
|
|
|
4915
5984
|
childSessions.length === 0 ? (0, import_react10.createElement)(
|
|
4916
5985
|
"div",
|
|
4917
5986
|
{ className: "dsh-leader-agent-project-notice" },
|
|
4918
|
-
"
|
|
5987
|
+
t("project.noSessions")
|
|
4919
5988
|
) : [
|
|
4920
5989
|
...folded.rows.map((row) => (0, import_react10.createElement)(SessionRow, {
|
|
4921
5990
|
key: row.id,
|
|
@@ -4923,7 +5992,8 @@ function ProjectRow(props) {
|
|
|
4923
5992
|
selected: row.id === currentSessionId,
|
|
4924
5993
|
onOpenSession,
|
|
4925
5994
|
onArchiveSession,
|
|
4926
|
-
busy
|
|
5995
|
+
busy,
|
|
5996
|
+
t
|
|
4927
5997
|
})),
|
|
4928
5998
|
folded.hiddenCount === 0 && !folded.expanded ? null : (0, import_react10.createElement)(
|
|
4929
5999
|
"button",
|
|
@@ -4943,7 +6013,7 @@ function ProjectRow(props) {
|
|
|
4943
6013
|
));
|
|
4944
6014
|
}
|
|
4945
6015
|
},
|
|
4946
|
-
folded.expanded ? "
|
|
6016
|
+
folded.expanded ? t("common.collapse") : folded.expandLabel
|
|
4947
6017
|
)
|
|
4948
6018
|
]
|
|
4949
6019
|
) : null,
|
|
@@ -4999,7 +6069,7 @@ function ProjectMenu(props) {
|
|
|
4999
6069
|
);
|
|
5000
6070
|
}
|
|
5001
6071
|
function SessionRow(props) {
|
|
5002
|
-
const { row, selected, onOpenSession, onArchiveSession, busy } = props;
|
|
6072
|
+
const { row, selected, onOpenSession, onArchiveSession, busy, t } = props;
|
|
5003
6073
|
return (0, import_react10.createElement)(
|
|
5004
6074
|
"div",
|
|
5005
6075
|
{
|
|
@@ -5009,7 +6079,7 @@ function SessionRow(props) {
|
|
|
5009
6079
|
"aria-current": selected ? "page" : void 0,
|
|
5010
6080
|
onClick: () => onOpenSession(row.id),
|
|
5011
6081
|
// 行没有官方那套悬停卡,完成状态拼进行标题里当唯一提示。
|
|
5012
|
-
title: `${row.displayTitle ?? row.title ?? row.id}${row.completed === true ?
|
|
6082
|
+
title: `${row.displayTitle ?? row.title ?? row.id}${row.completed === true ? ` \xB7 ${t("project.completedUnread")}` : ""}`
|
|
5013
6083
|
},
|
|
5014
6084
|
(0, import_react10.createElement)(
|
|
5015
6085
|
"span",
|
|
@@ -5029,8 +6099,8 @@ function SessionRow(props) {
|
|
|
5029
6099
|
{
|
|
5030
6100
|
type: "button",
|
|
5031
6101
|
className: "dsh-leader-agent-session-archive",
|
|
5032
|
-
title: "
|
|
5033
|
-
"aria-label":
|
|
6102
|
+
title: t("project.archive"),
|
|
6103
|
+
"aria-label": t("project.archive.aria", { title: row.title ?? row.displayTitle ?? row.id }),
|
|
5034
6104
|
disabled: busy,
|
|
5035
6105
|
onClick: (event) => {
|
|
5036
6106
|
event.stopPropagation();
|
|
@@ -5403,7 +6473,7 @@ function createWorkspaceExclusion() {
|
|
|
5403
6473
|
// src/client/project-panel.js
|
|
5404
6474
|
var PROJECT_REFRESH_INTERVAL_MS = 5e3;
|
|
5405
6475
|
function ProjectPanel(props) {
|
|
5406
|
-
const { wide, callRemote, getUiWorkspace, getSessions, getWorkspaces, onWorkspacesReady } = props;
|
|
6476
|
+
const { wide, callRemote, getUiWorkspace, getSessions, getWorkspaces, onWorkspacesReady, t } = props;
|
|
5407
6477
|
const [projects, setProjects] = (0, import_react11.useState)([]);
|
|
5408
6478
|
const [busy, setBusy] = (0, import_react11.useState)(false);
|
|
5409
6479
|
const [floating, setFloating] = (0, import_react11.useState)(false);
|
|
@@ -5432,9 +6502,9 @@ function ProjectPanel(props) {
|
|
|
5432
6502
|
setProjects(next);
|
|
5433
6503
|
notifyProjectsChanged();
|
|
5434
6504
|
} catch (error) {
|
|
5435
|
-
showToast(
|
|
6505
|
+
showToast(projectRemoteErrorText(error, t, "project.error.read"));
|
|
5436
6506
|
}
|
|
5437
|
-
}, [callRemote]);
|
|
6507
|
+
}, [callRemote, t]);
|
|
5438
6508
|
const refreshSessionIndex = (0, import_react11.useCallback)(async () => {
|
|
5439
6509
|
if (!isProjectRemoteReady()) return;
|
|
5440
6510
|
try {
|
|
@@ -5446,9 +6516,9 @@ function ProjectPanel(props) {
|
|
|
5446
6516
|
}
|
|
5447
6517
|
setSessionsByProject(grouped);
|
|
5448
6518
|
} catch (error) {
|
|
5449
|
-
showToast(
|
|
6519
|
+
showToast(projectRemoteErrorText(error, t, "project.error.sessions"));
|
|
5450
6520
|
}
|
|
5451
|
-
}, [callRemote]);
|
|
6521
|
+
}, [callRemote, t]);
|
|
5452
6522
|
(0, import_react11.useEffect)(() => {
|
|
5453
6523
|
void refresh();
|
|
5454
6524
|
void refreshSessionIndex();
|
|
@@ -5610,14 +6680,14 @@ function ProjectPanel(props) {
|
|
|
5610
6680
|
setNaming(null);
|
|
5611
6681
|
const uiWorkspace = getUiWorkspace?.();
|
|
5612
6682
|
if (uiWorkspace === void 0) {
|
|
5613
|
-
showToast("
|
|
6683
|
+
showToast(t("project.error.directoryPicker"));
|
|
5614
6684
|
return;
|
|
5615
6685
|
}
|
|
5616
6686
|
setBusy(true);
|
|
5617
6687
|
try {
|
|
5618
6688
|
const directory = await uiWorkspace.pickDirectory();
|
|
5619
6689
|
if (typeof directory !== "string" || directory === "") return;
|
|
5620
|
-
const check = defaultProjectName(directory);
|
|
6690
|
+
const check = defaultProjectName(directory, t);
|
|
5621
6691
|
if (!check.ok) {
|
|
5622
6692
|
setNaming({ directory, name: check.name, error: check.error });
|
|
5623
6693
|
return;
|
|
@@ -5626,14 +6696,14 @@ function ProjectPanel(props) {
|
|
|
5626
6696
|
await refresh();
|
|
5627
6697
|
setListExpanded(true);
|
|
5628
6698
|
} catch (error) {
|
|
5629
|
-
showToast(
|
|
6699
|
+
showToast(projectRemoteErrorText(error, t, "project.error.create"));
|
|
5630
6700
|
} finally {
|
|
5631
6701
|
setBusy(false);
|
|
5632
6702
|
}
|
|
5633
|
-
}, [busy, callRemote, getUiWorkspace, refresh]);
|
|
6703
|
+
}, [busy, callRemote, getUiWorkspace, refresh, t]);
|
|
5634
6704
|
const confirmNaming = (0, import_react11.useCallback)(async () => {
|
|
5635
6705
|
if (busy || naming === null) return;
|
|
5636
|
-
const check = validateProjectName(naming.name);
|
|
6706
|
+
const check = validateProjectName(naming.name, t);
|
|
5637
6707
|
if (!check.ok) {
|
|
5638
6708
|
setNaming({ ...naming, error: check.error });
|
|
5639
6709
|
return;
|
|
@@ -5646,11 +6716,11 @@ function ProjectPanel(props) {
|
|
|
5646
6716
|
await refresh();
|
|
5647
6717
|
setListExpanded(true);
|
|
5648
6718
|
} catch (error) {
|
|
5649
|
-
setNaming({ ...naming, error:
|
|
6719
|
+
setNaming({ ...naming, error: projectRemoteErrorText(error, t, "project.error.create") });
|
|
5650
6720
|
} finally {
|
|
5651
6721
|
setBusy(false);
|
|
5652
6722
|
}
|
|
5653
|
-
}, [busy, callRemote, naming, refresh]);
|
|
6723
|
+
}, [busy, callRemote, naming, refresh, t]);
|
|
5654
6724
|
const cancelNaming = (0, import_react11.useCallback)(() => {
|
|
5655
6725
|
setNaming(null);
|
|
5656
6726
|
}, []);
|
|
@@ -5659,23 +6729,24 @@ function ProjectPanel(props) {
|
|
|
5659
6729
|
}, []);
|
|
5660
6730
|
const openProject = (0, import_react11.useCallback)(async (project) => {
|
|
5661
6731
|
if (!isProjectOpenable(project)) {
|
|
5662
|
-
showToast(
|
|
6732
|
+
showToast(t("project.leaderDeleted", { name: project.name }));
|
|
5663
6733
|
return;
|
|
5664
6734
|
}
|
|
5665
6735
|
const uiWorkspace = getUiWorkspace?.();
|
|
5666
6736
|
if (uiWorkspace === void 0) {
|
|
5667
|
-
showToast("
|
|
6737
|
+
showToast(t("project.error.navigation"));
|
|
5668
6738
|
return;
|
|
5669
6739
|
}
|
|
5670
6740
|
const result = openLeaderSession({
|
|
5671
6741
|
project,
|
|
5672
|
-
openSession: (sessionId) => uiWorkspace.openSession(sessionId)
|
|
6742
|
+
openSession: (sessionId) => uiWorkspace.openSession(sessionId),
|
|
6743
|
+
t
|
|
5673
6744
|
});
|
|
5674
6745
|
if (result.ok !== true) showToast(result.message);
|
|
5675
|
-
}, [getUiWorkspace]);
|
|
6746
|
+
}, [getUiWorkspace, t]);
|
|
5676
6747
|
const renameProject = (0, import_react11.useCallback)(async (project, name) => {
|
|
5677
6748
|
if (busy) return;
|
|
5678
|
-
const check = validateProjectName(name);
|
|
6749
|
+
const check = validateProjectName(name, t);
|
|
5679
6750
|
if (!check.ok) {
|
|
5680
6751
|
showToast(check.error);
|
|
5681
6752
|
return;
|
|
@@ -5685,22 +6756,22 @@ function ProjectPanel(props) {
|
|
|
5685
6756
|
await callRemote("rename", [project.id, name]);
|
|
5686
6757
|
await refresh();
|
|
5687
6758
|
} catch (error) {
|
|
5688
|
-
showToast(
|
|
6759
|
+
showToast(projectRemoteErrorText(error, t, "project.error.rename"));
|
|
5689
6760
|
} finally {
|
|
5690
6761
|
setBusy(false);
|
|
5691
6762
|
}
|
|
5692
|
-
}, [busy, callRemote, refresh]);
|
|
6763
|
+
}, [busy, callRemote, refresh, t]);
|
|
5693
6764
|
const reorderProject = (0, import_react11.useCallback)((projectId, beforeId) => {
|
|
5694
6765
|
setProjects((current2) => moveProjectBefore(current2, projectId, beforeId));
|
|
5695
6766
|
return reorderQueue.push(async (isLatest) => {
|
|
5696
6767
|
try {
|
|
5697
6768
|
await callRemote("reorder", [projectId, beforeId]);
|
|
5698
6769
|
} catch (error) {
|
|
5699
|
-
showToast(
|
|
6770
|
+
showToast(projectRemoteErrorText(error, t, "project.error.reorder"));
|
|
5700
6771
|
}
|
|
5701
6772
|
if (isLatest()) await refresh();
|
|
5702
6773
|
});
|
|
5703
|
-
}, [callRemote, refresh, reorderQueue]);
|
|
6774
|
+
}, [callRemote, refresh, reorderQueue, t]);
|
|
5704
6775
|
const replaceLeader = (0, import_react11.useCallback)(async (project) => {
|
|
5705
6776
|
if (busy) return;
|
|
5706
6777
|
setBusy(true);
|
|
@@ -5714,11 +6785,11 @@ function ProjectPanel(props) {
|
|
|
5714
6785
|
}
|
|
5715
6786
|
await refresh();
|
|
5716
6787
|
} catch (error) {
|
|
5717
|
-
showToast(
|
|
6788
|
+
showToast(projectRemoteErrorText(error, t, "project.error.replaceLeader"));
|
|
5718
6789
|
} finally {
|
|
5719
6790
|
setBusy(false);
|
|
5720
6791
|
}
|
|
5721
|
-
}, [busy, callRemote, getUiWorkspace, refresh]);
|
|
6792
|
+
}, [busy, callRemote, getUiWorkspace, refresh, t]);
|
|
5722
6793
|
const requestDelete = (0, import_react11.useCallback)((project) => {
|
|
5723
6794
|
setDeleteError("");
|
|
5724
6795
|
setPendingDelete(project);
|
|
@@ -5735,23 +6806,23 @@ function ProjectPanel(props) {
|
|
|
5735
6806
|
const result = await callRemote("deleteProject", [project.id]);
|
|
5736
6807
|
const outcome = classifyDeletionResult(result);
|
|
5737
6808
|
if (outcome === "failed") {
|
|
5738
|
-
setDeleteError(result?.reason ?? "
|
|
6809
|
+
setDeleteError(result?.reason ?? t("project.error.deleteReason"));
|
|
5739
6810
|
await refresh();
|
|
5740
6811
|
return;
|
|
5741
6812
|
}
|
|
5742
6813
|
setPendingDelete(null);
|
|
5743
|
-
showToast(describeDeletionNotice(project, result));
|
|
6814
|
+
showToast(describeDeletionNotice(project, result, t));
|
|
5744
6815
|
await refresh();
|
|
5745
6816
|
} catch (error) {
|
|
5746
|
-
setDeleteError(
|
|
6817
|
+
setDeleteError(projectRemoteErrorText(error, t, "project.error.delete"));
|
|
5747
6818
|
} finally {
|
|
5748
6819
|
setBusy(false);
|
|
5749
6820
|
}
|
|
5750
|
-
}, [busy, callRemote, pendingDelete, refresh]);
|
|
6821
|
+
}, [busy, callRemote, pendingDelete, refresh, t]);
|
|
5751
6822
|
const archiveSession = (0, import_react11.useCallback)(async (sessionId, { stopActivity = false } = {}) => {
|
|
5752
6823
|
const workspaces = getWorkspaces?.();
|
|
5753
6824
|
if (workspaces?.archiveSession === void 0) {
|
|
5754
|
-
showToast("
|
|
6825
|
+
showToast(t("project.error.workspaces"));
|
|
5755
6826
|
return;
|
|
5756
6827
|
}
|
|
5757
6828
|
setBusy(true);
|
|
@@ -5760,7 +6831,7 @@ function ProjectPanel(props) {
|
|
|
5760
6831
|
try {
|
|
5761
6832
|
await callRemote("detachSession", [sessionId]);
|
|
5762
6833
|
} catch (error) {
|
|
5763
|
-
showToast(
|
|
6834
|
+
showToast(projectRemoteErrorText(error, t, "project.error.archivePartial"));
|
|
5764
6835
|
}
|
|
5765
6836
|
setPendingArchive(null);
|
|
5766
6837
|
await refreshSessionIndex();
|
|
@@ -5770,16 +6841,15 @@ function ProjectPanel(props) {
|
|
|
5770
6841
|
setPendingArchive({ sessionId });
|
|
5771
6842
|
return;
|
|
5772
6843
|
}
|
|
5773
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
5774
6844
|
if (stopActivity) {
|
|
5775
|
-
setArchiveError(
|
|
6845
|
+
setArchiveError(projectRemoteErrorText(error, t, "project.error.stopArchive"));
|
|
5776
6846
|
return;
|
|
5777
6847
|
}
|
|
5778
|
-
showToast(
|
|
6848
|
+
showToast(projectRemoteErrorText(error, t, "project.error.archive"));
|
|
5779
6849
|
} finally {
|
|
5780
6850
|
setBusy(false);
|
|
5781
6851
|
}
|
|
5782
|
-
}, [callRemote, getWorkspaces, refreshSessionIndex]);
|
|
6852
|
+
}, [callRemote, getWorkspaces, refreshSessionIndex, t]);
|
|
5783
6853
|
const confirmArchive = (0, import_react11.useCallback)(async () => {
|
|
5784
6854
|
if (busy || pendingArchive === null) return;
|
|
5785
6855
|
await archiveSession(pendingArchive.sessionId, { stopActivity: true });
|
|
@@ -5789,11 +6859,12 @@ function ProjectPanel(props) {
|
|
|
5789
6859
|
setPendingArchive(null);
|
|
5790
6860
|
}, []);
|
|
5791
6861
|
const body = (0, import_react11.createElement)(ProjectSection, {
|
|
6862
|
+
t,
|
|
5792
6863
|
projects,
|
|
5793
6864
|
busy,
|
|
5794
6865
|
// 通道状态是持续状态,不是一次性消息:放在列表位置,而不是弹一条会自己
|
|
5795
6866
|
// 消失的提示。就绪后这里变空,列表照常出现。
|
|
5796
|
-
remoteStatus: isProjectRemoteReady() ? "" :
|
|
6867
|
+
remoteStatus: isProjectRemoteReady() ? "" : t("project.remoteNotReady"),
|
|
5797
6868
|
onAdd: () => {
|
|
5798
6869
|
void startAdd();
|
|
5799
6870
|
},
|
|
@@ -5828,7 +6899,7 @@ function ProjectPanel(props) {
|
|
|
5828
6899
|
onOpenSession: (sessionId) => {
|
|
5829
6900
|
const uiWorkspace = getUiWorkspace?.();
|
|
5830
6901
|
if (uiWorkspace === void 0) {
|
|
5831
|
-
showToast("
|
|
6902
|
+
showToast(t("project.error.navigation"));
|
|
5832
6903
|
return;
|
|
5833
6904
|
}
|
|
5834
6905
|
uiWorkspace.openSession(sessionId);
|
|
@@ -5841,10 +6912,10 @@ function ProjectPanel(props) {
|
|
|
5841
6912
|
});
|
|
5842
6913
|
const dialog = (0, import_react11.createElement)(ConfirmDialog, {
|
|
5843
6914
|
open: pendingDelete !== null,
|
|
5844
|
-
title: "
|
|
5845
|
-
description: pendingDelete === null ? "" : describeProjectRemoval(pendingDelete),
|
|
5846
|
-
confirmLabel: "
|
|
5847
|
-
cancelLabel: "
|
|
6915
|
+
title: t("project.remove.title"),
|
|
6916
|
+
description: pendingDelete === null ? "" : describeProjectRemoval(pendingDelete, t),
|
|
6917
|
+
confirmLabel: t("common.delete"),
|
|
6918
|
+
cancelLabel: t("common.cancel"),
|
|
5848
6919
|
danger: true,
|
|
5849
6920
|
busy,
|
|
5850
6921
|
error: deleteError,
|
|
@@ -5855,10 +6926,10 @@ function ProjectPanel(props) {
|
|
|
5855
6926
|
});
|
|
5856
6927
|
const archiveDialog = (0, import_react11.createElement)(ConfirmDialog, {
|
|
5857
6928
|
open: pendingArchive !== null,
|
|
5858
|
-
title: "
|
|
5859
|
-
description: "
|
|
5860
|
-
confirmLabel: "
|
|
5861
|
-
cancelLabel: "
|
|
6929
|
+
title: t("project.archive.title"),
|
|
6930
|
+
description: t("project.archive.description"),
|
|
6931
|
+
confirmLabel: t("project.archive.confirm"),
|
|
6932
|
+
cancelLabel: t("common.cancel"),
|
|
5862
6933
|
danger: true,
|
|
5863
6934
|
busy,
|
|
5864
6935
|
error: archiveError,
|
|
@@ -5875,8 +6946,8 @@ function ProjectPanel(props) {
|
|
|
5875
6946
|
"button",
|
|
5876
6947
|
{
|
|
5877
6948
|
type: "button",
|
|
5878
|
-
title: "
|
|
5879
|
-
"aria-label": "
|
|
6949
|
+
title: t("project.label"),
|
|
6950
|
+
"aria-label": t("project.label"),
|
|
5880
6951
|
onClick: () => setFloating((value) => !value),
|
|
5881
6952
|
style: {
|
|
5882
6953
|
width: "100%",
|
|
@@ -6062,7 +7133,7 @@ function createLeaderSessionIndex() {
|
|
|
6062
7133
|
const nextIds = new Set(next);
|
|
6063
7134
|
if (nextIds.size === ids.size && [...nextIds].every((id) => ids.has(id))) return;
|
|
6064
7135
|
ids = nextIds;
|
|
6065
|
-
for (const listener of
|
|
7136
|
+
for (const listener of Array.from(listeners3)) listener(ids);
|
|
6066
7137
|
}
|
|
6067
7138
|
};
|
|
6068
7139
|
}
|
|
@@ -6174,11 +7245,137 @@ function mountGuideCard(ctx) {
|
|
|
6174
7245
|
}, GuideCardEntry)), "dsh-leader-agent \u5F15\u5BFC\u5361");
|
|
6175
7246
|
}
|
|
6176
7247
|
|
|
6177
|
-
// src/client/leader-
|
|
7248
|
+
// src/client/leader-changes-anchor.js
|
|
6178
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");
|
|
6179
7376
|
function LeaderViewEntry(props) {
|
|
6180
7377
|
const { sessionId, getUiConversation } = props;
|
|
6181
|
-
(0,
|
|
7378
|
+
(0, import_react14.useLayoutEffect)(() => leaderSessionIndex.subscribe((ids) => {
|
|
6182
7379
|
if (!ids.has(sessionId)) return;
|
|
6183
7380
|
activateLeaderView(getUiConversation?.(), sessionId);
|
|
6184
7381
|
}), [getUiConversation, sessionId]);
|
|
@@ -6218,7 +7415,7 @@ function createReadySignal() {
|
|
|
6218
7415
|
mark() {
|
|
6219
7416
|
if (ready2) return;
|
|
6220
7417
|
ready2 = true;
|
|
6221
|
-
for (const listener of
|
|
7418
|
+
for (const listener of Array.from(listeners3)) notify(listener);
|
|
6222
7419
|
},
|
|
6223
7420
|
/**
|
|
6224
7421
|
* 订阅就绪。已就绪时用微任务补一次通知——调用方通常在同步代码里先判空再订阅,
|
|
@@ -6246,9 +7443,8 @@ function createReadySignal() {
|
|
|
6246
7443
|
}
|
|
6247
7444
|
|
|
6248
7445
|
// src/client/session-tabs.js
|
|
6249
|
-
var
|
|
7446
|
+
var import_react15 = require("react");
|
|
6250
7447
|
var import_react_dom4 = require("react-dom");
|
|
6251
|
-
var import_dsh_client_ui_primitives4 = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
6252
7448
|
|
|
6253
7449
|
// src/client/session-tabs-logic.js
|
|
6254
7450
|
var SESSION_TABS_STORAGE_KEY = "dsh-leader-agent.session-tabs.v1";
|
|
@@ -6322,8 +7518,8 @@ function removeOpenTab(store, projectId, sessionId) {
|
|
|
6322
7518
|
return { version: 1, projects };
|
|
6323
7519
|
}
|
|
6324
7520
|
function workerTabState(row) {
|
|
6325
|
-
if (row?.running === true) return "
|
|
6326
|
-
if (row?.completed === true) return "
|
|
7521
|
+
if (row?.running === true) return "running";
|
|
7522
|
+
if (row?.completed === true) return "unread";
|
|
6327
7523
|
return "idle";
|
|
6328
7524
|
}
|
|
6329
7525
|
function sessionLabel(row, sessionId) {
|
|
@@ -6427,12 +7623,20 @@ function tabAfterClose(view, closingId) {
|
|
|
6427
7623
|
if (view.activeSessionId !== closingId) return null;
|
|
6428
7624
|
return view.leaderId;
|
|
6429
7625
|
}
|
|
7626
|
+
function hasSessionMenu(contextMenus) {
|
|
7627
|
+
return contextMenus !== null && contextMenus !== void 0;
|
|
7628
|
+
}
|
|
6430
7629
|
|
|
6431
7630
|
// src/client/session-tabs.js
|
|
6432
|
-
var
|
|
7631
|
+
var STYLE_ID6 = "dsh-leader-agent-session-tabs-style";
|
|
6433
7632
|
var COLUMN_ATTR = "data-dsh-leader-agent-tabs-column";
|
|
6434
7633
|
var MAIN_ATTR = "data-dsh-leader-agent-tabs-main";
|
|
6435
|
-
var
|
|
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 = `
|
|
6436
7640
|
[${COLUMN_ATTR}] { min-height: 0; }
|
|
6437
7641
|
[${MAIN_ATTR}] {
|
|
6438
7642
|
flex: 1 1 0 !important;
|
|
@@ -6450,12 +7654,61 @@ var STYLE_TEXT5 = `
|
|
|
6450
7654
|
box-sizing: border-box;
|
|
6451
7655
|
padding-block: 0;
|
|
6452
7656
|
padding-inline-start: max(20px, var(--dsh-frame-leading-clearance, 0px));
|
|
6453
|
-
|
|
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;
|
|
6454
7661
|
background: var(--dsw-alias-bg-base);
|
|
6455
7662
|
border-bottom: .5px solid var(--dsw-alias-border-l3);
|
|
6456
7663
|
-webkit-app-region: drag;
|
|
6457
7664
|
overflow: hidden;
|
|
6458
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
|
+
}
|
|
6459
7712
|
.dsh-leader-agent-tabs-scroll {
|
|
6460
7713
|
flex: 1 1 auto;
|
|
6461
7714
|
display: flex;
|
|
@@ -6513,6 +7766,10 @@ var STYLE_TEXT5 = `
|
|
|
6513
7766
|
width: 12px;
|
|
6514
7767
|
height: 12px;
|
|
6515
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")}
|
|
6516
7773
|
.dsh-leader-agent-tab-label {
|
|
6517
7774
|
min-width: 0;
|
|
6518
7775
|
overflow: hidden;
|
|
@@ -6553,40 +7810,22 @@ var STYLE_TEXT5 = `
|
|
|
6553
7810
|
`;
|
|
6554
7811
|
function ensureStyles4() {
|
|
6555
7812
|
if (typeof document === "undefined") return;
|
|
6556
|
-
if (document.getElementById(
|
|
7813
|
+
if (document.getElementById(STYLE_ID6) !== null) return;
|
|
6557
7814
|
const style = document.createElement("style");
|
|
6558
|
-
style.id =
|
|
6559
|
-
style.textContent =
|
|
7815
|
+
style.id = STYLE_ID6;
|
|
7816
|
+
style.textContent = STYLE_TEXT6;
|
|
6560
7817
|
document.head.append(style);
|
|
6561
7818
|
}
|
|
6562
|
-
function findMainSlot() {
|
|
6563
|
-
if (typeof document === "undefined") return null;
|
|
6564
|
-
return document.querySelector('#root [data-slot="main"]') ?? document.querySelector('[data-slot="main"]') ?? document.querySelector('[class*="mainPanel"]');
|
|
6565
|
-
}
|
|
6566
|
-
function findColumn(slot) {
|
|
6567
|
-
let column = slot.parentElement;
|
|
6568
|
-
while (column !== null && column.hasAttribute("data-slot") && column.parentElement !== null) {
|
|
6569
|
-
column = column.parentElement;
|
|
6570
|
-
}
|
|
6571
|
-
return column ?? slot;
|
|
6572
|
-
}
|
|
6573
|
-
function mainBodyOf(slot) {
|
|
6574
|
-
let body = slot.firstElementChild;
|
|
6575
|
-
while (body !== null && typeof window !== "undefined" && window.getComputedStyle(body).display === "contents") {
|
|
6576
|
-
body = body.firstElementChild;
|
|
6577
|
-
}
|
|
6578
|
-
return body;
|
|
6579
|
-
}
|
|
6580
7819
|
function SessionTabsAnchor(props) {
|
|
6581
|
-
const [host, setHost] = (0,
|
|
6582
|
-
const visibleRef = (0,
|
|
6583
|
-
const applyRef = (0,
|
|
6584
|
-
const reportVisible = (0,
|
|
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) => {
|
|
6585
7824
|
if (visibleRef.current === next) return;
|
|
6586
7825
|
visibleRef.current = next;
|
|
6587
7826
|
applyRef.current?.();
|
|
6588
7827
|
}, []);
|
|
6589
|
-
(0,
|
|
7828
|
+
(0, import_react15.useEffect)(() => {
|
|
6590
7829
|
ensureStyles4();
|
|
6591
7830
|
const created = document.createElement("div");
|
|
6592
7831
|
created.setAttribute("data-dsh-leader-agent-session-tabs", "");
|
|
@@ -6651,27 +7890,30 @@ function SessionTabsAnchor(props) {
|
|
|
6651
7890
|
column?.removeAttribute(COLUMN_ATTR);
|
|
6652
7891
|
mainBody?.removeAttribute(MAIN_ATTR);
|
|
6653
7892
|
created.remove();
|
|
6654
|
-
document.getElementById(
|
|
7893
|
+
document.getElementById(STYLE_ID6)?.remove();
|
|
6655
7894
|
};
|
|
6656
7895
|
}, []);
|
|
6657
|
-
return host === null ? null : (0, import_react_dom4.createPortal)((0,
|
|
7896
|
+
return host === null ? null : (0, import_react_dom4.createPortal)((0, import_react15.createElement)(SessionTabBar, { ...props, reportVisible }), host);
|
|
6658
7897
|
}
|
|
6659
|
-
function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout, getSidebarRight, reportVisible }) {
|
|
7898
|
+
function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout, getSidebarRight, getContextMenus, reportVisible }) {
|
|
6660
7899
|
const sessions = getSessions?.();
|
|
6661
|
-
const
|
|
7900
|
+
const menus = getContextMenus?.() ?? null;
|
|
7901
|
+
const hasMenu = hasSessionMenu(menus);
|
|
7902
|
+
const [snapshot, setSnapshot] = (0, import_react15.useState)(() => sessions?.list?.getSnapshot?.() ?? {
|
|
6662
7903
|
phase: "pending",
|
|
6663
7904
|
ids: [],
|
|
6664
7905
|
byId: {}
|
|
6665
7906
|
});
|
|
6666
|
-
const [completed, setCompleted] = (0,
|
|
6667
|
-
const [projects, setProjects] = (0,
|
|
6668
|
-
const [groups, setGroups] = (0,
|
|
6669
|
-
const [store, setStore] = (0,
|
|
6670
|
-
const [panelActive, setPanelActive] = (0,
|
|
6671
|
-
const
|
|
6672
|
-
const
|
|
6673
|
-
const
|
|
6674
|
-
const
|
|
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 () => {
|
|
6675
7917
|
if (!isProjectRemoteReady()) return;
|
|
6676
7918
|
try {
|
|
6677
7919
|
const [nextProjects, nextGroups] = await Promise.all([
|
|
@@ -6684,7 +7926,7 @@ function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout,
|
|
|
6684
7926
|
console.error("dsh-leader-agent: \u8BFB\u53D6\u9879\u76EE\u6807\u7B7E\u6570\u636E\u5931\u8D25", error);
|
|
6685
7927
|
}
|
|
6686
7928
|
}, [callRemote]);
|
|
6687
|
-
(0,
|
|
7929
|
+
(0, import_react15.useEffect)(() => {
|
|
6688
7930
|
if (!sessions?.list?.subscribe) return void 0;
|
|
6689
7931
|
const tracker = createSessionCompletionTracker();
|
|
6690
7932
|
const sync = () => {
|
|
@@ -6695,10 +7937,10 @@ function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout,
|
|
|
6695
7937
|
sync();
|
|
6696
7938
|
return sessions.list.subscribe(sync);
|
|
6697
7939
|
}, [sessions]);
|
|
6698
|
-
(0,
|
|
7940
|
+
(0, import_react15.useEffect)(() => onProjectRemoteReady(() => {
|
|
6699
7941
|
void refresh();
|
|
6700
7942
|
}), [refresh]);
|
|
6701
|
-
(0,
|
|
7943
|
+
(0, import_react15.useEffect)(() => {
|
|
6702
7944
|
const stop = onProjectsChanged(() => {
|
|
6703
7945
|
void refresh();
|
|
6704
7946
|
});
|
|
@@ -6711,28 +7953,46 @@ function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout,
|
|
|
6711
7953
|
window.removeEventListener("focus", onFocus);
|
|
6712
7954
|
};
|
|
6713
7955
|
}, [refresh]);
|
|
6714
|
-
(0,
|
|
7956
|
+
(0, import_react15.useEffect)(() => {
|
|
6715
7957
|
const info = getLayout?.()?.panelInfo;
|
|
6716
7958
|
if (info === void 0 || typeof info.subscribe !== "function") return void 0;
|
|
6717
7959
|
const sync = () => setPanelActive(info.getSnapshot().activePanelId !== null);
|
|
6718
7960
|
sync();
|
|
6719
7961
|
return info.subscribe(sync);
|
|
6720
7962
|
}, [getLayout]);
|
|
6721
|
-
const currentSessionId = (0,
|
|
6722
|
-
(0,
|
|
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)(() => {
|
|
6723
7983
|
const previous = lastCurrent.current;
|
|
6724
7984
|
lastCurrent.current = currentSessionId;
|
|
6725
7985
|
if (previous !== void 0 && currentSessionId !== void 0 && previous !== currentSessionId) {
|
|
6726
7986
|
void refresh();
|
|
6727
7987
|
}
|
|
6728
7988
|
}, [currentSessionId, refresh]);
|
|
6729
|
-
(0,
|
|
7989
|
+
(0, import_react15.useEffect)(() => {
|
|
6730
7990
|
try {
|
|
6731
7991
|
window.localStorage.setItem(SESSION_TABS_STORAGE_KEY, serializeTabStore(store));
|
|
6732
7992
|
} catch {
|
|
6733
7993
|
}
|
|
6734
7994
|
}, [store]);
|
|
6735
|
-
const rows = (0,
|
|
7995
|
+
const rows = (0, import_react15.useMemo)(() => {
|
|
6736
7996
|
const next = {};
|
|
6737
7997
|
for (const [id, row] of Object.entries(snapshot.byId ?? {})) {
|
|
6738
7998
|
next[id] = {
|
|
@@ -6745,14 +8005,14 @@ function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout,
|
|
|
6745
8005
|
}
|
|
6746
8006
|
return next;
|
|
6747
8007
|
}, [snapshot, completed]);
|
|
6748
|
-
const view = (0,
|
|
8008
|
+
const view = (0, import_react15.useMemo)(() => resolveTabView({
|
|
6749
8009
|
projects,
|
|
6750
8010
|
groups,
|
|
6751
8011
|
rows,
|
|
6752
8012
|
currentSessionId,
|
|
6753
8013
|
store
|
|
6754
8014
|
}), [projects, groups, rows, currentSessionId, store]);
|
|
6755
|
-
(0,
|
|
8015
|
+
(0, import_react15.useEffect)(() => {
|
|
6756
8016
|
const id = pendingFocus.current;
|
|
6757
8017
|
if (id === void 0 || view.activeSessionId !== id) return void 0;
|
|
6758
8018
|
pendingFocus.current = void 0;
|
|
@@ -6761,13 +8021,13 @@ function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout,
|
|
|
6761
8021
|
});
|
|
6762
8022
|
return () => cancelAnimationFrame(frame);
|
|
6763
8023
|
}, [view.activeSessionId]);
|
|
6764
|
-
(0,
|
|
8024
|
+
(0, import_react15.useEffect)(() => {
|
|
6765
8025
|
if (!view.visible || !view.isWorkerCurrent || currentSessionId === void 0) return;
|
|
6766
8026
|
if (hasOpenTab(store, view.project.id, currentSessionId)) return;
|
|
6767
8027
|
setStore((current2) => addOpenTab(current2, view.project.id, currentSessionId));
|
|
6768
8028
|
}, [view.visible, view.isWorkerCurrent, view.project?.id, currentSessionId]);
|
|
6769
|
-
const lastBoardCarry = (0,
|
|
6770
|
-
const carryBoard = (0,
|
|
8029
|
+
const lastBoardCarry = (0, import_react15.useRef)(void 0);
|
|
8030
|
+
const carryBoard = (0, import_react15.useCallback)(() => {
|
|
6771
8031
|
if (panelActive || currentSessionId === void 0) return;
|
|
6772
8032
|
if (!view.visible || !view.isWorkerCurrent) {
|
|
6773
8033
|
lastBoardCarry.current = void 0;
|
|
@@ -6795,19 +8055,33 @@ function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout,
|
|
|
6795
8055
|
}
|
|
6796
8056
|
lastBoardCarry.current = currentSessionId;
|
|
6797
8057
|
}, [currentSessionId, getSidebarRight, panelActive, view.visible, view.isWorkerCurrent, view.project?.id, view.project?.leaderSessionId]);
|
|
6798
|
-
(0,
|
|
8058
|
+
(0, import_react15.useLayoutEffect)(() => {
|
|
6799
8059
|
carryBoard();
|
|
6800
8060
|
}, [carryBoard]);
|
|
6801
|
-
(0,
|
|
8061
|
+
(0, import_react15.useEffect)(() => {
|
|
6802
8062
|
carryBoard();
|
|
6803
8063
|
}, [carryBoard]);
|
|
6804
8064
|
const barVisible = view.visible && !panelActive;
|
|
6805
|
-
(0,
|
|
8065
|
+
(0, import_react15.useLayoutEffect)(() => {
|
|
6806
8066
|
reportVisible?.(barVisible);
|
|
6807
8067
|
}, [barVisible, reportVisible]);
|
|
6808
8068
|
if (!barVisible) return null;
|
|
6809
|
-
const listLabel =
|
|
6810
|
-
const closeLabel =
|
|
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
|
+
};
|
|
6811
8085
|
const openSession = (sessionId) => {
|
|
6812
8086
|
if (sessionId === view.activeSessionId) return;
|
|
6813
8087
|
const workspace = getUiWorkspace?.();
|
|
@@ -6824,18 +8098,17 @@ function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout,
|
|
|
6824
8098
|
}
|
|
6825
8099
|
setStore((current2) => removeOpenTab(current2, view.project.id, sessionId));
|
|
6826
8100
|
};
|
|
6827
|
-
return (0,
|
|
8101
|
+
return (0, import_react15.createElement)(
|
|
6828
8102
|
"div",
|
|
6829
8103
|
{
|
|
6830
8104
|
className: "dsh-leader-agent-tabs",
|
|
6831
8105
|
"data-dsh-leader-agent-session-tabs-bar": "",
|
|
6832
|
-
|
|
6833
|
-
"aria-label": listLabel
|
|
8106
|
+
...hasMenu ? { "data-dsh-leader-agent-tabs-menu": "" } : {}
|
|
6834
8107
|
},
|
|
6835
|
-
(0,
|
|
8108
|
+
(0, import_react15.createElement)(
|
|
6836
8109
|
"div",
|
|
6837
|
-
{ className: "dsh-leader-agent-tabs-scroll" },
|
|
6838
|
-
...view.tabs.map((tab) => (0,
|
|
8110
|
+
{ className: "dsh-leader-agent-tabs-scroll", role: "tablist", "aria-label": listLabel },
|
|
8111
|
+
...view.tabs.map((tab) => (0, import_react15.createElement)(
|
|
6839
8112
|
"div",
|
|
6840
8113
|
{
|
|
6841
8114
|
key: tab.id,
|
|
@@ -6869,20 +8142,23 @@ function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout,
|
|
|
6869
8142
|
openSession(nextId);
|
|
6870
8143
|
}
|
|
6871
8144
|
},
|
|
6872
|
-
tab.kind === "leader" ? (0,
|
|
8145
|
+
tab.kind === "leader" ? (0, import_react15.createElement)(
|
|
6873
8146
|
"span",
|
|
6874
8147
|
{ className: "dsh-leader-agent-tab-icon" },
|
|
6875
8148
|
productIcon("apps-add-outline", { size: 14 })
|
|
6876
|
-
) : (0,
|
|
8149
|
+
) : (0, import_react15.createElement)(
|
|
6877
8150
|
"span",
|
|
6878
8151
|
{ className: "dsh-leader-agent-tab-dot" },
|
|
6879
|
-
(0,
|
|
6880
|
-
|
|
6881
|
-
|
|
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])
|
|
6882
8158
|
})
|
|
6883
8159
|
),
|
|
6884
|
-
(0,
|
|
6885
|
-
tab.kind === "worker" ? (0,
|
|
8160
|
+
(0, import_react15.createElement)("span", { className: "dsh-leader-agent-tab-label" }, tab.label),
|
|
8161
|
+
tab.kind === "worker" ? (0, import_react15.createElement)(
|
|
6886
8162
|
"button",
|
|
6887
8163
|
{
|
|
6888
8164
|
type: "button",
|
|
@@ -6897,6 +8173,21 @@ function SessionTabBar({ t, callRemote, getSessions, getUiWorkspace, getLayout,
|
|
|
6897
8173
|
productIcon("close-outline", { size: 12 })
|
|
6898
8174
|
) : null
|
|
6899
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 })
|
|
6900
8191
|
)
|
|
6901
8192
|
);
|
|
6902
8193
|
}
|
|
@@ -6910,9 +8201,9 @@ function readStore() {
|
|
|
6910
8201
|
}
|
|
6911
8202
|
|
|
6912
8203
|
// src/client/toast-view.js
|
|
6913
|
-
var
|
|
6914
|
-
var
|
|
6915
|
-
var
|
|
8204
|
+
var import_react16 = require("react");
|
|
8205
|
+
var STYLE_ID7 = "dsh-leader-agent-toast-style";
|
|
8206
|
+
var STYLE_TEXT7 = `
|
|
6916
8207
|
.dsh-leader-agent-toast {
|
|
6917
8208
|
position: fixed;
|
|
6918
8209
|
top: 40px;
|
|
@@ -6927,6 +8218,7 @@ var STYLE_TEXT6 = `
|
|
|
6927
8218
|
color: var(--dsw-alias-toast-label);
|
|
6928
8219
|
font-size: 14px;
|
|
6929
8220
|
line-height: 22px;
|
|
8221
|
+
overflow-wrap: anywhere;
|
|
6930
8222
|
box-shadow: var(--dsw-shadow-lv3);
|
|
6931
8223
|
transform: translateX(-50%);
|
|
6932
8224
|
animation:
|
|
@@ -6948,30 +8240,30 @@ var STYLE_TEXT6 = `
|
|
|
6948
8240
|
`;
|
|
6949
8241
|
function ensureStyles5() {
|
|
6950
8242
|
if (typeof document === "undefined") return;
|
|
6951
|
-
if (document.getElementById(
|
|
8243
|
+
if (document.getElementById(STYLE_ID7) !== null) return;
|
|
6952
8244
|
const style = document.createElement("style");
|
|
6953
|
-
style.id =
|
|
6954
|
-
style.textContent =
|
|
8245
|
+
style.id = STYLE_ID7;
|
|
8246
|
+
style.textContent = STYLE_TEXT7;
|
|
6955
8247
|
document.head.append(style);
|
|
6956
8248
|
}
|
|
6957
8249
|
function ToastOverlay() {
|
|
6958
|
-
const [toast, setToast] = (0,
|
|
6959
|
-
(0,
|
|
8250
|
+
const [toast, setToast] = (0, import_react16.useState)(currentToast);
|
|
8251
|
+
(0, import_react16.useEffect)(() => {
|
|
6960
8252
|
ensureStyles5();
|
|
6961
8253
|
setToast(currentToast());
|
|
6962
8254
|
return subscribeToasts(() => setToast(currentToast()));
|
|
6963
8255
|
}, []);
|
|
6964
|
-
(0,
|
|
8256
|
+
(0, import_react16.useEffect)(() => {
|
|
6965
8257
|
if (toast === null) return void 0;
|
|
6966
8258
|
const timer = setTimeout(() => dismissToast(toast.id), toast.holdMs + toast.fadeMs);
|
|
6967
8259
|
return () => clearTimeout(timer);
|
|
6968
8260
|
}, [toast]);
|
|
6969
8261
|
if (toast === null) return null;
|
|
6970
|
-
return (0,
|
|
6971
|
-
|
|
8262
|
+
return (0, import_react16.createElement)(
|
|
8263
|
+
import_react16.Fragment,
|
|
6972
8264
|
// key 跟着每次弹出换:同一条文案连着出现两次时重挂载,动画与计时都重来。
|
|
6973
8265
|
{ key: toast.id },
|
|
6974
|
-
(0,
|
|
8266
|
+
(0, import_react16.createElement)(
|
|
6975
8267
|
"div",
|
|
6976
8268
|
{
|
|
6977
8269
|
className: "dsh-leader-agent-toast",
|
|
@@ -7090,151 +8382,395 @@ var workerReportDefinition = {
|
|
|
7090
8382
|
};
|
|
7091
8383
|
|
|
7092
8384
|
// src/client/worker-report-view.js
|
|
7093
|
-
var
|
|
8385
|
+
var import_react18 = require("react");
|
|
7094
8386
|
|
|
7095
8387
|
// src/client/agent-bubble-view.js
|
|
7096
|
-
var
|
|
8388
|
+
var import_react17 = require("react");
|
|
7097
8389
|
|
|
7098
|
-
// node_modules/
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
hash & 1 << i % 15 ? acc + `<rect x="${i > 14 ? 7 - ~~(i / 5) : ~~(i / 5)}" y="${i % 5}" width="1" height="1"/>` : acc
|
|
7113
|
-
),
|
|
7114
|
-
// xmlns attribute added in case of SVG file generation https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg#sect1
|
|
7115
|
-
`<svg viewBox="-1.5 -1.5 8 8" xmlns="http://www.w3.org/2000/svg" fill="hsl(${hue} ${saturation}% ${lightness}%)">`
|
|
7116
|
-
) + "</svg>";
|
|
7117
|
-
}
|
|
7118
|
-
var minidenticonSvg = (
|
|
7119
|
-
// declared as a pure function to be tree-shaken by the bundler
|
|
7120
|
-
/* @__PURE__ */ globalThis.customElements?.get("minidenticon-svg") ? null : globalThis.customElements?.define(
|
|
7121
|
-
"minidenticon-svg",
|
|
7122
|
-
class MinidenticonSvg extends HTMLElement {
|
|
7123
|
-
static observedAttributes = ["username", "saturation", "lightness"];
|
|
7124
|
-
// private fields to allow Terser mangling
|
|
7125
|
-
static #memoized = {};
|
|
7126
|
-
#isConnected = false;
|
|
7127
|
-
connectedCallback() {
|
|
7128
|
-
this.#setContent();
|
|
7129
|
-
this.#isConnected = true;
|
|
7130
|
-
}
|
|
7131
|
-
// attributeChangedCallback() is called for every observed attribute before connectedCallback()
|
|
7132
|
-
attributeChangedCallback() {
|
|
7133
|
-
if (this.#isConnected) this.#setContent();
|
|
7134
|
-
}
|
|
7135
|
-
#setContent() {
|
|
7136
|
-
const args = MinidenticonSvg.observedAttributes.map((key) => this.getAttribute(key) || void 0);
|
|
7137
|
-
const memoKey = args.join(",");
|
|
7138
|
-
this.innerHTML = MinidenticonSvg.#memoized[memoKey] ??= // @ts-ignore
|
|
7139
|
-
minidenticon(...args);
|
|
7140
|
-
}
|
|
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;
|
|
7141
8404
|
}
|
|
7142
|
-
|
|
7143
|
-
|
|
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 === "&" ? "&" : e === "<" ? "<" : ">");
|
|
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
|
+
}
|
|
7144
8625
|
|
|
7145
8626
|
// src/client/worker-report-avatar.js
|
|
7146
|
-
var
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
"
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
const
|
|
7230
|
-
const
|
|
7231
|
-
|
|
7232
|
-
|
|
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 };
|
|
7233
8769
|
}
|
|
7234
8770
|
|
|
7235
8771
|
// src/client/agent-bubble-styles.js
|
|
7236
|
-
var
|
|
7237
|
-
var
|
|
8772
|
+
var STYLE_ID8 = "dsh-leader-agent-agent-bubble";
|
|
8773
|
+
var STYLE_TEXT8 = `
|
|
7238
8774
|
.dsh-leader-agent-agent-bubble {
|
|
7239
8775
|
display: flex;
|
|
7240
8776
|
flex-direction: column;
|
|
@@ -7250,12 +8786,42 @@ var STYLE_TEXT7 = `
|
|
|
7250
8786
|
}
|
|
7251
8787
|
|
|
7252
8788
|
.dsh-leader-agent-agent-bubble__avatar {
|
|
8789
|
+
display: block;
|
|
7253
8790
|
width: 20px;
|
|
7254
8791
|
height: 20px;
|
|
7255
|
-
border-radius: 5px;
|
|
7256
8792
|
flex-shrink: 0;
|
|
7257
8793
|
}
|
|
7258
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
|
+
|
|
7259
8825
|
.dsh-leader-agent-agent-bubble__name {
|
|
7260
8826
|
font-size: 12px;
|
|
7261
8827
|
font-weight: 500;
|
|
@@ -7374,41 +8940,44 @@ var STYLE_TEXT7 = `
|
|
|
7374
8940
|
`;
|
|
7375
8941
|
function ensureAgentBubbleStyles() {
|
|
7376
8942
|
if (typeof document === "undefined") return;
|
|
7377
|
-
if (document.getElementById(
|
|
8943
|
+
if (document.getElementById(STYLE_ID8) !== null) return;
|
|
7378
8944
|
const style = document.createElement("style");
|
|
7379
|
-
style.id =
|
|
7380
|
-
style.textContent =
|
|
8945
|
+
style.id = STYLE_ID8;
|
|
8946
|
+
style.textContent = STYLE_TEXT8;
|
|
7381
8947
|
document.head.append(style);
|
|
7382
8948
|
}
|
|
7383
8949
|
|
|
7384
8950
|
// src/client/bubble-clock.js
|
|
7385
|
-
function formatBubbleClock(time) {
|
|
8951
|
+
function formatBubbleClock(time, t) {
|
|
7386
8952
|
const date = new Date(time);
|
|
7387
8953
|
const now = /* @__PURE__ */ new Date();
|
|
7388
8954
|
const clock = `${String(date.getHours()).padStart(2, "0")}:${String(date.getMinutes()).padStart(2, "0")}`;
|
|
7389
8955
|
if (date.getFullYear() === now.getFullYear() && date.getMonth() === now.getMonth() && date.getDate() === now.getDate()) {
|
|
7390
8956
|
return clock;
|
|
7391
8957
|
}
|
|
7392
|
-
const
|
|
7393
|
-
const
|
|
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() });
|
|
7394
8961
|
return `${md} ${clock}`;
|
|
7395
8962
|
}
|
|
7396
8963
|
|
|
7397
8964
|
// src/client/agent-bubble-view.js
|
|
7398
|
-
function AgentBubble({ name, avatarSeed, openTitle, onOpenName, body, format, time }) {
|
|
7399
|
-
const [copied, setCopied] = (0,
|
|
7400
|
-
const [expanded, setExpanded] = (0,
|
|
7401
|
-
const [overflowing, setOverflowing] = (0,
|
|
7402
|
-
const bubbleRef = (0,
|
|
7403
|
-
(0,
|
|
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)(() => {
|
|
7404
8971
|
ensureAgentBubbleStyles();
|
|
7405
8972
|
const element = bubbleRef.current;
|
|
7406
8973
|
if (element === null || expanded) return void 0;
|
|
7407
8974
|
const measure = () => {
|
|
7408
8975
|
setOverflowing(element.scrollHeight > element.clientHeight + 1);
|
|
7409
8976
|
};
|
|
7410
|
-
|
|
7411
|
-
|
|
8977
|
+
if (typeof ResizeObserver === "undefined") {
|
|
8978
|
+
measure();
|
|
8979
|
+
return void 0;
|
|
8980
|
+
}
|
|
7412
8981
|
const observer = new ResizeObserver(measure);
|
|
7413
8982
|
observer.observe(element);
|
|
7414
8983
|
return () => observer.disconnect();
|
|
@@ -7422,18 +8991,32 @@ function AgentBubble({ name, avatarSeed, openTitle, onOpenName, body, format, ti
|
|
|
7422
8991
|
setCopied(true);
|
|
7423
8992
|
setTimeout(() => setCopied(false), 1500);
|
|
7424
8993
|
};
|
|
7425
|
-
|
|
8994
|
+
const avatar = buildAvatar(avatarSeed);
|
|
8995
|
+
return (0, import_react17.createElement)(
|
|
7426
8996
|
"div",
|
|
7427
8997
|
{ className: "dsh-leader-agent-agent-bubble" },
|
|
7428
|
-
(0,
|
|
8998
|
+
(0, import_react17.createElement)(
|
|
7429
8999
|
"div",
|
|
7430
9000
|
{ className: "dsh-leader-agent-agent-bubble__identity" },
|
|
7431
|
-
(0,
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
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)(
|
|
7437
9020
|
"button",
|
|
7438
9021
|
{
|
|
7439
9022
|
type: "button",
|
|
@@ -7444,20 +9027,20 @@ function AgentBubble({ name, avatarSeed, openTitle, onOpenName, body, format, ti
|
|
|
7444
9027
|
name
|
|
7445
9028
|
)
|
|
7446
9029
|
),
|
|
7447
|
-
(0,
|
|
9030
|
+
(0, import_react17.createElement)(
|
|
7448
9031
|
"div",
|
|
7449
9032
|
{ className: "dsh-leader-agent-agent-bubble__bubble" },
|
|
7450
9033
|
// 裁剪只发生在正文层:按钮在气泡内、正文外,否则展开开关会跟着两行水位被裁掉
|
|
7451
|
-
(0,
|
|
9034
|
+
(0, import_react17.createElement)(
|
|
7452
9035
|
"div",
|
|
7453
9036
|
{
|
|
7454
9037
|
ref: bubbleRef,
|
|
7455
9038
|
className: "dsh-leader-agent-agent-bubble__content",
|
|
7456
9039
|
"data-collapsed": expanded ? void 0 : "true"
|
|
7457
9040
|
},
|
|
7458
|
-
format === "markdown" ? (0,
|
|
9041
|
+
format === "markdown" ? (0, import_react17.createElement)(Markdown, { source: body, t }) : (0, import_react17.createElement)("div", { className: "dsh-leader-agent-agent-bubble__plain" }, body)
|
|
7459
9042
|
),
|
|
7460
|
-
overflowing ? (0,
|
|
9043
|
+
overflowing ? (0, import_react17.createElement)(
|
|
7461
9044
|
"button",
|
|
7462
9045
|
{
|
|
7463
9046
|
type: "button",
|
|
@@ -7465,20 +9048,20 @@ function AgentBubble({ name, avatarSeed, openTitle, onOpenName, body, format, ti
|
|
|
7465
9048
|
"aria-expanded": expanded,
|
|
7466
9049
|
onClick: () => setExpanded((value) => !value)
|
|
7467
9050
|
},
|
|
7468
|
-
expanded ? "
|
|
9051
|
+
expanded ? t("common.collapse") : t("bubble.more")
|
|
7469
9052
|
) : null
|
|
7470
9053
|
),
|
|
7471
|
-
(0,
|
|
9054
|
+
(0, import_react17.createElement)(
|
|
7472
9055
|
"div",
|
|
7473
9056
|
{ className: "dsh-leader-agent-agent-bubble__meta" },
|
|
7474
|
-
(0,
|
|
7475
|
-
(0,
|
|
9057
|
+
(0, import_react17.createElement)("span", { className: "dsh-leader-agent-agent-bubble__time" }, formatBubbleClock(time, t)),
|
|
9058
|
+
(0, import_react17.createElement)(
|
|
7476
9059
|
"button",
|
|
7477
9060
|
{
|
|
7478
9061
|
type: "button",
|
|
7479
9062
|
className: "dsh-leader-agent-agent-bubble__copy",
|
|
7480
|
-
"aria-label": copied ? "
|
|
7481
|
-
title: copied ? "
|
|
9063
|
+
"aria-label": copied ? t("bubble.copied") : t("bubble.copy"),
|
|
9064
|
+
title: copied ? t("bubble.copied") : t("bubble.copy"),
|
|
7482
9065
|
onClick: () => {
|
|
7483
9066
|
void copy();
|
|
7484
9067
|
}
|
|
@@ -7490,19 +9073,20 @@ function AgentBubble({ name, avatarSeed, openTitle, onOpenName, body, format, ti
|
|
|
7490
9073
|
}
|
|
7491
9074
|
|
|
7492
9075
|
// src/client/worker-report-view.js
|
|
7493
|
-
function WorkerReportView({ node, openSession }) {
|
|
9076
|
+
function WorkerReportView({ node, openSession, t }) {
|
|
7494
9077
|
const data = node?.data;
|
|
7495
9078
|
if (data === void 0) return null;
|
|
7496
|
-
return (0,
|
|
9079
|
+
return (0, import_react18.createElement)(AgentBubble, {
|
|
7497
9080
|
name: data.name,
|
|
7498
9081
|
avatarSeed: data.name,
|
|
7499
|
-
openTitle:
|
|
9082
|
+
openTitle: t("bubble.openSession", { name: data.name }),
|
|
7500
9083
|
onOpenName: () => openSession?.(data.childSessionId),
|
|
7501
9084
|
// 旧回报缺 report,回退整条通知正文;失败原因与逐行协议字段走纯文本,
|
|
7502
9085
|
// 判据见 workerReportFormat。
|
|
7503
9086
|
body: workerReportBody(data),
|
|
7504
9087
|
format: workerReportFormat(data),
|
|
7505
|
-
time: data.time
|
|
9088
|
+
time: data.time,
|
|
9089
|
+
t
|
|
7506
9090
|
});
|
|
7507
9091
|
}
|
|
7508
9092
|
|
|
@@ -7560,11 +9144,11 @@ var workerTaskDefinition = {
|
|
|
7560
9144
|
};
|
|
7561
9145
|
|
|
7562
9146
|
// src/client/worker-task-view.js
|
|
7563
|
-
var
|
|
9147
|
+
var import_react19 = require("react");
|
|
7564
9148
|
|
|
7565
9149
|
// src/client/worker-task-styles.js
|
|
7566
|
-
var
|
|
7567
|
-
var
|
|
9150
|
+
var STYLE_ID9 = "dsh-leader-agent-worker-task";
|
|
9151
|
+
var STYLE_TEXT9 = `
|
|
7568
9152
|
.dsh-leader-agent-worker-task {
|
|
7569
9153
|
display: flex;
|
|
7570
9154
|
flex-direction: column;
|
|
@@ -7631,18 +9215,18 @@ var STYLE_TEXT8 = `
|
|
|
7631
9215
|
`;
|
|
7632
9216
|
function ensureWorkerTaskStyles() {
|
|
7633
9217
|
if (typeof document === "undefined") return;
|
|
7634
|
-
if (document.getElementById(
|
|
9218
|
+
if (document.getElementById(STYLE_ID9) !== null) return;
|
|
7635
9219
|
const style = document.createElement("style");
|
|
7636
|
-
style.id =
|
|
7637
|
-
style.textContent =
|
|
9220
|
+
style.id = STYLE_ID9;
|
|
9221
|
+
style.textContent = STYLE_TEXT9;
|
|
7638
9222
|
document.head.append(style);
|
|
7639
9223
|
}
|
|
7640
9224
|
|
|
7641
9225
|
// src/client/worker-task-view.js
|
|
7642
|
-
function WorkerTaskView({ node }) {
|
|
9226
|
+
function WorkerTaskView({ node, t }) {
|
|
7643
9227
|
const data = node?.data;
|
|
7644
|
-
const [copied, setCopied] = (0,
|
|
7645
|
-
(0,
|
|
9228
|
+
const [copied, setCopied] = (0, import_react19.useState)(false);
|
|
9229
|
+
(0, import_react19.useLayoutEffect)(() => {
|
|
7646
9230
|
ensureWorkerTaskStyles();
|
|
7647
9231
|
}, []);
|
|
7648
9232
|
if (data === void 0) return null;
|
|
@@ -7656,34 +9240,34 @@ function WorkerTaskView({ node }) {
|
|
|
7656
9240
|
setCopied(true);
|
|
7657
9241
|
setTimeout(() => setCopied(false), 1500);
|
|
7658
9242
|
};
|
|
7659
|
-
return (0,
|
|
9243
|
+
return (0, import_react19.createElement)(
|
|
7660
9244
|
"div",
|
|
7661
9245
|
{ className: "dsh-leader-agent-worker-task" },
|
|
7662
|
-
(0,
|
|
9246
|
+
(0, import_react19.createElement)(
|
|
7663
9247
|
"div",
|
|
7664
9248
|
{
|
|
7665
9249
|
className: "dsh-leader-agent-worker-task__bubble",
|
|
7666
9250
|
// 与宿主用户气泡同一标记,便于界面侧把这块内容当消息正文处理。
|
|
7667
9251
|
"data-message-bubble": "",
|
|
7668
9252
|
// 形态与用户自己的消息一样,只能靠内容判断来源;这两条只做悬停与读屏提示。
|
|
7669
|
-
title: "
|
|
7670
|
-
"aria-label": "
|
|
9253
|
+
title: t("bubble.taskTitle"),
|
|
9254
|
+
"aria-label": t("bubble.taskTitle")
|
|
7671
9255
|
},
|
|
7672
9256
|
// 与 assistant 内容同套 Markdown:原文直接交给基线 MarkdownText,不补硬换行、
|
|
7673
9257
|
// 不做行级改写;单换行按 Markdown 合并。
|
|
7674
|
-
(0,
|
|
9258
|
+
(0, import_react19.createElement)(Markdown, { source: body, variant: "compact", t })
|
|
7675
9259
|
),
|
|
7676
|
-
(0,
|
|
9260
|
+
(0, import_react19.createElement)(
|
|
7677
9261
|
"div",
|
|
7678
9262
|
{ className: "dsh-leader-agent-worker-task__meta" },
|
|
7679
|
-
(0,
|
|
7680
|
-
(0,
|
|
9263
|
+
(0, import_react19.createElement)("span", { className: "dsh-leader-agent-worker-task__time" }, formatBubbleClock(data.time, t)),
|
|
9264
|
+
(0, import_react19.createElement)(
|
|
7681
9265
|
"button",
|
|
7682
9266
|
{
|
|
7683
9267
|
type: "button",
|
|
7684
9268
|
className: "dsh-leader-agent-worker-task__copy",
|
|
7685
|
-
"aria-label": copied ? "
|
|
7686
|
-
title: copied ? "
|
|
9269
|
+
"aria-label": copied ? t("bubble.copied") : t("bubble.copy"),
|
|
9270
|
+
title: copied ? t("bubble.copied") : t("bubble.copy"),
|
|
7687
9271
|
onClick: () => {
|
|
7688
9272
|
void copy();
|
|
7689
9273
|
}
|
|
@@ -7699,23 +9283,37 @@ var PLUGIN_ID = "dsh-leader-agent";
|
|
|
7699
9283
|
var inject = ["slots", "sidebarRightTabs", "sessions", "locale"];
|
|
7700
9284
|
function apply(ctx) {
|
|
7701
9285
|
ctx.effect(
|
|
7702
|
-
() => ctx.locale.register(SLOT_LOCALE_NAMESPACE,
|
|
9286
|
+
() => ctx.locale.register(SLOT_LOCALE_NAMESPACE, LOCALE_UI),
|
|
7703
9287
|
"dsh-leader-agent \u69FD\u4F4D\u663E\u793A\u540D"
|
|
7704
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
|
+
}
|
|
7705
9298
|
ctx.effect(() => ctx.sidebarRightTabs.register({
|
|
7706
9299
|
id: PLUGIN_ID,
|
|
7707
9300
|
kind: "dsh-leader-agent-board",
|
|
7708
9301
|
// 右栏按会话存布局:切会话时宿主会卸载非当前会话的栏。看板保留已访问的
|
|
7709
9302
|
// body(keepMounted),切回来不重挂、不重新拉项目与卡片,避免闪一下。
|
|
7710
9303
|
keepMounted: true,
|
|
7711
|
-
title: () => "
|
|
9304
|
+
title: () => t("tab.board"),
|
|
7712
9305
|
guide: [{
|
|
7713
9306
|
id: "board",
|
|
7714
9307
|
order: 10,
|
|
7715
|
-
title: () => "
|
|
7716
|
-
description: () => "
|
|
9308
|
+
title: () => t("tab.board"),
|
|
9309
|
+
description: () => t("tab.board.description")
|
|
7717
9310
|
}]
|
|
7718
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");
|
|
7719
9317
|
ctx.effect(() => ctx.slots.inject("sidebar.right.pane.tab", () => ctx.slots.register({
|
|
7720
9318
|
name: "sidebar.right.pane.tab",
|
|
7721
9319
|
key: PLUGIN_ID,
|
|
@@ -7744,7 +9342,8 @@ function apply(ctx) {
|
|
|
7744
9342
|
name: "sidebar.footer.action",
|
|
7745
9343
|
id: "dsh-leader-agent-projects",
|
|
7746
9344
|
order: 10,
|
|
7747
|
-
label: "
|
|
9345
|
+
label: () => t("project.label"),
|
|
9346
|
+
locale: SLOT_LOCALE_NAMESPACE,
|
|
7748
9347
|
inject: () => ({
|
|
7749
9348
|
callRemote: (method, args) => callProjectRemote(ctx, method, args),
|
|
7750
9349
|
getUiWorkspace: () => ctx.get("uiWorkspace"),
|
|
@@ -7769,9 +9368,18 @@ function apply(ctx) {
|
|
|
7769
9368
|
getSessions: () => ctx.sessions,
|
|
7770
9369
|
getUiWorkspace: () => ctx.get("uiWorkspace"),
|
|
7771
9370
|
getLayout: () => ctx.get("layout"),
|
|
7772
|
-
getSidebarRight: () => ctx.get("sidebarRight")
|
|
9371
|
+
getSidebarRight: () => ctx.get("sidebarRight"),
|
|
9372
|
+
// 「更多」菜单走宿主的 contextMenus 服务:标签栏接管按钮本身,菜单项
|
|
9373
|
+
// 仍由宿主与其它插件按 sessionHeader 目标注册,不在本仓复制一份。
|
|
9374
|
+
getContextMenus: () => ctx.get("contextMenus")
|
|
7773
9375
|
})
|
|
7774
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");
|
|
7775
9383
|
ctx.inject(["uiConversation"], function mountLeaderViewFiber(conversationCtx) {
|
|
7776
9384
|
mountLeaderView(conversationCtx);
|
|
7777
9385
|
mountGuideCard(conversationCtx);
|
|
@@ -7780,13 +9388,15 @@ function apply(ctx) {
|
|
|
7780
9388
|
ctx.inject(["remote"], function mountProjectChannel(remoteCtx) {
|
|
7781
9389
|
void mountProjectRemote(remoteCtx).catch((error) => {
|
|
7782
9390
|
const message = error instanceof Error ? error.message : String(error);
|
|
7783
|
-
reportProjectRemoteError(message);
|
|
7784
9391
|
remoteCtx.logger?.warn?.(`dsh-leader-agent: \u9879\u76EE\u901A\u9053\u6302\u8F7D\u5931\u8D25\uFF1A${message}`);
|
|
7785
9392
|
});
|
|
7786
9393
|
watchLeaderSessions(remoteCtx);
|
|
7787
9394
|
mountBoardMonitor(ctx);
|
|
7788
9395
|
});
|
|
7789
9396
|
}
|
|
9397
|
+
function BoardTabTitle({ t }) {
|
|
9398
|
+
return t("tab.board");
|
|
9399
|
+
}
|
|
7790
9400
|
function mountBoardMonitor(ctx) {
|
|
7791
9401
|
const sidebarRight = ctx.get("sidebarRight");
|
|
7792
9402
|
if (sidebarRight === void 0 || sidebarRight === null) {
|
|
@@ -7818,6 +9428,7 @@ function mountMessageBubbles(ctx) {
|
|
|
7818
9428
|
ctx.effect(() => ctx.slots.inject("conversation.chat.node", () => ctx.slots.register({
|
|
7819
9429
|
name: "conversation.chat.node",
|
|
7820
9430
|
key: bubble.kind,
|
|
9431
|
+
locale: SLOT_LOCALE_NAMESPACE,
|
|
7821
9432
|
// `uiWorkspace` 只挂在 web-app bundle 上,写进 inject 的服务缺失会让整个插件
|
|
7822
9433
|
// 挂起——惰性获取,点击名字时才取。
|
|
7823
9434
|
inject: () => ({
|