@github/copilot-sdk 1.0.15-preview.3 → 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"
@@ -3694,6 +3696,12 @@ export interface FusionResolvedData {
3694
3696
  * Version of the validated HydraFusion event contract.
3695
3697
  */
3696
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[];
3697
3705
  /**
3698
3706
  * Concrete model used when the planned primary model cannot execute.
3699
3707
  */
@@ -3713,6 +3721,12 @@ export interface FusionResolvedData {
3713
3721
  * @experimental
3714
3722
  */
3715
3723
  hint?: string;
3724
+ /**
3725
+ * Concrete model selected for Cascade escalation-gate calls, when required.
3726
+ *
3727
+ * @experimental
3728
+ */
3729
+ judgeModel?: string;
3716
3730
  /**
3717
3731
  * Version of the executable model universe used for selection.
3718
3732
  */
@@ -3740,6 +3754,12 @@ export interface FusionResolvedData {
3740
3754
  * Concrete model selected for the primary solver phase.
3741
3755
  */
3742
3756
  primaryModel: string;
3757
+ /**
3758
+ * Concrete model selected for Cascade repair, when required.
3759
+ *
3760
+ * @experimental
3761
+ */
3762
+ repairModel?: string;
3743
3763
  /**
3744
3764
  * Router implementation that supplied the plan.
3745
3765
  */
@@ -3762,7 +3782,7 @@ export interface FusionResolvedData {
3762
3782
  ruleName?: string;
3763
3783
  scores?: FusionScores;
3764
3784
  /**
3765
- * 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.
3766
3786
  */
3767
3787
  secondaryModel: string | null;
3768
3788
  /**
@@ -3774,6 +3794,27 @@ export interface FusionResolvedData {
3774
3794
  */
3775
3795
  turnId: string;
3776
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
+ }
3777
3818
  /**
3778
3819
  * Durable server recommendation for subsequent HydraFusion turns.
3779
3820
  */
@@ -4553,6 +4594,10 @@ export interface AssistantTurnStartData {
4553
4594
  * Model identifier used for this turn, when known
4554
4595
  */
4555
4596
  model?: string;
4597
+ /**
4598
+ * Parent task tool call ID when this turn belongs to a sub-agent
4599
+ */
4600
+ parentToolCallId?: string;
4556
4601
  /**
4557
4602
  * Identifier for this turn within the agentic loop, typically a stringified turn number
4558
4603
  */
@@ -4648,6 +4693,12 @@ export interface FusionPhaseStartedData {
4648
4693
  */
4649
4694
  phaseId: string;
4650
4695
  phaseKind: FusionPhaseKind;
4696
+ /**
4697
+ * Explicit reasoning effort selected for this phase, if supplied.
4698
+ *
4699
+ * @experimental
4700
+ */
4701
+ reasoningEffort?: string;
4651
4702
  /**
4652
4703
  * Semantic role assigned to the phase.
4653
4704
  */
@@ -4772,6 +4823,12 @@ export interface FusionPhaseCompletedData {
4772
4823
  */
4773
4824
  phaseId: string;
4774
4825
  phaseKind: FusionPhaseKind;
4826
+ /**
4827
+ * Explicit reasoning effort selected for this phase, if supplied.
4828
+ *
4829
+ * @experimental
4830
+ */
4831
+ reasoningEffort?: string;
4775
4832
  /**
4776
4833
  * Semantic role assigned to the completed phase.
4777
4834
  */
@@ -4879,6 +4936,12 @@ export interface FusionPhaseFailedData {
4879
4936
  * Stable machine-readable reason for the phase failure.
4880
4937
  */
4881
4938
  reason: string;
4939
+ /**
4940
+ * Explicit reasoning effort selected for this phase, if supplied.
4941
+ *
4942
+ * @experimental
4943
+ */
4944
+ reasoningEffort?: string;
4882
4945
  /**
4883
4946
  * Semantic role assigned to the failed phase.
4884
4947
  */
@@ -5642,6 +5705,10 @@ export interface AssistantTurnEndData {
5642
5705
  * Model identifier used for this turn, when known
5643
5706
  */
5644
5707
  model?: string;
5708
+ /**
5709
+ * Parent task tool call ID when this turn belongs to a sub-agent
5710
+ */
5711
+ parentToolCallId?: string;
5645
5712
  /**
5646
5713
  * Identifier of the turn that has ended, matching the corresponding assistant.turn_start event
5647
5714
  */
@@ -5975,6 +6042,10 @@ export interface ModelCallFailureData {
5975
6042
  * Model identifier used for the failed API call
5976
6043
  */
5977
6044
  model?: string;
6045
+ /**
6046
+ * Parent task tool call ID when this failed model call belongs to a sub-agent
6047
+ */
6048
+ parentToolCallId?: string;
5978
6049
  /**
5979
6050
  * GitHub request tracing ID (x-github-request-id header) for server-side log correlation
5980
6051
  */
@@ -7176,7 +7247,7 @@ export interface SubagentStartedData {
7176
7247
  */
7177
7248
  executionMode?: string;
7178
7249
  /**
7179
- * 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.
7180
7251
  */
7181
7252
  factoryRunId?: string;
7182
7253
  /**
@@ -7197,6 +7268,10 @@ export interface SubagentStartedData {
7197
7268
  * Tool call ID of the parent tool invocation that spawned this sub-agent
7198
7269
  */
7199
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;
7200
7275
  }
7201
7276
  /**
7202
7277
  * Session event "subagent.configured". Resolved runtime configuration for a configured sub-agent
@@ -8015,9 +8090,9 @@ export interface SystemNotificationInstructionDiscovered {
8015
8090
  type: "instruction_discovered";
8016
8091
  }
8017
8092
  /**
8018
- * 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.
8019
8094
  */
8020
- export interface SystemNotificationFactoryCompleted {
8095
+ export interface SystemNotificationWorkflowCompleted {
8021
8096
  /**
8022
8097
  * Execution attempt that reached this terminal state.
8023
8098
  */
@@ -8034,32 +8109,32 @@ export interface SystemNotificationFactoryCompleted {
8034
8109
  * Accumulated active execution time in milliseconds.
8035
8110
  */
8036
8111
  elapsedMs: number;
8037
- /**
8038
- * Persisted factory name.
8039
- */
8040
- factoryName: string;
8041
8112
  /**
8042
8113
  * Machine-readable terminal failure details, when present.
8043
8114
  */
8044
8115
  failure?: JsonValue;
8045
- pauseInfo?: SystemNotificationFactoryPauseInfo;
8116
+ pauseInfo?: SystemNotificationWorkflowPauseInfo;
8046
8117
  /**
8047
8118
  * Bounded prompt-safe preview of the completed result.
8048
8119
  */
8049
8120
  resultPreview?: string;
8050
8121
  /**
8051
- * Actionable run_factory resume guidance for a resource-limit failure.
8122
+ * Actionable run_dynamic_workflow resume guidance for a resource-limit failure.
8052
8123
  */
8053
8124
  retryGuidance?: string;
8054
8125
  /**
8055
- * Factory run identifier.
8126
+ * Workflow run identifier.
8056
8127
  */
8057
8128
  runId: string;
8058
- status: SystemNotificationFactoryCompletedStatus;
8129
+ status: SystemNotificationWorkflowCompletedStatus;
8130
+ /**
8131
+ * Type discriminator. Always "workflow_completed".
8132
+ */
8133
+ type: "workflow_completed";
8059
8134
  /**
8060
- * Type discriminator. Always "factory_completed".
8135
+ * Persisted workflow name.
8061
8136
  */
8062
- type: "factory_completed";
8137
+ workflowName: string;
8063
8138
  }
8064
8139
  /**
8065
8140
  * System notification metadata from an external host that does not match a runtime-owned notification kind.
@@ -8633,41 +8708,45 @@ export interface PermissionRequestExtensionManagement {
8633
8708
  toolCallId?: string;
8634
8709
  }
8635
8710
  /**
8636
- * Factory run or authoring permission request
8711
+ * Workflow run or authoring permission request
8637
8712
  */
8638
- export interface PermissionRequestFactory {
8713
+ export interface PermissionRequestWorkflow {
8639
8714
  /**
8640
- * Canonical key used for scoped factory approvals
8715
+ * Canonical key used for scoped workflow approvals
8641
8716
  */
8642
8717
  approvalKey: string;
8643
8718
  /**
8644
- * Whether this factory is eligible for persistent approval
8719
+ * Whether this workflow is eligible for persistent approval
8645
8720
  */
8646
8721
  canPersistApproval: boolean;
8647
8722
  /**
8648
- * 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.
8649
8724
  */
8650
8725
  declaredMaxAiCredits?: number;
8651
8726
  /**
8652
- * 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.
8653
8728
  */
8654
8729
  declaredMaxConcurrentSubagents?: number;
8655
8730
  /**
8656
- * 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.
8657
8732
  */
8658
8733
  declaredMaxTotalSubagents?: number;
8659
8734
  /**
8660
- * 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.
8661
8736
  */
8662
8737
  declaredTimeoutSeconds?: number;
8663
8738
  /**
8664
- * Factory description
8739
+ * Workflow description
8665
8740
  */
8666
8741
  description: string;
8667
8742
  /**
8668
8743
  * Permission kind discriminator
8669
8744
  */
8670
- kind: "factory";
8745
+ kind: "workflow";
8746
+ /**
8747
+ * Whether managed policy requires a human response and forbids host auto-approval
8748
+ */
8749
+ managedApprovalRequired?: boolean;
8671
8750
  /**
8672
8751
  * Effective AI-credit limit; omitted means unlimited
8673
8752
  */
@@ -8681,14 +8760,14 @@ export interface PermissionRequestFactory {
8681
8760
  */
8682
8761
  maxTotalSubagents?: number;
8683
8762
  /**
8684
- * Factory name
8763
+ * Workflow name
8685
8764
  */
8686
8765
  name: string;
8687
- operation: FactoryPermissionOperation;
8766
+ operation: WorkflowPermissionOperation;
8688
8767
  /**
8689
- * Declared factory phases
8768
+ * Declared workflow phases
8690
8769
  */
8691
- phases: FactoryPermissionPhase[];
8770
+ phases: WorkflowPermissionPhase[];
8692
8771
  /**
8693
8772
  * Effective active-time limit in seconds; omitted means unlimited
8694
8773
  */
@@ -8699,9 +8778,9 @@ export interface PermissionRequestFactory {
8699
8778
  toolCallId?: string;
8700
8779
  }
8701
8780
  /**
8702
- * A declared phase shown in a factory permission prompt.
8781
+ * A declared phase shown in a workflow permission prompt.
8703
8782
  */
8704
- export interface FactoryPermissionPhase {
8783
+ export interface WorkflowPermissionPhase {
8705
8784
  /**
8706
8785
  * Optional phase detail
8707
8786
  */
@@ -9135,11 +9214,11 @@ export interface PermissionPromptRequestExtensionManagement {
9135
9214
  toolCallId?: string;
9136
9215
  }
9137
9216
  /**
9138
- * Factory run or authoring permission prompt
9217
+ * Workflow run or authoring permission prompt
9139
9218
  */
9140
- export interface PermissionPromptRequestFactory {
9219
+ export interface PermissionPromptRequestWorkflow {
9141
9220
  /**
9142
- * Canonical key used for scoped factory approvals
9221
+ * Canonical key used for scoped workflow approvals
9143
9222
  */
9144
9223
  approvalKey: string;
9145
9224
  /**
@@ -9149,33 +9228,33 @@ export interface PermissionPromptRequestFactory {
9149
9228
  */
9150
9229
  assistedApproval?: PermissionAssistedApproval;
9151
9230
  /**
9152
- * Whether this factory is eligible for persistent approval
9231
+ * Whether this workflow is eligible for persistent approval
9153
9232
  */
9154
9233
  canPersistApproval: boolean;
9155
9234
  /**
9156
- * 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.
9157
9236
  */
9158
9237
  declaredMaxAiCredits?: number;
9159
9238
  /**
9160
- * 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.
9161
9240
  */
9162
9241
  declaredMaxConcurrentSubagents?: number;
9163
9242
  /**
9164
- * 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.
9165
9244
  */
9166
9245
  declaredMaxTotalSubagents?: number;
9167
9246
  /**
9168
- * 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.
9169
9248
  */
9170
9249
  declaredTimeoutSeconds?: number;
9171
9250
  /**
9172
- * Factory description
9251
+ * Workflow description
9173
9252
  */
9174
9253
  description: string;
9175
9254
  /**
9176
9255
  * Prompt kind discriminator
9177
9256
  */
9178
- kind: "factory";
9257
+ kind: "workflow";
9179
9258
  /**
9180
9259
  * Whether managed policy requires a human response and forbids host auto-approval
9181
9260
  */
@@ -9193,14 +9272,14 @@ export interface PermissionPromptRequestFactory {
9193
9272
  */
9194
9273
  maxTotalSubagents?: number;
9195
9274
  /**
9196
- * Factory name
9275
+ * Workflow name
9197
9276
  */
9198
9277
  name: string;
9199
- operation: FactoryPermissionOperation;
9278
+ operation: WorkflowPermissionOperation;
9200
9279
  /**
9201
- * Declared factory phases
9280
+ * Declared workflow phases
9202
9281
  */
9203
- phases: FactoryPermissionPhase[];
9282
+ phases: WorkflowPermissionPhase[];
9204
9283
  /**
9205
9284
  * Effective active-time limit in seconds; omitted means unlimited
9206
9285
  */
@@ -9432,17 +9511,17 @@ export interface UserToolSessionApprovalExtensionManagement {
9432
9511
  operation?: string;
9433
9512
  }
9434
9513
  /**
9435
- * Session-scoped factory approval, optionally narrowed by approval key.
9514
+ * Session-scoped workflow approval, optionally narrowed by approval key.
9436
9515
  */
9437
- export interface UserToolSessionApprovalFactory {
9516
+ export interface UserToolSessionApprovalWorkflow {
9438
9517
  /**
9439
- * Optional factory operation name or canonical approval key
9518
+ * Optional workflow operation name or canonical approval key
9440
9519
  */
9441
9520
  approvalKey?: string;
9442
9521
  /**
9443
- * Factory approval kind
9522
+ * Workflow approval kind
9444
9523
  */
9445
- kind: "factory";
9524
+ kind: "workflow";
9446
9525
  }
9447
9526
  /**
9448
9527
  * Session-scoped tool-approval rule for an extension's permission-gated capability access, keyed by extension name.
@@ -9594,7 +9673,7 @@ export interface PermissionDeniedByPermissionRequestHook {
9594
9673
  message?: string;
9595
9674
  }
9596
9675
  /**
9597
- * 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.
9598
9677
  */
9599
9678
  /** @experimental */
9600
9679
  export interface PermissionCarriedForwardEvent {
@@ -9625,7 +9704,7 @@ export interface PermissionCarriedForwardEvent {
9625
9704
  type: "permission.carriedForward";
9626
9705
  }
9627
9706
  /**
9628
- * 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.
9629
9708
  */
9630
9709
  /** @experimental */
9631
9710
  export interface PermissionCarriedForwardData {
@@ -9655,7 +9734,7 @@ export interface PermissionCarriedForwardData {
9655
9734
  toolCallId: string;
9656
9735
  }
9657
9736
  /**
9658
- * 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.
9659
9738
  */
9660
9739
  /** @experimental */
9661
9740
  export interface PermissionMessageAuthorizationEvent {
@@ -9686,7 +9765,7 @@ export interface PermissionMessageAuthorizationEvent {
9686
9765
  type: "permission.messageAuthorization";
9687
9766
  }
9688
9767
  /**
9689
- * 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.
9690
9769
  */
9691
9770
  /** @experimental */
9692
9771
  export interface PermissionMessageAuthorizationData {
@@ -9746,7 +9825,7 @@ export interface PermissionMessageAuthorizationData {
9746
9825
  world?: JsonValue;
9747
9826
  }
9748
9827
  /**
9749
- * 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.
9750
9829
  */
9751
9830
  /** @experimental */
9752
9831
  export interface PermissionMessageAuthorizationReadEvent {
@@ -9777,7 +9856,7 @@ export interface PermissionMessageAuthorizationReadEvent {
9777
9856
  type: "permission.messageAuthorizationRead";
9778
9857
  }
9779
9858
  /**
9780
- * 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.
9781
9860
  */
9782
9861
  /** @experimental */
9783
9862
  export interface PermissionMessageAuthorizationReadData {
@@ -9795,7 +9874,7 @@ export interface PermissionMessageAuthorizationReadData {
9795
9874
  turnIndex: number;
9796
9875
  }
9797
9876
  /**
9798
- * 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.
9799
9878
  */
9800
9879
  /** @experimental */
9801
9880
  export interface PermissionMessageAuthorizationDegradedEvent {
@@ -9826,7 +9905,7 @@ export interface PermissionMessageAuthorizationDegradedEvent {
9826
9905
  type: "permission.messageAuthorizationDegraded";
9827
9906
  }
9828
9907
  /**
9829
- * 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.
9830
9909
  */
9831
9910
  /** @experimental */
9832
9911
  export interface PermissionMessageAuthorizationDegradedData {
@@ -9838,7 +9917,7 @@ export interface PermissionMessageAuthorizationDegradedData {
9838
9917
  turnIndex: number;
9839
9918
  }
9840
9919
  /**
9841
- * 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.
9842
9921
  */
9843
9922
  /** @experimental */
9844
9923
  export interface PermissionAssentDetectedEvent {
@@ -9869,7 +9948,7 @@ export interface PermissionAssentDetectedEvent {
9869
9948
  type: "permission.assentDetected";
9870
9949
  }
9871
9950
  /**
9872
- * 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.
9873
9952
  */
9874
9953
  /** @experimental */
9875
9954
  export interface PermissionAssentDetectedData {
@@ -9887,7 +9966,7 @@ export interface PermissionAssentDetectedData {
9887
9966
  turnIndex: number;
9888
9967
  }
9889
9968
  /**
9890
- * 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.
9891
9970
  */
9892
9971
  /** @experimental */
9893
9972
  export interface PermissionContextualAuthorizationEvent {
@@ -9918,7 +9997,7 @@ export interface PermissionContextualAuthorizationEvent {
9918
9997
  type: "permission.contextualAuthorization";
9919
9998
  }
9920
9999
  /**
9921
- * 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.
9922
10001
  */
9923
10002
  /** @experimental */
9924
10003
  export interface PermissionContextualAuthorizationData {
@@ -11577,15 +11656,15 @@ export interface BackgroundTasksChangedEvent {
11577
11656
  export interface BackgroundTasksChangedData {
11578
11657
  }
11579
11658
  /**
11580
- * 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.
11581
11660
  */
11582
11661
  /** @experimental */
11583
- export interface FactoryRunUpdatedEvent {
11662
+ export interface WorkflowRunUpdatedEvent {
11584
11663
  /**
11585
11664
  * Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
11586
11665
  */
11587
11666
  agentId?: string;
11588
- data: FactoryRunUpdatedData;
11667
+ data: WorkflowRunUpdatedData;
11589
11668
  /**
11590
11669
  * Always true for events that are transient and not persisted to the session event log on disk.
11591
11670
  */
@@ -11603,34 +11682,34 @@ export interface FactoryRunUpdatedEvent {
11603
11682
  */
11604
11683
  timestamp: string;
11605
11684
  /**
11606
- * Type discriminator. Always "factory.run_updated".
11685
+ * Type discriminator. Always "workflow.run_updated".
11607
11686
  */
11608
- type: "factory.run_updated";
11687
+ type: "workflow.run_updated";
11609
11688
  }
11610
11689
  /**
11611
- * Ephemeral invalidation signal for a changed factory run.
11690
+ * Ephemeral invalidation signal for a changed workflow run.
11612
11691
  */
11613
11692
  /** @experimental */
11614
- export interface FactoryRunUpdatedData {
11693
+ export interface WorkflowRunUpdatedData {
11615
11694
  /**
11616
11695
  * Monotonic revision now available for the run.
11617
11696
  */
11618
11697
  revision: number;
11619
11698
  /**
11620
- * Factory run identifier.
11699
+ * Workflow run identifier.
11621
11700
  */
11622
11701
  runId: string;
11623
11702
  }
11624
11703
  /**
11625
- * 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.
11626
11705
  */
11627
11706
  /** @experimental */
11628
- export interface FactoryRunStartedEvent {
11707
+ export interface WorkflowRunStartedEvent {
11629
11708
  /**
11630
11709
  * Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
11631
11710
  */
11632
11711
  agentId?: string;
11633
- data: FactoryRunStartedData;
11712
+ data: WorkflowRunStartedData;
11634
11713
  /**
11635
11714
  * Always true for events that are transient and not persisted to the session event log on disk.
11636
11715
  */
@@ -11648,38 +11727,38 @@ export interface FactoryRunStartedEvent {
11648
11727
  */
11649
11728
  timestamp: string;
11650
11729
  /**
11651
- * Type discriminator. Always "factory.run_started".
11730
+ * Type discriminator. Always "workflow.run_started".
11652
11731
  */
11653
- type: "factory.run_started";
11732
+ type: "workflow.run_started";
11654
11733
  }
11655
11734
  /**
11656
- * Ephemeral signal that a factory run attempt began executing.
11735
+ * Ephemeral signal that a workflow run attempt began executing.
11657
11736
  */
11658
11737
  /** @experimental */
11659
- export interface FactoryRunStartedData {
11738
+ export interface WorkflowRunStartedData {
11660
11739
  /**
11661
11740
  * Attempt number this start committed; a resumed run increments it.
11662
11741
  */
11663
11742
  attempt: number;
11664
11743
  /**
11665
- * Name of the factory this run executes. Low cardinality by construction.
11744
+ * Identifier of the workflow run that started.
11666
11745
  */
11667
- factoryName: string;
11746
+ runId: string;
11668
11747
  /**
11669
- * Identifier of the factory run that started.
11748
+ * Name of the workflow this run executes. Low cardinality by construction.
11670
11749
  */
11671
- runId: string;
11750
+ workflowName: string;
11672
11751
  }
11673
11752
  /**
11674
- * 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.
11675
11754
  */
11676
11755
  /** @experimental */
11677
- export interface FactoryRunSettledEvent {
11756
+ export interface WorkflowRunSettledEvent {
11678
11757
  /**
11679
11758
  * Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
11680
11759
  */
11681
11760
  agentId?: string;
11682
- data: FactoryRunSettledData;
11761
+ data: WorkflowRunSettledData;
11683
11762
  /**
11684
11763
  * Always true for events that are transient and not persisted to the session event log on disk.
11685
11764
  */
@@ -11697,15 +11776,15 @@ export interface FactoryRunSettledEvent {
11697
11776
  */
11698
11777
  timestamp: string;
11699
11778
  /**
11700
- * Type discriminator. Always "factory.run_settled".
11779
+ * Type discriminator. Always "workflow.run_settled".
11701
11780
  */
11702
- type: "factory.run_settled";
11781
+ type: "workflow.run_settled";
11703
11782
  }
11704
11783
  /**
11705
- * Ephemeral signal that a factory run reached a terminal status.
11784
+ * Ephemeral signal that a workflow run reached a terminal status.
11706
11785
  */
11707
11786
  /** @experimental */
11708
- export interface FactoryRunSettledData {
11787
+ export interface WorkflowRunSettledData {
11709
11788
  /**
11710
11789
  * AI credits this run consumed, in nano-AIU.
11711
11790
  */
@@ -11719,14 +11798,14 @@ export interface FactoryRunSettledData {
11719
11798
  */
11720
11799
  elapsedMs: number;
11721
11800
  /**
11722
- * 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`).
11723
11802
  */
11724
11803
  failureType?: string;
11725
11804
  /**
11726
- * Identifier of the factory run that settled.
11805
+ * Identifier of the workflow run that settled.
11727
11806
  */
11728
11807
  runId: string;
11729
- status: FactoryRunSettledStatus;
11808
+ status: WorkflowRunSettledStatus;
11730
11809
  }
11731
11810
  /**
11732
11811
  * Session event "session.skills_loaded". Payload of `session.skills_loaded` listing resolved skill metadata.