@opencode/browse 0.0.17-dev.169 → 0.0.17-dev.170

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.
Files changed (32) hide show
  1. package/dist/{Runtime-qfc1eg1n.mjs → Runtime-jrg7sc9p.mjs} +1 -1
  2. package/dist/{cli-zx7g8fek.mjs → cli-k6tgme5c.mjs} +48 -48
  3. package/dist/cli.mjs +14 -14
  4. package/dist/{helpers-nxtpzjhw.mjs → helpers-g8dsh6s5.mjs} +1 -1
  5. package/dist/{index-yaf37ery.mjs → index-j79y2me1.mjs} +2 -2
  6. package/dist/{legacy-runtime-rvcn5zs6.mjs → legacy-runtime-jj1srsz7.mjs} +4 -4
  7. package/dist/{main-4074weqb.mjs → main-048kx59h.mjs} +1 -1
  8. package/dist/{main-fs2ymcvd.mjs → main-0tr21dqs.mjs} +18 -18
  9. package/dist/{main-w80ghbx8.mjs → main-16tqhq5g.mjs} +1 -1
  10. package/dist/{main-6k1dq78p.mjs → main-32h1fmkw.mjs} +3 -3
  11. package/dist/{main-rvmzfmb7.mjs → main-3g0xky5y.mjs} +5 -5
  12. package/dist/{main-9bk4pprj.mjs → main-3mhynene.mjs} +1 -1
  13. package/dist/{main-dwjfhfpm.mjs → main-43k95nh0.mjs} +1 -1
  14. package/dist/{main-wf904nhj.mjs → main-63xjd6ts.mjs} +2 -2
  15. package/dist/{main-sx7qpdfw.mjs → main-8k9qykpa.mjs} +3 -3
  16. package/dist/{main-m3xnn0cx.mjs → main-99dxg777.mjs} +4 -4
  17. package/dist/{main-gbq7c729.mjs → main-apebcva2.mjs} +3 -3
  18. package/dist/main-dsx1pjp8.mjs +4 -0
  19. package/dist/{main-h55dwr1s.mjs → main-e17wqzky.mjs} +2 -2
  20. package/dist/{main-v6hzbxjd.mjs → main-f98q5tcf.mjs} +12 -12
  21. package/dist/{main-jf7jberd.mjs → main-s3g4jwx5.mjs} +41 -41
  22. package/dist/{main-xycdhwqs.mjs → main-wpt5ha44.mjs} +23 -23
  23. package/dist/{mcp-37b0xgq0.mjs → mcp-85av73hq.mjs} +60 -60
  24. package/dist/{migrate-49s4pykq.mjs → migrate-1vqatsz2.mjs} +4 -4
  25. package/dist/{relay-jkgh5rzg.mjs → relay-xkw8xs4k.mjs} +107 -62
  26. package/dist/{runtime-update-9d3dsv6t.mjs → runtime-update-ny5cgrba.mjs} +7 -7
  27. package/dist/{setup-74nz1gqg.mjs → setup-18revp9m.mjs} +7 -7
  28. package/dist/{supervisor-5pjptkgz.mjs → supervisor-93fvdjav.mjs} +3 -3
  29. package/dist/{update-n4sw8eht.mjs → update-y6xqxqww.mjs} +3 -3
  30. package/dist/{version-2cadxvsa.mjs → version-ngzs1vvq.mjs} +1 -1
  31. package/package.json +1 -1
  32. package/dist/main-9xbcy9q0.mjs +0 -4
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  opencodeBrowserVersion2,
6
6
  opencodeBrowserBuildId2
