@linkshell/gateway 0.2.47 → 0.2.48

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 (39) hide show
  1. package/dist/gateway/src/agent-permission-http.d.ts +18 -9
  2. package/dist/gateway/src/agent-permission-http.js +18 -10
  3. package/dist/gateway/src/agent-permission-http.js.map +1 -1
  4. package/dist/gateway/src/embedded.js +119 -55
  5. package/dist/gateway/src/embedded.js.map +1 -1
  6. package/dist/gateway/src/index.js +158 -91
  7. package/dist/gateway/src/index.js.map +1 -1
  8. package/dist/gateway/src/pairings.d.ts +3 -3
  9. package/dist/gateway/src/pairings.js +4 -5
  10. package/dist/gateway/src/pairings.js.map +1 -1
  11. package/dist/gateway/src/relay.d.ts +1 -1
  12. package/dist/gateway/src/relay.js +23 -18
  13. package/dist/gateway/src/relay.js.map +1 -1
  14. package/dist/gateway/src/sessions.d.ts +35 -28
  15. package/dist/gateway/src/sessions.js +165 -145
  16. package/dist/gateway/src/sessions.js.map +1 -1
  17. package/dist/gateway/src/state-store.d.ts +9 -6
  18. package/dist/gateway/src/state-store.js +26 -19
  19. package/dist/gateway/src/state-store.js.map +1 -1
  20. package/dist/gateway/src/tokens.d.ts +27 -7
  21. package/dist/gateway/src/tokens.js +86 -60
  22. package/dist/gateway/src/tokens.js.map +1 -1
  23. package/dist/gateway/src/tunnel.d.ts +11 -10
  24. package/dist/gateway/src/tunnel.js +46 -35
  25. package/dist/gateway/src/tunnel.js.map +1 -1
  26. package/dist/gateway/tsconfig.tsbuildinfo +1 -1
  27. package/dist/shared-protocol/src/index.d.ts +271 -223
  28. package/dist/shared-protocol/src/index.js +31 -15
  29. package/dist/shared-protocol/src/index.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/agent-permission-http.ts +18 -10
  32. package/src/embedded.ts +122 -54
  33. package/src/index.ts +162 -91
  34. package/src/pairings.ts +6 -7
  35. package/src/relay.ts +26 -20
  36. package/src/sessions.ts +179 -150
  37. package/src/state-store.ts +41 -25
  38. package/src/tokens.ts +109 -63
  39. package/src/tunnel.ts +57 -39
@@ -1,17 +1,18 @@
1
1
  import { z } from "zod";
2
- export declare const PROTOCOL_VERSION = 1;
2
+ export declare const PROTOCOL_VERSION = 2;
3
3
  export declare const deviceRoleSchema: z.ZodEnum<["host", "client"]>;
4
4
  export type DeviceRole = z.infer<typeof deviceRoleSchema>;
5
5
  export declare const sessionStateSchema: z.ZodEnum<["pending_pairing", "connecting", "active", "reconnecting", "idle", "terminated"]>;
6
6
  export type SessionState = z.infer<typeof sessionStateSchema>;
7
7
  export declare const terminalProviderSchema: z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>;
8
8
  export type TerminalProvider = z.infer<typeof terminalProviderSchema>;
9
- export declare const errorCodeSchema: z.ZodEnum<["session_not_found", "pairing_expired", "pairing_not_found", "control_conflict", "session_terminated", "ack_out_of_range", "invalid_message", "unauthorized"]>;
9
+ export declare const errorCodeSchema: z.ZodEnum<["device_not_found", "session_not_found", "pairing_expired", "pairing_not_found", "control_conflict", "device_terminated", "session_terminated", "ack_out_of_range", "invalid_message", "unauthorized"]>;
10
10
  export type ErrorCode = z.infer<typeof errorCodeSchema>;
