@xynogen/pix-9router 0.3.18 → 0.3.20

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/README.md CHANGED
@@ -17,6 +17,8 @@ Pi coding agent extension — **9Router provider** + **fetch**, **search**, and
17
17
  pi install npm:@xynogen/pix-9router
18
18
  ```
19
19
 
20
+ > Standalone/opt-in — **not** bundled by [`@xynogen/pix-core`](https://www.npmjs.com/package/@xynogen/pix-core). Needs a 9Router API key, so only useful if you route through 9Router.
21
+
20
22
  ## Environment
21
23
 
22
24
  | Variable | Required | Default | Description |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-9router",
3
- "version": "0.3.18",
3
+ "version": "0.3.20",
4
4
  "description": "Pi extension — 9Router provider + fetch/search tools via router API",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -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
  }