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

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 (34) hide show
  1. package/dist/{Runtime-qfc1eg1n.mjs → Runtime-jrg7sc9p.mjs} +1 -1
  2. package/dist/{cli-zx7g8fek.mjs → cli-n2yqdpef.mjs} +49 -49
  3. package/dist/cli.mjs +14 -14
  4. package/dist/{helpers-nxtpzjhw.mjs → helpers-na4s8h8f.mjs} +1 -1
  5. package/dist/{index-yaf37ery.mjs → index-j79y2me1.mjs} +2 -2
  6. package/dist/{legacy-runtime-rvcn5zs6.mjs → legacy-runtime-pef5jajn.mjs} +4 -4
  7. package/dist/{main-4074weqb.mjs → main-048kx59h.mjs} +1 -1
  8. package/dist/{main-wf904nhj.mjs → main-31mjsvtm.mjs} +2 -2
  9. package/dist/{main-w80ghbx8.mjs → main-3gx5fe95.mjs} +1 -1
  10. package/dist/{main-9bk4pprj.mjs → main-3mhynene.mjs} +1 -1
  11. package/dist/{main-m3xnn0cx.mjs → main-5snyxk65.mjs} +4 -4
  12. package/dist/{main-dwjfhfpm.mjs → main-6q5nqhy7.mjs} +1 -1
  13. package/dist/{main-v6hzbxjd.mjs → main-f98q5tcf.mjs} +12 -12
  14. package/dist/{main-sx7qpdfw.mjs → main-g13tfban.mjs} +3 -3
  15. package/dist/{main-6k1dq78p.mjs → main-gvzdjgte.mjs} +3 -3
  16. package/dist/main-hrrgcjhe.mjs +4 -0
  17. package/dist/{main-h55dwr1s.mjs → main-ma5ncx3b.mjs} +2 -2
  18. package/dist/{main-rvmzfmb7.mjs → main-qq7x2tgn.mjs} +5 -5
  19. package/dist/{main-jf7jberd.mjs → main-s3g4jwx5.mjs} +41 -41
  20. package/dist/{main-gbq7c729.mjs → main-t8c7aq8b.mjs} +3 -3
  21. package/dist/{main-xycdhwqs.mjs → main-wpt5ha44.mjs} +23 -23
  22. package/dist/{main-fs2ymcvd.mjs → main-x9vdxj9f.mjs} +18 -18
  23. package/dist/{mcp-37b0xgq0.mjs → mcp-eqfvz2d5.mjs} +60 -60
  24. package/dist/{migrate-49s4pykq.mjs → migrate-h0e3yv0y.mjs} +4 -4
  25. package/dist/{relay-jkgh5rzg.mjs → relay-9fsv094e.mjs} +306 -66
  26. package/dist/{runtime-update-9d3dsv6t.mjs → runtime-update-7m0tkybs.mjs} +7 -7
  27. package/dist/{setup-74nz1gqg.mjs → setup-ac6kjvgh.mjs} +7 -7
  28. package/dist/{skill-text-z1pce87x.mjs → skill-text-thdaq5mc.mjs} +14 -1
  29. package/dist/{supervisor-5pjptkgz.mjs → supervisor-638mhqwx.mjs} +3 -3
  30. package/dist/{update-n4sw8eht.mjs → update-tyrveejz.mjs} +3 -3
  31. package/dist/{version-2cadxvsa.mjs → version-njwyb4qk.mjs} +1 -1
  32. package/package.json +1 -1
  33. package/skills/browse/SKILL.md +14 -1
  34. package/dist/main-9xbcy9q0.mjs +0 -4
