declare-cc 0.5.8 → 0.5.9

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
@@ -1514,6 +1514,18 @@ function install(isGlobal, runtime = 'claude') {
1514
1514
  failures.push('VERSION');
1515
1515
  }
1516
1516
 
1517
+ // Refresh update-check cache so the "update available" UI clears immediately
1518
+ try {
1519
+ const cacheDir = path.join(os.homedir(), '.claude', 'cache');
1520
+ fs.mkdirSync(cacheDir, { recursive: true });
1521
+ fs.writeFileSync(path.join(cacheDir, 'declare-update-check.json'), JSON.stringify({
1522
+ update_available: false,
1523
+ installed: pkg.version,
1524
+ latest: pkg.version,
1525
+ checked: Math.floor(Date.now() / 1000),
1526
+ }));
1527
+ } catch (e) { /* non-fatal */ }
1528
+
1517
1529
  // Write package.json to force CommonJS mode for GSD scripts
1518
1530
  // Prevents "require is not defined" errors when project has "type": "module"
1519
1531
  // Node.js walks up looking for package.json - this stops inheritance from project
@@ -1329,7 +1329,7 @@ var require_help = __commonJS({
1329
1329
  usage: "/declare:help"
1330
1330
  }
1331
1331
  ],
1332
- version: "0.5.8"
1332
+ version: "0.5.9"
1333
1333
  };
1334
1334
  }
1335
1335
  module2.exports = { runHelp: runHelp2 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "declare-cc",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "description": "A future-driven meta-prompting engine for agentic development, rooted in declared futures and causal graph structure.",
5
5
  "bin": {
6
6
  "declare-cc": "bin/install.js"