@opencode/browse 0.0.16-dev.128 → 0.0.16-dev.130

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.
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  opencodeBrowserVersion2,
18
18
  opencodeBrowserBuildId2
19
- } from "./main-603rctfb.mjs";
19
+ } from "./main-e04e7tq8.mjs";
20
20
  import {
21
21
  configRoot2,
22
22
  dataRoot,
@@ -29,7 +29,7 @@ import {
29
29
  devExtension,
30
30
  installCommand,
31
31
  autoUpdateStatus
32
- } from "./main-crp1q3fc.mjs";
32
+ } from "./main-20r5mwyg.mjs";
33
33
  import {
34
34
  extensionProtocolVersion,
35
35
  extensionProtocolAdvice
@@ -55,29 +55,29 @@ import {
55
55
  ensureExtensionConnected,
56
56
  stoppedRelayStatus,
57
57
  statusCollections
58
- } from "./main-t2ra8msw.mjs";
58
+ } from "./main-f0fb6w1r.mjs";
59
59
  import"./main-azpzpy0x.mjs";
60
60
  import {
61
61
  updateJson2,
62
62
  formatUpdateNotice2,
63
63
  updateNotice2
64
- } from "./main-fgbfjpxj.mjs";
64
+ } from "./main-qyybx132.mjs";
65
65
  import {
66
66
  settingKeys,
67
67
  formatSettings,
68
68
  ensureSessionExists
69
- } from "./main-gyshpgp0.mjs";
69
+ } from "./main-0kpp7g25.mjs";
70
70
  import {
71
71
  addSecret,
72
72
  listSecrets,
73
73
  removeSecret
74
- } from "./main-3tb9wvzk.mjs";
74
+ } from "./main-eddryg82.mjs";
75
75
  import {
76
76
  defaultJournalBaseDir,
77
77
  readJournalEntries,
78
78
  formatJournalEntry
79
- } from "./main-bp7vzt5w.mjs";
80
- import"./main-0gp859we.mjs";
79
+ } from "./main-b28dee4n.mjs";
80
+ import"./main-0pajtjp7.mjs";
81
81
  import {
82
82
  format,
83
83
  assignProperty,
@@ -5871,7 +5871,7 @@ var status = make("status", {
5871
5871
  }
5872
5872
  })).pipe(withDescription4("Show relay, extension, and target status"));
5873
5873
  var mcp = make("mcp", {}, fn("Cli.mcp")(function* () {
5874
- const { runMcpServer } = yield* promise(() => import("./mcp-mqh462ep.mjs"));
5874
+ const { runMcpServer } = yield* promise(() => import("./mcp-r95vsa4g.mjs"));
5875
5875
  yield* runMcpServer;
5876
5876
  })).pipe(withDescription4("Run the browse MCP server over stdio"));
5877
5877
  registerCliCommand(400, () => tabs);
@@ -6319,7 +6319,7 @@ registerCliCommand(710, () => flightRecorder);
6319
6319
 
6320
6320
  // src/cli/relay.ts
