@zhuan-ai/zhuanspec 2.11.12 → 2.11.13

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.
@@ -21,7 +21,9 @@ async function checkVersionUpdate() {
21
21
  const pkgPath = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', '..', '..', 'package.json');
22
22
  const pkgContent = JSON.parse(await fs.promises.readFile(pkgPath, 'utf-8'));
23
23
  const current = pkgContent.version;
24
- const { stdout } = await execAsync('npm view @zhuan-ai/zhuanspec version', { timeout: 5000 });
24
+ // 显式指定公共 npm registry,避免受用户本地 registry 或私有源同步延迟影响
25
+ // --cache-min=0 强制绕过本地 metadata 缓存,确保拿到真正的 latest
26
+ const { stdout } = await execAsync('npm view @zhuan-ai/zhuanspec version --registry https://registry.npmjs.org/ --cache-min=0', { timeout: 5000 });
25
27
  const latest = stdout.trim();
26
28
  if (!latest || !current)
27
29
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhuan-ai/zhuanspec",
3
- "version": "2.11.12",
3
+ "version": "2.11.13",
4
4
  "description": "AI-native system for spec-driven development",
5
5
  "keywords": [
6
6
  "zhuanspec",