spana-test 0.17.0 → 0.19.0

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 (147) hide show
  1. package/README.md +11 -0
  2. package/dist/agent/index.js +19 -18
  3. package/dist/agent/index.js.map +1 -1
  4. package/dist/api/app.d.ts +3 -1
  5. package/dist/api/app.d.ts.map +1 -1
  6. package/dist/api/expect.d.ts +2 -0
  7. package/dist/api/expect.d.ts.map +1 -1
  8. package/dist/{app-TX4RYRBY.js → app-LGNFQMU7.js} +5 -5
  9. package/dist/{appium-OI2CQON6.js → appium-2PJWZXJI.js} +55 -56
  10. package/dist/{appium-OI2CQON6.js.map → appium-2PJWZXJI.js.map} +1 -1
  11. package/dist/channels/cdp-client.d.ts.map +1 -1
  12. package/dist/channels/dom-channel.d.ts +4 -2
  13. package/dist/channels/dom-channel.d.ts.map +1 -1
  14. package/dist/{chunk-FPCMRYOS.js → chunk-3ONT32BO.js} +36 -35
  15. package/dist/chunk-3ONT32BO.js.map +1 -0
  16. package/dist/{chunk-FCUT3OKD.js → chunk-44U3F2RY.js} +10 -10
  17. package/dist/chunk-44U3F2RY.js.map +1 -0
  18. package/dist/{chunk-YNA6LFBF.js → chunk-4TTYSFBG.js} +2 -1
  19. package/dist/chunk-4TTYSFBG.js.map +1 -0
  20. package/dist/chunk-67PLJEY2.js +24645 -0
  21. package/dist/chunk-67PLJEY2.js.map +1 -0
  22. package/dist/{chunk-CXXK3JAI.js → chunk-6X2SK2XO.js} +3 -3
  23. package/dist/{chunk-CR55BHI2.js → chunk-7K24Q7V3.js} +255 -40
  24. package/dist/chunk-7K24Q7V3.js.map +1 -0
  25. package/dist/{chunk-RXQKH6Z7.js → chunk-AP5SGSO7.js} +42 -42
  26. package/dist/{chunk-RXQKH6Z7.js.map → chunk-AP5SGSO7.js.map} +1 -1
  27. package/dist/{chunk-WZY3MBNG.js → chunk-BPUBV7OF.js} +5 -3
  28. package/dist/chunk-BPUBV7OF.js.map +1 -0
  29. package/dist/{chunk-QJPIPZ4S.js → chunk-C2YM5GNF.js} +30 -30
  30. package/dist/{chunk-QJPIPZ4S.js.map → chunk-C2YM5GNF.js.map} +1 -1
  31. package/dist/{chunk-4GESFVZL.js → chunk-C7HZJIGQ.js} +2 -2
  32. package/dist/{chunk-22VPSGCA.js → chunk-CQ67PB3R.js} +2 -2
  33. package/dist/{chunk-XG6UF6BP.js → chunk-DNWVDGKS.js} +38 -38
  34. package/dist/{chunk-XG6UF6BP.js.map → chunk-DNWVDGKS.js.map} +1 -1
  35. package/dist/{chunk-HFQ3KKIB.js → chunk-E67QUGT3.js} +323 -202
  36. package/dist/chunk-E67QUGT3.js.map +1 -0
  37. package/dist/{chunk-GS7DRAOQ.js → chunk-FLPPA2XY.js} +3 -2
  38. package/dist/chunk-FLPPA2XY.js.map +1 -0
  39. package/dist/{chunk-KRATI3A5.js → chunk-FZ7EMXIM.js} +131 -108
  40. package/dist/chunk-FZ7EMXIM.js.map +1 -0
  41. package/dist/{chunk-L5EVAGCV.js → chunk-G4ZUJCEN.js} +432 -280
  42. package/dist/chunk-G4ZUJCEN.js.map +1 -0
  43. package/dist/{chunk-H5ZMLSVC.js → chunk-IC46FAEW.js} +2 -2
  44. package/dist/{chunk-3NZRRXDP.js → chunk-IJWAAODK.js} +2 -2
  45. package/dist/{chunk-FWFT3FEP.js → chunk-KIDTBRIV.js} +45 -6
  46. package/dist/chunk-KIDTBRIV.js.map +1 -0
  47. package/dist/{chunk-YWASMWPK.js → chunk-LX6GMZIN.js} +5 -5
  48. package/dist/{chunk-YWASMWPK.js.map → chunk-LX6GMZIN.js.map} +1 -1
  49. package/dist/{chunk-7YJBZ4HB.js → chunk-NC32K762.js} +66 -66
  50. package/dist/{chunk-7YJBZ4HB.js.map → chunk-NC32K762.js.map} +1 -1
  51. package/dist/{chunk-OKU46IDG.js → chunk-NR4QAM5W.js} +80 -54
  52. package/dist/chunk-NR4QAM5W.js.map +1 -0
  53. package/dist/chunk-PS3DALTI.js +17 -0
  54. package/dist/chunk-PS3DALTI.js.map +1 -0
  55. package/dist/{chunk-T7Z2T3NP.js → chunk-YKNHKVE6.js} +47 -39
  56. package/dist/chunk-YKNHKVE6.js.map +1 -0
  57. package/dist/{chunk-X5W7LV2O.js → chunk-Z5BMFLZ5.js} +2 -2
  58. package/dist/cli/test-command.d.ts.map +1 -1
  59. package/dist/cli.js +15 -15
  60. package/dist/cloud/common.d.ts.map +1 -1
  61. package/dist/{config-loader-OSHDDKH5.js → config-loader-MX232REU.js} +3 -3
  62. package/dist/core/rejections.d.ts +5 -0
  63. package/dist/core/rejections.d.ts.map +1 -0
  64. package/dist/core/screenshot-compare.d.ts +7 -2
  65. package/dist/core/screenshot-compare.d.ts.map +1 -1
  66. package/dist/core/video-recorder.d.ts.map +1 -1
  67. package/dist/{daemon-manager-VEMRSZ5R.js → daemon-manager-6CFUXGTR.js} +2 -2
  68. package/dist/{doctor-command-2O4VK3QR.js → doctor-command-YTT5SMQW.js} +10 -9
  69. package/dist/{doctor-command-2O4VK3QR.js.map → doctor-command-YTT5SMQW.js.map} +1 -1
  70. package/dist/{driver-ZVDLV6QF.js → driver-AN3I4H6O.js} +8 -7
  71. package/dist/{driver-BHHIEDX6.js → driver-X4FWTDNU.js} +6 -6
  72. package/dist/drivers/cdp-browser.d.ts +15 -0
  73. package/dist/drivers/cdp-browser.d.ts.map +1 -1
  74. package/dist/drivers/electron.d.ts +0 -8
  75. package/dist/drivers/electron.d.ts.map +1 -1
  76. package/dist/drivers/playwright.d.ts +2 -0
  77. package/dist/drivers/playwright.d.ts.map +1 -1
  78. package/dist/{electrobun-4Z66F5NW.js → electrobun-OUTYOM5G.js} +7 -6
  79. package/dist/{electron-ZXM6SMZU.js → electron-XL7H25IQ.js} +3 -3
  80. package/dist/index.js +87 -88
  81. package/dist/index.js.map +1 -1
  82. package/dist/{installer-6HV5CU2I.js → installer-3X5SKWVX.js} +3 -3
  83. package/dist/{installer-DYGA4MRU.js → installer-Q37BOG5G.js} +3 -3
  84. package/dist/{local-OYNEJSSQ.js → local-UWIYOREU.js} +10 -7
  85. package/dist/{playwright-SZP56NN2.js → playwright-KBWUBU5S.js} +9 -8
  86. package/dist/{provider-FKT6FEQS.js → provider-HWM3GF54.js} +3 -2
  87. package/dist/runtime/daemon-manager.d.ts.map +1 -1
  88. package/dist/runtime/local.d.ts +4 -0
  89. package/dist/runtime/local.d.ts.map +1 -1
  90. package/dist/schemas/config.d.ts +4 -1
  91. package/dist/schemas/config.d.ts.map +1 -1
  92. package/dist/{screenshot-compare-7TE44H7F.js → screenshot-compare-DNIP2EK4.js} +6 -4
  93. package/dist/{server-7QYNULRB.js → server-BS3O4WVU.js} +25 -24
  94. package/dist/{server-7QYNULRB.js.map → server-BS3O4WVU.js.map} +1 -1
  95. package/dist/{server-VIXRVKP5.js → server-CWCMC244.js} +2 -2
  96. package/dist/session-YWYRRXXR.js +42 -0
  97. package/dist/smart/auto-wait.d.ts.map +1 -1
  98. package/dist/smart/channel-resolver.d.ts +4 -0
  99. package/dist/smart/channel-resolver.d.ts.map +1 -1
  100. package/dist/smart/coordinator.d.ts +1 -0
  101. package/dist/smart/coordinator.d.ts.map +1 -1
  102. package/dist/smart/element-matcher.d.ts.map +1 -1
  103. package/dist/{studio-command-ALDWIKEE.js → studio-command-XJDGLNAJ.js} +2 -2
  104. package/dist/{test-command-HP5YE675.js → test-command-3IRGNEPB.js} +89 -20
  105. package/dist/test-command-3IRGNEPB.js.map +1 -0
  106. package/native/win32-x64/spana_native.dll +0 -0
  107. package/package.json +15 -6
  108. package/studio-dist/assets/{index-DXGUfzm3.js → index-DAE7R_Zp.js} +1 -1
  109. package/studio-dist/index.html +1 -1
  110. package/dist/chunk-CR55BHI2.js.map +0 -1
  111. package/dist/chunk-FCUT3OKD.js.map +0 -1
  112. package/dist/chunk-FPCMRYOS.js.map +0 -1
  113. package/dist/chunk-FWFT3FEP.js.map +0 -1
  114. package/dist/chunk-GS7DRAOQ.js.map +0 -1
  115. package/dist/chunk-HFQ3KKIB.js.map +0 -1
  116. package/dist/chunk-KRATI3A5.js.map +0 -1
  117. package/dist/chunk-L5EVAGCV.js.map +0 -1
  118. package/dist/chunk-OKU46IDG.js.map +0 -1
  119. package/dist/chunk-T7Z2T3NP.js.map +0 -1
  120. package/dist/chunk-WPG77TPT.js +0 -98
  121. package/dist/chunk-WPG77TPT.js.map +0 -1
  122. package/dist/chunk-WZY3MBNG.js.map +0 -1
  123. package/dist/chunk-YNA6LFBF.js.map +0 -1
  124. package/dist/session-3KME2U42.js +0 -41
  125. package/dist/test-command-HP5YE675.js.map +0 -1
  126. /package/dist/{app-TX4RYRBY.js.map → app-LGNFQMU7.js.map} +0 -0
  127. /package/dist/{chunk-CXXK3JAI.js.map → chunk-6X2SK2XO.js.map} +0 -0
  128. /package/dist/{chunk-4GESFVZL.js.map → chunk-C7HZJIGQ.js.map} +0 -0
  129. /package/dist/{chunk-22VPSGCA.js.map → chunk-CQ67PB3R.js.map} +0 -0
  130. /package/dist/{chunk-H5ZMLSVC.js.map → chunk-IC46FAEW.js.map} +0 -0
  131. /package/dist/{chunk-3NZRRXDP.js.map → chunk-IJWAAODK.js.map} +0 -0
  132. /package/dist/{chunk-X5W7LV2O.js.map → chunk-Z5BMFLZ5.js.map} +0 -0
  133. /package/dist/{config-loader-OSHDDKH5.js.map → config-loader-MX232REU.js.map} +0 -0
  134. /package/dist/{daemon-manager-VEMRSZ5R.js.map → daemon-manager-6CFUXGTR.js.map} +0 -0
  135. /package/dist/{driver-BHHIEDX6.js.map → driver-AN3I4H6O.js.map} +0 -0
  136. /package/dist/{driver-ZVDLV6QF.js.map → driver-X4FWTDNU.js.map} +0 -0
  137. /package/dist/{electrobun-4Z66F5NW.js.map → electrobun-OUTYOM5G.js.map} +0 -0
  138. /package/dist/{electron-ZXM6SMZU.js.map → electron-XL7H25IQ.js.map} +0 -0
  139. /package/dist/{installer-6HV5CU2I.js.map → installer-3X5SKWVX.js.map} +0 -0
  140. /package/dist/{installer-DYGA4MRU.js.map → installer-Q37BOG5G.js.map} +0 -0
  141. /package/dist/{local-OYNEJSSQ.js.map → local-UWIYOREU.js.map} +0 -0
  142. /package/dist/{playwright-SZP56NN2.js.map → playwright-KBWUBU5S.js.map} +0 -0
  143. /package/dist/{provider-FKT6FEQS.js.map → provider-HWM3GF54.js.map} +0 -0
  144. /package/dist/{screenshot-compare-7TE44H7F.js.map → screenshot-compare-DNIP2EK4.js.map} +0 -0
  145. /package/dist/{server-VIXRVKP5.js.map → server-CWCMC244.js.map} +0 -0
  146. /package/dist/{session-3KME2U42.js.map → session-YWYRRXXR.js.map} +0 -0
  147. /package/dist/{studio-command-ALDWIKEE.js.map → studio-command-XJDGLNAJ.js.map} +0 -0
