zigrix 0.1.0-alpha.3 → 0.1.0-alpha.4
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 +30 -0
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,6 +36,36 @@ zigrix onboard
|
|
|
36
36
|
zigrix doctor
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
### Prerequisites: Node.js version
|
|
40
|
+
|
|
41
|
+
Zigrix requires Node.js **22 or later**. Verify before installing:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
node --version # must be v22.x or higher
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
If you use **nvm**, make sure the correct version is active:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
nvm use 22 # or: nvm use --lts
|
|
51
|
+
node --version # confirm v22+
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
> **Important (nvm users):** `npm link` binds `zigrix` to whichever Node version is active at install time.
|
|
55
|
+
> If you switch node versions later, re-run the install to rebind:
|
|
56
|
+
> ```bash
|
|
57
|
+
> npm run build && npm link
|
|
58
|
+
> ```
|
|
59
|
+
|
|
60
|
+
### Version mismatch troubleshooting
|
|
61
|
+
|
|
62
|
+
If `zigrix --version` shows an unexpected version after updating, rebuild and relink:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
npm run build && npm link
|
|
66
|
+
zigrix --version # should now match package.json
|
|
67
|
+
```
|
|
68
|
+
|
|
39
69
|
`zigrix onboard` will:
|
|
40
70
|
1. Create `~/.zigrix/` with default config
|
|
41
71
|
2. Detect OpenClaw and import agents from `openclaw.json`
|
package/dist/index.js
CHANGED
|
@@ -57,11 +57,12 @@ function loadRuntime(options) {
|
|
|
57
57
|
const loaded = loadConfig({ baseDir: options.baseDir, configPath: options.config });
|
|
58
58
|
return { ...loaded, paths: resolvePaths(loaded.config) };
|
|
59
59
|
}
|
|
60
|
+
const { version: pkgVersion } = JSON.parse(fs.readFileSync(new URL('../package.json', import.meta.url), 'utf-8'));
|
|
60
61
|
const program = new Command();
|
|
61
62
|
program
|
|
62
63
|
.name('zigrix')
|
|
63
64
|
.description('Zigrix — multi-project parallel task orchestration CLI')
|
|
64
|
-
.version(
|
|
65
|
+
.version(pkgVersion);
|
|
65
66
|
const config = program.command('config').description('Inspect Zigrix config');
|
|
66
67
|
const agent = program.command('agent').description('Manage Zigrix agent registry and orchestration membership');
|
|
67
68
|
const rule = program.command('rule').description('Inspect and validate rule assets');
|