@ia-ccun/code-agent-cli 0.0.51-beta.9 → 0.0.52-release

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/cli.js CHANGED
@@ -136,6 +136,10 @@ function replaceCLIVersionPlaceholder() {
136
136
  // 执行占位符替换
137
137
  replaceCLIVersionPlaceholder();
138
138
 
139
+ // 提前获取版本号(用于 banner 显示)
140
+ const localVersion = getLocalVersion();
141
+ process.env.AICODE_CLI_VERSION = localVersion || '';
142
+
139
143
  // 显示 Banner
140
144
  if (config.banner === '__default__' || config.banner !== '') {
141
145
  console.log(generateBanner(config.themeColor));
@@ -197,9 +201,6 @@ checkForUpdates();
197
201
  const piAgentPathUrl = new URL('../node_modules/@earendil-works/pi-coding-agent/dist/cli.js', import.meta.url);
198
202
  const piAgentPath = fileURLToPath(piAgentPathUrl); // 解码中文路径
199
203
 
200
- // 获取本地版本号
201
- const localVersion = getLocalVersion();
202
-
203
204
  // 获取版本缓存文件路径
204
205
  const versionCachePath = getVersionCachePath();
205
206