package/dist/index.js CHANGED
@@ -37,7 +37,7 @@ import {
37
37
  writeDurationHintsFile,
38
38
  writeRichTraceBundle,
39
39
  writeWorkerProcessReport
40
- } from "./chunk-FPCMRYOS.js";
40
+ } from "./chunk-3ONT32BO.js";
41
41
  import {
42
42
  NetworkEventBuffer,
43
43
  SPANA_MCP_TOOLS,
@@ -46,13 +46,13 @@ import {
46
46
  buildFlowFileFromLines,
47
47
  buildPerformanceProfileScript,
48
48
  formatSelectorCode
49
- } from "./chunk-CXXK3JAI.js";
49
+ } from "./chunk-6X2SK2XO.js";
50
50
  import {
51
51
  clearReplayCache,
52
52
  formatCacheInspectTable,
53
53
  inspectReplayCache
54
54
  } from "./chunk-KRTQZPYL.js";
55
- import "./chunk-WZY3MBNG.js";
55
+ import "./chunk-BPUBV7OF.js";
56
56
  import {
57
57
  createGitHubPrReporter,
58
58
  formatGitHubPrMarkdown
@@ -71,7 +71,7 @@ import {
71
71
  } from "./chunk-FBJPNZUN.js";
72
72
  import {
73
73
  defineConfig
74
- } from "./chunk-GS7DRAOQ.js";
74
+ } from "./chunk-FLPPA2XY.js";
75
75
  import "./chunk-RL3ICBAB.js";
