@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.
Files changed (71) hide show
  1. package/dist/api.d.ts +1 -1
  2. package/dist/api.js +1 -1
  3. package/dist/client.d.ts +1 -1
  4. package/dist/client.js +1 -1
  5. package/dist/groups/agent.d.ts +3 -1
  6. package/dist/groups/agent.js +1 -1
  7. package/dist/groups/command.d.ts +1 -1
  8. package/dist/groups/command.js +1 -1
  9. package/dist/groups/config.d.ts +1 -1
  10. package/dist/groups/config.js +1 -1
  11. package/dist/groups/credential.d.ts +1 -1
  12. package/dist/groups/credential.js +1 -1
  13. package/dist/groups/debug.d.ts +1 -1
  14. package/dist/groups/debug.js +1 -1
  15. package/dist/groups/event.d.ts +19 -14
  16. package/dist/groups/event.js +1 -1
  17. package/dist/groups/form.d.ts +1 -1
  18. package/dist/groups/form.js +1 -1
  19. package/dist/groups/fs.d.ts +2 -2
  20. package/dist/groups/fs.js +2 -1
  21. package/dist/groups/generate.d.ts +1 -1
  22. package/dist/groups/generate.js +1 -1
  23. package/dist/groups/integration.d.ts +1 -1
  24. package/dist/groups/integration.js +1 -1
  25. package/dist/groups/location.d.ts +1 -1
  26. package/dist/groups/location.js +1 -1
  27. package/dist/groups/mcp.d.ts +1 -1
  28. package/dist/groups/mcp.js +1 -1
  29. package/dist/groups/message.d.ts +39 -1
  30. package/dist/groups/message.js +1 -1
  31. package/dist/groups/migration.d.ts +1 -1
  32. package/dist/groups/migration.js +1 -1
  33. package/dist/groups/model.d.ts +13 -1
  34. package/dist/groups/model.js +1 -1
  35. package/dist/groups/permission.d.ts +1 -1
  36. package/dist/groups/permission.js +1 -1
  37. package/dist/groups/persistent-pty.d.ts +1 -1
  38. package/dist/groups/persistent-pty.js +1 -1
  39. package/dist/groups/plugin.d.ts +1 -1
  40. package/dist/groups/plugin.js +1 -1
  41. package/dist/groups/project.d.ts +6 -2
  42. package/dist/groups/project.js +8 -3
  43. package/dist/groups/provider.d.ts +39 -1
  44. package/dist/groups/provider.js +1 -1
  45. package/dist/groups/pty.d.ts +1 -1
  46. package/dist/groups/pty.js +1 -1
  47. package/dist/groups/reference.d.ts +1 -1
  48. package/dist/groups/reference.js +1 -1
  49. package/dist/groups/rpc.d.ts +1 -1
  50. package/dist/groups/rpc.js +1 -1
  51. package/dist/groups/server.d.ts +1 -1
  52. package/dist/groups/server.js +1 -1
  53. package/dist/groups/session.d.ts +145 -3
  54. package/dist/groups/session.js +12 -10
  55. package/dist/groups/shell.d.ts +1 -1
  56. package/dist/groups/shell.js +1 -1
  57. package/dist/groups/skill.d.ts +1 -1
  58. package/dist/groups/skill.js +1 -1
  59. package/dist/groups/vcs.d.ts +1 -1
  60. package/dist/groups/vcs.js +1 -1
  61. package/dist/groups/websearch.d.ts +1 -1
  62. package/dist/groups/websearch.js +1 -1
  63. package/dist/groups/worktree.d.ts +1 -1
  64. package/dist/groups/worktree.js +1 -1
  65. package/dist/middleware/authorization.d.ts +1 -1
  66. package/dist/middleware/authorization.js +1 -1
  67. package/dist/middleware/schema-error.d.ts +1 -1
  68. package/dist/middleware/schema-error.js +1 -1
  69. package/dist/simulation.d.ts +1 -1
  70. package/dist/simulation.js +1 -1
  71. 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/unstable/httpapi";
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<{
@@ -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/unstable/httpapi";
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/unstable/httpapi";
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">;
@@ -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/unstable/httpapi";
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/unstable/httpapi";
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/unstable/httpapi";
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/unstable/httpapi";
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/unstable/httpapi";
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
  }
@@ -1,5 +1,5 @@
1
1
  import { Effect, Schema } from "effect";
2
- import { Rpc, RpcGroup } from "effect/unstable/rpc";
2
+ import { Rpc, RpcGroup } from "effect/rpc";
3
3
  export declare namespace JsonRpc {
4
4
  const RequestFields: {
5
5
  jsonrpc: Schema.Literal<"2.0">;
@@ -1,5 +1,5 @@
1
1
  import { Effect, Schema } from "effect";
2
- import { Rpc, RpcGroup } from "effect/unstable/rpc";
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.26",
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.26",
36
- "effect": "4.0.0-rc.112"
35
+ "@opencode/schema": "2.0.28",
36
+ "effect": "4.0.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@tsconfig/bun": "1.0.9",