@openai/agents-core 0.3.0 → 0.3.2

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 (76) hide show
  1. package/dist/agent.d.ts +2 -0
  2. package/dist/agent.js +5 -0
  3. package/dist/agent.js.map +1 -1
  4. package/dist/agent.mjs +5 -0
  5. package/dist/agent.mjs.map +1 -1
  6. package/dist/editor.d.ts +38 -0
  7. package/dist/editor.js +3 -0
  8. package/dist/editor.js.map +1 -0
  9. package/dist/editor.mjs +2 -0
  10. package/dist/editor.mjs.map +1 -0
  11. package/dist/extensions/handoffFilters.js +4 -0
  12. package/dist/extensions/handoffFilters.js.map +1 -1
  13. package/dist/extensions/handoffFilters.mjs +4 -0
  14. package/dist/extensions/handoffFilters.mjs.map +1 -1
  15. package/dist/index.d.ts +5 -2
  16. package/dist/index.js +6 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +2 -1
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/items.d.ts +518 -4
  21. package/dist/items.js +22 -1
  22. package/dist/items.js.map +1 -1
  23. package/dist/items.mjs +22 -1
  24. package/dist/items.mjs.map +1 -1
  25. package/dist/metadata.js +2 -2
  26. package/dist/metadata.mjs +2 -2
  27. package/dist/model.d.ts +17 -3
  28. package/dist/run.js +3 -0
  29. package/dist/run.js.map +1 -1
  30. package/dist/run.mjs +3 -0
  31. package/dist/run.mjs.map +1 -1
  32. package/dist/runContext.js +2 -2
  33. package/dist/runContext.js.map +1 -1
  34. package/dist/runContext.mjs +2 -2
  35. package/dist/runContext.mjs.map +1 -1
  36. package/dist/runImplementation.d.ts +16 -1
  37. package/dist/runImplementation.js +262 -4
  38. package/dist/runImplementation.js.map +1 -1
  39. package/dist/runImplementation.mjs +260 -4
  40. package/dist/runImplementation.mjs.map +1 -1
  41. package/dist/runState.d.ts +2554 -20
  42. package/dist/runState.js +46 -3
  43. package/dist/runState.js.map +1 -1
  44. package/dist/runState.mjs +46 -3
  45. package/dist/runState.mjs.map +1 -1
  46. package/dist/shell.d.ts +36 -0
  47. package/dist/shell.js +3 -0
  48. package/dist/shell.js.map +1 -0
  49. package/dist/shell.mjs +2 -0
  50. package/dist/shell.mjs.map +1 -0
  51. package/dist/tool.d.ts +62 -1
  52. package/dist/tool.js +30 -0
  53. package/dist/tool.js.map +1 -1
  54. package/dist/tool.mjs +28 -0
  55. package/dist/tool.mjs.map +1 -1
  56. package/dist/types/aliases.d.ts +3 -3
  57. package/dist/types/protocol.d.ts +2317 -42
  58. package/dist/types/protocol.js +73 -1
  59. package/dist/types/protocol.js.map +1 -1
  60. package/dist/types/protocol.mjs +72 -0
  61. package/dist/types/protocol.mjs.map +1 -1
  62. package/dist/utils/applyDiff.d.ts +9 -0
  63. package/dist/utils/applyDiff.js +275 -0
  64. package/dist/utils/applyDiff.js.map +1 -0
  65. package/dist/utils/applyDiff.mjs +272 -0
  66. package/dist/utils/applyDiff.mjs.map +1 -0
  67. package/dist/utils/index.d.ts +1 -0
  68. package/dist/utils/index.js +3 -1
  69. package/dist/utils/index.js.map +1 -1
  70. package/dist/utils/index.mjs +1 -0
  71. package/dist/utils/index.mjs.map +1 -1
  72. package/dist/utils/serialize.js +12 -0
  73. package/dist/utils/serialize.js.map +1 -1
  74. package/dist/utils/serialize.mjs +12 -0
  75. package/dist/utils/serialize.mjs.map +1 -1
  76. package/package.json +3 -3
