@qmuse/qmuse-cli 1.0.10-dev.1 → 1.0.11

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.
@@ -130,7 +130,9 @@ export function envPolicyProvider(json = process.env.QMUSE_VERSION_POLICY) {
130
130
  }
131
131
  };
132
132
  }
133
- const POLICY_CACHE_TTL_MS = 6 * 60 * 60 * 1000;
133
+ // 版本策略缓存有效期:兼顾「每条命令不重复打 registry」与「新版本能较快触达用户」。
134
+ // 1 小时可在发版后一小时内覆盖绝大多数活跃用户;6 小时会让发版当天的大量用户错过提示。
135
+ const POLICY_CACHE_TTL_MS = 60 * 60 * 1000;
134
136
  /** 缓存目录:QMUSE_CLI_CACHE_DIR 可覆盖(测试与多环境隔离)。 */
135
137
  function policyCacheDir() {
136
138
  return process.env.QMUSE_CLI_CACHE_DIR ?? join(homedir(), '.cache', 'qmuse-cli');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qmuse/qmuse-cli",
3
- "version": "1.0.10-dev.1",
3
+ "version": "1.0.11",
4
4
  "description": "QMuse 命令行客户端:在本地创建/导入 React 项目、与 QMuse 对话、拉取发布与云端调试",
5
5
  "type": "module",
6
6
  "bin": {