better-dsh 0.3.0 → 0.3.1

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 (73) hide show
  1. package/README.md +49 -178
  2. package/cordis.patch.yml +4 -35
  3. package/docs/adr/0015-independent-bundles-agent-remote.md +40 -0
  4. package/docs/remote-tools.md +56 -0
  5. package/docs/specs/omp-python-repl-port/runtime-guide.md +33 -0
  6. package/docs/specs/omp-python-repl-port/spec.md +61 -0
  7. package/docs/specs/remote-tool-enhancement/spec.md +203 -0
  8. package/dsh-docs/baseline.md +13 -0
  9. package/dsh-docs/subsystems/invariants.md +3 -0
  10. package/dsh-docs/subsystems/invariants.zh.md +3 -0
  11. package/eval-description.md +7 -3
  12. package/lib/{LaunchOptions-kGXcZOe0.js → LaunchOptions-5eg7E0ye.js} +1 -1
  13. package/lib/LaunchOptions-DxQQ0s-A.js +4 -0
  14. package/lib/{bidi-BalpKaJc.js → bidi-CwabFH07.js} +1 -1
  15. package/lib/client/index.js +30 -6
  16. package/lib/failover/index.js +1 -1
  17. package/lib/fs-aware/sandbox-plugin.js +3 -3
  18. package/lib/{index-browser-CysrjMyM.js → index-browser-B-9jm12n.js} +4 -4
  19. package/lib/index.d.ts +17 -41
  20. package/lib/index.js +473 -1678
  21. package/lib/kernel-env-BOF0fNHn.js +91 -0
  22. package/lib/kernel-env.d.ts +4 -58
  23. package/lib/kernel-env.js +2 -2
  24. package/lib/{lsp-server-registry-BXvUTBY7.js → lsp-server-registry-BcdkHROD.js} +1 -1
  25. package/lib/{lsp-server-registry-CH9WNFFt.js → lsp-server-registry-D4VLs1Sm.js} +1 -1
  26. package/lib/{main-CupOhMp5.js → main-BeCgUd20.js} +8 -6
  27. package/lib/{main-BQeFrBM1.js → main-Dv_UQqG2.js} +1 -1
  28. package/lib/mobile/plugin.d.ts +1 -1
  29. package/lib/omp-python/DILL-LICENSE +35 -0
  30. package/lib/omp-python/OMP-LICENSE +23 -0
  31. package/lib/omp-python/better_snapshot.py +391 -0
  32. package/lib/omp-python/better_support.py +425 -0
  33. package/lib/omp-python/dill-provenance.json +55 -0
  34. package/lib/omp-python/provenance.json +13 -0
  35. package/lib/omp-python/runner.py +2499 -0
  36. package/lib/omp-python/vendor/dill/__diff.py +234 -0
  37. package/lib/omp-python/vendor/dill/__info__.py +291 -0
  38. package/lib/omp-python/vendor/dill/__init__.py +119 -0
  39. package/lib/omp-python/vendor/dill/_dill.py +2265 -0
  40. package/lib/omp-python/vendor/dill/_objects.py +545 -0
  41. package/lib/omp-python/vendor/dill/_shims.py +193 -0
  42. package/lib/omp-python/vendor/dill/detect.py +287 -0
  43. package/lib/omp-python/vendor/dill/logger.py +285 -0
  44. package/lib/omp-python/vendor/dill/objtypes.py +24 -0
  45. package/lib/omp-python/vendor/dill/pointers.py +122 -0
  46. package/lib/omp-python/vendor/dill/session.py +612 -0
  47. package/lib/omp-python/vendor/dill/settings.py +25 -0
  48. package/lib/omp-python/vendor/dill/source.py +1025 -0
  49. package/lib/omp-python/vendor/dill/temp.py +252 -0
  50. package/lib/{puppeteer-core-CSk2PtSm.js → puppeteer-core-Dnd7eqel.js} +9 -9
  51. package/lib/remote/plugin.d.ts +459 -5
  52. package/lib/remote/plugin.js +2389 -210
  53. package/lib/url-schemes/index.d.ts +11 -11
  54. package/lib/url-schemes/index.js +12 -12
  55. package/lib/web-password.d.ts +8 -8
  56. package/lib/web-password.js +5 -1
  57. package/lib/{web-trust-Dej_RI2B.d.ts → web-trust-CwZrTBcl.d.ts} +11 -11
  58. package/lib/web-trust.d.ts +1 -2
  59. package/lib/welcome-notice.d.ts +5 -7
  60. package/lib/welcome-notice.js +9 -48
  61. package/lib/{wrap-T4I0nfPM.js → wrap-0VA0uFx8.js} +1 -1
  62. package/package.json +6 -23
  63. package/scripts/kernel-provision.mjs +4 -34
  64. package/lib/LaunchOptions-B874eBu2.js +0 -4
  65. package/lib/bundle-delivery.d.ts +0 -20
  66. package/lib/bundle-delivery.js +0 -209
  67. package/lib/hmr.d.ts +0 -32
  68. package/lib/hmr.js +0 -49
  69. package/lib/kernel-bridge.py +0 -172
  70. package/lib/kernel-env-D8UOWeji.js +0 -195
  71. package/lib/webserver.d.ts +0 -10
  72. package/lib/webserver.js +0 -19
  73. package/scripts/register-bundle.mjs +0 -80
