@narumitw/pi-starship 0.49.4 → 0.50.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.
- package/NOTICES.md +4 -2
- package/README.md +60 -12
- package/package.json +7 -4
- package/src/command-inspector.ts +19 -176
- package/src/command-preset-picker.ts +203 -0
- package/src/commands.ts +269 -57
- package/src/pi-starship.ts +12 -2
- package/src/presets/bracketed-segments.ts +45 -0
- package/src/presets/catalog.ts +138 -0
- package/src/presets/catppuccin-powerline.ts +90 -0
- package/src/presets/gruvbox-rainbow.ts +66 -0
- package/src/presets/jetpack.ts +51 -0
- package/src/presets/minimal.ts +23 -0
- package/src/presets/nerd-font-symbols.ts +27 -0
- package/src/presets/no-empty-icons.ts +47 -0
- package/src/presets/no-nerd-font.ts +51 -0
- package/src/presets/no-runtime-versions.ts +52 -0
- package/src/presets/pastel-powerline.ts +53 -0
- package/src/presets/plain-text-symbols.ts +52 -0
- package/src/presets/pure-preset.ts +55 -0
- package/src/presets/tokyo-night.ts +53 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { BRACKETED_SEGMENTS_PRESET } from "./bracketed-segments.js";
|
|
2
|
+
import { CATPPUCCIN_POWERLINE_PRESET } from "./catppuccin-powerline.js";
|
|
3
|
+
import { GRUVBOX_RAINBOW_PRESET } from "./gruvbox-rainbow.js";
|
|
4
|
+
import { JETPACK_PRESET } from "./jetpack.js";
|
|
5
|
+
import { MINIMAL_PRESET } from "./minimal.js";
|
|
6
|
+
import { NERD_FONT_SYMBOLS_PRESET } from "./nerd-font-symbols.js";
|
|
7
|
+
import { NO_EMPTY_ICONS_PRESET } from "./no-empty-icons.js";
|
|
8
|
+
import { NO_NERD_FONT_PRESET } from "./no-nerd-font.js";
|
|
9
|
+
import { NO_RUNTIME_VERSIONS_PRESET } from "./no-runtime-versions.js";
|
|
10
|
+
import { PASTEL_POWERLINE_PRESET } from "./pastel-powerline.js";
|
|
11
|
+
import { PLAIN_TEXT_SYMBOLS_PRESET } from "./plain-text-symbols.js";
|
|
12
|
+
import { PURE_PRESET } from "./pure-preset.js";
|
|
13
|
+
import { TOKYO_NIGHT_PRESET } from "./tokyo-night.js";
|
|
14
|
+
|
|
15
|
+
export interface StarshipPreset {
|
|
16
|
+
id:
|
|
17
|
+
| "minimal"
|
|
18
|
+
| "bracketed-segments"
|
|
19
|
+
| "catppuccin-powerline"
|
|
20
|
+
| "gruvbox-rainbow"
|
|
21
|
+
| "jetpack"
|
|
22
|
+
| "nerd-font-symbols"
|
|
23
|
+
| "no-empty-icons"
|
|
24
|
+
| "no-nerd-font"
|
|
25
|
+
| "no-runtime-versions"
|
|
26
|
+
| "pastel-powerline"
|
|
27
|
+
| "plain-text-symbols"
|
|
28
|
+
| "pure-preset"
|
|
29
|
+
| "tokyo-night";
|
|
30
|
+
label: string;
|
|
31
|
+
description: string;
|
|
32
|
+
requiresNerdFont: boolean;
|
|
33
|
+
rawDocument: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const STARSHIP_PRESETS = [
|
|
37
|
+
{
|
|
38
|
+
id: "minimal",
|
|
39
|
+
label: "Minimal",
|
|
40
|
+
description: "Compact Pi essentials · font-safe",
|
|
41
|
+
requiresNerdFont: false,
|
|
42
|
+
rawDocument: MINIMAL_PRESET,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: "bracketed-segments",
|
|
46
|
+
label: "Bracketed Segments",
|
|
47
|
+
description: "Balanced Pi and Git details in brackets · font-safe",
|
|
48
|
+
requiresNerdFont: false,
|
|
49
|
+
rawDocument: BRACKETED_SEGMENTS_PRESET,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: "catppuccin-powerline",
|
|
53
|
+
label: "Catppuccin Powerline",
|
|
54
|
+
description: "Mocha connected color blocks · requires Nerd Font",
|
|
55
|
+
requiresNerdFont: true,
|
|
56
|
+
rawDocument: CATPPUCCIN_POWERLINE_PRESET,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: "gruvbox-rainbow",
|
|
60
|
+
label: "Gruvbox Rainbow",
|
|
61
|
+
description: "Warm Gruvbox connected segments · requires Nerd Font",
|
|
62
|
+
requiresNerdFont: true,
|
|
63
|
+
rawDocument: GRUVBOX_RAINBOW_PRESET,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "jetpack",
|
|
67
|
+
label: "Jetpack",
|
|
68
|
+
description: "Airy geometric left/right layout · font-safe",
|
|
69
|
+
requiresNerdFont: false,
|
|
70
|
+
rawDocument: JETPACK_PRESET,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "nerd-font-symbols",
|
|
74
|
+
label: "Nerd Font Symbols",
|
|
75
|
+
description: "Balanced default layout with icon-rich symbols · requires Nerd Font",
|
|
76
|
+
requiresNerdFont: true,
|
|
77
|
+
rawDocument: NERD_FONT_SYMBOLS_PRESET,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: "no-empty-icons",
|
|
81
|
+
label: "No Empty Icons",
|
|
82
|
+
description: "Conditional labels never appear without values · font-safe",
|
|
83
|
+
requiresNerdFont: false,
|
|
84
|
+
rawDocument: NO_EMPTY_ICONS_PRESET,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "no-nerd-font",
|
|
88
|
+
label: "No Nerd Font",
|
|
89
|
+
description: "Portable Unicode symbols without private-use glyphs · font-safe",
|
|
90
|
+
requiresNerdFont: false,
|
|
91
|
+
rawDocument: NO_NERD_FONT_PRESET,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: "no-runtime-versions",
|
|
95
|
+
label: "No Runtime Versions",
|
|
96
|
+
description: "Presence indicators without model or thinking details · font-safe",
|
|
97
|
+
requiresNerdFont: false,
|
|
98
|
+
rawDocument: NO_RUNTIME_VERSIONS_PRESET,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: "pastel-powerline",
|
|
102
|
+
label: "Pastel Powerline",
|
|
103
|
+
description: "Pastel connected color blocks · requires Nerd Font",
|
|
104
|
+
requiresNerdFont: true,
|
|
105
|
+
rawDocument: PASTEL_POWERLINE_PRESET,
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: "plain-text-symbols",
|
|
109
|
+
label: "Plain Text Symbols",
|
|
110
|
+
description: "Plain words replace pictograms · font-safe",
|
|
111
|
+
requiresNerdFont: false,
|
|
112
|
+
rawDocument: PLAIN_TEXT_SYMBOLS_PRESET,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: "pure-preset",
|
|
116
|
+
label: "Pure Preset",
|
|
117
|
+
description: "Clean two-line workspace and session context · font-safe",
|
|
118
|
+
requiresNerdFont: false,
|
|
119
|
+
rawDocument: PURE_PRESET,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
id: "tokyo-night",
|
|
123
|
+
label: "Tokyo Night",
|
|
124
|
+
description: "Cool connected color blocks · requires Nerd Font",
|
|
125
|
+
requiresNerdFont: true,
|
|
126
|
+
rawDocument: TOKYO_NIGHT_PRESET,
|
|
127
|
+
},
|
|
128
|
+
] as const satisfies readonly StarshipPreset[];
|
|
129
|
+
|
|
130
|
+
export function getStarshipPreset(id: StarshipPreset["id"]): StarshipPreset {
|
|
131
|
+
const preset = STARSHIP_PRESETS.find((candidate) => candidate.id === id);
|
|
132
|
+
if (!preset) throw new Error(`Unknown pi-starship preset: ${id}`);
|
|
133
|
+
return preset;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function presetForDocument(rawDocument: string | undefined): StarshipPreset | undefined {
|
|
137
|
+
return STARSHIP_PRESETS.find((preset) => preset.rawDocument === rawDocument);
|
|
138
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export const CATPPUCCIN_POWERLINE_PRESET = `# Pi-native adaptation of Starship's Catppuccin Powerline preset.
|
|
2
|
+
format = "[](red)$brand$model[](bg:peach fg:red)$directory[](bg:yellow fg:peach)$git_branch$git_status[](fg:yellow bg:green)$thinking$activity[](fg:green bg:sapphire)$context[](fg:sapphire bg:lavender)$time[](fg:lavender)"
|
|
3
|
+
palette = "catppuccin_mocha"
|
|
4
|
+
|
|
5
|
+
[brand]
|
|
6
|
+
format = "[ $symbol ]($style)"
|
|
7
|
+
symbol = ""
|
|
8
|
+
style = "fg:crust bg:red bold"
|
|
9
|
+
|
|
10
|
+
[model]
|
|
11
|
+
format = "[$model ]($style)"
|
|
12
|
+
symbol = ""
|
|
13
|
+
style = "fg:crust bg:red bold"
|
|
14
|
+
|
|
15
|
+
[directory]
|
|
16
|
+
format = "[ $path ]($style)"
|
|
17
|
+
symbol = ""
|
|
18
|
+
style = "fg:crust bg:peach bold"
|
|
19
|
+
truncation_length = 3
|
|
20
|
+
truncation_symbol = "…/"
|
|
21
|
+
|
|
22
|
+
[git_branch]
|
|
23
|
+
format = "[ $symbol $branch ]($style)"
|
|
24
|
+
symbol = ""
|
|
25
|
+
style = "fg:crust bg:yellow bold"
|
|
26
|
+
|
|
27
|
+
[git_status]
|
|
28
|
+
format = "[$all_status$ahead_behind ]($style)"
|
|
29
|
+
style = "fg:crust bg:yellow bold"
|
|
30
|
+
|
|
31
|
+
[thinking]
|
|
32
|
+
format = "[ $symbol $level ]($style)"
|
|
33
|
+
symbol = ""
|
|
34
|
+
style = "fg:crust bg:green bold"
|
|
35
|
+
|
|
36
|
+
[activity]
|
|
37
|
+
format = "[ $text ]($style)"
|
|
38
|
+
symbol = ""
|
|
39
|
+
style = "fg:crust bg:green bold"
|
|
40
|
+
|
|
41
|
+
[context]
|
|
42
|
+
format = "[ $symbol $percentage ](fg:crust bg:sapphire bold)"
|
|
43
|
+
symbol = ""
|
|
44
|
+
|
|
45
|
+
[[context.display]]
|
|
46
|
+
threshold = 0
|
|
47
|
+
style = "sapphire"
|
|
48
|
+
hidden = false
|
|
49
|
+
|
|
50
|
+
[time]
|
|
51
|
+
format = "[ $time ]($style)"
|
|
52
|
+
symbol = ""
|
|
53
|
+
style = "fg:crust bg:lavender bold"
|
|
54
|
+
|
|
55
|
+
[palettes.catppuccin_mocha]
|
|
56
|
+
red = "#f38ba8"
|
|
57
|
+
peach = "#fab387"
|
|
58
|
+
yellow = "#f9e2af"
|
|
59
|
+
green = "#a6e3a1"
|
|
60
|
+
sapphire = "#74c7ec"
|
|
61
|
+
lavender = "#b4befe"
|
|
62
|
+
crust = "#11111b"
|
|
63
|
+
|
|
64
|
+
[palettes.catppuccin_frappe]
|
|
65
|
+
red = "#e78284"
|
|
66
|
+
peach = "#ef9f76"
|
|
67
|
+
yellow = "#e5c890"
|
|
68
|
+
green = "#a6d189"
|
|
69
|
+
sapphire = "#85c1dc"
|
|
70
|
+
lavender = "#babbf1"
|
|
71
|
+
crust = "#232634"
|
|
72
|
+
|
|
73
|
+
[palettes.catppuccin_latte]
|
|
74
|
+
red = "#d20f39"
|
|
75
|
+
peach = "#fe640b"
|
|
76
|
+
yellow = "#df8e1d"
|
|
77
|
+
green = "#40a02b"
|
|
78
|
+
sapphire = "#209fb5"
|
|
79
|
+
lavender = "#7287fd"
|
|
80
|
+
crust = "#dce0e8"
|
|
81
|
+
|
|
82
|
+
[palettes.catppuccin_macchiato]
|
|
83
|
+
red = "#ed8796"
|
|
84
|
+
peach = "#f5a97f"
|
|
85
|
+
yellow = "#eed49f"
|
|
86
|
+
green = "#a6da95"
|
|
87
|
+
sapphire = "#7dc4e4"
|
|
88
|
+
lavender = "#b7bdf8"
|
|
89
|
+
crust = "#181926"
|
|
90
|
+
`;
|
|
@@ -0,0 +1,66 @@
|
|
|
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)"
|
|
3
|
+
palette = "gruvbox_dark"
|
|
4
|
+
|
|
5
|
+
[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"
|
|
16
|
+
|
|
17
|
+
[brand]
|
|
18
|
+
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"
|
|
26
|
+
|
|
27
|
+
[directory]
|
|
28
|
+
format = "[ $path ]($style)"
|
|
29
|
+
symbol = ""
|
|
30
|
+
style = "fg:color_fg0 bg:color_yellow bold"
|
|
31
|
+
truncation_length = 3
|
|
32
|
+
truncation_symbol = "…/"
|
|
33
|
+
|
|
34
|
+
[git_branch]
|
|
35
|
+
format = "[ $symbol $branch ]($style)"
|
|
36
|
+
symbol = ""
|
|
37
|
+
style = "fg:color_fg0 bg:color_aqua bold"
|
|
38
|
+
|
|
39
|
+
[git_status]
|
|
40
|
+
format = "[$all_status$ahead_behind ]($style)"
|
|
41
|
+
style = "fg:color_fg0 bg:color_aqua bold"
|
|
42
|
+
|
|
43
|
+
[thinking]
|
|
44
|
+
format = "[ $symbol $level ]($style)"
|
|
45
|
+
symbol = ""
|
|
46
|
+
style = "fg:color_fg0 bg:color_blue bold"
|
|
47
|
+
|
|
48
|
+
[activity]
|
|
49
|
+
format = "[ $text ]($style)"
|
|
50
|
+
symbol = ""
|
|
51
|
+
style = "fg:color_fg0 bg:color_blue bold"
|
|
52
|
+
|
|
53
|
+
[context]
|
|
54
|
+
format = "[ $symbol $percentage ](fg:color_fg0 bg:color_bg3 bold)"
|
|
55
|
+
symbol = ""
|
|
56
|
+
|
|
57
|
+
[[context.display]]
|
|
58
|
+
threshold = 0
|
|
59
|
+
style = "color_bg3"
|
|
60
|
+
hidden = false
|
|
61
|
+
|
|
62
|
+
[time]
|
|
63
|
+
format = "[ $time ]($style)"
|
|
64
|
+
symbol = ""
|
|
65
|
+
style = "fg:color_fg0 bg:color_bg1 bold"
|
|
66
|
+
`;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export const JETPACK_PRESET = `# Pi-native adaptation of Starship's Jetpack preset.
|
|
2
|
+
# Left-side session activity and right-side workspace context meet at $fill.
|
|
3
|
+
format = "$activity$context$fill$directory$git_branch$git_state$git_status$time"
|
|
4
|
+
|
|
5
|
+
[activity]
|
|
6
|
+
format = "[◄ $text ]($style)"
|
|
7
|
+
symbol = ""
|
|
8
|
+
style = "italic white"
|
|
9
|
+
|
|
10
|
+
[context]
|
|
11
|
+
format = "[◯ $percentage]($style) "
|
|
12
|
+
symbol = ""
|
|
13
|
+
|
|
14
|
+
[[context.display]]
|
|
15
|
+
threshold = 0
|
|
16
|
+
style = "bold purple"
|
|
17
|
+
hidden = false
|
|
18
|
+
|
|
19
|
+
[fill]
|
|
20
|
+
symbol = " "
|
|
21
|
+
style = "none"
|
|
22
|
+
|
|
23
|
+
[directory]
|
|
24
|
+
format = "[$path]($style) "
|
|
25
|
+
symbol = ""
|
|
26
|
+
style = "italic blue"
|
|
27
|
+
truncation_length = 2
|
|
28
|
+
truncation_symbol = "□ "
|
|
29
|
+
home_symbol = "⌂"
|
|
30
|
+
|
|
31
|
+
[git_branch]
|
|
32
|
+
format = "[$symbol$branch]($style)"
|
|
33
|
+
symbol = "△ "
|
|
34
|
+
style = "italic bright-blue"
|
|
35
|
+
truncation_length = 11
|
|
36
|
+
truncation_symbol = "⋯"
|
|
37
|
+
|
|
38
|
+
[git_state]
|
|
39
|
+
format = "([⎪$state $progress_current/$progress_total⎥]($style))"
|
|
40
|
+
symbol = ""
|
|
41
|
+
style = "italic bright-purple"
|
|
42
|
+
|
|
43
|
+
[git_status]
|
|
44
|
+
format = "([⎪$all_status$ahead_behind⎥]($style))"
|
|
45
|
+
style = "bold italic bright-blue"
|
|
46
|
+
|
|
47
|
+
[time]
|
|
48
|
+
format = "[ $time]($style)"
|
|
49
|
+
symbol = ""
|
|
50
|
+
style = "italic dimmed white"
|
|
51
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const MINIMAL_PRESET = `# A compact, font-safe Pi footer.
|
|
2
|
+
format = "$model$directory$git_branch$activity"
|
|
3
|
+
|
|
4
|
+
[model]
|
|
5
|
+
format = "[$model]($style) "
|
|
6
|
+
symbol = ""
|
|
7
|
+
style = "bold blue"
|
|
8
|
+
|
|
9
|
+
[directory]
|
|
10
|
+
format = "[$path]($style) "
|
|
11
|
+
symbol = ""
|
|
12
|
+
style = "cyan bold"
|
|
13
|
+
|
|
14
|
+
[git_branch]
|
|
15
|
+
format = "[git:$branch]($style) "
|
|
16
|
+
symbol = ""
|
|
17
|
+
style = "bold purple"
|
|
18
|
+
|
|
19
|
+
[activity]
|
|
20
|
+
format = "[$text]($style)"
|
|
21
|
+
symbol = "*"
|
|
22
|
+
style = "bold yellow"
|
|
23
|
+
`;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export const NERD_FONT_SYMBOLS_PRESET = `# Balanced Pi footer with Nerd Font symbols.
|
|
2
|
+
format = "$brand$model$thinking$directory$git_branch$git_status$activity$context$time"
|
|
3
|
+
|
|
4
|
+
[brand]
|
|
5
|
+
symbol = ""
|
|
6
|
+
|
|
7
|
+
[model]
|
|
8
|
+
symbol = ""
|
|
9
|
+
|
|
10
|
+
[thinking]
|
|
11
|
+
symbol = ""
|
|
12
|
+
|
|
13
|
+
[directory]
|
|
14
|
+
symbol = ""
|
|
15
|
+
|
|
16
|
+
[git_branch]
|
|
17
|
+
symbol = ""
|
|
18
|
+
|
|
19
|
+
[activity]
|
|
20
|
+
symbol = ""
|
|
21
|
+
|
|
22
|
+
[context]
|
|
23
|
+
symbol = ""
|
|
24
|
+
|
|
25
|
+
[time]
|
|
26
|
+
symbol = ""
|
|
27
|
+
`;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export const NO_EMPTY_ICONS_PRESET = `# Pi-native adaptation of Starship's No Empty Icons preset.
|
|
2
|
+
# Each label lives inside the same conditional group as its value.
|
|
3
|
+
format = "$model$thinking$directory$git_branch$git_status$activity$context$time"
|
|
4
|
+
|
|
5
|
+
[model]
|
|
6
|
+
format = "([model $model]($style) )"
|
|
7
|
+
symbol = ""
|
|
8
|
+
style = "bold blue"
|
|
9
|
+
|
|
10
|
+
[thinking]
|
|
11
|
+
format = "([thinking $level]($style) )"
|
|
12
|
+
symbol = ""
|
|
13
|
+
style = "bold purple"
|
|
14
|
+
|
|
15
|
+
[directory]
|
|
16
|
+
format = "([in $path]($style) )"
|
|
17
|
+
symbol = ""
|
|
18
|
+
style = "cyan bold"
|
|
19
|
+
|
|
20
|
+
[git_branch]
|
|
21
|
+
format = "([on $branch]($style) )"
|
|
22
|
+
symbol = ""
|
|
23
|
+
style = "bold purple"
|
|
24
|
+
|
|
25
|
+
[git_status]
|
|
26
|
+
format = "([$all_status$ahead_behind]($style) )"
|
|
27
|
+
style = "red bold"
|
|
28
|
+
|
|
29
|
+
[activity]
|
|
30
|
+
format = "([while $text]($style) )"
|
|
31
|
+
symbol = ""
|
|
32
|
+
style = "bold yellow"
|
|
33
|
+
|
|
34
|
+
[context]
|
|
35
|
+
format = "([using $percentage context]($style) )"
|
|
36
|
+
symbol = ""
|
|
37
|
+
|
|
38
|
+
[[context.display]]
|
|
39
|
+
threshold = 0
|
|
40
|
+
style = "bold green"
|
|
41
|
+
hidden = false
|
|
42
|
+
|
|
43
|
+
[time]
|
|
44
|
+
format = "([at $time]($style))"
|
|
45
|
+
symbol = ""
|
|
46
|
+
style = "bold yellow"
|
|
47
|
+
`;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export const NO_NERD_FONT_PRESET = `# Pi-native adaptation of Starship's No Nerd Font preset.
|
|
2
|
+
format = "$brand$model$thinking$directory$git_branch$git_status$activity$context$time"
|
|
3
|
+
|
|
4
|
+
[brand]
|
|
5
|
+
format = "[$symbol]($style) "
|
|
6
|
+
symbol = "✦"
|
|
7
|
+
style = "bold white"
|
|
8
|
+
|
|
9
|
+
[model]
|
|
10
|
+
format = "[$symbol $model]($style) "
|
|
11
|
+
symbol = "◆"
|
|
12
|
+
style = "bold blue"
|
|
13
|
+
|
|
14
|
+
[thinking]
|
|
15
|
+
format = "[$symbol $level]($style) "
|
|
16
|
+
symbol = "◇"
|
|
17
|
+
style = "bold purple"
|
|
18
|
+
|
|
19
|
+
[directory]
|
|
20
|
+
format = "[$symbol $path]($style) "
|
|
21
|
+
symbol = "⌂"
|
|
22
|
+
style = "cyan bold"
|
|
23
|
+
|
|
24
|
+
[git_branch]
|
|
25
|
+
format = "[$symbol $branch]($style) "
|
|
26
|
+
symbol = "⎇"
|
|
27
|
+
style = "bold purple"
|
|
28
|
+
|
|
29
|
+
[git_status]
|
|
30
|
+
format = "[$all_status( $ahead_behind)]($style) "
|
|
31
|
+
style = "red bold"
|
|
32
|
+
|
|
33
|
+
[activity]
|
|
34
|
+
format = "[$text]($style) "
|
|
35
|
+
symbol = "●"
|
|
36
|
+
style = "bold yellow"
|
|
37
|
+
|
|
38
|
+
[context]
|
|
39
|
+
format = "[$symbol $percentage]($style) "
|
|
40
|
+
symbol = "◌"
|
|
41
|
+
|
|
42
|
+
[[context.display]]
|
|
43
|
+
threshold = 0
|
|
44
|
+
style = "bold green"
|
|
45
|
+
hidden = false
|
|
46
|
+
|
|
47
|
+
[time]
|
|
48
|
+
format = "[$symbol $time]($style)"
|
|
49
|
+
symbol = "◴"
|
|
50
|
+
style = "bold yellow"
|
|
51
|
+
`;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export const NO_RUNTIME_VERSIONS_PRESET = `# Pi-native adaptation of Starship's No Runtime Versions preset.
|
|
2
|
+
# Model and thinking modules retain presence symbols while hiding version-like details.
|
|
3
|
+
format = "$brand$model$thinking$directory$git_branch$git_status$activity$context$time"
|
|
4
|
+
|
|
5
|
+
[brand]
|
|
6
|
+
format = "[$symbol]($style) "
|
|
7
|
+
symbol = "π"
|
|
8
|
+
style = "bold white"
|
|
9
|
+
|
|
10
|
+
[model]
|
|
11
|
+
format = "[$symbol]($style) "
|
|
12
|
+
symbol = "AI"
|
|
13
|
+
style = "bold blue"
|
|
14
|
+
|
|
15
|
+
[thinking]
|
|
16
|
+
format = "[$symbol]($style) "
|
|
17
|
+
symbol = "think"
|
|
18
|
+
style = "bold purple"
|
|
19
|
+
|
|
20
|
+
[directory]
|
|
21
|
+
format = "[$path]($style) "
|
|
22
|
+
symbol = ""
|
|
23
|
+
style = "cyan bold"
|
|
24
|
+
|
|
25
|
+
[git_branch]
|
|
26
|
+
format = "[$symbol$branch]($style) "
|
|
27
|
+
symbol = "git:"
|
|
28
|
+
style = "bold purple"
|
|
29
|
+
|
|
30
|
+
[git_status]
|
|
31
|
+
format = "[$all_status( $ahead_behind)]($style) "
|
|
32
|
+
style = "red bold"
|
|
33
|
+
|
|
34
|
+
[activity]
|
|
35
|
+
format = "[$symbol]($style) "
|
|
36
|
+
symbol = "run"
|
|
37
|
+
style = "bold yellow"
|
|
38
|
+
|
|
39
|
+
[context]
|
|
40
|
+
format = "[$percentage]($style) "
|
|
41
|
+
symbol = ""
|
|
42
|
+
|
|
43
|
+
[[context.display]]
|
|
44
|
+
threshold = 0
|
|
45
|
+
style = "bold green"
|
|
46
|
+
hidden = false
|
|
47
|
+
|
|
48
|
+
[time]
|
|
49
|
+
format = "[$time]($style)"
|
|
50
|
+
symbol = ""
|
|
51
|
+
style = "bold yellow"
|
|
52
|
+
`;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export const PASTEL_POWERLINE_PRESET = `# Pi-native adaptation of Starship's Pastel Powerline preset.
|
|
2
|
+
format = "[](#9A348E)$brand$model[](bg:#DA627D fg:#9A348E)$directory[](fg:#DA627D bg:#FCA17D)$git_branch$git_status[](fg:#FCA17D bg:#86BBD8)$thinking$activity[](fg:#86BBD8 bg:#06969A)$context[](fg:#06969A bg:#33658A)$time[](fg:#33658A)"
|
|
3
|
+
|
|
4
|
+
[brand]
|
|
5
|
+
format = "[ $symbol ]($style)"
|
|
6
|
+
symbol = ""
|
|
7
|
+
style = "fg:#ffffff bg:#9A348E bold"
|
|
8
|
+
|
|
9
|
+
[model]
|
|
10
|
+
format = "[$model ]($style)"
|
|
11
|
+
symbol = ""
|
|
12
|
+
style = "fg:#ffffff bg:#9A348E bold"
|
|
13
|
+
|
|
14
|
+
[directory]
|
|
15
|
+
format = "[ $path ]($style)"
|
|
16
|
+
symbol = ""
|
|
17
|
+
style = "fg:#ffffff bg:#DA627D bold"
|
|
18
|
+
truncation_length = 3
|
|
19
|
+
truncation_symbol = "…/"
|
|
20
|
+
|
|
21
|
+
[git_branch]
|
|
22
|
+
format = "[ $symbol $branch ]($style)"
|
|
23
|
+
symbol = ""
|
|
24
|
+
style = "fg:#1f1f1f bg:#FCA17D bold"
|
|
25
|
+
|
|
26
|
+
[git_status]
|
|
27
|
+
format = "[$all_status$ahead_behind ]($style)"
|
|
28
|
+
style = "fg:#1f1f1f bg:#FCA17D bold"
|
|
29
|
+
|
|
30
|
+
[thinking]
|
|
31
|
+
format = "[ $symbol $level ]($style)"
|
|
32
|
+
symbol = ""
|
|
33
|
+
style = "fg:#1f1f1f bg:#86BBD8 bold"
|
|
34
|
+
|
|
35
|
+
[activity]
|
|
36
|
+
format = "[ $text ]($style)"
|
|
37
|
+
symbol = ""
|
|
38
|
+
style = "fg:#1f1f1f bg:#86BBD8 bold"
|
|
39
|
+
|
|
40
|
+
[context]
|
|
41
|
+
format = "[ $symbol $percentage ](fg:#ffffff bg:#06969A bold)"
|
|
42
|
+
symbol = ""
|
|
43
|
+
|
|
44
|
+
[[context.display]]
|
|
45
|
+
threshold = 0
|
|
46
|
+
style = "#06969A"
|
|
47
|
+
hidden = false
|
|
48
|
+
|
|
49
|
+
[time]
|
|
50
|
+
format = "[ ♥ $time ]($style)"
|
|
51
|
+
symbol = ""
|
|
52
|
+
style = "fg:#ffffff bg:#33658A bold"
|
|
53
|
+
`;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export const PLAIN_TEXT_SYMBOLS_PRESET = `# Pi-native adaptation of Starship's Plain Text Symbols preset.
|
|
2
|
+
format = "$brand$model$thinking$directory$git_branch$git_status$activity$context$time"
|
|
3
|
+
|
|
4
|
+
[brand]
|
|
5
|
+
format = "[$symbol]($style) "
|
|
6
|
+
symbol = "pi"
|
|
7
|
+
style = "bold white"
|
|
8
|
+
|
|
9
|
+
[model]
|
|
10
|
+
format = "[$symbol $model]($style) "
|
|
11
|
+
symbol = "model"
|
|
12
|
+
style = "bold blue"
|
|
13
|
+
|
|
14
|
+
[thinking]
|
|
15
|
+
format = "[$symbol $level]($style) "
|
|
16
|
+
symbol = "thinking"
|
|
17
|
+
style = "bold purple"
|
|
18
|
+
|
|
19
|
+
[directory]
|
|
20
|
+
format = "[$symbol $path]($style) "
|
|
21
|
+
symbol = "dir"
|
|
22
|
+
style = "cyan bold"
|
|
23
|
+
|
|
24
|
+
[git_branch]
|
|
25
|
+
format = "[$symbol $branch]($style) "
|
|
26
|
+
symbol = "git"
|
|
27
|
+
style = "bold purple"
|
|
28
|
+
truncation_symbol = "..."
|
|
29
|
+
|
|
30
|
+
[git_status]
|
|
31
|
+
format = "[$all_status( $ahead_behind)]($style) "
|
|
32
|
+
style = "red bold"
|
|
33
|
+
|
|
34
|
+
[activity]
|
|
35
|
+
format = "[$text]($style) "
|
|
36
|
+
symbol = "active"
|
|
37
|
+
style = "bold yellow"
|
|
38
|
+
|
|
39
|
+
[context]
|
|
40
|
+
format = "[$symbol $percentage]($style) "
|
|
41
|
+
symbol = "context"
|
|
42
|
+
|
|
43
|
+
[[context.display]]
|
|
44
|
+
threshold = 0
|
|
45
|
+
style = "bold green"
|
|
46
|
+
hidden = false
|
|
47
|
+
|
|
48
|
+
[time]
|
|
49
|
+
format = "[$symbol $time]($style)"
|
|
50
|
+
symbol = "time"
|
|
51
|
+
style = "bold yellow"
|
|
52
|
+
`;
|