@opencode/protocol 2.0.26 → 2.0.28
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/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/groups/agent.d.ts +3 -1
- package/dist/groups/agent.js +1 -1
- package/dist/groups/command.d.ts +1 -1
- package/dist/groups/command.js +1 -1
- package/dist/groups/config.d.ts +1 -1
- package/dist/groups/config.js +1 -1
- package/dist/groups/credential.d.ts +1 -1
- package/dist/groups/credential.js +1 -1
- package/dist/groups/debug.d.ts +1 -1
- package/dist/groups/debug.js +1 -1
- package/dist/groups/event.d.ts +19 -14
- package/dist/groups/event.js +1 -1
- package/dist/groups/form.d.ts +1 -1
- package/dist/groups/form.js +1 -1
- package/dist/groups/fs.d.ts +2 -2
- package/dist/groups/fs.js +2 -1
- package/dist/groups/generate.d.ts +1 -1
- package/dist/groups/generate.js +1 -1
- package/dist/groups/integration.d.ts +1 -1
- package/dist/groups/integration.js +1 -1
- package/dist/groups/location.d.ts +1 -1
- package/dist/groups/location.js +1 -1
- package/dist/groups/mcp.d.ts +1 -1
- package/dist/groups/mcp.js +1 -1
- package/dist/groups/message.d.ts +39 -1
- package/dist/groups/message.js +1 -1
- package/dist/groups/migration.d.ts +1 -1
- package/dist/groups/migration.js +1 -1
- package/dist/groups/model.d.ts +13 -1
- package/dist/groups/model.js +1 -1
- package/dist/groups/permission.d.ts +1 -1
- package/dist/groups/permission.js +1 -1
- package/dist/groups/persistent-pty.d.ts +1 -1
- package/dist/groups/persistent-pty.js +1 -1
- package/dist/groups/plugin.d.ts +1 -1
- package/dist/groups/plugin.js +1 -1
- package/dist/groups/project.d.ts +6 -2
- package/dist/groups/project.js +8 -3
- package/dist/groups/provider.d.ts +39 -1
- package/dist/groups/provider.js +1 -1
- package/dist/groups/pty.d.ts +1 -1
- package/dist/groups/pty.js +1 -1
- package/dist/groups/reference.d.ts +1 -1
- package/dist/groups/reference.js +1 -1
- package/dist/groups/rpc.d.ts +1 -1
- package/dist/groups/rpc.js +1 -1
- package/dist/groups/server.d.ts +1 -1
- package/dist/groups/server.js +1 -1
- package/dist/groups/session.d.ts +145 -3
- package/dist/groups/session.js +12 -10
- package/dist/groups/shell.d.ts +1 -1
- package/dist/groups/shell.js +1 -1
- package/dist/groups/skill.d.ts +1 -1
- package/dist/groups/skill.js +1 -1
- package/dist/groups/vcs.d.ts +1 -1
- package/dist/groups/vcs.js +1 -1
- package/dist/groups/websearch.d.ts +1 -1
- package/dist/groups/websearch.js +1 -1
- package/dist/groups/worktree.d.ts +1 -1
- package/dist/groups/worktree.js +1 -1
- package/dist/middleware/authorization.d.ts +1 -1
- package/dist/middleware/authorization.js +1 -1
- package/dist/middleware/schema-error.d.ts +1 -1
- package/dist/middleware/schema-error.js +1 -1
- package/dist/simulation.d.ts +1 -1
- package/dist/simulation.js +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WebSearch } from "@opencode/schema/websearch";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { HttpApiEndpoint, HttpApiGroup } from "effect/
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
4
4
|
import { InvalidRequestError, ServiceUnavailableError } from "../errors.js";
|
|
5
5
|
export declare const WebSearchGroup: HttpApiGroup.HttpApiGroup<"server.websearch", HttpApiEndpoint.HttpApiEndpoint<"websearch.providers", "GET", "/api/websearch/provider", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
6
6
|
readonly location: Schema.optional<Schema.Struct<{
|
package/dist/groups/websearch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Location } from "@opencode/schema/location";
|
|
2
2
|
import { WebSearch } from "@opencode/schema/websearch";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
|
-
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/
|
|
4
|
+
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api";
|
|
5
5
|
import { InvalidRequestError, ServiceUnavailableError } from "../errors.js";
|
|
6
6
|
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
7
7
|
export const WebSearchGroup = HttpApiGroup.make("server.websearch")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
3
3
|
import { ProjectNotFoundError } from "../errors.js";
|
|
4
4
|
declare const WorktreeError_base: Schema.Class<WorktreeError, Schema.TaggedStruct<"WorktreeError", {
|
|
5
5
|
readonly name: Schema.Literal<"WorktreeError">;
|
package/dist/groups/worktree.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Worktree } from "@opencode/schema/worktree";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
4
4
|
import { Project } from "@opencode/schema/project";
|
|
5
5
|
import { ProjectNotFoundError } from "../errors.js";
|
|
6
6
|
const root = "/api/worktree";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpApiMiddleware } from "effect/
|
|
1
|
+
import { HttpApiMiddleware } from "effect/http-api";
|
|
2
2
|
import { UnauthorizedError } from "../errors.js";
|
|
3
3
|
declare const Authorization_base: HttpApiMiddleware.ServiceClass<Authorization, "@opencode/HttpApiAuthorization", {
|
|
4
4
|
requires: never;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpApiMiddleware } from "effect/
|
|
1
|
+
import { HttpApiMiddleware } from "effect/http-api";
|
|
2
2
|
import { UnauthorizedError } from "../errors.js";
|
|
3
3
|
export class Authorization extends HttpApiMiddleware.Service()("@opencode/HttpApiAuthorization", {
|
|
4
4
|
error: UnauthorizedError,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpApiMiddleware } from "effect/
|
|
1
|
+
import { HttpApiMiddleware } from "effect/http-api";
|
|
2
2
|
import { InvalidRequestError } from "../errors.js";
|
|
3
3
|
declare const SchemaErrorMiddleware_base: HttpApiMiddleware.ServiceClass<SchemaErrorMiddleware, "@opencode/HttpApiSchemaError", {
|
|
4
4
|
requires: never;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpApiMiddleware } from "effect/
|
|
1
|
+
import { HttpApiMiddleware } from "effect/http-api";
|
|
2
2
|
import { InvalidRequestError } from "../errors.js";
|
|
3
3
|
export class SchemaErrorMiddleware extends HttpApiMiddleware.Service()("@opencode/HttpApiSchemaError", { error: InvalidRequestError }) {
|
|
4
4
|
}
|
package/dist/simulation.d.ts
CHANGED
package/dist/simulation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect, Schema } from "effect";
|
|
2
|
-
import { Rpc, RpcGroup } from "effect/
|
|
2
|
+
import { Rpc, RpcGroup } from "effect/rpc";
|
|
3
3
|
const JsonRpcID = Schema.Union([Schema.String, Schema.Number, Schema.Null]);
|
|
4
4
|
const decodeJson = Schema.decodeUnknownSync(Schema.Json);
|
|
5
5
|
export var JsonRpc;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/protocol",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.28",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"typecheck": "tsgo --noEmit"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@opencode/schema": "2.0.
|
|
36
|
-
"effect": "4.0.
|
|
35
|
+
"@opencode/schema": "2.0.28",
|
|
36
|
+
"effect": "4.0.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@tsconfig/bun": "1.0.9",
|