@aivin-labs/cli 1.0.21 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/lib/remote/autoUpdate.mjs +153 -141
- package/bin/lib/remote/client.mjs +2 -1
- package/bin/lib/remote/constants.mjs +2 -0
- package/bin/lib/remote/desktop/desktopCast.mjs +3 -0
- package/bin/lib/remote/desktop/desktopCastSource.mjs +90 -8
- package/bin/lib/remote/desktop/desktopWebRtc.mjs +10 -1
- package/bin/lib/remote/desktop/webrtcWorker.mjs +183 -181
- package/bin/lib/remote/deviceProfile.mjs +2 -4
- package/bin/lib/remote/mascot/ask.mjs +956 -933
- package/bin/lib/remote/mascot/fileChips.mjs +2 -2
- package/bin/lib/remote/mascot/strings.mjs +3 -0
- package/docs/CLI.md +1545 -1545
- package/package.json +75 -75
|
@@ -44,8 +44,8 @@ const isDir = (p) => {
|
|
|
44
44
|
try { return fs.statSync(p).isDirectory(); } catch { return false; }
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
/** Tên hiện trên chip: tên tệp / thư mục (bỏ dấu gạch cuối); ổ đĩa trống tên → cả đường dẫn. */
|
|
48
|
-
export const fileName = (p) => path.basename(String(p).replace(/[\\/]+$/, '')) || String(p);
|
|
47
|
+
/** Tên hiện trên chip: tên tệp / thư mục (bỏ dấu gạch cuối); ổ đĩa trống tên → cả đường dẫn. win32: tách cả `\` lẫn `/` trên mọi hệ điều hành. */
|
|
48
|
+
export const fileName = (p) => path.win32.basename(String(p).replace(/[\\/]+$/, '')) || String(p);
|
|
49
49
|
|
|
50
50
|
/** Loại của một đường dẫn: thư mục → folder; còn lại theo đuôi tệp (không biết → file). */
|
|
51
51
|
export function fileKind(p, { dir = isDir } = {}) {
|
|
@@ -69,6 +69,7 @@ export const MascotText = Object.freeze({
|
|
|
69
69
|
ASK_TOO_SHORT: 'ask_too_short',
|
|
70
70
|
ASK_OFFLINE: 'ask_offline',
|
|
71
71
|
ASK_ERR_BUSY: 'ask_err_busy',
|
|
72
|
+
ASK_PARALLEL_SENT: 'ask_parallel_sent',
|
|
72
73
|
ASK_BUSY_VOICE: 'ask_busy_voice',
|
|
73
74
|
ASK_QUEUED: 'ask_queued',
|
|
74
75
|
ASK_ERR_TOO_LONG: 'ask_err_too_long',
|
|
@@ -208,6 +209,7 @@ const STRINGS = {
|
|
|
208
209
|
[MascotText.ASK_TOO_SHORT]: "Đoạn nói quá ngắn — nói lâu hơn một chút",
|
|
209
210
|
[MascotText.ASK_OFFLINE]: "Chưa nối được Aivin, thử lại sau",
|
|
210
211
|
[MascotText.ASK_ERR_BUSY]: "Đang làm việc trước, chờ chút",
|
|
212
|
+
[MascotText.ASK_PARALLEL_SENT]: "Đã giao chạy song song — xong mình báo ngay",
|
|
211
213
|
[MascotText.ASK_BUSY_VOICE]: "Đang nói chuyện — kết thúc rồi hãy trả lời",
|
|
212
214
|
[MascotText.ASK_QUEUED]: "(còn {n} câu hỏi nữa)",
|
|
213
215
|
[MascotText.ASK_ERR_TOO_LONG]: "Dài quá, rút gọn nhé",
|
|
@@ -338,6 +340,7 @@ const STRINGS = {
|
|
|
338
340
|
[MascotText.ASK_TOO_SHORT]: "That was too short — talk a bit longer",
|
|
339
341
|
[MascotText.ASK_OFFLINE]: "Not connected to Aivin, try again soon",
|
|
340
342
|
[MascotText.ASK_ERR_BUSY]: "Still on the last one, hold on",
|
|
343
|
+
[MascotText.ASK_PARALLEL_SENT]: "Started alongside the current one — I'll tell you when it's done",
|
|
341
344
|
[MascotText.ASK_BUSY_VOICE]: "In a call — end it to answer",
|
|
342
345
|
[MascotText.ASK_QUEUED]: "({n} more waiting)",
|
|
343
346
|
[MascotText.ASK_ERR_TOO_LONG]: "Too long, please shorten it",
|