vona-cli-set-api 1.1.103 → 1.1.109

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,49 @@
1
1
  # vona-cli-set-api
2
+
3
+ This package contains the authoritative Vona command catalog for backend-oriented CLI workflows.
4
+
5
+ ## Source of truth
6
+
7
+ The top-level command-family registry lives in:
8
+
9
+ - `src/lib/commands.ts`
10
+
11
+ Inspect this file first when you need to answer:
12
+
13
+ - which Vona command families exist
14
+ - which command names are registered
15
+ - which command module implements each entry
16
+
17
+ Current families include:
18
+
19
+ - `default`
20
+ - `bin`
21
+ - `create`
22
+ - `init`
23
+ - `tools`
24
+
25
+ ## Command metadata surface
26
+
27
+ Each command module under `src/lib/command/` provides the main CLI-facing metadata for that command, typically including:
28
+
29
+ - `bean`
30
+ - `info.title`
31
+ - `info.usage`
32
+ - `options`
33
+
34
+ Representative example:
35
+
36
+ - `src/lib/command/bin.play.ts`
37
+
38
+ ## Recommended navigation path
39
+
40
+ 1. run `npm run vona`
41
+ 2. inspect `../cli/src/bin/vona.ts` for entry dispatch only
42
+ 3. inspect `src/lib/commands.ts` for the authoritative family map
43
+ 4. inspect the specific command module for usage and options
44
+
45
+ ## Public reference
46
+
47
+ For the compact top-level overview shared across Vona and Zova, see:
48
+
49
+ - `../../../cabloy-docs/reference/cli-reference.md`
@@ -22,7 +22,7 @@
22
22
  "files": ["assets", "dist", "src"],
23
23
  "scripts": {
24
24
  "clean": "rimraf dist tsconfig.build.tsbuildinfo",
25
- "tsc:publish": "npm run clean && vona :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
25
+ "tsc:publish": "npm run clean && node <%=argv.suite?'../../../../../':'../../../'%>packages-cli/cli/src/bin/vona.ts :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
26
26
  "prepublishOnly": "npm run tsc:publish",
27
27
  "prepack": "clean-package",
28
28
  "postpack": "clean-package restore && npm run clean"
package/dist/index.js CHANGED
@@ -918,11 +918,7 @@ class CliBinTest extends BeanCliBase {
918
918
  // globs
919
919
  let patterns;
920
920
  if (argv._.length > 0) {
921
- patterns = argv._.map(item => {
922
- if (item.startsWith('src/')) return item;
923
- if (item.startsWith('vona/src/')) return item.substring('vona/'.length);
924
- return `src/**/test/**/${item}`;
925
- });
921
+ patterns = this._normalizeTestPatterns(argv._);
926
922
  } else {
927
923
  patterns = this._combineTestPatterns(projectPath, modulesMeta);
928
924
  }
@@ -967,6 +963,19 @@ class CliBinTest extends BeanCliBase {
967
963
  });
968
964
  });
969
965
  }