@@ -665,6 +665,127 @@ export declare const SerializedRunState: z.ZodObject<{
665
665
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
666
666
  } & {
667
667
  id: z.ZodOptional<z.ZodString>;
668
+ } & {
669
+ type: z.ZodLiteral<"shell_call">;
670
+ callId: z.ZodString;
671
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
672
+ action: z.ZodObject<{
673
+ commands: z.ZodArray<z.ZodString, "many">;
674
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
675
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
676
+ }, "strip", z.ZodTypeAny, {
677
+ commands: string[];
678
+ timeoutMs?: number | undefined;
679
+ maxOutputLength?: number | undefined;
680
+ }, {
681
+ commands: string[];
682
+ timeoutMs?: number | undefined;
683
+ maxOutputLength?: number | undefined;
684
+ }>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ type: "shell_call";
687
+ callId: string;
688
+ action: {
689
+ commands: string[];
690
+ timeoutMs?: number | undefined;
691
+ maxOutputLength?: number | undefined;
692
+ };
693
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
694
+ providerData?: Record<string, any> | undefined;
695
+ id?: string | undefined;
696
+ }, {
697
+ type: "shell_call";
698
+ callId: string;
699
+ action: {
700
+ commands: string[];
701
+ timeoutMs?: number | undefined;
702
+ maxOutputLength?: number | undefined;
703
+ };
704
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
705
+ providerData?: Record<string, any> | undefined;
706
+ id?: string | undefined;
707
+ }>, z.ZodObject<{
708
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
709
+ } & {
710
+ id: z.ZodOptional<z.ZodString>;
711
+ } & {
712
+ type: z.ZodLiteral<"apply_patch_call">;
713
+ callId: z.ZodString;
714
+ status: z.ZodEnum<["in_progress", "completed"]>;
715
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
716
+ type: z.ZodLiteral<"create_file">;
717
+ path: z.ZodString;
718
+ diff: z.ZodString;
719
+ }, "strip", z.ZodTypeAny, {
720
+ path: string;
721
+ type: "create_file";
722
+ diff: string;
723
+ }, {
724
+ path: string;
725
+ type: "create_file";
726
+ diff: string;
727
+ }>, z.ZodObject<{
728
+ type: z.ZodLiteral<"update_file">;
729
+ path: z.ZodString;
730
+ diff: z.ZodString;
731
+ }, "strip", z.ZodTypeAny, {
732
+ path: string;
733
+ type: "update_file";
734
+ diff: string;
735
+ }, {
736
+ path: string;
737
+ type: "update_file";
738
+ diff: string;
739
+ }>, z.ZodObject<{
740
+ type: z.ZodLiteral<"delete_file">;
741
+ path: z.ZodString;
742
+ }, "strip", z.ZodTypeAny, {
743
+ path: string;
744
+ type: "delete_file";
745
+ }, {
746
+ path: string;
747
+ type: "delete_file";
748
+ }>]>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ type: "apply_patch_call";
751
+ status: "in_progress" | "completed";
752
+ callId: string;
753
+ operation: {
754
+ path: string;
755
+ type: "create_file";
756
+ diff: string;
757
+ } | {
758
+ path: string;
759
+ type: "update_file";
760
+ diff: string;
761
+ } | {
762
+ path: string;
763
+ type: "delete_file";
764
+ };
765
+ providerData?: Record<string, any> | undefined;
766
+ id?: string | undefined;
767
+ }, {
768
+ type: "apply_patch_call";
769
+ status: "in_progress" | "completed";
770
+ callId: string;
771
+ operation: {
772
+ path: string;
773
+ type: "create_file";
774
+ diff: string;
775
+ } | {
776
+ path: string;
777
+ type: "update_file";
778
+ diff: string;
779
+ } | {
780
+ path: string;
781
+ type: "delete_file";
782
+ };
783
+ providerData?: Record<string, any> | undefined;
784
+ id?: string | undefined;
785
+ }>, z.ZodObject<{
786
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
787
+ } & {
788
+ id: z.ZodOptional<z.ZodString>;
668
789
  } & {
669
790
  type: z.ZodLiteral<"function_call_result">;
670
791
  name: z.ZodString;
@@ -1032,6 +1153,147 @@ export declare const SerializedRunState: z.ZodObject<{
1032
1153
  id?: string | undefined;
1033
1154
  }>, z.ZodObject<{
1034
1155
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1156
+ } & {
1157
+ id: z.ZodOptional<z.ZodString>;
1158
+ } & {
1159
+ type: z.ZodLiteral<"shell_call_output">;
1160
+ callId: z.ZodString;
1161
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
1162
+ output: z.ZodArray<z.ZodObject<{
1163
+ stdout: z.ZodString;
1164
+ stderr: z.ZodString;
1165
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1166
+ type: z.ZodLiteral<"timeout">;
1167
+ }, "strip", z.ZodTypeAny, {
1168
+ type: "timeout";
1169
+ }, {
1170
+ type: "timeout";
1171
+ }>, z.ZodObject<{
1172
+ type: z.ZodLiteral<"exit">;
1173
+ exitCode: z.ZodNullable<z.ZodNumber>;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ type: "exit";
1176
+ exitCode: number | null;
1177
+ }, {
1178
+ type: "exit";
1179
+ exitCode: number | null;
1180
+ }>]>;
1181
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1182
+ stdout: z.ZodString;
1183
+ stderr: z.ZodString;
1184
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1185
+ type: z.ZodLiteral<"timeout">;
1186
+ }, "strip", z.ZodTypeAny, {
1187
+ type: "timeout";
1188
+ }, {
1189
+ type: "timeout";
1190
+ }>, z.ZodObject<{
1191
+ type: z.ZodLiteral<"exit">;
1192
+ exitCode: z.ZodNullable<z.ZodNumber>;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ type: "exit";
1195
+ exitCode: number | null;
1196
+ }, {
1197
+ type: "exit";
1198
+ exitCode: number | null;
1199
+ }>]>;
1200
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1201
+ stdout: z.ZodString;
1202
+ stderr: z.ZodString;
1203
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1204
+ type: z.ZodLiteral<"timeout">;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ type: "timeout";
1207
+ }, {
1208
+ type: "timeout";
1209
+ }>, z.ZodObject<{
1210
+ type: z.ZodLiteral<"exit">;
1211
+ exitCode: z.ZodNullable<z.ZodNumber>;
1212
+ }, "strip", z.ZodTypeAny, {
1213
+ type: "exit";
1214
+ exitCode: number | null;
1215
+ }, {
1216
+ type: "exit";
1217
+ exitCode: number | null;
1218
+ }>]>;
1219
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1220
+ }, "strip", z.ZodTypeAny, {
1221
+ type: "shell_call_output";
1222
+ output: z.objectOutputType<{
1223
+ stdout: z.ZodString;
1224
+ stderr: z.ZodString;
1225
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1226
+ type: z.ZodLiteral<"timeout">;
1227
+ }, "strip", z.ZodTypeAny, {
1228
+ type: "timeout";
1229
+ }, {
1230
+ type: "timeout";
1231
+ }>, z.ZodObject<{
1232
+ type: z.ZodLiteral<"exit">;
1233
+ exitCode: z.ZodNullable<z.ZodNumber>;
1234
+ }, "strip", z.ZodTypeAny, {
1235
+ type: "exit";
1236
+ exitCode: number | null;
1237
+ }, {
1238
+ type: "exit";
1239
+ exitCode: number | null;
1240
+ }>]>;
1241
+ }, z.ZodTypeAny, "passthrough">[];
1242
+ callId: string;
1243
+ providerData?: Record<string, any> | undefined;
1244
+ id?: string | undefined;
1245
+ maxOutputLength?: number | undefined;
1246
+ }, {
1247
+ type: "shell_call_output";
1248
+ output: z.objectInputType<{
1249
+ stdout: z.ZodString;
1250
+ stderr: z.ZodString;
1251
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1252
+ type: z.ZodLiteral<"timeout">;
1253
+ }, "strip", z.ZodTypeAny, {
1254
+ type: "timeout";
1255
+ }, {
1256
+ type: "timeout";
1257
+ }>, z.ZodObject<{
1258
+ type: z.ZodLiteral<"exit">;
1259
+ exitCode: z.ZodNullable<z.ZodNumber>;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ type: "exit";
1262
+ exitCode: number | null;
1263
+ }, {
1264
+ type: "exit";
1265
+ exitCode: number | null;
1266
+ }>]>;
1267
+ }, z.ZodTypeAny, "passthrough">[];
1268
+ callId: string;
1269
+ providerData?: Record<string, any> | undefined;
1270
+ id?: string | undefined;
1271
+ maxOutputLength?: number | undefined;
1272
+ }>, z.ZodObject<{
1273
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1274
+ } & {
1275
+ id: z.ZodOptional<z.ZodString>;
1276
+ } & {
1277
+ type: z.ZodLiteral<"apply_patch_call_output">;
1278
+ callId: z.ZodString;
1279
+ status: z.ZodEnum<["completed", "failed"]>;
1280
+ output: z.ZodOptional<z.ZodString>;
1281
+ }, "strip", z.ZodTypeAny, {
1282
+ type: "apply_patch_call_output";
1283
+ status: "completed" | "failed";
1284
+ callId: string;
1285
+ providerData?: Record<string, any> | undefined;
1286
+ id?: string | undefined;
1287
+ output?: string | undefined;
1288
+ }, {
1289
+ type: "apply_patch_call_output";
1290
+ status: "completed" | "failed";
1291
+ callId: string;
1292
+ providerData?: Record<string, any> | undefined;
1293
+ id?: string | undefined;
1294
+ output?: string | undefined;
1295
+ }>, z.ZodObject<{
1296
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1035
1297
  } & {
1036
1298
  id: z.ZodOptional<z.ZodString>;
1037
1299
  type: z.ZodLiteral<"reasoning">;
@@ -1515,6 +1777,127 @@ export declare const SerializedRunState: z.ZodObject<{
1515
1777
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1516
1778
  } & {
1517
1779
  id: z.ZodOptional<z.ZodString>;
1780
+ } & {
1781
+ type: z.ZodLiteral<"shell_call">;
1782
+ callId: z.ZodString;
1783
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
1784
+ action: z.ZodObject<{
1785
+ commands: z.ZodArray<z.ZodString, "many">;
1786
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1787
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
1788
+ }, "strip", z.ZodTypeAny, {
1789
+ commands: string[];
1790
+ timeoutMs?: number | undefined;
1791
+ maxOutputLength?: number | undefined;
1792
+ }, {
1793
+ commands: string[];
1794
+ timeoutMs?: number | undefined;
1795
+ maxOutputLength?: number | undefined;
1796
+ }>;
1797
+ }, "strip", z.ZodTypeAny, {
1798
+ type: "shell_call";
1799
+ callId: string;
1800
+ action: {
1801
+ commands: string[];
1802
+ timeoutMs?: number | undefined;
1803
+ maxOutputLength?: number | undefined;
1804
+ };
1805
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
1806
+ providerData?: Record<string, any> | undefined;
1807
+ id?: string | undefined;
1808
+ }, {
1809
+ type: "shell_call";
1810
+ callId: string;
1811
+ action: {
1812
+ commands: string[];
1813
+ timeoutMs?: number | undefined;
1814
+ maxOutputLength?: number | undefined;
1815
+ };
1816
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
1817
+ providerData?: Record<string, any> | undefined;
1818
+ id?: string | undefined;
1819
+ }>, z.ZodObject<{
1820
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1821
+ } & {
1822
+ id: z.ZodOptional<z.ZodString>;
1823
+ } & {
1824
+ type: z.ZodLiteral<"apply_patch_call">;
1825
+ callId: z.ZodString;
1826
+ status: z.ZodEnum<["in_progress", "completed"]>;
1827
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1828
+ type: z.ZodLiteral<"create_file">;
1829
+ path: z.ZodString;
1830
+ diff: z.ZodString;
1831
+ }, "strip", z.ZodTypeAny, {
1832
+ path: string;
1833
+ type: "create_file";
1834
+ diff: string;
1835
+ }, {
1836
+ path: string;
1837
+ type: "create_file";
1838
+ diff: string;
1839
+ }>, z.ZodObject<{
1840
+ type: z.ZodLiteral<"update_file">;
1841
+ path: z.ZodString;
1842
+ diff: z.ZodString;
1843
+ }, "strip", z.ZodTypeAny, {
1844
+ path: string;
1845
+ type: "update_file";
1846
+ diff: string;
1847
+ }, {
1848
+ path: string;
1849
+ type: "update_file";
1850
+ diff: string;
1851
+ }>, z.ZodObject<{
1852
+ type: z.ZodLiteral<"delete_file">;
1853
+ path: z.ZodString;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ path: string;
1856
+ type: "delete_file";
1857
+ }, {
1858
+ path: string;
1859
+ type: "delete_file";
1860
+ }>]>;
1861
+ }, "strip", z.ZodTypeAny, {
1862
+ type: "apply_patch_call";
1863
+ status: "in_progress" | "completed";
1864
+ callId: string;
1865
+ operation: {
1866
+ path: string;
1867
+ type: "create_file";
1868
+ diff: string;
1869
+ } | {
1870
+ path: string;
1871
+ type: "update_file";
1872
+ diff: string;
1873
+ } | {
1874
+ path: string;
1875
+ type: "delete_file";
1876
+ };
1877
+ providerData?: Record<string, any> | undefined;
1878
+ id?: string | undefined;
1879
+ }, {
1880
+ type: "apply_patch_call";
1881
+ status: "in_progress" | "completed";
1882
+ callId: string;
1883
+ operation: {
1884
+ path: string;
1885
+ type: "create_file";
1886
+ diff: string;
1887
+ } | {
1888
+ path: string;
1889
+ type: "update_file";
1890
+ diff: string;
1891
+ } | {
1892
+ path: string;
1893
+ type: "delete_file";
1894
+ };
1895
+ providerData?: Record<string, any> | undefined;
1896
+ id?: string | undefined;
1897
+ }>, z.ZodObject<{
1898
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1899
+ } & {
1900
+ id: z.ZodOptional<z.ZodString>;
1518
1901
  } & {
1519
1902
  type: z.ZodLiteral<"function_call_result">;
1520
1903
  name: z.ZodString;
@@ -1841,6 +2224,147 @@ export declare const SerializedRunState: z.ZodObject<{
1841
2224
  id?: string | undefined;
1842
2225
  }>, z.ZodObject<{
1843
2226
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2227
+ } & {
2228
+ id: z.ZodOptional<z.ZodString>;
2229
+ } & {
2230
+ type: z.ZodLiteral<"shell_call_output">;
2231
+ callId: z.ZodString;
2232
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
2233
+ output: z.ZodArray<z.ZodObject<{
2234
+ stdout: z.ZodString;
2235
+ stderr: z.ZodString;
2236
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2237
+ type: z.ZodLiteral<"timeout">;
2238
+ }, "strip", z.ZodTypeAny, {
2239
+ type: "timeout";
2240
+ }, {
2241
+ type: "timeout";
2242
+ }>, z.ZodObject<{
2243
+ type: z.ZodLiteral<"exit">;
2244
+ exitCode: z.ZodNullable<z.ZodNumber>;
2245
+ }, "strip", z.ZodTypeAny, {
2246
+ type: "exit";
2247
+ exitCode: number | null;
2248
+ }, {
2249
+ type: "exit";
2250
+ exitCode: number | null;
2251
+ }>]>;
2252
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2253
+ stdout: z.ZodString;
2254
+ stderr: z.ZodString;
2255
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2256
+ type: z.ZodLiteral<"timeout">;
2257
+ }, "strip", z.ZodTypeAny, {
2258
+ type: "timeout";
2259
+ }, {
2260
+ type: "timeout";
2261
+ }>, z.ZodObject<{
2262
+ type: z.ZodLiteral<"exit">;
2263
+ exitCode: z.ZodNullable<z.ZodNumber>;
2264
+ }, "strip", z.ZodTypeAny, {
2265
+ type: "exit";
2266
+ exitCode: number | null;
2267
+ }, {
2268
+ type: "exit";
2269
+ exitCode: number | null;
2270
+ }>]>;
2271
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2272
+ stdout: z.ZodString;
2273
+ stderr: z.ZodString;
2274
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2275
+ type: z.ZodLiteral<"timeout">;
2276
+ }, "strip", z.ZodTypeAny, {
2277
+ type: "timeout";
2278
+ }, {
2279
+ type: "timeout";
2280
+ }>, z.ZodObject<{
2281
+ type: z.ZodLiteral<"exit">;
2282
+ exitCode: z.ZodNullable<z.ZodNumber>;
2283
+ }, "strip", z.ZodTypeAny, {
2284
+ type: "exit";
2285
+ exitCode: number | null;
2286
+ }, {
2287
+ type: "exit";
2288
+ exitCode: number | null;
2289
+ }>]>;
2290
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2291
+ }, "strip", z.ZodTypeAny, {
2292
+ type: "shell_call_output";
2293
+ output: z.objectOutputType<{
2294
+ stdout: z.ZodString;
2295
+ stderr: z.ZodString;
2296
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2297
+ type: z.ZodLiteral<"timeout">;
2298
+ }, "strip", z.ZodTypeAny, {
2299
+ type: "timeout";
2300
+ }, {
2301
+ type: "timeout";
2302
+ }>, z.ZodObject<{
2303
+ type: z.ZodLiteral<"exit">;
2304
+ exitCode: z.ZodNullable<z.ZodNumber>;
2305
+ }, "strip", z.ZodTypeAny, {
2306
+ type: "exit";
2307
+ exitCode: number | null;
2308
+ }, {
2309
+ type: "exit";
2310
+ exitCode: number | null;
2311
+ }>]>;
2312
+ }, z.ZodTypeAny, "passthrough">[];
2313
+ callId: string;
2314
+ providerData?: Record<string, any> | undefined;
2315
+ id?: string | undefined;
2316
+ maxOutputLength?: number | undefined;
2317
+ }, {
2318
+ type: "shell_call_output";
2319
+ output: z.objectInputType<{
2320
+ stdout: z.ZodString;
2321
+ stderr: z.ZodString;
2322
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2323
+ type: z.ZodLiteral<"timeout">;
2324
+ }, "strip", z.ZodTypeAny, {
2325
+ type: "timeout";
2326
+ }, {
2327
+ type: "timeout";
2328
+ }>, z.ZodObject<{
2329
+ type: z.ZodLiteral<"exit">;
2330
+ exitCode: z.ZodNullable<z.ZodNumber>;
2331
+ }, "strip", z.ZodTypeAny, {
2332
+ type: "exit";
2333
+ exitCode: number | null;
2334
+ }, {
2335
+ type: "exit";
2336
+ exitCode: number | null;
2337
+ }>]>;
2338
+ }, z.ZodTypeAny, "passthrough">[];
2339
+ callId: string;
2340
+ providerData?: Record<string, any> | undefined;
2341
+ id?: string | undefined;
2342
+ maxOutputLength?: number | undefined;
2343
+ }>, z.ZodObject<{
2344
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2345
+ } & {
2346
+ id: z.ZodOptional<z.ZodString>;
2347
+ } & {
2348
+ type: z.ZodLiteral<"apply_patch_call_output">;
2349
+ callId: z.ZodString;
2350
+ status: z.ZodEnum<["completed", "failed"]>;
2351
+ output: z.ZodOptional<z.ZodString>;
2352
+ }, "strip", z.ZodTypeAny, {
2353
+ type: "apply_patch_call_output";
2354
+ status: "completed" | "failed";
2355
+ callId: string;
2356
+ providerData?: Record<string, any> | undefined;
2357
+ id?: string | undefined;
2358
+ output?: string | undefined;
2359
+ }, {
2360
+ type: "apply_patch_call_output";
2361
+ status: "completed" | "failed";
2362
+ callId: string;
2363
+ providerData?: Record<string, any> | undefined;
2364
+ id?: string | undefined;
2365
+ output?: string | undefined;
2366
+ }>, z.ZodObject<{
2367
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1844
2368
  } & {
1845
2369
  id: z.ZodOptional<z.ZodString>;
1846
2370
  type: z.ZodLiteral<"reasoning">;
@@ -2061,6 +2585,68 @@ export declare const SerializedRunState: z.ZodObject<{
2061
2585
  };
2062
2586
  providerData?: Record<string, any> | undefined;
2063
2587
  id?: string | undefined;
2588
+ } | {
2589
+ type: "shell_call";
2590
+ callId: string;
2591
+ action: {
2592
+ commands: string[];
2593
+ timeoutMs?: number | undefined;
2594
+ maxOutputLength?: number | undefined;
2595
+ };
2596
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
2597
+ providerData?: Record<string, any> | undefined;
2598
+ id?: string | undefined;
2599
+ } | {
2600
+ type: "shell_call_output";
2601
+ output: z.objectOutputType<{
2602
+ stdout: z.ZodString;
2603
+ stderr: z.ZodString;
2604
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2605
+ type: z.ZodLiteral<"timeout">;
2606
+ }, "strip", z.ZodTypeAny, {
2607
+ type: "timeout";
2608
+ }, {
2609
+ type: "timeout";
2610
+ }>, z.ZodObject<{
2611
+ type: z.ZodLiteral<"exit">;
2612
+ exitCode: z.ZodNullable<z.ZodNumber>;
2613
+ }, "strip", z.ZodTypeAny, {
2614
+ type: "exit";
2615
+ exitCode: number | null;
2616
+ }, {
2617
+ type: "exit";
2618
+ exitCode: number | null;
2619
+ }>]>;
2620
+ }, z.ZodTypeAny, "passthrough">[];
2621
+ callId: string;
2622
+ providerData?: Record<string, any> | undefined;
2623
+ id?: string | undefined;
2624
+ maxOutputLength?: number | undefined;
2625
+ } | {
2626
+ type: "apply_patch_call";
2627
+ status: "in_progress" | "completed";
2628
+ callId: string;
2629
+ operation: {
2630
+ path: string;
2631
+ type: "create_file";
2632
+ diff: string;
2633
+ } | {
2634
+ path: string;
2635
+ type: "update_file";
2636
+ diff: string;
2637
+ } | {
2638
+ path: string;
2639
+ type: "delete_file";
2640
+ };
2641
+ providerData?: Record<string, any> | undefined;
2642
+ id?: string | undefined;
2643
+ } | {
2644
+ type: "apply_patch_call_output";
2645
+ status: "completed" | "failed";
2646
+ callId: string;
2647
+ providerData?: Record<string, any> | undefined;
2648
+ id?: string | undefined;
2649
+ output?: string | undefined;
2064
2650
  } | {
2065
2651
  type: "reasoning";
2066
2652
  content: {
@@ -2232,6 +2818,68 @@ export declare const SerializedRunState: z.ZodObject<{
2232
2818
  };
2233
2819
  providerData?: Record<string, any> | undefined;
2234
2820
  id?: string | undefined;
2821
+ } | {
2822
+ type: "shell_call";
2823
+ callId: string;
2824
+ action: {
2825
+ commands: string[];
2826
+ timeoutMs?: number | undefined;
2827
+ maxOutputLength?: number | undefined;
2828
+ };
2829
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
2830
+ providerData?: Record<string, any> | undefined;
2831
+ id?: string | undefined;
2832
+ } | {
2833
+ type: "shell_call_output";
2834
+ output: z.objectInputType<{
2835
+ stdout: z.ZodString;
2836
+ stderr: z.ZodString;
2837
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2838
+ type: z.ZodLiteral<"timeout">;
2839
+ }, "strip", z.ZodTypeAny, {
2840
+ type: "timeout";
2841
+ }, {
2842
+ type: "timeout";
2843
+ }>, z.ZodObject<{
2844
+ type: z.ZodLiteral<"exit">;
2845
+ exitCode: z.ZodNullable<z.ZodNumber>;
2846
+ }, "strip", z.ZodTypeAny, {
2847
+ type: "exit";
2848
+ exitCode: number | null;
2849
+ }, {
2850
+ type: "exit";
2851
+ exitCode: number | null;
2852
+ }>]>;
2853
+ }, z.ZodTypeAny, "passthrough">[];
2854
+ callId: string;
2855
+ providerData?: Record<string, any> | undefined;
2856
+ id?: string | undefined;
2857
+ maxOutputLength?: number | undefined;
2858
+ } | {
2859
+ type: "apply_patch_call";
2860
+ status: "in_progress" | "completed";
2861
+ callId: string;
2862
+ operation: {
2863
+ path: string;
2864
+ type: "create_file";
2865
+ diff: string;
2866
+ } | {
2867
+ path: string;
2868
+ type: "update_file";
2869
+ diff: string;
2870
+ } | {
2871
+ path: string;
2872
+ type: "delete_file";
2873
+ };
2874
+ providerData?: Record<string, any> | undefined;
2875
+ id?: string | undefined;
2876
+ } | {
2877
+ type: "apply_patch_call_output";
2878
+ status: "completed" | "failed";
2879
+ callId: string;
2880
+ providerData?: Record<string, any> | undefined;
2881
+ id?: string | undefined;
2882
+ output?: string | undefined;
2235
2883
  } | {
2236
2884
  type: "reasoning";
2237
2885
  content: {
@@ -2856,6 +3504,127 @@ export declare const SerializedRunState: z.ZodObject<{
2856
3504
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2857
3505
  } & {
2858
3506
  id: z.ZodOptional<z.ZodString>;
3507
+ } & {
3508
+ type: z.ZodLiteral<"shell_call">;
3509
+ callId: z.ZodString;
3510
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
3511
+ action: z.ZodObject<{
3512
+ commands: z.ZodArray<z.ZodString, "many">;
3513
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
3514
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
3515
+ }, "strip", z.ZodTypeAny, {
3516
+ commands: string[];
3517
+ timeoutMs?: number | undefined;
3518
+ maxOutputLength?: number | undefined;
3519
+ }, {
3520
+ commands: string[];
3521
+ timeoutMs?: number | undefined;
3522
+ maxOutputLength?: number | undefined;
3523
+ }>;
3524
+ }, "strip", z.ZodTypeAny, {
3525
+ type: "shell_call";
3526
+ callId: string;
3527
+ action: {
3528
+ commands: string[];
3529
+ timeoutMs?: number | undefined;
3530
+ maxOutputLength?: number | undefined;
3531
+ };
3532
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
3533
+ providerData?: Record<string, any> | undefined;
3534
+ id?: string | undefined;
3535
+ }, {
3536
+ type: "shell_call";
3537
+ callId: string;
3538
+ action: {
3539
+ commands: string[];
3540
+ timeoutMs?: number | undefined;
3541
+ maxOutputLength?: number | undefined;
3542
+ };
3543
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
3544
+ providerData?: Record<string, any> | undefined;
3545
+ id?: string | undefined;
3546
+ }>, z.ZodObject<{
3547
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3548
+ } & {
3549
+ id: z.ZodOptional<z.ZodString>;
3550
+ } & {
3551
+ type: z.ZodLiteral<"apply_patch_call">;
3552
+ callId: z.ZodString;
3553
+ status: z.ZodEnum<["in_progress", "completed"]>;
3554
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3555
+ type: z.ZodLiteral<"create_file">;
3556
+ path: z.ZodString;
3557
+ diff: z.ZodString;
3558
+ }, "strip", z.ZodTypeAny, {
3559
+ path: string;
3560
+ type: "create_file";
3561
+ diff: string;
3562
+ }, {
3563
+ path: string;
3564
+ type: "create_file";
3565
+ diff: string;
3566
+ }>, z.ZodObject<{
3567
+ type: z.ZodLiteral<"update_file">;
3568
+ path: z.ZodString;
3569
+ diff: z.ZodString;
3570
+ }, "strip", z.ZodTypeAny, {
3571
+ path: string;
3572
+ type: "update_file";
3573
+ diff: string;
3574
+ }, {
3575
+ path: string;
3576
+ type: "update_file";
3577
+ diff: string;
3578
+ }>, z.ZodObject<{
3579
+ type: z.ZodLiteral<"delete_file">;
3580
+ path: z.ZodString;
3581
+ }, "strip", z.ZodTypeAny, {
3582
+ path: string;
3583
+ type: "delete_file";
3584
+ }, {
3585
+ path: string;
3586
+ type: "delete_file";
3587
+ }>]>;
3588
+ }, "strip", z.ZodTypeAny, {
3589
+ type: "apply_patch_call";
3590
+ status: "in_progress" | "completed";
3591
+ callId: string;
3592
+ operation: {
3593
+ path: string;
3594
+ type: "create_file";
3595
+ diff: string;
3596
+ } | {
3597
+ path: string;
3598
+ type: "update_file";
3599
+ diff: string;
3600
+ } | {
3601
+ path: string;
3602
+ type: "delete_file";
3603
+ };
3604
+ providerData?: Record<string, any> | undefined;
3605
+ id?: string | undefined;
3606
+ }, {
3607
+ type: "apply_patch_call";
3608
+ status: "in_progress" | "completed";
3609
+ callId: string;
3610
+ operation: {
3611
+ path: string;
3612
+ type: "create_file";
3613
+ diff: string;
3614
+ } | {
3615
+ path: string;
3616
+ type: "update_file";
3617
+ diff: string;
3618
+ } | {
3619
+ path: string;
3620
+ type: "delete_file";
3621
+ };
3622
+ providerData?: Record<string, any> | undefined;
3623
+ id?: string | undefined;
3624
+ }>, z.ZodObject<{
3625
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3626
+ } & {
3627
+ id: z.ZodOptional<z.ZodString>;
2859
3628
  } & {
2860
3629
  type: z.ZodLiteral<"function_call_result">;
2861
3630
  name: z.ZodString;
@@ -3182,6 +3951,147 @@ export declare const SerializedRunState: z.ZodObject<{
3182
3951
  id?: string | undefined;
3183
3952
  }>, z.ZodObject<{
3184
3953
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3954
+ } & {
3955
+ id: z.ZodOptional<z.ZodString>;
3956
+ } & {
3957
+ type: z.ZodLiteral<"shell_call_output">;
3958
+ callId: z.ZodString;
3959
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
3960
+ output: z.ZodArray<z.ZodObject<{
3961
+ stdout: z.ZodString;
3962
+ stderr: z.ZodString;
3963
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3964
+ type: z.ZodLiteral<"timeout">;
3965
+ }, "strip", z.ZodTypeAny, {
3966
+ type: "timeout";
3967
+ }, {
3968
+ type: "timeout";
3969
+ }>, z.ZodObject<{
3970
+ type: z.ZodLiteral<"exit">;
3971
+ exitCode: z.ZodNullable<z.ZodNumber>;
3972
+ }, "strip", z.ZodTypeAny, {
3973
+ type: "exit";
3974
+ exitCode: number | null;
3975
+ }, {
3976
+ type: "exit";
3977
+ exitCode: number | null;
3978
+ }>]>;
3979
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3980
+ stdout: z.ZodString;
3981
+ stderr: z.ZodString;
3982
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3983
+ type: z.ZodLiteral<"timeout">;
3984
+ }, "strip", z.ZodTypeAny, {
3985
+ type: "timeout";
3986
+ }, {
3987
+ type: "timeout";
3988
+ }>, z.ZodObject<{
3989
+ type: z.ZodLiteral<"exit">;
3990
+ exitCode: z.ZodNullable<z.ZodNumber>;
3991
+ }, "strip", z.ZodTypeAny, {
3992
+ type: "exit";
3993
+ exitCode: number | null;
3994
+ }, {
3995
+ type: "exit";
3996
+ exitCode: number | null;
3997
+ }>]>;
3998
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3999
+ stdout: z.ZodString;
4000
+ stderr: z.ZodString;
4001
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4002
+ type: z.ZodLiteral<"timeout">;
4003
+ }, "strip", z.ZodTypeAny, {
4004
+ type: "timeout";
4005
+ }, {
4006
+ type: "timeout";
4007
+ }>, z.ZodObject<{
4008
+ type: z.ZodLiteral<"exit">;
4009
+ exitCode: z.ZodNullable<z.ZodNumber>;
4010
+ }, "strip", z.ZodTypeAny, {
4011
+ type: "exit";
4012
+ exitCode: number | null;
4013
+ }, {
4014
+ type: "exit";
4015
+ exitCode: number | null;
4016
+ }>]>;
4017
+ }, z.ZodTypeAny, "passthrough">>, "many">;
4018
+ }, "strip", z.ZodTypeAny, {
4019
+ type: "shell_call_output";
4020
+ output: z.objectOutputType<{
4021
+ stdout: z.ZodString;
4022
+ stderr: z.ZodString;
4023
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4024
+ type: z.ZodLiteral<"timeout">;
4025
+ }, "strip", z.ZodTypeAny, {
4026
+ type: "timeout";
4027
+ }, {
4028
+ type: "timeout";
4029
+ }>, z.ZodObject<{
4030
+ type: z.ZodLiteral<"exit">;
4031
+ exitCode: z.ZodNullable<z.ZodNumber>;
4032
+ }, "strip", z.ZodTypeAny, {
4033
+ type: "exit";
4034
+ exitCode: number | null;
4035
+ }, {
4036
+ type: "exit";
4037
+ exitCode: number | null;
4038
+ }>]>;
4039
+ }, z.ZodTypeAny, "passthrough">[];
4040
+ callId: string;
4041
+ providerData?: Record<string, any> | undefined;
4042
+ id?: string | undefined;
4043
+ maxOutputLength?: number | undefined;
4044
+ }, {
4045
+ type: "shell_call_output";
4046
+ output: z.objectInputType<{
4047
+ stdout: z.ZodString;
4048
+ stderr: z.ZodString;
4049
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4050
+ type: z.ZodLiteral<"timeout">;
4051
+ }, "strip", z.ZodTypeAny, {
4052
+ type: "timeout";
4053
+ }, {
4054
+ type: "timeout";
4055
+ }>, z.ZodObject<{
4056
+ type: z.ZodLiteral<"exit">;
4057
+ exitCode: z.ZodNullable<z.ZodNumber>;
4058
+ }, "strip", z.ZodTypeAny, {
4059
+ type: "exit";
4060
+ exitCode: number | null;
4061
+ }, {
4062
+ type: "exit";
4063
+ exitCode: number | null;
4064
+ }>]>;
4065
+ }, z.ZodTypeAny, "passthrough">[];
4066
+ callId: string;
4067
+ providerData?: Record<string, any> | undefined;
4068
+ id?: string | undefined;
4069
+ maxOutputLength?: number | undefined;
4070
+ }>, z.ZodObject<{
4071
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4072
+ } & {
4073
+ id: z.ZodOptional<z.ZodString>;
4074
+ } & {
4075
+ type: z.ZodLiteral<"apply_patch_call_output">;
4076
+ callId: z.ZodString;
4077
+ status: z.ZodEnum<["completed", "failed"]>;
4078
+ output: z.ZodOptional<z.ZodString>;
4079
+ }, "strip", z.ZodTypeAny, {
4080
+ type: "apply_patch_call_output";
4081
+ status: "completed" | "failed";
4082
+ callId: string;
4083
+ providerData?: Record<string, any> | undefined;
4084
+ id?: string | undefined;
4085
+ output?: string | undefined;
4086
+ }, {
4087
+ type: "apply_patch_call_output";
4088
+ status: "completed" | "failed";
4089
+ callId: string;
4090
+ providerData?: Record<string, any> | undefined;
4091
+ id?: string | undefined;
4092
+ output?: string | undefined;
4093
+ }>, z.ZodObject<{
4094
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3185
4095
  } & {
3186
4096
  id: z.ZodOptional<z.ZodString>;
3187
4097
  type: z.ZodLiteral<"reasoning">;
@@ -3402,6 +4312,68 @@ export declare const SerializedRunState: z.ZodObject<{
3402
4312
  };
3403
4313
  providerData?: Record<string, any> | undefined;
3404
4314
  id?: string | undefined;
4315
+ } | {
4316
+ type: "shell_call";
4317
+ callId: string;
4318
+ action: {
4319
+ commands: string[];
4320
+ timeoutMs?: number | undefined;
4321
+ maxOutputLength?: number | undefined;
4322
+ };
4323
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
4324
+ providerData?: Record<string, any> | undefined;
4325
+ id?: string | undefined;
4326
+ } | {
4327
+ type: "shell_call_output";
4328
+ output: z.objectOutputType<{
4329
+ stdout: z.ZodString;
4330
+ stderr: z.ZodString;
4331
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4332
+ type: z.ZodLiteral<"timeout">;
4333
+ }, "strip", z.ZodTypeAny, {
4334
+ type: "timeout";
4335
+ }, {
4336
+ type: "timeout";
4337
+ }>, z.ZodObject<{
4338
+ type: z.ZodLiteral<"exit">;
4339
+ exitCode: z.ZodNullable<z.ZodNumber>;
4340
+ }, "strip", z.ZodTypeAny, {
4341
+ type: "exit";
4342
+ exitCode: number | null;
4343
+ }, {
4344
+ type: "exit";
4345
+ exitCode: number | null;
4346
+ }>]>;
4347
+ }, z.ZodTypeAny, "passthrough">[];
4348
+ callId: string;
4349
+ providerData?: Record<string, any> | undefined;
4350
+ id?: string | undefined;
4351
+ maxOutputLength?: number | undefined;
4352
+ } | {
4353
+ type: "apply_patch_call";
4354
+ status: "in_progress" | "completed";
4355
+ callId: string;
4356
+ operation: {
4357
+ path: string;
4358
+ type: "create_file";
4359
+ diff: string;
4360
+ } | {
4361
+ path: string;
4362
+ type: "update_file";
4363
+ diff: string;
4364
+ } | {
4365
+ path: string;
4366
+ type: "delete_file";
4367
+ };
4368
+ providerData?: Record<string, any> | undefined;
4369
+ id?: string | undefined;
4370
+ } | {
4371
+ type: "apply_patch_call_output";
4372
+ status: "completed" | "failed";
4373
+ callId: string;
4374
+ providerData?: Record<string, any> | undefined;
4375
+ id?: string | undefined;
4376
+ output?: string | undefined;
3405
4377
  } | {
3406
4378
  type: "reasoning";
3407
4379
  content: {
@@ -3573,6 +4545,68 @@ export declare const SerializedRunState: z.ZodObject<{
3573
4545
  };
3574
4546
  providerData?: Record<string, any> | undefined;
3575
4547
  id?: string | undefined;
4548
+ } | {
4549
+ type: "shell_call";
4550
+ callId: string;
4551
+ action: {
4552
+ commands: string[];
4553
+ timeoutMs?: number | undefined;
4554
+ maxOutputLength?: number | undefined;
4555
+ };
4556
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
4557
+ providerData?: Record<string, any> | undefined;
4558
+ id?: string | undefined;
4559
+ } | {
4560
+ type: "shell_call_output";
4561
+ output: z.objectInputType<{
4562
+ stdout: z.ZodString;
4563
+ stderr: z.ZodString;
4564
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4565
+ type: z.ZodLiteral<"timeout">;
4566
+ }, "strip", z.ZodTypeAny, {
4567
+ type: "timeout";
4568
+ }, {
4569
+ type: "timeout";
4570
+ }>, z.ZodObject<{
4571
+ type: z.ZodLiteral<"exit">;
4572
+ exitCode: z.ZodNullable<z.ZodNumber>;
4573
+ }, "strip", z.ZodTypeAny, {
4574
+ type: "exit";
4575
+ exitCode: number | null;
4576
+ }, {
4577
+ type: "exit";
4578
+ exitCode: number | null;
4579
+ }>]>;
4580
+ }, z.ZodTypeAny, "passthrough">[];
4581
+ callId: string;
4582
+ providerData?: Record<string, any> | undefined;
4583
+ id?: string | undefined;
4584
+ maxOutputLength?: number | undefined;
4585
+ } | {
4586
+ type: "apply_patch_call";
4587
+ status: "in_progress" | "completed";
4588
+ callId: string;
4589
+ operation: {
4590
+ path: string;
4591
+ type: "create_file";
4592
+ diff: string;
4593
+ } | {
4594
+ path: string;
4595
+ type: "update_file";
4596
+ diff: string;
4597
+ } | {
4598
+ path: string;
4599
+ type: "delete_file";
4600
+ };
4601
+ providerData?: Record<string, any> | undefined;
4602
+ id?: string | undefined;
4603
+ } | {
4604
+ type: "apply_patch_call_output";
4605
+ status: "completed" | "failed";
4606
+ callId: string;
4607
+ providerData?: Record<string, any> | undefined;
4608
+ id?: string | undefined;
4609
+ output?: string | undefined;
3576
4610
  } | {
3577
4611
  type: "reasoning";
3578
4612
  content: {
@@ -4019,6 +5053,127 @@ export declare const SerializedRunState: z.ZodObject<{
4019
5053
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4020
5054
  } & {
4021
5055
  id: z.ZodOptional<z.ZodString>;
5056
+ } & {
5057
+ type: z.ZodLiteral<"shell_call">;
5058
+ callId: z.ZodString;
5059
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
5060
+ action: z.ZodObject<{
5061
+ commands: z.ZodArray<z.ZodString, "many">;
5062
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
5063
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
5064
+ }, "strip", z.ZodTypeAny, {
5065
+ commands: string[];
5066
+ timeoutMs?: number | undefined;
5067
+ maxOutputLength?: number | undefined;
5068
+ }, {
5069
+ commands: string[];
5070
+ timeoutMs?: number | undefined;
5071
+ maxOutputLength?: number | undefined;
5072
+ }>;
5073
+ }, "strip", z.ZodTypeAny, {
5074
+ type: "shell_call";
5075
+ callId: string;
5076
+ action: {
5077
+ commands: string[];
5078
+ timeoutMs?: number | undefined;
5079
+ maxOutputLength?: number | undefined;
5080
+ };
5081
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
5082
+ providerData?: Record<string, any> | undefined;
5083
+ id?: string | undefined;
5084
+ }, {
5085
+ type: "shell_call";
5086
+ callId: string;
5087
+ action: {
5088
+ commands: string[];
5089
+ timeoutMs?: number | undefined;
5090
+ maxOutputLength?: number | undefined;
5091
+ };
5092
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
5093
+ providerData?: Record<string, any> | undefined;
5094
+ id?: string | undefined;
5095
+ }>, z.ZodObject<{
5096
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5097
+ } & {
5098
+ id: z.ZodOptional<z.ZodString>;
5099
+ } & {
5100
+ type: z.ZodLiteral<"apply_patch_call">;
5101
+ callId: z.ZodString;
5102
+ status: z.ZodEnum<["in_progress", "completed"]>;
5103
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5104
+ type: z.ZodLiteral<"create_file">;
5105
+ path: z.ZodString;
5106
+ diff: z.ZodString;
5107
+ }, "strip", z.ZodTypeAny, {
5108
+ path: string;
5109
+ type: "create_file";
5110
+ diff: string;
5111
+ }, {
5112
+ path: string;
5113
+ type: "create_file";
5114
+ diff: string;
5115
+ }>, z.ZodObject<{
5116
+ type: z.ZodLiteral<"update_file">;
5117
+ path: z.ZodString;
5118
+ diff: z.ZodString;
5119
+ }, "strip", z.ZodTypeAny, {
5120
+ path: string;
5121
+ type: "update_file";
5122
+ diff: string;
5123
+ }, {
5124
+ path: string;
5125
+ type: "update_file";
5126
+ diff: string;
5127
+ }>, z.ZodObject<{
5128
+ type: z.ZodLiteral<"delete_file">;
5129
+ path: z.ZodString;
5130
+ }, "strip", z.ZodTypeAny, {
5131
+ path: string;
5132
+ type: "delete_file";
5133
+ }, {
5134
+ path: string;
5135
+ type: "delete_file";
5136
+ }>]>;
5137
+ }, "strip", z.ZodTypeAny, {
5138
+ type: "apply_patch_call";
5139
+ status: "in_progress" | "completed";
5140
+ callId: string;
5141
+ operation: {
5142
+ path: string;
5143
+ type: "create_file";
5144
+ diff: string;
5145
+ } | {
5146
+ path: string;
5147
+ type: "update_file";
5148
+ diff: string;
5149
+ } | {
5150
+ path: string;
5151
+ type: "delete_file";
5152
+ };
5153
+ providerData?: Record<string, any> | undefined;
5154
+ id?: string | undefined;
5155
+ }, {
5156
+ type: "apply_patch_call";
5157
+ status: "in_progress" | "completed";
5158
+ callId: string;
5159
+ operation: {
5160
+ path: string;
5161
+ type: "create_file";
5162
+ diff: string;
5163
+ } | {
5164
+ path: string;
5165
+ type: "update_file";
5166
+ diff: string;
5167
+ } | {
5168
+ path: string;
5169
+ type: "delete_file";
5170
+ };
5171
+ providerData?: Record<string, any> | undefined;
5172
+ id?: string | undefined;
5173
+ }>, z.ZodObject<{
5174
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5175
+ } & {
5176
+ id: z.ZodOptional<z.ZodString>;
4022
5177
  } & {
4023
5178
  type: z.ZodLiteral<"function_call">;
4024
5179
  callId: z.ZodString;
@@ -4164,6 +5319,35 @@ export declare const SerializedRunState: z.ZodObject<{
4164
5319
  };
4165
5320
  providerData?: Record<string, any> | undefined;
4166
5321
  id?: string | undefined;
5322
+ } | {
5323
+ type: "shell_call";
5324
+ callId: string;
5325
+ action: {
5326
+ commands: string[];
5327
+ timeoutMs?: number | undefined;
5328
+ maxOutputLength?: number | undefined;
5329
+ };
5330
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
5331
+ providerData?: Record<string, any> | undefined;
5332
+ id?: string | undefined;
5333
+ } | {
5334
+ type: "apply_patch_call";
5335
+ status: "in_progress" | "completed";
5336
+ callId: string;
5337
+ operation: {
5338
+ path: string;
5339
+ type: "create_file";
5340
+ diff: string;
5341
+ } | {
5342
+ path: string;
5343
+ type: "update_file";
5344
+ diff: string;
5345
+ } | {
5346
+ path: string;
5347
+ type: "delete_file";
5348
+ };
5349
+ providerData?: Record<string, any> | undefined;
5350
+ id?: string | undefined;
4167
5351
  };
