@silicaclaw/cli 1.0.0-beta.14 → 1.0.0-beta.15

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/CHANGELOG.md CHANGED
@@ -14,6 +14,8 @@
14
14
  - `silicaclaw update` guidance polish:
15
15
  - prioritize zero-setup `npx` flow
16
16
  - clarify global install is optional
17
+ - hide global-install recommendation during `npx` runtime to avoid repeated `EACCES` loops
18
+ - add explicit `command not found` alias guidance for first-run shells
17
19
  - README first-screen and structure polish:
18
20
  - fixed v1.0 beta project positioning
19
21
  - added concise feature summary
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silicaclaw/cli",
3
- "version": "1.0.0-beta.14",
3
+ "version": "1.0.0-beta.15",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -73,6 +73,7 @@ function canWriteGlobalPrefix() {
73
73
  }
74
74
 
75
75
  function showUpdateGuide(current, latest, beta) {
76
+ const npxRuntime = isNpxRun();
76
77
  console.log("SilicaClaw update check");
77
78
  console.log(`current: ${current}`);
78
79
  console.log(`latest : ${latest || "-"}`);
@@ -97,18 +98,20 @@ function showUpdateGuide(current, latest, beta) {
97
98
  console.log(" silicaclaw version");
98
99
  console.log("");
99
100
  const writableGlobal = canWriteGlobalPrefix();
100
- if (writableGlobal) {
101
+ if (!npxRuntime && writableGlobal) {
101
102
  console.log("3) global install mode (optional)");
102
103
  console.log(" npm i -g @silicaclaw/cli@beta");
103
104
  console.log(" silicaclaw version");
104
105
  console.log("");
105
- } else {
106
+ } else if (!npxRuntime) {
106
107
  console.log("Global install skipped: current npm global directory is not writable (likely EACCES).");
107
108
  console.log("Use npx or alias mode above.");
108
109
  console.log("");
109
110
  }
110
- if (isNpxRun()) {
111
+ if (npxRuntime) {
111
112
  console.log("Detected npx runtime: use npx commands above for immediate update.");
113
+ console.log("If `silicaclaw: command not found`, run:");
114
+ console.log("alias silicaclaw='npx -y @silicaclaw/cli@beta'");
112
115
  }
113
116
  }
114
117