@@ -28,7 +28,7 @@ import {
28
28
  isArrayNonEmpty,
29
29
  isReadonlyArrayNonEmpty,
30
30
  empty5,
31
- map3,
31
+ map4,
32
32
  effectIsExit,
33
33
  resolveConcurrency,
34
34
  iterateEager,
@@ -41,7 +41,7 @@ import {
41
41
  makeFailReason,
42
42
  makeDieReason,
43
43
  makeInterruptReason,
44
- map4,
44
+ map5,
45
45
  isExit,
46
46
  succeed3,
47
47
  failCause2,
@@ -65,7 +65,7 @@ import {
65
65
  mapBothEager,
66
66
  flatMapEager,
67
67
  fnUntracedEager
68
- } from "./main-xycdhwqs.mjs";
68
+ } from "./main-wpt5ha44.mjs";
69
69
  import {
70
70
  pipeArguments,
71
71
  Prototype2,
@@ -381,7 +381,7 @@ function normalizeFilterOutput(ast, out, input, options) {
381
381
  if (!isReadonlyArrayNonEmpty(out)) {
382
382
  return;
383
383
  }
384
- return out.length === 1 ? makeFilterIssue(out[0], input, options) : new Composite(ast, map3(out, (entry) => makeFilterIssue(entry, input, options)), input, options);
384
+ return out.length === 1 ? makeFilterIssue(out[0], input, options) : new Composite(ast, map4(out, (entry) => makeFilterIssue(entry, input, options)), input, options);
385
385
  }
386
386
  return makeSingle(out, input, options);
387
387
  }
@@ -1182,7 +1182,7 @@ var wrapPropertyKeyIssue = (s, ast, key, exit) => {
1182
1182
  }
1183
1183
  const issue = getSchemaIssue(exit.cause);
1184
1184
  if (issue === undefined) {
1185
- return failCause2(map4(exit.cause, (issue) => new Composite(ast, [new Pointer([key], issue)], s.input, s.options)));
1185
+ return failCause2(map5(exit.cause, (issue) => new Composite(ast, [new Pointer([key], issue)], s.input, s.options)));
1186
1186
  }
1187
1187
  const pointer = new Pointer([key], issue);
1188
1188
  if (s.options.errors === "all") {
@@ -2605,7 +2605,7 @@ function compileTransformation(transformation) {
2605
2605
  }
2606
2606
  }
2607
2607
  var fromOptionalEffect = (effect) => flatMapEager(effect, fromOptionExit);
2608
- var wrapEncoding = (ast, input, options, effect) => catchCause(effect, (cause) => failCauseSync(() => map4(cause, (issue) => new Encoding(ast, issue, input, options))));
2608
+ var wrapEncoding = (ast, input, options, effect) => catchCause(effect, (cause) => failCauseSync(() => map5(cause, (issue) => new Encoding(ast, issue, input, options))));
2609
2609
  function makeConstructorParser(descriptor, compile) {
2610
2610
  const transform = compileTransformation(descriptor.link.transformation);
2611
2611
  let sourceParser;
@@ -3541,7 +3541,7 @@ function compileJsonSchema(representations, rootPaths, references, options) {
3541
3541
  for (const key of referenceKeys) {
3542
3542
  compileDefinition(key, ["references", key]);
3543
3543
  }
3544
- const compiledSchemas = map3(representations, (representation, index) => recur(representation, rootPaths[index], []));
3544
+ const compiledSchemas = map4(representations, (representation, index) => recur(representation, rootPaths[index], []));
3545
3545
  for (const [branches, schemas] of pendingOneOf.values()) {
3546
3546
  if (!isExact(branches)) {
3547
3547
  for (const schema of schemas) {
@@ -3569,7 +3569,7 @@ function compileJsonSchema(representations, rootPaths, references, options) {
3569
3569
  definitionAliases.set(key, match);
3570
3570
  }
3571
3571
  }
3572
- const schemas = map3(compiledSchemas, finalizeJsonSchema);
3572
+ const schemas = map4(compiledSchemas, finalizeJsonSchema);
3573
3573
  const definitions = {};
3574
3574
  for (const key of referenceKeys) {
3575
3575
  if (!definitionAliases.has(key)) {
@@ -4084,7 +4084,7 @@ function toRepresentations(asts, options) {
4084
4084
  }
4085
4085
  }
4086
4086
  }
4087
- const representations = map3(asts, (ast) => recur(ast));
4087
+ const representations = map4(asts, (ast) => recur(ast));
4088
4088
  return {
4089
4089
  representations,
4090
4090
  references
@@ -4322,7 +4322,7 @@ function toRepresentations(asts, options) {
4322
4322
  case "FilterGroup":
4323
4323
  return {
4324
4324
  _tag: "FilterGroup",
4325
- checks: map3(check.checks, fromCheck),
4325
+ checks: map4(check.checks, fromCheck),
4326
4326
  ...fromCheckAnnotations(check.annotations)
4327
4327
  };
4328
4328
  }
@@ -4436,10 +4436,10 @@ function fromIssueEffect(self) {
4436
4436
  if (effectIsExit(self)) {
4437
4437
  return fromIssueExit(self);
4438
4438
  }
4439
- return catchCause(self, (cause) => failCauseSync(() => map4(cause, (issue) => new SchemaError(issue))));
4439
+ return catchCause(self, (cause) => failCauseSync(() => map5(cause, (issue) => new SchemaError(issue))));
4440
4440
  }
4441
4441
  function fromIssueExit(exit) {
4442
- return isSuccess2(exit) ? exit : failCause2(map4(exit.cause, (issue) => new SchemaError(issue)));
4442
+ return isSuccess2(exit) ? exit : failCause2(map5(exit.cause, (issue) => new SchemaError(issue)));
4443
4443
  }
4444
4444
  function getSchemaErrorOrThrow(cause, message) {
4445
4445
  let schemaError;
@@ -15,7 +15,7 @@ import {
15
15
  isPattern,
16
16
  Defect,
17
17
  TaggedError2
18
- } from "./main-v6hzbxjd.mjs";
18
+ } from "./main-f98q5tcf.mjs";
19
19
  import {
20
20
  withFiber,
21
21
  getCurrentFiber,
@@ -42,7 +42,7 @@ import {
42
42
  acquireUseRelease,
43
43
  fnUntraced,
44
44
  fn
45
- } from "./main-xycdhwqs.mjs";
45
+ } from "./main-wpt5ha44.mjs";
46
46
  import {
47
47
  isString,
48
48
  isNumber,
@@ -52,7 +52,7 @@ import {
52
52
  import {
53
53
  dataRoot,
54
54
  cliCommand
55
- } from "./main-gbq7c729.mjs";
55
+ } from "./main-t8c7aq8b.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-9xbcy9q0.mjs";
3
+ } from "./main-hrrgcjhe.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-gbq7c729.mjs";
24
+ } from "./main-t8c7aq8b.mjs";
25
25
  import {
26
26
  writeStdout
27
27
  } from "./main-tk4axre7.mjs";
28
28
  import {
29
29
  formatPairingCode
30
- } from "./main-dwjfhfpm.mjs";
30
+ } from "./main-6q5nqhy7.mjs";
31
31
  import {
32
32
  unpackedExtensionId
33
33
  } from "./main-b3jrctcx.mjs";
@@ -0,0 +1,4 @@
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 };
@@ -6,7 +6,7 @@ import {
6
6
  installedRuntime2,
7
7
  autoUpdateStatus,
8
8
  updateAvailable
9
- } from "./main-gbq7c729.mjs";
9
+ } from "./main-t8c7aq8b.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-9d3dsv6t.mjs");
318
+ const { runInstalledUpdate } = await import("./runtime-update-7m0tkybs.mjs");
319
319
  if (await runInstalledUpdate(args))
320
320
  return;
321
321
  if (compiledBinary()) {
@@ -12,11 +12,11 @@ import {
12
12
  parseTargetSelection2,
13
13
  getObject2,
14
14
  getString2
15
- } from "./main-fs2ymcvd.mjs";
15
+ } from "./main-x9vdxj9f.mjs";
16
16
  import {
17
17
  isStream,
18
18
  provideContext
19
- } from "./main-jf7jberd.mjs";
19
+ } from "./main-s3g4jwx5.mjs";
20
20
  import {
21
21
  TaggedError,
22
22
  passthrough,
@@ -62,7 +62,7 @@ import {
62
62
  toJsonSchemaDocument,
63
63
  Json,
64
64
  JsonObject
65
- } from "./main-v6hzbxjd.mjs";
65
+ } from "./main-f98q5tcf.mjs";
66
66
  import {
67
67
  getStackTraceLimit,
68
68
  setStackTraceLimit,
@@ -89,7 +89,7 @@ import {
89
89
  contextWith,
90
90
  provide3,
91
91
  fnUntraced
92
- } from "./main-xycdhwqs.mjs";
92
+ } from "./main-wpt5ha44.mjs";
93
93
  import {
94
94
  pipeArguments,
95
95
  identity,
@@ -103,7 +103,7 @@ import {
103
103
  } from "./main-qazf3bhk.mjs";
104
104
  import {
105
105
  cliCommand
106
- } from "./main-gbq7c729.mjs";
106
+ } from "./main-t8c7aq8b.mjs";
107
107
 
