@opencode/browse 0.0.17-dev.171 → 0.0.17-dev.173

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 (27) hide show
  1. package/dist/{cli-n2yqdpef.mjs → cli-ds3gq86g.mjs} +12 -12
  2. package/dist/cli.mjs +12 -12
  3. package/dist/{helpers-na4s8h8f.mjs → helpers-s2be8ebj.mjs} +1 -1
  4. package/dist/{legacy-runtime-pef5jajn.mjs → legacy-runtime-gew3ch6c.mjs} +4 -4
  5. package/dist/{main-t8c7aq8b.mjs → main-27xsa26m.mjs} +3 -3
  6. package/dist/{main-qq7x2tgn.mjs → main-6jn8tyqn.mjs} +2 -2
  7. package/dist/{main-5snyxk65.mjs → main-837bcecf.mjs} +2 -2
  8. package/dist/{main-6q5nqhy7.mjs → main-adrphbht.mjs} +1 -1
  9. package/dist/{main-x9vdxj9f.mjs → main-ck044wh3.mjs} +3 -3
  10. package/dist/{main-3gx5fe95.mjs → main-g01ywse6.mjs} +1 -1
  11. package/dist/main-mqr0gee1.mjs +4 -0
  12. package/dist/{main-ma5ncx3b.mjs → main-tz35bvqb.mjs} +2 -2
  13. package/dist/{main-g13tfban.mjs → main-tzjxmhv4.mjs} +1 -1
  14. package/dist/{main-gvzdjgte.mjs → main-wswk35pj.mjs} +3 -3
  15. package/dist/{main-31mjsvtm.mjs → main-y1cpcrz8.mjs} +2 -2
  16. package/dist/{mcp-eqfvz2d5.mjs → mcp-aee25d8n.mjs} +7 -7
  17. package/dist/{migrate-h0e3yv0y.mjs → migrate-44637whg.mjs} +4 -4
  18. package/dist/{relay-9fsv094e.mjs → relay-3wwc400q.mjs} +190 -28
  19. package/dist/{runtime-update-7m0tkybs.mjs → runtime-update-xveta12f.mjs} +4 -4
  20. package/dist/{setup-ac6kjvgh.mjs → setup-086fzpyy.mjs} +7 -7
  21. package/dist/{skill-text-thdaq5mc.mjs → skill-text-q7e8fafn.mjs} +4 -2
  22. package/dist/{supervisor-638mhqwx.mjs → supervisor-x88ew547.mjs} +3 -3
  23. package/dist/{update-tyrveejz.mjs → update-npv6xkp9.mjs} +3 -3
  24. package/dist/{version-njwyb4qk.mjs → version-t586e7nx.mjs} +1 -1
  25. package/package.json +1 -1
  26. package/skills/browse/SKILL.md +4 -2
  27. package/dist/main-hrrgcjhe.mjs +0 -4
@@ -25,7 +25,7 @@ import"./main-pmfd055v.mjs";
25
25
  import {
26
26
  opencodeBrowserVersion2,
27
27
  opencodeBrowserBuildId2
28
- } from "./main-hrrgcjhe.mjs";
28
+ } from "./main-mqr0gee1.mjs";
29
29
  import {
30
30
  configRoot2,
31
31
  dataRoot,
@@ -38,7 +38,7 @@ import {
38
38
  devExtension,
39
39
  installCommand,
40
40
  autoUpdateStatus
41
- } from "./main-t8c7aq8b.mjs";
41
+ } from "./main-27xsa26m.mjs";
42
42
  import {
43
43
  extensionProtocolVersion,
44
44
  extensionProtocolAdvice
@@ -64,29 +64,29 @@ import {
64
64
  ensureExtensionConnected,
65
65
  stoppedRelayStatus,
66
66
  statusCollections
67
- } from "./main-x9vdxj9f.mjs";
67
+ } from "./main-ck044wh3.mjs";
68
68
  import"./main-4h7rfhhr.mjs";
69
69
  import {
70
70
  updateJson2,
71
71
  formatUpdateNotice2,
72
72
  updateNotice2
73
- } from "./main-ma5ncx3b.mjs";
73
+ } from "./main-tz35bvqb.mjs";
74
74
  import {
75
75
  settingKeys,
76
76
  formatSettings,
77
77
  ensureSessionExists
78
- } from "./main-qq7x2tgn.mjs";
78
+ } from "./main-6jn8tyqn.mjs";
79
79
  import {
80
80
  addSecret,
81
81
  listSecrets,
82
82
  removeSecret
83
- } from "./main-g13tfban.mjs";
83
+ } from "./main-tzjxmhv4.mjs";
84
84
  import {
85
85
  defaultJournalBaseDir,
86
86
  readJournalEntries,
87
87
  formatJournalEntry
88
- } from "./main-5snyxk65.mjs";
89
- import"./main-3gx5fe95.mjs";
88
+ } from "./main-837bcecf.mjs";
89
+ import"./main-g01ywse6.mjs";
90
90
  import {
91
91
  taggedEnum,
92
92
  is2,
@@ -5844,7 +5844,7 @@ var status = make("status", {
5844
5844
  }
5845
5845
  })).pipe(withDescription4("Show relay, extension, and target status"));
5846
5846
  var mcp = make("mcp", {}, fn("Cli.mcp")(function* () {
5847
- const { runMcpServer } = yield* promise(() => import("./mcp-eqfvz2d5.mjs"));
5847
+ const { runMcpServer } = yield* promise(() => import("./mcp-aee25d8n.mjs"));
5848
5848
  yield* runMcpServer;
5849
5849
  })).pipe(withDescription4("Run the browse MCP server over stdio"));
5850
5850
  registerCliCommand(400, () => tabs);
@@ -5865,7 +5865,7 @@ registerCliCommand(810, ({ packageRoot }) => make("doctor", {
5865
5865
  }
5866
5866
  })).pipe(withDescription4("Diagnose the local browse install and runtime")));
