annulo 0.1.0 → 0.2.0
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 +11 -6
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -4,19 +4,24 @@
|
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
6
|
npm i -g annulo
|
|
7
|
-
annulo node connect https://your-annulo-server.example.com
|
|
8
|
-
annulo node start
|
|
7
|
+
annulo node connect https://your-annulo-server.example.com --token <一次性配对令牌> --start
|
|
9
8
|
```
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
直接从页面复制整条配对命令。配对令牌 15 分钟内有效,成功后立即失效,留在终端历史里的令牌也不能再次使用。后台节点把交换到的连接凭据保存在 `~/.annulo/node/pairing.json`。也可以省略 `--token`,按终端提示粘贴,或通过标准输入提供配对令牌。省略 `--start` 时,可以稍后用 `annulo node start` 启动服务。
|
|
11
|
+
|
|
12
|
+
如果当前安装的 CLI 还不支持 `--token`,添加电脑时可选「使用旧版 CLI 配对」。在终端提示时粘贴令牌,再运行 `annulo node start`。
|
|
13
|
+
|
|
14
|
+
终端里的 `annulo` 由 npm 安装和更新。桌面版升级时会检查当前终端能否运行 npm 版,然后清理自己过去创建的同名软链。先升级桌面版再装 npm 包时,可以在桌面版「团队服务器 → 终端里的 annulo 命令」点「迁移旧命令」。
|
|
12
15
|
|
|
13
16
|
后台服务以当前用户身份运行。macOS 使用 LaunchAgent,Linux 使用 systemd 用户服务,Windows 使用登录时启动的计划任务。没有图形登录会话或 systemd 用户会话时,可以用 `annulo node run` 在前台运行。浏览器任务仍需要可用的桌面会话和 Chrome。
|
|
14
17
|
|
|
15
|
-
- `annulo node status` 查看服务器连接、可用能力、Chrome
|
|
18
|
+
- `annulo node status` 查看服务器连接、可用能力、Chrome 插件连接数,以及后台服务和远程命令执行日志的位置。
|
|
16
19
|
- `annulo node stop` 停止后台服务,关闭登录时自动启动。配对会保留,可以再次用 `annulo node start` 连接。
|
|
17
20
|
- `annulo node restart` 重启后台服务。用 `npm i -g annulo` 更新后运行这个命令,让后台服务加载新版。卸载 npm 包前先运行 `annulo node stop`。
|
|
18
|
-
-
|
|
19
|
-
-
|
|
21
|
+
- 在「我的电脑」找到原来的电脑,点「重新配对」并在那台电脑运行生成的命令。命令的 `--computer` 标识对应原来的条目。服务器在同一账号下识别本机的机器 ID,保留名称和归属,并在配对成功时撤销旧凭据。在网页删除电脑也可以撤销授权。
|
|
22
|
+
- 想在本机运行云端助手交来的命令时,在这台电脑的终端运行 `annulo node exec on`。关闭用 `annulo node exec off`。开关写入 `~/.annulo/node/state.json`,运行中的节点用原来的连接凭据重连并上报能力,网页上的电脑条目原地更新。刚从旧版升级时,先让后台服务运行新版。
|
|
23
|
+
- 初次配对也可以勾选「允许在这台电脑上跑命令」,页面会把 `--allow-exec` 加到命令里。命令使用本机账号的权限。桌面 App 用户在本机 App 的「设置 → 团队服务器」找到对应服务器,切换「在这台电脑上跑命令」。
|
|
24
|
+
- 本机安装并登录 Claude Code 或 Codex 后,可重启节点,在云端对话里选择对应的本机引擎。
|
|
20
25
|
|
|
21
26
|
## 用自己的 Chrome 跑网页任务
|
|
22
27
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.2.0",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
4
|
"homepage": "https://annulo.dev",
|
|
5
5
|
"name": "annulo",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"arm64"
|
|
24
24
|
],
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@annulo/cli-darwin-x64": "0.
|
|
27
|
-
"@annulo/cli-darwin-arm64": "0.
|
|
28
|
-
"@annulo/cli-linux-x64": "0.
|
|
29
|
-
"@annulo/cli-linux-arm64": "0.
|
|
30
|
-
"@annulo/cli-win32-x64": "0.
|
|
31
|
-
"@annulo/cli-win32-arm64": "0.
|
|
26
|
+
"@annulo/cli-darwin-x64": "0.2.0",
|
|
27
|
+
"@annulo/cli-darwin-arm64": "0.2.0",
|
|
28
|
+
"@annulo/cli-linux-x64": "0.2.0",
|
|
29
|
+
"@annulo/cli-linux-arm64": "0.2.0",
|
|
30
|
+
"@annulo/cli-win32-x64": "0.2.0",
|
|
31
|
+
"@annulo/cli-win32-arm64": "0.2.0"
|
|
32
32
|
}
|
|
33
33
|
}
|