@opencode/browse 0.0.15-dev.93 → 0.0.15-dev.95
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-jby3ee84.mjs → cli-x946pqcc.mjs} +12 -12
- package/dist/cli.mjs +11 -11
- package/dist/{helpers-0w8bganp.mjs → helpers-6t7jtzft.mjs} +1 -1
- package/dist/main-08je0b07.mjs +4 -0
- package/dist/{main-k33mcm4r.mjs → main-4wdhhjx7.mjs} +2 -2
- package/dist/{main-kbyqgwjt.mjs → main-7drsjfay.mjs} +3 -3
- package/dist/{main-qz3da3ac.mjs → main-gwm43eg0.mjs} +3 -3
- package/dist/{main-xd5e49vb.mjs → main-mmj2an0m.mjs} +2 -2
- package/dist/{main-n0yhq5tw.mjs → main-nhcf0kxg.mjs} +2 -2
- package/dist/{main-n3fa6hab.mjs → main-q76d0fwx.mjs} +1 -1
- package/dist/{main-aadnng8p.mjs → main-s30p0ga6.mjs} +2 -2
- package/dist/{main-hjjezn7q.mjs → main-wcxe09v0.mjs} +1 -1
- package/dist/{main-xm08q8r9.mjs → main-wdxnb1n3.mjs} +3 -3
- package/dist/{mcp-3sfh4v57.mjs → mcp-yg5vftt2.mjs} +6 -6
- package/dist/{migrate-1ktgwk0n.mjs → migrate-dcqjcazw.mjs} +4 -4
- package/dist/{relay-3ed4hsna.mjs → relay-4cfdjrqh.mjs} +9 -9
- package/dist/{runtime-update-370k6z42.mjs → runtime-update-18m21kpx.mjs} +4 -4
- package/dist/{setup-br7jghz3.mjs → setup-ew3rwcva.mjs} +6 -6
- package/dist/{skill-text-mrxy6zpc.mjs → skill-text-x30agn5m.mjs} +10 -3
- package/dist/{supervisor-t2yg1awf.mjs → supervisor-1w8spdhn.mjs} +3 -3
- package/dist/{update-rcw4kt7f.mjs → update-vpyqkfxc.mjs} +3 -3
- package/dist/{version-52g9mxsn.mjs → version-47zqv01b.mjs} +1 -1
- package/package.json +1 -1
- package/skills/browse/SKILL.md +10 -3
- package/dist/main-44b7hv23.mjs +0 -4
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
import {
|
|
106
106
|
opencodeBrowserVersion2,
|
|
107
107
|
opencodeBrowserBuildId2
|
|
108
|
-
} from "./main-
|
|
108
|
+
} from "./main-08je0b07.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-gwm43eg0.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-7drsjfay.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-mmj2an0m.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-nhcf0kxg.mjs";
|
|
162
162
|
import {
|
|
163
163
|
defaultJournalBaseDir,
|
|
164
164
|
readJournalEntries,
|
|
165
165
|
formatJournalEntry
|
|
166
|
-
} from "./main-
|
|
167
|
-
import"./main-
|
|
166
|
+
} from "./main-s30p0ga6.mjs";
|
|
167
|
+
import"./main-q76d0fwx.mjs";
|
|
168
168
|
import {
|
|
169
169
|
pipeArguments,
|
|
170
170
|
dual,
|
|
@@ -5435,7 +5435,7 @@ function buildDoctorRecommendations(options) {
|
|
|
5435
5435
|
const artifactRecommendations = options.artifacts.some((artifact) => {
|
|
5436
5436
|
return !artifact.exists;
|
|
5437
5437
|
}) ? [`Rebuild or reinstall the missing files with \`${installCommand()}\`.`] : [];
|
|
5438
|
-
const connectionConflictRecommendations = options.extensionResult.ok && (options.extensionResult.value.rejectedConnections ?? 0) > 0 ? ["
|
|
5438
|
+
const connectionConflictRecommendations = options.extensionResult.ok && (options.extensionResult.value.rejectedConnections ?? 0) > 0 ? ["The relay is an older browse that connects one browser at a time. Update browse on the computer running the relay, or close the other browser."] : [];
|
|
5439
5439
|
const staleSessionRecommendations = options.staleCurrent && options.current ? [
|
|
5440
5440
|
`Current session ${options.current} is stale; run \`${cliCommand("session new")}\` or \`${cliCommand("session use <id>")}\` after the relay is running.`
|
|
5441
5441
|
] : [];
|
|
@@ -5812,7 +5812,7 @@ var status = make("status", {
|
|
|
5812
5812
|
}
|
|
5813
5813
|
yield* log(`Extension: ${extensionStatus.connected ? "connected" : "disconnected"}${extensionStatus.version ? ` (${extensionStatus.version})` : ""}`);
|
|
5814
5814
|
if ((extensionStatus.rejectedConnections ?? 0) > 0) {
|
|
5815
|
-
yield* log(`Warning: ${extensionStatus.rejectedConnections} competing browser/profile connection attempt(s) rejected; the active connection was preserved.
|
|
5815
|
+
yield* log(`Warning: ${extensionStatus.rejectedConnections} competing browser/profile connection attempt(s) rejected; the active connection was preserved. The relay is an older browse that connects one browser at a time; update browse on the computer running the relay, or close the other browser.`);
|
|
5816
5816
|
}
|
|
5817
5817
|
if (extensionStatus.nextStep)
|
|
5818
5818
|
yield* log(extensionStatus.nextStep);
|
|
@@ -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-yg5vftt2.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-x30agn5m.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-4cfdjrqh.mjs"), import("./helpers-6t7jtzft.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,7 +4,7 @@
|
|
|
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.15-dev.
|
|
7
|
+
var embeddedVersion = "0.0.15-dev.95";
|
|
8
8
|
var setupCommands = new Set(["install", "uninstall", "extension", "pair", "set"]);
|
|
9
9
|
var command = process.argv[2];
|
|
10
10
|
var args = process.argv.slice(3);
|
|
@@ -16,29 +16,29 @@ var preCliHelp = askedForHelp && (command === "update" || command !== undefined
|
|
|
16
16
|
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");
|
|
17
17
|
if (command !== "--version" && command !== "-v" && !askedForHelp && !process.env.OPENCODE_BROWSER_HOME && [path.join(os.homedir(), ".browse"), legacyDataRoot].some((root) => fs.existsSync(root))) {
|
|
18
18
|
try {
|
|
19
|
-
const { migrateLegacy } = await import("./migrate-
|
|
19
|
+
const { migrateLegacy } = await import("./migrate-dcqjcazw.mjs");
|
|
20
20
|
migrateLegacy();
|
|
21
21
|
} catch {}
|
|
22
22
|
}
|
|
23
23
|
if (command === "--version" || command === "-v") {
|
|
24
|
-
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-
|
|
24
|
+
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-47zqv01b.mjs")).opencodeBrowserVersion;
|
|
25
25
|
process.stdout.write(`${opencodeBrowserVersion}
|
|
26
26
|
`);
|
|
27
|
-
} else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-
|
|
28
|
-
const { runBinaryMcp } = await import("./supervisor-
|
|
27
|
+
} else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-1w8spdhn.mjs")).supervisesMcp()) {
|
|
28
|
+
const { runBinaryMcp } = await import("./supervisor-1w8spdhn.mjs");
|
|
29
29
|
await runBinaryMcp(process.argv.slice(3));
|
|
30
30
|
} else if (invokedAs === "opencode-browser-mcp" || command === "mcp" && process.argv.length === 3) {
|
|
31
31
|
const { NodeRuntime } = await import("./index-yzz55kxm.mjs");
|
|
32
|
-
const { runMcpServer } = await import("./mcp-
|
|
32
|
+
const { runMcpServer } = await import("./mcp-yg5vftt2.mjs");
|
|
33
33
|
runMcpServer.pipe(NodeRuntime.runMain);
|
|
34
34
|
} else if (command === "self-update" || command === "runtime-switch") {
|
|
35
|
-
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-
|
|
35
|
+
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-18m21kpx.mjs");
|
|
36
36
|
await (command === "self-update" ? runSelfUpdate : runRuntimeSwitch)(process.argv.slice(3));
|
|
37
37
|
} else if (command === "update" && !askedForHelp) {
|
|
38
|
-
const { runUpdateCommand } = await import("./update-
|
|
38
|
+
const { runUpdateCommand } = await import("./update-vpyqkfxc.mjs");
|
|
39
39
|
await runUpdateCommand(process.argv.slice(3));
|
|
40
40
|
} else if (command && setupCommands.has(command) && !askedForHelp) {
|
|
41
|
-
const { runSetup } = await import("./setup-
|
|
41
|
+
const { runSetup } = await import("./setup-ew3rwcva.mjs");
|
|
42
42
|
await runSetup(command, process.argv.slice(3));
|
|
43
43
|
} else {
|
|
44
44
|
if (preCliHelp || !command || command === "--help" || command === "-h") {
|
|
@@ -75,9 +75,9 @@ executable in ~/.local/bin (or $XDG_BIN_HOME).
|
|
|
75
75
|
`);
|
|
76
76
|
}
|
|
77
77
|
if (command === "status" && !askedForHelp && !process.argv.includes("--json")) {
|
|
78
|
-
const { printSetupStatus } = await import("./setup-
|
|
78
|
+
const { printSetupStatus } = await import("./setup-ew3rwcva.mjs");
|
|
79
79
|
printSetupStatus();
|
|
80
80
|
}
|
|
81
|
-
const { runCli } = await import("./cli-
|
|
81
|
+
const { runCli } = await import("./cli-x946pqcc.mjs");
|
|
82
82
|
runCli(preCliHelp ? ["--help"] : undefined);
|
|
83
83
|
}
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
bundledPairingCodeTtlMs,
|
|
6
6
|
mintPairingCode,
|
|
7
7
|
writeExtensionPairing
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-wcxe09v0.mjs";
|
|
9
9
|
import {
|
|
10
10
|
configRoot2,
|
|
11
11
|
cacheRoot,
|
|
12
12
|
devExtensionUrl,
|
|
13
13
|
devExtensionFolder
|
|
14
|
-
} from "./main-
|
|
14
|
+
} from "./main-gwm43eg0.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-08je0b07.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-gwm43eg0.mjs";
|
|
120
120
|
import {
|
|
121
121
|
relayAuthorization
|
|
122
|
-
} from "./main-
|
|
122
|
+
} from "./main-q76d0fwx.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-08je0b07.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.15-dev.
|
|
58
|
+
return { kind: "npm", version: "0.0.15-dev.95", 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 = { file: "browse-extension-0.0.15-dev.
|
|
80
|
+
function devExtension(baked = { file: "browse-extension-0.0.15-dev.95.zip", sha256: "d9fc1bd88bf8f1bb6c30e9f8130b874d9b3f062cf74b3b041b44a3d0811495a1", size: 182575 }) {
|
|
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}`;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
installedRuntime2,
|
|
7
7
|
autoUpdateStatus,
|
|
8
8
|
updateAvailable
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-gwm43eg0.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-18m21kpx.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-7drsjfay.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-gwm43eg0.mjs";
|
|
135
135
|
|
|
136
136
|
// node_modules/effect/dist/Semaphore.js
|
|
137
137
|
var makeUnsafe = (permits) => new SemaphoreImpl(permits);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./main-vgzr4689.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isValidSessionId2
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-7drsjfay.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-gwm43eg0.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-08je0b07.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-gwm43eg0.mjs";
|
|
22
22
|
import {
|
|
23
23
|
formatPairingCode
|
|
24
|
-
} from "./main-
|
|
24
|
+
} from "./main-wcxe09v0.mjs";
|
|
25
25
|
import {
|
|
26
26
|
unpackedExtensionId
|
|
27
27
|
} from "./main-mrew6jy8.mjs";
|
|
@@ -256,11 +256,11 @@ import {
|
|
|
256
256
|
} from "./main-csnx585b.mjs";
|
|
257
257
|
import {
|
|
258
258
|
opencodeBrowserVersion2
|
|
259
|
-
} from "./main-
|
|
259
|
+
} from "./main-08je0b07.mjs";
|
|
260
260
|
import {
|
|
261
261
|
cliCommand,
|
|
262
262
|
autoUpdateStatus
|
|
263
|
-
} from "./main-
|
|
263
|
+
} from "./main-gwm43eg0.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-7drsjfay.mjs";
|
|
284
284
|
import"./main-vgzr4689.mjs";
|
|
285
285
|
import {
|
|
286
286
|
updateJson2,
|
|
287
287
|
createUpdateWatcher2
|
|
288
|
-
} from "./main-
|
|
288
|
+
} from "./main-mmj2an0m.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-nhcf0kxg.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-q76d0fwx.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-wdxnb1n3.mjs";
|
|
10
|
+
import"./main-08je0b07.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-gwm43eg0.mjs";
|
|
19
19
|
import"./main-vgzr4689.mjs";
|
|
20
|
-
import"./main-
|
|
20
|
+
import"./main-wcxe09v0.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-08je0b07.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-gwm43eg0.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-7drsjfay.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-wcxe09v0.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-nhcf0kxg.mjs";
|
|
145
145
|
import {
|
|
146
146
|
defaultJournalBaseDir,
|
|
147
147
|
makeJournalEntry,
|
|
148
148
|
appendJournalEntry,
|
|
149
149
|
startJournalRetention
|
|
150
|
-
} from "./main-
|
|
150
|
+
} from "./main-s30p0ga6.mjs";
|
|
151
151
|
import {
|
|
152
152
|
createUpdateWatcher2
|
|
153
|
-
} from "./main-
|
|
153
|
+
} from "./main-mmj2an0m.mjs";
|
|
154
154
|
import {
|
|
155
155
|
relayHostname,
|
|
156
156
|
isLocalPeer,
|
|
157
157
|
installedDevExtension,
|
|
158
158
|
syncDevExtension
|
|
159
|
-
} from "./main-
|
|
159
|
+
} from "./main-4wdhhjx7.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-q76d0fwx.mjs";
|
|
272
272
|
import {
|
|
273
273
|
isString,
|
|
274
274
|
isNumber,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-08je0b07.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-gwm43eg0.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-7drsjfay.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-q76d0fwx.mjs";
|
|
36
36
|
|
|
37
37
|
// src/update/runtime-update.ts
|
|
38
38
|
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-wdxnb1n3.mjs";
|
|
65
65
|
import {
|
|
66
66
|
opencodeBrowserBuildId2
|
|
67
|
-
} from "./main-
|
|
67
|
+
} from "./main-08je0b07.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-gwm43eg0.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-wcxe09v0.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-4wdhhjx7.mjs";
|
|
107
107
|
import {
|
|
108
108
|
relayAuthorization
|
|
109
|
-
} from "./main-
|
|
109
|
+
} from "./main-q76d0fwx.mjs";
|
|
110
110
|
|
|
111
111
|
// src/setup.ts
|
|
112
112
|
import { mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
@@ -55,9 +55,16 @@ MCP: \`session_adopt\` with \`tabId\` or \`targetUrl\`. Prefer adoption for
|
|
|
55
55
|
authenticated browser state rather than reproducing a login in a fresh page.
|
|
56
56
|
\`targetUrl\` and \`targetIndex\` select existing pages; they never navigate.
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
One relay can have several browsers connected at once, each with an id like
|
|
59
|
+
\`chrome-macbook\`. New sessions use the default browser, the first connected and
|
|
60
|
+
ready, unless \`session_new\` or the first \`execute\` that creates it gets
|
|
61
|
+
\`browser: "<id>"\`. \`status\` lists the connected browsers (\`browse status --json\`
|
|
62
|
+
on the CLI). A session stays in its browser, so start a new one to use another.
|
|
63
|
+
|
|
64
|
+
The \`browse\` CLI cannot pick a browser: \`session new\` takes only \`--read-only\`
|
|
65
|
+
and \`--allow-origin\`, so CLI sessions use the default browser. \`session_adopt\`
|
|
66
|
+
has no \`browser\` either; to adopt a tab in another browser, run \`session_new\`
|
|
67
|
+
with \`browser\` first, then \`session_adopt\` in that session.
|
|
61
68
|
|
|
62
69
|
## Inspect, act, verify
|
|
63
70
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-08je0b07.mjs";
|
|
2
2
|
import {
|
|
3
3
|
entryCommand,
|
|
4
4
|
installedRuntime2,
|
|
5
5
|
installedVersion
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-gwm43eg0.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-x946pqcc.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-mmj2an0m.mjs";
|
|
8
8
|
import"./main-mrew6jy8.mjs";
|
|
9
|
-
import"./main-
|
|
10
|
-
import"./main-
|
|
9
|
+
import"./main-gwm43eg0.mjs";
|
|
10
|
+
import"./main-08je0b07.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createUpdateWatcher2 as createUpdateWatcher,
|
|
13
13
|
formatUpdateNotice2 as formatUpdateNotice,
|
package/package.json
CHANGED
package/skills/browse/SKILL.md
CHANGED
|
@@ -54,9 +54,16 @@ MCP: `session_adopt` with `tabId` or `targetUrl`. Prefer adoption for
|
|
|
54
54
|
authenticated browser state rather than reproducing a login in a fresh page.
|
|
55
55
|
`targetUrl` and `targetIndex` select existing pages; they never navigate.
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
One relay can have several browsers connected at once, each with an id like
|
|
58
|
+
`chrome-macbook`. New sessions use the default browser, the first connected and
|
|
59
|
+
ready, unless `session_new` or the first `execute` that creates it gets
|
|
60
|
+
`browser: "<id>"`. `status` lists the connected browsers (`browse status --json`
|
|
61
|
+
on the CLI). A session stays in its browser, so start a new one to use another.
|
|
62
|
+
|
|
63
|
+
The `browse` CLI cannot pick a browser: `session new` takes only `--read-only`
|
|
64
|
+
and `--allow-origin`, so CLI sessions use the default browser. `session_adopt`
|
|
65
|
+
has no `browser` either; to adopt a tab in another browser, run `session_new`
|
|
66
|
+
with `browser` first, then `session_adopt` in that session.
|
|
60
67
|
|
|
61
68
|
## Inspect, act, verify
|
|
62
69
|
|
package/dist/main-44b7hv23.mjs
DELETED