@galaxy-stack/blackhole-cli 2.3.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/README.md +78 -47
  2. package/dist/application.d.ts.map +1 -1
  3. package/dist/application.js +23 -2
  4. package/dist/application.js.map +1 -1
  5. package/dist/authorization.d.ts +22 -0
  6. package/dist/authorization.d.ts.map +1 -0
  7. package/dist/authorization.js +42 -0
  8. package/dist/authorization.js.map +1 -0
  9. package/dist/cli-meta.d.ts +8 -0
  10. package/dist/cli-meta.d.ts.map +1 -1
  11. package/dist/cli-meta.js +11 -0
  12. package/dist/cli-meta.js.map +1 -1
  13. package/dist/cli.js +51 -27
  14. package/dist/cli.js.map +1 -1
  15. package/dist/config-command.d.ts +11 -14
  16. package/dist/config-command.d.ts.map +1 -1
  17. package/dist/config-command.js +41 -118
  18. package/dist/config-command.js.map +1 -1
  19. package/dist/doctor.d.ts +8 -2
  20. package/dist/doctor.d.ts.map +1 -1
  21. package/dist/doctor.js +11 -15
  22. package/dist/doctor.js.map +1 -1
  23. package/dist/file-index.d.ts +50 -0
  24. package/dist/file-index.d.ts.map +1 -1
  25. package/dist/file-index.js +124 -0
  26. package/dist/file-index.js.map +1 -1
  27. package/dist/harness/boot.d.ts +87 -0
  28. package/dist/harness/boot.d.ts.map +1 -0
  29. package/dist/harness/boot.js +111 -0
  30. package/dist/harness/boot.js.map +1 -0
  31. package/dist/harness/catalogs.d.ts +50 -0
  32. package/dist/harness/catalogs.d.ts.map +1 -0
  33. package/dist/harness/catalogs.js +34 -0
  34. package/dist/harness/catalogs.js.map +1 -0
  35. package/dist/harness/chat.d.ts +90 -0
  36. package/dist/harness/chat.d.ts.map +1 -0
  37. package/dist/harness/chat.js +260 -0
  38. package/dist/harness/chat.js.map +1 -0
  39. package/dist/harness/client.d.ts +72 -0
  40. package/dist/harness/client.d.ts.map +1 -0
  41. package/dist/harness/client.js +173 -0
  42. package/dist/harness/client.js.map +1 -0
  43. package/dist/harness/command.d.ts +22 -0
  44. package/dist/harness/command.d.ts.map +1 -0
  45. package/dist/harness/command.js +142 -0
  46. package/dist/harness/command.js.map +1 -0
  47. package/dist/harness/composer.d.ts +46 -0
  48. package/dist/harness/composer.d.ts.map +1 -0
  49. package/dist/harness/composer.js +127 -0
  50. package/dist/harness/composer.js.map +1 -0
  51. package/dist/harness/conversation.d.ts +75 -0
  52. package/dist/harness/conversation.d.ts.map +1 -0
  53. package/dist/harness/conversation.js +196 -0
  54. package/dist/harness/conversation.js.map +1 -0
  55. package/dist/harness/help.d.ts +56 -0
  56. package/dist/harness/help.d.ts.map +1 -0
  57. package/dist/harness/help.js +85 -0
  58. package/dist/harness/help.js.map +1 -0
  59. package/dist/harness/history.d.ts +108 -0
  60. package/dist/harness/history.d.ts.map +1 -0
  61. package/dist/harness/history.js +268 -0
  62. package/dist/harness/history.js.map +1 -0
  63. package/dist/harness/labels.d.ts +164 -0
  64. package/dist/harness/labels.d.ts.map +1 -0
  65. package/dist/harness/labels.js +271 -0
  66. package/dist/harness/labels.js.map +1 -0
  67. package/dist/harness/locate.d.ts +24 -0
  68. package/dist/harness/locate.d.ts.map +1 -0
  69. package/dist/harness/locate.js +69 -0
  70. package/dist/harness/locate.js.map +1 -0
  71. package/dist/harness/menus.d.ts +74 -0
  72. package/dist/harness/menus.d.ts.map +1 -0
  73. package/dist/harness/menus.js +140 -0
  74. package/dist/harness/menus.js.map +1 -0
  75. package/dist/harness/model-name.d.ts +73 -0
  76. package/dist/harness/model-name.d.ts.map +1 -0
  77. package/dist/harness/model-name.js +101 -0
  78. package/dist/harness/model-name.js.map +1 -0
  79. package/dist/harness/parts.d.ts +239 -0
  80. package/dist/harness/parts.d.ts.map +1 -0
  81. package/dist/harness/parts.js +266 -0
  82. package/dist/harness/parts.js.map +1 -0
  83. package/dist/harness/preset.d.ts +124 -0
  84. package/dist/harness/preset.d.ts.map +1 -0
  85. package/dist/harness/preset.js +197 -0
  86. package/dist/harness/preset.js.map +1 -0
  87. package/dist/harness/process.d.ts +55 -0
  88. package/dist/harness/process.d.ts.map +1 -0
  89. package/dist/harness/process.js +119 -0
  90. package/dist/harness/process.js.map +1 -0
  91. package/dist/harness/screen.d.ts +33 -0
  92. package/dist/harness/screen.d.ts.map +1 -0
  93. package/dist/harness/screen.js +1070 -0
  94. package/dist/harness/screen.js.map +1 -0
  95. package/dist/harness/sessions.d.ts +55 -0
  96. package/dist/harness/sessions.d.ts.map +1 -0
  97. package/dist/harness/sessions.js +92 -0
  98. package/dist/harness/sessions.js.map +1 -0
  99. package/dist/harness/skills.d.ts +90 -0
  100. package/dist/harness/skills.d.ts.map +1 -0
  101. package/dist/harness/skills.js +133 -0
  102. package/dist/harness/skills.js.map +1 -0
  103. package/dist/harness/slash-palette.d.ts +32 -0
  104. package/dist/harness/slash-palette.d.ts.map +1 -0
  105. package/dist/harness/slash-palette.js +48 -0
  106. package/dist/harness/slash-palette.js.map +1 -0
  107. package/dist/harness/slash.d.ts +113 -0
  108. package/dist/harness/slash.d.ts.map +1 -0
  109. package/dist/harness/slash.js +187 -0
  110. package/dist/harness/slash.js.map +1 -0
  111. package/dist/harness/trajectory.d.ts +74 -0
  112. package/dist/harness/trajectory.d.ts.map +1 -0
  113. package/dist/harness/trajectory.js +270 -0
  114. package/dist/harness/trajectory.js.map +1 -0
  115. package/dist/harness/tui.d.ts +28 -0
  116. package/dist/harness/tui.d.ts.map +1 -0
  117. package/dist/harness/tui.js +143 -0
  118. package/dist/harness/tui.js.map +1 -0
  119. package/dist/manual-config.d.ts +23 -10
  120. package/dist/manual-config.d.ts.map +1 -1
  121. package/dist/manual-config.js +45 -37
  122. package/dist/manual-config.js.map +1 -1
  123. package/dist/migrate.d.ts +32 -0
  124. package/dist/migrate.d.ts.map +1 -0
  125. package/dist/migrate.js +155 -0
  126. package/dist/migrate.js.map +1 -0
  127. package/dist/options.d.ts +10 -1
  128. package/dist/options.d.ts.map +1 -1
  129. package/dist/options.js +23 -4
  130. package/dist/options.js.map +1 -1
  131. package/dist/setup.d.ts +14 -10
  132. package/dist/setup.d.ts.map +1 -1
  133. package/dist/setup.js +25 -92
  134. package/dist/setup.js.map +1 -1
  135. package/dist/timeline.d.ts.map +1 -1
  136. package/dist/timeline.js +11 -0
  137. package/dist/timeline.js.map +1 -1
  138. package/dist/web/command.d.ts +5 -1
  139. package/dist/web/command.d.ts.map +1 -1
  140. package/dist/web/command.js +22 -6
  141. package/dist/web/command.js.map +1 -1
  142. package/dist/web/credentials.d.ts +7 -5
  143. package/dist/web/credentials.d.ts.map +1 -1
  144. package/dist/web/credentials.js +13 -48
  145. package/dist/web/credentials.js.map +1 -1
  146. package/dist/web/doctor.d.ts +1 -1
  147. package/dist/web/doctor.d.ts.map +1 -1
  148. package/dist/web/doctor.js +42 -64
  149. package/dist/web/doctor.js.map +1 -1
  150. package/dist/web/options.d.ts +26 -2
  151. package/dist/web/options.d.ts.map +1 -1
  152. package/dist/web/options.js +54 -18
  153. package/dist/web/options.js.map +1 -1
  154. package/dist/web/paths.d.ts +1 -1
  155. package/dist/web/paths.d.ts.map +1 -1
  156. package/dist/web/paths.js +2 -2
  157. package/dist/web/paths.js.map +1 -1
  158. package/dist/web/web.d.ts +38 -16
  159. package/dist/web/web.d.ts.map +1 -1
  160. package/dist/web/web.js +166 -168
  161. package/dist/web/web.js.map +1 -1
  162. package/package.json +5 -4
  163. package/web/brand/lib/client.js +4 -4
  164. package/web/patches/gbh-ui.patch.yml +6 -24
