@janvitos/pi-plan-build 0.1.12 → 0.1.13

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 a rounded `╭─` top border and `│` rail, plus a mode/model/thinking metadata row and Pi's bottom border. The model is shown as `model-id [provider]` (for example, `gpt-5.6-luna [openai]`), with the provider in 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 a rounded `╭─` top border and `│` rail, plus a mode/model/thinking metadata row and Pi's bottom border. 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,7 +495,6 @@ export default function planBuildModes(pi: ExtensionAPI): void {
495
495
  formatModeMetadata(selectedMode, pi.getThinkingLevel(), ctx.ui.theme, this.borderColor, {
496
496
  modelName: ctx.model?.id ?? "no-model",
497
497
  modelProvider: ctx.model?.provider,
498
- modelColor: (text) => ctx.ui.theme.fg("text", text),
499
498
  }),
500
499
  width,
501
500
  "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@janvitos/pi-plan-build",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
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
@@ -16,7 +16,6 @@ export interface ModeStatusTheme {
16
16
  export interface PromptMetadataOptions {
17
17
  modelName: string;
18
18
  modelProvider?: string;
19
- modelColor: (text: string) => string;
20
19
  }
21
20
 
22
21
  function formatModeColor(mode: Mode, text: string): string {
@@ -42,7 +41,7 @@ export function formatModeMetadata(
42
41
  const label = MODE_LABELS[mode];
43
42
  const modeText = `\x1b[${label.color}m${theme.bold(label.text)}${ANSI_RESET}`;
44
43
  const modelText = options
45
- ? `${theme.fg("dim", " • ")}${options.modelColor(options.modelName)}${
44
+ ? `${theme.fg("dim", " • ")}${options.modelName}${
46
45
  options.modelProvider ? theme.fg("dim", ` [${options.modelProvider}]`) : ""
47
46
  }`
48
47
  : "";