@opencode-ai/protocol
Advanced tools
@@ -524,2 +524,3 @@ import { Schema } from "effect"; | ||
| readonly type: Schema.Literal<"compaction">; | ||
| readonly status: Schema.Literals<readonly ["queued", "running", "completed", "failed"]>; | ||
| readonly reason: Schema.Literals<readonly ["auto", "manual"]>; | ||
@@ -526,0 +527,0 @@ readonly summary: Schema.String; |
@@ -228,9 +228,3 @@ import { SessionMessage } from "@opencode-ai/schema/session-message"; | ||
| success: Schema.Struct({ data: SessionInput.Admitted }), | ||
| error: [ | ||
| ConflictError, | ||
| InvalidRequestError, | ||
| SessionNotFoundError, | ||
| CommandNotFoundError, | ||
| CommandEvaluationError, | ||
| ], | ||
| error: [ConflictError, InvalidRequestError, SessionNotFoundError, CommandNotFoundError, CommandEvaluationError], | ||
| }) | ||
@@ -292,4 +286,5 @@ .middleware(sessionLocationMiddleware) | ||
| params: { sessionID: Session.ID }, | ||
| success: HttpApiSchema.NoContent, | ||
| error: [SessionNotFoundError, SessionBusyError, ServiceUnavailableError, UnknownError], | ||
| payload: Schema.Struct({ id: SessionMessage.ID.pipe(Schema.optional) }), | ||
| success: Schema.Struct({ data: SessionInput.Compaction }), | ||
| error: [ConflictError, SessionNotFoundError], | ||
| }) | ||
@@ -300,3 +295,3 @@ .middleware(sessionLocationMiddleware) | ||
| summary: "Compact session", | ||
| description: "Compact a session conversation.", | ||
| description: "Queue a durable session compaction request.", | ||
| }))) | ||
@@ -303,0 +298,0 @@ .add(HttpApiEndpoint.post("session.wait", "/api/session/:sessionID/wait", { |
+2
-2
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/protocol", | ||
| "version": "0.0.0-next-15029", | ||
| "version": "0.0.0-next-15032", | ||
| "type": "module", | ||
@@ -29,3 +29,3 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@opencode-ai/schema": "0.0.0-next-15029", | ||
| "@opencode-ai/schema": "0.0.0-next-15032", | ||
| "effect": "4.0.0-beta.83" | ||
@@ -32,0 +32,0 @@ }, |
Sorry, the diff of this file is too big to display
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.
1804965
1.37%29423
1.44%+ Added
- Removed