@ait-co/devtools 0.1.137 → 0.1.138

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 (119) hide show
  1. package/dist/{attach-orchestrator-Cjdhir2U.js → attach-orchestrator-6kz_ZdWL.js} +5 -3
  2. package/dist/{attach-orchestrator-Cjdhir2U.js.map → attach-orchestrator-6kz_ZdWL.js.map} +1 -1
  3. package/dist/{attach-orchestrator-CE0S09YU.js → attach-orchestrator-BEiz3wAx.js} +5 -3
  4. package/dist/{attach-orchestrator-CMoDuG2A.js.map → attach-orchestrator-BEiz3wAx.js.map} +1 -1
  5. package/dist/{attach-orchestrator-CMoDuG2A.js → attach-orchestrator-BG8TGJOZ.js} +5 -3
  6. package/dist/{attach-orchestrator-CE0S09YU.js.map → attach-orchestrator-BG8TGJOZ.js.map} +1 -1
  7. package/dist/{bundle-BKqyhEK9.d.ts → bundle-C796JIwG.d.ts} +65 -2
  8. package/dist/bundle-C796JIwG.d.ts.map +1 -0
  9. package/dist/{capture-ltuV0gZa.d.ts → capture-DsP525OZ.d.ts} +1 -1
  10. package/dist/{capture-ltuV0gZa.d.ts.map → capture-DsP525OZ.d.ts.map} +1 -1
  11. package/dist/{cdp-connection-BYE9meXe.d.ts → cdp-connection-rP1WdnH5.d.ts} +1 -1
  12. package/dist/{cdp-connection-BYE9meXe.d.ts.map → cdp-connection-rP1WdnH5.d.ts.map} +1 -1
  13. package/dist/{cell-D1y4shoV.js → cell-BMlFh08P.js} +2 -2
  14. package/dist/cell-BMlFh08P.js.map +1 -0
  15. package/dist/{cell-DHA578lX.js → cell-Dtgtusog.js} +90 -16
  16. package/dist/cell-Dtgtusog.js.map +1 -0
  17. package/dist/{cell-BIdSQb9T.js → cell-KsRXFdDs.js} +122 -16
  18. package/dist/cell-KsRXFdDs.js.map +1 -0
  19. package/dist/{debug-server-CBK7dn8O.js → debug-server-6c22qSWa.js} +132 -9
  20. package/dist/debug-server-6c22qSWa.js.map +1 -0
  21. package/dist/{debug-server-BQplCzf8.js → debug-server-BQHbaKPT.js} +134 -11
  22. package/dist/debug-server-BQHbaKPT.js.map +1 -0
  23. package/dist/{debug-server-D2wpPK3_.js → debug-server-DWat7d-9.js} +82 -6
  24. package/dist/debug-server-DWat7d-9.js.map +1 -0
  25. package/dist/devtools-opener-3Drge_RJ.js +75 -0
  26. package/dist/devtools-opener-3Drge_RJ.js.map +1 -0
  27. package/dist/devtools-opener-CJpEsXXQ.js +76 -0
  28. package/dist/devtools-opener-CJpEsXXQ.js.map +1 -0
  29. package/dist/devtools-opener-CxtryS8c.js +75 -0
  30. package/dist/devtools-opener-CxtryS8c.js.map +1 -0
  31. package/dist/in-app/auto.js +59 -12
  32. package/dist/in-app/auto.js.map +1 -1
  33. package/dist/in-app/index.d.ts +21 -2
  34. package/dist/in-app/index.d.ts.map +1 -1
  35. package/dist/in-app/index.js +60 -13
  36. package/dist/in-app/index.js.map +1 -1
  37. package/dist/mcp/cli.js +299 -60
  38. package/dist/mcp/cli.js.map +1 -1
  39. package/dist/mcp/server.js +1 -1
  40. package/dist/mock/index.d.ts +64 -1
  41. package/dist/mock/index.d.ts.map +1 -1
  42. package/dist/mock/index.js +221 -14
  43. package/dist/mock/index.js.map +1 -1
  44. package/dist/panel/index.js +178 -23
  45. package/dist/panel/index.js.map +1 -1
  46. package/dist/{pool-CmfvXnwh.d.ts → pool-CrP5CPvU.d.ts} +3 -3
  47. package/dist/{pool-CmfvXnwh.d.ts.map → pool-CrP5CPvU.d.ts.map} +1 -1
  48. package/dist/{qr-http-server-ZkT6F7is.js → qr-http-server-D1hpoyBF.js} +1 -1
  49. package/dist/{qr-http-server-ZkT6F7is.js.map → qr-http-server-D1hpoyBF.js.map} +1 -1
  50. package/dist/qr-http-server-D4rGz8M7.js +1640 -0
  51. package/dist/qr-http-server-D4rGz8M7.js.map +1 -0
  52. package/dist/{qr-http-server-C7q8Gn04.js → qr-http-server-DIjCV7h_.js} +1 -1
  53. package/dist/{qr-http-server-C7q8Gn04.js.map → qr-http-server-DIjCV7h_.js.map} +1 -1
  54. package/dist/{relay-factory-DVzpBRxz.js → relay-factory-C1X3G3WY.js} +71 -15
  55. package/dist/relay-factory-C1X3G3WY.js.map +1 -0
  56. package/dist/{relay-secret-store-CLEGyHou.js → relay-secret-store-Bmyleu0A.js} +1 -1
  57. package/dist/{relay-secret-store-CLEGyHou.js.map → relay-secret-store-Bmyleu0A.js.map} +1 -1
  58. package/dist/{relay-secret-store-DhzAnnj-.js → relay-secret-store-CQenfcSL.js} +2 -2
  59. package/dist/{relay-secret-store-DhzAnnj-.js.map → relay-secret-store-CQenfcSL.js.map} +1 -1
  60. package/dist/{relay-secret-store-BcVrWwTq.js → relay-secret-store-DKxs7zwq.js} +1 -1
  61. package/dist/{relay-secret-store-BcVrWwTq.js.map → relay-secret-store-DKxs7zwq.js.map} +1 -1
  62. package/dist/{relay-secret-store-DGduVJhs.js → relay-secret-store-WJ8EGkIl.js} +1 -1
  63. package/dist/{relay-secret-store-DGduVJhs.js.map → relay-secret-store-WJ8EGkIl.js.map} +1 -1
  64. package/dist/{relay-url-store-CKW8RQzf.js → relay-url-store-BR2XodiO.js} +2 -2
  65. package/dist/{relay-url-store-CKW8RQzf.js.map → relay-url-store-BR2XodiO.js.map} +1 -1
  66. package/dist/{relay-url-store-CdA58fgw.js → relay-url-store-CH63fVCm.js} +2 -2
  67. package/dist/{relay-url-store-B0X8TsGr.js.map → relay-url-store-CH63fVCm.js.map} +1 -1
  68. package/dist/{relay-url-store-CwKT7i04.js → relay-url-store-DaY1QPes.js} +2 -2
  69. package/dist/{relay-url-store-CwKT7i04.js.map → relay-url-store-DaY1QPes.js.map} +1 -1
  70. package/dist/{relay-url-store-B0X8TsGr.js → relay-url-store-xmUuTjXA.js} +2 -2
  71. package/dist/{relay-url-store-CdA58fgw.js.map → relay-url-store-xmUuTjXA.js.map} +1 -1
  72. package/dist/{relay-worker-6fy1eaIo.js → relay-worker-BUXI0K0b.js} +8 -4
  73. package/dist/{relay-worker-6fy1eaIo.js.map → relay-worker-BUXI0K0b.js.map} +1 -1
  74. package/dist/{relay-worker-DJnZkXza.d.ts → relay-worker-DcyboK43.d.ts} +30 -5
  75. package/dist/relay-worker-DcyboK43.d.ts.map +1 -0
  76. package/dist/{runtime-DfHHZms2.d.ts → runtime-BiigOuvb.d.ts} +30 -3
  77. package/dist/runtime-BiigOuvb.d.ts.map +1 -0
  78. package/dist/test-runner/bin.js +376 -38
  79. package/dist/test-runner/bin.js.map +1 -1
  80. package/dist/test-runner/bundle.d.ts +2 -2
  81. package/dist/test-runner/bundle.js +66 -13
  82. package/dist/test-runner/bundle.js.map +1 -1
  83. package/dist/test-runner/capture.d.ts +1 -1
  84. package/dist/test-runner/config.d.ts +58 -5
  85. package/dist/test-runner/config.d.ts.map +1 -1
  86. package/dist/test-runner/config.js +1 -1
  87. package/dist/test-runner/method-pace.d.ts +82 -0
  88. package/dist/test-runner/method-pace.d.ts.map +1 -0
  89. package/dist/test-runner/method-pace.js +120 -0
  90. package/dist/test-runner/method-pace.js.map +1 -0
  91. package/dist/test-runner/pool.d.ts +1 -1
  92. package/dist/test-runner/pool.js +1 -1
  93. package/dist/test-runner/relay-factory.d.ts +57 -4
  94. package/dist/test-runner/relay-factory.d.ts.map +1 -1
  95. package/dist/test-runner/relay-factory.js +70 -14
  96. package/dist/test-runner/relay-factory.js.map +1 -1
  97. package/dist/test-runner/relay-worker.d.ts +1 -1
  98. package/dist/test-runner/relay-worker.js +1 -1
  99. package/dist/test-runner/report.d.ts +3 -3
  100. package/dist/test-runner/rpc.d.ts +2 -2
  101. package/dist/test-runner/runtime.d.ts +2 -2
  102. package/dist/test-runner/runtime.js +83 -6
  103. package/dist/test-runner/runtime.js.map +1 -1
  104. package/dist/test-runner/task-graph.d.ts +1 -1
  105. package/dist/throttle-DKKzX1qC.js +59 -0
  106. package/dist/throttle-DKKzX1qC.js.map +1 -0
  107. package/dist/totp-Dwft0Kz7.js +3 -0
  108. package/package.json +1 -1
  109. package/dist/bundle-BKqyhEK9.d.ts.map +0 -1
  110. package/dist/cell-BIdSQb9T.js.map +0 -1
  111. package/dist/cell-D1y4shoV.js.map +0 -1
  112. package/dist/cell-DHA578lX.js.map +0 -1
  113. package/dist/debug-server-BQplCzf8.js.map +0 -1
  114. package/dist/debug-server-CBK7dn8O.js.map +0 -1
  115. package/dist/debug-server-D2wpPK3_.js.map +0 -1
  116. package/dist/relay-factory-DVzpBRxz.js.map +0 -1
  117. package/dist/relay-worker-DJnZkXza.d.ts.map +0 -1
  118. package/dist/runtime-DfHHZms2.d.ts.map +0 -1
  119. package/dist/totp-D1pulXLa.js +0 -3
