@opencode/browse 0.0.17-dev.155 → 0.0.17-dev.156

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.
@@ -15,10 +15,16 @@ import {
15
15
  runMain,
16
16
  layer2
17
17
  } from "./main-bc8cjey0.mjs";
18
+ import {
19
+ ExitCode,
20
+ failure,
21
+ takeJsonFlag,
22
+ printJson
23
+ } from "./main-tk4axre7.mjs";
18
24
  import {
19
25
  opencodeBrowserVersion2,
20
26
  opencodeBrowserBuildId2
21
- } from "./main-n77bcfj8.mjs";
27
+ } from "./main-5j79t1df.mjs";
22
28
  import {
23
29
  configRoot2,
24
30
  dataRoot,
@@ -31,7 +37,7 @@ import {
31
37
  devExtension,
32
38
  installCommand,
33
39
  autoUpdateStatus
34
- } from "./main-a6x41zxr.mjs";
40
+ } from "./main-egt4w5v2.mjs";
35
41
  import {
36
42
  extensionProtocolVersion,
37
43
  extensionProtocolAdvice
@@ -57,29 +63,29 @@ import {
57
63
  ensureExtensionConnected,
58
64
  stoppedRelayStatus,
59
65
  statusCollections
60
- } from "./main-aqdqrj4m.mjs";
66
+ } from "./main-g48hcxk8.mjs";
61
67
  import"./main-4h7rfhhr.mjs";
62
68
  import {
63
69
  updateJson2,
64
70
  formatUpdateNotice2,
65
71
  updateNotice2
66
- } from "./main-ppp9k1gv.mjs";
72
+ } from "./main-savs00n9.mjs";
67
73
  import {
68
74
  settingKeys,
69
75
  formatSettings,
70
76
  ensureSessionExists
71
- } from "./main-eqpe2r3r.mjs";
77
+ } from "./main-ahzjp9cb.mjs";
72
78
  import {
73
79
  addSecret,
74
80
  listSecrets,
75
81
  removeSecret
76
- } from "./main-p31nga7a.mjs";
82
+ } from "./main-apxe9ms5.mjs";
77
83
  import {
78
84
  defaultJournalBaseDir,
79
85
  readJournalEntries,
80
86
  formatJournalEntry
81
- } from "./main-jtejbhfg.mjs";
82
- import"./main-5hhgehca.mjs";
87
+ } from "./main-9kkg3fqe.mjs";
88
+ import"./main-nt7t4kx0.mjs";
83
89
  import {
84
90
  taggedEnum,
85
91
  is2,
@@ -550,7 +556,7 @@ var Custom = (initialState, ...args) => {
550
556
  op.events = events;
551
557
  return op;
552
558
  };
553
- var Date2 = (options) => {
559
+ var Date = (options) => {
554
560
  const opts = {
555
561
  initial: new globalThis.Date,
556
562
  dateMask: "YYYY-MM-DD HH:mm:ss",
@@ -4646,7 +4652,7 @@ var promptSingle = (single) => {
4646
4652
  })), commandLineArg);
4647
4653
  }
4648
4654
  case "Date":
