@nnova/runner 0.0.4 → 0.0.6

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 CHANGED
@@ -1,10 +1,33 @@
1
- # @nova/runner
1
+ # @nnova/runner
2
2
 
3
3
  跨平台发布的 `nova-runner` Rust 可执行文件。该包只负责选择并启动当前平台的
4
4
  二进制,Runner 的 gRPC、执行、取消和 workspace 行为仍全部实现于
5
5
  `crates/runner`。
6
6
 
7
- ## 使用
7
+ ## 用户安装
8
+
9
+ Windows 在 GitHub Release 下载 `nova-runner-setup.exe`,双击后填写 server、token 和
10
+ workspace。安装器会安装当前平台的 Rust binary,立即隐藏启动,并注册当前
11
+ 用户登录时自动运行的计划任务。
12
+
13
+ Linux x64 使用一行命令:
14
+
15
+ ```bash
16
+ curl -fsSL https://github.com/hu-bo/nova/releases/latest/download/install-runner.sh | sh -s -- \
17
+ --server "https://agent.example.com/runner-connect" \
18
+ --token "<runner-token>" \
19
+ --workspace "$HOME"
20
+ ```
21
+
22
+ 脚本验证 GitHub Release 中的 SHA-256,通过 sudo 安装静态 musl x64 binary 和
23
+ `nova-runner.service`。sudo 只用于安装和管理 systemd;unit 始终以发起安装的
24
+ 普通用户运行 Runner,并在开机时自动启动。
25
+
26
+ Web UI 默认使用 `https://github.com/hu-bo/nova/releases/latest/download`。部署时可通过
27
+ `VITE_RUNNER_RELEASE_URL` 替换 Windows 安装包和 Release 资产的基础地址,通过
28
+ `VITE_RUNNER_INSTALL_URL` 单独设置 Linux 脚本地址,例如 `https://get.nova.example/runner`。
29
+
30
+ ## npm / 开发调试
8
31
 
9
32
  ```bash
10
33
  pnpm add @nnova/runner
@@ -29,5 +52,5 @@ $env:NOVA_RUNNER_BIN = 'E:\path\to\nova-runner.exe'
29
52
  npx --yes --package @nnova/runner nova-runner --help
30
53
  ```
31
54
 
32
- 这个包不是 `@nova/runner-sdk` 的替代品,也不在 Node.js 中执行命令;它只是把已构建
33
- Rust binary 作为 npm 可安装物分发。发布包由 CI 在各自平台构建后合并生成。
55
+ 这个包不是 `@nova/runner-sdk` 的替代品,也不在 Node.js 中执行命令;它只分发和安装
56
+ 已构建的 Rust binary。Inno Setup Linux 脚本也不提供第二套 Execution 实现。
@@ -14,7 +14,7 @@ const binary = process.env.NOVA_RUNNER_BIN ?? join(packageRoot, "vendor", target
14
14
  try {
15
15
  accessSync(binary, constants.X_OK);
16
16
  } catch {
17
- console.error(`@nova/runner: no nova-runner binary is available for ${target}.`);
17
+ console.error(`@nnova/runner: no nova-runner binary is available for ${target}.`);
18
18
  console.error(`Expected: ${binary}`);
19
19
  console.error("Install a package version containing this platform or set NOVA_RUNNER_BIN to a compatible binary.");
20
20
  process.exit(1);
@@ -22,7 +22,7 @@ try {
22
22
 
23
23
  const child = spawn(binary, process.argv.slice(2), { stdio: "inherit", windowsHide: false });
24
24
  child.on("error", (error) => {
25
- console.error(`@nova/runner: failed to start ${binary}: ${error.message}`);
25
+ console.error(`@nnova/runner: failed to start ${binary}: ${error.message}`);
26
26
  process.exit(1);
27
27
  });
28
28
  child.on("exit", (code, signal) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nnova/runner",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Cross-platform nova-runner binary distribution",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
Binary file
Binary file
Binary file
Binary file