@github/copilot-sdk-win32-x64 1.0.15-preview.2 → 1.0.15-preview.4

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.
@@ -9,7 +9,7 @@ export type JsonValue = null | boolean | number | string | JsonValue[] | {
9
9
  /**
10
10
  * Union of all session event variants emitted by the Copilot CLI runtime.
11
11
  */
12
- export type SessionEvent = StartEvent | ResumeEvent | RemoteSteerableChangedEvent | ErrorEvent | IdleEvent | TitleChangedEvent | ScheduleCreatedEvent | ScheduleCancelledEvent | ScheduleRearmedEvent | AutopilotObjectiveChangedEvent | InfoEvent | IndexedSearchEvent | WarningEvent | ModelChangeEvent | ModelDeselectedEvent | AutoTierRecommendationEvent | AutoTierSwitchFailedEvent | ModeChangedEvent | ModeNoticeDeliveredEvent | SessionLimitsChangedEvent | PermissionsChangedEvent | PlanChangedEvent | TodosChangedEvent | WorkspaceFileChangedEvent | HandoffEvent | TruncationEvent | SnapshotRewindEvent | ShutdownEvent | UsageCheckpointEvent | ContextChangedEvent | UsageInfoEvent | ContextClearedEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | CompletionReceiptEvent | FusionRouteStartedEvent | FusionRouteFailedEvent | FusionResolvedEvent | FusionCompletedEvent | PermissionRecoveryEvent | UserMessageEvent | PendingMessagesModifiedEvent | AssistantTurnStartEvent | AssistantIntentEvent | AssistantFusionPhaseStartedEvent | AssistantFusionPhaseActivityEvent | AssistantFusionPhaseCompletedEvent | AssistantFusionPhaseFailedEvent | AssistantServerToolProgressEvent | AssistantReasoningEvent | AssistantReasoningDeltaEvent | AssistantToolCallDeltaEvent | AssistantStreamingDeltaEvent | AssistantMessageEvent | AssistantMessageStartEvent | AssistantMessageDeltaEvent | AssistantTurnEndEvent | AssistantIdleEvent | AssistantUsageEvent | ModelCallFailureEvent | ModelCallFinishedEvent | AbortEvent | ToolUserRequestedEvent | ToolExecutionStartEvent | ToolExecutionPartialResultEvent | ToolExecutionProgressEvent | ToolExecutionCompleteEvent | ToolSearchActivatedEvent | SkillInvokedEvent | SubagentStartedEvent | SubagentConfiguredEvent | SubagentCompletedEvent | SubagentFailedEvent | SubagentSelectedEvent | SubagentDeselectedEvent | HookStartEvent | HookEndEvent | HookProgressEvent | BinaryAssetEvent | SystemMessageEvent | SystemNotificationEvent | PermissionRequestedEvent | PermissionCompletedEvent | PermissionCarriedForwardEvent | PermissionMessageAuthorizationEvent | PermissionMessageAuthorizationReadEvent | PermissionMessageAuthorizationDegradedEvent | PermissionAssentDetectedEvent | PermissionContextualAuthorizationEvent | UserInputRequestedEvent | UserInputCompletedEvent | ElicitationRequestedEvent | ElicitationCompletedEvent | SamplingRequestedEvent | SamplingCompletedEvent | McpOauthRequiredEvent | McpOauthCompletedEvent | McpHeadersRefreshRequiredEvent | McpHeadersRefreshCompletedEvent | CustomNotificationEvent | UIEphemeralQueryEvent | ExternalToolRequestedEvent | ExternalToolCompletedEvent | CommandQueuedEvent | CommandExecuteEvent | CommandCompletedEvent | AutoModeSwitchRequestedEvent | AutoModeSwitchCompletedEvent | SessionLimitsExhaustedRequestedEvent | SessionLimitsExhaustedCompletedEvent | AutoModeResolvedEvent | ManagedSettingsResolvedEvent | ManagedSettingsEnforcedEvent | CommandsChangedEvent | CapabilitiesChangedEvent | ExitPlanModeRequestedEvent | ExitPlanModeCompletedEvent | ToolsUpdatedEvent | BackgroundTasksChangedEvent | FactoryRunUpdatedEvent | FactoryRunStartedEvent | FactoryRunSettledEvent | SkillsLoadedEvent | CustomAgentsUpdatedEvent | McpServersLoadedEvent | McpServerStatusChangedEvent | McpServerRemovedEvent | McpServerNeedsReconnectEvent | McpToolsListChangedEvent | McpResourcesListChangedEvent | McpPromptsListChangedEvent | ExtensionsLoadedEvent | CanvasOpenedEvent | CanvasRegistryChangedEvent | CanvasClosedEvent | CanvasUnavailableEvent | CanvasRecordedEvent | CanvasRemovedEvent | ExtensionsAttachmentsPushedEvent | McpAppToolCallCompleteEvent;
12
+ export type SessionEvent = StartEvent | ResumeEvent | RemoteSteerableChangedEvent | ErrorEvent | IdleEvent | TitleChangedEvent | ScheduleCreatedEvent | ScheduleCancelledEvent | ScheduleRearmedEvent | AutopilotObjectiveChangedEvent | InfoEvent | IndexedSearchEvent | WarningEvent | ModelChangeEvent | ModelDeselectedEvent | AutoTierRecommendationEvent | AutoTierSwitchFailedEvent | ModeChangedEvent | ModeNoticeDeliveredEvent | SessionLimitsChangedEvent | PermissionsChangedEvent | PlanChangedEvent | TodosChangedEvent | WorkspaceFileChangedEvent | HandoffEvent | TruncationEvent | SnapshotRewindEvent | ShutdownEvent | UsageCheckpointEvent | ContextChangedEvent | UsageInfoEvent | ContextClearedEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | CompletionReceiptEvent | FusionRouteStartedEvent | FusionRouteFailedEvent | FusionResolvedEvent | FusionCompletedEvent | PermissionRecoveryEvent | UserMessageEvent | PendingMessagesModifiedEvent | AssistantTurnStartEvent | AssistantIntentEvent | AssistantFusionPhaseStartedEvent | AssistantFusionPhaseActivityEvent | AssistantFusionPhaseCompletedEvent | AssistantFusionPhaseFailedEvent | AssistantServerToolProgressEvent | AssistantReasoningEvent | AssistantReasoningDeltaEvent | AssistantToolCallDeltaEvent | AssistantStreamingDeltaEvent | AssistantMessageEvent | AssistantMessageStartEvent | AssistantMessageDeltaEvent | AssistantTurnEndEvent | AssistantIdleEvent | AssistantUsageEvent | ModelCallFailureEvent | ModelCallFinishedEvent | AbortEvent | ToolUserRequestedEvent | ToolExecutionStartEvent | ToolExecutionPartialResultEvent | ToolExecutionProgressEvent | ToolExecutionCompleteEvent | ToolSearchActivatedEvent | SkillInvokedEvent | SubagentStartedEvent | SubagentConfiguredEvent | SubagentCompletedEvent | SubagentFailedEvent | SubagentSelectedEvent | SubagentDeselectedEvent | HookStartEvent | HookEndEvent | HookProgressEvent | BinaryAssetEvent | SystemMessageEvent | SystemNotificationEvent | PermissionRequestedEvent | PermissionCompletedEvent | PermissionCarriedForwardEvent | PermissionMessageAuthorizationEvent | PermissionMessageAuthorizationReadEvent | PermissionMessageAuthorizationDegradedEvent | PermissionAssentDetectedEvent | PermissionContextualAuthorizationEvent | UserInputRequestedEvent | UserInputCompletedEvent | ElicitationRequestedEvent | ElicitationCompletedEvent | SamplingRequestedEvent | SamplingCompletedEvent | McpOauthRequiredEvent | McpOauthCompletedEvent | McpHeadersRefreshRequiredEvent | McpHeadersRefreshCompletedEvent | CustomNotificationEvent | UIEphemeralQueryEvent | ExternalToolRequestedEvent | ExternalToolCompletedEvent | CommandQueuedEvent | CommandExecuteEvent | CommandCompletedEvent | AutoModeSwitchRequestedEvent | AutoModeSwitchCompletedEvent | SessionLimitsExhaustedRequestedEvent | SessionLimitsExhaustedCompletedEvent | AutoModeResolvedEvent | ManagedSettingsResolvedEvent | ManagedSettingsEnforcedEvent | CommandsChangedEvent | CapabilitiesChangedEvent | ExitPlanModeRequestedEvent | ExitPlanModeCompletedEvent | ToolsUpdatedEvent | BackgroundTasksChangedEvent | WorkflowRunUpdatedEvent | WorkflowRunStartedEvent | WorkflowRunSettledEvent | SkillsLoadedEvent | CustomAgentsUpdatedEvent | McpServersLoadedEvent | McpServerStatusChangedEvent | McpServerRemovedEvent | McpServerNeedsReconnectEvent | McpToolsListChangedEvent | McpResourcesListChangedEvent | McpPromptsListChangedEvent | ExtensionsLoadedEvent | CanvasOpenedEvent | CanvasRegistryChangedEvent | CanvasClosedEvent | CanvasUnavailableEvent | CanvasRecordedEvent | CanvasRemovedEvent | ExtensionsAttachmentsPushedEvent | McpAppToolCallCompleteEvent;
13
13
  /**
14
14
  * Routing preference used when the session model is `auto`. `fast` is an integrator-only latency preset and is not a first-party GitHub Copilot product preference.
15
15
  */
@@ -298,7 +298,9 @@ export type ModelChangeSource =
298
298
  /** The user selected the promoted model from the changeboarding card or its keyboard shortcut. */
299
299
  | "changeboarding_shortcut"
300
300
  /** An SDK or RPC caller selected the model. */
301
- | "sdk";
301
+ | "sdk"
302
+ /** The user accepted a CAPI-issued Auto tier recommendation. */
303
+ | "auto_tier_recommendation";
302
304
  /**
303
305
  * Why the session no longer has an explicitly selected model.
304
306
  */
@@ -883,7 +885,7 @@ export type SystemMessageRole =
883
885
  /**
884
886
  * Structured metadata identifying what triggered this notification
885
887
  */
886
- export type SystemNotification = SystemNotificationAgentCompleted | SystemNotificationAgentIdle | SystemNotificationNewInboxMessage | SystemNotificationShellCompleted | SystemNotificationShellDetachedCompleted | SystemNotificationInstructionDiscovered | SystemNotificationFactoryCompleted | SystemNotificationUnclassified;
888
+ export type SystemNotification = SystemNotificationAgentCompleted | SystemNotificationAgentIdle | SystemNotificationNewInboxMessage | SystemNotificationShellCompleted | SystemNotificationShellDetachedCompleted | SystemNotificationInstructionDiscovered | SystemNotificationWorkflowCompleted | SystemNotificationUnclassified;
887
889
  /**
888
890
  * Whether the agent completed successfully or failed
889
891
  */
@@ -893,11 +895,11 @@ export type SystemNotificationAgentCompletedStatus =
893
895
  /** The agent failed. */
894
896
  | "failed";
895
897
  /**
896
- * Durable metadata describing who initiated a factory pause.
898
+ * Durable metadata describing who initiated a workflow pause.
897
899
  */
898
- export type SystemNotificationFactoryPauseInfo = {
900
+ export type SystemNotificationWorkflowPauseInfo = {
899
901
  /**
900
- * Factory pause initiator discriminator.
902
+ * Workflow pause initiator discriminator.
901
903
  */
902
904
  type: "user";
903
905
  } | {
@@ -906,28 +908,28 @@ export type SystemNotificationFactoryPauseInfo = {
906
908
  */
907
909
  key: string;
908
910
  /**
909
- * Factory pause initiator discriminator.
911
+ * Workflow pause initiator discriminator.
910
912
  */
911
913
  type: "checkpoint";
912
914
  };
913
915
  /**
914
- * Terminal status reached by a factory execution attempt.
916
+ * Terminal status reached by a workflow execution attempt.
915
917
  */
916
- export type SystemNotificationFactoryCompletedStatus =
917
- /** The factory completed successfully. */
918
+ export type SystemNotificationWorkflowCompletedStatus =
919
+ /** The workflow completed successfully. */
918
920
  "completed"
919
- /** The factory was halted. */
921
+ /** The workflow was halted. */
920
922
  | "halted"
921
- /** The factory attempt paused intentionally. */
923
+ /** The workflow attempt paused intentionally. */
922
924
  | "paused"
923
- /** The factory was cancelled. */
925
+ /** The workflow was cancelled. */
924
926
  | "cancelled"
925
- /** The factory failed. */
927
+ /** The workflow failed. */
926
928
  | "error";
927
929
  /**
928
930
  * Details of the permission being requested
929
931
  */
930
- export type PermissionRequest = PermissionRequestShell | PermissionRequestWrite | PermissionRequestRead | PermissionRequestMcp | PermissionRequestUrl | PermissionRequestMemory | PermissionRequestCustomTool | PermissionRequestHook | PermissionRequestExtensionManagement | PermissionRequestFactory | PermissionRequestExtensionPermissionAccess | PermissionRequestExtensionEnvAccess;
932
+ export type PermissionRequest = PermissionRequestShell | PermissionRequestWrite | PermissionRequestRead | PermissionRequestMcp | PermissionRequestUrl | PermissionRequestMemory | PermissionRequestCustomTool | PermissionRequestHook | PermissionRequestExtensionManagement | PermissionRequestWorkflow | PermissionRequestExtensionPermissionAccess | PermissionRequestExtensionEnvAccess;
931
933
  /**
932
934
  * Advisory recommendation the runtime attaches to a permission request whose origin it can vouch for by construction. Unlike the auto-approval judge this does not depend on auto mode and does not evaluate what the tool call does; its absence simply means the runtime has no opinion and the request follows the host's normal approval flow.
933
935
  */
@@ -988,17 +990,17 @@ export type PermissionRequestMemoryScope =
988
990
  /** Store the memory for the current user. */
989
991
  | "user";
990
992
  /**
991
- * Operation gated by a factory permission request.
993
+ * Operation gated by a workflow permission request.
992
994
  */
993
- export type FactoryPermissionOperation =
994
- /** Running a registered factory, which spends subagents, active time, and AI credits under the approved limits. */
995
+ export type WorkflowPermissionOperation =
996
+ /** Running a registered workflow, which spends subagents, active time, and AI credits under the approved limits. */
995
997
  "run"
996
- /** Authoring a factory, which writes JavaScript into a session-scoped extension and loads it. */
998
+ /** Authoring a workflow, which writes JavaScript into a session-scoped extension and loads it. */
997
999
  | "author";
998
1000
  /**
999
1001
  * Derived user-facing permission prompt details for UI consumers
1000
1002
  */
1001
- export type PermissionPromptRequest = PermissionPromptRequestCommands | PermissionPromptRequestWrite | PermissionPromptRequestRead | PermissionPromptRequestMcp | PermissionPromptRequestUrl | PermissionPromptRequestMemory | PermissionPromptRequestCustomTool | PermissionPromptRequestPath | PermissionPromptRequestHook | PermissionPromptRequestExtensionManagement | PermissionPromptRequestFactory | PermissionPromptRequestExtensionPermissionAccess | PermissionPromptRequestExtensionEnvAccess;
1003
+ export type PermissionPromptRequest = PermissionPromptRequestCommands | PermissionPromptRequestWrite | PermissionPromptRequestRead | PermissionPromptRequestMcp | PermissionPromptRequestUrl | PermissionPromptRequestMemory | PermissionPromptRequestCustomTool | PermissionPromptRequestPath | PermissionPromptRequestHook | PermissionPromptRequestExtensionManagement | PermissionPromptRequestWorkflow | PermissionPromptRequestExtensionPermissionAccess | PermissionPromptRequestExtensionEnvAccess;
1002
1004
  /**
1003
1005
  * Underlying permission kind that needs path approval
1004
1006
  */
@@ -1021,7 +1023,7 @@ export type PermissionDecisionSource =
1021
1023
  | "host_policy"
1022
1024
  /** The host denied the request because no interactive user response was available. */
1023
1025
  | "unattended_fallback"
1024
- /** A live authorization record from an earlier human decision in this session contained the proposal, so it ran without another prompt. This is not a new human decision and never mints authority of its own. */
1026
+ /** Historical compatibility value for sessions created while authorization carry-forward was executable. Current runtimes do not produce this source. */
1025
1027
  | "authorization_carry_forward";
1026
1028
  /**
1027
1029
  * The result of the permission request
@@ -1030,15 +1032,15 @@ export type PermissionResult = PermissionApproved | PermissionApprovedForSession
1030
1032
  /**
1031
1033
  * The approval to add as a session-scoped rule
1032
1034
  */
1033
- export type UserToolSessionApproval = UserToolSessionApprovalCommands | UserToolSessionApprovalRead | UserToolSessionApprovalWrite | UserToolSessionApprovalMcp | UserToolSessionApprovalMemory | UserToolSessionApprovalCustomTool | UserToolSessionApprovalExtensionManagement | UserToolSessionApprovalFactory | UserToolSessionApprovalExtensionPermissionAccess | UserToolSessionApprovalExtensionEnvAccess;
1035
+ export type UserToolSessionApproval = UserToolSessionApprovalCommands | UserToolSessionApprovalRead | UserToolSessionApprovalWrite | UserToolSessionApprovalMcp | UserToolSessionApprovalMemory | UserToolSessionApprovalCustomTool | UserToolSessionApprovalExtensionManagement | UserToolSessionApprovalWorkflow | UserToolSessionApprovalExtensionPermissionAccess | UserToolSessionApprovalExtensionEnvAccess;
1034
1036
  /**
1035
- * Which direction a message-backed authorization claim moves authority in.
1037
+ * Direction stored in a historical extractor claim. Current runtimes do not apply it.
1036
1038
  */
1037
1039
  /** @experimental */
1038
1040
  export type PermissionMessageAuthorizationPolarity =
1039
- /** The human's words authorized an effect. */
1041
+ /** Historical claim recorded as a grant. */
1040
1042
  "grant"
1041
- /** The human's words refused an effect. */
1043
+ /** Historical claim recorded as a denial. */
1042
1044
  | "denial";
1043
1045
  /**
1044
1046
  * Elicitation mode; "form" for structured input, "url" for browser-based. Defaults to "form" when absent.
@@ -1206,10 +1208,10 @@ export type ExitPlanModeAction =
1206
1208
  /** Exit plan mode and continue with parallel autonomous workers. */
1207
1209
  | "autopilot_fleet";
1208
1210
  /**
1209
- * Terminal status a factory run committed. A settled run is never `pending` or `running`, so those two members of the run-status domain are deliberately absent.
1211
+ * Terminal status a workflow run committed. A settled run is never `pending` or `running`, so those two members of the run-status domain are deliberately absent.
1210
1212
  */
1211
- export type FactoryRunSettledStatus =
1212
- /** The factory body resolved and its result was committed. */
1213
+ export type WorkflowRunSettledStatus =
1214
+ /** The workflow body resolved and its result was committed. */
1213
1215
  "completed"
1214
1216
  /** The run was stopped by a limit, an approval refusal or another policy decision. */
1215
1217
  | "halted"
@@ -2684,12 +2686,16 @@ export interface SnapshotRewindEvent {
2684
2686
  * Session rewind details including target event and count of removed events
2685
2687
  */
2686
2688
  export interface SnapshotRewindData {
2689
+ /**
2690
+ * The removed events, starting with `upToEventId`. Later events not listed were kept, such as a background agent's events that interleaved with a withdrawn turn
2691
+ */
2692
+ eventIds?: string[];
2687
2693
  /**
2688
2694
  * Number of events that were removed by the rewind
2689
2695
  */
2690
2696
  eventsRemoved: number;
2691
2697
  /**
2692
- * Event ID that was rewound to; this event and all after it were removed
2698
+ * First removed event. Without `eventIds`, it and every event after it were removed
2693
2699
  */
2694
2700
  upToEventId: string;
2695
2701
  }
@@ -3317,7 +3323,7 @@ export interface CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail {
3317
3323
  tokenType: string;
3318
3324
  }
3319
3325
  /**
3320
- * Original request-level and effective conversation reasoning effort for a Responses history boundary
3326
+ * Original request-level and effective conversation reasoning effort for a provider history boundary; the historical type name is retained for compatibility
3321
3327
  */
3322
3328
  export interface ResponsesReasoning {
3323
3329
  /**
@@ -3690,6 +3696,12 @@ export interface FusionResolvedData {
3690
3696
  * Version of the validated HydraFusion event contract.
3691
3697
  */
3692
3698
  contractVersion: number;
3699
+ /**
3700
+ * Planned Critique phase identities, including independent critics with repeated model IDs. May be absent in older events; consumers then use secondaryModel for the legacy critic.
3701
+ *
3702
+ * @experimental
3703
+ */
3704
+ critics?: FusionCritic[];
3693
3705
  /**
3694
3706
  * Concrete model used when the planned primary model cannot execute.
3695
3707
  */
@@ -3709,6 +3721,12 @@ export interface FusionResolvedData {
3709
3721
  * @experimental
3710
3722
  */
3711
3723
  hint?: string;
3724
+ /**
3725
+ * Concrete model selected for Cascade escalation-gate calls, when required.
3726
+ *
3727
+ * @experimental
3728
+ */
3729
+ judgeModel?: string;
3712
3730
  /**
3713
3731
  * Version of the executable model universe used for selection.
3714
3732
  */
@@ -3736,6 +3754,12 @@ export interface FusionResolvedData {
3736
3754
  * Concrete model selected for the primary solver phase.
3737
3755
  */
3738
3756
  primaryModel: string;
3757
+ /**
3758
+ * Concrete model selected for Cascade repair, when required.
3759
+ *
3760
+ * @experimental
3761
+ */
3762
+ repairModel?: string;
3739
3763
  /**
3740
3764
  * Router implementation that supplied the plan.
3741
3765
  */
@@ -3758,7 +3782,7 @@ export interface FusionResolvedData {
3758
3782
  ruleName?: string;
3759
3783
  scores?: FusionScores;
3760
3784
  /**
3761
- * Concrete model selected for the review or judge phase, when required.
3785
+ * Concrete model selected for Critique review, or the legacy Cascade judge/repair model when role-specific fields are absent.
3762
3786
  */
3763
3787
  secondaryModel: string | null;
3764
3788
  /**
@@ -3770,6 +3794,27 @@ export interface FusionResolvedData {
3770
3794
  */
3771
3795
  turnId: string;
3772
3796
  }
3797
+ /** @experimental */
3798
+ export interface FusionCritic {
3799
+ /**
3800
+ * Concrete model selected for this critic.
3801
+ *
3802
+ * @experimental
3803
+ */
3804
+ model: string;
3805
+ /**
3806
+ * Unique execution phase identifier for this critic.
3807
+ *
3808
+ * @experimental
3809
+ */
3810
+ phaseId: string;
3811
+ /**
3812
+ * Explicit reasoning effort selected for this critic, if supplied.
3813
+ *
3814
+ * @experimental
3815
+ */
3816
+ reasoningEffort?: string;
3817
+ }
3773
3818
  /**
3774
3819
  * Durable server recommendation for subsequent HydraFusion turns.
3775
3820
  */
@@ -4549,6 +4594,10 @@ export interface AssistantTurnStartData {
4549
4594
  * Model identifier used for this turn, when known
4550
4595
  */
4551
4596
  model?: string;
4597
+ /**
4598
+ * Parent task tool call ID when this turn belongs to a sub-agent
4599
+ */
4600
+ parentToolCallId?: string;
4552
4601
  /**
4553
4602
  * Identifier for this turn within the agentic loop, typically a stringified turn number
4554
4603
  */
@@ -4644,6 +4693,12 @@ export interface FusionPhaseStartedData {
4644
4693
  */
4645
4694
  phaseId: string;
4646
4695
  phaseKind: FusionPhaseKind;
4696
+ /**
4697
+ * Explicit reasoning effort selected for this phase, if supplied.
4698
+ *
4699
+ * @experimental
4700
+ */
4701
+ reasoningEffort?: string;
4647
4702
  /**
4648
4703
  * Semantic role assigned to the phase.
4649
4704
  */
@@ -4768,6 +4823,12 @@ export interface FusionPhaseCompletedData {
4768
4823
  */
4769
4824
  phaseId: string;
4770
4825
  phaseKind: FusionPhaseKind;
4826
+ /**
4827
+ * Explicit reasoning effort selected for this phase, if supplied.
4828
+ *
4829
+ * @experimental
4830
+ */
4831
+ reasoningEffort?: string;
4771
4832
  /**
4772
4833
  * Semantic role assigned to the completed phase.
4773
4834
  */
@@ -4875,6 +4936,12 @@ export interface FusionPhaseFailedData {
4875
4936
  * Stable machine-readable reason for the phase failure.
4876
4937
  */
4877
4938
  reason: string;
4939
+ /**
4940
+ * Explicit reasoning effort selected for this phase, if supplied.
4941
+ *
4942
+ * @experimental
4943
+ */
4944
+ reasoningEffort?: string;
4878
4945
  /**
4879
4946
  * Semantic role assigned to the failed phase.
4880
4947
  */
@@ -5385,6 +5452,10 @@ export interface FusionAttribution {
5385
5452
  * Stable identifier for the HydraFusion turn that produced the event.
5386
5453
  */
5387
5454
  fusionId: string;
5455
+ /**
5456
+ * Whether this model request consumed a user steering message rather than only internal Fusion work.
5457
+ */
5458
+ hasUserSteering?: boolean;
5388
5459
  /**
5389
5460
  * HydraFusion orchestration pattern selected for the turn.
5390
5461
  */
@@ -5634,6 +5705,10 @@ export interface AssistantTurnEndData {
5634
5705
  * Model identifier used for this turn, when known
5635
5706
  */
5636
5707
  model?: string;
5708
+ /**
5709
+ * Parent task tool call ID when this turn belongs to a sub-agent
5710
+ */
5711
+ parentToolCallId?: string;
5637
5712
  /**
5638
5713
  * Identifier of the turn that has ended, matching the corresponding assistant.turn_start event
5639
5714
  */
@@ -5967,6 +6042,10 @@ export interface ModelCallFailureData {
5967
6042
  * Model identifier used for the failed API call
5968
6043
  */
5969
6044
  model?: string;
6045
+ /**
6046
+ * Parent task tool call ID when this failed model call belongs to a sub-agent
6047
+ */
6048
+ parentToolCallId?: string;
5970
6049
  /**
5971
6050
  * GitHub request tracing ID (x-github-request-id header) for server-side log correlation
5972
6051
  */
@@ -7168,7 +7247,7 @@ export interface SubagentStartedData {
7168
7247
  */
7169
7248
  executionMode?: string;
7170
7249
  /**
7171
- * Root id of the factory run that spawned this sub-agent, when it was spawned by one.
7250
+ * Legacy root id of the workflow run that spawned this sub-agent. New consumers should use workflowRunId.
7172
7251
  */
7173
7252
  factoryRunId?: string;
7174
7253
  /**
@@ -7189,6 +7268,10 @@ export interface SubagentStartedData {
7189
7268
  * Tool call ID of the parent tool invocation that spawned this sub-agent
7190
7269
  */
7191
7270
  toolCallId: string;
7271
+ /**
7272
+ * Root id of the workflow run that spawned this sub-agent, when it was spawned by one.
7273
+ */
7274
+ workflowRunId?: string;
7192
7275
  }
7193
7276
  /**
7194
7277
  * Session event "subagent.configured". Resolved runtime configuration for a configured sub-agent
@@ -8007,9 +8090,9 @@ export interface SystemNotificationInstructionDiscovered {
8007
8090
  type: "instruction_discovered";
8008
8091
  }
8009
8092
  /**
8010
- * System notification metadata for a factory execution attempt that reached a terminal state.
8093
+ * System notification metadata for a workflow execution attempt that reached a terminal state.
8011
8094
  */
8012
- export interface SystemNotificationFactoryCompleted {
8095
+ export interface SystemNotificationWorkflowCompleted {
8013
8096
  /**
8014
8097
  * Execution attempt that reached this terminal state.
8015
8098
  */
@@ -8026,32 +8109,32 @@ export interface SystemNotificationFactoryCompleted {
8026
8109
  * Accumulated active execution time in milliseconds.
8027
8110
  */
8028
8111
  elapsedMs: number;
8029
- /**
8030
- * Persisted factory name.
8031
- */
8032
- factoryName: string;
8033
8112
  /**
8034
8113
  * Machine-readable terminal failure details, when present.
8035
8114
  */
8036
8115
  failure?: JsonValue;
8037
- pauseInfo?: SystemNotificationFactoryPauseInfo;
8116
+ pauseInfo?: SystemNotificationWorkflowPauseInfo;
8038
8117
  /**
8039
8118
  * Bounded prompt-safe preview of the completed result.
8040
8119
  */
8041
8120
  resultPreview?: string;
8042
8121
  /**
8043
- * Actionable run_factory resume guidance for a resource-limit failure.
8122
+ * Actionable run_dynamic_workflow resume guidance for a resource-limit failure.
8044
8123
  */
8045
8124
  retryGuidance?: string;
8046
8125
  /**
8047
- * Factory run identifier.
8126
+ * Workflow run identifier.
8048
8127
  */
8049
8128
  runId: string;
8050
- status: SystemNotificationFactoryCompletedStatus;
8129
+ status: SystemNotificationWorkflowCompletedStatus;
8051
8130
  /**
8052
- * Type discriminator. Always "factory_completed".
8131
+ * Type discriminator. Always "workflow_completed".
8053
8132
  */
8054
- type: "factory_completed";
8133
+ type: "workflow_completed";
8134
+ /**
8135
+ * Persisted workflow name.
8136
+ */
8137
+ workflowName: string;
8055
8138
  }
8056
8139
  /**
8057
8140
  * System notification metadata from an external host that does not match a runtime-owned notification kind.
@@ -8625,41 +8708,45 @@ export interface PermissionRequestExtensionManagement {
8625
8708
  toolCallId?: string;
8626
8709
  }
8627
8710
  /**
8628
- * Factory run or authoring permission request
8711
+ * Workflow run or authoring permission request
8629
8712
  */
8630
- export interface PermissionRequestFactory {
8713
+ export interface PermissionRequestWorkflow {
8631
8714
  /**
8632
- * Canonical key used for scoped factory approvals
8715
+ * Canonical key used for scoped workflow approvals
8633
8716
  */
8634
8717
  approvalKey: string;
8635
8718
  /**
8636
- * Whether this factory is eligible for persistent approval
8719
+ * Whether this workflow is eligible for persistent approval
8637
8720
  */
8638
8721
  canPersistApproval: boolean;
8639
8722
  /**
8640
- * Factory-declared AI-credit limit before any run/resume caller override is applied.
8723
+ * Workflow-declared AI-credit limit before any run/resume caller override is applied.
8641
8724
  */
8642
8725
  declaredMaxAiCredits?: number;
8643
8726
  /**
8644
- * Factory-declared concurrent-subagent limit before any run/resume caller override is applied.
8727
+ * Workflow-declared concurrent-subagent limit before any run/resume caller override is applied.
8645
8728
  */
8646
8729
  declaredMaxConcurrentSubagents?: number;
8647
8730
  /**
8648
- * Factory-declared total-subagent limit before any run/resume caller override is applied.
8731
+ * Workflow-declared total-subagent limit before any run/resume caller override is applied.
8649
8732
  */
8650
8733
  declaredMaxTotalSubagents?: number;
8651
8734
  /**
8652
- * Factory-declared active-time limit in seconds before any run/resume caller override is applied.
8735
+ * Workflow-declared active-time limit in seconds before any run/resume caller override is applied.
8653
8736
  */
8654
8737
  declaredTimeoutSeconds?: number;
8655
8738
  /**
8656
- * Factory description
8739
+ * Workflow description
8657
8740
  */
8658
8741
  description: string;
8659
8742
  /**
8660
8743
  * Permission kind discriminator
8661
8744
  */
8662
- kind: "factory";
8745
+ kind: "workflow";
8746
+ /**
8747
+ * Whether managed policy requires a human response and forbids host auto-approval
8748
+ */
8749
+ managedApprovalRequired?: boolean;
8663
8750
  /**
8664
8751
  * Effective AI-credit limit; omitted means unlimited
8665
8752
  */
@@ -8673,14 +8760,14 @@ export interface PermissionRequestFactory {
8673
8760
  */
8674
8761
  maxTotalSubagents?: number;
8675
8762
  /**
8676
- * Factory name
8763
+ * Workflow name
8677
8764
  */
8678
8765
  name: string;
8679
- operation: FactoryPermissionOperation;
8766
+ operation: WorkflowPermissionOperation;
8680
8767
  /**
8681
- * Declared factory phases
8768
+ * Declared workflow phases
8682
8769
  */
8683
- phases: FactoryPermissionPhase[];
8770
+ phases: WorkflowPermissionPhase[];
8684
8771
  /**
8685
8772
  * Effective active-time limit in seconds; omitted means unlimited
8686
8773
  */
@@ -8691,9 +8778,9 @@ export interface PermissionRequestFactory {
8691
8778
  toolCallId?: string;
8692
8779
  }
8693
8780
  /**
8694
- * A declared phase shown in a factory permission prompt.
8781
+ * A declared phase shown in a workflow permission prompt.
8695
8782
  */
8696
- export interface FactoryPermissionPhase {
8783
+ export interface WorkflowPermissionPhase {
8697
8784
  /**
8698
8785
  * Optional phase detail
8699
8786
  */
@@ -9127,11 +9214,11 @@ export interface PermissionPromptRequestExtensionManagement {
9127
9214
  toolCallId?: string;
9128
9215
  }
9129
9216
  /**
9130
- * Factory run or authoring permission prompt
9217
+ * Workflow run or authoring permission prompt
9131
9218
  */
9132
- export interface PermissionPromptRequestFactory {
9219
+ export interface PermissionPromptRequestWorkflow {
9133
9220
  /**
9134
- * Canonical key used for scoped factory approvals
9221
+ * Canonical key used for scoped workflow approvals
9135
9222
  */
9136
9223
  approvalKey: string;
9137
9224
  /**
@@ -9141,33 +9228,33 @@ export interface PermissionPromptRequestFactory {
9141
9228
  */
9142
9229
  assistedApproval?: PermissionAssistedApproval;
9143
9230
  /**
9144
- * Whether this factory is eligible for persistent approval
9231
+ * Whether this workflow is eligible for persistent approval
9145
9232
  */
9146
9233
  canPersistApproval: boolean;
9147
9234
  /**
9148
- * Factory-declared AI-credit limit before any run/resume caller override is applied.
9235
+ * Workflow-declared AI-credit limit before any run/resume caller override is applied.
9149
9236
  */
9150
9237
  declaredMaxAiCredits?: number;
9151
9238
  /**
9152
- * Factory-declared concurrent-subagent limit before any run/resume caller override is applied.
9239
+ * Workflow-declared concurrent-subagent limit before any run/resume caller override is applied.
9153
9240
  */
9154
9241
  declaredMaxConcurrentSubagents?: number;
9155
9242
  /**
9156
- * Factory-declared total-subagent limit before any run/resume caller override is applied.
9243
+ * Workflow-declared total-subagent limit before any run/resume caller override is applied.
9157
9244
  */
9158
9245
  declaredMaxTotalSubagents?: number;
9159
9246
  /**
9160
- * Factory-declared active-time limit in seconds before any run/resume caller override is applied.
9247
+ * Workflow-declared active-time limit in seconds before any run/resume caller override is applied.
9161
9248
  */
9162
9249
  declaredTimeoutSeconds?: number;
9163
9250
  /**
9164
- * Factory description
9251
+ * Workflow description
9165
9252
  */
9166
9253
  description: string;
9167
9254
  /**
9168
9255
  * Prompt kind discriminator
9169
9256
  */
9170
- kind: "factory";
9257
+ kind: "workflow";
9171
9258
  /**
9172
9259
  * Whether managed policy requires a human response and forbids host auto-approval
9173
9260
  */
@@ -9185,14 +9272,14 @@ export interface PermissionPromptRequestFactory {
9185
9272
  */
9186
9273
  maxTotalSubagents?: number;
9187
9274
  /**
9188
- * Factory name
9275
+ * Workflow name
9189
9276
  */
9190
9277
  name: string;
9191
- operation: FactoryPermissionOperation;
9278
+ operation: WorkflowPermissionOperation;
9192
9279
  /**
9193
- * Declared factory phases
9280
+ * Declared workflow phases
9194
9281
  */
9195
- phases: FactoryPermissionPhase[];
9282
+ phases: WorkflowPermissionPhase[];
9196
9283
  /**
9197
9284
  * Effective active-time limit in seconds; omitted means unlimited
9198
9285
  */
@@ -9424,17 +9511,17 @@ export interface UserToolSessionApprovalExtensionManagement {
9424
9511
  operation?: string;
9425
9512
  }
9426
9513
  /**
9427
- * Session-scoped factory approval, optionally narrowed by approval key.
9514
+ * Session-scoped workflow approval, optionally narrowed by approval key.
9428
9515
  */
9429
- export interface UserToolSessionApprovalFactory {
9516
+ export interface UserToolSessionApprovalWorkflow {
9430
9517
  /**
9431
- * Optional factory operation name or canonical approval key
9518
+ * Optional workflow operation name or canonical approval key
9432
9519
  */
9433
9520
  approvalKey?: string;
9434
9521
  /**
9435
- * Factory approval kind
9522
+ * Workflow approval kind
9436
9523
  */
9437
- kind: "factory";
9524
+ kind: "workflow";
9438
9525
  }
9439
9526
  /**
9440
9527
  * Session-scoped tool-approval rule for an extension's permission-gated capability access, keyed by extension name.
@@ -9586,7 +9673,7 @@ export interface PermissionDeniedByPermissionRequestHook {
9586
9673
  message?: string;
9587
9674
  }
9588
9675
  /**
9589
- * Session event "permission.carriedForward". Records that a live authorization record from an earlier human decision in this session contained a permission proposal, so it ran without another prompt. This mints no authority: it accounts for one more effect against the prior grant, which is what lets a replayed session agree with the live one about how much of that grant is left.
9676
+ * Session event "permission.carriedForward". Historical decode-only receipt from the retired Assisted Permissions authorization extractor. Current runtimes ignore it for permission decisions.
9590
9677
  */
9591
9678
  /** @experimental */
9592
9679
  export interface PermissionCarriedForwardEvent {
@@ -9617,7 +9704,7 @@ export interface PermissionCarriedForwardEvent {
9617
9704
  type: "permission.carriedForward";
9618
9705
  }
9619
9706
  /**
9620
- * Records that a live authorization record from an earlier human decision in this session contained a permission proposal, so it ran without another prompt. This mints no authority: it accounts for one more effect against the prior grant, which is what lets a replayed session agree with the live one about how much of that grant is left.
9707
+ * Historical decode-only receipt from the retired Assisted Permissions authorization extractor. Current runtimes ignore it for permission decisions.
9621
9708
  */
9622
9709
  /** @experimental */
9623
9710
  export interface PermissionCarriedForwardData {
@@ -9647,7 +9734,7 @@ export interface PermissionCarriedForwardData {
9647
9734
  toolCallId: string;
9648
9735
  }
9649
9736
  /**
9650
- * Session event "permission.messageAuthorization". Freezes one blinded, verbatim-verified authorization claim the runtime minted from a human user message, so a resumed session re-establishes the same grant deterministically instead of re-running the extraction model. This mints no authority on its own: it records what a blinded proposer pointed at and the trusted discriminator the runtime established, and deterministic establishment runs on replay. Persisted so recorded authority survives compaction and process resume.
9737
+ * Session event "permission.messageAuthorization". Historical decode-only claim from the retired Assisted Permissions authorization extractor. Current runtimes preserve the payload but do not establish authority from it.
9651
9738
  */
9652
9739
  /** @experimental */
9653
9740
  export interface PermissionMessageAuthorizationEvent {
@@ -9678,7 +9765,7 @@ export interface PermissionMessageAuthorizationEvent {
9678
9765
  type: "permission.messageAuthorization";
9679
9766
  }
9680
9767
  /**
9681
- * Freezes one blinded, verbatim-verified authorization claim the runtime minted from a human user message, so a resumed session re-establishes the same grant deterministically instead of re-running the extraction model. This mints no authority on its own: it records what a blinded proposer pointed at and the trusted discriminator the runtime established, and deterministic establishment runs on replay. Persisted so recorded authority survives compaction and process resume.
9768
+ * Historical decode-only claim from the retired Assisted Permissions authorization extractor. Current runtimes preserve the payload but do not establish authority from it.
9682
9769
  */
9683
9770
  /** @experimental */
9684
9771
  export interface PermissionMessageAuthorizationData {
@@ -9738,7 +9825,7 @@ export interface PermissionMessageAuthorizationData {
9738
9825
  world?: JsonValue;
9739
9826
  }
9740
9827
  /**
9741
- * Session event "permission.messageAuthorizationRead". Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read. Also records whether that pass activates ongoing extraction; contextual-assent-only passes do not, so unrelated future messages remain outside extraction.
9828
+ * Session event "permission.messageAuthorizationRead". Historical decode-only extractor progress marker. Current runtimes do not run or resume extraction from it.
9742
9829
  */
9743
9830
  /** @experimental */
9744
9831
  export interface PermissionMessageAuthorizationReadEvent {
@@ -9769,7 +9856,7 @@ export interface PermissionMessageAuthorizationReadEvent {
9769
9856
  type: "permission.messageAuthorizationRead";
9770
9857
  }
9771
9858
  /**
9772
- * Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read. Also records whether that pass activates ongoing extraction; contextual-assent-only passes do not, so unrelated future messages remain outside extraction.
9859
+ * Historical decode-only extractor progress marker. Current runtimes do not run or resume extraction from it.
9773
9860
  */
9774
9861
  /** @experimental */
9775
9862
  export interface PermissionMessageAuthorizationReadData {
@@ -9787,7 +9874,7 @@ export interface PermissionMessageAuthorizationReadData {
9787
9874
  turnIndex: number;
9788
9875
  }
9789
9876
  /**
9790
- * Session event "permission.messageAuthorizationDegraded". Records that message-backed authorization could not safely represent one human turn before compaction. The runtime may compact the original message after this marker is durable, but message-derived carry-forward and assisted auto-approval remain disabled for the rest of the session so subsequent commands continue through the ordinary permission prompt.
9877
+ * Session event "permission.messageAuthorizationDegraded". Historical decode-only degradation marker from the retired extractor. Current runtimes ignore it for permission decisions.
9791
9878
  */
9792
9879
  /** @experimental */
9793
9880
  export interface PermissionMessageAuthorizationDegradedEvent {
@@ -9818,7 +9905,7 @@ export interface PermissionMessageAuthorizationDegradedEvent {
9818
9905
  type: "permission.messageAuthorizationDegraded";
9819
9906
  }
9820
9907
  /**
9821
- * Records that message-backed authorization could not safely represent one human turn before compaction. The runtime may compact the original message after this marker is durable, but message-derived carry-forward and assisted auto-approval remain disabled for the rest of the session so subsequent commands continue through the ordinary permission prompt.
9908
+ * Historical decode-only degradation marker from the retired extractor. Current runtimes ignore it for permission decisions.
9822
9909
  */
9823
9910
  /** @experimental */
9824
9911
  export interface PermissionMessageAuthorizationDegradedData {
@@ -9830,7 +9917,7 @@ export interface PermissionMessageAuthorizationDegradedData {
9830
9917
  turnIndex: number;
9831
9918
  }
9832
9919
  /**
9833
- * Session event "permission.assentDetected". Records that deterministic text recognition found likely assent in the human turn immediately following a root Autopilot permission request that was blocked because no interactive response was available. This event grants no authority; its model-facing projection only suggests retrying the unchanged operation.
9920
+ * Session event "permission.assentDetected". Historical decode-only contextual-assent marker. Current runtimes do not project it into the conversation or permission flow.
9834
9921
  */
9835
9922
  /** @experimental */
9836
9923
  export interface PermissionAssentDetectedEvent {
@@ -9861,7 +9948,7 @@ export interface PermissionAssentDetectedEvent {
9861
9948
  type: "permission.assentDetected";
9862
9949
  }
9863
9950
  /**
9864
- * Records that deterministic text recognition found likely assent in the human turn immediately following a root Autopilot permission request that was blocked because no interactive response was available. This event grants no authority; its model-facing projection only suggests retrying the unchanged operation.
9951
+ * Historical decode-only contextual-assent marker. Current runtimes do not project it into the conversation or permission flow.
9865
9952
  */
9866
9953
  /** @experimental */
9867
9954
  export interface PermissionAssentDetectedData {
@@ -9879,7 +9966,7 @@ export interface PermissionAssentDetectedData {
9879
9966
  turnIndex: number;
9880
9967
  }
9881
9968
  /**
9882
- * Session event "permission.contextualAuthorization". Freezes a blinded contextual authorization proposal whose verbatim human span was deterministically bound to the immediately preceding blocked permission request. The event carries no action fields; replay re-derives the exact action from the earlier permission request and mints a one-shot message grant only when the binding and span still verify.
9969
+ * Session event "permission.contextualAuthorization". Historical decode-only contextual authorization claim. Current runtimes preserve the payload but do not establish authority from it.
9883
9970
  */
9884
9971
  /** @experimental */
9885
9972
  export interface PermissionContextualAuthorizationEvent {
@@ -9910,7 +9997,7 @@ export interface PermissionContextualAuthorizationEvent {
9910
9997
  type: "permission.contextualAuthorization";
9911
9998
  }
9912
9999
  /**
9913
- * Freezes a blinded contextual authorization proposal whose verbatim human span was deterministically bound to the immediately preceding blocked permission request. The event carries no action fields; replay re-derives the exact action from the earlier permission request and mints a one-shot message grant only when the binding and span still verify.
10000
+ * Historical decode-only contextual authorization claim. Current runtimes preserve the payload but do not establish authority from it.
9914
10001
  */
9915
10002
  /** @experimental */
9916
10003
  export interface PermissionContextualAuthorizationData {
@@ -10366,6 +10453,10 @@ export interface McpOauthRequiredStaticClientConfig {
10366
10453
  * Whether this is a public OAuth client
10367
10454
  */
10368
10455
  publicClient?: boolean;
10456
+ /**
10457
+ * Configured OAuth scope string used when the server challenge omits scope or provides an empty scope
10458
+ */
10459
+ scope?: string;
10369
10460
  }
10370
10461
  /**
10371
10462
  * OAuth WWW-Authenticate parameters parsed from an MCP auth challenge
@@ -11565,15 +11656,15 @@ export interface BackgroundTasksChangedEvent {
11565
11656
  export interface BackgroundTasksChangedData {
11566
11657
  }
11567
11658
  /**
11568
- * Session event "factory.run_updated". Ephemeral invalidation signal for a changed factory run.
11659
+ * Session event "workflow.run_updated". Ephemeral invalidation signal for a changed workflow run.
11569
11660
  */
11570
11661
  /** @experimental */
11571
- export interface FactoryRunUpdatedEvent {
11662
+ export interface WorkflowRunUpdatedEvent {
11572
11663
  /**
11573
11664
  * Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
11574
11665
  */
11575
11666
  agentId?: string;
11576
- data: FactoryRunUpdatedData;
11667
+ data: WorkflowRunUpdatedData;
11577
11668
  /**
11578
11669
  * Always true for events that are transient and not persisted to the session event log on disk.
11579
11670
  */
@@ -11591,34 +11682,34 @@ export interface FactoryRunUpdatedEvent {
11591
11682
  */
11592
11683
  timestamp: string;
11593
11684
  /**
11594
- * Type discriminator. Always "factory.run_updated".
11685
+ * Type discriminator. Always "workflow.run_updated".
11595
11686
  */
11596
- type: "factory.run_updated";
11687
+ type: "workflow.run_updated";
11597
11688
  }
11598
11689
  /**
11599
- * Ephemeral invalidation signal for a changed factory run.
11690
+ * Ephemeral invalidation signal for a changed workflow run.
11600
11691
  */
11601
11692
  /** @experimental */
11602
- export interface FactoryRunUpdatedData {
11693
+ export interface WorkflowRunUpdatedData {
11603
11694
  /**
11604
11695
  * Monotonic revision now available for the run.
11605
11696
  */
11606
11697
  revision: number;
11607
11698
  /**
11608
- * Factory run identifier.
11699
+ * Workflow run identifier.
11609
11700
  */
11610
11701
  runId: string;
11611
11702
  }
11612
11703
  /**
11613
- * Session event "factory.run_started". Ephemeral signal that a factory run attempt began executing.
11704
+ * Session event "workflow.run_started". Ephemeral signal that a workflow run attempt began executing.
11614
11705
  */
11615
11706
  /** @experimental */
11616
- export interface FactoryRunStartedEvent {
11707
+ export interface WorkflowRunStartedEvent {
11617
11708
  /**
11618
11709
  * Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
11619
11710
  */
11620
11711
  agentId?: string;
11621
- data: FactoryRunStartedData;
11712
+ data: WorkflowRunStartedData;
11622
11713
  /**
11623
11714
  * Always true for events that are transient and not persisted to the session event log on disk.
11624
11715
  */
@@ -11636,38 +11727,38 @@ export interface FactoryRunStartedEvent {
11636
11727
  */
11637
11728
  timestamp: string;
11638
11729
  /**
11639
- * Type discriminator. Always "factory.run_started".
11730
+ * Type discriminator. Always "workflow.run_started".
11640
11731
  */
11641
- type: "factory.run_started";
11732
+ type: "workflow.run_started";
11642
11733
  }
11643
11734
  /**
11644
- * Ephemeral signal that a factory run attempt began executing.
11735
+ * Ephemeral signal that a workflow run attempt began executing.
11645
11736
  */
11646
11737
  /** @experimental */
11647
- export interface FactoryRunStartedData {
11738
+ export interface WorkflowRunStartedData {
11648
11739
  /**
11649
11740
  * Attempt number this start committed; a resumed run increments it.
11650
11741
  */
11651
11742
  attempt: number;
11652
11743
  /**
11653
- * Name of the factory this run executes. Low cardinality by construction.
11744
+ * Identifier of the workflow run that started.
11654
11745
  */
11655
- factoryName: string;
11746
+ runId: string;
11656
11747
  /**
11657
- * Identifier of the factory run that started.
11748
+ * Name of the workflow this run executes. Low cardinality by construction.
11658
11749
  */
11659
- runId: string;
11750
+ workflowName: string;
11660
11751
  }
11661
11752
  /**
11662
- * Session event "factory.run_settled". Ephemeral signal that a factory run reached a terminal status.
11753
+ * Session event "workflow.run_settled". Ephemeral signal that a workflow run reached a terminal status.
11663
11754
  */
11664
11755
  /** @experimental */
11665
- export interface FactoryRunSettledEvent {
11756
+ export interface WorkflowRunSettledEvent {
11666
11757
  /**
11667
11758
  * Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
11668
11759
  */
11669
11760
  agentId?: string;
11670
- data: FactoryRunSettledData;
11761
+ data: WorkflowRunSettledData;
11671
11762
  /**
11672
11763
  * Always true for events that are transient and not persisted to the session event log on disk.
11673
11764
  */
@@ -11685,15 +11776,15 @@ export interface FactoryRunSettledEvent {
11685
11776
  */
11686
11777
  timestamp: string;
11687
11778
  /**
11688
- * Type discriminator. Always "factory.run_settled".
11779
+ * Type discriminator. Always "workflow.run_settled".
11689
11780
  */
11690
- type: "factory.run_settled";
11781
+ type: "workflow.run_settled";
11691
11782
  }
11692
11783
  /**
11693
- * Ephemeral signal that a factory run reached a terminal status.
11784
+ * Ephemeral signal that a workflow run reached a terminal status.
11694
11785
  */
11695
11786
  /** @experimental */
11696
- export interface FactoryRunSettledData {
11787
+ export interface WorkflowRunSettledData {
11697
11788
  /**
11698
11789
  * AI credits this run consumed, in nano-AIU.
11699
11790
  */
@@ -11707,14 +11798,14 @@ export interface FactoryRunSettledData {
11707
11798
  */
11708
11799
  elapsedMs: number;
11709
11800
  /**
11710
- * Typed failure class recorded on the run, when it failed with one (e.g. `factory_limit_reached`).
11801
+ * Typed failure class recorded on the run, when it failed with one (e.g. `workflow_limit_reached`).
11711
11802
  */
11712
11803
  failureType?: string;
11713
11804
  /**
11714
- * Identifier of the factory run that settled.
11805
+ * Identifier of the workflow run that settled.
11715
11806
  */
11716
11807
  runId: string;
11717
- status: FactoryRunSettledStatus;
11808
+ status: WorkflowRunSettledStatus;
11718
11809
  }
11719
11810
  /**
11720
11811
  * Session event "session.skills_loaded". Payload of `session.skills_loaded` listing resolved skill metadata.