@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.
- package/dist/{Runtime-qfc1eg1n.mjs → Runtime-jrg7sc9p.mjs} +1 -1
- package/dist/{cli-zx7g8fek.mjs → cli-n2yqdpef.mjs} +49 -49
- package/dist/cli.mjs +14 -14
- package/dist/{helpers-nxtpzjhw.mjs → helpers-na4s8h8f.mjs} +1 -1
- package/dist/{index-yaf37ery.mjs → index-j79y2me1.mjs} +2 -2
- package/dist/{legacy-runtime-rvcn5zs6.mjs → legacy-runtime-pef5jajn.mjs} +4 -4
- package/dist/{main-4074weqb.mjs → main-048kx59h.mjs} +1 -1
- package/dist/{main-wf904nhj.mjs → main-31mjsvtm.mjs} +2 -2
- package/dist/{main-w80ghbx8.mjs → main-3gx5fe95.mjs} +1 -1
- package/dist/{main-9bk4pprj.mjs → main-3mhynene.mjs} +1 -1
- package/dist/{main-m3xnn0cx.mjs → main-5snyxk65.mjs} +4 -4
- package/dist/{main-dwjfhfpm.mjs → main-6q5nqhy7.mjs} +1 -1
- package/dist/{main-v6hzbxjd.mjs → main-f98q5tcf.mjs} +12 -12
- package/dist/{main-sx7qpdfw.mjs → main-g13tfban.mjs} +3 -3
- package/dist/{main-6k1dq78p.mjs → main-gvzdjgte.mjs} +3 -3
- package/dist/main-hrrgcjhe.mjs +4 -0
- package/dist/{main-h55dwr1s.mjs → main-ma5ncx3b.mjs} +2 -2
- package/dist/{main-rvmzfmb7.mjs → main-qq7x2tgn.mjs} +5 -5
- package/dist/{main-jf7jberd.mjs → main-s3g4jwx5.mjs} +41 -41
- package/dist/{main-gbq7c729.mjs → main-t8c7aq8b.mjs} +3 -3
- package/dist/{main-xycdhwqs.mjs → main-wpt5ha44.mjs} +23 -23
- package/dist/{main-fs2ymcvd.mjs → main-x9vdxj9f.mjs} +18 -18
- package/dist/{mcp-37b0xgq0.mjs → mcp-eqfvz2d5.mjs} +60 -60
- package/dist/{migrate-49s4pykq.mjs → migrate-h0e3yv0y.mjs} +4 -4
- package/dist/{relay-jkgh5rzg.mjs → relay-9fsv094e.mjs} +306 -66
- package/dist/{runtime-update-9d3dsv6t.mjs → runtime-update-7m0tkybs.mjs} +7 -7
- package/dist/{setup-74nz1gqg.mjs → setup-ac6kjvgh.mjs} +7 -7
- package/dist/{skill-text-z1pce87x.mjs → skill-text-thdaq5mc.mjs} +14 -1
- package/dist/{supervisor-5pjptkgz.mjs → supervisor-638mhqwx.mjs} +3 -3
- package/dist/{update-n4sw8eht.mjs → update-tyrveejz.mjs} +3 -3
- package/dist/{version-2cadxvsa.mjs → version-njwyb4qk.mjs} +1 -1
- package/package.json +1 -1
- package/skills/browse/SKILL.md +14 -1
- package/dist/main-9xbcy9q0.mjs +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-3mhynene.mjs";
|
|
2
2
|
import"./main-pmfd055v.mjs";
|
|
3
|
-
import"./main-
|
|
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-
|
|
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-
|
|
28
|
+
} from "./main-x9vdxj9f.mjs";
|
|
29
29
|
import"./main-4h7rfhhr.mjs";
|
|
30
|
-
import"./main-
|
|
31
|
-
import"./main-
|
|
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-
|
|
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-
|
|
66
|
+
} from "./main-gvzdjgte.mjs";
|
|
67
67
|
import"./main-pmfd055v.mjs";
|
|
68
68
|
import {
|
|
69
69
|
opencodeBrowserBuildId2
|
|
70
|
-
} from "./main-
|
|
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-
|
|
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-
|
|
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-
|
|
110
|
+
} from "./main-g13tfban.mjs";
|
|
111
111
|
import {
|
|
112
112
|
parseHostname,
|
|
113
113
|
readRelayConfig,
|
|
114
114
|
writeRelayConfig,
|
|
115
115
|
syncDevExtension
|
|
116
|
-
} from "./main-
|
|
116
|
+
} from "./main-31mjsvtm.mjs";
|
|
117
117
|
import {
|
|
118
118
|
relayAuthorization
|
|
119
|
-
} from "./main-
|
|
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()
|
|
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-
|
|
2
|
+
import"./main-hrrgcjhe.mjs";
|
|
3
3
|
import {
|
|
4
4
|
entrySpawnCommand,
|
|
5
5
|
installedRuntime2,
|
|
6
6
|
installedVersion
|
|
7
|
-
} from "./main-
|
|
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-
|
|
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-
|
|
7
|
+
} from "./main-ma5ncx3b.mjs";
|
|
8
8
|
import"./main-b3jrctcx.mjs";
|
|
9
|
-
import"./main-
|
|
9
|
+
import"./main-t8c7aq8b.mjs";
|
|
10
10
|
import"./main-pmfd055v.mjs";
|
|
11
|
-
import"./main-
|
|
11
|
+
import"./main-hrrgcjhe.mjs";
|
|
12
12
|
export {
|
|
13
13
|
createUpdateWatcher2 as createUpdateWatcher,
|
|
14
14
|
formatUpdateNotice2 as formatUpdateNotice,
|
package/package.json
CHANGED
package/skills/browse/SKILL.md
CHANGED
|
@@ -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()
|
|
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
|
package/dist/main-9xbcy9q0.mjs
DELETED