@opencode/browse 0.0.15-dev.110 → 0.0.15-dev.112

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/{Undici-88kyhfpm.mjs → Undici-mxpvn7gy.mjs} +1 -1
  2. package/dist/{cli-ftng02ff.mjs → cli-k4ep9bqh.mjs} +134 -130
  3. package/dist/cli.mjs +13 -13
  4. package/dist/{helpers-xcy6tqv8.mjs → helpers-z9sm10dt.mjs} +2 -2
  5. package/dist/{index-yzz55kxm.mjs → index-6gkr235e.mjs} +1 -1
  6. package/dist/{main-x8sv1x9z.mjs → main-4gta7aqg.mjs} +59 -57
  7. package/dist/{main-2vk5mg8n.mjs → main-7925awaa.mjs} +4 -4
  8. package/dist/main-9t2s5ptx.mjs +5405 -0
  9. package/dist/{main-vgzr4689.mjs → main-azpzpy0x.mjs} +1 -1
  10. package/dist/main-b5v6hjvs.mjs +1255 -0
  11. package/dist/{main-w79fw3mt.mjs → main-bw7m61nw.mjs} +3 -3
  12. package/dist/main-dbyqkg36.mjs +1694 -0
  13. package/dist/{main-8z9d979q.mjs → main-er120rjm.mjs} +2 -2
  14. package/dist/{main-yf9xhpn4.mjs → main-ken6azcs.mjs} +2 -2
  15. package/dist/{main-pnhrdk7y.mjs → main-meec74m9.mjs} +2 -2
  16. package/dist/main-pgnhq60v.mjs +4 -0
  17. package/dist/{main-7p43gjgk.mjs → main-r5pwe9d8.mjs} +4 -4
  18. package/dist/{main-dghqndja.mjs → main-trj5w92c.mjs} +2 -2
  19. package/dist/{main-fpc5be6h.mjs → main-wsgfvvd6.mjs} +8 -8
  20. package/dist/{main-tyydn3xk.mjs → main-ydew87vm.mjs} +2 -2
  21. package/dist/{main-csnx585b.mjs → main-yf5j8g79.mjs} +2800 -8017
  22. package/dist/{mcp-mhms2jng.mjs → mcp-j7sd8vrv.mjs} +415 -411
  23. package/dist/{migrate-w1ted1w6.mjs → migrate-bqb73tpb.mjs} +5 -5
  24. package/dist/{relay-xhz6s81w.mjs → relay-thq3nwb4.mjs} +127 -123
  25. package/dist/{runtime-update-fm0me22e.mjs → runtime-update-6mh1x6rt.mjs} +7 -6
  26. package/dist/{setup-g3fpqzqe.mjs → setup-072zcfcw.mjs} +19 -10
  27. package/dist/{supervisor-40ckz6kf.mjs → supervisor-2vwykyf5.mjs} +3 -3
  28. package/dist/{update-83zpyvjn.mjs → update-h5swvj6m.mjs} +3 -3
  29. package/dist/{version-njstahmg.mjs → version-2qbk7aw2.mjs} +1 -1
  30. package/package.json +1 -1
  31. package/dist/main-rty99vp8.mjs +0 -4
  32. package/dist/main-tams6t1b.mjs +0 -2924
@@ -5,14 +5,14 @@ import {
5
5
  isSuccess,
6
6
  ClockRef,
7
7
  currentTimeMillis2
8
- } from "./main-csnx585b.mjs";
8
+ } from "./main-yf5j8g79.mjs";
9
9
  import {
10
10
  pipeArguments,
11
11
  identity,
12
12
  isString,
13
13
  isNumber,
14
14
  isBoolean
15
- } from "./main-yf9xhpn4.mjs";
15
+ } from "./main-ken6azcs.mjs";
16
16
 
17
17
  // node_modules/effect/dist/Clock.js
18
18
  var Clock = ClockRef;
@@ -102,7 +102,7 @@ var Prototype2 = {
102
102
  return pipeArguments(this, arguments);
103
103
  }
104
104
  };
105
- var Class3 = /* @__PURE__ */ function() {
105
+ var Class4 = /* @__PURE__ */ function() {
106
106
  function PipeableBase() {}
107
107
  PipeableBase.prototype = Prototype2;
108
108
  return PipeableBase;
@@ -287,4 +287,4 @@ function isIterable(input) {
287
287
  return hasProperty(input, Symbol.iterator) || isString(input);
288
288
  }
289
289
 
290
- export { __reExport, __toESM, __commonJS, __export, __require, pipeArguments, Prototype2, Class3, dual, identity, constant, constTrue, constFalse, constUndefined, constVoid, pipe, flow, memoize, memoizeIdempotent, isString, isNumber, isBoolean, isBigInt, isSymbol, isPropertyKey, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isNotNullish, isNever, isUnknown, isObjectOrArray, isObject, isReadonlyObject, isObjectKeyword, hasProperty, isTagged, isError, isIterable };
290
+ export { __reExport, __toESM, __commonJS, __export, __require, pipeArguments, Prototype2, Class4, dual, identity, constant, constTrue, constFalse, constUndefined, constVoid, pipe, flow, memoize, memoizeIdempotent, isString, isNumber, isBoolean, isBigInt, isSymbol, isPropertyKey, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isNotNullish, isNever, isUnknown, isObjectOrArray, isObject, isReadonlyObject, isObjectKeyword, hasProperty, isTagged, isError, isIterable };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  writePrivateJsonFileSync
3
- } from "./main-vgzr4689.mjs";
3
+ } from "./main-azpzpy0x.mjs";
4
4
  import {
5
5
  dataRoot,
6
6
  stateRoot
7
- } from "./main-fpc5be6h.mjs";
7
+ } from "./main-wsgfvvd6.mjs";
8
8
 
