@opencode-ai/schema
Advanced tools
| export * as PersistentPty from "./persistent-pty.js"; | ||
| import { Schema } from "effect"; | ||
| export declare const Info: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly foregroundProcess: Schema.NullOr<Schema.String>; | ||
| readonly size: Schema.Struct<{ | ||
| readonly cols: Schema.Int; | ||
| readonly rows: Schema.Int; | ||
| }>; | ||
| readonly output: Schema.Struct<{ | ||
| readonly head: Schema.Int; | ||
| readonly tail: Schema.Int; | ||
| }>; | ||
| readonly id: 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 command: Schema.String; | ||
| readonly args: Schema.$Array<Schema.String>; | ||
| readonly cwd: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["running", "exited"]>; | ||
| readonly pid: Schema.Int; | ||
| readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>; | ||
| }>; | ||
| export interface Info extends Schema.Schema.Type<typeof Info> { | ||
| } | ||
| export declare const CreateInput: Schema.Struct<{ | ||
| readonly command: Schema.String; | ||
| readonly args: Schema.$Array<Schema.String>; | ||
| readonly cwd: Schema.String; | ||
| readonly title: Schema.String; | ||
| readonly env: Schema.$Record<Schema.String, Schema.String>; | ||
| readonly size: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{ | ||
| readonly cols: Schema.Int; | ||
| readonly rows: Schema.Int; | ||
| }>>>, Schema.optionalKey<Schema.Struct<{ | ||
| readonly cols: Schema.Int; | ||
| readonly rows: Schema.Int; | ||
| }>>, never, never>; | ||
| }>; | ||
| export interface CreateInput extends Schema.Schema.Type<typeof CreateInput> { | ||
| } | ||
| export declare const UpdateInput: Schema.Struct<{ | ||
| readonly attachmentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>; | ||
| readonly size: Schema.Struct<{ | ||
| readonly cols: Schema.Int; | ||
| readonly rows: Schema.Int; | ||
| }>; | ||
| }>; | ||
| export interface UpdateInput extends Schema.Schema.Type<typeof UpdateInput> { | ||
| } | ||
| export declare const Snapshot: Schema.Struct<{ | ||
| readonly info: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly foregroundProcess: Schema.NullOr<Schema.String>; | ||
| readonly size: Schema.Struct<{ | ||
| readonly cols: Schema.Int; | ||
| readonly rows: Schema.Int; | ||
| }>; | ||
| readonly output: Schema.Struct<{ | ||
| readonly head: Schema.Int; | ||
| readonly tail: Schema.Int; | ||
| }>; | ||
| readonly id: 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 command: Schema.String; | ||
| readonly args: Schema.$Array<Schema.String>; | ||
| readonly cwd: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["running", "exited"]>; | ||
| readonly pid: Schema.Int; | ||
| readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>; | ||
| }>; | ||
| readonly text: Schema.String; | ||
| readonly checkpoint: Schema.Uint8Array; | ||
| readonly cursor: Schema.Struct<{ | ||
| readonly x: Schema.Int; | ||
| readonly y: Schema.Int; | ||
| }>; | ||
| }>; | ||
| export interface Snapshot extends Schema.Schema.Type<typeof Snapshot> { | ||
| } | ||
| export declare const Added: Schema.Struct<{ | ||
| readonly id: Schema.brand<Schema.String, "Event.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Event.ID">; | ||
| }; | ||
| readonly created: Schema.Finite; | ||
| readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>; | ||
| readonly type: Schema.Literal<"persistent-pty.added">; | ||
| readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>>, Schema.optionalKey<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>, never, never>; | ||
| readonly data: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly terminal: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly foregroundProcess: Schema.NullOr<Schema.String>; | ||
| readonly size: Schema.Struct<{ | ||
| readonly cols: Schema.Int; | ||
| readonly rows: Schema.Int; | ||
| }>; | ||
| readonly output: Schema.Struct<{ | ||
| readonly head: Schema.Int; | ||
| readonly tail: Schema.Int; | ||
| }>; | ||
| readonly id: 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 command: Schema.String; | ||
| readonly args: Schema.$Array<Schema.String>; | ||
| readonly cwd: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["running", "exited"]>; | ||
| readonly pid: Schema.Int; | ||
| readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>; | ||
| }>; | ||
| }>; | ||
| }> & { | ||
| type: "persistent-pty.added"; | ||
| durability: "ephemeral"; | ||
| durable: undefined; | ||
| data: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly terminal: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly foregroundProcess: Schema.NullOr<Schema.String>; | ||
| readonly size: Schema.Struct<{ | ||
| readonly cols: Schema.Int; | ||
| readonly rows: Schema.Int; | ||
| }>; | ||
| readonly output: Schema.Struct<{ | ||
| readonly head: Schema.Int; | ||
| readonly tail: Schema.Int; | ||
| }>; | ||
| readonly id: 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 command: Schema.String; | ||
| readonly args: Schema.$Array<Schema.String>; | ||
| readonly cwd: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["running", "exited"]>; | ||
| readonly pid: Schema.Int; | ||
| readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>; | ||
| }>; | ||
| }>; | ||
| }; | ||
| export declare const Removed: Schema.Struct<{ | ||
| readonly id: Schema.brand<Schema.String, "Event.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Event.ID">; | ||
| }; | ||
| readonly created: Schema.Finite; | ||
| readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>; | ||
| readonly type: Schema.Literal<"persistent-pty.removed">; | ||
| readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>>, Schema.optionalKey<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>, never, never>; | ||
| readonly data: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly ptyID: Schema.brand<Schema.String, "PtyID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"PtyID">; | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">; | ||
| }; | ||
| }>; | ||
| }> & { | ||
| type: "persistent-pty.removed"; | ||
| durability: "ephemeral"; | ||
| durable: undefined; | ||
| data: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly ptyID: Schema.brand<Schema.String, "PtyID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"PtyID">; | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">; | ||
| }; | ||
| }>; | ||
| }; | ||
| export declare const Event: { | ||
| Added: Schema.Struct<{ | ||
| readonly id: Schema.brand<Schema.String, "Event.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Event.ID">; | ||
| }; | ||
| readonly created: Schema.Finite; | ||
| readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>; | ||
| readonly type: Schema.Literal<"persistent-pty.added">; | ||
| readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>>, Schema.optionalKey<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>, never, never>; | ||
| readonly data: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly terminal: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly foregroundProcess: Schema.NullOr<Schema.String>; | ||
| readonly size: Schema.Struct<{ | ||
| readonly cols: Schema.Int; | ||
| readonly rows: Schema.Int; | ||
| }>; | ||
| readonly output: Schema.Struct<{ | ||
| readonly head: Schema.Int; | ||
| readonly tail: Schema.Int; | ||
| }>; | ||
| readonly id: 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 command: Schema.String; | ||
| readonly args: Schema.$Array<Schema.String>; | ||
| readonly cwd: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["running", "exited"]>; | ||
| readonly pid: Schema.Int; | ||
| readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>; | ||
| }>; | ||
| }>; | ||
| }> & { | ||
| type: "persistent-pty.added"; | ||
| durability: "ephemeral"; | ||
| durable: undefined; | ||
| data: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly terminal: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly foregroundProcess: Schema.NullOr<Schema.String>; | ||
| readonly size: Schema.Struct<{ | ||
| readonly cols: Schema.Int; | ||
| readonly rows: Schema.Int; | ||
| }>; | ||
| readonly output: Schema.Struct<{ | ||
| readonly head: Schema.Int; | ||
| readonly tail: Schema.Int; | ||
| }>; | ||
| readonly id: 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 command: Schema.String; | ||
| readonly args: Schema.$Array<Schema.String>; | ||
| readonly cwd: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["running", "exited"]>; | ||
| readonly pid: Schema.Int; | ||
| readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>; | ||
| }>; | ||
| }>; | ||
| }; | ||
| Removed: Schema.Struct<{ | ||
| readonly id: Schema.brand<Schema.String, "Event.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Event.ID">; | ||
| }; | ||
| readonly created: Schema.Finite; | ||
| readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>; | ||
| readonly type: Schema.Literal<"persistent-pty.removed">; | ||
| readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>>, Schema.optionalKey<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>, never, never>; | ||
| readonly data: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly ptyID: Schema.brand<Schema.String, "PtyID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"PtyID">; | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">; | ||
| }; | ||
| }>; | ||
| }> & { | ||
| type: "persistent-pty.removed"; | ||
| durability: "ephemeral"; | ||
| durable: undefined; | ||
| data: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly ptyID: Schema.brand<Schema.String, "PtyID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"PtyID">; | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">; | ||
| }; | ||
| }>; | ||
| }; | ||
| Definitions: readonly [Schema.Struct<{ | ||
| readonly id: Schema.brand<Schema.String, "Event.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Event.ID">; | ||
| }; | ||
| readonly created: Schema.Finite; | ||
| readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>; | ||
| readonly type: Schema.Literal<"persistent-pty.added">; | ||
| readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>>, Schema.optionalKey<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>, never, never>; | ||
| readonly data: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly terminal: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly foregroundProcess: Schema.NullOr<Schema.String>; | ||
| readonly size: Schema.Struct<{ | ||
| readonly cols: Schema.Int; | ||
| readonly rows: Schema.Int; | ||
| }>; | ||
| readonly output: Schema.Struct<{ | ||
| readonly head: Schema.Int; | ||
| readonly tail: Schema.Int; | ||
| }>; | ||
| readonly id: 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 command: Schema.String; | ||
| readonly args: Schema.$Array<Schema.String>; | ||
| readonly cwd: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["running", "exited"]>; | ||
| readonly pid: Schema.Int; | ||
| readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>; | ||
| }>; | ||
| }>; | ||
| }> & { | ||
| type: "persistent-pty.added"; | ||
| durability: "ephemeral"; | ||
| durable: undefined; | ||
| data: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly terminal: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly foregroundProcess: Schema.NullOr<Schema.String>; | ||
| readonly size: Schema.Struct<{ | ||
| readonly cols: Schema.Int; | ||
| readonly rows: Schema.Int; | ||
| }>; | ||
| readonly output: Schema.Struct<{ | ||
| readonly head: Schema.Int; | ||
| readonly tail: Schema.Int; | ||
| }>; | ||
| readonly id: 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 command: Schema.String; | ||
| readonly args: Schema.$Array<Schema.String>; | ||
| readonly cwd: Schema.String; | ||
| readonly status: Schema.Literals<readonly ["running", "exited"]>; | ||
| readonly pid: Schema.Int; | ||
| readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>; | ||
| }>; | ||
| }>; | ||
| }, Schema.Struct<{ | ||
| readonly id: Schema.brand<Schema.String, "Event.ID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"Event.ID">; | ||
| }; | ||
| readonly created: Schema.Finite; | ||
| readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>; | ||
| readonly type: Schema.Literal<"persistent-pty.removed">; | ||
| readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>>, Schema.optionalKey<Schema.Struct<{ | ||
| readonly directory: Schema.brand<Schema.String, "AbsolutePath">; | ||
| readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & { | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| create: () => string & import("effect/Brand").Brand<"Workspace.ID">; | ||
| }>, never, never>; | ||
| }>>, never, never>; | ||
| readonly data: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly ptyID: Schema.brand<Schema.String, "PtyID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"PtyID">; | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">; | ||
| }; | ||
| }>; | ||
| }> & { | ||
| type: "persistent-pty.removed"; | ||
| durability: "ephemeral"; | ||
| durable: undefined; | ||
| data: Schema.Struct<{ | ||
| readonly sessionID: Schema.brand<Schema.String, "SessionID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"SessionID">; | ||
| descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">; | ||
| }; | ||
| readonly ptyID: Schema.brand<Schema.String, "PtyID"> & { | ||
| create: () => string & import("effect/Brand").Brand<"PtyID">; | ||
| ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">; | ||
| }; | ||
| }>; | ||
| }]; | ||
| }; |
| export * as PersistentPty from "./persistent-pty.js"; | ||
| import { Schema } from "effect"; | ||
| import { ephemeral, inventory } from "./event.js"; | ||
| import { Pty } from "./pty.js"; | ||
| import { NonNegativeInt, PositiveInt, optional } from "./schema.js"; | ||
| import { Session } from "./session.js"; | ||
| export const Info = Schema.Struct({ | ||
| ...Pty.Info.fields, | ||
| sessionID: Session.ID, | ||
| foregroundProcess: Schema.NullOr(Schema.String), | ||
| size: Schema.Struct({ cols: PositiveInt, rows: PositiveInt }), | ||
| output: Schema.Struct({ head: NonNegativeInt, tail: NonNegativeInt }), | ||
| }).annotate({ identifier: "PersistentPty.Info" }); | ||
| export const CreateInput = Schema.Struct({ | ||
| command: Schema.String, | ||
| args: Schema.Array(Schema.String), | ||
| cwd: Schema.String, | ||
| title: Schema.String, | ||
| env: Schema.Record(Schema.String, Schema.String), | ||
| size: optional(Schema.Struct({ cols: PositiveInt, rows: PositiveInt })), | ||
| }).annotate({ identifier: "PersistentPty.CreateInput" }); | ||
| export const UpdateInput = Schema.Struct({ | ||
| attachmentID: optional(Schema.String), | ||
| size: Schema.Struct({ cols: PositiveInt, rows: PositiveInt }), | ||
| }).annotate({ identifier: "PersistentPty.UpdateInput" }); | ||
| export const Snapshot = Schema.Struct({ | ||
| info: Info, | ||
| text: Schema.String, | ||
| checkpoint: Schema.Uint8Array, | ||
| cursor: Schema.Struct({ x: NonNegativeInt, y: NonNegativeInt }), | ||
| }).annotate({ identifier: "PersistentPty.Snapshot" }); | ||
| export const Added = ephemeral({ type: "persistent-pty.added", schema: { sessionID: Session.ID, terminal: Info } }); | ||
| export const Removed = ephemeral({ type: "persistent-pty.removed", schema: { sessionID: Session.ID, ptyID: Pty.ID } }); | ||
| export const Event = { Added, Removed, Definitions: inventory(Added, Removed) }; |
@@ -19,2 +19,3 @@ export * as EventManifest from "./event-manifest.js"; | ||
| import { Permission } from "./permission.js"; | ||
| import { PersistentPty } from "./persistent-pty.js"; | ||
| import { Plugin } from "./plugin.js"; | ||
@@ -38,3 +39,3 @@ import { Project } from "./project.js"; | ||
| const foundationDefinitions = Event.inventory(...ModelsDev.Event.Definitions, ...Integration.Event.Definitions, ...Catalog.Event.Definitions, ...Agent.Event.Definitions, ...coreDefinitions); | ||
| const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...Worktree.Event.Definitions, ...Command.Event.Definitions, ...Config.Event.Definitions, ...Skill.Event.Definitions, ...Pty.Event.Definitions, ...Shell.Event.Definitions, ...Form.Event.Definitions, ...WebSearch.Event.Definitions); | ||
| const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...Worktree.Event.Definitions, ...Command.Event.Definitions, ...Config.Event.Definitions, ...Skill.Event.Definitions, ...Pty.Event.Definitions, ...PersistentPty.Event.Definitions, ...Shell.Event.Definitions, ...Form.Event.Definitions, ...WebSearch.Event.Definitions); | ||
| export const ServerDefinitions = Event.inventory(...foundationDefinitions, ...featureDefinitions, | ||
@@ -41,0 +42,0 @@ // Current events the TUI consumes from the public stream. |
+1
-0
@@ -34,2 +34,3 @@ export { Agent } from "./agent.js"; | ||
| export { Pty } from "./pty.js"; | ||
| export { PersistentPty } from "./persistent-pty.js"; | ||
| export { PtyTicket } from "./pty-ticket.js"; | ||
@@ -36,0 +37,0 @@ export { Question } from "./question.js"; |
+1
-0
@@ -34,2 +34,3 @@ export { Agent } from "./agent.js"; | ||
| export { Pty } from "./pty.js"; | ||
| export { PersistentPty } from "./persistent-pty.js"; | ||
| export { PtyTicket } from "./pty-ticket.js"; | ||
@@ -36,0 +37,0 @@ export { Question } from "./question.js"; |
+1
-1
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/schema", | ||
| "version": "0.0.0-dev-18199", | ||
| "version": "0.0.0-dev-18202", | ||
| "type": "module", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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.
3557776
1.41%195
1.04%56627
1.53%