omnicrawl-cli 0.2.2 → 0.2.3

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.
Files changed (2) hide show
  1. package/README.md +12 -6
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -14,7 +14,7 @@ OmniCrawl 启动器:按 `platform-arch` 选平台分包,默认启动**完整
14
14
  | `@omnicrawl/cli-win32-ia32` | 仅内核(32 位 Windows 缺运行期轮子) |
15
15
  | `@omnicrawl/cli-linux-arm-musl` | 仅内核(armv7 嵌入式目标) |
16
16
 
17
- 宿主载荷是 PyInstaller one-dir 产物(`host/`):CPython 运行时、依赖、代码与资源都在里面,
17
+ 宿主载荷是 Rust 二进制(`host/`):`omnicrawl-host` / `omnicrawl-tui` / `omnicrawl-api` / `omnicrawl-mcp-server` 与内核同架构,`host-meta.json` 里 `hostKind: "rust"`;
18
18
  用户机器不需要 Python 或 pip。没有宿主载荷的平台由启动器退回内核直连,并打印这一边界。
19
19
 
20
20
  **平台分包、`os`/`cpu` 与平台依赖只出现在发布产物里**(`dist/npm/`)。仓库内的 `packages/cli*/package.json`
@@ -60,11 +60,17 @@ node packages/cli/scripts/install-smoke.mjs # 安装冒烟:干净前缀里
60
60
  npm test -w omnicrawl-cli # e2e:真二进制 + 协议 v1
61
61
  ```
62
62
 
63
- 宿主载荷是纯 Rust 产物,但仍按构建机的原生目标构建(里面没有 CPython,交叉构建在大多数
64
- 情况下也不再受限于 Python):Windows 侧用 `--target` 指到与内核相同的三元组目录;
65
- Linux 侧的宿主载荷仍走原生 gnu 目标,因为 `omnicrawl-tts → ort-sys` 没有 musl 预编译库
66
- (详见 `rust/docs/python-free-build.md` 第 7 节)。若目标无法在构建机上构建(或宿主没接线),
67
- 启动器会退回协议直连内核——内核可以单独交叉编译成 musl 静态。
63
+ 宿主载荷是纯 Rust 产物,按构建机的目标构建即可(`omnicrawl-tts` 的 ONNX 运行时已改成可选
64
+ feature,所以 musl 静态宿主载荷在 Windows 上交叉编译也能过,本机实测见
65
+ `rust/docs/python-free-build.md` 第 7 节):Windows 侧用 `--target` 指到与内核相同的三元组目录,
66
+ Linux 侧目前仍按 runner 原生 gnu 目标构建(aarch64 musl 宿主在 arm runner 上还没验证过)。
67
+ 若目标无法在构建机上构建(或宿主没接线),启动器会退回协议直连内核——内核可以单独交叉编译成
68
+ musl 静态。
69
+
70
+ 平台包里的内核二进制声明成 `omnicrawl-kernel`,**不能**叫 `omnicrawl`:启动器自己也声明了
71
+ `omnicrawl`,而平台包在安装树里同样会生成 `node_modules/.bin` 条目,撞名会让平台包抢走
72
+ `.bin/omnicrawl`,本地安装与 `npx` 下 `omnicrawl` 就变成直连内核(只打印 `omnicrawl 0.0.1`)。
73
+ 安装冒烟里有断言守住 `.bin/omnicrawl` 必须指向启动器。
68
74
 
69
75
  两个逃生口:`OMNICRAWL_HOST` 直接指定宿主、`OMNICRAWL_BINARY` 直接指定内核(此时启动器是纯透传)。
70
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnicrawl-cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "OmniCrawl 启动器:按平台启动完整宿主(工作台 / api / 插件)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "license": "MIT",
27
27
  "optionalDependencies": {
28
- "@omnicrawl/cli-win32-x64": "0.2.2",
29
- "@omnicrawl/cli-win32-ia32": "0.2.2",
30
- "@omnicrawl/cli-linux-x64": "0.2.2",
31
- "@omnicrawl/cli-linux-arm-musl": "0.2.2",
32
- "@omnicrawl/cli-linux-arm64-musl": "0.2.2"
28
+ "@omnicrawl/cli-win32-x64": "0.2.3",
29
+ "@omnicrawl/cli-win32-ia32": "0.2.3",
30
+ "@omnicrawl/cli-linux-x64": "0.2.3",
31
+ "@omnicrawl/cli-linux-arm-musl": "0.2.3",
32
+ "@omnicrawl/cli-linux-arm64-musl": "0.2.3"
33
33
  }
34
34
  }