4168
5352
  }, {
4169
5353
  type: "tool_call_item";
@@ -4228,6 +5412,35 @@ export declare const SerializedRunState: z.ZodObject<{
4228
5412
  };
4229
5413
  providerData?: Record<string, any> | undefined;
4230
5414
  id?: string | undefined;
5415
+ } | {
5416
+ type: "shell_call";
5417
+ callId: string;
5418
+ action: {
5419
+ commands: string[];
5420
+ timeoutMs?: number | undefined;
5421
+ maxOutputLength?: number | undefined;
5422
+ };
5423
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
5424
+ providerData?: Record<string, any> | undefined;
5425
+ id?: string | undefined;
5426
+ } | {
5427
+ type: "apply_patch_call";
5428
+ status: "in_progress" | "completed";
5429
+ callId: string;
5430
+ operation: {
5431
+ path: string;
5432
+ type: "create_file";
5433
+ diff: string;
5434
+ } | {
5435
+ path: string;
5436
+ type: "update_file";
5437
+ diff: string;
5438
+ } | {
5439
+ path: string;
5440
+ type: "delete_file";
5441
+ };
5442
+ providerData?: Record<string, any> | undefined;
5443
+ id?: string | undefined;
4231
5444
  };
4232
5445
  }>, z.ZodObject<{
4233
5446
  type: z.ZodLiteral<"tool_call_output_item">;
@@ -5354,7 +6567,7 @@ export declare const SerializedRunState: z.ZodObject<{
5354
6567
  };
5355
6568
  }>, z.ZodObject<{
5356
6569
  type: z.ZodLiteral<"tool_approval_item">;
5357
- rawItem: z.ZodUnion<[z.ZodObject<{
6570
+ rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5358
6571
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5359
6572
  } & {
5360
6573
  id: z.ZodOptional<z.ZodString>;
@@ -5406,6 +6619,127 @@ export declare const SerializedRunState: z.ZodObject<{
5406
6619
  id?: string | undefined;
5407
6620
  arguments?: string | undefined;
5408
6621
  output?: string | undefined;
6622
+ }>]>, z.ZodObject<{
6623
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6624
+ } & {
6625
+ id: z.ZodOptional<z.ZodString>;
6626
+ } & {
6627
+ type: z.ZodLiteral<"shell_call">;
6628
+ callId: z.ZodString;
6629
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
6630
+ action: z.ZodObject<{
6631
+ commands: z.ZodArray<z.ZodString, "many">;
6632
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
6633
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
6634
+ }, "strip", z.ZodTypeAny, {
6635
+ commands: string[];
6636
+ timeoutMs?: number | undefined;
6637
+ maxOutputLength?: number | undefined;
6638
+ }, {
6639
+ commands: string[];
6640
+ timeoutMs?: number | undefined;
6641
+ maxOutputLength?: number | undefined;
6642
+ }>;
6643
+ }, "strip", z.ZodTypeAny, {
6644
+ type: "shell_call";
6645
+ callId: string;
6646
+ action: {
6647
+ commands: string[];
6648
+ timeoutMs?: number | undefined;
6649
+ maxOutputLength?: number | undefined;
6650
+ };
6651
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
6652
+ providerData?: Record<string, any> | undefined;
6653
+ id?: string | undefined;
6654
+ }, {
6655
+ type: "shell_call";
6656
+ callId: string;
6657
+ action: {
6658
+ commands: string[];
6659
+ timeoutMs?: number | undefined;
6660
+ maxOutputLength?: number | undefined;
6661
+ };
6662
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
6663
+ providerData?: Record<string, any> | undefined;
6664
+ id?: string | undefined;
6665
+ }>]>, z.ZodObject<{
6666
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6667
+ } & {
6668
+ id: z.ZodOptional<z.ZodString>;
6669
+ } & {
6670
+ type: z.ZodLiteral<"apply_patch_call">;
6671
+ callId: z.ZodString;
6672
+ status: z.ZodEnum<["in_progress", "completed"]>;
6673
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6674
+ type: z.ZodLiteral<"create_file">;
6675
+ path: z.ZodString;
6676
+ diff: z.ZodString;
6677
+ }, "strip", z.ZodTypeAny, {
6678
+ path: string;
6679
+ type: "create_file";
6680
+ diff: string;
6681
+ }, {
6682
+ path: string;
6683
+ type: "create_file";
6684
+ diff: string;
6685
+ }>, z.ZodObject<{
6686
+ type: z.ZodLiteral<"update_file">;
6687
+ path: z.ZodString;
6688
+ diff: z.ZodString;
6689
+ }, "strip", z.ZodTypeAny, {
6690
+ path: string;
6691
+ type: "update_file";
6692
+ diff: string;
6693
+ }, {
6694
+ path: string;
6695
+ type: "update_file";
6696
+ diff: string;
6697
+ }>, z.ZodObject<{
6698
+ type: z.ZodLiteral<"delete_file">;
6699
+ path: z.ZodString;
6700
+ }, "strip", z.ZodTypeAny, {
6701
+ path: string;
6702
+ type: "delete_file";
6703
+ }, {
6704
+ path: string;
6705
+ type: "delete_file";
6706
+ }>]>;
6707
+ }, "strip", z.ZodTypeAny, {
6708
+ type: "apply_patch_call";
6709
+ status: "in_progress" | "completed";
6710
+ callId: string;
6711
+ operation: {
6712
+ path: string;
6713
+ type: "create_file";
6714
+ diff: string;
6715
+ } | {
6716
+ path: string;
6717
+ type: "update_file";
6718
+ diff: string;
6719
+ } | {
6720
+ path: string;
6721
+ type: "delete_file";
6722
+ };
6723
+ providerData?: Record<string, any> | undefined;
6724
+ id?: string | undefined;
6725
+ }, {
6726
+ type: "apply_patch_call";
6727
+ status: "in_progress" | "completed";
6728
+ callId: string;
6729
+ operation: {
6730
+ path: string;
6731
+ type: "create_file";
6732
+ diff: string;
6733
+ } | {
6734
+ path: string;
6735
+ type: "update_file";
6736
+ diff: string;
6737
+ } | {
6738
+ path: string;
6739
+ type: "delete_file";
6740
+ };
6741
+ providerData?: Record<string, any> | undefined;
6742
+ id?: string | undefined;
5409
6743
  }>]>;
