@nibi-studio/cli 4.1.0 → 4.1.1

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
@@ -16,12 +16,11 @@ The platform package is chosen from `process.platform` and `process.arch`:
16
16
  | `linux-x64` | `@nibi-studio/cli-linux-x64-gnu` |
17
17
  | `linux-arm64` | `@nibi-studio/cli-linux-arm64-gnu` |
18
18
  | `darwin-arm64` | `@nibi-studio/cli-darwin-arm64` |
19
- | `android-arm64` | `@nibi-studio/cli-android-arm64` |
19
+ | `win32-x64` | `@nibi-studio/cli-win32-x64-msvc` |
20
20
 
21
21
  Unsupported platforms fail closed with an actionable error; they do not fall
22
- back to another architecture. Linux packages target glibc (gnu). The
23
- `android-arm64` package is distributed for NIBI-GO and does not use the Node
24
- launcher.
22
+ back to another architecture. Linux packages target glibc (gnu). Android is no
23
+ longer distributed through npm; NIBI-GO builds its kernel in its own repository.
25
24
 
26
25
  The launcher sets `NIBI_MANAGED_PACKAGE`, `NIBI_MANAGED_PLATFORM_PACKAGE`
27
26
  and the matching `NIBI_MANAGED_BY_*` marker in the child environment so
package/bin/launcher.mjs CHANGED
@@ -15,12 +15,17 @@ import { fileURLToPath } from "node:url";
15
15
 
16
16
  export const META_PACKAGE_NAME = "@nibi-studio/cli";
17
17
 
18
- /** 已发布的平台包:键是 Node 的 `${process.platform}-${process.arch}`。 */
18
+ /** 已发布的平台包:键是 Node 的 `${process.platform}-${process.arch}`。
19
+ *
20
+ * Android 自 2026-11-17 起不再经 npm 分发:NIBI-GO 已把内核 fork 进自己的仓库,
21
+ * 由 `NIBI-GO/kernel` 自建 `libnibi.so`/`nibi-rs`,不消费 `@nibi-studio/cli-android-arm64`。
22
+ * `package.mjs` 仍保留 Android 的打包能力供历史/手动验证,但不在发布矩阵里。
23
+ */
19
24
  export const PLATFORM_PACKAGES = Object.freeze({
20
25
  "linux-x64": "@nibi-studio/cli-linux-x64-gnu",
21
26
  "linux-arm64": "@nibi-studio/cli-linux-arm64-gnu",
22
27
  "darwin-arm64": "@nibi-studio/cli-darwin-arm64",
23
- "android-arm64": "@nibi-studio/cli-android-arm64",
28
+ "win32-x64": "@nibi-studio/cli-win32-x64-msvc",
24
29
  });
25
30
 
26
31
  /** 与 Rust 端 `update::install::MARKERS` 的顺序一致(pnpm 先于 npm,npm 先于 bun)。 */
@@ -30,7 +35,7 @@ const MANAGER_MARKERS = Object.freeze([
30
35
  ["NIBI_MANAGED_BY_BUN", "bun"],
31
36
  ]);
32
37
 
33
- /** 转发给子进程的信号。SIGBREAK 只在 Windows 有意义,而 Windows 没有平台包。 */
38
+ /** 转发给子进程的信号;Windows 用 SIGINT/SIGTERM 即可,SIGBREAK 不转发。 */
34
39
  export const FORWARDED_SIGNALS = Object.freeze(["SIGINT", "SIGTERM", "SIGHUP", "SIGQUIT"]);
35
40
 
36
41
  /**
@@ -63,10 +68,11 @@ export function resolvePlatformBinary({
63
68
  } = {}) {
64
69
  const packageName = platformPackageName({ platform, arch });
65
70
  const require = createRequire(requireFrom);
71
+ const binaryFileName = platform === "win32" ? "nibi.exe" : "nibi-rs";
66
72
  try {
67
73
  return {
68
74
  packageName,
69
- binaryPath: require.resolve(`${packageName}/bin/nibi-rs`),
75
+ binaryPath: require.resolve(`${packageName}/bin/${binaryFileName}`),
70
76
  };
71
77
  } catch (cause) {
72
78
  throw new Error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nibi-studio/cli",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "NIBI CLI launcher for the native Rust kernel (nibi-rs)",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -21,10 +21,10 @@
21
21
  "node": ">=18.0.0"
22
22
  },
23
23
  "optionalDependencies": {
24
- "@nibi-studio/cli-linux-x64-gnu": "4.1.0",
25
- "@nibi-studio/cli-linux-arm64-gnu": "4.1.0",
26
- "@nibi-studio/cli-darwin-arm64": "4.1.0",
27
- "@nibi-studio/cli-android-arm64": "4.1.0"
24
+ "@nibi-studio/cli-linux-x64-gnu": "4.1.1",
25
+ "@nibi-studio/cli-linux-arm64-gnu": "4.1.1",
26
+ "@nibi-studio/cli-darwin-arm64": "4.1.1",
27
+ "@nibi-studio/cli-win32-x64-msvc": "4.1.1"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public"