11
11
  export declare const envelopeSchema: z.ZodObject<{
12
12
  id: z.ZodString;
13
13
  type: z.ZodString;
14
- sessionId: z.ZodString;
14
+ hostDeviceId: z.ZodString;
15
+ sessionId: z.ZodOptional<z.ZodString>;
15
16
  terminalId: z.ZodOptional<z.ZodString>;
16
17
  deviceId: z.ZodOptional<z.ZodString>;
17
18
  timestamp: z.ZodString;
@@ -21,9 +22,10 @@ export declare const envelopeSchema: z.ZodObject<{
21
22
  payload: z.ZodUnknown;
22
23
  }, "strip", z.ZodTypeAny, {
23
24
  type: string;
24
- sessionId: string;
25
+ hostDeviceId: string;
25
26
  timestamp: string;
26
27
  id: string;
28
+ sessionId?: string | undefined;
27
29
  terminalId?: string | undefined;
28
30
  ack?: number | undefined;
29
31
  seq?: number | undefined;
@@ -32,9 +34,10 @@ export declare const envelopeSchema: z.ZodObject<{
32
34
  payload?: unknown;
33
35
  }, {
34
36
  type: string;
35
- sessionId: string;
37
+ hostDeviceId: string;
36
38
  timestamp: string;
37
39
  id: string;
40
+ sessionId?: string | undefined;
38
41
  terminalId?: string | undefined;
39
42
  ack?: number | undefined;
40
43
  seq?: number | undefined;
@@ -42,7 +45,9 @@ export declare const envelopeSchema: z.ZodObject<{
42
45
  traceId?: string | undefined;
43
46
  payload?: unknown;
44
47
  }>;
45
- export type Envelope = z.infer<typeof envelopeSchema>;
48
+ export type Envelope = z.infer<typeof envelopeSchema> & {
49
+ sessionId: string;
50
+ };
46
51
  export declare const terminalOutputPayloadSchema: z.ZodObject<{
47
52
  stream: z.ZodEnum<["stdout", "stderr"]>;
48
53
  data: z.ZodString;
@@ -82,33 +87,30 @@ export declare const terminalResizePayloadSchema: z.ZodObject<{
82
87
  export declare const sessionConnectPayloadSchema: z.ZodObject<{
83
88
  role: z.ZodEnum<["host", "client"]>;
84
89
  clientName: z.ZodString;
85
- provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
86
90
  protocolVersion: z.ZodOptional<z.ZodNumber>;
87
91
  machineId: z.ZodOptional<z.ZodString>;
88
92
  hostname: z.ZodOptional<z.ZodString>;
89
93
  platform: z.ZodOptional<z.ZodString>;
90
94
  cwd: z.ZodOptional<z.ZodString>;
91
- projectName: z.ZodOptional<z.ZodString>;
95
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
92
96
  }, "strip", z.ZodTypeAny, {
93
97
  role: "host" | "client";
94
98
  clientName: string;
95
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
96
99
  protocolVersion?: number | undefined;
97
100
  machineId?: string | undefined;
98
101
  hostname?: string | undefined;
99
102
  platform?: string | undefined;
100
103
  cwd?: string | undefined;
101
- projectName?: string | undefined;
104
+ capabilities?: string[] | undefined;
102
105
  }, {
103
106
  role: "host" | "client";
104
107
  clientName: string;
105
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
106
108
  protocolVersion?: number | undefined;
107
109
  machineId?: string | undefined;
108
110
  hostname?: string | undefined;
109
111
  platform?: string | undefined;
110
112
  cwd?: string | undefined;
111
- projectName?: string | undefined;
113
+ capabilities?: string[] | undefined;
112
114
  }>;
113
115
  export declare const terminalExitPayloadSchema: z.ZodObject<{
114
116
  exitCode: z.ZodNullable<z.ZodNumber>;
@@ -149,14 +151,14 @@ export declare const sessionHeartbeatPayloadSchema: z.ZodObject<{
149
151
  }>;
150
152
  export declare const pairingCreatedPayloadSchema: z.ZodObject<{
151
153
  pairingCode: z.ZodString;
152
- sessionId: z.ZodString;
154
+ hostDeviceId: z.ZodString;
153
155
  expiresAt: z.ZodString;
154
156
  }, "strip", z.ZodTypeAny, {
155
- sessionId: string;
157
+ hostDeviceId: string;
156
158
  pairingCode: string;
157
159
  expiresAt: string;
158
160
  }, {
159
- sessionId: string;
161
+ hostDeviceId: string;
160
162
  pairingCode: string;
161
163
  expiresAt: string;
162
164
  }>;
@@ -168,11 +170,11 @@ export declare const sessionClaimPayloadSchema: z.ZodObject<{
168
170
  pairingCode: string;
169
171
  }>;
170
172
  export declare const sessionClaimedPayloadSchema: z.ZodObject<{
171
- sessionId: z.ZodString;
173
+ hostDeviceId: z.ZodString;
172
174
  }, "strip", z.ZodTypeAny, {
173
- sessionId: string;
175
+ hostDeviceId: string;
174
176
  }, {
175
- sessionId: string;
177
+ hostDeviceId: string;
176
178
  }>;
177
179
  export declare const controlClaimPayloadSchema: z.ZodObject<{
178
180
  deviceId: z.ZodString;
@@ -192,11 +194,11 @@ export declare const controlRejectPayloadSchema: z.ZodObject<{
192
194
  deviceId: z.ZodString;
193
195
  reason: z.ZodString;
194
196
  }, "strip", z.ZodTypeAny, {
195
- deviceId: string;
196
197
  reason: string;
197
- }, {
198
198
  deviceId: string;
199
+ }, {
199
200
  reason: string;
201
+ deviceId: string;
200
202
  }>;
201
203
  export declare const controlReleasePayloadSchema: z.ZodObject<{
202
204
  deviceId: z.ZodString;
@@ -290,86 +292,72 @@ export declare const screenIcePayloadSchema: z.ZodObject<{
290
292
  sdpMLineIndex?: number | null | undefined;
291
293
  }>;
292
294
  export declare const terminalSpawnPayloadSchema: z.ZodObject<{
293
- cwd: z.ZodString;
294
- provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
295
+ cwd: z.ZodOptional<z.ZodString>;
295
296
  }, "strip", z.ZodTypeAny, {
296
- cwd: string;
297
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
297
+ cwd?: string | undefined;
298
298
  }, {
299
- cwd: string;
300
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
299
+ cwd?: string | undefined;
301
300
  }>;
302
301
  export declare const terminalInfoSchema: z.ZodObject<{
303
302
  terminalId: z.ZodString;
304
303
  cwd: z.ZodString;
305
- projectName: z.ZodString;
306
- provider: z.ZodString;
307
304
  status: z.ZodEnum<["running", "exited"]>;
305
+ shell: z.ZodOptional<z.ZodString>;
308
306
  }, "strip", z.ZodTypeAny, {
309
307
  status: "running" | "exited";
310
308
  terminalId: string;
311
- provider: string;
312
309
  cwd: string;
313
- projectName: string;
310
+ shell?: string | undefined;
314
311
  }, {
315
312
  status: "running" | "exited";
316
313
  terminalId: string;
317
- provider: string;
318
314
  cwd: string;
319
- projectName: string;
315
+ shell?: string | undefined;
320
316
  }>;
321
317
  export declare const terminalListPayloadSchema: z.ZodObject<{
322
318
  terminals: z.ZodArray<z.ZodObject<{
323
319
  terminalId: z.ZodString;
324
320
  cwd: z.ZodString;
325
- projectName: z.ZodString;
326
- provider: z.ZodString;
327
321
  status: z.ZodEnum<["running", "exited"]>;
322
+ shell: z.ZodOptional<z.ZodString>;
328
323
  }, "strip", z.ZodTypeAny, {
329
324
  status: "running" | "exited";
330
325
  terminalId: string;
331
- provider: string;
332
326
  cwd: string;
333
- projectName: string;
327
+ shell?: string | undefined;
334
328
  }, {
335
329
  status: "running" | "exited";
336
330
  terminalId: string;
337
- provider: string;
338
331
  cwd: string;
339
- projectName: string;
332
+ shell?: string | undefined;
340
333
  }>, "many">;
341
334
  }, "strip", z.ZodTypeAny, {
342
335
  terminals: {
343
336
  status: "running" | "exited";
344
337
  terminalId: string;
345
- provider: string;
346
338
  cwd: string;
347
- projectName: string;
339
+ shell?: string | undefined;
348
340
  }[];
349
341
  }, {
350
342
  terminals: {
351
343
  status: "running" | "exited";
352
344
  terminalId: string;
353
- provider: string;
354
345
  cwd: string;
355
- projectName: string;
346
+ shell?: string | undefined;
356
347
  }[];
357
348
  }>;
358
349
  export declare const terminalSpawnedPayloadSchema: z.ZodObject<{
359
350
  terminalId: z.ZodString;
360
351
  cwd: z.ZodString;
361
- projectName: z.ZodString;
362
- provider: z.ZodOptional<z.ZodString>;
352
+ shell: z.ZodOptional<z.ZodString>;
363
353
  }, "strip", z.ZodTypeAny, {
364
354
  terminalId: string;
365
355
  cwd: string;
366
- projectName: string;
367
- provider?: string | undefined;
356
+ shell?: string | undefined;
368
357
  }, {
369
358
  terminalId: string;
370
359
  cwd: string;
371
- projectName: string;
372
- provider?: string | undefined;
360
+ shell?: string | undefined;
373
361
  }>;
374
362
  export declare const terminalKillPayloadSchema: z.ZodObject<{
375
363
  terminalId: z.ZodString;
@@ -856,7 +844,7 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
856
844
  title: string;
857
845
  argsMode: "none" | "optional" | "required" | "raw";
858
846
  executionKind: "prompt" | "native" | "local_ui";
859
- provider?: "custom" | "claude" | "codex" | undefined;
847
+ provider?: "custom" | "codex" | "claude" | undefined;
860
848
  description?: string | undefined;
861
849
  category?: string | undefined;
862
850
  requiresIdle?: boolean | undefined;
@@ -866,8 +854,8 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
866
854
  name: string;
867
855
  id: string;
868
856
  title: string;
869
- provider?: "custom" | "claude" | "codex" | undefined;
870
857
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
858
+ provider?: "custom" | "codex" | "claude" | undefined;
871
859
  description?: string | undefined;
872
860
  category?: string | undefined;
873
861
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -931,7 +919,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
931
919
  title: string;
932
920
  argsMode: "none" | "optional" | "required" | "raw";
933
921
  executionKind: "prompt" | "native" | "local_ui";
934
- provider?: "custom" | "claude" | "codex" | undefined;
922
+ provider?: "custom" | "codex" | "claude" | undefined;
935
923
  description?: string | undefined;
936
924
  category?: string | undefined;
937
925
  requiresIdle?: boolean | undefined;
@@ -941,8 +929,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
941
929
  name: string;
942
930
  id: string;
943
931
  title: string;
944
- provider?: "custom" | "claude" | "codex" | undefined;
945
932
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
933
+ provider?: "custom" | "codex" | "claude" | undefined;
946
934
  description?: string | undefined;
947
935
  category?: string | undefined;
948
936
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -968,7 +956,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
968
956
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
969
957
  }, "strip", z.ZodTypeAny, {
970
958
  enabled: boolean;
971
- id: "custom" | "claude" | "codex";
959
+ id: "custom" | "codex" | "claude";
972
960
  label: string;
973
961
  reason?: string | undefined;
974
962
  supportsImages?: boolean | undefined;
@@ -989,7 +977,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
989
977
  title: string;
990
978
  argsMode: "none" | "optional" | "required" | "raw";
991
979
  executionKind: "prompt" | "native" | "local_ui";
992
- provider?: "custom" | "claude" | "codex" | undefined;
980
+ provider?: "custom" | "codex" | "claude" | undefined;
993
981
  description?: string | undefined;
994
982
  category?: string | undefined;
995
983
  requiresIdle?: boolean | undefined;
@@ -1005,7 +993,7 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
1005
993
  features?: Record<string, boolean> | undefined;
1006
994
  }, {
1007
995
  enabled: boolean;
1008
- id: "custom" | "claude" | "codex";
996
+ id: "custom" | "codex" | "claude";
1009
997
  label: string;
1010
998
  reason?: string | undefined;
1011
999
  supportsImages?: boolean | undefined;
@@ -1023,8 +1011,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
1023
1011
  name: string;
1024
1012
  id: string;
1025
1013
  title: string;
1026
- provider?: "custom" | "claude" | "codex" | undefined;
1027
1014
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1015
+ provider?: "custom" | "codex" | "claude" | undefined;
1028
1016
  description?: string | undefined;
1029
1017
  category?: string | undefined;
1030
1018
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1087,7 +1075,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1087
1075
  title: string;
1088
1076
  argsMode: "none" | "optional" | "required" | "raw";
1089
1077
  executionKind: "prompt" | "native" | "local_ui";
1090
- provider?: "custom" | "claude" | "codex" | undefined;
1078
+ provider?: "custom" | "codex" | "claude" | undefined;
1091
1079
  description?: string | undefined;
1092
1080
  category?: string | undefined;
1093
1081
  requiresIdle?: boolean | undefined;
@@ -1097,8 +1085,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1097
1085
  name: string;
1098
1086
  id: string;
1099
1087
  title: string;
1100
- provider?: "custom" | "claude" | "codex" | undefined;
1101
1088
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1089
+ provider?: "custom" | "codex" | "claude" | undefined;
1102
1090
  description?: string | undefined;
1103
1091
  category?: string | undefined;
1104
1092
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1124,7 +1112,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1124
1112
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1125
1113
  }, "strip", z.ZodTypeAny, {
1126
1114
  enabled: boolean;
1127
- id: "custom" | "claude" | "codex";
1115
+ id: "custom" | "codex" | "claude";
1128
1116
  label: string;
1129
1117
  reason?: string | undefined;
1130
1118
  supportsImages?: boolean | undefined;
@@ -1145,7 +1133,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1145
1133
  title: string;
1146
1134
  argsMode: "none" | "optional" | "required" | "raw";
1147
1135
  executionKind: "prompt" | "native" | "local_ui";
1148
- provider?: "custom" | "claude" | "codex" | undefined;
1136
+ provider?: "custom" | "codex" | "claude" | undefined;
1149
1137
  description?: string | undefined;
1150
1138
  category?: string | undefined;
1151
1139
  requiresIdle?: boolean | undefined;
@@ -1161,7 +1149,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1161
1149
  features?: Record<string, boolean> | undefined;
1162
1150
  }, {
1163
1151
  enabled: boolean;
1164
- id: "custom" | "claude" | "codex";
1152
+ id: "custom" | "codex" | "claude";
1165
1153
  label: string;
1166
1154
  reason?: string | undefined;
1167
1155
  supportsImages?: boolean | undefined;
@@ -1179,8 +1167,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1179
1167
  name: string;
1180
1168
  id: string;
1181
1169
  title: string;
1182
- provider?: "custom" | "claude" | "codex" | undefined;
1183
1170
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1171
+ provider?: "custom" | "codex" | "claude" | undefined;
1184
1172
  description?: string | undefined;
1185
1173
  category?: string | undefined;
1186
1174
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1215,13 +1203,13 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1215
1203
  supportsSessionList: boolean;
1216
1204
  supportsSessionLoad: boolean;
1217
1205
  supportsAudio: boolean;
1218
- provider?: "custom" | "claude" | "codex" | undefined;
1219
1206
  protocolVersion?: number | undefined;
1220
1207
  machineId?: string | undefined;
1221
1208
  error?: string | undefined;
1209
+ provider?: "custom" | "codex" | "claude" | undefined;
1222
1210
  providers?: {
1223
1211
  enabled: boolean;
1224
- id: "custom" | "claude" | "codex";
1212
+ id: "custom" | "codex" | "claude";
1225
1213
  label: string;
1226
1214
  reason?: string | undefined;
1227
1215
  supportsImages?: boolean | undefined;
@@ -1242,7 +1230,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1242
1230
  title: string;
1243
1231
  argsMode: "none" | "optional" | "required" | "raw";
1244
1232
  executionKind: "prompt" | "native" | "local_ui";
1245
- provider?: "custom" | "claude" | "codex" | undefined;
1233
+ provider?: "custom" | "codex" | "claude" | undefined;
1246
1234
  description?: string | undefined;
1247
1235
  category?: string | undefined;
1248
1236
  requiresIdle?: boolean | undefined;
@@ -1259,17 +1247,17 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1259
1247
  }[] | undefined;
1260
1248
  }, {
1261
1249
  enabled: boolean;
1262
- provider?: "custom" | "claude" | "codex" | undefined;
1263
1250
  protocolVersion?: number | undefined;
1264
1251
  machineId?: string | undefined;
1265
1252
  error?: string | undefined;
1253
+ provider?: "custom" | "codex" | "claude" | undefined;
1266
1254
  supportsImages?: boolean | undefined;
1267
1255
  supportsPermission?: boolean | undefined;
1268
1256
  supportsPlan?: boolean | undefined;
1269
1257
  supportsCancel?: boolean | undefined;
1270
1258
  providers?: {
1271
1259
  enabled: boolean;
1272
- id: "custom" | "claude" | "codex";
1260
+ id: "custom" | "codex" | "claude";
1273
1261
  label: string;
1274
1262
  reason?: string | undefined;
1275
1263
  supportsImages?: boolean | undefined;
@@ -1287,8 +1275,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1287
1275
  name: string;
1288
1276
  id: string;
1289
1277
  title: string;
1290
- provider?: "custom" | "claude" | "codex" | undefined;
1291
1278
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1279
+ provider?: "custom" | "codex" | "claude" | undefined;
1292
1280
  description?: string | undefined;
1293
1281
  category?: string | undefined;
1294
1282
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1315,12 +1303,12 @@ export declare const agentSessionNewPayloadSchema: z.ZodObject<{
1315
1303
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
1316
1304
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1317
1305
  }, "strip", z.ZodTypeAny, {
1318
- provider?: "custom" | "claude" | "codex" | undefined;
1319
1306
  cwd?: string | undefined;
1307
+ provider?: "custom" | "codex" | "claude" | undefined;
1320
1308
  mcpServers?: Record<string, unknown> | undefined;
1321
1309
  }, {
1322
- provider?: "custom" | "claude" | "codex" | undefined;
1323
1310
  cwd?: string | undefined;
1311
+ provider?: "custom" | "codex" | "claude" | undefined;
1324
1312
  mcpServers?: Record<string, unknown> | undefined;
1325
1313
  }>;
1326
1314
  export declare const agentSessionLoadPayloadSchema: z.ZodObject<{
@@ -1608,7 +1596,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1608
1596
  title: string;
1609
1597
  argsMode: "none" | "optional" | "required" | "raw";
1610
1598
  executionKind: "prompt" | "native" | "local_ui";
1611
- provider?: "custom" | "claude" | "codex" | undefined;
1599
+ provider?: "custom" | "codex" | "claude" | undefined;
1612
1600
  description?: string | undefined;
1613
1601
  category?: string | undefined;
1614
1602
  requiresIdle?: boolean | undefined;
@@ -1618,8 +1606,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1618
1606
  name: string;
1619
1607
  id: string;
1620
1608
  title: string;
1621
- provider?: "custom" | "claude" | "codex" | undefined;
1622
1609
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1610
+ provider?: "custom" | "codex" | "claude" | undefined;
1623
1611
  description?: string | undefined;
1624
1612
  category?: string | undefined;
1625
1613
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1645,7 +1633,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1645
1633
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1646
1634
  }, "strip", z.ZodTypeAny, {
1647
1635
  enabled: boolean;
1648
- id: "custom" | "claude" | "codex";
1636
+ id: "custom" | "codex" | "claude";
1649
1637
  label: string;
1650
1638
  reason?: string | undefined;
1651
1639
  supportsImages?: boolean | undefined;
@@ -1666,7 +1654,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1666
1654
  title: string;
1667
1655
  argsMode: "none" | "optional" | "required" | "raw";
1668
1656
  executionKind: "prompt" | "native" | "local_ui";
1669
- provider?: "custom" | "claude" | "codex" | undefined;
1657
+ provider?: "custom" | "codex" | "claude" | undefined;
1670
1658
  description?: string | undefined;
1671
1659
  category?: string | undefined;
1672
1660
  requiresIdle?: boolean | undefined;
@@ -1682,7 +1670,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1682
1670
  features?: Record<string, boolean> | undefined;
1683
1671
  }, {
1684
1672
  enabled: boolean;
1685
- id: "custom" | "claude" | "codex";
1673
+ id: "custom" | "codex" | "claude";
1686
1674
  label: string;
1687
1675
  reason?: string | undefined;
1688
1676
  supportsImages?: boolean | undefined;
@@ -1700,8 +1688,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1700
1688
  name: string;
1701
1689
  id: string;
1702
1690
  title: string;
1703
- provider?: "custom" | "claude" | "codex" | undefined;
1704
1691
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1692
+ provider?: "custom" | "codex" | "claude" | undefined;
1705
1693
  description?: string | undefined;
1706
1694
  category?: string | undefined;
1707
1695
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1736,13 +1724,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1736
1724
  supportsSessionList: boolean;
1737
1725
  supportsSessionLoad: boolean;
1738
1726
  supportsAudio: boolean;
1739
- provider?: "custom" | "claude" | "codex" | undefined;
1740
1727
  protocolVersion?: number | undefined;
1741
1728
  machineId?: string | undefined;
1742
1729
  error?: string | undefined;
1730
+ provider?: "custom" | "codex" | "claude" | undefined;
1743
1731
  providers?: {
1744
1732
  enabled: boolean;
1745
- id: "custom" | "claude" | "codex";
1733
+ id: "custom" | "codex" | "claude";
1746
1734
  label: string;
1747
1735
  reason?: string | undefined;
1748
1736
  supportsImages?: boolean | undefined;
@@ -1763,7 +1751,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1763
1751
  title: string;
1764
1752
  argsMode: "none" | "optional" | "required" | "raw";
1765
1753
  executionKind: "prompt" | "native" | "local_ui";
1766
- provider?: "custom" | "claude" | "codex" | undefined;
1754
+ provider?: "custom" | "codex" | "claude" | undefined;
1767
1755
  description?: string | undefined;
1768
1756
  category?: string | undefined;
1769
1757
  requiresIdle?: boolean | undefined;
@@ -1780,17 +1768,17 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1780
1768
  }[] | undefined;
1781
1769
  }, {
1782
1770
  enabled: boolean;
1783
- provider?: "custom" | "claude" | "codex" | undefined;
1784
1771
  protocolVersion?: number | undefined;
1785
1772
  machineId?: string | undefined;
1786
1773
  error?: string | undefined;
1774
+ provider?: "custom" | "codex" | "claude" | undefined;
1787
1775
  supportsImages?: boolean | undefined;
1788
1776
  supportsPermission?: boolean | undefined;
1789
1777
  supportsPlan?: boolean | undefined;
1790
1778
  supportsCancel?: boolean | undefined;
1791
1779
  providers?: {
1792
1780
  enabled: boolean;
1793
- id: "custom" | "claude" | "codex";
1781
+ id: "custom" | "codex" | "claude";
1794
1782
  label: string;
1795
1783
  reason?: string | undefined;
1796
1784
  supportsImages?: boolean | undefined;
@@ -1808,8 +1796,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1808
1796
  name: string;
1809
1797
  id: string;
1810
1798
  title: string;
1811
- provider?: "custom" | "claude" | "codex" | undefined;
1812
1799
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1800
+ provider?: "custom" | "codex" | "claude" | undefined;
1813
1801
  description?: string | undefined;
1814
1802
  category?: string | undefined;
1815
1803
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -1941,7 +1929,6 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1941
1929
  context?: string | undefined;
1942
1930
  }[];
1943
1931
  agentSessionId?: string | undefined;
1944
- error?: string | undefined;
1945
1932
  capabilities?: {
1946
1933
  enabled: boolean;
1947
1934
  supportsImages: boolean;
@@ -1951,13 +1938,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1951
1938
  supportsSessionList: boolean;
1952
1939
  supportsSessionLoad: boolean;
1953
1940
  supportsAudio: boolean;
1954
- provider?: "custom" | "claude" | "codex" | undefined;
1955
1941
  protocolVersion?: number | undefined;
1956
1942
  machineId?: string | undefined;
1957
1943
  error?: string | undefined;
1944
+ provider?: "custom" | "codex" | "claude" | undefined;
1958
1945
  providers?: {
1959
1946
  enabled: boolean;
1960
- id: "custom" | "claude" | "codex";
1947
+ id: "custom" | "codex" | "claude";
1961
1948
  label: string;
1962
1949
  reason?: string | undefined;
1963
1950
  supportsImages?: boolean | undefined;
@@ -1978,7 +1965,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1978
1965
  title: string;
1979
1966
  argsMode: "none" | "optional" | "required" | "raw";
1980
1967
  executionKind: "prompt" | "native" | "local_ui";
1981
- provider?: "custom" | "claude" | "codex" | undefined;
1968
+ provider?: "custom" | "codex" | "claude" | undefined;
1982
1969
  description?: string | undefined;
1983
1970
  category?: string | undefined;
1984
1971
  requiresIdle?: boolean | undefined;
@@ -1994,23 +1981,23 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1994
1981
  features?: Record<string, boolean> | undefined;
1995
1982
  }[] | undefined;
1996
1983
  } | undefined;
1984
+ error?: string | undefined;
1997
1985
  }, {
1998
1986
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
1999
1987
  agentSessionId?: string | undefined;
2000
- error?: string | undefined;
2001
1988
  capabilities?: {
2002
1989
  enabled: boolean;
2003
- provider?: "custom" | "claude" | "codex" | undefined;
2004
1990
  protocolVersion?: number | undefined;
2005
1991
  machineId?: string | undefined;
2006
1992
  error?: string | undefined;
1993
+ provider?: "custom" | "codex" | "claude" | undefined;
2007
1994
  supportsImages?: boolean | undefined;
2008
1995
  supportsPermission?: boolean | undefined;
2009
1996
  supportsPlan?: boolean | undefined;
2010
1997
  supportsCancel?: boolean | undefined;
2011
1998
  providers?: {
2012
1999
  enabled: boolean;
2013
- id: "custom" | "claude" | "codex";
2000
+ id: "custom" | "codex" | "claude";
2014
2001
  label: string;
2015
2002
  reason?: string | undefined;
2016
2003
  supportsImages?: boolean | undefined;
@@ -2028,8 +2015,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
2028
2015
  name: string;
2029
2016
  id: string;
2030
2017
  title: string;
2031
- provider?: "custom" | "claude" | "codex" | undefined;
2032
2018
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
2019
+ provider?: "custom" | "codex" | "claude" | undefined;
2033
2020
  description?: string | undefined;
2034
2021
  category?: string | undefined;
2035
2022
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -2050,6 +2037,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
2050
2037
  supportsSessionLoad?: boolean | undefined;
2051
2038
  supportsAudio?: boolean | undefined;
2052
2039
  } | undefined;
2040
+ error?: string | undefined;
2053
2041
  messages?: {
2054
2042
  role: "user" | "assistant" | "system";
2055
2043
  content: string;
@@ -2953,8 +2941,8 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
2953
2941
  createdAt: z.ZodNumber;
2954
2942
  }, "strip", z.ZodTypeAny, {
2955
2943
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
2956
- provider: "custom" | "claude" | "codex";
2957
2944
  cwd: string;
2945
+ provider: "custom" | "codex" | "claude";
2958
2946
  id: string;
2959
2947
  createdAt: number;
2960
2948
  archived: boolean;
@@ -2973,7 +2961,7 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
2973
2961
  lastActivityAt: number;
2974
2962
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2975
2963
  agentSessionId?: string | undefined;
2976
- provider?: "custom" | "claude" | "codex" | undefined;
2964
+ provider?: "custom" | "codex" | "claude" | undefined;
2977
2965
  title?: string | undefined;
2978
2966
  model?: string | undefined;
2979
2967
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -3029,7 +3017,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3029
3017
  title: string;
3030
3018
  argsMode: "none" | "optional" | "required" | "raw";
3031
3019
  executionKind: "prompt" | "native" | "local_ui";
3032
- provider?: "custom" | "claude" | "codex" | undefined;
3020
+ provider?: "custom" | "codex" | "claude" | undefined;
3033
3021
  description?: string | undefined;
3034
3022
  category?: string | undefined;
3035
3023
  requiresIdle?: boolean | undefined;
@@ -3039,8 +3027,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3039
3027
  name: string;
3040
3028
  id: string;
3041
3029
  title: string;
3042
- provider?: "custom" | "claude" | "codex" | undefined;
3043
3030
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
3031
+ provider?: "custom" | "codex" | "claude" | undefined;
3044
3032
  description?: string | undefined;
3045
3033
  category?: string | undefined;
3046
3034
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -3066,7 +3054,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3066
3054
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
3067
3055
  }, "strip", z.ZodTypeAny, {
3068
3056
  enabled: boolean;
3069
- id: "custom" | "claude" | "codex";
3057
+ id: "custom" | "codex" | "claude";
3070
3058
  label: string;
3071
3059
  reason?: string | undefined;
3072
3060
  supportsImages?: boolean | undefined;
@@ -3087,7 +3075,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3087
3075
  title: string;
3088
3076
  argsMode: "none" | "optional" | "required" | "raw";
3089
3077
  executionKind: "prompt" | "native" | "local_ui";
3090
- provider?: "custom" | "claude" | "codex" | undefined;
3078
+ provider?: "custom" | "codex" | "claude" | undefined;
3091
3079
  description?: string | undefined;
3092
3080
  category?: string | undefined;
3093
3081
  requiresIdle?: boolean | undefined;
@@ -3103,7 +3091,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3103
3091
  features?: Record<string, boolean> | undefined;
3104
3092
  }, {
3105
3093
  enabled: boolean;
3106
- id: "custom" | "claude" | "codex";
3094
+ id: "custom" | "codex" | "claude";
3107
3095
  label: string;
3108
3096
  reason?: string | undefined;
3109
3097
  supportsImages?: boolean | undefined;
@@ -3121,8 +3109,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3121
3109
  name: string;
3122
3110
  id: string;
3123
3111
  title: string;
3124
- provider?: "custom" | "claude" | "codex" | undefined;
3125
3112
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
3113
+ provider?: "custom" | "codex" | "claude" | undefined;
3126
3114
  description?: string | undefined;
3127
3115
  category?: string | undefined;
3128
3116
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -3160,13 +3148,13 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3160
3148
  supportsSessionLoad: boolean;
3161
3149
  supportsAudio: boolean;
3162
3150
  workspaceProtocolVersion: number;
3163
- provider?: "custom" | "claude" | "codex" | undefined;
3164
3151
  protocolVersion?: number | undefined;
3165
3152
  machineId?: string | undefined;
3166
3153
  error?: string | undefined;
3154
+ provider?: "custom" | "codex" | "claude" | undefined;
3167
3155
  providers?: {
3168
3156
  enabled: boolean;
3169
- id: "custom" | "claude" | "codex";
3157
+ id: "custom" | "codex" | "claude";
3170
3158
  label: string;
3171
3159
  reason?: string | undefined;
3172
3160
  supportsImages?: boolean | undefined;
@@ -3187,7 +3175,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3187
3175
  title: string;
3188
3176
  argsMode: "none" | "optional" | "required" | "raw";
3189
3177
  executionKind: "prompt" | "native" | "local_ui";
3190
- provider?: "custom" | "claude" | "codex" | undefined;
3178
+ provider?: "custom" | "codex" | "claude" | undefined;
3191
3179
  description?: string | undefined;
3192
3180
  category?: string | undefined;
3193
3181
  requiresIdle?: boolean | undefined;
@@ -3204,17 +3192,17 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3204
3192
  }[] | undefined;
3205
3193
  }, {
3206
3194
  enabled: boolean;
3207
- provider?: "custom" | "claude" | "codex" | undefined;
3208
3195
  protocolVersion?: number | undefined;
3209
3196
  machineId?: string | undefined;
3210
3197
  error?: string | undefined;
3198
+ provider?: "custom" | "codex" | "claude" | undefined;
3211
3199
  supportsImages?: boolean | undefined;
3212
3200
  supportsPermission?: boolean | undefined;
3213
3201
  supportsPlan?: boolean | undefined;
3214
3202
  supportsCancel?: boolean | undefined;
3215
3203
  providers?: {
3216
3204
  enabled: boolean;
3217
- id: "custom" | "claude" | "codex";
3205
+ id: "custom" | "codex" | "claude";
3218
3206
  label: string;
3219
3207
  reason?: string | undefined;
3220
3208
  supportsImages?: boolean | undefined;
@@ -3232,8 +3220,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3232
3220
  name: string;
3233
3221
  id: string;
3234
3222
  title: string;
3235
- provider?: "custom" | "claude" | "codex" | undefined;
3236
3223
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
3224
+ provider?: "custom" | "codex" | "claude" | undefined;
3237
3225
  description?: string | undefined;
3238
3226
  category?: string | undefined;
3239
3227
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -3268,8 +3256,8 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3268
3256
  }, "strip", z.ZodTypeAny, {
3269
3257
  conversationId?: string | undefined;
3270
3258
  agentSessionId?: string | undefined;
3271
- provider?: "custom" | "claude" | "codex" | undefined;
3272
3259
  cwd?: string | undefined;
3260
+ provider?: "custom" | "codex" | "claude" | undefined;
3273
3261
  title?: string | undefined;
3274
3262
  model?: string | undefined;
3275
3263
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -3278,8 +3266,8 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3278
3266
  }, {
3279
3267
  conversationId?: string | undefined;
3280
3268
  agentSessionId?: string | undefined;
3281
- provider?: "custom" | "claude" | "codex" | undefined;
3282
3269
  cwd?: string | undefined;
3270
+ provider?: "custom" | "codex" | "claude" | undefined;
3283
3271
  title?: string | undefined;
3284
3272
  model?: string | undefined;
3285
3273
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -3304,8 +3292,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3304
3292
  createdAt: z.ZodNumber;
3305
3293
  }, "strip", z.ZodTypeAny, {
3306
3294
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
3307
- provider: "custom" | "claude" | "codex";
3308
3295
  cwd: string;
3296
+ provider: "custom" | "codex" | "claude";
3309
3297
  id: string;
3310
3298
  createdAt: number;
3311
3299
  archived: boolean;
@@ -3324,7 +3312,7 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3324
3312
  lastActivityAt: number;
3325
3313
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3326
3314
  agentSessionId?: string | undefined;
3327
- provider?: "custom" | "claude" | "codex" | undefined;
3315
+ provider?: "custom" | "codex" | "claude" | undefined;
3328
3316
  title?: string | undefined;
3329
3317
  model?: string | undefined;
3330
3318
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -3863,8 +3851,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3863
3851
  }, "strip", z.ZodTypeAny, {
3864
3852
  conversation: {
3865
3853
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
3866
- provider: "custom" | "claude" | "codex";
3867
3854
  cwd: string;
3855
+ provider: "custom" | "codex" | "claude";
3868
3856
  id: string;
3869
3857
  createdAt: number;
3870
3858
  archived: boolean;
@@ -3986,7 +3974,7 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3986
3974
  lastActivityAt: number;
3987
3975
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3988
3976
  agentSessionId?: string | undefined;
3989
- provider?: "custom" | "claude" | "codex" | undefined;
3977
+ provider?: "custom" | "codex" | "claude" | undefined;
3990
3978
  title?: string | undefined;
3991
3979
  model?: string | undefined;
3992
3980
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -4122,8 +4110,8 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4122
4110
  createdAt: z.ZodNumber;
4123
4111
  }, "strip", z.ZodTypeAny, {
4124
4112
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4125
- provider: "custom" | "claude" | "codex";
4126
4113
  cwd: string;
4114
+ provider: "custom" | "codex" | "claude";
4127
4115
  id: string;
4128
4116
  createdAt: number;
4129
4117
  archived: boolean;
@@ -4142,7 +4130,7 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4142
4130
  lastActivityAt: number;
4143
4131
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4144
4132
  agentSessionId?: string | undefined;
4145
- provider?: "custom" | "claude" | "codex" | undefined;
4133
+ provider?: "custom" | "codex" | "claude" | undefined;
4146
4134
  title?: string | undefined;
4147
4135
  model?: string | undefined;
4148
4136
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -4154,8 +4142,8 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4154
4142
  }, "strip", z.ZodTypeAny, {
4155
4143
  conversations: {
4156
4144
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4157
- provider: "custom" | "claude" | "codex";
4158
4145
  cwd: string;
4146
+ provider: "custom" | "codex" | "claude";
4159
4147
  id: string;
4160
4148
  createdAt: number;
4161
4149
  archived: boolean;
@@ -4176,7 +4164,7 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4176
4164
  lastActivityAt: number;
4177
4165
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4178
4166
  agentSessionId?: string | undefined;
4179
- provider?: "custom" | "claude" | "codex" | undefined;
4167
+ provider?: "custom" | "codex" | "claude" | undefined;
4180
4168
  title?: string | undefined;
4181
4169
  model?: string | undefined;
4182
4170
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -4316,8 +4304,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4316
4304
  createdAt: z.ZodNumber;
4317
4305
  }, "strip", z.ZodTypeAny, {
4318
4306
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4319
- provider: "custom" | "claude" | "codex";
4320
4307
  cwd: string;
4308
+ provider: "custom" | "codex" | "claude";
4321
4309
  id: string;
4322
4310
  createdAt: number;
4323
4311
  archived: boolean;
@@ -4336,7 +4324,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4336
4324
  lastActivityAt: number;
4337
4325
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4338
4326
  agentSessionId?: string | undefined;
4339
- provider?: "custom" | "claude" | "codex" | undefined;
4327
+ provider?: "custom" | "codex" | "claude" | undefined;
4340
4328
  title?: string | undefined;
4341
4329
  model?: string | undefined;
4342
4330
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -4877,8 +4865,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4877
4865
  }, "strip", z.ZodTypeAny, {
4878
4866
  conversations: {
4879
4867
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4880
- provider: "custom" | "claude" | "codex";
4881
4868
  cwd: string;
4869
+ provider: "custom" | "codex" | "claude";
4882
4870
  id: string;
4883
4871
  createdAt: number;
4884
4872
  archived: boolean;
@@ -5003,7 +4991,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
5003
4991
  lastActivityAt: number;
5004
4992
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5005
4993
  agentSessionId?: string | undefined;
5006
- provider?: "custom" | "claude" | "codex" | undefined;
4994
+ provider?: "custom" | "codex" | "claude" | undefined;
5007
4995
  title?: string | undefined;
5008
4996
  model?: string | undefined;
5009
4997
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -5134,8 +5122,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5134
5122
  createdAt: z.ZodNumber;
5135
5123
  }, "strip", z.ZodTypeAny, {
5136
5124
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
5137
- provider: "custom" | "claude" | "codex";
5138
5125
  cwd: string;
5126
+ provider: "custom" | "codex" | "claude";
5139
5127
  id: string;
5140
5128
  createdAt: number;
5141
5129
  archived: boolean;
@@ -5154,7 +5142,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5154
5142
  lastActivityAt: number;
5155
5143
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5156
5144
  agentSessionId?: string | undefined;
5157
- provider?: "custom" | "claude" | "codex" | undefined;
5145
+ provider?: "custom" | "codex" | "claude" | undefined;
5158
5146
  title?: string | undefined;
5159
5147
  model?: string | undefined;
5160
5148
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -6209,8 +6197,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6209
6197
  conversationId: string;
6210
6198
  conversation?: {
6211
6199
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
6212
- provider: "custom" | "claude" | "codex";
6213
6200
  cwd: string;
6201
+ provider: "custom" | "codex" | "claude";
6214
6202
  id: string;
6215
6203
  createdAt: number;
6216
6204
  archived: boolean;
@@ -6430,7 +6418,7 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6430
6418
  lastActivityAt: number;
6431
6419
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6432
6420
  agentSessionId?: string | undefined;
6433
- provider?: "custom" | "claude" | "codex" | undefined;
6421
+ provider?: "custom" | "codex" | "claude" | undefined;
6434
6422
  title?: string | undefined;
6435
6423
  model?: string | undefined;
6436
6424
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -7411,36 +7399,106 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7411
7399
  } | undefined;
7412
7400
  }>;
7413
7401
  export declare const protocolMessageSchemas: {
7402
+ readonly "device.connect": z.ZodObject<{
7403
+ role: z.ZodEnum<["host", "client"]>;
7404
+ clientName: z.ZodString;
7405
+ protocolVersion: z.ZodOptional<z.ZodNumber>;
7406
+ machineId: z.ZodOptional<z.ZodString>;
7407
+ hostname: z.ZodOptional<z.ZodString>;
7408
+ platform: z.ZodOptional<z.ZodString>;
7409
+ cwd: z.ZodOptional<z.ZodString>;
7410
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7411
+ }, "strip", z.ZodTypeAny, {
7412
+ role: "host" | "client";
7413
+ clientName: string;
7414
+ protocolVersion?: number | undefined;
7415
+ machineId?: string | undefined;
7416
+ hostname?: string | undefined;
7417
+ platform?: string | undefined;
7418
+ cwd?: string | undefined;
7419
+ capabilities?: string[] | undefined;
7420
+ }, {
7421
+ role: "host" | "client";
7422
+ clientName: string;
7423
+ protocolVersion?: number | undefined;
7424
+ machineId?: string | undefined;
7425
+ hostname?: string | undefined;
7426
+ platform?: string | undefined;
7427
+ cwd?: string | undefined;
7428
+ capabilities?: string[] | undefined;
7429
+ }>;
7430
+ readonly "device.ack": z.ZodObject<{
7431
+ seq: z.ZodNumber;
7432
+ }, "strip", z.ZodTypeAny, {
7433
+ seq: number;
7434
+ }, {
7435
+ seq: number;
7436
+ }>;
7437
+ readonly "device.resume": z.ZodObject<{
7438
+ lastAckedSeq: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7439
+ lastAckedSeqByTerminal: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>>;
7440
+ machineId: z.ZodOptional<z.ZodString>;
7441
+ }, "strip", z.ZodTypeAny, {
7442
+ lastAckedSeq: number;
7443
+ lastAckedSeqByTerminal: Record<string, number>;
7444
+ machineId?: string | undefined;
7445
+ }, {
7446
+ machineId?: string | undefined;
7447
+ lastAckedSeq?: number | undefined;
7448
+ lastAckedSeqByTerminal?: Record<string, number> | undefined;
7449
+ }>;
7450
+ readonly "device.heartbeat": z.ZodObject<{
7451
+ ts: z.ZodNumber;
7452
+ }, "strip", z.ZodTypeAny, {
7453
+ ts: number;
7454
+ }, {
7455
+ ts: number;
7456
+ }>;
7457
+ readonly "device.error": z.ZodObject<{
7458
+ code: z.ZodString;
7459
+ message: z.ZodString;
7460
+ }, "strip", z.ZodTypeAny, {
7461
+ code: string;
7462
+ message: string;
7463
+ }, {
7464
+ code: string;
7465
+ message: string;
7466
+ }>;
7467
+ readonly "device.host_disconnected": z.ZodObject<{
7468
+ reason: z.ZodOptional<z.ZodString>;
7469
+ }, "strip", z.ZodTypeAny, {
7470
+ reason?: string | undefined;
7471
+ }, {
7472
+ reason?: string | undefined;
7473
+ }>;
7474
+ readonly "device.host_reconnected": z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
7414
7475
  readonly "session.connect": z.ZodObject<{
7415
7476
  role: z.ZodEnum<["host", "client"]>;
7416
7477
  clientName: z.ZodString;
7417
- provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
7418
7478
  protocolVersion: z.ZodOptional<z.ZodNumber>;
7419
7479
  machineId: z.ZodOptional<z.ZodString>;
7420
7480
  hostname: z.ZodOptional<z.ZodString>;
7421
7481
  platform: z.ZodOptional<z.ZodString>;
7422
7482
  cwd: z.ZodOptional<z.ZodString>;
7423
- projectName: z.ZodOptional<z.ZodString>;
7483
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7424
7484
  }, "strip", z.ZodTypeAny, {
7425
7485
  role: "host" | "client";
7426
7486
  clientName: string;
7427
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
7428
7487
  protocolVersion?: number | undefined;
7429
7488
  machineId?: string | undefined;
7430
7489
  hostname?: string | undefined;
7431
7490
  platform?: string | undefined;
7432
7491
  cwd?: string | undefined;
7433
- projectName?: string | undefined;
7492
+ capabilities?: string[] | undefined;
7434
7493
  }, {
7435
7494
  role: "host" | "client";
7436
7495
  clientName: string;
7437
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
7438
7496
  protocolVersion?: number | undefined;
7439
7497
  machineId?: string | undefined;
7440
7498
  hostname?: string | undefined;
7441
7499
  platform?: string | undefined;
7442
7500
  cwd?: string | undefined;
7443
- projectName?: string | undefined;
7501
+ capabilities?: string[] | undefined;
7444
7502
  }>;
7445
7503
  readonly "session.ack": z.ZodObject<{
7446
7504
  seq: z.ZodNumber;
@@ -7527,14 +7585,14 @@ export declare const protocolMessageSchemas: {
7527
7585
  }>;
7528
7586
  readonly "pairing.created": z.ZodObject<{
7529
7587
  pairingCode: z.ZodString;
7530
- sessionId: z.ZodString;
7588
+ hostDeviceId: z.ZodString;
7531
7589
  expiresAt: z.ZodString;
7532
7590
  }, "strip", z.ZodTypeAny, {
7533
- sessionId: string;
7591
+ hostDeviceId: string;
7534
7592
  pairingCode: string;
7535
7593
  expiresAt: string;
7536
7594
  }, {
7537
- sessionId: string;
7595
+ hostDeviceId: string;
7538
7596
  pairingCode: string;
7539
7597
  expiresAt: string;
7540
7598
  }>;
@@ -7546,11 +7604,11 @@ export declare const protocolMessageSchemas: {
7546
7604
  pairingCode: string;
7547
7605
  }>;
7548
7606
  readonly "pairing.claimed": z.ZodObject<{
7549
- sessionId: z.ZodString;
7607
+ hostDeviceId: z.ZodString;
7550
7608
  }, "strip", z.ZodTypeAny, {
7551
- sessionId: string;
7609
+ hostDeviceId: string;
7552
7610
  }, {
7553
- sessionId: string;
7611
+ hostDeviceId: string;
7554
7612
  }>;
7555
7613
  readonly "control.claim": z.ZodObject<{
7556
7614
  deviceId: z.ZodString;
@@ -7570,11 +7628,11 @@ export declare const protocolMessageSchemas: {
7570
7628
  deviceId: z.ZodString;
7571
7629
  reason: z.ZodString;
7572
7630
  }, "strip", z.ZodTypeAny, {
7573
- deviceId: string;
7574
7631
  reason: string;
7575
- }, {
7576
7632
  deviceId: string;
7633
+ }, {
7577
7634
  reason: string;
7635
+ deviceId: string;
7578
7636
  }>;
7579
7637
  readonly "control.release": z.ZodObject<{
7580
7638
  deviceId: z.ZodString;
@@ -7678,66 +7736,55 @@ export declare const protocolMessageSchemas: {
7678
7736
  filename: string;
7679
7737
  }>;
7680
7738
  readonly "terminal.spawn": z.ZodObject<{
7681
- cwd: z.ZodString;
7682
- provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "gemini", "copilot", "custom"]>>;
7739
+ cwd: z.ZodOptional<z.ZodString>;
7683
7740
  }, "strip", z.ZodTypeAny, {
7684
- cwd: string;
7685
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
7741
+ cwd?: string | undefined;
7686
7742
  }, {
7687
- cwd: string;
7688
- provider?: "custom" | "claude" | "codex" | "gemini" | "copilot" | undefined;
7743
+ cwd?: string | undefined;
7689
7744
  }>;
7690
7745
  readonly "terminal.spawned": z.ZodObject<{
7691
7746
  terminalId: z.ZodString;
7692
7747
  cwd: z.ZodString;
7693
- projectName: z.ZodString;
7694
- provider: z.ZodOptional<z.ZodString>;
7748
+ shell: z.ZodOptional<z.ZodString>;
7695
7749
  }, "strip", z.ZodTypeAny, {
7696
7750
  terminalId: string;
7697
7751
  cwd: string;
7698
- projectName: string;
7699
- provider?: string | undefined;
7752
+ shell?: string | undefined;
7700
7753
  }, {
7701
7754
  terminalId: string;
7702
7755
  cwd: string;
7703
- projectName: string;
7704
- provider?: string | undefined;
7756
+ shell?: string | undefined;
7705
7757
  }>;
7706
7758
  readonly "terminal.list": z.ZodObject<{
7707
7759
  terminals: z.ZodArray<z.ZodObject<{
7708
7760
  terminalId: z.ZodString;
7709
7761
  cwd: z.ZodString;
7710
- projectName: z.ZodString;
7711
- provider: z.ZodString;
7712
7762
  status: z.ZodEnum<["running", "exited"]>;
7763
+ shell: z.ZodOptional<z.ZodString>;
7713
7764
  }, "strip", z.ZodTypeAny, {
7714
7765
  status: "running" | "exited";
7715
7766
  terminalId: string;
7716
- provider: string;
7717
7767
  cwd: string;
7718
- projectName: string;
7768
+ shell?: string | undefined;
7719
7769
  }, {
7720
7770
  status: "running" | "exited";
7721
7771
  terminalId: string;
7722
- provider: string;
7723
7772
  cwd: string;
7724
- projectName: string;
7773
+ shell?: string | undefined;
7725
7774
  }>, "many">;
7726
7775
  }, "strip", z.ZodTypeAny, {
7727
7776
  terminals: {
7728
7777
  status: "running" | "exited";
7729
7778
  terminalId: string;
7730
- provider: string;
7731
7779
  cwd: string;
7732
- projectName: string;
7780
+ shell?: string | undefined;
7733
7781
  }[];
7734
7782
  }, {
7735
7783
  terminals: {
7736
7784
  status: "running" | "exited";
7737
7785
  terminalId: string;
7738
- provider: string;
7739
7786
  cwd: string;
7740
- projectName: string;
7787
+ shell?: string | undefined;
7741
7788
  }[];
7742
7789
  }>;
7743
7790
  readonly "terminal.browse": z.ZodObject<{
@@ -8103,7 +8150,7 @@ export declare const protocolMessageSchemas: {
8103
8150
  title: string;
8104
8151
  argsMode: "none" | "optional" | "required" | "raw";
8105
8152
  executionKind: "prompt" | "native" | "local_ui";
8106
- provider?: "custom" | "claude" | "codex" | undefined;
8153
+ provider?: "custom" | "codex" | "claude" | undefined;
8107
8154
  description?: string | undefined;
8108
8155
  category?: string | undefined;
8109
8156
  requiresIdle?: boolean | undefined;
@@ -8113,8 +8160,8 @@ export declare const protocolMessageSchemas: {
8113
8160
  name: string;
8114
8161
  id: string;
8115
8162
  title: string;
8116
- provider?: "custom" | "claude" | "codex" | undefined;
8117
8163
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8164
+ provider?: "custom" | "codex" | "claude" | undefined;
8118
8165
  description?: string | undefined;
8119
8166
  category?: string | undefined;
8120
8167
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -8140,7 +8187,7 @@ export declare const protocolMessageSchemas: {
8140
8187
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
8141
8188
  }, "strip", z.ZodTypeAny, {
8142
8189
  enabled: boolean;
8143
- id: "custom" | "claude" | "codex";
8190
+ id: "custom" | "codex" | "claude";
8144
8191
  label: string;
8145
8192
  reason?: string | undefined;
8146
8193
  supportsImages?: boolean | undefined;
@@ -8161,7 +8208,7 @@ export declare const protocolMessageSchemas: {
8161
8208
  title: string;
8162
8209
  argsMode: "none" | "optional" | "required" | "raw";
8163
8210
  executionKind: "prompt" | "native" | "local_ui";
8164
- provider?: "custom" | "claude" | "codex" | undefined;
8211
+ provider?: "custom" | "codex" | "claude" | undefined;
8165
8212
  description?: string | undefined;
8166
8213
  category?: string | undefined;
8167
8214
  requiresIdle?: boolean | undefined;
@@ -8177,7 +8224,7 @@ export declare const protocolMessageSchemas: {
8177
8224
  features?: Record<string, boolean> | undefined;
8178
8225
  }, {
8179
8226
  enabled: boolean;
8180
- id: "custom" | "claude" | "codex";
8227
+ id: "custom" | "codex" | "claude";
8181
8228
  label: string;
8182
8229
  reason?: string | undefined;
8183
8230
  supportsImages?: boolean | undefined;
@@ -8195,8 +8242,8 @@ export declare const protocolMessageSchemas: {
8195
8242
  name: string;
8196
8243
  id: string;
8197
8244
  title: string;
8198
- provider?: "custom" | "claude" | "codex" | undefined;
8199
8245
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8246
+ provider?: "custom" | "codex" | "claude" | undefined;
8200
8247
  description?: string | undefined;
8201
8248
  category?: string | undefined;
8202
8249
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -8231,13 +8278,13 @@ export declare const protocolMessageSchemas: {
8231
8278
  supportsSessionList: boolean;
8232
8279
  supportsSessionLoad: boolean;
8233
8280
  supportsAudio: boolean;
8234
- provider?: "custom" | "claude" | "codex" | undefined;
8235
8281
  protocolVersion?: number | undefined;
8236
8282
  machineId?: string | undefined;
8237
8283
  error?: string | undefined;
8284
+ provider?: "custom" | "codex" | "claude" | undefined;
8238
8285
  providers?: {
8239
8286
  enabled: boolean;
8240
- id: "custom" | "claude" | "codex";
8287
+ id: "custom" | "codex" | "claude";
8241
8288
  label: string;
8242
8289
  reason?: string | undefined;
8243
8290
  supportsImages?: boolean | undefined;
@@ -8258,7 +8305,7 @@ export declare const protocolMessageSchemas: {
8258
8305
  title: string;
8259
8306
  argsMode: "none" | "optional" | "required" | "raw";
8260
8307
  executionKind: "prompt" | "native" | "local_ui";
8261
- provider?: "custom" | "claude" | "codex" | undefined;
8308
+ provider?: "custom" | "codex" | "claude" | undefined;
8262
8309
  description?: string | undefined;
8263
8310
  category?: string | undefined;
8264
8311
  requiresIdle?: boolean | undefined;
@@ -8275,17 +8322,17 @@ export declare const protocolMessageSchemas: {
8275
8322
  }[] | undefined;
8276
8323
  }, {
8277
8324
  enabled: boolean;
8278
- provider?: "custom" | "claude" | "codex" | undefined;
8279
8325
  protocolVersion?: number | undefined;
8280
8326
  machineId?: string | undefined;
8281
8327
  error?: string | undefined;
8328
+ provider?: "custom" | "codex" | "claude" | undefined;
8282
8329
  supportsImages?: boolean | undefined;
8283
8330
  supportsPermission?: boolean | undefined;
8284
8331
  supportsPlan?: boolean | undefined;
8285
8332
  supportsCancel?: boolean | undefined;
8286
8333
  providers?: {
8287
8334
  enabled: boolean;
8288
- id: "custom" | "claude" | "codex";
8335
+ id: "custom" | "codex" | "claude";
8289
8336
  label: string;
8290
8337
  reason?: string | undefined;
8291
8338
  supportsImages?: boolean | undefined;
@@ -8303,8 +8350,8 @@ export declare const protocolMessageSchemas: {
8303
8350
  name: string;
8304
8351
  id: string;
8305
8352
  title: string;
8306
- provider?: "custom" | "claude" | "codex" | undefined;
8307
8353
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8354
+ provider?: "custom" | "codex" | "claude" | undefined;
8308
8355
  description?: string | undefined;
8309
8356
  category?: string | undefined;
8310
8357
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -8330,12 +8377,12 @@ export declare const protocolMessageSchemas: {
8330
8377
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
8331
8378
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8332
8379
  }, "strip", z.ZodTypeAny, {
8333
- provider?: "custom" | "claude" | "codex" | undefined;
8334
8380
  cwd?: string | undefined;
8381
+ provider?: "custom" | "codex" | "claude" | undefined;
8335
8382
  mcpServers?: Record<string, unknown> | undefined;
8336
8383
  }, {
8337
- provider?: "custom" | "claude" | "codex" | undefined;
8338
8384
  cwd?: string | undefined;
8385
+ provider?: "custom" | "codex" | "claude" | undefined;
8339
8386
  mcpServers?: Record<string, unknown> | undefined;
8340
8387
  }>;
8341
8388
  readonly "agent.session.load": z.ZodObject<{
@@ -8623,7 +8670,7 @@ export declare const protocolMessageSchemas: {
8623
8670
  title: string;
8624
8671
  argsMode: "none" | "optional" | "required" | "raw";
8625
8672
  executionKind: "prompt" | "native" | "local_ui";
8626
- provider?: "custom" | "claude" | "codex" | undefined;
8673
+ provider?: "custom" | "codex" | "claude" | undefined;
8627
8674
  description?: string | undefined;
8628
8675
  category?: string | undefined;
8629
8676
  requiresIdle?: boolean | undefined;
@@ -8633,8 +8680,8 @@ export declare const protocolMessageSchemas: {
8633
8680
  name: string;
8634
8681
  id: string;
8635
8682
  title: string;
8636
- provider?: "custom" | "claude" | "codex" | undefined;
8637
8683
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8684
+ provider?: "custom" | "codex" | "claude" | undefined;
8638
8685
  description?: string | undefined;
8639
8686
  category?: string | undefined;
8640
8687
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -8660,7 +8707,7 @@ export declare const protocolMessageSchemas: {
8660
8707
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
8661
8708
  }, "strip", z.ZodTypeAny, {
8662
8709
  enabled: boolean;
8663
- id: "custom" | "claude" | "codex";
8710
+ id: "custom" | "codex" | "claude";
8664
8711
  label: string;
8665
8712
  reason?: string | undefined;
8666
8713
  supportsImages?: boolean | undefined;
@@ -8681,7 +8728,7 @@ export declare const protocolMessageSchemas: {
8681
8728
  title: string;
8682
8729
  argsMode: "none" | "optional" | "required" | "raw";
8683
8730
  executionKind: "prompt" | "native" | "local_ui";
8684
- provider?: "custom" | "claude" | "codex" | undefined;
8731
+ provider?: "custom" | "codex" | "claude" | undefined;
8685
8732
  description?: string | undefined;
8686
8733
  category?: string | undefined;
8687
8734
  requiresIdle?: boolean | undefined;
@@ -8697,7 +8744,7 @@ export declare const protocolMessageSchemas: {
8697
8744
  features?: Record<string, boolean> | undefined;
8698
8745
  }, {
8699
8746
  enabled: boolean;
8700
- id: "custom" | "claude" | "codex";
8747
+ id: "custom" | "codex" | "claude";
8701
8748
  label: string;
8702
8749
  reason?: string | undefined;
8703
8750
  supportsImages?: boolean | undefined;
@@ -8715,8 +8762,8 @@ export declare const protocolMessageSchemas: {
8715
8762
  name: string;
8716
8763
  id: string;
8717
8764
  title: string;
8718
- provider?: "custom" | "claude" | "codex" | undefined;
8719
8765
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8766
+ provider?: "custom" | "codex" | "claude" | undefined;
8720
8767
  description?: string | undefined;
8721
8768
  category?: string | undefined;
8722
8769
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -8751,13 +8798,13 @@ export declare const protocolMessageSchemas: {
8751
8798
  supportsSessionList: boolean;
8752
8799
  supportsSessionLoad: boolean;
8753
8800
  supportsAudio: boolean;
8754
- provider?: "custom" | "claude" | "codex" | undefined;
8755
8801
  protocolVersion?: number | undefined;
8756
8802
  machineId?: string | undefined;
8757
8803
  error?: string | undefined;
8804
+ provider?: "custom" | "codex" | "claude" | undefined;
8758
8805
  providers?: {
8759
8806
  enabled: boolean;
8760
- id: "custom" | "claude" | "codex";
8807
+ id: "custom" | "codex" | "claude";
8761
8808
  label: string;
8762
8809
  reason?: string | undefined;
8763
8810
  supportsImages?: boolean | undefined;
@@ -8778,7 +8825,7 @@ export declare const protocolMessageSchemas: {
8778
8825
  title: string;
8779
8826
  argsMode: "none" | "optional" | "required" | "raw";
8780
8827
  executionKind: "prompt" | "native" | "local_ui";
8781
- provider?: "custom" | "claude" | "codex" | undefined;
8828
+ provider?: "custom" | "codex" | "claude" | undefined;
8782
8829
  description?: string | undefined;
8783
8830
  category?: string | undefined;
8784
8831
  requiresIdle?: boolean | undefined;
@@ -8795,17 +8842,17 @@ export declare const protocolMessageSchemas: {
8795
8842
  }[] | undefined;
8796
8843
  }, {
8797
8844
  enabled: boolean;
8798
- provider?: "custom" | "claude" | "codex" | undefined;
8799
8845
  protocolVersion?: number | undefined;
8800
8846
  machineId?: string | undefined;
8801
8847
  error?: string | undefined;
8848
+ provider?: "custom" | "codex" | "claude" | undefined;
8802
8849
  supportsImages?: boolean | undefined;
8803
8850
  supportsPermission?: boolean | undefined;
8804
8851
  supportsPlan?: boolean | undefined;
8805
8852
  supportsCancel?: boolean | undefined;
8806
8853
  providers?: {
8807
8854
  enabled: boolean;
8808
- id: "custom" | "claude" | "codex";
8855
+ id: "custom" | "codex" | "claude";
8809
8856
  label: string;
8810
8857
  reason?: string | undefined;
8811
8858
  supportsImages?: boolean | undefined;
@@ -8823,8 +8870,8 @@ export declare const protocolMessageSchemas: {
8823
8870
  name: string;
8824
8871
  id: string;
8825
8872
  title: string;
8826
- provider?: "custom" | "claude" | "codex" | undefined;
8827
8873
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8874
+ provider?: "custom" | "codex" | "claude" | undefined;
8828
8875
  description?: string | undefined;
8829
8876
  category?: string | undefined;
8830
8877
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -8956,7 +9003,6 @@ export declare const protocolMessageSchemas: {
8956
9003
  context?: string | undefined;
8957
9004
  }[];
8958
9005
  agentSessionId?: string | undefined;
8959
- error?: string | undefined;
8960
9006
  capabilities?: {
8961
9007
  enabled: boolean;
8962
9008
  supportsImages: boolean;
@@ -8966,13 +9012,13 @@ export declare const protocolMessageSchemas: {
8966
9012
  supportsSessionList: boolean;
8967
9013
  supportsSessionLoad: boolean;
8968
9014
  supportsAudio: boolean;
8969
- provider?: "custom" | "claude" | "codex" | undefined;
8970
9015
  protocolVersion?: number | undefined;
8971
9016
  machineId?: string | undefined;
8972
9017
  error?: string | undefined;
9018
+ provider?: "custom" | "codex" | "claude" | undefined;
8973
9019
  providers?: {
8974
9020
  enabled: boolean;
8975
- id: "custom" | "claude" | "codex";
9021
+ id: "custom" | "codex" | "claude";
8976
9022
  label: string;
8977
9023
  reason?: string | undefined;
8978
9024
  supportsImages?: boolean | undefined;
@@ -8993,7 +9039,7 @@ export declare const protocolMessageSchemas: {
8993
9039
  title: string;
8994
9040
  argsMode: "none" | "optional" | "required" | "raw";
8995
9041
  executionKind: "prompt" | "native" | "local_ui";
8996
- provider?: "custom" | "claude" | "codex" | undefined;
9042
+ provider?: "custom" | "codex" | "claude" | undefined;
8997
9043
  description?: string | undefined;
8998
9044
  category?: string | undefined;
8999
9045
  requiresIdle?: boolean | undefined;
@@ -9009,23 +9055,23 @@ export declare const protocolMessageSchemas: {
9009
9055
  features?: Record<string, boolean> | undefined;
9010
9056
  }[] | undefined;
9011
9057
  } | undefined;
9058
+ error?: string | undefined;
9012
9059
  }, {
9013
9060
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9014
9061
  agentSessionId?: string | undefined;
9015
- error?: string | undefined;
9016
9062
  capabilities?: {
9017
9063
  enabled: boolean;
9018
- provider?: "custom" | "claude" | "codex" | undefined;
9019
9064
  protocolVersion?: number | undefined;
9020
9065
  machineId?: string | undefined;
9021
9066
  error?: string | undefined;
9067
+ provider?: "custom" | "codex" | "claude" | undefined;
9022
9068
  supportsImages?: boolean | undefined;
9023
9069
  supportsPermission?: boolean | undefined;
9024
9070
  supportsPlan?: boolean | undefined;
9025
9071
  supportsCancel?: boolean | undefined;
9026
9072
  providers?: {
9027
9073
  enabled: boolean;
9028
- id: "custom" | "claude" | "codex";
9074
+ id: "custom" | "codex" | "claude";
9029
9075
  label: string;
9030
9076
  reason?: string | undefined;
9031
9077
  supportsImages?: boolean | undefined;
@@ -9043,8 +9089,8 @@ export declare const protocolMessageSchemas: {
9043
9089
  name: string;
9044
9090
  id: string;
9045
9091
  title: string;
9046
- provider?: "custom" | "claude" | "codex" | undefined;
9047
9092
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
9093
+ provider?: "custom" | "codex" | "claude" | undefined;
9048
9094
  description?: string | undefined;
9049
9095
  category?: string | undefined;
9050
9096
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -9065,6 +9111,7 @@ export declare const protocolMessageSchemas: {
9065
9111
  supportsSessionLoad?: boolean | undefined;
9066
9112
  supportsAudio?: boolean | undefined;
9067
9113
  } | undefined;
9114
+ error?: string | undefined;
9068
9115
  messages?: {
9069
9116
  role: "user" | "assistant" | "system";
9070
9117
  content: string;
@@ -9139,7 +9186,7 @@ export declare const protocolMessageSchemas: {
9139
9186
  title: string;
9140
9187
  argsMode: "none" | "optional" | "required" | "raw";
9141
9188
  executionKind: "prompt" | "native" | "local_ui";
9142
- provider?: "custom" | "claude" | "codex" | undefined;
9189
+ provider?: "custom" | "codex" | "claude" | undefined;
9143
9190
  description?: string | undefined;
9144
9191
  category?: string | undefined;
9145
9192
  requiresIdle?: boolean | undefined;
@@ -9149,8 +9196,8 @@ export declare const protocolMessageSchemas: {
9149
9196
  name: string;
9150
9197
  id: string;
9151
9198
  title: string;
9152
- provider?: "custom" | "claude" | "codex" | undefined;
9153
9199
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
9200
+ provider?: "custom" | "codex" | "claude" | undefined;
9154
9201
  description?: string | undefined;
9155
9202
  category?: string | undefined;
9156
9203
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -9176,7 +9223,7 @@ export declare const protocolMessageSchemas: {
9176
9223
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
9177
9224
  }, "strip", z.ZodTypeAny, {
9178
9225
  enabled: boolean;
9179
- id: "custom" | "claude" | "codex";
9226
+ id: "custom" | "codex" | "claude";
9180
9227
  label: string;
9181
9228
  reason?: string | undefined;
9182
9229
  supportsImages?: boolean | undefined;
@@ -9197,7 +9244,7 @@ export declare const protocolMessageSchemas: {
9197
9244
  title: string;
9198
9245
  argsMode: "none" | "optional" | "required" | "raw";
9199
9246
  executionKind: "prompt" | "native" | "local_ui";
9200
- provider?: "custom" | "claude" | "codex" | undefined;
9247
+ provider?: "custom" | "codex" | "claude" | undefined;
9201
9248
  description?: string | undefined;
9202
9249
  category?: string | undefined;
9203
9250
  requiresIdle?: boolean | undefined;
@@ -9213,7 +9260,7 @@ export declare const protocolMessageSchemas: {
9213
9260
  features?: Record<string, boolean> | undefined;
9214
9261
  }, {
9215
9262
  enabled: boolean;
9216
- id: "custom" | "claude" | "codex";
9263
+ id: "custom" | "codex" | "claude";
9217
9264
  label: string;
9218
9265
  reason?: string | undefined;
9219
9266
  supportsImages?: boolean | undefined;
@@ -9231,8 +9278,8 @@ export declare const protocolMessageSchemas: {
9231
9278
  name: string;
9232
9279
  id: string;
9233
9280
  title: string;
9234
- provider?: "custom" | "claude" | "codex" | undefined;
9235
9281
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
9282
+ provider?: "custom" | "codex" | "claude" | undefined;
9236
9283
  description?: string | undefined;
9237
9284
  category?: string | undefined;
9238
9285
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -9270,13 +9317,13 @@ export declare const protocolMessageSchemas: {
9270
9317
  supportsSessionLoad: boolean;
9271
9318
  supportsAudio: boolean;
9272
9319
  workspaceProtocolVersion: number;
9273
- provider?: "custom" | "claude" | "codex" | undefined;
9274
9320
  protocolVersion?: number | undefined;
9275
9321
  machineId?: string | undefined;
9276
9322
  error?: string | undefined;
9323
+ provider?: "custom" | "codex" | "claude" | undefined;
9277
9324
  providers?: {
9278
9325
  enabled: boolean;
9279
- id: "custom" | "claude" | "codex";
9326
+ id: "custom" | "codex" | "claude";
9280
9327
  label: string;
9281
9328
  reason?: string | undefined;
9282
9329
  supportsImages?: boolean | undefined;
@@ -9297,7 +9344,7 @@ export declare const protocolMessageSchemas: {
9297
9344
  title: string;
9298
9345
  argsMode: "none" | "optional" | "required" | "raw";
9299
9346
  executionKind: "prompt" | "native" | "local_ui";
9300
- provider?: "custom" | "claude" | "codex" | undefined;
9347
+ provider?: "custom" | "codex" | "claude" | undefined;
9301
9348
  description?: string | undefined;
9302
9349
  category?: string | undefined;
9303
9350
  requiresIdle?: boolean | undefined;
@@ -9314,17 +9361,17 @@ export declare const protocolMessageSchemas: {
9314
9361
  }[] | undefined;
9315
9362
  }, {
9316
9363
  enabled: boolean;
9317
- provider?: "custom" | "claude" | "codex" | undefined;
9318
9364
  protocolVersion?: number | undefined;
9319
9365
  machineId?: string | undefined;
9320
9366
  error?: string | undefined;
9367
+ provider?: "custom" | "codex" | "claude" | undefined;
9321
9368
  supportsImages?: boolean | undefined;
9322
9369
  supportsPermission?: boolean | undefined;
9323
9370
  supportsPlan?: boolean | undefined;
9324
9371
  supportsCancel?: boolean | undefined;
9325
9372
  providers?: {
9326
9373
  enabled: boolean;
9327
- id: "custom" | "claude" | "codex";
9374
+ id: "custom" | "codex" | "claude";
9328
9375
  label: string;
9329
9376
  reason?: string | undefined;
9330
9377
  supportsImages?: boolean | undefined;
@@ -9342,8 +9389,8 @@ export declare const protocolMessageSchemas: {
9342
9389
  name: string;
9343
9390
  id: string;
9344
9391
  title: string;
9345
- provider?: "custom" | "claude" | "codex" | undefined;
9346
9392
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
9393
+ provider?: "custom" | "codex" | "claude" | undefined;
9347
9394
  description?: string | undefined;
9348
9395
  category?: string | undefined;
9349
9396
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
@@ -9378,8 +9425,8 @@ export declare const protocolMessageSchemas: {
9378
9425
  }, "strip", z.ZodTypeAny, {
9379
9426
  conversationId?: string | undefined;
9380
9427
  agentSessionId?: string | undefined;
9381
- provider?: "custom" | "claude" | "codex" | undefined;
9382
9428
  cwd?: string | undefined;
9429
+ provider?: "custom" | "codex" | "claude" | undefined;
9383
9430
  title?: string | undefined;
9384
9431
  model?: string | undefined;
9385
9432
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -9388,8 +9435,8 @@ export declare const protocolMessageSchemas: {
9388
9435
  }, {
9389
9436
  conversationId?: string | undefined;
9390
9437
  agentSessionId?: string | undefined;
9391
- provider?: "custom" | "claude" | "codex" | undefined;
9392
9438
  cwd?: string | undefined;
9439
+ provider?: "custom" | "codex" | "claude" | undefined;
9393
9440
  title?: string | undefined;
9394
9441
  model?: string | undefined;
9395
9442
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -9414,8 +9461,8 @@ export declare const protocolMessageSchemas: {
9414
9461
  createdAt: z.ZodNumber;
9415
9462
  }, "strip", z.ZodTypeAny, {
9416
9463
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
9417
- provider: "custom" | "claude" | "codex";
9418
9464
  cwd: string;
9465
+ provider: "custom" | "codex" | "claude";
9419
9466
  id: string;
9420
9467
  createdAt: number;
9421
9468
  archived: boolean;
@@ -9434,7 +9481,7 @@ export declare const protocolMessageSchemas: {
9434
9481
  lastActivityAt: number;
9435
9482
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9436
9483
  agentSessionId?: string | undefined;
9437
- provider?: "custom" | "claude" | "codex" | undefined;
9484
+ provider?: "custom" | "codex" | "claude" | undefined;
9438
9485
  title?: string | undefined;
9439
9486
  model?: string | undefined;
9440
9487
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -9973,8 +10020,8 @@ export declare const protocolMessageSchemas: {
9973
10020
  }, "strip", z.ZodTypeAny, {
9974
10021
  conversation: {
9975
10022
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
9976
- provider: "custom" | "claude" | "codex";
9977
10023
  cwd: string;
10024
+ provider: "custom" | "codex" | "claude";
9978
10025
  id: string;
9979
10026
  createdAt: number;
9980
10027
  archived: boolean;
@@ -10096,7 +10143,7 @@ export declare const protocolMessageSchemas: {
10096
10143
  lastActivityAt: number;
10097
10144
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10098
10145
  agentSessionId?: string | undefined;
10099
- provider?: "custom" | "claude" | "codex" | undefined;
10146
+ provider?: "custom" | "codex" | "claude" | undefined;
10100
10147
  title?: string | undefined;
10101
10148
  model?: string | undefined;
10102
10149
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -10232,8 +10279,8 @@ export declare const protocolMessageSchemas: {
10232
10279
  createdAt: z.ZodNumber;
10233
10280
  }, "strip", z.ZodTypeAny, {
10234
10281
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
10235
- provider: "custom" | "claude" | "codex";
10236
10282
  cwd: string;
10283
+ provider: "custom" | "codex" | "claude";
10237
10284
  id: string;
10238
10285
  createdAt: number;
10239
10286
  archived: boolean;
@@ -10252,7 +10299,7 @@ export declare const protocolMessageSchemas: {
10252
10299
  lastActivityAt: number;
10253
10300
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10254
10301
  agentSessionId?: string | undefined;
10255
- provider?: "custom" | "claude" | "codex" | undefined;
10302
+ provider?: "custom" | "codex" | "claude" | undefined;
10256
10303
  title?: string | undefined;
10257
10304
  model?: string | undefined;
10258
10305
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -10264,8 +10311,8 @@ export declare const protocolMessageSchemas: {
10264
10311
  }, "strip", z.ZodTypeAny, {
10265
10312
  conversations: {
10266
10313
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
10267
- provider: "custom" | "claude" | "codex";
10268
10314
  cwd: string;
10315
+ provider: "custom" | "codex" | "claude";
10269
10316
  id: string;
10270
10317
  createdAt: number;
10271
10318
  archived: boolean;
@@ -10286,7 +10333,7 @@ export declare const protocolMessageSchemas: {
10286
10333
  lastActivityAt: number;
10287
10334
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10288
10335
  agentSessionId?: string | undefined;
10289
- provider?: "custom" | "claude" | "codex" | undefined;
10336
+ provider?: "custom" | "codex" | "claude" | undefined;
10290
10337
  title?: string | undefined;
10291
10338
  model?: string | undefined;
10292
10339
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -11198,8 +11245,8 @@ export declare const protocolMessageSchemas: {
11198
11245
  createdAt: z.ZodNumber;
11199
11246
  }, "strip", z.ZodTypeAny, {
11200
11247
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
11201
- provider: "custom" | "claude" | "codex";
11202
11248
  cwd: string;
11249
+ provider: "custom" | "codex" | "claude";
11203
11250
  id: string;
11204
11251
  createdAt: number;
11205
11252
  archived: boolean;
@@ -11218,7 +11265,7 @@ export declare const protocolMessageSchemas: {
11218
11265
  lastActivityAt: number;
11219
11266
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11220
11267
  agentSessionId?: string | undefined;
11221
- provider?: "custom" | "claude" | "codex" | undefined;
11268
+ provider?: "custom" | "codex" | "claude" | undefined;
11222
11269
  title?: string | undefined;
11223
11270
  model?: string | undefined;
11224
11271
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -11759,8 +11806,8 @@ export declare const protocolMessageSchemas: {
11759
11806
  }, "strip", z.ZodTypeAny, {
11760
11807
  conversations: {
11761
11808
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
11762
- provider: "custom" | "claude" | "codex";
11763
11809
  cwd: string;
11810
+ provider: "custom" | "codex" | "claude";
11764
11811
  id: string;
11765
11812
  createdAt: number;
11766
11813
  archived: boolean;
@@ -11885,7 +11932,7 @@ export declare const protocolMessageSchemas: {
11885
11932
  lastActivityAt: number;
11886
11933
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11887
11934
  agentSessionId?: string | undefined;
11888
- provider?: "custom" | "claude" | "codex" | undefined;
11935
+ provider?: "custom" | "codex" | "claude" | undefined;
11889
11936
  title?: string | undefined;
11890
11937
  model?: string | undefined;
11891
11938
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -12016,8 +12063,8 @@ export declare const protocolMessageSchemas: {
12016
12063
  createdAt: z.ZodNumber;
12017
12064
  }, "strip", z.ZodTypeAny, {
12018
12065
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
12019
- provider: "custom" | "claude" | "codex";
12020
12066
  cwd: string;
12067
+ provider: "custom" | "codex" | "claude";
12021
12068
  id: string;
12022
12069
  createdAt: number;
12023
12070
  archived: boolean;
@@ -12036,7 +12083,7 @@ export declare const protocolMessageSchemas: {
12036
12083
  lastActivityAt: number;
12037
12084
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12038
12085
  agentSessionId?: string | undefined;
12039
- provider?: "custom" | "claude" | "codex" | undefined;
12086
+ provider?: "custom" | "codex" | "claude" | undefined;
12040
12087
  title?: string | undefined;
12041
12088
  model?: string | undefined;
12042
12089
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -13091,8 +13138,8 @@ export declare const protocolMessageSchemas: {
13091
13138
  conversationId: string;
13092
13139
  conversation?: {
13093
13140
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
13094
- provider: "custom" | "claude" | "codex";
13095
13141
  cwd: string;
13142
+ provider: "custom" | "codex" | "claude";
13096
13143
  id: string;
13097
13144
  createdAt: number;
13098
13145
  archived: boolean;
@@ -13312,7 +13359,7 @@ export declare const protocolMessageSchemas: {
13312
13359
  lastActivityAt: number;
13313
13360
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13314
13361
  agentSessionId?: string | undefined;
13315
- provider?: "custom" | "claude" | "codex" | undefined;
13362
+ provider?: "custom" | "codex" | "claude" | undefined;
13316
13363
  title?: string | undefined;
13317
13364
  model?: string | undefined;
13318
13365
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
@@ -13524,7 +13571,8 @@ export declare const protocolMessageSchemas: {
13524
13571
  export type ProtocolMessageType = keyof typeof protocolMessageSchemas;
13525
13572
  export declare function createEnvelope<T>(input: {
13526
13573
  type: ProtocolMessageType;
13527
- sessionId: string;
13574
+ hostDeviceId?: string;
13575
+ sessionId?: string;
13528
13576
  payload: T;
13529
13577
  id?: string;
13530
13578
  seq?: number;