@@ -0,0 +1,164 @@
1
+ /**
2
+ * The Vietnamese surface of the `blackhole chat` terminal.
3
+ *
4
+ * The desktop app owns the wording. Every string here is copied from its locale
5
+ * table (`blackhole-tauri/tools/locale/gbh-locale-vi.json`) so the terminal and
6
+ * the window name the same things the same way: "Phiên mới", "Hội thoại",
7
+ * "Luồng chạy", "Đang suy nghĩ…", "Toàn quyền", "Ghi trong workspace", "Chỉ đọc".
8
+ * Keeping the copy in one module also keeps the screen components about layout,
9
+ * not about language.
10
+ */
11
+ /** The fixed words the screen uses; interpolation lives in the helpers below. */
12
+ export declare const UI: Readonly<{
13
+ readonly brand: "Galaxy Blackhole";
14
+ readonly preview: "Bản xem trước";
15
+ readonly newSession: "Phiên mới";
16
+ readonly conversation: "Hội thoại";
17
+ readonly trajectory: "Luồng chạy";
18
+ readonly workspace: "Không gian";
19
+ readonly sessions: "Phiên";
20
+ readonly plugins: "Plugin";
21
+ readonly automations: "Tác vụ tự động";
22
+ readonly more: "Thêm";
23
+ readonly untitled: "Chưa đặt tên";
24
+ readonly noSessions: "Chưa có phiên nào";
25
+ readonly emptyHero: "Bước vào vùng chưa biết";
26
+ readonly emptyBody: "Bắt đầu hội thoại mới với Galaxy Blackhole.";
27
+ readonly emptyHint: "Mô tả việc bạn muốn làm, gõ / để mở lệnh, hoặc @ để chọn tệp.";
28
+ readonly placeholder: "Gửi tin nhắn hoặc tạo tác vụ, / gọi lệnh, @ tệp hoặc hội thoại";
29
+ readonly send: "Gửi tin nhắn";
30
+ readonly stop: "Dừng tạo";
31
+ readonly attach: "Thêm tệp đính kèm";
32
+ readonly commandMenu: "Mở menu lệnh";
33
+ readonly model: "Model";
34
+ readonly reasoning: "Mức suy luận";
35
+ readonly defaultEffort: "Mặc định";
36
+ readonly accessMode: "Chế độ truy cập";
37
+ readonly accessMenu: "Chọn chế độ quyền";
38
+ readonly modelMenu: "Chọn model";
39
+ readonly effortMenu: "Mức suy luận";
40
+ readonly plusMenu: "Thêm";
41
+ readonly chooseWorkspace: "Chọn workspace";
42
+ readonly filePicker: "Chọn tệp";
43
+ readonly workspacePicker: "Chọn workspace";
44
+ readonly pickerHint: "↑/↓ · Enter · Esc";
45
+ readonly noFiles: "Không có tệp khớp";
46
+ readonly noWorkspaces: "Không có workspace nào khác";
47
+ readonly effortApplied: "Mức suy luận";
48
+ readonly effortFailed: "Không đổi được mức suy luận";
49
+ readonly chipsHint: "Tab: chip";
50
+ readonly chipsHintFocused: "←/→ · Enter mở";
51
+ readonly loadingTrajectory: "Đang đọc Luồng chạy…";
52
+ readonly thinking: "Đang suy nghĩ…";
53
+ readonly thinkingDone: "Đã suy nghĩ";
54
+ readonly reasoningCollapsed: "Suy nghĩ · đã thu gọn";
55
+ readonly reasoningExpanded: "Suy nghĩ";
56
+ readonly running: "Đang chạy";
57
+ readonly idle: "Rảnh";
58
+ readonly ready: "Sẵn sàng";
59
+ readonly completed: "Hoàn thành";
60
+ readonly stopped: "Đã dừng";
61
+ readonly failed: "Thất bại";
62
+ readonly error: "Có lỗi";
63
+ readonly working: "Đã làm việc";
64
+ readonly took: "Xong sau ";
65
+ readonly steps: "bước";
66
+ readonly tokens: "token";
67
+ readonly stepCalls: "lệnh gọi công cụ";
68
+ readonly connected: "Đã kết nối harness";
69
+ readonly connecting: "Đang kết nối…";
70
+ readonly disconnected: "Mất kết nối";
71
+ readonly harness: "Harness";
72
+ readonly waitingApproval: "Chờ phê duyệt";
73
+ readonly planReview: "Kế hoạch chờ duyệt";
74
+ readonly you: "Bạn";
75
+ readonly assistant: "Trợ lý";
76
+ readonly turn: "Lượt";
77
+ readonly help: "Trợ giúp";
78
+ readonly sessionInfo: "Thông tin phiên";
79
+ readonly close: "Đóng";
80
+ readonly menuHint: "↑/↓ chọn · Enter áp dụng · Esc đóng";
81
+ readonly helpHint: "esc đóng";
82
+ readonly showThinking: "hiện suy nghĩ";
83
+ readonly hideThinking: "ẩn suy nghĩ";
84
+ readonly showTools: "chi tiết công cụ";
85
+ readonly hideTools: "ẩn chi tiết công cụ";
86
+ readonly noMatches: "Không có kết quả";
87
+ readonly loadingSessions: "Đang tải phiên…";
88
+ readonly loadingHistory: "Đang mở phiên…";
89
+ readonly historyFailed: "Không mở được phiên";
90
+ readonly trajectoryFailed: "Không đọc được luồng chạy";
91
+ readonly events: "sự kiện";
92
+ readonly sessionsFailed: "Không tải được danh sách phiên";
93
+ readonly catalogFailed: "Không tải được danh sách model";
94
+ readonly accessFailed: "Không đổi được chế độ quyền";
95
+ readonly modelFailed: "Không chọn được model";
96
+ readonly permissionApplied: "Chế độ quyền";
97
+ readonly modelApplied: "Model";
98
+ readonly noModel: "Theo cấu hình";
99
+ readonly noMessages: "Chưa có tin nhắn";
100
+ readonly scrollHint: "PgUp/PgDn cuộn lịch sử";
101
+ readonly sidebarHint: "↑/↓ chọn phiên · Enter mở · Tab về ô soạn";
102
+ readonly composerHint: "Enter gửi · Esc dừng lượt · Tab chọn phiên · Ctrl+C thoát";
103
+ readonly expandedHint: "Ctrl+L ẩn/hiện suy nghĩ · Ctrl+O chi tiết công cụ";
104
+ }>;
105
+ /** One selectable access preset, worded the way the composer chip words it. */
106
+ export interface AccessPreset {
107
+ /** Wire value the harness projects and the /permission command accepts. */
108
+ readonly value: string;
109
+ readonly label: string;
110
+ readonly description: string;
111
+ }
112
+ /** The three named presets the app ships; `auto` is appended when the host offers it. */
113
+ export declare const ACCESS_PRESETS: readonly AccessPreset[];
114
+ /**
115
+ * The access presets to offer for a host catalog.
116
+ * @param values - values the host advertises, in contribution order.
117
+ * @returns the named presets plus `auto` when the host offers it.
118
+ */
119
+ export declare function accessPresets(values: readonly string[] | undefined): readonly AccessPreset[];
120
+ /**
121
+ * The Vietnamese label of one access value.
122
+ * @param value - preset key or `custom`.
123
+ * @returns the label the chip shows.
124
+ */
125
+ export declare function accessLabel(value: string | undefined): string;
126
+ /**
127
+ * A tool call as one Vietnamese row: "Đọc · src/app.ts".
128
+ * @param name - the tool identifier the harness reported.
129
+ * @param args - its parsed arguments, when they parsed.
130
+ * @returns a one-line label safe for the transcript.
131
+ */
132
+ export declare function toolTitle(name: string, args?: Readonly<Record<string, unknown>>): string;
133
+ /**
134
+ * Strip the harness's result envelope from a tool result before it reaches a row.
135
+ * A `read` answers with `<path>`, `<type>` and `<content>` blocks; the path is
136
+ * already the row's label, and the tags are transport, not prose.
137
+ * @param summary - the text the harness returned for the call.
138
+ */
139
+ export declare function cleanToolResult(summary: string): string;
140
+ /** Whole tokens as the app writes them: 942, 1,2k, 3,4M. */
141
+ export declare function formatTokens(count: number): string;
142
+ /**
143
+ * A wall time as the turn footer writes it: 320ms, 4,2s, 2m 05s.
144
+ * @param milliseconds - elapsed time.
145
+ */
146
+ export declare function formatDuration(milliseconds: number): string;
147
+ /**
148
+ * When a session last moved, in the sidebar's own words ("4 giờ trước").
149
+ * @param updatedAt - epoch milliseconds from the harness.
150
+ * @param now - the reading clock.
151
+ */
152
+ export declare function formatAgo(updatedAt: number | undefined, now?: number): string;
153
+ /**
154
+ * A workspace's sidebar name: its folder, never a full path.
155
+ * @param cwd - absolute directory the harness session owns.
156
+ * @param home - the user's home directory, when known.
157
+ */
158
+ export declare function workspaceName(cwd: string, home?: string): string;
159
+ /**
160
+ * A session row title, bounded to what a sidebar row can show.
161
+ * @param title - the harness's normalized title, or null before the first one lands.
162
+ */
163
+ export declare function sessionTitle(title: string | null | undefined): string;
164
+ //# sourceMappingURL=labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/harness/labels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,iFAAiF;AACjF,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4FJ,CAAC;AAEZ,+EAA+E;AAC/E,MAAM,WAAW,YAAY;IAC3B,2EAA2E;IAC3E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,yFAAyF;AACzF,eAAO,MAAM,cAAc,EAAE,SAAS,YAAY,EAIhD,CAAC;AAKH;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GAAG,SAAS,YAAY,EAAE,CAK5F;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAG7D;AA8CD;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM,GAAG,MAAM,CAI5F;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAMvD;AAED,4DAA4D;AAC5D,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIlD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAO3D;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,SAAa,GAAG,MAAM,CAajF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAMhE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAGrE"}
@@ -0,0 +1,271 @@
1
+ /**
2
+ * The Vietnamese surface of the `blackhole chat` terminal.
3
+ *
4
+ * The desktop app owns the wording. Every string here is copied from its locale
5
+ * table (`blackhole-tauri/tools/locale/gbh-locale-vi.json`) so the terminal and
6
+ * the window name the same things the same way: "Phiên mới", "Hội thoại",
7
+ * "Luồng chạy", "Đang suy nghĩ…", "Toàn quyền", "Ghi trong workspace", "Chỉ đọc".
8
+ * Keeping the copy in one module also keeps the screen components about layout,
9
+ * not about language.
10
+ */
11
+ /** The fixed words the screen uses; interpolation lives in the helpers below. */
12
+ export const UI = Object.freeze({
13
+ brand: "Galaxy Blackhole",
14
+ preview: "Bản xem trước",
15
+ newSession: "Phiên mới",
16
+ conversation: "Hội thoại",
17
+ trajectory: "Luồng chạy",
18
+ workspace: "Không gian",
19
+ sessions: "Phiên",
20
+ plugins: "Plugin",
21
+ automations: "Tác vụ tự động",
22
+ more: "Thêm",
23
+ untitled: "Chưa đặt tên",
24
+ noSessions: "Chưa có phiên nào",
25
+ emptyHero: "Bước vào vùng chưa biết",
26
+ emptyBody: "Bắt đầu hội thoại mới với Galaxy Blackhole.",
27
+ emptyHint: "Mô tả việc bạn muốn làm, gõ / để mở lệnh, hoặc @ để chọn tệp.",
28
+ placeholder: "Gửi tin nhắn hoặc tạo tác vụ, / gọi lệnh, @ tệp hoặc hội thoại",
29
+ send: "Gửi tin nhắn",
30
+ stop: "Dừng tạo",
31
+ attach: "Thêm tệp đính kèm",
32
+ commandMenu: "Mở menu lệnh",
33
+ model: "Model",
34
+ reasoning: "Mức suy luận",
35
+ defaultEffort: "Mặc định",
36
+ accessMode: "Chế độ truy cập",
37
+ accessMenu: "Chọn chế độ quyền",
38
+ modelMenu: "Chọn model",
39
+ effortMenu: "Mức suy luận",
40
+ plusMenu: "Thêm",
41
+ chooseWorkspace: "Chọn workspace",
42
+ filePicker: "Chọn tệp",
43
+ workspacePicker: "Chọn workspace",
44
+ pickerHint: "↑/↓ · Enter · Esc",
45
+ noFiles: "Không có tệp khớp",
46
+ noWorkspaces: "Không có workspace nào khác",
47
+ effortApplied: "Mức suy luận",
48
+ effortFailed: "Không đổi được mức suy luận",
49
+ chipsHint: "Tab: chip",
50
+ chipsHintFocused: "←/→ · Enter mở",
51
+ loadingTrajectory: "Đang đọc Luồng chạy…",
52
+ thinking: "Đang suy nghĩ…",
53
+ thinkingDone: "Đã suy nghĩ",
54
+ reasoningCollapsed: "Suy nghĩ · đã thu gọn",
55
+ reasoningExpanded: "Suy nghĩ",
56
+ running: "Đang chạy",
57
+ idle: "Rảnh",
58
+ ready: "Sẵn sàng",
59
+ completed: "Hoàn thành",
60
+ stopped: "Đã dừng",
61
+ failed: "Thất bại",
62
+ error: "Có lỗi",
63
+ working: "Đã làm việc",
64
+ took: "Xong sau ",
65
+ steps: "bước",
66
+ tokens: "token",
67
+ stepCalls: "lệnh gọi công cụ",
68
+ connected: "Đã kết nối harness",
69
+ connecting: "Đang kết nối…",
70
+ disconnected: "Mất kết nối",
71
+ harness: "Harness",
72
+ waitingApproval: "Chờ phê duyệt",
73
+ planReview: "Kế hoạch chờ duyệt",
74
+ you: "Bạn",
75
+ assistant: "Trợ lý",
76
+ turn: "Lượt",
77
+ help: "Trợ giúp",
78
+ sessionInfo: "Thông tin phiên",
79
+ close: "Đóng",
80
+ menuHint: "↑/↓ chọn · Enter áp dụng · Esc đóng",
81
+ helpHint: "esc đóng",
82
+ showThinking: "hiện suy nghĩ",
83
+ hideThinking: "ẩn suy nghĩ",
84
+ showTools: "chi tiết công cụ",
85
+ hideTools: "ẩn chi tiết công cụ",
86
+ noMatches: "Không có kết quả",
87
+ loadingSessions: "Đang tải phiên…",
88
+ loadingHistory: "Đang mở phiên…",
89
+ historyFailed: "Không mở được phiên",
90
+ trajectoryFailed: "Không đọc được luồng chạy",
91
+ events: "sự kiện",
92
+ sessionsFailed: "Không tải được danh sách phiên",
93
+ catalogFailed: "Không tải được danh sách model",
94
+ accessFailed: "Không đổi được chế độ quyền",
95
+ modelFailed: "Không chọn được model",
96
+ permissionApplied: "Chế độ quyền",
97
+ modelApplied: "Model",
98
+ noModel: "Theo cấu hình",
99
+ noMessages: "Chưa có tin nhắn",
100
+ scrollHint: "PgUp/PgDn cuộn lịch sử",
101
+ sidebarHint: "↑/↓ chọn phiên · Enter mở · Tab về ô soạn",
102
+ composerHint: "Enter gửi · Esc dừng lượt · Tab chọn phiên · Ctrl+C thoát",
103
+ expandedHint: "Ctrl+L ẩn/hiện suy nghĩ · Ctrl+O chi tiết công cụ",
104
+ });
105
+ /** The three named presets the app ships; `auto` is appended when the host offers it. */
106
+ export const ACCESS_PRESETS = Object.freeze([
107
+ Object.freeze({ value: "read-only", label: "Chỉ đọc", description: "Chỉ đọc tệp; không thay đổi workspace." }),
108
+ Object.freeze({ value: "workspace-write", label: "Ghi trong workspace", description: "Được sửa tệp bên trong workspace của phiên." }),
109
+ Object.freeze({ value: "danger-full-access", label: "Toàn quyền", description: "Giảm bước xác nhận và cho agent làm nhiều thao tác trực tiếp hơn, gồm thao tác nhạy cảm, thay đổi tệp hoặc lệnh ngoài." }),
110
+ ]);
111
+ /** Presentation for the host's own `auto` option, which is experimental and not a shipped preset. */
112
+ const AUTO_PRESET = Object.freeze({ value: "auto", label: "Tự động duyệt", description: "Agent tự duyệt thao tác theo chính sách; chỉ có ở phiên hiện tại." });
113
+ /**
114
+ * The access presets to offer for a host catalog.
115
+ * @param values - values the host advertises, in contribution order.
116
+ * @returns the named presets plus `auto` when the host offers it.
117
+ */
118
+ export function accessPresets(values) {
119
+ if (values === undefined)
120
+ return ACCESS_PRESETS;
121
+ const known = new Map(ACCESS_PRESETS.map(preset => [preset.value, preset]));
122
+ const offered = values.map(value => known.get(value) ?? (value === AUTO_PRESET.value ? AUTO_PRESET : Object.freeze({ value, label: value, description: "" })));
123
+ return offered.length === 0 ? ACCESS_PRESETS : offered;
124
+ }
125
+ /**
126
+ * The Vietnamese label of one access value.
127
+ * @param value - preset key or `custom`.
128
+ * @returns the label the chip shows.
129
+ */
130
+ export function accessLabel(value) {
131
+ if (value === undefined)
132
+ return "Ghi trong workspace";
133
+ return ACCESS_PRESETS.find(preset => preset.value === value)?.label ?? (value === AUTO_PRESET.value ? AUTO_PRESET.label : value);
134
+ }
135
+ /** Human names for the tools the harness routes to the model. */
136
+ const TOOL_TITLES = Object.freeze({
137
+ read: "Đọc", read_file: "Đọc", readImage: "Đọc ảnh", read_image: "Đọc ảnh", view_image: "Đọc ảnh",
138
+ write: "Ghi", write_file: "Ghi", edit: "Sửa", edit_file: "Sửa", apply_patch: "Sửa tệp", str_replace_editor: "Sửa tệp",
139
+ bash: "Chạy lệnh Bash", run_command: "Chạy lệnh", powershell: "Chạy lệnh PowerShell", pwsh: "Chạy lệnh PowerShell",
140
+ grep: "Grep", search_text: "Tìm trong tệp", glob: "Glob", glob_files: "Tìm tệp", list_files: "Liệt kê tệp",
141
+ web_search: "Tìm kiếm web", webSearch: "Tìm kiếm web", web_fetch: "Tải web", webFetch: "Tải web",
142
+ todo_write: "Cập nhật tác vụ", update_plan: "Cập nhật kế hoạch", exit_plan_mode: "Duyệt kế hoạch",
143
+ ask_user_question: "Hỏi người dùng", task: "Tác vụ con", subagent: "Tạo subagent",
144
+ subagent_fork: "Tạo subagent kế thừa", subagent_codex: "Tạo subagent Codex",
145
+ run_code: "Chạy mã", workflow: "Chạy workflow", ralph: "Chạy vòng Ralph",
146
+ create_goal: "Tạo mục tiêu", update_goal: "Cập nhật mục tiêu", get_goal: "Xem mục tiêu",
147
+ spawn_teammate: "Tạo teammate", list_agents: "Liệt kê teammate", send_message: "Gửi tin nhắn",
148
+ wait_agent: "Chờ teammate", interrupt_agent: "Ngắt teammate", reset_teammate: "Làm mới teammate",
149
+ set_team_limits: "Đặt giới hạn team",
150
+ team_task_create: "Tạo việc nhóm", team_task_list: "Liệt kê việc nhóm", team_task_get: "Đọc việc nhóm",
151
+ team_task_update: "Cập nhật việc nhóm",
152
+ job_list: "Liệt kê tác vụ nền", list_jobs: "Liệt kê tác vụ nền", job_output: "Đọc đầu ra tác vụ", read_job: "Đọc đầu ra tác vụ",
153
+ job_kill: "Huỷ tác vụ nền", kill_job: "Huỷ tác vụ nền",
154
+ terminal_open: "Mở terminal", terminal_read: "Đọc terminal", terminal_list: "Liệt kê terminal",
155
+ terminal_send: "Gửi tín hiệu terminal", terminal_signal: "Gửi tín hiệu terminal", terminal_close: "Đóng terminal",
156
+ session_search: "Tìm phiên", session_trace: "Truy vết phiên",
157
+ session_event_read: "Đọc sự kiện", session_event_search: "Tìm sự kiện", session_event_trace: "Truy vết sự kiện",
158
+ working_directory: "Đổi thư mục làm việc", create_worktree: "Tạo worktree",
159
+ load_workspace_dependencies: "Tải phụ thuộc workspace",
160
+ present: "Trình bày tệp", skill: "Nạp kỹ năng",
161
+ plugin_manager: "Quản lý plugin", plugin_market: "Chợ plugin",
162
+ schedule_create: "Tạo nhắc hẹn", schedule_list: "Liệt kê nhắc hẹn", schedule_delete: "Xoá nhắc hẹn",
163
+ schedule_update: "Cập nhật nhắc hẹn", list_subagent_models: "Liệt kê model",
164
+ cordis_inspect_list: "Kiểm tra nhà cung cấp", cordis_inspect_query: "Truy vấn runtime",
165
+ read_mcp_resource: "Đọc tài nguyên MCP", list_mcp_resources: "Liệt kê tài nguyên MCP",
166
+ list_mcp_resource_templates: "Liệt kê mẫu tài nguyên MCP",
167
+ });
168
+ /** One tool's detail from its raw arguments, bounded to a single row. */
169
+ function toolDetail(args) {
170
+ const pick = ["description", "command", "path", "file_path", "filePath", "query", "pattern", "url", "goal", "message", "name", "target"];
171
+ for (const key of pick) {
172
+ const value = args[key];
173
+ if (typeof value === "string" && value.trim().length > 0)
174
+ return value.trim().replace(/\s+/gu, " ").slice(0, 72);
175
+ }
176
+ return "";
177
+ }
178
+ /**
179
+ * A tool call as one Vietnamese row: "Đọc · src/app.ts".
180
+ * @param name - the tool identifier the harness reported.
181
+ * @param args - its parsed arguments, when they parsed.
182
+ * @returns a one-line label safe for the transcript.
183
+ */
184
+ export function toolTitle(name, args = {}) {
185
+ const title = TOOL_TITLES[name] ?? name.replaceAll("_", " ");
186
+ const detail = toolDetail(args);
187
+ return detail.length === 0 ? title : title + " · " + detail;
188
+ }
189
+ /**
190
+ * Strip the harness's result envelope from a tool result before it reaches a row.
191
+ * A `read` answers with `<path>`, `<type>` and `<content>` blocks; the path is
192
+ * already the row's label, and the tags are transport, not prose.
193
+ * @param summary - the text the harness returned for the call.
194
+ */
195
+ export function cleanToolResult(summary) {
196
+ return summary
197
+ .replace(/<path>[\s\S]*?<\/path>\s*/u, "")
198
+ .replace(/<type>[^<]*<\/type>\s*/u, "")
199
+ .replace(/<\/?content>/gu, "")
200
+ .trim();
201
+ }
202
+ /** Whole tokens as the app writes them: 942, 1,2k, 3,4M. */
203
+ export function formatTokens(count) {
204
+ if (count < 1000)
205
+ return String(count);
206
+ if (count < 1_000_000)
207
+ return (count / 1000).toFixed(1).replace(".", ",") + "k";
208
+ return (count / 1_000_000).toFixed(1).replace(".", ",") + "M";
209
+ }
210
+ /**
211
+ * A wall time as the turn footer writes it: 320ms, 4,2s, 2m 05s.
212
+ * @param milliseconds - elapsed time.
213
+ */
214
+ export function formatDuration(milliseconds) {
215
+ if (milliseconds < 1000)
216
+ return String(Math.max(0, Math.round(milliseconds))) + "ms";
217
+ const seconds = milliseconds / 1000;
218
+ if (seconds < 60)
219
+ return (seconds < 10 ? seconds.toFixed(1).replace(".", ",") : String(Math.round(seconds))) + "s";
220
+ const minutes = Math.floor(seconds / 60);
221
+ const rest = Math.round(seconds % 60);
222
+ return String(minutes) + "m " + String(rest).padStart(2, "0") + "s";
223
+ }
224
+ /**
225
+ * When a session last moved, in the sidebar's own words ("4 giờ trước").
226
+ * @param updatedAt - epoch milliseconds from the harness.
227
+ * @param now - the reading clock.
228
+ */
229
+ export function formatAgo(updatedAt, now = Date.now()) {
230
+ if (updatedAt === undefined)
231
+ return "";
232
+ const elapsed = Math.max(0, now - updatedAt);
233
+ const minutes = Math.floor(elapsed / 60_000);
234
+ if (minutes < 1)
235
+ return "vừa xong";
236
+ if (minutes < 60)
237
+ return String(minutes) + " phút";
238
+ const hours = Math.floor(minutes / 60);
239
+ if (hours < 24)
240
+ return String(hours) + " giờ";
241
+ const days = Math.floor(hours / 24);
242
+ if (days < 30)
243
+ return String(days) + " ngày";
244
+ const months = Math.floor(days / 30);
245
+ if (months < 12)
246
+ return String(months) + " tháng";
247
+ return String(Math.floor(months / 12)) + " năm";
248
+ }
249
+ /**
250
+ * A workspace's sidebar name: its folder, never a full path.
251
+ * @param cwd - absolute directory the harness session owns.
252
+ * @param home - the user's home directory, when known.
253
+ */
254
+ export function workspaceName(cwd, home) {
255
+ const parts = cwd.split("/").filter(part => part.length > 0);
256
+ const last = parts.at(-1);
257
+ if (last === undefined)
258
+ return "Workspace mặc định";
259
+ if (home !== undefined && cwd === home)
260
+ return "Workspace mặc định";
261
+ return last;
262
+ }
263
+ /**
264
+ * A session row title, bounded to what a sidebar row can show.
265
+ * @param title - the harness's normalized title, or null before the first one lands.
266
+ */
267
+ export function sessionTitle(title) {
268
+ const text = (title ?? "").replace(/\s+/gu, " ").trim();
269
+ return text.length === 0 ? UI.untitled : text.slice(0, 64);
270
+ }
271
+ //# sourceMappingURL=labels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels.js","sourceRoot":"","sources":["../../src/harness/labels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,iFAAiF;AACjF,MAAM,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9B,KAAK,EAAE,kBAAkB;IACzB,OAAO,EAAE,eAAe;IACxB,UAAU,EAAE,WAAW;IACvB,YAAY,EAAE,WAAW;IACzB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,OAAO;IACjB,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,gBAAgB;IAC7B,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,cAAc;IACxB,UAAU,EAAE,mBAAmB;IAC/B,SAAS,EAAE,yBAAyB;IACpC,SAAS,EAAE,6CAA6C;IACxD,SAAS,EAAE,+DAA+D;IAC1E,WAAW,EAAE,gEAAgE;IAC7E,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,mBAAmB;IAC3B,WAAW,EAAE,cAAc;IAC3B,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,cAAc;IACzB,aAAa,EAAE,UAAU;IACzB,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,mBAAmB;IAC/B,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,cAAc;IAC1B,QAAQ,EAAE,MAAM;IAChB,eAAe,EAAE,gBAAgB;I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ProcessEnv;
4
+ readonly exists: (path: string) => boolean;
5
+ /** First line of `which <name>` (or `where`), or undefined. */
6
+ readonly which: (name: string) => string | undefined;
7
+ }
8
+ /** The real filesystem, PATH and environment. */
9
+ export declare function systemLocateEnvironment(): LocateEnvironment;
10
+ /**
11
+ * Root of the blackhole-tauri checkout that owns `apps/cli/src/main.ts`.
12
+ * @param environment - filesystem, PATH and environment facts.
13
+ * @returns the absolute checkout root, or undefined when this machine has none.
14
+ */
15
+ export declare function findTauriRoot(environment?: LocateEnvironment): string | undefined;
16
+ /**
17
+ * The Bun binary the harness needs: an override, PATH, or the default install location.
18
+ * @param environment - filesystem, PATH and environment facts.
19
+ * @returns the executable path, or undefined when Bun is not installed.
20
+ */
21
+ export declare function findBun(environment?: LocateEnvironment): string | undefined;
22
+ /** The `bh` launcher on PATH, when the desktop app installed one. */
23
+ export declare function findBh(environment?: LocateEnvironment): string | undefined;
24
+ //# sourceMappingURL=locate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locate.d.ts","sourceRoot":"","sources":["../../src/harness/locate.ts"],"names":[],"mappings":"AAcA,wCAAwC;AACxC,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,+DAA+D;IAC/D,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CACtD;AAED,iDAAiD;AACjD,wBAAgB,uBAAuB,IAAI,iBAAiB,CAgB3D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,WAAW,GAAE,iBAA6C,GAAG,MAAM,GAAG,SAAS,CAU5G;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,WAAW,GAAE,iBAA6C,GAAG,MAAM,GAAG,SAAS,CAOtG;AAED,qEAAqE;AACrE,wBAAgB,MAAM,CAAC,WAAW,GAAE,iBAA6C,GAAG,MAAM,GAAG,SAAS,CAErG"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Where the Galaxy Blackhole harness lives on this machine.
3
+ *
4
+ * The CLI is published independently from the desktop repository, so the
5
+ * launcher is found by convention (a sibling `blackhole-tauri` checkout), by an
6
+ * explicit override (`GBH_TAURI_ROOT`), or on PATH. Every lookup is injectable,
7
+ * which keeps the resolver testable without a checkout.
8
+ */
9
+ import { execFileSync } from "node:child_process";
10
+ import { existsSync } from "node:fs";
11
+ import { homedir } from "node:os";
12
+ import { join, resolve } from "node:path";
13
+ import { fileURLToPath } from "node:url";
14
+ /** The real filesystem, PATH and environment. */
15
+ export function systemLocateEnvironment() {
16
+ return {
17
+ env: process.env,
18
+ exists: existsSync,
19
+ which: name => {
20
+ try {
21
+ const out = execFileSync(process.platform === "win32" ? "where" : "which", [name], {
22
+ encoding: "utf8",
23
+ stdio: ["ignore", "pipe", "ignore"],
24
+ }).trim();
25
+ return out.length === 0 ? undefined : ((out.split(/\r?\n/u)[0] ?? "").trim() || undefined);
26
+ }
27
+ catch {
28
+ return undefined;
29
+ }
30
+ },
31
+ };
32
+ }
33
+ /**
34
+ * Root of the blackhole-tauri checkout that owns `apps/cli/src/main.ts`.
35
+ * @param environment - filesystem, PATH and environment facts.
36
+ * @returns the absolute checkout root, or undefined when this machine has none.
37
+ */
38
+ export function findTauriRoot(environment = systemLocateEnvironment()) {
39
+ const overridden = (environment.env.GBH_TAURI_ROOT ?? "").trim();
40
+ if (overridden.length > 0)
41
+ return resolve(overridden);
42
+ const packageRoot = fileURLToPath(new URL("../../", import.meta.url));
43
+ const candidates = [
44
+ resolve(packageRoot, "..", "blackhole-tauri"),
45
+ resolve(packageRoot, "..", "..", "blackhole-tauri"),
46
+ join(homedir(), "Desktop", "Project", "galaxy", "galaxy-blackhole", "blackhole-tauri"),
47
+ ];
48
+ return candidates.find(candidate => environment.exists(join(candidate, "apps", "cli", "src", "main.ts")));
49
+ }
50
+ /**
51
+ * The Bun binary the harness needs: an override, PATH, or the default install location.
52
+ * @param environment - filesystem, PATH and environment facts.
53
+ * @returns the executable path, or undefined when Bun is not installed.
54
+ */
55
+ export function findBun(environment = systemLocateEnvironment()) {
56
+ const overridden = (environment.env.GBH_BUN ?? environment.env.BUN_BIN ?? "").trim();
57
+ if (overridden.length > 0)
58
+ return overridden;
59
+ const onPath = environment.which("bun");
60
+ if (onPath !== undefined)
61
+ return onPath;
62
+ const home = join(homedir(), ".bun", "bin", "bun");
63
+ return environment.exists(home) ? home : undefined;
64
+ }
65
+ /** The `bh` launcher on PATH, when the desktop app installed one. */
66
+ export function findBh(environment = systemLocateEnvironment()) {
67
+ return environment.which("bh");
68
+ }
69
+ //# sourceMappingURL=locate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locate.js","sourceRoot":"","sources":["../../src/harness/locate.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAUzC,iDAAiD;AACjD,MAAM,UAAU,uBAAuB;IACrC,OAAO;QACL,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE,IAAI,CAAC,EAAE;YACZ,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE;oBACjF,QAAQ,EAAE,MAAM;oBAChB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE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,uBAAuB,EAAE;IAChF,MAAM,UAAU,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,IAAI,WAAW,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACrF,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,UAAU,CAAC;IAC7C,MAAM,MAAM,GAAG,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACxC,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC;IACxC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACnD,OAAO,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AACrD,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,MAAM,CAAC,cAAiC,uBAAuB,EAAE;IAC/E,OAAO,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACjC,CAAC"}
@@ -0,0 +1,74 @@
1
+ import type { ModelOption } from "./parts.js";
2
+ import { type AgentPresetOption } from "./preset.js";
3
+ /** Which dropdown is open. */
4
+ export type MenuKind = "access" | "model" | "effort" | "plus" | "mode";
5
+ /** One row of any dropdown. */
6
+ export interface MenuOption {
7
+ /** Wire value: a preset key, provider/model, an effort id, or a chip action. */
8
+ readonly value: string;
9
+ readonly label: string;
10
+ readonly description?: string;
11
+ /** Right-hand note, such as the model id or "đang dùng". */
12
+ readonly hint?: string;
13
+ }
14
+ /** The open dropdown and where the cursor is. */
15
+ export interface MenuState {
16
+ readonly kind: MenuKind;
17
+ /** Highlighted row of this menu. */
18
+ readonly index: number;
19
+ /** For the effort submenu: which model row opened it. */
20
+ readonly modelIndex?: number;
21
+ }
22
+ /** The value the effort submenu uses for "no explicit effort". */
23
+ export declare const DEFAULT_EFFORT_VALUE = "";
24
+ /**
25
+ * The Vietnamese name of one effort id.
26
+ * @param id - the host's effort id, e.g. "high".
27
+ * @param fallback - the host's own name for ids this table does not know.
28
+ * @returns the label the chip and the menu show.
29
+ */
30
+ export declare function effortLabel(id: string | undefined, fallback?: string): string;
31
+ /**
32
+ * The rows of the reasoning submenu for one model: "Mặc định" then the host's efforts.
33
+ * @param model - the model the catalog described, when one is selected.
34
+ * @returns the rows, "Mặc định" first.
35
+ */
36
+ export declare function effortOptions(model: ModelOption | undefined): readonly MenuOption[];
37
+ /**
38
+ * The rows of the "Thêm" menu: both entries really act.
39
+ * @returns the rows, in the order the composer shows them.
40
+ */
41
+ export declare function plusOptions(): readonly MenuOption[];
42
+ /**
43
+ * The rows of any menu, as the panel renders them.
44
+ * @param state - the open menu.
45
+ * @param accessOptions - preset rows from the permission catalog.
46
+ * @param models - model rows from the model catalog.
47
+ * @param currentAccess - preset in force, marked as in use.
48
+ * @param currentModel - provider/model in force, marked as in use.
49
+ * @param presets - agent-mode rows from `agentPresets/list`, the mode menu's list.
50
+ * @param currentPreset - agent mode the session records, marked as in use.
51
+ * @returns the rows for the open menu; empty when no menu is open.
52
+ */
53
+ export declare function menuRows(state: MenuState | undefined, accessOptions: readonly {
54
+ readonly value: string;
55
+ readonly label: string;
56
+ readonly description?: string;
57
+ }[], models: readonly ModelOption[], currentAccess: string | undefined, currentModel: string | undefined, presets?: readonly AgentPresetOption[], currentPreset?: string): readonly MenuOption[];
58
+ /**
59
+ * The heading of one menu.
60
+ * @param kind - the open menu.
61
+ * @returns the title line.
62
+ */
63
+ export declare function menuTitle(kind: MenuKind): string;
64
+ /**
65
+ * The value the panel marks with a check for the open menu.
66
+ * @param kind - the open menu.
67
+ * @param currentAccess - preset in force.
68
+ * @param currentModel - provider/model in force.
69
+ * @param effort - effort in force, empty for "Mặc định".
70
+ * @param currentPreset - agent mode the session records.
71
+ * @returns the checked row value, or undefined when nothing is in force yet.
72
+ */
73
+ export declare function menuCurrent(kind: MenuKind, currentAccess: string | undefined, currentModel: string | undefined, effort: string | undefined, currentPreset?: string): string | undefined;
74
+ //# sourceMappingURL=menus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menus.d.ts","sourceRoot":"","sources":["../../src/harness/menus.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAmC,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEtF,8BAA8B;AAC9B,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvE,+BAA+B;AAC/B,MAAM,WAAW,UAAU;IACzB,gFAAgF;IAChF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iDAAiD;AACjD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,oCAAoC;IACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,kEAAkE;AAClE,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAcvC;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAG7E;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,GAAG,SAAS,UAAU,EAAE,CAgBnF;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,SAAS,UAAU,EAAE,CAKnD;AAED;;;;;;;;;;GAUG;AACH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