worclaude 1.2.7 → 1.2.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worclaude",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "CLI tool that scaffolds a comprehensive Claude Code workflow into any project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -24,9 +24,13 @@ function selfUpdate(latestVersion) {
24
24
  spinner.succeed(`worclaude updated to v${latestVersion}.`);
25
25
  return true;
26
26
  } catch (err) {
27
- spinner.fail('Self-update failed.');
28
- display.error(err.message);
29
- display.info('Try manually: npm install -g worclaude@latest');
27
+ spinner.fail('Self-update failed (permission denied).');
28
+ const msg = String(err.message || err);
29
+ if (msg.includes('EACCES') || msg.includes('permission denied') || msg.includes('EPERM')) {
30
+ display.info('Try: sudo npm install -g worclaude@latest');
31
+ } else {
32
+ display.info('Try manually: npm install -g worclaude@latest');
33
+ }
30
34
  return false;
31
35
  }
32
36
  }