@galaxy-stack/blackhole-cli 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/application.d.ts.map +1 -1
  2. package/dist/application.js +3 -0
  3. package/dist/application.js.map +1 -1
  4. package/dist/cli.js +24 -0
  5. package/dist/cli.js.map +1 -1
  6. package/dist/commands.d.ts.map +1 -1
  7. package/dist/commands.js +2 -0
  8. package/dist/commands.js.map +1 -1
  9. package/dist/config-command.d.ts +35 -0
  10. package/dist/config-command.d.ts.map +1 -0
  11. package/dist/config-command.js +273 -0
  12. package/dist/config-command.js.map +1 -0
  13. package/dist/flow.d.ts.map +1 -1
  14. package/dist/flow.js +14 -3
  15. package/dist/flow.js.map +1 -1
  16. package/dist/info.d.ts +21 -0
  17. package/dist/info.d.ts.map +1 -0
  18. package/dist/info.js +33 -0
  19. package/dist/info.js.map +1 -0
  20. package/dist/logs.d.ts.map +1 -1
  21. package/dist/logs.js +10 -2
  22. package/dist/logs.js.map +1 -1
  23. package/dist/manual-config.d.ts +17 -0
  24. package/dist/manual-config.d.ts.map +1 -1
  25. package/dist/manual-config.js +35 -0
  26. package/dist/manual-config.js.map +1 -1
  27. package/dist/options.d.ts +2 -2
  28. package/dist/options.d.ts.map +1 -1
  29. package/dist/options.js +5 -1
  30. package/dist/options.js.map +1 -1
  31. package/dist/tui.d.ts.map +1 -1
  32. package/dist/tui.js +39 -1
  33. package/dist/tui.js.map +1 -1
  34. package/dist/update.d.ts +45 -0
  35. package/dist/update.d.ts.map +1 -0
  36. package/dist/update.js +158 -0
  37. package/dist/update.js.map +1 -0
  38. package/dist/web/web.d.ts.map +1 -1
  39. package/dist/web/web.js +16 -5
  40. package/dist/web/web.js.map +1 -1
  41. package/package.json +4 -3
  42. package/skills/galaxy-ui/SKILL.md +18 -0
  43. package/skills/orbit-framework/SKILL.md +18 -0
  44. package/web/brand/app-icon-192.png +0 -0
  45. package/web/brand/app-icon-512.png +0 -0
  46. package/web/brand/client.template.js +581 -79
  47. package/web/brand/dsh-locale-keys.json +2020 -0
  48. package/web/brand/favicon.png +0 -0
  49. package/web/brand/favicon.svg +12 -0
  50. package/web/brand/lib/app-icons.js +3 -0
  51. package/web/brand/lib/client.js +2303 -88
  52. package/web/brand/lib/favicon.js +1 -1
  53. package/web/brand/lib/index.js +618 -18
  54. package/web/brand/lib/journey-host.js +282 -0
  55. package/web/brand/lib/journey-run.d.ts +66 -0
  56. package/web/brand/lib/journey-run.js +315 -0
  57. package/web/brand/lib/journey-store.d.ts +61 -0
  58. package/web/brand/lib/journey-store.js +177 -0
  59. package/web/brand/logo.png +0 -0
  60. package/web/brand/logo.svg +20 -0
  61. package/web/brand/panel/journey-panel.js +884 -0
  62. package/web/brand/vi.locales.json +838 -8
  63. package/web/brand/zalo.jpg +0 -0
  64. package/web/patches/gbh-web.patch.yml +51 -2
