zova-cli 1.2.75 → 1.2.79

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
@@ -1 +1,59 @@
1
1
  # zova-cli
2
+
3
+ This package is the thin Zova CLI entrypoint.
4
+
5
+ ## Purpose
6
+
7
+ From the monorepo root, `npm run zova` resolves to this package and launches the frontend-oriented CLI flow.
8
+
9
+ Primary entrypoint:
10
+
11
+ - `src/bin/zova.ts`
12
+
13
+ This entrypoint stays intentionally small. It validates the top-level environment and hands off to the Zova command runtime.
14
+
15
+ ## Source of truth
16
+
17
+ Do not treat this package as the full command catalog. The authoritative Zova command-family registry lives in:
18
+
19
+ - `../../packages-cli/cli-set-front/src/lib/commands.ts`
20
+
21
+ Inspect that file first when you need to know:
22
+
23
+ - which command families exist
24
+ - which command names are registered
25
+ - which command module implements each entry
26
+
27
+ Current top-level families include:
28
+
29
+ - `bin`
30
+ - `create`
31
+ - `init`
32
+ - `refactor`
33
+ - `tools`
34
+ - `openapi`
35
+
36
+ ## Where command details live
37
+
38
+ Each command module in `../../packages-cli/cli-set-front/src/lib/command/` provides the main CLI-facing metadata, including:
39
+
40
+ - `info.title`
41
+ - `info.usage`
42
+ - `options`
43
+
44
+ Representative example:
45
+
46
+ - `../../packages-cli/cli-set-front/src/lib/command/tools.metadata.ts`
47
+
48
+ ## Recommended navigation path
49
+
50
+ 1. start from `npm run zova`
51
+ 2. inspect `src/bin/zova.ts` only for top-level dispatch behavior
52
+ 3. inspect `cli-set-front/src/lib/commands.ts` for the authoritative catalog
53
+ 4. inspect the specific command module for usage and options
54
+
55
+ ## Canonical public reference
56
+
57
+ For the compact top-level overview shared across Vona and Zova, start with:
58
+
59
+ - `../../../cabloy-docs/reference/cli-reference.md`
package/dist/bin/zova.js CHANGED
@@ -1,27 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { ProcessHelper } from '@cabloy/process-helper';
3
- import semver from 'semver';
4
2
  import { ZovaCommand } from "../start.js";
5
- const pnpm_version = '10.19.0';
6
- const processHelper = new ProcessHelper(process.cwd());
7
3
  main();
8
- async function checkPnpm() {
9
- const res = await processHelper.spawnCmd({
10
- cmd: 'pnpm',
11
- args: ['--version'],
12
- options: {
13
- stdio: 'pipe',
14
- shell: true,
15
- dummy: true,
16
- },
17
- });
18
- const version = res.trimEnd();
19
- const lt = semver.lt(version, pnpm_version);
20
- if (lt) {
21
- throw new Error(`pnpm should >= ${pnpm_version}, current: ${version}`);
22
- }
23
- }
24
4
  async function main() {
25
- await checkPnpm();
26
5
  new ZovaCommand().start();
27
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-cli",
3
- "version": "1.2.75",
4
- "gitHead": "b2879af32ebdecaf6687854b0f7c1d94918919ef",
3
+ "version": "1.2.79",
4
+ "gitHead": "ca10457f38716ad28bf5918dd67c85dd1f7dc9d0",
5
5
  "description": "zova cli",
6
6
  "keywords": [
7
7
  "framework",
@@ -35,11 +35,11 @@
35
35
  "postpack": "clean-package restore"
36
36
  },
37
37
  "dependencies": {
38
- "@cabloy/cli": "^3.1.14",
39
- "@cabloy/process-helper": "^3.0.0",
38
+ "@cabloy/cli": "^3.1.18",
39
+ "@cabloy/process-helper": "^3.1.8",
40
40
  "fs-extra": "^11.3.5",
41
41
  "semver": "^7.6.2",
42
- "zova-cli-set-front": "^1.2.73"
42
+ "zova-cli-set-front": "^1.2.77"
43
43
  },
44
44
  "bin": {
45
45
  "zova": "dist/bin/zova.js"