@narumitw/pi-starship 0.64.3 → 0.65.1

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 (36) hide show
  1. package/NOTICES.md +128 -4
  2. package/README.md +7 -3
  3. package/dist/chunks/{chunk-D563JANR.ts → chunk-D2YWQMYT.ts} +3 -3
  4. package/dist/chunks/{chunk-A65IOGL6.ts → chunk-I22B7QPQ.ts} +6 -4
  5. package/dist/chunks/chunk-I22B7QPQ.ts.map +7 -0
  6. package/dist/chunks/{chunk-UIKPE4UC.ts → chunk-YK4S4RRM.ts} +812 -106
  7. package/dist/chunks/chunk-YK4S4RRM.ts.map +7 -0
  8. package/dist/chunks/{command-configuration-menu-ZN2VXU4L.ts → command-configuration-menu-BJYQXV2U.ts} +3 -3
  9. package/dist/chunks/{command-settings-chat-V6OA2FB2.ts → command-settings-chat-42OTC7NJ.ts} +4 -4
  10. package/dist/chunks/{commands-OF4U3XWQ.ts → commands-ZL36J5TX.ts} +6 -6
  11. package/dist/index.ts +8 -4
  12. package/dist/index.ts.map +3 -3
  13. package/package.json +2 -2
  14. package/skills/configure-pi-starship/references/configuration.md +29 -8
  15. package/skills/configure-pi-starship/references/modules.md +1 -0
  16. package/skills/configure-pi-starship/references/runtime-and-security.md +2 -1
  17. package/src/modules/activity.ts +5 -3
  18. package/src/pi-starship.ts +8 -2
  19. package/src/presets/catalog.ts +67 -4
  20. package/src/presets/catppuccin-tmux.ts +84 -0
  21. package/src/presets/dracula-tmux.ts +83 -0
  22. package/src/presets/gruvbox-rainbow.ts +61 -38
  23. package/src/presets/jetpack.ts +1 -1
  24. package/src/presets/lualine-bubbles.ts +72 -0
  25. package/src/presets/lualine-evil.ts +93 -0
  26. package/src/presets/lualine-slanted-gaps.ts +73 -0
  27. package/src/presets/oh-my-posh-atomic.ts +88 -0
  28. package/src/presets/pastel-powerline.ts +52 -31
  29. package/src/presets/powerlevel10k-lean.ts +86 -0
  30. package/src/presets/tokyo-night.ts +51 -31
  31. package/dist/chunks/chunk-A65IOGL6.ts.map +0 -7
  32. package/dist/chunks/chunk-UIKPE4UC.ts.map +0 -7
  33. /package/dist/chunks/{chunk-D563JANR.ts.map → chunk-D2YWQMYT.ts.map} +0 -0
  34. /package/dist/chunks/{command-configuration-menu-ZN2VXU4L.ts.map → command-configuration-menu-BJYQXV2U.ts.map} +0 -0
  35. /package/dist/chunks/{command-settings-chat-V6OA2FB2.ts.map → command-settings-chat-42OTC7NJ.ts.map} +0 -0
  36. /package/dist/chunks/{commands-OF4U3XWQ.ts.map → commands-ZL36J5TX.ts.map} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-starship",
3
- "version": "0.64.3",
3
+ "version": "0.65.1",
4
4
  "description": "Native Starship-style TOML statusline and configuration skill for Pi.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "typecheck": "tsc --noEmit"
40
40
  },