108
108
  // node_modules/effect/dist/PrimaryKey.js
109
109
  var symbol = "~effect/PrimaryKey";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  makeRunMain2
3
- } from "./main-9bk4pprj.mjs";
3
+ } from "./main-3mhynene.mjs";
4
4
  import {
5
5
  Error2,
6
6
  TaggedError,
7
7
  tag2,
8
8
  Error3
9
- } from "./main-v6hzbxjd.mjs";
9
+ } from "./main-f98q5tcf.mjs";
10
10
  import {
11
11
  symbol2,
12
12
  hash,
@@ -57,7 +57,7 @@ import {
57
57
  fromIterable,
58
58
  isReadonlyArrayNonEmpty,
59
59
  of,
60
- map3,
60
+ map4,
61
61
  makeEquivalence,
62
62
  fromInputUnsafe,
63
63
  isFinite2,
@@ -129,7 +129,7 @@ import {
129
129
  flatMap3,
130
130
  andThen2,
131
131
  tap,
132
- map5,
132
+ map6,
133
133
  as,
134
134
  asVoid2,
135
135
  zipWith,
@@ -173,7 +173,7 @@ import {
173
173
  fnUntraced,
174
174
  clockWith,
175
175
  effectify
176
- } from "./main-xycdhwqs.mjs";
176
+ } from "./main-wpt5ha44.mjs";
177
177
  import {
178
178
  pipeArguments,
179
179
  dual,
@@ -1290,7 +1290,7 @@ var asyncQueue = (scope, f, options) => make7({
1290
1290
  capacity: options?.bufferSize,
1291
1291
  strategy: options?.strategy
1292
1292
  }).pipe(tap((queue) => addFinalizer(scope, shutdown(queue))), tap((queue) => forkIn(provide(f(queue), scope), scope)));
1293
- var callbackArray = (f, options) => fromTransform((_, scope) => map5(asyncQueue(scope, f, options), takeAll2));
1293
+ var callbackArray = (f, options) => fromTransform((_, scope) => map6(asyncQueue(scope, f, options), takeAll2));
1294
1294
  var suspend3 = (evaluate) => fromTransform((upstream, scope) => suspend2(() => toTransform(evaluate())(upstream, scope)));
1295
1295
  var empty5 = /* @__PURE__ */ fromPull(/* @__PURE__ */ succeed6(/* @__PURE__ */ done()));
1296
1296
  var fail = (error) => fromPull(succeed6(fail6(error)));
@@ -1327,13 +1327,13 @@ var readableStreamToPullUnsafe = (options) => {
1327
1327
  };
1328
1328
  var map2 = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => sync2(() => {
1329
1329
  let i = 0;
1330
- return map5(pull, (o) => f(o, i++));
1330
+ return map6(pull, (o) => f(o, i++));
1331
1331
  })));
1332
1332
  var mapDone = /* @__PURE__ */ dual(2, (self, f) => mapDoneEffect(self, (o) => succeed6(f(o))));
1333
1333
  var mapDoneEffect = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => succeed6(catchDone(pull, (done2) => flatMap3(f(done2), done)))));
