@opencode/browse 0.0.6-dev.28 → 0.0.6-dev.32
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/THIRD_PARTY_NOTICES.txt +310 -0
- package/dist/Undici-88kyhfpm.mjs +25295 -0
- package/dist/cli-pazs0vgt.mjs +6694 -0
- package/dist/cli.mjs +10 -10
- package/dist/{helpers-3fm1nwkt.mjs → helpers-1afz3xb6.mjs} +2 -1
- package/dist/index-yghakpfn.mjs +12 -0
- package/dist/{main-x8w3s3rv.mjs → main-30dkfffj.mjs} +5 -4
- package/dist/{main-xg3r1ze3.mjs → main-3w449766.mjs} +9 -9
- package/dist/main-9z6jbwdp.mjs +14661 -0
- package/dist/main-aqzas8ts.mjs +1775 -0
- package/dist/main-brs53cap.mjs +205 -0
- package/dist/{main-8ncff5jp.mjs → main-ea9djgtm.mjs} +2 -2
- package/dist/main-k9drabmz.mjs +4 -0
- package/dist/{main-rsqahh12.mjs → main-q641ckf5.mjs} +1416 -97
- package/dist/{main-tfkqwwrb.mjs → main-va90zea2.mjs} +30 -20
- package/dist/main-yf9xhpn4.mjs +290 -0
- package/dist/{main-scyv26xb.mjs → main-yxvg4ms6.mjs} +2 -2
- package/dist/mcp-4v2gsdr7.mjs +8515 -0
- package/dist/{relay-epeqzmcr.mjs → relay-sxbxskww.mjs} +739 -693
- package/dist/{runtime-update-3925nwpw.mjs → runtime-update-tksdpg29.mjs} +22 -11
- package/dist/{setup-ys0qf6by.mjs → setup-92ht2epc.mjs} +10 -40
- package/dist/{supervisor-yb615ygt.mjs → supervisor-0afrkpjb.mjs} +3 -3
- package/dist/{update-wjkqfk5f.mjs → update-vv7x6c6j.mjs} +3 -3
- package/dist/{version-rh26jqa2.mjs → version-pvx4s3qg.mjs} +1 -1
- package/package.json +4 -3
- package/dist/cli-wgxfjgb3.mjs +0 -1796
- package/dist/main-4t3a1fw9.mjs +0 -4
- package/dist/main-8h1nwn45.mjs +0 -1410
- package/dist/mcp-7jjntfwf.mjs +0 -905
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-k9drabmz.mjs";
|
|
2
2
|
import {
|
|
3
3
|
cliCommand,
|
|
4
4
|
installCommand,
|
|
@@ -17,18 +17,29 @@ import {
|
|
|
17
17
|
installVersion,
|
|
18
18
|
pruneVersions,
|
|
19
19
|
switchVersion
|
|
20
|
-
} from "./main-
|
|
20
|
+
} from "./main-ea9djgtm.mjs";
|
|
21
21
|
import"./main-3gthmkzw.mjs";
|
|
22
22
|
import {
|
|
23
23
|
Service,
|
|
24
24
|
layerFetch,
|
|
25
25
|
restartRelay,
|
|
26
26
|
startManagedRelay
|
|
27
|
-
} from "./main-
|
|
28
|
-
import"./main-
|
|
27
|
+
} from "./main-aqzas8ts.mjs";
|
|
28
|
+
import"./main-30dkfffj.mjs";
|
|
29
|
+
import {
|
|
30
|
+
succeed6,
|
|
31
|
+
suspend2,
|
|
32
|
+
sync2,
|
|
33
|
+
void_3,
|
|
34
|
+
gen,
|
|
35
|
+
andThen,
|
|
36
|
+
result,
|
|
37
|
+
catch_,
|
|
38
|
+
provide3,
|
|
39
|
+
runPromise
|
|
40
|
+
} from "./main-9z6jbwdp.mjs";
|
|
29
41
|
|
|
30
42
|
// src/update/runtime-update.ts
|
|
31
|
-
import { Effect } from "effect";
|
|
32
43
|
import { existsSync } from "node:fs";
|
|
33
44
|
var log = (line) => process.stdout.write(line + `
|
|
34
45
|
`);
|
|
@@ -38,13 +49,13 @@ async function switchTo(layout, version, options) {
|
|
|
38
49
|
return `${version} isn't installed`;
|
|
39
50
|
const before = readCurrent(layout);
|
|
40
51
|
let switched = false;
|
|
41
|
-
const point =
|
|
52
|
+
const point = sync2(() => {
|
|
42
53
|
switchVersion(layout, version, options.previous);
|
|
43
54
|
switched = true;
|
|
44
55
|
});
|
|
45
|
-
const program =
|
|
56
|
+
const program = gen(function* () {
|
|
46
57
|
const relay = yield* Service;
|
|
47
|
-
const running = yield*
|
|
58
|
+
const running = yield* result(relay.version);
|
|
48
59
|
if (running._tag === "Failure") {
|
|
49
60
|
yield* point;
|
|
50
61
|
return;
|
|
@@ -55,12 +66,12 @@ async function switchTo(layout, version, options) {
|
|
|
55
66
|
force: options.force,
|
|
56
67
|
otherBuild: true,
|
|
57
68
|
onShutdownAccepted: point,
|
|
58
|
-
start:
|
|
69
|
+
start: suspend2(() => switched ? void_3 : point).pipe(andThen(startManagedRelay(entry)))
|
|
59
70
|
});
|
|
60
71
|
const now = yield* relay.version;
|
|
61
72
|
return now.version === version ? undefined : `a relay of version ${now.version} started first`;
|
|
62
|
-
}).pipe(
|
|
63
|
-
const refused = await
|
|
73
|
+
}).pipe(provide3(layerFetch));
|
|
74
|
+
const refused = await runPromise(program.pipe(catch_((error) => succeed6(error.message ?? String(error)))));
|
|
64
75
|
if (refused && switched && before)
|
|
65
76
|
writeCurrent(layout, before);
|
|
66
77
|
return refused;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-k9drabmz.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataRoot,
|
|
6
6
|
oldStoreMarker,
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
installVersion,
|
|
26
26
|
pruneVersions,
|
|
27
27
|
switchVersion
|
|
28
|
-
} from "./main-
|
|
28
|
+
} from "./main-ea9djgtm.mjs";
|
|
29
29
|
import {
|
|
30
30
|
relayAuthorization
|
|
31
|
-
} from "./main-
|
|
31
|
+
} from "./main-30dkfffj.mjs";
|
|
32
32
|
import {
|
|
33
33
|
parseHostname,
|
|
34
34
|
readRelayConfig,
|
|
@@ -45,47 +45,17 @@ import {
|
|
|
45
45
|
legacyPairingCode,
|
|
46
46
|
removeLegacyPairingCode,
|
|
47
47
|
syncDevExtension
|
|
48
|
-
} from "./main-
|
|
48
|
+
} from "./main-3w449766.mjs";
|
|
49
49
|
import {
|
|
50
50
|
unpackedExtensionId,
|
|
51
51
|
extensionProtocolSkew,
|
|
52
52
|
extensionProtocolAdvice
|
|
53
53
|
} from "./main-3gthmkzw.mjs";
|
|
54
|
-
import {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
60
|
-
function __accessProp(key) {
|
|
61
|
-
return this[key];
|
|
62
|
-
}
|
|
63
|
-
var __toESMCache_node;
|
|
64
|
-
var __toESMCache_esm;
|
|
65
|
-
var __toESM = (mod, isNodeMode, target) => {
|
|
66
|
-
var canCache = mod != null && typeof mod === "object";
|
|
67
|
-
if (canCache) {
|
|
68
|
-
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
69
|
-
var cached = cache.get(mod);
|
|
70
|
-
if (cached)
|
|
71
|
-
return cached;
|
|
72
|
-
}
|
|
73
|
-
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
74
|
-
const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
75
|
-
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
76
|
-
for (let key of __getOwnPropNames(mod))
|
|
77
|
-
if (!__hasOwnProp.call(to, key))
|
|
78
|
-
__defProp(to, key, {
|
|
79
|
-
get: __accessProp.bind(mod, key),
|
|
80
|
-
enumerable: true
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
if (canCache)
|
|
84
|
-
cache.set(mod, to);
|
|
85
|
-
return to;
|
|
86
|
-
};
|
|
87
|
-
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
88
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
54
|
+
import {
|
|
55
|
+
__toESM,
|
|
56
|
+
__commonJS,
|
|
57
|
+
__require
|
|
58
|
+
} from "./main-yf9xhpn4.mjs";
|
|
89
59
|
|
|
90
60
|
// node_modules/sisteransi/src/index.js
|
|
91
61
|
var require_src = __commonJS(function(exports, module) {
|
|
@@ -12081,7 +12051,7 @@ async function runSetup(command, args) {
|
|
|
12081
12051
|
if (command === "set")
|
|
12082
12052
|
return set(args);
|
|
12083
12053
|
if (command === "rollback") {
|
|
12084
|
-
const { runRollback } = await import("./runtime-update-
|
|
12054
|
+
const { runRollback } = await import("./runtime-update-tksdpg29.mjs");
|
|
12085
12055
|
return runRollback(args);
|
|
12086
12056
|
}
|
|
12087
12057
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-k9drabmz.mjs";
|
|
2
2
|
import {
|
|
3
3
|
versionEntry,
|
|
4
4
|
readCurrent,
|
|
5
5
|
npmRuntime
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-ea9djgtm.mjs";
|
|
7
7
|
|
|
8
8
|
// src/mcp/supervisor.ts
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
@@ -14,7 +14,7 @@ async function runBinaryMcp(args) {
|
|
|
14
14
|
const runtime = npmRuntime();
|
|
15
15
|
if (!runtime) {
|
|
16
16
|
process.env[directEnvironmentVariable] = "1";
|
|
17
|
-
const { runCli } = await import("./cli-
|
|
17
|
+
const { runCli } = await import("./cli-pazs0vgt.mjs");
|
|
18
18
|
return runCli();
|
|
19
19
|
}
|
|
20
20
|
const { layout } = runtime;
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
updateNotice2,
|
|
5
5
|
createUpdateWatcher2,
|
|
6
6
|
runUpdateCommand2
|
|
7
|
-
} from "./main-
|
|
8
|
-
import"./main-8ncff5jp.mjs";
|
|
9
|
-
import"./main-4t3a1fw9.mjs";
|
|
7
|
+
} from "./main-yxvg4ms6.mjs";
|
|
10
8
|
import"./main-3gthmkzw.mjs";
|
|
9
|
+
import"./main-ea9djgtm.mjs";
|
|
10
|
+
import"./main-k9drabmz.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createUpdateWatcher2 as createUpdateWatcher,
|
|
13
13
|
formatUpdateNotice2 as formatUpdateNotice,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencode/browse",
|
|
3
|
-
"version": "0.0.6-dev.
|
|
3
|
+
"version": "0.0.6-dev.32",
|
|
4
4
|
"description": "browse: connect the extension to opencode, and drive your browser from any agent (CLI, MCP, Playwright).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,9 +28,7 @@
|
|
|
28
28
|
"prepublishOnly": "bun build.ts"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@effect/platform-node": "4.0.1",
|
|
32
31
|
"acorn": "8.18.0",
|
|
33
|
-
"effect": "4.0.1",
|
|
34
32
|
"pixelmatch": "7.2.0",
|
|
35
33
|
"patchright-core": "1.63.0",
|
|
36
34
|
"pngjs": "7.0.0",
|
|
@@ -39,12 +37,15 @@
|
|
|
39
37
|
"devDependencies": {
|
|
40
38
|
"@clack/core": "1.5.1",
|
|
41
39
|
"@clack/prompts": "1.8.1",
|
|
40
|
+
"@effect/platform-node": "4.0.1",
|
|
41
|
+
"@effect/platform-node-shared": "4.0.1",
|
|
42
42
|
"@types/bun": "1.4.0",
|
|
43
43
|
"@types/chrome": "0.3.4",
|
|
44
44
|
"@types/node": "26.6.4",
|
|
45
45
|
"@types/pngjs": "6.0.5",
|
|
46
46
|
"@types/ws": "8.18.2",
|
|
47
47
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
48
|
+
"effect": "4.0.1",
|
|
48
49
|
"jsonc-parser": "3.3.1",
|
|
49
50
|
"smol-toml": "1.9.1",
|
|
50
51
|
"yaml": "2.9.1"
|