@opencode/plugin-browser 0.0.0-beta-19507 → 0.0.0-dev-19265
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/connection.d.ts +3 -3
- package/dist/connection.js +1 -1
- package/dist/files.d.ts +1 -1
- package/dist/files.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/rpc.js +3 -3
- package/dist/tools.d.ts +3 -3
- package/dist/tools.js +1 -1
- package/package.json +3 -3
package/dist/connection.d.ts
CHANGED
|
@@ -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?: "
|
|
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;
|
package/dist/connection.js
CHANGED
|
@@ -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
package/dist/index.js
CHANGED
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?: "
|
|
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-
|
|
4
|
+
"version": "0.0.0-dev-19265",
|
|
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-
|
|
40
|
-
"@opencode/schema": "0.0.0-
|
|
39
|
+
"@opencode-ai/plugin": "0.0.0-dev-19265",
|
|
40
|
+
"@opencode-ai/schema": "0.0.0-dev-19265",
|
|
41
41
|
"effect": "4.0.0-rc.112"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|