@ia-ccun/code-agent-cli 0.0.30 → 0.0.33

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
@@ -169,11 +169,7 @@ async function checkForUpdates() {
169
169
  (latestParts[0] === localParts[0] && latestParts[1] > localParts[1]) ||
170
170
  (latestParts[0] === localParts[0] && latestParts[1] === localParts[1] && latestParts[2] > localParts[2]);
171
171
 
172
- if (needsUpdate) {
173
- console.log('\n\x1b[38;2;243;139;168m⚠️ 发现新版本 v%s → v%s\x1b[0m', localVersion, latestVersion);
174
- console.log('\n \x1b[38;2;166;227;161m运行以下命令更新:\x1b[0m');
175
- console.log(' \x1b[36mnpm install -g @ia-ccun/code-agent-cli\x1b[0m\n');
176
- }
172
+
177
173
 
178
174
  // 写入版本缓存
179
175
  try {
@@ -185,6 +185,12 @@ export default function (pi: ExtensionAPI) {
185
185
  segments.push(modelColored);
186
186
  segments.push(theme.fg("muted", quote));
187
187
 
188
+ // ── Version segment (rightmost) ─────────────────────────
189
+ const version = getVersion();
190
+ if (version) {
191
+ segments.push(theme.fg("muted", `v${version}`));
192
+ }
193
+
188
194
  const joined = segments.join(sep);
189
195
  return [truncateToWidth(joined, width)];
190
196
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ia-ccun/code-agent-cli",
3
- "version": "0.0.30",
3
+ "version": "0.0.33",
4
4
  "description": "AI Coding Agent CLI - 基于OpenClaw🦞底层Agent原理实现的的编码智能体(供学习使用)。",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",