4649
- return map5(run(Date2({
4655
+ return map5(run(Date({
4650
4656
  message
4651
4657
  })), (date) => commandLineArg(date.toISOString()));
4652
4658
  case "Finite":
@@ -4996,44 +5002,6 @@ import path5 from "node:path";
4996
5002
  import process4 from "node:process";
4997
5003
  import { fileURLToPath, pathToFileURL } from "node:url";
4998
5004
 
4999
- // src/cli/output.ts
5000
- import { writeSync } from "node:fs";
5001
- var ExitCode = { ok: 0, failure: 1, usage: 2, auth: 3, host: 4 };
5002
- var failure = (command, code, message, options = {}) => ({
5003
- ok: false,
5004
- command,
5005
- checkedAt: new Date().toISOString(),
5006
- error: {
5007
- code,
5008
- message,
5009
- ...options.hint ? { hint: options.hint } : {},
5010
- exitCode: options.exitCode ?? ExitCode.failure
5011
- }
5012
- });
5013
- var takeJsonFlag = (argv) => ({
5014
- json: argv.includes("--json"),
5015
- argv: argv.filter((arg) => arg !== "--json")
5016
- });
5017
- var pause = new Int32Array(new SharedArrayBuffer(4));
5018
- var writeStdout = (text, fd = 1) => {
5019
- const buffer = Buffer.from(text);
5020
- let offset = 0;
5021
- while (offset < buffer.length) {
5022
- try {
5023
- offset += writeSync(fd, buffer, offset, buffer.length - offset);
5024
- } catch (error) {
5025
- const code = error.code;
5026
- if (code === "EPIPE")
5027
- return;
5028
- if (code !== "EAGAIN")
5029
- throw error;
5030
- Atomics.wait(pause, 0, 0, 2);
5031
- }
5032
- }
5033
- };
5034
- var printJson = (value) => writeStdout(`${JSON.stringify(value, null, 2)}
5035
- `);
5036
-
5037
5005
  // src/session-manager/store.ts
5038
5006
  class SessionStoreError extends TaggedError2()("SessionStore.SessionStoreError", {
5039
5007
  message: String3,
@@ -5875,7 +5843,7 @@ var status = make("status", {
5875
5843
  }
5876
5844
  })).pipe(withDescription4("Show relay, extension, and target status"));
5877
5845
  var mcp = make("mcp", {}, fn("Cli.mcp")(function* () {
5878
- const { runMcpServer } = yield* promise(() => import("./mcp-2wsp2xcd.mjs"));
5846
+ const { runMcpServer } = yield* promise(() => import("./mcp-1y4m3myg.mjs"));
5879
5847
  yield* runMcpServer;
5880
5848
  })).pipe(withDescription4("Run the browse MCP server over stdio"));
5881
5849
  registerCliCommand(400, () => tabs);
@@ -6323,7 +6291,7 @@ registerCliCommand(710, () => flightRecorder);
6323
6291
 
6324
6292
  // src/cli/relay.ts
6325
6293
  var serve = make("serve", {}, fn("Cli.serve")(function* () {
6326
- const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-ydy4dkb4.mjs"), import("./helpers-9rv0va26.mjs")]));
6294
+ const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-m9f12gpd.mjs"), import("./helpers-chz33rt0.mjs")]));
6327
6295
  const port = yield* portConfig;
6328
6296
  const additionalExtensionOrigins = parseAdditionalExtensionOrigins(yield* extensionOriginsConfig);
6329
6297
  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.17-dev.155";
9
+ var embeddedVersion = "0.0.17-dev.156";
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-jpn1yg84.mjs");
20
+ const { migrateLegacy } = await import("./migrate-ys9zg9k1.mjs");
21
21
  migrateLegacy();
22
22
  } catch {}
23
23
  }
24
24
  if (command === "--version" || command === "-v") {
25
- const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-qcp1gxbs.mjs")).opencodeBrowserVersion;
25
+ const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-fdpmdgd0.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-kc1kng5j.mjs")).supervisesMcp()) {
29
- const { runBinaryMcp } = await import("./supervisor-kc1kng5j.mjs");
28
+ } else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-k97vbjqm.mjs")).supervisesMcp()) {
29
+ const { runBinaryMcp } = await import("./supervisor-k97vbjqm.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-2wsp2xcd.mjs");
34
+ const { runMcpServer } = await import("./mcp-1y4m3myg.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-cbfkj6zz.mjs");
56
+ const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-azmache9.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-4gmwf26g.mjs");
59
+ const { runUpdateCommand } = await import("./update-80zdbxfv.mjs");
60
60
  await runUpdateCommand(process.argv.slice(3));
61
61
  } else if (command && setupCommands.has(command) && !askedForHelp) {
62
- const { runSetup } = await import("./setup-qfm0qz9f.mjs");
62
+ const { runSetup } = await import("./setup-ww0gfytd.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-qfm0qz9f.mjs");
99
+ const { printSetupStatus } = await import("./setup-ww0gfytd.mjs");
100
100
  printSetupStatus();
101
101
  }
102
- const { runCli } = await import("./cli-zsxeh68v.mjs");
102
+ const { runCli } = await import("./cli-gtgdn4q2.mjs");
103
103
  runCli(preCliHelp ? ["--help"] : undefined);
104
104
  }
@@ -32,7 +32,7 @@ import {
32
32
  isRestrictedTarget2,
33
33
  isRestrictedUrl2,
34
34
  dataUrlDocument2
35
- } from "./main-aqdqrj4m.mjs";
35
+ } from "./main-g48hcxk8.mjs";
36
36
  import"./main-4h7rfhhr.mjs";
37
37
  import"./main-b3jrctcx.mjs";
38
38
  export {
@@ -0,0 +1,4 @@
1
+ // src/version.ts
2
+ var opencodeBrowserVersion2 = "0.0.17-dev.156";
3
+ var opencodeBrowserBuildId2 = "2026-11-09T02:19:11.097Z";
4
+ export { opencodeBrowserVersion2, opencodeBrowserBuildId2 };
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  dataRoot,
6
6
  stateRoot
7
- } from "./main-a6x41zxr.mjs";
7
+ } from "./main-egt4w5v2.mjs";
8
8
 
9
9
  // src/relay/browser-pairing.ts
10
10
  import crypto from "node:crypto";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./main-4h7rfhhr.mjs";
4
4
  import {
5
5
  isValidSessionId2
6
- } from "./main-aqdqrj4m.mjs";
6
+ } from "./main-g48hcxk8.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-a6x41zxr.mjs";
22
+ } from "./main-egt4w5v2.mjs";
23
23
 