5410
6744
  agent: z.ZodObject<{
5411
6745
  name: z.ZodString;
@@ -5414,6 +6748,7 @@ export declare const SerializedRunState: z.ZodObject<{
5414
6748
  }, {
5415
6749
  name: string;
5416
6750
  }>;
6751
+ toolName: z.ZodOptional<z.ZodString>;
5417
6752
  }, "strip", z.ZodTypeAny, {
5418
6753
  type: "tool_approval_item";
5419
6754
  agent: {
@@ -5435,7 +6770,37 @@ export declare const SerializedRunState: z.ZodObject<{
5435
6770
  status?: "in_progress" | "completed" | "incomplete" | undefined;
5436
6771
  providerData?: Record<string, any> | undefined;
5437
6772
  id?: string | undefined;
6773
+ } | {
6774
+ type: "shell_call";
6775
+ callId: string;
6776
+ action: {
6777
+ commands: string[];
6778
+ timeoutMs?: number | undefined;
6779
+ maxOutputLength?: number | undefined;
6780
+ };
6781
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
6782
+ providerData?: Record<string, any> | undefined;
6783
+ id?: string | undefined;
6784
+ } | {
6785
+ type: "apply_patch_call";
6786
+ status: "in_progress" | "completed";
6787
+ callId: string;
6788
+ operation: {
6789
+ path: string;
6790
+ type: "create_file";
6791
+ diff: string;
6792
+ } | {
6793
+ path: string;
6794
+ type: "update_file";
6795
+ diff: string;
6796
+ } | {
6797
+ path: string;
6798
+ type: "delete_file";
6799
+ };
6800
+ providerData?: Record<string, any> | undefined;
6801
+ id?: string | undefined;
5438
6802
  };
6803
+ toolName?: string | undefined;
5439
6804
  }, {
5440
6805
  type: "tool_approval_item";
5441
6806
  agent: {
@@ -5457,7 +6822,37 @@ export declare const SerializedRunState: z.ZodObject<{
5457
6822
  status?: "in_progress" | "completed" | "incomplete" | undefined;
5458
6823
  providerData?: Record<string, any> | undefined;
5459
6824
  id?: string | undefined;
6825
+ } | {
6826
+ type: "shell_call";
6827
+ callId: string;
6828
+ action: {
6829
+ commands: string[];
6830
+ timeoutMs?: number | undefined;
6831
+ maxOutputLength?: number | undefined;
6832
+ };
6833
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
6834
+ providerData?: Record<string, any> | undefined;
6835
+ id?: string | undefined;
6836
+ } | {
6837
+ type: "apply_patch_call";
6838
+ status: "in_progress" | "completed";
6839
+ callId: string;
6840
+ operation: {
6841
+ path: string;
6842
+ type: "create_file";
6843
+ diff: string;
6844
+ } | {
6845
+ path: string;
6846
+ type: "update_file";
6847
+ diff: string;
6848
+ } | {
6849
+ path: string;
6850
+ type: "delete_file";
6851
+ };
6852
+ providerData?: Record<string, any> | undefined;
6853
+ id?: string | undefined;
5460
6854
  };
6855
+ toolName?: string | undefined;
5461
6856
  }>]>, "many">;
5462
6857
  lastProcessedResponse: z.ZodOptional<z.ZodObject<{
5463
6858
  newItems: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -5857,20 +7252,141 @@ export declare const SerializedRunState: z.ZodObject<{
5857
7252
  type: "type";
5858
7253
  text: string;
5859
7254
  } | {
5860
- type: "wait";
7255
+ type: "wait";
7256
+ } | {
7257
+ type: "move";
7258
+ x: number;
7259
+ y: number;
7260
+ } | {
7261
+ keys: string[];
7262
+ type: "keypress";
7263
+ } | {
7264
+ path: {
7265
+ x: number;
7266
+ y: number;
7267
+ }[];
7268
+ type: "drag";
7269
+ };
7270
+ providerData?: Record<string, any> | undefined;
7271
+ id?: string | undefined;
7272
+ }>, z.ZodObject<{
7273
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7274
+ } & {
7275
+ id: z.ZodOptional<z.ZodString>;
7276
+ } & {
7277
+ type: z.ZodLiteral<"shell_call">;
7278
+ callId: z.ZodString;
7279
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
7280
+ action: z.ZodObject<{
7281
+ commands: z.ZodArray<z.ZodString, "many">;
7282
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
7283
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
7284
+ }, "strip", z.ZodTypeAny, {
7285
+ commands: string[];
7286
+ timeoutMs?: number | undefined;
7287
+ maxOutputLength?: number | undefined;
7288
+ }, {
7289
+ commands: string[];
7290
+ timeoutMs?: number | undefined;
7291
+ maxOutputLength?: number | undefined;
7292
+ }>;
7293
+ }, "strip", z.ZodTypeAny, {
7294
+ type: "shell_call";
7295
+ callId: string;
7296
+ action: {
7297
+ commands: string[];
7298
+ timeoutMs?: number | undefined;
7299
+ maxOutputLength?: number | undefined;
7300
+ };
7301
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
7302
+ providerData?: Record<string, any> | undefined;
7303
+ id?: string | undefined;
7304
+ }, {
7305
+ type: "shell_call";
7306
+ callId: string;
7307
+ action: {
7308
+ commands: string[];
7309
+ timeoutMs?: number | undefined;
7310
+ maxOutputLength?: number | undefined;
7311
+ };
7312
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
7313
+ providerData?: Record<string, any> | undefined;
7314
+ id?: string | undefined;
7315
+ }>, z.ZodObject<{
7316
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7317
+ } & {
7318
+ id: z.ZodOptional<z.ZodString>;
7319
+ } & {
7320
+ type: z.ZodLiteral<"apply_patch_call">;
7321
+ callId: z.ZodString;
7322
+ status: z.ZodEnum<["in_progress", "completed"]>;
7323
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7324
+ type: z.ZodLiteral<"create_file">;
7325
+ path: z.ZodString;
7326
+ diff: z.ZodString;
7327
+ }, "strip", z.ZodTypeAny, {
7328
+ path: string;
7329
+ type: "create_file";
7330
+ diff: string;
7331
+ }, {
7332
+ path: string;
7333
+ type: "create_file";
7334
+ diff: string;
7335
+ }>, z.ZodObject<{
7336
+ type: z.ZodLiteral<"update_file">;
7337
+ path: z.ZodString;
7338
+ diff: z.ZodString;
7339
+ }, "strip", z.ZodTypeAny, {
7340
+ path: string;
7341
+ type: "update_file";
7342
+ diff: string;
7343
+ }, {
7344
+ path: string;
7345
+ type: "update_file";
7346
+ diff: string;
7347
+ }>, z.ZodObject<{
7348
+ type: z.ZodLiteral<"delete_file">;
7349
+ path: z.ZodString;
7350
+ }, "strip", z.ZodTypeAny, {
7351
+ path: string;
7352
+ type: "delete_file";
7353
+ }, {
7354
+ path: string;
7355
+ type: "delete_file";
7356
+ }>]>;
7357
+ }, "strip", z.ZodTypeAny, {
7358
+ type: "apply_patch_call";
7359
+ status: "in_progress" | "completed";
7360
+ callId: string;
7361
+ operation: {
7362
+ path: string;
7363
+ type: "create_file";
7364
+ diff: string;
7365
+ } | {
7366
+ path: string;
7367
+ type: "update_file";
7368
+ diff: string;
5861
7369
  } | {
5862
- type: "move";
5863
- x: number;
5864
- y: number;
7370
+ path: string;
7371
+ type: "delete_file";
7372
+ };
7373
+ providerData?: Record<string, any> | undefined;
7374
+ id?: string | undefined;
7375
+ }, {
7376
+ type: "apply_patch_call";
7377
+ status: "in_progress" | "completed";
7378
+ callId: string;
7379
+ operation: {
7380
+ path: string;
7381
+ type: "create_file";
7382
+ diff: string;
5865
7383
  } | {
5866
- keys: string[];
5867
- type: "keypress";
7384
+ path: string;
7385
+ type: "update_file";
7386
+ diff: string;
5868
7387
  } | {
5869
- path: {
5870
- x: number;
5871
- y: number;
5872
- }[];
5873
- type: "drag";
7388
+ path: string;
7389
+ type: "delete_file";
5874
7390
  };
5875
7391
  providerData?: Record<string, any> | undefined;
5876
7392
  id?: string | undefined;
@@ -6023,6 +7539,35 @@ export declare const SerializedRunState: z.ZodObject<{
6023
7539
  };
6024
7540
  providerData?: Record<string, any> | undefined;
6025
7541
  id?: string | undefined;
7542
+ } | {
7543
+ type: "shell_call";
7544
+ callId: string;
7545
+ action: {
7546
+ commands: string[];
7547
+ timeoutMs?: number | undefined;
7548
+ maxOutputLength?: number | undefined;
7549
+ };
7550
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
7551
+ providerData?: Record<string, any> | undefined;
7552
+ id?: string | undefined;
7553
+ } | {
7554
+ type: "apply_patch_call";
7555
+ status: "in_progress" | "completed";
7556
+ callId: string;
7557
+ operation: {
7558
+ path: string;
7559
+ type: "create_file";
7560
+ diff: string;
7561
+ } | {
7562
+ path: string;
7563
+ type: "update_file";
7564
+ diff: string;
7565
+ } | {
7566
+ path: string;
7567
+ type: "delete_file";
7568
+ };
7569
+ providerData?: Record<string, any> | undefined;
7570
+ id?: string | undefined;
6026
7571
  };
