@opencode-ai/protocol
Advanced tools
@@ -262,2 +262,17 @@ import { SessionMessage } from "@opencode-ai/schema/session-message"; | ||
| }))) | ||
| .add(HttpApiEndpoint.post("session.shell", "/api/session/:sessionID/shell", { | ||
| params: { sessionID: Session.ID }, | ||
| payload: Schema.Struct({ | ||
| id: Event.ID.pipe(Schema.optional), | ||
| command: Schema.String, | ||
| }), | ||
| success: HttpApiSchema.NoContent, | ||
| error: SessionNotFoundError, | ||
| }) | ||
| .middleware(sessionLocationMiddleware) | ||
| .annotateMerge(OpenApi.annotations({ | ||
| identifier: "v2.session.shell", | ||
| summary: "Run shell command", | ||
| description: "Execute one shell command in the session's working directory. Emits a shell.started event before execution and a shell.ended event with the merged output after.", | ||
| }))) | ||
| .add(HttpApiEndpoint.post("session.compact", "/api/session/:sessionID/compact", { | ||
@@ -264,0 +279,0 @@ params: { sessionID: Session.ID }, |
+2
-2
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/protocol", | ||
| "version": "0.0.0-next-14796", | ||
| "version": "0.0.0-next-14798", | ||
| "type": "module", | ||
@@ -29,3 +29,3 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@opencode-ai/schema": "0.0.0-next-14796", | ||
| "@opencode-ai/schema": "0.0.0-next-14798", | ||
| "effect": "4.0.0-beta.83" | ||
@@ -32,0 +32,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.
1826968
0.08%29866
0.09%+ Added
- Removed