@narumitw/pi-starship 0.66.0 → 0.67.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/CHANGELOG.md +6 -0
- package/README.md +4 -2
- package/dist/chunks/{chunk-BOMYDCT7.ts → chunk-URY35OTN.ts} +3 -3
- package/dist/chunks/{chunk-CUXPMKBQ.ts → chunk-VK26JO5L.ts} +16 -3
- package/dist/chunks/chunk-VK26JO5L.ts.map +7 -0
- package/dist/chunks/{chunk-UZJIMIWL.ts → chunk-WZ2FWJHK.ts} +2 -2
- package/dist/chunks/{command-configuration-menu-N3SP6R3I.ts → command-configuration-menu-3MMJJX4D.ts} +3 -3
- package/dist/chunks/{command-settings-chat-4NLO3RDC.ts → command-settings-chat-NB6YCNUD.ts} +4 -4
- package/dist/chunks/{commands-MSJ67CTR.ts → commands-HT6MGWJV.ts} +6 -6
- package/dist/index.ts +68 -30
- package/dist/index.ts.map +2 -2
- package/package.json +1 -1
- package/skills/configure-pi-starship/SKILL.md +3 -1
- package/skills/configure-pi-starship/references/configuration.md +81 -14
- package/skills/configure-pi-starship/references/module-catalog.md +5 -3
- package/skills/configure-pi-starship/references/modules.md +4 -1
- package/src/config.ts +2 -1
- package/src/modules/extension-status.ts +3 -2
- package/src/modules/inspection.ts +3 -2
- package/src/modules/render.ts +78 -31
- package/src/root-references.ts +15 -0
- package/dist/chunks/chunk-CUXPMKBQ.ts.map +0 -7
- /package/dist/chunks/{chunk-BOMYDCT7.ts.map → chunk-URY35OTN.ts.map} +0 -0
- /package/dist/chunks/{chunk-UZJIMIWL.ts.map → chunk-WZ2FWJHK.ts.map} +0 -0
- /package/dist/chunks/{command-configuration-menu-N3SP6R3I.ts.map → command-configuration-menu-3MMJJX4D.ts.map} +0 -0
- /package/dist/chunks/{command-settings-chat-4NLO3RDC.ts.map → command-settings-chat-NB6YCNUD.ts.map} +0 -0
- /package/dist/chunks/{commands-MSJ67CTR.ts.map → commands-HT6MGWJV.ts.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @narumitw/pi-starship
|
|
2
2
|
|
|
3
|
+
## 0.67.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- bf4dd89: Place individual public extension statuses with `${extension_status.<raw-key>}` in the root format. Aggregate statuses, including those reached through `$all`, exclude explicitly placed keys. Individual references reuse the existing status format, icons, and per-key styles without changing producer keys or saved settings. Omit status content that becomes empty after formatting so it cannot consume the limit or leave static decoration.
|
|
8
|
+
|
|
3
9
|
## 0.66.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -109,8 +109,10 @@ style = "bold blue"
|
|
|
109
109
|
|
|
110
110
|
Use `fg:pi:accent` to follow Pi's active theme; see [Pi theme colors](./skills/configure-pi-starship/references/configuration.md#pi-theme-colors).
|
|
111
111
|
Provider, model, and thinking modules also accept ordered exact-match `style_rules`.
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
Place an exact Pi status key in the root `format` with `${extension_status.usage}`; `$extension_status` (including through `$all`) keeps the remaining statuses.
|
|
113
|
+
Use `[extension_status.styles]` for raw-key colors in both forms; quote dotted keys such as `"example.worker"` and keep `namespace:*` for colon wildcards.
|
|
114
|
+
Unmatched statuses keep the module style.
|
|
115
|
+
See [Individual extension statuses](./skills/configure-pi-starship/references/configuration.md#individual-extension-statuses) for layout examples, limits, and icon/style rules.
|
|
114
116
|
Use `/starship` for interactive configuration, preview, diagnostics, presets, and recovery.
|
|
115
117
|
Manual file edits load at the next `session_start`, including `/reload`.
|
|
116
118
|
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
readProfile,
|
|
13
13
|
renameProfile,
|
|
14
14
|
saveProfile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WZ2FWJHK.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-
|
|
25
|
+
} from "./chunk-VK26JO5L.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-
|
|
684
|
+
//# sourceMappingURL=chunk-URY35OTN.ts.map
|
|
@@ -905,7 +905,7 @@ var extensionStatusModule = defineModule({
|
|
|
905
905
|
disabled: false
|
|
906
906
|
},
|
|
907
907
|
values: ({ runtime, extensionStatus, palette }) => {
|
|
908
|
-
const statuses = [...runtime.extensionStatuses.entries()].filter(([key, value]) => key !== "starship" && value.trim()).
|
|
908
|
+
const statuses = [...runtime.extensionStatuses.entries()].filter(([key, value]) => key !== "starship" && value.trim()).map(([key, value]) => ({ key, text: formatExtensionStatus(key, value, extensionStatus.icons) })).filter(({ text: text2 }) => text2.trim()).slice(0, extensionStatus.maxStatuses);
|
|
909
909
|
if (statuses.length === 0) return void 0;
|
|
910
910
|
const { separator, styles } = extensionStatus;
|
|
911
911
|
const content = Object.keys(styles).length === 0 ? statuses.map(({ text: text2 }) => text2).join(separator) : statuses.flatMap(({ key, text: text2 }, index) => {
|
|
@@ -2056,6 +2056,17 @@ var MODULE_DEFINITIONS = MODULE_IMPLEMENTATIONS.map((definition) => ({
|
|
|
2056
2056
|
}));
|
|
2057
2057
|
var MODULE_NAMES = MODULE_IMPLEMENTATIONS.map((definition) => definition.name);
|
|
2058
2058
|
|
|
2059
|
+
// src/root-references.ts
|
|
2060
|
+
var EXTENSION_STATUS_PREFIX = "extension_status.";
|
|
2061
|
+
function extensionStatusKey(reference) {
|
|
2062
|
+
if (!reference.startsWith(EXTENSION_STATUS_PREFIX)) return void 0;
|
|
2063
|
+
const key = reference.slice(EXTENSION_STATUS_PREFIX.length);
|
|
2064
|
+
return key.length > 0 ? key : void 0;
|
|
2065
|
+
}
|
|
2066
|
+
function referencesModule(references, module) {
|
|
2067
|
+
return references.has(module) || module === "extension_status" && [...references].some((reference) => extensionStatusKey(reference) !== void 0);
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2059
2070
|
// src/config.ts
|
|
2060
2071
|
var CONFIG_FILE_NAME = "pi-starship.toml";
|
|
2061
2072
|
var MODULE_CONTENT_VARIABLES = Object.fromEntries(
|
|
@@ -2537,7 +2548,7 @@ function cloneBuiltInConfig() {
|
|
|
2537
2548
|
}
|
|
2538
2549
|
function validateFormatVariables(ast, allowed, path, diagnostics) {
|
|
2539
2550
|
for (const variable of formatVariables(ast)) {
|
|
2540
|
-
if (allowed.has(variable)) continue;
|
|
2551
|
+
if (allowed.has(variable) || path === "format" && extensionStatusKey(variable) !== void 0) continue;
|
|
2541
2552
|
diagnostics.push(
|
|
2542
2553
|
diagnostic("warning", path, `Unknown variable ${JSON.stringify(variable)} in ${path} was ignored`)
|
|
2543
2554
|
);
|
|
@@ -2701,6 +2712,8 @@ export {
|
|
|
2701
2712
|
directoryAlternateFormat,
|
|
2702
2713
|
MODULE_DEFINITIONS,
|
|
2703
2714
|
MODULE_NAMES,
|
|
2715
|
+
extensionStatusKey,
|
|
2716
|
+
referencesModule,
|
|
2704
2717
|
BUILT_IN_EXAMPLE,
|
|
2705
2718
|
settingsFilePath,
|
|
2706
2719
|
nativeFooterConfig,
|
|
@@ -2714,4 +2727,4 @@ export {
|
|
|
2714
2727
|
removeConfigDocumentIfMatches,
|
|
2715
2728
|
activePalette
|
|
2716
2729
|
};
|
|
2717
|
-
//# sourceMappingURL=chunk-
|
|
2730
|
+
//# sourceMappingURL=chunk-VK26JO5L.ts.map
|