@narumitw/pi-starship 0.64.2 → 0.65.0
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/NOTICES.md +128 -4
- package/README.md +9 -3
- package/dist/chunks/{chunk-D563JANR.ts → chunk-D2YWQMYT.ts} +3 -3
- package/dist/chunks/{chunk-A65IOGL6.ts → chunk-I22B7QPQ.ts} +6 -4
- package/dist/chunks/chunk-I22B7QPQ.ts.map +7 -0
- package/dist/chunks/{chunk-UIKPE4UC.ts → chunk-YK4S4RRM.ts} +812 -106
- package/dist/chunks/chunk-YK4S4RRM.ts.map +7 -0
- package/dist/chunks/{command-configuration-menu-ZN2VXU4L.ts → command-configuration-menu-BJYQXV2U.ts} +3 -3
- package/dist/chunks/{command-settings-chat-B2FCDVBH.ts → command-settings-chat-42OTC7NJ.ts} +5 -5
- package/dist/chunks/command-settings-chat-42OTC7NJ.ts.map +7 -0
- package/dist/chunks/{commands-SVLRVXUW.ts → commands-ZL36J5TX.ts} +6 -6
- package/dist/index.ts +6 -4
- package/dist/index.ts.map +3 -3
- package/package.json +1 -1
- package/skills/configure-pi-starship/references/configuration.md +29 -8
- package/skills/configure-pi-starship/references/modules.md +1 -0
- package/skills/configure-pi-starship/references/runtime-and-security.md +2 -1
- package/src/modules/activity.ts +5 -3
- package/src/pi-starship.ts +6 -2
- package/src/presets/catalog.ts +67 -4
- package/src/presets/catppuccin-tmux.ts +84 -0
- package/src/presets/dracula-tmux.ts +83 -0
- package/src/presets/gruvbox-rainbow.ts +61 -38
- package/src/presets/jetpack.ts +1 -1
- package/src/presets/lualine-bubbles.ts +72 -0
- package/src/presets/lualine-evil.ts +93 -0
- package/src/presets/lualine-slanted-gaps.ts +73 -0
- package/src/presets/oh-my-posh-atomic.ts +88 -0
- package/src/presets/pastel-powerline.ts +52 -31
- package/src/presets/powerlevel10k-lean.ts +86 -0
- package/src/presets/tokyo-night.ts +51 -31
- package/src/settings-chat-ui.ts +4 -1
- package/dist/chunks/chunk-A65IOGL6.ts.map +0 -7
- package/dist/chunks/chunk-UIKPE4UC.ts.map +0 -7
- package/dist/chunks/command-settings-chat-B2FCDVBH.ts.map +0 -7
- /package/dist/chunks/{chunk-D563JANR.ts.map → chunk-D2YWQMYT.ts.map} +0 -0
- /package/dist/chunks/{command-configuration-menu-ZN2VXU4L.ts.map → command-configuration-menu-BJYQXV2U.ts.map} +0 -0
- /package/dist/chunks/{commands-SVLRVXUW.ts.map → commands-ZL36J5TX.ts.map} +0 -0
package/package.json
CHANGED
|
@@ -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
|
|
143
|
-
Colors, separators, typography, and layout follow the named
|
|
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
|
-
| **
|
|
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
|
-
| **
|
|
156
|
-
| **
|
|
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
|
-
| **
|
|
159
|
-
| **
|
|
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
|
|
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
|
-
|
|
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`.
|
package/src/modules/activity.ts
CHANGED
|
@@ -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 [
|
|
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
|
|
79
|
+
tool,
|
|
78
80
|
count: "0",
|
|
79
81
|
...EMPTY_PROMPT_VALUES,
|
|
80
|
-
text: `${symbol} completed ${
|
|
82
|
+
text: `${symbol} completed ${tool}`,
|
|
81
83
|
};
|
|
82
84
|
}
|
|
83
85
|
return {
|
package/src/pi-starship.ts
CHANGED
|
@@ -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";
|
|
@@ -755,7 +755,11 @@ function formatDiagnostics(loaded: LoadedStarshipConfig): string {
|
|
|
755
755
|
|
|
756
756
|
export function wrapFormattedStatusline(format: string, width: number): string[] {
|
|
757
757
|
if (width <= 0) return [];
|
|
758
|
-
|
|
758
|
+
// Pi can keep a whole grapheme wider than the viewport. Bound only those
|
|
759
|
+
// residual rows; ordinary wrapping and its ANSI state remain unchanged.
|
|
760
|
+
return wrapTextWithAnsi(format, width).map((line) =>
|
|
761
|
+
visibleWidth(line) > width ? truncateToWidth(line, width, "…") : line,
|
|
762
|
+
);
|
|
759
763
|
}
|
|
760
764
|
|
|
761
765
|
export {
|
package/src/presets/catalog.ts
CHANGED
|
@@ -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
|
|
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: "
|
|
96
|
-
description: "
|
|
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
|
|
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
|
|
2
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
20
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
truncation_length =
|
|
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
|
-
|
|
39
|
+
truncation_length = 18
|
|
38
40
|
|
|
39
41
|
[git_status]
|
|
40
|
-
format = "[$all_status$ahead_behind ]($style)"
|
|
41
|
-
style = "fg:
|
|
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 = "[
|
|
45
|
-
|
|
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
|
-
|
|
51
|
-
|
|
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 = "[ $
|
|
55
|
-
symbol = ""
|
|
67
|
+
format = "[ctx $percentage ]($style)"
|
|
56
68
|
|
|
57
69
|
[[context.display]]
|
|
58
70
|
threshold = 0
|
|
59
|
-
style = "
|
|
71
|
+
style = "fg:green"
|
|
60
72
|
hidden = false
|
|
61
73
|
|
|
62
74
|
[time]
|
|
63
|
-
format = "[
|
|
64
|
-
|
|
65
|
-
|
|
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
|
`;
|
package/src/presets/jetpack.ts
CHANGED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export const LUALINE_BUBBLES_PRESET = `# Pi-native adaptation of Lualine Bubbles.
|
|
2
|
+
# Source: https://github.com/nvim-lualine/lualine.nvim/blob/master/examples/bubbles.lua
|
|
3
|
+
# Original configuration: https://raw.githubusercontent.com/nvim-lualine/lualine.nvim/master/examples/bubbles.lua
|
|
4
|
+
# Font: Nerd Font. See NOTICES.md for attribution and license terms.
|
|
5
|
+
# Map editor mode to Pi, filename to workspace, filetype to model, and cursor progress to context usage. Pi has no Neovim mode.
|
|
6
|
+
|
|
7
|
+
format = "$brand$directory$git_branch$git_status[](grey)\${fill}$model$thinking$context(\\n$extension_status)"
|
|
8
|
+
palette = "bubbles"
|
|
9
|
+
|
|
10
|
+
[palettes.bubbles]
|
|
11
|
+
violet = "#d183e8"
|
|
12
|
+
blue = "#80a0ff"
|
|
13
|
+
cyan = "#79dac8"
|
|
14
|
+
black = "#080808"
|
|
15
|
+
white = "#c6c6c6"
|
|
16
|
+
red = "#ff5189"
|
|
17
|
+
grey = "#303030"
|
|
18
|
+
muted = "#a0a0a0"
|
|
19
|
+
|
|
20
|
+
[brand]
|
|
21
|
+
format = "[](violet)[ $symbol ]($style)[](fg:violet bg:grey)"
|
|
22
|
+
style = "bold fg:black bg:violet"
|
|
23
|
+
symbol = "π"
|
|
24
|
+
|
|
25
|
+
[directory]
|
|
26
|
+
format = "[ $path ]($style)"
|
|
27
|
+
style = "fg:white bg:grey"
|
|
28
|
+
symbol = ""
|
|
29
|
+
truncation_length = 2
|
|
30
|
+
truncation_symbol = "…/"
|
|
31
|
+
|
|
32
|
+
[git_branch]
|
|
33
|
+
format = "[ $symbol $branch ]($style)"
|
|
34
|
+
style = "fg:white bg:grey"
|
|
35
|
+
symbol = ""
|
|
36
|
+
truncation_length = 18
|
|
37
|
+
|
|
38
|
+
[git_status]
|
|
39
|
+
format = "([ $all_status$ahead_behind ]($style))"
|
|
40
|
+
style = "fg:red bg:grey"
|
|
41
|
+
|
|
42
|
+
[model]
|
|
43
|
+
format = "([](fg:grey)[ $model ]($style)[](fg:grey) )"
|
|
44
|
+
style = "fg:white bg:grey"
|
|
45
|
+
symbol = "◆"
|
|
46
|
+
shorten_model = true
|
|
47
|
+
truncation_length = 22
|
|
48
|
+
truncation_direction = "middle"
|
|
49
|
+
|
|
50
|
+
[thinking]
|
|
51
|
+
format = "([](fg:blue)[ $level ]($style)[](fg:blue) )"
|
|
52
|
+
style = "fg:black bg:blue"
|
|
53
|
+
|
|
54
|
+
[context]
|
|
55
|
+
format = "([](fg:cyan)[ ctx $percentage ]($style)[](fg:cyan) )"
|
|
56
|
+
|
|
57
|
+
[[context.display]]
|
|
58
|
+
threshold = 0
|
|
59
|
+
style = "bold fg:black bg:cyan"
|
|
60
|
+
hidden = false
|
|
61
|
+
|
|
62
|
+
[fill]
|
|
63
|
+
style = "fg:muted"
|
|
64
|
+
symbol = " "
|
|
65
|
+
|
|
66
|
+
[extension_status]
|
|
67
|
+
format = "([$statuses]($style))"
|
|
68
|
+
style = "fg:muted"
|
|
69
|
+
separator = " · "
|
|
70
|
+
max_statuses = 2
|
|
71
|
+
icons = { fallback = "" }
|
|
72
|
+
`;
|