@opencode/browse 0.0.6-dev.28 → 0.0.6-dev.33

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.
@@ -1,4 +1,4 @@
1
- import"./main-4t3a1fw9.mjs";
1
+ import"./main-bdc6msax.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-8ncff5jp.mjs";
20
+ } from "./main-yvbhdcvb.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-8h1nwn45.mjs";
28
- import"./main-x8w3s3rv.mjs";
27
+ } from "./main-hdmb6het.mjs";
28
+ import"./main-65pye947.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 = Effect.sync(() => {
52
+ const point = sync2(() => {
42
53
  switchVersion(layout, version, options.previous);
43
54
  switched = true;
44
55
  });
45
- const program = Effect.gen(function* () {
56
+ const program = gen(function* () {
46
57
  const relay = yield* Service;
47
- const running = yield* Effect.result(relay.version);
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: Effect.suspend(() => switched ? Effect.void : point).pipe(Effect.andThen(startManagedRelay(entry)))
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(Effect.provide(layerFetch));
63
- const refused = await Effect.runPromise(program.pipe(Effect.catch((error) => Effect.succeed(error.message ?? String(error)))));
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-4t3a1fw9.mjs";
3
+ } from "./main-bdc6msax.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-8ncff5jp.mjs";
28
+ } from "./main-yvbhdcvb.mjs";
29
29
  import {
30
30
  relayAuthorization
31
- } from "./main-x8w3s3rv.mjs";
31
+ } from "./main-65pye947.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-xg3r1ze3.mjs";
48
+ } from "./main-78n1x4vq.mjs";
49
49
  import {
50
50
  unpackedExtensionId,
51
51
  extensionProtocolSkew,
52
52
  extensionProtocolAdvice
53
53
  } from "./main-3gthmkzw.mjs";
54
- import { createRequire } from "node:module";
55
- var __create = Object.create;
56
- var __getProtoOf = Object.getPrototypeOf;
57
- var __defProp = Object.defineProperty;
58
- var __getOwnPropNames = Object.getOwnPropertyNames;
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-3925nwpw.mjs");
12054
+ const { runRollback } = await import("./runtime-update-npa8nssg.mjs");
12085
12055
  return runRollback(args);
12086
12056
  }
12087
12057
  }
@@ -1,9 +1,9 @@
1
- import"./main-4t3a1fw9.mjs";
1
+ import"./main-bdc6msax.mjs";
2
2
  import {
3
3
  versionEntry,
4
4
  readCurrent,
5
5
  npmRuntime
6
- } from "./main-8ncff5jp.mjs";
6
+ } from "./main-yvbhdcvb.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-wgxfjgb3.mjs");
17
+ const { runCli } = await import("./cli-s4954jgx.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-scyv26xb.mjs";
8
- import"./main-8ncff5jp.mjs";
9
- import"./main-4t3a1fw9.mjs";
7
+ } from "./main-n7hjyqhg.mjs";
10
8
  import"./main-3gthmkzw.mjs";
9
+ import"./main-yvbhdcvb.mjs";
10
+ import"./main-bdc6msax.mjs";
11
11
  export {
12
12
  createUpdateWatcher2 as createUpdateWatcher,
13
13
  formatUpdateNotice2 as formatUpdateNotice,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  opencodeBrowserVersion2,
3
3
  opencodeBrowserBuildId2
4
- } from "./main-4t3a1fw9.mjs";
4
+ } from "./main-bdc6msax.mjs";
5
5
  export {
6
6
  opencodeBrowserBuildId2 as opencodeBrowserBuildId,
7
7
  opencodeBrowserVersion2 as opencodeBrowserVersion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode/browse",
3
- "version": "0.0.6-dev.28",
3
+ "version": "0.0.6-dev.33",
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"