@opencode/browse 0.0.11-dev.77 → 0.0.11
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-mx6tbg2m.mjs → cli-skncaqc5.mjs} +10 -10
- package/dist/cli.mjs +11 -11
- package/dist/{helpers-hgm1z9h5.mjs → helpers-rg33e4py.mjs} +1 -1
- package/dist/{main-sjrzyg3x.mjs → main-1rtsyp53.mjs} +1 -1
- package/dist/{main-1fdejpga.mjs → main-2p7e8j3t.mjs} +2 -2
- package/dist/{main-s7017yah.mjs → main-461k4pp2.mjs} +2 -2
- package/dist/{main-zq79yb8r.mjs → main-4w0t0g7f.mjs} +2 -2
- package/dist/{main-6chyyr6j.mjs → main-5176f9jg.mjs} +3 -3
- package/dist/{main-j2ehvkhk.mjs → main-6pse904z.mjs} +3 -3
- package/dist/{main-r3a6053j.mjs → main-f3argtem.mjs} +1 -1
- package/dist/{main-b7g6460c.mjs → main-g7g3xvpb.mjs} +3 -3
- package/dist/{main-cymarjp4.mjs → main-j61hd9zf.mjs} +2 -2
- package/dist/main-vbqt4kp0.mjs +4 -0
- package/dist/{mcp-h0qcxhqc.mjs → mcp-srpsbpx0.mjs} +7 -7
- package/dist/{migrate-pgckfkg5.mjs → migrate-23a9gwwh.mjs} +4 -4
- package/dist/{relay-gafgjtav.mjs → relay-8c154a1s.mjs} +9 -9
- package/dist/{runtime-update-p2pnfdy1.mjs → runtime-update-h2c1xw2w.mjs} +4 -4
- package/dist/{setup-fhhjnx9r.mjs → setup-2tq7tjx3.mjs} +6 -6
- package/dist/{skill-text-6p6scqwe.mjs → skill-text-mrxy6zpc.mjs} +3 -2
- package/dist/{supervisor-06t66v4t.mjs → supervisor-mg8y36mj.mjs} +3 -3
- package/dist/{update-7hagfdc0.mjs → update-7qv2g8t6.mjs} +3 -3
- package/dist/{version-hhcvk9wm.mjs → version-ss2eqkrx.mjs} +1 -1
- package/package.json +1 -1
- package/skills/browse/SKILL.md +3 -2
- package/dist/main-zya5ttbr.mjs +0 -4
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
import {
|
|
106
106
|
opencodeBrowserVersion2,
|
|
107
107
|
opencodeBrowserBuildId2
|
|
108
|
-
} from "./main-
|
|
108
|
+
} from "./main-vbqt4kp0.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-6pse904z.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-5176f9jg.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-2p7e8j3t.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-j61hd9zf.mjs";
|
|
162
162
|
import {
|
|
163
163
|
defaultJournalBaseDir,
|
|
164
164
|
readJournalEntries,
|
|
165
165
|
formatJournalEntry
|
|
166
|
-
} from "./main-
|
|
167
|
-
import"./main-
|
|
166
|
+
} from "./main-4w0t0g7f.mjs";
|
|
167
|
+
import"./main-1rtsyp53.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-srpsbpx0.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-mrxy6zpc.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-8c154a1s.mjs"), import("./helpers-rg33e4py.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
|
@@ -4,36 +4,36 @@
|
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
var embeddedVersion = "0.0.11
|
|
7
|
+
var embeddedVersion = "0.0.11";
|
|
8
8
|
var setupCommands = new Set(["install", "uninstall", "extension", "pair", "set"]);
|
|
9
9
|
var command = process.argv[2];
|
|
10
10
|
var invokedAs = path.basename(process.argv[1] ?? "");
|
|
11
11
|
var legacyDataRoot = process.platform === "win32" ? path.join(process.env.LOCALAPPDATA ?? path.join(os.homedir(), "AppData", "Local"), "opencode-browser") : path.join(process.env.XDG_DATA_HOME ?? path.join(os.homedir(), ".local", "share"), "opencode-browser");
|
|
12
12
|
if (command !== "--version" && command !== "-v" && !process.env.OPENCODE_BROWSER_HOME && [path.join(os.homedir(), ".browse"), legacyDataRoot].some((root) => fs.existsSync(root))) {
|
|
13
13
|
try {
|
|
14
|
-
const { migrateLegacy } = await import("./migrate-
|
|
14
|
+
const { migrateLegacy } = await import("./migrate-23a9gwwh.mjs");
|
|
15
15
|
migrateLegacy();
|
|
16
16
|
} catch {}
|
|
17
17
|
}
|
|
18
18
|
if (command === "--version" || command === "-v") {
|
|
19
|
-
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-
|
|
19
|
+
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-ss2eqkrx.mjs")).opencodeBrowserVersion;
|
|
20
20
|
process.stdout.write(`${opencodeBrowserVersion}
|
|
21
21
|
`);
|
|
22
|
-
} else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-
|
|
23
|
-
const { runBinaryMcp } = await import("./supervisor-
|
|
22
|
+
} else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-mg8y36mj.mjs")).supervisesMcp()) {
|
|
23
|
+
const { runBinaryMcp } = await import("./supervisor-mg8y36mj.mjs");
|
|
24
24
|
await runBinaryMcp(process.argv.slice(3));
|
|
25
25
|
} else if (invokedAs === "opencode-browser-mcp" || command === "mcp" && process.argv.length === 3) {
|
|
26
26
|
const { NodeRuntime } = await import("./index-yzz55kxm.mjs");
|
|
27
|
-
const { runMcpServer } = await import("./mcp-
|
|
27
|
+
const { runMcpServer } = await import("./mcp-srpsbpx0.mjs");
|
|
28
28
|
runMcpServer.pipe(NodeRuntime.runMain);
|
|
29
29
|
} else if (command === "self-update" || command === "runtime-switch") {
|
|
30
|
-
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-
|
|
30
|
+
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-h2c1xw2w.mjs");
|
|
31
31
|
await (command === "self-update" ? runSelfUpdate : runRuntimeSwitch)(process.argv.slice(3));
|
|
32
32
|
} else if (command === "update") {
|
|
33
|
-
const { runUpdateCommand } = await import("./update-
|
|
33
|
+
const { runUpdateCommand } = await import("./update-7qv2g8t6.mjs");
|
|
34
34
|
await runUpdateCommand(process.argv.slice(3));
|
|
35
35
|
} else if (command && setupCommands.has(command)) {
|
|
36
|
-
const { runSetup } = await import("./setup-
|
|
36
|
+
const { runSetup } = await import("./setup-2tq7tjx3.mjs");
|
|
37
37
|
await runSetup(command, process.argv.slice(3));
|
|
38
38
|
} else {
|
|
39
39
|
if (!command || command === "--help" || command === "-h") {
|
|
@@ -70,9 +70,9 @@ executable in ~/.local/bin (or $XDG_BIN_HOME).
|
|
|
70
70
|
`);
|
|
71
71
|
}
|
|
72
72
|
if (command === "status" && !process.argv.includes("--json")) {
|
|
73
|
-
const { printSetupStatus } = await import("./setup-
|
|
73
|
+
const { printSetupStatus } = await import("./setup-2tq7tjx3.mjs");
|
|
74
74
|
printSetupStatus();
|
|
75
75
|
}
|
|
76
|
-
const { runCli } = await import("./cli-
|
|
76
|
+
const { runCli } = await import("./cli-skncaqc5.mjs");
|
|
77
77
|
runCli();
|
|
78
78
|
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
compareVersions,
|
|
7
7
|
installedRuntime2,
|
|
8
8
|
autoUpdateStatus
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-6pse904z.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-h2c1xw2w.mjs");
|
|
319
319
|
if (await runInstalledUpdate(args))
|
|
320
320
|
return;
|
|
321
321
|
if (compiledBinary()) {
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
bundledPairingCodeTtlMs,
|
|
6
6
|
mintPairingCode,
|
|
7
7
|
writeExtensionPairing
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-f3argtem.mjs";
|
|
9
9
|
import {
|
|
10
10
|
configRoot2,
|
|
11
11
|
cacheRoot,
|
|
12
12
|
devExtensionUrl,
|
|
13
13
|
devExtensionFolder
|
|
14
|
-
} from "./main-
|
|
14
|
+
} from "./main-6pse904z.mjs";
|
|
15
15
|
|
|
16
16
|
// src/setup/dev-extension.ts
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./main-vgzr4689.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isValidSessionId2
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-5176f9jg.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-6pse904z.mjs";
|
|
21
21
|
|
|
22
22
|
// src/session-manager/journal.ts
|
|
23
23
|
import fs from "node:fs";
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
} from "./main-csnx585b.mjs";
|
|
108
108
|
import {
|
|
109
109
|
opencodeBrowserBuildId2
|
|
110
|
-
} from "./main-
|
|
110
|
+
} from "./main-vbqt4kp0.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-6pse904z.mjs";
|
|
120
120
|
import {
|
|
121
121
|
relayAuthorization
|
|
122
|
-
} from "./main-
|
|
122
|
+
} from "./main-1rtsyp53.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-vbqt4kp0.mjs";
|
|
4
4
|
|
|
5
5
|
// src/paths.ts
|
|
6
6
|
import fs from "node:fs";
|
|
@@ -55,7 +55,7 @@ function cliInstall() {
|
|
|
55
55
|
return { kind: "binary", binary: installedBinary() ?? process.execPath, pathEnv: process.env.PATH };
|
|
56
56
|
if (fromCheckout())
|
|
57
57
|
return { kind: "checkout", bundle: path.join(packageRoot(), "dist", "cli.mjs") };
|
|
58
|
-
return { kind: "npm", version: "0.0.11
|
|
58
|
+
return { kind: "npm", version: "0.0.11", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
|
|
59
59
|
}
|
|
60
60
|
function cliPrefix(install = cliInstall()) {
|
|
61
61
|
if (install.kind === "binary") {
|
|
@@ -77,7 +77,7 @@ function storeConfig(env = process.env, baked = { id: "mfnicocicmmlkpjnaffgihfjh
|
|
|
77
77
|
return id ? { id } : {};
|
|
78
78
|
}
|
|
79
79
|
var RELEASE_SERVICE = "https://anoma.ly/release";
|
|
80
|
-
function devExtension(baked =
|
|
80
|
+
function devExtension(baked = undefined) {
|
|
81
81
|
return baked && /^[0-9a-f]{64}$/.test(baked.sha256) && /^[\w.-]+\.zip$/.test(baked.file) ? baked : undefined;
|
|
82
82
|
}
|
|
83
83
|
var devExtensionUrl = (extension, env = process.env) => `${(env.OPENCODE_BROWSER_RELEASE_SERVICE || RELEASE_SERVICE).replace(/\/+$/, "")}/browse/files/${extension.sha256}/${extension.file}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-vbqt4kp0.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-6pse904z.mjs";
|
|
22
22
|
import {
|
|
23
23
|
formatPairingCode
|
|
24
|
-
} from "./main-
|
|
24
|
+
} from "./main-f3argtem.mjs";
|
|
25
25
|
import {
|
|
26
26
|
unpackedExtensionId
|
|
27
27
|
} from "./main-mrew6jy8.mjs";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
parseTargetSelection2,
|
|
13
13
|
getObject2,
|
|
14
14
|
getString2
|
|
15
|
-
} from "./main-
|
|
15
|
+
} from "./main-5176f9jg.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-6pse904z.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-vbqt4kp0.mjs";
|
|
260
260
|
import {
|
|
261
261
|
cliCommand,
|
|
262
262
|
autoUpdateStatus
|
|
263
|
-
} from "./main-
|
|
263
|
+
} from "./main-6pse904z.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-5176f9jg.mjs";
|
|
284
284
|
import"./main-vgzr4689.mjs";
|
|
285
285
|
import {
|
|
286
286
|
updateJson2,
|
|
287
287
|
createUpdateWatcher2
|
|
288
|
-
} from "./main-
|
|
288
|
+
} from "./main-2p7e8j3t.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-j61hd9zf.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-1rtsyp53.mjs";
|
|
388
388
|
import {
|
|
389
389
|
pipeArguments,
|
|
390
390
|
dual,
|
|
@@ -8890,7 +8890,7 @@ registerMcpTools({
|
|
|
8890
8890
|
build: (ctx) => [
|
|
8891
8891
|
{
|
|
8892
8892
|
name: "execute",
|
|
8893
|
-
description: `Execute Playwright JavaScript against the browse session. Code runs in a
|
|
8893
|
+
description: `Execute Playwright JavaScript against the browse session. Code runs in a restricted JavaScript realm on the relay without process, require, import(), fs, child_process, http/https or Node fetch; save and read files with the files helper inside the execute file roots, and cookie access is limited to the session's pages. Synchronous code stops after about 2 seconds. It is not a security boundary, so treat code as running as the user. The result includes console logs, warnings, a bounded execution-context diagnostic when relevant, and an aftermath summary (URL movement, navigations, error counts, handoffs, and a bot challenge or block page when one appears: hand interactive ones to the user with handoff(), never solve or retry-loop them).`,
|
|
8894
8894
|
inputSchema: objectSchema({
|
|
8895
8895
|
code: {
|
|
8896
8896
|
type: "string",
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
browseServerCommand,
|
|
7
7
|
editAgentConfig,
|
|
8
8
|
configureMcp
|
|
9
|
-
} from "./main-
|
|
10
|
-
import"./main-
|
|
9
|
+
} from "./main-g7g3xvpb.mjs";
|
|
10
|
+
import"./main-vbqt4kp0.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-6pse904z.mjs";
|
|
19
19
|
import"./main-vgzr4689.mjs";
|
|
20
|
-
import"./main-
|
|
20
|
+
import"./main-f3argtem.mjs";
|
|
21
21
|
import"./main-mrew6jy8.mjs";
|
|
22
22
|
|
|
23
23
|
// src/setup/migrate.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2,
|
|
3
3
|
opencodeBrowserBuildId2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-vbqt4kp0.mjs";
|
|
5
5
|
import {
|
|
6
6
|
dataRoot,
|
|
7
7
|
stateRoot,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
setStoredMode,
|
|
21
21
|
autoUpdateStatus,
|
|
22
22
|
createAutoUpdater
|
|
23
|
-
} from "./main-
|
|
23
|
+
} from "./main-6pse904z.mjs";
|
|
24
24
|
import {
|
|
25
25
|
extensionProtocolVersion,
|
|
26
26
|
minExtensionProtocolVersion,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
isRestrictedTarget2,
|
|
96
96
|
isRestrictedUrl2,
|
|
97
97
|
dataUrlDocument2
|
|
98
|
-
} from "./main-
|
|
98
|
+
} from "./main-5176f9jg.mjs";
|
|
99
99
|
import {
|
|
100
100
|
context,
|
|
101
101
|
pendingPairingCodeKeys,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
pairingSessionKey,
|
|
114
114
|
sessionProof,
|
|
115
115
|
wrapToken
|
|
116
|
-
} from "./main-
|
|
116
|
+
} from "./main-f3argtem.mjs";
|
|
117
117
|
import {
|
|
118
118
|
makeUnsafe,
|
|
119
119
|
SettingsInputError,
|
|
@@ -141,22 +141,22 @@ import {
|
|
|
141
141
|
checkNavigationUrl,
|
|
142
142
|
readSecret,
|
|
143
143
|
secretText
|
|
144
|
-
} from "./main-
|
|
144
|
+
} from "./main-j61hd9zf.mjs";
|
|
145
145
|
import {
|
|
146
146
|
defaultJournalBaseDir,
|
|
147
147
|
makeJournalEntry,
|
|
148
148
|
appendJournalEntry,
|
|
149
149
|
startJournalRetention
|
|
150
|
-
} from "./main-
|
|
150
|
+
} from "./main-4w0t0g7f.mjs";
|
|
151
151
|
import {
|
|
152
152
|
createUpdateWatcher2
|
|
153
|
-
} from "./main-
|
|
153
|
+
} from "./main-2p7e8j3t.mjs";
|
|
154
154
|
import {
|
|
155
155
|
relayHostname,
|
|
156
156
|
isLocalPeer,
|
|
157
157
|
installedDevExtension,
|
|
158
158
|
syncDevExtension
|
|
159
|
-
} from "./main-
|
|
159
|
+
} from "./main-461k4pp2.mjs";
|
|
160
160
|
import {
|
|
161
161
|
currentTimeMillis,
|
|
162
162
|
value,
|
|
@@ -268,7 +268,7 @@ import {
|
|
|
268
268
|
relayToken,
|
|
269
269
|
secretsEqual,
|
|
270
270
|
ensurePrivateDirectory
|
|
271
|
-
} from "./main-
|
|
271
|
+
} from "./main-1rtsyp53.mjs";
|
|
272
272
|
import {
|
|
273
273
|
isString,
|
|
274
274
|
isNumber,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-vbqt4kp0.mjs";
|
|
2
2
|
import {
|
|
3
3
|
cliCommand,
|
|
4
4
|
installCommand,
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
registryUrl,
|
|
13
13
|
fetchPublished,
|
|
14
14
|
runInstaller
|
|
15
|
-
} from "./main-
|
|
15
|
+
} from "./main-6pse904z.mjs";
|
|
16
16
|
import"./main-mrew6jy8.mjs";
|
|
17
17
|
import {
|
|
18
18
|
Service,
|
|
19
19
|
layerFetch,
|
|
20
20
|
restartRelay,
|
|
21
21
|
startManagedRelay
|
|
22
|
-
} from "./main-
|
|
22
|
+
} from "./main-5176f9jg.mjs";
|
|
23
23
|
import"./main-vgzr4689.mjs";
|
|
24
24
|
import {
|
|
25
25
|
succeed6,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
provide3,
|
|
30
30
|
runPromise
|
|
31
31
|
} from "./main-csnx585b.mjs";
|
|
32
|
-
import"./main-
|
|
32
|
+
import"./main-1rtsyp53.mjs";
|
|
33
33
|
|
|
34
34
|
// src/update/runtime-update.ts
|
|
35
35
|
var log = (line) => process.stdout.write(line + `
|
|
@@ -61,10 +61,10 @@ import {
|
|
|
61
61
|
installRuntime,
|
|
62
62
|
installedRuntime,
|
|
63
63
|
manualMcpEntry
|
|
64
|
-
} from "./main-
|
|
64
|
+
} from "./main-g7g3xvpb.mjs";
|
|
65
65
|
import {
|
|
66
66
|
opencodeBrowserBuildId2
|
|
67
|
-
} from "./main-
|
|
67
|
+
} from "./main-vbqt4kp0.mjs";
|
|
68
68
|
import {
|
|
69
69
|
installedBinaryPath,
|
|
70
70
|
oldStoreMarker,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
autoUpdateStatus,
|
|
79
79
|
describeAutoUpdate,
|
|
80
80
|
runCommand
|
|
81
|
-
} from "./main-
|
|
81
|
+
} from "./main-6pse904z.mjs";
|
|
82
82
|
import"./main-vgzr4689.mjs";
|
|
83
83
|
import {
|
|
84
84
|
pairingCodeTtlMs,
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
revokeBrowserToken,
|
|
93
93
|
legacyPairingCode,
|
|
94
94
|
removeLegacyPairingCode
|
|
95
|
-
} from "./main-
|
|
95
|
+
} from "./main-f3argtem.mjs";
|
|
96
96
|
import {
|
|
97
97
|
unpackedExtensionId,
|
|
98
98
|
extensionProtocolSkew,
|
|
@@ -103,10 +103,10 @@ import {
|
|
|
103
103
|
readRelayConfig,
|
|
104
104
|
writeRelayConfig,
|
|
105
105
|
syncDevExtension
|
|
106
|
-
} from "./main-
|
|
106
|
+
} from "./main-461k4pp2.mjs";
|
|
107
107
|
import {
|
|
108
108
|
relayAuthorization
|
|
109
|
-
} from "./main-
|
|
109
|
+
} from "./main-1rtsyp53.mjs";
|
|
110
110
|
|
|
111
111
|
// src/setup.ts
|
|
112
112
|
import { mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
@@ -208,8 +208,9 @@ values between calls on \`state\`. A single run without an \`await\` is stopped
|
|
|
208
208
|
about 2 seconds; split heavy loops with
|
|
209
209
|
\`await new Promise(r => setTimeout(r, 0))\` or do the work in the page.
|
|
210
210
|
|
|
211
|
-
It runs in a
|
|
212
|
-
it
|
|
211
|
+
It runs in a restricted JavaScript realm, not a sandbox. It shares the relay's
|
|
212
|
+
process, so it is not a security boundary: treat code as running as you. There
|
|
213
|
+
is no \`process\`, \`require\`, \`import()\`, \`eval\`, \`fs\`, \`os\`,
|
|
213
214
|
\`child_process\`, \`http\`/\`https\` or Node-side \`fetch\`, and Playwright internals,
|
|
214
215
|
\`page.request\`, \`context.request\` and \`browser.browserType()\` are unavailable.
|
|
215
216
|
Files go through \`files\` and Playwright file options, which accept absolute paths
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-vbqt4kp0.mjs";
|
|
2
2
|
import {
|
|
3
3
|
entryCommand,
|
|
4
4
|
installedRuntime2,
|
|
5
5
|
installedVersion
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-6pse904z.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-skncaqc5.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-2p7e8j3t.mjs";
|
|
8
8
|
import"./main-mrew6jy8.mjs";
|
|
9
|
-
import"./main-
|
|
10
|
-
import"./main-
|
|
9
|
+
import"./main-6pse904z.mjs";
|
|
10
|
+
import"./main-vbqt4kp0.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createUpdateWatcher2 as createUpdateWatcher,
|
|
13
13
|
formatUpdateNotice2 as formatUpdateNotice,
|
package/package.json
CHANGED
package/skills/browse/SKILL.md
CHANGED
|
@@ -207,8 +207,9 @@ values between calls on `state`. A single run without an `await` is stopped afte
|
|
|
207
207
|
about 2 seconds; split heavy loops with
|
|
208
208
|
`await new Promise(r => setTimeout(r, 0))` or do the work in the page.
|
|
209
209
|
|
|
210
|
-
It runs in a
|
|
211
|
-
it
|
|
210
|
+
It runs in a restricted JavaScript realm, not a sandbox. It shares the relay's
|
|
211
|
+
process, so it is not a security boundary: treat code as running as you. There
|
|
212
|
+
is no `process`, `require`, `import()`, `eval`, `fs`, `os`,
|
|
212
213
|
`child_process`, `http`/`https` or Node-side `fetch`, and Playwright internals,
|
|
213
214
|
`page.request`, `context.request` and `browser.browserType()` are unavailable.
|
|
214
215
|
Files go through `files` and Playwright file options, which accept absolute paths
|
package/dist/main-zya5ttbr.mjs
DELETED