@xynogen/pix-9router 0.3.18 → 0.3.19
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/render.test.ts +5 -3
- package/src/render.ts +1 -1
package/package.json
CHANGED
package/src/render.test.ts
CHANGED
|
@@ -36,11 +36,13 @@ const config = {
|
|
|
36
36
|
meta: (details: { _type: "fetchResult"; chars: number }) => `${details.chars} chars`,
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
test("renderCall shows title +
|
|
39
|
+
test("renderCall shows title + muted arg", () => {
|
|
40
40
|
const stub = stubComponent();
|
|
41
41
|
const rc = makeRenderCall<{ url: string }>("fetch", (a) => a.url);
|
|
42
42
|
rc({ url: "https://x.com" }, theme, context(stub));
|
|
43
|
-
|
|
43
|
+
// Only the tool name is accent/toolTitle-colored; the arg is muted so the
|
|
44
|
+
// header doesn't render as one solid blue line (accent === toolTitle).
|
|
45
|
+
expect(stub.get()).toBe("[toolTitle]*fetch* [muted]https://x.com");
|
|
44
46
|
});
|
|
45
47
|
|
|
46
48
|
test("renderCall hides only an effectively collapsed call row", () => {
|
|
@@ -54,7 +56,7 @@ test("renderCall hides only an effectively collapsed call row", () => {
|
|
|
54
56
|
theme,
|
|
55
57
|
context(stub, { state: { collapsed: true }, expanded: true }),
|
|
56
58
|
);
|
|
57
|
-
expect(stub.get()).toBe("[toolTitle]*fetch* [
|
|
59
|
+
expect(stub.get()).toBe("[toolTitle]*fetch* [muted]https://x.com");
|
|
58
60
|
});
|
|
59
61
|
|
|
60
62
|
test("renderResult renders structured compact details after collapse", () => {
|
package/src/render.ts
CHANGED
|
@@ -97,7 +97,7 @@ export function makeRenderCall<TArgs>(title: string, pickArg: (args: TArgs) => s
|
|
|
97
97
|
)
|
|
98
98
|
return text;
|
|
99
99
|
const arg = pickArg(args);
|
|
100
|
-
text.setText(`${theme.fg("toolTitle", theme.bold(title))} ${theme.fg("
|
|
100
|
+
text.setText(`${theme.fg("toolTitle", theme.bold(title))} ${theme.fg("muted", arg)}`);
|
|
101
101
|
return text;
|
|
102
102
|
};
|
|
103
103
|
}
|