| @@ -15,7 +15,7 @@ import { ProviderKind } from "./orchestration"; · 14 unmodified lines |
| 15 | 15 | const TrimmedNonEmptyStringSchema = TrimmedNonEmptyString; |
| 16 | 16 | const UnknownRecordSchema = Schema.Record(Schema.String, Schema.Unknown); |
| 17 | 17 | |
| 18 | | −export const RuntimeEventRawSource = Schema.Literals([ |
| 18 | +const RuntimeEventRawSource = Schema.Literals([ |
| 19 | 19 | "codex.app-server.notification", |
| 20 | 20 | "codex.app-server.request", |
| 21 | 21 | "codex.eventmsg", |
| @@ -36,17 +36,17 @@ export const RuntimeEventRaw = Schema.Struct({ · 14 unmodified lines |
| 36 | 36 | }); |
| 37 | 37 | export type RuntimeEventRaw = typeof RuntimeEventRaw.Type; |
| 38 | 38 | |
| 39 | | −export const ProviderRequestId = TrimmedNonEmptyStringSchema; |
| 39 | +const ProviderRequestId = TrimmedNonEmptyStringSchema; |
| 40 | 40 | export type ProviderRequestId = typeof ProviderRequestId.Type; |
| 41 | 41 | |
| 42 | | −export const ProviderRefs = Schema.Struct({ |
| 42 | +const ProviderRefs = Schema.Struct({ |
| 43 | 43 | providerTurnId: Schema.optional(TrimmedNonEmptyStringSchema), |
| 44 | 44 | providerItemId: Schema.optional(ProviderItemId), |
| 45 | 45 | providerRequestId: Schema.optional(ProviderRequestId), |
| 46 | 46 | }); |
| 47 | 47 | export type ProviderRefs = typeof ProviderRefs.Type; |
| 48 | 48 | |
| 49 | | −export const RuntimeSessionState = Schema.Literals([ |
| 49 | +const RuntimeSessionState = Schema.Literals([ |
| 50 | 50 | "starting", |
| 51 | 51 | "ready", |
| 52 | 52 | "running", |
| @@ -56,7 +56,7 @@ export const RuntimeSessionState = Schema.Literals([ · 3 unmodified lines |
| 56 | 56 | ]); |
| 57 | 57 | export type RuntimeSessionState = typeof RuntimeSessionState.Type; |
| 58 | 58 | |
| 59 | | −export const RuntimeThreadState = Schema.Literals([ |
| 59 | +const RuntimeThreadState = Schema.Literals([ |
| 60 | 60 | "active", |
| 61 | 61 | "idle", |
| 62 | 62 | "archived", |
| @@ -66,7 +66,7 @@ export const RuntimeThreadState = Schema.Literals([ · 3 unmodified lines |
| 66 | 66 | ]); |
| 67 | 67 | export type RuntimeThreadState = typeof RuntimeThreadState.Type; |
| 68 | 68 | |
| 69 | | −export const RuntimeTurnState = Schema.Literals([ |
| 69 | +const RuntimeTurnState = Schema.Literals([ |
| 70 | 70 | "completed", |
| 71 | 71 | "failed", |
| 72 | 72 | "interrupted", |
| @@ -74,13 +74,13 @@ export const RuntimeTurnState = Schema.Literals([ · 1 unmodified line |
| 74 | 74 | ]); |
| 75 | 75 | export type RuntimeTurnState = typeof RuntimeTurnState.Type; |
| 76 | 76 | |
| 77 | | −export const RuntimePlanStepStatus = Schema.Literals(["pending", "inProgress", "completed"]); |
| 77 | +const RuntimePlanStepStatus = Schema.Literals(["pending", "inProgress", "completed"]); |
| 78 | 78 | export type RuntimePlanStepStatus = typeof RuntimePlanStepStatus.Type; |
| 79 | 79 | |
| 80 | | −export const RuntimeItemStatus = Schema.Literals(["inProgress", "completed", "failed", "declined"]); |
| 80 | +const RuntimeItemStatus = Schema.Literals(["inProgress", "completed", "failed", "declined"]); |
| 81 | 81 | export type RuntimeItemStatus = typeof RuntimeItemStatus.Type; |
| 82 | 82 | |
| 83 | | −export const RuntimeContentStreamKind = Schema.Literals([ |
| 83 | +const RuntimeContentStreamKind = Schema.Literals([ |
| 84 | 84 | "assistant_text", |
| 85 | 85 | "reasoning_text", |
| 86 | 86 | "reasoning_summary_text", |
| @@ -91,10 +91,10 @@ export const RuntimeContentStreamKind = Schema.Literals([ · 4 unmodified lines |
| 91 | 91 | ]); |
| 92 | 92 | export type RuntimeContentStreamKind = typeof RuntimeContentStreamKind.Type; |
| 93 | 93 | |
| 94 | | −export const RuntimeSessionExitKind = Schema.Literals(["graceful", "error"]); |
| 94 | +const RuntimeSessionExitKind = Schema.Literals(["graceful", "error"]); |
| 95 | 95 | export type RuntimeSessionExitKind = typeof RuntimeSessionExitKind.Type; |
| 96 | 96 | |
| 97 | | −export const RuntimeErrorClass = Schema.Literals([ |
| 97 | +const RuntimeErrorClass = Schema.Literals([ |
| 98 | 98 | "provider_error", |
| 99 | 99 | "transport_error", |
| 100 | 100 | "permission_error", |
| @@ -136,7 +136,7 @@ export const CanonicalRequestType = Schema.Literals([ · 35 unmodified lines |
| 136 | 136 | ]); |
| 137 | 137 | export type CanonicalRequestType = typeof CanonicalRequestType.Type; |
| 138 | 138 | |
| 139 | | −export const ProviderRuntimeEventType = Schema.Literals([ |
| 139 | +const ProviderRuntimeEventType = Schema.Literals([ |
| 140 | 140 | "session.started", |
| 141 | 141 | "session.configured", |
| 142 | 142 | "session.state.changed", |
| @@ -187,55 +187,55 @@ export const ProviderRuntimeEventType = Schema.Literals([ · 44 unmodified lines |
| 187 | 187 | ]); |
| 188 | 188 | export type ProviderRuntimeEventType = typeof ProviderRuntimeEventType.Type; |
| 189 | 189 | |
| 190 | | −export const SessionStartedType = Schema.Literal("session.started"); |
| 191 | | −export const SessionConfiguredType = Schema.Literal("session.configured"); |
| 192 | | −export const SessionStateChangedType = Schema.Literal("session.state.changed"); |
| 193 | | −export const SessionExitedType = Schema.Literal("session.exited"); |
| 194 | | −export const ThreadStartedType = Schema.Literal("thread.started"); |
| 195 | | −export const ThreadStateChangedType = Schema.Literal("thread.state.changed"); |
| 196 | | −export const ThreadMetadataUpdatedType = Schema.Literal("thread.metadata.updated"); |
| 197 | | −export const ThreadTokenUsageUpdatedType = Schema.Literal("thread.token-usage.updated"); |
| 198 | | −export const ThreadRealtimeStartedType = Schema.Literal("thread.realtime.started"); |
| 199 | | −export const ThreadRealtimeItemAddedType = Schema.Literal("thread.realtime.item-added"); |
| 200 | | −export const ThreadRealtimeAudioDeltaType = Schema.Literal("thread.realtime.audio.delta"); |
| 201 | | −export const ThreadRealtimeErrorType = Schema.Literal("thread.realtime.error"); |
| 202 | | −export const ThreadRealtimeClosedType = Schema.Literal("thread.realtime.closed"); |
| 203 | | −export const TurnStartedType = Schema.Literal("turn.started"); |
| 204 | | −export const TurnCompletedType = Schema.Literal("turn.completed"); |
| 205 | | −export const TurnAbortedType = Schema.Literal("turn.aborted"); |
| 206 | | −export const TurnPlanUpdatedType = Schema.Literal("turn.plan.updated"); |
| 207 | | −export const TurnProposedDeltaType = Schema.Literal("turn.proposed.delta"); |
| 208 | | −export const TurnProposedCompletedType = Schema.Literal("turn.proposed.completed"); |
| 209 | | −export const TurnDiffUpdatedType = Schema.Literal("turn.diff.updated"); |
| 210 | | −export const ItemStartedType = Schema.Literal("item.started"); |
| 211 | | −export const ItemUpdatedType = Schema.Literal("item.updated"); |
| 212 | | −export const ItemCompletedType = Schema.Literal("item.completed"); |
| 213 | | −export const ContentDeltaType = Schema.Literal("content.delta"); |
| 214 | | −export const RequestOpenedType = Schema.Literal("request.opened"); |
| 215 | | −export const RequestResolvedType = Schema.Literal("request.resolved"); |
| 216 | | −export const UserInputRequestedType = Schema.Literal("user-input.requested"); |
| 217 | | −export const UserInputResolvedType = Schema.Literal("user-input.resolved"); |
| 218 | | −export const TaskStartedType = Schema.Literal("task.started"); |
| 219 | | −export const TaskProgressType = Schema.Literal("task.progress"); |
| 220 | | −export const TaskCompletedType = Schema.Literal("task.completed"); |
| 221 | | −export const HookStartedType = Schema.Literal("hook.started"); |
| 222 | | −export const HookProgressType = Schema.Literal("hook.progress"); |
| 223 | | −export const HookCompletedType = Schema.Literal("hook.completed"); |
| 224 | | −export const ToolProgressType = Schema.Literal("tool.progress"); |
| 225 | | −export const ToolSummaryType = Schema.Literal("tool.summary"); |
| 226 | | −export const AuthStatusType = Schema.Literal("auth.status"); |
| 227 | | −export const AccountUpdatedType = Schema.Literal("account.updated"); |
| 228 | | −export const AccountRateLimitsUpdatedType = Schema.Literal("account.rate-limits.updated"); |
| 229 | | −export const McpStatusUpdatedType = Schema.Literal("mcp.status.updated"); |
| 230 | | −export const McpOauthCompletedType = Schema.Literal("mcp.oauth.completed"); |
| 231 | | −export const ModelReroutedType = Schema.Literal("model.rerouted"); |
| 232 | | −export const ConfigWarningType = Schema.Literal("config.warning"); |
| 233 | | −export const DeprecationNoticeType = Schema.Literal("deprecation.notice"); |
| 234 | | −export const FilesPersistedType = Schema.Literal("files.persisted"); |
| 235 | | −export const RuntimeWarningType = Schema.Literal("runtime.warning"); |
| 236 | | −export const RuntimeErrorType = Schema.Literal("runtime.error"); |
| 237 | | − |
| 238 | | −export const ProviderRuntimeEventBase = Schema.Struct({ |
| 190 | +const SessionStartedType = Schema.Literal("session.started"); |
| 191 | +const SessionConfiguredType = Schema.Literal("session.configured"); |
| 192 | +const SessionStateChangedType = Schema.Literal("session.state.changed"); |
| 193 | +const SessionExitedType = Schema.Literal("session.exited"); |
| 194 | +const ThreadStartedType = Schema.Literal("thread.started"); |
| 195 | +const ThreadStateChangedType = Schema.Literal("thread.state.changed"); |
| 196 | +const ThreadMetadataUpdatedType = Schema.Literal("thread.metadata.updated"); |
| 197 | +const ThreadTokenUsageUpdatedType = Schema.Literal("thread.token-usage.updated"); |
| 198 | +const ThreadRealtimeStartedType = Schema.Literal("thread.realtime.started"); |
| 199 | +const ThreadRealtimeItemAddedType = Schema.Literal("thread.realtime.item-added"); |
| 200 | +const ThreadRealtimeAudioDeltaType = Schema.Literal("thread.realtime.audio.delta"); |
| 201 | +const ThreadRealtimeErrorType = Schema.Literal("thread.realtime.error"); |
| 202 | +const ThreadRealtimeClosedType = Schema.Literal("thread.realtime.closed"); |
| 203 | +const TurnStartedType = Schema.Literal("turn.started"); |
| 204 | +const TurnCompletedType = Schema.Literal("turn.completed"); |
| 205 | +const TurnAbortedType = Schema.Literal("turn.aborted"); |
| 206 | +const TurnPlanUpdatedType = Schema.Literal("turn.plan.updated"); |
| 207 | +const TurnProposedDeltaType = Schema.Literal("turn.proposed.delta"); |
| 208 | +const TurnProposedCompletedType = Schema.Literal("turn.proposed.completed"); |
| 209 | +const TurnDiffUpdatedType = Schema.Literal("turn.diff.updated"); |
| 210 | +const ItemStartedType = Schema.Literal("item.started"); |
| 211 | +const ItemUpdatedType = Schema.Literal("item.updated"); |
| 212 | +const ItemCompletedType = Schema.Literal("item.completed"); |
| 213 | +const ContentDeltaType = Schema.Literal("content.delta"); |
| 214 | +const RequestOpenedType = Schema.Literal("request.opened"); |
| 215 | +const RequestResolvedType = Schema.Literal("request.resolved"); |
| 216 | +const UserInputRequestedType = Schema.Literal("user-input.requested"); |
| 217 | +const UserInputResolvedType = Schema.Literal("user-input.resolved"); |
| 218 | +const TaskStartedType = Schema.Literal("task.started"); |
| 219 | +const TaskProgressType = Schema.Literal("task.progress"); |
| 220 | +const TaskCompletedType = Schema.Literal("task.completed"); |
| 221 | +const HookStartedType = Schema.Literal("hook.started"); |
| 222 | +const HookProgressType = Schema.Literal("hook.progress"); |
| 223 | +const HookCompletedType = Schema.Literal("hook.completed"); |
| 224 | +const ToolProgressType = Schema.Literal("tool.progress"); |
| 225 | +const ToolSummaryType = Schema.Literal("tool.summary"); |
| 226 | +const AuthStatusType = Schema.Literal("auth.status"); |
| 227 | +const AccountUpdatedType = Schema.Literal("account.updated"); |
| 228 | +const AccountRateLimitsUpdatedType = Schema.Literal("account.rate-limits.updated"); |
| 229 | +const McpStatusUpdatedType = Schema.Literal("mcp.status.updated"); |
| 230 | +const McpOauthCompletedType = Schema.Literal("mcp.oauth.completed"); |
| 231 | +const ModelReroutedType = Schema.Literal("model.rerouted"); |
| 232 | +const ConfigWarningType = Schema.Literal("config.warning"); |
| 233 | +const DeprecationNoticeType = Schema.Literal("deprecation.notice"); |
| 234 | +const FilesPersistedType = Schema.Literal("files.persisted"); |
| 235 | +const RuntimeWarningType = Schema.Literal("runtime.warning"); |
| 236 | +const RuntimeErrorType = Schema.Literal("runtime.error"); |
| 237 | + |
| 238 | +const ProviderRuntimeEventBase = Schema.Struct({ |
| 239 | 239 | eventId: EventId, |
| 240 | 240 | provider: ProviderKind, |
| 241 | 241 | threadId: ThreadId, |
| @@ -248,85 +248,85 @@ export const ProviderRuntimeEventBase = Schema.Struct({ · 6 unmodified lines |
| 248 | 248 | }); |
| 249 | 249 | export type ProviderRuntimeEventBase = typeof ProviderRuntimeEventBase.Type; |
| 250 | 250 | |
| 251 | | −export const SessionStartedPayload = Schema.Struct({ |
| 251 | +const SessionStartedPayload = Schema.Struct({ |
| 252 | 252 | message: Schema.optional(TrimmedNonEmptyStringSchema), |
| 253 | 253 | resume: Schema.optional(Schema.Unknown), |
| 254 | 254 | }); |
| 255 | 255 | export type SessionStartedPayload = typeof SessionStartedPayload.Type; |
| 256 | 256 | |
| 257 | | −export const SessionConfiguredPayload = Schema.Struct({ |
| 257 | +const SessionConfiguredPayload = Schema.Struct({ |
| 258 | 258 | config: UnknownRecordSchema, |
| 259 | 259 | }); |
| 260 | 260 | export type SessionConfiguredPayload = typeof SessionConfiguredPayload.Type; |
| 261 | 261 | |
| 262 | | −export const SessionStateChangedPayload = Schema.Struct({ |
| 262 | +const SessionStateChangedPayload = Schema.Struct({ |
| 263 | 263 | state: RuntimeSessionState, |
| 264 | 264 | reason: Schema.optional(TrimmedNonEmptyStringSchema), |
| 265 | 265 | detail: Schema.optional(Schema.Unknown), |
| 266 | 266 | }); |
| 267 | 267 | export type SessionStateChangedPayload = typeof SessionStateChangedPayload.Type; |
| 268 | 268 | |
| 269 | | −export const SessionExitedPayload = Schema.Struct({ |
| 269 | +const SessionExitedPayload = Schema.Struct({ |
| 270 | 270 | reason: Schema.optional(TrimmedNonEmptyStringSchema), |
| 271 | 271 | recoverable: Schema.optional(Schema.Boolean), |
| 272 | 272 | exitKind: Schema.optional(RuntimeSessionExitKind), |
| 273 | 273 | }); |
| 274 | 274 | export type SessionExitedPayload = typeof SessionExitedPayload.Type; |
| 275 | 275 | |
| 276 | | −export const ThreadStartedPayload = Schema.Struct({ |
| 276 | +const ThreadStartedPayload = Schema.Struct({ |
| 277 | 277 | providerThreadId: Schema.optional(TrimmedNonEmptyStringSchema), |
| 278 | 278 | }); |
| 279 | 279 | export type ThreadStartedPayload = typeof ThreadStartedPayload.Type; |
| 280 | 280 | |
| 281 | | −export const ThreadStateChangedPayload = Schema.Struct({ |
| 281 | +const ThreadStateChangedPayload = Schema.Struct({ |
| 282 | 282 | state: RuntimeThreadState, |
| 283 | 283 | detail: Schema.optional(Schema.Unknown), |
| 284 | 284 | }); |
| 285 | 285 | export type ThreadStateChangedPayload = typeof ThreadStateChangedPayload.Type; |
| 286 | 286 | |
| 287 | | −export const ThreadMetadataUpdatedPayload = Schema.Struct({ |
| 287 | +const ThreadMetadataUpdatedPayload = Schema.Struct({ |
| 288 | 288 | name: Schema.optional(TrimmedNonEmptyStringSchema), |
| 289 | 289 | metadata: Schema.optional(UnknownRecordSchema), |
| 290 | 290 | }); |
| 291 | 291 | export type ThreadMetadataUpdatedPayload = typeof ThreadMetadataUpdatedPayload.Type; |
| 292 | 292 | |
| 293 | | −export const ThreadTokenUsageUpdatedPayload = Schema.Struct({ |
| 293 | +const ThreadTokenUsageUpdatedPayload = Schema.Struct({ |
| 294 | 294 | usage: Schema.Unknown, |
| 295 | 295 | }); |
| 296 | 296 | export type ThreadTokenUsageUpdatedPayload = typeof ThreadTokenUsageUpdatedPayload.Type; |
| 297 | 297 | |
| 298 | | −export const ThreadRealtimeStartedPayload = Schema.Struct({ |
| 298 | +const ThreadRealtimeStartedPayload = Schema.Struct({ |
| 299 | 299 | realtimeSessionId: Schema.optional(TrimmedNonEmptyStringSchema), |
| 300 | 300 | }); |
| 301 | 301 | export type ThreadRealtimeStartedPayload = typeof ThreadRealtimeStartedPayload.Type; |
| 302 | 302 | |
| 303 | | −export const ThreadRealtimeItemAddedPayload = Schema.Struct({ |
| 303 | +const ThreadRealtimeItemAddedPayload = Schema.Struct({ |
| 304 | 304 | item: Schema.Unknown, |
| 305 | 305 | }); |
| 306 | 306 | export type ThreadRealtimeItemAddedPayload = typeof ThreadRealtimeItemAddedPayload.Type; |
| 307 | 307 | |
| 308 | | −export const ThreadRealtimeAudioDeltaPayload = Schema.Struct({ |
| 308 | +const ThreadRealtimeAudioDeltaPayload = Schema.Struct({ |
| 309 | 309 | audio: Schema.Unknown, |
| 310 | 310 | }); |
| 311 | 311 | export type ThreadRealtimeAudioDeltaPayload = typeof ThreadRealtimeAudioDeltaPayload.Type; |
| 312 | 312 | |
| 313 | | −export const ThreadRealtimeErrorPayload = Schema.Struct({ |
| 313 | +const ThreadRealtimeErrorPayload = Schema.Struct({ |
| 314 | 314 | message: TrimmedNonEmptyStringSchema, |
| 315 | 315 | }); |
| 316 | 316 | export type ThreadRealtimeErrorPayload = typeof ThreadRealtimeErrorPayload.Type; |
| 317 | 317 | |
| 318 | | −export const ThreadRealtimeClosedPayload = Schema.Struct({ |
| 318 | +const ThreadRealtimeClosedPayload = Schema.Struct({ |
| 319 | 319 | reason: Schema.optional(TrimmedNonEmptyStringSchema), |
| 320 | 320 | }); |
| 321 | 321 | export type ThreadRealtimeClosedPayload = typeof ThreadRealtimeClosedPayload.Type; |
| 322 | 322 | |
| 323 | | −export const TurnStartedPayload = Schema.Struct({ |
| 323 | +const TurnStartedPayload = Schema.Struct({ |
| 324 | 324 | model: Schema.optional(TrimmedNonEmptyStringSchema), |
| 325 | 325 | effort: Schema.optional(TrimmedNonEmptyStringSchema), |
| 326 | 326 | }); |
| 327 | 327 | export type TurnStartedPayload = typeof TurnStartedPayload.Type; |
| 328 | 328 | |
| 329 | | −export const TurnCompletedPayload = Schema.Struct({ |
| 329 | +const TurnCompletedPayload = Schema.Struct({ |
| 330 | 330 | state: RuntimeTurnState, |
| 331 | 331 | stopReason: Schema.optional(Schema.NullOr(TrimmedNonEmptyStringSchema)), |
| 332 | 332 | usage: Schema.optional(Schema.Unknown), |
| @@ -336,34 +336,34 @@ export const TurnCompletedPayload = Schema.Struct({ · 3 unmodified lines |
| 336 | 336 | }); |
| 337 | 337 | export type TurnCompletedPayload = typeof TurnCompletedPayload.Type; |
| 338 | 338 | |
| 339 | | −export const TurnAbortedPayload = Schema.Struct({ |
| 339 | +const TurnAbortedPayload = Schema.Struct({ |
| 340 | 340 | reason: TrimmedNonEmptyStringSchema, |
| 341 | 341 | }); |
| 342 | 342 | export type TurnAbortedPayload = typeof TurnAbortedPayload.Type; |
| 343 | 343 | |
| 344 | | −export const RuntimePlanStep = Schema.Struct({ |
| 344 | +const RuntimePlanStep = Schema.Struct({ |
| 345 | 345 | step: TrimmedNonEmptyStringSchema, |
| 346 | 346 | status: RuntimePlanStepStatus, |
| 347 | 347 | }); |
| 348 | 348 | export type RuntimePlanStep = typeof RuntimePlanStep.Type; |
| 349 | 349 | |
| 350 | | −export const TurnPlanUpdatedPayload = Schema.Struct({ |
| 350 | +const TurnPlanUpdatedPayload = Schema.Struct({ |
| 351 | 351 | explanation: Schema.optional(Schema.NullOr(TrimmedNonEmptyStringSchema)), |
| 352 | 352 | plan: Schema.Array(RuntimePlanStep), |
| 353 | 353 | }); |
| 354 | 354 | export type TurnPlanUpdatedPayload = typeof TurnPlanUpdatedPayload.Type; |
| 355 | 355 | |
| 356 | | −export const TurnProposedDeltaPayload = Schema.Struct({ |
| 356 | +const TurnProposedDeltaPayload = Schema.Struct({ |
| 357 | 357 | delta: Schema.String, |
| 358 | 358 | }); |
| 359 | 359 | export type TurnProposedDeltaPayload = typeof TurnProposedDeltaPayload.Type; |
| 360 | 360 | |
| 361 | | −export const TurnProposedCompletedPayload = Schema.Struct({ |
| 361 | +const TurnProposedCompletedPayload = Schema.Struct({ |
| 362 | 362 | planMarkdown: TrimmedNonEmptyStringSchema, |
| 363 | 363 | }); |
| 364 | 364 | export type TurnProposedCompletedPayload = typeof TurnProposedCompletedPayload.Type; |
| 365 | 365 | |
| 366 | | −export const TurnDiffUpdatedPayload = Schema.Struct({ |
| 366 | +const TurnDiffUpdatedPayload = Schema.Struct({ |
| 367 | 367 | unifiedDiff: Schema.String, |
| 368 | 368 | }); |
| 369 | 369 | export type TurnDiffUpdatedPayload = typeof TurnDiffUpdatedPayload.Type; |
| @@ -377,7 +377,7 @@ export const ItemLifecyclePayload = Schema.Struct({ · 7 unmodified lines |
| 377 | 377 | }); |
| 378 | 378 | export type ItemLifecyclePayload = typeof ItemLifecyclePayload.Type; |
| 379 | 379 | |
| 380 | | −export const ContentDeltaPayload = Schema.Struct({ |
| 380 | +const ContentDeltaPayload = Schema.Struct({ |
| 381 | 381 | streamKind: RuntimeContentStreamKind, |
| 382 | 382 | delta: Schema.String, |
| 383 | 383 | contentIndex: Schema.optional(Schema.Int), |
| @@ -385,21 +385,21 @@ export const ContentDeltaPayload = Schema.Struct({ · 1 unmodified line |
| 385 | 385 | }); |
| 386 | 386 | export type ContentDeltaPayload = typeof ContentDeltaPayload.Type; |
| 387 | 387 | |
| 388 | | −export const RequestOpenedPayload = Schema.Struct({ |
| 388 | +const RequestOpenedPayload = Schema.Struct({ |
| 389 | 389 | requestType: CanonicalRequestType, |
| 390 | 390 | detail: Schema.optional(TrimmedNonEmptyStringSchema), |
| 391 | 391 | args: Schema.optional(Schema.Unknown), |
| 392 | 392 | }); |
| 393 | 393 | export type RequestOpenedPayload = typeof RequestOpenedPayload.Type; |
| 394 | 394 | |
| 395 | | −export const RequestResolvedPayload = Schema.Struct({ |
| 395 | +const RequestResolvedPayload = Schema.Struct({ |
| 396 | 396 | requestType: CanonicalRequestType, |
| 397 | 397 | decision: Schema.optional(TrimmedNonEmptyStringSchema), |
| 398 | 398 | resolution: Schema.optional(Schema.Unknown), |
| 399 | 399 | }); |
| 400 | 400 | export type RequestResolvedPayload = typeof RequestResolvedPayload.Type; |
| 401 | 401 | |
| 402 | | −export const UserInputQuestionOption = Schema.Struct({ |
| 402 | +const UserInputQuestionOption = Schema.Struct({ |
| 403 | 403 | label: TrimmedNonEmptyStringSchema, |
| 404 | 404 | description: TrimmedNonEmptyStringSchema, |
| 405 | 405 | }); |
| @@ -413,24 +413,24 @@ export const UserInputQuestion = Schema.Struct({ · 7 unmodified lines |
| 413 | 413 | }); |
| 414 | 414 | export type UserInputQuestion = typeof UserInputQuestion.Type; |
| 415 | 415 | |
| 416 | | −export const UserInputRequestedPayload = Schema.Struct({ |
| 416 | +const UserInputRequestedPayload = Schema.Struct({ |
| 417 | 417 | questions: Schema.Array(UserInputQuestion), |
| 418 | 418 | }); |
| 419 | 419 | export type UserInputRequestedPayload = typeof UserInputRequestedPayload.Type; |
| 420 | 420 | |
| 421 | | −export const UserInputResolvedPayload = Schema.Struct({ |
| 421 | +const UserInputResolvedPayload = Schema.Struct({ |
| 422 | 422 | answers: UnknownRecordSchema, |
| 423 | 423 | }); |
| 424 | 424 | export type UserInputResolvedPayload = typeof UserInputResolvedPayload.Type; |
| 425 | 425 | |
| 426 | | −export const TaskStartedPayload = Schema.Struct({ |
| 426 | +const TaskStartedPayload = Schema.Struct({ |
| 427 | 427 | taskId: RuntimeTaskId, |
| 428 | 428 | description: Schema.optional(TrimmedNonEmptyStringSchema), |
| 429 | 429 | taskType: Schema.optional(TrimmedNonEmptyStringSchema), |
| 430 | 430 | }); |
| 431 | 431 | export type TaskStartedPayload = typeof TaskStartedPayload.Type; |
| 432 | 432 | |
| 433 | | −export const TaskProgressPayload = Schema.Struct({ |
| 433 | +const TaskProgressPayload = Schema.Struct({ |
| 434 | 434 | taskId: RuntimeTaskId, |
| 435 | 435 | description: TrimmedNonEmptyStringSchema, |
| 436 | 436 | usage: Schema.optional(Schema.Unknown), |
| @@ -438,7 +438,7 @@ export const TaskProgressPayload = Schema.Struct({ · 1 unmodified line |
| 438 | 438 | }); |
| 439 | 439 | export type TaskProgressPayload = typeof TaskProgressPayload.Type; |
| 440 | 440 | |
| 441 | | −export const TaskCompletedPayload = Schema.Struct({ |
| 441 | +const TaskCompletedPayload = Schema.Struct({ |
| 442 | 442 | taskId: RuntimeTaskId, |
| 443 | 443 | status: Schema.Literals(["completed", "failed", "stopped"]), |
| 444 | 444 | summary: Schema.optional(TrimmedNonEmptyStringSchema), |
| @@ -446,14 +446,14 @@ export const TaskCompletedPayload = Schema.Struct({ · 1 unmodified line |
| 446 | 446 | }); |
| 447 | 447 | export type TaskCompletedPayload = typeof TaskCompletedPayload.Type; |
| 448 | 448 | |
| 449 | | −export const HookStartedPayload = Schema.Struct({ |
| 449 | +const HookStartedPayload = Schema.Struct({ |
| 450 | 450 | hookId: TrimmedNonEmptyStringSchema, |
| 451 | 451 | hookName: TrimmedNonEmptyStringSchema, |
| 452 | 452 | hookEvent: TrimmedNonEmptyStringSchema, |
| 453 | 453 | }); |
| 454 | 454 | export type HookStartedPayload = typeof HookStartedPayload.Type; |
| 455 | 455 | |
| 456 | | −export const HookProgressPayload = Schema.Struct({ |
| 456 | +const HookProgressPayload = Schema.Struct({ |
| 457 | 457 | hookId: TrimmedNonEmptyStringSchema, |
| 458 | 458 | output: Schema.optional(Schema.String), |
| 459 | 459 | stdout: Schema.optional(Schema.String), |
| @@ -461,7 +461,7 @@ export const HookProgressPayload = Schema.Struct({ · 1 unmodified line |
| 461 | 461 | }); |
| 462 | 462 | export type HookProgressPayload = typeof HookProgressPayload.Type; |
| 463 | 463 | |
| 464 | | −export const HookCompletedPayload = Schema.Struct({ |
| 464 | +const HookCompletedPayload = Schema.Struct({ |
| 465 | 465 | hookId: TrimmedNonEmptyStringSchema, |
| 466 | 466 | outcome: Schema.Literals(["success", "error", "cancelled"]), |
| 467 | 467 | output: Schema.optional(Schema.String), |
| @@ -471,7 +471,7 @@ export const HookCompletedPayload = Schema.Struct({ · 3 unmodified lines |
| 471 | 471 | }); |
| 472 | 472 | export type HookCompletedPayload = typeof HookCompletedPayload.Type; |
| 473 | 473 | |
| 474 | | −export const ToolProgressPayload = Schema.Struct({ |
| 474 | +const ToolProgressPayload = Schema.Struct({ |
| 475 | 475 | toolUseId: Schema.optional(TrimmedNonEmptyStringSchema), |
| 476 | 476 | toolName: Schema.optional(TrimmedNonEmptyStringSchema), |
| 477 | 477 | summary: Schema.optional(TrimmedNonEmptyStringSchema), |
| @@ -479,49 +479,49 @@ export const ToolProgressPayload = Schema.Struct({ · 1 unmodified line |
| 479 | 479 | }); |
| 480 | 480 | export type ToolProgressPayload = typeof ToolProgressPayload.Type; |
| 481 | 481 | |
| 482 | | −export const ToolSummaryPayload = Schema.Struct({ |
| 482 | +const ToolSummaryPayload = Schema.Struct({ |
| 483 | 483 | summary: TrimmedNonEmptyStringSchema, |
| 484 | 484 | precedingToolUseIds: Schema.optional(Schema.Array(TrimmedNonEmptyStringSchema)), |
| 485 | 485 | }); |
| 486 | 486 | export type ToolSummaryPayload = typeof ToolSummaryPayload.Type; |
| 487 | 487 | |
| 488 | | −export const AuthStatusPayload = Schema.Struct({ |
| 488 | +const AuthStatusPayload = Schema.Struct({ |
| 489 | 489 | isAuthenticating: Schema.optional(Schema.Boolean), |
| 490 | 490 | output: Schema.optional(Schema.Array(Schema.String)), |
| 491 | 491 | error: Schema.optional(TrimmedNonEmptyStringSchema), |
| 492 | 492 | }); |
| 493 | 493 | export type AuthStatusPayload = typeof AuthStatusPayload.Type; |
| 494 | 494 | |
| 495 | | −export const AccountUpdatedPayload = Schema.Struct({ |
| 495 | +const AccountUpdatedPayload = Schema.Struct({ |
| 496 | 496 | account: Schema.Unknown, |
| 497 | 497 | }); |
| 498 | 498 | export type AccountUpdatedPayload = typeof AccountUpdatedPayload.Type; |
| 499 | 499 | |
| 500 | | −export const AccountRateLimitsUpdatedPayload = Schema.Struct({ |
| 500 | +const AccountRateLimitsUpdatedPayload = Schema.Struct({ |
| 501 | 501 | rateLimits: Schema.Unknown, |
| 502 | 502 | }); |
| 503 | 503 | export type AccountRateLimitsUpdatedPayload = typeof AccountRateLimitsUpdatedPayload.Type; |
| 504 | 504 | |
| 505 | | −export const McpStatusUpdatedPayload = Schema.Struct({ |
| 505 | +const McpStatusUpdatedPayload = Schema.Struct({ |
| 506 | 506 | status: Schema.Unknown, |
| 507 | 507 | }); |
| 508 | 508 | export type McpStatusUpdatedPayload = typeof McpStatusUpdatedPayload.Type; |
| 509 | 509 | |
| 510 | | −export const McpOauthCompletedPayload = Schema.Struct({ |
| 510 | +const McpOauthCompletedPayload = Schema.Struct({ |
| 511 | 511 | success: Schema.Boolean, |
| 512 | 512 | name: Schema.optional(TrimmedNonEmptyStringSchema), |
| 513 | 513 | error: Schema.optional(TrimmedNonEmptyStringSchema), |
| 514 | 514 | }); |
| 515 | 515 | export type McpOauthCompletedPayload = typeof McpOauthCompletedPayload.Type; |
| 516 | 516 | |
| 517 | | −export const ModelReroutedPayload = Schema.Struct({ |
| 517 | +const ModelReroutedPayload = Schema.Struct({ |
| 518 | 518 | fromModel: TrimmedNonEmptyStringSchema, |
| 519 | 519 | toModel: TrimmedNonEmptyStringSchema, |
| 520 | 520 | reason: TrimmedNonEmptyStringSchema, |
| 521 | 521 | }); |
| 522 | 522 | export type ModelReroutedPayload = typeof ModelReroutedPayload.Type; |
| 523 | 523 | |
| 524 | | −export const ConfigWarningPayload = Schema.Struct({ |
| 524 | +const ConfigWarningPayload = Schema.Struct({ |
| 525 | 525 | summary: TrimmedNonEmptyStringSchema, |
| 526 | 526 | details: Schema.optional(TrimmedNonEmptyStringSchema), |
| 527 | 527 | path: Schema.optional(TrimmedNonEmptyStringSchema), |
| @@ -529,13 +529,13 @@ export const ConfigWarningPayload = Schema.Struct({ · 1 unmodified line |
| 529 | 529 | }); |
| 530 | 530 | export type ConfigWarningPayload = typeof ConfigWarningPayload.Type; |
| 531 | 531 | |
| 532 | | −export const DeprecationNoticePayload = Schema.Struct({ |
| 532 | +const DeprecationNoticePayload = Schema.Struct({ |
| 533 | 533 | summary: TrimmedNonEmptyStringSchema, |
| 534 | 534 | details: Schema.optional(TrimmedNonEmptyStringSchema), |
| 535 | 535 | }); |
| 536 | 536 | export type DeprecationNoticePayload = typeof DeprecationNoticePayload.Type; |
| 537 | 537 | |
| 538 | | −export const FilesPersistedPayload = Schema.Struct({ |
| 538 | +const FilesPersistedPayload = Schema.Struct({ |
| 539 | 539 | files: Schema.Array( |
| 540 | 540 | Schema.Struct({ |
| 541 | 541 | filename: TrimmedNonEmptyStringSchema, |
| @@ -553,69 +553,69 @@ export const FilesPersistedPayload = Schema.Struct({ · 11 unmodified lines |
| 553 | 553 | }); |
| 554 | 554 | export type FilesPersistedPayload = typeof FilesPersistedPayload.Type; |
| 555 | 555 | |
| 556 | | −export const RuntimeWarningPayload = Schema.Struct({ |
| 556 | +const RuntimeWarningPayload = Schema.Struct({ |
| 557 | 557 | message: TrimmedNonEmptyStringSchema, |
| 558 | 558 | detail: Schema.optional(Schema.Unknown), |
| 559 | 559 | }); |
| 560 | 560 | export type RuntimeWarningPayload = typeof RuntimeWarningPayload.Type; |
| 561 | 561 | |
| 562 | | −export const RuntimeErrorPayload = Schema.Struct({ |
| 562 | +const RuntimeErrorPayload = Schema.Struct({ |
| 563 | 563 | message: TrimmedNonEmptyStringSchema, |
| 564 | 564 | class: Schema.optional(RuntimeErrorClass), |
| 565 | 565 | detail: Schema.optional(Schema.Unknown), |
| 566 | 566 | }); |
| 567 | 567 | export type RuntimeErrorPayload = typeof RuntimeErrorPayload.Type; |
| 568 | 568 | |
| 569 | | −export const ProviderRuntimeSessionStartedEvent = Schema.Struct({ |
| 569 | +const ProviderRuntimeSessionStartedEvent = Schema.Struct({ |
| 570 | 570 | ...ProviderRuntimeEventBase.fields, |
| 571 | 571 | type: SessionStartedType, |
| 572 | 572 | payload: SessionStartedPayload, |
| 573 | 573 | }); |
| 574 | 574 | export type ProviderRuntimeSessionStartedEvent = typeof ProviderRuntimeSessionStartedEvent.Type; |
| 575 | 575 | |
| 576 | | −export const ProviderRuntimeSessionConfiguredEvent = Schema.Struct({ |
| 576 | +const ProviderRuntimeSessionConfiguredEvent = Schema.Struct({ |
| 577 | 577 | ...ProviderRuntimeEventBase.fields, |
| 578 | 578 | type: SessionConfiguredType, |
| 579 | 579 | payload: SessionConfiguredPayload, |
| 580 | 580 | }); |
| 581 | 581 | export type ProviderRuntimeSessionConfiguredEvent = typeof ProviderRuntimeSessionConfiguredEvent.Type; |
| 582 | 582 | |
| 583 | | −export const ProviderRuntimeSessionStateChangedEvent = Schema.Struct({ |
| 583 | +const ProviderRuntimeSessionStateChangedEvent = Schema.Struct({ |
| 584 | 584 | ...ProviderRuntimeEventBase.fields, |
| 585 | 585 | type: SessionStateChangedType, |
| 586 | 586 | payload: SessionStateChangedPayload, |
| 587 | 587 | }); |
| 588 | 588 | export type ProviderRuntimeSessionStateChangedEvent = typeof ProviderRuntimeSessionStateChangedEvent.Type; |
| 589 | 589 | |
| 590 | | −export const ProviderRuntimeSessionExitedEvent = Schema.Struct({ |
| 590 | +const ProviderRuntimeSessionExitedEvent = Schema.Struct({ |
| 591 | 591 | ...ProviderRuntimeEventBase.fields, |
| 592 | 592 | type: SessionExitedType, |
| 593 | 593 | payload: SessionExitedPayload, |
| 594 | 594 | }); |
| 595 | 595 | export type ProviderRuntimeSessionExitedEvent = typeof ProviderRuntimeSessionExitedEvent.Type; |
| 596 | 596 | |
| 597 | | −export const ProviderRuntimeThreadStartedEvent = Schema.Struct({ |
| 597 | +const ProviderRuntimeThreadStartedEvent = Schema.Struct({ |
| 598 | 598 | ...ProviderRuntimeEventBase.fields, |
| 599 | 599 | type: ThreadStartedType, |
| 600 | 600 | payload: ThreadStartedPayload, |
| 601 | 601 | }); |
| 602 | 602 | export type ProviderRuntimeThreadStartedEvent = typeof ProviderRuntimeThreadStartedEvent.Type; |
| 603 | 603 | |
| 604 | | −export const ProviderRuntimeThreadStateChangedEvent = Schema.Struct({ |
| 604 | +const ProviderRuntimeThreadStateChangedEvent = Schema.Struct({ |
| 605 | 605 | ...ProviderRuntimeEventBase.fields, |
| 606 | 606 | type: ThreadStateChangedType, |
| 607 | 607 | payload: ThreadStateChangedPayload, |
| 608 | 608 | }); |
| 609 | 609 | export type ProviderRuntimeThreadStateChangedEvent = typeof ProviderRuntimeThreadStateChangedEvent.Type; |
| 610 | 610 | |
| 611 | | −export const ProviderRuntimeThreadMetadataUpdatedEvent = Schema.Struct({ |
| 611 | +const ProviderRuntimeThreadMetadataUpdatedEvent = Schema.Struct({ |
| 612 | 612 | ...ProviderRuntimeEventBase.fields, |
| 613 | 613 | type: ThreadMetadataUpdatedType, |
| 614 | 614 | payload: ThreadMetadataUpdatedPayload, |
| 615 | 615 | }); |
| 616 | 616 | export type ProviderRuntimeThreadMetadataUpdatedEvent = typeof ProviderRuntimeThreadMetadataUpdatedEvent.Type; |
| 617 | 617 | |
| 618 | | −export const ProviderRuntimeThreadTokenUsageUpdatedEvent = Schema.Struct({ |
| 618 | +const ProviderRuntimeThreadTokenUsageUpdatedEvent = Schema.Struct({ |
| 619 | 619 | ...ProviderRuntimeEventBase.fields, |
| 620 | 620 | type: ThreadTokenUsageUpdatedType, |
| 621 | 621 | payload: ThreadTokenUsageUpdatedPayload, |
| @@ -623,7 +623,7 @@ export const ProviderRuntimeThreadTokenUsageUpdatedEvent = Schema.Struct({ · 1 unmodified line |
| 623 | 623 | export type ProviderRuntimeThreadTokenUsageUpdatedEvent = |
| 624 | 624 | typeof ProviderRuntimeThreadTokenUsageUpdatedEvent.Type; |
| 625 | 625 | |
| 626 | | −export const ProviderRuntimeThreadRealtimeStartedEvent = Schema.Struct({ |
| 626 | +const ProviderRuntimeThreadRealtimeStartedEvent = Schema.Struct({ |
| 627 | 627 | ...ProviderRuntimeEventBase.fields, |
| 628 | 628 | type: ThreadRealtimeStartedType, |
| 629 | 629 | payload: ThreadRealtimeStartedPayload, |
| @@ -631,7 +631,7 @@ export const ProviderRuntimeThreadRealtimeStartedEvent = Schema.Struct({ · 1 unmodified line |
| 631 | 631 | export type ProviderRuntimeThreadRealtimeStartedEvent = |
| 632 | 632 | typeof ProviderRuntimeThreadRealtimeStartedEvent.Type; |
| 633 | 633 | |
| 634 | | −export const ProviderRuntimeThreadRealtimeItemAddedEvent = Schema.Struct({ |
| 634 | +const ProviderRuntimeThreadRealtimeItemAddedEvent = Schema.Struct({ |
| 635 | 635 | ...ProviderRuntimeEventBase.fields, |
| 636 | 636 | type: ThreadRealtimeItemAddedType, |
| 637 | 637 | payload: ThreadRealtimeItemAddedPayload, |
| @@ -639,7 +639,7 @@ export const ProviderRuntimeThreadRealtimeItemAddedEvent = Schema.Struct({ · 1 unmodified line |
| 639 | 639 | export type ProviderRuntimeThreadRealtimeItemAddedEvent = |
| 640 | 640 | typeof ProviderRuntimeThreadRealtimeItemAddedEvent.Type; |
| 641 | 641 | |
| 642 | | −export const ProviderRuntimeThreadRealtimeAudioDeltaEvent = Schema.Struct({ |
| 642 | +const ProviderRuntimeThreadRealtimeAudioDeltaEvent = Schema.Struct({ |
| 643 | 643 | ...ProviderRuntimeEventBase.fields, |
| 644 | 644 | type: ThreadRealtimeAudioDeltaType, |
| 645 | 645 | payload: ThreadRealtimeAudioDeltaPayload, |
| @@ -647,7 +647,7 @@ export const ProviderRuntimeThreadRealtimeAudioDeltaEvent = Schema.Struct({ · 1 unmodified line |
| 647 | 647 | export type ProviderRuntimeThreadRealtimeAudioDeltaEvent = |
| 648 | 648 | typeof ProviderRuntimeThreadRealtimeAudioDeltaEvent.Type; |
| 649 | 649 | |
| 650 | | −export const ProviderRuntimeThreadRealtimeErrorEvent = Schema.Struct({ |
| 650 | +const ProviderRuntimeThreadRealtimeErrorEvent = Schema.Struct({ |
| 651 | 651 | ...ProviderRuntimeEventBase.fields, |
| 652 | 652 | type: ThreadRealtimeErrorType, |
| 653 | 653 | payload: ThreadRealtimeErrorPayload, |
| @@ -655,7 +655,7 @@ export const ProviderRuntimeThreadRealtimeErrorEvent = Schema.Struct({ · 1 unmodified line |
| 655 | 655 | export type ProviderRuntimeThreadRealtimeErrorEvent = |
| 656 | 656 | typeof ProviderRuntimeThreadRealtimeErrorEvent.Type; |
| 657 | 657 | |
| 658 | | −export const ProviderRuntimeThreadRealtimeClosedEvent = Schema.Struct({ |
| 658 | +const ProviderRuntimeThreadRealtimeClosedEvent = Schema.Struct({ |
| 659 | 659 | ...ProviderRuntimeEventBase.fields, |
| 660 | 660 | type: ThreadRealtimeClosedType, |
| 661 | 661 | payload: ThreadRealtimeClosedPayload, |
| @@ -663,35 +663,35 @@ export const ProviderRuntimeThreadRealtimeClosedEvent = Schema.Struct({ · 1 unmodified line |
| 663 | 663 | export type ProviderRuntimeThreadRealtimeClosedEvent = |
| 664 | 664 | typeof ProviderRuntimeThreadRealtimeClosedEvent.Type; |
| 665 | 665 | |
| 666 | | −export const ProviderRuntimeTurnStartedEvent = Schema.Struct({ |
| 666 | +const ProviderRuntimeTurnStartedEvent = Schema.Struct({ |
| 667 | 667 | ...ProviderRuntimeEventBase.fields, |
| 668 | 668 | type: TurnStartedType, |
| 669 | 669 | payload: TurnStartedPayload, |
| 670 | 670 | }); |
| 671 | 671 | export type ProviderRuntimeTurnStartedEvent = typeof ProviderRuntimeTurnStartedEvent.Type; |
| 672 | 672 | |
| 673 | | −export const ProviderRuntimeTurnCompletedEvent = Schema.Struct({ |
| 673 | +const ProviderRuntimeTurnCompletedEvent = Schema.Struct({ |
| 674 | 674 | ...ProviderRuntimeEventBase.fields, |
| 675 | 675 | type: TurnCompletedType, |
| 676 | 676 | payload: TurnCompletedPayload, |
| 677 | 677 | }); |
| 678 | 678 | export type ProviderRuntimeTurnCompletedEvent = typeof ProviderRuntimeTurnCompletedEvent.Type; |
| 679 | 679 | |
| 680 | | −export const ProviderRuntimeTurnAbortedEvent = Schema.Struct({ |
| 680 | +const ProviderRuntimeTurnAbortedEvent = Schema.Struct({ |
| 681 | 681 | ...ProviderRuntimeEventBase.fields, |
| 682 | 682 | type: TurnAbortedType, |
| 683 | 683 | payload: TurnAbortedPayload, |
| 684 | 684 | }); |
| 685 | 685 | export type ProviderRuntimeTurnAbortedEvent = typeof ProviderRuntimeTurnAbortedEvent.Type; |
| 686 | 686 | |
| 687 | | −export const ProviderRuntimeTurnPlanUpdatedEvent = Schema.Struct({ |
| 687 | +const ProviderRuntimeTurnPlanUpdatedEvent = Schema.Struct({ |
| 688 | 688 | ...ProviderRuntimeEventBase.fields, |
| 689 | 689 | type: TurnPlanUpdatedType, |
| 690 | 690 | payload: TurnPlanUpdatedPayload, |
| 691 | 691 | }); |
| 692 | 692 | export type ProviderRuntimeTurnPlanUpdatedEvent = typeof ProviderRuntimeTurnPlanUpdatedEvent.Type; |
| 693 | 693 | |
| 694 | | −export const ProviderRuntimeTurnProposedDeltaEvent = Schema.Struct({ |
| 694 | +const ProviderRuntimeTurnProposedDeltaEvent = Schema.Struct({ |
| 695 | 695 | ...ProviderRuntimeEventBase.fields, |
| 696 | 696 | type: TurnProposedDeltaType, |
| 697 | 697 | payload: TurnProposedDeltaPayload, |
| @@ -699,7 +699,7 @@ export const ProviderRuntimeTurnProposedDeltaEvent = Schema.Struct({ · 1 unmodified line |
| 699 | 699 | export type ProviderRuntimeTurnProposedDeltaEvent = |
| 700 | 700 | typeof ProviderRuntimeTurnProposedDeltaEvent.Type; |
| 701 | 701 | |
| 702 | | −export const ProviderRuntimeTurnProposedCompletedEvent = Schema.Struct({ |
| 702 | +const ProviderRuntimeTurnProposedCompletedEvent = Schema.Struct({ |
| 703 | 703 | ...ProviderRuntimeEventBase.fields, |
| 704 | 704 | type: TurnProposedCompletedType, |
| 705 | 705 | payload: TurnProposedCompletedPayload, |
| @@ -707,56 +707,56 @@ export const ProviderRuntimeTurnProposedCompletedEvent = Schema.Struct({ · 1 unmodified line |
| 707 | 707 | export type ProviderRuntimeTurnProposedCompletedEvent = |
| 708 | 708 | typeof ProviderRuntimeTurnProposedCompletedEvent.Type; |
| 709 | 709 | |
| 710 | | −export const ProviderRuntimeTurnDiffUpdatedEvent = Schema.Struct({ |
| 710 | +const ProviderRuntimeTurnDiffUpdatedEvent = Schema.Struct({ |
| 711 | 711 | ...ProviderRuntimeEventBase.fields, |
| 712 | 712 | type: TurnDiffUpdatedType, |
| 713 | 713 | payload: TurnDiffUpdatedPayload, |
| 714 | 714 | }); |
| 715 | 715 | export type ProviderRuntimeTurnDiffUpdatedEvent = typeof ProviderRuntimeTurnDiffUpdatedEvent.Type; |
| 716 | 716 | |
| 717 | | −export const ProviderRuntimeItemStartedEvent = Schema.Struct({ |
| 717 | +const ProviderRuntimeItemStartedEvent = Schema.Struct({ |
| 718 | 718 | ...ProviderRuntimeEventBase.fields, |
| 719 | 719 | type: ItemStartedType, |
| 720 | 720 | payload: ItemLifecyclePayload, |
| 721 | 721 | }); |
| 722 | 722 | export type ProviderRuntimeItemStartedEvent = typeof ProviderRuntimeItemStartedEvent.Type; |
| 723 | 723 | |
| 724 | | −export const ProviderRuntimeItemUpdatedEvent = Schema.Struct({ |
| 724 | +const ProviderRuntimeItemUpdatedEvent = Schema.Struct({ |
| 725 | 725 | ...ProviderRuntimeEventBase.fields, |
| 726 | 726 | type: ItemUpdatedType, |
| 727 | 727 | payload: ItemLifecyclePayload, |
| 728 | 728 | }); |
| 729 | 729 | export type ProviderRuntimeItemUpdatedEvent = typeof ProviderRuntimeItemUpdatedEvent.Type; |
| 730 | 730 | |
| 731 | | −export const ProviderRuntimeItemCompletedEvent = Schema.Struct({ |
| 731 | +const ProviderRuntimeItemCompletedEvent = Schema.Struct({ |
| 732 | 732 | ...ProviderRuntimeEventBase.fields, |
| 733 | 733 | type: ItemCompletedType, |
| 734 | 734 | payload: ItemLifecyclePayload, |
| 735 | 735 | }); |
| 736 | 736 | export type ProviderRuntimeItemCompletedEvent = typeof ProviderRuntimeItemCompletedEvent.Type; |
| 737 | 737 | |
| 738 | | −export const ProviderRuntimeContentDeltaEvent = Schema.Struct({ |
| 738 | +const ProviderRuntimeContentDeltaEvent = Schema.Struct({ |
| 739 | 739 | ...ProviderRuntimeEventBase.fields, |
| 740 | 740 | type: ContentDeltaType, |
| 741 | 741 | payload: ContentDeltaPayload, |
| 742 | 742 | }); |
| 743 | 743 | export type ProviderRuntimeContentDeltaEvent = typeof ProviderRuntimeContentDeltaEvent.Type; |
| 744 | 744 | |
| 745 | | −export const ProviderRuntimeRequestOpenedEvent = Schema.Struct({ |
| 745 | +const ProviderRuntimeRequestOpenedEvent = Schema.Struct({ |
| 746 | 746 | ...ProviderRuntimeEventBase.fields, |
| 747 | 747 | type: RequestOpenedType, |
| 748 | 748 | payload: RequestOpenedPayload, |
| 749 | 749 | }); |
| 750 | 750 | export type ProviderRuntimeRequestOpenedEvent = typeof ProviderRuntimeRequestOpenedEvent.Type; |
| 751 | 751 | |
| 752 | | −export const ProviderRuntimeRequestResolvedEvent = Schema.Struct({ |
| 752 | +const ProviderRuntimeRequestResolvedEvent = Schema.Struct({ |
| 753 | 753 | ...ProviderRuntimeEventBase.fields, |
| 754 | 754 | type: RequestResolvedType, |
| 755 | 755 | payload: RequestResolvedPayload, |
| 756 | 756 | }); |
| 757 | 757 | export type ProviderRuntimeRequestResolvedEvent = typeof ProviderRuntimeRequestResolvedEvent.Type; |
| 758 | 758 | |
| 759 | | −export const ProviderRuntimeUserInputRequestedEvent = Schema.Struct({ |
| 759 | +const ProviderRuntimeUserInputRequestedEvent = Schema.Struct({ |
| 760 | 760 | ...ProviderRuntimeEventBase.fields, |
| 761 | 761 | type: UserInputRequestedType, |
| 762 | 762 | payload: UserInputRequestedPayload, |
| @@ -764,84 +764,84 @@ export const ProviderRuntimeUserInputRequestedEvent = Schema.Struct({ · 1 unmodified line |
| 764 | 764 | export type ProviderRuntimeUserInputRequestedEvent = |
| 765 | 765 | typeof ProviderRuntimeUserInputRequestedEvent.Type; |
| 766 | 766 | |
| 767 | | −export const ProviderRuntimeUserInputResolvedEvent = Schema.Struct({ |
| 767 | +const ProviderRuntimeUserInputResolvedEvent = Schema.Struct({ |
| 768 | 768 | ...ProviderRuntimeEventBase.fields, |
| 769 | 769 | type: UserInputResolvedType, |
| 770 | 770 | payload: UserInputResolvedPayload, |
| 771 | 771 | }); |
| 772 | 772 | export type ProviderRuntimeUserInputResolvedEvent = typeof ProviderRuntimeUserInputResolvedEvent.Type; |
| 773 | 773 | |
| 774 | | −export const ProviderRuntimeTaskStartedEvent = Schema.Struct({ |
| 774 | +const ProviderRuntimeTaskStartedEvent = Schema.Struct({ |
| 775 | 775 | ...ProviderRuntimeEventBase.fields, |
| 776 | 776 | type: TaskStartedType, |
| 777 | 777 | payload: TaskStartedPayload, |
| 778 | 778 | }); |
| 779 | 779 | export type ProviderRuntimeTaskStartedEvent = typeof ProviderRuntimeTaskStartedEvent.Type; |
| 780 | 780 | |
| 781 | | −export const ProviderRuntimeTaskProgressEvent = Schema.Struct({ |
| 781 | +const ProviderRuntimeTaskProgressEvent = Schema.Struct({ |
| 782 | 782 | ...ProviderRuntimeEventBase.fields, |
| 783 | 783 | type: TaskProgressType, |
| 784 | 784 | payload: TaskProgressPayload, |
| 785 | 785 | }); |
| 786 | 786 | export type ProviderRuntimeTaskProgressEvent = typeof ProviderRuntimeTaskProgressEvent.Type; |
| 787 | 787 | |
| 788 | | −export const ProviderRuntimeTaskCompletedEvent = Schema.Struct({ |
| 788 | +const ProviderRuntimeTaskCompletedEvent = Schema.Struct({ |
| 789 | 789 | ...ProviderRuntimeEventBase.fields, |
| 790 | 790 | type: TaskCompletedType, |
| 791 | 791 | payload: TaskCompletedPayload, |
| 792 | 792 | }); |
| 793 | 793 | export type ProviderRuntimeTaskCompletedEvent = typeof ProviderRuntimeTaskCompletedEvent.Type; |
| 794 | 794 | |
| 795 | | −export const ProviderRuntimeHookStartedEvent = Schema.Struct({ |
| 795 | +const ProviderRuntimeHookStartedEvent = Schema.Struct({ |
| 796 | 796 | ...ProviderRuntimeEventBase.fields, |
| 797 | 797 | type: HookStartedType, |
| 798 | 798 | payload: HookStartedPayload, |
| 799 | 799 | }); |
| 800 | 800 | export type ProviderRuntimeHookStartedEvent = typeof ProviderRuntimeHookStartedEvent.Type; |
| 801 | 801 | |
| 802 | | −export const ProviderRuntimeHookProgressEvent = Schema.Struct({ |
| 802 | +const ProviderRuntimeHookProgressEvent = Schema.Struct({ |
| 803 | 803 | ...ProviderRuntimeEventBase.fields, |
| 804 | 804 | type: HookProgressType, |
| 805 | 805 | payload: HookProgressPayload, |
| 806 | 806 | }); |
| 807 | 807 | export type ProviderRuntimeHookProgressEvent = typeof ProviderRuntimeHookProgressEvent.Type; |
| 808 | 808 | |
| 809 | | −export const ProviderRuntimeHookCompletedEvent = Schema.Struct({ |
| 809 | +const ProviderRuntimeHookCompletedEvent = Schema.Struct({ |
| 810 | 810 | ...ProviderRuntimeEventBase.fields, |
| 811 | 811 | type: HookCompletedType, |
| 812 | 812 | payload: HookCompletedPayload, |
| 813 | 813 | }); |
| 814 | 814 | export type ProviderRuntimeHookCompletedEvent = typeof ProviderRuntimeHookCompletedEvent.Type; |
| 815 | 815 | |
| 816 | | −export const ProviderRuntimeToolProgressEvent = Schema.Struct({ |
| 816 | +const ProviderRuntimeToolProgressEvent = Schema.Struct({ |
| 817 | 817 | ...ProviderRuntimeEventBase.fields, |
| 818 | 818 | type: ToolProgressType, |
| 819 | 819 | payload: ToolProgressPayload, |
| 820 | 820 | }); |
| 821 | 821 | export type ProviderRuntimeToolProgressEvent = typeof ProviderRuntimeToolProgressEvent.Type; |
| 822 | 822 | |
| 823 | | −export const ProviderRuntimeToolSummaryEvent = Schema.Struct({ |
| 823 | +const ProviderRuntimeToolSummaryEvent = Schema.Struct({ |
| 824 | 824 | ...ProviderRuntimeEventBase.fields, |
| 825 | 825 | type: ToolSummaryType, |
| 826 | 826 | payload: ToolSummaryPayload, |
| 827 | 827 | }); |
| 828 | 828 | export type ProviderRuntimeToolSummaryEvent = typeof ProviderRuntimeToolSummaryEvent.Type; |
| 829 | 829 | |
| 830 | | −export const ProviderRuntimeAuthStatusEvent = Schema.Struct({ |
| 830 | +const ProviderRuntimeAuthStatusEvent = Schema.Struct({ |
| 831 | 831 | ...ProviderRuntimeEventBase.fields, |
| 832 | 832 | type: AuthStatusType, |
| 833 | 833 | payload: AuthStatusPayload, |
| 834 | 834 | }); |
| 835 | 835 | export type ProviderRuntimeAuthStatusEvent = typeof ProviderRuntimeAuthStatusEvent.Type; |
| 836 | 836 | |
| 837 | | −export const ProviderRuntimeAccountUpdatedEvent = Schema.Struct({ |
| 837 | +const ProviderRuntimeAccountUpdatedEvent = Schema.Struct({ |
| 838 | 838 | ...ProviderRuntimeEventBase.fields, |
| 839 | 839 | type: AccountUpdatedType, |
| 840 | 840 | payload: AccountUpdatedPayload, |
| 841 | 841 | }); |
| 842 | 842 | export type ProviderRuntimeAccountUpdatedEvent = typeof ProviderRuntimeAccountUpdatedEvent.Type; |
| 843 | 843 | |
| 844 | | −export const ProviderRuntimeAccountRateLimitsUpdatedEvent = Schema.Struct({ |
| 844 | +const ProviderRuntimeAccountRateLimitsUpdatedEvent = Schema.Struct({ |
| 845 | 845 | ...ProviderRuntimeEventBase.fields, |
| 846 | 846 | type: AccountRateLimitsUpdatedType, |
| 847 | 847 | payload: AccountRateLimitsUpdatedPayload, |
| @@ -849,56 +849,56 @@ export const ProviderRuntimeAccountRateLimitsUpdatedEvent = Schema.Struct({ · 1 unmodified line |
| 849 | 849 | export type ProviderRuntimeAccountRateLimitsUpdatedEvent = |
| 850 | 850 | typeof ProviderRuntimeAccountRateLimitsUpdatedEvent.Type; |
| 851 | 851 | |
| 852 | | −export const ProviderRuntimeMcpStatusUpdatedEvent = Schema.Struct({ |
| 852 | +const ProviderRuntimeMcpStatusUpdatedEvent = Schema.Struct({ |
| 853 | 853 | ...ProviderRuntimeEventBase.fields, |
| 854 | 854 | type: McpStatusUpdatedType, |
| 855 | 855 | payload: McpStatusUpdatedPayload, |
| 856 | 856 | }); |
| 857 | 857 | export type ProviderRuntimeMcpStatusUpdatedEvent = typeof ProviderRuntimeMcpStatusUpdatedEvent.Type; |
| 858 | 858 | |
| 859 | | −export const ProviderRuntimeMcpOauthCompletedEvent = Schema.Struct({ |
| 859 | +const ProviderRuntimeMcpOauthCompletedEvent = Schema.Struct({ |
| 860 | 860 | ...ProviderRuntimeEventBase.fields, |
| 861 | 861 | type: McpOauthCompletedType, |
| 862 | 862 | payload: McpOauthCompletedPayload, |
| 863 | 863 | }); |
| 864 | 864 | export type ProviderRuntimeMcpOauthCompletedEvent = typeof ProviderRuntimeMcpOauthCompletedEvent.Type; |
| 865 | 865 | |
| 866 | | −export const ProviderRuntimeModelReroutedEvent = Schema.Struct({ |
| 866 | +const ProviderRuntimeModelReroutedEvent = Schema.Struct({ |
| 867 | 867 | ...ProviderRuntimeEventBase.fields, |
| 868 | 868 | type: ModelReroutedType, |
| 869 | 869 | payload: ModelReroutedPayload, |
| 870 | 870 | }); |
| 871 | 871 | export type ProviderRuntimeModelReroutedEvent = typeof ProviderRuntimeModelReroutedEvent.Type; |
| 872 | 872 | |
| 873 | | −export const ProviderRuntimeConfigWarningEvent = Schema.Struct({ |
| 873 | +const ProviderRuntimeConfigWarningEvent = Schema.Struct({ |
| 874 | 874 | ...ProviderRuntimeEventBase.fields, |
| 875 | 875 | type: ConfigWarningType, |
| 876 | 876 | payload: ConfigWarningPayload, |
| 877 | 877 | }); |
| 878 | 878 | export type ProviderRuntimeConfigWarningEvent = typeof ProviderRuntimeConfigWarningEvent.Type; |
| 879 | 879 | |
| 880 | | −export const ProviderRuntimeDeprecationNoticeEvent = Schema.Struct({ |
| 880 | +const ProviderRuntimeDeprecationNoticeEvent = Schema.Struct({ |
| 881 | 881 | ...ProviderRuntimeEventBase.fields, |
| 882 | 882 | type: DeprecationNoticeType, |
| 883 | 883 | payload: DeprecationNoticePayload, |
| 884 | 884 | }); |
| 885 | 885 | export type ProviderRuntimeDeprecationNoticeEvent = typeof ProviderRuntimeDeprecationNoticeEvent.Type; |
| 886 | 886 | |
| 887 | | −export const ProviderRuntimeFilesPersistedEvent = Schema.Struct({ |
| 887 | +const ProviderRuntimeFilesPersistedEvent = Schema.Struct({ |
| 888 | 888 | ...ProviderRuntimeEventBase.fields, |
| 889 | 889 | type: FilesPersistedType, |
| 890 | 890 | payload: FilesPersistedPayload, |
| 891 | 891 | }); |
| 892 | 892 | export type ProviderRuntimeFilesPersistedEvent = typeof ProviderRuntimeFilesPersistedEvent.Type; |
| 893 | 893 | |
| 894 | | −export const ProviderRuntimeWarningEvent = Schema.Struct({ |
| 894 | +const ProviderRuntimeWarningEvent = Schema.Struct({ |
| 895 | 895 | ...ProviderRuntimeEventBase.fields, |
| 896 | 896 | type: RuntimeWarningType, |
| 897 | 897 | payload: RuntimeWarningPayload, |
| 898 | 898 | }); |
| 899 | 899 | export type ProviderRuntimeWarningEvent = typeof ProviderRuntimeWarningEvent.Type; |
| 900 | 900 | |
| 901 | | −export const ProviderRuntimeErrorEvent = Schema.Struct({ |
| 901 | +const ProviderRuntimeErrorEvent = Schema.Struct({ |
| 902 | 902 | ...ProviderRuntimeEventBase.fields, |
| 903 | 903 | type: RuntimeErrorType, |
| 904 | 904 | payload: RuntimeErrorPayload, |
| @@ -960,21 +960,21 @@ export const ProviderRuntimeEvent = ProviderRuntimeEventV2; · 55 unmodified lines |
| 960 | 960 | export type ProviderRuntimeEvent = ProviderRuntimeEventV2; |
| 961 | 961 | |
| 962 | 962 | // Compatibility aliases for call sites still importing legacy names. |
| 963 | | −export const ProviderRuntimeMessageDeltaEvent = ProviderRuntimeContentDeltaEvent; |
| 963 | +const ProviderRuntimeMessageDeltaEvent = ProviderRuntimeContentDeltaEvent; |
| 964 | 964 | export type ProviderRuntimeMessageDeltaEvent = ProviderRuntimeContentDeltaEvent; |
| 965 | | −export const ProviderRuntimeMessageCompletedEvent = ProviderRuntimeItemCompletedEvent; |
| 965 | +const ProviderRuntimeMessageCompletedEvent = ProviderRuntimeItemCompletedEvent; |
| 966 | 966 | export type ProviderRuntimeMessageCompletedEvent = ProviderRuntimeItemCompletedEvent; |
| 967 | | −export const ProviderRuntimeToolStartedEvent = ProviderRuntimeItemStartedEvent; |
| 967 | +const ProviderRuntimeToolStartedEvent = ProviderRuntimeItemStartedEvent; |
| 968 | 968 | export type ProviderRuntimeToolStartedEvent = ProviderRuntimeItemStartedEvent; |
| 969 | | −export const ProviderRuntimeToolCompletedEvent = ProviderRuntimeItemCompletedEvent; |
| 969 | +const ProviderRuntimeToolCompletedEvent = ProviderRuntimeItemCompletedEvent; |
| 970 | 970 | export type ProviderRuntimeToolCompletedEvent = ProviderRuntimeItemCompletedEvent; |
| 971 | | −export const ProviderRuntimeApprovalRequestedEvent = ProviderRuntimeRequestOpenedEvent; |
| 971 | +const ProviderRuntimeApprovalRequestedEvent = ProviderRuntimeRequestOpenedEvent; |
| 972 | 972 | export type ProviderRuntimeApprovalRequestedEvent = ProviderRuntimeRequestOpenedEvent; |
| 973 | | −export const ProviderRuntimeApprovalResolvedEvent = ProviderRuntimeRequestResolvedEvent; |
| 973 | +const ProviderRuntimeApprovalResolvedEvent = ProviderRuntimeRequestResolvedEvent; |
| 974 | 974 | export type ProviderRuntimeApprovalResolvedEvent = ProviderRuntimeRequestResolvedEvent; |
| 975 | 975 | |
| 976 | 976 | // Legacy helper aliases retained for adapters/tests. |
| 977 | | −export const ProviderRuntimeToolKind = Schema.Literals([ |
| 977 | +const ProviderRuntimeToolKind = Schema.Literals([ |
| 978 | 978 | "command", |
| 979 | 979 | "file-read", |
| 980 | 980 | "file-change", |