76
76
  import {
77
77
  defineDomTransport,
@@ -86,7 +86,7 @@ import {
86
86
  speculativelyPrelaunchWebBrowser,
87
87
  unregisterDomTransport,
88
88
  unregisterDriverAdapter
89
- } from "./chunk-OKU46IDG.js";
89
+ } from "./chunk-NR4QAM5W.js";
90
90
  import {
91
91
  ReplayCacheStore,
92
92
  ReplaySession,
@@ -113,7 +113,7 @@ import {
113
113
  connectPlaywrightOverWS,
114
114
  ensureWarmBrowserDaemon,
115
115
  launchPlaywrightBrowser
116
- } from "./chunk-KRATI3A5.js";
116
+ } from "./chunk-FZ7EMXIM.js";
117
117
  import {
118
118
  UPLOAD_ATTACH_TIMEOUT_MS,
119
119
  applyExtensionChromeArgs,
@@ -122,7 +122,7 @@ import {
122
122
  makeLightweightCdpDriver,
123
123
  resolveBrowserExtensions,
124
124
  runOAuthPopupFlow
125
- } from "./chunk-HFQ3KKIB.js";
125
+ } from "./chunk-E67QUGT3.js";
126
126
  import {
127
127
  DEFAULT_WARM_DAEMON_IDLE_TTL_MS,
128
128
  defaultDaemonStateDir,
@@ -133,10 +133,10 @@ import {
133
133
  stopWarmDaemon,
134
134
  sweepOrphanedSpanaBrowsers,
135
135
  updateWarmDaemonSession
136
- } from "./chunk-YNA6LFBF.js";
136
+ } from "./chunk-4TTYSFBG.js";
137
137
  import {
138
138
  makeElectronDriver
139
- } from "./chunk-T7Z2T3NP.js";
139
+ } from "./chunk-YKNHKVE6.js";
140
140
  import {
141
141
  TARGET_CHANNEL_MATRIX,
142
142
  formatTargetMatrixTable,
@@ -144,7 +144,7 @@ import {
144
144
  resolveElectrobunEngine,
145
145
  resolveElectrobunLaunchPlan,
146
146
  resolveTargetDescriptor
147
- } from "./chunk-QJPIPZ4S.js";
147
+ } from "./chunk-C2YM5GNF.js";
148
148
  import {
149
149
  AppleWebInspectorClient,
150
150
  WebKitInspectorChannel,
@@ -153,13 +153,13 @@ import {
153
153
  encodeWebInspectorPacket,
154
154
  findSimulatorWebInspectorSocket,
155
155
  parseWebInspectorXmlFrame
156
- } from "./chunk-3NZRRXDP.js";
156
+ } from "./chunk-IJWAAODK.js";
157
157
  import {
158
158
  AndroidWebViewCdpChannel,
159
159
  createAndroidWebViewCdpChannel,
160
160
  parseAndroidWebViewSockets
161
- } from "./chunk-4GESFVZL.js";
162
- import "./chunk-YWASMWPK.js";
161
+ } from "./chunk-C7HZJIGQ.js";
162
+ import "./chunk-LX6GMZIN.js";
163
163
  import "./chunk-OYME74M3.js";
