@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.
Files changed (38) hide show
  1. package/NOTICES.md +128 -4
  2. package/README.md +9 -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-B2FCDVBH.ts → command-settings-chat-42OTC7NJ.ts} +5 -5
  10. package/dist/chunks/command-settings-chat-42OTC7NJ.ts.map +7 -0
  11. package/dist/chunks/{commands-SVLRVXUW.ts → commands-ZL36J5TX.ts} +6 -6
  12. package/dist/index.ts +6 -4
  13. package/dist/index.ts.map +3 -3
  14. package/package.json +1 -1
  15. package/skills/configure-pi-starship/references/configuration.md +29 -8
  16. package/skills/configure-pi-starship/references/modules.md +1 -0
  17. package/skills/configure-pi-starship/references/runtime-and-security.md +2 -1
  18. package/src/modules/activity.ts +5 -3
  19. package/src/pi-starship.ts +6 -2
  20. package/src/presets/catalog.ts +67 -4
  21. package/src/presets/catppuccin-tmux.ts +84 -0
  22. package/src/presets/dracula-tmux.ts +83 -0
  23. package/src/presets/gruvbox-rainbow.ts +61 -38
  24. package/src/presets/jetpack.ts +1 -1
  25. package/src/presets/lualine-bubbles.ts +72 -0
  26. package/src/presets/lualine-evil.ts +93 -0
  27. package/src/presets/lualine-slanted-gaps.ts +73 -0
  28. package/src/presets/oh-my-posh-atomic.ts +88 -0
  29. package/src/presets/pastel-powerline.ts +52 -31
  30. package/src/presets/powerlevel10k-lean.ts +86 -0
  31. package/src/presets/tokyo-night.ts +51 -31
  32. package/src/settings-chat-ui.ts +4 -1
  33. package/dist/chunks/chunk-A65IOGL6.ts.map +0 -7
  34. package/dist/chunks/chunk-UIKPE4UC.ts.map +0 -7
  35. package/dist/chunks/command-settings-chat-B2FCDVBH.ts.map +0 -7
  36. /package/dist/chunks/{chunk-D563JANR.ts.map → chunk-D2YWQMYT.ts.map} +0 -0
  37. /package/dist/chunks/{command-configuration-menu-ZN2VXU4L.ts.map → command-configuration-menu-BJYQXV2U.ts.map} +0 -0
  38. /package/dist/chunks/{commands-SVLRVXUW.ts.map → commands-ZL36J5TX.ts.map} +0 -0
package/NOTICES.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # Notices
2
2
 