6321
6321
  var serve = make("serve", {}, fn("Cli.serve")(function* () {
6322
- const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-5vrxmmhb.mjs"), import("./helpers-9fe4dz7a.mjs")]));
6322
+ const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-5rnwnvmq.mjs"), import("./helpers-edftd92s.mjs")]));
6323
6323
  const port = yield* portConfig;
6324
6324
  const additionalExtensionOrigins = parseAdditionalExtensionOrigins(yield* extensionOriginsConfig);
6325
6325
  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.16-dev.128";
9
+ var embeddedVersion = "0.0.16-dev.130";
10
10
  var setupCommands = new Set(["install", "uninstall", "extension", "pair", "set"]);
11
11
  var command = process.argv[2];
12
12
  var args = process.argv.slice(3);
@@ -17,29 +17,29 @@ var askedForHelp = command === "--help" || command === "-h" || options.some((arg
17
17
  var preCliHelp = askedForHelp && (command === "update" || command !== undefined && setupCommands.has(command));
18
18
  if (command !== "--version" && command !== "-v" && !askedForHelp && !process.env.OPENCODE_BROWSER_HOME && legacyRoots().some((root) => fs.existsSync(root))) {
19
19
  try {
20
- const { migrateLegacy } = await import("./migrate-qmwdr1az.mjs");
20
+ const { migrateLegacy } = await import("./migrate-3z9hbppr.mjs");
21
21
  migrateLegacy();
22
22
  } catch {}
23
23
  }
24
24
  if (command === "--version" || command === "-v") {
25
- const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-qeak3p9c.mjs")).opencodeBrowserVersion;
25
+ const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-qrgzfvfc.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-yaepsd4d.mjs")).supervisesMcp()) {
29
- const { runBinaryMcp } = await import("./supervisor-yaepsd4d.mjs");
28
+ } else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-2gsjz96z.mjs")).supervisesMcp()) {
29
+ const { runBinaryMcp } = await import("./supervisor-2gsjz96z.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-6gkr235e.mjs");
33
- const { runMcpServer } = await import("./mcp-mqh462ep.mjs");
33
+ const { runMcpServer } = await import("./mcp-r95vsa4g.mjs");
34
34
  runMcpServer.pipe(NodeRuntime.runMain);
35
35
  } else if (command === "self-update" || command === "runtime-switch") {
36
- const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-ta9ada0v.mjs");
36
+ const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-kcb69zec.mjs");
37
37
  await (command === "self-update" ? runSelfUpdate : runRuntimeSwitch)(process.argv.slice(3));
38
38
  } else if (command === "update" && !askedForHelp) {
39
- const { runUpdateCommand } = await import("./update-1swn2qpy.mjs");
39
+ const { runUpdateCommand } = await import("./update-x3da0mbs.mjs");
40
40
  await runUpdateCommand(process.argv.slice(3));
41
41
  } else if (command && setupCommands.has(command) && !askedForHelp) {
42
- const { runSetup } = await import("./setup-m835by5e.mjs");
42
+ const { runSetup } = await import("./setup-fhn9td7p.mjs");
43
43
  await runSetup(command, process.argv.slice(3));
44
44
  } else {
45
45
  if (preCliHelp || !command || command === "--help" || command === "-h") {
@@ -76,9 +76,9 @@ executable in ~/.local/bin (or $XDG_BIN_HOME).
76
76
  `);
77
77
  }
78
78
  if (command === "status" && !askedForHelp && !process.argv.includes("--json")) {
79
- const { printSetupStatus } = await import("./setup-m835by5e.mjs");
79
+ const { printSetupStatus } = await import("./setup-fhn9td7p.mjs");
80
80
  printSetupStatus();
81
81
  }
82
- const { runCli } = await import("./cli-5mmgcs8m.mjs");
82
+ const { runCli } = await import("./cli-q06pwacz.mjs");
83
83
  runCli(preCliHelp ? ["--help"] : undefined);
84
84
  }
@@ -32,7 +32,7 @@ import {
32
32
  isRestrictedTarget2,
33
33
  isRestrictedUrl2,
34
34
  dataUrlDocument2
35
- } from "./main-t2ra8msw.mjs";
35
+ } from "./main-f0fb6w1r.mjs";
36
36
  import"./main-azpzpy0x.mjs";
37
37
  import"./main-b3jrctcx.mjs";
38
38
  export {
@@ -12,7 +12,7 @@ import {
12
12
  parseTargetSelection2,
13
13
  getObject2,
14
14
  getString2
15
- } from "./main-t2ra8msw.mjs";
15
+ } from "./main-f0fb6w1r.mjs";
16
16
  import {
17
17
  isStream,
18
18
  provideContext
@@ -101,7 +101,7 @@ import {
101
101
  } from "./main-ken6azcs.mjs";
102
102
  import {
103
103
  cliCommand
104
- } from "./main-crp1q3fc.mjs";
104
+ } from "./main-20r5mwyg.mjs";
105
105
 
106
106
  // node_modules/effect/dist/PrimaryKey.js
107
107
  var symbol = "~effect/PrimaryKey";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./main-azpzpy0x.mjs";
4
4
  import {
5
5
  dataRoot
6
- } from "./main-crp1q3fc.mjs";
6
+ } from "./main-20r5mwyg.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-603rctfb.mjs";
3
+ } from "./main-e04e7tq8.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.16-dev.128", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
113
+ return { kind: "npm", version: "0.0.16-dev.130", 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.16-dev.128.zip", sha256: "9d810e22607e5a0ef2416ac544fc0dcdd6410757b2b5465fd528a412286feab5", size: 183270 }) {
135
+ function devExtension(baked = { file: "browse-extension-0.0.16-dev.130.zip", sha256: "15394b97d76060df4e1d7b84bb64bb76188da0e8b2034e6e7a065f5dcbf1f42b", size: 183294 }) {
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}`;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./main-azpzpy0x.mjs";
4
4
  import {
5
5
  isValidSessionId2
6
- } from "./main-t2ra8msw.mjs";
6
+ } from "./main-f0fb6w1r.mjs";
7
7
  import {
8
8
  isSome,
9
9
  decodeUnknownOption,
@@ -17,7 +17,7 @@ import {
17
17
  } from "./main-yf5j8g79.mjs";
18
18
  import {
19
19
  stateRoot
20
- } from "./main-crp1q3fc.mjs";
20
+ } from "./main-20r5mwyg.mjs";
21
21
 
22
22
  // src/session-manager/journal.ts
23
23
  import fs from "node:fs";
@@ -0,0 +1,4 @@
1
+ // src/version.ts
2
+ var opencodeBrowserVersion2 = "0.0.16-dev.130";
3
+ var opencodeBrowserBuildId2 = "2026-11-08T15:17:27.494Z";
4
+ export { opencodeBrowserVersion2, opencodeBrowserBuildId2 };
@@ -50,7 +50,7 @@ import {
50
50
  import {
51
51
  dataRoot,
52
52
  cliCommand
53
- } from "./main-crp1q3fc.mjs";
53
+ } from "./main-20r5mwyg.mjs";
54
54
 
55
55
  // node_modules/effect/dist/Semaphore.js
56
56
  var makeUnsafe = (permits) => new SemaphoreImpl(permits);
@@ -15,7 +15,7 @@ import {
15
15
  } from "./main-9t2s5ptx.mjs";
16
16
  import {
17
17
  opencodeBrowserBuildId2
18
- } from "./main-603rctfb.mjs";
18
+ } from "./main-e04e7tq8.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-crp1q3fc.mjs";
27
+ } from "./main-20r5mwyg.mjs";
28
28
  import {
29
29
  relayAuthorization
30
- } from "./main-0gp859we.mjs";
30
+ } from "./main-0pajtjp7.mjs";
31
31
  import {
32
32
  assignProperty,
33
33
  PipeInspectableProto,
@@ -5,13 +5,13 @@ import {
5
5
  bundledPairingCodeTtlMs,
6
6
  mintPairingCode,
7
7
  writeExtensionPairing
8
- } from "./main-fe213mzv.mjs";
8
+ } from "./main-z6catkjh.mjs";
9
9
  import {
10
10
  configRoot2,
11
11
  cacheRoot,
12
12
  devExtensionUrl,
13
13
  devExtensionFolder
14
- } from "./main-crp1q3fc.mjs";
14
+ } from "./main-20r5mwyg.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-603rctfb.mjs";
3
+ } from "./main-e04e7tq8.mjs";
4
4
  import {
5
5
  configRoot2,
6
6
  dataRoot,
@@ -20,10 +20,10 @@ import {
20
20
  storeUrl,
21
21
  installedVersion,
22
22
  runCommand
23
- } from "./main-crp1q3fc.mjs";
23
+ } from "./main-20r5mwyg.mjs";
24
24
  import {
25
25
  formatPairingCode
26
- } from "./main-fe213mzv.mjs";
26
+ } from "./main-z6catkjh.mjs";
27
27
  import {
28
28
  unpackedExtensionId
29
29
  } from "./main-b3jrctcx.mjs";