@@ -9,7 +9,7 @@ window.__ModuleLoader__.load({
9
9
  /* UI primitives come from the renderer bundle; a missing module only costs the icon. */
10
10
  let primitives = null;
11
11
  try { primitives = require("@deepseek-ai/dsh-client-ui-primitives"); } catch (error) { primitives = null; }
12
- const LOGO = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAS1BMVEVHcEwABwsQ8/wMz9sMyNQJrr4N1N8Q7vcLv80Q8foQ8PkQ7fYFiZ0P6vMO2+UO3ecP6PEP5u8N2OIQ6/QP5O4P4uwO4OkR9v8R9f8lLy6cAAAAF3RSTlMAAfspHQo54xL069gEwFhos6VKzJeGd46TGgUAAAvESURBVHja7V3ZgqMqEA0CAoobivj/X3op0ESNSUwH7UlffJiZnixyqP1QZV8kOvg6/Ab+Lhd0+RMXikAikAgkAolAIpAIJAKJQCKQCCQCiUAikAgkAolA/k9ALlEiEUgE8v+wkWjsEUgEEo09AvlCIPJvAKF9Xcm/ACQVQ5b+BSBVMiTlXwDSD8PQ/wEgsrZAGvn9QNLMAmH464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YGJdIjgH0M7Og+OsTO5alTdZGaSajrtppqz5s/x84792z70Nln2dSpk08YAobrMBDn9yUCHDzxFrJ1ttBhY+XK1Z6mvnbtetcb1OiqkTQtUapa4B8+Dpj+qxG4SiBmikg/U48dyXNttqA07FmzZtiEieNpvEy99/t8fCAQoDcYyL1aTZ6edIg9ZOoKGWpI4Kwnn6+F7B61UAkbQmsvXZmd2j1VmyqG+ycNIwNZMrxciadHSCXr7RneD+99YBHg/bD4J8Mz/nn4Xk+GlT5Jn+H/A6N6wJRKp8uJAAAAAElFTkSuQmCC";
13
13
  const VI_LOCALES = {
14
14
  "common": {
15
15
  "ok": "OK",
@@ -205,7 +205,7 @@ window.__ModuleLoader__.load({
205
205
  "attachment.pathUnsupported": "Đường dẫn chứa ký tự không tham chiếu được, đổi tên rồi thử lại",
206
206
  "image.pending": "Ảnh chờ gửi",
207
207
  "image.openOriginal": "Mở ảnh gốc",
208
- "image.openOriginalLabel": "Mở ảnh gốc",
208
+ "image.openOriginalLabel": "{label}, bấm để xem ảnh gốc",
209
209
  "image.remove": "Xoá ảnh {name}",
210
210
  "image.original": "Ảnh gốc",
211
211
  "image.label": "Ảnh",
@@ -224,12 +224,12 @@ window.__ModuleLoader__.load({
224
224
  "file.remove": "Xoá tệp {name}",
225
225
  "file.uploading": "Đang tải tệp lên…",
226
226
  "file.uploadFailed": "Tải tệp lên thất bại",
227
- "file.retry": "Thử lại",
227
+ "file.retry": "Thử tải lên lại {name}",
228
228
  "file.stillUploading": "Tệp vẫn đang tải lên",
229
229
  "file.sessionUnavailable": "Phiên không khả dụng",
230
230
  "file.notStaged": "Tệp chưa được chuẩn bị",
231
231
  "file.label": "Tệp",
232
- "context.aria": "Ngữ cảnh",
232
+ "context.aria": "Đã dùng {percent} ngữ cảnh",
233
233
  "context.used": "Đã dùng",
234
234
  "context.system": "Hệ thống",
235
235
  "context.tools": "Công cụ",
@@ -272,7 +272,7 @@ window.__ModuleLoader__.load({
272
272
  "ask.rowTitle": "Hỏi",
273
273
  "ask.waiting": "Đang chờ",
274
274
  "ask.cancelled": "Đã huỷ",
275
- "ask.answered": "Đã trả lời",
275
+ "ask.answered": "Đã trả lời {answered}/{total}",
276
276
  "ask.skipped": "Bỏ qua",
277
277
  "bash.running": "Đang chạy",
278
278
  "bash.failed": "Thất bại",
@@ -293,8 +293,8 @@ window.__ModuleLoader__.load({
293
293
  "terminal.running": "Đang chạy",
294
294
  "terminal.done": "Xong",
295
295
  "terminal.failed": "Thất bại",
296
- "terminal.signal": "Tín hiệu",
297
- "terminal.exitCode": "Mã thoát",
296
+ "terminal.signal": "Tín hiệu {signal}",
297
+ "terminal.exitCode": "Mã thoát {code}",
298
298
  "terminal.noOutput": "Không có đầu ra",
299
299
  "image.sendFailed": "Gửi ảnh thất bại ({reason}); hãy thêm lại rồi thử lại",
300
300
  "todo.progress.done": "{done} đã xong",
@@ -1010,11 +1010,90 @@ window.__ModuleLoader__.load({
1010
1010
  "message.turnTime.speed": "Token mỗi giây (TPS)",
1011
1011
  "message.turnTime.ttft": "Thời gian tới token đầu (TTFT)"
1012
1012
  },
1013
+ "gbh.journey": {
1014
+ "view.journey": "Hành trình",
1015
+ "toolbar.path": "chưa có blueprint",
1016
+ "toolbar.save": "Lưu",
1017
+ "toolbar.reload": "Tải lại",
1018
+ "toolbar.undo": "Hoàn tác",
1019
+ "toolbar.redo": "Làm lại",
1020
+ "toolbar.zoomIn": "Phóng to",
1021
+ "toolbar.zoomOut": "Thu nhỏ",
1022
+ "toolbar.fit": "Vừa khung",
1023
+ "toolbar.layout": "Tự xếp",
1024
+ "node.outPort": "Kéo để nối",
1025
+ "node.inPort": "Thả kết nối vào đây",
1026
+ "inspector.empty": "Chọn một node hoặc edge để sửa.",
1027
+ "inspector.node": "Node",
1028
+ "inspector.edge": "Edge",
1029
+ "inspector.id": "Id",
1030
+ "inspector.label": "Nhãn",
1031
+ "inspector.kind": "Loại",
1032
+ "inspector.workflow": "Workflow",
1033
+ "inspector.actions": "Hành động (JSON)",
1034
+ "inspector.deleteNode": "Xoá node",
1035
+ "inspector.from": "Từ",
1036
+ "inspector.to": "Đến",
1037
+ "inspector.when": "Điều kiện",
1038
+ "inspector.deleteEdge": "Xoá edge",
1039
+ "status.loading": "Đang tải blueprint…",
1040
+ "status.loadFailed": "Không tải được blueprint.",
1041
+ "status.loaded": "Đã tải blueprint.",
1042
+ "status.newBlueprint": "Chưa có journey.json — đây là mẫu khởi đầu.",
1043
+ "status.saving": "Đang lưu…",
1044
+ "status.saved": "Đã lưu.",
1045
+ "status.saveFailed": "Không lưu được blueprint.",
1046
+ "status.conflict": "Blueprint đã bị sửa ở nơi khác.",
1047
+ "conflict.banner": "Agent (hoặc cửa sổ khác) vừa sửa blueprint này.",
1048
+ "conflict.reload": "Tải bản của họ",
1049
+ "toolbar.diagram": "Sơ đồ",
1050
+ "toolbar.spec": "Đặc tả",
1051
+ "run.start": "Chạy",
1052
+ "run.advance": "Chạy tiếp",
1053
+ "run.cancel": "Dừng",
1054
+ "run.status": "Run",
1055
+ "run.working": "Đang chạy hành trình…",
1056
+ "run.failed": "Gọi chạy hành trình thất bại.",
1057
+ "run.waiting": "Đang chờ",
1058
+ "run.approve": "Duyệt",
1059
+ "run.reject": "Từ chối",
1060
+ "run.retry": "Chạy lại",
1061
+ "spec.hint": "Cùng một document ở dạng JSON — sửa ở đây chính là sửa như agent sửa.",
1062
+ "spec.apply": "Áp dụng",
1063
+ "spec.reset": "Khôi phục",
1064
+ "spec.notObject": "Đặc tả phải là một object JSON.",
1065
+ "spec.applied": "Đã áp dụng đặc tả vào sơ đồ.",
1066
+ "status.reloaded": "Đã tải lại blueprint (bị sửa ở nơi khác)."
1067
+ },
1068
+ "gbh.feedback": {
1069
+ "action.send": "Gửi phản hồi qua email",
1070
+ "dialog.title": "Gửi phản hồi qua email",
1071
+ "dialog.hint": "Nội dung được mở sẵn trong ứng dụng mail của bạn; Galaxy không tải dữ liệu lên đâu cả. Muốn gửi kèm log hội thoại thì tải bằng /export rồi đính kèm.",
1072
+ "dialog.category": "Phân loại",
1073
+ "dialog.details": "Chi tiết",
1074
+ "dialog.placeholder": "Đã xảy ra chuyện gì? Bạn mong đợi điều gì?",
1075
+ "dialog.send": "Mở ứng dụng mail",
1076
+ "dialog.save": "Lưu vào phiên",
1077
+ "dialog.cancel": "Huỷ",
1078
+ "dialog.empty": "Hãy nhập chi tiết trước.",
1079
+ "dialog.saving": "Đang lưu…",
1080
+ "dialog.saved": "Đã lưu vào phiên này.",
1081
+ "dialog.saveFailed": "Không lưu được vào phiên.",
1082
+ "dialog.mailTo": "Gửi tới {email}",
1083
+ "mail.subject": "[Galaxy Blackhole] Phản hồi — {category}",
1084
+ "mail.session": "Phiên: {id}",
1085
+ "mail.title": "Tiêu đề: {title}",
1086
+ "mail.workspace": "Workspace: {cwd}",
1087
+ "mail.time": "Thời điểm: {time}",
1088
+ "mail.note": "Đính kèm log hội thoại vào mail nếu bạn muốn gửi kèm (/export tải về dạng ZIP).",
1089
+ "mail.none": "(không có)"
1090
+ },
1013
1091
  "gbh.sessions": {
1014
1092
  "action.delete": "Xoá phiên",
1093
+ "menu.delete": "Xoá phiên",
1015
1094
  "dialog.title": "Xoá phiên này?",
1016
1095
  "dialog.body": "Log của phiên và cache projection sẽ bị xoá khỏi DSH home. Không thể hoàn tác.",
1017
- "dialog.trash": "Tệp được chuyển vào .trash/sessions trước, nên vẫn có thể khôi phục thủ công.",
1096
+ "dialog.trash": "Tệp được chuyển vào .trash/sessions trước, nên vẫn có thể khôi phục thủ công. Phiên mà GUI còn giữ đang mở cũng bị archive để dòng của nó biến mất.",
1018
1097
  "dialog.cascade": "Phiên này có {count} phiên con. Xoá nó sẽ xoá luôn chúng.",
1019
1098
  "dialog.running": "Phiên đang chạy. Hãy dừng phiên trước khi xoá.",
1020
1099
  "dialog.cancel": "Huỷ",
@@ -1022,7 +1101,758 @@ window.__ModuleLoader__.load({
1022
1101
  "dialog.confirmCascade": "Xoá {count} phiên",
1023
1102
  "dialog.busy": "Đang xoá…",
1024
1103
  "dialog.failed": "Không xoá được phiên.",
1025
- "dialog.done": "Đã xoá phiên. Đang tải lại…"
1104
+ "dialog.done": "Đã xoá phiên.",
1105
+ "dialog.alreadyDeleted": "Phiên này đã được xoá trước đó. Dòng trong danh sách vừa được dọn.",
1106
+ "dialog.unknown": "Phiên này không còn dấu vết nào trong DSH home; danh sách đã được dọn.",
1107
+ "turnError.hint": "Hội thoại này đã vượt ngưỡng thật của route (~655k token prompt khi có tool và ảnh), nên provider từ chối mọi request mang theo nó — kể cả /compact. Hãy fork ở một lượt sớm hơn (icon branch) hoặc mở phiên mới để quay lại dưới ngưỡng."
1108
+ },
1109
+ "cordis": {
1110
+ "a11y.defining": "Đang định nghĩa plugin",
1111
+ "a11y.failed": "Định nghĩa thất bại",
1112
+ "a11y.stopped": "Định nghĩa bị ngắt",
1113
+ "action.approve": "Cho phép",
1114
+ "action.approveOnce": "Chỉ cho phép phiên bản này",
1115
+ "action.approvePlugin": "Cho phép các phiên bản sau của plugin này",
1116
+ "action.decline": "Từ chối",
1117
+ "action.inspect": "Kiểm tra",
1118
+ "action.remove": "Xoá",
1119
+ "action.retry": "Thử lại",
1120
+ "action.rollback": "Quay lại bản trước",
1121
+ "action.run": "Chạy",
1122
+ "action.stop": "Dừng",
1123
+ "body.clientCode": "Client",
1124
+ "body.copied": "Đã sao chép",
1125
+ "body.copy": "Sao chép",
1126
+ "body.hostCode": "Host",
1127
+ "body.output": "Kết quả",
1128
+ "body.source": "Mã nguồn plugin",
1129
+ "panel.approvals.aria": "Phê duyệt Cordis",
1130
+ "panel.current": "Hiện tại: {packageId}",
1131
+ "panel.empty": "Chưa có plugin nào được định nghĩa",
1132
+ "panel.group.current": "Phiên này",
1133
+ "panel.group.others": "Phiên khác",
1134
+ "panel.hint": "Điều khiển chạy nằm trong bảng Cordis phía trên Cài đặt",
1135
+ "panel.loading": "Đang đọc…",
1136
+ "panel.next": "Tiếp theo: {packageId}",
1137
+ "panel.plugins.aria": "Plugin Cordis",
1138
+ "panel.readFailed": "Đọc danh sách plugin thất bại: {message}",
1139
+ "panel.runningCount": "{count} đang chạy",
1140
+ "panel.title": "Plugin Cordis",
1141
+ "panel.trigger": "Plugin Cordis",
1142
+ "panel.version": "Phiên bản",
1143
+ "purpose.missing": "(không có mục đích)",
1144
+ "render.failedAbdicated": "Hiển thị thất bại ở {slot}; giao diện mặc định đã được khôi phục:",
1145
+ "render.failedHeld": "Hiển thị thất bại ở {slot}:",
1146
+ "row.defineTitle": "Đăng ký plugin Cordis",
1147
+ "row.removeTitle": "Xoá plugin Cordis",
1148
+ "row.runTitle": "Chạy plugin Cordis",
1149
+ "row.stopTitle": "Dừng plugin Cordis",
1150
+ "row.updateTitle": "Cập nhật plugin Cordis",
1151
+ "run.removed": "Gói này không còn tồn tại",
1152
+ "run.superseded": "Có thẻ chạy mới hơn ở bên dưới",
1153
+ "status.awaitingApproval": "Chờ phê duyệt",
1154
+ "status.clientPending": "Client sẵn sàng kích hoạt",
1155
+ "status.failed": "Chạy thất bại",
1156
+ "status.idle": "Sẵn sàng",
1157
+ "status.removed": "Đã xoá",
1158
+ "status.running": "Đang chạy",
1159
+ "status.superseded": "Có bản chạy mới hơn"
1160
+ },
1161
+ "deliverables": {
1162
+ "presented.action": "Mở",
1163
+ "presented.all": "Tất cả {count} tệp",
1164
+ "presented.collapse": "Thu gọn",
1165
+ "presented.collapseAria": "Thu gọn danh sách tệp đã bàn giao",
1166
+ "presented.defaultApp": "Mở bằng ứng dụng mặc định",
1167
+ "presented.directory": "Mở thư mục chứa",
1168
+ "presented.directoryError": "Không mở được thư mục chứa. Thử lại.",
1169
+ "presented.directoryOpened": "Đã yêu cầu mở thư mục chứa",
1170
+ "presented.directoryOpening": "Đang mở thư mục chứa…",
1171
+ "presented.error": "Không mở được. Nhấp để thử lại.",
1172
+ "presented.expandAria": "Hiện tất cả {count} tệp đã bàn giao",
1173
+ "presented.explorer": "Hiện trong File Explorer",
1174
+ "presented.file": "Tệp",
1175
+ "presented.finder": "Hiện trong Finder",
1176
+ "presented.hostError": "Không đọc được thông tin màn hình nền của Host",
1177
+ "presented.more": "Thêm thao tác tệp cho {name}",
1178
+ "presented.nativeUnavailable": "Tệp này không có đường dẫn Host khả dụng. Hãy xem trước trong thanh bên.",
1179
+ "presented.open": "Mở {name} bằng ứng dụng mặc định",
1180
+ "presented.opened": "Đã mở bằng ứng dụng mặc định",
1181
+ "presented.opening": "Đang mở…",
1182
+ "presented.preview": "Xem trước trong thanh bên",
1183
+ "presented.previewButton": "Mở {name} trong thanh bên",
1184
+ "presented.previewCard": "Xem trước {name} trong thanh bên",
1185
+ "presented.retry": "Thử lại",
1186
+ "presented.revealError": "Không hiển thị được trong trình quản lý tệp. Thử lại.",
1187
+ "presented.revealed": "Đã yêu cầu hiển thị trong trình quản lý tệp",
1188
+ "presented.revealing": "Đang hiển thị trong trình quản lý tệp…",
1189
+ "presented.unavailable": "Host này không có màn hình nền để mở tệp hoặc thư mục",
1190
+ "produced.label": "Tệp đã thay đổi",
1191
+ "produced.more": "+ {count} tệp",
1192
+ "produced.moreOne": "+ 1 tệp",
1193
+ "produced.open": "Mở {name}",
1194
+ "row.error": "Bàn giao thất bại",
1195
+ "row.inspect": "Kiểm tra lệnh gọi",
1196
+ "row.ok": "Đã bàn giao",
1197
+ "row.running": "Đang bàn giao",
1198
+ "row.stopped": "Đã ngắt",
1199
+ "row.title": "Bàn giao tệp"
1200
+ },
1201
+ "feedback": {
1202
+ "action.dislike": "Phản hồi kém",
1203
+ "action.dislikeActive": "Xoá đánh giá",
1204
+ "action.like": "Phản hồi tốt",
1205
+ "action.likeActive": "Xoá đánh giá",
1206
+ "category.instruction-following": "Hiểu và tuân thủ chỉ dẫn",
1207
+ "category.other": "Khác",
1208
+ "category.product-interaction": "Tính năng và tương tác sản phẩm",
1209
+ "category.resource-cost": "Mức dùng tài nguyên và chi phí",
1210
+ "category.security-privacy-permission": "Bảo mật, quyền riêng tư và quyền truy cập",
1211
+ "category.service-stability": "Độ ổn định và tốc độ",
1212
+ "category.task-result": "Kết quả tác vụ",
1213
+ "dialog.categories": "Loại phản hồi",
1214
+ "dialog.detail": "Chi tiết phản hồi",
1215
+ "dialog.hint": "Thêm chi tiết để giúp chúng tôi cải thiện. Nội dung gửi sẽ kèm nhật ký hội thoại hiện tại.",
1216
+ "dialog.title": "Gửi phản hồi",
1217
+ "error.conflict": "Phản hồi này đã được thay đổi ở nơi khác; đang hiện trạng thái mới nhất",
1218
+ "error.generic": "Không lưu được phản hồi",
1219
+ "error.load": "Không tải được phản hồi",
1220
+ "error.noteTooLarge": "Mô tả quá dài; hãy rút ngắn rồi gửi lại",
1221
+ "toast.recorded": "Cảm ơn phản hồi của bạn"
1222
+ },
1223
+ "goal": {
1224
+ "action.cancel": "Huỷ chỉnh sửa",
1225
+ "action.clear": "Xoá mục tiêu",
1226
+ "action.edit": "Sửa mục tiêu",
1227
+ "action.pause": "Tạm dừng mục tiêu",
1228
+ "action.resume": "Tiếp tục mục tiêu",
1229
+ "action.save": "Lưu mục tiêu",
1230
+ "commandInput.aria": "Ô nhập lệnh",
1231
+ "objective.aria": "Nội dung mục tiêu",
1232
+ "phase.active": "Mục tiêu đang chạy",
1233
+ "phase.active.disarmed": "Mục tiêu không hoạt động",
1234
+ "phase.blocked": "Mục tiêu bị chặn",
1235
+ "phase.paused": "Mục tiêu tạm dừng"
1236
+ },
1237
+ "plan": {
1238
+ "chip.exitFailed": "Thoát chế độ kế hoạch thất bại",
1239
+ "chip.label": "Kế hoạch",
1240
+ "chip.off.aria": "Chế độ kế hoạch đang tắt, nhấn để bật",
1241
+ "chip.off.title": "Chế độ kế hoạch đang tắt — nhấn để bật (/plan)",
1242
+ "chip.on.aria": "Chế độ kế hoạch đang bật, nhấn để tắt",
1243
+ "chip.on.title": "Chế độ kế hoạch đang bật — nhấn để tắt (/plan off)"
1244
+ },
1245
+ "question": {
1246
+ "action.next": "Tiếp theo",
1247
+ "action.skip": "Bỏ qua câu hỏi này",
1248
+ "custom.placeholder": "Nhập câu trả lời",
1249
+ "error.incomplete": "Hãy trả lời câu hỏi này trước.",
1250
+ "error.unanswered": "Hãy chọn một tuỳ chọn hoặc nhập câu trả lời riêng.",
1251
+ "nav.cancel": "Bỏ qua tất cả câu hỏi",
1252
+ "nav.maximize": "Mở rộng thẻ câu hỏi",
1253
+ "nav.minimize": "Thu gọn thẻ câu hỏi",
1254
+ "nav.next": "Câu hỏi tiếp theo",
1255
+ "nav.prev": "Câu hỏi trước",
1256
+ "option.recommended": "Đề xuất",
1257
+ "plan.approve": "Phê duyệt",
1258
+ "plan.decline": "Từ chối",
1259
+ "plan.discuss": "Trao đổi thêm",
1260
+ "plan.header": "Duyệt kế hoạch"
1261
+ },
1262
+ "reference": {
1263
+ "candidate.noCwd": "(không có thư mục làm việc)",
1264
+ "crumb.root": "Workspace",
1265
+ "section.files": "Tệp & thư mục",
1266
+ "section.sessions": "Phiên",
1267
+ "time.days": "{n} ngày",
1268
+ "time.hours": "{n} giờ",
1269
+ "time.minutes": "{n} phút",
1270
+ "time.months": "{n} tháng",
1271
+ "time.now": "vừa xong",
1272
+ "time.years": "{n} năm"
1273
+ },
1274
+ "schedule.catalog": {
1275
+ "frequency.every": "Mỗi {value} {unit}",
1276
+ "frequency.once": "Một lần",
1277
+ "list.aria": "Nhắc hẹn đang hoạt động",
1278
+ "relative.future": "sau {value} {unit}",
1279
+ "relative.now": "Đến hạn ngay",
1280
+ "relative.overdue": "quá hạn {value} {unit}",
1281
+ "status.overdue": "Quá hạn",
1282
+ "status.scheduled": "Đã lên lịch",
1283
+ "trigger.one": "{count} nhắc hẹn",
1284
+ "trigger.other": "{count} nhắc hẹn",
1285
+ "unit.day.one": "ngày",
1286
+ "unit.day.other": "ngày",
1287
+ "unit.hour.one": "giờ",
1288
+ "unit.hour.other": "giờ",
1289
+ "unit.minute.one": "phút",
1290
+ "unit.minute.other": "phút",
1291
+ "unit.second.one": "giây",
1292
+ "unit.second.other": "giây"
1293
+ },
1294
+ "session-log-download": {
1295
+ "dialog.close": "Đóng",
1296
+ "dialog.commandFailed": "Không bắt đầu được việc xuất phiên.",
1297
+ "dialog.errorTitle": "Xuất phiên thất bại",
1298
+ "dialog.preparingDescription": "Đang chuẩn bị tệp ZIP gồm phiên này, các phiên con và tệp đính kèm.",
1299
+ "dialog.preparingTitle": "Đang xuất phiên",
1300
+ "dialog.successDescription": "Trình duyệt đang tải tệp ZIP của phiên.",
1301
+ "dialog.successTitle": "Đã bắt đầu tải xuống phiên",
1302
+ "header.more": "Thao tác khác",
1303
+ "menu.download": "Tải xuống nhật ký phiên"
1304
+ },
1305
+ "settings.pluginInventory": {
1306
+ "active": "Đang chạy",
1307
+ "condition": "Tắt khi",
1308
+ "conditionalTag": "Có điều kiện",
1309
+ "configuration": "Cấu hình",
1310
+ "countUnit": "plugin",
1311
+ "disabledTag": "Đã tắt",
1312
+ "empty": "Không có plugin nào.",
1313
+ "emptySearch": "Không có plugin khớp.",
1314
+ "enabledIn": "Được bật trong",
1315
+ "enabledTag": "Đã bật",
1316
+ "error": "Plugin tạm thời không khả dụng.",
1317
+ "failed": "Khởi động thất bại",
1318
+ "failedCountLabel": "thất bại",
1319
+ "failedTag": "Thất bại",
1320
+ "fromPreset": "Từ",
1321
+ "globalSubtitle": "Dùng chung cho hệ thống và mọi phiên",
1322
+ "globalTitle": "Plugin toàn cục",
1323
+ "loading": "Đang đọc plugin…",
1324
+ "loadingPhase": "Đang tải",
1325
+ "matchesInOtherPresets": "{count} kết quả khác trong các preset khác: ",
1326
+ "moduleLabel": "Module",
1327
+ "pending": "Đang chờ phụ thuộc",
1328
+ "presetEnabledTag": "Bật qua preset",
1329
+ "presetOptionBroken": "{name} (tải thất bại)",
1330
+ "presetOptionDefault": "{name} (mặc định)",
1331
+ "presetProvidedDetail": "Bị tắt toàn cục; agent preset cung cấp theo từng phiên",
1332
+ "presetSubtitle": "Được agent preset ghép cho từng phiên",
1333
+ "presetTitle": "Plugin theo phiên",
1334
+ "retry": "Thử lại",
1335
+ "runtime": "Trạng thái",
1336
+ "search": "Tìm kiếm plugin",
1337
+ "switcherLabel": "Chọn agent preset để xem",
1338
+ "tab": "Danh sách plugin",
1339
+ "unloading": "Đang gỡ",
1340
+ "unobserved": "Không chạy",
1341
+ "viewInPreset": "Xem trong nhóm preset"
1342
+ },
1343
+ "settings.plugins": {
1344
+ "agentLoopDescription": "Cách agent điều phối các lệnh gọi công cụ.",
1345
+ "agentLoopMaxParallel": "Lệnh gọi công cụ song song",
1346
+ "agentLoopMaxParallelHint": "Giới hạn trên số lệnh gọi an toàn song song chạy cùng lúc trong một bước.",
1347
+ "agentLoopTitle": "Vòng lặp agent",
1348
+ "bashDescription": "Giới hạn mọi lệnh agent chạy.",
1349
+ "bashMaxOutputBytes": "Giới hạn đầu ra mỗi luồng (byte)",
1350
+ "bashMaxOutputBytesHint": "Phần đầu ra vượt ngưỡng được ghi ra tệp tạm thay vì bị mất.",
1351
+ "bashTimeoutMs": "Thời gian chờ lệnh (ms)",
1352
+ "bashTimeoutMsHint": "Thời gian tối đa một lệnh được chạy trước khi bị kết thúc.",
1353
+ "bashTitle": "Shell",
1354
+ "collapse": "Ẩn cài đặt",
1355
+ "configurableTab": "Cấu hình plugin",
1356
+ "discard": "Huỷ bỏ",
1357
+ "empty": "Triển khai này không cung cấp cài đặt plugin nào.",
1358
+ "expand": "Hiện cài đặt",
1359
+ "intro": "Cấu hình và kiểm tra các plugin đã cài trong triển khai này.",
1360
+ "invalidNumber": "Nhập một số, hoặc để trống để dùng mặc định.",
1361
+ "nav": "Plugin",
1362
+ "overridden": "Đã ghi đè",
1363
+ "readOnly": "Triển khai này lưu cài đặt ở chế độ chỉ đọc.",
1364
+ "reset": "Khôi phục mặc định",
1365
+ "save": "Lưu",
1366
+ "saveFailed": "Triển khai không chấp nhận các giá trị này; chúng được giữ nguyên để chỉnh lại.",
1367
+ "saving": "Đang lưu…",
1368
+ "subagentModelSelectionAllowed": "Model agent được chọn",
1369
+ "subagentModelSelectionChoose": "Khi bật, agent có thể chọn nhà cung cấp, model và mức suy luận cho từng subagent từ các model được phép bên dưới. Chỉ áp dụng cho phiên mới.",
1370
+ "subagentModelSelectionConflict": "Cài đặt đã thay đổi ở nơi khác. Huỷ bản nháp và thử lại.",
1371
+ "subagentModelSelectionDescription": "Kiểm soát những model agent được chọn cho subagent.",
1372
+ "subagentModelSelectionEmpty": "Hiện không nhà cung cấp nào công bố model.",
1373
+ "subagentModelSelectionLoadFailed": "Không tải được model.",
1374
+ "subagentModelSelectionLoading": "Đang tải model…",
1375
+ "subagentModelSelectionOff": "Subagent dùng mặc định đã cấu hình hoặc kế thừa model của agent cha. Các lựa chọn model đã lưu vẫn được giữ.",
1376
+ "subagentModelSelectionPartial": "Một số nhà cung cấp model không tải được; các lựa chọn đã lưu vẫn xoá được.",
1377
+ "subagentModelSelectionRequired": "Chọn ít nhất một model trước khi lưu.",
1378
+ "subagentModelSelectionRetry": "Thử lại",
1379
+ "subagentModelSelectionTitle": "Subagent",
1380
+ "subagentModelSelectionToggle": "Cho phép agent chọn model cho subagent",
1381
+ "subagentModelSelectionUnavailable": "Tạm thời không khả dụng",
1382
+ "subagentModelSelectionUnavailableGroup": "Đã lưu nhưng tạm thời không khả dụng",
1383
+ "tabs": "Chế độ xem plugin",
1384
+ "title": "Plugin",
1385
+ "unsaved": "Chưa lưu",
1386
+ "webSearchApiKey": "API key",
1387
+ "webSearchApiKeyHint": "Được lưu ngoài tệp cài đặt. Để trống để giữ API key hiện tại.",
1388
+ "webSearchApiKeySet": "Đã cấu hình API key.",
1389
+ "webSearchApiKeyUnset": "Chưa cấu hình API key; tìm kiếm không khả dụng cho đến khi có key.",
1390
+ "webSearchBaseUrl": "Endpoint",
1391
+ "webSearchBaseUrlHint": "Để trống để dùng mặc định của nhà cung cấp.",
1392
+ "webSearchDescription": "Nhà cung cấp tìm kiếm DeepSeek.",
1393
+ "webSearchMaxUses": "Số lần tìm kiếm tối đa mỗi yêu cầu",
1394
+ "webSearchMaxUsesHint": "Số lần một yêu cầu được tìm kiếm trước khi phải trả lời.",
1395
+ "webSearchTitle": "Tìm kiếm web"
1396
+ },
1397
+ "sidebarCodePreview": {
1398
+ "copied": "Đã sao chép",
1399
+ "copy": "Sao chép",
1400
+ "title": "Mã"
1401
+ },
1402
+ "sidebarFiles": {
1403
+ "empty": "Thư mục trống",
1404
+ "entry.other": "Không phải tệp hay thư mục nên không mở được.",
1405
+ "error.notDirectory": "Đó không phải là thư mục.",
1406
+ "error.notFound": "Thư mục đó không còn. Có thể đã bị di chuyển hoặc xoá.",
1407
+ "error.outsideWorkspace": "Thư mục đó nằm ngoài workspace nên thanh bên sẽ không đọc.",
1408
+ "error.unavailable": "Đọc thất bại: {message}",
1409
+ "guide.description": "Duyệt tệp trong workspace của phiên này",
1410
+ "guide.title": "Tệp trong workspace",
1411
+ "loading": "Đang đọc…",
1412
+ "noWorkspace": "Phiên này không có thư mục workspace.",
1413
+ "reload": "Tải lại",
1414
+ "truncated": "Quá nhiều mục, chỉ hiện một phần.",
1415
+ "type.label": "Tệp"
1416
+ },
1417
+ "sidebarRight": {
1418
+ "chrome.collapse": "Thu gọn thanh bên",
1419
+ "chrome.collapseAria": "Thu gọn thanh bên phải",
1420
+ "chrome.exitFullscreen": "Thoát toàn màn hình",
1421
+ "chrome.expand": "Mở thanh bên",
1422
+ "chrome.expandAria": "Mở thanh bên phải",
1423
+ "chrome.toFullscreen": "Toàn màn hình",
1424
+ "dock.addTab": "Tab mới",
1425
+ "dock.closeFloat": "Đóng",
1426
+ "dock.closeTab": "Đóng",
1427
+ "dock.dockFloat": "Đưa trở lại thanh bên",
1428
+ "dock.drop.bottom": "Thêm khung bên dưới",
1429
+ "dock.drop.center": "Di chuyển tới đây",
1430
+ "dock.drop.left": "Thêm khung bên trái",
1431
+ "dock.drop.right": "Thêm khung bên phải",
1432
+ "dock.drop.top": "Thêm khung bên trên",
1433
+ "dock.emptyPane": "Khung trống",
1434
+ "dock.splitPane": "Chia khung",
1435
+ "dock.splitPaneDisabled": "Tối đa hai khung",
1436
+ "dock.splitPaneNarrow": "Không đủ chiều rộng để chia khung, hãy mở rộng thanh bên",
1437
+ "tab.guide.title": "Bắt đầu",
1438
+ "tab.unavailable": "Chưa có gì ở đây xem được loại nội dung này."
1439
+ },
1440
+ "skill": {
1441
+ "menu.userOnly": "chỉ người dùng",
1442
+ "row.failed": "Tải skill thất bại",
1443
+ "row.inspect": "Xem chi tiết",
1444
+ "row.instructions": "Hướng dẫn",
1445
+ "row.running": "Đang tải skill",
1446
+ "row.stopped": "Đã dừng tải skill",
1447
+ "row.title": "Skill"
1448
+ },
1449
+ "subagent": {
1450
+ "activity.inactive": "không chạy",
1451
+ "activity.running": "đang chạy",
1452
+ "branch.collapse": "Thu gọn các subagent cấp dưới của {label}",
1453
+ "branch.expand": "Mở rộng các subagent cấp dưới của {label}",
1454
+ "count.running.one": "{count} subagent đang chạy",
1455
+ "count.running.other": "{count} subagent đang chạy",
1456
+ "count.total.one": "{count} subagent",
1457
+ "count.total.other": "{count} subagent",
1458
+ "diagnostic.corrupt": "bản ghi phiên bị hỏng",
1459
+ "diagnostic.unavailable": "bản ghi phiên tạm thời không khả dụng",
1460
+ "diagnostic.unsupported": "phiên bản bản ghi subagent không được hỗ trợ",
1461
+ "duration.days": "{days}d",
1462
+ "duration.daysHours": "{days}d {hours}h",
1463
+ "duration.exactDays": "{days}d {hours}h {minutes}m {seconds}s",
1464
+ "duration.exactTitle": "Tổng thời gian hoạt động: {duration}",
1465
+ "duration.hours": "{hours}h {minutes}m {seconds}s",
1466
+ "duration.minutes": "{minutes}m {seconds}s",
1467
+ "duration.months": "~{months}mo",
1468
+ "duration.monthsDays": "~{months}mo {days}d",
1469
+ "duration.seconds": "{seconds}s",
1470
+ "duration.years": "~{years}y",
1471
+ "duration.yearsMonths": "~{years}y {months}mo",
1472
+ "load.error": "Không tải được subagent",
1473
+ "loading.aria": "Đang tải subagent",
1474
+ "loading.label": "Đang tải subagent…",
1475
+ "mode.continuable": "có thể tiếp tục",
1476
+ "mode.oneShot": "một lần",
1477
+ "readonly.body": "Phiên cha đã ngoại tuyến; hãy mở lại để tiếp tục gửi tin nhắn.",
1478
+ "readonly.oneShot.body": "Tác vụ một lần không nhận tin nhắn tiếp theo; xem toàn bộ bản ghi thực thi tại đây.",
1479
+ "readonly.oneShot.title": "Bản ghi subagent một lần",
1480
+ "readonly.title": "Subagent này hiện chỉ đọc",
1481
+ "retry": "Thử lại",
1482
+ "switcher.aria": "Chuyển subagent: {title}",
1483
+ "tokens.million": "{value}M",
1484
+ "tokens.thousand": "{value}K",
1485
+ "tokens.total": "{value} tok",
1486
+ "tree.aria": "Phiên subagent"
1487
+ },
1488
+ "trajectory": {
1489
+ "block.label": "Khối #{index} {type}",
1490
+ "block.openSummary": "Mở tóm tắt lệnh gọi công cụ của khối #{index}",
1491
+ "block.openSummaryTitle": "Mở tóm tắt lệnh gọi công cụ",
1492
+ "column.input": "Input",
1493
+ "column.model": "Model",
1494
+ "column.output": "Output",
1495
+ "column.think": "Suy nghĩ",
1496
+ "column.time": "Thời gian",
1497
+ "column.tools": "Công cụ",
1498
+ "details.assistantMessage": "Tin nhắn trợ lý",
1499
+ "details.close": "Đóng chi tiết",
1500
+ "details.compacted": "Đã nén",
1501
+ "details.error": "Lỗi",
1502
+ "details.event": "Chi tiết sự kiện",
1503
+ "details.failure.auth": "API key không hợp lệ",
1504
+ "details.hierarchy": "Phân cấp",
1505
+ "details.model": "Model",
1506
+ "details.provider": "Nhà cung cấp",
1507
+ "details.purpose": "Mục đích",
1508
+ "details.resize": "Đổi kích thước chi tiết sự kiện",
1509
+ "details.resizeTitle": "Kéo để đổi kích thước. Nhấp đúp để đặt lại.",
1510
+ "details.result": "Kết quả",
1511
+ "details.retry": "Thử lại",
1512
+ "details.retryDelay": "Độ trễ thử lại",
1513
+ "details.scheduled": "Đã lên lịch",
1514
+ "details.source": "Nguồn",
1515
+ "details.status": "Trạng thái",
1516
+ "details.subtoolCalls": "Lệnh gọi công cụ con",
1517
+ "details.toolCall": "Lệnh gọi công cụ",
1518
+ "details.toolCalls": "Lệnh gọi công cụ",
1519
+ "group.compaction": "Nén ngữ cảnh {seq}",
1520
+ "group.message": "Tin nhắn",
1521
+ "group.step": "Bước {step}",
1522
+ "history.clickToLoadEarlier": "Nhấp để tải lịch sử trước đó",
1523
+ "history.loadEarlier": "Tải lịch sử trước đó",
1524
+ "history.loadingEarlier": "Đang tải lịch sử trước đó…",
1525
+ "history.loadingEarlierAria": "Đang tải lịch sử trước đó…",
1526
+ "history.loadingTrajectory": "Đang tải Trajectory…",
1527
+ "kind.assistant": "TRỢ LÝ",
1528
+ "kind.compacted": "ĐÃ NÉN",
1529
+ "kind.context": "NGỮ CẢNH",
1530
+ "kind.message": "Tin nhắn",
1531
+ "kind.sub": "Con",
1532
+ "kind.subtool": "CÔNG CỤ CON",
1533
+ "kind.system": "HỆ THỐNG",
1534
+ "kind.tool": "CÔNG CỤ",
1535
+ "kind.user": "NGƯỜI DÙNG",
1536
+ "layout.compacted": "Đã nén ngữ cảnh",
1537
+ "layout.compacting": "Đang nén ngữ cảnh…",
1538
+ "layout.compactionFailed": "Nén ngữ cảnh thất bại",
1539
+ "layout.compactionInterrupted": "Quá trình nén ngữ cảnh đã bị ngắt trước khi hoàn tất.",
1540
+ "layout.fileAttachments": "Tệp ×{count}",
1541
+ "layout.imageOnly": "Ảnh ×{count}",
1542
+ "layout.initialSystemPrompt": "System Prompt ban đầu",
1543
+ "layout.systemPromptAndToolsUpdated": "Đã cập nhật System Prompt và công cụ",
1544
+ "layout.systemPromptUpdated": "Đã cập nhật System Prompt",
1545
+ "layout.toolCallOnly": "Chỉ gọi công cụ",
1546
+ "layout.toolsUpdated": "Đã cập nhật công cụ",
1547
+ "options.json": "JSON tuỳ chọn yêu cầu",
1548
+ "options.notRecorded": "Không ghi nhận tuỳ chọn",
1549
+ "record.json": "JSON",
1550
+ "record.namedParametersJson": "JSON tham số của {name}",
1551
+ "record.noContent": "Không có nội dung",
1552
+ "record.noOutput": "Không có output",
1553
+ "record.noPayload": "Không ghi nhận payload",
1554
+ "record.noResult": "Không ghi nhận kết quả",
1555
+ "record.outputJson": "JSON kết quả",
1556
+ "record.parameters": "Tham số",
1557
+ "record.parametersJson": "JSON tham số",
1558
+ "record.payloadJson": "JSON payload",
1559
+ "record.resultJson": "JSON kết quả",
1560
+ "record.schemaUnavailable": "Không có schema",
1561
+ "record.systemPrompt": "System Prompt",
1562
+ "record.systemPromptMissing": "Yêu cầu này không có system prompt",
1563
+ "record.thinking": "Suy nghĩ",
1564
+ "record.toolCallOnly": "(chỉ gọi công cụ)",
1565
+ "record.tools": "Công cụ",
1566
+ "record.toolsMissing": "Yêu cầu này không có công cụ",
1567
+ "request.collapsedAssistant": "trợ lý",
1568
+ "request.collapsedSummary": "Đã thu gọn tóm tắt {kind}, {summary}",
1569
+ "request.collapsedTurn": "lượt",
1570
+ "request.compaction": "Nén ngữ cảnh · {section}",
1571
+ "request.compactionPurpose": "Nén ngữ cảnh",
1572
+ "request.label": "Yêu cầu #{request}",
1573
+ "request.labelCompaction": "Yêu cầu #{request} · Nén ngữ cảnh",
1574
+ "request.noContent": "không có nội dung",
1575
+ "request.retryProgress": "{retry}/{maximum}",
1576
+ "request.rowAria": "{request}{kind}, {content}",
1577
+ "request.rowAriaCompaction": "Yêu cầu {request}, nén ngữ cảnh",
1578
+ "request.rowPrefix": "Yêu cầu {request}, ",
1579
+ "section.betweenTurns": "Giữa các lượt",
1580
+ "source.goal": "Mục tiêu",
1581
+ "source.goalRound": "Mục tiêu · Vòng {round}",
1582
+ "source.messageJson": "JSON nguồn tin nhắn",
1583
+ "source.notRecorded": "Không ghi nhận nguồn",
1584
+ "source.plugin": "Plugin",
1585
+ "source.pluginNamed": "Plugin · {plugin}",
1586
+ "source.unknown": "Không rõ",
1587
+ "source.user": "Người dùng",
1588
+ "status.completed": "Hoàn thành",
1589
+ "status.failed": "Thất bại",
1590
+ "status.pending": "Đang chờ",
1591
+ "summary.steps.one": "{count} bước",
1592
+ "summary.steps.other": "{count} bước",
1593
+ "summary.toolCalls.one": "{count} lệnh gọi công cụ",
1594
+ "summary.toolCalls.other": "{count} lệnh gọi công cụ",
1595
+ "tab.diff": "Diff",
1596
+ "tab.options": "Tuỳ chọn",
1597
+ "tab.payload": "Payload",
1598
+ "tab.preview": "Xem trước",
1599
+ "tab.raw": "Thô",
1600
+ "tab.rawOutput": "Output thô",
1601
+ "tab.result": "Kết quả",
1602
+ "tab.schema": "Schema",
1603
+ "tab.source": "Nguồn",
1604
+ "tab.summary": "Tóm tắt",
1605
+ "tab.systemPrompt": "System Prompt",
1606
+ "tab.timing": "Thời gian",
1607
+ "tab.tools": "Công cụ",
1608
+ "tab.usage": "Lượng dùng",
1609
+ "timeline.aria": "Dòng thời gian Trajectory",
1610
+ "timeline.noTimingData": "Không có dữ liệu thời gian",
1611
+ "timeline.overviewAria": "Tổng quan dòng thời gian; kéo ngang để tập trung vào sự kiện",
1612
+ "timeline.started": "Bắt đầu {time}",
1613
+ "timeline.total": "Tổng {duration}",
1614
+ "timeline.ttftDecoding": "TTFT {ttft} · Giải mã {decoding}",
1615
+ "timing.duration": "Thời lượng",
1616
+ "timing.durationTooShort": "Thời lượng quá ngắn",
1617
+ "timing.firstTokenUnavailable": "Không có thời điểm token đầu tiên",
1618
+ "timing.generation": "Sinh token",
1619
+ "timing.notAvailable": "Không khả dụng",
1620
+ "timing.notRecorded": "Không ghi nhận",
1621
+ "timing.outputTokensUnavailable": "Không có dữ liệu token đầu ra",
1622
+ "timing.request": "Thời gian yêu cầu",
1623
+ "timing.sessionTimestamps": "Dấu thời gian của phiên",
1624
+ "timing.sessionTimestampsRunning": "Dấu thời gian của phiên (đang chạy)",
1625
+ "timing.showLocalTime": "Hiện giờ địa phương",
1626
+ "timing.showUnixTimestamp": "Hiện dấu thời gian Unix",
1627
+ "timing.source": "Nguồn thời gian",
1628
+ "timing.started": "Bắt đầu",
1629
+ "timing.stepStartUnavailable": "Không có thời điểm bắt đầu bước",
1630
+ "timing.throughput": "Thông lượng",
1631
+ "timing.totalDuration": "Tổng thời lượng",
1632
+ "timing.ttft": "TTFT",
1633
+ "timing.usageUnavailable": "Không có dữ liệu lượng dùng",
1634
+ "toolbar.actualTime": "Thời gian thực tế",
1635
+ "toolbar.aria": "Thanh công cụ Trajectory",
1636
+ "toolbar.calls": "Lệnh gọi",
1637
+ "toolbar.collapseCalls": "Thu gọn lệnh gọi",
1638
+ "toolbar.collapseTurns": "Thu gọn lượt",
1639
+ "toolbar.duration": "Thời lượng",
1640
+ "toolbar.expandCalls": "Mở rộng lệnh gọi",
1641
+ "toolbar.expandTurns": "Mở rộng lượt",
1642
+ "toolbar.search": "Tìm trong Trajectory",
1643
+ "toolbar.searchPlaceholder": "Tìm kiếm",
1644
+ "toolbar.turns": "Lượt",
1645
+ "toolbar.useActualDuration": "Dùng thời lượng thực tế",
1646
+ "toolbar.useEqualWidth": "Dùng độ rộng đều cho thao tác",
1647
+ "turn.label": "Lượt {turn}",
1648
+ "unit.milliseconds": "{value} ms",
1649
+ "unit.seconds": "{value} s",
1650
+ "unit.tokens": "{value} tok",
1651
+ "unit.tokensPerSecond": "{value} tok/s",
1652
+ "usage.cacheCreated": "Cache đã tạo",
1653
+ "usage.cached": "Đã cache",
1654
+ "usage.content": "Nội dung",
1655
+ "usage.input": "Input",
1656
+ "usage.notReported": "Chưa báo cáo lượng dùng",
1657
+ "usage.other": "Khác",
1658
+ "usage.output": "Output",
1659
+ "usage.reasoning": "Suy luận",
1660
+ "usage.sessionCumulative": "Luỹ kế của phiên",
1661
+ "usage.thisRequest": "Yêu cầu này",
1662
+ "usage.tokens": "Token",
1663
+ "view.trajectory": "Trajectory"
1664
+ },
1665
+ "workflowRun": {
1666
+ "member.empty": "Tên thành viên trống",
1667
+ "member.open": "Mở {name}",
1668
+ "phase.empty": "Tên giai đoạn trống",
1669
+ "phase.unassigned": "Chưa xếp giai đoạn",
1670
+ "run.empty": "Chưa có thành viên nào khởi chạy",
1671
+ "run.members.one": "{count} thành viên",
1672
+ "run.members.other": "{count} thành viên",
1673
+ "run.title": "{name}",
1674
+ "status.cancelled": "Đã huỷ",
1675
+ "status.completed": "Hoàn thành",
1676
+ "status.failed": "Thất bại",
1677
+ "status.interrupted": "Bị ngắt",
1678
+ "status.running": "Đang chạy",
1679
+ "statusCount.cancelled": "Đã huỷ {count}",
1680
+ "statusCount.completed": "Hoàn thành {count}",
1681
+ "statusCount.failed": "Thất bại {count}",
1682
+ "statusCount.interrupted": "Bị ngắt {count}",
1683
+ "statusCount.running": "Đang chạy {count}"
1684
+ },
1685
+ "sidebarDocumentPreview": {
1686
+ "changed": "Tệp đã thay đổi, đang hiện nội dung trước đó.",
1687
+ "error.notFound": "Không tìm thấy tệp. Có thể tệp đã bị di chuyển hoặc xoá.",
1688
+ "error.notRegularFile": "Không phải tệp thông thường, không có gì để hiển thị.",
1689
+ "error.notText": "Không phải tệp văn bản, tạm thời không xem trước được.",
1690
+ "error.tooLarge": "Trang này vượt quá giới hạn {limit} nên không đọc được.",
1691
+ "error.unavailable": "Đọc thất bại: {message}",
1692
+ "loadMore": "Tải thêm",
1693
+ "loading": "Đang đọc…",
1694
+ "openWith": "Mở bằng",
1695
+ "reload": "Đọc lại tệp",
1696
+ "reloadNow": "Tải lại",
1697
+ "rendererUnavailable": "Không xem trước được {name}.",
1698
+ "resourceUnavailable": "Dịch vụ tài nguyên tệp không khả dụng.",
1699
+ "retry": "Thử lại",
1700
+ "viewer.text": "Văn bản thuần",
1701
+ "wrap.aria": "Ngắt dòng",
1702
+ "wrap.disable": "Tắt ngắt dòng",
1703
+ "wrap.enable": "Bật ngắt dòng"
1704
+ },
1705
+ "documentHtml": {
1706
+ "failed": "Không xem trước được tài liệu HTML này.",
1707
+ "frame": "Xem trước tài liệu HTML",
1708
+ "loading": "Đang chuẩn bị xem trước HTML…",
1709
+ "title": "HTML"
1710
+ },
1711
+ "documentMarkdown": {
1712
+ "code.copied": "Đã sao chép",
1713
+ "code.copy": "Sao chép",
1714
+ "footnotes": "Chú thích",
1715
+ "viewer.label": "Markdown"
1716
+ },
1717
+ "job": {
1718
+ "count.idle.one": "{count} tác vụ nền",
1719
+ "count.idle.other": "{count} tác vụ nền",
1720
+ "count.live.one": "{count} tác vụ nền đang chạy",
1721
+ "count.live.other": "{count} tác vụ nền đang chạy",
1722
+ "duration.hours": "{hours} giờ {minutes} phút",
1723
+ "duration.minutes": "{minutes} phút {seconds} giây",
1724
+ "duration.seconds": "{seconds} giây",
1725
+ "duration.title.done": "Mất {duration}",
1726
+ "duration.title.live": "Đã chạy {duration}",
1727
+ "list.aria": "Tác vụ nền",
1728
+ "status.completed": "hoàn thành",
1729
+ "status.failed": "thất bại",
1730
+ "status.killed": "đã huỷ",
1731
+ "status.running": "đang chạy",
1732
+ "status.stopping": "đang dừng"
1733
+ },
1734
+ "settings.agentPreset": {
1735
+ "brokenBadge": "Tải thất bại",
1736
+ "brokenNoCopy": "Không thể nhân bản preset tải thất bại",
1737
+ "builtIn": "Tích hợp sẵn",
1738
+ "builtInGroup": "Tích hợp sẵn",
1739
+ "cancel": "Huỷ",
1740
+ "close": "Đóng",
1741
+ "composition": "Thành phần (agent.cordis.yml)",
1742
+ "copyIntro": "Toàn bộ preset được sao chép trên máy này. Mã định danh trở thành tên thư mục và không đổi được về sau; mọi thứ khác sửa trong tệp riêng của preset.",
1743
+ "copyOf": "Sao chép từ",
1744
+ "copyTitle": "Nhân bản preset",
1745
+ "create": "Tạo",
1746
+ "creating": "Đang tạo…",
1747
+ "creatorDraft": "Soạn preset tuỳ chỉnh bằng chế độ Creator",
1748
+ "customGroup": "Tuỳ chỉnh",
1749
+ "delete": "Xoá",
1750
+ "deleteConfirm": "Xoá",
1751
+ "deleteDescription": "Thư mục preset sẽ bị xoá. Các phiên đang chạy trên preset vẫn tiếp tục; phiên mới không chọn được preset này.",
1752
+ "deleteTitle": "Xoá preset này?",
1753
+ "deleting": "Đang xoá…",
1754
+ "displayName": "Tên",
1755
+ "displayNamePlaceholder": "Hiện trong danh sách chọn; mặc định theo mã định danh",
1756
+ "duplicate": "Nhân bản",
1757
+ "duplicateUnavailable": "Bản triển khai này không có thư mục preset ghi được",
1758
+ "error": "Không tải được preset agent.",
1759
+ "headerHint": "Preset agent mà phiên này chạy, cố định từ lúc phiên bắt đầu",
1760
+ "idInvalid": "Dùng chữ thường, chữ số và dấu gạch ngang, bắt đầu bằng chữ cái hoặc chữ số.",
1761
+ "idRequired": "Hãy đặt mã định danh cho preset.",
1762
+ "idTaken": "Đã có preset với mã định danh này.",
1763
+ "inUse": "Đang dùng",
1764
+ "nav": "Preset agent",
1765
+ "noDescription": "Không có mô tả.",
1766
+ "openLocation": "Mở thư mục",
1767
+ "presetCordisDescription": "Dành cho việc tạo preset agent tuỳ chỉnh, gồm mọi năng lực của chế độ Standard cùng khả năng soi runtime, thử nghiệm plugin và hướng dẫn soạn preset.",
1768
+ "presetCordisName": "Chế độ Creator",
1769
+ "presetId": "Mã định danh",
1770
+ "presetIdPlaceholder": "my-agent",
1771
+ "presetMinimalDescription": "Agent lập trình một công cụ với shell duy trì liên tục.",
1772
+ "presetMinimalName": "Chế độ tối giản",
1773
+ "presetPtcDescription": "Agent lập trình đầy đủ nhưng không có công cụ workflow; các công cụ khác được mở qua SDK của chế độ PTC để model gộp nhiều bước vào một chương trình TypeScript.",
1774
+ "presetPtcName": "Chế độ PTC",
1775
+ "presetStandardDescription": "Agent lập trình đầy đủ với chỉnh sửa tệp, shell, tìm kiếm tệp và web, skill, lập kế hoạch, mục tiêu, subagent và workflow.",
1776
+ "presetStandardName": "Chế độ Standard",
1777
+ "retry": "Thử lại",
1778
+ "revealedPathLabel": "Tệp preset:",
1779
+ "seatHint": "Preset agent cho phiên bạn sắp bắt đầu",
1780
+ "sectionIntro": "Preset là cách ghép plugin cho agent của một phiên — gồm công cụ, prompt và năng lực. Hãy nhân bản một preset có sẵn để thành của bạn, hoặc để agent tự soạn một preset trong chế độ Creator.",
1781
+ "setDefault": "Đặt làm mặc định",
1782
+ "showLocation": "Hiện vị trí",
1783
+ "switchRefused": "Không chuyển được sang {name}: {reason}",
1784
+ "userTrust": "Tuỳ chỉnh",
1785
+ "view": "Xem"
1786
+ },
1787
+ "sidebarImage": {
1788
+ "failed": "Không hiển thị được hình ảnh này.",
1789
+ "loading": "Đang mở hình ảnh…",
1790
+ "preview": "Xem trước hình ảnh: {name}",
1791
+ "title": "Hình ảnh",
1792
+ "unsupported": "Xem trước hình ảnh cần nội dung đầy đủ của tệp."
1793
+ },
1794
+ "sidebarPdf": {
1795
+ "failed": "Không hiển thị được PDF: {message}",
1796
+ "loading": "Đang mở PDF…",
1797
+ "pageImage": "Trang {page} của PDF",
1798
+ "password": "PDF này cần mật khẩu; chưa hỗ trợ xem trước tệp có mật khẩu.",
1799
+ "rendering": "Đang dựng trang…",
1800
+ "retry": "Thử lại",
1801
+ "title": "PDF",
1802
+ "unsupported": "Xem trước PDF cần nội dung đầy đủ của tệp.",
1803
+ "workerFailed": "Tiến trình dựng PDF không thể tiếp tục. Vui lòng thử lại."
1804
+ },
1805
+ "slash.menu": {
1806
+ "command": "Lệnh",
1807
+ "crumbs.aria": "Điều hướng thư mục",
1808
+ "drill.aria": "Duyệt thư mục",
1809
+ "drill.hint": "Duyệt thư mục",
1810
+ "drill.key": "Tab",
1811
+ "loading": "Đang tải…",
1812
+ "skill": "Skill",
1813
+ "subagent": "Subagent",
1814
+ "suggestions.aria": "Gợi ý lệnh"
1815
+ },
1816
+ "open-in-app": {
1817
+ "app.androidstudio": "Android Studio",
1818
+ "app.cursor": "Cursor",
1819
+ "app.explorer": "File Explorer",
1820
+ "app.filemanager": "Tệp",
1821
+ "app.finder": "Finder",
1822
+ "app.fork": "Fork",
1823
+ "app.ghostty": "Ghostty",
1824
+ "app.gitbash": "Git Bash",
1825
+ "app.github": "GitHub Desktop",
1826
+ "app.gitkraken": "GitKraken",
1827
+ "app.gnometerminal": "GNOME Terminal",
1828
+ "app.goland": "GoLand",
1829
+ "app.intellij": "IntelliJ IDEA",
1830
+ "app.iterm": "iTerm2",
1831
+ "app.kitty": "kitty",
1832
+ "app.konsole": "Konsole",
1833
+ "app.phpstorm": "PhpStorm",
1834
+ "app.pycharm": "PyCharm",
1835
+ "app.rider": "Rider",
1836
+ "app.rustrover": "RustRover",
1837
+ "app.smartgit": "SmartGit",
1838
+ "app.sourcetree": "Sourcetree",
1839
+ "app.sublimemerge": "Sublime Merge",
1840
+ "app.sublimetext": "Sublime Text",
1841
+ "app.terminal": "Terminal",
1842
+ "app.tower": "Tower",
1843
+ "app.vscode": "VS Code",
1844
+ "app.vscodeinsiders": "VS Code Insiders",
1845
+ "app.warp": "Warp",
1846
+ "app.webstorm": "WebStorm",
1847
+ "app.windowsterminal": "Windows Terminal",
1848
+ "app.windsurf": "Windsurf",
1849
+ "app.xcode": "Xcode",
1850
+ "app.zed": "Zed",
1851
+ "menu.aria": "Mở bằng",
1852
+ "menu.toggle": "Chọn ứng dụng để mở",
1853
+ "open.error": "Không mở được",
1854
+ "open.title": "Mở workspace bằng {app}",
1855
+ "open.tooltip": "Mở trên máy"
1026
1856
  }
1027
1857
  };
1028
1858
  const EN_OVERRIDES = {
@@ -1155,56 +1985,15 @@ window.__ModuleLoader__.load({
1155
1985
  document.body.append(overlay);
1156
1986
  setTimeout(function () { try { input.focus(); } catch (error) { /* ignore */ } }, 30);
1157
1987
  }
1158
- /**
1159
- * A reasoning-effort control seated before the composer submit action. The
1160
- * effort list comes from the current model route, so it differs per system.
1161
- */
1162
- function GbhThinkingControl(props) {
1163
- var store = props.directory;
1164
- var state = react.useSyncExternalStore(function (fn) { return store.subscribe(fn); }, function () { return store.getSnapshot(); });
1165
- react.useEffect(function () { try { props.load(); } catch (error) { /* ignore */ } }, []);
1166
- var current = state.current;
1167
- if (!current) return null;
1168
- var choice = null;
1169
- for (var i = 0; i < state.groups.length && choice === null; i += 1) {
1170
- var group = state.groups[i];
1171
- for (var j = 0; j < group.models.length; j += 1) {
1172
- if (group.id === current.provider && group.models[j].id === current.model) { choice = { group: group, model: group.models[j] }; break; }
1173
- }
1174
- }
1175
- var reasoning = choice === null ? undefined : choice.model.reasoning;
1176
- if (!reasoning || !reasoning.efforts || reasoning.efforts.length === 0) return null;
1177
- var vi = false;
1178
- try { vi = props.localeActive === "vi"; } catch (error) { /* default en */ }
1179
- var label = vi ? "Suy nghĩ" : "Thinking";
1180
- var effective = current.reasoningEffort !== undefined ? current.reasoningEffort : reasoning.defaultEffort;
1181
- var options = [];
1182
- if (reasoning.defaultEffort === undefined) options.push(react_jsx_runtime.jsx("option", { value: "", key: "default" }, vi ? "Mặc định" : "Default"));
1183
- for (var k = 0; k < reasoning.efforts.length; k += 1) {
1184
- options.push(react_jsx_runtime.jsx("option", { value: reasoning.efforts[k].id, key: reasoning.efforts[k].id }, reasoning.efforts[k].name));
1185
- }
1186
- return react_jsx_runtime.jsx("select", {
1187
- value: effective === undefined ? "" : effective,
1188
- title: label,
1189
- "aria-label": label,
1190
- disabled: props.available === false,
1191
- onChange: function (event) {
1192
- var value = event.target.value;
1193
- var selection = { provider: current.provider, model: current.model };
1194
- if (value !== "") selection.reasoningEffort = value;
1195
- props.select(selection);
1196
- },
1197
- style: { height: "28px", borderRadius: "14px", border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))", background: "transparent", color: "var(--dsw-alias-label-tertiary, inherit)", font: "inherit", fontSize: "12px", padding: "0 8px", cursor: "pointer" }
1198
- }, options);
1199
- }
1200
1988
  /** Locale namespace owned by the Galaxy session tools. */
1201
1989
  const GBH_SESSIONS_NS = "gbh.sessions";
1202
1990
  /** English dictionary for the session tools; Vietnamese lives in vi.locales.json. */
1203
1991
  const GBH_SESSIONS_EN = {
1204
1992
  "action.delete": "Delete session",
1993
+ "menu.delete": "Delete session",
1205
1994
  "dialog.title": "Delete this session?",
1206
1995
  "dialog.body": "The session log and its projection cache are removed from the DSH home. This cannot be undone.",
1207
- "dialog.trash": "Artifacts are moved to .trash/sessions first, so they can still be recovered by hand.",
1996
+ "dialog.trash": "Artifacts are moved to .trash/sessions first, so they can still be recovered by hand. A session the GUI still holds open is also archived, which removes its row.",
1208
1997
  "dialog.cascade": "This session has {count} descendant session(s). Deleting it also deletes them.",
1209
1998
  "dialog.running": "This session is running. Stop it before deleting.",
1210
1999
  "dialog.cancel": "Cancel",
@@ -1212,8 +2001,62 @@ window.__ModuleLoader__.load({
1212
2001
  "dialog.confirmCascade": "Delete {count} sessions",
1213
2002
  "dialog.busy": "Deleting…",
1214
2003
  "dialog.failed": "Could not delete the session.",
1215
- "dialog.done": "Session deleted. Reloading…"
2004
+ "dialog.done": "Session deleted.",
2005
+ "dialog.alreadyDeleted": "This session was already deleted. Its row has now been cleaned up.",
2006
+ "dialog.unknown": "This session left no trace in the DSH home; the list has been cleaned up.",
2007
+ "turnError.hint": "This conversation outgrew what the route really serves (~655k prompt tokens with tools and images), so the provider refuses every request that carries it — including /compact. Fork an earlier turn (branch icon) or open a new session to get back under the limit."
1216
2008
  };
2009
+ /** Provider failure codes whose only way out is changing the request itself. */
2010
+ const GBH_STUCK_CODES = { SERVER: 1, TRANSPORT: 1, TIMEOUT: 1, RATE_LIMIT: 1, EMPTY_RESPONSE: 1 };
2011
+ /**
2012
+ * Point at the way out when the provider refuses a turn.
2013
+ *
2014
+ * DSH renders a terminal turn failure with no next step, and re-sending the exact
2015
+ * prompt is what keeps failing (measured 2026-09-29: the same conversation was
2016
+ * still refused 2 and 20 minutes later, while every other conversation worked, and
2017
+ * the route itself served 1M-token prompts). Both escapes change the request: a
2018
+ * compaction replaces the history with a summary, and a fork from an earlier turn
2019
+ * starts from a smaller prefix.
2020
+ */
2021
+ function gbhAnnotateTurnErrors(sessionsT) {
2022
+ var rows = document.querySelectorAll("[class*=turnErrorRow]");
2023
+ var limit = Math.min(rows.length, 20);
2024
+ for (var i = 0; i < limit; i += 1) {
2025
+ var row = rows[i];
2026
+ /* React may re-render the row and drop the node, so probe the hint, not a flag. */
2027
+ if (row.querySelector("[data-gbh-turn-hint]") !== null) continue;
2028
+ var code = row.querySelector("[class*=turnErrorCode]");
2029
+ var label = code === null ? "" : (code.textContent || "").trim();
2030
+ if (GBH_STUCK_CODES[label] !== 1) continue;
2031
+ var hint = document.createElement("div");
2032
+ hint.setAttribute("data-gbh-turn-hint", "1");
2033
+ hint.textContent = sessionsT("turnError.hint");
2034
+ /* The row is a 10px | copy | code grid, so the hint spans the copy column below. */
2035
+ hint.style.cssText = "grid-column:2/-1;margin-top:2px;color:var(--dsw-alias-label-tertiary,inherit);font-size:12px;line-height:18px";
2036
+ row.append(hint);
2037
+ }
2038
+ }
2039
+ /** Success wording that reports what the route actually did. */
2040
+ function gbhDeleteOutcomeText(body, t) {
2041
+ if (body && body.found === false) return t("dialog.unknown");
2042
+ if (body && body.alreadyDeleted === true) return t("dialog.alreadyDeleted");
2043
+ return t("dialog.done");
2044
+ }
2045
+ /**
2046
+ * Put the sidebar back in sync after a delete.
2047
+ *
2048
+ * A Session this DSH process still holds attached cannot be unlinked out of every
2049
+ * list on its own: the Host hides it through the archive set, which arrives as a
2050
+ * workspace frame. The list refresh covers the cold case (the row's summary is
2051
+ * gone with its projection cache), and only the open Session needs a reload.
2052
+ */
2053
+ function gbhAfterDelete(sessionId) {
2054
+ try {
2055
+ var current = gbhCtx !== undefined && gbhCtx.sessions !== undefined ? gbhCtx.sessions.list.getSnapshot().current : undefined;
2056
+ if (current === sessionId) { location.reload(); return; }
2057
+ if (gbhCtx !== undefined && gbhCtx.sessions !== undefined) gbhCtx.sessions.refresh();
2058
+ } catch (error) { /* the list refresh is best effort */ }
2059
+ }
1217
2060
  /** Same-origin Host base with the connection carrier\u0027s null-origin fallback. */
1218
2061
  function gbhHostBase() {
1219
2062
  var origin = globalThis.location && globalThis.location.origin;
@@ -1231,7 +2074,7 @@ window.__ModuleLoader__.load({
1231
2074
  }).catch(function (error) { return { ok: false, code: "network", message: String(error) }; });
1232
2075
  }
1233
2076
  /** Modal confirmation built with plain DOM, matching the Galaxy key dialog style. */
1234
- function gbhConfirmDeleteSession(sessionId, t, onFinished) {
2077
+ function gbhConfirmDeleteSession(sessionId, t, onFinished, onDeleted) {
1235
2078
  if (typeof document === "undefined") return;
1236
2079
  if (document.getElementById("gbh-delete-session-dialog")) return;
1237
2080
  var overlay = document.createElement("div");
@@ -1265,7 +2108,13 @@ window.__ModuleLoader__.load({
1265
2108
  function finish(body) {
1266
2109
  confirm.disabled = true;
1267
2110
  errorEl.style.color = "var(--dsw-alias-label-secondary,#9aa0a6)";
1268
- errorEl.textContent = t("dialog.done");
2111
+ /* An id whose artifacts are already gone is a success, not a dead end. */
2112
+ errorEl.textContent = gbhDeleteOutcomeText(body, t);
2113
+ if (typeof onDeleted === "function") {
2114
+ onDeleted(body);
2115
+ setTimeout(function () { overlay.remove(); onFinished(); }, 500);
2116
+ return;
2117
+ }
1269
2118
  if (body && body.deleted && body.deleted.length > 0) {
1270
2119
  setTimeout(function () { try { location.reload(); } catch (e) { overlay.remove(); onFinished(); } }, 600);
1271
2120
  return;
@@ -1311,8 +2160,7 @@ window.__ModuleLoader__.load({
1311
2160
  var setBusy = busyState[1];
1312
2161
  var t = props.t;
1313
2162
  var label = t("action.delete");
1314
- var icon = null;
1315
- try { icon = primitives && primitives.IconTrashOutline16 ? react_jsx_runtime.jsx(primitives.IconTrashOutline16, {}) : null; } catch (e) { icon = null; }
2163
+ var icon = react_jsx_runtime.jsx("span", { style: { display: "inline-flex" }, dangerouslySetInnerHTML: { __html: GBH_TRASH_SVG } });
1316
2164
  return react_jsx_runtime.jsx("button", {
1317
2165
  type: "button",
1318
2166
  title: label,
@@ -1321,13 +2169,1319 @@ window.__ModuleLoader__.load({
1321
2169
  onClick: function () {
1322
2170
  if (busy) return;
1323
2171
  setBusy(true);
1324
- gbhConfirmDeleteSession(sessionId, t, function () { setBusy(false); });
2172
+ /* The header action owns the open Session, so it always re-syncs the list. */
2173
+ gbhConfirmDeleteSession(sessionId, t, function () { setBusy(false); }, function () { gbhAfterDelete(sessionId); });
1325
2174
  },
1326
2175
  style: { display: "inline-flex", alignItems: "center", justifyContent: "center", width: "28px", height: "28px", borderRadius: "8px", border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))", background: "transparent", color: "var(--dsw-alias-label-tertiary, inherit)", cursor: busy ? "default" : "pointer", padding: "0" },
1327
2176
  children: icon === null ? label : icon
1328
2177
  });
1329
2178
  }
1330
- const inject = ["slots", "locale", "remote", "remote.credentials", "modelDirectories", "sessions"];
2179
+ /** Locale namespace owned by the Galaxy journey panel. */
2180
+ const GBH_JOURNEY_NS = "gbh.journey";
2181
+ /** English dictionary for the journey panel; Vietnamese lives in vi.locales.json. */
2182
+ const GBH_JOURNEY_EN = {
2183
+ "view.journey": "Journey",
2184
+ "toolbar.path": "no blueprint yet",
2185
+ "toolbar.save": "Save",
2186
+ "toolbar.reload": "Reload",
2187
+ "toolbar.undo": "Undo",
2188
+ "toolbar.redo": "Redo",
2189
+ "toolbar.zoomIn": "Zoom in",
2190
+ "toolbar.zoomOut": "Zoom out",
2191
+ "toolbar.fit": "Fit",
2192
+ "toolbar.layout": "Auto layout",
2193
+ "node.outPort": "Drag to connect",
2194
+ "node.inPort": "Drop a connection here",
2195
+ "inspector.empty": "Select a node or an edge to edit it.",
2196
+ "inspector.node": "Node",
2197
+ "inspector.edge": "Edge",
2198
+ "inspector.id": "Id",
2199
+ "inspector.label": "Label",
2200
+ "inspector.kind": "Kind",
2201
+ "inspector.workflow": "Workflow",
2202
+ "inspector.actions": "Actions (JSON)",
2203
+ "inspector.deleteNode": "Delete node",
2204
+ "inspector.from": "From",
2205
+ "inspector.to": "To",
2206
+ "inspector.when": "Condition",
2207
+ "inspector.deleteEdge": "Delete edge",
2208
+ "status.loading": "Loading the blueprint…",
2209
+ "status.loadFailed": "Could not load the blueprint.",
2210
+ "status.loaded": "Blueprint loaded.",
2211
+ "status.newBlueprint": "No journey.json yet — this is the starting template.",
2212
+ "status.saving": "Saving…",
2213
+ "status.saved": "Saved.",
2214
+ "status.saveFailed": "Could not save the blueprint.",
2215
+ "status.conflict": "The blueprint changed elsewhere.",
2216
+ "conflict.banner": "The agent (or another window) changed this blueprint.",
2217
+ "conflict.reload": "Load theirs",
2218
+ "toolbar.diagram": "Diagram",
2219
+ "toolbar.spec": "Spec",
2220
+ "run.start": "Run",
2221
+ "run.advance": "Continue",
2222
+ "run.cancel": "Stop",
2223
+ "run.status": "Run",
2224
+ "run.working": "Driving the run…",
2225
+ "run.failed": "The run call failed.",
2226
+ "run.waiting": "Waiting",
2227
+ "run.approve": "Approve",
2228
+ "run.reject": "Reject",
2229
+ "run.retry": "Retry",
2230
+ "spec.hint": "The same document as JSON — edits here are the edits the agent makes.",
2231
+ "spec.apply": "Apply",
2232
+ "spec.reset": "Reset",
2233
+ "spec.notObject": "The spec must be a JSON object.",
2234
+ "spec.applied": "Spec applied to the canvas.",
2235
+ "status.reloaded": "Blueprint reloaded (changed elsewhere).",
2236
+ };
2237
+ /** Readable fallback so the panel stays usable before the locale service binds. */
2238
+ const GBH_JOURNEY_VI = {
2239
+ "view.journey": "Hành trình",
2240
+ "toolbar.path": "chưa có blueprint",
2241
+ "toolbar.save": "Lưu",
2242
+ "toolbar.reload": "Tải lại",
2243
+ "toolbar.undo": "Hoàn tác",
2244
+ "toolbar.redo": "Làm lại",
2245
+ "toolbar.zoomIn": "Phóng to",
2246
+ "toolbar.zoomOut": "Thu nhỏ",
2247
+ "toolbar.fit": "Vừa khung",
2248
+ "toolbar.layout": "Tự xếp",
2249
+ "node.outPort": "Kéo để nối",
2250
+ "node.inPort": "Thả kết nối vào đây",
2251
+ "inspector.empty": "Chọn một node hoặc edge để sửa.",
2252
+ "inspector.node": "Node",
2253
+ "inspector.edge": "Edge",
2254
+ "inspector.id": "Id",
2255
+ "inspector.label": "Nhãn",
2256
+ "inspector.kind": "Loại",
2257
+ "inspector.workflow": "Workflow",
2258
+ "inspector.actions": "Hành động (JSON)",
2259
+ "inspector.deleteNode": "Xoá node",
2260
+ "inspector.from": "Từ",
2261
+ "inspector.to": "Đến",
2262
+ "inspector.when": "Điều kiện",
2263
+ "inspector.deleteEdge": "Xoá edge",
2264
+ "status.loading": "Đang tải blueprint…",
2265
+ "status.loadFailed": "Không tải được blueprint.",
2266
+ "status.loaded": "Đã tải blueprint.",
2267
+ "status.newBlueprint": "Chưa có journey.json — đây là mẫu khởi đầu.",
2268
+ "status.saving": "Đang lưu…",
2269
+ "status.saved": "Đã lưu.",
2270
+ "status.saveFailed": "Không lưu được blueprint.",
2271
+ "status.conflict": "Blueprint đã bị sửa ở nơi khác.",
2272
+ "conflict.banner": "Agent (hoặc cửa sổ khác) vừa sửa blueprint này.",
2273
+ "conflict.reload": "Tải bản của họ",
2274
+ "toolbar.diagram": "Sơ đồ",
2275
+ "toolbar.spec": "Đặc tả",
2276
+ "run.start": "Chạy",
2277
+ "run.advance": "Chạy tiếp",
2278
+ "run.cancel": "Dừng",
2279
+ "run.status": "Run",
2280
+ "run.working": "Đang chạy hành trình…",
2281
+ "run.failed": "Gọi chạy hành trình thất bại.",
2282
+ "run.waiting": "Đang chờ",
2283
+ "run.approve": "Duyệt",
2284
+ "run.reject": "Từ chối",
2285
+ "run.retry": "Chạy lại",
2286
+ "spec.hint": "Cùng một document ở dạng JSON — sửa ở đây chính là sửa như agent sửa.",
2287
+ "spec.apply": "Áp dụng",
2288
+ "spec.reset": "Khôi phục",
2289
+ "spec.notObject": "Đặc tả phải là một object JSON.",
2290
+ "spec.applied": "Đã áp dụng đặc tả vào sơ đồ.",
2291
+ "status.reloaded": "Đã tải lại blueprint (bị sửa ở nơi khác).",
2292
+ };
2293
+
2294
+ /**
2295
+ * Galaxy journey panel: an n8n-style canvas over the workspace blueprint.
2296
+ *
2297
+ * Inlined into the client bundle by scripts/build-web-brand.mjs in place of
2298
+ * __JOURNEY_PANEL__. The panel owns presentation only: the blueprint document it
2299
+ * renders comes from the Host route and every edit goes back through it, so the
2300
+ * agent and the canvas always share one reviewable source of truth.
2301
+ */
2302
+ function createJourneyPanel(runtime) {
2303
+ const react = runtime.react;
2304
+ const jsx = runtime.jsx;
2305
+ const jsxs = runtime.jsxs;
2306
+ const t = runtime.t;
2307
+ const api = runtime.api;
2308
+
2309
+ const KIND_LABEL = { trigger: "Bắt đầu", gate: "Cổng kiểm", action: "Hành động", approval: "Phê duyệt", join: "Gộp nhánh", notify: "Thông báo", rollback: "Hoàn tác" };
2310
+ const KIND_COLOR = { trigger: "#4f7cff", gate: "#e0a92b", action: "#2fa36b", approval: "#b06bd6", join: "#5a6472", notify: "#3aa0c9", rollback: "#e5484d" };
2311
+ const WHEN_LABEL = { success: "thành công", failure: "thất bại", always: "luôn" };
2312
+ const GRID = 10;
2313
+ const NODE_W = 190;
2314
+ const NODE_H = 62;
2315
+
2316
+ const snap = value => Math.round(value / GRID) * GRID;
2317
+ const clone = value => JSON.parse(JSON.stringify(value));
2318
+ const nextId = (prefix, taken) => {
2319
+ let index = 1;
2320
+ while (taken.indexOf(prefix + index) !== -1) index += 1;
2321
+ return prefix + index;
2322
+ };
2323
+
2324
+ /** Client-side mirror of the host validator, so badges appear while editing. */
2325
+ function issuesOf(doc) {
2326
+ const list = [];
2327
+ if (doc === null || typeof doc !== "object") return [{ code: "document", message: "Blueprint must be an object." }];
2328
+ const ids = new Set();
2329
+ for (const node of Array.isArray(doc.nodes) ? doc.nodes : []) {
2330
+ if (typeof node.id !== "string" || node.id.length === 0) list.push({ code: "node.id", nodeId: node.id, message: "Node cần id" });
2331
+ else if (ids.has(node.id)) list.push({ code: "node.id", nodeId: node.id, message: "Trùng id node: " + node.id });
2332
+ else ids.add(node.id);
2333
+ if (node.kind === "action" && (!Array.isArray(node.actions) || node.actions.length === 0)) list.push({ code: "node.actions", nodeId: node.id, message: "Node hành động cần ít nhất 1 action" });
2334
+ }
2335
+ for (const edge of Array.isArray(doc.edges) ? doc.edges : []) {
2336
+ if (!ids.has(edge.from) || !ids.has(edge.to)) list.push({ code: "edge.endpoint", edgeId: edge.id, message: "Edge trỏ tới node không tồn tại" });
2337
+ }
2338
+ return list;
2339
+ }
2340
+
2341
+ /** Colour one run state the way the canvas badge shows it. */
2342
+ const RUN_COLOR = { done: "#2fa36b", failed: "#e5484d", running: "#4f7cff", awaiting_approval: "#e0a92b", blocked: "#8b93a1", skipped: "#5a6472", pending: "transparent" };
2343
+ const RUN_LABEL = { done: "xong", failed: "lỗi", running: "đang chạy", awaiting_approval: "chờ duyệt", blocked: "chặn", skipped: "bỏ qua", pending: "chờ" };
2344
+
2345
+ /** Bounding box of a node list, used by the minimap and fit. */
2346
+ function boundsOf(nodes) {
2347
+ if (nodes.length === 0) return { minX: 0, minY: 0, maxX: NODE_W, maxY: NODE_H };
2348
+ return nodes.reduce((box, node) => ({
2349
+ minX: Math.min(box.minX, node.x ?? 0),
2350
+ minY: Math.min(box.minY, node.y ?? 0),
2351
+ maxX: Math.max(box.maxX, (node.x ?? 0) + NODE_W),
2352
+ maxY: Math.max(box.maxY, (node.y ?? 0) + NODE_H),
2353
+ }), { minX: Infinity, minY: Infinity, maxX: -Infinity, maxY: -Infinity });
2354
+ }
2355
+
2356
+ function nodeCenter(node) {
2357
+ return { x: (node.x ?? 0) + NODE_W, y: (node.y ?? 0) + NODE_H / 2 };
2358
+ }
2359
+
2360
+ function edgePath(fromNode, toNode) {
2361
+ const a = nodeCenter(fromNode);
2362
+ const b = { x: (toNode.x ?? 0), y: (toNode.y ?? 0) + NODE_H / 2 };
2363
+ const bend = Math.max(40, Math.abs(b.x - a.x) / 2);
2364
+ return "M " + a.x + " " + a.y + " C " + (a.x + bend) + " " + a.y + ", " + (b.x - bend) + " " + b.y + ", " + b.x + " " + b.y;
2365
+ }
2366
+
2367
+ function Toolbar(props) {
2368
+ const { doc, dirty, status, path, view, run, mode, onSave, onReload, onZoom, onFit, onLayout, onAdd, onUndo, onRedo, onRun, onMode } = props;
2369
+ const button = (label, onClick, options) => jsx("button", {
2370
+ type: "button",
2371
+ onClick,
2372
+ ...(options && options.hook ? { "data-gbh-action": options.hook } : {}),
2373
+ ...(options && options.add ? { "data-gbh-add": options.add } : {}),
2374
+ title: options && options.title ? options.title : label,
2375
+ disabled: Boolean(options && options.disabled),
2376
+ style: {
2377
+ height: "30px", padding: "0 10px", borderRadius: "8px",
2378
+ border: options && options.primary ? "none" : "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))",
2379
+ background: options && options.primary ? "#4f7cff" : "transparent",
2380
+ color: options && options.primary ? "#fff" : "inherit",
2381
+ cursor: options && options.disabled ? "default" : "pointer",
2382
+ fontSize: "12px", fontWeight: options && options.primary ? 600 : 400,
2383
+ opacity: options && options.disabled ? 0.5 : 1,
2384
+ },
2385
+ children: label,
2386
+ });
2387
+ return jsxs("div", {
2388
+ style: { display: "flex", alignItems: "center", gap: "8px", flexWrap: "wrap", padding: "10px 12px", borderBottom: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.25))" },
2389
+ children: [
2390
+ jsx("span", {
2391
+ title: path || t("toolbar.path"),
2392
+ style: { fontSize: "12px", opacity: 0.7, fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", maxWidth: "320px", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
2393
+ children: path || t("toolbar.path"),
2394
+ }),
2395
+ jsx("span", { style: { fontSize: "12px", padding: "2px 8px", borderRadius: "999px", border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))" }, children: "rev " + String(doc && typeof doc.revision === "number" ? doc.revision : 0) }),
2396
+ button(t("toolbar.save") + (dirty ? " •" : ""), onSave, { primary: true, disabled: dirty === false, hook: "save" }),
2397
+ button(t("toolbar.reload"), onReload),
2398
+ button("↶", onUndo, { title: t("toolbar.undo") }),
2399
+ button("↷", onRedo, { title: t("toolbar.redo") }),
2400
+ jsx("span", { style: { width: "1px", height: "18px", background: "var(--dsw-alias-border-l2, rgba(127,127,127,.3))" } }),
2401
+ button("−", () => onZoom(1 / 1.15), { title: t("toolbar.zoomOut") }),
2402
+ jsx("span", { style: { fontSize: "12px", minWidth: "42px", textAlign: "center" }, children: Math.round((view.z || 1) * 100) + "%" }),
2403
+ button("+", () => onZoom(1.15), { title: t("toolbar.zoomIn") }),
2404
+ button(t("toolbar.fit"), onFit),
2405
+ button(t("toolbar.layout"), onLayout),
2406
+ jsx("span", { style: { width: "1px", height: "18px", background: "var(--dsw-alias-border-l2, rgba(127,127,127,.3))" } }),
2407
+ button(t("toolbar.diagram"), () => onMode("canvas"), { hook: "mode-canvas", primary: mode === "canvas" }),
2408
+ button(t("toolbar.spec"), () => onMode("spec"), { hook: "mode-spec", primary: mode === "spec" }),
2409
+ jsx("span", { style: { width: "1px", height: "18px", background: "var(--dsw-alias-border-l2, rgba(127,127,127,.3))" } }),
2410
+ button(run === null ? t("run.start") : t("run.advance"), onRun, { hook: "run", primary: true }),
2411
+ run === null ? null : button(t("run.cancel"), () => onRun("cancel"), { hook: "run-cancel" }),
2412
+ run === null ? null : jsx("span", {
2413
+ "data-gbh-run-status": run.status,
2414
+ style: { fontSize: "11.5px", padding: "2px 8px", borderRadius: "999px", border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))" },
2415
+ children: t("run.status") + ": " + run.status,
2416
+ }),
2417
+ button("+ " + KIND_LABEL.gate, () => onAdd("gate"), { add: "gate" }),
2418
+ button("+ " + KIND_LABEL.action, () => onAdd("action"), { add: "action" }),
2419
+ button("+ " + KIND_LABEL.approval, () => onAdd("approval"), { add: "approval" }),
2420
+ button("+ " + KIND_LABEL.join, () => onAdd("join"), { add: "join" }),
2421
+ button("+ " + KIND_LABEL.notify, () => onAdd("notify"), { add: "notify" }),
2422
+ jsx("span", { style: { marginLeft: "auto", fontSize: "12px", opacity: 0.75 }, children: status }),
2423
+ ],
2424
+ });
2425
+ }
2426
+
2427
+ function NodeCard(props) {
2428
+ const { node, selected, issue, runState, onPointerDown, onPortDown, onPortUp, onSelect } = props;
2429
+ const color = KIND_COLOR[node.kind] || "#5a6472";
2430
+ const badgeColor = RUN_COLOR[runState] || "transparent";
2431
+ return jsxs("div", {
2432
+ "data-gbh-node": node.id,
2433
+ onPointerDown: event => { onSelect(node.id, event.shiftKey); onPointerDown(event, node); },
2434
+ style: {
2435
+ position: "absolute", left: node.x ?? 0, top: node.y ?? 0, width: NODE_W + "px", minHeight: NODE_H + "px",
2436
+ borderRadius: "10px", background: "var(--dsw-alias-bg-module-platform, #23232a)",
2437
+ border: "1px solid " + (selected ? "#4f7cff" : "var(--dsw-alias-border-l2, rgba(127,127,127,.4))"),
2438
+ boxShadow: selected ? "0 0 0 2px rgba(79,124,255,.35)" : "0 6px 18px rgba(0,0,0,.25)",
2439
+ cursor: "grab", userSelect: "none", overflow: "visible",
2440
+ },
2441
+ children: [
2442
+ jsxs("div", {
2443
+ style: { display: "flex", alignItems: "center", gap: "6px", padding: "8px 10px", borderBottom: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.22))" },
2444
+ children: [
2445
+ jsx("span", { style: { width: "8px", height: "8px", borderRadius: "50%", background: color, flex: "0 0 auto" } }),
2446
+ jsx("span", { style: { fontSize: "12.5px", fontWeight: 600, flex: "1 1 auto", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: node.label || node.id }),
2447
+ runState === undefined ? null : jsx("span", {
2448
+ title: RUN_LABEL[runState] || runState,
2449
+ style: { flex: "0 0 auto", fontSize: "10.5px", padding: "1px 6px", borderRadius: "999px", background: badgeColor, color: runState === "pending" ? "inherit" : "#101014" },
2450
+ children: RUN_LABEL[runState] || runState,
2451
+ }),
2452
+ ],
2453
+ }),
2454
+ jsxs("div", {
2455
+ style: { padding: "6px 10px 8px", fontSize: "11px", opacity: 0.72, display: "flex", flexDirection: "column", gap: "2px" },
2456
+ children: [
2457
+ jsx("span", { children: KIND_LABEL[node.kind] || node.kind }),
2458
+ node.kind === "action" ? jsx("span", { children: (node.actions || []).map(a => a.kind).join(", ") || "—" }) : null,
2459
+ issue ? jsx("span", { style: { color: "#ff8a8a" }, children: "⚠ " + issue.message }) : null,
2460
+ ],
2461
+ }),
2462
+ jsx("span", {
2463
+ onPointerDown: event => { event.stopPropagation(); onPortDown(event, node, "out"); },
2464
+ title: t("node.outPort"),
2465
+ style: { position: "absolute", right: "-7px", top: (NODE_H / 2 - 7) + "px", width: "14px", height: "14px", borderRadius: "50%", background: color, border: "2px solid var(--dsw-alias-bg-module-platform, #23232a)", cursor: "crosshair" },
2466
+ }),
2467
+ jsx("span", {
2468
+ onPointerUp: event => { event.stopPropagation(); onPortUp(event, node); },
2469
+ title: t("node.inPort"),
2470
+ style: { position: "absolute", left: "-7px", top: (NODE_H / 2 - 7) + "px", width: "14px", height: "14px", borderRadius: "50%", background: "var(--dsw-alias-bg-module-platform, #23232a)", border: "2px solid " + color, cursor: "crosshair" },
2471
+ }),
2472
+ ],
2473
+ });
2474
+ }
2475
+
2476
+ function Inspector(props) {
2477
+ const { doc, selection, onPatchNode, onDeleteNode, onPatchEdge, onDeleteEdge, issues, run, onDecide } = props;
2478
+ if (selection === null) {
2479
+ return jsx("div", { style: { width: "280px", flex: "0 0 auto", borderLeft: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.25))", padding: "12px", fontSize: "12px", opacity: 0.7 }, children: t("inspector.empty") });
2480
+ }
2481
+ const field = { width: "100%", boxSizing: "border-box", height: "30px", borderRadius: "8px", border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))", background: "transparent", color: "inherit", padding: "0 8px", fontSize: "12.5px", marginBottom: "8px" };
2482
+ const label = { display: "block", fontSize: "11px", opacity: 0.65, margin: "2px 0 4px" };
2483
+ const node = selection.kind === "node" ? (doc.nodes || []).find(n => n.id === selection.id) : undefined;
2484
+ const edge = selection.kind === "edge" ? (doc.edges || []).find(e => e.id === selection.id) : undefined;
2485
+ const nodeIssues = issues.filter(i => i.nodeId === (node && node.id));
2486
+ const nodeRun = node !== undefined && run !== null && Array.isArray(run.nodes) ? run.nodes.find(entry => entry.nodeId === node.id) : undefined;
2487
+ return jsxs("div", {
2488
+ style: { width: "280px", flex: "0 0 auto", borderLeft: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.25))", padding: "12px", overflowY: "auto" },
2489
+ children: [
2490
+ jsx("div", { style: { fontSize: "12px", fontWeight: 600, marginBottom: "10px" }, children: node ? t("inspector.node") : t("inspector.edge") }),
2491
+ node ? jsxs("div", { children: [
2492
+ jsx("span", { style: label, children: t("inspector.id") }),
2493
+ jsx("input", { style: field, value: node.id, disabled: true }),
2494
+ jsx("span", { style: label, children: t("inspector.label") }),
2495
+ jsx("input", { style: field, value: node.label || "", onChange: event => onPatchNode(node.id, { label: event.target.value }) }),
2496
+ jsx("span", { style: label, children: t("inspector.kind") }),
2497
+ jsx("select", {
2498
+ style: field, value: node.kind, onChange: event => onPatchNode(node.id, { kind: event.target.value }),
2499
+ children: Object.keys(KIND_LABEL).map(kind => jsx("option", { value: kind, children: KIND_LABEL[kind] }, kind)),
2500
+ }),
2501
+ node.kind === "gate" ? jsxs("div", { children: [
2502
+ jsx("span", { style: label, children: t("inspector.workflow") }),
2503
+ jsx("input", { style: field, value: (node.gate && node.gate.workflow) || "", onChange: event => onPatchNode(node.id, { gate: { ...(node.gate || { kind: "ci" }), workflow: event.target.value } }) }),
2504
+ ] }) : null,
2505
+ node.kind === "action" ? jsxs("div", { children: [
2506
+ jsx("span", { style: label, children: t("inspector.actions") }),
2507
+ jsx("textarea", {
2508
+ style: { ...field, height: "96px", padding: "6px 8px", fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", resize: "vertical" },
2509
+ value: JSON.stringify(node.actions || [], null, 1),
2510
+ onChange: event => {
2511
+ try { onPatchNode(node.id, { actions: JSON.parse(event.target.value) }); } catch (error) { /* keep typing */ }
2512
+ },
2513
+ }),
2514
+ ] }) : null,
2515
+ nodeIssues.length > 0 ? jsx("div", { style: { fontSize: "11px", color: "#ff8a8a", marginBottom: "8px" }, children: nodeIssues.map(i => i.message).join(" · ") }) : null,
2516
+ nodeRun !== undefined && (nodeRun.state === "awaiting_approval" || nodeRun.state === "blocked") ? jsxs("div", { style: { marginBottom: "10px" }, children: [
2517
+ jsx("div", { style: { fontSize: "11.5px", marginBottom: "6px" }, children: t("run.waiting") + ": " + String(nodeRun.last?.note ?? nodeRun.state) }),
2518
+ jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
2519
+ jsx("button", {
2520
+ type: "button", "data-gbh-decide": "approve", onClick: () => onDecide(node.id, "approve"),
2521
+ style: { ...field, marginBottom: 0, flex: "1 1 auto", cursor: "pointer", border: "none", background: "#2fa36b", color: "#08110c", fontWeight: 600 },
2522
+ children: t("run.approve"),
2523
+ }),
2524
+ jsx("button", {
2525
+ type: "button", "data-gbh-decide": "reject", onClick: () => onDecide(node.id, "reject"),
2526
+ style: { ...field, marginBottom: 0, flex: "1 1 auto", cursor: "pointer", border: "1px solid rgba(229,72,77,.6)", background: "transparent", color: "#ff8a8a" },
2527
+ children: t("run.reject"),
2528
+ }),
2529
+ jsx("button", {
2530
+ type: "button", "data-gbh-decide": "retry", onClick: () => onDecide(node.id, "retry"),
2531
+ style: { ...field, marginBottom: 0, flex: "0 0 auto", cursor: "pointer" },
2532
+ children: t("run.retry"),
2533
+ }),
2534
+ ] }),
2535
+ ] }) : null,
2536
+ jsx("button", { type: "button", onClick: () => onDeleteNode(node.id), style: { ...field, cursor: "pointer", color: "#ff8a8a" }, children: t("inspector.deleteNode") }),
2537
+ ] }) : null,
2538
+ edge ? jsxs("div", { children: [
2539
+ jsx("span", { style: label, children: t("inspector.from") }),
2540
+ jsx("input", { style: field, value: edge.from, disabled: true }),
2541
+ jsx("span", { style: label, children: t("inspector.to") }),
2542
+ jsx("input", { style: field, value: edge.to, disabled: true }),
2543
+ jsx("span", { style: label, children: t("inspector.when") }),
2544
+ jsx("select", {
2545
+ style: field, value: edge.when || "success", onChange: event => onPatchEdge(edge.id, { when: event.target.value }),
2546
+ children: ["success", "failure", "always"].map(when => jsx("option", { value: when, children: WHEN_LABEL[when] }, when)),
2547
+ }),
2548
+ jsx("button", { type: "button", onClick: () => onDeleteEdge(edge.id), style: { ...field, cursor: "pointer", color: "#ff8a8a" }, children: t("inspector.deleteEdge") }),
2549
+ ] }) : null,
2550
+ ],
2551
+ });
2552
+ }
2553
+
2554
+ /** The panel root: loads the blueprint, edits it in memory, and saves it back. */
2555
+ function JourneyPanel(props) {
2556
+ const sessionId = props.sessionId;
2557
+ const [doc, setDoc] = react.useState(null);
2558
+ const [view, setView] = react.useState({ tx: 40, ty: 20, z: 0.9 });
2559
+ const [selection, setSelection] = react.useState(null);
2560
+ const [picked, setPicked] = react.useState([]);
2561
+ const [run, setRun] = react.useState(null);
2562
+ const [mode, setMode] = react.useState("canvas");
2563
+ const [specText, setSpecText] = react.useState("");
2564
+ const [specError, setSpecError] = react.useState(null);
2565
+ const [box, setBox] = react.useState(null);
2566
+ const [canvasSize, setCanvasSize] = react.useState({ width: 900, height: 520 });
2567
+ const clipboard = react.useRef(null);
2568
+ const [status, setStatus] = react.useState(t("status.loading"));
2569
+ const [path, setPath] = react.useState("");
2570
+ const [dirty, setDirty] = react.useState(false);
2571
+ const [conflict, setConflict] = react.useState(null);
2572
+ const [pending, setPending] = react.useState(null);
2573
+ const history = react.useRef({ past: [], future: [] });
2574
+ const drag = react.useRef(null);
2575
+ const canvasRef = react.useRef(null);
2576
+
2577
+ const load = react.useCallback(() => {
2578
+ setStatus(t("status.loading"));
2579
+ api.load(sessionId).then(result => {
2580
+ if (result.ok !== true) { setStatus(result.message || t("status.loadFailed")); return; }
2581
+ setDoc(result.document);
2582
+ setDirty(false);
2583
+ setConflict(null);
2584
+ setPath(typeof result.path === "string" ? result.path : "");
2585
+ history.current = { past: [], future: [] };
2586
+ setStatus(result.exists ? t("status.loaded") : t("status.newBlueprint"));
2587
+ });
2588
+ }, [sessionId]);
2589
+
2590
+ react.useEffect(() => { load(); }, [load]);
2591
+
2592
+ /* Keep the minimap's viewport rectangle honest. */
2593
+ react.useEffect(() => {
2594
+ const measure = () => {
2595
+ const element = canvasRef.current;
2596
+ if (element === null) return;
2597
+ setCanvasSize({ width: element.clientWidth, height: element.clientHeight });
2598
+ };
2599
+ measure();
2600
+ window.addEventListener("resize", measure);
2601
+ return () => window.removeEventListener("resize", measure);
2602
+ }, []);
2603
+
2604
+ /* Poll the active run so the canvas tracks what the agent (or another tab) does. */
2605
+ react.useEffect(() => {
2606
+ let stopped = false;
2607
+ const tick = () => {
2608
+ if (stopped) return;
2609
+ api.run(sessionId, { op: "status", runId: "latest" }).then(result => {
2610
+ if (stopped) return;
2611
+ if (result.ok === true && result.run !== undefined) setRun(result.run);
2612
+ else if (result.ok === true && Array.isArray(result.runs)) setRun(result.runs[0] ?? null);
2613
+ });
2614
+ };
2615
+ tick();
2616
+ const timer = setInterval(tick, 2500);
2617
+ return () => { stopped = true; clearInterval(timer); };
2618
+ }, [sessionId, run === null ? "" : run.id]);
2619
+
2620
+ /* Notice blueprint edits made elsewhere: silent reload when clean, banner when dirty. */
2621
+ react.useEffect(() => {
2622
+ let stopped = false;
2623
+ const timer = setInterval(() => {
2624
+ api.load(sessionId).then(result => {
2625
+ if (stopped || result.ok !== true) return;
2626
+ const live = typeof result.revision === "number" ? result.revision : 0;
2627
+ const mine = doc === null ? 0 : (typeof doc.revision === "number" ? doc.revision : 0);
2628
+ if (live === mine) return;
2629
+ if (dirty) { setConflict({ revision: live, document: result.document }); return; }
2630
+ setDoc(result.document);
2631
+ setStatus(t("status.reloaded"));
2632
+ });
2633
+ }, 4000);
2634
+ return () => { stopped = true; clearInterval(timer); };
2635
+ }, [sessionId, doc, dirty]);
2636
+
2637
+ const remember = react.useCallback(() => {
2638
+ if (doc === null) return;
2639
+ history.current.past.push(JSON.stringify(doc));
2640
+ if (history.current.past.length > 50) history.current.past.shift();
2641
+ history.current.future = [];
2642
+ }, [doc]);
2643
+
2644
+ const mutate = react.useCallback(updater => {
2645
+ setDoc(current => {
2646
+ if (current === null) return current;
2647
+ const next = updater(clone(current));
2648
+ setDirty(true);
2649
+ return next;
2650
+ });
2651
+ }, []);
2652
+
2653
+ const issues = react.useMemo(() => (doc === null ? [] : issuesOf(doc)), [doc]);
2654
+
2655
+ const addNode = react.useCallback(kind => {
2656
+ remember();
2657
+ mutate(current => {
2658
+ const taken = (current.nodes || []).map(n => n.id);
2659
+ const id = nextId(kind + "-", taken);
2660
+ const maxY = (current.nodes || []).reduce((top, n) => Math.max(top, n.y ?? 0), 0);
2661
+ const node = { id, kind, label: KIND_LABEL[kind] + " " + id.split("-")[1], x: 120, y: snap(maxY + 110) };
2662
+ if (kind === "action") node.actions = [{ kind: "command", run: "echo TODO" }];
2663
+ if (kind === "gate") node.gate = { kind: "ci", workflow: "ci.yml", ref: "main" };
2664
+ current.nodes = [...(current.nodes || []), node];
2665
+ return current;
2666
+ });
2667
+ }, [mutate, remember]);
2668
+
2669
+ const patchNode = react.useCallback((id, patch) => {
2670
+ remember();
2671
+ mutate(current => {
2672
+ current.nodes = (current.nodes || []).map(node => (node.id === id ? { ...node, ...patch } : node));
2673
+ return current;
2674
+ });
2675
+ }, [mutate, remember]);
2676
+
2677
+ const deleteNode = react.useCallback(id => {
2678
+ remember();
2679
+ mutate(current => {
2680
+ current.nodes = (current.nodes || []).filter(node => node.id !== id);
2681
+ current.edges = (current.edges || []).filter(edge => edge.from !== id && edge.to !== id);
2682
+ return current;
2683
+ });
2684
+ setSelection(null);
2685
+ }, [mutate, remember]);
2686
+
2687
+ const patchEdge = react.useCallback((id, patch) => {
2688
+ remember();
2689
+ mutate(current => {
2690
+ current.edges = (current.edges || []).map(edge => (edge.id === id ? { ...edge, ...patch } : edge));
2691
+ return current;
2692
+ });
2693
+ }, [mutate, remember]);
2694
+
2695
+ const deleteEdge = react.useCallback(id => {
2696
+ remember();
2697
+ mutate(current => {
2698
+ current.edges = (current.edges || []).filter(edge => edge.id !== id);
2699
+ return current;
2700
+ });
2701
+ setSelection(null);
2702
+ }, [mutate, remember]);
2703
+
2704
+ const addEdge = react.useCallback((from, to) => {
2705
+ if (from === to) return;
2706
+ remember();
2707
+ mutate(current => {
2708
+ const exists = (current.edges || []).some(edge => edge.from === from && edge.to === to);
2709
+ if (exists) return current;
2710
+ const taken = (current.edges || []).map(edge => edge.id);
2711
+ current.edges = [...(current.edges || []), { id: nextId("e", taken), from, to, when: "success" }];
2712
+ return current;
2713
+ });
2714
+ }, [mutate, remember]);
2715
+
2716
+ const save = react.useCallback(() => {
2717
+ if (doc === null) return;
2718
+ setStatus(t("status.saving"));
2719
+ api.save(sessionId, doc, typeof doc.revision === "number" ? doc.revision : 0).then(result => {
2720
+ if (result.ok === true) {
2721
+ setDoc(current => ({ ...current, revision: result.revision }));
2722
+ setDirty(false);
2723
+ setConflict(null);
2724
+ setStatus(t("status.saved") + " · rev " + result.revision);
2725
+ return;
2726
+ }
2727
+ if (result.code === "journey/conflict") { setConflict(result.current || null); setStatus(t("status.conflict")); return; }
2728
+ setStatus((result.message || t("status.saveFailed")) + (result.issues ? " · " + result.issues.map(i => i.message).join("; ") : ""));
2729
+ });
2730
+ }, [doc, sessionId]);
2731
+
2732
+ const pointerToCanvas = event => {
2733
+ const rect = canvasRef.current ? canvasRef.current.getBoundingClientRect() : { left: 0, top: 0 };
2734
+ return { x: (event.clientX - rect.left - view.tx) / view.z, y: (event.clientY - rect.top - view.ty) / view.z };
2735
+ };
2736
+
2737
+ const startNodeDrag = (event, node) => {
2738
+ if (event.button !== 0) return;
2739
+ const start = pointerToCanvas(event);
2740
+ drag.current = { type: "node", id: node.id, dx: start.x - (node.x ?? 0), dy: start.y - (node.y ?? 0) };
2741
+ remember();
2742
+ try { event.currentTarget.setPointerCapture(event.pointerId); } catch (error) { /* ignore */ }
2743
+ };
2744
+
2745
+ const startPan = event => {
2746
+ if (event.button !== 0 || event.target !== event.currentTarget) return;
2747
+ if (event.shiftKey) {
2748
+ const point = pointerToCanvas(event);
2749
+ drag.current = { type: "box", start: point };
2750
+ setBox({ x: point.x, y: point.y, w: 0, h: 0 });
2751
+ try { event.currentTarget.setPointerCapture(event.pointerId); } catch (error) { /* ignore */ }
2752
+ return;
2753
+ }
2754
+ drag.current = { type: "pan", x: event.clientX, y: event.clientY, tx: view.tx, ty: view.ty };
2755
+ setSelection(null);
2756
+ setPicked([]);
2757
+ try { event.currentTarget.setPointerCapture(event.pointerId); } catch (error) { /* ignore */ }
2758
+ };
2759
+
2760
+ const onPointerMove = event => {
2761
+ const state = drag.current;
2762
+ if (state === null || state === undefined) return;
2763
+ if (state.type === "pan") {
2764
+ setView(current => ({ ...current, tx: state.tx + (event.clientX - state.x), ty: state.ty + (event.clientY - state.y) }));
2765
+ return;
2766
+ }
2767
+ if (state.type === "node") {
2768
+ const point = pointerToCanvas(event);
2769
+ mutate(current => {
2770
+ current.nodes = (current.nodes || []).map(node => (node.id === state.id ? { ...node, x: snap(point.x - state.dx), y: snap(point.y - state.dy) } : node));
2771
+ return current;
2772
+ });
2773
+ return;
2774
+ }
2775
+ if (state.type === "edge") {
2776
+ const point = pointerToCanvas(event);
2777
+ setPending({ from: state.from, x: point.x, y: point.y });
2778
+ return;
2779
+ }
2780
+ if (state.type === "box") {
2781
+ const point = pointerToCanvas(event);
2782
+ setBox({
2783
+ x: Math.min(state.start.x, point.x),
2784
+ y: Math.min(state.start.y, point.y),
2785
+ w: Math.abs(point.x - state.start.x),
2786
+ h: Math.abs(point.y - state.start.y),
2787
+ });
2788
+ }
2789
+ };
2790
+
2791
+ const endDrag = () => {
2792
+ const state = drag.current;
2793
+ drag.current = null;
2794
+ if (state === null || state === undefined || state.type !== "box") return;
2795
+ setBox(current => {
2796
+ if (current !== null && doc !== null) {
2797
+ const inside = (doc.nodes || []).filter(node => {
2798
+ const x = node.x ?? 0;
2799
+ const y = node.y ?? 0;
2800
+ return x + NODE_W >= current.x && x <= current.x + current.w && y + NODE_H >= current.y && y <= current.y + current.h;
2801
+ });
2802
+ setPicked(inside.map(node => "node:" + node.id));
2803
+ if (inside.length > 0) setSelection({ kind: "node", id: inside[inside.length - 1].id });
2804
+ }
2805
+ return null;
2806
+ });
2807
+ };
2808
+
2809
+ const startEdge = (event, node, side) => {
2810
+ const point = pointerToCanvas(event);
2811
+ drag.current = { type: "edge", from: node.id };
2812
+ setPending({ from: node.id, x: point.x, y: point.y });
2813
+ try { event.currentTarget.setPointerCapture(event.pointerId); } catch (error) { /* ignore */ }
2814
+ };
2815
+
2816
+ const endEdge = (event, node) => {
2817
+ const state = drag.current;
2818
+ setPending(null);
2819
+ drag.current = null;
2820
+ if (state !== null && state !== undefined && state.type === "edge") addEdge(state.from, node.id);
2821
+ };
2822
+
2823
+ const onWheel = event => {
2824
+ const factor = event.deltaY < 0 ? 1.08 : 1 / 1.08;
2825
+ setView(current => ({ ...current, z: Math.min(1.8, Math.max(0.4, current.z * factor)) }));
2826
+ };
2827
+
2828
+ const fit = () => {
2829
+ const nodes = (doc && doc.nodes) || [];
2830
+ if (nodes.length === 0) return;
2831
+ const maxX = nodes.reduce((value, node) => Math.max(value, (node.x ?? 0) + NODE_W), 0);
2832
+ const maxY = nodes.reduce((value, node) => Math.max(value, (node.y ?? 0) + NODE_H), 0);
2833
+ const width = canvasRef.current ? canvasRef.current.clientWidth : 900;
2834
+ const height = canvasRef.current ? canvasRef.current.clientHeight : 500;
2835
+ const z = Math.min(1.2, Math.max(0.4, Math.min(width / (maxX + 80), height / (maxY + 80))));
2836
+ setView({ tx: 30, ty: 20, z });
2837
+ };
2838
+
2839
+ /** Layered left-to-right placement: depth = longest path from a source node. */
2840
+ const autoLayout = () => {
2841
+ remember();
2842
+ mutate(current => {
2843
+ const nodes = current.nodes || [];
2844
+ const edges = current.edges || [];
2845
+ const depth = new Map(nodes.map(node => [node.id, 0]));
2846
+ for (let pass = 0; pass < nodes.length; pass += 1) {
2847
+ for (const edge of edges) {
2848
+ const from = depth.get(edge.from) ?? 0;
2849
+ const to = depth.get(edge.to) ?? 0;
2850
+ if (to < from + 1) depth.set(edge.to, from + 1);
2851
+ }
2852
+ }
2853
+ const rows = new Map();
2854
+ for (const node of nodes) {
2855
+ const column = depth.get(node.id) ?? 0;
2856
+ const row = rows.get(column) ?? 0;
2857
+ rows.set(column, row + 1);
2858
+ node.x = 80 + column * 260;
2859
+ node.y = 60 + row * 120;
2860
+ }
2861
+ return current;
2862
+ });
2863
+ };
2864
+
2865
+ const undo = () => {
2866
+ const past = history.current.past;
2867
+ if (past.length === 0) return;
2868
+ const snapshot = past.pop();
2869
+ history.current.future.push(JSON.stringify(doc));
2870
+ setDoc(JSON.parse(snapshot));
2871
+ setDirty(true);
2872
+ };
2873
+
2874
+ const redo = () => {
2875
+ const future = history.current.future;
2876
+ if (future.length === 0) return;
2877
+ const snapshot = future.pop();
2878
+ history.current.past.push(JSON.stringify(doc));
2879
+ setDoc(JSON.parse(snapshot));
2880
+ setDirty(true);
2881
+ };
2882
+
2883
+ const pickKey = item => item.kind + ":" + item.id;
2884
+ const isPicked = item => picked.indexOf(pickKey(item)) !== -1;
2885
+
2886
+ const pick = (item, additive) => {
2887
+ setSelection(item);
2888
+ const key = pickKey(item);
2889
+ if (additive === true) setPicked(current => (current.indexOf(key) === -1 ? [...current, key] : current.filter(entry => entry !== key)));
2890
+ else setPicked([key]);
2891
+ };
2892
+
2893
+ const pickEdge = (id, additive) => pick({ kind: "edge", id: id }, additive);
2894
+
2895
+ const pickedNodes = () => picked.filter(key => key.indexOf("node:") === 0).map(key => key.slice(5));
2896
+ const pickedEdges = () => picked.filter(key => key.indexOf("edge:") === 0).map(key => key.slice(5));
2897
+
2898
+ const deleteSelected = () => {
2899
+ const nodes = pickedNodes();
2900
+ const edges = pickedEdges();
2901
+ if (nodes.length === 0 && edges.length === 0) return;
2902
+ remember();
2903
+ mutate(current => {
2904
+ current.nodes = (current.nodes || []).filter(node => nodes.indexOf(node.id) === -1);
2905
+ current.edges = (current.edges || []).filter(edge => edges.indexOf(edge.id) === -1 && nodes.indexOf(edge.from) === -1 && nodes.indexOf(edge.to) === -1);
2906
+ return current;
2907
+ });
2908
+ setPicked([]);
2909
+ setSelection(null);
2910
+ };
2911
+
2912
+ const copySelection = () => {
2913
+ const nodes = (doc.nodes || []).filter(node => pickedNodes().indexOf(node.id) !== -1);
2914
+ if (nodes.length === 0) return;
2915
+ const ids = nodes.map(node => node.id);
2916
+ clipboard.current = {
2917
+ nodes: clone(nodes),
2918
+ edges: clone((doc.edges || []).filter(edge => ids.indexOf(edge.from) !== -1 && ids.indexOf(edge.to) !== -1)),
2919
+ };
2920
+ };
2921
+
2922
+ const pasteSelection = () => {
2923
+ const clip = clipboard.current;
2924
+ if (clip === null) return;
2925
+ remember();
2926
+ const mapping = new Map();
2927
+ mutate(current => {
2928
+ const taken = (current.nodes || []).map(node => node.id);
2929
+ for (const node of clip.nodes) {
2930
+ const id = nextId(node.kind + "-", taken);
2931
+ taken.push(id);
2932
+ mapping.set(node.id, id);
2933
+ current.nodes = [...(current.nodes || []), { ...clone(node), id, label: (node.label || node.id) + " (bản sao)", x: (node.x ?? 0) + 40, y: (node.y ?? 0) + 40 }];
2934
+ }
2935
+ const edgeTaken = (current.edges || []).map(edge => edge.id);
2936
+ for (const edge of clip.edges) {
2937
+ const id = nextId("e", edgeTaken);
2938
+ edgeTaken.push(id);
2939
+ current.edges = [...(current.edges || []), { ...clone(edge), id, from: mapping.get(edge.from), to: mapping.get(edge.to) }];
2940
+ }
2941
+ return current;
2942
+ });
2943
+ setPicked([...mapping.values()].map(id => "node:" + id));
2944
+ };
2945
+
2946
+ /** Drive the run: start, advance, cancel, or decide a waiting node. */
2947
+ const runAction = (op, extra) => {
2948
+ setStatus(t("run.working"));
2949
+ api.run(sessionId, { op: op, ...(run === null || run.id === undefined ? {} : { runId: run.id }), ...(extra || {}) }).then(result => {
2950
+ if (result.ok === true && result.run !== undefined) {
2951
+ setRun(result.run);
2952
+ setStatus(t("run.status") + ": " + result.run.status);
2953
+ return;
2954
+ }
2955
+ setStatus((result.message || t("run.failed")) + (result.code === undefined ? "" : " (" + result.code + ")"));
2956
+ });
2957
+ };
2958
+
2959
+ const decide = (nodeId, decision) => runAction("decide", { nodeId: nodeId, decision: decision });
2960
+
2961
+ /** Entering spec mode seeds the editor from the live document. */
2962
+ const switchMode = next => {
2963
+ if (next === "spec" && doc !== null) {
2964
+ setSpecText(JSON.stringify(doc, null, 2));
2965
+ setSpecError(null);
2966
+ }
2967
+ setMode(next);
2968
+ };
2969
+
2970
+ const applySpec = () => {
2971
+ try {
2972
+ const parsed = JSON.parse(specText);
2973
+ if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) throw new Error(t("spec.notObject"));
2974
+ remember();
2975
+ setDoc({ ...parsed, revision: doc === null ? 0 : doc.revision });
2976
+ setDirty(true);
2977
+ setSpecError(null);
2978
+ setStatus(t("spec.applied"));
2979
+ } catch (error) {
2980
+ setSpecError(error instanceof Error ? error.message : String(error));
2981
+ }
2982
+ };
2983
+
2984
+ const onKeyDown = event => {
2985
+ if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === "z") {
2986
+ event.preventDefault();
2987
+ if (event.shiftKey) redo(); else undo();
2988
+ return;
2989
+ }
2990
+ if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === "c") { event.preventDefault(); copySelection(); return; }
2991
+ if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === "v") { event.preventDefault(); pasteSelection(); return; }
2992
+ if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === "a") {
2993
+ event.preventDefault();
2994
+ setPicked((doc && doc.nodes ? doc.nodes : []).map(node => "node:" + node.id));
2995
+ return;
2996
+ }
2997
+ if (event.key === "Delete" || event.key === "Backspace") {
2998
+ if (picked.length > 0) { event.preventDefault(); deleteSelected(); return; }
2999
+ if (selection === null) return;
3000
+ event.preventDefault();
3001
+ if (selection.kind === "node") deleteNode(selection.id); else deleteEdge(selection.id);
3002
+ }
3003
+ };
3004
+
3005
+ if (doc === null) {
3006
+ return jsx("div", { style: { padding: "18px", fontSize: "13px", opacity: 0.8 }, children: status });
3007
+ }
3008
+
3009
+ const nodes = doc.nodes || [];
3010
+ const edges = doc.edges || [];
3011
+ const byId = new Map(nodes.map(node => [node.id, node]));
3012
+ const issueByNode = new Map();
3013
+ for (const issue of issues) if (issue.nodeId !== undefined && !issueByNode.has(issue.nodeId)) issueByNode.set(issue.nodeId, issue);
3014
+
3015
+ return jsxs("div", {
3016
+ onKeyDown,
3017
+ tabIndex: 0,
3018
+ style: { display: "flex", flexDirection: "column", height: "100%", outline: "none", background: "var(--dsw-alias-bg-base, #1b1b20)", color: "var(--dsw-alias-label-primary, #f2f2f2)" },
3019
+ children: [
3020
+ jsx(Toolbar, {
3021
+ doc, dirty, status: conflict === null ? status : t("status.conflict"), path,
3022
+ view, onSave: save, onReload: load,
3023
+ onZoom: factor => setView(current => ({ ...current, z: Math.min(1.8, Math.max(0.4, current.z * factor)) })),
3024
+ onFit: fit, onLayout: autoLayout, onAdd: addNode, onUndo: undo, onRedo: redo,
3025
+ run, mode, onMode: switchMode,
3026
+ onRun: op => runAction(typeof op === "string" ? op : (run === null ? "start" : "advance")),
3027
+ }),
3028
+ conflict === null ? null : jsxs("div", {
3029
+ style: { display: "flex", alignItems: "center", gap: "10px", padding: "8px 12px", background: "rgba(224,169,43,.14)", borderBottom: "1px solid rgba(224,169,43,.4)", fontSize: "12px" },
3030
+ children: [
3031
+ jsx("span", { children: t("conflict.banner") }),
3032
+ jsx("button", { type: "button", onClick: load, style: { height: "26px", padding: "0 10px", borderRadius: "7px", border: "1px solid rgba(127,127,127,.4)", background: "transparent", color: "inherit", cursor: "pointer" }, children: t("conflict.reload") }),
3033
+ ],
3034
+ }),
3035
+ mode === "spec" ? jsx(SpecEditor, {
3036
+ doc, text: specText, error: specError,
3037
+ onChange: setSpecText, onApply: applySpec,
3038
+ onReset: () => { setSpecText(doc === null ? "" : JSON.stringify(doc, null, 2)); setSpecError(null); },
3039
+ }) : jsxs("div", { style: { display: "flex", flex: "1 1 auto", minHeight: 0 }, children: [
3040
+ jsxs("div", {
3041
+ ref: canvasRef,
3042
+ "data-gbh-journey": "canvas",
3043
+ onPointerDown: startPan,
3044
+ onPointerMove,
3045
+ onPointerUp: endDrag,
3046
+ onPointerLeave: endDrag,
3047
+ onWheel,
3048
+ style: {
3049
+ position: "relative", flex: "1 1 auto", overflow: "hidden", cursor: "grab",
3050
+ backgroundImage: "radial-gradient(var(--dsw-alias-border-l2, rgba(127,127,127,.35)) 1px, transparent 1px)",
3051
+ backgroundSize: (22 * view.z) + "px " + (22 * view.z) + "px",
3052
+ backgroundPosition: view.tx + "px " + view.ty + "px",
3053
+ },
3054
+ children: [
3055
+ jsxs("div", {
3056
+ style: { position: "absolute", left: 0, top: 0, transform: "translate(" + view.tx + "px," + view.ty + "px) scale(" + view.z + ")", transformOrigin: "0 0" },
3057
+ children: [
3058
+ jsx("svg", {
3059
+ width: "6000", height: "4000",
3060
+ style: { position: "absolute", left: 0, top: 0, pointerEvents: "none", overflow: "visible" },
3061
+ children: [
3062
+ ...edges.map(edge => {
3063
+ const from = byId.get(edge.from);
3064
+ const to = byId.get(edge.to);
3065
+ if (from === undefined || to === undefined) return null;
3066
+ const selected = picked.indexOf("edge:" + edge.id) !== -1;
3067
+ const color = edge.when === "failure" ? "#e5484d" : edge.when === "always" ? "#8b93a1" : "#4f7cff";
3068
+ return jsx("path", {
3069
+ "data-gbh-edge": edge.id,
3070
+ d: edgePath(from, to), fill: "none", stroke: color,
3071
+ strokeWidth: selected ? 3 : 2,
3072
+ strokeDasharray: edge.when === "failure" ? "6 5" : undefined,
3073
+ style: { pointerEvents: "stroke", cursor: "pointer" },
3074
+ onPointerDown: event => { event.stopPropagation(); pickEdge(edge.id, event.shiftKey); },
3075
+ }, edge.id);
3076
+ }),
3077
+ pending === null ? null : jsx("path", {
3078
+ d: "M " + ((byId.get(pending.from)?.x ?? 0) + NODE_W) + " " + ((byId.get(pending.from)?.y ?? 0) + NODE_H / 2) + " L " + pending.x + " " + pending.y,
3079
+ fill: "none", stroke: "#4f7cff", strokeWidth: 2, strokeDasharray: "5 4",
3080
+ }),
3081
+ ],
3082
+ }),
3083
+ box === null ? null : jsx("div", {
3084
+ style: { position: "absolute", left: box.x, top: box.y, width: box.w, height: box.h, border: "1px dashed #4f7cff", background: "rgba(79,124,255,.12)", pointerEvents: "none" },
3085
+ }),
3086
+ ...nodes.map(node => jsx(NodeCard, {
3087
+ node, selected: isPicked({ kind: "node", id: node.id }),
3088
+ issue: issueByNode.get(node.id),
3089
+ runState: run !== null && run.nodes !== undefined ? (run.nodes.find(entry => entry.nodeId === node.id) || {}).state : undefined,
3090
+ onPointerDown: startNodeDrag, onPortDown: startEdge, onPortUp: endEdge,
3091
+ onSelect: (id, additive) => pick({ kind: "node", id: id }, additive),
3092
+ }, node.id)),
3093
+ ],
3094
+ }),
3095
+ issues.length === 0 ? null : jsx("div", {
3096
+ style: { position: "absolute", left: "12px", bottom: "12px", maxWidth: "60%", padding: "8px 10px", borderRadius: "8px", background: "rgba(229,72,77,.16)", border: "1px solid rgba(229,72,77,.45)", fontSize: "11.5px" },
3097
+ children: issues.slice(0, 4).map(issue => issue.message).join(" · "),
3098
+ }),
3099
+ jsx(Minimap, {
3100
+ doc, view, canvasSize,
3101
+ onJump: point => setView(current => ({ ...current, tx: -point.x * current.z + 120, ty: -point.y * current.z + 80 })),
3102
+ }),
3103
+ ],
3104
+ }),
3105
+ jsx(Inspector, {
3106
+ doc, selection, issues, run, onDecide: decide,
3107
+ onPatchNode: patchNode, onDeleteNode: deleteNode, onPatchEdge: patchEdge, onDeleteEdge: deleteEdge,
3108
+ }),
3109
+ ]}),
3110
+ ],
3111
+ });
3112
+ }
3113
+
3114
+ /** Small overview of the graph with the current viewport, for quick navigation. */
3115
+ function Minimap(props) {
3116
+ const { doc, view, canvasSize, onJump } = props;
3117
+ const WIDTH = 170;
3118
+ const HEIGHT = 120;
3119
+ const nodes = (doc && doc.nodes) || [];
3120
+ const box = boundsOf(nodes);
3121
+ const spanX = Math.max(1, box.maxX - box.minX);
3122
+ const spanY = Math.max(1, box.maxY - box.minY);
3123
+ const scale = Math.min(WIDTH / spanX, HEIGHT / spanY) * 0.85;
3124
+ const left = 10;
3125
+ const top = 10;
3126
+ const toMini = node => ({ x: left + ((node.x ?? 0) - box.minX) * scale, y: top + ((node.y ?? 0) - box.minY) * scale });
3127
+ const viewRect = {
3128
+ x: left + (-view.tx / view.z - box.minX) * scale,
3129
+ y: top + (-view.ty / view.z - box.minY) * scale,
3130
+ w: (canvasSize.width / view.z) * scale,
3131
+ h: (canvasSize.height / view.z) * scale,
3132
+ };
3133
+ return jsx("div", {
3134
+ "data-gbh-minimap": "1",
3135
+ onClick: event => {
3136
+ const rect = event.currentTarget.getBoundingClientRect();
3137
+ onJump({ x: (event.clientX - rect.left - left) / scale + box.minX, y: (event.clientY - rect.top - top) / scale + box.minY });
3138
+ },
3139
+ style: { position: "absolute", right: "12px", bottom: "12px", width: WIDTH + "px", height: HEIGHT + "px", borderRadius: "10px", background: "rgba(20,20,24,.85)", border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))", cursor: "pointer", overflow: "hidden" },
3140
+ children: jsxs("svg", {
3141
+ width: WIDTH, height: HEIGHT,
3142
+ children: [
3143
+ ...nodes.map(node => {
3144
+ const point = toMini(node);
3145
+ return jsx("rect", { x: point.x, y: point.y, width: Math.max(6, NODE_W * scale), height: Math.max(4, NODE_H * scale), rx: 2, fill: KIND_COLOR[node.kind] || "#5a6472", opacity: 0.85 }, node.id);
3146
+ }),
3147
+ jsx("rect", { x: viewRect.x, y: viewRect.y, width: viewRect.w, height: viewRect.h, fill: "rgba(79,124,255,.14)", stroke: "#4f7cff", strokeWidth: 1, rx: 3 }),
3148
+ ],
3149
+ }),
3150
+ });
3151
+ }
3152
+
3153
+ /** JSON view of the same document: the agent-readable face of the canvas. */
3154
+ function SpecEditor(props) {
3155
+ const { doc, text, onChange, onApply, onReset, error } = props;
3156
+ return jsxs("div", {
3157
+ style: { flex: "1 1 auto", display: "flex", flexDirection: "column", padding: "12px", gap: "8px", minHeight: 0 },
3158
+ children: [
3159
+ jsxs("div", { style: { display: "flex", gap: "8px", alignItems: "center" }, children: [
3160
+ jsx("span", { style: { fontSize: "12px", opacity: 0.7 }, children: t("spec.hint") }),
3161
+ jsx("button", { type: "button", "data-gbh-action": "spec-apply", onClick: onApply, style: { marginLeft: "auto", height: "30px", padding: "0 12px", borderRadius: "8px", border: "none", background: "#4f7cff", color: "#fff", cursor: "pointer", fontWeight: 600, fontSize: "12px" }, children: t("spec.apply") }),
3162
+ jsx("button", { type: "button", onClick: onReset, style: { height: "30px", padding: "0 12px", borderRadius: "8px", border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))", background: "transparent", color: "inherit", cursor: "pointer", fontSize: "12px" }, children: t("spec.reset") }),
3163
+ ] }),
3164
+ jsx("textarea", {
3165
+ "data-gbh-spec": "1",
3166
+ value: text,
3167
+ spellCheck: false,
3168
+ onChange: event => onChange(event.target.value),
3169
+ style: { flex: "1 1 auto", width: "100%", boxSizing: "border-box", borderRadius: "10px", border: "1px solid var(--dsw-alias-border-l2, rgba(127,127,127,.35))", background: "transparent", color: "inherit", padding: "10px 12px", fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace", fontSize: "12.5px", lineHeight: "18px", resize: "none", outline: "none" },
3170
+ }),
3171
+ error === null ? null : jsx("div", { style: { color: "#ff8a8a", fontSize: "12px" }, children: error }),
3172
+ ],
3173
+ });
3174
+ }
3175
+
3176
+ return { JourneyPanel };
3177
+ }
3178
+
3179
+ /** Locale namespace owned by the Galaxy feedback entry. */
3180
+ const GBH_FEEDBACK_NS = "gbh.feedback";
3181
+ /** Where the Galaxy feedback entry sends the remark. */
3182
+ const GBH_FEEDBACK_EMAIL = "kevinbui210191@gmail.com";
3183
+ /** English dictionary for the feedback entry; Vietnamese lives in vi.locales.json. */
3184
+ const GBH_FEEDBACK_EN = {
3185
+ "action.send": "Send feedback by email",
3186
+ "dialog.title": "Send feedback by email",
3187
+ "dialog.hint": "The remark opens in your mail app; Galaxy uploads nothing. Attach the conversation log with /export if you want it included.",
3188
+ "dialog.category": "Category",
3189
+ "dialog.details": "Details",
3190
+ "dialog.placeholder": "What happened? What did you expect?",
3191
+ "dialog.send": "Open mail app",
3192
+ "dialog.save": "Save to session",
3193
+ "dialog.cancel": "Cancel",
3194
+ "dialog.empty": "Add some details first.",
3195
+ "dialog.saving": "Saving…",
3196
+ "dialog.saved": "Saved to this session.",
3197
+ "dialog.saveFailed": "Could not save to the session.",
3198
+ "dialog.mailTo": "Send to {email}",
3199
+ "mail.subject": "[Galaxy Blackhole] Feedback — {category}",
3200
+ "mail.session": "Session: {id}",
3201
+ "mail.title": "Title: {title}",
3202
+ "mail.workspace": "Workspace: {cwd}",
3203
+ "mail.time": "Time: {time}",
3204
+ "mail.note": "Attach the conversation log to this mail if you want it included (/export downloads it as a ZIP).",
3205
+ "mail.none": "(none)"
3206
+ };
3207
+ /** The trash glyph: the header button draws it through React, the row menu injects the same markup. */
3208
+ const GBH_TRASH_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" fill="none"><rect x="2" y="3.5" width="12" height="9" rx="1.5" stroke="currentColor" stroke-width="1.2"></rect><path d="M3 3.5h10M6.5 3.5V2.4h3v1.1M6.6 6.4v3.6M9.4 6.4v3.6" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"></path></svg>';
3209
+
3210
+ /** Fill a copy template like "Phiên: {id}" without a formatting dependency. */
3211
+ function gbhFill(template, values) {
3212
+ return String(template).replace(/\{([a-zA-Z][a-zA-Z0-9]*)\}/g, function (match, name) {
3213
+ return values[name] === undefined ? match : String(values[name]);
3214
+ });
3215
+ }
3216
+ /** Session facts for the mail body, from the Galaxy session route (best effort). */
3217
+ function gbhSessionFacts(sessionId) {
3218
+ return fetch(gbhHostBase() + "/api/galaxy/sessions", { credentials: "same-origin" })
3219
+ .then(function (response) { return response.json(); })
3220
+ .then(function (body) {
3221
+ var rows = body && Array.isArray(body.sessions) ? body.sessions : [];
3222
+ for (var i = 0; i < rows.length; i += 1) if (rows[i] && rows[i].id === sessionId) return rows[i];
3223
+ return {};
3224
+ })
3225
+ .catch(function () { return {}; });
3226
+ }
3227
+ /** Build the mailto target and the human-readable body of one remark. */
3228
+ function gbhFeedbackMail(input) {
3229
+ var t = input.t;
3230
+ var facts = input.facts || {};
3231
+ var details = String(input.details || "").trim();
3232
+ if (details.length > 1800) details = details.slice(0, 1800) + "…";
3233
+ var category = input.categoryLabel || "";
3234
+ var subject = gbhFill(t("mail.subject"), { category: category.length > 0 ? category : "—" });
3235
+ var lines = [];
3236
+ if (category.length > 0) lines.push(category);
3237
+ if (details.length > 0) lines.push(details);
3238
+ lines.push("");
3239
+ lines.push("---");
3240
+ lines.push(gbhFill(t("mail.session"), { id: input.sessionId }));
3241
+ lines.push(gbhFill(t("mail.title"), { title: facts.title || t("mail.none") }));
3242
+ lines.push(gbhFill(t("mail.workspace"), { cwd: facts.cwd || t("mail.none") }));
3243
+ lines.push(gbhFill(t("mail.time"), { time: new Date().toISOString() }));
3244
+ lines.push(t("mail.note"));
3245
+ var body = lines.join("\n");
3246
+ return {
3247
+ subject: subject,
3248
+ body: body,
3249
+ href: "mailto:" + GBH_FEEDBACK_EMAIL + "?subject=" + encodeURIComponent(subject) + "&body=" + encodeURIComponent(body)
3250
+ };
3251
+ }
3252
+ /** Hand a mailto target to the browser mail client. */
3253
+ function gbhOpenMail(href) {
3254
+ try {
3255
+ var anchor = document.createElement("a");
3256
+ anchor.href = href;
3257
+ anchor.rel = "noopener";
3258
+ document.body.append(anchor);
3259
+ anchor.click();
3260
+ anchor.remove();
3261
+ return true;
3262
+ } catch (error) {
3263
+ try { globalThis.location.href = href; return true; } catch (inner) { return false; }
3264
+ }
3265
+ }
3266
+ /**
3267
+ * Feedback lives in Settings now: one inline form that either opens the remark in
3268
+ * the mail client (nothing leaves the machine before that) or records it in the
3269
+ * current Session log through the stock sessionFeedback remote.
3270
+ */
3271
+ function GbhFeedbackSection(props) {
3272
+ var t = props.t;
3273
+ var categoryT = props.categoryT;
3274
+ var ctx = props.ctx;
3275
+ var CATEGORIES = ["task-result", "instruction-following", "product-interaction", "service-stability", "resource-cost", "security-privacy-permission", "other"];
3276
+ var selectedState = react.useState(CATEGORIES[0]);
3277
+ var selected = selectedState[0];
3278
+ var setSelected = selectedState[1];
3279
+ var textState = react.useState("");
3280
+ var text = textState[0];
3281
+ var setText = textState[1];
3282
+ var statusState = react.useState(null);
3283
+ var status = statusState[0];
3284
+ var setStatus = statusState[1];
3285
+ var busyState = react.useState(false);
3286
+ var busy = busyState[0];
3287
+ var setBusy = busyState[1];
3288
+ /* The Settings section is root-scoped, so the Session comes from the live list. */
3289
+ var listStore = ctx.sessions && ctx.sessions.list ? ctx.sessions.list : null;
3290
+ var current;
3291
+ try {
3292
+ current = react.useSyncExternalStore(
3293
+ function (notify) { return listStore.subscribe(notify); },
3294
+ function () { return listStore.getSnapshot(); }
3295
+ ).current;
3296
+ } catch (error) { current = undefined; }
3297
+ var chipStyle = function (active) {
3298
+ return {
3299
+ height: "30px", padding: "0 12px", borderRadius: "15px", fontSize: "12.5px",
3300
+ border: "1px solid " + (active ? "#4f7cff" : "rgba(127,127,127,.35)"),
3301
+ background: active ? "rgba(79,124,255,.16)" : "transparent", color: "inherit", cursor: "pointer",
3302
+ };
3303
+ };
3304
+ var send = function () {
3305
+ var details = text.trim();
3306
+ if (details.length === 0) { setStatus({ kind: "error", text: t("dialog.empty") }); return; }
3307
+ if (typeof current !== "string" || current.length === 0) { setStatus({ kind: "error", text: t("dialog.noSession") }); return; }
3308
+ gbhSessionFacts(current).then(function (facts) {
3309
+ var mail = gbhFeedbackMail({ t: t, facts: facts, details: details, categoryLabel: categoryT("category." + selected), sessionId: current });
3310
+ if (gbhOpenMail(mail.href)) setStatus({ kind: "ok", text: t("dialog.opened") });
3311
+ else setStatus({ kind: "error", text: mail.body });
3312
+ });
3313
+ };
3314
+ var save = function () {
3315
+ var details = text.trim();
3316
+ if (details.length === 0) { setStatus({ kind: "error", text: t("dialog.empty") }); return; }
3317
+ if (typeof current !== "string" || current.length === 0) { setStatus({ kind: "error", text: t("dialog.noSession") }); return; }
3318
+ setBusy(true);
3319
+ setStatus({ kind: "info", text: t("dialog.saving") });
3320
+ Promise.resolve(ctx.remote.sessionFeedback.record({ sessionId: current, text: details, category: selected }))
3321
+ .then(function (carried) {
3322
+ setBusy(false);
3323
+ var ok = carried && carried.ok === true && carried.value && carried.value.ok === true;
3324
+ setStatus(ok ? { kind: "ok", text: t("dialog.saved") } : { kind: "error", text: t("dialog.saveFailed") });
3325
+ }, function () { setBusy(false); setStatus({ kind: "error", text: t("dialog.saveFailed") }); });
3326
+ };
3327
+ var statusColor = status === null ? "inherit" : status.kind === "error" ? "#ff8a8a" : status.kind === "ok" ? "#6ddba0" : "var(--dsw-alias-label-secondary, #9aa0a6)";
3328
+ return react_jsx_runtime.jsxs("div", {
3329
+ "data-gbh-feedback": "settings",
3330
+ style: { display: "flex", flexDirection: "column", gap: "10px", maxWidth: "620px" },
3331
+ children: [
3332
+ react_jsx_runtime.jsx("div", { style: { fontSize: "15px", fontWeight: 600 }, children: t("settings.title") }),
3333
+ react_jsx_runtime.jsx("div", { style: { fontSize: "12.5px", lineHeight: "19px", opacity: 0.75 }, children: t("settings.intro") }),
3334
+ react_jsx_runtime.jsx("div", {
3335
+ style: { display: "flex", flexWrap: "wrap", gap: "8px" },
3336
+ children: CATEGORIES.map(function (category) {
3337
+ return react_jsx_runtime.jsx("button", {
3338
+ type: "button",
3339
+ "data-gbh-feedback-category": category,
3340
+ onClick: function () { setSelected(category); },
3341
+ style: chipStyle(selected === category),
3342
+ children: categoryT("category." + category),
3343
+ }, category);
3344
+ }),
3345
+ }),
3346
+ react_jsx_runtime.jsx("textarea", {
3347
+ "data-gbh-feedback-text": "1",
3348
+ value: text,
3349
+ placeholder: t("dialog.placeholder"),
3350
+ onChange: function (event) { setText(event.target.value); },
3351
+ style: { width: "100%", boxSizing: "border-box", minHeight: "120px", resize: "vertical", borderRadius: "10px", border: "1px solid rgba(127,127,127,.4)", background: "transparent", color: "inherit", padding: "10px 12px", fontSize: "13.5px", fontFamily: "inherit", outline: "none" },
3352
+ }),
3353
+ react_jsx_runtime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "10px", flexWrap: "wrap" }, children: [
3354
+ react_jsx_runtime.jsx("button", {
3355
+ type: "button", "data-gbh-feedback-send": "1", onClick: send,
3356
+ style: { height: "34px", padding: "0 16px", borderRadius: "9px", border: "none", background: "#4f7cff", color: "#fff", cursor: "pointer", fontWeight: 600, fontSize: "13px" },
3357
+ children: t("dialog.send"),
3358
+ }),
3359
+ react_jsx_runtime.jsx("button", {
3360
+ type: "button", "data-gbh-feedback-save": "1", onClick: save, disabled: busy,
3361
+ style: { height: "34px", padding: "0 14px", borderRadius: "9px", border: "1px solid rgba(127,127,127,.4)", background: "transparent", color: "inherit", cursor: busy ? "default" : "pointer", fontSize: "13px" },
3362
+ children: t("dialog.save"),
3363
+ }),
3364
+ react_jsx_runtime.jsx("span", {
3365
+ "data-gbh-feedback-status": status === null ? "idle" : status.kind,
3366
+ style: { fontSize: "12px", color: statusColor },
3367
+ children: status === null ? t("settings.target") : status.text,
3368
+ }),
3369
+ ] }),
3370
+ ],
3371
+ });
3372
+ }
3373
+ /** The sidebar row whose more-button was clicked last; the open menu belongs to it. */
3374
+ var gbhMenuRow;
3375
+ /** Client context captured for the injected row-menu entry (session list refresh). */
3376
+ var gbhCtx;
3377
+ /**
3378
+ * Resolve the Session id a sidebar row belongs to.
3379
+ *
3380
+ * The row markup carries no id, but React keeps its fiber on the DOM node, and the
3381
+ * SessionNodeItem fiber holds the Session node as a prop. Walking up a bounded number
3382
+ * of fibers keeps this independent of the row markup and of the active language.
3383
+ */
3384
+ function gbhRowSessionId(row) {
3385
+ var key;
3386
+ var keys = Object.keys(row);
3387
+ for (var i = 0; i < keys.length; i += 1) if (keys[i].indexOf("__reactFiber$") === 0) { key = keys[i]; break; }
3388
+ if (key === undefined) return undefined;
3389
+ var fiber = row[key];
3390
+ for (var depth = 0; depth < 15 && fiber; depth += 1) {
3391
+ var props = fiber.memoizedProps;
3392
+ if (props && typeof props.sessionId === "string") return props.sessionId;
3393
+ if (props && props.node && typeof props.node.id === "string") return props.node.id;
3394
+ fiber = fiber.return;
3395
+ }
3396
+ return undefined;
3397
+ }
3398
+ /** True for the sidebar row markup that represents one Session. */
3399
+ function gbhIsSessionRow(row) {
3400
+ return typeof row.className === "string" && row.className.indexOf("sessionRow") !== -1;
3401
+ }
3402
+ /** Close a menu the primitives own by asking it to dismiss itself. */
3403
+ function gbhDismissMenu(menu) {
3404
+ try { menu.dispatchEvent(new KeyboardEvent("keydown", { key: "Escape", bubbles: true })); } catch (error) { /* ignore */ }
3405
+ try { document.body.dispatchEvent(new MouseEvent("mousedown", { bubbles: true })); } catch (error) { /* ignore */ }
3406
+ }
3407
+ /**
3408
+ * Add the Galaxy delete entry to an open Session row menu.
3409
+ *
3410
+ * The stock menu is built inside @deepseek-ai/dsh-client-ui-workspace, which exposes no
3411
+ * slot for per-row actions, so the entry is appended next to the last stock item using
3412
+ * that item as the styling template. Any uncertainty about which Session the menu owns
3413
+ * skips the injection: deleting the wrong Session is far worse than a missing entry.
3414
+ */
3415
+ function gbhInjectDeleteMenuItem(sessionsT) {
3416
+ var menu = document.querySelector("[role=menu]");
3417
+ if (menu === null || menu.querySelector("[data-gbh-menu-delete]") !== null) return;
3418
+ var row = gbhMenuRow;
3419
+ if (row === undefined || !document.contains(row) || !gbhIsSessionRow(row)) return;
3420
+ var sessionId = gbhRowSessionId(row);
3421
+ if (sessionId === undefined) return;
3422
+ var items = menu.querySelectorAll("button[role=menuitem]");
3423
+ if (items.length === 0) return;
3424
+ var template = items[items.length - 1];
3425
+ var wrap = template.parentElement;
3426
+ var viewport = wrap === null ? null : wrap.parentElement;
3427
+ if (wrap === null || viewport === null) return;
3428
+ var clone = wrap.cloneNode(true);
3429
+ var button = clone.querySelector("button[role=menuitem]");
3430
+ if (button === null) return;
3431
+ button.setAttribute("data-gbh-menu-delete", "1");
3432
+ var label = button.querySelector("[class*=itemLabel]");
3433
+ if (label !== null) label.textContent = sessionsT("menu.delete");
3434
+ var icon = button.querySelector("[class*=itemIcon]");
3435
+ if (icon !== null) icon.innerHTML = GBH_TRASH_SVG;
3436
+ button.addEventListener("click", function (event) {
3437
+ event.preventDefault();
3438
+ event.stopPropagation();
3439
+ gbhDismissMenu(menu);
3440
+ gbhConfirmDeleteSession(sessionId, sessionsT, function () {}, function () { gbhAfterDelete(sessionId); });
3441
+ }, true);
3442
+ viewport.append(clone);
3443
+ }
3444
+ /** Remember the clicked row and watch for row menus the primitives portal into the body. */
3445
+ function gbhWatchSessionMenu(ctx, sessionsT) {
3446
+ if (typeof document === "undefined" || typeof MutationObserver === "undefined") return;
3447
+ document.addEventListener("click", function (event) {
3448
+ var target = event.target;
3449
+ if (target === null || typeof target.closest !== "function") return;
3450
+ var row = target.closest("[role=treeitem]");
3451
+ if (row !== null && gbhIsSessionRow(row)) gbhMenuRow = row;
3452
+ }, true);
3453
+ /**
3454
+ * One menu probe per mutation burst.
3455
+ *
3456
+ * A session switch re-renders the transcript thousands of times, and probing the
3457
+ * document for an open menu on every record froze the renderer; a burst now costs
3458
+ * a single probe after the DOM settles, and a burst without element insertions is
3459
+ * ignored entirely. The same probe seats the terminal-failure hint, which costs
3460
+ * two bounded row queries per burst.
3461
+ */
3462
+ var menuProbeScheduled = false;
3463
+ function scheduleMenuProbe() {
3464
+ if (menuProbeScheduled) return;
3465
+ menuProbeScheduled = true;
3466
+ setTimeout(function () {
3467
+ menuProbeScheduled = false;
3468
+ gbhInjectDeleteMenuItem(sessionsT);
3469
+ gbhAnnotateTurnErrors(sessionsT);
3470
+ }, 150);
3471
+ }
3472
+ new MutationObserver(function (mutations) {
3473
+ for (var i = 0; i < mutations.length; i += 1) {
3474
+ var added = mutations[i].addedNodes;
3475
+ for (var j = 0; j < added.length; j += 1) {
3476
+ var node = added[j];
3477
+ if (node === null || node.nodeType !== 1) continue;
3478
+ scheduleMenuProbe();
3479
+ return;
3480
+ }
3481
+ }
3482
+ }).observe(document.body, { childList: true, subtree: true });
3483
+ }
3484
+ const inject = ["slots", "locale", "remote", "remote.credentials", "remote.sessionFeedback", "sessions"];
1331
3485
  function apply(ctx) {
1332
3486
  ctx.slots.inject("sidebar.brand.mark", () => ctx.slots.inject("sidebar.brand.name", function* () {
1333
3487
  yield ctx.slots.register({ name: "sidebar.brand.mark" }, GbhBrandMark);
@@ -1344,26 +3498,107 @@ window.__ModuleLoader__.load({
1344
3498
  inject: function () { return {}; }
1345
3499
  }, GbhDeleteSessionAction);
1346
3500
  });
3501
+ /* Row menus: the stock Session menu exposes no slot, so the entry is injected on open. */
3502
+ var sessionsT = function (key) { return key; };
3503
+ try { sessionsT = ctx.locale.bind(GBH_SESSIONS_NS); } catch (error) { /* the namespace registers just above */ }
3504
+ gbhCtx = ctx;
3505
+ gbhWatchSessionMenu(ctx, sessionsT);
3506
+ /* Journey: the n8n-style blueprint canvas, seated next to Trajectory. */
3507
+ var journeyTranslator = function (key) { return key; };
3508
+ try { journeyTranslator = ctx.locale.bind(GBH_JOURNEY_NS); } catch (error) { /* the namespace registers just above */ }
3509
+ var journeyT = function (key) {
3510
+ try {
3511
+ var value = journeyTranslator(key);
3512
+ if (typeof value === "string" && value !== key) return value;
3513
+ } catch (error) { /* fall through to the built-in copy */ }
3514
+ return GBH_JOURNEY_VI[key] !== undefined ? GBH_JOURNEY_VI[key] : key;
3515
+ };
3516
+ var journeyApi = {
3517
+ load: function (sessionId) {
3518
+ return fetch(gbhHostBase() + "/api/galaxy/journey?sessionId=" + encodeURIComponent(sessionId), { credentials: "same-origin" })
3519
+ .then(function (response) { return response.json().catch(function () { return { ok: false, message: "HTTP " + response.status }; }); })
3520
+ .catch(function (error) { return { ok: false, message: String(error) }; });
3521
+ },
3522
+ run: function (sessionId, payload) {
3523
+ return fetch(gbhHostBase() + "/api/galaxy/journey.run", {
3524
+ method: "POST",
3525
+ headers: { "content-type": "application/json" },
3526
+ credentials: "same-origin",
3527
+ body: JSON.stringify({ sessionId: sessionId, updatedBy: "human", ...(payload || {}) })
3528
+ })
3529
+ .then(function (response) { return response.json().catch(function () { return { ok: false, message: "HTTP " + response.status }; }); })
3530
+ .catch(function (error) { return { ok: false, message: String(error) }; });
3531
+ },
3532
+ save: function (sessionId, document, expectedRevision) {
3533
+ return fetch(gbhHostBase() + "/api/galaxy/journey", {
3534
+ method: "POST",
3535
+ headers: { "content-type": "application/json" },
3536
+ credentials: "same-origin",
3537
+ body: JSON.stringify({ sessionId: sessionId, document: document, expectedRevision: expectedRevision, updatedBy: "human" })
3538
+ })
3539
+ .then(function (response) { return response.json().catch(function () { return { ok: false, message: "HTTP " + response.status }; }); })
3540
+ .catch(function (error) { return { ok: false, message: String(error) }; });
3541
+ }
3542
+ };
3543
+ var journeyPanel = createJourneyPanel({
3544
+ react: react,
3545
+ jsx: react_jsx_runtime.jsx,
3546
+ jsxs: react_jsx_runtime.jsxs,
3547
+ primitives: primitives,
3548
+ t: journeyT,
3549
+ api: journeyApi
3550
+ });
3551
+ ctx.slots.inject("conversation.view", function () {
3552
+ return ctx.slots.register({
3553
+ name: "conversation.view",
3554
+ id: "journey",
3555
+ order: 20,
3556
+ locale: GBH_JOURNEY_NS,
3557
+ label: function () { return journeyT("view.journey"); },
3558
+ inject: function (sessionId) { return { sessionId: sessionId, api: journeyApi, t: journeyT }; }
3559
+ }, journeyPanel.JourneyPanel);
3560
+ });
3561
+ /* Feedback: send the remark by email, or keep it in the local Session log. */
3562
+ var feedbackT = function (key) { return key; };
3563
+ try { feedbackT = ctx.locale.bind("feedback"); } catch (error) { /* the stock namespace may be absent */ }
3564
+ ctx.slots.inject("conversation.session.header.utilities", function () {
3565
+ return ctx.slots.register({
3566
+ name: "conversation.session.header.utilities",
3567
+ id: "gbh-feedback",
3568
+ order: 60,
3569
+ locale: GBH_FEEDBACK_NS,
3570
+ inject: function () { return { ctx: ctx, feedbackT: feedbackT }; }
3571
+ }, GbhFeedbackAction);
3572
+ });
1347
3573
  try {
1348
3574
  ctx.locale.addLanguage({ id: "vi", label: "Tiếng Việt", fallback: "en" });
1349
3575
  } catch (error) {
1350
3576
  /* the language may already be registered on a plugin reload */
1351
3577
  }
3578
+ /* Galaxy-owned namespaces ship both dictionaries: English here, Vietnamese in vi.locales.json. */
3579
+ const ownDictionaries = {};
3580
+ ownDictionaries[GBH_SESSIONS_NS] = GBH_SESSIONS_EN;
3581
+ ownDictionaries[GBH_FEEDBACK_NS] = GBH_FEEDBACK_EN;
3582
+ ownDictionaries[GBH_JOURNEY_NS] = GBH_JOURNEY_EN;
1352
3583
  const namespaces = Object.keys(VI_LOCALES);
1353
3584
  for (let i = 0; i < namespaces.length; i += 1) {
1354
3585
  const ns = namespaces[i];
1355
- /* The session tools namespace registers both dictionaries in one call below. */
1356
- if (ns === GBH_SESSIONS_NS) continue;
3586
+ /* A Galaxy-owned namespace registers both dictionaries in one call below. */
3587
+ if (ownDictionaries[ns] !== undefined) continue;
1357
3588
  try {
1358
3589
  ctx.locale.register(ns, "vi", VI_LOCALES[ns]);
1359
3590
  } catch (error) {
1360
3591
  /* a namespace may already carry vi on a reload */
1361
3592
  }
1362
3593
  }
1363
- try {
1364
- ctx.locale.register(GBH_SESSIONS_NS, { en: GBH_SESSIONS_EN, vi: VI_LOCALES[GBH_SESSIONS_NS] });
1365
- } catch (error) {
1366
- /* the namespace may already be registered on a plugin reload */
3594
+ const ownNames = Object.keys(ownDictionaries);
3595
+ for (let i = 0; i < ownNames.length; i += 1) {
3596
+ const ns = ownNames[i];
3597
+ try {
3598
+ ctx.locale.register(ns, { en: ownDictionaries[ns], vi: VI_LOCALES[ns] });
3599
+ } catch (error) {
3600
+ /* the namespace may already be registered on a plugin reload */
3601
+ }
1367
3602
  }
1368
3603
  /* Replace the shipped internal-testing notice with the Galaxy description,
1369
3604
  including the English copy, by editing the registered dictionaries. */
@@ -1382,29 +3617,9 @@ window.__ModuleLoader__.load({
1382
3617
  } catch (error) {
1383
3618
  /* dictionary override is best-effort */
1384
3619
  }
1385
- /* Separate thinking control before the composer submit action. */
1386
- var localeActive = "en";
1387
- try { localeActive = ctx.locale.getSnapshot().active; } catch (error) { /* default en */ }
1388
- ctx.inject(["slots", "modelDirectories", "sessions"], function (scope) {
1389
- var models = scope.modelDirectories;
1390
- var sessions = scope.sessions;
1391
- scope.slots.inject("conversation.input.right", function () {
1392
- return scope.slots.register({
1393
- name: "conversation.input.right",
1394
- inject: function (sessionId) {
1395
- var directory = models.directoryFor(sessionId);
1396
- var available = sessions.subagentAddress(sessionId) === undefined;
1397
- return {
1398
- available: available,
1399
- directory: directory.store,
1400
- localeActive: localeActive,
1401
- load: function () { if (available) directory.load().catch(function () { return undefined; }); },
1402
- select: function (selection) { return available ? directory.select(selection).then(function () { return true; }, function () { return false; }) : Promise.resolve(false); }
1403
- };
1404
- }
1405
- }, GbhThinkingControl);
1406
- });
1407
- });
3620
+ /* The composer keeps the stock model/effort chip; Galaxy no longer seats a
3621
+ second effort control there (it duplicated the chip and rendered empty
3622
+ for a provider that declares its efforts as a map). */
1408
3623
  ensureGalaxyKey(ctx);
1409
3624
  watchContextSources();
1410
3625
  }