@janvitos/pi-plan-build 0.1.19 → 0.1.20
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 +1 -1
- package/index.ts +2 -2
- package/package.json +1 -1
- package/utils.ts +2 -2
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ A global [Pi coding agent](https://github.com/badlogic/pi-mono) extension that a
|
|
|
8
8
|
|
|
9
9
|
- New sessions start in **Build** mode.
|
|
10
10
|
- Bare `Tab` cycles **Build → Plan → Build**, while active autocomplete dropdowns retain Pi's normal Tab completion.
|
|
11
|
-
- The composer uses OpenCode prompt-inspired blue/orange mode colors on the rounded top-left border and left rail, complemented by Pi's border color on the right rail and rounded bottom-right border; dim rounded corners with color-matched
|
|
11
|
+
- The composer uses OpenCode prompt-inspired blue/orange mode colors on the rounded top-left border and left rail, complemented by Pi's border color on the right rail and rounded bottom-right border; dim rounded corners with color-matched horizontal `╌` and vertical `┆` segments bridge the borders at the top right and bottom left. It also includes a mode/model/thinking metadata row; cycling the thinking level updates this row without adding a duplicate status above the composer. The model is shown as `model-id [provider]` (for example, `gpt-5.6-luna [openai]`), with the model ID inheriting the terminal foreground like unselected entries in `/model` and the provider using the footer's dim text color. The footer keeps the remaining path and usage stats without duplicating model metadata.
|
|
12
12
|
- `/plan`, `/build`, and the `--plan` startup flag.
|
|
13
13
|
- Per-session plans at `~/.pi/agent/plans/<session-id>.md`.
|
|
14
14
|
- In Plan mode, built-in `edit` and `write` are restricted to the exact plan file.
|
package/index.ts
CHANGED
|
@@ -495,8 +495,8 @@ export default function planBuildModes(pi: ExtensionAPI): void {
|
|
|
495
495
|
|
|
496
496
|
const leftRail = `${formatModeRail(selectedMode)} `;
|
|
497
497
|
const rightRail = this.borderColor("│");
|
|
498
|
-
const topRightVerticalTransition = this.borderColor("
|
|
499
|
-
const bottomLeftVerticalTransition = formatModeRail(selectedMode, "
|
|
498
|
+
const topRightVerticalTransition = this.borderColor("┆");
|
|
499
|
+
const bottomLeftVerticalTransition = formatModeRail(selectedMode, "┆");
|
|
500
500
|
const metadata = truncateToWidth(
|
|
501
501
|
formatModeMetadata(selectedMode, pi.getThinkingLevel(), ctx.ui.theme, this.borderColor, {
|
|
502
502
|
modelName: ctx.model?.id ?? "no-model",
|
package/package.json
CHANGED
package/utils.ts
CHANGED
|
@@ -45,7 +45,7 @@ export function formatModeRail(mode: Mode, glyph = "│"): string {
|
|
|
45
45
|
|
|
46
46
|
export function formatModeTopBorder(mode: Mode, width: number, topRightCorner: string): string {
|
|
47
47
|
if (width <= 2) return "";
|
|
48
|
-
return `${formatModeColor(mode, `╭${"─".repeat(width - 3)}
|
|
48
|
+
return `${formatModeColor(mode, `╭${"─".repeat(width - 3)}╌`)}${topRightCorner}`;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export function formatModeMetadata(
|
|
@@ -116,7 +116,7 @@ export function renderModeComposer(
|
|
|
116
116
|
.map((line) => addRightRail(leftRailPrefix + line.slice(reservedPrefix.length)));
|
|
117
117
|
const ansiSequence = "(?:\\x1b\\[[0-?]*[ -/]*[@-~])*";
|
|
118
118
|
const bottomBorder = bottomLeftCorner + lineWidth.truncate(lines[bottomBorderIndex]!, width)
|
|
119
|
-
.replace(new RegExp(`^(${ansiSequence}).${ansiSequence}.`, "u"), "$1
|
|
119
|
+
.replace(new RegExp(`^(${ansiSequence}).${ansiSequence}.`, "u"), "$1╌")
|
|
120
120
|
.replace(/.(?=(?:\x1b\[[0-?]*[ -/]*[@-~])*$)/u, "╯");
|
|
121
121
|
return [
|
|
122
122
|
topBorder,
|