@@ -0,0 +1,252 @@
1
+ #!/usr/bin/env python
2
+ #
3
+ # Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
4
+ # Copyright (c) 2008-2016 California Institute of Technology.
5
+ # Copyright (c) 2016-2026 The Uncertainty Quantification Foundation.
6
+ # License: 3-clause BSD. The full license text is available at:
7
+ # - https://github.com/uqfoundation/dill/blob/master/LICENSE
8
+ """
9
+ Methods for serialized objects (or source code) stored in temporary files
10
+ and file-like objects.
11
+ """
12
+ #XXX: better instead to have functions write to any given file-like object ?
13
+ #XXX: currently, all file-like objects are created by the function...
14
+
15
+ __all__ = ['dump_source', 'dump', 'dumpIO_source', 'dumpIO',\
16
+ 'load_source', 'load', 'loadIO_source', 'loadIO',\
17
+ 'capture']
18
+
19
+ import contextlib
20
+
21
+
22
+ @contextlib.contextmanager
23
+ def capture(stream='stdout'):
24
+ """builds a context that temporarily replaces the given stream name
25
+
26
+ >>> with capture('stdout') as out:
27
+ ... print ("foo!")
28
+ ...
29
+ >>> print (out.getvalue())
30
+ foo!
31
+
32
+ """
33
+ import sys
34
+ from io import StringIO
35
+ orig = getattr(sys, stream)
36
+ setattr(sys, stream, StringIO())
37
+ try:
38
+ yield getattr(sys, stream)
39
+ finally:
40
+ setattr(sys, stream, orig)
41
+
42
+
43
+ def b(x): # deal with b'foo' versus 'foo'
44
+ import codecs
45
+ return codecs.latin_1_encode(x)[0]
46
+
47
+ def load_source(file, **kwds):
48
+ """load an object that was stored with dill.temp.dump_source
49
+
50
+ file: filehandle
51
+ alias: string name of stored object
52
+ mode: mode to open the file, one of: {'r', 'rb'}
53
+
54
+ >>> f = lambda x: x**2
55
+ >>> pyfile = dill.temp.dump_source(f, alias='_f')
56
+ >>> _f = dill.temp.load_source(pyfile)
57
+ >>> _f(4)
58
+ 16
59
+ """
60
+ alias = kwds.pop('alias', None)
61
+ mode = kwds.pop('mode', 'r')
62
+ fname = getattr(file, 'name', file) # fname=file.name or fname=file (if str)
63
+ source = open(fname, mode=mode, **kwds).read()
64
+ if not alias:
65
+ tag = source.strip().splitlines()[-1].split()
66
+ if tag[0] != '#NAME:':
67
+ stub = source.splitlines()[0]
68
+ raise IOError("unknown name for code: %s" % stub)
69
+ alias = tag[-1]
70
+ local = {}
71
+ exec(source, local)
72
+ _ = eval("%s" % alias, local)
73
+ return _
74
+
75
+ def dump_source(object, **kwds):
76
+ """write object source to a NamedTemporaryFile (instead of dill.dump)
77
+ Loads with "import" or "dill.temp.load_source". Returns the filehandle.
78
+
79
+ >>> f = lambda x: x**2
80
+ >>> pyfile = dill.temp.dump_source(f, alias='_f')
81
+ >>> _f = dill.temp.load_source(pyfile)
82
+ >>> _f(4)
83
+ 16
84
+
85
+ >>> f = lambda x: x**2
86
+ >>> pyfile = dill.temp.dump_source(f, dir='.')
87
+ >>> modulename = os.path.basename(pyfile.name).split('.py')[0]
88
+ >>> exec('from %s import f as _f' % modulename)
89
+ >>> _f(4)
90
+ 16
91
+
92
+ Optional kwds:
93
+ If 'alias' is specified, the object will be renamed to the given string.
94
+
95
+ If 'prefix' is specified, the file name will begin with that prefix,
96
+ otherwise a default prefix is used.
97
+
98
+ If 'dir' is specified, the file will be created in that directory,
99
+ otherwise a default directory is used.
100
+
101
+ If 'text' is specified and true, the file is opened in text
102
+ mode. Else (the default) the file is opened in binary mode. On
103
+ some operating systems, this makes no difference.
104
+
105
+ NOTE: Keep the return value for as long as you want your file to exist !
106
+ """ #XXX: write a "load_source"?
107
+ from .source import importable, getname
108
+ import tempfile
109
+ kwds.setdefault('delete', True)
110
+ kwds.pop('suffix', '') # this is *always* '.py'
111
+ alias = kwds.pop('alias', '') #XXX: include an alias so a name is known
112
+ name = str(alias) or getname(object)
113
+ name = "\n#NAME: %s\n" % name
114
+ #XXX: assumes kwds['dir'] is writable and on $PYTHONPATH
115
+ file = tempfile.NamedTemporaryFile(suffix='.py', **kwds)
116
+ file.write(b(''.join([importable(object, alias=alias),name])))
117
+ file.flush()
118
+ return file
119
+
120
+ def load(file, **kwds):
121
+ """load an object that was stored with dill.temp.dump
122
+
123
+ file: filehandle
124
+ mode: mode to open the file, one of: {'r', 'rb'}
125
+
126
+ >>> dumpfile = dill.temp.dump([1, 2, 3, 4, 5])
127
+ >>> dill.temp.load(dumpfile)
128
+ [1, 2, 3, 4, 5]
129
+ """
130
+ import dill as pickle
131
+ mode = kwds.pop('mode', 'rb')
132
+ name = getattr(file, 'name', file) # name=file.name or name=file (if str)
133
+ return pickle.load(open(name, mode=mode, **kwds))
134
+
135
+ def dump(object, **kwds):
136
+ """dill.dump of object to a NamedTemporaryFile.
137
+ Loads with "dill.temp.load". Returns the filehandle.
138
+
139
+ >>> dumpfile = dill.temp.dump([1, 2, 3, 4, 5])
140
+ >>> dill.temp.load(dumpfile)
141
+ [1, 2, 3, 4, 5]
142
+
143
+ Optional kwds:
144
+ If 'suffix' is specified, the file name will end with that suffix,
145
+ otherwise there will be no suffix.
146
+
147
+ If 'prefix' is specified, the file name will begin with that prefix,
148
+ otherwise a default prefix is used.
149
+
150
+ If 'dir' is specified, the file will be created in that directory,
151
+ otherwise a default directory is used.
152
+
153
+ If 'text' is specified and true, the file is opened in text
154
+ mode. Else (the default) the file is opened in binary mode. On
155
+ some operating systems, this makes no difference.
156
+
157
+ NOTE: Keep the return value for as long as you want your file to exist !
158
+ """
159
+ import dill as pickle
160
+ import tempfile
161
+ kwds.setdefault('delete', True)
162
+ file = tempfile.NamedTemporaryFile(**kwds)
163
+ pickle.dump(object, file)
164
+ file.flush()
165
+ return file
166
+
167
+ def loadIO(buffer, **kwds):
168
+ """load an object that was stored with dill.temp.dumpIO
169
+
170
+ buffer: buffer object
171
+
172
+ >>> dumpfile = dill.temp.dumpIO([1, 2, 3, 4, 5])
173
+ >>> dill.temp.loadIO(dumpfile)
174
+ [1, 2, 3, 4, 5]
175
+ """
176
+ import dill as pickle
177
+ from io import BytesIO as StringIO
178
+ value = getattr(buffer, 'getvalue', buffer) # value or buffer.getvalue
179
+ if value != buffer: value = value() # buffer.getvalue()
180
+ return pickle.load(StringIO(value))
181
+
182
+ def dumpIO(object, **kwds):
183
+ """dill.dump of object to a buffer.
184
+ Loads with "dill.temp.loadIO". Returns the buffer object.
185
+
186
+ >>> dumpfile = dill.temp.dumpIO([1, 2, 3, 4, 5])
187
+ >>> dill.temp.loadIO(dumpfile)
188
+ [1, 2, 3, 4, 5]
189
+ """
190
+ import dill as pickle
191
+ from io import BytesIO as StringIO
192
+ file = StringIO()
193
+ pickle.dump(object, file)
194
+ file.flush()
195
+ return file
196
+
197
+ def loadIO_source(buffer, **kwds):
198
+ """load an object that was stored with dill.temp.dumpIO_source
199
+
200
+ buffer: buffer object
201
+ alias: string name of stored object
202
+
203
+ >>> f = lambda x:x**2
204
+ >>> pyfile = dill.temp.dumpIO_source(f, alias='_f')
205
+ >>> _f = dill.temp.loadIO_source(pyfile)
206
+ >>> _f(4)
207
+ 16
208
+ """
209
+ alias = kwds.pop('alias', None)
210
+ source = getattr(buffer, 'getvalue', buffer) # source or buffer.getvalue
211
+ if source != buffer: source = source() # buffer.getvalue()
212
+ source = source.decode() # buffer to string
213
+ if not alias:
214
+ tag = source.strip().splitlines()[-1].split()
215
+ if tag[0] != '#NAME:':
216
+ stub = source.splitlines()[0]
217
+ raise IOError("unknown name for code: %s" % stub)
218
+ alias = tag[-1]
219
+ local = {}
220
+ exec(source, local)
221
+ _ = eval("%s" % alias, local)
222
+ return _
223
+
224
+ def dumpIO_source(object, **kwds):
225
+ """write object source to a buffer (instead of dill.dump)
226
+ Loads by with dill.temp.loadIO_source. Returns the buffer object.
227
+
228
+ >>> f = lambda x:x**2
229
+ >>> pyfile = dill.temp.dumpIO_source(f, alias='_f')
230
+ >>> _f = dill.temp.loadIO_source(pyfile)
231
+ >>> _f(4)
232
+ 16
233
+
234
+ Optional kwds:
235
+ If 'alias' is specified, the object will be renamed to the given string.
236
+ """
237
+ from .source import importable, getname
238
+ from io import BytesIO as StringIO
239
+ alias = kwds.pop('alias', '') #XXX: include an alias so a name is known
240
+ name = str(alias) or getname(object)
241
+ name = "\n#NAME: %s\n" % name
242
+ #XXX: assumes kwds['dir'] is writable and on $PYTHONPATH
243
+ file = StringIO()
244
+ file.write(b(''.join([importable(object, alias=alias),name])))
245
+ file.flush()
246
+ return file
247
+
248
+
249
+ del contextlib
250
+
251
+
252
+ # EOF
@@ -1,16 +1,16 @@
1
- import { _ as Browser$1, a as TimeoutError$1, c as computeSystemExecutablePath, f as detectBrowserPlatform, h as resolveBuildId, l as launch$1, n as uninstall, o as WEBDRIVER_BIDI_WEBSOCKET_ENDPOINT_REGEX, p as createProfile, r as CDP_WEBSOCKET_ENDPOINT_REGEX, s as computeExecutablePath, t as getInstalledBrowsers } from "./main-CupOhMp5.js";
1
+ import { _ as Browser$1, a as TimeoutError$1, c as computeSystemExecutablePath, f as detectBrowserPlatform, h as resolveBuildId, l as launch$1, n as uninstall, o as WEBDRIVER_BIDI_WEBSOCKET_ENDPOINT_REGEX, p as createProfile, r as CDP_WEBSOCKET_ENDPOINT_REGEX, s as computeExecutablePath, t as getInstalledBrowsers } from "./main-BeCgUd20.js";
2
2
  import { C as unitToPixels, Ct as getCapturedLogs, E as paperFormats, F as bufferCount, J as fromEvent, K as firstValueFrom, M as assert, Q as map, S as timeout, St as debug, T as withSourcePuppeteerURLIfNone, Tt as environment, W as filter, Z as lastValueFrom, _ as isNumber, _t as PuppeteerError, a as UTILITY_WORLD_NAME, at as race, b as isString, bt as TouchError, c as evaluationString, d as fromEmitterEvent, dt as takeUntil, f as getReadableAsTypedArray, ft as tap, g as isDate, gt as ProtocolError, h as getSourceUrlComment, ht as ConnectionClosedError, i as SOURCE_URL_REGEX, l as filterAsync, m as getSourcePuppeteerURLIfAvailable, mt as timer, n as NETWORK_IDLE_TIME, o as debugCatchError, p as getReadableFromProtocolStream, q as from, r as PuppeteerURL, s as debugError, t as DEFAULT_VIEWPORT, u as fromAbortSignal, v as isPlainObject, vt as TargetCloseError, w as validateDialogType, wt as setLogCapture, x as parsePDFOptions, xt as UnsupportedOperation, y as isRegExp, yt as TimeoutError, z as concatMap } from "./util-BHL_dfV_.js";