3
- pi-starship's format, style behavior, and bundled preset color and layout treatments are based in
4
- part on the preset documents emitted by Starship 1.26.0. The preset modules and TOML are adapted to
5
- Pi's native runtime snapshots. pi-starship uses the `yaml` package to parse kubeconfig and OpenStack
6
- metadata as inert local data.
3
+ pi-starship's format and style behavior are based in part on Starship. Its bundled presets adapt
4
+ colors and layouts from [Starship](https://starship.rs/presets/), Lualine, Tmux themes,
5
+ Powerlevel10k, and Oh My Posh to Pi's native runtime snapshots. They do not run the upstream
6
+ configuration logic. pi-starship uses the `yaml` package to parse kubeconfig and OpenStack metadata
7
+ as inert local data.
7
8
 
8
9
  ## yaml
9
10
 
@@ -38,3 +39,126 @@ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
38
39
  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
39
40
  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
40
41
  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
42
+
43
+ ## Lualine
44
+
45
+ The Bubbles, Eviline, and Slanted Gaps presets adapt the palettes and layouts from the [Lualine examples](https://github.com/nvim-lualine/lualine.nvim/tree/master/examples). Bubbles is credited to lokesh-krishna; Eviline is credited to shadmansaleh and glepnir.
46
+
47
+ MIT License
48
+
49
+ Copyright (c) 2020 hoob3rt
50
+
51
+ Permission is hereby granted, free of charge, to any person obtaining a copy
52
+ of this software and associated documentation files (the "Software"), to deal
53
+ in the Software without restriction, including without limitation the rights
54
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
55
+ copies of the Software, and to permit persons to whom the Software is
56
+ furnished to do so, subject to the following conditions:
57
+
58
+ The above copyright notice and this permission notice shall be included in all
59
+ copies or substantial portions of the Software.
60
+
61
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
62
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
63
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
64
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
65
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
66
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
67
+ SOFTWARE.
68
+
69
+ ## Catppuccin Tmux
70
+
71
+ The Catppuccin Tmux preset adapts the Mocha palette, rounded window treatment, and labeled status segments from [catppuccin/tmux](https://github.com/catppuccin/tmux).
72
+
73
+ MIT License
74
+
75
+ Copyright (c) 2021 Catppuccin
76
+
77
+ Permission is hereby granted, free of charge, to any person obtaining a copy
78
+ of this software and associated documentation files (the "Software"), to deal
79
+ in the Software without restriction, including without limitation the rights
80
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
81
+ copies of the Software, and to permit persons to whom the Software is
82
+ furnished to do so, subject to the following conditions:
83
+
84
+ The above copyright notice and this permission notice shall be included in all
85
+ copies or substantial portions of the Software.
86
+
87
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
88
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
89
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
90
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
91
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
92
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
93
+ SOFTWARE.
94
+
95
+ ## Dracula Tmux
96
+
97
+ The Dracula Tmux preset adapts the palette and rectangular status segments from [dracula/tmux](https://github.com/dracula/tmux).
98
+
99
+ MIT License
100
+
101
+ Copyright (c) 2020 Dane Williams
102
+
103
+ Permission is hereby granted, free of charge, to any person obtaining a copy
104
+ of this software and associated documentation files (the "Software"), to deal
105
+ in the Software without restriction, including without limitation the rights
106
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
107
+ copies of the Software, and to permit persons to whom the Software is
108
+ furnished to do so, subject to the following conditions:
109
+
110
+ The above copyright notice and this permission notice shall be included in all
111
+ copies or substantial portions of the Software.
112
+
113
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
114
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
115
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
116
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
117
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
118
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
119
+ SOFTWARE.
120
+
121
+ ## Powerlevel10k
122
+
123
+ The Powerlevel10k Lean preset adapts the background-free layout and colors from [Powerlevel10k's Lean configuration](https://github.com/romkatv/powerlevel10k/blob/master/config/p10k-lean.zsh).
124
+
125
+ Copyright (c) 2009-2014 Robby Russell and contributors (see https://github.com/robbyrussell/oh-my-zsh/contributors)
126
+ Copyright (c) 2014-2017 Ben Hilburn <bhilburn@gmail.com>
127
+ Copyright (c) 2019 Roman Perepelitsa <roman.perepelitsa@gmail.com> and contributors (see https://github.com/romkatv/powerlevel10k/contributors)
128
+
129
+ MIT LICENSE
130
+
131
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
132
+ this software and associated documentation files (the "Software"), to deal in
133
+ the Software without restriction, including without limitation the rights to
134
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
135
+ the Software, and to permit persons to whom the Software is furnished to do so,
136
+ subject to the following conditions:
137
+
138
+ The above copyright notice and this permission notice shall be included in all
139
+ copies or substantial portions of the Software.
140
+
141
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
142
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
143
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
144
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
145
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
146
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
147
+
148
+ ## Oh My Posh
149
+
150
+ The Oh My Posh Atomic preset adapts the frame, palette, and segment shapes from [the Atomic theme](https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/atomic.omp.json).
151
+
152
+ Copyright 2022 Jan De Dobbeleer
153
+
154
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
155
+ documentation files (the "Software"), to deal in the Software without restriction, including without limitation
156
+ the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
157
+ and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
158
+
159
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
160
+
161
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
162
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
163
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
164
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -10,12 +10,12 @@ The extension parses and renders the footer itself, so it does not need the `sta
10
10
 
11
11
  ## ✨ Features
12
12
 
13
- - Keeps Pi's native footer until settings are saved and offers Starship presets plus a Pi-native Minimal preset.
13
+ - Keeps Pi's native footer until settings are saved and offers Starship, Lualine, Tmux, Powerlevel10k, and Oh My Posh-inspired presets plus a Pi-native Minimal preset.
14
14
  - Supports root and module formats, conditional groups, `$all`, styles, palettes, and width-aware `$fill` alignment.
15
15
  - Selects provider, model, and thinking styles from exact runtime values with ordered module rules.
16
16
  - Provides Pi, model, usage, Git, pull request, package, language, environment, deployment, cloud, and execution modules, with usage totals including persisted cache warming.
17
17
  - Offers opt-in Jujutsu, native RAM/optional Linux swap, and Linux sysfs battery modules, all disabled by default.
18
- - Wraps native multiline layouts to terminal width instead of truncating them.
18
+ - Wraps native multiline layouts to terminal width, with an ellipsis fallback for a grapheme wider than the terminal.
19
19
  - Keeps rendering pure while refreshing filesystem, process, and network-derived data through bounded caches.
20
20
  - Uses `/starship` for named TOML profiles, live previews, presets, customization, and recovery history.
21
21
  - Offers a separate configuration chat with the bundled skill and draft-only file tools; valid edits preview immediately without reload.
@@ -51,6 +51,10 @@ Do not enable this with `@narumitw/pi-statusline`: both own Pi's footer, and Pi
51
51
  Start Pi with the extension to keep Pi's native footer without creating a settings file.
52
52
  Run `/starship` and choose **Configure with agent** for edits and explanations, or choose a preset.
53
53
 
54
+ Open **Presets** for connected Powerline segments, rounded Bubbles, Slanted Gaps, Catppuccin and Dracula Tmux, Lean, and Atomic layouts.
55
+ The picker marks Nerd Font requirements; some layouts use two rows and wrap at narrow widths.
56
+ Preset updates do not rewrite an already applied footer or saved profile. See [presets and adaptation notes](./skills/configure-pi-starship/references/configuration.md#-presets).
57
+
54
58
  The bundled configuration skill is manual-only and is not available for automatic model invocation.
55
59
  Run `/skill:configure-pi-starship` before asking Pi to explain or edit `pi-starship.toml`:
56
60
 
@@ -139,6 +143,8 @@ These message shortcuts use Pi's configured bindings and native precedence, incl
139
143
  The configured cancel action stops an active response and restores undelivered messages to the editor; when idle, it leaves the conversation open without opening a menu.
140
144
  Failed or aborted responses also restore undelivered messages without restarting automatically.
141
145
  Editor actions win conflicting cancel bindings, and Escape remains a stop fallback unless assigned to an editor action.
146
+ Ambiguous legacy Backspace bytes stay with the editor, including when cancel is bound to Ctrl+H or Ctrl+Backspace.
147
+ Unambiguous Kitty or modifyOtherKeys input still follows the configured cancel binding when no editor or viewport action owns it.
142
148
  Ctrl+C discards the entire flow, including when cancellation is remapped, and restores the current session's active footer.
143
149
  The fullscreen chat uses a Starship-owned `TuiAltScreen` with Pi's native user, assistant, and tool message components, including Markdown, user-message backgrounds, and message spacing.
144
150
  A native `ScrollView` holds the history; queued messages, the editor, diagnostics, and footer preview stay in a fixed bottom dock.
@@ -260,4 +266,4 @@ Pi Coding Agent, Starship statusline, Starship TOML, terminal footer, native sta
260
266
 
261
267
  MIT.
262
268
  See [`LICENSE`](./LICENSE).
263
- Starship attribution and its ISC license are included in [`NOTICES.md`](./NOTICES.md).
269
+ Preset source attribution and applicable third-party licenses are included in [`NOTICES.md`](./NOTICES.md).
@@ -12,7 +12,7 @@ import {
12
12
  readProfile,
13
13
  renameProfile,
14
14
  saveProfile
15
- } from "./chunk-UIKPE4UC.ts";
15
+ } from "./chunk-YK4S4RRM.ts";
16
16
  import {
17
17
  BUILT_IN_EXAMPLE,
18
18
  ConfigPublicationError,
@@ -22,7 +22,7 @@ import {
22
22
  readConfigDocumentSnapshot,
23
23
  removeConfigDocumentIfMatches,
24
24
  validateConfigDocument
25
- } from "./chunk-A65IOGL6.ts";
25
+ } from "./chunk-I22B7QPQ.ts";
26
26
 
27
27
  // src/command-commit.ts
28
28
  import { withFileMutationQueue } from "@earendil-works/pi-coding-agent";
@@ -681,4 +681,4 @@ export {
681
681
  showHistory,
682
682
  saveAsProfile
683
683
  };
684
- //# sourceMappingURL=chunk-D563JANR.ts.map
684
+ //# sourceMappingURL=chunk-D2YWQMYT.ts.map
@@ -199,7 +199,8 @@ var activityModule = defineModule({
199
199
  }
200
200
  const active = [...runtime.activeTools.entries()];
201
201
  if (active.length > 0) {
202
- const [tool = "tool", count = 1] = active[0] ?? [];
202
+ const [rawTool = "tool", count = 1] = active[0] ?? [];
203
+ const tool = sanitizeTerminalText2(rawTool);
203
204
  const suffix = count > 1 ? `\xD7${count}` : "";
204
205
  const more = active.length > 1 ? `+${active.length - 1}` : "";
205
206
  return {
@@ -220,12 +221,13 @@ var activityModule = defineModule({
220
221
  };
221
222
  }
222
223
  if (runtime.lastCompletedTool) {
224
+ const tool = sanitizeTerminalText2(runtime.lastCompletedTool);
223
225
  return {
224
226
  state: "completed",
225
- tool: runtime.lastCompletedTool,
227
+ tool,
226
228
  count: "0",
227
229
  ...EMPTY_PROMPT_VALUES,
228
- text: `${symbol} completed ${runtime.lastCompletedTool}`
230
+ text: `${symbol} completed ${tool}`
229
231
  };
230
232
  }
231
233
  return {
@@ -2696,4 +2698,4 @@ export {
2696
2698
  removeConfigDocumentIfMatches,
2697
2699
  activePalette
2698
2700
  };
2699
- //# sourceMappingURL=chunk-A65IOGL6.ts.map
2701
+ //# sourceMappingURL=chunk-I22B7QPQ.ts.map