@aivin-labs/cli 1.0.13 → 1.0.21
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 +325 -304
- package/bin/cli.mjs +97 -18
- package/bin/lib/localPreview.mjs +437 -0
- package/bin/lib/openFile.mjs +235 -0
- package/bin/lib/previewCache.mjs +71 -0
- package/bin/lib/remote/atomicFile.mjs +32 -0
- package/bin/lib/remote/autoStart.mjs +2 -1
- package/bin/lib/remote/autoUpdate.mjs +12 -0
- package/bin/lib/remote/callLedger.mjs +21 -0
- package/bin/lib/remote/cdpPolicy.mjs +14 -2
- package/bin/lib/remote/client.mjs +1024 -889
- package/bin/lib/remote/codingAgents.mjs +2 -2
- package/bin/lib/remote/constants.mjs +261 -251
- package/bin/lib/remote/credentials.mjs +81 -4
- package/bin/lib/remote/daemonLock.mjs +57 -17
- package/bin/lib/remote/desktop/castInput.mjs +98 -0
- package/bin/lib/remote/desktop/desktopCast.mjs +334 -198
- package/bin/lib/remote/desktop/desktopCastCaptureSource.mjs +598 -0
- package/bin/lib/remote/desktop/desktopCastSource.mjs +798 -514
- package/bin/lib/remote/desktop/desktopWebRtc.mjs +242 -95
- package/bin/lib/remote/desktop/fileAssociation.mjs +108 -0
- package/bin/lib/remote/desktop/index.mjs +21 -7
- package/bin/lib/remote/desktop/linuxTraySource.mjs +1 -8
- package/bin/lib/remote/desktop/macTraySource.mjs +0 -2
- package/bin/lib/remote/desktop/strings.mjs +28 -2
- package/bin/lib/remote/desktop/traySource.mjs +380 -16
- package/bin/lib/remote/desktop/webrtcRuntime.mjs +137 -0
- package/bin/lib/remote/desktop/webrtcWorker.mjs +181 -0
- package/bin/lib/remote/fileIndexer.mjs +30 -14
- package/bin/lib/remote/folderRules.mjs +3 -0
- package/bin/lib/remote/gitSafe.mjs +31 -0
- package/bin/lib/remote/gui/index.mjs +66 -24
- package/bin/lib/remote/gui/officeHostSource.mjs +635 -393
- package/bin/lib/remote/gui/windowsHost.mjs +3 -1
- package/bin/lib/remote/gui/windowsHostSource.mjs +291 -60
- package/bin/lib/remote/httpTransfer.mjs +64 -3
- package/bin/lib/remote/localPolicy.mjs +73 -7
- package/bin/lib/remote/mascot/ask.mjs +207 -42
- package/bin/lib/remote/mascot/askBlocksSource.mjs +286 -0
- package/bin/lib/remote/mascot/askHostSource.mjs +658 -530
- package/bin/lib/remote/mascot/blocks.mjs +201 -0
- package/bin/lib/remote/mascot/bot.mjs +26 -2
- package/bin/lib/remote/mascot/chartLayout.mjs +382 -0
- package/bin/lib/remote/mascot/diagramRender.mjs +154 -0
- package/bin/lib/remote/mascot/emojiSource.mjs +273 -0
- package/bin/lib/remote/mascot/fileChips.mjs +62 -0
- package/bin/lib/remote/mascot/hostSource.mjs +328 -49
- package/bin/lib/remote/mascot/hotkey.mjs +31 -7
- package/bin/lib/remote/mascot/images.mjs +111 -0
- package/bin/lib/remote/mascot/index.mjs +663 -493
- package/bin/lib/remote/mascot/lucideIcons.mjs +32 -0
- package/bin/lib/remote/mascot/mermaidBundle.mjs +28 -0
- package/bin/lib/remote/mascot/mood.mjs +57 -0
- package/bin/lib/remote/mascot/rigSource.mjs +643 -609
- package/bin/lib/remote/mascot/safeUrl.mjs +29 -0
- package/bin/lib/remote/mascot/strings.mjs +456 -375
- package/bin/lib/remote/mascot/ui.mjs +27 -7
- package/bin/lib/remote/multiUser.mjs +7 -2
- package/bin/lib/remote/notify.mjs +4 -1
- package/bin/lib/remote/office/index.mjs +12 -6
- package/bin/lib/remote/processes.mjs +5 -2
- package/bin/lib/remote/sandbox.mjs +26 -0
- package/bin/lib/remote/secretPaths.mjs +21 -0
- package/bin/lib/remote/tokenRotation.mjs +28 -0
- package/bin/lib/remote/toolHandlers.mjs +79 -15
- package/bin/lib/remote/watchBatcher.mjs +56 -0
- package/bin/lib/selfUpdate.mjs +12 -2
- package/bin/lib/update/binarySwap.mjs +15 -1
- package/bin/lib/update/state.mjs +10 -0
- package/docs/CLI.md +42 -1
- package/docs/media/aivin-ecosystem.jpg +0 -0
- package/package.json +7 -3
package/docs/CLI.md
CHANGED
|
@@ -1264,7 +1264,7 @@ aivin desktop # status
|
|
|
1264
1264
|
| Start with the computer | Task Manager → Startup apps | System Settings → General → Login Items | Startup Applications (GNOME) / Autostart (KDE) |
|
|
1265
1265
|
|
|
1266
1266
|
- **The icon** is in colour while Aivin is taking work, grey when paused, stopped or not connected. Its menu: connect this computer
|
|
1267
|
-
(asks for the code from Aivin), pause / resume work (the kill switch), start with the computer,
|
|
1267
|
+
(asks for the code from Aivin), pause / resume work (the kill switch), start with the computer, quit
|
|
1268
1268
|
(which also stops the listener). On Windows, clicking the icon opens the mascot and its ask box.
|
|
1269
1269
|
- **Keeps the listener running**: the app runs `aivin remote start --quiet` hidden. It restarts it when it crashes (after 10 s, then
|
|
1270
1270
|
longer, up to 5 minutes), switches to a newly installed release right away (exit code 75), and puts the previous release back when a
|
|
@@ -1284,6 +1284,47 @@ aivin desktop # status
|
|
|
1284
1284
|
just without an icon - connect it with `aivin remote start --code <code>` once.
|
|
1285
1285
|
- Running `aivin remote enable` again replaces the scheduled task, Startup-folder script or older LaunchAgent / autostart entry made by
|
|
1286
1286
|
older aivin versions.
|
|
1287
|
+
- **Open with AIVIN Bot** (Windows): install also adds "Open with AIVIN Bot" to the right-click menu (Windows 11: "Show more options")
|
|
1288
|
+
and to "Open with" for `docx doc odt rtf xlsx xls xlsm ods csv pptx ppt odp pdf md txt` - see [`aivin open`](#aivin-open-files). Only
|
|
1289
|
+
`HKCU\Software` is written (no admin). Windows doesn't let apps make themselves the default, so to open those files with a double-click
|
|
1290
|
+
either pick Open with → AIVIN Bot → "Always", or run `aivin desktop defaults` to go straight to AIVIN Bot's page in Settings → Default
|
|
1291
|
+
apps. For a whole company, `aivin desktop defaults --export-xml <file> [--all]` writes a file IT can push with the Group Policy "Set a
|
|
1292
|
+
default associations configuration file" or Intune (`md txt csv` by default, `--all` adds Office formats). Installed before this
|
|
1293
|
+
version? Run `aivin desktop install` again.
|
|
1294
|
+
|
|
1295
|
+
## `aivin open <files...>`
|
|
1296
|
+
|
|
1297
|
+
Opens files from this computer in your Aivin Drive: uploads each file to your personal workspace (or `--workspace <id>`) and opens it
|
|
1298
|
+
in the Aivin editor in your browser. The Drive copy is the one you work on from then on:
|
|
1299
|
+
|
|
1300
|
+
- the **same content** opened again reopens the same Drive file (with whatever you changed there) - matched by sha256 in
|
|
1301
|
+
`~/.aivin/opened-files.json`;
|
|
1302
|
+
- a file that **changed on this computer** is uploaded as a new Drive file - the earlier Drive copy is never overwritten.
|
|
1303
|
+
|
|
1304
|
+
```bash
|
|
1305
|
+
aivin open contract.docx report.pdf
|
|
1306
|
+
aivin open budget.xlsx --workspace <id>
|
|
1307
|
+
aivin open notes.md --tab # a normal browser tab instead of its own window
|
|
1308
|
+
aivin open notes.md --print # print the Drive link instead of opening anything
|
|
1309
|
+
```
|
|
1310
|
+
|
|
1311
|
+
Files open in their own window (no address bar or tabs) when your default browser is Chromium-based (Edge, Chrome, Brave), since that is
|
|
1312
|
+
where your Aivin sign-in lives. With any other default browser they open in a normal tab.
|
|
1313
|
+
|
|
1314
|
+
**Not signed in (or the saved key was revoked): view only.** Nothing is uploaded to your Drive. `aivin open` serves a read-only page from
|
|
1315
|
+
this computer (`127.0.0.1`, random path) and keeps running until you close that window:
|
|
1316
|
+
|
|
1317
|
+
- `.pdf`, `.md`, `.txt`, `.csv` are shown straight from this computer.
|
|
1318
|
+
- Office files (`docx doc odt rtf xlsx xls xlsm ods pptx ppt odp`) are converted to PDF by the Aivin server, which does not keep the
|
|
1319
|
+
file. The page asks first; "Don't ask again on this computer" is saved in `~/.aivin/open-settings.json`. Servers that turned this off
|
|
1320
|
+
answer "sign in to open it". The PDF is kept on this computer in `~/.aivin/preview-cache/` (by file content, up to 500 MB, unused
|
|
1321
|
+
copies removed after 30 days), so opening the same unchanged file again shows it at once without sending anything.
|
|
1322
|
+
- **Sign in to edit and use AI** runs the browser sign-in of `aivin login`, uploads the file to your Drive and switches the same window to
|
|
1323
|
+
the editor.
|
|
1324
|
+
|
|
1325
|
+
Opened from Explorer, `Aivin.exe --open "<file>"` runs this command hidden (no console window) and shows a system notification while it
|
|
1326
|
+
uploads, or when it fails (e.g. not signed in - run `aivin login`). Needs a server that accepts CLI API keys on Drive upload (Aivin
|
|
1327
|
+
backend from 04/11/2026).
|
|
1287
1328
|
|
|
1288
1329
|
## `aivin update`
|
|
1289
1330
|
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aivin-labs/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "aivin CLI - scaffold, run, and deploy Aivin plugins built on @aivin-labs/sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"sign:release": "node scripts/sign-release.mjs",
|
|
16
16
|
"get:publish": "node scripts/publish-get.mjs",
|
|
17
17
|
"get:rollout": "node scripts/rollout-get.mjs",
|
|
18
|
-
"get:up": "docker compose -f deploy/get/docker-compose.yml up -d"
|
|
18
|
+
"get:up": "docker compose -f deploy/get/docker-compose.yml up -d",
|
|
19
|
+
"publish:all": "node scripts/sign-release.mjs && node scripts/publish-get.mjs && npm publish"
|
|
19
20
|
},
|
|
20
21
|
"keywords": [
|
|
21
22
|
"aivin",
|
|
@@ -67,5 +68,8 @@
|
|
|
67
68
|
"bugs": {
|
|
68
69
|
"url": "https://github.com/aivin-labs/cli/issues"
|
|
69
70
|
},
|
|
70
|
-
"homepage": "https://github.com/aivin-labs/cli#readme"
|
|
71
|
+
"homepage": "https://github.com/aivin-labs/cli#readme",
|
|
72
|
+
"optionalDependencies": {
|
|
73
|
+
"@roamhq/wrtc": "^0.10.0"
|
|
74
|
+
}
|
|
71
75
|
}
|