@opencode-ai/protocol
Advanced tools
@@ -537,2 +537,3 @@ import { Schema } from "effect"; | ||
| readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>; | ||
| readonly streamed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>; | ||
| readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>; | ||
@@ -539,0 +540,0 @@ }>; |
@@ -525,2 +525,12 @@ import { SessionMessage } from "@opencode-ai/schema/session-message"; | ||
| }))) | ||
| .add(HttpApiEndpoint.patch("session.messageUpdate", "/api/session/:sessionID/message/:messageID", { | ||
| params: { sessionID: Session.ID, messageID: SessionMessage.ID }, | ||
| payload: Schema.Struct({ content: Schema.Array(SessionMessage.AssistantContent) }), | ||
| success: Schema.Struct({ data: SessionMessage.Assistant }), | ||
| error: [SessionNotFoundError, MessageNotFoundError, InvalidRequestError, SessionBusyError, ConflictError], | ||
| }).annotateMerge(OpenApi.annotations({ | ||
| identifier: "v2.session.messageUpdate", | ||
| summary: "Update assistant message content", | ||
| description: "Replace the content of a completed assistant message in an idle session.", | ||
| }))) | ||
| .add(HttpApiEndpoint.put("session.environment", "/api/session/:sessionID/environment", { | ||
@@ -527,0 +537,0 @@ params: { sessionID: Session.ID }, |
+2
-2
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/protocol", | ||
| "version": "0.0.0-beta-18286", | ||
| "version": "0.0.0-beta-18311", | ||
| "type": "module", | ||
@@ -35,3 +35,3 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@opencode-ai/schema": "0.0.0-beta-18286", | ||
| "@opencode-ai/schema": "0.0.0-beta-18311", | ||
| "effect": "4.0.0-rc.111" | ||
@@ -38,0 +38,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.
2078645
4.66%33379
4.28%+ Added
- Removed