@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
@@ -2814,6 +2814,472 @@ export declare const ComputerCallResultItem: z.ZodObject<{
2814
2814
  id?: string | undefined;
2815
2815
  }>;
2816
2816
  export type ComputerCallResultItem = z.infer<typeof ComputerCallResultItem>;
2817
+ export declare const ShellAction: z.ZodObject<{
2818
+ commands: z.ZodArray<z.ZodString, "many">;
2819
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
2820
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
2821
+ }, "strip", z.ZodTypeAny, {
2822
+ commands: string[];
2823
+ timeoutMs?: number | undefined;
2824
+ maxOutputLength?: number | undefined;
2825
+ }, {
2826
+ commands: string[];
2827
+ timeoutMs?: number | undefined;
2828
+ maxOutputLength?: number | undefined;
2829
+ }>;
2830
+ export type ShellAction = z.infer<typeof ShellAction>;
2831
+ export declare const ShellCallItem: z.ZodObject<{
2832
+ /**
2833
+ * Additional optional provider specific data. Used for custom functionality or model provider
2834
+ * specific fields.
2835
+ */
2836
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2837
+ } & {
2838
+ /**
2839
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
2840
+ * requires this field, it will be validated on the model level.
2841
+ */
2842
+ id: z.ZodOptional<z.ZodString>;
2843
+ } & {
2844
+ type: z.ZodLiteral<"shell_call">;
2845
+ callId: z.ZodString;
2846
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
2847
+ action: z.ZodObject<{
2848
+ commands: z.ZodArray<z.ZodString, "many">;
2849
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
2850
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
2851
+ }, "strip", z.ZodTypeAny, {
2852
+ commands: string[];
2853
+ timeoutMs?: number | undefined;
2854
+ maxOutputLength?: number | undefined;
2855
+ }, {
2856
+ commands: string[];
2857
+ timeoutMs?: number | undefined;
2858
+ maxOutputLength?: number | undefined;
2859
+ }>;
2860
+ }, "strip", z.ZodTypeAny, {
2861
+ type: "shell_call";
2862
+ callId: string;
2863
+ action: {
2864
+ commands: string[];
2865
+ timeoutMs?: number | undefined;
2866
+ maxOutputLength?: number | undefined;
2867
+ };
2868
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
2869
+ providerData?: Record<string, any> | undefined;
2870
+ id?: string | undefined;
2871
+ }, {
2872
+ type: "shell_call";
2873
+ callId: string;
2874
+ action: {
2875
+ commands: string[];
2876
+ timeoutMs?: number | undefined;
2877
+ maxOutputLength?: number | undefined;
2878
+ };
2879
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
2880
+ providerData?: Record<string, any> | undefined;
2881
+ id?: string | undefined;
2882
+ }>;
2883
+ export type ShellCallItem = z.infer<typeof ShellCallItem>;
2884
+ export declare const ShellCallOutcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2885
+ type: z.ZodLiteral<"timeout">;
2886
+ }, "strip", z.ZodTypeAny, {
2887
+ type: "timeout";
2888
+ }, {
2889
+ type: "timeout";
2890
+ }>, z.ZodObject<{
2891
+ type: z.ZodLiteral<"exit">;
2892
+ exitCode: z.ZodNullable<z.ZodNumber>;
2893
+ }, "strip", z.ZodTypeAny, {
2894
+ type: "exit";
2895
+ exitCode: number | null;
2896
+ }, {
2897
+ type: "exit";
2898
+ exitCode: number | null;
2899
+ }>]>;
2900
+ export type ShellCallOutcome = z.infer<typeof ShellCallOutcome>;
2901
+ export declare const ShellCallOutputContent: z.ZodObject<{
2902
+ stdout: z.ZodString;
2903
+ stderr: z.ZodString;
2904
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2905
+ type: z.ZodLiteral<"timeout">;
2906
+ }, "strip", z.ZodTypeAny, {
2907
+ type: "timeout";
2908
+ }, {
2909
+ type: "timeout";
2910
+ }>, z.ZodObject<{
2911
+ type: z.ZodLiteral<"exit">;
2912
+ exitCode: z.ZodNullable<z.ZodNumber>;
2913
+ }, "strip", z.ZodTypeAny, {
2914
+ type: "exit";
2915
+ exitCode: number | null;
2916
+ }, {
2917
+ type: "exit";
2918
+ exitCode: number | null;
2919
+ }>]>;
2920
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2921
+ stdout: z.ZodString;
2922
+ stderr: z.ZodString;
2923
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2924
+ type: z.ZodLiteral<"timeout">;
2925
+ }, "strip", z.ZodTypeAny, {
2926
+ type: "timeout";
2927
+ }, {
2928
+ type: "timeout";
2929
+ }>, z.ZodObject<{
2930
+ type: z.ZodLiteral<"exit">;
2931
+ exitCode: z.ZodNullable<z.ZodNumber>;
2932
+ }, "strip", z.ZodTypeAny, {
2933
+ type: "exit";
2934
+ exitCode: number | null;
2935
+ }, {
2936
+ type: "exit";
2937
+ exitCode: number | null;
2938
+ }>]>;
2939
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2940
+ stdout: z.ZodString;
2941
+ stderr: z.ZodString;
2942
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2943
+ type: z.ZodLiteral<"timeout">;
2944
+ }, "strip", z.ZodTypeAny, {
2945
+ type: "timeout";
2946
+ }, {
2947
+ type: "timeout";
2948
+ }>, z.ZodObject<{
2949
+ type: z.ZodLiteral<"exit">;
2950
+ exitCode: z.ZodNullable<z.ZodNumber>;
2951
+ }, "strip", z.ZodTypeAny, {
2952
+ type: "exit";
2953
+ exitCode: number | null;
2954
+ }, {
2955
+ type: "exit";
2956
+ exitCode: number | null;
2957
+ }>]>;
2958
+ }, z.ZodTypeAny, "passthrough">>;
2959
+ export type ShellCallOutputContent = z.infer<typeof ShellCallOutputContent>;
2960
+ export declare const ShellCallResultItem: z.ZodObject<{
2961
+ /**
2962
+ * Additional optional provider specific data. Used for custom functionality or model provider
2963
+ * specific fields.
2964
+ */
2965
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2966
+ } & {
2967
+ /**
2968
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
2969
+ * requires this field, it will be validated on the model level.
2970
+ */
2971
+ id: z.ZodOptional<z.ZodString>;
2972
+ } & {
2973
+ type: z.ZodLiteral<"shell_call_output">;
2974
+ callId: z.ZodString;
2975
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
2976
+ output: z.ZodArray<z.ZodObject<{
2977
+ stdout: z.ZodString;
2978
+ stderr: z.ZodString;
2979
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2980
+ type: z.ZodLiteral<"timeout">;
2981
+ }, "strip", z.ZodTypeAny, {
2982
+ type: "timeout";
2983
+ }, {
2984
+ type: "timeout";
2985
+ }>, z.ZodObject<{
2986
+ type: z.ZodLiteral<"exit">;
2987
+ exitCode: z.ZodNullable<z.ZodNumber>;
2988
+ }, "strip", z.ZodTypeAny, {
2989
+ type: "exit";
2990
+ exitCode: number | null;
2991
+ }, {
2992
+ type: "exit";
2993
+ exitCode: number | null;
2994
+ }>]>;
2995
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2996
+ stdout: z.ZodString;
2997
+ stderr: z.ZodString;
2998
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2999
+ type: z.ZodLiteral<"timeout">;
3000
+ }, "strip", z.ZodTypeAny, {
3001
+ type: "timeout";
3002
+ }, {
3003
+ type: "timeout";
3004
+ }>, z.ZodObject<{
3005
+ type: z.ZodLiteral<"exit">;
3006
+ exitCode: z.ZodNullable<z.ZodNumber>;
3007
+ }, "strip", z.ZodTypeAny, {
3008
+ type: "exit";
3009
+ exitCode: number | null;
3010
+ }, {
3011
+ type: "exit";
3012
+ exitCode: number | null;
3013
+ }>]>;
3014
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3015
+ stdout: z.ZodString;
3016
+ stderr: z.ZodString;
3017
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3018
+ type: z.ZodLiteral<"timeout">;
3019
+ }, "strip", z.ZodTypeAny, {
3020
+ type: "timeout";
3021
+ }, {
3022
+ type: "timeout";
3023
+ }>, z.ZodObject<{
3024
+ type: z.ZodLiteral<"exit">;
3025
+ exitCode: z.ZodNullable<z.ZodNumber>;
3026
+ }, "strip", z.ZodTypeAny, {
3027
+ type: "exit";
3028
+ exitCode: number | null;
3029
+ }, {
3030
+ type: "exit";
3031
+ exitCode: number | null;
3032
+ }>]>;
3033
+ }, z.ZodTypeAny, "passthrough">>, "many">;
3034
+ }, "strip", z.ZodTypeAny, {
3035
+ type: "shell_call_output";
3036
+ output: z.objectOutputType<{
3037
+ stdout: z.ZodString;
3038
+ stderr: z.ZodString;
3039
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3040
+ type: z.ZodLiteral<"timeout">;
3041
+ }, "strip", z.ZodTypeAny, {
3042
+ type: "timeout";
3043
+ }, {
3044
+ type: "timeout";
3045
+ }>, z.ZodObject<{
3046
+ type: z.ZodLiteral<"exit">;
3047
+ exitCode: z.ZodNullable<z.ZodNumber>;
3048
+ }, "strip", z.ZodTypeAny, {
3049
+ type: "exit";
3050
+ exitCode: number | null;
3051
+ }, {
3052
+ type: "exit";
3053
+ exitCode: number | null;
3054
+ }>]>;
3055
+ }, z.ZodTypeAny, "passthrough">[];
3056
+ callId: string;
3057
+ providerData?: Record<string, any> | undefined;
3058
+ id?: string | undefined;
3059
+ maxOutputLength?: number | undefined;
3060
+ }, {
3061
+ type: "shell_call_output";
3062
+ output: z.objectInputType<{
3063
+ stdout: z.ZodString;
3064
+ stderr: z.ZodString;
3065
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3066
+ type: z.ZodLiteral<"timeout">;
3067
+ }, "strip", z.ZodTypeAny, {
3068
+ type: "timeout";
3069
+ }, {
3070
+ type: "timeout";
3071
+ }>, z.ZodObject<{
3072
+ type: z.ZodLiteral<"exit">;
3073
+ exitCode: z.ZodNullable<z.ZodNumber>;
3074
+ }, "strip", z.ZodTypeAny, {
3075
+ type: "exit";
3076
+ exitCode: number | null;
3077
+ }, {
3078
+ type: "exit";
3079
+ exitCode: number | null;
3080
+ }>]>;
3081
+ }, z.ZodTypeAny, "passthrough">[];
3082
+ callId: string;
3083
+ providerData?: Record<string, any> | undefined;
3084
+ id?: string | undefined;
3085
+ maxOutputLength?: number | undefined;
3086
+ }>;
3087
+ export type ShellCallResultItem = z.infer<typeof ShellCallResultItem>;
3088
+ export declare const ApplyPatchOperationCreateFile: z.ZodObject<{
3089
+ type: z.ZodLiteral<"create_file">;
3090
+ path: z.ZodString;
3091
+ diff: z.ZodString;
3092
+ }, "strip", z.ZodTypeAny, {
3093
+ path: string;
3094
+ type: "create_file";
3095
+ diff: string;
3096
+ }, {
3097
+ path: string;
3098
+ type: "create_file";
3099
+ diff: string;
3100
+ }>;
3101
+ export type ApplyPatchOperationCreateFile = z.infer<typeof ApplyPatchOperationCreateFile>;
3102
+ export declare const ApplyPatchOperationUpdateFile: z.ZodObject<{
3103
+ type: z.ZodLiteral<"update_file">;
3104
+ path: z.ZodString;
3105
+ diff: z.ZodString;
3106
+ }, "strip", z.ZodTypeAny, {
3107
+ path: string;
3108
+ type: "update_file";
3109
+ diff: string;
3110
+ }, {
3111
+ path: string;
3112
+ type: "update_file";
3113
+ diff: string;
3114
+ }>;
3115
+ export type ApplyPatchOperationUpdateFile = z.infer<typeof ApplyPatchOperationUpdateFile>;
3116
+ export declare const ApplyPatchOperationDeleteFile: z.ZodObject<{
3117
+ type: z.ZodLiteral<"delete_file">;
3118
+ path: z.ZodString;
3119
+ }, "strip", z.ZodTypeAny, {
3120
+ path: string;
3121
+ type: "delete_file";
3122
+ }, {
3123
+ path: string;
3124
+ type: "delete_file";
3125
+ }>;
3126
+ export type ApplyPatchOperationDeleteFile = z.infer<typeof ApplyPatchOperationDeleteFile>;
3127
+ export declare const ApplyPatchOperation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3128
+ type: z.ZodLiteral<"create_file">;
3129
+ path: z.ZodString;
3130
+ diff: z.ZodString;
3131
+ }, "strip", z.ZodTypeAny, {
3132
+ path: string;
3133
+ type: "create_file";
3134
+ diff: string;
3135
+ }, {
3136
+ path: string;
3137
+ type: "create_file";
3138
+ diff: string;
3139
+ }>, z.ZodObject<{
3140
+ type: z.ZodLiteral<"update_file">;
3141
+ path: z.ZodString;
3142
+ diff: z.ZodString;
3143
+ }, "strip", z.ZodTypeAny, {
3144
+ path: string;
3145
+ type: "update_file";
3146
+ diff: string;
3147
+ }, {
3148
+ path: string;
3149
+ type: "update_file";
3150
+ diff: string;
3151
+ }>, z.ZodObject<{
3152
+ type: z.ZodLiteral<"delete_file">;
3153
+ path: z.ZodString;
3154
+ }, "strip", z.ZodTypeAny, {
3155
+ path: string;
3156
+ type: "delete_file";
3157
+ }, {
3158
+ path: string;
3159
+ type: "delete_file";
3160
+ }>]>;
3161
+ export type ApplyPatchOperation = z.infer<typeof ApplyPatchOperation>;
3162
+ export declare const ApplyPatchCallItem: z.ZodObject<{
3163
+ /**
3164
+ * Additional optional provider specific data. Used for custom functionality or model provider
3165
+ * specific fields.
3166
+ */
3167
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3168
+ } & {
3169
+ /**
3170
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
3171
+ * requires this field, it will be validated on the model level.
3172
+ */
3173
+ id: z.ZodOptional<z.ZodString>;
3174
+ } & {
3175
+ type: z.ZodLiteral<"apply_patch_call">;
3176
+ callId: z.ZodString;
3177
+ status: z.ZodEnum<["in_progress", "completed"]>;
3178
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3179
+ type: z.ZodLiteral<"create_file">;
3180
+ path: z.ZodString;
3181
+ diff: z.ZodString;
3182
+ }, "strip", z.ZodTypeAny, {
3183
+ path: string;
3184
+ type: "create_file";
3185
+ diff: string;
3186
+ }, {
3187
+ path: string;
3188
+ type: "create_file";
3189
+ diff: string;
3190
+ }>, z.ZodObject<{
3191
+ type: z.ZodLiteral<"update_file">;
3192
+ path: z.ZodString;
3193
+ diff: z.ZodString;
3194
+ }, "strip", z.ZodTypeAny, {
3195
+ path: string;
3196
+ type: "update_file";
3197
+ diff: string;
3198
+ }, {
3199
+ path: string;
3200
+ type: "update_file";
3201
+ diff: string;
3202
+ }>, z.ZodObject<{
3203
+ type: z.ZodLiteral<"delete_file">;
3204
+ path: z.ZodString;
3205
+ }, "strip", z.ZodTypeAny, {
3206
+ path: string;
3207
+ type: "delete_file";
3208
+ }, {
3209
+ path: string;
3210
+ type: "delete_file";
3211
+ }>]>;
3212
+ }, "strip", z.ZodTypeAny, {
3213
+ type: "apply_patch_call";
3214
+ status: "in_progress" | "completed";
3215
+ callId: string;
3216
+ operation: {
3217
+ path: string;
3218
+ type: "create_file";
3219
+ diff: string;
3220
+ } | {
3221
+ path: string;
3222
+ type: "update_file";
3223
+ diff: string;
3224
+ } | {
3225
+ path: string;
3226
+ type: "delete_file";
3227
+ };
3228
+ providerData?: Record<string, any> | undefined;
3229
+ id?: string | undefined;
3230
+ }, {
3231
+ type: "apply_patch_call";
3232
+ status: "in_progress" | "completed";
3233
+ callId: string;
3234
+ operation: {
3235
+ path: string;
3236
+ type: "create_file";
3237
+ diff: string;
3238
+ } | {
3239
+ path: string;
3240
+ type: "update_file";
3241
+ diff: string;
3242
+ } | {
3243
+ path: string;
3244
+ type: "delete_file";
3245
+ };
3246
+ providerData?: Record<string, any> | undefined;
3247
+ id?: string | undefined;
3248
+ }>;
3249
+ export type ApplyPatchCallItem = z.infer<typeof ApplyPatchCallItem>;
3250
+ export declare const ApplyPatchCallResultItem: z.ZodObject<{
3251
+ /**
3252
+ * Additional optional provider specific data. Used for custom functionality or model provider
3253
+ * specific fields.
3254
+ */
3255
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3256
+ } & {
3257
+ /**
3258
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
3259
+ * requires this field, it will be validated on the model level.
3260
+ */
3261
+ id: z.ZodOptional<z.ZodString>;
3262
+ } & {
3263
+ type: z.ZodLiteral<"apply_patch_call_output">;
3264
+ callId: z.ZodString;
3265
+ status: z.ZodEnum<["completed", "failed"]>;
3266
+ output: z.ZodOptional<z.ZodString>;
3267
+ }, "strip", z.ZodTypeAny, {
3268
+ type: "apply_patch_call_output";
3269
+ status: "completed" | "failed";
3270
+ callId: string;
3271
+ providerData?: Record<string, any> | undefined;
3272
+ id?: string | undefined;
3273
+ output?: string | undefined;
3274
+ }, {
3275
+ type: "apply_patch_call_output";
3276
+ status: "completed" | "failed";
3277
+ callId: string;
3278
+ providerData?: Record<string, any> | undefined;
3279
+ id?: string | undefined;
3280
+ output?: string | undefined;
3281
+ }>;
3282
+ export type ApplyPatchCallResultItem = z.infer<typeof ApplyPatchCallResultItem>;
2817
3283
  export declare const ToolCallItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2818
