pi-spark 0.14.0 → 0.14.2
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/package.json
CHANGED
|
@@ -31,15 +31,14 @@ export const whoamiAction = defineAction({
|
|
|
31
31
|
return container;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
if (details.sessionName) {
|
|
35
|
+
container.addChild(new Text(theme.fg("muted", `session ${details.sessionName}`), 0, 0));
|
|
36
|
+
}
|
|
36
37
|
|
|
37
38
|
if (details.model) {
|
|
38
39
|
const row = toModelRow(details.model, details.thinkingLevel);
|
|
39
40
|
const cells = [row.label, row.cost, row.context].join(" ");
|
|
40
|
-
container.addChild(new Text(
|
|
41
|
-
} else {
|
|
42
|
-
container.addChild(new Text(`${theme.fg("muted", "model")} ${theme.fg("dim", "(no-model)")}`, 0, 0));
|
|
41
|
+
container.addChild(new Text(theme.fg("muted", `model ${cells}`), 0, 0));
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
return container;
|
package/src/utils/format.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { ImageContent, Provider, TextContent } from "@earendil-works/pi-ai"
|
|
|
4
4
|
import type { ContextUsage } from "@earendil-works/pi-coding-agent";
|
|
5
5
|
|
|
6
6
|
export function formatModel(provider?: Provider, model?: string, thinkingLevel?: string): string {
|
|
7
|
-
return provider && model ? `${provider}/${model}${thinkingLevel ? `:${thinkingLevel}` : ""}` : "
|
|
7
|
+
return provider && model ? `${provider}/${model}${thinkingLevel ? `:${thinkingLevel}` : ""}` : "no-model";
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export function formatTokens(count: number): string {
|