@xynogen/pix-9router 0.3.16 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-9router",
3
- "version": "0.3.16",
3
+ "version": "0.3.19",
4
4
  "description": "Pi extension — 9Router provider + fetch/search tools via router API",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -43,9 +43,8 @@
43
43
  "@earendil-works/pi-tui": "*"
44
44
  },
45
45
  "dependencies": {
46
- "@xynogen/pix-data": "^0.4.3",
47
46
  "@xynogen/pix-pretty": "^1.11.2",
48
47
  "typebox": "^1.1.38",
49
- "@xynogen/pix-runtime": "^0.7.0"
48
+ "@xynogen/pix-runtime": "^0.8.0"
50
49
  }
51
50
  }
@@ -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 + accent arg", () => {
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
- expect(stub.get()).toBe("[toolTitle]*fetch* [accent]https://x.com");
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* [accent]https://x.com");
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("accent", arg)}`);
100
+ text.setText(`${theme.fg("toolTitle", theme.bold(title))} ${theme.fg("muted", arg)}`);
101
101
  return text;
102
102
  };
103
103
  }