🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@opencode-ai/protocol

Package Overview
Dependencies
Maintainers
2
Versions
740
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/protocol - npm Package Compare versions

Comparing version
0.0.0-next-14796
to
0.0.0-next-14798
+15
-0
dist/groups/session.js

@@ -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