@opencode-ai/protocol
Advanced tools
@@ -390,2 +390,29 @@ import { SessionMessage } from "@opencode-ai/schema/session-message"; | ||
| }))) | ||
| .add(HttpApiEndpoint.delete("session.pending.cancel", "/api/session/:sessionID/pending/:inputID", { | ||
| params: { sessionID: Session.ID, inputID: SessionMessage.ID }, | ||
| success: HttpApiSchema.NoContent, | ||
| error: [ConflictError, SessionNotFoundError], | ||
| }).annotateMerge(OpenApi.annotations({ | ||
| identifier: "v2.session.pending.cancel", | ||
| summary: "Cancel pending input", | ||
| description: "Cancel an input that has not yet been promoted into session history.", | ||
| }))) | ||
| .add(HttpApiEndpoint.post("session.pending.steer", "/api/session/:sessionID/pending/:inputID/steer", { | ||
| params: { sessionID: Session.ID, inputID: SessionMessage.ID }, | ||
| success: HttpApiSchema.NoContent, | ||
| error: [ConflictError, SessionNotFoundError], | ||
| }).annotateMerge(OpenApi.annotations({ | ||
| identifier: "v2.session.pending.steer", | ||
| summary: "Steer queued input", | ||
| description: "Change a queued input to steer delivery and wake session execution.", | ||
| }))) | ||
| .add(HttpApiEndpoint.post("session.pending.queue", "/api/session/:sessionID/pending/:inputID/queue", { | ||
| params: { sessionID: Session.ID, inputID: SessionMessage.ID }, | ||
| success: HttpApiSchema.NoContent, | ||
| error: [ConflictError, SessionNotFoundError], | ||
| }).annotateMerge(OpenApi.annotations({ | ||
| identifier: "v2.session.pending.queue", | ||
| summary: "Queue pending steer", | ||
| description: "Change a pending steer to queued delivery.", | ||
| }))) | ||
| .add(HttpApiEndpoint.get("session.instructions.entry.list", "/api/session/:sessionID/instructions/entries", { | ||
@@ -392,0 +419,0 @@ params: { sessionID: Session.ID }, |
+2
-2
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/protocol", | ||
| "version": "0.0.0-next-16974", | ||
| "version": "0.0.0-next-16977", | ||
| "type": "module", | ||
@@ -31,3 +31,3 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@opencode-ai/schema": "0.0.0-next-16974", | ||
| "@opencode-ai/schema": "0.0.0-next-16977", | ||
| "effect": "4.0.0-beta.101" | ||
@@ -34,0 +34,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.
1700242
2.47%27436
2.61%+ Added
- Removed