@agnishc/edb-compact-tools 0.10.4 → 0.10.6

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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.6] - 2026-05-15
4
+
5
+ ## [0.10.5] - 2026-05-15
6
+
7
+ ### Changed
8
+ - Brightened call label and status summary colors (`dim`/`muted` → `toolOutput`) for improved legibility
9
+ - Removed background fill from expanded body lines — output now renders on terminal background for better contrast
10
+ - Added blank line after separator and after closing box border for visual breathing room
11
+ - Reduced max line width from 180 to 120 characters
12
+ - Added `promptSnippet` forwarded from built-in tool definitions so overridden tools (`bash`, `read`, `grep`, `find`, `ls`, `edit`, `write`) still appear in the system prompt's Available tools section
13
+
3
14
  ## 0.1.0
4
15
 
5
16
  - Initial compact outlined renderers for `read`, `bash`, `grep`, `find`, and `ls`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agnishc/edb-compact-tools",
3
- "version": "0.10.4",
3
+ "version": "0.10.6",
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
@@ -35,24 +35,26 @@ const TOOL_EXECUTION_PATCH_SYMBOL = Symbol.for("edb-compact-tools.tool-execution
35
35
  const USER_MESSAGE_PATCH_SYMBOL = Symbol.for("edb-compact-tools.user-message-patch");
36
36
  const ASSISTANT_MESSAGE_PATCH_SYMBOL = Symbol.for("edb-compact-tools.assistant-message-patch");
37
37
  const USER_MESSAGE_MARKER_SYMBOL = Symbol.for("edb-compact-tools.user-message-marker");
38
+ const ASSISTANT_MESSAGE_MARKER_SYMBOL = Symbol.for("edb-compact-tools.assistant-message-marker");
38
39
  const USER_MESSAGE_EMOJIS = [
39
- "✨",
40
- "🚀",
41
- "🧠",
42
- "⚡",
43
- "🔥",
44
- "🌿",
45
- "🌀",
46
- "💎",
47
- "🛠️",
48
- "🎯",
49
40
  "🦊",
50
41
  "🐙",
51
- "🌙",
52
- "",
53
- "🍀",
54
- "🪄",
42
+ "🐸",
43
+ "🐻",
44
+ "🐼",
45
+ "🐨",
46
+ "🦥",
47
+ "🦔",
48
+ "🦫",
49
+ "🦚",
50
+ "🦩",
51
+ "🦉",
52
+ "🐰",
53
+ "🐢",
54
+ "🦎",
55
+ "🦖",
55
56
  ];
57
+ const ASSISTANT_MESSAGE_EMOJIS = ["🤖", "🧠", "🦾", "🛸", "💡"];
56
58
  let activeTheme: CompactTheme | undefined;
57
59
  const OSC133_ZONE_START = "\x1b]133;A\x07";
58
60
  const OSC133_ZONE_END = "\x1b]133;B\x07";
@@ -367,8 +369,13 @@ function frameUserMessage(lines: string[], width: number, theme: CompactTheme, m
367
369
  return frameMessage(lines, width, theme, markerText, "accent", "error");
368
370
  }
369
371
 
370
- function frameAssistantMessage(lines: string[], width: number, theme: CompactTheme): string[] {
371
- return frameMessage(lines, width, theme, "AI", "borderMuted", "toolTitle");
372
+ function randomAssistantMessageMarker(): string {
373
+ return ASSISTANT_MESSAGE_EMOJIS[Math.floor(Math.random() * ASSISTANT_MESSAGE_EMOJIS.length)] ?? "🤖";
374
+ }
375
+
376
+ function _frameAssistantMessage(lines: string[], width: number, theme: CompactTheme): string[] {
377
+ const marker = randomAssistantMessageMarker();
378
+ return frameMessage(lines, width, theme, marker, "border", "toolTitle");
372
379
  }
373
380
 
374
381
  function installGenericToolRendererPatch(pi: ExtensionAPI): void {
@@ -446,7 +453,16 @@ function installMessageRenderers(pi: ExtensionAPI): void {
446
453
  const rendered = originalRender.call(this, Math.max(1, width - 3));
447
454
  if (this?.hasToolCalls || rendered.length === 0) return rendered;
448
455
  const frameWidth = Math.max(1, width - 1);
449
- return frameAssistantMessage(rendered, frameWidth, activeTheme ?? fallbackTheme());
456
+ if (!this[ASSISTANT_MESSAGE_MARKER_SYMBOL])
457
+ this[ASSISTANT_MESSAGE_MARKER_SYMBOL] = randomAssistantMessageMarker();
458
+ return frameMessage(
459
+ rendered,
460
+ frameWidth,
461
+ activeTheme ?? fallbackTheme(),
462
+ this[ASSISTANT_MESSAGE_MARKER_SYMBOL],
463
+ "border",
464
+ "toolTitle",
465
+ );
450
466
  };
451
467
  assistantProto[ASSISTANT_MESSAGE_PATCH_SYMBOL] = { originalRender };
452
468
  }
@@ -488,6 +504,7 @@ function registerDelegatingTool(
488
504
  name,
489
505
  label: name,
490
506
  description: original.description,
507
+ promptSnippet: (original as any).promptSnippet,
491
508
  parameters: original.parameters as any,
492
509
  renderShell: "self",
493
510
  async execute(id: string, params: unknown, signal?: AbortSignal, onUpdate?: unknown, ctx?: any) {