3284
  /**
2819
3285
  * Additional optional provider specific data. Used for custom functionality or model provider
@@ -3047,6 +3513,143 @@ export declare const ToolCallItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
3047
3513
  * requires this field, it will be validated on the model level.
3048
3514
  */
3049
3515
  id: z.ZodOptional<z.ZodString>;
3516
+ } & {
3517
+ type: z.ZodLiteral<"shell_call">;
3518
+ callId: z.ZodString;
3519
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
3520
+ action: z.ZodObject<{
3521
+ commands: z.ZodArray<z.ZodString, "many">;
3522
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
3523
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
3524
+ }, "strip", z.ZodTypeAny, {
3525
+ commands: string[];
3526
+ timeoutMs?: number | undefined;
3527
+ maxOutputLength?: number | undefined;
3528
+ }, {
3529
+ commands: string[];
3530
+ timeoutMs?: number | undefined;
3531
+ maxOutputLength?: number | undefined;
3532
+ }>;
3533
+ }, "strip", z.ZodTypeAny, {
3534
+ type: "shell_call";
3535
+ callId: string;
3536
+ action: {
3537
+ commands: string[];
3538
+ timeoutMs?: number | undefined;
3539
+ maxOutputLength?: number | undefined;
3540
+ };
3541
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
3542
+ providerData?: Record<string, any> | undefined;
3543
+ id?: string | undefined;
3544
+ }, {
3545
+ type: "shell_call";
3546
+ callId: string;
3547
+ action: {
3548
+ commands: string[];
3549
+ timeoutMs?: number | undefined;
3550
+ maxOutputLength?: number | undefined;
3551
+ };
3552
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
3553
+ providerData?: Record<string, any> | undefined;
3554
+ id?: string | undefined;
3555
+ }>, z.ZodObject<{
3556
+ /**
3557
+ * Additional optional provider specific data. Used for custom functionality or model provider
3558
+ * specific fields.
3559
+ */
3560
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3561
+ } & {
3562
+ /**
3563
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
3564
+ * requires this field, it will be validated on the model level.
3565
+ */
3566
+ id: z.ZodOptional<z.ZodString>;
3567
+ } & {
3568
+ type: z.ZodLiteral<"apply_patch_call">;
3569
+ callId: z.ZodString;
3570
+ status: z.ZodEnum<["in_progress", "completed"]>;
3571
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3572
+ type: z.ZodLiteral<"create_file">;
3573
+ path: z.ZodString;
3574
+ diff: z.ZodString;
3575
+ }, "strip", z.ZodTypeAny, {
3576
+ path: string;
3577
+ type: "create_file";
3578
+ diff: string;
3579
+ }, {
3580
+ path: string;
3581
+ type: "create_file";
3582
+ diff: string;
3583
+ }>, z.ZodObject<{
3584
+ type: z.ZodLiteral<"update_file">;
3585
+ path: z.ZodString;
3586
+ diff: z.ZodString;
3587
+ }, "strip", z.ZodTypeAny, {
3588
+ path: string;
3589
+ type: "update_file";
3590
+ diff: string;
3591
+ }, {
3592
+ path: string;
3593
+ type: "update_file";
3594
+ diff: string;
3595
+ }>, z.ZodObject<{
3596
+ type: z.ZodLiteral<"delete_file">;
3597
+ path: z.ZodString;
3598
+ }, "strip", z.ZodTypeAny, {
3599
+ path: string;
3600
+ type: "delete_file";
3601
+ }, {
3602
+ path: string;
3603
+ type: "delete_file";
3604
+ }>]>;
3605
+ }, "strip", z.ZodTypeAny, {
3606
+ type: "apply_patch_call";
3607
+ status: "in_progress" | "completed";
3608
+ callId: string;
3609
+ operation: {
3610
+ path: string;
3611
+ type: "create_file";
3612
+ diff: string;
3613
+ } | {
3614
+ path: string;
3615
+ type: "update_file";
3616
+ diff: string;
3617
+ } | {
3618
+ path: string;
3619
+ type: "delete_file";
3620
+ };
3621
+ providerData?: Record<string, any> | undefined;
3622
+ id?: string | undefined;
3623
+ }, {
3624
+ type: "apply_patch_call";
3625
+ status: "in_progress" | "completed";
3626
+ callId: string;
3627
+ operation: {
3628
+ path: string;
3629
+ type: "create_file";
3630
+ diff: string;
3631
+ } | {
3632
+ path: string;
3633
+ type: "update_file";
3634
+ diff: string;
3635
+ } | {
3636
+ path: string;
3637
+ type: "delete_file";
3638
+ };
3639
+ providerData?: Record<string, any> | undefined;
3640
+ id?: string | undefined;
3641
+ }>, z.ZodObject<{
3642
+ /**
3643
+ * Additional optional provider specific data. Used for custom functionality or model provider
3644
+ * specific fields.
3645
+ */
3646
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3647
+ } & {
3648
+ /**
3649
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
3650
+ * requires this field, it will be validated on the model level.
3651
+ */
3652
+ id: z.ZodOptional<z.ZodString>;
3050
3653
  } & {
3051
3654
  type: z.ZodLiteral<"function_call">;
3052
3655
  /**
@@ -3760,6 +4363,143 @@ export declare const OutputModelItem: z.ZodDiscriminatedUnion<"type", [z.ZodObje
3760
4363
  * requires this field, it will be validated on the model level.
3761
4364
  */
3762
4365
  id: z.ZodOptional<z.ZodString>;
4366
+ } & {
4367
+ type: z.ZodLiteral<"shell_call">;
4368
+ callId: z.ZodString;
4369
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
4370
+ action: z.ZodObject<{
4371
+ commands: z.ZodArray<z.ZodString, "many">;
4372
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
4373
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
4374
+ }, "strip", z.ZodTypeAny, {
4375
+ commands: string[];
4376
+ timeoutMs?: number | undefined;
4377
+ maxOutputLength?: number | undefined;
4378
+ }, {
4379
+ commands: string[];
4380
+ timeoutMs?: number | undefined;
4381
+ maxOutputLength?: number | undefined;
4382
+ }>;
4383
+ }, "strip", z.ZodTypeAny, {
4384
+ type: "shell_call";
4385
+ callId: string;
4386
+ action: {
4387
+ commands: string[];
4388
+ timeoutMs?: number | undefined;
4389
+ maxOutputLength?: number | undefined;
4390
+ };
4391
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
4392
+ providerData?: Record<string, any> | undefined;
4393
+ id?: string | undefined;
4394
+ }, {
4395
+ type: "shell_call";
4396
+ callId: string;
4397
+ action: {
4398
+ commands: string[];
4399
+ timeoutMs?: number | undefined;
4400
+ maxOutputLength?: number | undefined;
4401
+ };
4402
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
4403
+ providerData?: Record<string, any> | undefined;
4404
+ id?: string | undefined;
4405
+ }>, z.ZodObject<{
4406
+ /**
4407
+ * Additional optional provider specific data. Used for custom functionality or model provider
4408
+ * specific fields.
4409
+ */
4410
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4411
+ } & {
4412
+ /**
4413
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
4414
+ * requires this field, it will be validated on the model level.
4415
+ */
4416
+ id: z.ZodOptional<z.ZodString>;
4417
+ } & {
4418
+ type: z.ZodLiteral<"apply_patch_call">;
4419
+ callId: z.ZodString;
4420
+ status: z.ZodEnum<["in_progress", "completed"]>;
4421
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4422
+ type: z.ZodLiteral<"create_file">;
4423
+ path: z.ZodString;
4424
+ diff: z.ZodString;
4425
+ }, "strip", z.ZodTypeAny, {
4426
+ path: string;
4427
+ type: "create_file";
4428
+ diff: string;
4429
+ }, {
4430
+ path: string;
4431
+ type: "create_file";
4432
+ diff: string;
4433
+ }>, z.ZodObject<{
4434
+ type: z.ZodLiteral<"update_file">;
4435
+ path: z.ZodString;
4436
+ diff: z.ZodString;
4437
+ }, "strip", z.ZodTypeAny, {
4438
+ path: string;
4439
+ type: "update_file";
4440
+ diff: string;
4441
+ }, {
4442
+ path: string;
4443
+ type: "update_file";
4444
+ diff: string;
4445
+ }>, z.ZodObject<{
4446
+ type: z.ZodLiteral<"delete_file">;
4447
+ path: z.ZodString;
4448
+ }, "strip", z.ZodTypeAny, {
4449
+ path: string;
4450
+ type: "delete_file";
4451
+ }, {
4452
+ path: string;
4453
+ type: "delete_file";
4454
+ }>]>;
4455
+ }, "strip", z.ZodTypeAny, {
4456
+ type: "apply_patch_call";
4457
+ status: "in_progress" | "completed";
4458
+ callId: string;
4459
+ operation: {
4460
+ path: string;
4461
+ type: "create_file";
4462
+ diff: string;
4463
+ } | {
4464
+ path: string;
4465
+ type: "update_file";
4466
+ diff: string;
4467
+ } | {
4468
+ path: string;
4469
+ type: "delete_file";
4470
+ };
4471
+ providerData?: Record<string, any> | undefined;
4472
+ id?: string | undefined;
4473
+ }, {
4474
+ type: "apply_patch_call";
4475
+ status: "in_progress" | "completed";
4476
+ callId: string;
4477
+ operation: {
4478
+ path: string;
4479
+ type: "create_file";
4480
+ diff: string;
4481
+ } | {
4482
+ path: string;
4483
+ type: "update_file";
4484
+ diff: string;
4485
+ } | {
4486
+ path: string;
4487
+ type: "delete_file";
4488
+ };
4489
+ providerData?: Record<string, any> | undefined;
4490
+ id?: string | undefined;
4491
+ }>, z.ZodObject<{
4492
+ /**
4493
+ * Additional optional provider specific data. Used for custom functionality or model provider
4494
+ * specific fields.
4495
+ */
4496
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4497
+ } & {
4498
+ /**
4499
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
4500
+ * requires this field, it will be validated on the model level.
4501
+ */
4502
+ id: z.ZodOptional<z.ZodString>;
3763
4503
  } & {
3764
4504
  type: z.ZodLiteral<"function_call_result">;
3765
4505
  /**
@@ -4158,6 +4898,163 @@ export declare const OutputModelItem: z.ZodDiscriminatedUnion<"type", [z.ZodObje
4158
4898
  * specific fields.
4159
4899
  */
4160
4900
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4901
+ } & {
4902
+ /**
4903
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
4904
+ * requires this field, it will be validated on the model level.
4905
+ */
4906
+ id: z.ZodOptional<z.ZodString>;
4907
+ } & {
4908
+ type: z.ZodLiteral<"shell_call_output">;
4909
+ callId: z.ZodString;
4910
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
4911
+ output: z.ZodArray<z.ZodObject<{
4912
+ stdout: z.ZodString;
4913
+ stderr: z.ZodString;
4914
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4915
+ type: z.ZodLiteral<"timeout">;
4916
+ }, "strip", z.ZodTypeAny, {
4917
+ type: "timeout";
4918
+ }, {
4919
+ type: "timeout";
4920
+ }>, z.ZodObject<{
4921
+ type: z.ZodLiteral<"exit">;
4922
+ exitCode: z.ZodNullable<z.ZodNumber>;
4923
+ }, "strip", z.ZodTypeAny, {
4924
+ type: "exit";
4925
+ exitCode: number | null;
4926
+ }, {
4927
+ type: "exit";
4928
+ exitCode: number | null;
4929
+ }>]>;
4930
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4931
+ stdout: z.ZodString;
4932
+ stderr: z.ZodString;
4933
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4934
+ type: z.ZodLiteral<"timeout">;
4935
+ }, "strip", z.ZodTypeAny, {
4936
+ type: "timeout";
4937
+ }, {
4938
+ type: "timeout";
4939
+ }>, z.ZodObject<{
4940
+ type: z.ZodLiteral<"exit">;
4941
+ exitCode: z.ZodNullable<z.ZodNumber>;
4942
+ }, "strip", z.ZodTypeAny, {
4943
+ type: "exit";
4944
+ exitCode: number | null;
4945
+ }, {
4946
+ type: "exit";
4947
+ exitCode: number | null;
4948
+ }>]>;
4949
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4950
+ stdout: z.ZodString;
4951
+ stderr: z.ZodString;
4952
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4953
+ type: z.ZodLiteral<"timeout">;
4954
+ }, "strip", z.ZodTypeAny, {
4955
+ type: "timeout";
4956
+ }, {
4957
+ type: "timeout";
4958
+ }>, z.ZodObject<{
4959
+ type: z.ZodLiteral<"exit">;
4960
+ exitCode: z.ZodNullable<z.ZodNumber>;
4961
+ }, "strip", z.ZodTypeAny, {
4962
+ type: "exit";
4963
+ exitCode: number | null;
4964
+ }, {
4965
+ type: "exit";
4966
+ exitCode: number | null;
4967
+ }>]>;
4968
+ }, z.ZodTypeAny, "passthrough">>, "many">;
4969
+ }, "strip", z.ZodTypeAny, {
4970
+ type: "shell_call_output";
4971
+ output: z.objectOutputType<{
4972
+ stdout: z.ZodString;
4973
+ stderr: z.ZodString;
4974
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4975
+ type: z.ZodLiteral<"timeout">;
4976
+ }, "strip", z.ZodTypeAny, {
4977
+ type: "timeout";
4978
+ }, {
4979
+ type: "timeout";
4980
+ }>, z.ZodObject<{
4981
+ type: z.ZodLiteral<"exit">;
4982
+ exitCode: z.ZodNullable<z.ZodNumber>;
4983
+ }, "strip", z.ZodTypeAny, {
4984
+ type: "exit";
4985
+ exitCode: number | null;
4986
+ }, {
4987
+ type: "exit";
4988
+ exitCode: number | null;
4989
+ }>]>;
4990
+ }, z.ZodTypeAny, "passthrough">[];
4991
+ callId: string;
4992
+ providerData?: Record<string, any> | undefined;
4993
+ id?: string | undefined;
4994
+ maxOutputLength?: number | undefined;
4995
+ }, {
4996
+ type: "shell_call_output";
4997
+ output: z.objectInputType<{
4998
+ stdout: z.ZodString;
4999
+ stderr: z.ZodString;
5000
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5001
+ type: z.ZodLiteral<"timeout">;
5002
+ }, "strip", z.ZodTypeAny, {
5003
+ type: "timeout";
5004
+ }, {
5005
+ type: "timeout";
5006
+ }>, z.ZodObject<{
5007
+ type: z.ZodLiteral<"exit">;
5008
+ exitCode: z.ZodNullable<z.ZodNumber>;
5009
+ }, "strip", z.ZodTypeAny, {
5010
+ type: "exit";
5011
+ exitCode: number | null;
5012
+ }, {
5013
+ type: "exit";
5014
+ exitCode: number | null;
5015
+ }>]>;
5016
+ }, z.ZodTypeAny, "passthrough">[];
5017
+ callId: string;
5018
+ providerData?: Record<string, any> | undefined;
5019
+ id?: string | undefined;
5020
+ maxOutputLength?: number | undefined;
5021
+ }>, z.ZodObject<{
5022
+ /**
5023
+ * Additional optional provider specific data. Used for custom functionality or model provider
5024
+ * specific fields.
5025
+ */
5026
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5027
+ } & {
5028
+ /**
5029
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
5030
+ * requires this field, it will be validated on the model level.
5031
+ */
5032
+ id: z.ZodOptional<z.ZodString>;
5033
+ } & {
5034
+ type: z.ZodLiteral<"apply_patch_call_output">;
5035
+ callId: z.ZodString;
5036
+ status: z.ZodEnum<["completed", "failed"]>;
5037
+ output: z.ZodOptional<z.ZodString>;
5038
+ }, "strip", z.ZodTypeAny, {
5039
+ type: "apply_patch_call_output";
5040
+ status: "completed" | "failed";
5041
+ callId: string;
5042
+ providerData?: Record<string, any> | undefined;
5043
+ id?: string | undefined;
5044
+ output?: string | undefined;
5045
+ }, {
5046
+ type: "apply_patch_call_output";
5047
+ status: "completed" | "failed";
5048
+ callId: string;
5049
+ providerData?: Record<string, any> | undefined;
5050
+ id?: string | undefined;
5051
+ output?: string | undefined;
5052
+ }>, z.ZodObject<{
5053
+ /**
5054
+ * Additional optional provider specific data. Used for custom functionality or model provider
5055
+ * specific fields.
5056
+ */
5057
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4161
5058
  } & {
4162
5059
  id: z.ZodOptional<z.ZodString>;
4163
5060
  type: z.ZodLiteral<"reasoning">;
@@ -5050,6 +5947,143 @@ export declare const ModelItem: z.ZodUnion<[z.ZodObject<{
5050
5947
  * requires this field, it will be validated on the model level.
5051
5948
  */
5052
5949
  id: z.ZodOptional<z.ZodString>;
5950
+ } & {
5951
+ type: z.ZodLiteral<"shell_call">;
5952
+ callId: z.ZodString;
5953
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
5954
+ action: z.ZodObject<{
5955
+ commands: z.ZodArray<z.ZodString, "many">;
5956
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
5957
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
5958
+ }, "strip", z.ZodTypeAny, {
5959
+ commands: string[];
5960
+ timeoutMs?: number | undefined;
5961
+ maxOutputLength?: number | undefined;
5962
+ }, {
5963
+ commands: string[];
5964
+ timeoutMs?: number | undefined;
5965
+ maxOutputLength?: number | undefined;
5966
+ }>;
5967
+ }, "strip", z.ZodTypeAny, {
5968
+ type: "shell_call";
5969
+ callId: string;
5970
+ action: {
5971
+ commands: string[];
5972
+ timeoutMs?: number | undefined;
5973
+ maxOutputLength?: number | undefined;
5974
+ };
5975
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
5976
+ providerData?: Record<string, any> | undefined;
5977
+ id?: string | undefined;
5978
+ }, {
5979
+ type: "shell_call";
5980
+ callId: string;
5981
+ action: {
5982
+ commands: string[];
5983
+ timeoutMs?: number | undefined;
5984
+ maxOutputLength?: number | undefined;
5985
+ };
5986
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
5987
+ providerData?: Record<string, any> | undefined;
5988
+ id?: string | undefined;
5989
+ }>, z.ZodObject<{
5990
+ /**
5991
+ * Additional optional provider specific data. Used for custom functionality or model provider
5992
+ * specific fields.
5993
+ */
5994
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5995
+ } & {
5996
+ /**
5997
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
5998
+ * requires this field, it will be validated on the model level.
5999
+ */
6000
+ id: z.ZodOptional<z.ZodString>;
6001
+ } & {
6002
+ type: z.ZodLiteral<"apply_patch_call">;
6003
+ callId: z.ZodString;
6004
+ status: z.ZodEnum<["in_progress", "completed"]>;
6005
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6006
+ type: z.ZodLiteral<"create_file">;
6007
+ path: z.ZodString;
6008
+ diff: z.ZodString;
6009
+ }, "strip", z.ZodTypeAny, {
6010
+ path: string;
6011
+ type: "create_file";
6012
+ diff: string;
6013
+ }, {
6014
+ path: string;
6015
+ type: "create_file";
6016
+ diff: string;
6017
+ }>, z.ZodObject<{
6018
+ type: z.ZodLiteral<"update_file">;
6019
+ path: z.ZodString;
6020
+ diff: z.ZodString;
6021
+ }, "strip", z.ZodTypeAny, {
6022
+ path: string;
6023
+ type: "update_file";
6024
+ diff: string;
6025
+ }, {
6026
+ path: string;
6027
+ type: "update_file";
6028
+ diff: string;
6029
+ }>, z.ZodObject<{
6030
+ type: z.ZodLiteral<"delete_file">;
6031
+ path: z.ZodString;
6032
+ }, "strip", z.ZodTypeAny, {
6033
+ path: string;
6034
+ type: "delete_file";
6035
+ }, {
6036
+ path: string;
6037
+ type: "delete_file";
6038
+ }>]>;
6039
+ }, "strip", z.ZodTypeAny, {
6040
+ type: "apply_patch_call";
6041
+ status: "in_progress" | "completed";
6042
+ callId: string;
6043
+ operation: {
6044
+ path: string;
6045
+ type: "create_file";
6046
+ diff: string;
6047
+ } | {
6048
+ path: string;
6049
+ type: "update_file";
6050
+ diff: string;
6051
+ } | {
6052
+ path: string;
6053
+ type: "delete_file";
6054
+ };
6055
+ providerData?: Record<string, any> | undefined;
6056
+ id?: string | undefined;
6057
+ }, {
6058
+ type: "apply_patch_call";
6059
+ status: "in_progress" | "completed";
6060
+ callId: string;
6061
+ operation: {
6062
+ path: string;
6063
+ type: "create_file";
6064
+ diff: string;
6065
+ } | {
6066
+ path: string;
6067
+ type: "update_file";
6068
+ diff: string;
6069
+ } | {
6070
+ path: string;
6071
+ type: "delete_file";
6072
+ };
6073
+ providerData?: Record<string, any> | undefined;
6074
+ id?: string | undefined;
6075
+ }>, z.ZodObject<{
6076
+ /**
6077
+ * Additional optional provider specific data. Used for custom functionality or model provider
6078
+ * specific fields.
6079
+ */
6080
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6081
+ } & {
6082
+ /**
6083
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
6084
+ * requires this field, it will be validated on the model level.
6085
+ */
6086
+ id: z.ZodOptional<z.ZodString>;
5053
6087
  } & {
5054
6088
  type: z.ZodLiteral<"function_call_result">;
5055
6089
  /**
@@ -5510,6 +6544,163 @@ export declare const ModelItem: z.ZodUnion<[z.ZodObject<{
5510
6544
  * specific fields.
5511
6545
  */
5512
6546
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6547
+ } & {
6548
+ /**
6549
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
6550
+ * requires this field, it will be validated on the model level.
6551
+ */
6552
+ id: z.ZodOptional<z.ZodString>;
6553
+ } & {
6554
+ type: z.ZodLiteral<"shell_call_output">;
6555
+ callId: z.ZodString;
6556
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
6557
+ output: z.ZodArray<z.ZodObject<{
6558
+ stdout: z.ZodString;
6559
+ stderr: z.ZodString;
6560
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6561
+ type: z.ZodLiteral<"timeout">;
6562
+ }, "strip", z.ZodTypeAny, {
6563
+ type: "timeout";
6564
+ }, {
6565
+ type: "timeout";
6566
+ }>, z.ZodObject<{
6567
+ type: z.ZodLiteral<"exit">;
6568
+ exitCode: z.ZodNullable<z.ZodNumber>;
6569
+ }, "strip", z.ZodTypeAny, {
6570
+ type: "exit";
6571
+ exitCode: number | null;
6572
+ }, {
6573
+ type: "exit";
6574
+ exitCode: number | null;
6575
+ }>]>;
6576
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6577
+ stdout: z.ZodString;
6578
+ stderr: z.ZodString;
6579
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6580
+ type: z.ZodLiteral<"timeout">;
6581
+ }, "strip", z.ZodTypeAny, {
6582
+ type: "timeout";
6583
+ }, {
6584
+ type: "timeout";
6585
+ }>, z.ZodObject<{
6586
+ type: z.ZodLiteral<"exit">;
6587
+ exitCode: z.ZodNullable<z.ZodNumber>;
6588
+ }, "strip", z.ZodTypeAny, {
6589
+ type: "exit";
6590
+ exitCode: number | null;
6591
+ }, {
6592
+ type: "exit";
6593
+ exitCode: number | null;
6594
+ }>]>;
6595
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6596
+ stdout: z.ZodString;
6597
+ stderr: z.ZodString;
6598
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6599
+ type: z.ZodLiteral<"timeout">;
6600
+ }, "strip", z.ZodTypeAny, {
6601
+ type: "timeout";
6602
+ }, {
6603
+ type: "timeout";
6604
+ }>, z.ZodObject<{
6605
+ type: z.ZodLiteral<"exit">;
6606
+ exitCode: z.ZodNullable<z.ZodNumber>;
6607
+ }, "strip", z.ZodTypeAny, {
6608
+ type: "exit";
6609
+ exitCode: number | null;
6610
+ }, {
6611
+ type: "exit";
6612
+ exitCode: number | null;
6613
+ }>]>;
6614
+ }, z.ZodTypeAny, "passthrough">>, "many">;
6615
+ }, "strip", z.ZodTypeAny, {
6616
+ type: "shell_call_output";
6617
+ output: z.objectOutputType<{
6618
+ stdout: z.ZodString;
6619
+ stderr: z.ZodString;
6620
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6621
+ type: z.ZodLiteral<"timeout">;
6622
+ }, "strip", z.ZodTypeAny, {
6623
+ type: "timeout";
6624
+ }, {
6625
+ type: "timeout";
6626
+ }>, z.ZodObject<{
6627
+ type: z.ZodLiteral<"exit">;
6628
+ exitCode: z.ZodNullable<z.ZodNumber>;
6629
+ }, "strip", z.ZodTypeAny, {
6630
+ type: "exit";
6631
+ exitCode: number | null;
6632
+ }, {
6633
+ type: "exit";
6634
+ exitCode: number | null;
6635
+ }>]>;
6636
+ }, z.ZodTypeAny, "passthrough">[];
6637
+ callId: string;
6638
+ providerData?: Record<string, any> | undefined;
6639
+ id?: string | undefined;
6640
+ maxOutputLength?: number | undefined;
6641
+ }, {
6642
+ type: "shell_call_output";
6643
+ output: z.objectInputType<{
6644
+ stdout: z.ZodString;
6645
+ stderr: z.ZodString;
6646
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6647
+ type: z.ZodLiteral<"timeout">;
6648
+ }, "strip", z.ZodTypeAny, {
6649
+ type: "timeout";
6650
+ }, {
6651
+ type: "timeout";
6652
+ }>, z.ZodObject<{
6653
+ type: z.ZodLiteral<"exit">;
6654
+ exitCode: z.ZodNullable<z.ZodNumber>;
6655
+ }, "strip", z.ZodTypeAny, {
6656
+ type: "exit";
6657
+ exitCode: number | null;
6658
+ }, {
6659
+ type: "exit";
6660
+ exitCode: number | null;
6661
+ }>]>;
6662
+ }, z.ZodTypeAny, "passthrough">[];
6663
+ callId: string;
6664
+ providerData?: Record<string, any> | undefined;
6665
+ id?: string | undefined;
6666
+ maxOutputLength?: number | undefined;
6667
+ }>, z.ZodObject<{
6668
+ /**
6669
+ * Additional optional provider specific data. Used for custom functionality or model provider
6670
+ * specific fields.
6671
+ */
6672
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6673
+ } & {
6674
+ /**
6675
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
6676
+ * requires this field, it will be validated on the model level.
6677
+ */
6678
+ id: z.ZodOptional<z.ZodString>;
6679
+ } & {
6680
+ type: z.ZodLiteral<"apply_patch_call_output">;
6681
+ callId: z.ZodString;
6682
+ status: z.ZodEnum<["completed", "failed"]>;
6683
+ output: z.ZodOptional<z.ZodString>;
6684
+ }, "strip", z.ZodTypeAny, {
6685
+ type: "apply_patch_call_output";
6686
+ status: "completed" | "failed";
6687
+ callId: string;
6688
+ providerData?: Record<string, any> | undefined;
6689
+ id?: string | undefined;
6690
+ output?: string | undefined;
6691
+ }, {
6692
+ type: "apply_patch_call_output";
6693
+ status: "completed" | "failed";
6694
+ callId: string;
6695
+ providerData?: Record<string, any> | undefined;
6696
+ id?: string | undefined;
6697
+ output?: string | undefined;
6698
+ }>, z.ZodObject<{
6699
+ /**
6700
+ * Additional optional provider specific data. Used for custom functionality or model provider
6701
+ * specific fields.
6702
+ */
6703
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5513
6704
  } & {
5514
6705
  id: z.ZodOptional<z.ZodString>;
5515
6706
  type: z.ZodLiteral<"reasoning">;
@@ -6244,6 +7435,143 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
6244
7435
  * requires this field, it will be validated on the model level.
6245
7436
  */
6246
7437
  id: z.ZodOptional<z.ZodString>;
7438
+ } & {
7439
+ type: z.ZodLiteral<"shell_call">;
7440
+ callId: z.ZodString;
7441
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
7442
+ action: z.ZodObject<{
7443
+ commands: z.ZodArray<z.ZodString, "many">;
7444
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
7445
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
7446
+ }, "strip", z.ZodTypeAny, {
7447
+ commands: string[];
7448
+ timeoutMs?: number | undefined;
7449
+ maxOutputLength?: number | undefined;
7450
+ }, {
7451
+ commands: string[];
7452
+ timeoutMs?: number | undefined;
7453
+ maxOutputLength?: number | undefined;
7454
+ }>;
7455
+ }, "strip", z.ZodTypeAny, {
7456
+ type: "shell_call";
7457
+ callId: string;
7458
+ action: {
7459
+ commands: string[];
7460
+ timeoutMs?: number | undefined;
7461
+ maxOutputLength?: number | undefined;
7462
+ };
7463
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
7464
+ providerData?: Record<string, any> | undefined;
7465
+ id?: string | undefined;
7466
+ }, {
7467
+ type: "shell_call";
7468
+ callId: string;
7469
+ action: {
7470
+ commands: string[];
7471
+ timeoutMs?: number | undefined;
7472
+ maxOutputLength?: number | undefined;
7473
+ };
7474
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
7475
+ providerData?: Record<string, any> | undefined;
7476
+ id?: string | undefined;
7477
+ }>, z.ZodObject<{
7478
+ /**
7479
+ * Additional optional provider specific data. Used for custom functionality or model provider
7480
+ * specific fields.
7481
+ */
7482
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7483
+ } & {
7484
+ /**
7485
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
7486
+ * requires this field, it will be validated on the model level.
7487
+ */
7488
+ id: z.ZodOptional<z.ZodString>;
7489
+ } & {
7490
+ type: z.ZodLiteral<"apply_patch_call">;
7491
+ callId: z.ZodString;
7492
+ status: z.ZodEnum<["in_progress", "completed"]>;
7493
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7494
+ type: z.ZodLiteral<"create_file">;
7495
+ path: z.ZodString;
7496
+ diff: z.ZodString;
7497
+ }, "strip", z.ZodTypeAny, {
7498
+ path: string;
7499
+ type: "create_file";
7500
+ diff: string;
7501
+ }, {
7502
+ path: string;
7503
+ type: "create_file";
7504
+ diff: string;
7505
+ }>, z.ZodObject<{
7506
+ type: z.ZodLiteral<"update_file">;
7507
+ path: z.ZodString;
7508
+ diff: z.ZodString;
7509
+ }, "strip", z.ZodTypeAny, {
7510
+ path: string;
7511
+ type: "update_file";
7512
+ diff: string;
7513
+ }, {
7514
+ path: string;
7515
+ type: "update_file";
7516
+ diff: string;
7517
+ }>, z.ZodObject<{
7518
+ type: z.ZodLiteral<"delete_file">;
7519
+ path: z.ZodString;
7520
+ }, "strip", z.ZodTypeAny, {
7521
+ path: string;
7522
+ type: "delete_file";
7523
+ }, {
7524
+ path: string;
7525
+ type: "delete_file";
7526
+ }>]>;
7527
+ }, "strip", z.ZodTypeAny, {
7528
+ type: "apply_patch_call";
7529
+ status: "in_progress" | "completed";
7530
+ callId: string;
7531
+ operation: {
7532
+ path: string;
7533
+ type: "create_file";
7534
+ diff: string;
7535
+ } | {
7536
+ path: string;
7537
+ type: "update_file";
7538
+ diff: string;
7539
+ } | {
7540
+ path: string;
7541
+ type: "delete_file";
7542
+ };
7543
+ providerData?: Record<string, any> | undefined;
7544
+ id?: string | undefined;
7545
+ }, {
7546
+ type: "apply_patch_call";
7547
+ status: "in_progress" | "completed";
7548
+ callId: string;
7549
+ operation: {
7550
+ path: string;
7551
+ type: "create_file";
7552
+ diff: string;
7553
+ } | {
7554
+ path: string;
7555
+ type: "update_file";
7556
+ diff: string;
7557
+ } | {
7558
+ path: string;
7559
+ type: "delete_file";
7560
+ };
7561
+ providerData?: Record<string, any> | undefined;
7562
+ id?: string | undefined;
7563
+ }>, z.ZodObject<{
7564
+ /**
7565
+ * Additional optional provider specific data. Used for custom functionality or model provider
7566
+ * specific fields.
7567
+ */
7568
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7569
+ } & {
7570
+ /**
7571
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
7572
+ * requires this field, it will be validated on the model level.
7573
+ */
7574
+ id: z.ZodOptional<z.ZodString>;
6247
7575
  } & {
6248
7576
  type: z.ZodLiteral<"function_call_result">;
6249
7577
  /**
@@ -6642,6 +7970,163 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
6642
7970
  * specific fields.
6643
7971
  */
6644
7972
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7973
+ } & {
7974
+ /**
7975
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
7976
+ * requires this field, it will be validated on the model level.
7977
+ */
7978
+ id: z.ZodOptional<z.ZodString>;
7979
+ } & {
7980
+ type: z.ZodLiteral<"shell_call_output">;
7981
+ callId: z.ZodString;
7982
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
7983
+ output: z.ZodArray<z.ZodObject<{
7984
+ stdout: z.ZodString;
7985
+ stderr: z.ZodString;
7986
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7987
+ type: z.ZodLiteral<"timeout">;
7988
+ }, "strip", z.ZodTypeAny, {
7989
+ type: "timeout";
7990
+ }, {
7991
+ type: "timeout";
7992
+ }>, z.ZodObject<{
7993
+ type: z.ZodLiteral<"exit">;
7994
+ exitCode: z.ZodNullable<z.ZodNumber>;
7995
+ }, "strip", z.ZodTypeAny, {
7996
+ type: "exit";
7997
+ exitCode: number | null;
7998
+ }, {
7999
+ type: "exit";
8000
+ exitCode: number | null;
8001
+ }>]>;
8002
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8003
+ stdout: z.ZodString;
8004
+ stderr: z.ZodString;
8005
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8006
+ type: z.ZodLiteral<"timeout">;
8007
+ }, "strip", z.ZodTypeAny, {
8008
+ type: "timeout";
8009
+ }, {
8010
+ type: "timeout";
8011
+ }>, z.ZodObject<{
8012
+ type: z.ZodLiteral<"exit">;
8013
+ exitCode: z.ZodNullable<z.ZodNumber>;
8014
+ }, "strip", z.ZodTypeAny, {
8015
+ type: "exit";
8016
+ exitCode: number | null;
8017
+ }, {
8018
+ type: "exit";
8019
+ exitCode: number | null;
8020
+ }>]>;
8021
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8022
+ stdout: z.ZodString;
8023
+ stderr: z.ZodString;
8024
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8025
+ type: z.ZodLiteral<"timeout">;
8026
+ }, "strip", z.ZodTypeAny, {
8027
+ type: "timeout";
8028
+ }, {
8029
+ type: "timeout";
8030
+ }>, z.ZodObject<{
8031
+ type: z.ZodLiteral<"exit">;
8032
+ exitCode: z.ZodNullable<z.ZodNumber>;
8033
+ }, "strip", z.ZodTypeAny, {
8034
+ type: "exit";
8035
+ exitCode: number | null;
8036
+ }, {
8037
+ type: "exit";
8038
+ exitCode: number | null;
8039
+ }>]>;
8040
+ }, z.ZodTypeAny, "passthrough">>, "many">;
8041
+ }, "strip", z.ZodTypeAny, {
8042
+ type: "shell_call_output";
8043
+ output: z.objectOutputType<{
8044
+ stdout: z.ZodString;
8045
+ stderr: z.ZodString;
8046
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8047
+ type: z.ZodLiteral<"timeout">;
8048
+ }, "strip", z.ZodTypeAny, {
8049
+ type: "timeout";
8050
+ }, {
8051
+ type: "timeout";
8052
+ }>, z.ZodObject<{
8053
+ type: z.ZodLiteral<"exit">;
8054
+ exitCode: z.ZodNullable<z.ZodNumber>;
8055
+ }, "strip", z.ZodTypeAny, {
8056
+ type: "exit";
8057
+ exitCode: number | null;
8058
+ }, {
8059
+ type: "exit";
8060
+ exitCode: number | null;
8061
+ }>]>;
8062
+ }, z.ZodTypeAny, "passthrough">[];
8063
+ callId: string;
8064
+ providerData?: Record<string, any> | undefined;
8065
+ id?: string | undefined;
8066
+ maxOutputLength?: number | undefined;
8067
+ }, {
8068
+ type: "shell_call_output";
8069
+ output: z.objectInputType<{
8070
+ stdout: z.ZodString;
8071
+ stderr: z.ZodString;
8072
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8073
+ type: z.ZodLiteral<"timeout">;
8074
+ }, "strip", z.ZodTypeAny, {
8075
+ type: "timeout";
8076
+ }, {
8077
+ type: "timeout";
8078
+ }>, z.ZodObject<{
8079
+ type: z.ZodLiteral<"exit">;
8080
+ exitCode: z.ZodNullable<z.ZodNumber>;
8081
+ }, "strip", z.ZodTypeAny, {
8082
+ type: "exit";
8083
+ exitCode: number | null;
8084
+ }, {
8085
+ type: "exit";
8086
+ exitCode: number | null;
8087
+ }>]>;
8088
+ }, z.ZodTypeAny, "passthrough">[];
8089
+ callId: string;
8090
+ providerData?: Record<string, any> | undefined;
8091
+ id?: string | undefined;
8092
+ maxOutputLength?: number | undefined;
8093
+ }>, z.ZodObject<{
8094
+ /**
8095
+ * Additional optional provider specific data. Used for custom functionality or model provider
8096
+ * specific fields.
8097
+ */
8098
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8099
+ } & {
8100
+ /**
8101
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
8102
+ * requires this field, it will be validated on the model level.
8103
+ */
8104
+ id: z.ZodOptional<z.ZodString>;
8105
+ } & {
8106
+ type: z.ZodLiteral<"apply_patch_call_output">;
8107
+ callId: z.ZodString;
8108
+ status: z.ZodEnum<["completed", "failed"]>;
8109
+ output: z.ZodOptional<z.ZodString>;
8110
+ }, "strip", z.ZodTypeAny, {
8111
+ type: "apply_patch_call_output";
8112
+ status: "completed" | "failed";
8113
+ callId: string;
8114
+ providerData?: Record<string, any> | undefined;
8115
+ id?: string | undefined;
8116
+ output?: string | undefined;
8117
+ }, {
8118
+ type: "apply_patch_call_output";
8119
+ status: "completed" | "failed";
8120
+ callId: string;
8121
+ providerData?: Record<string, any> | undefined;
8122
+ id?: string | undefined;
8123
+ output?: string | undefined;
8124
+ }>, z.ZodObject<{
8125
+ /**
8126
+ * Additional optional provider specific data. Used for custom functionality or model provider
8127
+ * specific fields.
8128
+ */
8129
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6645
8130
  } & {
6646
8131
  id: z.ZodOptional<z.ZodString>;
6647
8132
  type: z.ZodLiteral<"reasoning">;
@@ -6889,6 +8374,68 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
6889
8374
  };
