vibe-validate 0.19.5-rc.2 → 0.19.6
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/bin/vibe-validate +14 -5
- package/bin/vv +14 -5
- package/package.json +3 -3
package/bin/vibe-validate
CHANGED
|
@@ -7,11 +7,20 @@
|
|
|
7
7
|
* VV_ROOT_DIR=~/Workspaces/vibe-validate vibe-validate validate
|
|
8
8
|
*/
|
|
9
9
|
import { existsSync } from 'fs';
|
|
10
|
-
import {
|
|
10
|
+
import { createRequire } from 'node:module';
|
|
11
|
+
import { pathToFileURL } from 'url';
|
|
11
12
|
import { dirname, join } from 'path';
|
|
12
13
|
|
|
13
|
-
const
|
|
14
|
-
|
|
14
|
+
const require = createRequire(import.meta.url);
|
|
15
|
+
|
|
16
|
+
// Resolve the published @vibe-validate/cli wrapper via Node's module algorithm
|
|
17
|
+
// so this works under every install layout: npm flat, pnpm strict isolation,
|
|
18
|
+
// yarn berry PnP, bun. (Issue #161 — hardcoded relative paths only work under
|
|
19
|
+
// flat-hoisted node_modules.)
|
|
20
|
+
function resolvePublishedCliWrapper() {
|
|
21
|
+
const cliPkgJson = require.resolve('@vibe-validate/cli/package.json');
|
|
22
|
+
return join(dirname(cliPkgJson), 'dist/bin/vibe-validate.js');
|
|
23
|
+
}
|
|
15
24
|
|
|
16
25
|
// VV_ROOT_DIR override: use dev build's CLI wrapper instead of published one
|
|
17
26
|
// This lets developers test their local build against any project
|
|
@@ -24,10 +33,10 @@ if (vvRootDir) {
|
|
|
24
33
|
cliWrapperPath = devWrapper;
|
|
25
34
|
} else {
|
|
26
35
|
console.error(`[vv] VV_ROOT_DIR set but ${devWrapper} not found — ignoring`);
|
|
27
|
-
cliWrapperPath =
|
|
36
|
+
cliWrapperPath = resolvePublishedCliWrapper();
|
|
28
37
|
}
|
|
29
38
|
} else {
|
|
30
|
-
cliWrapperPath =
|
|
39
|
+
cliWrapperPath = resolvePublishedCliWrapper();
|
|
31
40
|
}
|
|
32
41
|
|
|
33
42
|
// Import and execute the CLI wrapper
|
package/bin/vv
CHANGED
|
@@ -7,11 +7,20 @@
|
|
|
7
7
|
* VV_ROOT_DIR=~/Workspaces/vibe-validate vv validate
|
|
8
8
|
*/
|
|
9
9
|
import { existsSync } from 'fs';
|
|
10
|
-
import {
|
|
10
|
+
import { createRequire } from 'node:module';
|
|
11
|
+
import { pathToFileURL } from 'url';
|
|
11
12
|
import { dirname, join } from 'path';
|
|
12
13
|
|
|
13
|
-
const
|
|
14
|
-
|
|
14
|
+
const require = createRequire(import.meta.url);
|
|
15
|
+
|
|
16
|
+
// Resolve the published @vibe-validate/cli wrapper via Node's module algorithm
|
|
17
|
+
// so this works under every install layout: npm flat, pnpm strict isolation,
|
|
18
|
+
// yarn berry PnP, bun. (Issue #161 — hardcoded relative paths only work under
|
|
19
|
+
// flat-hoisted node_modules.)
|
|
20
|
+
function resolvePublishedCliWrapper() {
|
|
21
|
+
const cliPkgJson = require.resolve('@vibe-validate/cli/package.json');
|
|
22
|
+
return join(dirname(cliPkgJson), 'dist/bin/vibe-validate.js');
|
|
23
|
+
}
|
|
15
24
|
|
|
16
25
|
// VV_ROOT_DIR override: use dev build's CLI wrapper instead of published one
|
|
17
26
|
// This lets developers test their local build against any project
|
|
@@ -24,10 +33,10 @@ if (vvRootDir) {
|
|
|
24
33
|
cliWrapperPath = devWrapper;
|
|
25
34
|
} else {
|
|
26
35
|
console.error(`[vv] VV_ROOT_DIR set but ${devWrapper} not found — ignoring`);
|
|
27
|
-
cliWrapperPath =
|
|
36
|
+
cliWrapperPath = resolvePublishedCliWrapper();
|
|
28
37
|
}
|
|
29
38
|
} else {
|
|
30
|
-
cliWrapperPath =
|
|
39
|
+
cliWrapperPath = resolvePublishedCliWrapper();
|
|
31
40
|
}
|
|
32
41
|
|
|
33
42
|
// Import and execute the CLI wrapper
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibe-validate",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.6",
|
|
4
4
|
"description": "Git-aware validation orchestration for vibe coding (LLM-assisted development) - umbrella package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"vibe-agent-toolkit": "^0.1.33",
|
|
65
|
-
"@vibe-validate/cli": "0.19.
|
|
66
|
-
"@vibe-validate/utils": "0.19.
|
|
65
|
+
"@vibe-validate/cli": "0.19.6",
|
|
66
|
+
"@vibe-validate/utils": "0.19.6"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/node": "^20.19.26",
|