9
9
  // src/relay/browser-pairing.ts
10
10
  import crypto from "node:crypto";
@@ -0,0 +1,4 @@
1
+ // src/version.ts
2
+ var opencodeBrowserVersion2 = "0.0.15-dev.112";
3
+ var opencodeBrowserBuildId2 = "2026-11-08T00:05:46.507Z";
4
+ export { opencodeBrowserVersion2, opencodeBrowserBuildId2 };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  isNodeError
3
- } from "./main-vgzr4689.mjs";
3
+ } from "./main-azpzpy0x.mjs";
4
4
  import {
5
5
  isValidSessionId2
6
- } from "./main-x8sv1x9z.mjs";
6
+ } from "./main-4gta7aqg.mjs";
7
7
  import {
8
8
  isSome,
9
9
  decodeUnknownOption,
@@ -14,10 +14,10 @@ import {
14
14
  Struct,
15
15
  ArraySchema,
16
16
  NullOr
17
- } from "./main-csnx585b.mjs";
17
+ } from "./main-yf5j8g79.mjs";
18
18
  import {
19
19
  stateRoot
20
- } from "./main-fpc5be6h.mjs";
20
+ } from "./main-wsgfvvd6.mjs";
21
21
 
22
22
  // src/session-manager/journal.ts
23
23
  import fs from "node:fs";
@@ -6,7 +6,7 @@ import {
6
6
  installedRuntime2,
7
7
  autoUpdateStatus,
8
8
  updateAvailable
9
- } from "./main-fpc5be6h.mjs";
9
+ } from "./main-wsgfvvd6.mjs";
10
10
  import {
11
11
  unpackedReloadAdvice
12
12
  } from "./main-mrew6jy8.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-fm0me22e.mjs");
318
+ const { runInstalledUpdate } = await import("./runtime-update-6mh1x6rt.mjs");
319
319
  if (await runInstalledUpdate(args))
320
320
  return;
321
321
  if (compiledBinary()) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  opencodeBrowserVersion2
3
- } from "./main-rty99vp8.mjs";
3
+ } from "./main-pgnhq60v.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.15-dev.110", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
113
+ return { kind: "npm", version: "0.0.15-dev.112", 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.15-dev.110.zip", sha256: "76bc8349ef973745f8ac4ff77d131c8bd968d59e31e7c94d5ec757198015c370", size: 183188 }) {
135
+ function devExtension(baked = { file: "browse-extension-0.0.15-dev.112.zip", sha256: "8adebd592b4b07f6ee05f43078125c87c1c6d677f06881c7207e6bfabdff278f", size: 183187 }) {
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}`;
@@ -360,8 +360,6 @@ function rolloutBucket(root = stateRoot()) {
360
360
  var PACKAGE_NAME = "@opencode/browse";
361
361
  var HOUR_MS = 60 * 60 * 1000;
362
362
  var DEFAULT_REGISTRY = "https://registry.npmjs.org";
363
- var INSTALL_SCRIPT = "https://opencode.ai/browse/install";
364
- var INSTALL_SCRIPT_WINDOWS = "https://opencode.ai/browse/install.ps1";
365
363
  var autoUpdateModes = ["on", "notify", "off"];
366
364
  var UPDATE_VERSION = /^(\d+)\.(\d+)\.(\d+)(?:-(dev|beta)\.(\d+)(?:\.(\d+))?)?$/;
367
365
  var channelOf = (version) => version.includes("-dev.") ? "dev" : version.includes("-beta.") ? "beta" : "latest";
@@ -568,12 +566,14 @@ async function runInstaller(options) {
568
566
  throw new Error(`npm install -g ${spec} left ${version}, not the requested ${options.version}`);
569
567
  return version;
570
568
  }
571
- const scriptUrl = env.OPENCODE_BROWSER_INSTALL_SCRIPT || (platform === "win32" ? INSTALL_SCRIPT_WINDOWS : INSTALL_SCRIPT);
572
- const script = existsSync(scriptUrl) ? readFileSync2(scriptUrl, "utf8") : await (options.fetch ?? fetch)(scriptUrl, { signal: AbortSignal.timeout(60000) }).then(async (response) => {
569
+ const override = env.OPENCODE_BROWSER_INSTALL_SCRIPT;
570
+ const script = override ? existsSync(override) ? readFileSync2(override, "utf8") : await (options.fetch ?? fetch)(override, { signal: AbortSignal.timeout(60000) }).then(async (response) => {
573
571
  if (!response.ok)
574
572
  throw new Error(`couldn't download the installer (${response.status})`);
575
573
  return response.text();
576
- });
574
+ }) : options.installer ?? globalThis.__OPENCODE_BROWSER_INSTALLER__;
575
+ if (!script)
576
+ throw new Error("this build has no installer to run; install browse again with the install script");
577
577
  const directory = mkdtempSync(path3.join(os2.tmpdir(), "browse-install-"));
578
578
  const file = path3.join(directory, platform === "win32" ? "install.ps1" : "install");
579
579
  const args = [...options.version ? ["--version", options.version] : options.channel ? ["--channel", options.channel] : [], "--no-setup"];
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ensurePrivateDirectorySync
3
- } from "./main-vgzr4689.mjs";
3
+ } from "./main-azpzpy0x.mjs";
4
4
  import {
5
5
  dataRoot
6
- } from "./main-fpc5be6h.mjs";
6
+ } from "./main-wsgfvvd6.mjs";
7
7
 
8
8
  // src/relay/secrets.ts
9
9
  import crypto from "node:crypto";