6027
7572
  }, {
6028
7573
  type: "tool_call_item";
@@ -6087,6 +7632,35 @@ export declare const SerializedRunState: z.ZodObject<{
6087
7632
  };
6088
7633
  providerData?: Record<string, any> | undefined;
6089
7634
  id?: string | undefined;
7635
+ } | {
7636
+ type: "shell_call";
7637
+ callId: string;
7638
+ action: {
7639
+ commands: string[];
7640
+ timeoutMs?: number | undefined;
7641
+ maxOutputLength?: number | undefined;
7642
+ };
7643
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
7644
+ providerData?: Record<string, any> | undefined;
7645
+ id?: string | undefined;
7646
+ } | {
7647
+ type: "apply_patch_call";
7648
+ status: "in_progress" | "completed";
7649
+ callId: string;
7650
+ operation: {
7651
+ path: string;
7652
+ type: "create_file";
7653
+ diff: string;
7654
+ } | {
7655
+ path: string;
7656
+ type: "update_file";
7657
+ diff: string;
7658
+ } | {
7659
+ path: string;
7660
+ type: "delete_file";
7661
+ };
7662
+ providerData?: Record<string, any> | undefined;
7663
+ id?: string | undefined;
6090
7664
  };
6091
7665
  }>, z.ZodObject<{
6092
7666
  type: z.ZodLiteral<"tool_call_output_item">;
@@ -7213,7 +8787,7 @@ export declare const SerializedRunState: z.ZodObject<{
7213
8787
  };
7214
8788
  }>, z.ZodObject<{
7215
8789
  type: z.ZodLiteral<"tool_approval_item">;
7216
- rawItem: z.ZodUnion<[z.ZodObject<{
8790
+ rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
7217
8791
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7218
8792
  } & {
7219
8793
  id: z.ZodOptional<z.ZodString>;
@@ -7265,6 +8839,127 @@ export declare const SerializedRunState: z.ZodObject<{
7265
8839
  id?: string | undefined;
7266
8840
  arguments?: string | undefined;
7267
8841
  output?: string | undefined;
8842
+ }>]>, z.ZodObject<{
8843
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8844
+ } & {
8845
+ id: z.ZodOptional<z.ZodString>;
8846
+ } & {
8847
+ type: z.ZodLiteral<"shell_call">;
8848
+ callId: z.ZodString;
8849
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
8850
+ action: z.ZodObject<{
8851
+ commands: z.ZodArray<z.ZodString, "many">;
8852
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
8853
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
8854
+ }, "strip", z.ZodTypeAny, {
8855
+ commands: string[];
8856
+ timeoutMs?: number | undefined;
8857
+ maxOutputLength?: number | undefined;
8858
+ }, {
8859
+ commands: string[];
8860
+ timeoutMs?: number | undefined;
8861
+ maxOutputLength?: number | undefined;
8862
+ }>;
8863
+ }, "strip", z.ZodTypeAny, {
8864
+ type: "shell_call";
8865
+ callId: string;
8866
+ action: {
8867
+ commands: string[];
8868
+ timeoutMs?: number | undefined;
8869
+ maxOutputLength?: number | undefined;
8870
+ };
8871
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
8872
+ providerData?: Record<string, any> | undefined;
8873
+ id?: string | undefined;
8874
+ }, {
8875
+ type: "shell_call";
8876
+ callId: string;
8877
+ action: {
8878
+ commands: string[];
8879
+ timeoutMs?: number | undefined;
8880
+ maxOutputLength?: number | undefined;
8881
+ };
8882
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
8883
+ providerData?: Record<string, any> | undefined;
8884
+ id?: string | undefined;
8885
+ }>]>, z.ZodObject<{
8886
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8887
+ } & {
8888
+ id: z.ZodOptional<z.ZodString>;
8889
+ } & {
8890
+ type: z.ZodLiteral<"apply_patch_call">;
8891
+ callId: z.ZodString;
8892
+ status: z.ZodEnum<["in_progress", "completed"]>;
8893
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8894
+ type: z.ZodLiteral<"create_file">;
8895
+ path: z.ZodString;
8896
+ diff: z.ZodString;
8897
+ }, "strip", z.ZodTypeAny, {
8898
+ path: string;
8899
+ type: "create_file";
8900
+ diff: string;
8901
+ }, {
8902
+ path: string;
8903
+ type: "create_file";
8904
+ diff: string;
8905
+ }>, z.ZodObject<{
8906
+ type: z.ZodLiteral<"update_file">;
8907
+ path: z.ZodString;
8908
+ diff: z.ZodString;
8909
+ }, "strip", z.ZodTypeAny, {
8910
+ path: string;
8911
+ type: "update_file";
8912
+ diff: string;
8913
+ }, {
8914
+ path: string;
8915
+ type: "update_file";
8916
+ diff: string;
8917
+ }>, z.ZodObject<{
8918
+ type: z.ZodLiteral<"delete_file">;
8919
+ path: z.ZodString;
8920
+ }, "strip", z.ZodTypeAny, {
8921
+ path: string;
8922
+ type: "delete_file";
8923
+ }, {
8924
+ path: string;
8925
+ type: "delete_file";
8926
+ }>]>;
8927
+ }, "strip", z.ZodTypeAny, {
8928
+ type: "apply_patch_call";
8929
+ status: "in_progress" | "completed";
8930
+ callId: string;
8931
+ operation: {
8932
+ path: string;
8933
+ type: "create_file";
8934
+ diff: string;
8935
+ } | {
8936
+ path: string;
8937
+ type: "update_file";
8938
+ diff: string;
8939
+ } | {
8940
+ path: string;
8941
+ type: "delete_file";
8942
+ };
8943
+ providerData?: Record<string, any> | undefined;
8944
+ id?: string | undefined;
8945
+ }, {
8946
+ type: "apply_patch_call";
8947
+ status: "in_progress" | "completed";
8948
+ callId: string;
8949
+ operation: {
8950
+ path: string;
8951
+ type: "create_file";
8952
+ diff: string;
8953
+ } | {
8954
+ path: string;
8955
+ type: "update_file";
8956
+ diff: string;
8957
+ } | {
8958
+ path: string;
8959
+ type: "delete_file";
8960
+ };
8961
+ providerData?: Record<string, any> | undefined;
8962
+ id?: string | undefined;
7268
8963
  }>]>;
