@deepraxis/sdk 0.1.1-dev.d73d5e4 → 0.1.1-dev.d8d3f52

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * ticket-944 — the `actions` driver: the cloud browser driven over the public HTTP faces, with no Playwright and
2
+ * ticket-944 — the `actions` driver: the Browser service driven over the public HTTP faces, with no Playwright and
3
3
  * no `node:child_process`. A light machine cannot install `playwright-core` at all, so instead of asking to be
4
4
  * upgraded it drives the same cloud session through:
5
5
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * The service executes each action on the session's own CDP control connection, so `open` / `click` / `fill` / …
11
11
  * keep working on a machine with no browser stack of its own
12
- * (`services/cloud-browser/src/domain/page-actions.ts`).
12
+ * (`services/browser/src/domain/page-actions.ts`).
13
13
  */
14
14
  /** Where screenshots land, matching the Playwright driver's directory. */
15
15
  export declare const SCREENSHOT_DIR = ".praxis/screenshots";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * ticket-944 — the `actions` driver: the cloud browser driven over the public HTTP faces, with no Playwright and
2
+ * ticket-944 — the `actions` driver: the Browser service driven over the public HTTP faces, with no Playwright and
3
3
  * no `node:child_process`. A light machine cannot install `playwright-core` at all, so instead of asking to be
4
4
  * upgraded it drives the same cloud session through:
5
5
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * The service executes each action on the session's own CDP control connection, so `open` / `click` / `fill` / …
11
11
  * keep working on a machine with no browser stack of its own
12
- * (`services/cloud-browser/src/domain/page-actions.ts`).
12
+ * (`services/browser/src/domain/page-actions.ts`).
13
13
  */
14
14
  import { PraxisError } from "../core/errors.js";
15
15
  /** The public own-face path prefix — the same one this SDK's connect URL is built on. */
@@ -169,7 +169,8 @@ async function connectActions(deps, settings) {
169
169
  api: settings.api, token: settings.token, name: settings.name,
170
170
  labels: { agent_session: settings.name, agent: settings.agentId },
171
171
  context: settings.context, home: settings.home, fs, now: settings.now,
172
- fetch: deps.fetch ?? globalThis.fetch,
172
+ // Bound: a Worker isolate (the light machine) throws "Illegal invocation" when fetch is called as a method of another object.
173
+ fetch: deps.fetch ?? globalThis.fetch.bind(globalThis),
173
174
  });
174
175
  const noPlaywright = () => new PraxisError({
175
176
  status: 501, code: 'BROWSER_DRIVER_ACTIONS',