donsetch 2.2.2 → 2.2.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.
- package/package.json +1 -1
- package/pi-extension.ts +7 -8
package/package.json
CHANGED
package/pi-extension.ts
CHANGED
|
@@ -32,12 +32,11 @@ const CALL_TIMEOUT_MS = 120_000;
|
|
|
32
32
|
const SHUTDOWN_GRACE_MS = 2_000;
|
|
33
33
|
|
|
34
34
|
// ── Color palette — DonSeTch amber theme ──
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
//
|
|
38
|
-
//
|
|
35
|
+
// Pi's TUI wraps successful tool calls in green and failures in red.
|
|
36
|
+
// We do NOT use green or red in our render output — that's pi's job.
|
|
37
|
+
// Amber for our own accents (tool name, icons), dim for metadata.
|
|
38
|
+
// Clean separation: pi handles success/fail coloring, we handle content.
|
|
39
39
|
const C_AMBER = "\x1b[38;2;255;178;0m";
|
|
40
|
-
const C_RED = "\x1b[38;2;229;115;115m";
|
|
41
40
|
const C_DIM = "\x1b[38;2;130;130;140m";
|
|
42
41
|
const C_CREAM = "\x1b[38;2;240;230;210m";
|
|
43
42
|
const RESET = "\x1b[0m";
|
|
@@ -445,8 +444,6 @@ export default function (pi: ExtensionAPI) {
|
|
|
445
444
|
|
|
446
445
|
const isErr = result?.isError || result?.details?.isError;
|
|
447
446
|
const d = result?.details ?? {};
|
|
448
|
-
const glyph = isErr ? "\u2717" : "\u2713";
|
|
449
|
-
const glyphColor = isErr ? C_RED : C_AMBER;
|
|
450
447
|
|
|
451
448
|
// Build metadata string per tool
|
|
452
449
|
let meta = "";
|
|
@@ -477,7 +474,9 @@ export default function (pi: ExtensionAPI) {
|
|
|
477
474
|
line2 = d.preview;
|
|
478
475
|
}
|
|
479
476
|
|
|
480
|
-
|
|
477
|
+
// No glyph coloring — pi wraps the whole result in green
|
|
478
|
+
// (success) or red (failure). We just output the text.
|
|
479
|
+
const line1 = `${C_AMBER}${toolName}${RESET} ${C_DIM}\u00B7 ${meta}${RESET}`;
|
|
481
480
|
const output = line2
|
|
482
481
|
? `${line1}\n ${C_DIM}${line2}${RESET}`
|
|
483
482
|
: line1;
|