@ait-co/devtools 0.1.113 → 0.1.116

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.
Files changed (71) hide show
  1. package/dist/bundle-KFs4t-wc.d.ts.map +1 -1
  2. package/dist/cli-BLBo0lkP.js +2466 -0
  3. package/dist/cli-BLBo0lkP.js.map +1 -0
  4. package/dist/debug-server-DcAKrbnq.js +921 -0
  5. package/dist/debug-server-DcAKrbnq.js.map +1 -0
  6. package/dist/debug-server-DlXJARIC.js +8171 -0
  7. package/dist/debug-server-DlXJARIC.js.map +1 -0
  8. package/dist/mcp/cli.js +3 -7771
  9. package/dist/mcp/cli.js.map +1 -1
  10. package/dist/mcp/server.js +11 -2
  11. package/dist/mcp/server.js.map +1 -1
  12. package/dist/panel/index.js +7 -1
  13. package/dist/panel/index.js.map +1 -1
  14. package/dist/{pool-mZlgCmNQ.d.ts → pool-htlVnEFl.d.ts} +2 -2
  15. package/dist/{pool-mZlgCmNQ.d.ts.map → pool-htlVnEFl.d.ts.map} +1 -1
  16. package/dist/{qr-http-server-BVS-HZjU.cjs → qr-http-server-BpTvfeku.cjs} +92 -8
  17. package/dist/qr-http-server-BpTvfeku.cjs.map +1 -0
  18. package/dist/{qr-http-server-BJJt3ush.js → qr-http-server-BsWlOA85.js} +92 -8
  19. package/dist/qr-http-server-BsWlOA85.js.map +1 -0
  20. package/dist/{qr-http-server-C1T4RNbq.cjs → qr-http-server-CrVKno9V.cjs} +92 -8
  21. package/dist/qr-http-server-CrVKno9V.cjs.map +1 -0
  22. package/dist/{qr-http-server-Cs93vEPH.js → qr-http-server-UBV2qUEd.js} +92 -8
  23. package/dist/qr-http-server-UBV2qUEd.js.map +1 -0
  24. package/dist/relay-secret-store-BHcOmaNK.js +3 -0
  25. package/dist/relay-secret-store-CkA7KNUb.js +154 -0
  26. package/dist/{relay-secret-store-DhzAnnj-.js.map → relay-secret-store-CkA7KNUb.js.map} +1 -1
  27. package/dist/{relay-secret-store-DhzAnnj-.js → relay-secret-store-CmqchhR5.js} +3 -3
  28. package/dist/relay-secret-store-CmqchhR5.js.map +1 -0
  29. package/dist/{relay-url-store-CwKT7i04.js → relay-url-store-C0qukm3R.js} +2 -2
  30. package/dist/{relay-url-store-CwKT7i04.js.map → relay-url-store-C0qukm3R.js.map} +1 -1
  31. package/dist/relay-url-store-NDtEcOE-.js +123 -0
  32. package/dist/relay-url-store-NDtEcOE-.js.map +1 -0
  33. package/dist/{relay-worker-Dppp2yZj.d.ts → relay-worker-DWW4vZxU.d.ts} +2 -2
  34. package/dist/{relay-worker-Dppp2yZj.d.ts.map → relay-worker-DWW4vZxU.d.ts.map} +1 -1
  35. package/dist/runtime-BU-iMHz6.d.ts +192 -0
  36. package/dist/runtime-BU-iMHz6.d.ts.map +1 -0
  37. package/dist/test-runner/bundle.js +72 -2
  38. package/dist/test-runner/bundle.js.map +1 -1
  39. package/dist/test-runner/cli.d.ts +19 -7
  40. package/dist/test-runner/cli.d.ts.map +1 -1
  41. package/dist/test-runner/cli.js +1 -550
  42. package/dist/test-runner/config.d.ts +1 -1
  43. package/dist/test-runner/pool.d.ts +1 -1
  44. package/dist/test-runner/relay-worker.d.ts +1 -1
  45. package/dist/test-runner/rpc.d.ts +1 -1
  46. package/dist/test-runner/runtime.d.ts +2 -2
  47. package/dist/test-runner/runtime.js +407 -21
  48. package/dist/test-runner/runtime.js.map +1 -1
  49. package/dist/test-runner/task-graph.d.ts +1 -1
  50. package/dist/totp-D104cJQN.js +3 -0
  51. package/dist/{totp-WY6l0ysP.js → totp-D70zD5tJ.js} +1 -1
  52. package/dist/{totp-WY6l0ysP.js.map → totp-D70zD5tJ.js.map} +1 -1
  53. package/dist/totp-DvOYkYim.js +212 -0
  54. package/dist/totp-DvOYkYim.js.map +1 -0
  55. package/dist/{tunnel-Cpn3mA4u.js → tunnel-B7U5k1xa.js} +2 -2
  56. package/dist/{tunnel-Cpn3mA4u.js.map → tunnel-B7U5k1xa.js.map} +1 -1
  57. package/dist/{tunnel-Dj8Kf2QS.cjs → tunnel-C-cgMnyY.cjs} +2 -2
  58. package/dist/{tunnel-Dj8Kf2QS.cjs.map → tunnel-C-cgMnyY.cjs.map} +1 -1
  59. package/dist/unplugin/index.cjs +1 -1
  60. package/dist/unplugin/index.js +1 -1
  61. package/dist/unplugin/tunnel.cjs +1 -1
  62. package/dist/unplugin/tunnel.js +1 -1
  63. package/package.json +1 -1
  64. package/dist/qr-http-server-BJJt3ush.js.map +0 -1
  65. package/dist/qr-http-server-BVS-HZjU.cjs.map +0 -1
  66. package/dist/qr-http-server-C1T4RNbq.cjs.map +0 -1
  67. package/dist/qr-http-server-Cs93vEPH.js.map +0 -1
  68. package/dist/runtime-C7uxh3Mf.d.ts +0 -62
  69. package/dist/runtime-C7uxh3Mf.d.ts.map +0 -1
  70. package/dist/test-runner/cli.js.map +0 -1
  71. package/dist/totp-D1pulXLa.js +0 -3
@@ -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). 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. 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). 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.",
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.113"
1025
+ version: "0.1.116"
1017
1026
  }, { capabilities: { tools: {} } });
1018
1027
  server.setRequestHandler(ListToolsRequestSchema, () => ({ tools: DEV_TOOL_DEFINITIONS.map((tool) => ({ ...tool })) }));
1019
1028
  server.setRequestHandler(CallToolRequestSchema, async (request) => {