@aivin-labs/cli 1.0.11 → 1.0.13
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/README.md +16 -0
- package/bin/cli.mjs +67 -0
- package/bin/lib/remote/browserTunnel.mjs +47 -8
- package/bin/lib/remote/callLedger.mjs +73 -14
- package/bin/lib/remote/client.mjs +89 -8
- package/bin/lib/remote/cloudFiles.mjs +53 -0
- package/bin/lib/remote/constants.mjs +17 -0
- package/bin/lib/remote/dailyBrowser.mjs +8 -2
- package/bin/lib/remote/desktop/desktopCast.mjs +198 -0
- package/bin/lib/remote/desktop/desktopCastSource.mjs +514 -0
- package/bin/lib/remote/desktop/desktopWebRtc.mjs +95 -0
- package/bin/lib/remote/desktop/index.mjs +44 -7
- package/bin/lib/remote/desktop/linux.mjs +1 -1
- package/bin/lib/remote/desktop/linuxTraySource.mjs +434 -427
- package/bin/lib/remote/desktop/mac.mjs +2 -2
- package/bin/lib/remote/desktop/macTraySource.mjs +295 -292
- package/bin/lib/remote/desktop/traySource.mjs +541 -527
- package/bin/lib/remote/deviceProfile.mjs +1 -0
- package/bin/lib/remote/docText.mjs +85 -0
- package/bin/lib/remote/fileIndexer.mjs +757 -399
- package/bin/lib/remote/folderRules.mjs +140 -0
- package/bin/lib/remote/gui/index.mjs +126 -17
- package/bin/lib/remote/gui/windowsHost.mjs +9 -2
- package/bin/lib/remote/gui/windowsHostSource.mjs +194 -51
- package/bin/lib/remote/idempotency.mjs +49 -20
- package/bin/lib/remote/localPolicy.mjs +8 -2
- package/bin/lib/remote/mascot/askHostSource.mjs +18 -0
- package/bin/lib/remote/mascot/bot.mjs +29 -4
- package/bin/lib/remote/mascot/hostSource.mjs +4 -4
- package/bin/lib/remote/mascot/rigSource.mjs +12 -7
- package/bin/lib/remote/osSearch.mjs +107 -0
- package/bin/lib/remote/sqliteDb.mjs +51 -0
- package/bin/lib/remote/toolHandlers.mjs +788 -741
- package/bin/lib/remoteControl.mjs +26 -26
- package/docs/AIVIN_MASCOT.md +14 -0
- package/docs/CLI.md +1504 -1484
- package/docs/media/aivin-mascot-live.gif +0 -0
- package/docs/media/aivin-mascot-live.png +0 -0
- package/docs/media/aivin-remote-architecture.svg +102 -0
- package/package.json +71 -71
- package/docs/media/aivin-mascot-states.mp4 +0 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Điều khiển máy từ xa (Device Agent phía máy) — các mô-đun trong ./remote/:
|
|
3
|
-
* - client.mjs : daemon `aivin remote start` — nối namespace /device bằng token thiết bị, nhận lô lời gọi, trả kết quả/luồng.
|
|
4
|
-
* - credentials.mjs : mã máy, ghép máy (token thiết bị riêng), danh sách / thu hồi máy.
|
|
5
|
-
* - deviceProfile.mjs : tự phát hiện năng lực máy (chương trình trên PATH, dự án) + danh mục công cụ có dấu vân tay.
|
|
6
|
-
* - toolHandlers.mjs : các gói công cụ (fs, shell, system, git, memory).
|
|
7
|
-
* - scheduler.mjs : song song theo nhóm công cụ, khoá theo đường dẫn khi ghi, huỷ / hết giờ.
|
|
8
|
-
* - sandbox.mjs : sàn cứng — thư mục gốc (realpath), lọc biến môi trường, chặn lệnh thảm hoạ, công tắc ngắt.
|
|
9
|
-
* - deviceMemory.mjs : bộ nhớ trên máy (YAML người đọc/sửa được + vector), tìm kết hợp BM25 + cosine.
|
|
10
|
-
* - fileIndexer.mjs : chỉ mục tệp
|
|
11
|
-
* - mission.mjs : `aivin remote do` — giao thẳng việc cho Device Agent.
|
|
12
|
-
* - activityLog.mjs / autoStart.mjs : nhật ký hoạt động, tự khởi động cùng máy.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
export * from './remote/deviceProfile.mjs';
|
|
16
|
-
export * from './remote/toolHandlers.mjs';
|
|
17
|
-
export * from './remote/deviceMemory.mjs';
|
|
18
|
-
export * from './remote/activityLog.mjs';
|
|
19
|
-
export * from './remote/autoStart.mjs';
|
|
20
|
-
export * from './remote/client.mjs';
|
|
21
|
-
export * from './remote/fileIndexer.mjs';
|
|
22
|
-
export * from './remote/credentials.mjs';
|
|
23
|
-
export * from './remote/scheduler.mjs';
|
|
24
|
-
export * from './remote/sandbox.mjs';
|
|
25
|
-
export * from './remote/mission.mjs';
|
|
26
|
-
export { DEVICE_AGENT_PLUGIN_ID, DeviceEvent, DeviceErrorCode, MemoryKind } from './remote/constants.mjs';
|
|
1
|
+
/**
|
|
2
|
+
* Điều khiển máy từ xa (Device Agent phía máy) — các mô-đun trong ./remote/:
|
|
3
|
+
* - client.mjs : daemon `aivin remote start` — nối namespace /device bằng token thiết bị, nhận lô lời gọi, trả kết quả/luồng.
|
|
4
|
+
* - credentials.mjs : mã máy, ghép máy (token thiết bị riêng), danh sách / thu hồi máy.
|
|
5
|
+
* - deviceProfile.mjs : tự phát hiện năng lực máy (chương trình trên PATH, dự án) + danh mục công cụ có dấu vân tay.
|
|
6
|
+
* - toolHandlers.mjs : các gói công cụ (fs, shell, system, git, memory).
|
|
7
|
+
* - scheduler.mjs : song song theo nhóm công cụ, khoá theo đường dẫn khi ghi, huỷ / hết giờ.
|
|
8
|
+
* - sandbox.mjs : sàn cứng — thư mục gốc (realpath), lọc biến môi trường, chặn lệnh thảm hoạ, công tắc ngắt.
|
|
9
|
+
* - deviceMemory.mjs : bộ nhớ trên máy (YAML người đọc/sửa được + vector), tìm kết hợp BM25 + cosine.
|
|
10
|
+
* - fileIndexer.mjs : chỉ mục tệp (SQLite trên đĩa, FTS5 + vector), quét tăng dần + theo dõi thay đổi.
|
|
11
|
+
* - mission.mjs : `aivin remote do` — giao thẳng việc cho Device Agent.
|
|
12
|
+
* - activityLog.mjs / autoStart.mjs : nhật ký hoạt động, tự khởi động cùng máy.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
export * from './remote/deviceProfile.mjs';
|
|
16
|
+
export * from './remote/toolHandlers.mjs';
|
|
17
|
+
export * from './remote/deviceMemory.mjs';
|
|
18
|
+
export * from './remote/activityLog.mjs';
|
|
19
|
+
export * from './remote/autoStart.mjs';
|
|
20
|
+
export * from './remote/client.mjs';
|
|
21
|
+
export * from './remote/fileIndexer.mjs';
|
|
22
|
+
export * from './remote/credentials.mjs';
|
|
23
|
+
export * from './remote/scheduler.mjs';
|
|
24
|
+
export * from './remote/sandbox.mjs';
|
|
25
|
+
export * from './remote/mission.mjs';
|
|
26
|
+
export { DEVICE_AGENT_PLUGIN_ID, DeviceEvent, DeviceErrorCode, MemoryKind } from './remote/constants.mjs';
|
package/docs/AIVIN_MASCOT.md
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
# Aivin mascot
|
|
2
2
|
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="media/aivin-mascot-live.gif" alt="The current live Aivin mascot showing chat, file drag and attached-file states" width="480" />
|
|
5
|
+
</p>
|
|
6
|
+
|
|
3
7
|
The Aivin mascot is the floating Windows interface for Aivin Remote. It shows what the agent is doing, accepts typed or spoken questions, and gives access to recent activity without opening the web app.
|
|
4
8
|
|
|
9
|
+
The animation above is rendered from the current WPF visual tree. It demonstrates the real chat box, the file-drag target and the tray badge after two files have been attached.
|
|
10
|
+
|
|
11
|
+
## How it connects to Aivin
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
The mascot is a local interface to the Aivin listener running on the same computer. It sends typed questions, voice events and user choices to that listener; the listener maintains the authenticated outbound connection to Aivin Platform. Work coming back from the platform passes through local policy and approval checks before any tool or app is used. Status, questions and results then travel back over the same connection.
|
|
16
|
+
|
|
17
|
+
This design supports multiple paired computers without exposing an inbound remote-control port. A chat or mission targets a selected computer, and each computer keeps its own identity, capabilities, policy and local execution boundary.
|
|
18
|
+
|
|
5
19
|
## Requirements
|
|
6
20
|
|
|
7
21
|
- Windows.
|