| ... | @@ -241,6 +241,7 @@ const ModelReroutedType = Schema.Literal("model.rerouted"); | ... | @@ -241,6 +241,7 @@ const ModelReroutedType = Schema.Literal("model.rerouted"); |
| 241 | const ConfigWarningType = Schema.Literal("config.warning"); | 241 | const ConfigWarningType = Schema.Literal("config.warning"); |
| 242 | const DeprecationNoticeType = Schema.Literal("deprecation.notice"); | 242 | const DeprecationNoticeType = Schema.Literal("deprecation.notice"); |
| 243 | const FilesPersistedType = Schema.Literal("files.persisted"); | 243 | const FilesPersistedType = Schema.Literal("files.persisted"); |
| | 244 | const ToolDeniedType = Schema.Literal("tool.denied"); |
| 244 | const RuntimeWarningType = Schema.Literal("runtime.warning"); | 245 | const RuntimeWarningType = Schema.Literal("runtime.warning"); |
| 245 | const RuntimeErrorType = Schema.Literal("runtime.error"); | 246 | const RuntimeErrorType = Schema.Literal("runtime.error"); |
| 246 | | 247 | |
| ... | @@ -589,6 +590,14 @@ const FilesPersistedPayload = Schema.Struct({ | ... | @@ -589,6 +590,14 @@ const FilesPersistedPayload = Schema.Struct({ |
| 589 | }); | 590 | }); |
| 590 | export type FilesPersistedPayload = typeof FilesPersistedPayload.Type; | 591 | export type FilesPersistedPayload = typeof FilesPersistedPayload.Type; |
| 591 | | 592 | |
| | 593 | const ToolDeniedPayload = Schema.Struct({ |
| | 594 | toolName: TrimmedNonEmptyStringSchema, |
| | 595 | toolUseId: Schema.optional(TrimmedNonEmptyStringSchema), |
| | 596 | reason: Schema.optional(TrimmedNonEmptyStringSchema), |
| | 597 | agentId: Schema.optional(TrimmedNonEmptyStringSchema), |
| | 598 | }); |
| | 599 | export type ToolDeniedPayload = typeof ToolDeniedPayload.Type; |
| | 600 | |
| 592 | const RuntimeWarningPayload = Schema.Struct({ | 601 | const RuntimeWarningPayload = Schema.Struct({ |
| 593 | message: TrimmedNonEmptyStringSchema, | 602 | message: TrimmedNonEmptyStringSchema, |
| 594 | detail: Schema.optional(Schema.Unknown), | 603 | detail: Schema.optional(Schema.Unknown), |
| ... | @@ -934,6 +943,13 @@ const ProviderRuntimeFilesPersistedEvent = Schema.Struct({ | ... | @@ -934,6 +943,13 @@ const ProviderRuntimeFilesPersistedEvent = Schema.Struct({ |
| 934 | }); | 943 | }); |
| 935 | export type ProviderRuntimeFilesPersistedEvent = typeof ProviderRuntimeFilesPersistedEvent.Type; | 944 | export type ProviderRuntimeFilesPersistedEvent = typeof ProviderRuntimeFilesPersistedEvent.Type; |
| 936 | | 945 | |
| | 946 | const ProviderRuntimeToolDeniedEvent = Schema.Struct({ |
| | 947 | ...ProviderRuntimeEventBase.fields, |
| | 948 | type: ToolDeniedType, |
| | 949 | payload: ToolDeniedPayload, |
| | 950 | }); |
| | 951 | export type ProviderRuntimeToolDeniedEvent = typeof ProviderRuntimeToolDeniedEvent.Type; |
| | 952 | |
| 937 | const ProviderRuntimeWarningEvent = Schema.Struct({ | 953 | const ProviderRuntimeWarningEvent = Schema.Struct({ |
| 938 | ...ProviderRuntimeEventBase.fields, | 954 | ...ProviderRuntimeEventBase.fields, |
| 939 | type: RuntimeWarningType, | 955 | type: RuntimeWarningType, |
| ... | @@ -994,6 +1010,7 @@ export const ProviderRuntimeEventV2 = Schema.Union([ | ... | @@ -994,6 +1010,7 @@ export const ProviderRuntimeEventV2 = Schema.Union([ |
| 994 | ProviderRuntimeConfigWarningEvent, | 1010 | ProviderRuntimeConfigWarningEvent, |
| 995 | ProviderRuntimeDeprecationNoticeEvent, | 1011 | ProviderRuntimeDeprecationNoticeEvent, |
| 996 | ProviderRuntimeFilesPersistedEvent, | 1012 | ProviderRuntimeFilesPersistedEvent, |
| | 1013 | ProviderRuntimeToolDeniedEvent, |
| 997 | ProviderRuntimeWarningEvent, | 1014 | ProviderRuntimeWarningEvent, |
| 998 | ProviderRuntimeErrorEvent, | 1015 | ProviderRuntimeErrorEvent, |
| 999 | ]); | 1016 | ]); |