@agnishc/edb-compact-tools 0.1.0 → 0.10.4
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 +1 -1
- package/src/index.ts +1 -12
package/package.json
CHANGED
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 {
|