@opencode/plugin-browser 0.0.0-beta-19271 → 0.0.0-beta-19275
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 +2 -2
- 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 +2 -2
- 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
|
|
3
|
-
import { Tool } from "@opencode
|
|
2
|
+
import type { Context } from "@opencode/plugin/effect/plugin";
|
|
3
|
+
import { Tool } from "@opencode/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>>;
|
package/dist/connection.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as BrowserConnection from "./connection.js";
|
|
2
|
-
import { Tool } from "@opencode
|
|
2
|
+
import { Tool } from "@opencode/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
|
|
3
|
+
import { Tool } from "@opencode/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
|
|
3
|
+
import { Tool } from "@opencode/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
|
|
4
|
-
import { Session } from "@opencode
|
|
5
|
-
import { optional } from "@opencode
|
|
3
|
+
import { Rpc } from "@opencode/schema/rpc";
|
|
4
|
+
import { Session } from "@opencode/schema/session";
|
|
5
|
+
import { optional } from "@opencode/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
|
|
3
|
-
import { Tool } from "@opencode
|
|
2
|
+
import type { Context } from "@opencode/plugin/effect/plugin";
|
|
3
|
+
import { Tool } from "@opencode/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: {
|
package/dist/tools.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as BrowserTools from "./tools.js";
|
|
2
|
-
import { Tool } from "@opencode
|
|
2
|
+
import { Tool } from "@opencode/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-
|
|
4
|
+
"version": "0.0.0-beta-19275",
|
|
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
|
|
40
|
-
"@opencode
|
|
39
|
+
"@opencode/plugin": "0.0.0-beta-19275",
|
|
40
|
+
"@opencode/schema": "0.0.0-beta-19275",
|
|
41
41
|
"effect": "4.0.0-rc.112"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|