@lzdi/pty-remote-protocol 0.1.8 → 0.1.10

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/protocol.ts +11 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lzdi/pty-remote-protocol",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "repository": {
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;
@@ -232,6 +225,16 @@ export interface RuntimeSnapshotPayload {
232
225
  snapshot: RuntimeSnapshot;
233
226
  }
234
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
+
235
238
  export interface MessagesUpsertPayload {
236
239
  cliId: string;
237
240
  providerId: ProviderId | null;