@agnishc/edb-compact-tools 0.10.5 → 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,7 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.6] - 2026-05-15
4
+
3
5
  ## [0.10.5] - 2026-05-15
4
6
 
5
7
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agnishc/edb-compact-tools",
3
- "version": "0.10.5",
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
  }