@opencode/browse 0.0.17-dev.180 → 0.0.17-dev.182

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 (39) hide show
  1. package/dist/{Runtime-jrg7sc9p.mjs → Runtime-xss8qan1.mjs} +1 -1
  2. package/dist/{cli-dbb5bjne.mjs → cli-29nz7n5s.mjs} +42 -41
  3. package/dist/cli.mjs +14 -14
  4. package/dist/{helpers-mbetgbwv.mjs → helpers-vyfqh9b2.mjs} +1 -3
  5. package/dist/{index-j79y2me1.mjs → index-gjq7chrk.mjs} +2 -2
  6. package/dist/{legacy-runtime-eky6yenx.mjs → legacy-runtime-6hnptg9g.mjs} +30 -17
  7. package/dist/main-4vvyemrj.mjs +4 -0
  8. package/dist/{main-awaqqre9.mjs → main-6a10pzcy.mjs} +117 -4
  9. package/dist/{main-f98q5tcf.mjs → main-6hvv25x8.mjs} +27 -29
  10. package/dist/main-6yn76a8h.mjs +1014 -0
  11. package/dist/{main-q2d5bd1e.mjs → main-7y95agwd.mjs} +8 -10
  12. package/dist/{main-3mhynene.mjs → main-9frwnsnf.mjs} +3 -5
  13. package/dist/{main-048kx59h.mjs → main-akpa411k.mjs} +6 -8
  14. package/dist/{main-v2a390e1.mjs → main-ddha60b9.mjs} +7 -9
  15. package/dist/{main-wfmad10p.mjs → main-emsvawnv.mjs} +16 -18
  16. package/dist/{main-g1frnq76.mjs → main-fak5r9je.mjs} +8 -7
  17. package/dist/{main-fpn564ph.mjs → main-gffzw2p5.mjs} +7 -4
  18. package/dist/{main-s3g4jwx5.mjs → main-jeta10c6.mjs} +23 -25
  19. package/dist/{main-wpt5ha44.mjs → main-m45zegrn.mjs} +371 -167
  20. package/dist/{main-46wtkfsd.mjs → main-qrjqb2nq.mjs} +200 -989
  21. package/dist/{main-jwss6gk9.mjs → main-s32xre10.mjs} +2 -2
  22. package/dist/main-wr4d7914.mjs +213 -0
  23. package/dist/{main-r8g3xydm.mjs → main-yegq8f5a.mjs} +3 -5
  24. package/dist/{main-44rp8pxg.mjs → main-zhhwe1b2.mjs} +4 -4
  25. package/dist/{mcp-amxrbrbd.mjs → mcp-s4zq3r5e.mjs} +37 -32
  26. package/dist/{migrate-07f3f3yp.mjs → migrate-bjbv00k0.mjs} +5 -6
  27. package/dist/{relay-e7fx469h.mjs → relay-c4d4s5wv.mjs} +134 -63
  28. package/dist/{runtime-update-xt7x7j6c.mjs → runtime-update-dxb97fdt.mjs} +9 -9
  29. package/dist/{setup-m85mamg6.mjs → setup-mjb2zzdx.mjs} +196 -129
  30. package/dist/{skill-text-7bqtc16a.mjs → skill-text-1rg5b5np.mjs} +12 -0
  31. package/dist/{supervisor-6zbwkkpt.mjs → supervisor-vwmswj0w.mjs} +10 -6
  32. package/dist/{update-drswqt2m.mjs → update-b708rvmn.mjs} +3 -4
  33. package/dist/{version-v3heqz8b.mjs → version-qnx1byw6.mjs} +1 -1
  34. package/package.json +1 -1
  35. package/skills/browse/SKILL.md +12 -0
  36. package/dist/main-4h7rfhhr.mjs +0 -61
  37. package/dist/main-amkq7v9m.mjs +0 -4
  38. package/dist/main-gg7f12gg.mjs +0 -114
  39. package/dist/main-qazf3bhk.mjs +0 -223
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isNodeError,
3
3
  writeJsonFileAtomically
