@janvitos/pi-plan-build 0.1.20 → 0.1.22

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 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 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.
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 `╌` segments bridge the borders at both junctions, paired with a light vertical `┆` at the top right and a heavier `┇` at the 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
@@ -496,7 +496,7 @@ export default function planBuildModes(pi: ExtensionAPI): void {
496
496
  const leftRail = `${formatModeRail(selectedMode)} `;
497
497
  const rightRail = this.borderColor("│");
498
498
  const topRightVerticalTransition = this.borderColor("┆");
499
- const bottomLeftVerticalTransition = formatModeRail(selectedMode, "");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@janvitos/pi-plan-build",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "Plan safely, approve explicitly, then implement here or in a clean session.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/utils.ts CHANGED
@@ -9,6 +9,7 @@ const MODE_LABELS: Record<Mode, { color: string; text: string }> = {
9
9
  };
10
10
 
11
11
  export interface ModeStatusTheme {
12
+ bold(text: string): string;
12
13
  fg(color: "dim", text: string): string;
13
14
  }
14
15
 
@@ -56,7 +57,7 @@ export function formatModeMetadata(
56
57
  options?: PromptMetadataOptions,
57
58
  ): string {
58
59
  const label = MODE_LABELS[mode];
59
- const modeText = `\x1b[${label.color}m${label.text}${ANSI_RESET}`;
60
+ const modeText = `\x1b[${label.color}m${theme.bold(label.text)}${ANSI_RESET}`;
60
61
  const modelText = options
61
62
  ? `${theme.fg("dim", " • ")}${options.modelName}${
62
63
  options.modelProvider ? theme.fg("dim", ` [${options.modelProvider}]`) : ""