3
- import { $ as pageBindingInitString, $n as Deferred, $t as scriptInjector, A as NetworkManager, An as guarded, At as DEFAULT_INTERCEPT_RESOLUTION_PRIORITY, B as MAIN_WORLD, Bn as AsyncDisposableStack, Bt as throwIfDetached, C as WebMCPToolCall, Cn as NodeLocator, Ct as WebWorkerEvent, D as CdpTouchscreen, Dn as DeviceRequestPrompt, Dt as normalizeHeaderValue, E as CdpTouchHandle, En as TimeoutSettings, Et as WaitTask, F as CdpFrame, Fn as Browser, Ft as headersArray, G as CdpJSHandle, Gn as asyncDisposeSymbol, Gt as XPathQueryHandler, H as FrameManagerEvent, Hn as DisposableStack, Ht as bindIsolatedHandle, I as referrerPolicyToProtocol, In as WEB_PERMISSION_TO_PROTOCOL_PERMISSION, It as Dialog, J as addPageBinding, Jn as CallbackRegistry, Jt as PQueryHandler, K as releaseObject, Kn as disposeSymbol, Kt as TextQueryHandler, L as LifecycleWatcher, Ln as CDPSession, Lt as Accessibility, M as CdpHTTPResponse, Mt as InterceptResolutionAction, N as CdpHTTPRequest, Nt as STATUS_TEXTS, O as _keyDefinitions, On as BrowserContext, Ot as SecurityDetails, P as FrameTree, Pn as Mutex, Pt as handleError, Q as createEvaluationError, Qn as rewriteError, Qt as ScriptInjector, R as IsolatedWorld, Rn as CDPSessionEvent, Rt as Frame, S as WebMCPTool, Sn as MappedLocator, St as WebWorker, T as CdpMouse, Tn as RaceLocator, Tt as TaskManager, U as ExecutionContext, Un as DisposableStackPolyfill, Ut as JSHandle, V as PUPPETEER_WORLD, Vn as AsyncDisposableStackPolyfill, Vt as ElementHandle, W as CdpElementHandle, Wn as SuppressedError, Wt as getQueryHandlerAndSelector, X as createClientError, Xn as isErrnoException, Xt as CustomQueryHandlerRegistry, Y as convertConsoleMessageLevel, Yn as createProtocolErrorMessage, Yt as PierceQueryHandler, Z as createConsoleMessage, Zn as isErrorLike, Zt as customQueryHandlers, _ as CdpBrowserContext, _n as DelegatedLocator, _t as Mouse, a as KnownDevices, at as CdpPreloadScript, b as convertSameSiteFromPuppeteerToCdp, bn as Locator, bt as createIncrementalIdGenerator, c as _connectToCdpBrowser, cn as Tracing, ct as isTargetClosedError, d as CdpTarget, dn as CSSCoverage, dt as ConsoleMessage, en as ARIAQueryHandler, et as valueFromJSHandle, f as DevToolsTarget, fn as Coverage, ft as CdpBluetoothEmulation, g as WorkerTarget, gn as supportedMetrics, gt as Keyboard, h as PageTarget, hn as setDefaultScreenshotOptions, ht as TargetType, i as assertSupportedUrlRestrictions, it as CdpDeviceRequestPromptManager, j as NetworkEventManager, jt as HTTPRequest, k as FrameManager, kt as HTTPResponse, l as CdpBrowser, ln as EmulatedState, lt as CdpCDPSession, m as OtherTarget, mn as Page, mt as Target, n as TaskQueue, nn as LazyArg, nt as valueFromRemoteObjectReference, o as PredefinedNetworkConditions, on as AsyncIterableUtil, ot as CdpDialog, p as InitializationStatus, pn as JSCoverage, pt as Binding, q as CDP_BINDING_PREFIX, qn as Callback, qt as parsePSelectors, r as Puppeteer, rn as transposeIterableHandle, rt as CdpDeviceRequestPrompt, s as ExtensionTransport, sn as FileChooser, st as Connection, t as PUPPETEER_REVISIONS, tn as QueryHandler, tt as valueFromPrimitiveRemoteObject, u as TargetManager, un as EmulationManager, ut as NetworkManagerEvent, v as CdpPage, vn as FilteredLocator, vt as MouseButton, w as CdpKeyboard, wn as RETRY_DELAY, wt as Realm, x as WebMCP, xn as LocatorEvent, xt as Extension, y as convertCookiesPartitionKeyFromPuppeteerToCdp, yn as FunctionLocator, yt as Touchscreen, z as CdpWebWorker, zn as EventEmitter, zt as FrameEvent } from "./index-browser-CysrjMyM.js";
3
+ import { $ as pageBindingInitString, $n as Deferred, $t as scriptInjector, A as NetworkManager, An as guarded, At as DEFAULT_INTERCEPT_RESOLUTION_PRIORITY, B as MAIN_WORLD, Bn as AsyncDisposableStack, Bt as throwIfDetached, C as WebMCPToolCall, Cn as NodeLocator, Ct as WebWorkerEvent, D as CdpTouchscreen, Dn as DeviceRequestPrompt, Dt as normalizeHeaderValue, E as CdpTouchHandle, En as TimeoutSettings, Et as WaitTask, F as CdpFrame, Fn as Browser, Ft as headersArray, G as CdpJSHandle, Gn as asyncDisposeSymbol, Gt as XPathQueryHandler, H as FrameManagerEvent, Hn as DisposableStack, Ht as bindIsolatedHandle, I as referrerPolicyToProtocol, In as WEB_PERMISSION_TO_PROTOCOL_PERMISSION, It as Dialog, J as addPageBinding, Jn as CallbackRegistry, Jt as PQueryHandler, K as releaseObject, Kn as disposeSymbol, Kt as TextQueryHandler, L as LifecycleWatcher, Ln as CDPSession, Lt as Accessibility, M as CdpHTTPResponse, Mt as InterceptResolutionAction, N as CdpHTTPRequest, Nt as STATUS_TEXTS, O as _keyDefinitions, On as BrowserContext, Ot as SecurityDetails, P as FrameTree, Pn as Mutex, Pt as handleError, Q as createEvaluationError, Qn as rewriteError, Qt as ScriptInjector, R as IsolatedWorld, Rn as CDPSessionEvent, Rt as Frame, S as WebMCPTool, Sn as MappedLocator, St as WebWorker, T as CdpMouse, Tn as RaceLocator, Tt as TaskManager, U as ExecutionContext, Un as DisposableStackPolyfill, Ut as JSHandle, V as PUPPETEER_WORLD, Vn as AsyncDisposableStackPolyfill, Vt as ElementHandle, W as CdpElementHandle, Wn as SuppressedError, Wt as getQueryHandlerAndSelector, X as createClientError, Xn as isErrnoException, Xt as CustomQueryHandlerRegistry, Y as convertConsoleMessageLevel, Yn as createProtocolErrorMessage, Yt as PierceQueryHandler, Z as createConsoleMessage, Zn as isErrorLike, Zt as customQueryHandlers, _ as CdpBrowserContext, _n as DelegatedLocator, _t as Mouse, a as KnownDevices, at as CdpPreloadScript, b as convertSameSiteFromPuppeteerToCdp, bn as Locator, bt as createIncrementalIdGenerator, c as _connectToCdpBrowser, cn as Tracing, ct as isTargetClosedError, d as CdpTarget, dn as CSSCoverage, dt as ConsoleMessage, en as ARIAQueryHandler, et as valueFromJSHandle, f as DevToolsTarget, fn as Coverage, ft as CdpBluetoothEmulation, g as WorkerTarget, gn as supportedMetrics, gt as Keyboard, h as PageTarget, hn as setDefaultScreenshotOptions, ht as TargetType, i as assertSupportedUrlRestrictions, it as CdpDeviceRequestPromptManager, j as NetworkEventManager, jt as HTTPRequest, k as FrameManager, kt as HTTPResponse, l as CdpBrowser, ln as EmulatedState, lt as CdpCDPSession, m as OtherTarget, mn as Page, mt as Target, n as TaskQueue, nn as LazyArg, nt as valueFromRemoteObjectReference, o as PredefinedNetworkConditions, on as AsyncIterableUtil, ot as CdpDialog, p as InitializationStatus, pn as JSCoverage, pt as Binding, q as CDP_BINDING_PREFIX, qn as Callback, qt as parsePSelectors, r as Puppeteer, rn as transposeIterableHandle, rt as CdpDeviceRequestPrompt, s as ExtensionTransport, sn as FileChooser, st as Connection, t as PUPPETEER_REVISIONS, tn as QueryHandler, tt as valueFromPrimitiveRemoteObject, u as TargetManager, un as EmulationManager, ut as NetworkManagerEvent, v as CdpPage, vn as FilteredLocator, vt as MouseButton, w as CdpKeyboard, wn as RETRY_DELAY, wt as Realm, x as WebMCP, xn as LocatorEvent, xt as Extension, y as convertCookiesPartitionKeyFromPuppeteerToCdp, yn as FunctionLocator, yt as Touchscreen, z as CdpWebWorker, zn as EventEmitter, zt as FrameEvent } from "./index-browser-B-9jm12n.js";
4
4
  import { t as BrowserWebSocketTransport } from "./BrowserWebSocketTransport-wm99h94r.js";
