@opencode/browse 0.0.17-dev.169 → 0.0.17-dev.171

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 (34) hide show
  1. package/dist/{Runtime-qfc1eg1n.mjs → Runtime-jrg7sc9p.mjs} +1 -1
  2. package/dist/{cli-zx7g8fek.mjs → cli-n2yqdpef.mjs} +49 -49
  3. package/dist/cli.mjs +14 -14
  4. package/dist/{helpers-nxtpzjhw.mjs → helpers-na4s8h8f.mjs} +1 -1
  5. package/dist/{index-yaf37ery.mjs → index-j79y2me1.mjs} +2 -2
  6. package/dist/{legacy-runtime-rvcn5zs6.mjs → legacy-runtime-pef5jajn.mjs} +4 -4
  7. package/dist/{main-4074weqb.mjs → main-048kx59h.mjs} +1 -1
  8. package/dist/{main-wf904nhj.mjs → main-31mjsvtm.mjs} +2 -2
  9. package/dist/{main-w80ghbx8.mjs → main-3gx5fe95.mjs} +1 -1
  10. package/dist/{main-9bk4pprj.mjs → main-3mhynene.mjs} +1 -1
  11. package/dist/{main-m3xnn0cx.mjs → main-5snyxk65.mjs} +4 -4
  12. package/dist/{main-dwjfhfpm.mjs → main-6q5nqhy7.mjs} +1 -1
  13. package/dist/{main-v6hzbxjd.mjs → main-f98q5tcf.mjs} +12 -12
  14. package/dist/{main-sx7qpdfw.mjs → main-g13tfban.mjs} +3 -3
  15. package/dist/{main-6k1dq78p.mjs → main-gvzdjgte.mjs} +3 -3
  16. package/dist/main-hrrgcjhe.mjs +4 -0
  17. package/dist/{main-h55dwr1s.mjs → main-ma5ncx3b.mjs} +2 -2
  18. package/dist/{main-rvmzfmb7.mjs → main-qq7x2tgn.mjs} +5 -5
  19. package/dist/{main-jf7jberd.mjs → main-s3g4jwx5.mjs} +41 -41
  20. package/dist/{main-gbq7c729.mjs → main-t8c7aq8b.mjs} +3 -3
  21. package/dist/{main-xycdhwqs.mjs → main-wpt5ha44.mjs} +23 -23
  22. package/dist/{main-fs2ymcvd.mjs → main-x9vdxj9f.mjs} +18 -18
  23. package/dist/{mcp-37b0xgq0.mjs → mcp-eqfvz2d5.mjs} +60 -60
  24. package/dist/{migrate-49s4pykq.mjs → migrate-h0e3yv0y.mjs} +4 -4
  25. package/dist/{relay-jkgh5rzg.mjs → relay-9fsv094e.mjs} +306 -66
  26. package/dist/{runtime-update-9d3dsv6t.mjs → runtime-update-7m0tkybs.mjs} +7 -7
  27. package/dist/{setup-74nz1gqg.mjs → setup-ac6kjvgh.mjs} +7 -7
  28. package/dist/{skill-text-z1pce87x.mjs → skill-text-thdaq5mc.mjs} +14 -1
  29. package/dist/{supervisor-5pjptkgz.mjs → supervisor-638mhqwx.mjs} +3 -3
  30. package/dist/{update-n4sw8eht.mjs → update-tyrveejz.mjs} +3 -3
  31. package/dist/{version-2cadxvsa.mjs → version-njwyb4qk.mjs} +1 -1
  32. package/package.json +1 -1
  33. package/skills/browse/SKILL.md +14 -1
  34. package/dist/main-9xbcy9q0.mjs +0 -4
@@ -1,6 +1,6 @@
1
- import"./main-9bk4pprj.mjs";
1
+ import"./main-3mhynene.mjs";
2
2
  import"./main-pmfd055v.mjs";
3
- import"./main-9xbcy9q0.mjs";
3
+ import"./main-hrrgcjhe.mjs";
4
4
  import {
5
5
  cliCommand,
6
6
  installCommand,
@@ -18,17 +18,17 @@ import {
18
18
  registryUrl,
19
19
  fetchPublished,
20
20
  runInstaller
21
- } from "./main-gbq7c729.mjs";
21
+ } from "./main-t8c7aq8b.mjs";
22
22
  import"./main-b3jrctcx.mjs";
23
23
  import {
24
24
  Service,
25
25
  layerFetch,
26
26
  restartRelay,
27
27
  startManagedRelay
28
- } from "./main-fs2ymcvd.mjs";
28
+ } from "./main-x9vdxj9f.mjs";
29
29
  import"./main-4h7rfhhr.mjs";
