@chenmk/superflow 0.5.1 → 0.5.2
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/INSTALL.en.md +1 -1
- package/INSTALL.md +1 -1
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/package.json +1 -1
- package/scripts/preinstall.js +7 -7
package/INSTALL.en.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install -g @chenmk/superflow
|
|
|
13
13
|
|
|
14
14
|
> **Node.js requirement:** Node.js 20 or later is required. If `node -v` is older,
|
|
15
15
|
> installation stops before command aliases are created. With nvm, run
|
|
16
|
-
> `nvm install
|
|
16
|
+
> `nvm install 20 && nvm use 20 && nvm alias default 20`, open a new terminal, and reinstall.
|
|
17
17
|
|
|
18
18
|
The repository `install.sh` and `install.ps1` scripts detect the Codex/Claude
|
|
19
19
|
Hosts actually installed and register their managed MCP entries together with
|
package/INSTALL.md
CHANGED
|
@@ -29,7 +29,7 @@ docs -> design -> implement -> verify -> archive
|
|
|
29
29
|
| Python | hook 中的 Python 脚本需要 | `python3 --version` |
|
|
30
30
|
|
|
31
31
|
> **Node 版本不足:** 安装会在创建命令前停止。若已安装 nvm,运行
|
|
32
|
-
> `nvm install
|
|
32
|
+
> `nvm install 20 && nvm use 20 && nvm alias default 20`,重新打开终端后再安装。
|
|
33
33
|
|
|
34
34
|
支持系统:
|
|
35
35
|
|
package/README.md
CHANGED
|
@@ -155,7 +155,7 @@ npm install -g @chenmk/superflow
|
|
|
155
155
|
```
|
|
156
156
|
|
|
157
157
|
> **Node.js requirement:** Node.js 20 or later is required. On an older runtime,
|
|
158
|
-
> installation stops before command aliases are created and prints Node
|
|
158
|
+
> installation stops before command aliases are created and prints Node 20 upgrade instructions.
|
|
159
159
|
|
|
160
160
|
For a source checkout, `bash install.sh` detects installed Codex, Claude, and
|
|
161
161
|
Codex and Claude Hosts and installs CLI, Skills/Hooks, and their managed MCP registrations
|
package/README.zh-CN.md
CHANGED
|
@@ -105,7 +105,7 @@ npm install -g @chenmk/superflow
|
|
|
105
105
|
# git clone https://github.com/.../superflow-cli && cd superflow-cli && bash install.sh
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
> **Node.js 要求:** 需要 Node.js 20+。版本不足时,安装会在创建命令前停止,并打印 Node
|
|
108
|
+
> **Node.js 要求:** 需要 Node.js 20+。版本不足时,安装会在创建命令前停止,并打印 Node 20 的升级和重装指引。
|
|
109
109
|
|
|
110
110
|
完整安装、初始化和日常使用教程见 [INSTALL.md](./INSTALL.md)。
|
|
111
111
|
|
package/package.json
CHANGED
package/scripts/preinstall.js
CHANGED
|
@@ -14,35 +14,35 @@ export function isSupportedNode(version) {
|
|
|
14
14
|
|
|
15
15
|
export function buildNodeVersionMessage(version, language) {
|
|
16
16
|
const commands = [
|
|
17
|
-
' nvm install
|
|
18
|
-
' nvm use
|
|
19
|
-
' nvm alias default
|
|
17
|
+
' nvm install 20',
|
|
18
|
+
' nvm use 20',
|
|
19
|
+
' nvm alias default 20',
|
|
20
20
|
].join('\n');
|
|
21
21
|
|
|
22
22
|
if (language === 'zh') {
|
|
23
23
|
return [
|
|
24
24
|
`[Superflow] 需要 Node.js ${MIN_NODE_MAJOR} 或更高版本,当前检测到 ${version}。`,
|
|
25
25
|
'',
|
|
26
|
-
'请先升级到 Node.js
|
|
26
|
+
'请先升级到 Node.js 20;Superflow 不会自动修改你的系统 Node。',
|
|
27
27
|
'若已安装 nvm,请运行:',
|
|
28
28
|
commands,
|
|
29
29
|
'',
|
|
30
30
|
'完成后重新打开终端,再运行:',
|
|
31
31
|
' npm install -g @chenmk/superflow',
|
|
32
|
-
'未安装 nvm 时,请用系统包管理器或 https://nodejs.org 安装 Node.js
|
|
32
|
+
'未安装 nvm 时,请用系统包管理器或 https://nodejs.org 安装 Node.js 20。',
|
|
33
33
|
].join('\n');
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
return [
|
|
37
37
|
`[Superflow] Node.js ${MIN_NODE_MAJOR} or later is required; detected ${version}.`,
|
|
38
38
|
'',
|
|
39
|
-
'Install Node.js
|
|
39
|
+
'Install Node.js 20 first. Superflow never changes your system Node automatically.',
|
|
40
40
|
'If nvm is already installed, run:',
|
|
41
41
|
commands,
|
|
42
42
|
'',
|
|
43
43
|
'Open a new terminal, then rerun:',
|
|
44
44
|
' npm install -g @chenmk/superflow',
|
|
45
|
-
'Without nvm, use your system package manager or https://nodejs.org to install Node.js
|
|
45
|
+
'Without nvm, use your system package manager or https://nodejs.org to install Node.js 20.',
|
|
46
46
|
].join('\n');
|
|
47
47
|
}
|
|
48
48
|
|