164
164
  import {
165
165
  allocateFreePort,
@@ -176,7 +176,8 @@ import {
176
176
  CdpDomChannel,
177
177
  CdpWebSocketMultiplexer,
178
178
  createCdpDomChannel
179
- } from "./chunk-FCUT3OKD.js";
179
+ } from "./chunk-44U3F2RY.js";
180
+ import "./chunk-PS3DALTI.js";
180
181
  import {
181
182
  and,
182
183
  assertDataSnapshot,
@@ -206,7 +207,7 @@ import {
206
207
  resolveElementAcrossChannels,
207
208
  systemUI,
208
209
  within
209
- } from "./chunk-L5EVAGCV.js";
210
+ } from "./chunk-G4ZUJCEN.js";
210
211
  import "./chunk-IKMNHITS.js";
211
212
  import "./chunk-B4FOISOF.js";
212
213
  import {
@@ -225,10 +226,12 @@ import {
225
226
  isWasmTrapError,
226
227
  parseByteSize,
227
228
  resolveChromiumGpuArgs
228
- } from "./chunk-CR55BHI2.js";
229
+ } from "./chunk-7K24Q7V3.js";
229
230
  import {
230
- DriverError
231
- } from "./chunk-WPG77TPT.js";
231
+ DriverError,
232
+ Effect_exports,
233
+ Schema_exports
234
+ } from "./chunk-67PLJEY2.js";
232
235
  import {
233
236
  applyMask,
234
237
  comparePngNative,
@@ -237,7 +240,7 @@ import {
237
240
  getNativeAcceleratorPath,
238
241
  isNativeAcceleratorActive,
239
242
  tokenizeXmlNative
240
- } from "./chunk-FWFT3FEP.js";
243
+ } from "./chunk-KIDTBRIV.js";
241
244
  import "./chunk-5TAHLRZD.js";
