@aivin-labs/cli 1.0.50 → 1.0.57

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.
@@ -1,132 +1,138 @@
1
- /** Chữ trên menu khay hệ thống (Aivin.exe) — ghi vào launch.cfg theo ngôn ngữ máy (mascotLang). */
2
- export const TRAY_STRINGS = Object.freeze({
3
- vi: {
4
- running: 'Đang chạy — sẵn sàng nhận việc',
5
- paused: 'Đang tạm dừng — từ chối mọi việc từ xa',
6
- stopped: 'Đang không chạy',
7
- notPaired: 'Chưa kết nối với Aivin',
8
- connecting: 'Đang kết nối…',
9
- open: 'Mở Aivin',
10
- quickChat: 'Quick chat',
11
- quickVoice: 'Quick voice',
12
- terminal: 'Mở Terminal',
13
- server: 'Máy chủ',
14
- serverCloud: 'Cloud',
15
- serverVn: 'VN',
16
- serverLocal: 'Local',
17
- serverConfirm: 'Đổi máy chủ sang {server}? Việc đang chạy trên máy này sẽ bị dừng.',
18
- connect: 'Đăng nhập để kết nối…',
19
- pause: 'Tạm dừng nhận việc',
20
- resume: 'Tiếp tục nhận việc',
21
- startup: 'Khởi động cùng Windows',
22
- mascot: 'Linh vật trên màn hình',
23
- mascotShow: 'Hiện linh vật',
24
- mascotHide: 'Ẩn linh vật',
25
- version: 'Phiên bản: {version}',
26
- updateUpToDate: 'Đã là bản mới nhất',
27
- updateAvailable: 'Có bản mới ({version}) — Bấm cập nhật',
28
- updateChecking: 'Đang kiểm tra cập nhật...',
29
- updateCheckNow: 'Kiểm tra cập nhật',
30
- updateUpdating: 'Đang tải bản cập nhật...',
31
- quit: 'Thoát Aivin',
32
- firstRun: 'Aivin đang chạy ở khay hệ thống — bấm biểu tượng để mở.',
33
- connectHint: 'Aivin đang ở khay hệ thống — bấm biểu tượng rồi chọn “Đăng nhập để kết nối”.',
34
- connected: 'Đã kết nối máy này với Aivin.',
35
- pairFailed: 'Không kết nối được — mã sai hoặc đã hết hạn. Tạo mã mới trong Aivin rồi thử lại.',
36
- pairPrompt: 'Nhập mã kết nối từ Aivin (khung chat → Browser ▾ → Thêm máy tính này):',
37
- pairOk: 'Kết nối',
38
- pairCancel: 'Huỷ',
39
- connectCode: 'Tôi có mã kết nối',
40
- connectBrowserHint: 'Đang mở trang đăng nhập. Sau khi bạn cấp quyền, Aivin sẽ tự kết nối máy tính này.',
41
- connectPairing: 'Đăng nhập thành công. Đang liên kết máy tính…',
42
- connectFailed: 'Chưa kết nối được. Hãy thử lại hoặc dùng mã kết nối.',
43
- connectDone: 'Đã kết nối máy tính này với Aivin Cloud.',
44
- shortcut: 'Aivin — cho các agent Aivin làm việc trên máy tính này',
45
- openWith: 'Mở bằng AIVIN Office Suite',
46
- share: 'Gửi cho AIVIN Bot',
47
- workHere: 'Làm việc ở đây với AIVIN Bot',
48
- uninstallPrompt: 'Gỡ AIVIN Bot khỏi máy này?\n\nỨng dụng, lệnh aivin và kết nối của máy với tài khoản sẽ bị xoá.\nCó xoá luôn dữ liệu (ghi nhớ của bot, bản sao tệp để hoàn tác, phiên đăng nhập trình duyệt)? Xoá rồi không lấy lại được.\n\nYes = gỡ và xoá dữ liệu\nNo = gỡ, giữ dữ liệu\nCancel = không gỡ',
49
- uninstallFailed: 'Không gỡ tự động được. Mở Terminal và chạy: aivin uninstall',
50
- stopCast: 'Ngưng kết nối cast ({device})',
51
- castDisconnected: 'Đã ngưng kết nối từ {device}. Thiết bị này sẽ cần xác nhận nếu muốn kết nối lại.',
52
- fileType: 'Tài liệu mở bằng AIVIN Office Suite',
53
- },
54
- en: {
55
- running: 'Running — ready for work',
56
- paused: 'Paused — refusing all remote work',
57
- stopped: 'Not running',
58
- notPaired: 'Not connected to Aivin',
59
- connecting: 'Connecting…',
60
- open: 'Open Aivin',
61
- quickChat: 'Quick chat',
62
- quickVoice: 'Quick voice',
63
- terminal: 'Open Terminal',
64
- server: 'Server',
65
- serverCloud: 'Cloud',
66
- serverVn: 'VN',
67
- serverLocal: 'Local',
68
- serverConfirm: 'Switch to {server}? Current work on this computer will be stopped.',
69
- connect: 'Sign in to connect…',
70
- pause: 'Pause work',
71
- resume: 'Resume work',
72
- startup: 'Start with Windows',
73
- mascot: 'Desktop mascot',
74
- mascotShow: 'Show mascot',
75
- mascotHide: 'Hide mascot',
76
- version: 'Version: {version}',
77
- updateUpToDate: 'Up to date',
78
- updateAvailable: 'New version available ({version}) — Click to update',
79
- updateChecking: 'Checking for updates...',
80
- updateCheckNow: 'Check for updates',
81
- updateUpdating: 'Downloading update...',
82
- quit: 'Quit Aivin',
83
- firstRun: 'Aivin is running in the system tray — click the icon to open it.',
84
- connectHint: 'Aivin is in the system tray — click the icon, then choose “Sign in to connect”.',
85
- connected: 'This computer is now connected to Aivin.',
86
- pairFailed: 'Could not connect — the code is wrong or expired. Create a new code in Aivin and try again.',
87
- pairPrompt: 'Enter the connect code from Aivin (chat box → Browser ▾ → Add this computer):',
88
- pairOk: 'Connect',
89
- pairCancel: 'Cancel',
90
- connectCode: 'I have a connect code',
91
- connectBrowserHint: 'Opening sign-in. Aivin will connect this computer after you grant access.',
92
- connectPairing: 'Signed in. Linking this computer…',
93
- connectFailed: 'Could not connect. Try again or use a connect code.',
94
- connectDone: 'This computer is connected to Aivin Cloud.',
95
- shortcut: 'Aivin — lets your Aivin agents work on this computer',
96
- openWith: 'Open with AIVIN Office Suite',
97
- share: 'Share with AIVIN Bot',
98
- workHere: 'Work here with AIVIN Bot',
99
- uninstallPrompt: 'Remove AIVIN Bot from this computer?\n\nThe app, the aivin command and this computer\'s connection to your account will be removed.\nAlso delete your data (the bot\'s memory, file copies kept for undo, browser sign-ins)? This cannot be undone.\n\nYes = remove and delete data\nNo = remove, keep data\nCancel = do not remove',
100
- uninstallFailed: 'Could not remove it automatically. Open a terminal and run: aivin uninstall',
101
- stopCast: 'Disconnect cast from {device}',
102
- castDisconnected: 'Disconnected cast from {device}. Future casts will require confirmation.',
103
- fileType: 'Document opened with AIVIN Office Suite',
104
- },
105
- });
106
-
107
- /** Chữ khác đi theo hệ điều hành (macOS: thanh menu; macOS / Linux: khởi động cùng máy thay vì cùng Windows). */
108
- const PLATFORM_STRINGS = Object.freeze({
109
- darwin: {
110
- vi: {
111
- startup: 'Mở khi đăng nhập',
112
- firstRun: 'Aivin đang chạy trên thanh menu — bấm biểu tượng để xem.',
113
- connectHint: 'Aivin đang ở khay hệ thống — bấm biểu tượng rồi chọn “Đăng nhập để kết nối”.',
114
- folder: 'Mở thư mục Aivin trong Finder',
115
- },
116
- en: {
117
- startup: 'Open at login',
118
- firstRun: 'Aivin is running in the menu bar — click its icon to see it.',
119
- connectHint: 'Aivin is in the system tray — click its icon, then choose “Sign in to connect”.',
120
- folder: 'Show Aivin folder in Finder',
121
- },
122
- },
123
- linux: {
124
- vi: { startup: 'Khởi động cùng máy' },
125
- en: { startup: 'Start at login' },
126
- },
127
- });
128
-
129
- export function trayStrings(lang, platform = 'win32') {
130
- const code = TRAY_STRINGS[lang] ? lang : 'en';
131
- return { ...TRAY_STRINGS[code], ...(PLATFORM_STRINGS[platform]?.[code] || {}) };
132
- }
1
+ /** Chữ trên menu khay hệ thống (Aivin.exe) — ghi vào launch.cfg theo ngôn ngữ máy (mascotLang). */
2
+ export const TRAY_STRINGS = Object.freeze({
3
+ vi: {
4
+ running: 'Đang chạy — sẵn sàng nhận việc',
5
+ paused: 'Đang tạm dừng — từ chối mọi việc từ xa',
6
+ stopped: 'Đang không chạy',
7
+ notPaired: 'Chưa kết nối với Aivin',
8
+ connecting: 'Đang kết nối…',
9
+ open: 'Mở Aivin',
10
+ quickChat: 'Quick chat',
11
+ quickVoice: 'Quick voice',
12
+ terminal: 'Mở Terminal',
13
+ server: 'Máy chủ',
14
+ serverCloud: 'Cloud',
15
+ serverVn: 'VN',
16
+ serverLocal: 'Local',
17
+ serverConfirm: 'Đổi máy chủ sang {server}? Việc đang chạy trên máy này sẽ bị dừng.',
18
+ connect: 'Đăng nhập để kết nối…',
19
+ pause: 'Tạm dừng nhận việc',
20
+ resume: 'Tiếp tục nhận việc',
21
+ startup: 'Khởi động cùng Windows',
22
+ mascot: 'Linh vật trên màn hình',
23
+ mascotShow: 'Hiện linh vật',
24
+ mascotHide: 'Ẩn linh vật',
25
+ version: 'Phiên bản: {version}',
26
+ updateUpToDate: 'Đã là bản mới nhất',
27
+ updateAvailable: 'Có bản mới ({version}) — Bấm cập nhật',
28
+ updateChecking: 'Đang kiểm tra cập nhật...',
29
+ updateCheckNow: 'Kiểm tra cập nhật',
30
+ updateUpdating: 'Đang tải bản cập nhật...',
31
+ quit: 'Thoát Aivin',
32
+ firstRun: 'Aivin đang chạy ở khay hệ thống — bấm biểu tượng để mở.',
33
+ connectHint: 'Aivin đang ở khay hệ thống — bấm biểu tượng rồi chọn “Đăng nhập để kết nối”.',
34
+ connected: 'Đã kết nối máy này với Aivin.',
35
+ pairFailed: 'Không kết nối được — mã sai hoặc đã hết hạn. Tạo mã mới trong Aivin rồi thử lại.',
36
+ pairPrompt: 'Nhập mã kết nối từ Aivin (khung chat → Browser ▾ → Thêm máy tính này):',
37
+ pairOk: 'Kết nối',
38
+ pairCancel: 'Huỷ',
39
+ connectCode: 'Tôi có mã kết nối',
40
+ connectBrowserHint: 'Đang mở trang đăng nhập. Sau khi bạn cấp quyền, Aivin sẽ tự kết nối máy tính này.',
41
+ connectPairing: 'Đăng nhập thành công. Đang liên kết máy tính…',
42
+ connectFailed: 'Chưa kết nối được. Hãy thử lại hoặc dùng mã kết nối.',
43
+ connectDone: 'Đã kết nối máy tính này với Aivin Cloud.',
44
+ shortcut: 'Aivin — cho các agent Aivin làm việc trên máy tính này',
45
+ openWith: 'Mở bằng AIVIN Office Suite',
46
+ share: 'Gửi cho AIVIN Bot',
47
+ workHere: 'Làm việc ở đây với AIVIN Bot',
48
+ uninstallPrompt: 'Gỡ AIVIN Bot khỏi máy này?\n\nỨng dụng, lệnh aivin và kết nối của máy với tài khoản sẽ bị xoá.\nCó xoá luôn dữ liệu (ghi nhớ của bot, bản sao tệp để hoàn tác, phiên đăng nhập trình duyệt)? Xoá rồi không lấy lại được.\n\nYes = gỡ và xoá dữ liệu\nNo = gỡ, giữ dữ liệu\nCancel = không gỡ',
49
+ uninstallFailed: 'Không gỡ tự động được. Mở Terminal và chạy: aivin uninstall',
50
+ stopCast: 'Ngưng kết nối cast ({device})',
51
+ trustedDevices: 'Thiết bị tin cậy',
52
+ trustedRemove: 'Gỡ {device} · tin từ {date}',
53
+ trustedRemoveAll: 'Gỡ tất cả',
54
+ castDisconnected: 'Đã ngưng kết nối từ {device}. Thiết bị này sẽ cần xác nhận nếu muốn kết nối lại.',
55
+ fileType: 'Tài liệu mở bằng AIVIN Office Suite',
56
+ },
57
+ en: {
58
+ running: 'Running — ready for work',
59
+ paused: 'Paused — refusing all remote work',
60
+ stopped: 'Not running',
61
+ notPaired: 'Not connected to Aivin',
62
+ connecting: 'Connecting…',
63
+ open: 'Open Aivin',
64
+ quickChat: 'Quick chat',
65
+ quickVoice: 'Quick voice',
66
+ terminal: 'Open Terminal',
67
+ server: 'Server',
68
+ serverCloud: 'Cloud',
69
+ serverVn: 'VN',
70
+ serverLocal: 'Local',
71
+ serverConfirm: 'Switch to {server}? Current work on this computer will be stopped.',
72
+ connect: 'Sign in to connect…',
73
+ pause: 'Pause work',
74
+ resume: 'Resume work',
75
+ startup: 'Start with Windows',
76
+ mascot: 'Desktop mascot',
77
+ mascotShow: 'Show mascot',
78
+ mascotHide: 'Hide mascot',
79
+ version: 'Version: {version}',
80
+ updateUpToDate: 'Up to date',
81
+ updateAvailable: 'New version available ({version}) — Click to update',
82
+ updateChecking: 'Checking for updates...',
83
+ updateCheckNow: 'Check for updates',
84
+ updateUpdating: 'Downloading update...',
85
+ quit: 'Quit Aivin',
86
+ firstRun: 'Aivin is running in the system tray — click the icon to open it.',
87
+ connectHint: 'Aivin is in the system tray — click the icon, then choose “Sign in to connect”.',
88
+ connected: 'This computer is now connected to Aivin.',
89
+ pairFailed: 'Could not connect — the code is wrong or expired. Create a new code in Aivin and try again.',
90
+ pairPrompt: 'Enter the connect code from Aivin (chat box → Browser ▾ → Add this computer):',
91
+ pairOk: 'Connect',
92
+ pairCancel: 'Cancel',
93
+ connectCode: 'I have a connect code',
94
+ connectBrowserHint: 'Opening sign-in. Aivin will connect this computer after you grant access.',
95
+ connectPairing: 'Signed in. Linking this computer…',
96
+ connectFailed: 'Could not connect. Try again or use a connect code.',
97
+ connectDone: 'This computer is connected to Aivin Cloud.',
98
+ shortcut: 'Aivin — lets your Aivin agents work on this computer',
99
+ openWith: 'Open with AIVIN Office Suite',
100
+ share: 'Share with AIVIN Bot',
101
+ workHere: 'Work here with AIVIN Bot',
102
+ uninstallPrompt: 'Remove AIVIN Bot from this computer?\n\nThe app, the aivin command and this computer\'s connection to your account will be removed.\nAlso delete your data (the bot\'s memory, file copies kept for undo, browser sign-ins)? This cannot be undone.\n\nYes = remove and delete data\nNo = remove, keep data\nCancel = do not remove',
103
+ uninstallFailed: 'Could not remove it automatically. Open a terminal and run: aivin uninstall',
104
+ stopCast: 'Disconnect cast from {device}',
105
+ trustedDevices: 'Trusted devices',
106
+ trustedRemove: 'Remove {device} · trusted since {date}',
107
+ trustedRemoveAll: 'Remove all',
108
+ castDisconnected: 'Disconnected cast from {device}. Future casts will require confirmation.',
109
+ fileType: 'Document opened with AIVIN Office Suite',
110
+ },
111
+ });
112
+
113
+ /** Chữ khác đi theo hệ điều hành (macOS: thanh menu; macOS / Linux: khởi động cùng máy thay vì cùng Windows). */
114
+ const PLATFORM_STRINGS = Object.freeze({
115
+ darwin: {
116
+ vi: {
117
+ startup: 'Mở khi đăng nhập',
118
+ firstRun: 'Aivin đang chạy trên thanh menu — bấm biểu tượng để xem.',
119
+ connectHint: 'Aivin đang ở khay hệ thống — bấm biểu tượng rồi chọn “Đăng nhập để kết nối”.',
120
+ folder: 'Mở thư mục Aivin trong Finder',
121
+ },
122
+ en: {
123
+ startup: 'Open at login',
124
+ firstRun: 'Aivin is running in the menu bar — click its icon to see it.',
125
+ connectHint: 'Aivin is in the system tray — click its icon, then choose “Sign in to connect”.',
126
+ folder: 'Show Aivin folder in Finder',
127
+ },
128
+ },
129
+ linux: {
130
+ vi: { startup: 'Khởi động cùng máy' },
131
+ en: { startup: 'Start at login' },
132
+ },
133
+ });
134
+
135
+ export function trayStrings(lang, platform = 'win32') {
136
+ const code = TRAY_STRINGS[lang] ? lang : 'en';
137
+ return { ...TRAY_STRINGS[code], ...(PLATFORM_STRINGS[platform]?.[code] || {}) };
138
+ }