@ait-co/devtools 0.1.108 → 0.1.109
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/dist/bundle-KFs4t-wc.d.ts +96 -0
- package/dist/bundle-KFs4t-wc.d.ts.map +1 -0
- package/dist/mcp/cli.js +186 -40
- package/dist/mcp/cli.js.map +1 -1
- package/dist/mcp/server.js +3 -3
- package/dist/mcp/server.js.map +1 -1
- package/dist/panel/index.js +1 -1
- package/dist/{pool-Dkp7I9Bf.d.ts → pool-CuVMzWGB.d.ts} +5 -5
- package/dist/{pool-Dkp7I9Bf.d.ts.map → pool-CuVMzWGB.d.ts.map} +1 -1
- package/dist/{relay-worker-BzFQ3fv9.d.ts → relay-worker-xxanNQGs.d.ts} +3 -3
- package/dist/relay-worker-xxanNQGs.d.ts.map +1 -0
- package/dist/{runtime-ORdrpizY.d.ts → runtime-Wi5d6Ywz.d.ts} +3 -3
- package/dist/{runtime-ORdrpizY.d.ts.map → runtime-Wi5d6Ywz.d.ts.map} +1 -1
- package/dist/test-runner/bundle.d.ts +1 -1
- package/dist/test-runner/bundle.js +148 -11
- package/dist/test-runner/bundle.js.map +1 -1
- package/dist/test-runner/cli.d.ts +59 -14
- package/dist/test-runner/cli.d.ts.map +1 -1
- package/dist/test-runner/cli.js +171 -32
- package/dist/test-runner/cli.js.map +1 -1
- package/dist/test-runner/config.d.ts +1 -1
- package/dist/test-runner/pool.d.ts +1 -1
- package/dist/test-runner/relay-worker.d.ts +1 -1
- package/dist/test-runner/relay-worker.js.map +1 -1
- package/dist/test-runner/rpc.d.ts +1 -1
- package/dist/test-runner/rpc.d.ts.map +1 -1
- package/dist/test-runner/rpc.js +1 -1
- package/dist/test-runner/rpc.js.map +1 -1
- package/dist/test-runner/task-graph.d.ts +1 -1
- package/package.json +1 -1
- package/dist/bundle-BJm5jk56.d.ts +0 -49
- package/dist/bundle-BJm5jk56.d.ts.map +0 -1
- package/dist/relay-worker-BzFQ3fv9.d.ts.map +0 -1
package/dist/mcp/server.js
CHANGED
|
@@ -487,7 +487,7 @@ new Set([
|
|
|
487
487
|
},
|
|
488
488
|
{
|
|
489
489
|
name: "run_tests",
|
|
490
|
-
description: "Runs mini-app test files on the attached page over CDP (Runtime.evaluate). Each matched file is bundled with esbuild (SDK imports redirected to the live mock/SDK), injected into the attached WebView, and executed; returns per-file results plus flattened totals (passed/failed/skipped/total). Requires an attached page — call list_pages first to confirm one is attached. Files run SEQUENTIALLY (single-attach model: the relay/local target serves one page), and one run_tests call runs at a time (a concurrent call is rejected). Test verification (assert/snapshot) is delegated to the in-page Vitest runtime; this tool is the transport + report. The per-file results array is the progress record — on partial failure you see exactly which files passed/failed/timed-out. In a relay-live session this is a state-mutating injection and is blocked unless confirm=true (ignored in mock/local
|
|
490
|
+
description: "Runs mini-app test files on the attached page over CDP (Runtime.evaluate). Each matched file is bundled with esbuild (SDK imports redirected to the live mock/SDK), injected into the attached WebView, and executed; returns per-file results plus flattened totals (passed/failed/skipped/total). Requires an attached page — call list_pages first to confirm one is attached. Files run SEQUENTIALLY (single-attach model: the relay/local target serves one page), and one run_tests call runs at a time (a concurrent call is rejected). Test verification (assert/snapshot) is delegated to the in-page Vitest runtime; this tool is the transport + report. The per-file results array is the progress record — on partial failure you see exactly which files passed/failed/timed-out. In a relay-live session this is a state-mutating injection and is blocked unless confirm=true (confirm is ignored in every non-live session: mock/local, relay-dev, relay-mobile). debug-mode only — dev-mode (--mode=dev) has no CDP. Tier C (both mock/local and relay). The devtools-test CLI shares this run core and file discovery, but its standalone relay attach is not wired yet — run via this tool for now.",
|
|
491
491
|
inputSchema: {
|
|
492
492
|
type: "object",
|
|
493
493
|
properties: {
|
|
@@ -506,7 +506,7 @@ new Set([
|
|
|
506
506
|
},
|
|
507
507
|
confirm: {
|
|
508
508
|
type: "boolean",
|
|
509
|
-
description: "Required (true) to run in a relay-live session — test injection mutates page state. Ignored in mock/local
|
|
509
|
+
description: "Required (true) to run in a relay-live session — test injection mutates page state. Ignored in every non-live session (mock/local, relay-dev, relay-mobile)."
|
|
510
510
|
}
|
|
511
511
|
},
|
|
512
512
|
required: ["files"]
|
|
@@ -1025,7 +1025,7 @@ function createDevServer(deps = {}) {
|
|
|
1025
1025
|
const aitSource = deps.aitSource ?? new HttpAitSource({ stateEndpoint });
|
|
1026
1026
|
const server = new Server({
|
|
1027
1027
|
name: "ait-devtools",
|
|
1028
|
-
version: "0.1.
|
|
1028
|
+
version: "0.1.109"
|
|
1029
1029
|
}, { capabilities: { tools: {} } });
|
|
1030
1030
|
server.setRequestHandler(ListToolsRequestSchema, () => ({ tools: DEV_TOOL_DEFINITIONS.map((tool) => ({ ...tool })) }));
|
|
1031
1031
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|