vibe-coding-master 0.0.4 → 0.0.5

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.
@@ -135,11 +135,11 @@ export function createDefaultServerDeps(options = {}) {
135
135
  };
136
136
  }
137
137
  export function getDefaultStaticDir() {
138
- return path.resolve("dist-frontend");
138
+ return path.join(getAppRoot(), "dist-frontend");
139
139
  }
140
140
  function resolveVcmctlCommand() {
141
+ const appRoot = getAppRoot();
141
142
  const currentModulePath = fileURLToPath(import.meta.url);
142
- const appRoot = path.resolve(path.dirname(currentModulePath), "../..");
143
143
  const sourceCli = path.join(appRoot, "src", "cli", "vcmctl.ts");
144
144
  const tsxCli = path.join(appRoot, "node_modules", "tsx", "dist", "cli.mjs");
145
145
  if (currentModulePath.includes(`${path.sep}src${path.sep}`) && existsSync(tsxCli) && existsSync(sourceCli)) {
@@ -154,6 +154,9 @@ function resolveVcmctlCommand() {
154
154
  }
155
155
  return "vcmctl";
156
156
  }
157
+ function getAppRoot() {
158
+ return path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
159
+ }
157
160
  function quoteShellArg(value) {
158
161
  return `'${value.replace(/'/g, "'\\''")}'`;
159
162
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-coding-master",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Local GUI session cockpit for Claude Code role sessions.",
5
5
  "type": "module",
6
6
  "files": [