@ia-ccun/code-agent-cli 0.0.51-beta.12 → 0.0.51-beta.14
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 +4 -3
- package/config/agent/extensions/aicode-btw.ts +2273 -0
- package/config/agent/extensions/aicode-plan.ts +9 -3
- package/config/agent/extensions/msg-debug.ts +33 -9
- package/config/agent/help.md +23 -0
- package/config/agent/settings.json +0 -1
- package/dist/banner.d.ts +5 -1
- package/dist/banner.d.ts.map +1 -1
- package/dist/banner.js +106 -7
- package/dist/banner.js.map +1 -1
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/package.json +1 -1
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
|
|