5867
5867
  registerCliCommand(820, () => make("skill", {}, fn("Cli.skill")(function* () {
5868
- const { skillText } = yield* promise(() => import("./skill-text-thdaq5mc.mjs"));
5868
+ const { skillText } = yield* promise(() => import("./skill-text-q7e8fafn.mjs"));
5869
5869
  yield* log(skillText.trimEnd());
5870
5870
  })).pipe(withDescription4("Print the browse agent skill text")));
5871
5871
  registerCliCommand(900, () => mcp);
@@ -6292,12 +6292,12 @@ registerCliCommand(710, () => flightRecorder);
6292
6292
 
6293
6293
  // src/cli/relay.ts
6294
6294
  var serve = make("serve", {}, fn("Cli.serve")(function* () {
6295
- const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-9fsv094e.mjs"), import("./helpers-na4s8h8f.mjs")]));
6295
+ const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-3wwc400q.mjs"), import("./helpers-s2be8ebj.mjs")]));
6296
6296
  const port = yield* portConfig;
6297
6297
  const additionalExtensionOrigins = parseAdditionalExtensionOrigins(yield* extensionOriginsConfig);
6298
6298
  yield* scoped(gen(function* () {
6299
6299
  const relay = yield* startRelay({ port, additionalExtensionOrigins });
6300
- yield* promise(() => import("./legacy-runtime-pef5jajn.mjs").then((module) => module.commitLegacyTakeover()));
6300
+ yield* promise(() => import("./legacy-runtime-gew3ch6c.mjs").then((module) => module.commitLegacyTakeover()));
6301
6301
  yield* log(`browse relay listening at ${relay.url}`);
6302
6302
  yield* log(`browse connects automatically while the browser runs. Run \`${cliCommand("status")}\` to check.`);
6303
6303
  yield* never;
package/dist/cli.mjs CHANGED
@@ -8,7 +8,7 @@ import {
8
8
 
9
9
  // src/main.ts
10
10
  import path from "node:path";
11
- var embeddedVersion = "0.0.17-dev.171";
11
+ var embeddedVersion = "0.0.17-dev.173";
12
12
  var setupCommands = new Set(["install", "uninstall", "extension", "pair", "set"]);
13
13
  var command = process.argv[2];
14
14
  var args = process.argv.slice(3);
@@ -18,26 +18,26 @@ var options = separator === -1 ? args : args.slice(0, separator);
18
18
  var askedForHelp = command === "--help" || command === "-h" || options.some((arg) => arg === "--help" || arg === "-h");
19
19
  var preCliHelp = askedForHelp && (command === "update" || command !== undefined && setupCommands.has(command));
20
20
  var oldRuntime = legacyRuntime();
21
- var takingOver = command === "serve" && !askedForHelp && legacyRuntimeActive(oldRuntime) && await import("./legacy-runtime-pef5jajn.mjs").then((module) => module.prepareLegacyTakeover(oldRuntime)).catch(() => false);
21
+ var takingOver = command === "serve" && !askedForHelp && legacyRuntimeActive(oldRuntime) && await import("./legacy-runtime-gew3ch6c.mjs").then((module) => module.prepareLegacyTakeover(oldRuntime)).catch(() => false);
22
22
  if (!takingOver)
23
23
  settleLegacyHome(process.env, oldRuntime);
24
24
  if (command !== "--version" && command !== "-v" && !askedForHelp && !takingOver && !process.env.OPENCODE_BROWSER_HOME && legacyRootsLeft()) {
25
25
  try {
26
- const { migrateLegacy } = await import("./migrate-h0e3yv0y.mjs");
26
+ const { migrateLegacy } = await import("./migrate-44637whg.mjs");
27
27
  migrateLegacy();
28
28
  } catch {}
29
29
  }
30
30
  if (command === "--version" || command === "-v") {
31
- const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-njwyb4qk.mjs")).opencodeBrowserVersion;
31
+ const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-t586e7nx.mjs")).opencodeBrowserVersion;
32
32
  process.stdout.write(`${opencodeBrowserVersion}
33
33
  `);
34
- } else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-638mhqwx.mjs")).supervisesMcp()) {
35
- const { runBinaryMcp } = await import("./supervisor-638mhqwx.mjs");
34
+ } else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-x88ew547.mjs")).supervisesMcp()) {
35
+ const { runBinaryMcp } = await import("./supervisor-x88ew547.mjs");
36
36
  await runBinaryMcp(process.argv.slice(3));
37
37
  } else if (invokedAs === "opencode-browser-mcp" || command === "mcp" && process.argv.length === 3) {
38
38
  const { NodeRuntime } = await import("./index-j79y2me1.mjs");
39
39
  const { defaultTeardown } = await import("./Runtime-jrg7sc9p.mjs");
40
- const { runMcpServer } = await import("./mcp-eqfvz2d5.mjs");
40
+ const { runMcpServer } = await import("./mcp-aee25d8n.mjs");
41
41
  let stdinGone = false;
42
42
  const onStdinGone = () => {
43
43
  stdinGone = true;
@@ -59,13 +59,13 @@ if (command === "--version" || command === "-v") {
59
59
  })
60
60
  }));
61
61
  } else if (command === "self-update" || command === "runtime-switch") {
62
- const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-7m0tkybs.mjs");
62
+ const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-xveta12f.mjs");
63
63
  await (command === "self-update" ? runSelfUpdate : runRuntimeSwitch)(process.argv.slice(3));
64
64
  } else if (command === "update" && !askedForHelp) {
65
- const { runUpdateCommand } = await import("./update-tyrveejz.mjs");
65
+ const { runUpdateCommand } = await import("./update-npv6xkp9.mjs");
66
66
  await runUpdateCommand(process.argv.slice(3));
67
67
  } else if (command && setupCommands.has(command) && !askedForHelp) {
68
- const { runSetup } = await import("./setup-ac6kjvgh.mjs");
68
+ const { runSetup } = await import("./setup-086fzpyy.mjs");
69
69
  await runSetup(command, process.argv.slice(3));
70
70
  } else {
71
71
  if (preCliHelp || !command || command === "--help" || command === "-h") {
@@ -102,9 +102,9 @@ executable in ~/.local/bin (or $XDG_BIN_HOME).
102
102
  `);
103
103
  }
104
104
  if (command === "status" && !askedForHelp && !process.argv.includes("--json")) {
105
- const { printSetupStatus } = await import("./setup-ac6kjvgh.mjs");
105
+ const { printSetupStatus } = await import("./setup-086fzpyy.mjs");
106
106
  printSetupStatus();
107
107
  }
108
- const { runCli } = await import("./cli-n2yqdpef.mjs");
108
+ const { runCli } = await import("./cli-ds3gq86g.mjs");
109
109
  runCli(preCliHelp ? ["--help"] : undefined);
110
110
  }
@@ -32,7 +32,7 @@ import {
32
32
  isRestrictedTarget2,
33
33
  isRestrictedUrl2,
34
34
  dataUrlDocument2
35
- } from "./main-x9vdxj9f.mjs";
35
+ } from "./main-ck044wh3.mjs";
36
36
  import"./main-4h7rfhhr.mjs";
37
37
  import"./main-b3jrctcx.mjs";
38
38
  export {
@@ -5,13 +5,13 @@ import {
5
5
  } from "./main-pmfd055v.mjs";
6
6
  import {
7
7
  opencodeBrowserVersion2
8
- } from "./main-hrrgcjhe.mjs";
8
+ } from "./main-mqr0gee1.mjs";
9
9
  import {
10
10
  installerBinaryPath,
11
11
  compiledBinary,
12
12
  channelOf,
13
13
  installedRuntime2
14
- } from "./main-t8c7aq8b.mjs";
14
+ } from "./main-27xsa26m.mjs";
15
15
 
16
16
  // src/setup/legacy-runtime.ts
17
17
  import fs from "node:fs";
@@ -37,7 +37,7 @@ async function prepareLegacyTakeover(legacy, options = {}) {
37
37
  if (await portInUse(Number(env.OPENCODE_BROWSER_PORT) || 19988))
38
38
  return false;
39
39
  const home = options.home ?? os.homedir();
40
- const { copyLegacyData } = await import("./migrate-h0e3yv0y.mjs");
40
+ const { copyLegacyData } = await import("./migrate-44637whg.mjs");
41
41
  delete env.OPENCODE_BROWSER_HOME;
42
42
  copyLegacyData(home);
43
43
  pending = { legacy, install, home };
@@ -51,7 +51,7 @@ async function commitLegacyTakeover(now = Date.now()) {
51
51
  try {
52
52
  if (!adoptLegacyRuntime(legacy, install, now))
53
53
  return false;
54
- const { migrateLegacy } = await import("./migrate-h0e3yv0y.mjs");
54
+ const { migrateLegacy } = await import("./migrate-44637whg.mjs");
55
55
  migrateLegacy(home, now);
56
56
  return true;
57
57
  } catch {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./main-pmfd055v.mjs";
5
5
  import {
6
6
  opencodeBrowserVersion2
7
- } from "./main-hrrgcjhe.mjs";
7
+ } from "./main-mqr0gee1.mjs";
8
8
 
9
9
  // src/paths.ts
10
10
  import fs from "node:fs";
@@ -114,7 +114,7 @@ function cliInstall() {
114
114
  return { kind: "binary", binary: installedBinary() ?? process.execPath, pathEnv: process.env.PATH };
115
115
  if (fromCheckout())
116
116
  return { kind: "checkout", bundle: path.join(packageRoot(), "dist", "cli.mjs") };
117
- return { kind: "npm", version: "0.0.17-dev.171", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
117
+ return { kind: "npm", version: "0.0.17-dev.173", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
118
118
  }
119
119
  function cliPrefix(install = cliInstall()) {
120
120
  if (install.kind === "binary") {
@@ -136,7 +136,7 @@ function storeConfig(env = process.env, baked = { id: "mfnicocicmmlkpjnaffgihfjh
136
136
  return id ? { id } : {};
137
137
  }
138
138
  var RELEASE_SERVICE = "https://anoma.ly/release";
139
- function devExtension(baked = { file: "browse-extension-0.0.17-dev.171.zip", sha256: "ceb4ed7e02b00480bbd8d5304af2df0a990ff40b91ddfc62df2a7eeaacfaf98e", size: 184210 }) {
139
+ function devExtension(baked = { file: "browse-extension-0.0.17-dev.173.zip", sha256: "f8a747e97b3bbbebd1385aec88841d5a665100b721f15c151ea591cb8b578a87", size: 184209 }) {
140
140
  return baked && /^[0-9a-f]{64}$/.test(baked.sha256) && /^[\w.-]+\.zip$/.test(baked.file) ? baked : undefined;
141
141
  }
142
142
  var devExtensionUrl = (extension, env = process.env) => `${(env.OPENCODE_BROWSER_RELEASE_SERVICE || RELEASE_SERVICE).replace(/\/+$/, "")}/browse/files/${extension.sha256}/${extension.file}`;
@@ -12,7 +12,7 @@ import {
12
12
  parseTargetSelection2,
13
13
  getObject2,
14
14
  getString2
15
- } from "./main-x9vdxj9f.mjs";
15
+ } from "./main-ck044wh3.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-t8c7aq8b.mjs";
106
+ } from "./main-27xsa26m.mjs";
107
107
 
108
108
  // node_modules/effect/dist/PrimaryKey.js
109
109
  var symbol = "~effect/PrimaryKey";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./main-4h7rfhhr.mjs";
4
4
  import {
5
5
  isValidSessionId2
6
- } from "./main-x9vdxj9f.mjs";
6
+ } from "./main-ck044wh3.mjs";
7
7
  import {
8
8
  decodeUnknownOption,
9
9
  optionalKey,
@@ -19,7 +19,7 @@ import {
19
19
  } from "./main-wpt5ha44.mjs";
20
20
  import {
21
21
  stateRoot
22
- } from "./main-t8c7aq8b.mjs";
22
+ } from "./main-27xsa26m.mjs";
23
23
 
24
24
  // src/session-manager/journal.ts
25
25
  import fs from "node:fs";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  dataRoot,
6
6
  stateRoot
7
- } from "./main-t8c7aq8b.mjs";
7
+ } from "./main-27xsa26m.mjs";
8
8
 
9
9
  // src/relay/browser-pairing.ts
10
10
  import crypto from "node:crypto";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./main-s3g4jwx5.mjs";
19
19
  import {
20
20
  opencodeBrowserBuildId2
21
- } from "./main-hrrgcjhe.mjs";
21
+ } from "./main-mqr0gee1.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-t8c7aq8b.mjs";
31
+ } from "./main-27xsa26m.mjs";
32
32
  import {
33
33
  relayAuthorization
34
- } from "./main-3gx5fe95.mjs";
34
+ } from "./main-g01ywse6.mjs";
35
35
  import {
36
36
  Pointer,
37
37
  passthrough,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./main-4h7rfhhr.mjs";
4
4
  import {
5
5
  dataRoot
6
- } from "./main-t8c7aq8b.mjs";
6
+ } from "./main-27xsa26m.mjs";
7
7
 
8
8
  // src/relay/secrets.ts
9
9
  import crypto from "node:crypto";
@@ -0,0 +1,4 @@
1
+ // src/version.ts
2
+ var opencodeBrowserVersion2 = "0.0.17-dev.173";
3
+ var opencodeBrowserBuildId2 = "2026-11-11T02:40:14.029Z";
4
+ export { opencodeBrowserVersion2, opencodeBrowserBuildId2 };
@@ -6,7 +6,7 @@ import {
6
6
  installedRuntime2,
7
7
  autoUpdateStatus,
8
8
  updateAvailable
9
- } from "./main-t8c7aq8b.mjs";
9
+ } from "./main-27xsa26m.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-7m0tkybs.mjs");
318
+ const { runInstalledUpdate } = await import("./runtime-update-xveta12f.mjs");
319
319
  if (await runInstalledUpdate(args))
320
320
  return;
321
321
  if (compiledBinary()) {
@@ -52,7 +52,7 @@ import {
52
52
  import {
53
53
  dataRoot,
54
54
  cliCommand
55
- } from "./main-t8c7aq8b.mjs";
55
+ } from "./main-27xsa26m.mjs";
56
56
 
57
57
  // node_modules/effect/dist/Semaphore.js
58
58
  var makeUnsafe = (permits) => new SemaphoreImpl(permits);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  opencodeBrowserVersion2
3
- } from "./main-hrrgcjhe.mjs";
3
+ } from "./main-mqr0gee1.mjs";
4
4
  import {
5
5
  configRoot2,
6
6
  dataRoot,
@@ -21,13 +21,13 @@ import {
21
21
  npmGlobalRoot,
22
22
  installedVersion,
23
23
  runCommand
24
- } from "./main-t8c7aq8b.mjs";
24
+ } from "./main-27xsa26m.mjs";
25
25
  import {
26
26
  writeStdout
27
27
  } from "./main-tk4axre7.mjs";
28
28
  import {
29
29
  formatPairingCode
30
- } from "./main-6q5nqhy7.mjs";
30
+ } from "./main-adrphbht.mjs";
31
31
  import {
32
32
  unpackedExtensionId
33
33
  } from "./main-b3jrctcx.mjs";
@@ -5,13 +5,13 @@ import {
5
5
  bundledPairingCodeTtlMs,
6
6
  mintPairingCode,
7
7
  writeExtensionPairing
8
- } from "./main-6q5nqhy7.mjs";
8
+ } from "./main-adrphbht.mjs";
9
9
  import {
10
10
  configRoot2,
11
11
  cacheRoot,
12
12
  devExtensionUrl,
13
13
  devExtensionFolder
14
- } from "./main-t8c7aq8b.mjs";
14
+ } from "./main-27xsa26m.mjs";
15
15
 
16
16
  // src/setup/dev-extension.ts
17
17
  import { createHash } from "node:crypto";
@@ -46,11 +46,11 @@ import {
46
46
  import"./main-pmfd055v.mjs";
47
47
  import {
48
48
  opencodeBrowserVersion2
49
- } from "./main-hrrgcjhe.mjs";
49
+ } from "./main-mqr0gee1.mjs";
50
50
  import {
51
51
  cliCommand,
52
52
  autoUpdateStatus
53
- } from "./main-t8c7aq8b.mjs";
53
+ } from "./main-27xsa26m.mjs";
54
54
  import"./main-b3jrctcx.mjs";
55
55
  import {
56
56
  option,
@@ -70,12 +70,12 @@ import {
70
70
  relayBuildProblem,
71
71
  ensureRelay,
72
72
  ensureExtensionConnected
73
- } from "./main-x9vdxj9f.mjs";
73
+ } from "./main-ck044wh3.mjs";
74
74
  import"./main-4h7rfhhr.mjs";
75
75
  import {
76
76
  updateJson2,
77
77
  createUpdateWatcher2
78
- } from "./main-ma5ncx3b.mjs";
78
+ } from "./main-tz35bvqb.mjs";
79
79
  import {
80
80
  settingSpecs,
81
81
  securityVariables,
@@ -156,12 +156,12 @@ import {
156
156
  toolResultForValue2,
157
157
  mcpErrorMessage2,
158
158
  toolResult
159
- } from "./main-qq7x2tgn.mjs";
159
+ } from "./main-6jn8tyqn.mjs";
160
160
  import {
161
161
  makeUnsafe,
162
162
  make3,
163
163
  listSecrets
164
- } from "./main-g13tfban.mjs";
164
+ } from "./main-tzjxmhv4.mjs";
165
165
  import {
166
166
  Clock,
167
167
  type,
@@ -176,7 +176,7 @@ import {
176
176
  orElse,
177
177
  exhaustive
178
178
  } from "./main-048kx59h.mjs";
179
- import"./main-3gx5fe95.mjs";
179
+ import"./main-g01ywse6.mjs";
180
180
  import {
181
181
  Class,
182
182
  taggedEnum,
@@ -7,14 +7,14 @@ import {
7
7
  editAgentConfig,
8
8
  OPENCODE_CONFIG_NAMES,
9
9
  configureMcp
10
- } from "./main-gvzdjgte.mjs";
10
+ } from "./main-wswk35pj.mjs";
11
11
  import {
12
12
  legacyDataRoot,
13
13
  legacyRoots,
14
14
  legacyRuntime,
15
15
  LEGACY_HANDOVER_GRACE_MS
16
16
  } from "./main-pmfd055v.mjs";
17
- import"./main-hrrgcjhe.mjs";
17
+ import"./main-mqr0gee1.mjs";
18
18
  import {
19
19
  configRoot2,
20
20
  dataRoot,
@@ -23,10 +23,10 @@ import {
23
23
  binRoot,
24
24
  binaryName,
25
25
  devExtensionFolder
26
- } from "./main-t8c7aq8b.mjs";
26
+ } from "./main-27xsa26m.mjs";
27
27
  import"./main-tk4axre7.mjs";
28
28
  import"./main-4h7rfhhr.mjs";
29
- import"./main-6q5nqhy7.mjs";
29
+ import"./main-adrphbht.mjs";
30
30
  import"./main-b3jrctcx.mjs";
31
31
 
32
32
  // src/setup/migrate.ts
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  opencodeBrowserVersion2,
6
6
  opencodeBrowserBuildId2
7
- } from "./main-hrrgcjhe.mjs";
7
+ } from "./main-mqr0gee1.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-t8c7aq8b.mjs";
31
+ } from "./main-27xsa26m.mjs";
32
32
  import {
33
33
  extensionProtocolVersion,
34
34
  minExtensionProtocolVersion,
@@ -108,7 +108,7 @@ import {
108
108
  dataUrlDocument2,
109
109
  appendManagedRelayProcessLog,
110
110
  relayLog
111
- } from "./main-x9vdxj9f.mjs";
111
+ } from "./main-ck044wh3.mjs";
112
112
  import {
113
113
  context,
114
114
  pendingPairingCodeKeys,
@@ -126,7 +126,7 @@ import {
126
126
  pairingSessionKey,
127
127
  sessionProof,
128
128
  wrapToken
129
- } from "./main-6q5nqhy7.mjs";
129
+ } from "./main-adrphbht.mjs";
130
130
  import {
131
131
  makeUnsafe,
132
132
  terminateChildProcess,
@@ -149,16 +149,16 @@ import {
149
149
  checkNavigationUrl,
150
150
  readSecret,
151
151
  secretText
152
- } from "./main-g13tfban.mjs";
152
+ } from "./main-tzjxmhv4.mjs";
153
153
  import {
154
154
  defaultJournalBaseDir,
155
155
  makeJournalEntry,
156
156
  appendJournalEntry,
157
157
  startJournalRetention
158
- } from "./main-5snyxk65.mjs";
158
+ } from "./main-837bcecf.mjs";
159
159
  import {
160
160
  createUpdateWatcher2
161
- } from "./main-ma5ncx3b.mjs";
161
+ } from "./main-tz35bvqb.mjs";
162
162
  import {
163
163
  SettingsInputError,
164
164
  parseSettingChanges,
@@ -166,13 +166,13 @@ import {
166
166
  settingsToExtension,
167
167
  describeSettings,
168
168
  describeChanges
169
- } from "./main-qq7x2tgn.mjs";
169
+ } from "./main-6jn8tyqn.mjs";
170
170
  import {
171
171
  relayHostname,
172
172
  isLocalPeer,
173
173
  installedDevExtension,
174
174
  syncDevExtension
175
- } from "./main-31mjsvtm.mjs";
175
+ } from "./main-y1cpcrz8.mjs";
176
176
  import {
177
177
  currentTimeMillis,
178
178
  value,
@@ -185,7 +185,7 @@ import {
185
185
  relayToken,
186
186
  secretsEqual,
187
187
  ensurePrivateDirectory
188
- } from "./main-3gx5fe95.mjs";
188
+ } from "./main-g01ywse6.mjs";
189
189
  import {
190
190
  join,
191
191
  interrupt,
@@ -2206,18 +2206,9 @@ function installClosedPageReplacementGuard(page, clearRecreatedFromClosedUrl, ac
2206
2206
  }
2207
2207
  }
2208
2208
 
2209
- // src/snapshot/browser-capture.ts
2210
- var captureSnapshotInBrowser = (rootOrSettings, locatorSettings) => {
2211
- const settings = locatorSettings ?? rootOrSettings;
2209
+ // src/snapshot/naming.ts
2210
+ var snapshotNamingInBrowser = () => {
2212
2211
  const normalize = (value) => value.replace(/\s+/g, " ").trim();
2213
- const truncate = (value, maxLength) => {
2214
- if (value.length <= maxLength)
2215
- return value;
2216
- const prefix = value.slice(0, maxLength + 1);
2217
- const boundary = prefix.lastIndexOf(" ");
2218
- return `${prefix.slice(0, boundary >= Math.floor(maxLength * 0.6) ? boundary : maxLength).trimEnd()}...`;
2219
- };
2220
- const quote = (value) => value.replace(/\\/g, "\\\\").replace(/"/g, "\\\"");
2221
2212
  const styleCache = new WeakMap;
2222
2213
  const styleOf = (element) => {
2223
2214
  let cached = styleCache.get(element);
@@ -2453,6 +2444,46 @@ var captureSnapshotInBrowser = (rootOrSettings, locatorSettings) => {
2453
2444
  return "navigation";
2454
2445
  return element.tagName.toLowerCase();
2455
2446
  };
2447
+ const nameFromAuthorOnlyRoles = new Set(["combobox", "listbox", "textbox", "searchbox", "spinbutton", "slider"]);
2448
+ const identityNameFor = (element, role) => nameFromAuthorOnlyRoles.has(role) ? authorAccessibleName(element) : accessibleName(element);
2449
+ return {
2450
+ normalize,
2451
+ styleOf,
2452
+ isVisible,
2453
+ visibleAssociatedLabel,
2454
+ explicitAriaName,
2455
+ labelledName,
2456
+ safeText,
2457
+ authorAccessibleName,
2458
+ accessibleName,
2459
+ roleFor,
2460
+ identityNameFor
2461
+ };
2462
+ };
2463
+
2464
+ // src/snapshot/browser-capture.ts
2465
+ var captureSnapshotInBrowser = (rootOrSettings, locatorSettings, naming) => {
2466
+ const settings = locatorSettings ?? rootOrSettings;
2467
+ const truncate = (value, maxLength) => {
2468
+ if (value.length <= maxLength)
2469
+ return value;
2470
+ const prefix = value.slice(0, maxLength + 1);
2471
+ const boundary = prefix.lastIndexOf(" ");
2472
+ return `${prefix.slice(0, boundary >= Math.floor(maxLength * 0.6) ? boundary : maxLength).trimEnd()}...`;
2473
+ };
2474
+ const quote = (value) => value.replace(/\\/g, "\\\\").replace(/"/g, "\\\"");
2475
+ const {
2476
+ normalize,
2477
+ styleOf,
2478
+ isVisible,
2479
+ visibleAssociatedLabel,
2480
+ explicitAriaName,
2481
+ labelledName,
2482
+ safeText,
2483
+ accessibleName,
2484
+ roleFor,
2485
+ identityNameFor
2486
+ } = naming;
2456
2487
  const isRowCell = (child) => {
2457
2488
  const local = child.localName;
2458
2489
  if (local === "th" || local === "td")
@@ -3236,8 +3267,7 @@ var captureSnapshotInBrowser = (rootOrSettings, locatorSettings) => {
3236
3267
  const displayName = isFrame ? frameName(element) : isStructural ? structuralName(element, role) : accessibleName(element);
3237
3268
  if (isInteractive && isDuplicateCardLink(element, displayName))
3238
3269
  continue;
3239
- const nameFromAuthorOnly = role === "combobox" || role === "listbox" || role === "textbox" || role === "searchbox" || role === "spinbutton" || role === "slider";
3240
- const identityName = isInteractive ? nameFromAuthorOnly ? authorAccessibleName(element) : displayName : displayName;
3270
+ const identityName = isInteractive ? identityNameFor(element, role) : displayName;
3241
3271
  const isDisabled = element.disabled === true || element.getAttribute("aria-disabled") === "true";
3242
3272
  if (isInteractive && isDisabled && !displayName && !element.getAttribute("name") && !isNativeTextControl(element))
3243
3273
  continue;
@@ -3299,7 +3329,8 @@ var captureSnapshotInBrowser = (rootOrSettings, locatorSettings) => {
3299
3329
  };
3300
3330
  };
3301
3331
  var browserCapture = new Function("rootOrSettings", "locatorSettings", `const __name = (target) => target
3302
- return (${captureSnapshotInBrowser.toString()})(rootOrSettings, locatorSettings)`);
3332
+ const naming = (${snapshotNamingInBrowser.toString()})()
3333
+ return (${captureSnapshotInBrowser.toString()})(rootOrSettings, locatorSettings, naming)`);
3303
3334
 
3304
3335
  // src/snapshot/frames.ts
3305
3336
  var maxSnapshotFrames = 8;
@@ -3826,6 +3857,135 @@ function redactionContextIsGone(cause) {
3826
3857
  return kind === "context-destroyed" || kind === "context-missing" || kind === "target-closed";
3827
3858
  }
3828
3859
 
3860
+ // src/snapshot/ref-selector.ts
3861
+ var staleGraceMs = 3000;
3862
+ var refSelectorEngine = (graceMs, createNaming) => {
3863
+ const firstMiss = new Map;
3864
+ const quoted = (value) => {
3865
+ const short = value.length > 80 ? `${value.slice(0, 80)}...` : value;
3866
+ return `"${short.replace(/\\/g, "\\\\").replace(/"/g, "\\\"")}"`;
3867
+ };
3868
+ const hiddenFromAria = (element) => {
3869
+ if (element.closest("[aria-hidden='true']"))
3870
+ return true;
3871
+ const visible = element.checkVisibility?.({ visibilityProperty: true });
3872
+ if (visible !== undefined)
3873
+ return !visible;
3874
+ const style = getComputedStyle(element);
3875
+ return style.display === "none" || style.visibility === "hidden";
3876
+ };
3877
+ const stale = (message) => Object.assign(new Error(message), { stack: message });
3878
+ const resolve = (root, body) => {
3879
+ const parsed = /^(\S+)\.\d+ (act|read) (\S+) ("(?:[^"\\]|\\.)*") ([\s\S]+)$/.exec(body);
3880
+ if (!parsed)
3881
+ throw new Error(`Malformed snapshot ref selector: ${body}`);
3882
+ const [, id, mode, role, rawName, selector] = parsed;
3883
+ const name = JSON.parse(rawName);
3884
+ const naming = createNaming();
3885
+ const bySelector = Array.from(root.querySelectorAll(selector));
3886
+ const sameRole = bySelector.filter((element) => naming.roleFor(element) === role);
3887
+ const matches = sameRole.filter((element) => !hiddenFromAria(element) && naming.identityNameFor(element, role) === name);
3888
+ if (matches.length > 0) {
3889
+ firstMiss.delete(body);
3890
+ return matches;
3891
+ }
3892
+ if (mode !== "act" || root.nodeType !== Node.DOCUMENT_NODE)
3893
+ return [];
3894
+ if (sameRole.some(hiddenFromAria)) {
3895
+ firstMiss.delete(body);
3896
+ return [];
3897
+ }
3898
+ const now = Date.now();
3899
+ const first = firstMiss.get(body) ?? now;
3900
+ firstMiss.set(body, first);
3901
+ if (now - first < graceMs)
3902
+ return [];
3903
+ firstMiss.delete(body);
3904
+ const was = `${role} ${quoted(name)}`;
3905
+ const current = bySelector.length === 1 ? bySelector[0] : undefined;
3906
+ const change = current ? naming.roleFor(current) === role ? `now reads ${quoted(naming.identityNameFor(current, role))}` : `is now ${naming.roleFor(current)} ${quoted(naming.identityNameFor(current, naming.roleFor(current)))}` : bySelector.length === 0 ? "is gone; the page removed or re-rendered it" : `is gone; its selector now matches ${bySelector.length} other elements`;
3907
+ throw stale(`ref ${id} is stale: ${was} ${change}; call snapshot() again`);
3908
+ };
3909
+ return {
3910
+ query: (root, body) => resolve(root, body)[0] ?? null,
3911
+ queryAll: (root, body) => resolve(root, body)
3912
+ };
3913
+ };
3914
+ var refSelectorSource = `(() => {
3915
+ const __name = (target) => target
3916
+ return (${refSelectorEngine.toString()})(${staleGraceMs}, ${snapshotNamingInBrowser.toString()})
3917
+ })()`;
3918
+ var refSelectorName = `browse-ref-${globalThis.crypto.randomUUID().slice(0, 6)}`;
3919
+ var contextSelectors2 = new WeakMap;
3920
+ var registeredContexts = new WeakSet;
3921
+ var nextCall = 1;
3922
+ var actions = [
3923
+ "blur",
3924
+ "boundingBox",
3925
+ "check",
3926
+ "clear",
3927
+ "click",
3928
+ "dblclick",
3929
+ "dispatchEvent",
3930
+ "dragTo",
3931
+ "fill",
3932
+ "focus",
3933
+ "getAttribute",
3934
+ "hover",
3935
+ "innerHTML",
3936
+ "innerText",
3937
+ "inputValue",
3938
+ "isChecked",
3939
+ "isDisabled",
3940
+ "isEditable",
3941
+ "isEnabled",
3942
+ "press",
3943
+ "pressSequentially",
3944
+ "scrollIntoViewIfNeeded",
3945
+ "selectOption",
3946
+ "selectText",
3947
+ "setChecked",
3948
+ "tap",
3949
+ "textContent",
3950
+ "type",
3951
+ "uncheck",
3952
+ "waitFor"
3953
+ ];
3954
+ function refLocator(page, scope, id, ref) {
3955
+ if (!registeredContexts.has(page.context()))
3956
+ return;
3957
+ const selector = (mode) => `${refSelectorName}=${id}.${nextCall++} ${mode} ${ref.role} ${JSON.stringify(ref.name)} ${ref.selector}`;
3958
+ const locator = scope.locator(selector("read"));
3959
+ for (const action of actions) {
3960
+ const method = {
3961
+ async[action](...args) {
3962
+ const options = args.at(-1);
3963
+ const explicitTimeout = typeof options === "object" && options !== null && options.timeout !== undefined;
3964
+ const acting = scope.locator(selector(explicitTimeout ? "read" : "act"));
3965
+ return await acting[action](...args);
3966
+ }
3967
+ }[action];
3968
+ Object.defineProperty(locator, action, { value: method, configurable: true, writable: true });
3969
+ }
3970
+ return locator;
3971
+ }
3972
+ async function registerRefSelector(context) {
3973
+ const existing = contextSelectors2.get(context);
3974
+ if (existing)
3975
+ return existing;
3976
+ const { _channel } = context;
3977
+ const registration = _channel.registerSelectorEngine({
3978
+ selectorEngine: { name: refSelectorName, source: refSelectorSource, contentScript: true }
3979
+ }, { timeout: 0 }).then(() => {
3980
+ registeredContexts.add(context);
3981
+ }, (error) => {
3982
+ contextSelectors2.delete(context);
3983
+ throw error;
3984
+ });
3985
+ contextSelectors2.set(context, registration);
3986
+ return registration;
3987
+ }
3988
+
3829
3989
  // src/auth/authenticated-origin.ts
3830
3990
  var defaultTimeoutMs = 30000;
3831
3991
  var defaultMaxResponseBytes = 2000000;
@@ -10156,10 +10316,11 @@ function createSnapshotHelpers(page, registry) {
10156
10316
  entries.push({ prefix: frameSkipNote(frameBudget.skipped.deadline, "snapshot deadline reached") });
10157
10317
  if (omittedFrames > 0)
10158
10318
  entries.push({ prefix: frameSkipNote(omittedFrames, "maxItems reached") });
10159
- const compatiblePrevious = previousSnapshot?.page === page && previousSnapshot.signature === signature ? previousSnapshot : undefined;
10319
+ const samePagePrevious = previousSnapshot?.page === page ? previousSnapshot : undefined;
10320
+ const compatiblePrevious = samePagePrevious?.signature === signature ? samePagePrevious : undefined;
10160
10321
  let nextRef = registry.nextRef ?? 1;
10161
10322
  const reusableRefs = new Map;
10162
- for (const entry of compatiblePrevious?.entries ?? []) {
10323
+ for (const entry of samePagePrevious?.entries ?? []) {
10163
10324
  if (!entry.refId)
10164
10325
  continue;
10165
10326
  const key = snapshotRefIdentity(entry);
@@ -10240,9 +10401,9 @@ function createSnapshotHelpers(page, registry) {
10240
10401
  throw new Error(`Snapshot ref ${id} was captured in an iframe that has navigated or detached; call snapshot() again`);
10241
10402
  }
10242
10403
  }
10243
- const locator = frame ? frame.locator(snapshotRef.selector) : page.locator(snapshotRef.selector);
10404
+ const scope = frame ?? page;
10244
10405
  const role = snapshotRefAriaRole(snapshotRef.role);
10245
- const resolved = role ? frame ? locator.and(frame.getByRole(role, snapshotRef.name ? { name: snapshotRef.name, exact: true } : undefined)) : locator.and(page.getByRole(role, snapshotRef.name ? { name: snapshotRef.name, exact: true } : undefined)) : locator;
10406
+ const resolved = (role && snapshotRef.name && !snapshotRef.selector.includes(" >> ") ? refLocator(page, scope, normalized, { selector: snapshotRef.selector, role: snapshotRef.role, name: snapshotRef.name }) : undefined) ?? (role ? scope.locator(snapshotRef.selector).and(scope.getByRole(role, snapshotRef.name ? { name: snapshotRef.name, exact: true } : undefined)) : scope.locator(snapshotRef.selector));
10246
10407
  refRoots.set(resolved, snapshotRef);
10247
10408
  return resolved;
10248
10409
  };
@@ -11852,6 +12013,7 @@ class ExecuteSandbox extends DefaultPageHost {
11852
12013
  const browser = this.browser;
11853
12014
  const context = browser.contexts()[0] ?? await browser.newContext();
11854
12015
  await registerAriaSnapshotSelector(context);
12016
+ await registerRefSelector(context);
11855
12017
  installDownloadCapabilityGuards(context);
11856
12018
  return { browser, context };
11857
12019
  }
@@ -1,6 +1,6 @@
1
1
  import"./main-3mhynene.mjs";
2
2
  import"./main-pmfd055v.mjs";
3
- import"./main-hrrgcjhe.mjs";
3
+ import"./main-mqr0gee1.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-t8c7aq8b.mjs";
21
+ } from "./main-27xsa26m.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-x9vdxj9f.mjs";
28
+ } from "./main-ck044wh3.mjs";
29
29
  import"./main-4h7rfhhr.mjs";
30
30
  import"./main-s3g4jwx5.mjs";
31
- import"./main-3gx5fe95.mjs";
31
+ import"./main-g01ywse6.mjs";
32
32
  import {
33
33
  succeed6,
34
34
  gen,
@@ -63,11 +63,11 @@ import {
63
63
  installRuntime,
64
64
  installedRuntime,
65
65
  manualMcpEntry
66
- } from "./main-gvzdjgte.mjs";
66
+ } from "./main-wswk35pj.mjs";
67
67
  import"./main-pmfd055v.mjs";
68
68
  import {
69
69
  opencodeBrowserBuildId2
70
- } from "./main-hrrgcjhe.mjs";
70
+ } from "./main-mqr0gee1.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-t8c7aq8b.mjs";
87
+ } from "./main-27xsa26m.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-6q5nqhy7.mjs";
101
+ } from "./main-adrphbht.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-g13tfban.mjs";
110
+ } from "./main-tzjxmhv4.mjs";
111
111
  import {
112
112
  parseHostname,
113
113
  readRelayConfig,
114
114
  writeRelayConfig,
115
115
  syncDevExtension
116
- } from "./main-31mjsvtm.mjs";
116
+ } from "./main-y1cpcrz8.mjs";
117
117
  import {
118
118
  relayAuthorization
119
- } from "./main-3gx5fe95.mjs";
119
+ } from "./main-g01ywse6.mjs";
120
120
 