@@ -6,7 +6,7 @@ import {
6
6
  installedRuntime2,
7
7
  autoUpdateStatus,
8
8
  updateAvailable
9
- } from "./main-crp1q3fc.mjs";
9
+ } from "./main-20r5mwyg.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-ta9ada0v.mjs");
318
+ const { runInstalledUpdate } = await import("./runtime-update-kcb69zec.mjs");
319
319
  if (await runInstalledUpdate(args))
320
320
  return;
321
321
  if (compiledBinary()) {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  dataRoot,
6
6
  stateRoot
7
- } from "./main-crp1q3fc.mjs";
7
+ } from "./main-20r5mwyg.mjs";
8
8
 
9
9
  // src/relay/browser-pairing.ts
10
10
  import crypto from "node:crypto";
@@ -44,11 +44,11 @@ import {
44
44
  } from "./main-9t2s5ptx.mjs";
45
45
  import {
46
46
  opencodeBrowserVersion2
47
- } from "./main-603rctfb.mjs";
47
+ } from "./main-e04e7tq8.mjs";
48
48
  import {
49
49
  cliCommand,
50
50
  autoUpdateStatus
51
- } from "./main-crp1q3fc.mjs";
51
+ } from "./main-20r5mwyg.mjs";
52
52
  import"./main-b3jrctcx.mjs";
53
53
  import {
54
54
  option,
@@ -68,12 +68,12 @@ import {
68
68
  relayBuildProblem,
69
69
  ensureRelay,
70
70
  ensureExtensionConnected
71
- } from "./main-t2ra8msw.mjs";
71
+ } from "./main-f0fb6w1r.mjs";
72
72
  import"./main-azpzpy0x.mjs";
73
73
  import {
74
74
  updateJson2,
75
75
  createUpdateWatcher2
76
- } from "./main-fgbfjpxj.mjs";
76
+ } from "./main-qyybx132.mjs";
77
77
  import {
78
78
  settingSpecs,
79
79
  securityVariables,
@@ -154,12 +154,12 @@ import {
154
154
  toolResultForValue2,
155
155
  mcpErrorMessage2,
156
156
  toolResult
157
- } from "./main-gyshpgp0.mjs";
157
+ } from "./main-0kpp7g25.mjs";
158
158
  import {
159
159
  makeUnsafe,
160
160
  make3,
161
161
  listSecrets
162
- } from "./main-3tb9wvzk.mjs";
162
+ } from "./main-eddryg82.mjs";
163
163
  import {
164
164
  Clock,
165
165
  type,
@@ -174,7 +174,7 @@ import {
174
174
  orElse,
175
175
  exhaustive
176
176
  } from "./main-er120rjm.mjs";
177
- import"./main-0gp859we.mjs";
177
+ import"./main-0pajtjp7.mjs";
178
178
  import {
179
179
  hash,
180
180
  equals,
@@ -6,8 +6,8 @@ import {
6
6
  browseServerCommand,
7
7
  editAgentConfig,
8
8
  configureMcp
9
- } from "./main-ea13mqc5.mjs";
10
- import"./main-603rctfb.mjs";
9
+ } from "./main-pyb0ctee.mjs";
10
+ import"./main-e04e7tq8.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-crp1q3fc.mjs";
18
+ } from "./main-20r5mwyg.mjs";
19
19
  import"./main-azpzpy0x.mjs";
20
- import"./main-fe213mzv.mjs";
20
+ import"./main-z6catkjh.mjs";
21
21
  import"./main-b3jrctcx.mjs";
