@ia-ccun/code-agent-cli 0.0.41 → 0.0.43
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.
|
@@ -35,9 +35,9 @@ export default function (pi: ExtensionAPI) {
|
|
|
35
35
|
timeStr = `${mins}m ${secs}s`;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
//
|
|
38
|
+
// 格式化完整时间
|
|
39
39
|
const now = new Date();
|
|
40
|
-
const timeStr2 = `${String(now.getHours()).padStart(2, '0')}:${String(now.getMinutes()).padStart(2, '0')}:${String(now.getSeconds()).padStart(2, '0')}`;
|
|
40
|
+
const timeStr2 = `${now.getFullYear()}-${String(now.getMonth() + 1).padStart(2, '0')}-${String(now.getDate()).padStart(2, '0')} ${String(now.getHours()).padStart(2, '0')}:${String(now.getMinutes()).padStart(2, '0')}:${String(now.getSeconds()).padStart(2, '0')}`;
|
|
41
41
|
|
|
42
42
|
// agent_end 表示一轮对话结束,显示完成提示
|
|
43
43
|
ctx.ui.notify(`${timeStr2} | ✨ 消息处理完成 (${timeStr})`, "info");
|
|
@@ -202,7 +202,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
202
202
|
}
|
|
203
203
|
ctx.ui.notify("🔄 正在更新 aicode-cli...", "info");
|
|
204
204
|
const { exec } = await import("child_process");
|
|
205
|
-
exec("npm install -g @ia-ccun/
|
|
205
|
+
exec("npm install -g @ia-ccun/code-agent-cli", (error, stdout, stderr) => {
|
|
206
206
|
if (error) {
|
|
207
207
|
ctx.ui.notify(`❌ 更新失败: ${error.message},请重试`, "error");
|
|
208
208
|
} else {
|