@opencode/browse 0.0.15-dev.100 → 0.0.15-dev.102
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/{cli-6n92w2tr.mjs → cli-9sgczzrw.mjs} +10 -10
- package/dist/cli.mjs +11 -11
- package/dist/{helpers-b363a8nv.mjs → helpers-18tnh8f3.mjs} +1 -1
- package/dist/{main-cktye7tt.mjs → main-0jyyvzkx.mjs} +2 -2
- package/dist/{main-0vy46qt0.mjs → main-0wvv6nat.mjs} +3 -3
- package/dist/{main-bwkbapy8.mjs → main-2rtwhyhh.mjs} +2 -2
- package/dist/{main-1v1av1rf.mjs → main-80jesay1.mjs} +3 -3
- package/dist/{main-0pf5apge.mjs → main-8r1t7vba.mjs} +1 -1
- package/dist/main-aeg6a5nk.mjs +4 -0
- package/dist/{main-9eddfbwc.mjs → main-ezf20xwm.mjs} +1 -1
- package/dist/{main-njxjy1jj.mjs → main-f7qkgyz5.mjs} +3 -3
- package/dist/{main-vbwhrdcz.mjs → main-qxer7zjj.mjs} +2 -2
- package/dist/{main-qrb9v6gy.mjs → main-rz1540v9.mjs} +2 -2
- package/dist/{mcp-rm9sf99b.mjs → mcp-rmj6h1s1.mjs} +6 -6
- package/dist/{migrate-jpsgxnkg.mjs → migrate-xgnfe9c3.mjs} +4 -4
- package/dist/{relay-hwwmvejt.mjs → relay-5zw323v4.mjs} +65 -26
- package/dist/{runtime-update-98db5p2b.mjs → runtime-update-wn4gab74.mjs} +4 -4
- package/dist/{setup-cdwsskaa.mjs → setup-6fa9eddq.mjs} +6 -6
- package/dist/{skill-text-28va391t.mjs → skill-text-v68nbc12.mjs} +4 -2
- package/dist/{supervisor-ncmszn2n.mjs → supervisor-rce413ez.mjs} +3 -3
- package/dist/{update-gc7wnpxj.mjs → update-g0qt4kea.mjs} +3 -3
- package/dist/{version-5heaad93.mjs → version-kpv6469c.mjs} +1 -1
- package/package.json +1 -1
- package/skills/browse/SKILL.md +4 -2
- package/dist/main-zt63krh7.mjs +0 -4
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
import {
|
|
106
106
|
opencodeBrowserVersion2,
|
|
107
107
|
opencodeBrowserBuildId2
|
|
108
|
-
} from "./main-
|
|
108
|
+
} from "./main-aeg6a5nk.mjs";
|
|
109
109
|
import {
|
|
110
110
|
configRoot2,
|
|
111
111
|
dataRoot,
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
devExtension,
|
|
119
119
|
installCommand,
|
|
120
120
|
autoUpdateStatus
|
|
121
|
-
} from "./main-
|
|
121
|
+
} from "./main-0wvv6nat.mjs";
|
|
122
122
|
import {
|
|
123
123
|
extensionProtocolVersion,
|
|
124
124
|
extensionProtocolAdvice
|
|
@@ -144,13 +144,13 @@ import {
|
|
|
144
144
|
ensureExtensionConnected,
|
|
145
145
|
stoppedRelayStatus,
|
|
146
146
|
statusCollections
|
|
147
|
-
} from "./main-
|
|
147
|
+
} from "./main-80jesay1.mjs";
|
|
148
148
|
import"./main-vgzr4689.mjs";
|
|
149
149
|
import {
|
|
150
150
|
updateJson2,
|
|
151
151
|
formatUpdateNotice2,
|
|
152
152
|
updateNotice2
|
|
153
|
-
} from "./main-
|
|
153
|
+
} from "./main-qxer7zjj.mjs";
|
|
154
154
|
import {
|
|
155
155
|
settingKeys,
|
|
156
156
|
formatSettings,
|
|
@@ -158,13 +158,13 @@ import {
|
|
|
158
158
|
addSecret,
|
|
159
159
|
listSecrets,
|
|
160
160
|
removeSecret
|
|
161
|
-
} from "./main-
|
|
161
|
+
} from "./main-rz1540v9.mjs";
|
|
162
162
|
import {
|
|
163
163
|
defaultJournalBaseDir,
|
|
164
164
|
readJournalEntries,
|
|
165
165
|
formatJournalEntry
|
|
166
|
-
} from "./main-
|
|
167
|
-
import"./main-
|
|
166
|
+
} from "./main-0jyyvzkx.mjs";
|
|
167
|
+
import"./main-ezf20xwm.mjs";
|
|
168
168
|
import {
|
|
169
169
|
pipeArguments,
|
|
170
170
|
dual,
|
|
@@ -5867,7 +5867,7 @@ var status = make("status", {
|
|
|
5867
5867
|
}
|
|
5868
5868
|
})).pipe(withDescription4("Show relay, extension, and target status"));
|
|
5869
5869
|
var mcp = make("mcp", {}, fn("Cli.mcp")(function* () {
|
|
5870
|
-
const { runMcpServer } = yield* promise(() => import("./mcp-
|
|
5870
|
+
const { runMcpServer } = yield* promise(() => import("./mcp-rmj6h1s1.mjs"));
|
|
5871
5871
|
yield* runMcpServer;
|
|
5872
5872
|
})).pipe(withDescription4("Run the browse MCP server over stdio"));
|
|
5873
5873
|
registerCliCommand(400, () => tabs);
|
|
@@ -5888,7 +5888,7 @@ registerCliCommand(810, ({ packageRoot }) => make("doctor", {
|
|
|
5888
5888
|
}
|
|
5889
5889
|
})).pipe(withDescription4("Diagnose the local browse install and runtime")));
|
|
5890
5890
|
registerCliCommand(820, () => make("skill", {}, fn("Cli.skill")(function* () {
|
|
5891
|
-
const { skillText } = yield* promise(() => import("./skill-text-
|
|
5891
|
+
const { skillText } = yield* promise(() => import("./skill-text-v68nbc12.mjs"));
|
|
5892
5892
|
yield* log(skillText.trimEnd());
|
|
5893
5893
|
})).pipe(withDescription4("Print the browse agent skill text")));
|
|
5894
5894
|
registerCliCommand(900, () => mcp);
|
|
@@ -6315,7 +6315,7 @@ registerCliCommand(710, () => flightRecorder);
|
|
|
6315
6315
|
|
|
6316
6316
|
// src/cli/relay.ts
|
|
6317
6317
|
var serve = make("serve", {}, fn("Cli.serve")(function* () {
|
|
6318
|
-
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-
|
|
6318
|
+
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-5zw323v4.mjs"), import("./helpers-18tnh8f3.mjs")]));
|
|
6319
6319
|
const port = yield* portConfig;
|
|
6320
6320
|
const additionalExtensionOrigins = parseAdditionalExtensionOrigins(yield* extensionOriginsConfig);
|
|
6321
6321
|
yield* scoped(gen(function* () {
|
package/dist/cli.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
// src/main.ts
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
var embeddedVersion = "0.0.15-dev.
|
|
9
|
+
var embeddedVersion = "0.0.15-dev.102";
|
|
10
10
|
var setupCommands = new Set(["install", "uninstall", "extension", "pair", "set"]);
|
|
11
11
|
var command = process.argv[2];
|
|
12
12
|
var args = process.argv.slice(3);
|
|
@@ -17,29 +17,29 @@ var askedForHelp = command === "--help" || command === "-h" || options.some((arg
|
|
|
17
17
|
var preCliHelp = askedForHelp && (command === "update" || command !== undefined && setupCommands.has(command));
|
|
18
18
|
if (command !== "--version" && command !== "-v" && !askedForHelp && !process.env.OPENCODE_BROWSER_HOME && legacyRoots().some((root) => fs.existsSync(root))) {
|
|
19
19
|
try {
|
|
20
|
-
const { migrateLegacy } = await import("./migrate-
|
|
20
|
+
const { migrateLegacy } = await import("./migrate-xgnfe9c3.mjs");
|
|
21
21
|
migrateLegacy();
|
|
22
22
|
} catch {}
|
|
23
23
|
}
|
|
24
24
|
if (command === "--version" || command === "-v") {
|
|
25
|
-
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-
|
|
25
|
+
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-kpv6469c.mjs")).opencodeBrowserVersion;
|
|
26
26
|
process.stdout.write(`${opencodeBrowserVersion}
|
|
27
27
|
`);
|
|
28
|
-
} else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-
|
|
29
|
-
const { runBinaryMcp } = await import("./supervisor-
|
|
28
|
+
} else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-rce413ez.mjs")).supervisesMcp()) {
|
|
29
|
+
const { runBinaryMcp } = await import("./supervisor-rce413ez.mjs");
|
|
30
30
|
await runBinaryMcp(process.argv.slice(3));
|
|
31
31
|
} else if (invokedAs === "opencode-browser-mcp" || command === "mcp" && process.argv.length === 3) {
|
|
32
32
|
const { NodeRuntime } = await import("./index-yzz55kxm.mjs");
|
|
33
|
-
const { runMcpServer } = await import("./mcp-
|
|
33
|
+
const { runMcpServer } = await import("./mcp-rmj6h1s1.mjs");
|
|
34
34
|
runMcpServer.pipe(NodeRuntime.runMain);
|
|
35
35
|
} else if (command === "self-update" || command === "runtime-switch") {
|
|
36
|
-
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-
|
|
36
|
+
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-wn4gab74.mjs");
|
|
37
37
|
await (command === "self-update" ? runSelfUpdate : runRuntimeSwitch)(process.argv.slice(3));
|
|
38
38
|
} else if (command === "update" && !askedForHelp) {
|
|
39
|
-
const { runUpdateCommand } = await import("./update-
|
|
39
|
+
const { runUpdateCommand } = await import("./update-g0qt4kea.mjs");
|
|
40
40
|
await runUpdateCommand(process.argv.slice(3));
|
|
41
41
|
} else if (command && setupCommands.has(command) && !askedForHelp) {
|
|
42
|
-
const { runSetup } = await import("./setup-
|
|
42
|
+
const { runSetup } = await import("./setup-6fa9eddq.mjs");
|
|
43
43
|
await runSetup(command, process.argv.slice(3));
|
|
44
44
|
} else {
|
|
45
45
|
if (preCliHelp || !command || command === "--help" || command === "-h") {
|
|
@@ -76,9 +76,9 @@ executable in ~/.local/bin (or $XDG_BIN_HOME).
|
|
|
76
76
|
`);
|
|
77
77
|
}
|
|
78
78
|
if (command === "status" && !askedForHelp && !process.argv.includes("--json")) {
|
|
79
|
-
const { printSetupStatus } = await import("./setup-
|
|
79
|
+
const { printSetupStatus } = await import("./setup-6fa9eddq.mjs");
|
|
80
80
|
printSetupStatus();
|
|
81
81
|
}
|
|
82
|
-
const { runCli } = await import("./cli-
|
|
82
|
+
const { runCli } = await import("./cli-9sgczzrw.mjs");
|
|
83
83
|
runCli(preCliHelp ? ["--help"] : undefined);
|
|
84
84
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./main-vgzr4689.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isValidSessionId2
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-80jesay1.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isSome,
|
|
9
9
|
decodeUnknownOption,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./main-csnx585b.mjs";
|
|
18
18
|
import {
|
|
19
19
|
stateRoot
|
|
20
|
-
} from "./main-
|
|
20
|
+
} from "./main-0wvv6nat.mjs";
|
|
21
21
|
|
|
22
22
|
// src/session-manager/journal.ts
|
|
23
23
|
import fs from "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-aeg6a5nk.mjs";
|
|
4
4
|
|
|
5
5
|
// src/paths.ts
|
|
6
6
|
import fs from "node:fs";
|
|
@@ -71,7 +71,7 @@ function cliInstall() {
|
|
|
71
71
|
return { kind: "binary", binary: installedBinary() ?? process.execPath, pathEnv: process.env.PATH };
|
|
72
72
|
if (fromCheckout())
|
|
73
73
|
return { kind: "checkout", bundle: path.join(packageRoot(), "dist", "cli.mjs") };
|
|
74
|
-
return { kind: "npm", version: "0.0.15-dev.
|
|
74
|
+
return { kind: "npm", version: "0.0.15-dev.102", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
|
|
75
75
|
}
|
|
76
76
|
function cliPrefix(install = cliInstall()) {
|
|
77
77
|
if (install.kind === "binary") {
|
|
@@ -93,7 +93,7 @@ function storeConfig(env = process.env, baked = { id: "mfnicocicmmlkpjnaffgihfjh
|
|
|
93
93
|
return id ? { id } : {};
|
|
94
94
|
}
|
|
95
95
|
var RELEASE_SERVICE = "https://anoma.ly/release";
|
|
96
|
-
function devExtension(baked = { file: "browse-extension-0.0.15-dev.
|
|
96
|
+
function devExtension(baked = { file: "browse-extension-0.0.15-dev.102.zip", sha256: "7b1e6e5e84d2fadce8e0d8fe588f222dcc4088419054b40a9e522fe34640e1c5", size: 183069 }) {
|
|
97
97
|
return baked && /^[0-9a-f]{64}$/.test(baked.sha256) && /^[\w.-]+\.zip$/.test(baked.file) ? baked : undefined;
|
|
98
98
|
}
|
|
99
99
|
var devExtensionUrl = (extension, env = process.env) => `${(env.OPENCODE_BROWSER_RELEASE_SERVICE || RELEASE_SERVICE).replace(/\/+$/, "")}/browse/files/${extension.sha256}/${extension.file}`;
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
bundledPairingCodeTtlMs,
|
|
6
6
|
mintPairingCode,
|
|
7
7
|
writeExtensionPairing
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-8r1t7vba.mjs";
|
|
9
9
|
import {
|
|
10
10
|
configRoot2,
|
|
11
11
|
cacheRoot,
|
|
12
12
|
devExtensionUrl,
|
|
13
13
|
devExtensionFolder
|
|
14
|
-
} from "./main-
|
|
14
|
+
} from "./main-0wvv6nat.mjs";
|
|
15
15
|
|
|
16
16
|
// src/setup/dev-extension.ts
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
} from "./main-csnx585b.mjs";
|
|
108
108
|
import {
|
|
109
109
|
opencodeBrowserBuildId2
|
|
110
|
-
} from "./main-
|
|
110
|
+
} from "./main-aeg6a5nk.mjs";
|
|
111
111
|
import {
|
|
112
112
|
compiledBinary,
|
|
113
113
|
scriptEntry,
|
|
@@ -116,10 +116,10 @@ import {
|
|
|
116
116
|
compareVersions,
|
|
117
117
|
installedRuntime2,
|
|
118
118
|
installedVersion
|
|
119
|
-
} from "./main-
|
|
119
|
+
} from "./main-0wvv6nat.mjs";
|
|
120
120
|
import {
|
|
121
121
|
relayAuthorization
|
|
122
|
-
} from "./main-
|
|
122
|
+
} from "./main-ezf20xwm.mjs";
|
|
123
123
|
import {
|
|
124
124
|
dual,
|
|
125
125
|
memoize,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-aeg6a5nk.mjs";
|
|
4
4
|
import {
|
|
5
5
|
configRoot2,
|
|
6
6
|
dataRoot,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
storeUrl,
|
|
19
19
|
installedVersion,
|
|
20
20
|
runCommand
|
|
21
|
-
} from "./main-
|
|
21
|
+
} from "./main-0wvv6nat.mjs";
|
|
22
22
|
import {
|
|
23
23
|
formatPairingCode
|
|
24
|
-
} from "./main-
|
|
24
|
+
} from "./main-8r1t7vba.mjs";
|
|
25
25
|
import {
|
|
26
26
|
unpackedExtensionId
|
|
27
27
|
} from "./main-mrew6jy8.mjs";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
installedRuntime2,
|
|
7
7
|
autoUpdateStatus,
|
|
8
8
|
updateAvailable
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-0wvv6nat.mjs";
|
|
10
10
|
import {
|
|
11
11
|
unpackedReloadAdvice
|
|
12
12
|
} from "./main-mrew6jy8.mjs";
|
|
@@ -315,7 +315,7 @@ function runUpdate(args, deps) {
|
|
|
315
315
|
async function runUpdateCommand2(args) {
|
|
316
316
|
const log = (line) => process.stdout.write(line + `
|
|
317
317
|
`);
|
|
318
|
-
const { runInstalledUpdate } = await import("./runtime-update-
|
|
318
|
+
const { runInstalledUpdate } = await import("./runtime-update-wn4gab74.mjs");
|
|
319
319
|
if (await runInstalledUpdate(args))
|
|
320
320
|
return;
|
|
321
321
|
if (compiledBinary()) {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
parseTargetSelection2,
|
|
13
13
|
getObject2,
|
|
14
14
|
getString2
|
|
15
|
-
} from "./main-
|
|
15
|
+
} from "./main-80jesay1.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isNodeError,
|
|
18
18
|
writeJsonFileAtomically
|
|
@@ -131,7 +131,7 @@ import {
|
|
|
131
131
|
import {
|
|
132
132
|
dataRoot,
|
|
133
133
|
cliCommand
|
|
134
|
-
} from "./main-
|
|
134
|
+
} from "./main-0wvv6nat.mjs";
|
|
135
135
|
|
|
136
136
|
// node_modules/effect/dist/Semaphore.js
|
|
137
137
|
var makeUnsafe = (permits) => new SemaphoreImpl(permits);
|
|
@@ -256,11 +256,11 @@ import {
|
|
|
256
256
|
} from "./main-csnx585b.mjs";
|
|
257
257
|
import {
|
|
258
258
|
opencodeBrowserVersion2
|
|
259
|
-
} from "./main-
|
|
259
|
+
} from "./main-aeg6a5nk.mjs";
|
|
260
260
|
import {
|
|
261
261
|
cliCommand,
|
|
262
262
|
autoUpdateStatus
|
|
263
|
-
} from "./main-
|
|
263
|
+
} from "./main-0wvv6nat.mjs";
|
|
264
264
|
import"./main-mrew6jy8.mjs";
|
|
265
265
|
import {
|
|
266
266
|
option,
|
|
@@ -280,12 +280,12 @@ import {
|
|
|
280
280
|
relayBuildProblem,
|
|
281
281
|
ensureRelay,
|
|
282
282
|
ensureExtensionConnected
|
|
283
|
-
} from "./main-
|
|
283
|
+
} from "./main-80jesay1.mjs";
|
|
284
284
|
import"./main-vgzr4689.mjs";
|
|
285
285
|
import {
|
|
286
286
|
updateJson2,
|
|
287
287
|
createUpdateWatcher2
|
|
288
|
-
} from "./main-
|
|
288
|
+
} from "./main-qxer7zjj.mjs";
|
|
289
289
|
import {
|
|
290
290
|
makeUnsafe,
|
|
291
291
|
make,
|
|
@@ -369,7 +369,7 @@ import {
|
|
|
369
369
|
mcpErrorMessage2,
|
|
370
370
|
toolResult,
|
|
371
371
|
listSecrets
|
|
372
|
-
} from "./main-
|
|
372
|
+
} from "./main-rz1540v9.mjs";
|
|
373
373
|
import {
|
|
374
374
|
Clock,
|
|
375
375
|
type,
|
|
@@ -384,7 +384,7 @@ import {
|
|
|
384
384
|
orElse,
|
|
385
385
|
exhaustive
|
|
386
386
|
} from "./main-8z9d979q.mjs";
|
|
387
|
-
import"./main-
|
|
387
|
+
import"./main-ezf20xwm.mjs";
|
|
388
388
|
import {
|
|
389
389
|
pipeArguments,
|
|
390
390
|
dual,
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
browseServerCommand,
|
|
7
7
|
editAgentConfig,
|
|
8
8
|
configureMcp
|
|
9
|
-
} from "./main-
|
|
10
|
-
import"./main-
|
|
9
|
+
} from "./main-f7qkgyz5.mjs";
|
|
10
|
+
import"./main-aeg6a5nk.mjs";
|
|
11
11
|
import {
|
|
12
12
|
configRoot2,
|
|
13
13
|
dataRoot,
|
|
@@ -15,9 +15,9 @@ import {
|
|
|
15
15
|
cacheRoot,
|
|
16
16
|
binRoot,
|
|
17
17
|
binaryName
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-0wvv6nat.mjs";
|
|
19
19
|
import"./main-vgzr4689.mjs";
|
|
20
|
-
import"./main-
|
|
20
|
+
import"./main-8r1t7vba.mjs";
|
|
21
21
|
import"./main-mrew6jy8.mjs";
|
|
22
22
|
import {
|
|
23
23
|
legacyDataRoot,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2,
|
|
3
3
|
opencodeBrowserBuildId2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-aeg6a5nk.mjs";
|
|
5
5
|
import {
|
|
6
6
|
defaultRoots,
|
|
7
7
|
configRoot2,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
setStoredMode,
|
|
26
26
|
autoUpdateStatus,
|
|
27
27
|
createAutoUpdater
|
|
28
|
-
} from "./main-
|
|
28
|
+
} from "./main-0wvv6nat.mjs";
|
|
29
29
|
import {
|
|
30
30
|
extensionProtocolVersion,
|
|
31
31
|
minExtensionProtocolVersion,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
isRestrictedTarget2,
|
|
102
102
|
isRestrictedUrl2,
|
|
103
103
|
dataUrlDocument2
|
|
104
|
-
} from "./main-
|
|
104
|
+
} from "./main-80jesay1.mjs";
|
|
105
105
|
import {
|
|
106
106
|
context,
|
|
107
107
|
pendingPairingCodeKeys,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
pairingSessionKey,
|
|
120
120
|
sessionProof,
|
|
121
121
|
wrapToken
|
|
122
|
-
} from "./main-
|
|
122
|
+
} from "./main-8r1t7vba.mjs";
|
|
123
123
|
import {
|
|
124
124
|
makeUnsafe,
|
|
125
125
|
SettingsInputError,
|
|
@@ -147,22 +147,22 @@ import {
|
|
|
147
147
|
checkNavigationUrl,
|
|
148
148
|
readSecret,
|
|
149
149
|
secretText
|
|
150
|
-
} from "./main-
|
|
150
|
+
} from "./main-rz1540v9.mjs";
|
|
151
151
|
import {
|
|
152
152
|
defaultJournalBaseDir,
|
|
153
153
|
makeJournalEntry,
|
|
154
154
|
appendJournalEntry,
|
|
155
155
|
startJournalRetention
|
|
156
|
-
} from "./main-
|
|
156
|
+
} from "./main-0jyyvzkx.mjs";
|
|
157
157
|
import {
|
|
158
158
|
createUpdateWatcher2
|
|
159
|
-
} from "./main-
|
|
159
|
+
} from "./main-qxer7zjj.mjs";
|
|
160
160
|
import {
|
|
161
161
|
relayHostname,
|
|
162
162
|
isLocalPeer,
|
|
163
163
|
installedDevExtension,
|
|
164
164
|
syncDevExtension
|
|
165
|
-
} from "./main-
|
|
165
|
+
} from "./main-2rtwhyhh.mjs";
|
|
166
166
|
import {
|
|
167
167
|
legacyRoots
|
|
168
168
|
} from "./main-ckssvk4c.mjs";
|
|
@@ -219,6 +219,7 @@ import {
|
|
|
219
219
|
asVoid2,
|
|
220
220
|
catch_,
|
|
221
221
|
catchCause,
|
|
222
|
+
catchIf,
|
|
222
223
|
mapError,
|
|
223
224
|
tapError,
|
|
224
225
|
retry,
|
|
@@ -277,7 +278,7 @@ import {
|
|
|
277
278
|
relayToken,
|
|
278
279
|
secretsEqual,
|
|
279
280
|
ensurePrivateDirectory
|
|
280
|
-
} from "./main-
|
|
281
|
+
} from "./main-ezf20xwm.mjs";
|
|
281
282
|
import {
|
|
282
283
|
isString,
|
|
283
284
|
isNumber,
|
|
@@ -4184,6 +4185,8 @@ var defaultHandoffTimeoutMs = 10 * 60 * 1000;
|
|
|
4184
4185
|
var defaultHandoffMessage = "Complete the requested task, then use the in-page continue control.";
|
|
4185
4186
|
var timedOut = Symbol("timed-out");
|
|
4186
4187
|
var defaultPageClosedWarning = "The session default page was closed; created a new page. References to the old page in state are stale.";
|
|
4188
|
+
var debuggingBarDismissedWarning = "The user dismissed the browser's debugging bar (Cancel/OK), which disconnects browse from every tab. Browse no longer controls the session's page; tabs an agent opened stay open until idle cleanup closes them. To use a tab the user lent, ask them to lend it again with the browse toolbar button.";
|
|
4189
|
+
var debuggingBarDismissedStop = "The user dismissed the browser's debugging bar (Cancel/OK) while this script ran, which disconnects browse from every tab, so it was stopped. The tab may still be open but browse no longer controls it. Run execute again to continue in a new tab; to use a tab the user lent, ask them to lend it again with the browse toolbar button.";
|
|
4187
4190
|
var defaultPageRecoveredWarning = "The session default page was unresponsive; created a new page. References to the old page in state are stale.";
|
|
4188
4191
|
var defaultPageCrashedWarning = "The session default page target crashed; checking it before the next execute.";
|
|
4189
4192
|
var defaultPageRepairedWarning = "The session default page stopped answering automation; browse reconnected and re-resolved the same tab. References to the old page in state are stale.";
|
|
@@ -4813,6 +4816,7 @@ class DefaultPageHost {
|
|
|
4813
4816
|
pendingTargetRebind;
|
|
4814
4817
|
lastKnownNonBlankUrl;
|
|
4815
4818
|
recreatedFromClosedUrl;
|
|
4819
|
+
pageReleasedByDebuggingBar = false;
|
|
4816
4820
|
explicitMediaFeatures = new Map;
|
|
4817
4821
|
explicitMedia;
|
|
4818
4822
|
pendingWarnings = [];
|
|
@@ -4856,15 +4860,18 @@ class DefaultPageHost {
|
|
|
4856
4860
|
this.pageProtectedUi = protectedUi;
|
|
4857
4861
|
return true;
|
|
4858
4862
|
}
|
|
4859
|
-
markTargetDetached(targetId) {
|
|
4863
|
+
markTargetDetached(targetId, options = {}) {
|
|
4860
4864
|
if (this.defaultPageTargetId !== targetId) {
|
|
4861
4865
|
return false;
|
|
4862
4866
|
}
|
|
4863
|
-
|
|
4867
|
+
const releasedByUser = options.releasedByUser === true;
|
|
4868
|
+
if (releasedByUser)
|
|
4869
|
+
this.recreatedFromClosedUrl = undefined;
|
|
4870
|
+
else if (this.lastKnownNonBlankUrl)
|
|
4864
4871
|
this.recreatedFromClosedUrl = this.lastKnownNonBlankUrl;
|
|
4865
|
-
|
|
4872
|
+
this.pageReleasedByDebuggingBar = releasedByUser;
|
|
4866
4873
|
this.unbindDefaultPage(undefined);
|
|
4867
|
-
this.addWarningOnce(defaultPageClosedWarning);
|
|
4874
|
+
this.addWarningOnce(releasedByUser ? debuggingBarDismissedWarning : defaultPageClosedWarning);
|
|
4868
4875
|
return true;
|
|
4869
4876
|
}
|
|
4870
4877
|
markTargetReplaced(previousTargetId, targetId) {
|
|
@@ -4901,6 +4908,7 @@ class DefaultPageHost {
|
|
|
4901
4908
|
this.defaultPageTargetId = targetId;
|
|
4902
4909
|
this.ownsPage = ownsPage;
|
|
4903
4910
|
this.pendingTargetRebind = undefined;
|
|
4911
|
+
this.pageReleasedByDebuggingBar = false;
|
|
4904
4912
|
this.recordNonBlankUrl(safePageUrl(page));
|
|
4905
4913
|
const close = () => {
|
|
4906
4914
|
if (this.page !== page)
|
|
@@ -5009,6 +5017,10 @@ class DefaultPageHost {
|
|
|
5009
5017
|
});
|
|
5010
5018
|
this.pendingWarnings.push(defaultPageClosedWarning);
|
|
5011
5019
|
}
|
|
5020
|
+
if (this.pageReleasedByDebuggingBar) {
|
|
5021
|
+
this.pageReleasedByDebuggingBar = false;
|
|
5022
|
+
this.addWarningOnce(debuggingBarDismissedWarning);
|
|
5023
|
+
}
|
|
5012
5024
|
const page = await context.newPage();
|
|
5013
5025
|
const targetId = await resolvePageTargetId(page);
|
|
5014
5026
|
this.bindDefaultPage(page, targetId, true, true);
|
|
@@ -12399,9 +12411,9 @@ class OpenCodeBrowserSessions {
|
|
|
12399
12411
|
markTargetProtectedUi(targetId, protectedUi) {
|
|
12400
12412
|
return this.collectSessionIds((session) => session.sandbox.markTargetProtectedUi(targetId, protectedUi));
|
|
12401
12413
|
}
|
|
12402
|
-
markTargetDetached(targetId) {
|
|
12414
|
+
markTargetDetached(targetId, options = {}) {
|
|
12403
12415
|
return this.collectSessionIds((session) => {
|
|
12404
|
-
const detached = session.sandbox.markTargetDetached(targetId);
|
|
12416
|
+
const detached = session.sandbox.markTargetDetached(targetId, options);
|
|
12405
12417
|
if (session.target?.id === targetId && session.target.owner === "user") {
|
|
12406
12418
|
this.notifyTargetOwnershipChange(this.targetOwnership.releaseTargetOwnership(targetId, session.id));
|
|
12407
12419
|
}
|
|
@@ -15389,6 +15401,7 @@ function createExtensionEventHandler(options) {
|
|
|
15389
15401
|
refreshPageStatus,
|
|
15390
15402
|
refreshTabGrouping,
|
|
15391
15403
|
handleToolbarClick,
|
|
15404
|
+
handleDebuggingBarCancel,
|
|
15392
15405
|
cancelTargetHandoffs,
|
|
15393
15406
|
detachTargetState,
|
|
15394
15407
|
detachChildTargetState,
|
|
@@ -15643,6 +15656,13 @@ function createExtensionEventHandler(options) {
|
|
|
15643
15656
|
}
|
|
15644
15657
|
return;
|
|
15645
15658
|
}
|
|
15659
|
+
if (reason === "canceled_by_user") {
|
|
15660
|
+
if (eventTabId) {
|
|
15661
|
+
handleDebuggingBarCancel(eventTabId);
|
|
15662
|
+
detachTargetState(eventTabId, { releasedByUser: true });
|
|
15663
|
+
}
|
|
15664
|
+
return;
|
|
15665
|
+
}
|
|
15646
15666
|
if (eventTabId)
|
|
15647
15667
|
detachTargetState(eventTabId);
|
|
15648
15668
|
return;
|
|
@@ -16782,6 +16802,17 @@ function createTabPresentation(options) {
|
|
|
16782
16802
|
console.error("Toolbar toggle failed", error);
|
|
16783
16803
|
});
|
|
16784
16804
|
}
|
|
16805
|
+
function handleDebuggingBarCancel(tabId) {
|
|
16806
|
+
const sessions = getSessions();
|
|
16807
|
+
const target = registry.tabTargets.get(tabId);
|
|
16808
|
+
if (!target)
|
|
16809
|
+
return;
|
|
16810
|
+
const sessionId = pageStatusSessionId(target) ?? activeHandoffSessionIdForTab(tabId);
|
|
16811
|
+
if (sessionId && sessions.isExecuting(sessionId)) {
|
|
16812
|
+
relayLog("execute.stopped", { tabId, session: sessionId, from: "debugging-bar" });
|
|
16813
|
+
sessions.stopExecution(sessionId, debuggingBarDismissedStop, "debugging-bar-cancel");
|
|
16814
|
+
}
|
|
16815
|
+
}
|
|
16785
16816
|
function presentAttachedTarget(committedTarget) {
|
|
16786
16817
|
tabActivity.touch(committedTarget.tabId);
|
|
16787
16818
|
const tabId = committedTarget.tabId;
|
|
@@ -16816,6 +16847,7 @@ function createTabPresentation(options) {
|
|
|
16816
16847
|
requestHandoff,
|
|
16817
16848
|
onSessionExecuteStateChange,
|
|
16818
16849
|
handleToolbarClick,
|
|
16850
|
+
handleDebuggingBarCancel,
|
|
16819
16851
|
presentAttachedTarget
|
|
16820
16852
|
};
|
|
16821
16853
|
}
|
|
@@ -16964,8 +16996,9 @@ function createRelayTransportServers(deps) {
|
|
|
16964
16996
|
|
|
16965
16997
|
// src/cdp/root-target-lifecycle.ts
|
|
16966
16998
|
var DEFAULT_INVENTORY_COMMAND_TIMEOUT_MS = 5000;
|
|
16999
|
+
var DEFAULT_ATTACH_COMMAND_TIMEOUT_MS = 1e4;
|
|
16967
17000
|
|
|
16968
|
-
class
|
|
17001
|
+
class RootTargetTimeout extends TaggedError2()("RootTargetLifecycle.CommandTimeout", {
|
|
16969
17002
|
message: String3
|
|
16970
17003
|
}) {
|
|
16971
17004
|
}
|
|
@@ -17005,7 +17038,7 @@ class RootTargetLifecycle {
|
|
|
17005
17038
|
work.revision += 1;
|
|
17006
17039
|
this.failedTabs.delete(tabId);
|
|
17007
17040
|
}
|
|
17008
|
-
attach = fn("RootTargetLifecycle.attach")((options) => this.withPermit(options.tabId, options.expectedExtensionGeneration, (transition) => this.attachUnlocked(transition, options)));
|
|
17041
|
+
attach = fn("RootTargetLifecycle.attach")((options) => this.withPermit(options.tabId, options.expectedExtensionGeneration, (transition) => this.attachUnlocked(transition, options), this.options.attachCommandTimeoutMs ?? DEFAULT_ATTACH_COMMAND_TIMEOUT_MS));
|
|
17009
17042
|
reconcile = fn("RootTargetLifecycle.reconcile")((tabId, generation) => this.withPermit(tabId, generation, (transition) => this.reconcileUnlocked(transition)));
|
|
17010
17043
|
queue(options) {
|
|
17011
17044
|
if (this.closing)
|
|
@@ -17065,7 +17098,7 @@ class RootTargetLifecycle {
|
|
|
17065
17098
|
}).pipe(tapError((error) => sync2(() => lifecycle.options.reportError(options.errorMessage, error))), retry({
|
|
17066
17099
|
times: 2,
|
|
17067
17100
|
schedule: spaced(0).pipe(modifyDelay(({ attempt }) => succeed6(100 * attempt))),
|
|
17068
|
-
while: (error) => !(error instanceof GenerationChanged) && !(error instanceof
|
|
17101
|
+
while: (error) => !(error instanceof GenerationChanged) && !(error instanceof RootTargetTimeout) && !lifecycle.closing && generation === lifecycle.options.extension.generation(options.tabId) && revision === work.revision
|
|
17069
17102
|
}));
|
|
17070
17103
|
if (lifecycle.closing || generation !== lifecycle.options.extension.generation(options.tabId))
|
|
17071
17104
|
return null;
|
|
@@ -17162,7 +17195,7 @@ class RootTargetLifecycle {
|
|
|
17162
17195
|
const timeoutMs = transition.timeoutMs;
|
|
17163
17196
|
return this.step(transition, timeoutMs === undefined ? send : send.pipe(timeoutOrElse({
|
|
17164
17197
|
duration: timeoutMs,
|
|
17165
|
-
orElse: () => fail5(new
|
|
17198
|
+
orElse: () => fail5(new RootTargetTimeout({ message: `${method} did not answer within ${timeoutMs} ms on tab ${transition.tabId}` }))
|
|
17166
17199
|
})));
|
|
17167
17200
|
}
|
|
17168
17201
|
attachUnlocked = fnUntraced(function* (transition, options) {
|
|
@@ -17170,9 +17203,7 @@ class RootTargetLifecycle {
|
|
|
17170
17203
|
if (!options.alreadyAttached)
|
|
17171
17204
|
yield* this.step(transition, this.options.extension.send({ method: "debugger.attach", params: { tabId } }));
|
|
17172
17205
|
yield* this.command(transition, "Page.enable");
|
|
17173
|
-
yield*
|
|
17174
|
-
yield* this.command(transition, "Emulation.setFocusEmulationEnabled", { enabled: false });
|
|
17175
|
-
}).pipe(ignore);
|
|
17206
|
+
yield* this.command(transition, "Emulation.setFocusEmulationEnabled", { enabled: false }).pipe(catchIf((error) => !(error instanceof RootTargetTimeout), () => void_3));
|
|
17176
17207
|
yield* this.check(transition);
|
|
17177
17208
|
const result = yield* this.command(transition, "Target.getTargetInfo");
|
|
17178
17209
|
const reportedTargetInfo = getTargetInfo2(result.targetInfo);
|
|
@@ -17800,6 +17831,7 @@ var makeRelay = fnUntraced(function* (options = {}) {
|
|
|
17800
17831
|
const known = ownersAcrossReconnect.get(targetId);
|
|
17801
17832
|
return known?.sessionId !== undefined && sessions.sessions.has(known.sessionId) ? { sessionId: known.sessionId, owner: known.owner } : undefined;
|
|
17802
17833
|
};
|
|
17834
|
+
const attachTimeoutMs = yield* Int("OPENCODE_BROWSER_ATTACH_TIMEOUT_MS").pipe(withDefault(1e4));
|
|
17803
17835
|
const rootLifecycle = yield* RootTargetLifecycle.make({
|
|
17804
17836
|
registry,
|
|
17805
17837
|
sessions: {
|
|
@@ -17819,7 +17851,8 @@ var makeRelay = fnUntraced(function* (options = {}) {
|
|
|
17819
17851
|
announceRoot: announceAttachedTarget,
|
|
17820
17852
|
announceChild: announceAttachedChildTarget
|
|
17821
17853
|
},
|
|
17822
|
-
reportError: (message, error) => console.error(message, error)
|
|
17854
|
+
reportError: (message, error) => console.error(message, error),
|
|
17855
|
+
attachCommandTimeoutMs: attachTimeoutMs
|
|
17823
17856
|
});
|
|
17824
17857
|
const settingsSync = createRelaySettingsSync({
|
|
17825
17858
|
browsers,
|
|
@@ -17902,7 +17935,11 @@ var makeRelay = fnUntraced(function* (options = {}) {
|
|
|
17902
17935
|
owner: "relay",
|
|
17903
17936
|
...createOptions.opencodeBrowserSessionId ? { opencodeBrowserSessionId: createOptions.opencodeBrowserSessionId } : {},
|
|
17904
17937
|
...createOptions.autoAttachParams ? { autoAttachParams: createOptions.autoAttachParams } : {}
|
|
17905
|
-
})
|
|
17938
|
+
}).pipe(tapError((error) => sync2(() => {
|
|
17939
|
+
relayLog("create.attach-failed", { tabId, error: error instanceof Error ? error.message : String(error) });
|
|
17940
|
+
sendExtensionBestEffort({ method: "tabs.remove", params: { tabId } });
|
|
17941
|
+
detachTargetState(tabId);
|
|
17942
|
+
})));
|
|
17906
17943
|
const requested = createTargetUrl2({ url: createOptions.url });
|
|
17907
17944
|
if (requested !== "about:blank") {
|
|
17908
17945
|
const data = /^data:/i.test(requested.trim());
|
|
@@ -17950,7 +17987,8 @@ var makeRelay = fnUntraced(function* (options = {}) {
|
|
|
17950
17987
|
rootLifecycle.invalidate(tabId);
|
|
17951
17988
|
if (detachOptions.updateExtension !== false) {
|
|
17952
17989
|
sendExtensionBestEffort({ method: "pageStatus.clear", params: { tabId } });
|
|
17953
|
-
|
|
17990
|
+
if (detachOptions.releasedByUser !== true || registry.tabTargets.get(tabId)?.owner !== "relay")
|
|
17991
|
+
presentation.scheduleTabGrouping(tabId, "tabs.ungroup");
|
|
17954
17992
|
sendExtensionBestEffort({ method: "action.setAttached", params: { tabId, attached: false } });
|
|
17955
17993
|
recordingRelay.abortRecordingForTab({ tabId, reason: "Tab detached" }).catch((error) => {
|
|
17956
17994
|
console.error("Failed to abort recording for detached tab", error);
|
|
@@ -17963,7 +18001,7 @@ var makeRelay = fnUntraced(function* (options = {}) {
|
|
|
17963
18001
|
if (detached) {
|
|
17964
18002
|
presentation.cancelTargetHandoffs(detached.target, "target-detached");
|
|
17965
18003
|
if (!detachOptions.preserveSessionTarget)
|
|
17966
|
-
sessions.markTargetDetached(detached.target.targetInfo.targetId);
|
|
18004
|
+
sessions.markTargetDetached(detached.target.targetInfo.targetId, { releasedByUser: detachOptions.releasedByUser === true });
|
|
17967
18005
|
contextDebugLog?.(`target-detached kind=root ${targetDiagnosticIdentity(registry, detached.target)}`);
|
|
17968
18006
|
}
|
|
17969
18007
|
cdpClients.detachTab(tabId, { destroyed: true });
|
|
@@ -18040,6 +18078,7 @@ var makeRelay = fnUntraced(function* (options = {}) {
|
|
|
18040
18078
|
refreshPageStatus: presentation.refreshPageStatus,
|
|
18041
18079
|
refreshTabGrouping: presentation.refreshTabGrouping,
|
|
18042
18080
|
handleToolbarClick: presentation.handleToolbarClick,
|
|
18081
|
+
handleDebuggingBarCancel: presentation.handleDebuggingBarCancel,
|
|
18043
18082
|
cancelTargetHandoffs: presentation.cancelTargetHandoffs,
|
|
18044
18083
|
detachTargetState,
|
|
18045
18084
|
detachChildTargetState,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-aeg6a5nk.mjs";
|
|
2
2
|
import {
|
|
3
3
|
cliCommand,
|
|
4
4
|
installCommand,
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
registryUrl,
|
|
16
16
|
fetchPublished,
|
|
17
17
|
runInstaller
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-0wvv6nat.mjs";
|
|
19
19
|
import"./main-mrew6jy8.mjs";
|
|
20
20
|
import {
|
|
21
21
|
Service,
|
|
22
22
|
layerFetch,
|
|
23
23
|
restartRelay,
|
|
24
24
|
startManagedRelay
|
|
25
|
-
} from "./main-
|
|
25
|
+
} from "./main-80jesay1.mjs";
|
|
26
26
|
import"./main-vgzr4689.mjs";
|
|
27
27
|
import {
|
|
28
28
|
succeed6,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
provide3,
|
|
33
33
|
runPromise
|
|
34
34
|
} from "./main-csnx585b.mjs";
|
|
35
|
-
import"./main-
|
|
35
|
+
import"./main-ezf20xwm.mjs";
|
|
36
36
|
|
|
37
37
|
// src/update/runtime-update.ts
|
|
38
38
|
var log = (line) => process.stdout.write(line + `
|
|
@@ -63,10 +63,10 @@ import {
|
|
|
63
63
|
installRuntime,
|
|
64
64
|
installedRuntime,
|
|
65
65
|
manualMcpEntry
|
|
66
|
-
} from "./main-
|
|
66
|
+
} from "./main-f7qkgyz5.mjs";
|
|
67
67
|
import {
|
|
68
68
|
opencodeBrowserBuildId2
|
|
69
|
-
} from "./main-
|
|
69
|
+
} from "./main-aeg6a5nk.mjs";
|
|
70
70
|
import {
|
|
71
71
|
installedBinaryPath,
|
|
72
72
|
installerBinaryPath,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
autoUpdateStatus,
|
|
83
83
|
describeAutoUpdate,
|
|
84
84
|
runCommand
|
|
85
|
-
} from "./main-
|
|
85
|
+
} from "./main-0wvv6nat.mjs";
|
|
86
86
|
import"./main-vgzr4689.mjs";
|
|
87
87
|
import {
|
|
88
88
|
pairingCodeTtlMs,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
revokeBrowserToken,
|
|
97
97
|
legacyPairingCode,
|
|
98
98
|
removeLegacyPairingCode
|
|
99
|
-
} from "./main-
|
|
99
|
+
} from "./main-8r1t7vba.mjs";
|
|
100
100
|
import {
|
|
101
101
|
unpackedExtensionId,
|
|
102
102
|
extensionProtocolSkew,
|
|
@@ -107,10 +107,10 @@ import {
|
|
|
107
107
|
readRelayConfig,
|
|
108
108
|
writeRelayConfig,
|
|
109
109
|
syncDevExtension
|
|
110
|
-
} from "./main-
|
|
110
|
+
} from "./main-2rtwhyhh.mjs";
|
|
111
111
|
import {
|
|
112
112
|
relayAuthorization
|
|
113
|
-
} from "./main-
|
|
113
|
+
} from "./main-ezf20xwm.mjs";
|
|
114
114
|
|
|
115
115
|
// src/setup.ts
|
|
116
116
|
import { mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
@@ -394,8 +394,10 @@ Common diagnoses:
|
|
|
394
394
|
page. Running setup again does not reload older workers.
|
|
395
395
|
- \`Target not found\`: attach the intended tab, then select or adopt it by a
|
|
396
396
|
unique URL substring or explicit index.
|
|
397
|
-
-
|
|
398
|
-
tab
|
|
397
|
+
- Dismissing Chromium's debugging bar (Cancel in Chrome, OK in some browsers)
|
|
398
|
+
detaches every tab: browse no longer controls them. Tabs an agent opened stay
|
|
399
|
+
open and close when idle; ask the user to lend the tab again with the toolbar
|
|
400
|
+
button, or continue in a new tab. \`execute\` says when this happened.
|
|
399
401
|
- Repeated execution-context errors: run one short follow-up so browse can
|
|
400
402
|
health-check the page. A live page is reconnected and re-resolved once; a
|
|
401
403
|
crashed or \`chrome-error://\` relay-owned page is recreated. It never replaces
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-aeg6a5nk.mjs";
|
|
2
2
|
import {
|
|
3
3
|
entryCommand,
|
|
4
4
|
installedRuntime2,
|
|
5
5
|
installedVersion
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-0wvv6nat.mjs";
|
|
7
7
|
|
|
8
8
|
// src/mcp/supervisor.ts
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
@@ -33,7 +33,7 @@ async function runBinaryMcp(args) {
|
|
|
33
33
|
const runtime = installedRuntime2();
|
|
34
34
|
if (!runtime || runtime.kind === "npx") {
|
|
35
35
|
process.env[directEnvironmentVariable] = "1";
|
|
36
|
-
const { runCli } = await import("./cli-
|
|
36
|
+
const { runCli } = await import("./cli-9sgczzrw.mjs");
|
|
37
37
|
return runCli();
|
|
38
38
|
}
|
|
39
39
|
const REPLAY = "opencode-browser-shim-initialize";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
updateNotice2,
|
|
5
5
|
createUpdateWatcher2,
|
|
6
6
|
runUpdateCommand2
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-qxer7zjj.mjs";
|
|
8
8
|
import"./main-mrew6jy8.mjs";
|
|
9
|
-
import"./main-
|
|
10
|
-
import"./main-
|
|
9
|
+
import"./main-0wvv6nat.mjs";
|
|
10
|
+
import"./main-aeg6a5nk.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createUpdateWatcher2 as createUpdateWatcher,
|
|
13
13
|
formatUpdateNotice2 as formatUpdateNotice,
|
package/package.json
CHANGED
package/skills/browse/SKILL.md
CHANGED
|
@@ -393,8 +393,10 @@ Common diagnoses:
|
|
|
393
393
|
page. Running setup again does not reload older workers.
|
|
394
394
|
- `Target not found`: attach the intended tab, then select or adopt it by a
|
|
395
395
|
unique URL substring or explicit index.
|
|
396
|
-
-
|
|
397
|
-
tab
|
|
396
|
+
- Dismissing Chromium's debugging bar (Cancel in Chrome, OK in some browsers)
|
|
397
|
+
detaches every tab: browse no longer controls them. Tabs an agent opened stay
|
|
398
|
+
open and close when idle; ask the user to lend the tab again with the toolbar
|
|
399
|
+
button, or continue in a new tab. `execute` says when this happened.
|
|
398
400
|
- Repeated execution-context errors: run one short follow-up so browse can
|
|
399
401
|
health-check the page. A live page is reconnected and re-resolved once; a
|
|
400
402
|
crashed or `chrome-error://` relay-owned page is recreated. It never replaces
|
package/dist/main-zt63krh7.mjs
DELETED