24
24
  // src/session-manager/journal.ts
25
25
  import fs from "node:fs";
@@ -12,7 +12,7 @@ import {
12
12
  parseTargetSelection2,
13
13
  getObject2,
14
14
  getString2
15
- } from "./main-aqdqrj4m.mjs";
15
+ } from "./main-g48hcxk8.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-a6x41zxr.mjs";
106
+ } from "./main-egt4w5v2.mjs";
107
107
 
108
108
  // node_modules/effect/dist/PrimaryKey.js
109
109
  var symbol = "~effect/PrimaryKey";
@@ -52,7 +52,7 @@ import {
52
52
  import {
53
53
  dataRoot,
54
54
  cliCommand
55
- } from "./main-a6x41zxr.mjs";
55
+ } from "./main-egt4w5v2.mjs";
56
56
 
57
57
  // node_modules/effect/dist/Semaphore.js
58
58
  var makeUnsafe = (permits) => new SemaphoreImpl(permits);
@@ -5,13 +5,13 @@ import {
5
5
  bundledPairingCodeTtlMs,
6
6
  mintPairingCode,
7
7
  writeExtensionPairing
8
- } from "./main-kx4ygn02.mjs";
8
+ } from "./main-6h525ws1.mjs";
9
9
  import {
10
10
  configRoot2,
11
11
  cacheRoot,
12
12
  devExtensionUrl,
13
13
  devExtensionFolder
14
- } from "./main-a6x41zxr.mjs";
14
+ } from "./main-egt4w5v2.mjs";
15
15
 
16
16
  // src/setup/dev-extension.ts
17
17
  import { createHash } from "node:crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  opencodeBrowserVersion2
