nubos-pilot 0.5.1 → 0.5.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 (2) hide show
  1. package/bin/install.js +5 -3
  2. package/package.json +1 -1
package/bin/install.js CHANGED
@@ -166,7 +166,7 @@ function _writeToolsShim(projectRoot) {
166
166
  + ' process.stderr.write("nubos-pilot: tool binary fehlt unter " + TARGET + "\\nFix: npx nubos-pilot@latest update\\n");\n'
167
167
  + ' process.exit(1);\n'
168
168
  + '}\n'
169
- + 'require(TARGET);\n';
169
+ + 'require(TARGET).main();\n';
170
170
  fs.mkdirSync(shimDir, { recursive: true });
171
171
  atomicWriteFileSync(shimPath, body);
172
172
  try { fs.chmodSync(shimPath, 0o755); } catch {}
@@ -681,8 +681,10 @@ async function main() {
681
681
  return await runInstall({ cwd, mode: detectMode(cwd), flags });
682
682
  case '--dry-run':
683
683
  return await runInstall({ cwd, mode: detectMode(cwd), dryRun: true, flags });
684
- case 'update':
685
- return await runInstall({ cwd, mode: 'update', flags });
684
+ case 'update': {
685
+ const detected = detectMode(cwd);
686
+ return await runInstall({ cwd, mode: detected === 'init' ? 'init' : 'update', flags });
687
+ }
686
688
  case 'uninstall':
687
689
  return await runUninstall({ cwd, args: rest.slice(1) });
688
690
  case 'doctor': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nubos-pilot",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "AI-driven planning and execution tool for code projects",
5
5
  "homepage": "https://github.com/Nubos-AI/nubos-pilot",
6
6
  "repository": {