1334
1334
  var catchCause2 = /* @__PURE__ */ dual(2, (self, f) => fromTransform((upstream, scope) => {
1335
1335
  let forkedScope = forkUnsafe(scope);
1336
- return map5(toTransform(self)(upstream, forkedScope), (pull) => {
1336
+ return map6(toTransform(self)(upstream, forkedScope), (pull) => {
1337
1337
  let currentPull = pull.pipe(catchCause((cause) => {
1338
1338
  if (isDoneCause(cause)) {
1339
1339
  return failCause3(cause);
@@ -1477,7 +1477,7 @@ var runWith = (self, f, onHalt) => suspend2(() => {
1477
1477
  const makePull = toTransform(self)(done(), scope);
1478
1478
  return catchDone(flatMap3(makePull, f), onHalt ? onHalt : succeed6).pipe(onExit((exit) => close(scope, exit)));
1479
1479
  });
1480
- var provideContext3 = /* @__PURE__ */ dual(2, (self, context) => fromTransform((upstream, scope) => map5(provideContext2(toTransform(self)(upstream, scope), context), provideContext2(context))));
1480
+ var provideContext3 = /* @__PURE__ */ dual(2, (self, context) => fromTransform((upstream, scope) => map6(provideContext2(toTransform(self)(upstream, scope), context), provideContext2(context))));
1481
1481
  var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
1482
1482
  disableYield: true
1483
1483
  })));
@@ -1685,7 +1685,7 @@ var forEach2 = (f) => forEachArray(forEach((_) => f(_), {
1685
1685
  var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f), forever({
1686
1686
  disableYield: true
1687
1687
  }), catchDone(() => endVoid)));
1688
- var unwrap3 = (effect) => fromChannel2(unwrap2(map5(effect, toChannel)));
1688
+ var unwrap3 = (effect) => fromChannel2(unwrap2(map6(effect, toChannel)));
1689
1689
 
1690
1690
  // node_modules/effect/dist/Stream.js
1691
1691
  var TypeId10 = "~effect/Stream";
@@ -1700,10 +1700,10 @@ var suspend4 = (stream) => fromChannel3(suspend3(() => stream().channel));
1700
1700
  var fail2 = (error) => fromChannel3(fail(error));
1701
1701
  var fromQueue = (queue) => fromChannel3(fromQueueArray(queue));
1702
1702
  var fromReadableStream2 = (options) => fromChannel3(fromReadableStream(options));
1703
- var unwrap = (effect) => fromChannel3(unwrap2(map5(effect, toChannel2)));
1704
- var map4 = /* @__PURE__ */ dual(2, (self, f) => suspend4(() => {
1703
+ var unwrap = (effect) => fromChannel3(unwrap2(map6(effect, toChannel2)));
1704
+ var map3 = /* @__PURE__ */ dual(2, (self, f) => suspend4(() => {
1705
1705
  let i = 0;
1706
- return fromChannel3(map2(self.channel, map3((o) => f(o, i++))));
1706
+ return fromChannel3(map2(self.channel, map4((o) => f(o, i++))));
1707
1707
  }));
1708
1708
  var merge4 = /* @__PURE__ */ dual((args) => isStream(args[0]) && isStream(args[1]), (self, that, options) => fromChannel3(merge3(toChannel2(self), toChannel2(that), options)));
1709
1709
  var mapError3 = /* @__PURE__ */ dual(2, (self, f) => fromChannel3(mapError(self.channel, f)));
@@ -1721,7 +1721,7 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
1721
1721
  done2 = fail4(error);
1722
1722
  return done();
1723
1723
  }));
1724
- const pull = map5(suspend2(() => sink.transform(upstreamWithLeftover, scope)), ([value, leftover_]) => {
1724
+ const pull = map6(suspend2(() => sink.transform(upstreamWithLeftover, scope)), ([value, leftover_]) => {
1725
1725
  leftover = leftover_;
1726
1726
  return of(value);
1727
1727
  });
@@ -1729,14 +1729,14 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
1729
1729
  })));
1730
1730
  var decodeText = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => suspend4(() => {
1731
1731
  const decoder = new TextDecoder(options?.encoding);
1732
- return map4(self, (chunk) => decoder.decode(chunk, {
1732
+ return map3(self, (chunk) => decoder.decode(chunk, {
1733
1733
  stream: true
1734
1734
  }));
1735
1735
  }));
1736
1736
  var splitLines2 = (self) => self.channel.pipe(pipeTo(splitLines()), fromChannel3);
1737
1737
  var ensuring3 = /* @__PURE__ */ dual(2, (self, finalizer) => fromChannel3(ensuring2(self.channel, finalizer)));
1738
1738
  var provideContext = /* @__PURE__ */ dual(2, (self, context) => fromChannel3(provideContext3(self.channel, context)));
1739
- var run2 = /* @__PURE__ */ dual(2, (self, sink) => scopedWith((scope) => toPullScoped(self.channel, scope).pipe(flatMap3((upstream) => sink.transform(upstream, scope)), map5(([a]) => a))));
1739
+ var run2 = /* @__PURE__ */ dual(2, (self, sink) => scopedWith((scope) => toPullScoped(self.channel, scope).pipe(flatMap3((upstream) => sink.transform(upstream, scope)), map6(([a]) => a))));
1740
1740
  var runCollect = (self) => runFold(self.channel, () => [], (acc, chunk) => {
1741
1741
  for (let i = 0;i < chunk.length; i++) {
1742
1742
  acc.push(chunk[i]);
@@ -1788,7 +1788,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
1788
1788
  }
1789
1789
  }, options?.strategy);
1790
1790
  });
1791
- var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map5(context2(), (context) => toReadableStreamWith(self, context, options)));
1791
+ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map6(context2(), (context) => toReadableStreamWith(self, context, options)));
1792
1792
 
1793
1793
  // node_modules/effect/dist/PlatformError.js
1794
1794
  var TypeId11 = "~effect/PlatformError";
@@ -1870,7 +1870,7 @@ var make10 = (impl) => FileSystem.of({
1870
1870
  sink: (path, options) => pipe(impl.open(path, {
1871
1871
  ...options,
1872
1872
  flag: options?.flag ?? "w"
1873
- }), map5((file) => forEach2((_) => file.writeAll(_))), unwrap3),
1873
+ }), map6((file) => forEach2((_) => file.writeAll(_))), unwrap3),
1874
1874
  writeFileString: (path, data, options) => flatMap3(try_2({
1875
1875
  try: () => new TextEncoder().encode(data),
1876
1876
  catch: (cause) => badArgument({
@@ -2249,7 +2249,7 @@ var setHash = /* @__PURE__ */ dual(2, (self, hash) => makeWith(self.method, self
2249
2249
  var setBody = /* @__PURE__ */ dual(2, (self, body) => {
2250
2250
  return makeWith(self.method, self.url, self.urlParams, self.hash, updateHeaders(self.headers, body), body);
2251
2251
  });
2252
- var bodyJson = /* @__PURE__ */ dual(2, (self, body) => map5(json(body), (body) => setBody(self, body)));
2252
+ var bodyJson = /* @__PURE__ */ dual(2, (self, body) => map6(json(body), (body) => setBody(self, body)));
2253
2253
  function toUrl(self) {
2254
2254
  const r = make12(self.url, self.urlParams, getOrUndefined(self.hash));
2255
2255
  if (isSuccess(r)) {
@@ -2367,7 +2367,7 @@ class WebHttpClientResponse extends Class3 {
2367
2367
  }
2368
2368
  textBody;
2369
2369
  get text() {
2370
- return this.textBody ??= map5(this.arrayBuffer, (_) => new TextDecoder().decode(_));
2370
+ return this.textBody ??= map6(this.arrayBuffer, (_) => new TextDecoder().decode(_));
2371
2371
  }
2372
2372
  get urlParamsBody() {
2373
2373
  return flatMap3(this.text, (_) => try_2({
@@ -2543,7 +2543,7 @@ var TracerPropagationEnabled = /* @__PURE__ */ Reference("effect/http/HttpClient
2543
2543
  var SpanNameGenerator = /* @__PURE__ */ Reference("effect/http/HttpClient/SpanNameGenerator", {
2544
2544
  defaultValue: () => (request) => `http.client ${request.method}`
2545
2545
  });
2546
- var layerMergedContext = (effect2) => effect(HttpClient)(contextWith((context) => map5(effect2, (client) => transformResponse(client, updateContext((input) => merge2(context, input))))));
2546
+ var layerMergedContext = (effect2) => effect(HttpClient)(contextWith((context) => map6(effect2, (client) => transformResponse(client, updateContext((input) => merge2(context, input))))));
2547
2547
  var responseRegistry = /* @__PURE__ */ (() => {
2548
2548
  if ("FinalizationRegistry" in globalThis && globalThis.FinalizationRegistry) {
2549
2549
  const registry = /* @__PURE__ */ new FinalizationRegistry((controller) => {
@@ -2720,7 +2720,7 @@ var fromReadableChannel = (options) => fromTransform((_, scope) => readableToPul
2720
2720
  chunkSize: options.chunkSize,
2721
2721
  closeOnDone: options.closeOnDone
2722
2722
  }));
2723
- var toReadable = (stream) => map5(context2(), (context) => new StreamAdapter(context, stream));
2723
+ var toReadable = (stream) => map6(context2(), (context) => new StreamAdapter(context, stream));
2724
2724
  var toArrayBuffer = (readable, options) => {
2725
2725
  const maxBytesNumber = toMaxBytes(options?.maxBytes);
2726
2726
  const onError = options?.onError ?? defaultOnError;
@@ -2873,7 +2873,7 @@ class NodeHttpIncomingMessage extends Class3 {
2873
2873
  if (this.textEffect) {
2874
2874
  return this.textEffect;
2875
2875
  }
2876
- this.textEffect = map5(this.arrayBuffer, (_) => Buffer.from(_).toString("utf8"));
2876
+ this.textEffect = map6(this.arrayBuffer, (_) => Buffer.from(_).toString("utf8"));
2877
2877
  return this.textEffect;
2878
2878
  }
2879
2879
  get textUnsafe() {
@@ -2909,7 +2909,7 @@ class NodeHttpIncomingMessage extends Class3 {
2909
2909
  onError: this.onError,
2910
2910
  maxBytes: fiber.getRef(MaxBodySize)
2911
2911
  })).pipe(cached, runSync);
2912
- this.textEffect = map5(this.arrayBufferEffect, (_) => new TextDecoder().decode(_));
2912
+ this.textEffect = map6(this.arrayBufferEffect, (_) => new TextDecoder().decode(_));
2913
2913
  return this.arrayBufferEffect;
2914
2914
  }
2915
2915
  }
@@ -2928,7 +2928,7 @@ var fetch = /* @__PURE__ */ make14((request, url, signal, fiber) => {
2928
2928
  if (headers["content-length"]) {
2929
2929
  headers = remove(headers, "content-length");
2930
2930
  }
2931
- const send = (body) => map5(tryPromise({
2931
+ const send = (body) => map6(tryPromise({
2932
2932
  try: () => fetch(url, {
2933
2933
  ...options,
2934
2934
  method: request.method,
@@ -2961,9 +2961,9 @@ var layer3 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch))
2961
2961
  class Dispatcher extends (/* @__PURE__ */ Service2()("@effect/platform-node/NodeHttpClient/Dispatcher")) {
2962
2962
  }
2963
2963
  var loadUndici = /* @__PURE__ */ promise(() => import("./Undici-xgvbtsb1.mjs"));
2964
- var makeDispatcher = /* @__PURE__ */ acquireRelease(/* @__PURE__ */ map5(loadUndici, (_) => new _.Agent), (dispatcher) => promise(() => dispatcher.destroy()));
2964
+ var makeDispatcher = /* @__PURE__ */ acquireRelease(/* @__PURE__ */ map6(loadUndici, (_) => new _.Agent), (dispatcher) => promise(() => dispatcher.destroy()));
2965
2965
  var layerDispatcher = /* @__PURE__ */ effect(Dispatcher)(makeDispatcher);
2966
- var dispatcherLayerGlobal = /* @__PURE__ */ effect(Dispatcher)(/* @__PURE__ */ map5(loadUndici, (_) => _.getGlobalDispatcher()));
2966
+ var dispatcherLayerGlobal = /* @__PURE__ */ effect(Dispatcher)(/* @__PURE__ */ map6(loadUndici, (_) => _.getGlobalDispatcher()));
2967
2967
  var UndiciOptions = /* @__PURE__ */ Reference("@effect/platform-node/NodeHttpClient/UndiciOptions", {
2968
2968
  defaultValue: () => ({})
2969
2969
  });
@@ -2987,7 +2987,7 @@ var makeUndici = /* @__PURE__ */ gen(function* () {
2987
2987
  cause
2988
2988
  })
2989
2989
  })
2990
- })), map5((response) => new UndiciResponse(request, response, url.href.split("#")[0]))));
2990
+ })), map6((response) => new UndiciResponse(request, response, url.href.split("#")[0]))));
2991
2991
  });
2992
2992
  function convertBody(body) {
2993
2993
  switch (body._tag) {
@@ -3072,7 +3072,7 @@ class UndiciResponse extends Class3 {
3072
3072
  if (this.textBody) {
3073
3073
  return this.textBody;
3074
3074
  }
3075
- this.textBody = map5(this.arrayBuffer, (_) => new TextDecoder().decode(_));
3075
+ this.textBody = map6(this.arrayBuffer, (_) => new TextDecoder().decode(_));
3076
3076
  return this.textBody;
3077
3077
  }
3078
3078
  get urlParamsBody() {
@@ -3117,7 +3117,7 @@ class UndiciResponse extends Class3 {
3117
3117
  })
3118
3118
  })
3119
3119
  }).pipe(cached, runSync);
3120
- this.textBody = map5(this.arrayBufferBody, (_) => new TextDecoder().decode(_));
3120
+ this.textBody = map6(this.arrayBufferBody, (_) => new TextDecoder().decode(_));
3121
3121
  return this.arrayBufferBody;
3122
3122
  }
3123
3123
  toJSON() {
@@ -3156,7 +3156,7 @@ var makeNodeHttp = /* @__PURE__ */ gen(function* () {
3156
3156
  headers: request3.headers,
3157
3157
  signal
3158
3158
  });
3159
- return raceFirst(waitForResponse(nodeRequest, request3), sendBody(nodeRequest, request3, request3.body).pipe(andThen2(never))).pipe(onError(() => sync2(() => nodeRequest.destroy())), map5((_) => new NodeHttpResponse(request3, _, url.href.split("#")[0])));
3159
+ return raceFirst(waitForResponse(nodeRequest, request3), sendBody(nodeRequest, request3, request3.body).pipe(andThen2(never))).pipe(onError(() => sync2(() => nodeRequest.destroy())), map6((_) => new NodeHttpResponse(request3, _, url.href.split("#")[0])));
3160
3160
  });
3161
3161
  });
3162
3162
  var sendBody = (nodeRequest, request, body) => suspend2(() => {
@@ -3839,7 +3839,7 @@ var makeHandle = (params) => Object.setPrototypeOf({
3839
3839
  ...params
3840
3840
  }, HandleProto);
3841
3841
  var make15 = (spawn) => {
3842
- const streamString = (command, options) => spawn(command).pipe(map5((handle) => decodeText(options?.includeStderr === true ? handle.all : handle.stdout)), unwrap);
3842
+ const streamString = (command, options) => spawn(command).pipe(map6((handle) => decodeText(options?.includeStderr === true ? handle.all : handle.stdout)), unwrap);
3843
3843
  const streamLines = (command, options) => splitLines2(streamString(command, options));
3844
3844
  return ChildProcessSpawner.of({
3845
3845
  spawn,
@@ -4430,7 +4430,7 @@ var make17 = /* @__PURE__ */ gen(function* () {
4430
4430
  getInputFd,
4431
4431
  getOutputFd
4432
4432
  } = yield* setupAdditionalFds(cmd, childProcess, resolvedAdditionalFds);
4433
- const isRunning = map5(isDone(exitSignal), (done) => !done);
4433
+ const isRunning = map6(isDone(exitSignal), (done) => !done);
4434
4434
  const exitCode = flatMap3(_await(exitSignal), ([code, signal]) => {
4435
4435
  if (isNotNull(code)) {
4436
4436
  return succeed6(ExitCode(code));
@@ -4620,7 +4620,7 @@ var TypeId22 = "~effect/Crypto";
4620
4620
  var Crypto = /* @__PURE__ */ Service2("effect/Crypto");
4621
4621
  var make18 = (impl) => {
4622
4622
  const randomBytesUnsafe = impl.randomBytes;
4623
- const randomBytes = (size) => map5(validateSize("randomBytes", size), randomBytesUnsafe);
4623
+ const randomBytes = (size) => map6(validateSize("randomBytes", size), randomBytesUnsafe);
4624
4624
  const readUint53 = (bytes) => (bytes[0] & 31) * 2 ** 48 + bytes[1] * 2 ** 40 + bytes[2] * 2 ** 32 + bytes[3] * 2 ** 24 + bytes[4] * 2 ** 16 + bytes[5] * 2 ** 8 + bytes[6];
4625
4625
  const nextDoubleUnsafe = () => readUint53(randomBytesUnsafe(7)) / 2 ** 53;
4626
4626
  const nextIntUnsafe = () => {
@@ -4807,7 +4807,7 @@ var makeTempDirectoryScoped = /* @__PURE__ */ (() => {
4807
4807
  var openFactory = (method) => {
4808
4808
  const nodeOpen = effectify(NFS.open, handleErrnoException("FileSystem", method), handleBadArgument(method));
4809
4809
  const nodeClose = effectify(NFS.close, handleErrnoException("FileSystem", method), handleBadArgument(method));
4810
- return (path, options) => pipe(acquireRelease(nodeOpen(path, options?.flag ?? "r", options?.mode), (fd) => orDie(nodeClose(fd))), map5((fd) => makeFile(fd, options?.flag?.startsWith("a") ?? false)));
4810
+ return (path, options) => pipe(acquireRelease(nodeOpen(path, options?.flag ?? "r", options?.mode), (fd) => orDie(nodeClose(fd))), map6((fd) => makeFile(fd, options?.flag?.startsWith("a") ?? false)));
4811
4811
  };
4812
4812
  var open2 = /* @__PURE__ */ openFactory("open");
4813
4813
  var makeFile = /* @__PURE__ */ (() => {
@@ -4856,7 +4856,7 @@ var makeFile = /* @__PURE__ */ (() => {
4856
4856
  read(buffer) {
4857
4857
  return suspend2(() => {
4858
4858
  const position = this.position;
4859
- return map5(nodeRead(this.fd, {
4859
+ return map6(nodeRead(this.fd, {
4860
4860
  buffer,
4861
4861
  position
4862
4862
  }), (bytesRead) => {
@@ -4873,7 +4873,7 @@ var makeFile = /* @__PURE__ */ (() => {
4873
4873
  }
4874
4874
  const buffer = Buffer.allocUnsafeSlow(size);
4875
4875
  const position = this.position;
4876
- return map5(nodeReadAlloc(this.fd, {
4876
+ return map6(nodeReadAlloc(this.fd, {
4877
4877
  buffer,
4878
4878
  position
4879
4879
  }), (bytesRead) => {
@@ -4894,7 +4894,7 @@ var makeFile = /* @__PURE__ */ (() => {
4894
4894
  });
4895
4895
  }
4896
4896
  truncate(length) {
4897
- return map5(nodeTruncate(this.fd, length || undefined), () => {
4897
+ return map6(nodeTruncate(this.fd, length || undefined), () => {
4898
4898
  if (!this.append) {
4899
4899
  const len = BigInt(length ?? 0);
4900
4900
  if (this.position > len) {
@@ -4906,7 +4906,7 @@ var makeFile = /* @__PURE__ */ (() => {
4906
4906
  write(buffer) {
4907
4907
  return suspend2(() => {
4908
4908
  const position = this.position;
4909
- return flatMap3(this.append ? succeed6(undefined) : positionToNumber(position, "write"), (nodePosition) => map5(nodeWrite(this.fd, buffer, undefined, undefined, nodePosition), (bytesWritten) => {
4909
+ return flatMap3(this.append ? succeed6(undefined) : positionToNumber(position, "write"), (nodePosition) => map6(nodeWrite(this.fd, buffer, undefined, undefined, nodePosition), (bytesWritten) => {
4910
4910
  if (!this.append) {
4911
4911
  this.position = position + BigInt(bytesWritten);
4912
4912
  }
@@ -5070,7 +5070,7 @@ var watchNode = (path, info, options) => callback3((queue) => acquireRelease(syn
5070
5070
  });
5071
5071
  return watcher;
5072
5072
  }), (watcher) => sync2(() => watcher.close())));
5073
- var watch2 = (backend, path, options) => stat2(path).pipe(map5((stat) => backend.pipe(flatMap((_) => _.register(path, stat, options)), getOrElse(() => watchNode(path, stat, options)))), unwrap);
5073
+ var watch2 = (backend, path, options) => stat2(path).pipe(map6((stat) => backend.pipe(flatMap((_) => _.register(path, stat, options)), getOrElse(() => watchNode(path, stat, options)))), unwrap);
5074
5074
  var writeFile2 = (path, data, options) => callback2((resume, signal) => {
5075
5075
  try {
5076
5076
  NFS.writeFile(path, data, {
@@ -5088,7 +5088,7 @@ var writeFile2 = (path, data, options) => callback2((resume, signal) => {
5088
5088
  resume(fail6(handleBadArgument("writeFile")(err)));
5089
5089
  }
5090
5090
  });
5091
- var makeFileSystem = /* @__PURE__ */ map5(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make10({
5091
+ var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make10({
5092
5092
  access: access2,
5093
5093
  chmod: chmod2,
5094
5094
  chown: chown2,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./main-pmfd055v.mjs";
5
5
  import {
6
6
  opencodeBrowserVersion2
7
- } from "./main-9xbcy9q0.mjs";
7
+ } from "./main-hrrgcjhe.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.169", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
117
+ return { kind: "npm", version: "0.0.17-dev.171", 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.169.zip", sha256: "d54a8586fbbdb8d897c05574ad9bc698a11168dea26ceab9c3be1fa29517b55e", size: 184210 }) {
139
+ function devExtension(baked = { file: "browse-extension-0.0.17-dev.171.zip", sha256: "ceb4ed7e02b00480bbd8d5304af2df0a990ff40b91ddfc62df2a7eeaacfaf98e", size: 184210 }) {
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}`;