@narumitw/pi-starship 0.65.2 → 0.66.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 +5 -0
- package/dist/chunks/{chunk-PZWT7OTP.ts → chunk-BOMYDCT7.ts} +3 -3
- package/dist/chunks/{chunk-5YA3XF7S.ts → chunk-CUXPMKBQ.ts} +16 -1
- package/dist/chunks/chunk-CUXPMKBQ.ts.map +7 -0
- package/dist/chunks/{chunk-RQY2AYI2.ts → chunk-UZJIMIWL.ts} +2 -2
- package/dist/chunks/{command-configuration-menu-JHKQ5SDW.ts → command-configuration-menu-N3SP6R3I.ts} +3 -3
- package/dist/chunks/{command-settings-chat-RN2GDMF5.ts → command-settings-chat-4NLO3RDC.ts} +4 -4
- package/dist/chunks/{commands-XIRYGV7S.ts → commands-MSJ67CTR.ts} +6 -6
- package/dist/index.ts +20 -6
- package/dist/index.ts.map +2 -2
- package/package.json +1 -1
- package/skills/configure-pi-starship/references/module-catalog.md +17 -1
- package/skills/configure-pi-starship/references/modules.md +27 -0
- package/src/modules/catalog.ts +4 -0
- package/src/modules/tokens-per-second.ts +14 -0
- package/src/modules/types.ts +1 -0
- package/src/pi-starship.ts +4 -7
- package/src/usage.ts +25 -0
- package/dist/chunks/chunk-5YA3XF7S.ts.map +0 -7
- /package/dist/chunks/{chunk-PZWT7OTP.ts.map → chunk-BOMYDCT7.ts.map} +0 -0
- /package/dist/chunks/{chunk-RQY2AYI2.ts.map → chunk-UZJIMIWL.ts.map} +0 -0
- /package/dist/chunks/{command-configuration-menu-JHKQ5SDW.ts.map → command-configuration-menu-N3SP6R3I.ts.map} +0 -0
- /package/dist/chunks/{command-settings-chat-RN2GDMF5.ts.map → command-settings-chat-4NLO3RDC.ts.map} +0 -0
- /package/dist/chunks/{commands-XIRYGV7S.ts.map → commands-MSJ67CTR.ts.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @narumitw/pi-starship
|
|
2
2
|
|
|
3
|
+
## 0.66.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 50292b9: Add an opt-in `tokens_per_second` footer module that shows the latest completed assistant response's average output rate on the active branch using Pi's recorded token usage and response duration. Hide unavailable or unsuccessful measurements without changing existing layouts or usage totals.
|
|
8
|
+
|
|
3
9
|
## 0.65.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ The extension parses and renders the footer itself, so it does not need the `sta
|
|
|
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
|
+
- Offers an opt-in `tokens_per_second` module for the latest completed response's average output rate.
|
|
17
18
|
- Offers opt-in Jujutsu, native RAM/optional Linux swap, and Linux sysfs battery modules, all disabled by default.
|
|
18
19
|
- Wraps native multiline layouts to terminal width, with an ellipsis fallback for a grapheme wider than the terminal.
|
|
19
20
|
- Keeps rendering pure while refreshing filesystem, process, and network-derived data through bounded caches.
|
|
@@ -117,6 +118,10 @@ The built-in Starship example remains an editing seed; saving it enables a Stars
|
|
|
117
118
|
Module references cover bounded regex substitutions/context rules, component version formats, Git templates/controls, clock zones/ranges, Python argv alternatives, environment detectors, requirement styling, and private-package visibility.
|
|
118
119
|
The six Jujutsu/system modules require explicit `disabled = false` plus a root reference or `$all`; see [module behavior](./skills/configure-pi-starship/references/modules.md#jujutsu-modules).
|
|
119
120
|
|
|
121
|
+
To show response-average output throughput, add `$tokens_per_second` to the root `format` and set `[tokens_per_second].disabled = false`.
|
|
122
|
+
It is disabled by default and uses Pi's recorded output tokens and response duration, including request latency rather than only token generation.
|
|
123
|
+
See [tokens per second](./skills/configure-pi-starship/references/modules.md#tokens-per-second) for an example and missing-data behavior.
|
|
124
|
+
|
|
120
125
|
The cost module preserves its numeric format and can show provider-total provenance through the optional `$source` variable.
|
|
121
126
|
See [usage semantics](./skills/configure-pi-starship/references/modules.md#usage-semantics) for `provider` versus `unconfirmed`, mixed and older sessions, and the separation from account quotas and balances.
|
|
122
127
|
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
readProfile,
|
|
13
13
|
renameProfile,
|
|
14
14
|
saveProfile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UZJIMIWL.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-CUXPMKBQ.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-BOMYDCT7.ts.map
|
|
@@ -1936,6 +1936,19 @@ var tokensModule = defineModule({
|
|
|
1936
1936
|
})
|
|
1937
1937
|
});
|
|
1938
1938
|
|
|
1939
|
+
// src/modules/tokens-per-second.ts
|
|
1940
|
+
var tokensPerSecondModule = defineModule({
|
|
1941
|
+
name: "tokens_per_second",
|
|
1942
|
+
variables: ["symbol", "rate"],
|
|
1943
|
+
defaults: {
|
|
1944
|
+
format: "[$rate tok/s ]($style)",
|
|
1945
|
+
symbol: "",
|
|
1946
|
+
style: "bold cyan",
|
|
1947
|
+
disabled: true
|
|
1948
|
+
},
|
|
1949
|
+
values: ({ runtime }) => runtime.tokensPerSecond === void 0 ? void 0 : { rate: runtime.tokensPerSecond.toFixed(1) }
|
|
1950
|
+
});
|
|
1951
|
+
|
|
1939
1952
|
// src/modules/turn.ts
|
|
1940
1953
|
var turnModule = defineModule({
|
|
1941
1954
|
name: "turn",
|
|
@@ -1974,6 +1987,7 @@ var MODULE_IMPLEMENTATIONS = [
|
|
|
1974
1987
|
activityModule,
|
|
1975
1988
|
contextModule,
|
|
1976
1989
|
tokensModule,
|
|
1990
|
+
tokensPerSecondModule,
|
|
1977
1991
|
cacheModule,
|
|
1978
1992
|
costModule,
|
|
1979
1993
|
timeModule,
|
|
@@ -2032,6 +2046,7 @@ var MODULE_DESCRIPTIONS = {
|
|
|
2032
2046
|
thinking: "Current Pi thinking level or streaming state.",
|
|
2033
2047
|
time: "Current local time.",
|
|
2034
2048
|
tokens: "Session input and output token totals.",
|
|
2049
|
+
tokens_per_second: "Average output tokens per second for the latest completed assistant response on the active branch.",
|
|
2035
2050
|
turn: "Current user-turn count.",
|
|
2036
2051
|
username: "Current user identity when configured to display."
|
|
2037
2052
|
};
|
|
@@ -2699,4 +2714,4 @@ export {
|
|
|
2699
2714
|
removeConfigDocumentIfMatches,
|
|
2700
2715
|
activePalette
|
|
2701
2716
|
};
|
|
2702
|
-
//# sourceMappingURL=chunk-
|
|
2717
|
+
//# sourceMappingURL=chunk-CUXPMKBQ.ts.map
|