Skip to content

Commit 319e96a

Browse files
committed
Release v0.1.13
1 parent 52ede7c commit 319e96a

5 files changed

Lines changed: 4 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A global [Pi coding agent](https://github.com/badlogic/pi-mono) extension that a
88

99
- New sessions start in **Build** mode.
1010
- 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.
1212
- `/plan`, `/build`, and the `--plan` startup flag.
1313
- Per-session plans at `~/.pi/agent/plans/<session-id>.md`.
1414
- In Plan mode, built-in `edit` and `write` are restricted to the exact plan file.

index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,6 @@ export default function planBuildModes(pi: ExtensionAPI): void {
495495
formatModeMetadata(selectedMode, pi.getThinkingLevel(), ctx.ui.theme, this.borderColor, {
496496
modelName: ctx.model?.id ?? "no-model",
497497
modelProvider: ctx.model?.provider,
498-
modelColor: (text) => ctx.ui.theme.fg("text", text),
499498
}),
500499
width,
501500
"",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@janvitos/pi-plan-build",
3-
"version": "0.1.12",
3+
"version": "0.1.13",
44
"description": "Plan safely, approve explicitly, then implement here or in a clean session.",
55
"type": "module",
66
"license": "MIT",

utils.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ test("mode composer uses colored rails and mode/thinking metadata", () => {
8686
formatModeMetadata("build", "medium", theme, thinkingColor, {
8787
modelName: "gpt-5.6-sol",
8888
modelProvider: "openai",
89-
modelColor: (text) => `\x1b[38;2;96;96;96m${text}\x1b[39m`,
9089
}),
91-
"\x1b[38;2;92;156;245m│\x1b[0m \x1b[38;2;92;156;245m\x1b[1mbuild\x1b[22m\x1b[0m\x1b[38;2;128;128;128m • \x1b[39m\x1b[38;2;96;96;96mgpt-5.6-sol\x1b[39m\x1b[38;2;128;128;128m [openai]\x1b[39m\x1b[38;2;128;128;128m • \x1b[39m\x1b[38;2;0;255;0mmedium\x1b[39m",
90+
"\x1b[38;2;92;156;245m│\x1b[0m \x1b[38;2;92;156;245m\x1b[1mbuild\x1b[22m\x1b[0m\x1b[38;2;128;128;128m • \x1b[39mgpt-5.6-sol\x1b[38;2;128;128;128m [openai]\x1b[39m\x1b[38;2;128;128;128m • \x1b[39m\x1b[38;2;0;255;0mmedium\x1b[39m",
9291
);
9392
});
9493

utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export interface ModeStatusTheme {
1616
export interface PromptMetadataOptions {
1717
modelName: string;
1818
modelProvider?: string;
19-
modelColor: (text: string) => string;
2019
}
2120

2221
function formatModeColor(mode: Mode, text: string): string {
@@ -42,7 +41,7 @@ export function formatModeMetadata(
4241
const label = MODE_LABELS[mode];
4342
const modeText = `\x1b[${label.color}m${theme.bold(label.text)}${ANSI_RESET}`;
4443
const modelText = options
45-
? `${theme.fg("dim", " • ")}${options.modelColor(options.modelName)}${
44+
? `${theme.fg("dim", " • ")}${options.modelName}${
4645
options.modelProvider ? theme.fg("dim", ` [${options.modelProvider}]`) : ""
4746
}`
4847
: "";

0 commit comments

Comments
 (0)