gsd-code-first 1.0.1 → 1.0.4
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/bin/install.js
CHANGED
|
@@ -288,9 +288,9 @@ const banner = '\n' +
|
|
|
288
288
|
' ╚██████╔╝███████║██████╔╝\n' +
|
|
289
289
|
' ╚═════╝ ╚══════╝╚═════╝' + reset + '\n' +
|
|
290
290
|
'\n' +
|
|
291
|
-
'
|
|
292
|
-
'
|
|
293
|
-
'
|
|
291
|
+
' GSD Code-First ' + dim + 'v' + pkg.version + reset + '\n' +
|
|
292
|
+
' Code-first development fork of GSD — build first, annotate,\n' +
|
|
293
|
+
' iterate. For Claude Code, OpenCode, Gemini, Codex, Copilot, Antigravity, Cursor, and Windsurf.\n';
|
|
294
294
|
|
|
295
295
|
// Parse --config-dir argument
|
|
296
296
|
function parseConfigDirArg() {
|
|
@@ -4695,8 +4695,7 @@ function handleStatusline(settings, isInteractive, callback) {
|
|
|
4695
4695
|
* @returns {boolean} true if install succeeded
|
|
4696
4696
|
*/
|
|
4697
4697
|
function installSdk() {
|
|
4698
|
-
const
|
|
4699
|
-
const sdkPkg = `@gsd-build/sdk@${sdkVersion}`;
|
|
4698
|
+
const sdkPkg = `@gsd-build/sdk@latest`;
|
|
4700
4699
|
console.log(`\n ${cyan}Installing GSD SDK...${reset}`);
|
|
4701
4700
|
console.log(` ${dim}npm install -g ${sdkPkg}${reset}\n`);
|
|
4702
4701
|
try {
|
|
@@ -146,14 +146,14 @@ Proceed to install step (treat as version 0.0.0 for comparison).
|
|
|
146
146
|
Check npm for latest version:
|
|
147
147
|
|
|
148
148
|
```bash
|
|
149
|
-
npm view
|
|
149
|
+
npm view gsd-code-first version 2>/dev/null
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
**If npm check fails:**
|
|
153
153
|
```
|
|
154
154
|
Couldn't check for updates (offline or npm unavailable).
|
|
155
155
|
|
|
156
|
-
To update manually: `npx
|
|
156
|
+
To update manually: `npx gsd-code-first --global`
|
|
157
157
|
```
|
|
158
158
|
|
|
159
159
|
Exit.
|
|
@@ -252,17 +252,17 @@ RUNTIME_FLAG="--$TARGET_RUNTIME"
|
|
|
252
252
|
|
|
253
253
|
**If LOCAL install:**
|
|
254
254
|
```bash
|
|
255
|
-
npx -y
|
|
255
|
+
npx -y gsd-code-first@latest "$RUNTIME_FLAG" --local
|
|
256
256
|
```
|
|
257
257
|
|
|
258
258
|
**If GLOBAL install:**
|
|
259
259
|
```bash
|
|
260
|
-
npx -y
|
|
260
|
+
npx -y gsd-code-first@latest "$RUNTIME_FLAG" --global
|
|
261
261
|
```
|
|
262
262
|
|
|
263
263
|
**If UNKNOWN install:**
|
|
264
264
|
```bash
|
|
265
|
-
npx -y
|
|
265
|
+
npx -y gsd-code-first@latest --claude --global
|
|
266
266
|
```
|
|
267
267
|
|
|
268
268
|
Capture output. If install fails, show error and exit.
|
|
@@ -93,7 +93,7 @@ const child = spawn(process.execPath, ['-e', `
|
|
|
93
93
|
|
|
94
94
|
let latest = null;
|
|
95
95
|
try {
|
|
96
|
-
latest = execSync('npm view
|
|
96
|
+
latest = execSync('npm view gsd-code-first version', { encoding: 'utf8', timeout: 10000, windowsHide: true }).trim();
|
|
97
97
|
} catch (e) {}
|
|
98
98
|
|
|
99
99
|
const result = {
|