121
121
  // src/setup.ts
122
122
  import { mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync } from "node:fs";
@@ -130,8 +130,10 @@ Useful inspection helpers:
130
130
  - \`ref("e12")\` resolves a control from the latest snapshot, including controls
131
131
  inside an iframe: those refs resolve in that frame and fail closed when the
132
132
  frame navigates. Refs fail closed after navigation or incompatible DOM drift;
133
- compatible refs keep their ids. \`snapshot({ within: page.frameLocator(...) })\`
134
- captures a frame and its refs resolve there.
133
+ compatible refs keep their ids. An action on a ref whose control was renamed,
134
+ removed or re-rendered fails within a few seconds and says what changed; call
135
+ \`snapshot()\` again. \`snapshot({ within: page.frameLocator(...) })\` captures a
136
+ frame and its refs resolve there.
135
137
  - \`ariaSnapshot(target?, { timeout })\` returns Playwright's detailed YAML tree
136
138
  when the compact snapshot omits needed structure. The tree keeps Playwright's
137
139
  anonymous \`- iframe\` lines, and each iframe's document follows it as a
@@ -1,10 +1,10 @@
1
1
  import"./main-pmfd055v.mjs";
2
- import"./main-hrrgcjhe.mjs";
2
+ import"./main-mqr0gee1.mjs";
3
3
  import {
4
4
  entrySpawnCommand,
5
5
  installedRuntime2,
6
6
  installedVersion
7
- } from "./main-t8c7aq8b.mjs";
7
+ } from "./main-27xsa26m.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-n2yqdpef.mjs");
38
+ const { runCli } = await import("./cli-ds3gq86g.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-ma5ncx3b.mjs";
7
+ } from "./main-tz35bvqb.mjs";
8
8
  import"./main-b3jrctcx.mjs";
9
- import"./main-t8c7aq8b.mjs";
9
+ import"./main-27xsa26m.mjs";
10
10
  import"./main-pmfd055v.mjs";
11
- import"./main-hrrgcjhe.mjs";
11
+ import"./main-mqr0gee1.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-hrrgcjhe.mjs";
4
+ } from "./main-mqr0gee1.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.171",
3
+ "version": "0.0.17-dev.173",
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",
@@ -129,8 +129,10 @@ Useful inspection helpers:
129
129
  - `ref("e12")` resolves a control from the latest snapshot, including controls
130
130
  inside an iframe: those refs resolve in that frame and fail closed when the
131
131
  frame navigates. Refs fail closed after navigation or incompatible DOM drift;
132
- compatible refs keep their ids. `snapshot({ within: page.frameLocator(...) })`
133
- captures a frame and its refs resolve there.
132
+ compatible refs keep their ids. An action on a ref whose control was renamed,
133
+ removed or re-rendered fails within a few seconds and says what changed; call
134
+ `snapshot()` again. `snapshot({ within: page.frameLocator(...) })` captures a
135
+ frame and its refs resolve there.
134
136
  - `ariaSnapshot(target?, { timeout })` returns Playwright's detailed YAML tree
135
137
  when the compact snapshot omits needed structure. The tree keeps Playwright's
136
138
  anonymous `- iframe` lines, and each iframe's document follows it as a
@@ -1,4 +0,0 @@
1
- // src/version.ts
2
- var opencodeBrowserVersion2 = "0.0.17-dev.171";
3
- var opencodeBrowserBuildId2 = "2026-11-10T22:13:16.873Z";
4
- export { opencodeBrowserVersion2, opencodeBrowserBuildId2 };