7269
8964
  agent: z.ZodObject<{
7270
8965
  name: z.ZodString;
@@ -7273,6 +8968,7 @@ export declare const SerializedRunState: z.ZodObject<{
7273
8968
  }, {
7274
8969
  name: string;
7275
8970
  }>;
8971
+ toolName: z.ZodOptional<z.ZodString>;
7276
8972
  }, "strip", z.ZodTypeAny, {
7277
8973
  type: "tool_approval_item";
7278
8974
  agent: {
@@ -7294,7 +8990,37 @@ export declare const SerializedRunState: z.ZodObject<{
7294
8990
  status?: "in_progress" | "completed" | "incomplete" | undefined;
7295
8991
  providerData?: Record<string, any> | undefined;
7296
8992
  id?: string | undefined;
8993
+ } | {
8994
+ type: "shell_call";
8995
+ callId: string;
8996
+ action: {
8997
+ commands: string[];
8998
+ timeoutMs?: number | undefined;
8999
+ maxOutputLength?: number | undefined;
9000
+ };
9001
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
9002
+ providerData?: Record<string, any> | undefined;
9003
+ id?: string | undefined;
9004
+ } | {
9005
+ type: "apply_patch_call";
9006
+ status: "in_progress" | "completed";
9007
+ callId: string;
9008
+ operation: {
9009
+ path: string;
9010
+ type: "create_file";
9011
+ diff: string;
9012
+ } | {
9013
+ path: string;
9014
+ type: "update_file";
9015
+ diff: string;
9016
+ } | {
9017
+ path: string;
9018
+ type: "delete_file";
9019
+ };
9020
+ providerData?: Record<string, any> | undefined;
9021
+ id?: string | undefined;
7297
9022
  };
9023
+ toolName?: string | undefined;
7298
9024
  }, {
7299
9025
  type: "tool_approval_item";
7300
9026
  agent: {
@@ -7316,7 +9042,37 @@ export declare const SerializedRunState: z.ZodObject<{
7316
9042
  status?: "in_progress" | "completed" | "incomplete" | undefined;
7317
9043
  providerData?: Record<string, any> | undefined;
7318
9044
  id?: string | undefined;
9045
+ } | {
9046
+ type: "shell_call";
9047
+ callId: string;
9048
+ action: {
9049
+ commands: string[];
9050
+ timeoutMs?: number | undefined;
9051
+ maxOutputLength?: number | undefined;
9052
+ };
9053
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
9054
+ providerData?: Record<string, any> | undefined;
9055
+ id?: string | undefined;
9056
+ } | {
9057
+ type: "apply_patch_call";
9058
+ status: "in_progress" | "completed";
9059
+ callId: string;
9060
+ operation: {
9061
+ path: string;
9062
+ type: "create_file";
9063
+ diff: string;
9064
+ } | {
9065
+ path: string;
9066
+ type: "update_file";
9067
+ diff: string;
9068
+ } | {
9069
+ path: string;
9070
+ type: "delete_file";
9071
+ };
9072
+ providerData?: Record<string, any> | undefined;
9073
+ id?: string | undefined;
7319
9074
  };
9075
+ toolName?: string | undefined;
7320
9076
  }>]>, "many">;
7321
9077
  toolsUsed: z.ZodArray<z.ZodString, "many">;
7322
9078
  handoffs: z.ZodArray<z.ZodObject<{
@@ -7349,6 +9105,26 @@ export declare const SerializedRunState: z.ZodObject<{
7349
9105
  computer?: any;
7350
9106
  toolCall?: any;
7351
9107
  }>, "many">;
9108
+ shellActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
9109
+ toolCall: z.ZodAny;
9110
+ shell: z.ZodAny;
9111
+ }, "strip", z.ZodTypeAny, {
9112
+ shell?: any;
9113
+ toolCall?: any;
9114
+ }, {
9115
+ shell?: any;
9116
+ toolCall?: any;
9117
+ }>, "many">>;
9118
+ applyPatchActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
9119
+ toolCall: z.ZodAny;
9120
+ applyPatch: z.ZodAny;
9121
+ }, "strip", z.ZodTypeAny, {
9122
+ toolCall?: any;
9123
+ applyPatch?: any;
9124
+ }, {
9125
+ toolCall?: any;
9126
+ applyPatch?: any;
9127
+ }>, "many">>;
7352
9128
  mcpApprovalRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
7353
9129
  requestItem: z.ZodObject<{
7354
9130
  rawItem: z.ZodObject<{
@@ -7539,6 +9315,35 @@ export declare const SerializedRunState: z.ZodObject<{
7539
9315
  };
7540
9316
  providerData?: Record<string, any> | undefined;
7541
9317
  id?: string | undefined;
9318
+ } | {
9319
+ type: "shell_call";
9320
+ callId: string;
9321
+ action: {
9322
+ commands: string[];
9323
+ timeoutMs?: number | undefined;
9324
+ maxOutputLength?: number | undefined;
9325
+ };
9326
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
9327
+ providerData?: Record<string, any> | undefined;
9328
+ id?: string | undefined;
9329
+ } | {
9330
+ type: "apply_patch_call";
9331
+ status: "in_progress" | "completed";
9332
+ callId: string;
9333
+ operation: {
9334
+ path: string;
9335
+ type: "create_file";
9336
+ diff: string;
9337
+ } | {
9338
+ path: string;
9339
+ type: "update_file";
9340
+ diff: string;
9341
+ } | {
9342
+ path: string;
9343
+ type: "delete_file";
9344
+ };
9345
+ providerData?: Record<string, any> | undefined;
9346
+ id?: string | undefined;
7542
9347
  };
7543
9348
  } | {
7544
9349
  type: "tool_call_output_item";
@@ -7727,7 +9532,37 @@ export declare const SerializedRunState: z.ZodObject<{
7727
9532
  status?: "in_progress" | "completed" | "incomplete" | undefined;
7728
9533
  providerData?: Record<string, any> | undefined;
7729
9534
  id?: string | undefined;
9535
+ } | {
9536
+ type: "shell_call";
9537
+ callId: string;
9538
+ action: {
9539
+ commands: string[];
9540
+ timeoutMs?: number | undefined;
9541
+ maxOutputLength?: number | undefined;
9542
+ };
9543
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
9544
+ providerData?: Record<string, any> | undefined;
9545
+ id?: string | undefined;
9546
+ } | {
9547
+ type: "apply_patch_call";
9548
+ status: "in_progress" | "completed";
9549
+ callId: string;
9550
+ operation: {
9551
+ path: string;
9552
+ type: "create_file";
9553
+ diff: string;
9554
+ } | {
9555
+ path: string;
9556
+ type: "update_file";
9557
+ diff: string;
9558
+ } | {
9559
+ path: string;
9560
+ type: "delete_file";
9561
+ };
9562
+ providerData?: Record<string, any> | undefined;
9563
+ id?: string | undefined;
7730
9564
  };
9565
+ toolName?: string | undefined;
7731
9566
  })[];
7732
9567
  toolsUsed: string[];
