dsh-builtin-browser 0.1.4 → 0.1.5

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.
@@ -149,7 +149,13 @@ export class ElectronBrowserProvider {
149
149
  }
150
150
  }
151
151
  signal?.throwIfAborted();
152
- await handle.sendCommand(CDP_PAGE_NAVIGATE, { url });
152
+ const result = await handle.sendCommand(CDP_PAGE_NAVIGATE, { url });
153
+ // Page.navigate resolves even when the navigation fails; surface the
154
+ // failure instead of leaving a silent white screen.
155
+ const errorText = result.errorText;
156
+ if (typeof errorText === 'string' && errorText !== '') {
157
+ throw new BrowserError(`browser: navigation to "${url}" failed: ${errorText}`, 'BROWSER_NAVIGATION_FAILED');
158
+ }
153
159
  }
154
160
  /** Execute JS in the active tab's page context. */
155
161
  async execute(session, request, signal) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-builtin-browser",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Shared real browser capability for DeepSeek Harness: a visible browser the human watches and can take over, driven by the agent over CDP (snapshot/execute/content/tab management); host-side seam, provider, and browser_* tools",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",