@lzdi/pty-remote-protocol 0.1.7 → 0.1.9
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/package.json +1 -1
- package/src/protocol.ts +17 -8
package/package.json
CHANGED
package/src/protocol.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChatMessage, CliDescriptor, ProviderId, RuntimeSnapshot } from './runtime-types.ts';
|
|
1
|
+
import type { ChatMessage, CliDescriptor, ProviderId, RuntimeSnapshot, RuntimeStatus } from './runtime-types.ts';
|
|
2
2
|
import type { TerminalFramePatch, TerminalFrameSnapshot } from './terminal-frame.ts';
|
|
3
3
|
|
|
4
4
|
export interface CliRegisterPayload {
|
|
@@ -52,7 +52,6 @@ export type CliCommandName =
|
|
|
52
52
|
| 'delete-attachment'
|
|
53
53
|
| 'stop-message'
|
|
54
54
|
| 'reset-session'
|
|
55
|
-
| 'get-runtime-snapshot'
|
|
56
55
|
| 'pick-project-directory'
|
|
57
56
|
| 'list-project-conversations'
|
|
58
57
|
| 'list-managed-pty-handles'
|
|
@@ -77,7 +76,6 @@ export interface CliCommandPayloadMap {
|
|
|
77
76
|
};
|
|
78
77
|
'stop-message': Record<string, never>;
|
|
79
78
|
'reset-session': Record<string, never>;
|
|
80
|
-
'get-runtime-snapshot': Record<string, never>;
|
|
81
79
|
'pick-project-directory': Record<string, never>;
|
|
82
80
|
'list-project-conversations': {
|
|
83
81
|
cwd: string;
|
|
@@ -100,10 +98,6 @@ export interface CliCommandPayloadMap {
|
|
|
100
98
|
};
|
|
101
99
|
}
|
|
102
100
|
|
|
103
|
-
export interface GetRuntimeSnapshotResultPayload {
|
|
104
|
-
snapshot: RuntimeSnapshot;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
101
|
export interface PickProjectDirectoryResultPayload {
|
|
108
102
|
cwd: string;
|
|
109
103
|
label: string;
|
|
@@ -150,7 +144,6 @@ export interface CliCommandResultPayloadMap {
|
|
|
150
144
|
'delete-attachment': null;
|
|
151
145
|
'stop-message': null;
|
|
152
146
|
'reset-session': null;
|
|
153
|
-
'get-runtime-snapshot': GetRuntimeSnapshotResultPayload;
|
|
154
147
|
'pick-project-directory': PickProjectDirectoryResultPayload;
|
|
155
148
|
'list-project-conversations': ListProjectSessionsResultPayload;
|
|
156
149
|
'list-managed-pty-handles': ListManagedPtyHandlesResultPayload;
|
|
@@ -210,6 +203,12 @@ export interface TerminalResizePayload {
|
|
|
210
203
|
rows: number;
|
|
211
204
|
}
|
|
212
205
|
|
|
206
|
+
export interface TerminalInputPayload {
|
|
207
|
+
targetCliId: string | null;
|
|
208
|
+
targetProviderId: ProviderId | null;
|
|
209
|
+
input: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
213
212
|
export interface TerminalFrameSyncResultPayload {
|
|
214
213
|
ok: boolean;
|
|
215
214
|
error?: string;
|
|
@@ -226,6 +225,16 @@ export interface RuntimeSnapshotPayload {
|
|
|
226
225
|
snapshot: RuntimeSnapshot;
|
|
227
226
|
}
|
|
228
227
|
|
|
228
|
+
export interface RuntimeMetaPayload {
|
|
229
|
+
cliId: string;
|
|
230
|
+
providerId: ProviderId;
|
|
231
|
+
conversationKey: string | null;
|
|
232
|
+
cwd: string;
|
|
233
|
+
lastError: string | null;
|
|
234
|
+
sessionId: string | null;
|
|
235
|
+
status: RuntimeStatus;
|
|
236
|
+
}
|
|
237
|
+
|
|
229
238
|
export interface MessagesUpsertPayload {
|
|
230
239
|
cliId: string;
|
|
231
240
|
providerId: ProviderId | null;
|