codexmate 0.0.38 → 0.0.40

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 (43) hide show
  1. package/cli/builtin-proxy.js +626 -207
  2. package/cli/config-bootstrap.js +6 -1
  3. package/cli/openai-bridge.js +541 -210
  4. package/cli.js +189 -4
  5. package/package.json +1 -1
  6. package/plugins/prompt-templates/computed.mjs +61 -3
  7. package/plugins/prompt-templates/manifest.mjs +3 -0
  8. package/web-ui/app.js +14 -3
  9. package/web-ui/modules/app.computed.main-tabs.mjs +39 -30
  10. package/web-ui/modules/app.methods.claude-config.mjs +111 -9
  11. package/web-ui/modules/app.methods.index.mjs +2 -0
  12. package/web-ui/modules/app.methods.openclaw-editing.mjs +48 -0
  13. package/web-ui/modules/app.methods.openclaw-persist.mjs +13 -7
  14. package/web-ui/modules/app.methods.providers.mjs +36 -10
  15. package/web-ui/modules/app.methods.runtime.mjs +76 -1
  16. package/web-ui/modules/app.methods.startup-claude.mjs +7 -0
  17. package/web-ui/modules/app.methods.tool-config-permissions.mjs +87 -0
  18. package/web-ui/modules/config-mode.computed.mjs +3 -3
  19. package/web-ui/modules/i18n/locales/en.mjs +1140 -0
  20. package/web-ui/modules/i18n/locales/ja.mjs +1130 -0
  21. package/web-ui/modules/i18n/locales/vi.mjs +239 -0
  22. package/web-ui/modules/i18n/locales/zh.mjs +1143 -0
  23. package/web-ui/modules/i18n.dict.mjs +9 -3195
  24. package/web-ui/modules/i18n.mjs +65 -16
  25. package/web-ui/partials/index/layout-header.html +16 -46
  26. package/web-ui/partials/index/modal-openclaw-config.html +135 -71
  27. package/web-ui/partials/index/modal-webhook.html +8 -8
  28. package/web-ui/partials/index/modals-basic.html +56 -16
  29. package/web-ui/partials/index/panel-config-claude.html +51 -21
  30. package/web-ui/partials/index/panel-config-codex.html +34 -5
  31. package/web-ui/partials/index/panel-config-openclaw.html +70 -64
  32. package/web-ui/partials/index/panel-dashboard.html +62 -77
  33. package/web-ui/partials/index/panel-settings.html +28 -7
  34. package/web-ui/partials/index/panel-trash.html +14 -14
  35. package/web-ui/res/web-ui-render.precompiled.js +1783 -1386
  36. package/web-ui/styles/controls-forms.css +99 -0
  37. package/web-ui/styles/dashboard.css +46 -14
  38. package/web-ui/styles/layout-shell.css +45 -0
  39. package/web-ui/styles/navigation-panels.css +3 -3
  40. package/web-ui/styles/openclaw-structured.css +383 -33
  41. package/web-ui/styles/responsive.css +68 -0
  42. package/web-ui/styles/sessions-usage.css +105 -9
  43. package/web-ui/styles/settings-panel.css +4 -0
