@xynogen/pix-9router 0.3.14 → 0.3.16
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 +2 -2
- package/src/format.test.ts +2 -1
- package/src/render.test.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xynogen/pix-9router",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.16",
|
|
4
4
|
"description": "Pi extension — 9Router provider + fetch/search tools via router API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"@xynogen/pix-data": "^0.4.3",
|
|
47
47
|
"@xynogen/pix-pretty": "^1.11.2",
|
|
48
48
|
"typebox": "^1.1.38",
|
|
49
|
-
"@xynogen/pix-runtime": "^0.
|
|
49
|
+
"@xynogen/pix-runtime": "^0.7.0"
|
|
50
50
|
}
|
|
51
51
|
}
|
package/src/format.test.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { describe, expect, it } from "bun:test";
|
|
2
|
+
import { COLLAPSED_TOOL_GLYPH } from "@xynogen/pix-pretty/utils";
|
|
2
3
|
import registerFetch, { executeFetch, formatFetchResult } from "./fetch.ts";
|
|
3
4
|
import registerSearch, {
|
|
4
5
|
executeSearch,
|
|
@@ -365,7 +366,7 @@ describe("fetch and search compact renderers", () => {
|
|
|
365
366
|
chars: 120,
|
|
366
367
|
},
|
|
367
368
|
});
|
|
368
|
-
expect(fetchRow).toContain(
|
|
369
|
+
expect(fetchRow).toContain(COLLAPSED_TOOL_GLYPH.warning);
|
|
369
370
|
expect(fetchRow).toContain("120 chars · curl fallback");
|
|
370
371
|
|
|
371
372
|
const searchRow = renderRegisteredResult(
|
package/src/render.test.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { expect, test } from "bun:test";
|
|
2
|
+
import { COLLAPSED_TOOL_GLYPH } from "@xynogen/pix-pretty/utils";
|
|
2
3
|
import { makeRenderCall, makeRenderResult } from "./render.js";
|
|
3
4
|
|
|
4
5
|
const theme = {
|
|
@@ -127,8 +128,8 @@ test("renderResult caps the normal preview", () => {
|
|
|
127
128
|
|
|
128
129
|
test("warning and error callbacks select shared status glyphs", () => {
|
|
129
130
|
for (const [status, glyph] of [
|
|
130
|
-
["warning",
|
|
131
|
-
["error",
|
|
131
|
+
["warning", COLLAPSED_TOOL_GLYPH.warning],
|
|
132
|
+
["error", COLLAPSED_TOOL_GLYPH.error],
|
|
132
133
|
] as const) {
|
|
133
134
|
const stub = stubComponent();
|
|
134
135
|
const rr = makeRenderResult({ ...config, status: () => status });
|