@tekyzinc/gsd-t 2.11.2 → 2.11.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/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  All notable changes to GSD-T are documented here. Updated with each release.
4
4
 
5
+ ## [2.11.4] - 2026-02-12
6
+
7
+ ### Fixed
8
+ - First-run update check now fetches synchronously when no cache exists — notification shows immediately instead of requiring a second run
9
+
10
+ ## [2.11.3] - 2026-02-12
11
+
12
+ ### Changed
13
+ - Reduced update check cache duration from 24 hours to 1 hour — new releases are detected faster
14
+
5
15
  ## [2.11.2] - 2026-02-12
6
16
 
7
17
  ### Fixed
package/bin/gsd-t.js CHANGED
@@ -805,9 +805,25 @@ function checkForUpdates() {
805
805
  showUpdateNotice(cached.latest);
806
806
  }
807
807
 
808
- // Refresh cache in background if stale (older than 24h) or missing
809
- const isStale = !cached || (Date.now() - cached.timestamp) > 86400000;
810
- if (isStale) {
808
+ const isStale = !cached || (Date.now() - cached.timestamp) > 3600000;
809
+
810
+ if (!cached && isStale) {
811
+ // No cache at all — fetch synchronously so first run shows notification
812
+ try {
813
+ const result = execSync(
814
+ `${process.execPath} -e "const h=require('https');h.get('https://registry.npmjs.org/@tekyzinc/gsd-t/latest',{timeout:5000},(r)=>{let d='';r.on('data',(c)=>d+=c);r.on('end',()=>{try{process.stdout.write(JSON.parse(d).version)}catch{}})}).on('error',()=>{})"`,
815
+ { timeout: 8000, encoding: "utf8" }
816
+ ).trim();
817
+ if (result) {
818
+ fs.writeFileSync(UPDATE_CHECK_FILE,
819
+ JSON.stringify({ latest: result, timestamp: Date.now() }));
820
+ if (isNewerVersion(result, PKG_VERSION)) {
821
+ showUpdateNotice(result);
822
+ }
823
+ }
824
+ } catch { /* timeout or network error — skip */ }
825
+ } else if (isStale) {
826
+ // Cache exists but stale — refresh in background (non-blocking)
811
827
  const script = `
812
828
  const https = require("https");
813
829
  const fs = require("fs");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekyzinc/gsd-t",
3
- "version": "2.11.2",
3
+ "version": "2.11.4",
4
4
  "description": "GSD-T: Contract-Driven Development for Claude Code — 35 slash commands with backlog management, impact analysis, test sync, and milestone archival",
5
5
  "author": "Tekyz, Inc.",
6
6
  "license": "MIT",