7733
9568
  functions: {
@@ -7738,6 +9573,14 @@ export declare const SerializedRunState: z.ZodObject<{
7738
9573
  computer?: any;
7739
9574
  toolCall?: any;
7740
9575
  }[];
9576
+ shellActions?: {
9577
+ shell?: any;
9578
+ toolCall?: any;
9579
+ }[] | undefined;
9580
+ applyPatchActions?: {
9581
+ toolCall?: any;
9582
+ applyPatch?: any;
9583
+ }[] | undefined;
7741
9584
  mcpApprovalRequests?: {
7742
9585
  requestItem: {
7743
9586
  rawItem: {
@@ -7856,6 +9699,35 @@ export declare const SerializedRunState: z.ZodObject<{
7856
9699
  };
7857
9700
  providerData?: Record<string, any> | undefined;
7858
9701
  id?: string | undefined;
9702
+ } | {
9703
+ type: "shell_call";
9704
+ callId: string;
9705
+ action: {
9706
+ commands: string[];
9707
+ timeoutMs?: number | undefined;
9708
+ maxOutputLength?: number | undefined;
9709
+ };
9710
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
9711
+ providerData?: Record<string, any> | undefined;
9712
+ id?: string | undefined;
9713
+ } | {
9714
+ type: "apply_patch_call";
9715
+ status: "in_progress" | "completed";
9716
+ callId: string;
9717
+ operation: {
9718
+ path: string;
9719
+ type: "create_file";
9720
+ diff: string;
9721
+ } | {
9722
+ path: string;
9723
+ type: "update_file";
9724
+ diff: string;
9725
+ } | {
9726
+ path: string;
9727
+ type: "delete_file";
9728
+ };
9729
+ providerData?: Record<string, any> | undefined;
9730
+ id?: string | undefined;
7859
9731
  };
7860
9732
  } | {
7861
9733
  type: "tool_call_output_item";
@@ -8044,7 +9916,37 @@ export declare const SerializedRunState: z.ZodObject<{
8044
9916
  status?: "in_progress" | "completed" | "incomplete" | undefined;
8045
9917
  providerData?: Record<string, any> | undefined;
8046
9918
  id?: string | undefined;
9919
+ } | {
9920
+ type: "shell_call";
9921
+ callId: string;
9922
+ action: {
9923
+ commands: string[];
9924
+ timeoutMs?: number | undefined;
9925
+ maxOutputLength?: number | undefined;
9926
+ };
9927
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
9928
+ providerData?: Record<string, any> | undefined;
9929
+ id?: string | undefined;
9930
+ } | {
9931
+ type: "apply_patch_call";
9932
+ status: "in_progress" | "completed";
9933
+ callId: string;
9934
+ operation: {
9935
+ path: string;
9936
+ type: "create_file";
9937
+ diff: string;
9938
+ } | {
9939
+ path: string;
9940
+ type: "update_file";
9941
+ diff: string;
9942
+ } | {
9943
+ path: string;
9944
+ type: "delete_file";
9945
+ };
9946
+ providerData?: Record<string, any> | undefined;
9947
+ id?: string | undefined;
8047
9948
  };
9949
+ toolName?: string | undefined;
8048
9950
  })[];
8049
9951
  toolsUsed: string[];
8050
9952
  functions: {
@@ -8055,6 +9957,14 @@ export declare const SerializedRunState: z.ZodObject<{
8055
9957
  computer?: any;
8056
9958
  toolCall?: any;
8057
9959
  }[];
9960
+ shellActions?: {
9961
+ shell?: any;
9962
+ toolCall?: any;
9963
+ }[] | undefined;
9964
+ applyPatchActions?: {
9965
+ toolCall?: any;
9966
+ applyPatch?: any;
9967
+ }[] | undefined;
8058
9968
  mcpApprovalRequests?: {
8059
9969
  requestItem: {
8060
9970
  rawItem: {
@@ -8292,6 +10202,68 @@ export declare const SerializedRunState: z.ZodObject<{
8292
10202
  callId: string;
8293
10203
  providerData?: Record<string, any> | undefined;
8294
10204
  id?: string | undefined;
10205
+ } | {
10206
+ type: "shell_call";
10207
+ callId: string;
10208
+ action: {
10209
+ commands: string[];
10210
+ timeoutMs?: number | undefined;
10211
+ maxOutputLength?: number | undefined;
10212
+ };
10213
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
10214
+ providerData?: Record<string, any> | undefined;
10215
+ id?: string | undefined;
10216
+ } | {
10217
+ type: "shell_call_output";
10218
+ output: z.objectOutputType<{
10219
+ stdout: z.ZodString;
10220
+ stderr: z.ZodString;
10221
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10222
+ type: z.ZodLiteral<"timeout">;
10223
+ }, "strip", z.ZodTypeAny, {
10224
+ type: "timeout";
10225
+ }, {
10226
+ type: "timeout";
10227
+ }>, z.ZodObject<{
10228
+ type: z.ZodLiteral<"exit">;
10229
+ exitCode: z.ZodNullable<z.ZodNumber>;
10230
+ }, "strip", z.ZodTypeAny, {
10231
+ type: "exit";
10232
+ exitCode: number | null;
10233
+ }, {
10234
+ type: "exit";
10235
+ exitCode: number | null;
10236
+ }>]>;
10237
+ }, z.ZodTypeAny, "passthrough">[];
10238
+ callId: string;
10239
+ providerData?: Record<string, any> | undefined;
10240
+ id?: string | undefined;
10241
+ maxOutputLength?: number | undefined;
10242
+ } | {
10243
+ type: "apply_patch_call";
10244
+ status: "in_progress" | "completed";
10245
+ callId: string;
10246
+ operation: {
10247
+ path: string;
10248
+ type: "create_file";
10249
+ diff: string;
10250
+ } | {
10251
+ path: string;
10252
+ type: "update_file";
10253
+ diff: string;
10254
+ } | {
10255
+ path: string;
10256
+ type: "delete_file";
10257
+ };
10258
+ providerData?: Record<string, any> | undefined;
10259
+ id?: string | undefined;
10260
+ } | {
10261
+ type: "apply_patch_call_output";
10262
+ status: "completed" | "failed";
10263
+ callId: string;
10264
+ providerData?: Record<string, any> | undefined;
10265
+ id?: string | undefined;
10266
+ output?: string | undefined;
8295
10267
  } | {
8296
10268
  type: "reasoning";
8297
10269
  content: {
@@ -8444,17 +10416,79 @@ export declare const SerializedRunState: z.ZodObject<{
8444
10416
  x: number;
8445
10417
  y: number;
8446
10418
  } | {
8447
- keys: string[];
8448
- type: "keypress";
10419
+ keys: string[];
10420
+ type: "keypress";
10421
+ } | {
10422
+ path: {
10423
+ x: number;
10424
+ y: number;
10425
+ }[];
10426
+ type: "drag";
10427
+ };
10428
+ providerData?: Record<string, any> | undefined;
10429
+ id?: string | undefined;
10430
+ } | {
10431
+ type: "shell_call";
10432
+ callId: string;
10433
+ action: {
10434
+ commands: string[];
10435
+ timeoutMs?: number | undefined;
10436
+ maxOutputLength?: number | undefined;
10437
+ };
10438
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
10439
+ providerData?: Record<string, any> | undefined;
10440
+ id?: string | undefined;
10441
+ } | {
10442
+ type: "shell_call_output";
10443
+ output: z.objectOutputType<{
10444
+ stdout: z.ZodString;
10445
+ stderr: z.ZodString;
10446
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10447
+ type: z.ZodLiteral<"timeout">;
10448
+ }, "strip", z.ZodTypeAny, {
10449
+ type: "timeout";
10450
+ }, {
10451
+ type: "timeout";
10452
+ }>, z.ZodObject<{
10453
+ type: z.ZodLiteral<"exit">;
10454
+ exitCode: z.ZodNullable<z.ZodNumber>;
10455
+ }, "strip", z.ZodTypeAny, {
10456
+ type: "exit";
10457
+ exitCode: number | null;
10458
+ }, {
10459
+ type: "exit";
10460
+ exitCode: number | null;
10461
+ }>]>;
10462
+ }, z.ZodTypeAny, "passthrough">[];
10463
+ callId: string;
10464
+ providerData?: Record<string, any> | undefined;
10465
+ id?: string | undefined;
10466
+ maxOutputLength?: number | undefined;
10467
+ } | {
10468
+ type: "apply_patch_call";
10469
+ status: "in_progress" | "completed";
10470
+ callId: string;
10471
+ operation: {
10472
+ path: string;
10473
+ type: "create_file";
10474
+ diff: string;
10475
+ } | {
10476
+ path: string;
10477
+ type: "update_file";
10478
+ diff: string;
8449
10479
  } | {
8450
- path: {
8451
- x: number;
8452
- y: number;
8453
- }[];
8454
- type: "drag";
10480
+ path: string;
10481
+ type: "delete_file";
8455
10482
  };
8456
10483
  providerData?: Record<string, any> | undefined;
8457
10484
  id?: string | undefined;
10485
+ } | {
10486
+ type: "apply_patch_call_output";
10487
+ status: "completed" | "failed";
10488
+ callId: string;
10489
+ providerData?: Record<string, any> | undefined;
10490
+ id?: string | undefined;
10491
+ output?: string | undefined;
8458
10492
  } | {
8459
10493
  type: "reasoning";
8460
10494
  content: {
@@ -8619,6 +10653,35 @@ export declare const SerializedRunState: z.ZodObject<{
8619
10653
  };
8620
10654
  providerData?: Record<string, any> | undefined;
8621
10655
  id?: string | undefined;
10656
+ } | {
10657
+ type: "shell_call";
10658
+ callId: string;
10659
+ action: {
10660
+ commands: string[];
10661
+ timeoutMs?: number | undefined;
10662
+ maxOutputLength?: number | undefined;
10663
+ };
10664
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
10665
+ providerData?: Record<string, any> | undefined;
10666
+ id?: string | undefined;
10667
+ } | {
10668
+ type: "apply_patch_call";
10669
+ status: "in_progress" | "completed";
10670
+ callId: string;
10671
+ operation: {
10672
+ path: string;
10673
+ type: "create_file";
10674
+ diff: string;
10675
+ } | {
10676
+ path: string;
10677
+ type: "update_file";
10678
+ diff: string;
10679
+ } | {
10680
+ path: string;
10681
+ type: "delete_file";
10682
+ };
10683
+ providerData?: Record<string, any> | undefined;
10684
+ id?: string | undefined;
8622
10685
  };
8623
10686
  } | {
8624
10687
  type: "tool_call_output_item";
@@ -8807,7 +10870,37 @@ export declare const SerializedRunState: z.ZodObject<{
8807
10870
  status?: "in_progress" | "completed" | "incomplete" | undefined;
8808
10871
  providerData?: Record<string, any> | undefined;
8809
10872
  id?: string | undefined;
10873
+ } | {
10874
+ type: "shell_call";
10875
+ callId: string;
10876
+ action: {
10877
+ commands: string[];
10878
+ timeoutMs?: number | undefined;
10879
+ maxOutputLength?: number | undefined;
10880
+ };
10881
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
10882
+ providerData?: Record<string, any> | undefined;
10883
+ id?: string | undefined;
10884
+ } | {
10885
+ type: "apply_patch_call";
10886
+ status: "in_progress" | "completed";
10887
+ callId: string;
10888
+ operation: {
10889
+ path: string;
10890
+ type: "create_file";
10891
+ diff: string;
10892
+ } | {
10893
+ path: string;
10894
+ type: "update_file";
10895
+ diff: string;
10896
+ } | {
10897
+ path: string;
10898
+ type: "delete_file";
10899
+ };
10900
+ providerData?: Record<string, any> | undefined;
10901
+ id?: string | undefined;
8810
10902
  };
10903
+ toolName?: string | undefined;
8811
10904
  })[];
8812
10905
  trace: {
8813
10906
  object: "trace";
@@ -8973,6 +11066,68 @@ export declare const SerializedRunState: z.ZodObject<{
8973
11066
  };
8974
11067
  providerData?: Record<string, any> | undefined;
8975
11068
  id?: string | undefined;
11069
+ } | {
11070
+ type: "shell_call";
11071
+ callId: string;
11072
+ action: {
11073
+ commands: string[];
11074
+ timeoutMs?: number | undefined;
11075
+ maxOutputLength?: number | undefined;
11076
+ };
11077
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
11078
+ providerData?: Record<string, any> | undefined;
11079
+ id?: string | undefined;
11080
+ } | {
11081
+ type: "shell_call_output";
11082
+ output: z.objectOutputType<{
11083
+ stdout: z.ZodString;
11084
+ stderr: z.ZodString;
11085
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11086
+ type: z.ZodLiteral<"timeout">;
11087
+ }, "strip", z.ZodTypeAny, {
11088
+ type: "timeout";
11089
+ }, {
11090
+ type: "timeout";
11091
+ }>, z.ZodObject<{
11092
+ type: z.ZodLiteral<"exit">;
11093
+ exitCode: z.ZodNullable<z.ZodNumber>;
11094
+ }, "strip", z.ZodTypeAny, {
11095
+ type: "exit";
11096
+ exitCode: number | null;
11097
+ }, {
11098
+ type: "exit";
11099
+ exitCode: number | null;
11100
+ }>]>;
11101
+ }, z.ZodTypeAny, "passthrough">[];
11102
+ callId: string;
11103
+ providerData?: Record<string, any> | undefined;
11104
+ id?: string | undefined;
11105
+ maxOutputLength?: number | undefined;
11106
+ } | {
11107
+ type: "apply_patch_call";
11108
+ status: "in_progress" | "completed";
11109
+ callId: string;
11110
+ operation: {
11111
+ path: string;
11112
+ type: "create_file";
11113
+ diff: string;
11114
+ } | {
11115
+ path: string;
11116
+ type: "update_file";
11117
+ diff: string;
11118
+ } | {
11119
+ path: string;
11120
+ type: "delete_file";
11121
+ };
11122
+ providerData?: Record<string, any> | undefined;
11123
+ id?: string | undefined;
11124
+ } | {
11125
+ type: "apply_patch_call_output";
11126
+ status: "completed" | "failed";
11127
+ callId: string;
11128
+ providerData?: Record<string, any> | undefined;
11129
+ id?: string | undefined;
11130
+ output?: string | undefined;
8976
11131
  } | {
8977
11132
  type: "reasoning";
8978
11133
  content: {
@@ -9102,6 +11257,35 @@ export declare const SerializedRunState: z.ZodObject<{
9102
11257
  };
9103
11258
  providerData?: Record<string, any> | undefined;
9104
11259
  id?: string | undefined;
11260
+ } | {
11261
+ type: "shell_call";
11262
+ callId: string;
11263
+ action: {
11264
+ commands: string[];
11265
+ timeoutMs?: number | undefined;
11266
+ maxOutputLength?: number | undefined;
11267
+ };
11268
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
11269
+ providerData?: Record<string, any> | undefined;
11270
+ id?: string | undefined;
11271
+ } | {
11272
+ type: "apply_patch_call";
11273
+ status: "in_progress" | "completed";
11274
+ callId: string;
11275
+ operation: {
11276
+ path: string;
11277
+ type: "create_file";
11278
+ diff: string;
11279
+ } | {
11280
+ path: string;
11281
+ type: "update_file";
11282
+ diff: string;
11283
+ } | {
11284
+ path: string;
11285
+ type: "delete_file";
11286
+ };
11287
+ providerData?: Record<string, any> | undefined;
11288
+ id?: string | undefined;
9105
11289
  };
9106
11290
  } | {
9107
11291
  type: "tool_call_output_item";
@@ -9290,7 +11474,37 @@ export declare const SerializedRunState: z.ZodObject<{
9290
11474
  status?: "in_progress" | "completed" | "incomplete" | undefined;
9291
11475
  providerData?: Record<string, any> | undefined;
9292
11476
  id?: string | undefined;
11477
+ } | {
11478
+ type: "shell_call";
11479
+ callId: string;
11480
+ action: {
11481
+ commands: string[];
11482
+ timeoutMs?: number | undefined;
11483
+ maxOutputLength?: number | undefined;
11484
+ };
11485
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
11486
+ providerData?: Record<string, any> | undefined;
11487
+ id?: string | undefined;
11488
+ } | {
11489
+ type: "apply_patch_call";
11490
+ status: "in_progress" | "completed";
11491
+ callId: string;
11492
+ operation: {
11493
+ path: string;
11494
+ type: "create_file";
11495
+ diff: string;
11496
+ } | {
11497
+ path: string;
11498
+ type: "update_file";
11499
+ diff: string;
11500
+ } | {
11501
+ path: string;
11502
+ type: "delete_file";
11503
+ };
11504
+ providerData?: Record<string, any> | undefined;
11505
+ id?: string | undefined;
9293
11506
  };
11507
+ toolName?: string | undefined;
9294
11508
  })[];
9295
11509
  toolsUsed: string[];
