@vibe-validate/cli 0.15.0-rc.4 → 0.15.0-rc.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/dist/bin/vibe-validate +123 -0
- package/dist/bin/vibe-validate.d.ts +14 -0
- package/dist/bin/vibe-validate.d.ts.map +1 -0
- package/dist/bin/vibe-validate.js +123 -0
- package/dist/bin/vibe-validate.js.map +1 -0
- package/dist/bin/vv +123 -0
- package/dist/commands/cleanup.d.ts.map +1 -1
- package/dist/commands/cleanup.js +3 -28
- package/dist/commands/cleanup.js.map +1 -1
- package/dist/commands/history.d.ts.map +1 -1
- package/dist/commands/history.js +139 -43
- package/dist/commands/history.js.map +1 -1
- package/dist/commands/pre-commit.d.ts.map +1 -1
- package/dist/commands/pre-commit.js +0 -3
- package/dist/commands/pre-commit.js.map +1 -1
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +9 -8
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/state.d.ts.map +1 -1
- package/dist/commands/state.js +143 -79
- package/dist/commands/state.js.map +1 -1
- package/dist/commands/sync-check.d.ts.map +1 -1
- package/dist/commands/sync-check.js +2 -17
- package/dist/commands/sync-check.js.map +1 -1
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +2 -0
- package/dist/commands/validate.js.map +1 -1
- package/dist/schemas/run-result-schema.d.ts +5 -5
- package/dist/schemas/watch-pr-schema.d.ts +22 -22
- package/dist/schemas/watch-pr-schema.d.ts.map +1 -1
- package/dist/utils/runner-adapter.d.ts +1 -0
- package/dist/utils/runner-adapter.d.ts.map +1 -1
- package/dist/utils/runner-adapter.js +1 -0
- package/dist/utils/runner-adapter.js.map +1 -1
- package/dist/utils/temp-files.d.ts +3 -1
- package/dist/utils/temp-files.d.ts.map +1 -1
- package/dist/utils/temp-files.js +5 -22
- package/dist/utils/temp-files.js.map +1 -1
- package/dist/utils/tree-hash-output.d.ts +16 -0
- package/dist/utils/tree-hash-output.d.ts.map +1 -0
- package/dist/utils/tree-hash-output.js +42 -0
- package/dist/utils/tree-hash-output.js.map +1 -0
- package/dist/utils/validate-workflow.d.ts +1 -0
- package/dist/utils/validate-workflow.d.ts.map +1 -1
- package/dist/utils/validate-workflow.js +2 -3
- package/dist/utils/validate-workflow.js.map +1 -1
- package/dist/utils/yaml-output.d.ts +27 -0
- package/dist/utils/yaml-output.d.ts.map +1 -0
- package/dist/utils/yaml-output.js +44 -0
- package/dist/utils/yaml-output.js.map +1 -0
- package/package.json +9 -10
- package/run-result.schema.json +0 -1
- package/bin/vibe-validate +0 -131
- package/bin/vv +0 -131
- package/dist/utils/run-validation-with-cache.d.ts +0 -48
- package/dist/utils/run-validation-with-cache.d.ts.map +0 -1
- package/dist/utils/run-validation-with-cache.js +0 -123
- package/dist/utils/run-validation-with-cache.js.map +0 -1
- package/dist/utils/validation-cache.d.ts +0 -30
- package/dist/utils/validation-cache.d.ts.map +0 -1
- package/dist/utils/validation-cache.js +0 -57
- package/dist/utils/validation-cache.js.map +0 -1
- package/dist/vibe-validate +0 -131
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Smart vibe-validate wrapper with context-aware execution
|
|
4
|
+
*
|
|
5
|
+
* Automatically detects execution context and delegates to appropriate binary:
|
|
6
|
+
* - Developer mode: Inside vibe-validate repo → packages/cli/dist/bin.js (unpackaged dev build)
|
|
7
|
+
* - Local install: Project has vibe-validate → node_modules version (packaged)
|
|
8
|
+
* - Global install: Fallback → globally installed version (packaged)
|
|
9
|
+
*
|
|
10
|
+
* Works in both git and non-git directories. Non-git directories don't get
|
|
11
|
+
* caching but still get error extraction.
|
|
12
|
+
*/
|
|
13
|
+
import { existsSync } from 'node:fs';
|
|
14
|
+
import { dirname, join } from 'node:path';
|
|
15
|
+
import { spawnSync } from 'node:child_process';
|
|
16
|
+
import { fileURLToPath } from 'node:url';
|
|
17
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
18
|
+
const __dirname = dirname(__filename);
|
|
19
|
+
/**
|
|
20
|
+
* Find project root by walking up to .git directory
|
|
21
|
+
* Falls back to startDir if no git repo found
|
|
22
|
+
*
|
|
23
|
+
* @param startDir - Directory to start searching from
|
|
24
|
+
* @returns Project root directory path
|
|
25
|
+
*/
|
|
26
|
+
function findProjectRoot(startDir) {
|
|
27
|
+
let current = startDir;
|
|
28
|
+
while (true) {
|
|
29
|
+
const gitDir = join(current, '.git');
|
|
30
|
+
if (existsSync(gitDir)) {
|
|
31
|
+
return current; // Found git repo
|
|
32
|
+
}
|
|
33
|
+
const parent = dirname(current);
|
|
34
|
+
if (parent === current) {
|
|
35
|
+
// Reached filesystem root, no git found
|
|
36
|
+
return startDir;
|
|
37
|
+
}
|
|
38
|
+
current = parent;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Check if we're in vibe-validate repo (developer mode)
|
|
43
|
+
* Simple detection: both dist/vibe-validate and dist/bin.js must exist
|
|
44
|
+
*
|
|
45
|
+
* @param projectRoot - Root directory of the project
|
|
46
|
+
* @returns Path to bin.js if detected, null otherwise
|
|
47
|
+
*/
|
|
48
|
+
function getDevModeBinary(projectRoot) {
|
|
49
|
+
const wrapperPath = join(projectRoot, 'packages/cli/dist/vibe-validate');
|
|
50
|
+
const binPath = join(projectRoot, 'packages/cli/dist/bin.js');
|
|
51
|
+
// Both files must exist to confirm we're in vibe-validate repo
|
|
52
|
+
if (existsSync(wrapperPath) && existsSync(binPath)) {
|
|
53
|
+
return binPath;
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Find local vibe-validate installation in node_modules
|
|
59
|
+
* Walks up directory tree from project root
|
|
60
|
+
*
|
|
61
|
+
* @param projectRoot - Root directory to start searching from
|
|
62
|
+
* @returns Path to local bin.js if found, null otherwise
|
|
63
|
+
*/
|
|
64
|
+
function findLocalInstall(projectRoot) {
|
|
65
|
+
let current = projectRoot;
|
|
66
|
+
while (true) {
|
|
67
|
+
const localBin = join(current, 'node_modules/@vibe-validate/cli/dist/bin.js');
|
|
68
|
+
if (existsSync(localBin)) {
|
|
69
|
+
return localBin;
|
|
70
|
+
}
|
|
71
|
+
const parent = dirname(current);
|
|
72
|
+
if (parent === current) {
|
|
73
|
+
// Reached filesystem root
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
current = parent;
|
|
77
|
+
}
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Main entry point - detects context and executes appropriate binary
|
|
82
|
+
*/
|
|
83
|
+
function main() {
|
|
84
|
+
const cwd = process.cwd();
|
|
85
|
+
const args = process.argv.slice(2);
|
|
86
|
+
// Find project root (where .git is, or cwd if no git)
|
|
87
|
+
const projectRoot = findProjectRoot(cwd);
|
|
88
|
+
let binPath;
|
|
89
|
+
let context;
|
|
90
|
+
// Priority 1: Check for developer mode (inside vibe-validate repo)
|
|
91
|
+
const devBin = getDevModeBinary(projectRoot);
|
|
92
|
+
if (devBin) {
|
|
93
|
+
binPath = devBin;
|
|
94
|
+
context = 'dev';
|
|
95
|
+
}
|
|
96
|
+
// Priority 2: Check for local install (node_modules)
|
|
97
|
+
else {
|
|
98
|
+
const localBin = findLocalInstall(projectRoot);
|
|
99
|
+
if (localBin) {
|
|
100
|
+
binPath = localBin;
|
|
101
|
+
context = 'local';
|
|
102
|
+
}
|
|
103
|
+
// Priority 3: Use global install (this script's location)
|
|
104
|
+
else {
|
|
105
|
+
binPath = join(__dirname, '../bin.js');
|
|
106
|
+
context = 'global';
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
// Execute the binary with all arguments
|
|
110
|
+
const result = spawnSync(process.execPath, [binPath, ...args], {
|
|
111
|
+
stdio: 'inherit',
|
|
112
|
+
env: {
|
|
113
|
+
...process.env,
|
|
114
|
+
VV_CONTEXT: context, // Pass context for debugging (optional)
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
// Exit with same code as child process
|
|
118
|
+
const exitCode = result.status ?? 1;
|
|
119
|
+
process.exit(exitCode);
|
|
120
|
+
}
|
|
121
|
+
// Run main function
|
|
122
|
+
main();
|
|
123
|
+
//# sourceMappingURL=vibe-validate.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Smart vibe-validate wrapper with context-aware execution
|
|
4
|
+
*
|
|
5
|
+
* Automatically detects execution context and delegates to appropriate binary:
|
|
6
|
+
* - Developer mode: Inside vibe-validate repo → packages/cli/dist/bin.js (unpackaged dev build)
|
|
7
|
+
* - Local install: Project has vibe-validate → node_modules version (packaged)
|
|
8
|
+
* - Global install: Fallback → globally installed version (packaged)
|
|
9
|
+
*
|
|
10
|
+
* Works in both git and non-git directories. Non-git directories don't get
|
|
11
|
+
* caching but still get error extraction.
|
|
12
|
+
*/
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=vibe-validate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vibe-validate.d.ts","sourceRoot":"","sources":["../../src/bin/vibe-validate.ts"],"names":[],"mappings":";AACA;;;;;;;;;;GAUG"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Smart vibe-validate wrapper with context-aware execution
|
|
4
|
+
*
|
|
5
|
+
* Automatically detects execution context and delegates to appropriate binary:
|
|
6
|
+
* - Developer mode: Inside vibe-validate repo → packages/cli/dist/bin.js (unpackaged dev build)
|
|
7
|
+
* - Local install: Project has vibe-validate → node_modules version (packaged)
|
|
8
|
+
* - Global install: Fallback → globally installed version (packaged)
|
|
9
|
+
*
|
|
10
|
+
* Works in both git and non-git directories. Non-git directories don't get
|
|
11
|
+
* caching but still get error extraction.
|
|
12
|
+
*/
|
|
13
|
+
import { existsSync } from 'node:fs';
|
|
14
|
+
import { dirname, join } from 'node:path';
|
|
15
|
+
import { spawnSync } from 'node:child_process';
|
|
16
|
+
import { fileURLToPath } from 'node:url';
|
|
17
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
18
|
+
const __dirname = dirname(__filename);
|
|
19
|
+
/**
|
|
20
|
+
* Find project root by walking up to .git directory
|
|
21
|
+
* Falls back to startDir if no git repo found
|
|
22
|
+
*
|
|
23
|
+
* @param startDir - Directory to start searching from
|
|
24
|
+
* @returns Project root directory path
|
|
25
|
+
*/
|
|
26
|
+
function findProjectRoot(startDir) {
|
|
27
|
+
let current = startDir;
|
|
28
|
+
while (true) {
|
|
29
|
+
const gitDir = join(current, '.git');
|
|
30
|
+
if (existsSync(gitDir)) {
|
|
31
|
+
return current; // Found git repo
|
|
32
|
+
}
|
|
33
|
+
const parent = dirname(current);
|
|
34
|
+
if (parent === current) {
|
|
35
|
+
// Reached filesystem root, no git found
|
|
36
|
+
return startDir;
|
|
37
|
+
}
|
|
38
|
+
current = parent;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Check if we're in vibe-validate repo (developer mode)
|
|
43
|
+
* Simple detection: both dist/vibe-validate and dist/bin.js must exist
|
|
44
|
+
*
|
|
45
|
+
* @param projectRoot - Root directory of the project
|
|
46
|
+
* @returns Path to bin.js if detected, null otherwise
|
|
47
|
+
*/
|
|
48
|
+
function getDevModeBinary(projectRoot) {
|
|
49
|
+
const wrapperPath = join(projectRoot, 'packages/cli/dist/vibe-validate');
|
|
50
|
+
const binPath = join(projectRoot, 'packages/cli/dist/bin.js');
|
|
51
|
+
// Both files must exist to confirm we're in vibe-validate repo
|
|
52
|
+
if (existsSync(wrapperPath) && existsSync(binPath)) {
|
|
53
|
+
return binPath;
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Find local vibe-validate installation in node_modules
|
|
59
|
+
* Walks up directory tree from project root
|
|
60
|
+
*
|
|
61
|
+
* @param projectRoot - Root directory to start searching from
|
|
62
|
+
* @returns Path to local bin.js if found, null otherwise
|
|
63
|
+
*/
|
|
64
|
+
function findLocalInstall(projectRoot) {
|
|
65
|
+
let current = projectRoot;
|
|
66
|
+
while (true) {
|
|
67
|
+
const localBin = join(current, 'node_modules/@vibe-validate/cli/dist/bin.js');
|
|
68
|
+
if (existsSync(localBin)) {
|
|
69
|
+
return localBin;
|
|
70
|
+
}
|
|
71
|
+
const parent = dirname(current);
|
|
72
|
+
if (parent === current) {
|
|
73
|
+
// Reached filesystem root
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
current = parent;
|
|
77
|
+
}
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Main entry point - detects context and executes appropriate binary
|
|
82
|
+
*/
|
|
83
|
+
function main() {
|
|
84
|
+
const cwd = process.cwd();
|
|
85
|
+
const args = process.argv.slice(2);
|
|
86
|
+
// Find project root (where .git is, or cwd if no git)
|
|
87
|
+
const projectRoot = findProjectRoot(cwd);
|
|
88
|
+
let binPath;
|
|
89
|
+
let context;
|
|
90
|
+
// Priority 1: Check for developer mode (inside vibe-validate repo)
|
|
91
|
+
const devBin = getDevModeBinary(projectRoot);
|
|
92
|
+
if (devBin) {
|
|
93
|
+
binPath = devBin;
|
|
94
|
+
context = 'dev';
|
|
95
|
+
}
|
|
96
|
+
// Priority 2: Check for local install (node_modules)
|
|
97
|
+
else {
|
|
98
|
+
const localBin = findLocalInstall(projectRoot);
|
|
99
|
+
if (localBin) {
|
|
100
|
+
binPath = localBin;
|
|
101
|
+
context = 'local';
|
|
102
|
+
}
|
|
103
|
+
// Priority 3: Use global install (this script's location)
|
|
104
|
+
else {
|
|
105
|
+
binPath = join(__dirname, '../bin.js');
|
|
106
|
+
context = 'global';
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
// Execute the binary with all arguments
|
|
110
|
+
const result = spawnSync(process.execPath, [binPath, ...args], {
|
|
111
|
+
stdio: 'inherit',
|
|
112
|
+
env: {
|
|
113
|
+
...process.env,
|
|
114
|
+
VV_CONTEXT: context, // Pass context for debugging (optional)
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
// Exit with same code as child process
|
|
118
|
+
const exitCode = result.status ?? 1;
|
|
119
|
+
process.exit(exitCode);
|
|
120
|
+
}
|
|
121
|
+
// Run main function
|
|
122
|
+
main();
|
|
123
|
+
//# sourceMappingURL=vibe-validate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vibe-validate.js","sourceRoot":"","sources":["../../src/bin/vibe-validate.ts"],"names":[],"mappings":";AACA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAyB,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC;;;;;;GAMG;AACH,SAAS,eAAe,CAAC,QAAgB;IACvC,IAAI,OAAO,GAAG,QAAQ,CAAC;IAEvB,OAAO,IAAI,EAAE,CAAC;QACZ,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACrC,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;YACvB,OAAO,OAAO,CAAC,CAAC,iBAAiB;QACnC,CAAC;QAED,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QAChC,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;YACvB,wCAAwC;YACxC,OAAO,QAAQ,CAAC;QAClB,CAAC;QACD,OAAO,GAAG,MAAM,CAAC;IACnB,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AAC;QACX,OAAO,GAAG,MAAM,CAAC;QACjB,OAAO,GAAG,KAAK,CAAC;IAClB,CAAC;IACD,qDAAqD;SAChD,CAAC;QACJ,MAAM,QAAQ,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAC/C,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,GAAG,QAAQ,CAAC;YACnB,OAAO,GAAG,OAAO,CAAC;QACpB,CAAC;QACD,0DAA0D;aACrD,CAAC;YACJ,OAAO,GAAG,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;YACvC,OAAO,GAAG,QAAQ,CAAC;QACrB,CAAC;IACH,CAAC;IAED,wCAAwC;IACxC,MAAM,MAAM,GAA6B,SAAS,CAChD,OAAO,CAAC,QAAQ,EAChB,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,EAClB;QACE,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE;YACH,GAAG,OAAO,CAAC,GAAG;YACd,UAAU,EAAE,OAAO,EAAE,wCAAwC;SAC9D;KACF,CACF,CAAC;IAEF,uCAAuC;IACvC,MAAM,QAAQ,GAAW,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC;IAC5C,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACzB,CAAC;AAED,oBAAoB;AACpB,IAAI,EAAE,CAAC"}
|
package/dist/bin/vv
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Smart vibe-validate wrapper with context-aware execution
|
|
4
|
+
*
|
|
5
|
+
* Automatically detects execution context and delegates to appropriate binary:
|
|
6
|
+
* - Developer mode: Inside vibe-validate repo → packages/cli/dist/bin.js (unpackaged dev build)
|
|
7
|
+
* - Local install: Project has vibe-validate → node_modules version (packaged)
|
|
8
|
+
* - Global install: Fallback → globally installed version (packaged)
|
|
9
|
+
*
|
|
10
|
+
* Works in both git and non-git directories. Non-git directories don't get
|
|
11
|
+
* caching but still get error extraction.
|
|
12
|
+
*/
|
|
13
|
+
import { existsSync } from 'node:fs';
|
|
14
|
+
import { dirname, join } from 'node:path';
|
|
15
|
+
import { spawnSync } from 'node:child_process';
|
|
16
|
+
import { fileURLToPath } from 'node:url';
|
|
17
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
18
|
+
const __dirname = dirname(__filename);
|
|
19
|
+
/**
|
|
20
|
+
* Find project root by walking up to .git directory
|
|
21
|
+
* Falls back to startDir if no git repo found
|
|
22
|
+
*
|
|
23
|
+
* @param startDir - Directory to start searching from
|
|
24
|
+
* @returns Project root directory path
|
|
25
|
+
*/
|
|
26
|
+
function findProjectRoot(startDir) {
|
|
27
|
+
let current = startDir;
|
|
28
|
+
while (true) {
|
|
29
|
+
const gitDir = join(current, '.git');
|
|
30
|
+
if (existsSync(gitDir)) {
|
|
31
|
+
return current; // Found git repo
|
|
32
|
+
}
|
|
33
|
+
const parent = dirname(current);
|
|
34
|
+
if (parent === current) {
|
|
35
|
+
// Reached filesystem root, no git found
|
|
36
|
+
return startDir;
|
|
37
|
+
}
|
|
38
|
+
current = parent;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Check if we're in vibe-validate repo (developer mode)
|
|
43
|
+
* Simple detection: both dist/vibe-validate and dist/bin.js must exist
|
|
44
|
+
*
|
|
45
|
+
* @param projectRoot - Root directory of the project
|
|
46
|
+
* @returns Path to bin.js if detected, null otherwise
|
|
47
|
+
*/
|
|
48
|
+
function getDevModeBinary(projectRoot) {
|
|
49
|
+
const wrapperPath = join(projectRoot, 'packages/cli/dist/vibe-validate');
|
|
50
|
+
const binPath = join(projectRoot, 'packages/cli/dist/bin.js');
|
|
51
|
+
// Both files must exist to confirm we're in vibe-validate repo
|
|
52
|
+
if (existsSync(wrapperPath) && existsSync(binPath)) {
|
|
53
|
+
return binPath;
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Find local vibe-validate installation in node_modules
|
|
59
|
+
* Walks up directory tree from project root
|
|
60
|
+
*
|
|
61
|
+
* @param projectRoot - Root directory to start searching from
|
|
62
|
+
* @returns Path to local bin.js if found, null otherwise
|
|
63
|
+
*/
|
|
64
|
+
function findLocalInstall(projectRoot) {
|
|
65
|
+
let current = projectRoot;
|
|
66
|
+
while (true) {
|
|
67
|
+
const localBin = join(current, 'node_modules/@vibe-validate/cli/dist/bin.js');
|
|
68
|
+
if (existsSync(localBin)) {
|
|
69
|
+
return localBin;
|
|
70
|
+
}
|
|
71
|
+
const parent = dirname(current);
|
|
72
|
+
if (parent === current) {
|
|
73
|
+
// Reached filesystem root
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
current = parent;
|
|
77
|
+
}
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Main entry point - detects context and executes appropriate binary
|
|
82
|
+
*/
|
|
83
|
+
function main() {
|
|
84
|
+
const cwd = process.cwd();
|
|
85
|
+
const args = process.argv.slice(2);
|
|
86
|
+
// Find project root (where .git is, or cwd if no git)
|
|
87
|
+
const projectRoot = findProjectRoot(cwd);
|
|
88
|
+
let binPath;
|
|
89
|
+
let context;
|
|
90
|
+
// Priority 1: Check for developer mode (inside vibe-validate repo)
|
|
91
|
+
const devBin = getDevModeBinary(projectRoot);
|
|
92
|
+
if (devBin) {
|
|
93
|
+
binPath = devBin;
|
|
94
|
+
context = 'dev';
|
|
95
|
+
}
|
|
96
|
+
// Priority 2: Check for local install (node_modules)
|
|
97
|
+
else {
|
|
98
|
+
const localBin = findLocalInstall(projectRoot);
|
|
99
|
+
if (localBin) {
|
|
100
|
+
binPath = localBin;
|
|
101
|
+
context = 'local';
|
|
102
|
+
}
|
|
103
|
+
// Priority 3: Use global install (this script's location)
|
|
104
|
+
else {
|
|
105
|
+
binPath = join(__dirname, '../bin.js');
|
|
106
|
+
context = 'global';
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
// Execute the binary with all arguments
|
|
110
|
+
const result = spawnSync(process.execPath, [binPath, ...args], {
|
|
111
|
+
stdio: 'inherit',
|
|
112
|
+
env: {
|
|
113
|
+
...process.env,
|
|
114
|
+
VV_CONTEXT: context, // Pass context for debugging (optional)
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
// Exit with same code as child process
|
|
118
|
+
const exitCode = result.status ?? 1;
|
|
119
|
+
process.exit(exitCode);
|
|
120
|
+
}
|
|
121
|
+
// Run main function
|
|
122
|
+
main();
|
|
123
|
+
//# sourceMappingURL=vibe-validate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleanup.d.ts","sourceRoot":"","sources":["../../src/commands/cleanup.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMzC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"cleanup.d.ts","sourceRoot":"","sources":["../../src/commands/cleanup.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMzC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAsFrD;AAwID;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAyE7C"}
|
package/dist/commands/cleanup.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { cleanupMergedBranches } from '@vibe-validate/git';
|
|
7
7
|
import { cleanupOldTempFiles, getTempStorageInfo, formatBytes } from '../utils/temp-files.js';
|
|
8
|
-
import {
|
|
8
|
+
import { outputYamlResult } from '../utils/yaml-output.js';
|
|
9
9
|
import chalk from 'chalk';
|
|
10
10
|
export function cleanupCommand(program) {
|
|
11
11
|
const cleanup = program
|
|
@@ -26,22 +26,7 @@ export function cleanupCommand(program) {
|
|
|
26
26
|
});
|
|
27
27
|
// Output based on yaml flag
|
|
28
28
|
if (options.yaml) {
|
|
29
|
-
|
|
30
|
-
// Small delay to ensure stderr is flushed
|
|
31
|
-
await new Promise(resolve => setTimeout(resolve, 10));
|
|
32
|
-
// RFC 4627 separator
|
|
33
|
-
process.stdout.write('---\n');
|
|
34
|
-
// Write pure YAML
|
|
35
|
-
process.stdout.write(stringifyYaml(result));
|
|
36
|
-
// CRITICAL: Wait for stdout to flush before exiting
|
|
37
|
-
await new Promise(resolve => {
|
|
38
|
-
if (process.stdout.write('')) {
|
|
39
|
-
resolve();
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
process.stdout.once('drain', resolve);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
29
|
+
await outputYamlResult(result);
|
|
45
30
|
}
|
|
46
31
|
else {
|
|
47
32
|
// Human-friendly format
|
|
@@ -93,17 +78,7 @@ export function cleanupCommand(program) {
|
|
|
93
78
|
dryRun: options.dryRun,
|
|
94
79
|
};
|
|
95
80
|
if (options.yaml) {
|
|
96
|
-
await
|
|
97
|
-
process.stdout.write('---\n');
|
|
98
|
-
process.stdout.write(stringifyYaml(outputResult));
|
|
99
|
-
await new Promise(resolve => {
|
|
100
|
-
if (process.stdout.write('')) {
|
|
101
|
-
resolve();
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
process.stdout.once('drain', resolve);
|
|
105
|
-
}
|
|
106
|
-
});
|
|
81
|
+
await outputYamlResult(outputResult);
|
|
107
82
|
}
|
|
108
83
|
else {
|
|
109
84
|
displayTempCleanup(outputResult);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleanup.js","sourceRoot":"","sources":["../../src/commands/cleanup.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;A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AE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../src/commands/history.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmFpC;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA8CrD;AAmgBD;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAkM7C"}
|