@ia-ccun/code-agent-cli 0.0.51-beta.6 → 0.0.51-beta.8
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.
|
@@ -558,7 +558,7 @@ export default function aicodePlan(pi: ExtensionAPI) {
|
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
const statusText = planModeEnabled
|
|
561
|
-
? ctx.ui.theme.fg("warning", "⏸ 计划") + ctx.ui.theme.fg("dim", " | plan (Ctrl+
|
|
561
|
+
? ctx.ui.theme.fg("warning", "⏸ 计划") + ctx.ui.theme.fg("dim", " | plan (Ctrl+Alt+P)")
|
|
562
562
|
: undefined;
|
|
563
563
|
ctx.ui.setStatus(STATUS_KEY, statusText);
|
|
564
564
|
updateTodoWidget(ctx);
|
|
@@ -584,6 +584,7 @@ export default function aicodePlan(pi: ExtensionAPI) {
|
|
|
584
584
|
pi.setActiveTools(planTools);
|
|
585
585
|
planModeEnabled = true;
|
|
586
586
|
setStatus(ctx);
|
|
587
|
+
pi.events.emit("aicode-plan:mode-changed", { planModeEnabled: true });
|
|
587
588
|
ctx.ui.notify(`计划模式已启用(只读): ${planTools.join(", ")}`, "info");
|
|
588
589
|
};
|
|
589
590
|
|
|
@@ -605,6 +606,7 @@ export default function aicodePlan(pi: ExtensionAPI) {
|
|
|
605
606
|
}
|
|
606
607
|
|
|
607
608
|
planModeEnabled = false;
|
|
609
|
+
pi.events.emit("aicode-plan:mode-changed", { planModeEnabled: false });
|
|
608
610
|
restoreNormalTools();
|
|
609
611
|
if (options.resetProgress) {
|
|
610
612
|
executionMode = false;
|
|
@@ -688,7 +690,7 @@ export default function aicodePlan(pi: ExtensionAPI) {
|
|
|
688
690
|
});
|
|
689
691
|
|
|
690
692
|
// 注册快捷键
|
|
691
|
-
pi.registerShortcut("ctrl+
|
|
693
|
+
pi.registerShortcut("ctrl+alt+p", {
|
|
692
694
|
description: "切换计划模式",
|
|
693
695
|
handler: async (ctx) => {
|
|
694
696
|
if (planModeEnabled) {
|