@agnishc/edb-compact-tools 0.1.0 → 0.10.3

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +1 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agnishc/edb-compact-tools",
3
- "version": "0.1.0",
3
+ "version": "0.10.3",
4
4
  "description": "Pi extension: compact outlined tool-call renderers with ctrl+o expansion",
5
5
  "keywords": [
6
6
  "pi-package",
package/src/index.ts CHANGED
@@ -271,11 +271,6 @@ function toolText(
271
271
  return new ToolBlock(kind, toolName, lines, theme, borderColor);
272
272
  }
273
273
 
274
- function toolBg(theme: CompactTheme, text: string, state: "pending" | "success" | "error"): string {
275
- const token = state === "pending" ? "toolPendingBg" : state === "error" ? "toolErrorBg" : "toolSuccessBg";
276
- return theme.bg ? theme.bg(token, text) : text;
277
- }
278
-
279
274
  function renderCall(_toolName: string, _args: any, _theme: CompactTheme, _context: any) {
280
275
  return new EmptyBlock();
281
276
  }
@@ -323,13 +318,7 @@ function renderResult(toolName: string, result: any, options: any, theme: Compac
323
318
  }
324
319
  lines.unshift(top);
325
320
  lines.push(bottomLine(toolName, theme, `${theme.fg(statusColor, statusIcon)} ${theme.fg("toolOutput", summary)}`));
326
- return toolText(
327
- "full",
328
- toolName,
329
- lines,
330
- theme,
331
- borderColor,
332
- );
321
+ return toolText("full", toolName, lines, theme, borderColor);
333
322
  }
334
323
 
335
324
  function padVisible(text: string, width: number): string {