@opencode/browse 0.0.15-dev.97 → 0.0.15

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 (35) hide show
  1. package/dist/{Undici-88kyhfpm.mjs → Undici-mxpvn7gy.mjs} +1 -1
  2. package/dist/{cli-t7r3wnv8.mjs → cli-xke2d25m.mjs} +139 -135
  3. package/dist/cli.mjs +17 -16
  4. package/dist/{helpers-j683tr91.mjs → helpers-tsvynww5.mjs} +4 -2
  5. package/dist/{index-yzz55kxm.mjs → index-6gkr235e.mjs} +1 -1
  6. package/dist/{main-8fkq5dgw.mjs → main-3esbykhb.mjs} +4 -4
  7. package/dist/{main-r62eef6t.mjs → main-70y5racc.mjs} +2 -2
  8. package/dist/main-7y3pj4rc.mjs +1694 -0
  9. package/dist/{main-7n3prtjk.mjs → main-9kxgkcse.mjs} +2 -2
  10. package/dist/main-9t2s5ptx.mjs +5405 -0
  11. package/dist/{main-vgzr4689.mjs → main-azpzpy0x.mjs} +1 -1
  12. package/dist/main-ckssvk4c.mjs +18 -0
  13. package/dist/{main-d0vkm24t.mjs → main-crssg4wd.mjs} +25 -11
  14. package/dist/{main-b3w2ntyc.mjs → main-d79nrcqc.mjs} +67 -58
  15. package/dist/{main-8z9d979q.mjs → main-er120rjm.mjs} +2 -2
  16. package/dist/{main-yf9xhpn4.mjs → main-ken6azcs.mjs} +2 -2
  17. package/dist/main-m05te79v.mjs +1255 -0
  18. package/dist/{main-fed0em2f.mjs → main-rycc0g05.mjs} +3 -3
  19. package/dist/{main-azv7pxzm.mjs → main-sfb6r1ye.mjs} +2 -2
  20. package/dist/{main-y22dyw2e.mjs → main-w9h0wtxs.mjs} +57 -10
  21. package/dist/main-xkbs0qyx.mjs +4 -0
  22. package/dist/{main-csnx585b.mjs → main-yf5j8g79.mjs} +2800 -8017
  23. package/dist/{mcp-fvd77dd5.mjs → mcp-qzkz0rbx.mjs} +418 -414
  24. package/dist/{migrate-mbbpx6fe.mjs → migrate-bcea81cv.mjs} +11 -14
  25. package/dist/{relay-gm2rz6ag.mjs → relay-pc2ke2t2.mjs} +1489 -473
  26. package/dist/{runtime-update-yr9prapz.mjs → runtime-update-jaxftsqk.mjs} +7 -6
  27. package/dist/{setup-wq76tmbx.mjs → setup-cpr4psvg.mjs} +30 -20
  28. package/dist/{skill-text-x30agn5m.mjs → skill-text-v0etv8b7.mjs} +26 -8
  29. package/dist/{supervisor-e5k91ga8.mjs → supervisor-recc7rne.mjs} +5 -5
  30. package/dist/{update-mk60neam.mjs → update-0vgwjjha.mjs} +3 -3
  31. package/dist/{version-hwm41j2w.mjs → version-67w7t6ce.mjs} +1 -1
  32. package/package.json +1 -1
  33. package/skills/browse/SKILL.md +26 -8
  34. package/dist/main-afz4wktv.mjs +0 -4
  35. package/dist/main-e0wy6qvy.mjs +0 -2924
@@ -6,8 +6,8 @@ import {
6
6
  browseServerCommand,
7
7
  editAgentConfig,
8
8
  configureMcp
9
- } from "./main-d0vkm24t.mjs";
10
- import"./main-afz4wktv.mjs";
9
+ } from "./main-crssg4wd.mjs";
10
+ import"./main-xkbs0qyx.mjs";
11
11
  import {
12
12
  configRoot2,
13
13
  dataRoot,
@@ -15,23 +15,20 @@ import {
15
15
  cacheRoot,
16
16
  binRoot,
17
17
  binaryName
18
- } from "./main-y22dyw2e.mjs";
19
- import"./main-vgzr4689.mjs";
20
- import"./main-7n3prtjk.mjs";
18
+ } from "./main-w9h0wtxs.mjs";
19
+ import"./main-azpzpy0x.mjs";
20
+ import"./main-9kxgkcse.mjs";
21
21
  import"./main-mrew6jy8.mjs";
22
+ import {
23
+ legacyDataRoot,
24
+ legacyRoots
25
+ } from "./main-ckssvk4c.mjs";
22
26
 
23
27
  // src/setup/migrate.ts
24
28
  import fs from "node:fs";
25
29
  import os from "node:os";
26
30
  import path from "node:path";
27
31
  import { randomUUID } from "node:crypto";
28
- function oldDataRoot(home) {
29
- if (home !== os.homedir())
30
- return path.join(home, ".local", "share", "opencode-browser");
31
- if (process.platform === "win32")
32
- return path.join(process.env.LOCALAPPDATA ?? path.join(home, "AppData", "Local"), "opencode-browser");
33
- return path.join(process.env.XDG_DATA_HOME ?? path.join(home, ".local", "share"), "opencode-browser");
34
- }
35
32
  var normalized = (value) => value.replaceAll("\\", "/");
36
33
  function destination(relative, home) {
37
34
  const file = normalized(relative);
@@ -171,7 +168,7 @@ function migrateLegacy(home = os.homedir()) {
171
168
  const result = { moved: 0, rewritten: 0, removed: [] };
172
169
  if (process.env.OPENCODE_BROWSER_HOME)
173
170
  return result;
174
- const roots = [path.join(home, ".browse"), oldDataRoot(home)];
171
+ const roots = legacyRoots(home);
175
172
  for (const root of roots) {
176
173
  if (!fs.existsSync(root))
177
174
  continue;
@@ -211,7 +208,7 @@ function migrateLegacy(home = os.homedir()) {
211
208
  const stillReferences = (needle) => locations.some((location) => referencesPath(location.file, needle));
212
209
  const keep = new Set;
213
210
  const browseRoot = path.join(home, ".browse");
214
- const oldData = oldDataRoot(home);
211
+ const oldData = legacyDataRoot(home);
215
212
  if (stillReferences(oldBinary))
216
213
  keep.add(normalized(browseRoot));
217
214
  if (stillReferences(oldData))