242
245
  import {
243
246
  init_esm_shims
@@ -248,51 +251,49 @@ init_esm_shims();
248
251
 
249
252
  // src/schemas/element.ts
250
253
  init_esm_shims();
251
- import { Schema } from "effect";
252
- var Bounds = Schema.Struct({
253
- x: Schema.Number,
254
- y: Schema.Number,
255
- width: Schema.Number,
256
- height: Schema.Number
254
+ var Bounds = Schema_exports.Struct({
255
+ x: Schema_exports.Number,
256
+ y: Schema_exports.Number,
257
+ width: Schema_exports.Number,
258
+ height: Schema_exports.Number
257
259
  });
258
- var Element = Schema.Struct({
259
- id: Schema.optional(Schema.String),
260
- text: Schema.optional(Schema.String),
261
- textContent: Schema.optional(Schema.String),
262
- value: Schema.optional(Schema.String),
263
- accessibilityLabel: Schema.optional(Schema.String),
264
- accessibleDescription: Schema.optional(Schema.String),
265
- resourceId: Schema.optional(Schema.String),
266
- elementType: Schema.optional(Schema.String),
267
- role: Schema.optional(Schema.String),
260
+ var Element = Schema_exports.Struct({
261
+ id: Schema_exports.optional(Schema_exports.String),
262
+ text: Schema_exports.optional(Schema_exports.String),
263
+ textContent: Schema_exports.optional(Schema_exports.String),
264
+ value: Schema_exports.optional(Schema_exports.String),
265
+ accessibilityLabel: Schema_exports.optional(Schema_exports.String),
266
+ accessibleDescription: Schema_exports.optional(Schema_exports.String),
267
+ resourceId: Schema_exports.optional(Schema_exports.String),
268
+ elementType: Schema_exports.optional(Schema_exports.String),
269
+ role: Schema_exports.optional(Schema_exports.String),
268
270
  bounds: Bounds,
269
- enabled: Schema.optional(Schema.Boolean),
270
- visible: Schema.optional(Schema.Boolean),
271
- clickable: Schema.optional(Schema.Boolean),
272
- focused: Schema.optional(Schema.Boolean),
273
- checked: Schema.optional(Schema.Boolean),
274
- editable: Schema.optional(Schema.Boolean),
275
- empty: Schema.optional(Schema.Boolean),
276
- className: Schema.optional(Schema.String),
277
- attributes: Schema.optional(Schema.Record(Schema.String, Schema.String)),
278
- children: Schema.optional(Schema.Array(Schema.suspend(() => Element)))
271
+ enabled: Schema_exports.optional(Schema_exports.Boolean),
272
+ visible: Schema_exports.optional(Schema_exports.Boolean),
273
+ clickable: Schema_exports.optional(Schema_exports.Boolean),
274
+ focused: Schema_exports.optional(Schema_exports.Boolean),
275
+ checked: Schema_exports.optional(Schema_exports.Boolean),
276
+ editable: Schema_exports.optional(Schema_exports.Boolean),
277
+ empty: Schema_exports.optional(Schema_exports.Boolean),
278
+ className: Schema_exports.optional(Schema_exports.String),
279
+ attributes: Schema_exports.optional(Schema_exports.Record(Schema_exports.String, Schema_exports.String)),
280
+ children: Schema_exports.optional(Schema_exports.Array(Schema_exports.suspend(() => Element)))
279
281
  });
280
- var ViewHierarchy = Schema.Struct({
282
+ var ViewHierarchy = Schema_exports.Struct({
281
283
  root: Element,
282
- timestamp: Schema.Number
284
+ timestamp: Schema_exports.Number
283
285
  });
284
286
 
285
287
  // src/schemas/device.ts
286
288
  init_esm_shims();
287
- import { Schema as Schema2 } from "effect";
288
- var DeviceInfo = Schema2.Struct({
289
- platform: Schema2.Literals(["android", "ios", "web", "electron", "electrobun"]),
290
- deviceId: Schema2.String,
291
- name: Schema2.String,
292
- isEmulator: Schema2.Boolean,
293
- screenWidth: Schema2.Number,
294
- screenHeight: Schema2.Number,
295
- driverType: Schema2.Literals([
289
+ var DeviceInfo = Schema_exports.Struct({
290
+ platform: Schema_exports.Literals(["android", "ios", "web", "electron", "electrobun"]),
291
+ deviceId: Schema_exports.String,
292
+ name: Schema_exports.String,
293
+ isEmulator: Schema_exports.Boolean,
294
+ screenWidth: Schema_exports.Number,
295
+ screenHeight: Schema_exports.Number,
296
+ driverType: Schema_exports.Literals([
296
297
  "playwright",
297
298
  "uiautomator2",
298
299
  "wda",
@@ -305,7 +306,6 @@ var DeviceInfo = Schema2.Struct({
305
306
 
306
307
  // src/drivers/cdp-embed.ts
307
308
  init_esm_shims();
308
- import { Effect } from "effect";
309
309
  async function createCdpApp(options = {}) {
310
310
  let ownedBrowser;
311
311
  let cdpUrl = options.cdpUrl;
@@ -335,7 +335,7 @@ async function createCdpApp(options = {}) {
335
335
  const cleanups = [];
336
336
  let driver;
337
337
  try {
338
- driver = await Effect.runPromise(
338
+ driver = await Effect_exports.runPromise(
339
339
  makeLightweightCdpDriver({
340
340
  cdpUrl,
341
341
  baseUrl,
@@ -396,7 +396,7 @@ async function createCdpApp(options = {}) {
396
396
  await fn().catch(() => {
397
397
  });
398
398
  }
399
- await Effect.runPromise(driver.killApp("")).catch(() => {
399
+ await Effect_exports.runPromise(driver.killApp("")).catch(() => {
400
400
  });
401
401
  if (ownedBrowser) {
402
402
  await ownedBrowser.close().catch(() => {
@@ -410,7 +410,7 @@ async function createCdpApp(options = {}) {
410
410
  ...ownedBrowser ? { browser: ownedBrowser } : {},
411
411
  beginFlow: async (flowName = "embedded-flow") => {
412
412
  if (driver.beginFlow) {
413
- await Effect.runPromise(driver.beginFlow(flowName));
413
+ await Effect_exports.runPromise(driver.beginFlow(flowName));
414
414
  }
415
415
  },
416
416
  close,
@@ -1269,7 +1269,6 @@ init_esm_shims();
1269
1269
  import { readFile } from "fs/promises";
1270
1270
  import { execFile } from "child_process";
1271
1271
  import { promisify } from "util";
1272
- import { Effect as Effect2 } from "effect";
1273
1272
  var execFileAsync = promisify(execFile);
1274
1273
  function emptyRoot() {
1275
1274
  return {
@@ -1291,7 +1290,7 @@ function findPrimaryMemory(exports) {
1291
1290
  return void 0;
1292
1291
  }
1293
1292
  function createWasmDriver(options) {
1294
- return Effect2.sync(() => {
1293
+ return Effect_exports.sync(() => {
1295
1294
  const runtime = options.runtime ?? "in-process";
1296
1295
  let instance = null;
1297
1296
  let compiledModule = null;
@@ -1457,23 +1456,23 @@ function createWasmDriver(options) {
1457
1456
  };
1458
1457
  };
1459
1458
  const service = {
1460
- beginFlow: () => Effect2.sync(() => {
1459
+ beginFlow: () => Effect_exports.sync(() => {
1461
1460
  consoleLogs.length = 0;
1462
1461
  jsErrors.length = 0;
1463
1462
  wasmTraps.length = 0;
1464
1463
  }),
1465
- launchApp: (bundleId) => Effect2.tryPromise({
1464
+ launchApp: (bundleId) => Effect_exports.tryPromise({
1466
1465
  try: () => instantiateNow(bundleId),
1467
1466
  catch: (e) => new DriverError({ message: `WASM launchApp failed: ${e}` })
1468
1467
  }),
1469
- stopApp: () => Effect2.sync(() => {
1468
+ stopApp: () => Effect_exports.sync(() => {
1470
1469
  instance = null;
1471
1470
  }),
1472
- killApp: () => Effect2.sync(() => {
1471
+ killApp: () => Effect_exports.sync(() => {
1473
1472
  instance = null;
1474
1473
  compiledModule = null;
1475
1474
  }),
1476
- clearAppState: (bundleId) => Effect2.tryPromise({
1475
+ clearAppState: (bundleId) => Effect_exports.tryPromise({
1477
1476
  try: async () => {
1478
1477
  instance = null;
1479
1478
  consoleLogs.length = 0;
@@ -1485,7 +1484,7 @@ function createWasmDriver(options) {
1485
1484
  },
1486
1485
  catch: (e) => new DriverError({ message: `WASM clearAppState failed: ${e}` })
1487
1486
  }),
1488
- dumpHierarchy: () => Effect2.tryPromise({
1487
+ dumpHierarchy: () => Effect_exports.tryPromise({
1489
1488
  try: async () => {
1490
1489
  if (!instance) return JSON.stringify(emptyRoot());
1491
1490
  const mem = findPrimaryMemory(instance.exports);
@@ -1504,7 +1503,7 @@ function createWasmDriver(options) {
1504
1503
  },
1505
1504
  catch: (e) => new DriverError({ message: `WASM dumpHierarchy failed: ${e}` })
1506
1505
  }),
1507
- evaluate: (script, ...args) => Effect2.tryPromise({
1506
+ evaluate: (script, ...args) => Effect_exports.tryPromise({
1508
1507
  try: async () => {
1509
1508
  if (!instance && (options.modulePath || options.wasmBytes)) {
1510
1509
  await instantiateNow();
@@ -1527,19 +1526,19 @@ function createWasmDriver(options) {
1527
1526
  message: `WASM evaluate failed: ${e instanceof Error ? e.message : String(e)}`
1528
1527
  })
1529
1528
  }),
1530
- getWasmMetrics: () => Effect2.sync(() => getMetrics()),
1531
- getWasmTraps: () => Effect2.sync(() => [...wasmTraps]),
1532
- getConsoleLogs: () => Effect2.sync(() => [...consoleLogs]),
1533
- getJSErrors: () => Effect2.sync(() => [...jsErrors]),
1534
- tapAtCoordinate: () => Effect2.void,
1535
- doubleTapAtCoordinate: () => Effect2.void,
1536
- longPressAtCoordinate: () => Effect2.void,
1537
- swipe: () => Effect2.void,
1538
- inputText: () => Effect2.void,
1539
- pressKey: () => Effect2.void,
1540
- hideKeyboard: () => Effect2.void,
1541
- takeScreenshot: () => Effect2.sync(() => new Uint8Array()),
1542
- getDeviceInfo: () => Effect2.sync(() => ({
1529
+ getWasmMetrics: () => Effect_exports.sync(() => getMetrics()),
1530
+ getWasmTraps: () => Effect_exports.sync(() => [...wasmTraps]),
1531
+ getConsoleLogs: () => Effect_exports.sync(() => [...consoleLogs]),
1532
+ getJSErrors: () => Effect_exports.sync(() => [...jsErrors]),
1533
+ tapAtCoordinate: () => Effect_exports.void,
1534
+ doubleTapAtCoordinate: () => Effect_exports.void,
1535
+ longPressAtCoordinate: () => Effect_exports.void,
1536
+ swipe: () => Effect_exports.void,
1537
+ inputText: () => Effect_exports.void,
1538
+ pressKey: () => Effect_exports.void,
1539
+ hideKeyboard: () => Effect_exports.void,
1540
+ takeScreenshot: () => Effect_exports.sync(() => new Uint8Array()),
1541
+ getDeviceInfo: () => Effect_exports.sync(() => ({
1543
1542
  deviceId: options.modulePath ?? "wasm-in-process",
1544
1543
  name: `Spana WASM (${runtime}${compiledModule ? ", loaded" : ""})`,
1545
1544
  platform: "web",
@@ -1548,8 +1547,8 @@ function createWasmDriver(options) {
1548
1547
  screenHeight: 720,
1549
1548
  driverType: "wasm"
1550
1549
  })),
1551
- openLink: () => Effect2.void,
1552
- back: () => Effect2.void
1550
+ openLink: () => Effect_exports.void,
1551
+ back: () => Effect_exports.void
1553
1552
  };
1554
1553
  return service;
1555
1554
  });
@@ -1566,12 +1565,12 @@ function createWasmDriverAdapter(defaults = {}) {
1566
1565
  ...ctx.options,
1567
1566
  modulePath: ctx.options?.modulePath ?? defaults.modulePath ?? (ctx.appId.endsWith(".wasm") ? ctx.resolvePath(ctx.appId) : void 0)
1568
1567
  };
1569
- const driver = await Effect2.runPromise(createWasmDriver(merged));
1568
+ const driver = await Effect_exports.runPromise(createWasmDriver(merged));
1570
1569
  return {
1571
1570
  driver,
1572
1571
  parseHierarchy: (raw) => JSON.parse(raw),
1573
1572
  cleanup: async () => {
1574
- await Effect2.runPromise(driver.killApp(ctx.appId)).catch(() => {
1573
+ await Effect_exports.runPromise(driver.killApp(ctx.appId)).catch(() => {
1575
1574
  });
1576
1575
  },
1577
1576
  metadata: { runtime: merged.runtime ?? "in-process", modulePath: merged.modulePath }
@@ -1582,11 +1581,11 @@ function createWasmDriverAdapter(defaults = {}) {
1582
1581
 
1583
1582
  // src/index.ts
1584
1583
  async function runTestCommand(opts) {
1585
- const { runTestCommand: run } = await import("./test-command-HP5YE675.js");
1584
+ const { runTestCommand: run } = await import("./test-command-3IRGNEPB.js");
1586
1585
  return run(opts);
1587
1586
  }
1588
1587
  async function runTestCommandWithResult(opts) {
1589
- const { runTestCommandWithResult: run } = await import("./test-command-HP5YE675.js");
1588
+ const { runTestCommandWithResult: run } = await import("./test-command-3IRGNEPB.js");
1590
1589
  return run(opts);
1591
1590
  }
1592
1591
  export {