@zhushanwen/pi-plan 0.4.8 → 0.5.0
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/README.md +41 -13
- package/package.json +16 -6
- package/skills/plan-ext-config/SKILL.md +86 -0
- package/src/__tests__/command.test.ts +290 -10
- package/src/__tests__/compact-criteria-array.test.ts +12 -8
- package/src/__tests__/compact-handler.test.ts +84 -35
- package/src/__tests__/enter.test.ts +172 -0
- package/src/__tests__/exec-skills.test.ts +397 -0
- package/src/__tests__/i18n.test.ts +57 -0
- package/src/__tests__/index.test.ts +228 -0
- package/src/__tests__/prompts.test.ts +74 -0
- package/src/__tests__/review.test.ts +489 -0
- package/src/__tests__/skills.test.ts +258 -0
- package/src/__tests__/state.test.ts +395 -16
- package/src/__tests__/templates.test.ts +203 -15
- package/src/__tests__/tool.test.ts +389 -73
- package/src/command.ts +220 -62
- package/src/compact.ts +43 -27
- package/src/enter.ts +133 -0
- package/src/exec-skills.ts +407 -0
- package/src/i18n.ts +70 -0
- package/src/index.ts +106 -5
- package/src/prompts.ts +151 -0
- package/src/state.ts +230 -8
- package/src/templates.ts +125 -7
- package/src/tool.ts +692 -110
- package/src/widget.ts +6 -1
package/src/widget.ts
CHANGED
|
@@ -2,8 +2,13 @@ import type { ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
|
2
2
|
|
|
3
3
|
import type { PlanState } from "./state.js";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* plan 模式的 TUI widget/status 指示。taiji rpc 宿主(GUI)恒清除不设——GUI 的模式态
|
|
7
|
+
* 由底部 PlanModeBar 常驻行承载,Composer 托盘 widget 区的 "[Plan Mode]" 文本与其冗余
|
|
8
|
+
* (2026-09-21 用户裁决去除);TUI 形态(独立 pi / 终端)保留原指示。
|
|
9
|
+
*/
|
|
5
10
|
export function updatePlanWidget(ctx: ExtensionContext, state: PlanState): void {
|
|
6
|
-
if (!state.isActive) {
|
|
11
|
+
if (ctx.mode === "rpc" || !state.isActive) {
|
|
7
12
|
ctx.ui.setWidget("plan-mode", undefined);
|
|
8
13
|
ctx.ui.setStatus("plan-mode", undefined);
|
|
9
14
|
return;
|