@@ -0,0 +1,239 @@
1
+ const vi = Object.freeze({
2
+ 'plugins.catalog.promptTemplates.title': 'Mẫu prompt',
3
+ 'plugins.catalog.promptTemplates.description': 'Công cụ prompt theo mẫu, hỗ trợ biến, sao chép và xuất.',
4
+ 'plugins.status.standard': 'tiêu chuẩn',
5
+ 'plugins.builtin.commentPolish.name': 'Chỉnh chú thích mã',
6
+ 'plugins.builtin.commentPolish.desc': 'Chỉnh nhẹ các chú thích mã sau {{code}}',
7
+ 'plugins.builtin.commentPolish.line1': 'Chỉnh nhẹ các chú thích mã sau',
8
+ 'plugins.builtin.ruleAck.name': 'Xác nhận quy tắc',
9
+ 'plugins.builtin.ruleAck.desc': 'Hãy làm theo【{{rule}}】, nhận được thì phản hồi',
10
+ 'plugins.builtin.ruleAck.line1': 'Hãy làm theo【{{rule}}】, nhận được thì phản hồi',
11
+ // Global
12
+ 'lang.zh': 'Tiếng Trung',
13
+ 'lang.en': 'Tiếng Anh',
14
+ 'lang.vi': 'Tiếng Việt',
15
+ 'lang.label': 'Ngôn ngữ',
16
+ 'nav.topTabs.aria': 'Điều hướng',
17
+
18
+ // Common
19
+ 'common.all': 'Tất cả',
20
+ 'common.copy': 'Sao chép',
21
+ 'common.paste': 'Dán',
22
+ 'common.edit': 'Chỉnh sửa',
23
+ 'common.install': 'Cài đặt',
24
+ 'common.update': 'Cập nhật',
25
+ 'common.uninstall': 'Gỡ cài đặt',
26
+ 'common.official': 'Chính thức',
27
+ 'common.custom': 'Tùy chỉnh',
28
+ 'common.rules': 'Quy tắc',
29
+ 'common.troubleshooting': 'Khắc phục sự cố',
30
+ 'common.command': 'Lệnh',
31
+ 'common.mirror': 'Nguồn',
32
+ 'common.packageManager': 'Trình quản lý gói',
33
+ 'common.action': 'Thao tác',
34
+ 'common.targets': 'Mục tiêu',
35
+ 'common.currentPm': 'Trình quản lý gói',
36
+ 'common.currentAction': 'Thao tác hiện tại',
37
+ 'common.mirrorActive': 'Nguồn',
38
+ 'common.defaultOfficial': 'Mặc định',
39
+ 'common.cancel': 'Hủy',
40
+ 'common.confirm': 'Xác nhận',
41
+ 'common.add': 'Thêm',
42
+ 'common.save': 'Lưu',
43
+ 'common.saveApply': 'Lưu & áp dụng',
44
+ 'common.close': 'Đóng',
45
+ 'common.delete': 'Xóa',
46
+ 'common.clear': 'Xóa',
47
+ 'common.show': 'Hiện',
48
+ 'common.hide': 'Ẩn',
49
+ 'common.detail': 'Chi tiết',
50
+ 'common.refresh': 'Làm mới',
51
+ 'common.refreshing': 'Đang làm mới...',
52
+ 'common.loading': 'Đang tải...',
53
+ 'common.saving': 'Đang lưu...',
54
+ 'common.sending': 'Đang gửi...',
55
+ 'common.scanning': 'Đang quét...',
56
+ 'common.export': 'Xuất',
57
+ 'common.import': 'Nhập',
58
+ 'common.apply': 'Áp dụng',
59
+ 'common.applying': 'Đang áp dụng...',
60
+ 'common.confirming': 'Đang xác nhận...',
61
+ 'common.writeToEditor': 'Ghi vào trình soạn thảo',
62
+ 'common.refreshFromText': 'Làm mới từ văn bản',
63
+ 'common.backToEdit': 'Quay lại chỉnh sửa',
64
+ 'common.selectAll': 'Chọn tất cả',
65
+ 'common.unselectAll': 'Bỏ chọn tất cả',
66
+ 'common.resetFilters': 'Đặt lại bộ lọc',
67
+ 'common.notEditable': 'Không thể chỉnh sửa',
68
+ 'common.notDeletable': 'Không thể xóa',
69
+ 'common.notLoaded': 'Chưa tải',
70
+ 'common.exists': 'Đã tồn tại',
71
+ 'common.notExistsWillCreateOnApply': 'Không tồn tại. Sẽ được tạo khi áp dụng.',
72
+ 'common.notExistsWillCreateOnSave': 'Không tồn tại. Sẽ được tạo khi lưu.',
73
+ 'common.none': 'Không có',
74
+ 'common.notSelected': 'Chưa chọn',
75
+
76
+ // Roles / labels
77
+ 'role.you': 'Bạn',
78
+ 'role.provider': 'Nhà cung cấp',
79
+ 'label.model': 'Mẫu:',
80
+
81
+ // Top tabs
82
+ 'tab.dashboard': 'Tổng quan',
83
+ 'tab.docs': 'Tài liệu',
84
+ 'tab.config': 'Cấu hình',
85
+ 'tab.sessions': 'Phiên',
86
+ 'tab.usage': 'Sử dụng',
87
+ 'tab.orchestration': 'Tác vụ',
88
+ 'tab.market': 'Skills',
89
+ 'tab.plugins': 'Plugin',
90
+ 'tab.settings': 'Cài đặt',
91
+
92
+ // Side rail section titles
93
+ 'side.overview': 'Tổng quan',
94
+ 'side.docs': 'Tài liệu',
95
+ 'side.config': 'Cấu hình',
96
+ 'side.sessions': 'Phiên',
97
+ 'side.plugins': 'Plugin',
98
+ 'side.system': 'Hệ thống',
99
+ 'side.orchestration': 'Tác vụ',
100
+ 'side.skills': 'Skills',
101
+
102
+ // Side rail items
103
+ 'side.overview.doctor': 'Doctor',
104
+ 'side.overview.doctor.meta': 'Tổng quan / Chẩn đoán',
105
+ 'side.docs.cliInstall': 'Cài CLI',
106
+ 'side.docs.cliInstall.meta': 'Cài đặt / Cập nhật / Gỡ',
107
+ 'side.config.codex': 'Codex',
108
+ 'side.config.codex.meta': 'Provider / Model',
109
+ 'side.config.claude': 'Claude Code',
110
+ 'side.config.claude.meta': 'Cài đặt Claude',
111
+ 'side.config.openclaw': 'OpenClaw',
112
+ 'side.config.openclaw.meta': 'JSON5 / AGENTS',
113
+ 'side.sessions.browser': 'Trình duyệt phiên',
114
+ 'side.sessions.browser.meta': 'Duyệt / Xuất / Dọn dẹp',
115
+ 'side.plugins.tools': 'Công cụ prompt',
116
+ 'side.plugins.tools.meta': 'Mẫu / Biến',
117
+ 'side.system.settings': 'Cài đặt runtime',
118
+ 'side.system.settings.meta': 'Dữ liệu / Sao lưu',
119
+ 'side.newTab': 'Tab mới',
120
+ 'config.localBridge.enabledCount': 'Đã bật {enabled}/{total}',
121
+ 'toolConfig.allow': 'Cho phép ghi',
122
+ 'toolConfig.viewOnly': 'Chỉ đọc',
123
+ 'toolConfig.enableWrite': 'Bật ghi',
124
+ 'toolConfig.allowToast': 'Đã bật ghi',
125
+ 'toolConfig.viewOnlyToast': 'Đã chuyển về chỉ đọc',
126
+ 'toolConfig.saveFailed': 'Không lưu được công tắc ghi',
127
+ 'toolConfig.confirmTitle': 'Bật quyền ghi',
128
+ 'toolConfig.confirmAllow': 'Bật ghi',
129
+ 'toolConfig.codex.title': 'Ghi provider Codex',
130
+ 'toolConfig.codex.desc': 'Provider Codex mặc định chỉ đọc; bật công tắc này trước khi ghi cấu hình ~/.codex.',
131
+ 'toolConfig.codex.lockedTitle': 'Provider Codex đang chỉ đọc',
132
+ 'toolConfig.codex.lockedDesc': 'Cấu hình tài khoản Codex sẽ không bị sửa. Hãy bật ghi trong tab này để thêm, chuyển, sửa hoặc xóa provider.',
133
+ 'toolConfig.codex.confirmMessage': 'Sau khi bật, thao tác provider trong tab Codex có thể ghi ~/.codex/config.toml, auth hoặc cấu hình model.',
134
+ 'toolConfig.claude.title': 'Ghi provider Claude',
135
+ 'toolConfig.claude.desc': 'Provider Claude mặc định chỉ đọc; bật công tắc này trước khi ghi Claude settings.',
136
+ 'toolConfig.claude.lockedTitle': 'Provider Claude đang chỉ đọc',
137
+ 'toolConfig.claude.lockedDesc': 'Cấu hình Claude sẽ không bị sửa. Hãy bật ghi trong tab này để thêm, áp dụng, sửa hoặc xóa provider.',
138
+ 'toolConfig.claude.confirmMessage': 'Sau khi bật, thao tác áp dụng trong tab Claude có thể ghi ~/.claude/settings.json và cấu hình Claude liên quan.',
139
+ 'side.usage.meta': 'Thống kê / Xu hướng',
140
+ 'side.orchestration.meta': 'Kế hoạch / Hàng đợi / Runs',
141
+
142
+ // Header titles
143
+ 'kicker.dashboard': 'Doctor',
144
+ 'kicker.config': 'Cấu hình',
145
+ 'kicker.sessions': 'Phiên',
146
+ 'kicker.usage': 'Sử dụng',
147
+ 'kicker.orchestration': 'Tác vụ',
148
+ 'kicker.market': 'Skills',
149
+ 'kicker.plugins': 'Plugin',
150
+ 'kicker.docs': 'Tài liệu',
151
+ 'kicker.settings': 'Cài đặt',
152
+ 'kicker.trash': 'Thùng rác',
153
+
154
+ 'title.dashboard': 'Dashboard / Doctor',
155
+ 'title.config': 'Bảng điều khiển cấu hình cục bộ',
156
+ 'title.sessions': 'Phiên & Xuất',
157
+ 'title.usage': 'Thống kê & Xu hướng',
158
+ 'title.orchestration': 'Điều phối tác vụ',
159
+ 'title.market': 'Cài đặt & Đồng bộ Skills',
160
+ 'title.plugins': 'Plugin & Mẫu',
161
+ 'title.docs': 'Cài CLI & Tài liệu',
162
+ 'title.settings': 'Hệ thống & Dữ liệu',
163
+
164
+ 'subtitle.dashboard': 'Tổng hợp trạng thái và chẩn đoán.',
165
+ 'subtitle.config': 'Quản lý cấu hình và mô hình cục bộ.',
166
+ 'subtitle.sessions': 'Duyệt và xuất các phiên.',
167
+ 'subtitle.usage': 'Xem sử dụng trong 7/30 ngày gần đây.',
168
+ 'subtitle.orchestration': 'Lập kế hoạch, xếp hàng, chạy và xem lại tác vụ cục bộ.',
169
+ 'subtitle.market': 'Quản lý skills cục bộ.',
170
+ 'subtitle.plugins': 'Quản lý plugin và mẫu tái sử dụng.',
171
+ 'subtitle.docs': 'Lệnh cài CLI và hướng dẫn.',
172
+ 'subtitle.settings': 'Quản lý tải xuống, thư mục và dữ liệu.',
173
+
174
+
175
+ // Task orchestration readiness
176
+ // Trash
177
+ 'settings.trash.empty': 'Thùng rác trống',
178
+ 'settings.trash.emptyHint': 'Không có phiên đã xóa trong thời gian lưu {days} ngày.',
179
+ 'settings.trash.retentionUnit': 'ngày',
180
+
181
+ 'orchestration.readiness.target.label': 'Mục tiêu',
182
+ 'orchestration.readiness.target.done': 'Đã viết mục tiêu',
183
+ 'orchestration.readiness.target.missing': 'Chưa viết mục tiêu',
184
+ 'orchestration.readiness.engine.label': 'Chiến lược chạy',
185
+ 'orchestration.readiness.engine.codex': 'Dùng Codex để lập kế hoạch node',
186
+ 'orchestration.readiness.workflow.done': 'Đã chọn {count} Workflow',
187
+ 'orchestration.readiness.workflow.missing': 'Chưa chọn Workflow ID',
188
+ 'orchestration.readiness.scope.label': 'Phạm vi',
189
+ 'orchestration.readiness.scope.done': 'Đã bổ sung ghi chú',
190
+ 'orchestration.readiness.scope.writeHint': 'Nên bổ sung ghi chú trước khi ghi',
191
+ 'orchestration.readiness.scope.readonlyHint': 'Đang ở chế độ chỉ đọc, có thể thử ngay',
192
+ 'orchestration.readiness.preview.label': 'Xem trước',
193
+ 'orchestration.readiness.preview.missing': 'Chưa tạo kế hoạch',
194
+ 'orchestration.readiness.preview.blocked': 'Có {count} mục chặn',
195
+ 'orchestration.readiness.preview.ready': 'Kế hoạch sẵn sàng, {count} node',
196
+ 'orchestration.readiness.empty.title': 'Viết mục tiêu trước',
197
+ 'orchestration.readiness.empty.summary': 'Mô tả rõ kết quả cần đạt, rồi để bộ điều phối tách thành các node.',
198
+ 'orchestration.readiness.workflow.title': 'Thiếu Workflow',
199
+ 'orchestration.readiness.workflow.summary': 'Bạn đã chọn chế độ Workflow nhưng chưa chỉ định quy trình tái sử dụng.',
200
+ 'orchestration.readiness.preview.title': 'Nên xem trước trước',
201
+ 'orchestration.readiness.preview.summary': 'Bản nháp đã đủ hình hài; hãy tạo kế hoạch để kiểm tra node và phụ thuộc.',
202
+ 'orchestration.readiness.blocked.title': 'Bản xem trước có mục chặn',
203
+ 'orchestration.readiness.blocked.summary': 'Kế hoạch hiện còn {count} mục chặn, hãy xử lý chúng trước.',
204
+ 'orchestration.readiness.warn.title': 'Có thể chạy nhưng có cảnh báo',
205
+ 'orchestration.readiness.warn.summary': 'Kế hoạch đã được tạo, nhưng còn {count} cảnh báo nên xem trước.',
206
+ 'orchestration.readiness.dryRun.title': 'Phù hợp để chạy thử',
207
+ 'orchestration.readiness.dryRun.summary': 'Bây giờ có thể chạy thử an toàn rồi xem kết quả trước khi chạy thật.',
208
+ 'orchestration.readiness.ready.title': 'Sẵn sàng chạy',
209
+ 'orchestration.readiness.ready.withFollowUps': 'Mục tiêu chính và hành động tiếp theo đã sẵn sàng; có thể chạy ngay hoặc đưa vào hàng đợi.',
210
+ 'orchestration.readiness.ready.summary': 'Mục tiêu chính đã đủ rõ; có thể chạy ngay hoặc đưa vào hàng đợi.',
211
+
212
+ // Settings panel
213
+ 'settings.language.sideLabel': 'Ngôn ngữ: {language}',
214
+ 'settings.language.title': 'Ngôn ngữ',
215
+ 'settings.language.meta': 'Chọn ngôn ngữ hiển thị cho Web UI',
216
+ 'settings.language.label': 'Ngôn ngữ giao diện',
217
+ 'settings.language.hint': 'Tùy chọn ngôn ngữ được lưu trong trình duyệt này.',
218
+
219
+ 'settings.webhook.title': 'Webhook',
220
+ 'settings.webhook.meta': 'Gửi thông báo sự kiện tới dịch vụ bên ngoài',
221
+ 'settings.webhook.enabled': 'Đã bật',
222
+ 'settings.webhook.disabled': 'Chưa bật',
223
+ 'settings.webhook.enable': 'Bật',
224
+ 'settings.webhook.edit': 'Sửa',
225
+ 'settings.webhook.configure': 'Cấu hình',
226
+ 'settings.webhook.modalTitle': 'Cài đặt Webhook',
227
+ 'settings.webhook.enabledLabel': 'Trạng thái',
228
+ 'settings.webhook.enableToggle': 'Bật webhook',
229
+ 'settings.webhook.urlLabel': 'Webhook URL',
230
+ 'settings.webhook.eventsLabel': 'Sự kiện',
231
+
232
+ // Dashboard / doctor
233
+ 'dashboard.doctor.title': 'Doctor',
234
+ 'dashboard.doctor.runChecks': 'Chạy kiểm tra',
235
+ 'dashboard.doctor.checking': 'Đang kiểm tra...',
236
+ 'dashboard.doctor.export': 'Xuất báo cáo'
237
+ });
238
+
239
+ export { vi };