30
- import"./main-jf7jberd.mjs";
31
- import"./main-w80ghbx8.mjs";
30
+ import"./main-s3g4jwx5.mjs";
31
+ import"./main-3gx5fe95.mjs";
32
32
  import {
33
33
  succeed6,
34
34
  gen,
@@ -36,7 +36,7 @@ import {
36
36
  catch_,
37
37
  provide3,
38
38
  runPromise
39
- } from "./main-xycdhwqs.mjs";
39
+ } from "./main-wpt5ha44.mjs";
40
40
 
41
41
  // src/update/runtime-update.ts
42
42
  var log = (line) => process.stdout.write(line + `
@@ -63,11 +63,11 @@ import {
63
63
  installRuntime,
64
64
  installedRuntime,
65
65
  manualMcpEntry
66
- } from "./main-6k1dq78p.mjs";
66
+ } from "./main-gvzdjgte.mjs";
67
67
  import"./main-pmfd055v.mjs";
68
68
  import {
69
69
  opencodeBrowserBuildId2
70
- } from "./main-9xbcy9q0.mjs";
70
+ } from "./main-hrrgcjhe.mjs";
71
71
  import {
72
72
  installedBinaryPath,
73
73
  installerBinaryPath,
@@ -84,7 +84,7 @@ import {
84
84
  autoUpdateStatus,
85
85
  describeAutoUpdate,
86
86
  runCommand
87
- } from "./main-gbq7c729.mjs";
87
+ } from "./main-t8c7aq8b.mjs";
88
88
  import"./main-4h7rfhhr.mjs";
89
89
  import {
90
90
  pairingCodeTtlMs,
@@ -98,7 +98,7 @@ import {
98
98
  revokeBrowserToken,
99
99
  legacyPairingCode,
100
100
  removeLegacyPairingCode
101
- } from "./main-dwjfhfpm.mjs";
101
+ } from "./main-6q5nqhy7.mjs";
102
102
  import {
103
103
  unpackedExtensionId,
104
104
  extensionProtocolSkew,
@@ -107,16 +107,16 @@ import {
107
107
  import"./main-tk4axre7.mjs";
108
108
  import {
109
109
  defaultSiteSecretsDir
110
- } from "./main-sx7qpdfw.mjs";
110
+ } from "./main-g13tfban.mjs";
111
111
  import {
112
112
  parseHostname,
113
113
  readRelayConfig,
114
114
  writeRelayConfig,
115
115
  syncDevExtension
116
- } from "./main-wf904nhj.mjs";
116
+ } from "./main-31mjsvtm.mjs";
117
117
  import {
118
118
  relayAuthorization
119
- } from "./main-w80ghbx8.mjs";
119
+ } from "./main-3gx5fe95.mjs";
120
120
 
121
121
  // src/setup.ts
122
122
  import { mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync } from "node:fs";
@@ -241,6 +241,12 @@ values between calls on \`state\`. A single run without an \`await\` is stopped
241
241
  about 2 seconds; split heavy loops with
242
242
  \`await new Promise(r => setTimeout(r, 0))\` or do the work in the page.
243
243
 
244
+ \`execute\`'s \`timeoutMs\` (MCP) / \`--timeout-ms\` (CLI) is the whole-script
245
+ deadline, 60 seconds by default and paused during \`handoff()\`; \`0\` disables it.
246
+ When you set it (or the relay sets \`OPENCODE_BROWSER_EXECUTE_TIMEOUT_MS\`),
247
+ Playwright actions and navigations get the same budget, at least 30 seconds;
248
+ without either they keep Playwright's 30-second default.
249
+
244
250
  Await promises: a rejection with no handler never stops the relay. A running call
245
251
  gets the error; a later one resets the realm and warns on the next call (a
246
252
  one-shot \`--rm\` session is already gone). Full Node mode has no realm to reset.
@@ -286,7 +292,14 @@ A cross-origin iframe also needs \`allow="clipboard-write"\` (or \`clipboard-rea
286
292
  from its parent; without it Chrome refuses the call and nothing in the frame can
287
293
  fix that, so write from the top page or read the value from the DOM instead.
288
294
  Clipboard reads usually ask the user for permission, so use \`handoff()\` or avoid
289
- them. \`context.grantPermissions()\` is refused, so don't try it.
295
+ them. Permission grants are refused (\`context.grantPermissions()\`,
296
+ \`context.clearPermissions()\`, \`Browser.grantPermissions\`, \`Browser.setPermission\`,
297
+ \`Browser.resetPermissions\`), so don't try them.
298
+
299
+ \`page.setViewportSize({ width, height })\` emulates a viewport inside the user's
300
+ window: the tab is letterboxed while it is set, and browse clears the override
301
+ when the script ends (within a couple of seconds), so the tab returns to the
302
+ window's size. Don't rely on the size carrying over to the next \`execute\`.
290
303
 
291
304
  The page's console messages and uncaught errors are off by default because
292
305
  capturing them lets the page detect a debugger. Turn them on for one page when
@@ -1,10 +1,10 @@
1
1
  import"./main-pmfd055v.mjs";
2
- import"./main-9xbcy9q0.mjs";
2
+ import"./main-hrrgcjhe.mjs";
3
3
  import {
4
4
  entrySpawnCommand,
5
5
  installedRuntime2,
6
6
  installedVersion
7
- } from "./main-gbq7c729.mjs";
7
+ } from "./main-t8c7aq8b.mjs";
8
8
 
9
9
  // src/mcp/supervisor.ts
10
10
  import { spawn } from "node:child_process";
@@ -35,7 +35,7 @@ async function runBinaryMcp(args) {
35
35
  const runtime = installedRuntime2();
36
36
  if (!runtime || runtime.kind === "npx") {
37
37
  process.env[directEnvironmentVariable] = "1";
38
- const { runCli } = await import("./cli-zx7g8fek.mjs");
38
+ const { runCli } = await import("./cli-n2yqdpef.mjs");
39
39
  return runCli();
40
40
  }
41
41
  const REPLAY = `opencode-browser-shim-initialize-${randomUUID()}`;
@@ -4,11 +4,11 @@ import {
4
4
  updateNotice2,
5
5
  createUpdateWatcher2,
6
6
  runUpdateCommand2
7
- } from "./main-h55dwr1s.mjs";
7
+ } from "./main-ma5ncx3b.mjs";
8
8
  import"./main-b3jrctcx.mjs";
9
- import"./main-gbq7c729.mjs";
9
+ import"./main-t8c7aq8b.mjs";
10
10
  import"./main-pmfd055v.mjs";
11
- import"./main-9xbcy9q0.mjs";
11
+ import"./main-hrrgcjhe.mjs";
12
12
  export {
13
13
  createUpdateWatcher2 as createUpdateWatcher,
14
14
  formatUpdateNotice2 as formatUpdateNotice,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  opencodeBrowserVersion2,
3
3
  opencodeBrowserBuildId2
4
- } from "./main-9xbcy9q0.mjs";
4
+ } from "./main-hrrgcjhe.mjs";
5
5
  export {
6
6
  opencodeBrowserBuildId2 as opencodeBrowserBuildId,
7
7
  opencodeBrowserVersion2 as opencodeBrowserVersion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode/browse",
3
- "version": "0.0.17-dev.169",
3
+ "version": "0.0.17-dev.171",
4
4
  "description": "browse: connect the extension to opencode, and drive your browser from any agent (CLI, MCP, Playwright).",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -240,6 +240,12 @@ values between calls on `state`. A single run without an `await` is stopped afte
240
240
  about 2 seconds; split heavy loops with
241
241
  `await new Promise(r => setTimeout(r, 0))` or do the work in the page.
242
242
 
243
+ `execute`'s `timeoutMs` (MCP) / `--timeout-ms` (CLI) is the whole-script
244
+ deadline, 60 seconds by default and paused during `handoff()`; `0` disables it.
245
+ When you set it (or the relay sets `OPENCODE_BROWSER_EXECUTE_TIMEOUT_MS`),
246
+ Playwright actions and navigations get the same budget, at least 30 seconds;
247
+ without either they keep Playwright's 30-second default.
248
+
243
249
  Await promises: a rejection with no handler never stops the relay. A running call
244
250
  gets the error; a later one resets the realm and warns on the next call (a
245
251
  one-shot `--rm` session is already gone). Full Node mode has no realm to reset.
@@ -285,7 +291,14 @@ A cross-origin iframe also needs `allow="clipboard-write"` (or `clipboard-read`)
285
291
  from its parent; without it Chrome refuses the call and nothing in the frame can
286
292
  fix that, so write from the top page or read the value from the DOM instead.
287
293
  Clipboard reads usually ask the user for permission, so use `handoff()` or avoid
288
- them. `context.grantPermissions()` is refused, so don't try it.
294
+ them. Permission grants are refused (`context.grantPermissions()`,
295
+ `context.clearPermissions()`, `Browser.grantPermissions`, `Browser.setPermission`,
296
+ `Browser.resetPermissions`), so don't try them.
297
+
298
+ `page.setViewportSize({ width, height })` emulates a viewport inside the user's
299
+ window: the tab is letterboxed while it is set, and browse clears the override
300
+ when the script ends (within a couple of seconds), so the tab returns to the
301
+ window's size. Don't rely on the size carrying over to the next `execute`.
289
302
 
290
303
  The page's console messages and uncaught errors are off by default because
291
304
  capturing them lets the page detect a debugger. Turn them on for one page when
@@ -1,4 +0,0 @@
1
- // src/version.ts
2
- var opencodeBrowserVersion2 = "0.0.17-dev.169";
3
- var opencodeBrowserBuildId2 = "2026-11-10T20:46:59.239Z";
4
- export { opencodeBrowserVersion2, opencodeBrowserBuildId2 };