@opencode-ai/protocol
Advanced tools
@@ -45,5 +45,5 @@ import { Schema } from "effect"; | ||
| }>>, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly command: Schema.String; | ||
| readonly command: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly args: Schema.$Array<Schema.String>; | ||
| readonly cwd: Schema.String; | ||
| readonly cwd: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly title: Schema.String; | ||
@@ -85,3 +85,10 @@ readonly env: Schema.$Record<Schema.String, Schema.String>; | ||
| }>; | ||
| }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"persistentPty.shutdown", "POST", "/api/experimental/persistent-pty/shutdown", never, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"persistentPty.get", "GET", "/api/experimental/persistent-pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| }>>, Schema.toCodecJson<typeof InvalidRequestError | typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"persistentPty.shutdown", "POST", "/api/experimental/persistent-pty/shutdown", never, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"persistentPty.handoff", "POST", "/api/experimental/persistent-pty/handoff", never, never, never, never, Schema.toCodecJson<Schema.Struct<{ | ||
| readonly handoff: Schema.NullOr<Schema.Struct<{ | ||
| readonly directory: Schema.String; | ||
| readonly instanceID: Schema.String; | ||
| readonly ticket: Schema.String; | ||
| readonly expiresAt: Schema.Number; | ||
| }>>; | ||
| }>>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"persistentPty.get", "GET", "/api/experimental/persistent-pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{ | ||
| ptyID: Schema.brand<Schema.String, "PtyID"> & { | ||
@@ -88,0 +95,0 @@ create: () => string & import("effect/Brand").Brand<"PtyID">; |
@@ -32,2 +32,6 @@ import { PersistentPty } from "@opencode-ai/schema/persistent-pty"; | ||
| })) | ||
| .add(HttpApiEndpoint.post("persistentPty.handoff", "/api/experimental/persistent-pty/handoff", { | ||
| success: Schema.Struct({ handoff: Schema.NullOr(PersistentPty.Handoff) }), | ||
| error: [ServiceUnavailableError], | ||
| })) | ||
| .add(HttpApiEndpoint.get("persistentPty.get", "/api/experimental/persistent-pty/:ptyID", { | ||
@@ -34,0 +38,0 @@ params: { ptyID: Pty.ID }, |
@@ -144,7 +144,7 @@ import { SessionMessage } from "@opencode-ai/schema/session-message"; | ||
| success: Schema.Struct({ data: Session.Info }), | ||
| error: ConflictError, | ||
| error: [ConflictError, SessionNotFoundError], | ||
| }).annotateMerge(OpenApi.annotations({ | ||
| identifier: "v2.session.import", | ||
| summary: "Import session", | ||
| description: "Import a projected session transcript at the requested location.", | ||
| description: "Import a projected session transcript at the requested location. If parentID is supplied, the parent session must already exist; import parents before children.", | ||
| }))) | ||
@@ -151,0 +151,0 @@ .add(HttpApiEndpoint.get("session.export", "/api/session/:sessionID/export", { |
+2
-2
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/protocol", | ||
| "version": "0.0.0-beta-18387", | ||
| "version": "0.0.0-beta-18414", | ||
| "type": "module", | ||
@@ -35,3 +35,3 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@opencode-ai/schema": "0.0.0-beta-18387", | ||
| "@opencode-ai/schema": "0.0.0-beta-18414", | ||
| "effect": "4.0.0-rc.111" | ||
@@ -38,0 +38,0 @@ }, |
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
2079689
0.05%33390
0.03%+ Added
- Removed