@hippox/codegenie 3.11.2026-alpha.4 → 3.11.2026-alpha.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 +11 -3
- package/lib/resolve-binary.js +2 -1
- package/package.json +5 -3
- package/platform-map.json +2 -0
package/README.md
CHANGED
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
npm install -g @hippox/codegenie
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
预发布渠道:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g @hippox/codegenie@beta
|
|
15
|
+
npm install -g @hippox/codegenie@alpha
|
|
16
|
+
```
|
|
17
|
+
|
|
11
18
|
安装完成后即可直接执行:
|
|
12
19
|
|
|
13
20
|
```bash
|
|
@@ -17,10 +24,11 @@ codegenie --version
|
|
|
17
24
|
说明:
|
|
18
25
|
|
|
19
26
|
- npm 安装会直接创建全局 `codegenie` 命令
|
|
27
|
+
- 如果 npm 因 optionalDependencies 配置跳过了平台包,安装脚本会自动补装当前平台包
|
|
20
28
|
- npm 安装阶段会预热 runtime assets;Windows 还会额外隐藏预热一次默认启动路径,因此安装时间会略长,但首次可见启动会更快
|
|
21
29
|
- 首次运行通常不再需要解包和安装依赖;首次进入某个工作区时,仍可能有少量项目级初始化
|
|
22
30
|
- 首次运行不会再把二进制复制到 `~/.codegenie/bin`
|
|
23
|
-
- npm
|
|
31
|
+
- npm 安装/升级会清理旧安装残留和临时更新残留
|
|
24
32
|
- `upgrade` 在 npm 安装场景下会提示或委托执行 npm 升级命令,不直接覆写 npm 全局目录
|
|
25
33
|
|
|
26
34
|
## 卸载
|
|
@@ -40,9 +48,9 @@ npm uninstall -g @hippox/codegenie
|
|
|
40
48
|
|
|
41
49
|
## 平台说明
|
|
42
50
|
|
|
43
|
-
当前 staged 平台包:`@hippox/codegenie-win32-x64`
|
|
51
|
+
当前 staged 平台包:`@hippox/codegenie-darwin-arm64`, `@hippox/codegenie-darwin-x64`, `@hippox/codegenie-win32-x64`
|
|
44
52
|
|
|
45
|
-
- `baseline`
|
|
53
|
+
- `baseline` 兼容构建不进入 npm 正式发布范围
|
|
46
54
|
|
|
47
55
|
## 发布说明
|
|
48
56
|
|
package/lib/resolve-binary.js
CHANGED
|
@@ -55,7 +55,8 @@ function resolveBinary() {
|
|
|
55
55
|
const hint = [
|
|
56
56
|
`[codegenie] Failed to locate installed binary package for ${process.platform}/${process.arch}.`,
|
|
57
57
|
`[codegenie] Expected package: ${packageName}`,
|
|
58
|
-
`[codegenie] Reinstall with \`npm install -g ${metaPackageName}
|
|
58
|
+
`[codegenie] Reinstall with \`npm install -g ${metaPackageName}\`.`,
|
|
59
|
+
`[codegenie] If your npm disables optionalDependencies, install \`${packageName}\` manually and retry.`,
|
|
59
60
|
].join("\n")
|
|
60
61
|
const wrapped = new Error(hint)
|
|
61
62
|
wrapped.cause = error
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hippox/codegenie",
|
|
3
|
-
"version": "3.11.2026-alpha.
|
|
3
|
+
"version": "3.11.2026-alpha.6",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "HarmonyOS AI 开发 CLI
|
|
5
|
+
"description": "HarmonyOS AI 开发 CLI,通过 npm 分发平台二进制",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"postinstall": "node ./bin/postinstall.js",
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
"ai"
|
|
27
27
|
],
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@hippox/codegenie-
|
|
29
|
+
"@hippox/codegenie-darwin-arm64": "3.11.2026-alpha.6",
|
|
30
|
+
"@hippox/codegenie-darwin-x64": "3.11.2026-alpha.6",
|
|
31
|
+
"@hippox/codegenie-win32-x64": "3.11.2026-alpha.6"
|
|
30
32
|
},
|
|
31
33
|
"publishConfig": {
|
|
32
34
|
"access": "public"
|