4
- } from "./main-4h7rfhhr.mjs";
4
+ } from "./main-6yn76a8h.mjs";
5
5
  import {
6
6
  decodeUnknownEffect2,
7
7
  decodeUnknownSync,
@@ -15,8 +15,12 @@ import {
15
15
  isPattern,
16
16
  Defect,
17
17
  TaggedError2
18
- } from "./main-f98q5tcf.mjs";
18
+ } from "./main-6hvv25x8.mjs";
19
19
  import {
20
+ isString,
21
+ isNumber,
22
+ isBoolean,
23
+ isObject,
20
24
  withFiber,
21
25
  getCurrentFiber,
22
26
  succeed2,
@@ -42,17 +46,11 @@ import {
42
46
  acquireUseRelease,
43
47
  fnUntraced,
44
48
  fn
45
- } from "./main-wpt5ha44.mjs";
46
- import {
47
- isString,
48
- isNumber,
49
- isBoolean,
50
- isObject
51
- } from "./main-qazf3bhk.mjs";
49
+ } from "./main-m45zegrn.mjs";
52
50
  import {
53
51
  dataRoot,
54
52
  cliCommand
55
- } from "./main-awaqqre9.mjs";
53
+ } from "./main-6a10pzcy.mjs";
56
54
 
57
55
  // node_modules/effect/dist/Semaphore.js
58
56
  var makeUnsafe = (permits) => new SemaphoreImpl(permits);
@@ -1,4 +1,6 @@
1
1
  import {
2
+ dual,
3
+ constVoid,
2
4
  hasInterruptsOnly,
3
5
  squash,
4
6
  isSuccess2,
@@ -7,11 +9,7 @@ import {
7
9
  tapCause,
8
10
  runFork,
9
11
  logError
10
- } from "./main-wpt5ha44.mjs";
11
- import {
12
- dual,
13
- constVoid
14
- } from "./main-qazf3bhk.mjs";
12
+ } from "./main-m45zegrn.mjs";
15
13
 
16
14
  // node_modules/effect/dist/Runtime.js
17
15
  var defaultTeardown2 = (exit, onExit) => {
@@ -1,18 +1,16 @@
1
1
  import {
2
+ pipeArguments,
3
+ identity,
4
+ isString,
5
+ isNumber,
6
+ isBoolean,
2
7
  succeed,
3
8
  fail2,
4
9
  isResult,
5
10
  isSuccess,
6
11
  ClockRef,
7
12
  currentTimeMillis2
8
- } from "./main-wpt5ha44.mjs";
9
- import {
10
- pipeArguments,
11
- identity,
12
- isString,
13
- isNumber,
14
- isBoolean
15
- } from "./main-qazf3bhk.mjs";
13
+ } from "./main-m45zegrn.mjs";
16
14
 
17
15
  // node_modules/effect/dist/Clock.js
18
16
  var Clock = ClockRef;
@@ -1,9 +1,10 @@
1
1
  import {
2
- isNodeError
3
- } from "./main-4h7rfhhr.mjs";
4
- import {
2
+ isNodeError,
5
3
  isValidSessionId2
6
- } from "./main-46wtkfsd.mjs";
4
+ } from "./main-6yn76a8h.mjs";
5
+ import {
6
+ stateRoot
7
+ } from "./main-6a10pzcy.mjs";
7
8
  import {
8
9
  decodeUnknownOption,
9
10
  optionalKey,
@@ -13,13 +14,10 @@ import {
13
14
  Struct,
14
15
  ArraySchema,
15
16
  NullOr
16
- } from "./main-f98q5tcf.mjs";
17
+ } from "./main-6hvv25x8.mjs";
17
18
  import {
18
19
  isSome
19
- } from "./main-wpt5ha44.mjs";
20
- import {
21
- stateRoot
22
- } from "./main-awaqqre9.mjs";
20
+ } from "./main-m45zegrn.mjs";
23
21
 
24
22
  // src/session-manager/journal.ts
25
23
  import fs from "node:fs";
