@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.
- package/README.md +44 -0
- package/dist/cjs/cliVersion.js +1 -1
- package/dist/cjs/client.js +18 -6
- package/dist/cjs/extension.js +1 -12
- package/dist/cjs/generated/rpc.js +262 -173
- package/dist/cjs/index.js +0 -7
- package/dist/cjs/installationConfirmation.js +98 -0
- package/dist/cjs/session.js +14 -524
- package/dist/cliVersion.d.ts +1 -1
- package/dist/cliVersion.js +1 -1
- package/dist/client.d.ts +1 -0
- package/dist/client.js +20 -6
- package/dist/extension.d.ts +10 -24
- package/dist/extension.js +1 -13
- package/dist/generated/rpc.d.ts +5960 -4645
- package/dist/generated/rpc.js +262 -173
- package/dist/generated/session-events.d.ts +197 -118
- package/dist/index.d.ts +2 -4
- package/dist/index.js +0 -4
- package/dist/installationConfirmation.d.ts +19 -0
- package/dist/installationConfirmation.js +77 -0
- package/dist/session.d.ts +2 -25
- package/dist/session.js +14 -529
- package/dist/types.d.ts +10 -65
- package/dist/workflow.d.ts +5 -2
- package/docs/extensions.md +0 -1
- package/docs/workflows.md +2 -4
- package/package.json +10 -10
- package/dist/cjs/factory.js +0 -134
- package/dist/factory.d.ts +0 -327
- package/dist/factory.js +0 -106
- package/docs/factories.md +0 -296
- package/docs/factory-patterns.md +0 -194
|
@@ -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 |
|
|
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 |
|
|
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
|
|
898
|
+
* Durable metadata describing who initiated a workflow pause.
|
|
897
899
|
*/
|
|
898
|
-
export type
|
|
900
|
+
export type SystemNotificationWorkflowPauseInfo = {
|
|
899
901
|
/**
|
|
900
|
-
*
|
|
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
|
-
*
|
|
911
|
+
* Workflow pause initiator discriminator.
|
|
910
912
|
*/
|
|
911
913
|
type: "checkpoint";
|
|
912
914
|
};
|
|
913
915
|
/**
|
|
914
|
-
* Terminal status reached by a
|
|
916
|
+
* Terminal status reached by a workflow execution attempt.
|
|
915
917
|
*/
|
|
916
|
-
export type
|
|
917
|
-
/** The
|
|
918
|
+
export type SystemNotificationWorkflowCompletedStatus =
|
|
919
|
+
/** The workflow completed successfully. */
|
|
918
920
|
"completed"
|
|
919
|
-
/** The
|
|
921
|
+
/** The workflow was halted. */
|
|
920
922
|
| "halted"
|
|
921
|
-
/** The
|
|
923
|
+
/** The workflow attempt paused intentionally. */
|
|
922
924
|
| "paused"
|
|
923
|
-
/** The
|
|
925
|
+
/** The workflow was cancelled. */
|
|
924
926
|
| "cancelled"
|
|
925
|
-
/** The
|
|
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 |
|
|
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
|
|
993
|
+
* Operation gated by a workflow permission request.
|
|
992
994
|
*/
|
|
993
|
-
export type
|
|
994
|
-
/** Running a registered
|
|
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
|
|
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 |
|
|
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
|
-
/**
|
|
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 |
|
|
1035
|
+
export type UserToolSessionApproval = UserToolSessionApprovalCommands | UserToolSessionApprovalRead | UserToolSessionApprovalWrite | UserToolSessionApprovalMcp | UserToolSessionApprovalMemory | UserToolSessionApprovalCustomTool | UserToolSessionApprovalExtensionManagement | UserToolSessionApprovalWorkflow | UserToolSessionApprovalExtensionPermissionAccess | UserToolSessionApprovalExtensionEnvAccess;
|
|
1034
1036
|
/**
|
|
1035
|
-
*
|
|
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
|
-
/**
|
|
1041
|
+
/** Historical claim recorded as a grant. */
|
|
1040
1042
|
"grant"
|
|
1041
|
-
/**
|
|
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
|
|
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
|
|
1212
|
-
/** The
|
|
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
|
|
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
|
-
*
|
|
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
|
|
8093
|
+
* System notification metadata for a workflow execution attempt that reached a terminal state.
|
|
8019
8094
|
*/
|
|
8020
|
-
export interface
|
|
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?:
|
|
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
|
|
8122
|
+
* Actionable run_dynamic_workflow resume guidance for a resource-limit failure.
|
|
8052
8123
|
*/
|
|
8053
8124
|
retryGuidance?: string;
|
|
8054
8125
|
/**
|
|
8055
|
-
*
|
|
8126
|
+
* Workflow run identifier.
|
|
8056
8127
|
*/
|
|
8057
8128
|
runId: string;
|
|
8058
|
-
status:
|
|
8129
|
+
status: SystemNotificationWorkflowCompletedStatus;
|
|
8130
|
+
/**
|
|
8131
|
+
* Type discriminator. Always "workflow_completed".
|
|
8132
|
+
*/
|
|
8133
|
+
type: "workflow_completed";
|
|
8059
8134
|
/**
|
|
8060
|
-
*
|
|
8135
|
+
* Persisted workflow name.
|
|
8061
8136
|
*/
|
|
8062
|
-
|
|
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
|
-
*
|
|
8711
|
+
* Workflow run or authoring permission request
|
|
8637
8712
|
*/
|
|
8638
|
-
export interface
|
|
8713
|
+
export interface PermissionRequestWorkflow {
|
|
8639
8714
|
/**
|
|
8640
|
-
* Canonical key used for scoped
|
|
8715
|
+
* Canonical key used for scoped workflow approvals
|
|
8641
8716
|
*/
|
|
8642
8717
|
approvalKey: string;
|
|
8643
8718
|
/**
|
|
8644
|
-
* Whether this
|
|
8719
|
+
* Whether this workflow is eligible for persistent approval
|
|
8645
8720
|
*/
|
|
8646
8721
|
canPersistApproval: boolean;
|
|
8647
8722
|
/**
|
|
8648
|
-
*
|
|
8723
|
+
* Workflow-declared AI-credit limit before any run/resume caller override is applied.
|
|
8649
8724
|
*/
|
|
8650
8725
|
declaredMaxAiCredits?: number;
|
|
8651
8726
|
/**
|
|
8652
|
-
*
|
|
8727
|
+
* Workflow-declared concurrent-subagent limit before any run/resume caller override is applied.
|
|
8653
8728
|
*/
|
|
8654
8729
|
declaredMaxConcurrentSubagents?: number;
|
|
8655
8730
|
/**
|
|
8656
|
-
*
|
|
8731
|
+
* Workflow-declared total-subagent limit before any run/resume caller override is applied.
|
|
8657
8732
|
*/
|
|
8658
8733
|
declaredMaxTotalSubagents?: number;
|
|
8659
8734
|
/**
|
|
8660
|
-
*
|
|
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
|
-
*
|
|
8739
|
+
* Workflow description
|
|
8665
8740
|
*/
|
|
8666
8741
|
description: string;
|
|
8667
8742
|
/**
|
|
8668
8743
|
* Permission kind discriminator
|
|
8669
8744
|
*/
|
|
8670
|
-
kind: "
|
|
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
|
-
*
|
|
8763
|
+
* Workflow name
|
|
8685
8764
|
*/
|
|
8686
8765
|
name: string;
|
|
8687
|
-
operation:
|
|
8766
|
+
operation: WorkflowPermissionOperation;
|
|
8688
8767
|
/**
|
|
8689
|
-
* Declared
|
|
8768
|
+
* Declared workflow phases
|
|
8690
8769
|
*/
|
|
8691
|
-
phases:
|
|
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
|
|
8781
|
+
* A declared phase shown in a workflow permission prompt.
|
|
8703
8782
|
*/
|
|
8704
|
-
export interface
|
|
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
|
-
*
|
|
9217
|
+
* Workflow run or authoring permission prompt
|
|
9139
9218
|
*/
|
|
9140
|
-
export interface
|
|
9219
|
+
export interface PermissionPromptRequestWorkflow {
|
|
9141
9220
|
/**
|
|
9142
|
-
* Canonical key used for scoped
|
|
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
|
|
9231
|
+
* Whether this workflow is eligible for persistent approval
|
|
9153
9232
|
*/
|
|
9154
9233
|
canPersistApproval: boolean;
|
|
9155
9234
|
/**
|
|
9156
|
-
*
|
|
9235
|
+
* Workflow-declared AI-credit limit before any run/resume caller override is applied.
|
|
9157
9236
|
*/
|
|
9158
9237
|
declaredMaxAiCredits?: number;
|
|
9159
9238
|
/**
|
|
9160
|
-
*
|
|
9239
|
+
* Workflow-declared concurrent-subagent limit before any run/resume caller override is applied.
|
|
9161
9240
|
*/
|
|
9162
9241
|
declaredMaxConcurrentSubagents?: number;
|
|
9163
9242
|
/**
|
|
9164
|
-
*
|
|
9243
|
+
* Workflow-declared total-subagent limit before any run/resume caller override is applied.
|
|
9165
9244
|
*/
|
|
9166
9245
|
declaredMaxTotalSubagents?: number;
|
|
9167
9246
|
/**
|
|
9168
|
-
*
|
|
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
|
-
*
|
|
9251
|
+
* Workflow description
|
|
9173
9252
|
*/
|
|
9174
9253
|
description: string;
|
|
9175
9254
|
/**
|
|
9176
9255
|
* Prompt kind discriminator
|
|
9177
9256
|
*/
|
|
9178
|
-
kind: "
|
|
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
|
-
*
|
|
9275
|
+
* Workflow name
|
|
9197
9276
|
*/
|
|
9198
9277
|
name: string;
|
|
9199
|
-
operation:
|
|
9278
|
+
operation: WorkflowPermissionOperation;
|
|
9200
9279
|
/**
|
|
9201
|
-
* Declared
|
|
9280
|
+
* Declared workflow phases
|
|
9202
9281
|
*/
|
|
9203
|
-
phases:
|
|
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
|
|
9514
|
+
* Session-scoped workflow approval, optionally narrowed by approval key.
|
|
9436
9515
|
*/
|
|
9437
|
-
export interface
|
|
9516
|
+
export interface UserToolSessionApprovalWorkflow {
|
|
9438
9517
|
/**
|
|
9439
|
-
* Optional
|
|
9518
|
+
* Optional workflow operation name or canonical approval key
|
|
9440
9519
|
*/
|
|
9441
9520
|
approvalKey?: string;
|
|
9442
9521
|
/**
|
|
9443
|
-
*
|
|
9522
|
+
* Workflow approval kind
|
|
9444
9523
|
*/
|
|
9445
|
-
kind: "
|
|
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".
|
|
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
|
-
*
|
|
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".
|
|
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
|
-
*
|
|
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".
|
|
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
|
-
*
|
|
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".
|
|
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
|
-
*
|
|
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".
|
|
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
|
-
*
|
|
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".
|
|
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
|
-
*
|
|
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 "
|
|
11659
|
+
* Session event "workflow.run_updated". Ephemeral invalidation signal for a changed workflow run.
|
|
11581
11660
|
*/
|
|
11582
11661
|
/** @experimental */
|
|
11583
|
-
export interface
|
|
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:
|
|
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 "
|
|
11685
|
+
* Type discriminator. Always "workflow.run_updated".
|
|
11607
11686
|
*/
|
|
11608
|
-
type: "
|
|
11687
|
+
type: "workflow.run_updated";
|
|
11609
11688
|
}
|
|
11610
11689
|
/**
|
|
11611
|
-
* Ephemeral invalidation signal for a changed
|
|
11690
|
+
* Ephemeral invalidation signal for a changed workflow run.
|
|
11612
11691
|
*/
|
|
11613
11692
|
/** @experimental */
|
|
11614
|
-
export interface
|
|
11693
|
+
export interface WorkflowRunUpdatedData {
|
|
11615
11694
|
/**
|
|
11616
11695
|
* Monotonic revision now available for the run.
|
|
11617
11696
|
*/
|
|
11618
11697
|
revision: number;
|
|
11619
11698
|
/**
|
|
11620
|
-
*
|
|
11699
|
+
* Workflow run identifier.
|
|
11621
11700
|
*/
|
|
11622
11701
|
runId: string;
|
|
11623
11702
|
}
|
|
11624
11703
|
/**
|
|
11625
|
-
* Session event "
|
|
11704
|
+
* Session event "workflow.run_started". Ephemeral signal that a workflow run attempt began executing.
|
|
11626
11705
|
*/
|
|
11627
11706
|
/** @experimental */
|
|
11628
|
-
export interface
|
|
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:
|
|
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 "
|
|
11730
|
+
* Type discriminator. Always "workflow.run_started".
|
|
11652
11731
|
*/
|
|
11653
|
-
type: "
|
|
11732
|
+
type: "workflow.run_started";
|
|
11654
11733
|
}
|
|
11655
11734
|
/**
|
|
11656
|
-
* Ephemeral signal that a
|
|
11735
|
+
* Ephemeral signal that a workflow run attempt began executing.
|
|
11657
11736
|
*/
|
|
11658
11737
|
/** @experimental */
|
|
11659
|
-
export interface
|
|
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
|
-
*
|
|
11744
|
+
* Identifier of the workflow run that started.
|
|
11666
11745
|
*/
|
|
11667
|
-
|
|
11746
|
+
runId: string;
|
|
11668
11747
|
/**
|
|
11669
|
-
*
|
|
11748
|
+
* Name of the workflow this run executes. Low cardinality by construction.
|
|
11670
11749
|
*/
|
|
11671
|
-
|
|
11750
|
+
workflowName: string;
|
|
11672
11751
|
}
|
|
11673
11752
|
/**
|
|
11674
|
-
* Session event "
|
|
11753
|
+
* Session event "workflow.run_settled". Ephemeral signal that a workflow run reached a terminal status.
|
|
11675
11754
|
*/
|
|
11676
11755
|
/** @experimental */
|
|
11677
|
-
export interface
|
|
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:
|
|
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 "
|
|
11779
|
+
* Type discriminator. Always "workflow.run_settled".
|
|
11701
11780
|
*/
|
|
11702
|
-
type: "
|
|
11781
|
+
type: "workflow.run_settled";
|
|
11703
11782
|
}
|
|
11704
11783
|
/**
|
|
11705
|
-
* Ephemeral signal that a
|
|
11784
|
+
* Ephemeral signal that a workflow run reached a terminal status.
|
|
11706
11785
|
*/
|
|
11707
11786
|
/** @experimental */
|
|
11708
|
-
export interface
|
|
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. `
|
|
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
|
|
11805
|
+
* Identifier of the workflow run that settled.
|
|
11727
11806
|
*/
|
|
11728
11807
|
runId: string;
|
|
11729
|
-
status:
|
|
11808
|
+
status: WorkflowRunSettledStatus;
|
|
11730
11809
|
}
|
|
11731
11810
|
/**
|
|
11732
11811
|
* Session event "session.skills_loaded". Payload of `session.skills_loaded` listing resolved skill metadata.
|