41
41
  "dependencies": {
42
- "@narumitw/pi-tui-kit": "^0.68.0",
42
+ "@narumitw/pi-tui-kit": "^0.68.1",
43
43
  "re2js": "^2.9.0",
44
44
  "semver": "^7.8.5",
45
45
  "smol-toml": "^1.9.1",
@@ -139,24 +139,45 @@ A stale cooperative mutation lock is never removed automatically; after confirmi
139
139
  ### 🎛️ Presets
140
140
 
141
141
  Choose **Presets** from `/starship` to browse complete Pi-native starting points.
142
- The catalog adapts all styles listed by `starship preset --list` in Starship 1.26.0, plus a Pi-specific Minimal option.
143
- Colors, separators, typography, and layout follow the named Starship preset; modules are deliberately selected for Pi's model, thinking, workspace, Git, activity, context, and time snapshots.
142
+ The catalog combines Starship-inspired presets with Lualine, Tmux, Powerlevel10k, and Oh My Posh statusline adaptations, plus a Pi-specific Minimal option.
143
+ Colors, separators, typography, and layout follow the named upstream design; modules are deliberately selected for Pi's model, thinking, workspace, Git, activity, context, and time snapshots.
144
144
 
145
145
  | Preset | Adapted visual treatment | Font requirement |
146
146
  | --- | --- | --- |
147
147
  | **Minimal** | Compact Pi essentials | Standard Unicode |
148
148
  | **Bracketed Segments** | Balanced Pi and Git information in brackets | Standard Unicode |
149
149
  | **Catppuccin Powerline** | Connected Catppuccin Mocha blocks; other Catppuccin palettes remain in the document for customization | Nerd Font |
150
- | **Gruvbox Rainbow** | Warm Gruvbox connected segments | Nerd Font |
150
+ | **Catppuccin Tmux** | Single-row Mocha statusline with accent labels and dark rounded values | Nerd Font |
151
+ | **Dracula Tmux** | Full-width dark rail with vivid rectangular blocks | Standard Unicode |
152
+ | **Gruvbox Rainbow** | Warm connected segments above a separate activity and usage row | Nerd Font |
151
153
  | **Jetpack** | Airy geometric activity/context and workspace columns joined by fill | Standard Unicode |
154
+ | **Lualine Bubbles** | Violet Pi badge, gray workspace, and separate session pills | Nerd Font |
155
+ | **Lualine Eviline** | Flat dark statusline with colored text and blue edge bars | Standard Unicode |
156
+ | **Lualine Slanted Gaps** | Light statusline with opposing diagonal segments | Nerd Font |
152
157
  | **Nerd Font Symbols** | Balanced default layout with icon-rich symbols | Nerd Font |
153
158
  | **No Empty Icons** | Conditional text labels that cannot appear without their values | Standard Unicode |
154
159
  | **No Nerd Font** | Portable Unicode symbols without private-use glyphs | Standard Unicode |
155
- | **No Runtime Versions** | Presence indicators without model or thinking details | Standard Unicode |
156
- | **Pastel Powerline** | Connected magenta, coral, orange, blue, teal, and navy blocks | Nerd Font |
160
+ | **Session Indicators** | Hide model names, thinking levels, and activity details | Standard Unicode |
161
+ | **Oh My Posh Atomic** | Two-row frame with a warm chain and cool usage pills | Nerd Font |
162
+ | **Pastel Powerline** | Connected magenta, coral, peach, blue, teal, and navy blocks | Nerd Font |
157
163
  | **Plain Text Symbols** | Plain words replace pictograms | Standard Unicode |
158
- | **Pure Preset** | Clean two-line workspace and session context | Standard Unicode |
159
- | **Tokyo Night** | Connected cool blue Tokyo Night blocks | Nerd Font |
164
+ | **Powerlevel10k Lean** | Background-free workspace row above Pi session details | Standard Unicode |
165
+ | **Pure** | Clean two-line workspace and session context | Standard Unicode |
166
+ | **Tokyo Night** | Shaded lead-in and rounded blue-to-navy connected blocks | Nerd Font |
167
+
168
+ Session Indicators retains the `no-runtime-versions` ID, and Pure retains `pure-preset`.
169
+ Pastel Powerline, Gruvbox Rainbow, and Tokyo Night retain their preset IDs with refreshed layouts.
170
+ Existing active documents and profiles remain unchanged until an explicit application; an older copy can appear as **Custom configuration** because recognition compares exact document bytes.
171
+
172
+ These three refreshed designs and the seven Lualine, Tmux, Lean, and Atomic adaptations shorten model names and retain up to 22 model-label grapheme clusters, 18 branch-label graphemes, and two trailing directory components, subject to native directory contraction.
173
+ They show context from 0% when available and place at most two public extension statuses on a separate conditional line.
174
+ Eviline changes context color at 60% and 80%; the other nine retain fixed palette colors instead of the default context warning colors.
175
+
176
+ The adaptations replace editor mode, filename, cursor progress, shell runtimes, CPU, weather, and cloud fields with Pi identity, workspace, model, thinking, activity, token totals, context, or time.
177
+ Eviline uses thinking-level styles instead of Vim modes; Dracula uses rectangular segments; Lean wraps rather than hiding overlapping right content; Atomic uses real activity instead of command duration and keeps a fixed Git background.
178
+ Catppuccin Tmux keeps workspace details on the left and session details on the right of one logical row, so its default layout does not stack the rounded pills. Narrow terminals still wrap; public extension statuses retain their separate conditional line.
179
+ The light Slanted Gaps palette is intentional. Nerd Font glyph joins, terminal font metrics, and visual contrast still need review in the user's terminal.
180
+ These are visual adaptations, not compatibility with the upstream runtimes or their complete configuration formats; [NOTICES.md](../../../NOTICES.md) lists sources and licenses.
160
181
 
161
182
  Moving through the preset picker temporarily renders the selected preset in the footer without writing settings or starting collectors.
162
183
  Press Enter to confirm replacement, press `e` to edit the selected complete TOML document before preview and confirmation, or use the displayed `s` save-as-profile action without applying.
@@ -171,7 +192,7 @@ Use **Restore built-in…** for deterministic recovery.
171
192
 
172
193
  The bundled presets use only pi-starship's local Pi and Git snapshot modules.
173
194
  They do not enable the GitHub PR query, cloud/deployment readers, or optional command-backed workspace collectors.
174
- They are Pi-native adaptations of the color and format treatments emitted by Starship 1.26.0; they do not copy Starship's module selections because Pi exposes different runtime information.
195
+ They adapt upstream colors and layouts to Pi's runtime information; they do not execute or load Starship, Lualine, Tmux, Powerlevel10k, or Oh My Posh configurations.
175
196
  There is no `/starship preset` textual route and no remote preset download.
176
197
 
177
198
  ### 📝 Example
@@ -206,6 +206,7 @@ These are inert labels, not evidence of cluster access or valid credentials.
206
206
 
207
207
  - During a blocking extension UI prompt, `activity` sets `$state` to `waiting`, `$kind` to the prompt kind, and `$title` to the sanitized bounded title or an empty string.
208
208
  - Prompt waiting takes precedence without losing the underlying tool, streaming, completed, or idle state, which returns when the prompt closes.
209
+ - Active and completed tool names in `$tool` and `$text` are single-line display text: line separators become spaces, and terminal and direction controls are removed. Raw tool identities remain unchanged.
209
210
  - `tokens`, `cache`, and `cost` total every usage-bearing session entry, matching Pi's native footer.
210
211
  This includes assistant messages, nested-LLM tool results, compactions, and branch summaries, including abandoned branches retained in the session.
211
212
  - Cache `$read` and `$write` are cumulative.
@@ -238,7 +238,8 @@ style = "dimmed"
238
238
  Fill resolves independently on each logical line before ANSI serialization and wrapping.
239
239
  Multiple fills divide remaining cells left-to-right; complete positive-width patterns repeat and any remainder uses styled spaces.
240
240
  Empty/zero-width patterns become spaces.
241
- Fixed content is never truncated: when it already meets or exceeds the width, fill contributes zero and normal ANSI-aware wrapping applies.
241
+ When fixed content meets or exceeds the width, fill contributes zero and normal ANSI-aware wrapping applies.
242
+ A grapheme wider than the terminal cannot wrap safely; any resulting overwide row is truncated with `…` using Pi TUI utilities. Other wrapped rows remain unchanged.
242
243
  Unicode wide/combining symbols, palettes, `prev_fg`/`prev_bg`, ANSI, and OSC hyperlinks use Pi TUI visible-width semantics.
243
244
  `$all` deliberately includes enabled fill, so use `$all` only when that whole-catalog layout is intended.
244
245
  There is no `line_break` module; use literal newlines in `format`.
@@ -51,7 +51,8 @@ export const activityModule = defineModule({
51
51
 
52
52
  const active = [...runtime.activeTools.entries()];
53
53
  if (active.length > 0) {
54
- const [tool = "tool", count = 1] = active[0] ?? [];
54
+ const [rawTool = "tool", count = 1] = active[0] ?? [];
55
+ const tool = sanitizeTerminalText(rawTool);
55
56
  const suffix = count > 1 ? `×${count}` : "";
56
57
  const more = active.length > 1 ? `+${active.length - 1}` : "";
57
58
  return {
@@ -72,12 +73,13 @@ export const activityModule = defineModule({
72
73
  };
73
74
  }
74
75
  if (runtime.lastCompletedTool) {
76
+ const tool = sanitizeTerminalText(runtime.lastCompletedTool);
75
77
  return {
76
78
  state: "completed",
77
- tool: runtime.lastCompletedTool,
79
+ tool,
78
80
  count: "0",
79
81
  ...EMPTY_PROMPT_VALUES,
80
- text: `${symbol} completed ${runtime.lastCompletedTool}`,
82
+ text: `${symbol} completed ${tool}`,
81
83
  };
82
84
  }
83
85
  return {
@@ -5,7 +5,7 @@ import {
5
5
  getAgentDir,
6
6
  type ReadonlyFooterDataProvider,
7
7
  } from "@earendil-works/pi-coding-agent";
8
- import { getCapabilities, wrapTextWithAnsi } from "@earendil-works/pi-tui";
8
+ import { getCapabilities, truncateToWidth, visibleWidth, wrapTextWithAnsi } from "@earendil-works/pi-tui";
9
9
  import { completeStarshipArguments } from "./command-contract.js";
10
10
  import type { StarshipCommandOptions } from "./commands.js";
11
11
  import { type LoadedStarshipConfig, loadStarshipConfig, type StarshipConfig, settingsFilePath } from "./config.js";
@@ -192,6 +192,7 @@ export default function piStarship(pi: ExtensionAPI, options: PiStarshipOptions
192
192
  eventDebounceTimer = undefined;
193
193
  requestRefresh(target);
194
194
  }, EVENT_DEBOUNCE_MS);
195
+ eventDebounceTimer.unref();
195
196
  };
196
197
 
197
198
  function restartLocalControllers(target: RefreshTarget) {
@@ -372,6 +373,7 @@ export default function piStarship(pi: ExtensionAPI, options: PiStarshipOptions
372
373
  tui.requestRender();
373
374
  }, REFRESH_INTERVAL_MS)
374
375
  : undefined;
376
+ timer?.unref();
375
377
  let disposed = false;
376
378
 
377
379
  const dispose = () => {
@@ -755,7 +757,11 @@ function formatDiagnostics(loaded: LoadedStarshipConfig): string {
755
757
 
756
758
  export function wrapFormattedStatusline(format: string, width: number): string[] {
757
759
  if (width <= 0) return [];
758
- return wrapTextWithAnsi(format, width);
760
+ // Pi can keep a whole grapheme wider than the viewport. Bound only those
761
+ // residual rows; ordinary wrapping and its ANSI state remain unchanged.
762
+ return wrapTextWithAnsi(format, width).map((line) =>
763
+ visibleWidth(line) > width ? truncateToWidth(line, width, "…") : line,
764
+ );
759
765
  }
760
766
 
761
767
  export {
@@ -1,14 +1,21 @@
1
1
  import { BRACKETED_SEGMENTS_PRESET } from "./bracketed-segments.js";
2
2
  import { CATPPUCCIN_POWERLINE_PRESET } from "./catppuccin-powerline.js";
3
+ import { CATPPUCCIN_TMUX_PRESET } from "./catppuccin-tmux.js";
4
+ import { DRACULA_TMUX_PRESET } from "./dracula-tmux.js";
3
5
  import { GRUVBOX_RAINBOW_PRESET } from "./gruvbox-rainbow.js";
4
6
  import { JETPACK_PRESET } from "./jetpack.js";
7
+ import { LUALINE_BUBBLES_PRESET } from "./lualine-bubbles.js";
8
+ import { LUALINE_EVIL_PRESET } from "./lualine-evil.js";
9
+ import { LUALINE_SLANTED_GAPS_PRESET } from "./lualine-slanted-gaps.js";
5
10
  import { MINIMAL_PRESET } from "./minimal.js";
6
11
  import { NERD_FONT_SYMBOLS_PRESET } from "./nerd-font-symbols.js";
7
12
  import { NO_EMPTY_ICONS_PRESET } from "./no-empty-icons.js";
8
13
  import { NO_NERD_FONT_PRESET } from "./no-nerd-font.js";
9
14
  import { NO_RUNTIME_VERSIONS_PRESET } from "./no-runtime-versions.js";
15
+ import { OH_MY_POSH_ATOMIC_PRESET } from "./oh-my-posh-atomic.js";
10
16
  import { PASTEL_POWERLINE_PRESET } from "./pastel-powerline.js";
11
17
  import { PLAIN_TEXT_SYMBOLS_PRESET } from "./plain-text-symbols.js";
18
+ import { POWERLEVEL10K_LEAN_PRESET } from "./powerlevel10k-lean.js";
12
19
  import { PURE_PRESET } from "./pure-preset.js";
13
20
  import { TOKYO_NIGHT_PRESET } from "./tokyo-night.js";
14
21
 
@@ -17,14 +24,21 @@ export interface StarshipPreset {
17
24
  | "minimal"
18
25
  | "bracketed-segments"
19
26
  | "catppuccin-powerline"
27
+ | "catppuccin-tmux"
28
+ | "dracula-tmux"
20
29
  | "gruvbox-rainbow"
21
30
  | "jetpack"
31
+ | "lualine-bubbles"
32
+ | "lualine-evil"
33
+ | "lualine-slanted-gaps"
22
34
  | "nerd-font-symbols"
23
35
  | "no-empty-icons"
24
36
  | "no-nerd-font"
25
37
  | "no-runtime-versions"
38
+ | "oh-my-posh-atomic"
26
39
  | "pastel-powerline"
27
40
  | "plain-text-symbols"
41
+ | "powerlevel10k-lean"
28
42
  | "pure-preset"
29
43
  | "tokyo-night";
30
44
  label: string;
@@ -55,10 +69,24 @@ export const STARSHIP_PRESETS = [
55
69
  requiresNerdFont: true,
56
70
  rawDocument: CATPPUCCIN_POWERLINE_PRESET,
57
71
  },
72
+ {
73
+ id: "catppuccin-tmux",
74
+ label: "Catppuccin Tmux",
75
+ description: "Single-row Mocha statusline with rounded labels · requires Nerd Font",
76
+ requiresNerdFont: true,
77
+ rawDocument: CATPPUCCIN_TMUX_PRESET,
78
+ },
79
+ {
80
+ id: "dracula-tmux",
81
+ label: "Dracula Tmux",
82
+ description: "Dark full-width rail with vivid rectangular blocks · font-safe",
83
+ requiresNerdFont: false,
84
+ rawDocument: DRACULA_TMUX_PRESET,
85
+ },
58
86
  {
59
87
  id: "gruvbox-rainbow",
60
88
  label: "Gruvbox Rainbow",
61
- description: "Warm Gruvbox connected segments · requires Nerd Font",
89
+ description: "Warm connected segments above a Pi usage row · requires Nerd Font",
62
90
  requiresNerdFont: true,
63
91
  rawDocument: GRUVBOX_RAINBOW_PRESET,
64
92
  },
@@ -69,6 +97,27 @@ export const STARSHIP_PRESETS = [
69
97
  requiresNerdFont: false,
70
98
  rawDocument: JETPACK_PRESET,
71
99
  },
100
+ {
101
+ id: "lualine-bubbles",
102
+ label: "Lualine Bubbles",
103
+ description: "Violet Pi badge, gray workspace, and session pills · requires Nerd Font",
104
+ requiresNerdFont: true,
105
+ rawDocument: LUALINE_BUBBLES_PRESET,
106
+ },
107
+ {
108
+ id: "lualine-evil",
109
+ label: "Lualine Eviline",
110
+ description: "Flat dark statusline with colored text and blue edge bars · font-safe",
111
+ requiresNerdFont: false,
112
+ rawDocument: LUALINE_EVIL_PRESET,
113
+ },
114
+ {
115
+ id: "lualine-slanted-gaps",
116
+ label: "Lualine Slanted Gaps",
117
+ description: "Light statusline with opposing diagonal segments · requires Nerd Font",
118
+ requiresNerdFont: true,
119
+ rawDocument: LUALINE_SLANTED_GAPS_PRESET,
120
+ },
72
121
  {
73
122
  id: "nerd-font-symbols",
74
123
  label: "Nerd Font Symbols",
@@ -92,11 +141,18 @@ export const STARSHIP_PRESETS = [
92
141
  },
93
142
  {
94
143
  id: "no-runtime-versions",
95
- label: "No Runtime Versions",
96
- description: "Presence indicators without model or thinking details · font-safe",
144
+ label: "Session Indicators",
145
+ description: "Hide model names, thinking levels, and activity details · font-safe",
97
146
  requiresNerdFont: false,
98
147
  rawDocument: NO_RUNTIME_VERSIONS_PRESET,
99
148
  },
149
+ {
150
+ id: "oh-my-posh-atomic",
151
+ label: "Oh My Posh Atomic",
152
+ description: "Two-row frame with a warm chain and cool usage pills · requires Nerd Font",
153
+ requiresNerdFont: true,
154
+ rawDocument: OH_MY_POSH_ATOMIC_PRESET,
155
+ },
100
156
  {
101
157
  id: "pastel-powerline",
102
158
  label: "Pastel Powerline",
@@ -111,9 +167,16 @@ export const STARSHIP_PRESETS = [
111
167
  requiresNerdFont: false,
112
168
  rawDocument: PLAIN_TEXT_SYMBOLS_PRESET,
113
169
  },
170
+ {
171
+ id: "powerlevel10k-lean",
172
+ label: "Powerlevel10k Lean",
173
+ description: "Background-free workspace and Pi session rows · font-safe",
174
+ requiresNerdFont: false,
175
+ rawDocument: POWERLEVEL10K_LEAN_PRESET,
176
+ },
114
177
  {
115
178
  id: "pure-preset",
116
- label: "Pure Preset",
179
+ label: "Pure",
117
180
  description: "Clean two-line workspace and session context · font-safe",
118
181
  requiresNerdFont: false,
119
182
  rawDocument: PURE_PRESET,
@@ -0,0 +1,84 @@
1
+ export const CATPPUCCIN_TMUX_PRESET = `# Pi-native adaptation of Catppuccin Tmux.
2
+ # Source: https://github.com/catppuccin/tmux
3
+ # Original configuration: https://github.com/catppuccin/tmux/blob/main/catppuccin_options_tmux.conf
4
+ # Font: Nerd Font. See NOTICES.md for attribution and license terms.
5
+ # Use the rounded window style and colored status labels on one logical status row.
6
+ # Replace CPU, RAM, and uptime with model, thinking, context, and time.
7
+
8
+ format = "$brand$directory$git_branch$git_status\${fill}$model$thinking$activity$context$time(\\n$extension_status)"
9
+ palette = "catppuccin_mocha"
10
+
11
+ [palettes.catppuccin_mocha]
12
+ base = "#1e1e2e"
13
+ surface = "#313244"
14
+ text = "#cdd6f4"
15
+ mauve = "#cba6f7"
16
+ blue = "#89b4fa"
17
+ green = "#a6e3a1"
18
+ peach = "#fab387"
19
+ yellow = "#f9e2af"
20
+ muted = "#a6adc8"
21
+
22
+ [brand]
23
+ format = "([](fg:mauve)[ $symbol ]($style)[](fg:mauve) )"
24
+ style = "bold fg:base bg:mauve"
25
+ symbol = "π"
26
+
27
+ [directory]
28
+ format = "([](blue)[ dir ](fg:base bg:blue)[ $path ]($style)[](surface) )"
29
+ style = "fg:text bg:surface"
30
+ symbol = ""
31
+ truncation_length = 2
32
+ truncation_symbol = "…/"
33
+
34
+ [git_branch]
35
+ format = "([](green)[ git ](fg:base bg:green)[ $branch ]($style)[](surface) )"
36
+ style = "fg:text bg:surface"
37
+ symbol = ""
38
+ truncation_length = 18
39
+
40
+ [git_status]
41
+ format = "([ $all_status$ahead_behind ]($style))"
42
+ style = "fg:peach"
43
+
44
+ [activity]
45
+ format = "[$text ]($style)"
46
+ style = "fg:peach"
47
+ symbol = "●"
48
+
49
+ [model]
50
+ format = "([](mauve)[ ai ](fg:base bg:mauve)[ $model ]($style)[](surface) )"
51
+ style = "fg:text bg:surface"
52
+ symbol = "◆"
53
+ shorten_model = true
54
+ truncation_length = 22
55
+ truncation_direction = "middle"
56
+
57
+ [thinking]
58
+ format = "([](yellow)[ think ](fg:base bg:yellow)[ $level ]($style)[](surface) )"
59
+ style = "fg:text bg:surface"
60
+
61
+ [context]
62
+ format = "([](blue)[ ctx ](fg:base bg:blue)[ $percentage ]($style)[](surface) )"
63
+
64
+ [[context.display]]
65
+ threshold = 0
66
+ style = "fg:text bg:surface"
67
+ hidden = false
68
+
69
+ [time]
70
+ format = "([](peach)[ time ](fg:base bg:peach)[ $time ]($style)[](surface))"
71
+ style = "fg:text bg:surface"
72
+ time_format = "%H:%M"
73
+
74
+ [fill]
75
+ style = "fg:muted"
76
+ symbol = " "
77
+
78
+ [extension_status]
79
+ format = "([$statuses]($style))"
80
+ style = "fg:muted"
81
+ separator = " · "
82
+ max_statuses = 2
83
+ icons = { fallback = "" }
84
+ `;
@@ -0,0 +1,83 @@
1
+ export const DRACULA_TMUX_PRESET = `# Pi-native adaptation of Dracula Tmux.
2
+ # Source: https://draculatheme.com/tmux
3
+ # Original configuration: https://github.com/dracula/tmux/blob/master/scripts/dracula.sh
4
+ # Font: Standard Unicode. See NOTICES.md for attribution and license terms.
5
+ # Use Dracula's non-Powerline rectangular treatment. Replace system and weather plugins with local Pi activity, model, thinking, and context.
6
+
7
+ format = "[$brand$directory$git_branch$git_status\${fill}$activity$model$thinking$context$time](bg:bg)(\\n$extension_status)"
8
+ palette = "dracula"
9
+
10
+ [palettes.dracula]
11
+ bg = "#282a36"
12
+ gray = "#44475a"
13
+ white = "#f8f8f2"
14
+ purple = "#bd93f9"
15
+ cyan = "#8be9fd"
16
+ green = "#50fa7b"
17
+ pink = "#ff79c6"
18
+ yellow = "#f1fa8c"
19
+ muted = "#6272a4"
20
+
21
+ [brand]
22
+ format = "[ $symbol ]($style)"
23
+ style = "bold fg:bg bg:purple"
24
+ symbol = "π"
25
+
26
+ [directory]
27
+ format = "[ $path ]($style)"
28
+ style = "fg:white bg:gray"
29
+ symbol = "dir"
30
+ truncation_length = 2
31
+ truncation_symbol = "…/"
32
+
33
+ [git_branch]
34
+ format = "[ $symbol:$branch ]($style)"
35
+ style = "fg:pink bg:gray"
36
+ symbol = "git"
37
+ truncation_length = 18
38
+
39
+ [git_status]
40
+ format = "([ $all_status$ahead_behind ]($style))"
41
+ style = "fg:yellow bg:gray"
42
+
43
+ [activity]
44
+ format = "[ $state ]($style)"
45
+ style = "bold fg:bg bg:green"
46
+
47
+ [model]
48
+ format = "[ $model ]($style)"
49
+ style = "bold fg:bg bg:cyan"
50
+ symbol = "◆"
51
+ shorten_model = true
52
+ truncation_length = 22
53
+ truncation_direction = "middle"
54
+
55
+ [thinking]
56
+ format = "[ $level ]($style)"
57
+ style = "fg:bg bg:purple"
58
+
59
+ [context]
60
+ format = "[ ctx $percentage ]($style)"
61
+
62
+ [[context.display]]
63
+ threshold = 0
64
+ style = "bold fg:bg bg:pink"
65
+ hidden = false
66
+
67
+ [time]
68
+ format = "[ $time ]($style)"
69
+ style = "fg:white bg:gray"
70
+ time_format = "%H:%M"
71
+
72
+ [fill]
73
+ format = "[$symbol]($style)"
74
+ style = "bg:bg"
75
+ symbol = " "
76
+
77
+ [extension_status]
78
+ format = "([$statuses]($style))"
79
+ style = "fg:muted"
80
+ separator = " · "
81
+ max_statuses = 2
82
+ icons = { fallback = "" }
83
+ `;
@@ -1,66 +1,89 @@
1
- export const GRUVBOX_RAINBOW_PRESET = `# Pi-native adaptation of Starship's Gruvbox Rainbow preset.
2
- format = "[](color_orange)$brand$model[](bg:color_yellow fg:color_orange)$directory[](fg:color_yellow bg:color_aqua)$git_branch$git_status[](fg:color_aqua bg:color_blue)$thinking$activity[](fg:color_blue bg:color_bg3)$context[](fg:color_bg3 bg:color_bg1)$time[](fg:color_bg1)"
1
+ export const GRUVBOX_RAINBOW_PRESET = `# Pi-native adaptation of Gruvbox Rainbow.
2
+ # Source: https://starship.rs/presets/gruvbox-rainbow
3
+ # Original configuration: https://starship.rs/presets/toml/gruvbox-rainbow.toml
4
+ # Font: Nerd Font. See NOTICES.md for attribution and license terms.
5
+ # Keep Gruvbox color order. Move activity, tokens, context, and time to a second footer row instead of a shell input line.
6
+
7
+ format = "[](orange)$brand$directory([](fg:prev_bg bg:aqua)$git_branch$git_status)$model$thinking[](fg:prev_bg)\\n$activity\${fill}$tokens$context$time(\\n$extension_status)"
3
8
  palette = "gruvbox_dark"
4
9
 
5
10
  [palettes.gruvbox_dark]
6
- color_fg0 = "#fbf1c7"
7
- color_bg1 = "#3c3836"
8
- color_bg3 = "#665c54"
9
- color_blue = "#458588"
10
- color_aqua = "#689d6a"
11
- color_green = "#98971a"
12
- color_orange = "#d65d0e"
13
- color_purple = "#b16286"
14
- color_red = "#cc241d"
15
- color_yellow = "#d79921"
11
+ fg = "#fbf1c7"
12
+ bg = "#282828"
13
+ bg1 = "#3c3836"
14
+ bg3 = "#665c54"
15
+ orange = "#d65d0e"
16
+ yellow = "#d79921"
17
+ aqua = "#689d6a"
18
+ blue = "#458588"
19
+ green = "#b8bb26"
20
+ red = "#fb4934"
21
+ muted = "#a89984"
16
22
 
17
23
  [brand]
18
24
  format = "[ $symbol ]($style)"
19
- symbol = ""
20
- style = "fg:color_fg0 bg:color_orange bold"
21
-
22
- [model]
23
- format = "[$model ]($style)"
24
- symbol = ""
25
- style = "fg:color_fg0 bg:color_orange bold"
25
+ style = "bold fg:fg bg:orange"
26
+ symbol = "π"
26
27
 
27
28
  [directory]
28
- format = "[ $path ]($style)"
29
- symbol = ""
30
- style = "fg:color_fg0 bg:color_yellow bold"
31
- truncation_length = 3
29
+ format = "([](fg:prev_bg bg:yellow)[ $path ]($style))"
30
+ style = "bold fg:bg bg:yellow"
31
+ symbol = ""
32
+ truncation_length = 2
32
33
  truncation_symbol = "…/"
33
34
 
34
35
  [git_branch]
35
- format = "[ $symbol $branch ]($style)"
36
+ format = "([ $symbol $branch ]($style))"
37
+ style = "fg:bg bg:aqua"
36
38
  symbol = ""
37
- style = "fg:color_fg0 bg:color_aqua bold"
39
+ truncation_length = 18
38
40
 
39
41
  [git_status]
40
- format = "[$all_status$ahead_behind ]($style)"
41
- style = "fg:color_fg0 bg:color_aqua bold"
42
+ format = "([ $all_status$ahead_behind ]($style))"
43
+ style = "fg:bg bg:aqua"
44
+
45
+ [model]
46
+ format = "([](fg:prev_bg bg:blue)[ $model ]($style))"
47
+ style = "bold fg:fg bg:blue"
48
+ symbol = "◆"
49
+ shorten_model = true
50
+ truncation_length = 22
51
+ truncation_direction = "middle"
42
52
 
43
53
  [thinking]
44
- format = "[ $symbol $level ]($style)"
45
- symbol = "󰔟"
46
- style = "fg:color_fg0 bg:color_blue bold"
54
+ format = "([](fg:prev_bg bg:bg3)[ $level ]($style))"
55
+ style = "fg:fg bg:bg3"
47
56
 
48
57
  [activity]
49
58
  format = "[ $text ]($style)"
50
- symbol = "󰑮"
51
- style = "fg:color_fg0 bg:color_blue bold"
59
+ style = "fg:yellow"
60
+ symbol = "●"
61
+
62
+ [tokens]
63
+ format = "[↑$input ↓$output ]($style)"
64
+ style = "fg:aqua"
52
65
 
53
66
  [context]
54
- format = "[ $symbol $percentage ](fg:color_fg0 bg:color_bg3 bold)"
55
- symbol = "󰍛"
67
+ format = "[ctx $percentage ]($style)"
56
68
 
57
69
  [[context.display]]
58
70
  threshold = 0
59
- style = "color_bg3"
71
+ style = "fg:green"
60
72
  hidden = false
61
73
 
62
74
  [time]
63
- format = "[$time ]($style)"
64
- symbol = ""
65
- style = "fg:color_fg0 bg:color_bg1 bold"
75
+ format = "[$time ]($style)"
76
+ style = "fg:muted"
77
+ time_format = "%H:%M"
78
+
79
+ [fill]
80
+ style = "fg:muted"
81
+ symbol = " "
82
+
83
+ [extension_status]
84
+ format = "([$statuses]($style))"
85
+ style = "fg:muted"
86
+ separator = " · "
87
+ max_statuses = 2
88
+ icons = { fallback = "" }
66
89
  `;
@@ -36,7 +36,7 @@ truncation_length = 11
36
36
  truncation_symbol = "⋯"
37
37
 
38
38
  [git_state]
39
- format = "([⎪$state $progress_current/$progress_total⎥]($style))"
39
+ format = "([⎪$state( $progress_current/$progress_total)⎥]($style))"
40
40
  symbol = ""
41
41
  style = "italic bright-purple"
42
42