@@ -1,3 +1,6 @@
1
+ import {
2
+ cliCommand
3
+ } from "./main-6a10pzcy.mjs";
1
4
  import {
2
5
  SessionDeleted,
3
6
  ExecuteLogEntry,
@@ -12,11 +15,11 @@ import {
12
15
  parseTargetSelection2,
13
16
  getObject2,
14
17
  getString2
15
- } from "./main-46wtkfsd.mjs";
18
+ } from "./main-6yn76a8h.mjs";
16
19
  import {
17
20
  isStream,
18
21
  provideContext
19
- } from "./main-s3g4jwx5.mjs";
22
+ } from "./main-jeta10c6.mjs";
20
23
  import {
21
24
  TaggedError,
22
25
  passthrough,
@@ -62,8 +65,17 @@ import {
62
65
  toJsonSchemaDocument,
63
66
  Json,
64
67
  JsonObject
65
- } from "./main-f98q5tcf.mjs";
68
+ } from "./main-6hvv25x8.mjs";
66
69
  import {
70
+ pipeArguments,
71
+ identity,
72
+ constTrue,
73
+ constFalse,
74
+ constUndefined,
75
+ isString,
76
+ isNumber,
77
+ isBoolean,
78
+ hasProperty,
67
79
  getStackTraceLimit,
68
80
  setStackTraceLimit,
69
81
  none,
@@ -89,21 +101,7 @@ import {
89
101
  contextWith,
90
102
  provide3,
91
103
  fnUntraced
92
- } from "./main-wpt5ha44.mjs";
93
- import {
94
- pipeArguments,
95
- identity,
96
- constTrue,
97
- constFalse,
98
- constUndefined,
99
- isString,
100
- isNumber,
101
- isBoolean,
102
- hasProperty
103
- } from "./main-qazf3bhk.mjs";
104
- import {
105
- cliCommand
106
- } from "./main-awaqqre9.mjs";
104
+ } from "./main-m45zegrn.mjs";
107
105
 
108
106
  // node_modules/effect/dist/PrimaryKey.js
109
107
  var symbol = "~effect/PrimaryKey";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  opencodeBrowserVersion2
3
- } from "./main-amkq7v9m.mjs";
3
+ } from "./main-4vvyemrj.mjs";
4
4
  import {
5
5
  configRoot2,
6
6
  dataRoot,
@@ -18,19 +18,20 @@ import {
18
18
  devExtension,
19
19
  devExtensionFolder,
20
20
  storeUrl,
21
+ unpackedExtensionId,
21
22
  npmGlobalRoot,
22
23
  installedVersion,
23
24
  runCommand
24
- } from "./main-awaqqre9.mjs";
25
+ } from "./main-6a10pzcy.mjs";
25
26
  import {
26
27
  writeStdout
27
28
  } from "./main-tk4axre7.mjs";
28
29
  import {
29
- formatPairingCode
30
- } from "./main-fpn564ph.mjs";
30
+ defaultPort2
31
+ } from "./main-6yn76a8h.mjs";
31
32
  import {
32
- unpackedExtensionId
33
- } from "./main-gg7f12gg.mjs";
33
+ formatPairingCode
34
+ } from "./main-gffzw2p5.mjs";
34
35
  import {
35
36
  __toESM,
36
37
  __commonJS,
@@ -10722,7 +10723,7 @@ var dev = fromSource ? undefined : devExtension();
10722
10723
  var unpackedFolder = () => checkoutExtensionDirs[1] ?? (dev ? devExtensionFolder(paths.cache) : undefined);
10723
10724
  var connectedMessage = "✓ Connected to your browser. Ask your agent to open a page.";
10724
10725
  var pairedOfflineMessage = "! Not connected yet. Open the browser profile already paired with browse and make sure the extension is enabled. It reconnects automatically.";
10725
- var manualPair = (code) => `Open the Extensions menu → browse → Options, expand advanced (or click Pair with a code), enter ${formatPairingCode(code)} as the pairing code, then click Connect.`;
10726
+ var manualPair = (code, port = defaultPort2, address) => `Open the Extensions menu → browse → Options, expand advanced (or click Pair with a code), enter ${formatPairingCode(code)} as the pairing code${address ? ` and ${address} as the relay address` : port === defaultPort2 ? "" : ` and localhost:${port} as the relay address`}, then click Connect.`;
10726
10727
  function flag(args, name) {
10727
10728
  const index = args.indexOf(name);
10728
10729
  return index === -1 ? undefined : args[index + 1];
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  writePrivateJsonFileSync
3
- } from "./main-4h7rfhhr.mjs";
3
+ } from "./main-6yn76a8h.mjs";
4
4
  import {
5
5
  dataRoot,
6
6
  stateRoot
7
- } from "./main-awaqqre9.mjs";
7
+ } from "./main-6a10pzcy.mjs";
8
8
 
9
9
  // src/relay/browser-pairing.ts
10
10
  import crypto from "node:crypto";
@@ -69,8 +69,11 @@ function recordPairingFailure(root = stateRoot(), now = Date.now()) {
69
69
  writePendingCodes(root, exhausted ? { codes: [], failures: 0 } : { codes: pending.codes, failures });
70
70
  return exhausted && pending.codes.length > 0;
71
71
  }
