vibe-coding-master 0.2.11 → 0.2.13
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
|
@@ -50,9 +50,18 @@ From npm:
|
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
52
|
npm install -g vibe-coding-master
|
|
53
|
+
vcm --version
|
|
53
54
|
vcm
|
|
54
55
|
```
|
|
55
56
|
|
|
57
|
+
Useful CLI flags:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
vcm --help
|
|
61
|
+
vcm --version
|
|
62
|
+
vcm --host=127.0.0.1 --port=4173
|
|
63
|
+
```
|
|
64
|
+
|
|
56
65
|
From source:
|
|
57
66
|
|
|
58
67
|
```bash
|
|
@@ -16,6 +16,15 @@ export function renderProjectManagerHarnessRules() {
|
|
|
16
16
|
- Keep only one active role handoff at a time.
|
|
17
17
|
- Ask the user when user intent, priority, or approval is unclear.
|
|
18
18
|
- Ask the user when architect or reviewer reports a conflict with durable docs that requires user approval.
|
|
19
|
+
- Send bug reports, failing validation, runtime errors, and unclear defects to architect Debug Mode rather than coder or reviewer diagnosis.
|
|
20
|
+
|
|
21
|
+
### Debug Routing
|
|
22
|
+
|
|
23
|
+
- Route bugs, failing checks, build/runtime errors, unclear defects, and reviewer failure evidence to architect Debug Mode.
|
|
24
|
+
- Do not diagnose root cause or judge fix size; provide symptom, reproduction steps, failing command or log, expected vs actual behavior, task/worktree, and user constraints.
|
|
25
|
+
- If architect completes a Debug Mode fix, route to reviewer for independent final validation before final acceptance.
|
|
26
|
+
- If architect reports that the fix exceeds Debug Mode limits or requires new module, new public surface, or new cross-file callable surface, resume the normal code-change flow: architect plan -> coder -> reviewer.
|
|
27
|
+
- If Debug Mode finds durable docs or known-issues impact, keep the normal docs-sync gate after reviewer.
|
|
19
28
|
|
|
20
29
|
### Worktree
|
|
21
30
|
|
package/dist/main.js
CHANGED
|
@@ -10,9 +10,15 @@ export function parseMainArgs(argv) {
|
|
|
10
10
|
if (arg === "--dev") {
|
|
11
11
|
options.dev = true;
|
|
12
12
|
}
|
|
13
|
+
else if (arg === "--help" || arg === "-h") {
|
|
14
|
+
options.help = true;
|
|
15
|
+
}
|
|
13
16
|
else if (arg === "--open") {
|
|
14
17
|
options.open = true;
|
|
15
18
|
}
|
|
19
|
+
else if (arg === "--version" || arg === "-v") {
|
|
20
|
+
options.version = true;
|
|
21
|
+
}
|
|
16
22
|
else if (arg.startsWith("--host=")) {
|
|
17
23
|
options.host = arg.slice("--host=".length);
|
|
18
24
|
}
|
|
@@ -24,6 +30,14 @@ export function parseMainArgs(argv) {
|
|
|
24
30
|
}
|
|
25
31
|
export async function main(argv = process.argv.slice(2)) {
|
|
26
32
|
const options = parseMainArgs(argv);
|
|
33
|
+
if (options.version) {
|
|
34
|
+
console.log(readPackageVersion());
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (options.help) {
|
|
38
|
+
console.log(renderHelp());
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
27
41
|
const backendPort = options.port ?? DEFAULT_BACKEND_PORT;
|
|
28
42
|
const host = options.host ?? "127.0.0.1";
|
|
29
43
|
const backend = await startServer({
|
|
@@ -60,6 +74,31 @@ export async function main(argv = process.argv.slice(2)) {
|
|
|
60
74
|
process.exit(0);
|
|
61
75
|
});
|
|
62
76
|
}
|
|
77
|
+
function readPackageVersion() {
|
|
78
|
+
const packageJsonPath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "package.json");
|
|
79
|
+
try {
|
|
80
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
|
|
81
|
+
if (typeof packageJson.version === "string" && packageJson.version.trim()) {
|
|
82
|
+
return packageJson.version;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
catch {
|
|
86
|
+
// Fall through to an explicit unknown version instead of starting the server.
|
|
87
|
+
}
|
|
88
|
+
return "unknown";
|
|
89
|
+
}
|
|
90
|
+
function renderHelp() {
|
|
91
|
+
return `Usage:
|
|
92
|
+
vcm [options]
|
|
93
|
+
|
|
94
|
+
Options:
|
|
95
|
+
--host=<host> Host to bind. Default: 127.0.0.1
|
|
96
|
+
--port=<port> Backend port. Default: ${DEFAULT_BACKEND_PORT}
|
|
97
|
+
--open Open behavior flag for compatible launchers.
|
|
98
|
+
--dev Start with Vite dev frontend.
|
|
99
|
+
-v, --version Print VCM version and exit.
|
|
100
|
+
-h, --help Print this help and exit.`;
|
|
101
|
+
}
|
|
63
102
|
function isMainModule() {
|
|
64
103
|
const argvPath = process.argv[1];
|
|
65
104
|
if (!argvPath) {
|
package/docs/product-design.md
CHANGED
|
@@ -168,12 +168,13 @@ The project manager owns:
|
|
|
168
168
|
- user communication
|
|
169
169
|
- task clarification
|
|
170
170
|
- role routing
|
|
171
|
+
- Debug Mode routing for bugs, failing checks, build/runtime errors, unclear defects, and reviewer failure evidence
|
|
171
172
|
- message dispatch
|
|
172
173
|
- handoff verification
|
|
173
174
|
- final acceptance
|
|
174
175
|
- commit and PR preparation after gates pass
|
|
175
176
|
|
|
176
|
-
The project manager must not become the architect, coder,
|
|
177
|
+
The project manager must not become the architect, coder, reviewer, or debugger for non-trivial work. PM routes debug evidence to architect and resumes normal gates after architect reports the debug disposition.
|
|
177
178
|
|
|
178
179
|
### Architect
|
|
179
180
|
|