@opencode-ai/schema 0.0.0-dev-18558 → 0.0.0-dev-18562
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/persistent-pty.d.ts +21 -0
- package/dist/persistent-pty.js +15 -0
- package/package.json +1 -1
package/dist/persistent-pty.d.ts
CHANGED
|
@@ -97,6 +97,27 @@ export declare const Snapshot: Schema.Struct<{
|
|
|
97
97
|
}>;
|
|
98
98
|
export interface Snapshot extends Schema.Schema.Type<typeof Snapshot> {
|
|
99
99
|
}
|
|
100
|
+
export declare const ReadLines: Schema.Int;
|
|
101
|
+
export declare const ReadResult: Schema.Struct<{
|
|
102
|
+
readonly ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
103
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
104
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
105
|
+
};
|
|
106
|
+
readonly title: Schema.String;
|
|
107
|
+
readonly cwd: Schema.String;
|
|
108
|
+
readonly foregroundProcess: Schema.NullOr<Schema.String>;
|
|
109
|
+
readonly screen: Schema.Struct<{
|
|
110
|
+
readonly text: Schema.String;
|
|
111
|
+
readonly cols: Schema.Int;
|
|
112
|
+
readonly rows: Schema.Int;
|
|
113
|
+
readonly cursor: Schema.Struct<{
|
|
114
|
+
readonly x: Schema.Int;
|
|
115
|
+
readonly y: Schema.Int;
|
|
116
|
+
}>;
|
|
117
|
+
}>;
|
|
118
|
+
}>;
|
|
119
|
+
export interface ReadResult extends Schema.Schema.Type<typeof ReadResult> {
|
|
120
|
+
}
|
|
100
121
|
export declare const Added: Schema.Struct<{
|
|
101
122
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
102
123
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/persistent-pty.js
CHANGED
|
@@ -35,6 +35,21 @@ export const Snapshot = Schema.Struct({
|
|
|
35
35
|
checkpoint: Schema.Uint8Array,
|
|
36
36
|
cursor: Schema.Struct({ x: NonNegativeInt, y: NonNegativeInt }),
|
|
37
37
|
}).annotate({ identifier: "PersistentPty.Snapshot" });
|
|
38
|
+
export const ReadLines = PositiveInt.check(Schema.isLessThanOrEqualTo(65535)).annotate({
|
|
39
|
+
identifier: "PersistentPty.ReadLines",
|
|
40
|
+
});
|
|
41
|
+
export const ReadResult = Schema.Struct({
|
|
42
|
+
ptyID: Pty.ID,
|
|
43
|
+
title: Schema.String,
|
|
44
|
+
cwd: Schema.String,
|
|
45
|
+
foregroundProcess: Schema.NullOr(Schema.String),
|
|
46
|
+
screen: Schema.Struct({
|
|
47
|
+
text: Schema.String,
|
|
48
|
+
cols: PositiveInt,
|
|
49
|
+
rows: PositiveInt,
|
|
50
|
+
cursor: Snapshot.fields.cursor,
|
|
51
|
+
}),
|
|
52
|
+
}).annotate({ identifier: "PersistentPty.ReadResult" });
|
|
38
53
|
export const Added = ephemeral({ type: "persistent-pty.added", schema: { sessionID: Session.ID, terminal: Info } });
|
|
39
54
|
export const Removed = ephemeral({ type: "persistent-pty.removed", schema: { sessionID: Session.ID, ptyID: Pty.ID } });
|
|
40
55
|
export const Event = { Added, Removed, Definitions: inventory(Added, Removed) };
|