@janvitos/pi-plan-build 0.1.21 → 0.1.23

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@janvitos/pi-plan-build",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
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,13 +57,13 @@ 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}]`) : ""
63
64
  }`
64
65
  : "";
65
- const thinkingSeparator = options ? " • " : " · ";
66
+ const thinkingSeparator = " • ";
66
67
  return `${options?.rail ?? formatModeRail(mode)} ${modeText}${modelText}${theme.fg("dim", thinkingSeparator)}${thinkingColor(thinkingLevel)}`;
67
68
  }
68
69