22
22
  import {
23
23
  legacyDataRoot,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  opencodeBrowserVersion2,
3
3
  opencodeBrowserBuildId2
4
- } from "./main-603rctfb.mjs";
4
+ } from "./main-e04e7tq8.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-crp1q3fc.mjs";
28
+ } from "./main-20r5mwyg.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-t2ra8msw.mjs";
105
+ } from "./main-f0fb6w1r.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-fe213mzv.mjs";
123
+ } from "./main-z6catkjh.mjs";
124
124
  import {
125
125
  makeUnsafe,
126
126
  terminateChildProcess,
@@ -142,16 +142,16 @@ import {
142
142
  checkNavigationUrl,
143
143
  readSecret,
144
144
  secretText
145
- } from "./main-3tb9wvzk.mjs";
145
+ } from "./main-eddryg82.mjs";
146
146
  import {
147
147
  defaultJournalBaseDir,
148
148
  makeJournalEntry,
149
149
  appendJournalEntry,
150
150
  startJournalRetention
151
- } from "./main-bp7vzt5w.mjs";
151
+ } from "./main-b28dee4n.mjs";
152
152
  import {
153
153
  createUpdateWatcher2
154
- } from "./main-fgbfjpxj.mjs";
154
+ } from "./main-qyybx132.mjs";
155
155
  import {
156
156
  SettingsInputError,
157
157
  parseSettingChanges,
@@ -159,13 +159,13 @@ import {
159
159
  settingsToExtension,
160
160
  describeSettings,
161
161
  describeChanges
162
- } from "./main-gyshpgp0.mjs";
162
+ } from "./main-0kpp7g25.mjs";
163
163
  import {
164
164
  relayHostname,
165
165
  isLocalPeer,
166
166
  installedDevExtension,
167
167
  syncDevExtension
168
- } from "./main-91nddz6e.mjs";
168
+ } from "./main-f175ksdp.mjs";
169
169
  import {
170
170
  legacyRoots
171
171
  } from "./main-ckssvk4c.mjs";