966
+ _normalizeTestPatterns(items) {
967
+ return items.flatMap(item => this._normalizeTestPattern(item));
968
+ }
969
+ _normalizeTestPattern(item) {
970
+ item = item.replaceAll('\\', '/');
971
+ if (item.startsWith('./')) item = item.substring(2);
972
+ if (item.startsWith('src/')) return item;
973
+ if (item.startsWith('vona/src/')) return item.substring('vona/'.length);
974
+ if (item.includes('/test/')) {
975
+ return [`src/module/${item}`, `src/**/modules/${item}`];
976
+ }
977
+ return `src/**/test/**/${item}`;
978
+ }
970
979
  _combineTestPatterns(projectPath, modulesMeta) {
971
980
  const patterns = [];
972
981
  for (const moduleName in modulesMeta.modules) {
@@ -2780,8 +2789,8 @@ var binBuild = {
2780
2789
  bean: 'bin.build',
2781
2790
  info: {
2782
2791
  version: '5.0.0',
2783
- title: 'Cli: Tools: Bin',
2784
- usage: 'npm run vona :bin:build -- [--workers=] [--flavor=] [--sourcemap=]'
2792
+ title: 'Cli: Bin: Build',
2793
+ usage: 'npm run vona :bin:build -- [--workers=] [--flavor=]'
2785
2794
  },
2786
2795
  options: {
2787
2796
  workers: {
@@ -2799,7 +2808,7 @@ var binBuildGeneral = {
2799
2808
  bean: 'bin.buildGeneral',
2800
2809
  info: {
2801
2810
  version: '5.0.0',
2802
- title: 'Cli: Tools: Bin',
2811
+ title: 'Cli: Bin: Build General',
2803
2812
  usage: 'npm run vona :bin:buildGeneral -- [--minify] [--sourcemap]'
2804
2813
  },
2805
2814
  options: {
@@ -2818,7 +2827,7 @@ var binBuildModule = {
2818
2827
  bean: 'bin.buildModule',
2819
2828
  info: {
2820
2829
  version: '5.0.0',
2821
- title: 'Cli: Tools: Bin',
2830
+ title: 'Cli: Bin: Build Module',
2822
2831
  usage: 'npm run vona :bin:buildModule -- [--minify] [--sourcemap]'
2823
2832
  },
2824
2833
  options: {
@@ -2872,7 +2881,7 @@ var binPlay = {
2872
2881
  info: {
2873
2882
  version: '5.0.0',
2874
2883
  title: 'Cli: Bin: Play',
2875
- usage: 'npm run vona :bin:play [index.ts] -- [--flavor=] [--retainRuntime=] [--attach]'
2884
+ usage: 'npm run vona :bin:play [index.ts] -- [--mode=] [--flavor=] [--retainRuntime] [--attach]'
2876
2885
  },
2877
2886
  options: {
2878
2887
  mode: {
@@ -2900,7 +2909,7 @@ var binTest = {
2900
2909
  info: {
2901
2910
  version: '5.0.0',
2902
2911
  title: 'Cli: Bin: Test',
2903
- usage: 'npm run vona :bin:test -- [--coverage=] [--flavor=]'
2912
+ usage: 'npm run vona :bin:test -- [--coverage] [--flavor=]'
2904
2913
  },
2905
2914
  options: {
2906
2915
  coverage: {
@@ -12,5 +12,7 @@ export declare class CliBinTest extends BeanCliBase {
12
12
  _test(projectPath: string): Promise<void>;
13
13
  _run(projectPath: string, modulesMeta: Awaited<ReturnType<typeof glob>>): Promise<void>;
14
14
  _outputCoverageReportViewer(projectPath: string): Promise<void>;
15
+ _normalizeTestPatterns(items: string[]): string[];
16
+ _normalizeTestPattern(item: string): string | string[];
15
17
  _combineTestPatterns(projectPath: string, modulesMeta: Awaited<ReturnType<typeof glob>>): string[];
16
18
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-cli-set-api",
3
- "version": "1.1.103",
4
- "gitHead": "7988acec56a1ade34ff3aaea78f152c72957e6af",
3
+ "version": "1.1.109",
4
+ "gitHead": "c7429e0d6a259341ae6e23d018b3238fb2483fdf",
5
5
  "description": "vona cli-set-api",
6
6
  "keywords": [
7
7
  "framework",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "scripts": {
34
34
  "clean": "rimraf dist dist-cli dist-toolsIsolate tsconfig.build.tsbuildinfo tsconfig.cli.tsbuildinfo tsconfig.isolate.tsbuildinfo",
35
- "tsc:publish": "npm run clean && vona :bin:buildGeneral && tsc -p tsconfig.build.json && tsc -p tsconfig.cli.json && tsc -p tsconfig.isolate.json",
35
+ "tsc:publish": "npm run clean && node ../cli/src/bin/vona.ts :bin:buildGeneral && tsc -p tsconfig.build.json && tsc -p tsconfig.cli.json && tsc -p tsconfig.isolate.json",
36
36
  "prepublishOnly": "npm run tsc:publish",
37
37
  "prepack": "clean-package",
38
38
  "postpack": "clean-package restore && npm run clean"
@@ -41,12 +41,12 @@
41
41
  "@babel/plugin-proposal-decorators": "^7.29.0",
42
42
  "@babel/plugin-transform-class-properties": "^7.28.6",
43
43
  "@babel/plugin-transform-typescript": "^7.28.6",
44
- "@cabloy/cli": "^3.1.14",
45
- "@cabloy/dotenv": "^1.2.5",
46
- "@cabloy/extend": "^3.2.5",
47
- "@cabloy/module-glob": "^5.3.10",
44
+ "@cabloy/cli": "^3.1.17",
45
+ "@cabloy/dotenv": "^1.2.8",
46
+ "@cabloy/extend": "^3.2.8",
47
+ "@cabloy/module-glob": "^5.3.13",
48
48
  "@cabloy/module-info": "^2.0.0",
49
- "@cabloy/utils": "^2.1.19",
49
+ "@cabloy/utils": "^2.1.22",
50
50
  "@cabloy/word-utils": "^2.1.8",
51
51
  "@lcov-viewer/cli": "^1.3.0",
52
52
  "@rollup/plugin-alias": "^5.1.1",
@@ -73,7 +73,7 @@
73
73
  "ts-node-maintained": "^10.9.6",
74
74
  "urllib": "^4.9.0",
75
75
  "uuid": "^11.1.0",
76
- "vona-core": "^5.1.17",
76
+ "vona-core": "^5.1.23",
77
77
  "why-is-node-running": "^3.2.2",
78
78
  "yargs-parser": "^22.0.0"
79
79
  }