9296
11510
  functions: {
@@ -9301,6 +11515,14 @@ export declare const SerializedRunState: z.ZodObject<{
9301
11515
  computer?: any;
9302
11516
  toolCall?: any;
9303
11517
  }[];
11518
+ shellActions?: {
11519
+ shell?: any;
11520
+ toolCall?: any;
11521
+ }[] | undefined;
11522
+ applyPatchActions?: {
11523
+ toolCall?: any;
11524
+ applyPatch?: any;
11525
+ }[] | undefined;
9304
11526
  mcpApprovalRequests?: {
9305
11527
  requestItem: {
9306
11528
  rawItem: {
@@ -9519,6 +11741,68 @@ export declare const SerializedRunState: z.ZodObject<{
9519
11741
  callId: string;
9520
11742
  providerData?: Record<string, any> | undefined;
9521
11743
  id?: string | undefined;
11744
+ } | {
11745
+ type: "shell_call";
11746
+ callId: string;
11747
+ action: {
11748
+ commands: string[];
11749
+ timeoutMs?: number | undefined;
11750
+ maxOutputLength?: number | undefined;
11751
+ };
11752
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
11753
+ providerData?: Record<string, any> | undefined;
11754
+ id?: string | undefined;
11755
+ } | {
11756
+ type: "shell_call_output";
11757
+ output: z.objectInputType<{
11758
+ stdout: z.ZodString;
11759
+ stderr: z.ZodString;
11760
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11761
+ type: z.ZodLiteral<"timeout">;
11762
+ }, "strip", z.ZodTypeAny, {
11763
+ type: "timeout";
11764
+ }, {
11765
+ type: "timeout";
11766
+ }>, z.ZodObject<{
11767
+ type: z.ZodLiteral<"exit">;
11768
+ exitCode: z.ZodNullable<z.ZodNumber>;
11769
+ }, "strip", z.ZodTypeAny, {
11770
+ type: "exit";
11771
+ exitCode: number | null;
11772
+ }, {
11773
+ type: "exit";
11774
+ exitCode: number | null;
11775
+ }>]>;
11776
+ }, z.ZodTypeAny, "passthrough">[];
11777
+ callId: string;
11778
+ providerData?: Record<string, any> | undefined;
11779
+ id?: string | undefined;
11780
+ maxOutputLength?: number | undefined;
11781
+ } | {
11782
+ type: "apply_patch_call";
11783
+ status: "in_progress" | "completed";
11784
+ callId: string;
11785
+ operation: {
11786
+ path: string;
11787
+ type: "create_file";
11788
+ diff: string;
11789
+ } | {
11790
+ path: string;
11791
+ type: "update_file";
11792
+ diff: string;
11793
+ } | {
11794
+ path: string;
11795
+ type: "delete_file";
11796
+ };
11797
+ providerData?: Record<string, any> | undefined;
11798
+ id?: string | undefined;
11799
+ } | {
11800
+ type: "apply_patch_call_output";
11801
+ status: "completed" | "failed";
11802
+ callId: string;
11803
+ providerData?: Record<string, any> | undefined;
11804
+ id?: string | undefined;
11805
+ output?: string | undefined;
9522
11806
  } | {
9523
11807
  type: "reasoning";
9524
11808
  content: {
@@ -9682,6 +11966,68 @@ export declare const SerializedRunState: z.ZodObject<{
9682
11966
  };
9683
11967
  providerData?: Record<string, any> | undefined;
9684
11968
  id?: string | undefined;
11969
+ } | {
11970
+ type: "shell_call";
11971
+ callId: string;
11972
+ action: {
11973
+ commands: string[];
11974
+ timeoutMs?: number | undefined;
11975
+ maxOutputLength?: number | undefined;
11976
+ };
11977
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
11978
+ providerData?: Record<string, any> | undefined;
11979
+ id?: string | undefined;
11980
+ } | {
11981
+ type: "shell_call_output";
11982
+ output: z.objectInputType<{
11983
+ stdout: z.ZodString;
11984
+ stderr: z.ZodString;
11985
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11986
+ type: z.ZodLiteral<"timeout">;
11987
+ }, "strip", z.ZodTypeAny, {
11988
+ type: "timeout";
11989
+ }, {
11990
+ type: "timeout";
11991
+ }>, z.ZodObject<{
11992
+ type: z.ZodLiteral<"exit">;
11993
+ exitCode: z.ZodNullable<z.ZodNumber>;
11994
+ }, "strip", z.ZodTypeAny, {
11995
+ type: "exit";
11996
+ exitCode: number | null;
11997
+ }, {
11998
+ type: "exit";
11999
+ exitCode: number | null;
12000
+ }>]>;
12001
+ }, z.ZodTypeAny, "passthrough">[];
12002
+ callId: string;
12003
+ providerData?: Record<string, any> | undefined;
12004
+ id?: string | undefined;
12005
+ maxOutputLength?: number | undefined;
12006
+ } | {
12007
+ type: "apply_patch_call";
12008
+ status: "in_progress" | "completed";
12009
+ callId: string;
12010
+ operation: {
12011
+ path: string;
12012
+ type: "create_file";
12013
+ diff: string;
12014
+ } | {
12015
+ path: string;
12016
+ type: "update_file";
12017
+ diff: string;
12018
+ } | {
12019
+ path: string;
12020
+ type: "delete_file";
12021
+ };
12022
+ providerData?: Record<string, any> | undefined;
12023
+ id?: string | undefined;
12024
+ } | {
12025
+ type: "apply_patch_call_output";
12026
+ status: "completed" | "failed";
12027
+ callId: string;
12028
+ providerData?: Record<string, any> | undefined;
12029
+ id?: string | undefined;
12030
+ output?: string | undefined;
9685
12031
  } | {
9686
12032
  type: "reasoning";
9687
12033
  content: {
@@ -9846,6 +12192,35 @@ export declare const SerializedRunState: z.ZodObject<{
9846
12192
  };
9847
12193
  providerData?: Record<string, any> | undefined;
9848
12194
  id?: string | undefined;
12195
+ } | {
12196
+ type: "shell_call";
12197
+ callId: string;
12198
+ action: {
12199
+ commands: string[];
12200
+ timeoutMs?: number | undefined;
12201
+ maxOutputLength?: number | undefined;
12202
+ };
12203
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
12204
+ providerData?: Record<string, any> | undefined;
12205
+ id?: string | undefined;
12206
+ } | {
12207
+ type: "apply_patch_call";
12208
+ status: "in_progress" | "completed";
12209
+ callId: string;
12210
+ operation: {
12211
+ path: string;
12212
+ type: "create_file";
12213
+ diff: string;
12214
+ } | {
12215
+ path: string;
12216
+ type: "update_file";
12217
+ diff: string;
12218
+ } | {
12219
+ path: string;
12220
+ type: "delete_file";
12221
+ };
12222
+ providerData?: Record<string, any> | undefined;
12223
+ id?: string | undefined;
9849
12224
  };
9850
12225
  } | {
9851
12226
  type: "tool_call_output_item";
@@ -10034,7 +12409,37 @@ export declare const SerializedRunState: z.ZodObject<{
10034
12409
  status?: "in_progress" | "completed" | "incomplete" | undefined;
10035
12410
  providerData?: Record<string, any> | undefined;
10036
12411
  id?: string | undefined;
12412
+ } | {
12413
+ type: "shell_call";
12414
+ callId: string;
12415
+ action: {
12416
+ commands: string[];
12417
+ timeoutMs?: number | undefined;
12418
+ maxOutputLength?: number | undefined;
12419
+ };
12420
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
12421
+ providerData?: Record<string, any> | undefined;
12422
+ id?: string | undefined;
12423
+ } | {
12424
+ type: "apply_patch_call";
12425
+ status: "in_progress" | "completed";
12426
+ callId: string;
12427
+ operation: {
12428
+ path: string;
12429
+ type: "create_file";
12430
+ diff: string;
12431
+ } | {
12432
+ path: string;
12433
+ type: "update_file";
12434
+ diff: string;
12435
+ } | {
12436
+ path: string;
12437
+ type: "delete_file";
12438
+ };
12439
+ providerData?: Record<string, any> | undefined;
12440
+ id?: string | undefined;
10037
12441
  };
12442
+ toolName?: string | undefined;
10038
12443
  })[];
10039
12444
  trace: {
10040
12445
  object: "trace";
@@ -10200,6 +12605,68 @@ export declare const SerializedRunState: z.ZodObject<{
10200
12605
  };
10201
12606
  providerData?: Record<string, any> | undefined;
10202
12607
  id?: string | undefined;
12608
+ } | {
12609
+ type: "shell_call";
12610
+ callId: string;
12611
+ action: {
12612
+ commands: string[];
12613
+ timeoutMs?: number | undefined;
12614
+ maxOutputLength?: number | undefined;
12615
+ };
12616
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
12617
+ providerData?: Record<string, any> | undefined;
12618
+ id?: string | undefined;
12619
+ } | {
12620
+ type: "shell_call_output";
12621
+ output: z.objectInputType<{
12622
+ stdout: z.ZodString;
12623
+ stderr: z.ZodString;
12624
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
12625
+ type: z.ZodLiteral<"timeout">;
12626
+ }, "strip", z.ZodTypeAny, {
12627
+ type: "timeout";
12628
+ }, {
12629
+ type: "timeout";
12630
+ }>, z.ZodObject<{
12631
+ type: z.ZodLiteral<"exit">;
12632
+ exitCode: z.ZodNullable<z.ZodNumber>;
12633
+ }, "strip", z.ZodTypeAny, {
12634
+ type: "exit";
12635
+ exitCode: number | null;
12636
+ }, {
12637
+ type: "exit";
12638
+ exitCode: number | null;
12639
+ }>]>;
12640
+ }, z.ZodTypeAny, "passthrough">[];
12641
+ callId: string;
12642
+ providerData?: Record<string, any> | undefined;
12643
+ id?: string | undefined;
12644
+ maxOutputLength?: number | undefined;
12645
+ } | {
12646
+ type: "apply_patch_call";
12647
+ status: "in_progress" | "completed";
12648
+ callId: string;
12649
+ operation: {
12650
+ path: string;
12651
+ type: "create_file";
12652
+ diff: string;
12653
+ } | {
12654
+ path: string;
12655
+ type: "update_file";
12656
+ diff: string;
12657
+ } | {
12658
+ path: string;
12659
+ type: "delete_file";
12660
+ };
12661
+ providerData?: Record<string, any> | undefined;
12662
+ id?: string | undefined;
12663
+ } | {
12664
+ type: "apply_patch_call_output";
12665
+ status: "completed" | "failed";
12666
+ callId: string;
12667
+ providerData?: Record<string, any> | undefined;
12668
+ id?: string | undefined;
12669
+ output?: string | undefined;
10203
12670
  } | {
10204
12671
  type: "reasoning";
10205
12672
  content: {
@@ -10329,6 +12796,35 @@ export declare const SerializedRunState: z.ZodObject<{
10329
12796
  };
10330
12797
  providerData?: Record<string, any> | undefined;
10331
12798
  id?: string | undefined;
12799
+ } | {
12800
+ type: "shell_call";
12801
+ callId: string;
12802
+ action: {
12803
+ commands: string[];
12804
+ timeoutMs?: number | undefined;
12805
+ maxOutputLength?: number | undefined;
12806
+ };
12807
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
12808
+ providerData?: Record<string, any> | undefined;
12809
+ id?: string | undefined;
12810
+ } | {
12811
+ type: "apply_patch_call";
12812
+ status: "in_progress" | "completed";
12813
+ callId: string;
12814
+ operation: {
12815
+ path: string;
12816
+ type: "create_file";
12817
+ diff: string;
12818
+ } | {
12819
+ path: string;
12820
+ type: "update_file";
12821
+ diff: string;
12822
+ } | {
12823
+ path: string;
12824
+ type: "delete_file";
12825
+ };
12826
+ providerData?: Record<string, any> | undefined;
12827
+ id?: string | undefined;
10332
12828
  };
10333
12829
  } | {
10334
12830
  type: "tool_call_output_item";
@@ -10517,7 +13013,37 @@ export declare const SerializedRunState: z.ZodObject<{
10517
13013
  status?: "in_progress" | "completed" | "incomplete" | undefined;
10518
13014
  providerData?: Record<string, any> | undefined;
10519
13015
  id?: string | undefined;
13016
+ } | {
13017
+ type: "shell_call";
13018
+ callId: string;
13019
+ action: {
13020
+ commands: string[];
13021
+ timeoutMs?: number | undefined;
13022
+ maxOutputLength?: number | undefined;
13023
+ };
13024
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
13025
+ providerData?: Record<string, any> | undefined;
13026
+ id?: string | undefined;
13027
+ } | {
13028
+ type: "apply_patch_call";
13029
+ status: "in_progress" | "completed";
13030
+ callId: string;
13031
+ operation: {
13032
+ path: string;
13033
+ type: "create_file";
13034
+ diff: string;
13035
+ } | {
13036
+ path: string;
13037
+ type: "update_file";
13038
+ diff: string;
13039
+ } | {
13040
+ path: string;
13041
+ type: "delete_file";
13042
+ };
13043
+ providerData?: Record<string, any> | undefined;
13044
+ id?: string | undefined;
10520
13045
  };
13046
+ toolName?: string | undefined;
10521
13047
  })[];
10522
13048
  toolsUsed: string[];
10523
13049
  functions: {
@@ -10528,6 +13054,14 @@ export declare const SerializedRunState: z.ZodObject<{
10528
13054
  computer?: any;
10529
13055
  toolCall?: any;
10530
13056
  }[];
13057
+ shellActions?: {
13058
+ shell?: any;
13059
+ toolCall?: any;
13060
+ }[] | undefined;
13061
+ applyPatchActions?: {
13062
+ toolCall?: any;
13063
+ applyPatch?: any;
13064
+ }[] | undefined;
10531
13065
  mcpApprovalRequests?: {
10532
13066
  requestItem: {
10533
13067
  rawItem: {