pi-spark 0.9.1 → 0.9.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.
@@ -1,5 +1,5 @@
1
1
  import { clampThinkingLevel, getSupportedThinkingLevels, StringEnum } from "@earendil-works/pi-ai";
2
- import { DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, truncateHead } from "@earendil-works/pi-coding-agent";
2
+ import { DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, keyText, truncateHead } from "@earendil-works/pi-coding-agent";
3
3
  import { Container, Spacer, Text } from "@earendil-works/pi-tui";
4
4
  import { Type } from "typebox";
5
5
 
@@ -70,7 +70,7 @@ export default function (pi: ExtensionAPI) {
70
70
  description: "For list: maximum number of models to return"
71
71
  })),
72
72
  }),
73
- renderCall(args, theme) {
73
+ renderCall(args, theme, { expanded }) {
74
74
  let text = `${theme.bold(theme.fg("toolTitle", "model"))} ${theme.fg("accent", args.action)}`;
75
75
 
76
76
  if (args.provider) text += theme.fg("muted", ` provider:${args.provider}`);
@@ -78,6 +78,8 @@ export default function (pi: ExtensionAPI) {
78
78
  if (args.offset !== undefined || args.limit !== undefined) text += theme.fg("warning", ` from:${args.offset ?? 1}`);
79
79
  if (args.limit !== undefined) text += theme.fg("warning", ` to:${(args.offset ?? 1) + args.limit - 1}`);
80
80
 
81
+ if (!expanded) text += theme.fg("dim", ` (${keyText("app.tools.expand")} to expand)`);
82
+
81
83
  return new Text(text, 0, 0);
82
84
  },
83
85
  renderResult(result, { expanded }, theme, context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-spark",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "A small, opinionated collection of pi extensions",
5
5
  "keywords": [
6
6
  "pi-coding-agent",