6890
8375
  providerData?: Record<string, any> | undefined;
6891
8376
  id?: string | undefined;
8377
+ } | {
8378
+ type: "shell_call";
8379
+ callId: string;
8380
+ action: {
8381
+ commands: string[];
8382
+ timeoutMs?: number | undefined;
8383
+ maxOutputLength?: number | undefined;
8384
+ };
8385
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
8386
+ providerData?: Record<string, any> | undefined;
8387
+ id?: string | undefined;
8388
+ } | {
8389
+ type: "shell_call_output";
8390
+ output: z.objectOutputType<{
8391
+ stdout: z.ZodString;
8392
+ stderr: z.ZodString;
8393
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8394
+ type: z.ZodLiteral<"timeout">;
8395
+ }, "strip", z.ZodTypeAny, {
8396
+ type: "timeout";
8397
+ }, {
8398
+ type: "timeout";
8399
+ }>, z.ZodObject<{
8400
+ type: z.ZodLiteral<"exit">;
8401
+ exitCode: z.ZodNullable<z.ZodNumber>;
8402
+ }, "strip", z.ZodTypeAny, {
8403
+ type: "exit";
8404
+ exitCode: number | null;
8405
+ }, {
8406
+ type: "exit";
8407
+ exitCode: number | null;
8408
+ }>]>;
8409
+ }, z.ZodTypeAny, "passthrough">[];
8410
+ callId: string;
8411
+ providerData?: Record<string, any> | undefined;
8412
+ id?: string | undefined;
8413
+ maxOutputLength?: number | undefined;
8414
+ } | {
8415
+ type: "apply_patch_call";
8416
+ status: "in_progress" | "completed";
8417
+ callId: string;
8418
+ operation: {
8419
+ path: string;
8420
+ type: "create_file";
8421
+ diff: string;
8422
+ } | {
8423
+ path: string;
8424
+ type: "update_file";
8425
+ diff: string;
8426
+ } | {
8427
+ path: string;
8428
+ type: "delete_file";
8429
+ };
8430
+ providerData?: Record<string, any> | undefined;
8431
+ id?: string | undefined;
8432
+ } | {
8433
+ type: "apply_patch_call_output";
8434
+ status: "completed" | "failed";
8435
+ callId: string;
8436
+ providerData?: Record<string, any> | undefined;
8437
+ id?: string | undefined;
8438
+ output?: string | undefined;
6892
8439
  } | {
6893
8440
  type: "reasoning";
6894
8441
  content: {
@@ -7062,6 +8609,68 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
7062
8609
  };
7063
8610
  providerData?: Record<string, any> | undefined;
7064
8611
  id?: string | undefined;
8612
+ } | {
8613
+ type: "shell_call";
8614
+ callId: string;
8615
+ action: {
8616
+ commands: string[];
8617
+ timeoutMs?: number | undefined;
8618
+ maxOutputLength?: number | undefined;
8619
+ };
8620
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
8621
+ providerData?: Record<string, any> | undefined;
8622
+ id?: string | undefined;
8623
+ } | {
8624
+ type: "shell_call_output";
8625
+ output: z.objectInputType<{
8626
+ stdout: z.ZodString;
8627
+ stderr: z.ZodString;
8628
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8629
+ type: z.ZodLiteral<"timeout">;
8630
+ }, "strip", z.ZodTypeAny, {
8631
+ type: "timeout";
8632
+ }, {
8633
+ type: "timeout";
8634
+ }>, z.ZodObject<{
8635
+ type: z.ZodLiteral<"exit">;
8636
+ exitCode: z.ZodNullable<z.ZodNumber>;
8637
+ }, "strip", z.ZodTypeAny, {
8638
+ type: "exit";
8639
+ exitCode: number | null;
8640
+ }, {
8641
+ type: "exit";
8642
+ exitCode: number | null;
8643
+ }>]>;
8644
+ }, z.ZodTypeAny, "passthrough">[];
8645
+ callId: string;
8646
+ providerData?: Record<string, any> | undefined;
8647
+ id?: string | undefined;
8648
+ maxOutputLength?: number | undefined;
8649
+ } | {
8650
+ type: "apply_patch_call";
8651
+ status: "in_progress" | "completed";
8652
+ callId: string;
8653
+ operation: {
8654
+ path: string;
8655
+ type: "create_file";
8656
+ diff: string;
8657
+ } | {
8658
+ path: string;
8659
+ type: "update_file";
8660
+ diff: string;
8661
+ } | {
8662
+ path: string;
8663
+ type: "delete_file";
8664
+ };
8665
+ providerData?: Record<string, any> | undefined;
8666
+ id?: string | undefined;
8667
+ } | {
8668
+ type: "apply_patch_call_output";
8669
+ status: "completed" | "failed";
8670
+ callId: string;
8671
+ providerData?: Record<string, any> | undefined;
8672
+ id?: string | undefined;
8673
+ output?: string | undefined;
7065
8674
  } | {
7066
8675
  type: "reasoning";
7067
8676
  content: {
@@ -7238,6 +8847,68 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
7238
8847
  };
7239
8848
  providerData?: Record<string, any> | undefined;
7240
8849
  id?: string | undefined;
8850
+ } | {
8851
+ type: "shell_call";
8852
+ callId: string;
8853
+ action: {
8854
+ commands: string[];
8855
+ timeoutMs?: number | undefined;
8856
+ maxOutputLength?: number | undefined;
8857
+ };
8858
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
8859
+ providerData?: Record<string, any> | undefined;
8860
+ id?: string | undefined;
8861
+ } | {
8862
+ type: "shell_call_output";
8863
+ output: z.objectOutputType<{
8864
+ stdout: z.ZodString;
8865
+ stderr: z.ZodString;
8866
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8867
+ type: z.ZodLiteral<"timeout">;
8868
+ }, "strip", z.ZodTypeAny, {
8869
+ type: "timeout";
8870
+ }, {
8871
+ type: "timeout";
8872
+ }>, z.ZodObject<{
8873
+ type: z.ZodLiteral<"exit">;
8874
+ exitCode: z.ZodNullable<z.ZodNumber>;
8875
+ }, "strip", z.ZodTypeAny, {
8876
+ type: "exit";
8877
+ exitCode: number | null;
8878
+ }, {
8879
+ type: "exit";
8880
+ exitCode: number | null;
8881
+ }>]>;
8882
+ }, z.ZodTypeAny, "passthrough">[];
8883
+ callId: string;
8884
+ providerData?: Record<string, any> | undefined;
8885
+ id?: string | undefined;
8886
+ maxOutputLength?: number | undefined;
8887
+ } | {
8888
+ type: "apply_patch_call";
8889
+ status: "in_progress" | "completed";
8890
+ callId: string;
8891
+ operation: {
8892
+ path: string;
8893
+ type: "create_file";
8894
+ diff: string;
8895
+ } | {
8896
+ path: string;
8897
+ type: "update_file";
8898
+ diff: string;
8899
+ } | {
8900
+ path: string;
8901
+ type: "delete_file";
8902
+ };
8903
+ providerData?: Record<string, any> | undefined;
8904
+ id?: string | undefined;
8905
+ } | {
8906
+ type: "apply_patch_call_output";
8907
+ status: "completed" | "failed";
8908
+ callId: string;
8909
+ providerData?: Record<string, any> | undefined;
8910
+ id?: string | undefined;
8911
+ output?: string | undefined;
7241
8912
  } | {
7242
8913
  type: "reasoning";
7243
8914
  content: {
@@ -7415,6 +9086,68 @@ export declare const StreamEventResponseCompleted: z.ZodObject<{
7415
9086
  };
7416
9087
  providerData?: Record<string, any> | undefined;
7417
9088
  id?: string | undefined;
9089
+ } | {
9090
+ type: "shell_call";
9091
+ callId: string;
9092
+ action: {
9093
+ commands: string[];
9094
+ timeoutMs?: number | undefined;
9095
+ maxOutputLength?: number | undefined;
9096
+ };
9097
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
9098
+ providerData?: Record<string, any> | undefined;
9099
+ id?: string | undefined;
9100
+ } | {
9101
+ type: "shell_call_output";
9102
+ output: z.objectInputType<{
9103
+ stdout: z.ZodString;
9104
+ stderr: z.ZodString;
9105
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9106
+ type: z.ZodLiteral<"timeout">;
9107
+ }, "strip", z.ZodTypeAny, {
9108
+ type: "timeout";
9109
+ }, {
9110
+ type: "timeout";
9111
+ }>, z.ZodObject<{
9112
+ type: z.ZodLiteral<"exit">;
9113
+ exitCode: z.ZodNullable<z.ZodNumber>;
9114
+ }, "strip", z.ZodTypeAny, {
9115
+ type: "exit";
9116
+ exitCode: number | null;
9117
+ }, {
9118
+ type: "exit";
9119
+ exitCode: number | null;
9120
+ }>]>;
9121
+ }, z.ZodTypeAny, "passthrough">[];
9122
+ callId: string;
9123
+ providerData?: Record<string, any> | undefined;
9124
+ id?: string | undefined;
9125
+ maxOutputLength?: number | undefined;
9126
+ } | {
9127
+ type: "apply_patch_call";
9128
+ status: "in_progress" | "completed";
9129
+ callId: string;
9130
+ operation: {
9131
+ path: string;
9132
+ type: "create_file";
9133
+ diff: string;
9134
+ } | {
9135
+ path: string;
9136
+ type: "update_file";
9137
+ diff: string;
9138
+ } | {
9139
+ path: string;
9140
+ type: "delete_file";
9141
+ };
9142
+ providerData?: Record<string, any> | undefined;
9143
+ id?: string | undefined;
9144
+ } | {
9145
+ type: "apply_patch_call_output";
9146
+ status: "completed" | "failed";
9147
+ callId: string;
9148
+ providerData?: Record<string, any> | undefined;
9149
+ id?: string | undefined;
9150
+ output?: string | undefined;
7418
9151
  } | {
7419
9152
  type: "reasoning";
7420
9153
  content: {
@@ -7986,56 +9719,193 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7986
9719
  x: number;
7987
9720
  y: number;
7988
9721
  } | {
7989
- keys: string[];
7990
- type: "keypress";
9722
+ keys: string[];
9723
+ type: "keypress";
9724
+ } | {
9725
+ path: {
9726
+ x: number;
9727
+ y: number;
9728
+ }[];
9729
+ type: "drag";
9730
+ };
9731
+ providerData?: Record<string, any> | undefined;
9732
+ id?: string | undefined;
9733
+ }, {
9734
+ type: "computer_call";
9735
+ status: "in_progress" | "completed" | "incomplete";
9736
+ callId: string;
9737
+ action: {
9738
+ type: "screenshot";
9739
+ } | {
9740
+ type: "click";
9741
+ x: number;
9742
+ y: number;
9743
+ button: "left" | "right" | "wheel" | "back" | "forward";
9744
+ } | {
9745
+ type: "double_click";
9746
+ x: number;
9747
+ y: number;
9748
+ } | {
9749
+ type: "scroll";
9750
+ x: number;
9751
+ y: number;
9752
+ scroll_x: number;
9753
+ scroll_y: number;
9754
+ } | {
9755
+ type: "type";
9756
+ text: string;
9757
+ } | {
9758
+ type: "wait";
9759
+ } | {
9760
+ type: "move";
9761
+ x: number;
9762
+ y: number;
9763
+ } | {
9764
+ keys: string[];
9765
+ type: "keypress";
9766
+ } | {
9767
+ path: {
9768
+ x: number;
9769
+ y: number;
9770
+ }[];
9771
+ type: "drag";
9772
+ };
9773
+ providerData?: Record<string, any> | undefined;
9774
+ id?: string | undefined;
9775
+ }>, z.ZodObject<{
9776
+ /**
9777
+ * Additional optional provider specific data. Used for custom functionality or model provider
9778
+ * specific fields.
9779
+ */
9780
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9781
+ } & {
9782
+ /**
9783
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
9784
+ * requires this field, it will be validated on the model level.
9785
+ */
9786
+ id: z.ZodOptional<z.ZodString>;
9787
+ } & {
9788
+ type: z.ZodLiteral<"shell_call">;
9789
+ callId: z.ZodString;
9790
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
9791
+ action: z.ZodObject<{
9792
+ commands: z.ZodArray<z.ZodString, "many">;
9793
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
9794
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
9795
+ }, "strip", z.ZodTypeAny, {
9796
+ commands: string[];
9797
+ timeoutMs?: number | undefined;
9798
+ maxOutputLength?: number | undefined;
9799
+ }, {
9800
+ commands: string[];
9801
+ timeoutMs?: number | undefined;
9802
+ maxOutputLength?: number | undefined;
9803
+ }>;
9804
+ }, "strip", z.ZodTypeAny, {
9805
+ type: "shell_call";
9806
+ callId: string;
9807
+ action: {
9808
+ commands: string[];
9809
+ timeoutMs?: number | undefined;
9810
+ maxOutputLength?: number | undefined;
9811
+ };
9812
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
9813
+ providerData?: Record<string, any> | undefined;
9814
+ id?: string | undefined;
9815
+ }, {
9816
+ type: "shell_call";
9817
+ callId: string;
9818
+ action: {
9819
+ commands: string[];
9820
+ timeoutMs?: number | undefined;
9821
+ maxOutputLength?: number | undefined;
9822
+ };
9823
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
9824
+ providerData?: Record<string, any> | undefined;
9825
+ id?: string | undefined;
9826
+ }>, z.ZodObject<{
9827
+ /**
9828
+ * Additional optional provider specific data. Used for custom functionality or model provider
9829
+ * specific fields.
9830
+ */
9831
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9832
+ } & {
9833
+ /**
9834
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
9835
+ * requires this field, it will be validated on the model level.
9836
+ */
9837
+ id: z.ZodOptional<z.ZodString>;
9838
+ } & {
9839
+ type: z.ZodLiteral<"apply_patch_call">;
9840
+ callId: z.ZodString;
9841
+ status: z.ZodEnum<["in_progress", "completed"]>;
9842
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9843
+ type: z.ZodLiteral<"create_file">;
9844
+ path: z.ZodString;
9845
+ diff: z.ZodString;
9846
+ }, "strip", z.ZodTypeAny, {
9847
+ path: string;
9848
+ type: "create_file";
9849
+ diff: string;
9850
+ }, {
9851
+ path: string;
9852
+ type: "create_file";
9853
+ diff: string;
9854
+ }>, z.ZodObject<{
9855
+ type: z.ZodLiteral<"update_file">;
9856
+ path: z.ZodString;
9857
+ diff: z.ZodString;
9858
+ }, "strip", z.ZodTypeAny, {
9859
+ path: string;
9860
+ type: "update_file";
9861
+ diff: string;
9862
+ }, {
9863
+ path: string;
9864
+ type: "update_file";
9865
+ diff: string;
9866
+ }>, z.ZodObject<{
9867
+ type: z.ZodLiteral<"delete_file">;
9868
+ path: z.ZodString;
9869
+ }, "strip", z.ZodTypeAny, {
9870
+ path: string;
9871
+ type: "delete_file";
9872
+ }, {
9873
+ path: string;
9874
+ type: "delete_file";
9875
+ }>]>;
9876
+ }, "strip", z.ZodTypeAny, {
9877
+ type: "apply_patch_call";
9878
+ status: "in_progress" | "completed";
9879
+ callId: string;
9880
+ operation: {
9881
+ path: string;
9882
+ type: "create_file";
9883
+ diff: string;
9884
+ } | {
9885
+ path: string;
9886
+ type: "update_file";
9887
+ diff: string;
7991
9888
  } | {
7992
- path: {
7993
- x: number;
7994
- y: number;
7995
- }[];
7996
- type: "drag";
9889
+ path: string;
9890
+ type: "delete_file";
7997
9891
  };
7998
9892
  providerData?: Record<string, any> | undefined;
7999
9893
  id?: string | undefined;
8000
9894
  }, {
8001
- type: "computer_call";
8002
- status: "in_progress" | "completed" | "incomplete";
9895
+ type: "apply_patch_call";
9896
+ status: "in_progress" | "completed";
8003
9897
  callId: string;
8004
- action: {
8005
- type: "screenshot";
9898
+ operation: {
9899
+ path: string;
9900
+ type: "create_file";
9901
+ diff: string;
8006
9902
  } | {
8007
- type: "click";
8008
- x: number;
8009
- y: number;
8010
- button: "left" | "right" | "wheel" | "back" | "forward";
8011
- } | {
8012
- type: "double_click";
8013
- x: number;
8014
- y: number;
8015
- } | {
8016
- type: "scroll";
8017
- x: number;
8018
- y: number;
8019
- scroll_x: number;
8020
- scroll_y: number;
8021
- } | {
8022
- type: "type";
8023
- text: string;
8024
- } | {
8025
- type: "wait";
8026
- } | {
8027
- type: "move";
8028
- x: number;
8029
- y: number;
8030
- } | {
8031
- keys: string[];
8032
- type: "keypress";
9903
+ path: string;
9904
+ type: "update_file";
9905
+ diff: string;
8033
9906
  } | {
8034
- path: {
8035
- x: number;
8036
- y: number;
8037
- }[];
8038
- type: "drag";
9907
+ path: string;
9908
+ type: "delete_file";
8039
9909
  };
8040
9910
  providerData?: Record<string, any> | undefined;
8041
9911
  id?: string | undefined;
@@ -8449,6 +10319,163 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8449
10319
  * specific fields.
8450
10320
  */
8451
10321
  providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
10322
+ } & {
10323
+ /**
10324
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
10325
+ * requires this field, it will be validated on the model level.
10326
+ */
10327
+ id: z.ZodOptional<z.ZodString>;
10328
+ } & {
10329
+ type: z.ZodLiteral<"shell_call_output">;
10330
+ callId: z.ZodString;
10331
+ maxOutputLength: z.ZodOptional<z.ZodNumber>;
10332
+ output: z.ZodArray<z.ZodObject<{
10333
+ stdout: z.ZodString;
10334
+ stderr: z.ZodString;
10335
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10336
+ type: z.ZodLiteral<"timeout">;
10337
+ }, "strip", z.ZodTypeAny, {
10338
+ type: "timeout";
10339
+ }, {
10340
+ type: "timeout";
10341
+ }>, z.ZodObject<{
10342
+ type: z.ZodLiteral<"exit">;
10343
+ exitCode: z.ZodNullable<z.ZodNumber>;
10344
+ }, "strip", z.ZodTypeAny, {
10345
+ type: "exit";
10346
+ exitCode: number | null;
10347
+ }, {
10348
+ type: "exit";
10349
+ exitCode: number | null;
10350
+ }>]>;
10351
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10352
+ stdout: z.ZodString;
10353
+ stderr: z.ZodString;
10354
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10355
+ type: z.ZodLiteral<"timeout">;
10356
+ }, "strip", z.ZodTypeAny, {
10357
+ type: "timeout";
10358
+ }, {
10359
+ type: "timeout";
10360
+ }>, z.ZodObject<{
10361
+ type: z.ZodLiteral<"exit">;
10362
+ exitCode: z.ZodNullable<z.ZodNumber>;
10363
+ }, "strip", z.ZodTypeAny, {
10364
+ type: "exit";
10365
+ exitCode: number | null;
10366
+ }, {
10367
+ type: "exit";
10368
+ exitCode: number | null;
10369
+ }>]>;
10370
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10371
+ stdout: z.ZodString;
10372
+ stderr: z.ZodString;
10373
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10374
+ type: z.ZodLiteral<"timeout">;
10375
+ }, "strip", z.ZodTypeAny, {
10376
+ type: "timeout";
10377
+ }, {
10378
+ type: "timeout";
10379
+ }>, z.ZodObject<{
10380
+ type: z.ZodLiteral<"exit">;
10381
+ exitCode: z.ZodNullable<z.ZodNumber>;
10382
+ }, "strip", z.ZodTypeAny, {
10383
+ type: "exit";
10384
+ exitCode: number | null;
10385
+ }, {
10386
+ type: "exit";
10387
+ exitCode: number | null;
10388
+ }>]>;
10389
+ }, z.ZodTypeAny, "passthrough">>, "many">;
10390
+ }, "strip", z.ZodTypeAny, {
10391
+ type: "shell_call_output";
10392
+ output: z.objectOutputType<{
10393
+ stdout: z.ZodString;
10394
+ stderr: z.ZodString;
10395
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10396
+ type: z.ZodLiteral<"timeout">;
10397
+ }, "strip", z.ZodTypeAny, {
10398
+ type: "timeout";
10399
+ }, {
10400
+ type: "timeout";
10401
+ }>, z.ZodObject<{
10402
+ type: z.ZodLiteral<"exit">;
10403
+ exitCode: z.ZodNullable<z.ZodNumber>;
10404
+ }, "strip", z.ZodTypeAny, {
10405
+ type: "exit";
10406
+ exitCode: number | null;
10407
+ }, {
10408
+ type: "exit";
10409
+ exitCode: number | null;
10410
+ }>]>;
10411
+ }, z.ZodTypeAny, "passthrough">[];
10412
+ callId: string;
10413
+ providerData?: Record<string, any> | undefined;
10414
+ id?: string | undefined;
10415
+ maxOutputLength?: number | undefined;
10416
+ }, {
10417
+ type: "shell_call_output";
10418
+ output: z.objectInputType<{
10419
+ stdout: z.ZodString;
10420
+ stderr: z.ZodString;
10421
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10422
+ type: z.ZodLiteral<"timeout">;
10423
+ }, "strip", z.ZodTypeAny, {
10424
+ type: "timeout";
10425
+ }, {
10426
+ type: "timeout";
10427
+ }>, z.ZodObject<{
10428
+ type: z.ZodLiteral<"exit">;
10429
+ exitCode: z.ZodNullable<z.ZodNumber>;
10430
+ }, "strip", z.ZodTypeAny, {
10431
+ type: "exit";
10432
+ exitCode: number | null;
10433
+ }, {
10434
+ type: "exit";
10435
+ exitCode: number | null;
10436
+ }>]>;
10437
+ }, z.ZodTypeAny, "passthrough">[];
10438
+ callId: string;
10439
+ providerData?: Record<string, any> | undefined;
10440
+ id?: string | undefined;
10441
+ maxOutputLength?: number | undefined;
10442
+ }>, z.ZodObject<{
10443
+ /**
10444
+ * Additional optional provider specific data. Used for custom functionality or model provider
10445
+ * specific fields.
10446
+ */
10447
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
10448
+ } & {
10449
+ /**
10450
+ * An ID to identify the item. This is optional by default. If a model provider absolutely
10451
+ * requires this field, it will be validated on the model level.
10452
+ */
10453
+ id: z.ZodOptional<z.ZodString>;
10454
+ } & {
10455
+ type: z.ZodLiteral<"apply_patch_call_output">;
10456
+ callId: z.ZodString;
10457
+ status: z.ZodEnum<["completed", "failed"]>;
10458
+ output: z.ZodOptional<z.ZodString>;
10459
+ }, "strip", z.ZodTypeAny, {
10460
+ type: "apply_patch_call_output";
10461
+ status: "completed" | "failed";
10462
+ callId: string;
10463
+ providerData?: Record<string, any> | undefined;
10464
+ id?: string | undefined;
10465
+ output?: string | undefined;
10466
+ }, {
10467
+ type: "apply_patch_call_output";
10468
+ status: "completed" | "failed";
10469
+ callId: string;
10470
+ providerData?: Record<string, any> | undefined;
10471
+ id?: string | undefined;
10472
+ output?: string | undefined;
10473
+ }>, z.ZodObject<{
10474
+ /**
10475
+ * Additional optional provider specific data. Used for custom functionality or model provider
10476
+ * specific fields.
10477
+ */
10478
+ providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8452
10479
  } & {
8453
10480
  id: z.ZodOptional<z.ZodString>;
8454
10481
  type: z.ZodLiteral<"reasoning">;
@@ -8696,6 +10723,68 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8696
10723
  };
