vibe-coding-master 0.0.1 → 0.0.2

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.
Files changed (3) hide show
  1. package/README.md +23 -1
  2. package/dist/main.js +17 -2
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -40,7 +40,7 @@ Current V1 capabilities:
40
40
 
41
41
  ## Requirements
42
42
 
43
- - Node.js 20+.
43
+ - Node.js 20 LTS or 22+.
44
44
  - npm.
45
45
  - Git.
46
46
  - Claude Code installed and available as `claude` in the runtime environment.
@@ -52,6 +52,22 @@ python3 make g++ git bash
52
52
 
53
53
  ## Install
54
54
 
55
+ From npm:
56
+
57
+ ```bash
58
+ npm install -g vibe-coding-master
59
+ ```
60
+
61
+ Then start the packaged app:
62
+
63
+ ```bash
64
+ vcm
65
+ ```
66
+
67
+ The published package also installs `vcmctl`, which Claude Code role sessions use internally for VCM message bus commands.
68
+
69
+ From source:
70
+
55
71
  ```bash
56
72
  npm install
57
73
  ```
@@ -91,6 +107,12 @@ Then open:
91
107
  http://127.0.0.1:4173/
92
108
  ```
93
109
 
110
+ If installed globally from npm, `vcm` runs the production-style app and serves the GUI from the backend port:
111
+
112
+ ```text
113
+ http://127.0.0.1:4173/
114
+ ```
115
+
94
116
  ## Run In VS Code Dev Containers
95
117
 
96
118
  VCM works well inside a VS Code `devContainer` as long as VCM, Claude Code, and the target repository are all inside the same container filesystem.
package/dist/main.js CHANGED
@@ -1,6 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import fs from "node:fs";
1
3
  import path from "node:path";
2
4
  import { fileURLToPath } from "node:url";
3
- import { createServer as createViteDevServer } from "vite";
4
5
  import { DEFAULT_BACKEND_PORT, DEFAULT_FRONTEND_PORT } from "./shared/constants.js";
5
6
  import { getDefaultStaticDir, startServer } from "./backend/server.js";
6
7
  export function parseMainArgs(argv) {
@@ -33,6 +34,7 @@ export async function main(argv = process.argv.slice(2)) {
33
34
  });
34
35
  let vite;
35
36
  if (options.dev) {
37
+ const { createServer: createViteDevServer } = await import("vite");
36
38
  vite = await createViteDevServer({
37
39
  server: {
38
40
  host,
@@ -58,6 +60,19 @@ export async function main(argv = process.argv.slice(2)) {
58
60
  process.exit(0);
59
61
  });
60
62
  }
61
- if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1] ?? "")) {
63
+ function isMainModule() {
64
+ const argvPath = process.argv[1];
65
+ if (!argvPath) {
66
+ return false;
67
+ }
68
+ const modulePath = fileURLToPath(import.meta.url);
69
+ try {
70
+ return fs.realpathSync(argvPath) === fs.realpathSync(modulePath);
71
+ }
72
+ catch {
73
+ return path.resolve(argvPath) === modulePath;
74
+ }
75
+ }
76
+ if (isMainModule()) {
62
77
  void main();
63
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-coding-master",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Local GUI session cockpit for Claude Code role sessions.",
5
5
  "type": "module",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "vcmctl": "dist/cli/vcmctl.js"
16
16
  },
17
17
  "engines": {
18
- "node": ">=20"
18
+ "node": "^20.0.0 || >=22.0.0"
19
19
  },
20
20
  "publishConfig": {
21
21
  "access": "public"
@@ -33,7 +33,7 @@
33
33
  "e2e": "playwright test"
34
34
  },
35
35
  "dependencies": {
36
- "@fastify/static": "^7.0.4",
36
+ "@fastify/static": "^9.1.3",
37
37
  "@xterm/addon-fit": "^0.10.0",
38
38
  "@xterm/addon-web-links": "^0.11.0",
39
39
  "@xterm/xterm": "^5.5.0",