7
- } from "./main-9xbcy9q0.mjs";
7
+ } from "./main-dsx1pjp8.mjs";
8
8
  import {
9
9
  defaultRoots,
10
10
  configRoot2,
@@ -28,7 +28,7 @@ import {
28
28
  setStoredMode,
29
29
  autoUpdateStatus,
30
30
  createAutoUpdater
31
- } from "./main-gbq7c729.mjs";
31
+ } from "./main-apebcva2.mjs";
32
32
  import {
33
33
  extensionProtocolVersion,
34
34
  minExtensionProtocolVersion,
@@ -52,6 +52,7 @@ import {
52
52
  writePrivateJsonFileSync
53
53
  } from "./main-4h7rfhhr.mjs";
54
54
  import {
55
+ map,
55
56
  withDefault,
56
57
  option,
57
58
  String2,
@@ -107,7 +108,7 @@ import {
107
108
  dataUrlDocument2,
108
109
  appendManagedRelayProcessLog,
109
110
  relayLog
110
- } from "./main-fs2ymcvd.mjs";
111
+ } from "./main-0tr21dqs.mjs";
111
112
  import {
112
113
  context,
113
114
  pendingPairingCodeKeys,
@@ -125,7 +126,7 @@ import {
125
126
  pairingSessionKey,
126
127
  sessionProof,
127
128
  wrapToken
128
- } from "./main-dwjfhfpm.mjs";
129
+ } from "./main-43k95nh0.mjs";
129
130
  import {
130
131
  makeUnsafe,
131
132
  terminateChildProcess,
@@ -148,16 +149,16 @@ import {
148
149
  checkNavigationUrl,
149
150
  readSecret,
150
151
  secretText
151
- } from "./main-sx7qpdfw.mjs";
152
+ } from "./main-8k9qykpa.mjs";
152
153
  import {
153
154
  defaultJournalBaseDir,
154
155
  makeJournalEntry,
155
156
  appendJournalEntry,
156
157
  startJournalRetention
157
- } from "./main-m3xnn0cx.mjs";
158
+ } from "./main-99dxg777.mjs";
158
159
  import {
159
160
  createUpdateWatcher2
160
- } from "./main-h55dwr1s.mjs";
161
+ } from "./main-e17wqzky.mjs";
161
162
  import {
162
163
  SettingsInputError,
163
164
  parseSettingChanges,
@@ -165,31 +166,31 @@ import {
165
166
  settingsToExtension,
166
167
  describeSettings,
167
168
  describeChanges
168
- } from "./main-rvmzfmb7.mjs";
169
+ } from "./main-3g0xky5y.mjs";
169
170
  import {
170
171
  relayHostname,
171
172
  isLocalPeer,
172
173
  installedDevExtension,
173
174
  syncDevExtension
174
- } from "./main-wf904nhj.mjs";
175
+ } from "./main-63xjd6ts.mjs";
175
176
  import {
176
177
  currentTimeMillis,
177
178
  value,
178
179
  when,
179
180
  orElse,
180
181
  exhaustive
181
- } from "./main-4074weqb.mjs";
182
+ } from "./main-048kx59h.mjs";
182
183
  import {
183
184
  relayTokenQueryParam,
184
185
  relayToken,
185
186
  secretsEqual,
186
187
  ensurePrivateDirectory
187
- } from "./main-w80ghbx8.mjs";
188
+ } from "./main-16tqhq5g.mjs";
188
189
  import {
189
190
  join,
190
191
  interrupt,
191
192
  makeUnsafe2
192
- } from "./main-jf7jberd.mjs";
193
+ } from "./main-s3g4jwx5.mjs";
193
194
  import {
194
195
  taggedEnum,
195
196
  is2,
@@ -210,7 +211,7 @@ import {
210
211
  Int2,
211
212
  Defect,
212
213
  TaggedError2
213
- } from "./main-v6hzbxjd.mjs";
214
+ } from "./main-f98q5tcf.mjs";
214
215
  import {
215
216
  isNone,
216
217
  isSome,
@@ -252,7 +253,7 @@ import {
252
253
  tap,
253
254
  result,
254
255
  exit,
255
- map5,
256
+ map6,
256
257
  asVoid2,
257
258
  catch_,
258
259
  catchCause,
@@ -289,7 +290,7 @@ import {
289
290
  runSync,
290
291
  fnUntraced,
291
292
  fn
292
- } from "./main-xycdhwqs.mjs";
293
+ } from "./main-wpt5ha44.mjs";
293
294
  import {
294
295
  isString,
295
296
  isNumber,
@@ -1866,6 +1867,7 @@ function safePageUrl(page) {
1866
1867
 
1867
1868
  // src/execute/page-recovery.ts
1868
1869
  var playwrightCloseTimeoutMs = 2000;
1870
+ var defaultActionTimeoutMs = 30000;
1869
1871
  var playwrightConnectTimeoutMs = 15000;
1870
1872
  var adoptedPageConnectTimeoutMs = 8000;
1871
1873
  var sessionPageHealthCheckTimeoutMs = 3000;
@@ -2118,11 +2120,11 @@ async function waitForExactTarget(options) {
2118
2120
  await (options.delay ?? delay)(retryInMs);
2119
2121
  }
2120
2122
  }
2121
- function installClosedPageReplacementGuard(page, clearRecreatedFromClosedUrl) {
2123
+ function installClosedPageReplacementGuard(page, clearRecreatedFromClosedUrl, actionTimeoutMs = () => defaultActionTimeoutMs) {
2122
2124
  page.setDefaultTimeout?.(2500);
2123
2125
  const restoreTimeout = () => {
2124
2126
  clearRecreatedFromClosedUrl();
2125
- page.setDefaultTimeout?.(30000);
2127
+ page.setDefaultTimeout?.(actionTimeoutMs());
2126
2128
  };
2127
2129
  if (typeof page.goto === "function") {
2128
2130
  const originalGoto = page.goto.bind(page);
@@ -7061,6 +7063,9 @@ class DefaultPageHost {
7061
7063
  explicitMediaFeatures = new Map;
7062
7064
  explicitMedia;
7063
7065
  pendingWarnings = [];
7066
+ actionTimeoutMs = defaultActionTimeoutMs;
7067
+ actionTimeoutPages = new Set;
7068
+ actionTimeoutGuardedPage;
7064
7069
  boundPageListeners;
7065
7070
  onDefaultTargetChangeOption;
7066
7071
  pageHealthCheckTimeoutMsOption;
@@ -7072,6 +7077,24 @@ class DefaultPageHost {
7072
7077
  if (warning && !this.pendingWarnings.includes(warning))
7073
7078
  this.pendingWarnings.push(warning);
7074
7079
  }
7080
+ applyActionTimeout(page) {
7081
+ this.actionTimeoutPages.add(page);
7082
+ if (page === this.actionTimeoutGuardedPage)
7083
+ return;
7084
+ page.setDefaultTimeout?.(this.actionTimeoutMs);
7085
+ }
7086
+ restoreActionTimeout() {
7087
+ this.actionTimeoutMs = defaultActionTimeoutMs;
7088
+ for (const page of this.actionTimeoutPages) {
7089
+ if (page !== this.actionTimeoutGuardedPage)
7090
+ page.setDefaultTimeout?.(this.actionTimeoutMs);
7091
+ }
7092
+ this.actionTimeoutPages.clear();
7093
+ }
7094
+ releaseActionTimeoutGuard(page) {
7095
+ if (this.actionTimeoutGuardedPage === page)
7096
+ this.actionTimeoutGuardedPage = undefined;
7097
+ }
7075
7098
  unbindDefaultPage(targetId, options = {}) {
7076
7099
  this.clearPageListeners();
7077
7100
  this.page = undefined;
@@ -7142,6 +7165,7 @@ class DefaultPageHost {
7142
7165
  bindDefaultPage(page, targetId, ownsPage, notify) {
7143
7166
  this.clearPageListeners();
7144
7167
  this.page = page;
7168
+ this.applyActionTimeout(page);
7145
7169
  if (targetId === undefined || targetId !== this.defaultPageTargetId) {
7146
7170
  this.pageCrashed = false;
7147
7171
  this.pageProtectedUi = false;
@@ -7169,7 +7193,8 @@ class DefaultPageHost {
7169
7193
  if (this.page === page && frame === page.mainFrame()) {
7170
7194
  this.pageCrashed = false;
7171
7195
  this.recordNonBlankUrl(frame.url());
7172
- page.setDefaultTimeout?.(30000);
7196
+ this.releaseActionTimeoutGuard(page);
7197
+ page.setDefaultTimeout?.(this.actionTimeoutMs);
7173
7198
  if (this.explicitMediaFeatures.size > 0) {
7174
7199
  applyExplicitMediaFeatures(page, this.explicitMedia, this.explicitMediaFeatures);
7175
7200
  }
@@ -7266,9 +7291,11 @@ class DefaultPageHost {
7266
7291
  const targetId = await resolvePageTargetId(page);
7267
7292
  this.bindDefaultPage(page, targetId, true, true);
7268
7293
  if (this.recreatedFromClosedUrl) {
7294
+ this.actionTimeoutGuardedPage = page;
7269
7295
  installClosedPageReplacementGuard(page, () => {
7270
7296
  this.recreatedFromClosedUrl = undefined;
7271
- });
7297
+ this.releaseActionTimeoutGuard(page);
7298
+ }, () => this.actionTimeoutMs);
7272
7299
  }
7273
7300
  return page;
7274
7301
  }
@@ -11388,6 +11415,7 @@ class ExecuteSandbox extends DefaultPageHost {
11388
11415
  snapshotRefs = { selectors: new Map };
11389
11416
  networkCapture = new Recorder;
11390
11417
  secrets;
11418
+ actionTimeoutContext;
11391
11419
  realm;
11392
11420
  state;
11393
11421
  constructor(options) {
@@ -11419,41 +11447,48 @@ class ExecuteSandbox extends DefaultPageHost {
11419
11447
  execute(code, options = {}) {
11420
11448
  return tryPromise({
11421
11449
  try: async () => {
11422
- if (this.realm?.isStopped) {
11423
- this.realm = this.createRealm();
11424
- this.state = this.realm.state;
11425
- this.pendingWarnings.push("The previous execute realm stopped; JavaScript state and pending callbacks were reset.");
11450
+ this.actionTimeoutMs = options.actionTimeoutMs ?? defaultActionTimeoutMs;
11451
+ try {
11452
+ if (this.realm?.isStopped) {
11453
+ this.realm = this.createRealm();
11454
+ this.state = this.realm.state;
11455
+ this.pendingWarnings.push("The previous execute realm stopped; JavaScript state and pending callbacks were reset.");
11456
+ }
11457
+ if (!this.realm)
11458
+ for (const warning of pageVisibleApiSourceWarnings(code))
11459
+ this.addWarningOnce(warning);
11460
+ const globals = await this.getGlobals(options);
11461
+ const { result, logs, logSummary, aftermath } = await runUserCode({
11462
+ code,
11463
+ globals,
11464
+ ...this.realm ? { realm: this.realm } : {},
11465
+ onUnhandledRejection: (warning) => this.addWarningOnce(warning)
11466
+ }).then(async (completed) => ({ ...completed, aftermath: await this.withChallenge(globals.page, completed.aftermath, false) })).catch(async (error) => {
11467
+ if (!(error instanceof ExecuteCodeError) || !error.aftermath)
11468
+ throw error;
11469
+ throw new ExecuteCodeError(error.originalError, error.logs, error.logSummary, await this.withChallenge(globals.page, error.aftermath, true));
11470
+ });
11471
+ await this.networkCapture.settleForOutput();
11472
+ const extracted = extractExecuteMedia(result);
11473
+ const redactedValue = this.secrets.redactOutputValue(extracted.value);
11474
+ const jsonSafeResult = toJsonSafeValue(redactedValue);
11475
+ const bounded = boundExecuteResult(stringifyResult(redactedValue), jsonSafeResult.serializable ? jsonSafeResult.value : undefined, jsonSafeResult.serializable);
11476
+ const warnings = this.finalizeWarnings(logSummary, jsonValueWarning(redactedValue, jsonSafeResult), bounded.warning);
11477
+ return {
11478
+ text: bounded.text,
11479
+ ...bounded.hasValue ? { value: bounded.value } : {},
11480
+ ...extracted.media.length > 0 ? { media: extracted.media } : {},
11481
+ isError: false,
11482
+ logs: this.secrets.redactCaptureLogs(logs),
11483
+ logSummary,
11484
+ warnings,
11485
+ aftermath: this.secrets.redactCaptureAftermath(aftermath)
11486
+ };
11487
+ } finally {
11488
+ this.restoreActionTimeout();
11489
+ this.actionTimeoutContext?.setDefaultTimeout?.(defaultActionTimeoutMs);
11490
+ this.actionTimeoutContext = undefined;
11426
11491
  }
11427
- if (!this.realm)
11428
- for (const warning of pageVisibleApiSourceWarnings(code))
11429
- this.addWarningOnce(warning);
11430
- const globals = await this.getGlobals(options);
11431
- const { result, logs, logSummary, aftermath } = await runUserCode({
11432
- code,
11433
- globals,
11434
- ...this.realm ? { realm: this.realm } : {},
11435
- onUnhandledRejection: (warning) => this.addWarningOnce(warning)
11436
- }).then(async (completed) => ({ ...completed, aftermath: await this.withChallenge(globals.page, completed.aftermath, false) })).catch(async (error) => {
11437
- if (!(error instanceof ExecuteCodeError) || !error.aftermath)
11438
- throw error;
11439
- throw new ExecuteCodeError(error.originalError, error.logs, error.logSummary, await this.withChallenge(globals.page, error.aftermath, true));
11440
- });
11441
- await this.networkCapture.settleForOutput();
11442
- const extracted = extractExecuteMedia(result);
11443
- const redactedValue = this.secrets.redactOutputValue(extracted.value);
11444
- const jsonSafeResult = toJsonSafeValue(redactedValue);
11445
- const bounded = boundExecuteResult(stringifyResult(redactedValue), jsonSafeResult.serializable ? jsonSafeResult.value : undefined, jsonSafeResult.serializable);
11446
- const warnings = this.finalizeWarnings(logSummary, jsonValueWarning(redactedValue, jsonSafeResult), bounded.warning);
11447
- return {
11448
- text: bounded.text,
11449
- ...bounded.hasValue ? { value: bounded.value } : {},
11450
- ...extracted.media.length > 0 ? { media: extracted.media } : {},
11451
- isError: false,
11452
- logs: this.secrets.redactCaptureLogs(logs),
11453
- logSummary,
11454
- warnings,
11455
- aftermath: this.secrets.redactCaptureAftermath(aftermath)
11456
- };
11457
11492
  },
11458
11493
  catch: (cause) => {
11459
11494
  if (cause instanceof ExecuteCodeError) {
@@ -11710,6 +11745,9 @@ class ExecuteSandbox extends DefaultPageHost {
11710
11745
  page = await this.getSessionPage({ context, ...targetSelection ? { targetSelection } : {} });
11711
11746
  }
11712
11747
  installPageReadTimeout(page);
11748
+ this.actionTimeoutContext = context;
11749
+ context.setDefaultTimeout?.(this.actionTimeoutMs);
11750
+ this.applyActionTimeout(page);
11713
11751
  installViewportZoomGuard({
11714
11752
  page,
11715
11753
  explicitMediaFeatures: this.explicitMediaFeatures,
@@ -13404,7 +13442,9 @@ function executeInSession(ctx, options) {
13404
13442
  yield* ctx.setExecuting(session.id, true);
13405
13443
  const stopSignal = makeUnsafe4();
13406
13444
  const released = makeUnsafe4();
13407
- const effectiveTimeoutMs = options.timeoutMs ?? ctx.hooks.executeTimeoutMs ?? defaultExecuteTimeoutMs;
13445
+ const chosenTimeoutMs = options.timeoutMs ?? ctx.hooks.executeTimeoutMs;
13446
+ const effectiveTimeoutMs = chosenTimeoutMs ?? defaultExecuteTimeoutMs;
13447
+ const actionTimeoutMs = chosenTimeoutMs === undefined ? undefined : chosenTimeoutMs === 0 ? 0 : Math.max(30000, chosenTimeoutMs);
13408
13448
  let deadline;
13409
13449
  const stopRunning = (message, diagnostic) => {
13410
13450
  deadline?.cancel();
@@ -13428,8 +13468,11 @@ function executeInSession(ctx, options) {
13428
13468
  let forced = false;
13429
13469
  const startedAt = Date.now();
13430
13470
  const result = yield* gen(function* () {
13431
- const script = yield* session.sandbox.execute(options.code, { ...options.targetSelection ? { targetSelection: options.targetSelection } : {} }).pipe(forkDetach({ startImmediately: true }));
13432
- const first = yield* raceFirst(join(script).pipe(map5((value) => ({ settled: true, value }))), _await(stopSignal).pipe(map5((stop) => ({ settled: false, stop }))));
13471
+ const script = yield* session.sandbox.execute(options.code, {
13472
+ ...options.targetSelection ? { targetSelection: options.targetSelection } : {},
13473
+ ...actionTimeoutMs === undefined ? {} : { actionTimeoutMs }
13474
+ }).pipe(forkDetach({ startImmediately: true }));
13475
+ const first = yield* raceFirst(join(script).pipe(map6((value) => ({ settled: true, value }))), _await(stopSignal).pipe(map6((stop) => ({ settled: false, stop }))));
13433
13476
  if (first.settled)
13434
13477
  return first.value;
13435
13478
  yield* ctx.endStoppedScript(session);
@@ -13743,7 +13786,7 @@ class OpenCodeBrowserSessions {
13743
13786
  const session = this.sessions.get(id);
13744
13787
  if (!session)
13745
13788
  return succeed6(false);
13746
- return session.sandbox.networkEnd(reason).pipe(map5(({ cancelled }) => cancelled));
13789
+ return session.sandbox.networkEnd(reason).pipe(map6(({ cancelled }) => cancelled));
13747
13790
  }
13748
13791
  collectSessionIds(matches) {
13749
13792
  const affectedSessionIds = [];
@@ -13950,7 +13993,7 @@ class OpenCodeBrowserSessions {
13950
13993
  targetIds.add(session.target.id);
13951
13994
  if (Array.from(targetIds).some((id) => options.isTargetBusy?.(id)))
13952
13995
  continue;
13953
- const done = yield* manager.delete(session.id).pipe(map5((result) => result.deleted), orElseSucceed(() => false));
13996
+ const done = yield* manager.delete(session.id).pipe(map6((result) => result.deleted), orElseSucceed(() => false));
13954
13997
  if (done)
13955
13998
  reaped.push(session.id);
13956
13999
  }
@@ -16705,7 +16748,7 @@ function isMissingTabError(error) {
16705
16748
  }
16706
16749
  function createExtensionCommands(options) {
16707
16750
  const { browsers } = options;
16708
- const sendToBrowser = (link, command) => link.rpc.send(command).pipe(map5((result2) => {
16751
+ const sendToBrowser = (link, command) => link.rpc.send(command).pipe(map6((result2) => {
16709
16752
  const tabId = getNumber2(result2, "tabId");
16710
16753
  return tabId === undefined ? result2 : { ...result2, tabId: browsers.relayTabId(link, tabId) };
16711
16754
  }));
@@ -17937,7 +17980,7 @@ function createRelaySettingsSync(options) {
17937
17980
  sendRelaySettings();
17938
17981
  };
17939
17982
  const httpSettings = {
17940
- get: () => extensionSettings("settings.get").pipe(map5((stored) => describeSettings(withRelaySettings(stored), userSettingOverrides()))),
17983
+ get: () => extensionSettings("settings.get").pipe(map6((stored) => describeSettings(withRelaySettings(stored), userSettingOverrides()))),
17941
17984
  set: (input) => gen(function* () {
17942
17985
  const requested = yield* try_2({
17943
17986
  try: () => parseSettingChanges(input),
@@ -18989,6 +19032,7 @@ class TabActivity {
18989
19032
  }
18990
19033
 
18991
19034
  // src/relay.ts
19035
+ var configuredExecuteTimeoutMs = Int("OPENCODE_BROWSER_EXECUTE_TIMEOUT_MS").pipe(option, map(getOrUndefined));
18992
19036
  var startRelay = fn("Relay.start")(function* (options = {}) {
18993
19037
  yield* installRelayProcessGuard;
18994
19038
  return yield* acquireRelease(makeRelay(options), (server) => server.close());
@@ -19136,7 +19180,7 @@ var makeRelay = fnUntraced(function* (options = {}) {
19136
19180
  browsersChanged,
19137
19181
  cdpClientCount: () => cdpClients.size
19138
19182
  });
19139
- const executeTimeoutMs = yield* Int("OPENCODE_BROWSER_EXECUTE_TIMEOUT_MS").pipe(withDefault(defaultExecuteTimeoutMs));
19183
+ const executeTimeoutMs = yield* configuredExecuteTimeoutMs;
19140
19184
  const keepaliveIntervalMs = yield* Int("OPENCODE_BROWSER_KEEPALIVE_MS").pipe(withDefault(20000));
19141
19185
  const idleTabTtlMs = yield* Int("OPENCODE_BROWSER_IDLE_TAB_TTL_MS").pipe(withDefault(15 * 60000));
19142
19186
  const journalBaseDir = defaultJournalBaseDir();
@@ -19171,7 +19215,7 @@ var makeRelay = fnUntraced(function* (options = {}) {
19171
19215
  },
19172
19216
  targetBrowserKey: (tabId) => browsers.ownerKey(tabId),
19173
19217
  getUserAttachedPageUrls: (session) => registry.listRootTargets().filter((target) => target.owner === "user" && browsers.ownerKey(target.tabId) === session.browser?.key).map((target) => target.targetInfo.url || "about:blank"),
19174
- executeTimeoutMs,
19218
+ ...executeTimeoutMs === undefined ? {} : { executeTimeoutMs },
19175
19219
  onExecuteStateChange: (sessionId, executing) => presentation.onSessionExecuteStateChange(sessionId, executing),
19176
19220
  onExecuteRecord: (record) => {
19177
19221
  const entry = makeJournalEntry({
@@ -19647,6 +19691,7 @@ var makeRelay = fnUntraced(function* (options = {}) {
19647
19691
  };
19648
19692
  });
19649
19693
  export {
19694
+ configuredExecuteTimeoutMs,
19650
19695
  handleRelayProcessFault,
19651
19696
  isBenignClosedSessionRejection,
19652
19697
  relayProcessFaultSummary,
@@ -1,6 +1,6 @@
1
- import"./main-9bk4pprj.mjs";
1
+ import"./main-3mhynene.mjs";
2
2
  import"./main-pmfd055v.mjs";
3
- import"./main-9xbcy9q0.mjs";
3
+ import"./main-dsx1pjp8.mjs";
4
4
  import {
5
5
  cliCommand,
6
6
  installCommand,
@@ -18,17 +18,17 @@ import {
18
18
  registryUrl,
19
19
  fetchPublished,
20
20
  runInstaller
21
- } from "./main-gbq7c729.mjs";
21
+ } from "./main-apebcva2.mjs";
22
22
  import"./main-b3jrctcx.mjs";
23
23
  import {
24
24
  Service,
25
25
  layerFetch,
26
26
  restartRelay,
27
27
  startManagedRelay
28
- } from "./main-fs2ymcvd.mjs";
28
+ } from "./main-0tr21dqs.mjs";
29
29
  import"./main-4h7rfhhr.mjs";
30
- import"./main-jf7jberd.mjs";
31
- import"./main-w80ghbx8.mjs";
30
+ import"./main-s3g4jwx5.mjs";
31
+ import"./main-16tqhq5g.mjs";
32
32
  import {
33
33
  succeed6,
34
34
  gen,
@@ -36,7 +36,7 @@ import {
36
36
  catch_,
37
37
  provide3,
38
38
  runPromise
39
- } from "./main-xycdhwqs.mjs";
39
+ } from "./main-wpt5ha44.mjs";
40
40
 
41
41
  // src/update/runtime-update.ts
42
42
  var log = (line) => process.stdout.write(line + `
@@ -63,11 +63,11 @@ import {
63
63
  installRuntime,
64
64
  installedRuntime,
65
65
  manualMcpEntry
66
- } from "./main-6k1dq78p.mjs";
66
+ } from "./main-32h1fmkw.mjs";
67
67
  import"./main-pmfd055v.mjs";
68
68
  import {
69
69
  opencodeBrowserBuildId2
70
- } from "./main-9xbcy9q0.mjs";
70
+ } from "./main-dsx1pjp8.mjs";
71
71
  import {
72
72
  installedBinaryPath,
73
73
  installerBinaryPath,
@@ -84,7 +84,7 @@ import {
84
84
  autoUpdateStatus,
85
85
  describeAutoUpdate,
86
86
  runCommand
87
- } from "./main-gbq7c729.mjs";
87
+ } from "./main-apebcva2.mjs";
88
88
  import"./main-4h7rfhhr.mjs";
89
89
  import {
90
90
  pairingCodeTtlMs,
@@ -98,7 +98,7 @@ import {
98
98
  revokeBrowserToken,
99
99
  legacyPairingCode,
100
100
  removeLegacyPairingCode
101
- } from "./main-dwjfhfpm.mjs";
101
+ } from "./main-43k95nh0.mjs";
102
102
  import {
103
103
  unpackedExtensionId,
104
104
  extensionProtocolSkew,
@@ -107,16 +107,16 @@ import {
107
107
  import"./main-tk4axre7.mjs";
108
108
  import {
109
109
  defaultSiteSecretsDir
110
- } from "./main-sx7qpdfw.mjs";
110
+ } from "./main-8k9qykpa.mjs";
111
111
  import {
112
112
  parseHostname,
113
113
  readRelayConfig,
114
114
  writeRelayConfig,
115
115
  syncDevExtension
116
- } from "./main-wf904nhj.mjs";
116
+ } from "./main-63xjd6ts.mjs";
117
117
  import {
118
118
  relayAuthorization
119
- } from "./main-w80ghbx8.mjs";
119
+ } from "./main-16tqhq5g.mjs";
120
120
 
121
121
  // src/setup.ts
122
122
  import { mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync } from "node:fs";
@@ -1,10 +1,10 @@
1
1
  import"./main-pmfd055v.mjs";
2
- import"./main-9xbcy9q0.mjs";
2
+ import"./main-dsx1pjp8.mjs";
3
3
  import {
4
4
  entrySpawnCommand,
5
5
  installedRuntime2,
6
6
  installedVersion
7
- } from "./main-gbq7c729.mjs";
7
+ } from "./main-apebcva2.mjs";
8
8
 
9
9
  // src/mcp/supervisor.ts
10
10
  import { spawn } from "node:child_process";
@@ -35,7 +35,7 @@ async function runBinaryMcp(args) {
35
35
  const runtime = installedRuntime2();
36
36
  if (!runtime || runtime.kind === "npx") {
37
37
  process.env[directEnvironmentVariable] = "1";
38
- const { runCli } = await import("./cli-zx7g8fek.mjs");
38
+ const { runCli } = await import("./cli-k6tgme5c.mjs");
39
39
  return runCli();
40
40
  }
41
41
  const REPLAY = `opencode-browser-shim-initialize-${randomUUID()}`;
@@ -4,11 +4,11 @@ import {
4
4
  updateNotice2,
5
5
  createUpdateWatcher2,
6
6
  runUpdateCommand2
7
- } from "./main-h55dwr1s.mjs";
7
+ } from "./main-e17wqzky.mjs";
8
8
  import"./main-b3jrctcx.mjs";
9
- import"./main-gbq7c729.mjs";
9
+ import"./main-apebcva2.mjs";
10
10
  import"./main-pmfd055v.mjs";
11
- import"./main-9xbcy9q0.mjs";
11
+ import"./main-dsx1pjp8.mjs";
12
12
  export {
13
13
  createUpdateWatcher2 as createUpdateWatcher,
14
14
  formatUpdateNotice2 as formatUpdateNotice,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  opencodeBrowserVersion2,
3
3
  opencodeBrowserBuildId2
4
- } from "./main-9xbcy9q0.mjs";
4
+ } from "./main-dsx1pjp8.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.169",
3
+ "version": "0.0.17-dev.170",
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.169";
3
- var opencodeBrowserBuildId2 = "2026-11-10T20:46:59.239Z";
4
- export { opencodeBrowserVersion2, opencodeBrowserBuildId2 };