3
- } from "./main-n77bcfj8.mjs";
3
+ } from "./main-5j79t1df.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.155", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
113
+ return { kind: "npm", version: "0.0.17-dev.156", 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.155.zip", sha256: "efa6e1bc36b17b8bb5985cf49a444beb591e1713ab0756f9b0833178c56a3170", size: 183293 }) {
135
+ function devExtension(baked = { file: "browse-extension-0.0.17-dev.156.zip", sha256: "d25920a5d5c71c4429883dabae033860854507d7c61edacf9dd229a8fc0b1a98", 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}`;
@@ -15,7 +15,7 @@ import {
15
15
  } from "./main-bc8cjey0.mjs";
16
16
  import {
17
17
  opencodeBrowserBuildId2
18
- } from "./main-n77bcfj8.mjs";
18
+ } from "./main-5j79t1df.mjs";
19
19
  import {
20
20
  compiledBinary,
21
21
  scriptEntry,
@@ -24,10 +24,10 @@ import {
24
24
  compareVersions,
25
25
  installedRuntime2,
26
26
  installedVersion
27
- } from "./main-a6x41zxr.mjs";
27
+ } from "./main-egt4w5v2.mjs";
28
28
  import {
29
29
  relayAuthorization
30
- } from "./main-5hhgehca.mjs";
30
+ } from "./main-nt7t4kx0.mjs";
31
31
  import {
32
32
  Pointer,
33
33
  passthrough,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./main-4h7rfhhr.mjs";
4
4
  import {
5
5
  dataRoot
6
- } from "./main-a6x41zxr.mjs";
6
+ } from "./main-egt4w5v2.mjs";
7
7
 
8
8
  // src/relay/secrets.ts
9
9
  import crypto from "node:crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  opencodeBrowserVersion2
3
- } from "./main-n77bcfj8.mjs";
3
+ } from "./main-5j79t1df.mjs";
4
4
  import {
5
5
  configRoot2,
6
6
  dataRoot,
@@ -20,10 +20,13 @@ import {
20
20
  storeUrl,
21
21
  installedVersion,
22
22
  runCommand
23
- } from "./main-a6x41zxr.mjs";
23
+ } from "./main-egt4w5v2.mjs";
24
+ import {
25
+ writeStdout
26
+ } from "./main-tk4axre7.mjs";
24
27
  import {
25
28
  formatPairingCode
26
- } from "./main-kx4ygn02.mjs";
29
+ } from "./main-6h525ws1.mjs";
27
30
  import {
28
31
  unpackedExtensionId
29
32
  } from "./main-b3jrctcx.mjs";
@@ -10751,7 +10754,7 @@ var tilde = (file) => file === home || file.startsWith(home + path2.sep) ? "~" +
10751
10754
  var rail = { active: false };
10752
10755
  function log(line) {
10753
10756
  if (!rail.active)
10754
- return void process.stdout.write(line + `
10757
+ return writeStdout(line + `
10755
10758
  `);
10756
10759
  if (!line.trim())
10757
10760
  return;
@@ -6,7 +6,7 @@ import {
6
6
  installedRuntime2,
7
7
  autoUpdateStatus,
8
8
  updateAvailable
9
- } from "./main-a6x41zxr.mjs";
9
+ } from "./main-egt4w5v2.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-cbfkj6zz.mjs");
318
+ const { runInstalledUpdate } = await import("./runtime-update-azmache9.mjs");
319
319
  if (await runInstalledUpdate(args))
320
320
  return;
321
321
  if (compiledBinary()) {
@@ -0,0 +1,39 @@
1
+ // src/cli/output.ts
2
+ import { writeSync } from "node:fs";
3
+ var ExitCode = { ok: 0, failure: 1, usage: 2, auth: 3, host: 4 };
4
+ var failure = (command, code, message, options = {}) => ({
5
+ ok: false,
6
+ command,
7
+ checkedAt: new Date().toISOString(),
8
+ error: {
9
+ code,
10
+ message,
11
+ ...options.hint ? { hint: options.hint } : {},
12
+ exitCode: options.exitCode ?? ExitCode.failure
13
+ }
14
+ });
15
+ var takeJsonFlag = (argv) => ({
16
+ json: argv.includes("--json"),
17
+ argv: argv.filter((arg) => arg !== "--json")
18
+ });
19
+ var pause = new Int32Array(new SharedArrayBuffer(4));
20
+ var writeStdout = (text, fd = 1) => {
21
+ const buffer = Buffer.from(text);
22
+ let offset = 0;
23
+ while (offset < buffer.length) {
24
+ try {
25
+ offset += writeSync(fd, buffer, offset, buffer.length - offset);
26
+ } catch (error) {
27
+ const code = error.code;
28
+ if (code === "EPIPE")
29
+ return;
30
+ if (code !== "EAGAIN")
31
+ throw error;
32
+ Atomics.wait(pause, 0, 0, 2);
33
+ }
34
+ }
35
+ };
36
+ var printJson = (value) => writeStdout(`${JSON.stringify(value, null, 2)}
37
+ `);
38
+
39
+ export { ExitCode, failure, takeJsonFlag, writeStdout, printJson };
@@ -45,11 +45,11 @@ import {
45
45
  } from "./main-bc8cjey0.mjs";
46
46
  import {
47
47
  opencodeBrowserVersion2
48
- } from "./main-n77bcfj8.mjs";
48
+ } from "./main-5j79t1df.mjs";
49
49
  import {
50
50
  cliCommand,
51
51
  autoUpdateStatus
52
- } from "./main-a6x41zxr.mjs";
52
+ } from "./main-egt4w5v2.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-aqdqrj4m.mjs";
72
+ } from "./main-g48hcxk8.mjs";
73
73
  import"./main-4h7rfhhr.mjs";