@@ -11105,8 +11105,36 @@ interface RelayConnectionFactoryOptions {
11105
11105
  * intoss-private:// scheme URL from `ait deploy --scheme-only` (env3). The
11106
11106
  * phone cold-loads the candidate bundle this URL points at. SECRET-HANDLING:
11107
11107
  * never logged.
11108
+ *
11109
+ * Ignored when {@link attachLauncher} is `true` — the env-2 launcher path
11110
+ * builds its attach URL from {@link appUrl} + the relay wss, not a scheme URL.
11111
+ * Pass `''` in that case.
11108
11112
  */
11109
11113
  schemeUrl: string;
11114
+ /**
11115
+ * env-2 (AITC Sandbox PWA) attach mode (devtools#774). When `true`, `open()`
11116
+ * builds the attach URL as a **launcher deep-link**
11117
+ * (`buildLauncherAttachUrl(appUrl, wssUrl, totp)` — the same env-2 path the
11118
+ * MCP daemon takes via `prepareAttach(deps, 'relay-mobile', …)`, issue #378)
11119
+ * instead of an intoss-private scheme deep-link. The relay boot, QR
11120
+ * rendering, dashboard, and attach-wait are byte-for-byte identical to env 3;
11121
+ * only the URL family differs. Omitted/false keeps the env-3 scheme path
11122
+ * unchanged (zero behavior change).
11123
+ */
11124
+ attachLauncher?: boolean;
11125
+ /**
11126
+ * The consumer dev server's HTTP tunnel URL (e.g. an sdk-example
11127
+ * `dev:phone:cdp` `*.trycloudflare.com` URL) that the launcher PWA frames.
11128
+ * REQUIRED when {@link attachLauncher} is `true`; ignored otherwise.
11129
+ *
11130
+ * Threaded to the `relay-mobile` `prepareAttach` branch via the
11131
+ * `AIT_TUNNEL_BASE_URL` env var (the same key the MCP daemon reads), so the
11132
+ * exact same env-2 assembly runs — no divergent code path.
11133
+ *
11134
+ * SECRET-HANDLING: this is a tunnel host at the same sensitivity as the relay
11135
+ * wss — NEVER logged. It rides only inside the QR/dashboard attach capsule.
11136
+ */
11137
+ appUrl?: string;
11110
11138
  /**
11111
11139
  * Project root for the `.ait_relay` secret lookup (read-only). Defaults to
11112
11140
  * `process.cwd()`.
@@ -11143,6 +11171,30 @@ interface RelayConnectionFactoryOptions {
11143
11171
  * absence the same as `false`). Not a secret.
11144
11172
  */
11145
11173
  stubBlocking?: boolean;
11174
+ /**
11175
+ * Injects `__AIT_PACE_MS__ = paceMs` before the first test bundle runs
11176
+ * (devtools#767) — `runtime.ts`'s test-execution loop reads this page
11177
+ * global and waits `paceMs` before every test after the first one that
11178
+ * actually runs. Optional — omitted/0 means no flag is injected, which is
11179
+ * byte-for-byte the pre-#767 behavior (the loop treats an absent/non-
11180
+ * positive value as "no pacing"). Not a secret. This is the PAGE-side half
11181
+ * of `--pace`; the RUNNER-side (file-to-file) half is a plain `opts.paceMs`
11182
+ * forwarded to `runTestFilesOverRelay` by the caller (cli.ts) — this
11183
+ * factory only owns the page-global injection.
11184
+ */
11185
+ paceMs?: number;
11186
+ /**
11187
+ * Injects `__AIT_PACE_METHOD_MS__ = paceMethodMs` before the first test
11188
+ * bundle runs (devtools#769) — `bundle.ts`'s sdk-redirect virtual module
11189
+ * reads this page global via `method-pace.ts#getPaceMethodMs()` and paces
11190
+ * every SDK call to a minimum interval BETWEEN calls to the SAME named
11191
+ * function, independent of `--pace`'s test-to-test/file-to-file spacing.
11192
+ * Optional — omitted/0 means no flag is injected, which is byte-for-byte
11193
+ * the pre-#769 behavior (`getPaceMethodMs()` treats an absent/non-positive
11194
+ * value as "no pacing", and `wrapWithMethodPacing` returns the SDK object
11195
+ * untouched in that case). Not a secret.
11196
+ */
11197
+ paceMethodMs?: number;
11146
11198
  /**
11147
11199
  * Overrides the dashboard HTTP server's bind base port (devtools#752).
11148
11200
  * Threaded straight through to `startQrHttpServer`'s `dashboardPort`
@@ -11170,12 +11222,13 @@ interface RelayConnectionFactoryOptions {
11170
11222
  onQrContent: (textChunks: string[]) => void;
11171
11223
  }
11172
11224
  /**
11173
- * Builds a {@link RelayConnectionFactory} that opens a standalone env3 relay
11174
- * connection.
11225
+ * Builds a {@link RelayConnectionFactory} that opens a standalone relay
11226
+ * connection for env 3 (intoss-private scheme, default) or env 2 (AITC Sandbox
11227
+ * PWA launcher deep-link, when `opts.attachLauncher` is set — devtools#774).
11175
11228
  *
11176
11229
  * `open()` performs the full attach lifecycle and BLOCKS while a human scans
11177
- * the rendered QR with their phone — there is no way around the manual scan
11178
- * for env3. By default the wait is UNBOUNDED (`opts.timeoutMs` omitted): the
11230
+ * the rendered QR with their phone — there is no way around the manual scan.
11231
+ * By default the wait is UNBOUNDED (`opts.timeoutMs` omitted): the
11179
11232
  * runner stays up until the user stops it (Ctrl-C/SIGTERM), since QR-scan is
11180
11233
  * a human-paced action with no sound default bound (devtools#735). Passing an
11181
11234
  * explicit `timeoutMs` opts into the old bounded behavior (CI/headless