8697
10724
  providerData?: Record<string, any> | undefined;
8698
10725
  id?: string | undefined;
10726
+ } | {
10727
+ type: "shell_call";
10728
+ callId: string;
10729
+ action: {
10730
+ commands: string[];
10731
+ timeoutMs?: number | undefined;
10732
+ maxOutputLength?: number | undefined;
10733
+ };
10734
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
10735
+ providerData?: Record<string, any> | undefined;
10736
+ id?: string | undefined;
10737
+ } | {
10738
+ type: "shell_call_output";
10739
+ output: z.objectOutputType<{
10740
+ stdout: z.ZodString;
10741
+ stderr: z.ZodString;
10742
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10743
+ type: z.ZodLiteral<"timeout">;
10744
+ }, "strip", z.ZodTypeAny, {
10745
+ type: "timeout";
10746
+ }, {
10747
+ type: "timeout";
10748
+ }>, z.ZodObject<{
10749
+ type: z.ZodLiteral<"exit">;
10750
+ exitCode: z.ZodNullable<z.ZodNumber>;
10751
+ }, "strip", z.ZodTypeAny, {
10752
+ type: "exit";
10753
+ exitCode: number | null;
10754
+ }, {
10755
+ type: "exit";
10756
+ exitCode: number | null;
10757
+ }>]>;
10758
+ }, z.ZodTypeAny, "passthrough">[];
10759
+ callId: string;
10760
+ providerData?: Record<string, any> | undefined;
10761
+ id?: string | undefined;
10762
+ maxOutputLength?: number | undefined;
10763
+ } | {
10764
+ type: "apply_patch_call";
10765
+ status: "in_progress" | "completed";
10766
+ callId: string;
10767
+ operation: {
10768
+ path: string;
10769
+ type: "create_file";
10770
+ diff: string;
10771
+ } | {
10772
+ path: string;
10773
+ type: "update_file";
10774
+ diff: string;
10775
+ } | {
10776
+ path: string;
10777
+ type: "delete_file";
10778
+ };
10779
+ providerData?: Record<string, any> | undefined;
10780
+ id?: string | undefined;
10781
+ } | {
10782
+ type: "apply_patch_call_output";
10783
+ status: "completed" | "failed";
10784
+ callId: string;
10785
+ providerData?: Record<string, any> | undefined;
10786
+ id?: string | undefined;
10787
+ output?: string | undefined;
8699
10788
  } | {
8700
10789
  type: "reasoning";
8701
10790
  content: {
@@ -8869,6 +10958,68 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8869
10958
  };
8870
10959
  providerData?: Record<string, any> | undefined;
8871
10960
  id?: string | undefined;
10961
+ } | {
10962
+ type: "shell_call";
10963
+ callId: string;
10964
+ action: {
10965
+ commands: string[];
10966
+ timeoutMs?: number | undefined;
10967
+ maxOutputLength?: number | undefined;
10968
+ };
10969
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
10970
+ providerData?: Record<string, any> | undefined;
10971
+ id?: string | undefined;
10972
+ } | {
10973
+ type: "shell_call_output";
10974
+ output: z.objectInputType<{
10975
+ stdout: z.ZodString;
10976
+ stderr: z.ZodString;
10977
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10978
+ type: z.ZodLiteral<"timeout">;
10979
+ }, "strip", z.ZodTypeAny, {
10980
+ type: "timeout";
10981
+ }, {
10982
+ type: "timeout";
10983
+ }>, z.ZodObject<{
10984
+ type: z.ZodLiteral<"exit">;
10985
+ exitCode: z.ZodNullable<z.ZodNumber>;
10986
+ }, "strip", z.ZodTypeAny, {
10987
+ type: "exit";
10988
+ exitCode: number | null;
10989
+ }, {
10990
+ type: "exit";
10991
+ exitCode: number | null;
10992
+ }>]>;
10993
+ }, z.ZodTypeAny, "passthrough">[];
10994
+ callId: string;
10995
+ providerData?: Record<string, any> | undefined;
10996
+ id?: string | undefined;
10997
+ maxOutputLength?: number | undefined;
10998
+ } | {
10999
+ type: "apply_patch_call";
11000
+ status: "in_progress" | "completed";
11001
+ callId: string;
11002
+ operation: {
11003
+ path: string;
11004
+ type: "create_file";
11005
+ diff: string;
11006
+ } | {
11007
+ path: string;
11008
+ type: "update_file";
11009
+ diff: string;
11010
+ } | {
11011
+ path: string;
11012
+ type: "delete_file";
11013
+ };
11014
+ providerData?: Record<string, any> | undefined;
11015
+ id?: string | undefined;
11016
+ } | {
11017
+ type: "apply_patch_call_output";
11018
+ status: "completed" | "failed";
11019
+ callId: string;
11020
+ providerData?: Record<string, any> | undefined;
11021
+ id?: string | undefined;
11022
+ output?: string | undefined;
8872
11023
  } | {
8873
11024
  type: "reasoning";
8874
11025
  content: {
@@ -9045,6 +11196,68 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9045
11196
  };
9046
11197
  providerData?: Record<string, any> | undefined;
9047
11198
  id?: string | undefined;
11199
+ } | {
11200
+ type: "shell_call";
11201
+ callId: string;
11202
+ action: {
11203
+ commands: string[];
11204
+ timeoutMs?: number | undefined;
11205
+ maxOutputLength?: number | undefined;
11206
+ };
11207
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
11208
+ providerData?: Record<string, any> | undefined;
11209
+ id?: string | undefined;
11210
+ } | {
11211
+ type: "shell_call_output";
11212
+ output: z.objectOutputType<{
11213
+ stdout: z.ZodString;
11214
+ stderr: z.ZodString;
11215
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11216
+ type: z.ZodLiteral<"timeout">;
11217
+ }, "strip", z.ZodTypeAny, {
11218
+ type: "timeout";
11219
+ }, {
11220
+ type: "timeout";
11221
+ }>, z.ZodObject<{
11222
+ type: z.ZodLiteral<"exit">;
11223
+ exitCode: z.ZodNullable<z.ZodNumber>;
11224
+ }, "strip", z.ZodTypeAny, {
11225
+ type: "exit";
11226
+ exitCode: number | null;
11227
+ }, {
11228
+ type: "exit";
11229
+ exitCode: number | null;
11230
+ }>]>;
11231
+ }, z.ZodTypeAny, "passthrough">[];
11232
+ callId: string;
11233
+ providerData?: Record<string, any> | undefined;
11234
+ id?: string | undefined;
11235
+ maxOutputLength?: number | undefined;
11236
+ } | {
11237
+ type: "apply_patch_call";
11238
+ status: "in_progress" | "completed";
11239
+ callId: string;
11240
+ operation: {
11241
+ path: string;
11242
+ type: "create_file";
11243
+ diff: string;
11244
+ } | {
11245
+ path: string;
11246
+ type: "update_file";
11247
+ diff: string;
11248
+ } | {
11249
+ path: string;
11250
+ type: "delete_file";
11251
+ };
11252
+ providerData?: Record<string, any> | undefined;
11253
+ id?: string | undefined;
11254
+ } | {
11255
+ type: "apply_patch_call_output";
11256
+ status: "completed" | "failed";
11257
+ callId: string;
11258
+ providerData?: Record<string, any> | undefined;
11259
+ id?: string | undefined;
11260
+ output?: string | undefined;
9048
11261
  } | {
9049
11262
  type: "reasoning";
9050
11263
  content: {
@@ -9222,6 +11435,68 @@ export declare const StreamEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9222
11435
  };
9223
11436
  providerData?: Record<string, any> | undefined;
9224
11437
  id?: string | undefined;
11438
+ } | {
11439
+ type: "shell_call";
11440
+ callId: string;
11441
+ action: {
11442
+ commands: string[];
11443
+ timeoutMs?: number | undefined;
11444
+ maxOutputLength?: number | undefined;
11445
+ };
11446
+ status?: "in_progress" | "completed" | "incomplete" | undefined;
11447
+ providerData?: Record<string, any> | undefined;
11448
+ id?: string | undefined;
11449
+ } | {
11450
+ type: "shell_call_output";
11451
+ output: z.objectInputType<{
11452
+ stdout: z.ZodString;
11453
+ stderr: z.ZodString;
11454
+ outcome: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11455
+ type: z.ZodLiteral<"timeout">;
11456
+ }, "strip", z.ZodTypeAny, {
11457
+ type: "timeout";
11458
+ }, {
11459
+ type: "timeout";
11460
+ }>, z.ZodObject<{
11461
+ type: z.ZodLiteral<"exit">;
11462
+ exitCode: z.ZodNullable<z.ZodNumber>;
11463
+ }, "strip", z.ZodTypeAny, {
11464
+ type: "exit";
11465
+ exitCode: number | null;
11466
+ }, {
11467
+ type: "exit";
11468
+ exitCode: number | null;
11469
+ }>]>;
11470
+ }, z.ZodTypeAny, "passthrough">[];
11471
+ callId: string;
11472
+ providerData?: Record<string, any> | undefined;
11473
+ id?: string | undefined;
11474
+ maxOutputLength?: number | undefined;
11475
+ } | {
11476
+ type: "apply_patch_call";
11477
+ status: "in_progress" | "completed";
11478
+ callId: string;
11479
+ operation: {
11480
+ path: string;
11481
+ type: "create_file";
11482
+ diff: string;
11483
+ } | {
11484
+ path: string;
11485
+ type: "update_file";
11486
+ diff: string;
11487
+ } | {
11488
+ path: string;
11489
+ type: "delete_file";
11490
+ };
11491
+ providerData?: Record<string, any> | undefined;
11492
+ id?: string | undefined;
11493
+ } | {
11494
+ type: "apply_patch_call_output";
11495
+ status: "completed" | "failed";
11496
+ callId: string;
11497
+ providerData?: Record<string, any> | undefined;
11498
+ id?: string | undefined;
11499
+ output?: string | undefined;
9225
11500
  } | {
9226
11501
  type: "reasoning";
9227
11502
  content: {