@cnrai/pave 0.3.34 → 0.3.35

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 (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1543,8 +1543,9 @@ async function _spawnFromStatus(savedConfig, verb) {
1543
1543
  // Convert sleepMs back to duration string for CLI arg
1544
1544
  const sleepStr = _msToSleepArg(savedConfig.sleepMs);
1545
1545
 
1546
- // Build child args
1547
- const pavePath = path.join(__dirname, 'index.js');
1546
+ // Build child args — use the actual running script so this works from
1547
+ // both source (index.js) and bundled builds (dist/pave-full.js).
1548
+ const pavePath = process.argv[1] || path.join(__dirname, 'index.js');
1548
1549
  const childArgs = [
1549
1550
  pavePath, 'agent',
1550
1551
  '--name', savedConfig.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cnrai/pave",
3
- "version": "0.3.34",
3
+ "version": "0.3.35",
4
4
  "description": "Personal AI Virtual Environment - Terminal UI + OpenCode-Lite Server",
5
5
  "main": "index.js",
6
6
  "bin": {