@vodmal/vdx-cli 0.9.0 → 0.10.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vodmal/vdx-cli",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "vdx — unified lifecycle interface (up/down/build/test/check/fix) + versioned maturity audit with drift detection. Pairs with the vdx Claude Code plugin.",
5
5
  "keywords": [
6
6
  "vdx",
package/src/doctor.ts CHANGED
@@ -291,7 +291,8 @@ function checkVdx(): CheckResult {
291
291
  status: 'ok',
292
292
  level,
293
293
  message: `${tag} — \`npx -y -p @vodmal/vdx-cli vdx …\` works; bare \`vdx\` in a fresh shell does not`,
294
- remedy: 'npm i -g @vodmal/vdx-cli for shell-global command',
294
+ remedy:
295
+ 'npm i -g @vodmal/vdx-cli OR add `alias vdx="npx -y -p @vodmal/vdx-cli vdx"` to your shell rc (~/.zshrc / ~/.bashrc)',
295
296
  };
296
297
  }
297
298
  return {
@@ -300,7 +301,8 @@ function checkVdx(): CheckResult {
300
301
  status: 'ok',
301
302
  level,
302
303
  message: `${tag} — works inside this project only (${found})`,
303
- remedy: 'npm i -g @vodmal/vdx-cli for global shell access',
304
+ remedy:
305
+ 'npm i -g @vodmal/vdx-cli OR add `alias vdx="npx -y -p @vodmal/vdx-cli vdx"` to your shell rc',
304
306
  };
305
307
  }
306
308
 
package/src/index.ts CHANGED
@@ -36,8 +36,8 @@ function usage(): never {
36
36
  process.stderr.write(
37
37
  `Usage:
38
38
  vdx <up|down|build|test|check|fix> run lifecycle verb (via mise run <verb>)
39
- vdx audit <project_path> [--rubric <path>] [--stack <stack>] [--format=ansi|markdown|json] [--json]
40
- vdx init <project_path> [--stack <id>] [--baseline <ref>] [--dry-run] [--force]
39
+ vdx audit [project_path] [--rubric <path>] [--stack <stack>] [--format=ansi|markdown|json] [--json] (default: cwd)
40
+ vdx init [project_path] [--stack <id>] [--baseline <ref>] [--dry-run] [--force] (default: cwd)
41
41
  vdx publish <patch|minor|major> [--dry-run] [--force]
42
42
  vdx doctor [--format=ansi|markdown|json] [--json]
43
43
  `,
@@ -80,8 +80,7 @@ function parseArgs(argv: string[]): ParsedArgs {
80
80
  }
81
81
 
82
82
  function cmdAudit(opts: ParsedArgs): void {
83
- const projectArg = opts.positionals[0];
84
- if (!projectArg) usage();
83
+ const projectArg = opts.positionals[0] ?? '.';
85
84
  const projectRoot = path.resolve(projectArg);
86
85
 
87
86
  if (!looksLikeProject(projectRoot)) {
@@ -129,8 +128,7 @@ function cmdAudit(opts: ParsedArgs): void {
129
128
  }
130
129
 
131
130
  function cmdInit(opts: ParsedArgs): void {
132
- const projectArg = opts.positionals[0];
133
- if (!projectArg) usage();
131
+ const projectArg = opts.positionals[0] ?? '.';
134
132
  const projectRoot = path.resolve(projectArg);
135
133
 
136
134
  const baselineFlag = opts.flags.baseline;