@opencode/browse 0.0.17-dev.157 → 0.0.17-dev.159
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-bnwccwpc.mjs → cli-e9y08422.mjs} +17 -14
- package/dist/cli.mjs +11 -11
- package/dist/{helpers-s926ewzp.mjs → helpers-fvjnjcm2.mjs} +1 -1
- package/dist/{main-2be5p7he.mjs → main-002bsk34.mjs} +1 -1
- package/dist/main-27z6wa35.mjs +4 -0
- package/dist/{main-ttge8j3c.mjs → main-97jybfdk.mjs} +3 -3
- package/dist/{main-yy5d2qyc.mjs → main-bb3s3587.mjs} +1 -1
- package/dist/{main-5d6tc78f.mjs → main-ceyqbz75.mjs} +2 -2
- package/dist/{main-nf1jjqr6.mjs → main-d9s92ky8.mjs} +2 -2
- package/dist/{main-jqerqpen.mjs → main-dy6wb2th.mjs} +1 -1
- package/dist/{main-s8p6mgme.mjs → main-hpmtnmv1.mjs} +4 -4
- package/dist/{main-d5r6evna.mjs → main-jarxjdcp.mjs} +3 -3
- package/dist/{main-4gph14fn.mjs → main-sy7pt0b3.mjs} +2 -2
- package/dist/{main-w5xdsghz.mjs → main-zz65ynpr.mjs} +2 -2
- package/dist/{mcp-ssmt3281.mjs → mcp-epn9v83y.mjs} +7 -7
- package/dist/{migrate-5pypptb1.mjs → migrate-y92rt3wn.mjs} +4 -4
- package/dist/{relay-b4558nfw.mjs → relay-zjr6d14a.mjs} +10 -10
- package/dist/{runtime-update-x6kavk5m.mjs → runtime-update-6tjc60h6.mjs} +4 -4
- package/dist/{setup-8x0gq8st.mjs → setup-sp72e4yh.mjs} +7 -7
- package/dist/{skill-text-30xek3h1.mjs → skill-text-gbzt462e.mjs} +5 -4
- package/dist/{supervisor-aqcdky44.mjs → supervisor-nmc38rec.mjs} +3 -3
- package/dist/{update-83qrfkzg.mjs → update-w1he1zmh.mjs} +3 -3
- package/dist/{version-rbrky7t2.mjs → version-3nbvmx1s.mjs} +1 -1
- package/package.json +1 -1
- package/skills/browse/SKILL.md +5 -4
- package/dist/main-4pt08reg.mjs +0 -4
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
opencodeBrowserVersion2,
|
|
26
26
|
opencodeBrowserBuildId2
|
|
27
|
-
} from "./main-
|
|
27
|
+
} from "./main-27z6wa35.mjs";
|
|
28
28
|
import {
|
|
29
29
|
configRoot2,
|
|
30
30
|
dataRoot,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
devExtension,
|
|
38
38
|
installCommand,
|
|
39
39
|
autoUpdateStatus
|
|
40
|
-
} from "./main-
|
|
40
|
+
} from "./main-hpmtnmv1.mjs";
|
|
41
41
|
import {
|
|
42
42
|
extensionProtocolVersion,
|
|
43
43
|
extensionProtocolAdvice
|
|
@@ -63,29 +63,29 @@ import {
|
|
|
63
63
|
ensureExtensionConnected,
|
|
64
64
|
stoppedRelayStatus,
|
|
65
65
|
statusCollections
|
|
66
|
-
} from "./main-
|
|
66
|
+
} from "./main-97jybfdk.mjs";
|
|
67
67
|
import"./main-4h7rfhhr.mjs";
|
|
68
68
|
import {
|
|
69
69
|
updateJson2,
|
|
70
70
|
formatUpdateNotice2,
|
|
71
71
|
updateNotice2
|
|
72
|
-
} from "./main-
|
|
72
|
+
} from "./main-ceyqbz75.mjs";
|
|
73
73
|
import {
|
|
74
74
|
settingKeys,
|
|
75
75
|
formatSettings,
|
|
76
76
|
ensureSessionExists
|
|
77
|
-
} from "./main-
|
|
77
|
+
} from "./main-d9s92ky8.mjs";
|
|
78
78
|
import {
|
|
79
79
|
addSecret,
|
|
80
80
|
listSecrets,
|
|
81
81
|
removeSecret
|
|
82
|
-
} from "./main-
|
|
82
|
+
} from "./main-dy6wb2th.mjs";
|
|
83
83
|
import {
|
|
84
84
|
defaultJournalBaseDir,
|
|
85
85
|
readJournalEntries,
|
|
86
86
|
formatJournalEntry
|
|
87
|
-
} from "./main-
|
|
88
|
-
import"./main-
|
|
87
|
+
} from "./main-zz65ynpr.mjs";
|
|
88
|
+
import"./main-002bsk34.mjs";
|
|
89
89
|
import {
|
|
90
90
|
taggedEnum,
|
|
91
91
|
is2,
|
|
@@ -5843,7 +5843,7 @@ var status = make("status", {
|
|
|
5843
5843
|
}
|
|
5844
5844
|
})).pipe(withDescription4("Show relay, extension, and target status"));
|
|
5845
5845
|
var mcp = make("mcp", {}, fn("Cli.mcp")(function* () {
|
|
5846
|
-
const { runMcpServer } = yield* promise(() => import("./mcp-
|
|
5846
|
+
const { runMcpServer } = yield* promise(() => import("./mcp-epn9v83y.mjs"));
|
|
5847
5847
|
yield* runMcpServer;
|
|
5848
5848
|
})).pipe(withDescription4("Run the browse MCP server over stdio"));
|
|
5849
5849
|
registerCliCommand(400, () => tabs);
|
|
@@ -5864,7 +5864,7 @@ registerCliCommand(810, ({ packageRoot }) => make("doctor", {
|
|
|
5864
5864
|
}
|
|
5865
5865
|
})).pipe(withDescription4("Diagnose the local browse install and runtime")));
|
|
5866
5866
|
registerCliCommand(820, () => make("skill", {}, fn("Cli.skill")(function* () {
|
|
5867
|
-
const { skillText } = yield* promise(() => import("./skill-text-
|
|
5867
|
+
const { skillText } = yield* promise(() => import("./skill-text-gbzt462e.mjs"));
|
|
5868
5868
|
yield* log(skillText.trimEnd());
|
|
5869
5869
|
})).pipe(withDescription4("Print the browse agent skill text")));
|
|
5870
5870
|
registerCliCommand(900, () => mcp);
|
|
@@ -6291,7 +6291,7 @@ registerCliCommand(710, () => flightRecorder);
|
|
|
6291
6291
|
|
|
6292
6292
|
// src/cli/relay.ts
|
|
6293
6293
|
var serve = make("serve", {}, fn("Cli.serve")(function* () {
|
|
6294
|
-
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-
|
|
6294
|
+
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-zjr6d14a.mjs"), import("./helpers-fvjnjcm2.mjs")]));
|
|
6295
6295
|
const port = yield* portConfig;
|
|
6296
6296
|
const additionalExtensionOrigins = parseAdditionalExtensionOrigins(yield* extensionOriginsConfig);
|
|
6297
6297
|
yield* scoped(gen(function* () {
|
|
@@ -6471,14 +6471,17 @@ function describeStop(stopped) {
|
|
|
6471
6471
|
var sessionNew = make("new", {
|
|
6472
6472
|
name: String7("name").pipe(optional3, withDescription2("Optional lowercase session id")),
|
|
6473
6473
|
readOnly: Boolean4("read-only").pipe(withDefault2(false), withDescription3("Create a read-only session: adopt a tab the user has lent you, then snapshot, screenshot and read it; CDP input, navigation, new pages and cookie writes are refused")),
|
|
6474
|
-
allowOrigin: String8("allow-origin").pipe(atLeast2(0), withDescription3("Only let this session's tabs load these hosts or origins (repeatable or comma-separated): example.com, *.example.com, https://app.example.com, http://localhost:3000"))
|
|
6475
|
-
|
|
6474
|
+
allowOrigin: String8("allow-origin").pipe(atLeast2(0), withDescription3("Only let this session's tabs load these hosts or origins (repeatable or comma-separated): example.com, *.example.com, https://app.example.com, http://localhost:3000")),
|
|
6475
|
+
browser: String8("browser").pipe(optional4, withDescription3("Open this session's tabs in the connected browser with this id or name (browse status --json lists them); omit for the default browser"))
|
|
6476
|
+
}, fn("Cli.sessionNew")(function* ({ name, readOnly, allowOrigin, browser }) {
|
|
6476
6477
|
const relay = yield* Service;
|
|
6477
6478
|
yield* ensureCliRelay();
|
|
6478
6479
|
const store = yield* Service3;
|
|
6480
|
+
const browserValue = getOrUndefined(browser);
|
|
6479
6481
|
const result = yield* relay.sessionNew(getOrUndefined(name), {
|
|
6480
6482
|
...readOnly ? { readOnly: true } : {},
|
|
6481
|
-
...allowOrigin.length > 0 ? { allowedOrigins: allowOrigin } : {}
|
|
6483
|
+
...allowOrigin.length > 0 ? { allowedOrigins: allowOrigin } : {},
|
|
6484
|
+
...browserValue ? { browser: browserValue } : {}
|
|
6482
6485
|
});
|
|
6483
6486
|
yield* store.write(result.id);
|
|
6484
6487
|
yield* log(result.id);
|
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.17-dev.
|
|
9
|
+
var embeddedVersion = "0.0.17-dev.159";
|
|
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,21 +17,21 @@ 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-y92rt3wn.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-3nbvmx1s.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-nmc38rec.mjs")).supervisesMcp()) {
|
|
29
|
+
const { runBinaryMcp } = await import("./supervisor-nmc38rec.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-7d47yfra.mjs");
|
|
33
33
|
const { defaultTeardown } = await import("./Runtime-qfc1eg1n.mjs");
|
|
34
|
-
const { runMcpServer } = await import("./mcp-
|
|
34
|
+
const { runMcpServer } = await import("./mcp-epn9v83y.mjs");
|
|
35
35
|
let stdinGone = false;
|
|
36
36
|
const onStdinGone = () => {
|
|
37
37
|
stdinGone = true;
|
|
@@ -53,13 +53,13 @@ if (command === "--version" || command === "-v") {
|
|
|
53
53
|
})
|
|
54
54
|
}));
|
|
55
55
|
} else if (command === "self-update" || command === "runtime-switch") {
|
|
56
|
-
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-
|
|
56
|
+
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-6tjc60h6.mjs");
|
|
57
57
|
await (command === "self-update" ? runSelfUpdate : runRuntimeSwitch)(process.argv.slice(3));
|
|
58
58
|
} else if (command === "update" && !askedForHelp) {
|
|
59
|
-
const { runUpdateCommand } = await import("./update-
|
|
59
|
+
const { runUpdateCommand } = await import("./update-w1he1zmh.mjs");
|
|
60
60
|
await runUpdateCommand(process.argv.slice(3));
|
|
61
61
|
} else if (command && setupCommands.has(command) && !askedForHelp) {
|
|
62
|
-
const { runSetup } = await import("./setup-
|
|
62
|
+
const { runSetup } = await import("./setup-sp72e4yh.mjs");
|
|
63
63
|
await runSetup(command, process.argv.slice(3));
|
|
64
64
|
} else {
|
|
65
65
|
if (preCliHelp || !command || command === "--help" || command === "-h") {
|
|
@@ -96,9 +96,9 @@ executable in ~/.local/bin (or $XDG_BIN_HOME).
|
|
|
96
96
|
`);
|
|
97
97
|
}
|
|
98
98
|
if (command === "status" && !askedForHelp && !process.argv.includes("--json")) {
|
|
99
|
-
const { printSetupStatus } = await import("./setup-
|
|
99
|
+
const { printSetupStatus } = await import("./setup-sp72e4yh.mjs");
|
|
100
100
|
printSetupStatus();
|
|
101
101
|
}
|
|
102
|
-
const { runCli } = await import("./cli-
|
|
102
|
+
const { runCli } = await import("./cli-e9y08422.mjs");
|
|
103
103
|
runCli(preCliHelp ? ["--help"] : undefined);
|
|
104
104
|
}
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./main-bc8cjey0.mjs";
|
|
19
19
|
import {
|
|
20
20
|
opencodeBrowserBuildId2
|
|
21
|
-
} from "./main-
|
|
21
|
+
} from "./main-27z6wa35.mjs";
|
|
22
22
|
import {
|
|
23
23
|
stateRoot,
|
|
24
24
|
compiledBinary,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
compareVersions,
|
|
29
29
|
installedRuntime2,
|
|
30
30
|
installedVersion
|
|
31
|
-
} from "./main-
|
|
31
|
+
} from "./main-hpmtnmv1.mjs";
|
|
32
32
|
import {
|
|
33
33
|
relayAuthorization
|
|
34
|
-
} from "./main-
|
|
34
|
+
} from "./main-002bsk34.mjs";
|
|
35
35
|
import {
|
|
36
36
|
Pointer,
|
|
37
37
|
passthrough,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
installedRuntime2,
|
|
7
7
|
autoUpdateStatus,
|
|
8
8
|
updateAvailable
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-hpmtnmv1.mjs";
|
|
10
10
|
import {
|
|
11
11
|
unpackedReloadAdvice
|
|
12
12
|
} from "./main-b3jrctcx.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-6tjc60h6.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-97jybfdk.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isStream,
|
|
18
18
|
provideContext
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
} from "./main-qazf3bhk.mjs";
|
|
104
104
|
import {
|
|
105
105
|
cliCommand
|
|
106
|
-
} from "./main-
|
|
106
|
+
} from "./main-hpmtnmv1.mjs";
|
|
107
107
|
|
|
108
108
|
// node_modules/effect/dist/PrimaryKey.js
|
|
109
109
|
var symbol = "~effect/PrimaryKey";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-27z6wa35.mjs";
|
|
4
4
|
|
|
5
5
|
// src/paths.ts
|
|
6
6
|
import fs from "node:fs";
|
|
@@ -110,7 +110,7 @@ function cliInstall() {
|
|
|
110
110
|
return { kind: "binary", binary: installedBinary() ?? process.execPath, pathEnv: process.env.PATH };
|
|
111
111
|
if (fromCheckout())
|
|
112
112
|
return { kind: "checkout", bundle: path.join(packageRoot(), "dist", "cli.mjs") };
|
|
113
|
-
return { kind: "npm", version: "0.0.17-dev.
|
|
113
|
+
return { kind: "npm", version: "0.0.17-dev.159", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
|
|
114
114
|
}
|
|
115
115
|
function cliPrefix(install = cliInstall()) {
|
|
116
116
|
if (install.kind === "binary") {
|
|
@@ -132,7 +132,7 @@ function storeConfig(env = process.env, baked = { id: "mfnicocicmmlkpjnaffgihfjh
|
|
|
132
132
|
return id ? { id } : {};
|
|
133
133
|
}
|
|
134
134
|
var RELEASE_SERVICE = "https://anoma.ly/release";
|
|
135
|
-
function devExtension(baked = { file: "browse-extension-0.0.17-dev.
|
|
135
|
+
function devExtension(baked = { file: "browse-extension-0.0.17-dev.159.zip", sha256: "3d90af897a8604080c55f76b51fc977f4b1e5f986c2cea46bed834acf253d702", size: 183293 }) {
|
|
136
136
|
return baked && /^[0-9a-f]{64}$/.test(baked.sha256) && /^[\w.-]+\.zip$/.test(baked.file) ? baked : undefined;
|
|
137
137
|
}
|
|
138
138
|
var devExtensionUrl = (extension, env = process.env) => `${(env.OPENCODE_BROWSER_RELEASE_SERVICE || RELEASE_SERVICE).replace(/\/+$/, "")}/browse/files/${extension.sha256}/${extension.file}`;
|
|
@@ -501,7 +501,7 @@ function describeAutoUpdate(status) {
|
|
|
501
501
|
const mode = { on: "automatic", notify: "notify only", off: "off" }[status.effective];
|
|
502
502
|
const parts = [`${mode}${status.overriddenBy ? ` (set by ${status.overriddenBy})` : ""}`, `channel ${status.channel ?? "latest"}`];
|
|
503
503
|
if (updateAvailable(status))
|
|
504
|
-
parts.push(`${status.latest} available; the installer runs when no agent is using the browser`);
|
|
504
|
+
parts.push(status.effective === "on" ? `${status.latest} available; the installer runs when no agent is using the browser` : `${status.latest} available; run \`${status.cli} update\` to install it`);
|
|
505
505
|
if (status.lastError)
|
|
506
506
|
parts.push(`last attempt failed: ${status.lastError.message}`);
|
|
507
507
|
return `Updates: ${parts.join("; ")}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-27z6wa35.mjs";
|
|
4
4
|
import {
|
|
5
5
|
configRoot2,
|
|
6
6
|
dataRoot,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
storeUrl,
|
|
21
21
|
installedVersion,
|
|
22
22
|
runCommand
|
|
23
|
-
} from "./main-
|
|
23
|
+
} from "./main-hpmtnmv1.mjs";
|
|
24
24
|
import {
|
|
25
25
|
writeStdout
|
|
26
26
|
} from "./main-tk4axre7.mjs";
|
|
27
27
|
import {
|
|
28
28
|
formatPairingCode
|
|
29
|
-
} from "./main-
|
|
29
|
+
} from "./main-bb3s3587.mjs";
|
|
30
30
|
import {
|
|
31
31
|
unpackedExtensionId
|
|
32
32
|
} from "./main-b3jrctcx.mjs";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
bundledPairingCodeTtlMs,
|
|
6
6
|
mintPairingCode,
|
|
7
7
|
writeExtensionPairing
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-bb3s3587.mjs";
|
|
9
9
|
import {
|
|
10
10
|
configRoot2,
|
|
11
11
|
cacheRoot,
|
|
12
12
|
devExtensionUrl,
|
|
13
13
|
devExtensionFolder
|
|
14
|
-
} from "./main-
|
|
14
|
+
} from "./main-hpmtnmv1.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-4h7rfhhr.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isValidSessionId2
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-97jybfdk.mjs";
|
|
7
7
|
import {
|
|
8
8
|
decodeUnknownOption,
|
|
9
9
|
optionalKey,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./main-xycdhwqs.mjs";
|
|
20
20
|
import {
|
|
21
21
|
stateRoot
|
|
22
|
-
} from "./main-
|
|
22
|
+
} from "./main-hpmtnmv1.mjs";
|
|
23
23
|
|
|
24
24
|
// src/session-manager/journal.ts
|
|
25
25
|
import fs from "node:fs";
|
|
@@ -45,11 +45,11 @@ import {
|
|
|
45
45
|
} from "./main-bc8cjey0.mjs";
|
|
46
46
|
import {
|
|
47
47
|
opencodeBrowserVersion2
|
|
48
|
-
} from "./main-
|
|
48
|
+
} from "./main-27z6wa35.mjs";
|
|
49
49
|
import {
|
|
50
50
|
cliCommand,
|
|
51
51
|
autoUpdateStatus
|
|
52
|
-
} from "./main-
|
|
52
|
+
} from "./main-hpmtnmv1.mjs";
|
|
53
53
|
import"./main-b3jrctcx.mjs";
|
|
54
54
|
import {
|
|
55
55
|
option,
|
|
@@ -69,12 +69,12 @@ import {
|
|
|
69
69
|
relayBuildProblem,
|
|
70
70
|
ensureRelay,
|
|
71
71
|
ensureExtensionConnected
|
|
72
|
-
} from "./main-
|
|
72
|
+
} from "./main-97jybfdk.mjs";
|
|
73
73
|
import"./main-4h7rfhhr.mjs";
|
|
74
74
|
import {
|
|
75
75
|
updateJson2,
|
|
76
76
|
createUpdateWatcher2
|
|
77
|
-
} from "./main-
|
|
77
|
+
} from "./main-ceyqbz75.mjs";
|
|
78
78
|
import {
|
|
79
79
|
settingSpecs,
|
|
80
80
|
securityVariables,
|
|
@@ -155,12 +155,12 @@ import {
|
|
|
155
155
|
toolResultForValue2,
|
|
156
156
|
mcpErrorMessage2,
|
|
157
157
|
toolResult
|
|
158
|
-
} from "./main-
|
|
158
|
+
} from "./main-d9s92ky8.mjs";
|
|
159
159
|
import {
|
|
160
160
|
makeUnsafe,
|
|
161
161
|
make3,
|
|
162
162
|
listSecrets
|
|
163
|
-
} from "./main-
|
|
163
|
+
} from "./main-dy6wb2th.mjs";
|
|
164
164
|
import {
|
|
165
165
|
Clock,
|
|
166
166
|
type,
|
|
@@ -175,7 +175,7 @@ import {
|
|
|
175
175
|
orElse,
|
|
176
176
|
exhaustive
|
|
177
177
|
} from "./main-4074weqb.mjs";
|
|
178
|
-
import"./main-
|
|
178
|
+
import"./main-002bsk34.mjs";
|
|
179
179
|
import {
|
|
180
180
|
Class,
|
|
181
181
|
taggedEnum,
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
browseServerCommand,
|
|
7
7
|
editAgentConfig,
|
|
8
8
|
configureMcp
|
|
9
|
-
} from "./main-
|
|
10
|
-
import"./main-
|
|
9
|
+
} from "./main-jarxjdcp.mjs";
|
|
10
|
+
import"./main-27z6wa35.mjs";
|
|
11
11
|
import {
|
|
12
12
|
configRoot2,
|
|
13
13
|
dataRoot,
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
cacheRoot,
|
|
16
16
|
binRoot,
|
|
17
17
|
binaryName
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-hpmtnmv1.mjs";
|
|
19
19
|
import"./main-tk4axre7.mjs";
|
|
20
20
|
import"./main-4h7rfhhr.mjs";
|
|
21
|
-
import"./main-
|
|
21
|
+
import"./main-bb3s3587.mjs";
|
|
22
22
|
import"./main-b3jrctcx.mjs";
|
|
23
23
|
import {
|
|
24
24
|
legacyDataRoot,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2,
|
|
3
3
|
opencodeBrowserBuildId2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-27z6wa35.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-hpmtnmv1.mjs";
|
|
29
29
|
import {
|
|
30
30
|
extensionProtocolVersion,
|
|
31
31
|
minExtensionProtocolVersion,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
dataUrlDocument2,
|
|
105
105
|
appendManagedRelayProcessLog,
|
|
106
106
|
relayLog
|
|
107
|
-
} from "./main-
|
|
107
|
+
} from "./main-97jybfdk.mjs";
|
|
108
108
|
import {
|
|
109
109
|
context,
|
|
110
110
|
pendingPairingCodeKeys,
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
pairingSessionKey,
|
|
123
123
|
sessionProof,
|
|
124
124
|
wrapToken
|
|
125
|
-
} from "./main-
|
|
125
|
+
} from "./main-bb3s3587.mjs";
|
|
126
126
|
import {
|
|
127
127
|
makeUnsafe,
|
|
128
128
|
terminateChildProcess,
|
|
@@ -145,16 +145,16 @@ import {
|
|
|
145
145
|
checkNavigationUrl,
|
|
146
146
|
readSecret,
|
|
147
147
|
secretText
|
|
148
|
-
} from "./main-
|
|
148
|
+
} from "./main-dy6wb2th.mjs";
|
|
149
149
|
import {
|
|
150
150
|
defaultJournalBaseDir,
|
|
151
151
|
makeJournalEntry,
|
|
152
152
|
appendJournalEntry,
|
|
153
153
|
startJournalRetention
|
|
154
|
-
} from "./main-
|
|
154
|
+
} from "./main-zz65ynpr.mjs";
|
|
155
155
|
import {
|
|
156
156
|
createUpdateWatcher2
|
|
157
|
-
} from "./main-
|
|
157
|
+
} from "./main-ceyqbz75.mjs";
|
|
158
158
|
import {
|
|
159
159
|
SettingsInputError,
|
|
160
160
|
parseSettingChanges,
|
|
@@ -162,13 +162,13 @@ import {
|
|
|
162
162
|
settingsToExtension,
|
|
163
163
|
describeSettings,
|
|
164
164
|
describeChanges
|
|
165
|
-
} from "./main-
|
|
165
|
+
} from "./main-d9s92ky8.mjs";
|
|
166
166
|
import {
|
|
167
167
|
relayHostname,
|
|
168
168
|
isLocalPeer,
|
|
169
169
|
installedDevExtension,
|
|
170
170
|
syncDevExtension
|
|
171
|
-
} from "./main-
|
|
171
|
+
} from "./main-sy7pt0b3.mjs";
|
|
172
172
|
import {
|
|
173
173
|
legacyRoots
|
|
174
174
|
} from "./main-ckssvk4c.mjs";
|
|
@@ -189,7 +189,7 @@ import {
|
|
|
189
189
|
relayToken,
|
|
190
190
|
secretsEqual,
|
|
191
191
|
ensurePrivateDirectory
|
|
192
|
-
} from "./main-
|
|
192
|
+
} from "./main-002bsk34.mjs";
|
|
193
193
|
import {
|
|
194
194
|
taggedEnum,
|
|
195
195
|
is2,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import"./main-9bk4pprj.mjs";
|
|
2
|
-
import"./main-
|
|
2
|
+
import"./main-27z6wa35.mjs";
|
|
3
3
|
import {
|
|
4
4
|
cliCommand,
|
|
5
5
|
installCommand,
|
|
@@ -16,17 +16,17 @@ import {
|
|
|
16
16
|
registryUrl,
|
|
17
17
|
fetchPublished,
|
|
18
18
|
runInstaller
|
|
19
|
-
} from "./main-
|
|
19
|
+
} from "./main-hpmtnmv1.mjs";
|
|
20
20
|
import"./main-b3jrctcx.mjs";
|
|
21
21
|
import {
|
|
22
22
|
Service,
|
|
23
23
|
layerFetch,
|
|
24
24
|
restartRelay,
|
|
25
25
|
startManagedRelay
|
|
26
|
-
} from "./main-
|
|
26
|
+
} from "./main-97jybfdk.mjs";
|
|
27
27
|
import"./main-4h7rfhhr.mjs";
|
|
28
28
|
import"./main-bc8cjey0.mjs";
|
|
29
|
-
import"./main-
|
|
29
|
+
import"./main-002bsk34.mjs";
|
|
30
30
|
import {
|
|
31
31
|
succeed6,
|
|
32
32
|
gen,
|
|
@@ -63,10 +63,10 @@ import {
|
|
|
63
63
|
installRuntime,
|
|
64
64
|
installedRuntime,
|
|
65
65
|
manualMcpEntry
|
|
66
|
-
} from "./main-
|
|
66
|
+
} from "./main-jarxjdcp.mjs";
|
|
67
67
|
import {
|
|
68
68
|
opencodeBrowserBuildId2
|
|
69
|
-
} from "./main-
|
|
69
|
+
} from "./main-27z6wa35.mjs";
|
|
70
70
|
import {
|
|
71
71
|
installedBinaryPath,
|
|
72
72
|
installerBinaryPath,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
autoUpdateStatus,
|
|
84
84
|
describeAutoUpdate,
|
|
85
85
|
runCommand
|
|
86
|
-
} from "./main-
|
|
86
|
+
} from "./main-hpmtnmv1.mjs";
|
|
87
87
|
import"./main-4h7rfhhr.mjs";
|
|
88
88
|
import {
|
|
89
89
|
pairingCodeTtlMs,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
revokeBrowserToken,
|
|
98
98
|
legacyPairingCode,
|
|
99
99
|
removeLegacyPairingCode
|
|
100
|
-
} from "./main-
|
|
100
|
+
} from "./main-bb3s3587.mjs";
|
|
101
101
|
import {
|
|
102
102
|
unpackedExtensionId,
|
|
103
103
|
extensionProtocolSkew,
|
|
@@ -106,16 +106,16 @@ import {
|
|
|
106
106
|
import"./main-tk4axre7.mjs";
|
|
107
107
|
import {
|
|
108
108
|
defaultSiteSecretsDir
|
|
109
|
-
} from "./main-
|
|
109
|
+
} from "./main-dy6wb2th.mjs";
|
|
110
110
|
import {
|
|
111
111
|
parseHostname,
|
|
112
112
|
readRelayConfig,
|
|
113
113
|
writeRelayConfig,
|
|
114
114
|
syncDevExtension
|
|
115
|
-
} from "./main-
|
|
115
|
+
} from "./main-sy7pt0b3.mjs";
|
|
116
116
|
import {
|
|
117
117
|
relayAuthorization
|
|
118
|
-
} from "./main-
|
|
118
|
+
} from "./main-002bsk34.mjs";
|
|
119
119
|
|
|
120
120
|
// src/setup.ts
|
|
121
121
|
import { mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
@@ -69,10 +69,11 @@ ready, unless \`session_new\` or the first \`execute\` that creates it gets
|
|
|
69
69
|
\`browser: "<id>"\`. \`status\` lists the connected browsers (\`browse status --json\`
|
|
70
70
|
on the CLI). A session stays in its browser, so start a new one to use another.
|
|
71
71
|
|
|
72
|
-
The \`browse\` CLI
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
with \`browser\` first, then
|
|
72
|
+
The \`browse\` CLI picks a browser with \`session new <name> --browser "<id or
|
|
73
|
+
name>"\`; without it, CLI sessions use the default browser. \`session_adopt\` has no
|
|
74
|
+
\`browser\`; to adopt a tab in another browser, create the session with \`browse
|
|
75
|
+
session new <name> --browser …\` (or \`session_new\` with \`browser\`) first, then
|
|
76
|
+
\`session_adopt\` in that session.
|
|
76
77
|
|
|
77
78
|
## Inspect, act, verify
|
|
78
79
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-27z6wa35.mjs";
|
|
2
2
|
import {
|
|
3
3
|
entrySpawnCommand,
|
|
4
4
|
installedRuntime2,
|
|
5
5
|
installedVersion
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-hpmtnmv1.mjs";
|
|
7
7
|
|
|
8
8
|
// src/mcp/supervisor.ts
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
@@ -34,7 +34,7 @@ async function runBinaryMcp(args) {
|
|
|
34
34
|
const runtime = installedRuntime2();
|
|
35
35
|
if (!runtime || runtime.kind === "npx") {
|
|
36
36
|
process.env[directEnvironmentVariable] = "1";
|
|
37
|
-
const { runCli } = await import("./cli-
|
|
37
|
+
const { runCli } = await import("./cli-e9y08422.mjs");
|
|
38
38
|
return runCli();
|
|
39
39
|
}
|
|
40
40
|
const REPLAY = `opencode-browser-shim-initialize-${randomUUID()}`;
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
updateNotice2,
|
|
5
5
|
createUpdateWatcher2,
|
|
6
6
|
runUpdateCommand2
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-ceyqbz75.mjs";
|
|
8
8
|
import"./main-b3jrctcx.mjs";
|
|
9
|
-
import"./main-
|
|
10
|
-
import"./main-
|
|
9
|
+
import"./main-hpmtnmv1.mjs";
|
|
10
|
+
import"./main-27z6wa35.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createUpdateWatcher2 as createUpdateWatcher,
|
|
13
13
|
formatUpdateNotice2 as formatUpdateNotice,
|
package/package.json
CHANGED
package/skills/browse/SKILL.md
CHANGED
|
@@ -68,10 +68,11 @@ ready, unless `session_new` or the first `execute` that creates it gets
|
|
|
68
68
|
`browser: "<id>"`. `status` lists the connected browsers (`browse status --json`
|
|
69
69
|
on the CLI). A session stays in its browser, so start a new one to use another.
|
|
70
70
|
|
|
71
|
-
The `browse` CLI
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
with `browser` first, then
|
|
71
|
+
The `browse` CLI picks a browser with `session new <name> --browser "<id or
|
|
72
|
+
name>"`; without it, CLI sessions use the default browser. `session_adopt` has no
|
|
73
|
+
`browser`; to adopt a tab in another browser, create the session with `browse
|
|
74
|
+
session new <name> --browser …` (or `session_new` with `browser`) first, then
|
|
75
|
+
`session_adopt` in that session.
|
|
75
76
|
|
|
76
77
|
## Inspect, act, verify
|
|
77
78
|
|
package/dist/main-4pt08reg.mjs
DELETED