74
74
  import {
75
75
  updateJson2,
76
76
  createUpdateWatcher2
77
- } from "./main-ppp9k1gv.mjs";
77
+ } from "./main-savs00n9.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-eqpe2r3r.mjs";
158
+ } from "./main-ahzjp9cb.mjs";
159
159
  import {
160
160
  makeUnsafe,
161
161
  make3,
162
162
  listSecrets
163
- } from "./main-p31nga7a.mjs";
163
+ } from "./main-apxe9ms5.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-5hhgehca.mjs";
178
+ import"./main-nt7t4kx0.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-8126mrjm.mjs";
10
- import"./main-n77bcfj8.mjs";
9
+ } from "./main-rfjyvkdf.mjs";
10
+ import"./main-5j79t1df.mjs";
11
11
  import {
12
12
  configRoot2,
13
13
  dataRoot,
@@ -15,9 +15,10 @@ import {
15
15
  cacheRoot,
16
16
  binRoot,
17
17
  binaryName
18
- } from "./main-a6x41zxr.mjs";
18
+ } from "./main-egt4w5v2.mjs";
19
+ import"./main-tk4axre7.mjs";
19
20
  import"./main-4h7rfhhr.mjs";
20
- import"./main-kx4ygn02.mjs";
21
+ import"./main-6h525ws1.mjs";
21
22
  import"./main-b3jrctcx.mjs";
22
23
  import {
23
24
  legacyDataRoot,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  opencodeBrowserVersion2,
3
3
  opencodeBrowserBuildId2
4
- } from "./main-n77bcfj8.mjs";
4
+ } from "./main-5j79t1df.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-a6x41zxr.mjs";
28
+ } from "./main-egt4w5v2.mjs";
29
29
  import {
30
30
  extensionProtocolVersion,
31
31
  minExtensionProtocolVersion,
@@ -102,7 +102,7 @@ import {
102
102
  isRestrictedTarget2,
103
103
  isRestrictedUrl2,
104
104
  dataUrlDocument2
105
- } from "./main-aqdqrj4m.mjs";
105
+ } from "./main-g48hcxk8.mjs";
106
106
  import {
107
107
  context,
108
108
  pendingPairingCodeKeys,
@@ -120,7 +120,7 @@ import {
120
120
  pairingSessionKey,
121
121
  sessionProof,
122
122
  wrapToken
123
- } from "./main-kx4ygn02.mjs";
123
+ } from "./main-6h525ws1.mjs";
124
124
  import {
125
125
  makeUnsafe,
126
126
  terminateChildProcess,
@@ -143,16 +143,16 @@ import {
143
143
  checkNavigationUrl,
144
144
  readSecret,
145
145
  secretText
146
- } from "./main-p31nga7a.mjs";
146
+ } from "./main-apxe9ms5.mjs";
147
147
  import {
148
148
  defaultJournalBaseDir,
149
149
  makeJournalEntry,
150
150
  appendJournalEntry,
151
151
  startJournalRetention
152
- } from "./main-jtejbhfg.mjs";
152
+ } from "./main-9kkg3fqe.mjs";
153
153
  import {
154
154
  createUpdateWatcher2
155
- } from "./main-ppp9k1gv.mjs";
155
+ } from "./main-savs00n9.mjs";
156
156
  import {
157
157
  SettingsInputError,
158
158
  parseSettingChanges,
@@ -160,13 +160,13 @@ import {
160
160
  settingsToExtension,
161
161
  describeSettings,
162
162
  describeChanges
163
- } from "./main-eqpe2r3r.mjs";
163
+ } from "./main-ahzjp9cb.mjs";
164
164
  import {
165
165
  relayHostname,
166
166
  isLocalPeer,
167
167
  installedDevExtension,
168
168
  syncDevExtension
169
- } from "./main-qssg13bm.mjs";
169
+ } from "./main-c2smsbck.mjs";
170
170
  import {
171
171
  legacyRoots
172
172
  } from "./main-ckssvk4c.mjs";
