@effect-agent/platform-cloudflare 0.1.0-beta.39 → 0.1.0-beta.40

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.
@@ -88,12 +88,12 @@ const browserRunInteractiveImplementation = SandboxImplementation.make({
88
88
  });
89
89
  const MIN_KEEP_ALIVE_MILLIS = 1e4;
90
90
  const MAX_KEEP_ALIVE_MILLIS = 6e5;
91
- const MAX_TEXT_LENGTH = 8 * 1024 * 1024;
92
- const MAX_SCREENSHOT_BYTES = 8 * 1024 * 1024;
91
+ const MAX_TEXT_LENGTH = 8388608;
92
+ const MAX_SCREENSHOT_BYTES = 8388608;
93
93
  const MIN_LIVE_VIEW_EXPIRY_MILLIS = 6e4;
94
- const MAX_LIVE_VIEW_EXPIRY_MILLIS = 60 * 6e4;
95
- const MAX_HANDOFF_TIMEOUT_MILLIS = 30 * 6e4;
96
- const MAX_HOST_TEXT_LENGTH = 8 * 1024;
94
+ const MAX_LIVE_VIEW_EXPIRY_MILLIS = 36e5;
95
+ const MAX_HANDOFF_TIMEOUT_MILLIS = 18e5;
96
+ const MAX_HOST_TEXT_LENGTH = 8192;
97
97
  const CLEANUP_STEP_TIMEOUT_MILLIS = 1e4;
98
98
  const ACTION_NETWORK_QUIET_MILLIS = 200;
99
99
  const ACTION_NETWORK_SETTLE_MILLIS = 2e3;
@@ -1148,7 +1148,19 @@ const browserRunInteractiveLayer = () => Layer.effect(InteractiveBrowser, Effect
1148
1148
  const host = makeHostService(binding);
1149
1149
  return InteractiveBrowser.of({ open: (policy) => host.open(policy).pipe(Effect.map((session) => session.handle)) });
1150
1150
  }));
1151
+ const interactiveBindingLayer = (options) => BrowserRunInteractiveBinding.layer(options).pipe(Layer.provide(BrowserRunSessionLifecycle.layer(options)));
1152
+ /** Worker-only assembly; importing ordinary capture never loads Puppeteer. */
1153
+ const CloudflareInteractiveBrowser = {
1154
+ /**
1155
+ * Assemble binding, confirmed-session cleanup, and the generic browser service.
1156
+ * HttpClient and construction errors remain visible. Opening a pass still requires
1157
+ * an explicit policy and Scope; no browser is launched during Layer construction.
1158
+ */
1159
+ layer: (options) => browserRunInteractiveLayer().pipe(Layer.provide(interactiveBindingLayer(options))),
1160
+ /** Opt into private host controls instead of exposing them through the generic service. */
1161
+ hostLayer: (options) => browserRunInteractiveHostLayer().pipe(Layer.provide(interactiveBindingLayer(options)))
1162
+ };
1151
1163
  //#endregion
1152
- export { BrowserRunCleanupError, BrowserRunHandoffRequest, BrowserRunHandoffResult, BrowserRunHandoffState, BrowserRunInteractiveBinding, BrowserRunInteractiveHost, BrowserRunLiveViewRequest, BrowserRunLiveViewResult, BrowserRunSessionLifecycle, BrowserRunViewport, browserRunInteractiveHostLayer, browserRunInteractiveImplementation, browserRunInteractiveLayer, isBrowserRunUndispatchedActionError };
1164
+ export { BrowserRunCleanupError, BrowserRunHandoffRequest, BrowserRunHandoffResult, BrowserRunHandoffState, BrowserRunInteractiveBinding, BrowserRunInteractiveHost, BrowserRunLiveViewRequest, BrowserRunLiveViewResult, BrowserRunSessionLifecycle, BrowserRunViewport, CloudflareInteractiveBrowser, browserRunInteractiveHostLayer, browserRunInteractiveImplementation, browserRunInteractiveLayer, isBrowserRunUndispatchedActionError };
1153
1165
 
1154
1166
  //# sourceMappingURL=interactive-browser.mjs.map