72
- function writeExtensionPairing(extensionDirectory, code) {
73
- writePrivateJsonFileSync(path.join(extensionDirectory, extensionPairingFileName), { code });
72
+ function writeExtensionPairing(extensionDirectory, code, port) {
73
+ writePrivateJsonFileSync(path.join(extensionDirectory, extensionPairingFileName), {
74
+ code,
75
+ ...port === undefined ? {} : { port }
76
+ });
74
77
  }
75
78
  function readBrowserPairings(root = dataRoot()) {
76
79
  try {
@@ -1,13 +1,27 @@
1
1
  import {
2
2
  makeRunMain2
3
- } from "./main-3mhynene.mjs";
3
+ } from "./main-9frwnsnf.mjs";
4
4
  import {
5
5
  Error2,
6
6
  TaggedError,
7
7
  tag2,
8
8
  Error3
9
- } from "./main-f98q5tcf.mjs";
9
+ } from "./main-6hvv25x8.mjs";
10
10
  import {
11
+ pipeArguments,
12
+ dual,
13
+ identity,
14
+ constTrue,
15
+ constFalse,
16
+ constVoid,
17
+ pipe,
18
+ flow,
19
+ isString,
20
+ isUndefined,
21
+ isNotUndefined,
22
+ isNotNull,
23
+ isNullish,
24
+ hasProperty,
11
25
  symbol2,
12
26
  hash,
13
27
  structure,
@@ -20,7 +34,7 @@ import {
20
34
  NodeInspectSymbol,
21
35
  toJson,
22
36
  BaseProto,
23
- Class3,
37
+ Class4,
24
38
  assignProperty,
25
39
  PipeInspectableProto,
26
40
  causeFail,
@@ -29,7 +43,7 @@ import {
29
43
  exitFail,
30
44
  withFiber,
31
45
  Done,
32
- Prototype,
46
+ Prototype2,
33
47
  make9,
34
48
  strictEqual,
35
49
  Tuple2,
@@ -173,23 +187,7 @@ import {
173
187
  fnUntraced,
174
188
  clockWith,
175
189
  effectify
176
- } from "./main-wpt5ha44.mjs";
177
- import {
178
- pipeArguments,
179
- dual,
180
- identity,
181
- constTrue,
182
- constFalse,
183
- constVoid,
184
- pipe,
185
- flow,
186
- isString,
187
- isUndefined,
188
- isNotUndefined,
189
- isNotNull,
190
- isNullish,
191
- hasProperty
192
- } from "./main-qazf3bhk.mjs";
190
+ } from "./main-m45zegrn.mjs";
193
191
  import {
194
192
  __export
195
193
  } from "./main-j98fzrvv.mjs";
@@ -2291,7 +2289,7 @@ var inspect = (self, that) => {
2291
2289
  // node_modules/effect/dist/http/HttpClientResponse.js
2292
2290
  var TypeId18 = "~effect/http/HttpClientResponse";
2293
2291
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
2294
- class WebHttpClientResponse extends Class3 {
2292
+ class WebHttpClientResponse extends Class4 {
2295
2293
  [TypeId17];
2296
2294
  [TypeId18];
2297
2295
  request;
@@ -2850,7 +2848,7 @@ var defaultOnError = (error) => new UnknownError(error);
2850
2848
  var toMaxBytes = (maxBytes) => maxBytes === undefined || maxBytes === Infinity ? undefined : Number(fromInputUnsafe2(maxBytes));
2851
2849
 
2852
2850
  // node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
2853
- class NodeHttpIncomingMessage extends Class3 {
2851
+ class NodeHttpIncomingMessage extends Class4 {
2854
2852
  [TypeId17];
2855
2853
  source;
2856
2854
  onError;
@@ -3008,7 +3006,7 @@ function convertBody(body) {
3008
3006
  }
3009
3007
  function noopErrorHandler(_) {}
3010
3008
 
3011
- class UndiciResponse extends Class3 {
3009
+ class UndiciResponse extends Class4 {
3012
3010
  [TypeId17];
3013
3011
  [TypeId18];
3014
3012
  request;
@@ -3857,7 +3855,7 @@ class ChildProcessSpawner extends (/* @__PURE__ */ Service2()("effect/process/Ch
3857
3855
  // node_modules/effect/dist/process/ChildProcess.js
3858
3856
  var TypeId21 = "~effect/process/ChildProcess";
3859
3857
  var Proto8 = {
3860
- .../* @__PURE__ */ Prototype({
3858
+ .../* @__PURE__ */ Prototype2({
3861
3859
  label: "Command",
3862
3860
  evaluate(fiber) {
3863
3861
  return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);