@@ -186,7 +186,7 @@ import {
186
186
  relayToken,
187
187
  secretsEqual,
188
188
  ensurePrivateDirectory
189
- } from "./main-0gp859we.mjs";
189
+ } from "./main-0pajtjp7.mjs";
190
190
  import {
191
191
  isNone,
192
192
  isSome,
@@ -3376,6 +3376,139 @@ function pageVisibleApiWarning(fn, receiver, _args) {
3376
3376
  return;
3377
3377
  }
3378
3378
 
3379
+ // src/execute-realm/cpu-scheduler.ts
3380
+ var REALM_SHARE = 2 / 3;
3381
+ var PACE_AFTER_MS = 8;
3382
+ var MAX_DEBT_MS = 250;
3383
+
3384
+ class ExecuteCpuScheduler {
3385
+ sliceMs;
3386
+ busyWindowMs;
3387
+ queues = new WeakMap;
3388
+ ready = new Set;
3389
+ queued = 0;
3390
+ debtMs = 0;
3391
+ lastExitAt = performance.now();
3392
+ depth = 0;
3393
+ pumping = false;
3394
+ timer;
3395
+ nextOrder = 0;
3396
+ constructor(sliceMs = executeSliceMs()) {
3397
+ this.sliceMs = sliceMs;
3398
+ this.busyWindowMs = sliceMs * 3;
3399
+ }
3400
+ get pending() {
3401
+ return this.queued;
3402
+ }
3403
+ schedule(realm, task) {
3404
+ if (realm.isStopped)
3405
+ return;
3406
+ if (this.queued === 0 && this.depth === 0 && this.owedMs() < PACE_AFTER_MS)
3407
+ return task();
3408
+ const queue = this.queueOf(realm);
3409
+ if (queue.tasks.length === 0) {
3410
+ queue.order = ++this.nextOrder;
3411
+ this.ready.add(queue);
3412
+ }
3413
+ queue.tasks.push(task);
3414
+ this.queued += 1;
3415
+ if (!this.pumping && this.timer === undefined)
3416
+ this.arm();
3417
+ }
3418
+ begin() {
3419
+ this.owedMs();
3420
+ this.depth += 1;
3421
+ }
3422
+ end(realm, cpu) {
3423
+ const now = performance.now();
3424
+ const cpuMs = (cpu.user + cpu.system) / 1000;
3425
+ this.depth -= 1;
3426
+ if (this.depth === 0)
3427
+ this.lastExitAt = now;
3428
+ this.debtMs = Math.min(MAX_DEBT_MS, this.debtMs + cpuMs * (1 - REALM_SHARE) / REALM_SHARE);
3429
+ const queue = this.queueOf(realm);
3430
+ queue.decayedCpuMs = this.decayedCpuMs(queue, now) + cpuMs;
3431
+ queue.decayedAt = now;
3432
+ const windowStart = now - this.busyWindowMs;
3433
+ queue.slices.push({ start: now - cpuMs, end: now });
3434
+ while (queue.slices.length > 0 && queue.slices[0].end <= windowStart)
3435
+ queue.slices.shift();
3436
+ let busyMs = 0;
3437
+ for (const slice of queue.slices)
3438
+ busyMs += slice.end - Math.max(slice.start, windowStart);
3439
+ return busyMs > this.busyWindowMs / 2;
3440
+ }
3441
+ forget(realm) {
3442
+ const queue = this.queues.get(realm);
3443
+ if (!queue)
3444
+ return;
3445
+ this.queues.delete(realm);
3446
+ this.ready.delete(queue);
3447
+ this.queued -= queue.tasks.length;
3448
+ queue.tasks.length = 0;
3449
+ if (this.queued === 0 && this.timer !== undefined) {
3450
+ clearTimeout(this.timer);
3451
+ this.timer = undefined;
3452
+ }
3453
+ }
3454
+ pump = () => {
3455
+ this.timer = undefined;
3456
+ this.pumping = true;
3457
+ try {
3458
+ while (this.queued > 0 && this.owedMs() < PACE_AFTER_MS) {
3459
+ const now = performance.now();
3460
+ let next;
3461
+ let nextCpuMs = 0;
3462
+ for (const queue2 of this.ready) {
3463
+ const cpuMs = this.decayedCpuMs(queue2, now);
3464
+ if (next === undefined || cpuMs < nextCpuMs || cpuMs === nextCpuMs && queue2.order < next.order) {
3465
+ next = queue2;
3466
+ nextCpuMs = cpuMs;
3467
+ }
3468
+ }
3469
+ const queue = next;
3470
+ const task = queue.tasks.shift();
3471
+ this.queued -= 1;
3472
+ if (queue.tasks.length === 0)
3473
+ this.ready.delete(queue);
3474
+ else
3475
+ queue.order = ++this.nextOrder;
3476
+ try {
3477
+ task();
3478
+ } catch (error) {
3479
+ queue.realm.dispose(error instanceof Error ? error : new Error("Execute callback failed"));
3480
+ }
3481
+ }
3482
+ } finally {
3483
+ this.pumping = false;
3484
+ if (this.queued > 0)
3485
+ this.arm();
3486
+ }
3487
+ };
3488
+ arm() {
3489
+ this.timer = setTimeout(this.pump, Math.max(1, Math.ceil(this.owedMs())));
3490
+ }
3491
+ owedMs() {
3492
+ if (this.depth > 0)
3493
+ return this.debtMs;
3494
+ const now = performance.now();
3495
+ this.debtMs = Math.max(0, this.debtMs - (now - this.lastExitAt));
3496
+ this.lastExitAt = now;
3497
+ return this.debtMs;
3498
+ }
3499
+ queueOf(realm) {
3500
+ const existing = this.queues.get(realm);
3501
+ if (existing)
3502
+ return existing;
3503
+ const queue = { realm, tasks: [], slices: [], decayedCpuMs: 0, decayedAt: 0, order: 0 };
3504
+ this.queues.set(realm, queue);
3505
+ return queue;
3506
+ }
3507
+ decayedCpuMs(queue, now) {
3508
+ return queue.decayedCpuMs * Math.exp((queue.decayedAt - now) / this.busyWindowMs);
3509
+ }
3510
+ }
3511
+
3379
3512
  // src/execute-realm/globals.ts
3380
3513
  import vm2 from "node:vm";
3381
3514
 
@@ -3745,18 +3878,26 @@ function installRealmGlobals(realm, target) {
3745
3878
  const id = ++realm.nextTimer;
3746
3879
  if (realm.stopped)
3747
3880
  return id;
3881
+ let queued = false;
3748
3882
  const fire = () => {
3883
+ queued = false;
3884
+ if (realm.stopped || !realm.timers.has(id))
3885
+ return;
3749
3886
  if (!repeat)
3750
3887
  realm.timers.delete(id);
3751
- if (realm.stopped)
3752
- return;
3753
3888
  try {
3754
3889
  callback(...args);
3755
3890
  } catch {
3756
3891
  realm.dispose(new Error("Execute timer callback failed; JavaScript state will reset before the next execute"));
3757
3892
  }
3758
3893
  };
3759
- realm.timers.set(id, (repeat ? setInterval : setTimeout)(fire, delay));
3894
+ const due = () => {
3895
+ if (queued)
3896
+ return;
3897
+ queued = true;
3898
+ realm.scheduler.schedule(realm, fire);
3899
+ };
3900
+ realm.timers.set(id, (repeat ? setInterval : setTimeout)(due, delay));
3760
3901
  return id;
3761
3902
  };
3762
3903
  const clear = (id) => {
@@ -3815,10 +3956,8 @@ class ExecuteRealm {
3815
3956
  forceProxy = new WeakSet;
3816
3957
  timers = new Map;
3817
3958
  nextTimer = 0;
3959
+ scheduler;
3818
3960
  entryDepth = 0;
3819
- sliceMs = executeSliceMs();
3820
- busyWindowMs = this.sliceMs * 3;
3821
- busySlices = [];
3822
3961
  stopped;
3823
3962
  pendingRuns = new Set;
3824
3963
  entryKey = `__execute_${crypto5.randomUUID().replaceAll("-", "")}`;
@@ -3830,6 +3969,7 @@ class ExecuteRealm {
3830
3969
  throw new this.SandboxError("import() is not available in execute code");
3831
3970
  };
3832
3971
  constructor(options = {}) {
3972
+ this.scheduler = options.scheduler ?? new ExecuteCpuScheduler;
3833
3973
  this.onHostCall = options.onHostCall;
3834
3974
  this.onUnhandledRejection = options.onUnhandledRejection;
3835
3975
  const importModuleDynamically = this.refuseDynamicImport;
@@ -3872,6 +4012,7 @@ class ExecuteRealm {
3872
4012
  for (const reject of this.pendingRuns)
3873
4013
  reject(error);
3874
4014
  this.pendingRuns.clear();
4015
+ this.scheduler.forget(this);
3875
4016
  }
3876
4017
  get isStopped() {
3877
4018
  return this.stopped !== undefined;
@@ -3893,12 +4034,13 @@ class ExecuteRealm {
3893
4034
  }
3894
4035
  const untrack = trackPromisesOf(this);
3895
4036
  this.entryDepth += 1;
4037
+ this.scheduler.begin();
3896
4038
  const startedAt = process.threadCpuUsage();
3897
4039
  try {
3898
- return this.entryScript.runInContext(this.context, { timeout: this.sliceMs });
4040
+ return this.entryScript.runInContext(this.context, { timeout: this.scheduler.sliceMs });
3899
4041
  } catch (error) {
3900
4042
  if (error?.code === "ERR_SCRIPT_EXECUTION_TIMEOUT") {
3901
- this.dispose(new Error(`Execute exceeded its synchronous CPU budget: JavaScript ran for over ${this.sliceMs}ms without yielding, which stalls every session on the relay. ` + "Likely causes: a loop that never ends, a slow regular expression, or converting a very large value. " + "Split heavy work into chunks separated by `await new Promise(r => setTimeout(r, 0))`, do it in the page with page.evaluate(), or return less data " + `(the relay's limit is ${executeSliceEnvironmentVariable}). JavaScript state will reset before the next execute.`));
4043
+ this.dispose(new Error(`Execute exceeded its synchronous CPU budget: JavaScript ran for over ${this.scheduler.sliceMs}ms without yielding, which stalls every session on the relay. ` + "Likely causes: a loop that never ends, a slow regular expression, or converting a very large value. " + "Split heavy work into chunks separated by `await new Promise(r => setTimeout(r, 0))`, do it in the page with page.evaluate(), or return less data " + `(the relay's limit is ${executeSliceEnvironmentVariable}). JavaScript state will reset before the next execute.`));
3902
4044
  throw this.stopped;
3903
4045
  }
3904
4046
  throw error;
@@ -3906,20 +4048,9 @@ class ExecuteRealm {
3906
4048
  this.entryDepth -= 1;
3907
4049
  untrack();
3908
4050
  Reflect.deleteProperty(this.global, this.entryKey);
3909
- this.chargeBusyTime(process.threadCpuUsage(startedAt));
3910
- }
3911
- }
3912
- chargeBusyTime(cpu) {
3913
- const now = performance.now();
3914
- const windowStart = now - this.busyWindowMs;
3915
- this.busySlices.push({ start: now - (cpu.user + cpu.system) / 1000, end: now });
3916
- while (this.busySlices.length > 0 && this.busySlices[0].end <= windowStart)
3917
- this.busySlices.shift();
3918
- let busyMs = 0;
3919
- for (const slice of this.busySlices)
3920
- busyMs += slice.end - Math.max(slice.start, windowStart);
3921
- if (busyMs > this.busyWindowMs / 2 && !this.stopped) {
3922
- this.dispose(new Error("Execute exceeded its sustained CPU budget: its callbacks and timers kept the relay's JavaScript busy more than half the time, which stalls every session on the relay. " + "Do heavy work in the page with page.evaluate(), or wait longer between timer or event callbacks. JavaScript state will reset before the next execute."));
4051
+ if (this.scheduler.end(this, process.threadCpuUsage(startedAt)) && !this.stopped) {
4052
+ this.dispose(new Error("Execute exceeded its sustained CPU budget: its callbacks and timers kept the relay's JavaScript busy more than half the time, which stalls every session on the relay. " + "Do heavy work in the page with page.evaluate(), or wait longer between timer or event callbacks. JavaScript state will reset before the next execute."));
4053
+ }
3923
4054
  }
3924
4055
  }
3925
4056
  drainMicrotasks() {
@@ -3947,11 +4078,19 @@ class ExecuteRealm {
3947
4078
  stopped.catch(() => {});
3948
4079
  this.pendingRuns.add(rejectRun);
3949
4080
  try {
3950
- const result = this.enter(() => {
3951
- const fn = new vm3.Script(options.source, { filename: options.filename, importModuleDynamically }).runInContext(this.context);
3952
- const args = options.args.map((value, index) => options.sandboxArgs?.has(index) ? options.sandboxArgs.get(index) : this.toSandbox(value));
3953
- return this.toHost(Reflect.apply(fn, undefined, args));
3954
- });
4081
+ if (this.stopped)
4082
+ throw this.stopped;
4083
+ const result = new Promise((resolve, reject) => this.scheduler.schedule(this, () => {
4084
+ try {
4085
+ resolve(this.enter(() => {
4086
+ const fn = new vm3.Script(options.source, { filename: options.filename, importModuleDynamically }).runInContext(this.context);
4087
+ const args = options.args.map((value, index) => options.sandboxArgs?.has(index) ? options.sandboxArgs.get(index) : this.toSandbox(value));
4088
+ return this.toHost(Reflect.apply(fn, undefined, args));
4089
+ }));
4090
+ } catch (error) {
4091
+ reject(error);
4092
+ }
4093
+ }));
3955
4094
  return await Promise.race([result, stopped]);
3956
4095
  } catch (error) {
3957
4096
  throw this.toHostThrown(error);
@@ -4059,7 +4198,7 @@ class ExecuteRealm {
4059
4198
  }
4060
4199
  toSandboxPromise(promise) {
4061
4200
  return new this.SandboxPromise((resolve, reject) => {
4062
- promise.then((value) => {
4201
+ promise.then((value) => this.scheduler.schedule(this, () => {
4063
4202
  if (this.stopped)
4064
4203
  return;
4065
4204
  try {
@@ -4069,7 +4208,7 @@ class ExecuteRealm {
4069
4208
  this.enter(() => reject(this.toSandboxThrown(error)));
4070
4209
  }
4071
4210
  this.drainMicrotasks();
4072
- }, (error) => {
4211
+ }), (error) => this.scheduler.schedule(this, () => {
4073
4212
  if (this.stopped)
4074
4213
  return;
4075
4214
  try {
@@ -4078,7 +4217,7 @@ class ExecuteRealm {
4078
4217
  this.dispose(failure instanceof Error ? failure : new Error("Execute promise callback failed"));
4079
4218
  }
4080
4219
  this.drainMicrotasks();
4081
- });
4220
+ }));
4082
4221
  });
4083
4222
  }
4084
4223
  toSandboxThrown(error) {
@@ -10790,7 +10929,8 @@ class ExecuteSandbox extends DefaultPageHost {
10790
10929
  onHostCall: (fn, receiver, args) => {
10791
10930
  this.addWarningOnce(pageVisibleApiWarning(fn, receiver, args));
10792
10931
  },
10793
- onUnhandledRejection: (warning) => this.addWarningOnce(warning)
10932
+ onUnhandledRejection: (warning) => this.addWarningOnce(warning),
10933
+ ...this.options.cpuScheduler ? { scheduler: this.options.cpuScheduler } : {}
10794
10934
  });
10795
10935
  }
10796
10936
  execute(code, options = {}) {
@@ -12864,6 +13004,7 @@ function isAutoNamedSession(id) {
12864
13004
  class OpenCodeBrowserSessions {
12865
13005
  endpointUrl;
12866
13006
  sessions = new Map;
13007
+ cpuScheduler = new ExecuteCpuScheduler;
12867
13008
  createSandbox;
12868
13009
  hooks;
12869
13010
  executing = new Set;
@@ -12875,7 +13016,7 @@ class OpenCodeBrowserSessions {
12875
13016
  executionContext;
12876
13017
  constructor(endpointUrl, createSandbox, hooks, targetOwnership) {
12877
13018
  this.endpointUrl = endpointUrl;
12878
- this.createSandbox = createSandbox ?? ((id, onDefaultTargetChange) => new ExecuteSandbox({ endpointUrl: this.endpointUrl, sessionId: id, onDefaultTargetChange }));
13019
+ this.createSandbox = createSandbox ?? ((id, onDefaultTargetChange) => new ExecuteSandbox({ endpointUrl: this.endpointUrl, sessionId: id, onDefaultTargetChange, cpuScheduler: this.cpuScheduler }));
12879
13020
  this.hooks = hooks ?? {};
12880
13021
  this.targetOwnership = targetOwnership ?? new MemoryTargetOwnership;
12881
13022
  this.admission = new SessionAdmission(this.sessions, this.hooks);
@@ -16068,6 +16209,9 @@ function createCdpDispatcher(options) {
16068
16209
  }
16069
16210
 
16070
16211
  // src/relay/commands.ts
16212
+ function isMissingTabError(error) {
16213
+ return /\bNo tab with (?:given )?id\b/.test(error.message);
16214
+ }
16071
16215
  function createExtensionCommands(options) {
16072
16216
  const { browsers } = options;
16073
16217
  const sendToBrowser = (link, command) => link.rpc.send(command).pipe(map5((result2) => {
@@ -16080,7 +16224,10 @@ function createExtensionCommands(options) {
16080
16224
  const owner = browsers.browserTab(tabId);
16081
16225
  if (!owner)
16082
16226
  return fail6(new Error("browse extension is not connected"));
16083
- return sendToBrowser(owner.link, { ...command, params: { ...command.params, tabId: owner.tabId } });
16227
+ return sendToBrowser(owner.link, { ...command, params: { ...command.params, tabId: owner.tabId } }).pipe(tapError((error) => sync2(() => {
16228
+ if (isMissingTabError(error))
16229
+ options.onTabGone?.(tabId, getString2(command.params, "method") ?? command.method);
16230
+ })));
16084
16231
  }
16085
16232
  const target = link ?? browsers.defaultLink();
16086
16233
  return target ? sendToBrowser(target, command) : fail6(new Error("browse extension is not connected"));
@@ -18376,7 +18523,7 @@ var makeRelay = fnUntraced(function* (options = {}) {
18376
18523
  catch: (cause) => new Error("Create the relay token", { cause })
18377
18524
  });
18378
18525
  const browsers = new BrowserLinks;
18379
- const { sendToExtension, sendExtensionBestEffort, sendToEveryBrowser, sendToEach, cleanupTabs } = createExtensionCommands({ browsers, registry });
18526
+ const { sendToExtension, sendExtensionBestEffort, sendToEveryBrowser, sendToEach, cleanupTabs } = createExtensionCommands({ browsers, registry, onTabGone: forgetMissingTab });
18380
18527
  const debugEnabled = yield* Boolean2("OPENCODE_BROWSER_DEBUG").pipe(withDefault(false));
18381
18528
  const debugLog = debugEnabled ? (line) => console.error(`[bc ${new Date().toISOString().slice(11, 23)}] ${line}`) : undefined;
18382
18529
  const contextDebugLog = debugLog ? (line) => debugLog(`[bc:ctx] ${line}`) : undefined;
@@ -18509,6 +18656,7 @@ var makeRelay = fnUntraced(function* (options = {}) {
18509
18656
  onDefaultTargetChange,
18510
18657
  allowedOrigins: () => sessions.allowedOrigins(id),
18511
18658
  drainGuardWarnings: () => navigationGuard.drainWarnings(id),
18659
+ cpuScheduler: sessions.cpuScheduler,
18512
18660
  isRecordingTarget: (targetId) => {
18513
18661
  const target = registry.targetsByTargetId.get(targetId);
18514
18662
  return target !== undefined && isTabRecorded(target.tabId);
@@ -18725,7 +18873,7 @@ var makeRelay = fnUntraced(function* (options = {}) {
18725
18873
  return;
18726
18874
  if (target.owner === "user")
18727
18875
  return yield* detachTab(target.tabId);
18728
- yield* sendToExtension({ method: "tabs.remove", params: { tabId: target.tabId } });
18876
+ yield* sendToExtension({ method: "tabs.remove", params: { tabId: target.tabId } }).pipe(catchIf(isMissingTabError, () => void_3));
18729
18877
  detachTargetState(target.tabId);
18730
18878
  });
18731
18879
  function clearTabRuntimeState(tabId) {
@@ -18764,6 +18912,14 @@ var makeRelay = fnUntraced(function* (options = {}) {
18764
18912
  cdpClients.detachTab(tabId, { destroyed: true });
18765
18913
  clearTabRuntimeState(tabId);
18766
18914
  }
18915
+ function forgetMissingTab(tabId, method) {
18916
+ if (!registry.routingRootTarget(tabId))
18917
+ return;
18918
+ relayLog("target.gone", { tabId, method });
18919
+ detachTargetState(tabId);
18920
+ const owner = browsers.browserTab(tabId);
18921
+ owner?.link.rpc.rejectDebuggerCommandsForTab(owner.tabId, new Error(`Target closed: tab ${tabId} no longer exists`));
18922
+ }
18767
18923
  function recordRootReplacement(change) {
18768
18924
  clearTabRuntimeState(change.target.tabId);
18769
18925
  contextDebugLog?.(`target-replaced kind=root old=${targetDiagnosticIdentity(registry, change.previous)} new=${targetDiagnosticIdentity(registry, change.target)}`);
@@ -1,4 +1,4 @@
1
- import"./main-603rctfb.mjs";
1
+ import"./main-e04e7tq8.mjs";
2
2
  import {
3
3
  cliCommand,
4
4
  installCommand,
@@ -15,17 +15,17 @@ import {
15
15
  registryUrl,
16
16
  fetchPublished,
17
17
  runInstaller
18
- } from "./main-crp1q3fc.mjs";
18
+ } from "./main-20r5mwyg.mjs";
19
19
  import"./main-b3jrctcx.mjs";
20
20
  import {
21
21
  Service,
22
22
  layerFetch,
23
23
  restartRelay,
24
24
  startManagedRelay
25
- } from "./main-t2ra8msw.mjs";
25
+ } from "./main-f0fb6w1r.mjs";
26
26
  import"./main-azpzpy0x.mjs";
27
27
  import"./main-9t2s5ptx.mjs";
28
- import"./main-0gp859we.mjs";
28
+ import"./main-0pajtjp7.mjs";
29
29
  import {
30
30
  succeed6,
31
31
  gen,
@@ -63,10 +63,10 @@ import {
63
63
  installRuntime,
64
64
  installedRuntime,
65
65
  manualMcpEntry
66
- } from "./main-ea13mqc5.mjs";
66
+ } from "./main-pyb0ctee.mjs";
67
67
  import {
68
68
  opencodeBrowserBuildId2
69
- } from "./main-603rctfb.mjs";
69
+ } from "./main-e04e7tq8.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-crp1q3fc.mjs";
86
+ } from "./main-20r5mwyg.mjs";
87
87
  import"./main-azpzpy0x.mjs";
88
88
  import {
89
89
  pairingCodeTtlMs,
@@ -97,7 +97,7 @@ import {
97
97
  revokeBrowserToken,
98
98
  legacyPairingCode,
99
99
  removeLegacyPairingCode
100
- } from "./main-fe213mzv.mjs";
100
+ } from "./main-z6catkjh.mjs";
101
101
  import {
102
102
  unpackedExtensionId,
103
103
  extensionProtocolSkew,
@@ -105,16 +105,16 @@ import {
105
105
  } from "./main-b3jrctcx.mjs";
106
106
  import {
107
107
  defaultSiteSecretsDir
108
- } from "./main-3tb9wvzk.mjs";
108
+ } from "./main-eddryg82.mjs";
109
109
  import {
110
110
  parseHostname,
111
111
  readRelayConfig,
112
112
  writeRelayConfig,
113
113
  syncDevExtension
114
- } from "./main-91nddz6e.mjs";
114
+ } from "./main-f175ksdp.mjs";
115
115
  import {
116
116
  relayAuthorization
117
- } from "./main-0gp859we.mjs";
117
+ } from "./main-0pajtjp7.mjs";
118
118
 
119
119
  // src/setup.ts
120
120
  import { mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync } from "node:fs";
@@ -1,9 +1,9 @@
1
- import"./main-603rctfb.mjs";
1
+ import"./main-e04e7tq8.mjs";
2
2
  import {
3
3
  entrySpawnCommand,
4
4
  installedRuntime2,
5
5
  installedVersion
6
- } from "./main-crp1q3fc.mjs";
6
+ } from "./main-20r5mwyg.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-5mmgcs8m.mjs");
36
+ const { runCli } = await import("./cli-q06pwacz.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-fgbfjpxj.mjs";
7
+ } from "./main-qyybx132.mjs";
8
8
  import"./main-b3jrctcx.mjs";
9
- import"./main-crp1q3fc.mjs";
10
- import"./main-603rctfb.mjs";
9
+ import"./main-20r5mwyg.mjs";
10
+ import"./main-e04e7tq8.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-603rctfb.mjs";
4
+ } from "./main-e04e7tq8.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.16-dev.128",
3
+ "version": "0.0.16-dev.130",
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.16-dev.128";
3
- var opencodeBrowserBuildId2 = "2026-11-08T14:33:32.684Z";
4
- export { opencodeBrowserVersion2, opencodeBrowserBuildId2 };