5
- import { t as convertPuppeteerChannelToBrowsersChannel } from "./LaunchOptions-kGXcZOe0.js";
5
+ import { t as convertPuppeteerChannelToBrowsersChannel } from "./LaunchOptions-5eg7E0ye.js";
6
6
  import { t as NodeWebSocketTransport } from "./NodeWebSocketTransport-D9ysYGLM.js";
7
- import { spawn, spawnSync } from "node:child_process";
8
- import { mkdtemp, rename, unlink } from "node:fs/promises";
9
- import path, { dirname, join } from "node:path";
10
7
  import fs, { existsSync } from "node:fs";
11
- import os, { tmpdir } from "node:os";
8
+ import path, { dirname, join } from "node:path";
9
+ import { spawn, spawnSync } from "node:child_process";
12
10
  import { debuglog } from "node:util";
11
+ import { mkdtemp, rename, unlink } from "node:fs/promises";
13
12
  import { PassThrough } from "node:stream";
13
+ import os, { tmpdir } from "node:os";
14
14
 
15
15
  //#region node_modules/puppeteer-core/lib/puppeteer/node-env-setup.js
16
16
  environment.value = {
@@ -240,7 +240,7 @@ var BrowserLauncher = class {
240
240
  const bidiOnly = process.env["PUPPETEER_WEBDRIVER_BIDI_ONLY"] === "true";
241
241
  const BiDi = await import(
242
242
  /* webpackIgnore: true */
243
- "./bidi-BalpKaJc.js"
243
+ "./bidi-CwabFH07.js"
244
244
  );
245
245
  const bidiConnection = await BiDi.connectBidiOverCdp(cdpConnection);
246
246
  return await BiDi.BidiBrowser.create({
@@ -262,7 +262,7 @@ var BrowserLauncher = class {
262
262
  const transport = await NodeWebSocketTransport.create(browserWSEndpoint);
263
263
  const BiDi = await import(
264
264
  /* webpackIgnore: true */
265
- "./bidi-BalpKaJc.js"
265
+ "./bidi-CwabFH07.js"
266
266
  );
267
267
  const bidiConnection = new BiDi.BidiConnection(browserWSEndpoint, transport, opts.idGenerator, opts.slowMo, opts.protocolTimeout);
268
268
  return await BiDi.BidiBrowser.create({