@opencode/plugin-browser 0.0.0-beta-19507 → 0.0.0-dev-19270

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,6 +1,6 @@
1
1
  export * as BrowserConnection from "./connection.js";
2
- import type { Context } from "@opencode/plugin/effect/plugin";
3
- import { Tool } from "@opencode/schema/tool";
2
+ import type { Context } from "@opencode-ai/plugin/effect/plugin";
3
+ import { Tool } from "@opencode-ai/schema/tool";
4
4
  import { Effect } from "effect";
5
5
  import { Browser } from "./rpc.js";
6
6
  export type Connection = Effect.Success<ReturnType<typeof make>>;
@@ -155,7 +155,7 @@ export declare const make: (ctx: Pick<Context, "location" | "rpc" | "event" | "s
155
155
  readonly type: "network.list";
156
156
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
157
157
  readonly limit?: number | undefined;
158
- readonly resourceType?: "websocket" | "image" | "media" | "document" | "fetch" | "stylesheet" | "font" | "script" | "xhr" | "eventsource" | "manifest" | "other" | undefined;
158
+ readonly resourceType?: "image" | "media" | "document" | "websocket" | "fetch" | "stylesheet" | "font" | "script" | "xhr" | "eventsource" | "manifest" | "other" | undefined;
159
159
  readonly urlContains?: string | undefined;
160
160
  } | {
161
161
  readonly id: string;
@@ -1,5 +1,5 @@
1
1
  export * as BrowserConnection from "./connection.js";
2
- import { Tool } from "@opencode/schema/tool";
2
+ import { Tool } from "@opencode-ai/schema/tool";
3
3
  import { Deferred, Effect, Schema, Stream } from "effect";
4
4
  import { Browser } from "./rpc.js";
5
5
  import { BrowserTunnel } from "./tunnel.js";
package/dist/files.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * as BrowserFiles from "./files.js";
2
2
  import { Browser } from "./rpc.js";
3
- import { Tool } from "@opencode/schema/tool";
3
+ import { Tool } from "@opencode-ai/schema/tool";
4
4
  import { Effect } from "effect";
5
5
  export declare const read: (paths: readonly string[], directory: string) => Effect.Effect<{
6
6
  id: string & import("effect/Brand").Brand<"Browser.FileID">;
package/dist/files.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export * as BrowserFiles from "./files.js";
2
2
  import { Browser } from "./rpc.js";
3
- import { Tool } from "@opencode/schema/tool";
3
+ import { Tool } from "@opencode-ai/schema/tool";
4
4
  import { Effect } from "effect";
5
5
  // Files cross machines as bytes. Only this endpoint interprets its local paths.
6
6
  export const read = Effect.fn("BrowserFiles.read")((paths, directory) => Effect.tryPromise({
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { Plugin } from "@opencode/plugin/effect";
1
+ import { Plugin } from "@opencode-ai/plugin/effect";
2
2
  declare const _default: Plugin.Plugin<import("effect/Scope").Scope>;
3
3
  export default _default;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Plugin } from "@opencode/plugin/effect";
1
+ import { Plugin } from "@opencode-ai/plugin/effect";
2
2
  import { Effect } from "effect";
3
3
  import { BrowserConnection } from "./connection.js";
4
4
  import { BrowserTools } from "./tools.js";
package/dist/rpc.js CHANGED
@@ -1,8 +1,8 @@
1
1
  export * as Browser from "./rpc.js";
2
2
  import { Schema } from "effect";
3
- import { Rpc } from "@opencode/schema/rpc";
4
- import { Session } from "@opencode/schema/session";
5
- import { optional } from "@opencode/schema/schema";
3
+ import { Rpc } from "@opencode-ai/schema/rpc";
4
+ import { Session } from "@opencode-ai/schema/session";
5
+ import { optional } from "@opencode-ai/schema/schema";
6
6
  export const MAX_FILE_BYTES = 5 * 1024 * 1024;
7
7
  export const TUNNEL_CHUNK_BYTES = 64 * 1024;
8
8
  export const MAX_TEXT = 100_000;
package/dist/tools.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * as BrowserTools from "./tools.js";
2
- import type { Context } from "@opencode/plugin/effect/plugin";
3
- import { Tool } from "@opencode/schema/tool";
2
+ import type { Context } from "@opencode-ai/plugin/effect/plugin";
3
+ import { Tool } from "@opencode-ai/schema/tool";
4
4
  import { Effect } from "effect";
5
5
  import { Browser } from "./rpc.js";
6
6
  export declare const register: (ctx: Pick<Context, "location" | "tool">, connection: {
@@ -154,7 +154,7 @@ export declare const register: (ctx: Pick<Context, "location" | "tool">, connect
154
154
  readonly type: "network.list";
155
155
  readonly tabID: string & import("effect/Brand").Brand<"Browser.TabID">;
156
156
  readonly limit?: number | undefined;
157
- readonly resourceType?: "websocket" | "image" | "media" | "document" | "fetch" | "stylesheet" | "font" | "script" | "xhr" | "eventsource" | "manifest" | "other" | undefined;
157
+ readonly resourceType?: "image" | "media" | "document" | "websocket" | "fetch" | "stylesheet" | "font" | "script" | "xhr" | "eventsource" | "manifest" | "other" | undefined;
158
158
  readonly urlContains?: string | undefined;
159
159
  } | {
160
160
  readonly id: string;
package/dist/tools.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * as BrowserTools from "./tools.js";
2
- import { Tool } from "@opencode/schema/tool";
2
+ import { Tool } from "@opencode-ai/schema/tool";
3
3
  import { Effect, Encoding, Result, Schema } from "effect";
4
4
  import { BrowserFiles } from "./files.js";
5
5
  import { Browser } from "./rpc.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/plugin-browser",
4
- "version": "0.0.0-beta-19507",
4
+ "version": "0.0.0-dev-19270",
5
5
  "description": "OpenCode's desktop browser plugin",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -36,8 +36,8 @@
36
36
  "test": "bun test"
37
37
  },
38
38
  "dependencies": {
39
- "@opencode/plugin": "0.0.0-beta-19507",
40
- "@opencode/schema": "0.0.0-beta-19507",
39
+ "@opencode-ai/plugin": "0.0.0-dev-19270",
40
+ "@opencode-ai/schema": "0.0.0-dev-19270",
41
41
  "effect": "4.0.0-rc.112"
42
42
  },
43
43
  "devDependencies": {