New:Socket for Asana Is Now Available.Learn more
Get Started

@opencode-ai/protocol

Package Overview
Dependencies
Maintainers
2
Versions
1452
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-beta-18414
to
0.0.0-beta-18593
+14
-2
dist/groups/model.d.ts

@@ -19,3 +19,9 @@ import { Model } from "@opencode-ai/schema/model";

readonly responsesWebsockets: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
}>;
}> & {
default: () => {
tools: true;
input: string[];
output: string[];
};
};
readonly variants: Schema.$Array<Schema.Struct<{

@@ -131,3 +137,9 @@ readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;

readonly responsesWebsockets: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
}>;
}> & {
default: () => {
tools: true;
input: string[];
output: string[];
};
};
readonly variants: Schema.$Array<Schema.Struct<{

@@ -134,0 +146,0 @@ readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;

@@ -7,3 +7,3 @@ import { Schema } from "effect";

export declare function hasPersistentPtyConnectTicketURL(url: URL): boolean;
export declare const PersistentPtyGroup: HttpApiGroup.HttpApiGroup<"server.experimental", HttpApiEndpoint.HttpApiEndpoint<"persistentPty.list", "GET", "/api/experimental/session/:sessionID/terminal", Schema.toCodecStringTree<Schema.Struct<{
export declare const PersistentPtyGroup: HttpApiGroup.HttpApiGroup<"server.experimental", HttpApiEndpoint.HttpApiEndpoint<"persistentPty.read", "GET", "/api/experimental/session/:sessionID/terminal/read", Schema.toCodecStringTree<Schema.Struct<{
sessionID: Schema.brand<Schema.String, "SessionID"> & {

@@ -13,2 +13,28 @@ create: () => string & import("effect/Brand").Brand<"SessionID">;

};
}>>, Schema.toCodecStringTree<Schema.Struct<{
lines: Schema.optional<Schema.compose<Schema.Int, Schema.NumberFromString>>;
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
readonly data: Schema.NullOr<Schema.Struct<{
readonly ptyID: Schema.brand<Schema.String, "PtyID"> & {
create: () => string & import("effect/Brand").Brand<"PtyID">;
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
};
readonly title: Schema.String;
readonly cwd: Schema.String;
readonly foregroundProcess: Schema.NullOr<Schema.String>;
readonly screen: Schema.Struct<{
readonly text: Schema.String;
readonly cols: Schema.Int;
readonly rows: Schema.Int;
readonly cursor: Schema.Struct<{
readonly x: Schema.Int;
readonly y: Schema.Int;
}>;
}>;
}>>;
}>>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"persistentPty.list", "GET", "/api/experimental/session/:sessionID/terminal", Schema.toCodecStringTree<Schema.Struct<{
sessionID: Schema.brand<Schema.String, "SessionID"> & {
create: () => string & import("effect/Brand").Brand<"SessionID">;
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
};
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{

@@ -15,0 +41,0 @@ readonly data: Schema.$Array<Schema.Struct<{

@@ -17,2 +17,13 @@ import { PersistentPty } from "@opencode-ai/schema/persistent-pty";

export const PersistentPtyGroup = HttpApiGroup.make("server.experimental")
.add(HttpApiEndpoint.get("persistentPty.read", "/api/experimental/session/:sessionID/terminal/read", {
params: { sessionID: Session.ID },
query: {
lines: Schema.NumberFromString.pipe(Schema.decodeTo(PersistentPty.ReadLines), Schema.optional),
},
success: Schema.Struct({ data: Schema.NullOr(PersistentPty.ReadResult) }),
error: [ServiceUnavailableError],
}).annotateMerge(OpenApi.annotations({
summary: "Read the session's most recently controlled terminal",
description: "Read the last physical rows without changing selection or taking control. Omitted lines uses the live terminal height; larger counts include retained history. Blank rows are preserved. Screen dimensions and cursor remain relative to the live screen. Returns null when no current terminal exists. Selection is server-local and resets on restart. Experimental: may change without compatibility guarantees.",
})))
.add(HttpApiEndpoint.get("persistentPty.list", "/api/experimental/session/:sessionID/terminal", {

@@ -19,0 +30,0 @@ params: { sessionID: Session.ID },

@@ -131,2 +131,3 @@ import { SessionMessage } from "@opencode-ai/schema/session-message";

location: Location.Ref.pipe(Schema.optional),
metadata: Session.Metadata.pipe(Schema.optional),
}),

@@ -133,0 +134,0 @@ success: Schema.Struct({ data: Session.Info }),

+3
-3
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/protocol",
"version": "0.0.0-beta-18414",
"version": "0.0.0-beta-18593",
"type": "module",

@@ -35,4 +35,4 @@ "license": "MIT",

"dependencies": {
"@opencode-ai/schema": "0.0.0-beta-18414",
"effect": "4.0.0-rc.111"
"@opencode-ai/schema": "0.0.0-beta-18593",
"effect": "4.0.0-rc.112"
},

@@ -39,0 +39,0 @@ "devDependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display