@janvitos/pi-plan-build 0.1.11 → 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 +6 -6
- package/index.ts +0 -1
- package/package.json +1 -1
- package/utils.ts +1 -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 a rounded `╭─` top border and `│` rail, plus a mode/model/thinking metadata row and Pi's bottom border. 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.
|
|
@@ -111,18 +111,18 @@ npm test
|
|
|
111
111
|
npm pack --dry-run
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
The tests cover state decoding, safe plan paths, mutation restrictions, deferred transitions, mode rendering, session-based prompt history restoration, complete plan rendering, approval decisions, stop behavior, fresh-session handoff content, and question formatting.
|
|
114
|
+
The tests cover state decoding, safe plan paths, mutation restrictions, deferred transitions, mode and provider rendering, session-based prompt history restoration, complete plan rendering, approval decisions, stop behavior, fresh-session handoff content, and question formatting.
|
|
115
115
|
|
|
116
116
|
### Publishing
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
Releases are published through `.github/workflows/publish.yml`. Bump the version in `package.json`, commit the release, and push a matching semantic-version tag:
|
|
119
119
|
|
|
120
120
|
```bash
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
git tag vX.Y.Z
|
|
122
|
+
git push origin main vX.Y.Z
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
The `prepublishOnly` hook runs the test suite before
|
|
125
|
+
The tag triggers GitHub Actions to publish the public package to npm with trusted publishing and provenance. The `prepublishOnly` hook runs the test suite before publication.
|
|
126
126
|
|
|
127
127
|
## License
|
|
128
128
|
|
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
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.
|
|
44
|
+
? `${theme.fg("dim", " • ")}${options.modelName}${
|
|
46
45
|
options.modelProvider ? theme.fg("dim", ` [${options.modelProvider}]`) : ""
|
|
47
46
|
}`
|
|
48
47
|
: "";
|