@ait-co/devtools 0.1.115 → 0.1.117
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/cli-CvUNQKqw.js +2552 -0
- package/dist/cli-CvUNQKqw.js.map +1 -0
- package/dist/debug-server-BvrESnaV.js +921 -0
- package/dist/debug-server-BvrESnaV.js.map +1 -0
- package/dist/debug-server-jrI9U_f4.js +8259 -0
- package/dist/debug-server-jrI9U_f4.js.map +1 -0
- package/dist/mcp/cli.js +3 -7925
- package/dist/mcp/cli.js.map +1 -1
- package/dist/mcp/server.js +11 -2
- package/dist/mcp/server.js.map +1 -1
- package/dist/panel/index.js +1 -1
- package/dist/{pool-D23t4ibd.d.ts → pool-htlVnEFl.d.ts} +2 -2
- package/dist/{pool-D23t4ibd.d.ts.map → pool-htlVnEFl.d.ts.map} +1 -1
- package/dist/relay-secret-store-BHcOmaNK.js +3 -0
- package/dist/relay-secret-store-CkA7KNUb.js +154 -0
- package/dist/{relay-secret-store-DhzAnnj-.js.map → relay-secret-store-CkA7KNUb.js.map} +1 -1
- package/dist/{relay-secret-store-DhzAnnj-.js → relay-secret-store-CmqchhR5.js} +3 -3
- package/dist/relay-secret-store-CmqchhR5.js.map +1 -0
- package/dist/{relay-url-store-CwKT7i04.js → relay-url-store-C0qukm3R.js} +2 -2
- package/dist/{relay-url-store-CwKT7i04.js.map → relay-url-store-C0qukm3R.js.map} +1 -1
- package/dist/relay-url-store-NDtEcOE-.js +123 -0
- package/dist/relay-url-store-NDtEcOE-.js.map +1 -0
- package/dist/{relay-worker-DERQUao2.d.ts → relay-worker-DWW4vZxU.d.ts} +2 -2
- package/dist/{relay-worker-DERQUao2.d.ts.map → relay-worker-DWW4vZxU.d.ts.map} +1 -1
- package/dist/{runtime-BKMMoeMj.d.ts → runtime-BU-iMHz6.d.ts} +43 -4
- package/dist/runtime-BU-iMHz6.d.ts.map +1 -0
- package/dist/test-runner/cli.d.ts +19 -7
- package/dist/test-runner/cli.d.ts.map +1 -1
- package/dist/test-runner/cli.js +1 -620
- 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/rpc.d.ts +1 -1
- package/dist/test-runner/runtime.d.ts +1 -1
- package/dist/test-runner/runtime.js +111 -3
- package/dist/test-runner/runtime.js.map +1 -1
- package/dist/test-runner/task-graph.d.ts +1 -1
- package/dist/totp-D104cJQN.js +3 -0
- package/dist/{totp-WY6l0ysP.js → totp-D70zD5tJ.js} +1 -1
- package/dist/{totp-WY6l0ysP.js.map → totp-D70zD5tJ.js.map} +1 -1
- package/dist/totp-DvOYkYim.js +212 -0
- package/dist/totp-DvOYkYim.js.map +1 -0
- package/package.json +1 -1
- package/dist/runtime-BKMMoeMj.d.ts.map +0 -1
- package/dist/test-runner/cli.js.map +0 -1
- package/dist/totp-D1pulXLa.js +0 -3
package/dist/mcp/server.js
CHANGED
|
@@ -478,7 +478,7 @@ new Set([
|
|
|
478
478
|
},
|
|
479
479
|
{
|
|
480
480
|
name: "run_tests",
|
|
481
|
-
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).
|
|
481
|
+
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). When there is no attached page and the current environment is relay (env 3), this tool automatically shows the QR dashboard and waits for a phone to connect before running (scheme_url required for env 3 relay-dev). 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. Positive-allowlist kill-switch (#665): blocked when the attached page is on a non-debug host. debug-mode only — dev-mode (--mode=dev) has no CDP. Tier C (both mock/local and relay).",
|
|
482
482
|
inputSchema: {
|
|
483
483
|
type: "object",
|
|
484
484
|
properties: {
|
|
@@ -494,6 +494,15 @@ new Set([
|
|
|
494
494
|
timeout_ms: {
|
|
495
495
|
type: "number",
|
|
496
496
|
description: "Per-file evaluate timeout in ms (default 30000, range 1000–600000). Out-of-range/invalid values fall back to the default."
|
|
497
|
+
},
|
|
498
|
+
scheme_url: {
|
|
499
|
+
type: "string",
|
|
500
|
+
description: "intoss-private:// deep-link URL from `ait deploy --scheme-only` (env 3 relay-dev only). Required when there is no attached page and the environment is relay-dev — the tool uses it to build the QR attach URL and wait for the phone to connect. Ignored when a page is already attached."
|
|
501
|
+
},
|
|
502
|
+
cell: {
|
|
503
|
+
type: "object",
|
|
504
|
+
description: "Optional cell object to inject into globalThis BEFORE running tests (e.g. { \"__AIT_CELL__\": { \"sdkLine\": \"2.x\", \"platform\": \"ios\" } }). Applied only on the auto-attach path (no-page → attach → inject → run). When a page is already attached the caller is responsible for any prior injection. Ignored when empty or absent. Values must be JSON-serialisable.",
|
|
505
|
+
additionalProperties: true
|
|
497
506
|
}
|
|
498
507
|
},
|
|
499
508
|
required: ["files"]
|
|
@@ -1013,7 +1022,7 @@ function createDevServer(deps = {}) {
|
|
|
1013
1022
|
const aitSource = deps.aitSource ?? new HttpAitSource({ stateEndpoint });
|
|
1014
1023
|
const server = new Server({
|
|
1015
1024
|
name: "ait-devtools",
|
|
1016
|
-
version: "0.1.
|
|
1025
|
+
version: "0.1.117"
|
|
1017
1026
|
}, { capabilities: { tools: {} } });
|
|
1018
1027
|
server.setRequestHandler(ListToolsRequestSchema, () => ({ tools: DEV_TOOL_DEFINITIONS.map((tool) => ({ ...tool })) }));
|
|
1019
1028
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|