@@ -187,7 +187,7 @@ import {
187
187
  relayToken,
188
188
  secretsEqual,
189
189
  ensurePrivateDirectory
190
- } from "./main-5hhgehca.mjs";
190
+ } from "./main-nt7t4kx0.mjs";
191
191
  import {
192
192
  taggedEnum,
193
193
  is2,
@@ -1,5 +1,5 @@
1
1
  import"./main-9bk4pprj.mjs";
2
- import"./main-n77bcfj8.mjs";
2
+ import"./main-5j79t1df.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-a6x41zxr.mjs";
19
+ } from "./main-egt4w5v2.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-aqdqrj4m.mjs";
26
+ } from "./main-g48hcxk8.mjs";
27
27
  import"./main-4h7rfhhr.mjs";
28
28
  import"./main-bc8cjey0.mjs";
29
- import"./main-5hhgehca.mjs";
29
+ import"./main-nt7t4kx0.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-8126mrjm.mjs";
66
+ } from "./main-rfjyvkdf.mjs";
67
67
  import {
68
68
  opencodeBrowserBuildId2
69
- } from "./main-n77bcfj8.mjs";
69
+ } from "./main-5j79t1df.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-a6x41zxr.mjs";
86
+ } from "./main-egt4w5v2.mjs";
87
87
  import"./main-4h7rfhhr.mjs";
88
88
  import {
89
89
  pairingCodeTtlMs,
@@ -97,24 +97,25 @@ import {
97
97
  revokeBrowserToken,
98
98
  legacyPairingCode,
99
99
  removeLegacyPairingCode
100
- } from "./main-kx4ygn02.mjs";
100
+ } from "./main-6h525ws1.mjs";
101
101
  import {
102
102
  unpackedExtensionId,
103
103
  extensionProtocolSkew,
104
104
  extensionProtocolAdvice
105
105
  } from "./main-b3jrctcx.mjs";
106
+ import"./main-tk4axre7.mjs";
106
107
  import {
107
108
  defaultSiteSecretsDir
108
- } from "./main-p31nga7a.mjs";
109
+ } from "./main-apxe9ms5.mjs";
109
110
  import {
110
111
  parseHostname,
111
112
  readRelayConfig,
112
113
  writeRelayConfig,
113
114
  syncDevExtension
114
- } from "./main-qssg13bm.mjs";
115
+ } from "./main-c2smsbck.mjs";
115
116
  import {
116
117
  relayAuthorization
117
- } from "./main-5hhgehca.mjs";
118
+ } from "./main-nt7t4kx0.mjs";
118
119
 
119
120
  // src/setup.ts
120
121
  import { mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync } from "node:fs";
@@ -1,9 +1,9 @@
1
- import"./main-n77bcfj8.mjs";
1
+ import"./main-5j79t1df.mjs";
2
2
  import {
3
3
  entrySpawnCommand,
4
4
  installedRuntime2,
5
5
  installedVersion
6
- } from "./main-a6x41zxr.mjs";
6
+ } from "./main-egt4w5v2.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-zsxeh68v.mjs");
37
+ const { runCli } = await import("./cli-gtgdn4q2.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-ppp9k1gv.mjs";
7
+ } from "./main-savs00n9.mjs";
8
8
  import"./main-b3jrctcx.mjs";
9
- import"./main-a6x41zxr.mjs";
10
- import"./main-n77bcfj8.mjs";
9
+ import"./main-egt4w5v2.mjs";
10
+ import"./main-5j79t1df.mjs";
11
11
  export {
12
12
  createUpdateWatcher2 as createUpdateWatcher,
13
13
  formatUpdateNotice2 as formatUpdateNotice,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  opencodeBrowserVersion2,
3
3
  opencodeBrowserBuildId2
4
- } from "./main-n77bcfj8.mjs";
4
+ } from "./main-5j79t1df.mjs";
5
5
  export {
6
6
  opencodeBrowserBuildId2 as opencodeBrowserBuildId,
7
7
  opencodeBrowserVersion2 as opencodeBrowserVersion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode/browse",
3
- "version": "0.0.17-dev.155",
3
+ "version": "0.0.17-dev.156",
4
4
  "description": "browse: connect the extension to opencode, and drive your browser from any agent (CLI, MCP, Playwright).",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,4 +0,0 @@
1
- // src/version.ts
2
- var opencodeBrowserVersion2 = "0.0.17-dev.155";
3
- var opencodeBrowserBuildId2 = "2026-11-09T02:04:42.605Z";
4
- export { opencodeBrowserVersion2, opencodeBrowserBuildId2 };