@opencode/browse 0.0.14-dev.89 → 0.0.15-dev.100
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.
- package/dist/{cli-de4qgw63.mjs → cli-6n92w2tr.mjs} +15 -15
- package/dist/cli.mjs +25 -19
- package/dist/{helpers-xmc7hjne.mjs → helpers-b363a8nv.mjs} +3 -1
- package/dist/{main-zzp23g5a.mjs → main-0pf5apge.mjs} +1 -1
- package/dist/{main-1vxdvhxq.mjs → main-0vy46qt0.mjs} +23 -7
- package/dist/{main-zv2rzdyy.mjs → main-1v1av1rf.mjs} +11 -4
- package/dist/{main-8sq2eksh.mjs → main-9eddfbwc.mjs} +1 -1
- package/dist/{main-xyak2r6b.mjs → main-bwkbapy8.mjs} +2 -2
- package/dist/main-ckssvk4c.mjs +18 -0
- package/dist/{main-3njywps1.mjs → main-cktye7tt.mjs} +2 -2
- package/dist/{main-skr1xf3n.mjs → main-njxjy1jj.mjs} +30 -15
- package/dist/{main-t7gk51hn.mjs → main-qrb9v6gy.mjs} +2 -2
- package/dist/{main-m9mn33h2.mjs → main-vbwhrdcz.mjs} +2 -2
- package/dist/main-zt63krh7.mjs +4 -0
- package/dist/{mcp-15evjbx4.mjs → mcp-rm9sf99b.mjs} +6 -6
- package/dist/{migrate-d5bj9eym.mjs → migrate-jpsgxnkg.mjs} +10 -13
- package/dist/{relay-kf1hanst.mjs → relay-hwwmvejt.mjs} +443 -156
- package/dist/{runtime-update-q0fbjj52.mjs → runtime-update-98db5p2b.mjs} +4 -4
- package/dist/{setup-bk39djpf.mjs → setup-cdwsskaa.mjs} +30 -11
- package/dist/{skill-text-mrxy6zpc.mjs → skill-text-28va391t.mjs} +16 -3
- package/dist/{supervisor-e60f40k9.mjs → supervisor-ncmszn2n.mjs} +3 -3
- package/dist/{update-pk34hat5.mjs → update-gc7wnpxj.mjs} +3 -3
- package/dist/{version-cm8f0bhc.mjs → version-5heaad93.mjs} +1 -1
- package/package.json +1 -1
- package/skills/browse/SKILL.md +16 -3
- package/dist/main-6qsa4k93.mjs +0 -4
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
browseServerCommand,
|
|
7
7
|
editAgentConfig,
|
|
8
8
|
configureMcp
|
|
9
|
-
} from "./main-
|
|
10
|
-
import"./main-
|
|
9
|
+
} from "./main-njxjy1jj.mjs";
|
|
10
|
+
import"./main-zt63krh7.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-
|
|
18
|
+
} from "./main-0vy46qt0.mjs";
|
|
19
19
|
import"./main-vgzr4689.mjs";
|
|
20
|
-
import"./main-
|
|
20
|
+
import"./main-0pf5apge.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 =
|
|
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 =
|
|
211
|
+
const oldData = legacyDataRoot(home);
|
|
215
212
|
if (stillReferences(oldBinary))
|
|
216
213
|
keep.add(normalized(browseRoot));
|
|
217
214
|
if (stillReferences(oldData))
|