@makaio/framework 1.0.0-dev-1781442380278 → 1.0.0-dev-1781454904823

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.
Files changed (79) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/bus/index.d.mts +2 -2
  3. package/dist/bus/index.mjs +1 -1
  4. package/dist/contracts/adapter/index.d.mts +1 -1
  5. package/dist/contracts/artifact/index.d.mts +1 -1
  6. package/dist/contracts/canonical-model/index.d.mts +1 -1
  7. package/dist/contracts/extension/index.d.mts +2 -2
  8. package/dist/contracts/facet/index.d.mts +1 -1
  9. package/dist/contracts/harness/index.d.mts +1 -1
  10. package/dist/contracts/index.d.mts +817 -93
  11. package/dist/contracts/index.mjs +1 -1
  12. package/dist/contracts/materialization/index.d.mts +3 -3
  13. package/dist/contracts/session/index.d.mts +2 -2
  14. package/dist/contracts/variant/index.d.mts +1 -1
  15. package/dist/{definition-CZcVOhXZ.d.mts → definition-DSq5ErZD.d.mts} +1 -1
  16. package/dist/drizzle/0018_m_mqcweucg.sql +17 -0
  17. package/dist/drizzle/0019_m_mqcwyn0w.sql +1 -0
  18. package/dist/drizzle/meta/_journal.json +14 -0
  19. package/dist/{index-DvETyI0_.d.mts → index-BBteExwv.d.mts} +1 -1
  20. package/dist/{index-BF84QInS.d.mts → index-BKbzDEv4.d.mts} +86 -86
  21. package/dist/{index-B1PgTu7q.d.mts → index-BVf5D_xQ.d.mts} +4 -4
  22. package/dist/{index-Cj3XCjXZ.d.mts → index-BkKWL_tI.d.mts} +54 -54
  23. package/dist/{index-LrZlZUvQ.d.mts → index-CK_hi7fg.d.mts} +4 -4
  24. package/dist/{index-HiAth5G0.d.mts → index-CgJf67BC.d.mts} +23 -23
  25. package/dist/{index-DigeEyrf.d.mts → index-Cs009Dqh.d.mts} +1 -1
  26. package/dist/{index-DUI1W-zN.d.mts → index-Cs1JVq0D.d.mts} +8 -8
  27. package/dist/{index-oUqyVvsD.d.mts → index-D8nNK-pF.d.mts} +1 -1
  28. package/dist/{index-DHVoVh-j.d.mts → index-DN0GXDlw.d.mts} +7 -7
  29. package/dist/{index-DyqZej9j.d.mts → index-GuspCNLR.d.mts} +8 -8
  30. package/dist/{index-cN4DkU5Y2.d.mts → index-iXawmtSH2.d.mts} +9 -9
  31. package/dist/{index-DUsm-DeE.d.mts → index-xeg-bqxO.d.mts} +10 -10
  32. package/dist/kernel/extension/index.d.mts +1 -1
  33. package/dist/kernel/index.d.mts +2 -2
  34. package/dist/kernel/observability/index.d.mts +1 -1
  35. package/dist/{namespace-BXuuv8L9.d.mts → namespace-1tHmgGQV.d.mts} +20 -20
  36. package/dist/{namespace-Ba1gUpUu.d.mts → namespace-CN2TfSCY.d.mts} +4 -4
  37. package/dist/{namespace-Q-z7Lr2f.d.mts → namespace-DphMg7CF.d.mts} +4 -4
  38. package/dist/{namespace-B1Bldc48.d.mts → namespace-Dy0pcIqF.d.mts} +9 -9
  39. package/dist/{namespace-DM3TSh_y.d.mts → namespace-Dyj2m6DT.d.mts} +20 -20
  40. package/dist/package-CBjoefAW.mjs +1 -0
  41. package/dist/{package-BEbo1-6S.d.mts → package-fwIv7zzj.d.mts} +1 -1
  42. package/dist/package.json +1 -1
  43. package/dist/primitive-runtime-BHSEOIH6.mjs +1 -0
  44. package/dist/runtime-node/index.d.mts +1 -1
  45. package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
  46. package/dist/{schema-BKdn_bdY.d.mts → schema-D2B2V6r6.d.mts} +1 -1
  47. package/dist/{schemas-BbFAwUpf.d.mts → schemas-ByBtBmoL.d.mts} +3 -3
  48. package/dist/{schemas-IDGAJ_zv.d.mts → schemas-CN9hprME.d.mts} +6 -6
  49. package/dist/{schemas-DvjQHkmw2.d.mts → schemas-D0gBYOoc2.d.mts} +6 -6
  50. package/dist/{schemas-CyEdMtnQ.d.mts → schemas-za4KzhEe.d.mts} +20 -20
  51. package/dist/services/agent-runtime/index.d.mts +2 -2
  52. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  53. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  54. package/dist/services/context-rules/index.d.mts +6 -6
  55. package/dist/services/filesystem/namespace.d.mts +6 -6
  56. package/dist/services/filesystem/schemas.d.mts +3 -3
  57. package/dist/services/harness/index.d.mts +3 -3
  58. package/dist/services/index.d.mts +30 -30
  59. package/dist/services/session/index.d.mts +5 -5
  60. package/dist/services/session/messages/namespace.d.mts +1 -1
  61. package/dist/services/session/session-events/namespace.d.mts +1 -1
  62. package/dist/services/session/storage/namespace.d.mts +1 -1
  63. package/dist/services/session/storage/schema.d.mts +1 -1
  64. package/dist/services/settings/namespace.d.mts +6 -6
  65. package/dist/services/subagent-template/index.d.mts +1 -1
  66. package/dist/services/subagent-template/schemas.d.mts +1 -1
  67. package/dist/services/tray-menu/index.d.mts +2 -2
  68. package/dist/services/tray-menu/namespace.d.mts +1 -1
  69. package/dist/services/tray-menu/schemas.d.mts +1 -1
  70. package/dist/{types-Bo2-N1YR.d.mts → types-Co-MJvHY.d.mts} +45 -45
  71. package/dist/workflow-engine/index.d.mts +554 -35
  72. package/dist/workflow-engine/index.mjs +1 -1
  73. package/dist/workflow-engine/package.d.mts +1 -1
  74. package/dist/workflow-engine/package.mjs +1 -1
  75. package/dist/workflow-engine/workflow-orchestrator.d.mts +3 -2
  76. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  77. package/package.json +1 -1
  78. package/dist/package-DMoFY63f.mjs +0 -1
  79. package/dist/primitive-runtime-DWbV7f_r.mjs +0 -1
@@ -1,29 +1,29 @@
1
- import { C as AdapterNamespace, _ as StartAgentRequest, a as AgentSelection, b as AdapterRuntimeOptions, c as AgentSelectionKindMap, d as SessionDiscoveredSchema, l as AgentSelectionSchema, n as ProviderContextSchema, o as AgentSelectionBase, r as AdapterSelection, s as AgentSelectionBaseSchema, t as ProviderContext, u as SessionDiscovered, v as StartAgentResponse, w as AdapterSubjects } from "../index-Cj3XCjXZ.mjs";
1
+ import { C as AdapterNamespace, _ as StartAgentRequest, a as AgentSelection, b as AdapterRuntimeOptions, c as AgentSelectionKindMap, d as SessionDiscoveredSchema, l as AgentSelectionSchema, n as ProviderContextSchema, o as AgentSelectionBase, r as AdapterSelection, s as AgentSelectionBaseSchema, t as ProviderContext, u as SessionDiscovered, v as StartAgentResponse, w as AdapterSubjects } from "../index-BkKWL_tI.mjs";
2
2
  import { a as ROOT_SESSION_LINEAGE_KIND, c as SUBAGENT_SESSION_LINEAGE_KIND, d as SessionLineageKindSchema, i as ForkSessionLineageSchema, l as SessionLineage, n as CompressSessionLineageSchema, o as RootSessionLineageSchema, p as SubagentSessionLineageSchema, r as FORK_SESSION_LINEAGE_KIND, s as SESSION_LINEAGE_KINDS, t as COMPRESS_SESSION_LINEAGE_KIND, u as SessionLineageKind } from "../session-lineage-DFkJgYt5.mjs";
3
- import { $ as ArtifactObservationSchema, A as ArtifactDraft, B as BeforeArtifactHookRegistration, C as ArtifactStatusChangedPayload, Ct as ConfidenceMetadataSchema, D as ArtifactKindDefinition, Dt as LocalRefSchema, E as ArtifactDataOf, Et as LocalRef, F as ArtifactLifecycleHookRegistration, G as ArtifactCompareRequestSchema, H as ArtifactActor, I as ArtifactLifecycleSemanticEvent, J as ArtifactConflictPolicy, K as ArtifactCompareResponse, L as ArtifactReactionHookContext, M as ArtifactHookFilter, N as ArtifactLifecycleHookDefinition, O as ArtifactOf, Ot as RelationTypeRegistration, P as ArtifactLifecycleHookEvent, Q as ArtifactObservation, R as ArtifactReactionHookRegistration, S as ArtifactSchemas, St as ConfidenceMetadata, T as AnyArtifactKindDefinition, Tt as EvidenceRefSchema, U as ArtifactActorSchema, V as defineArtifactLifecycleHooks, W as ArtifactCompareRequest, X as ArtifactKindRegistration, Y as ArtifactConflictPolicySchema, Z as ArtifactKindRegistrationSchema, _ as ArtifactResolveRequest, _t as ArtifactScopeSchema, a as ArtifactKindListRequest, at as ArtifactRefSchema, b as ArtifactReviseResponse, bt as ConfidenceLevel, c as ArtifactKindRegisterResponse, d as ArtifactQueryResponse, dt as ArtifactRelationTargetSchema, et as ArtifactQueryRequest, f as ArtifactRelationAddedPayload, ft as ArtifactRepresentations, g as ArtifactRelationTypeRegisterResponse, gt as ArtifactScope, h as ArtifactRelationTypeRegisterRequest, ht as ArtifactRevisionSchema, i as ArtifactKindChangedPayload, it as ArtifactRef, j as ArtifactDraftPatch, k as defineArtifactKind, kt as RelationTypeRegistrationSchema, l as ArtifactNamespace, lt as ArtifactRelationSchema, m as ArtifactRelationTypeListResponse, mt as ArtifactRevision, n as ArtifactCreateResponse, nt as ArtifactQueryScope, o as ArtifactKindListResponse, ot as ArtifactRelation, p as ArtifactRelationTypeListRequest, pt as ArtifactRepresentationsSchema, q as ArtifactCompareResponseSchema, r as ArtifactCreatedPayload, rt as ArtifactQueryScopeSchema, s as ArtifactKindRegisterRequest, t as ArtifactCreateRequest, tt as ArtifactQueryRequestSchema, u as ArtifactObservationAddedPayload, ut as ArtifactRelationTarget, v as ArtifactResolveResponse, vt as ConfidenceBasis, w as ArtifactSubjects, wt as EvidenceRef, x as ArtifactRevisedPayload, xt as ConfidenceLevelSchema, y as ArtifactReviseRequest, yt as ConfidenceBasisSchema, z as BeforeArtifactHookContext } from "../index-HiAth5G0.mjs";
4
- import { a as ProjectedField, c as ProjectedFieldSemanticSchema, d as SurfaceBindingTarget, f as SurfaceBindingTargetSchema, i as ArtifactProjectionPolicySchema, l as SurfaceBindingRegistration, n as ArtifactMaterializationRefSchema, o as ProjectedFieldSchema, r as ArtifactProjectionPolicy, s as ProjectedFieldSemantic, t as ArtifactMaterializationRef, u as SurfaceBindingRegistrationSchema } from "../schemas-BbFAwUpf.mjs";
5
- import { T as ResolvableCanonicalModel, d as parseCanonicalModel, l as VIRTUAL_NAME_RE, n as CanonicalModelSubjects, o as CanonicalModelSelection, r as CanonicalModelResolvedSelection, u as isCanonicalModelParseError } from "../index-DUsm-DeE.mjs";
3
+ import { $ as ArtifactObservationSchema, A as ArtifactDraft, B as BeforeArtifactHookRegistration, C as ArtifactStatusChangedPayload, Ct as ConfidenceMetadataSchema, D as ArtifactKindDefinition, Dt as LocalRefSchema, E as ArtifactDataOf, Et as LocalRef, F as ArtifactLifecycleHookRegistration, G as ArtifactCompareRequestSchema, H as ArtifactActor, I as ArtifactLifecycleSemanticEvent, J as ArtifactConflictPolicy, K as ArtifactCompareResponse, L as ArtifactReactionHookContext, M as ArtifactHookFilter, N as ArtifactLifecycleHookDefinition, O as ArtifactOf, Ot as RelationTypeRegistration, P as ArtifactLifecycleHookEvent, Q as ArtifactObservation, R as ArtifactReactionHookRegistration, S as ArtifactSchemas, St as ConfidenceMetadata, T as AnyArtifactKindDefinition, Tt as EvidenceRefSchema, U as ArtifactActorSchema, V as defineArtifactLifecycleHooks, W as ArtifactCompareRequest, X as ArtifactKindRegistration, Y as ArtifactConflictPolicySchema, Z as ArtifactKindRegistrationSchema, _ as ArtifactResolveRequest, _t as ArtifactScopeSchema, a as ArtifactKindListRequest, at as ArtifactRefSchema, b as ArtifactReviseResponse, bt as ConfidenceLevel, c as ArtifactKindRegisterResponse, d as ArtifactQueryResponse, dt as ArtifactRelationTargetSchema, et as ArtifactQueryRequest, f as ArtifactRelationAddedPayload, ft as ArtifactRepresentations, g as ArtifactRelationTypeRegisterResponse, gt as ArtifactScope, h as ArtifactRelationTypeRegisterRequest, ht as ArtifactRevisionSchema, i as ArtifactKindChangedPayload, it as ArtifactRef, j as ArtifactDraftPatch, k as defineArtifactKind, kt as RelationTypeRegistrationSchema, l as ArtifactNamespace, lt as ArtifactRelationSchema, m as ArtifactRelationTypeListResponse, mt as ArtifactRevision, n as ArtifactCreateResponse, nt as ArtifactQueryScope, o as ArtifactKindListResponse, ot as ArtifactRelation, p as ArtifactRelationTypeListRequest, pt as ArtifactRepresentationsSchema, q as ArtifactCompareResponseSchema, r as ArtifactCreatedPayload, rt as ArtifactQueryScopeSchema, s as ArtifactKindRegisterRequest, t as ArtifactCreateRequest, tt as ArtifactQueryRequestSchema, u as ArtifactObservationAddedPayload, ut as ArtifactRelationTarget, v as ArtifactResolveResponse, vt as ConfidenceBasis, w as ArtifactSubjects, wt as EvidenceRef, x as ArtifactRevisedPayload, xt as ConfidenceLevelSchema, y as ArtifactReviseRequest, yt as ConfidenceBasisSchema, z as BeforeArtifactHookContext } from "../index-CgJf67BC.mjs";
4
+ import { a as ProjectedField, c as ProjectedFieldSemanticSchema, d as SurfaceBindingTarget, f as SurfaceBindingTargetSchema, i as ArtifactProjectionPolicySchema, l as SurfaceBindingRegistration, n as ArtifactMaterializationRefSchema, o as ProjectedFieldSchema, r as ArtifactProjectionPolicy, s as ProjectedFieldSemantic, t as ArtifactMaterializationRef, u as SurfaceBindingRegistrationSchema } from "../schemas-ByBtBmoL.mjs";
5
+ import { T as ResolvableCanonicalModel, d as parseCanonicalModel, l as VIRTUAL_NAME_RE, n as CanonicalModelSubjects, o as CanonicalModelSelection, r as CanonicalModelResolvedSelection, u as isCanonicalModelParseError } from "../index-xeg-bqxO.mjs";
6
6
  import { A as VersionRange, M as isUniversalRange, N as versionSatisfies, O as VersionLiteral, S as PostInstallDescriptor, _ as LogSourceDefinitionSchema, a as ClientDefinitionSchema, b as NpmInstallDescriptor, f as ClientToolDefinition, g as LogSourceDefinition, j as VersionRangeSchema, k as VersionLiteralSchema, n as ClientBinaryCompatibilitySchema, p as ClientToolDefinitionSchema, r as ClientDefinition, t as ClientBinaryCompatibility, v as ManagedInstallDescriptor, w as SignedBinaryBucketInstallDescriptor, y as ManagedInstallDescriptorSchema } from "../definition-BdxbXbrq.mjs";
7
7
  import { Cn as ClientExecutionContext, Ht as InstallStage, J as ClientSessionToolPost, Jt as ClientAccountIdentifier, K as ClientSessionStarted, Kt as ManagedInstallStrategy, Q as ClientSessionTurnCompleted, Rt as ClientVersionChanged, U as ClientSubjects, V as createClientDefinition, W as ClientSessionObservedBase, Wt as InstalledVersionEntry, X as ClientSessionToolPre, Xt as ClientAccountObserveRequest, Yt as ClientAccountIdentifierSchema, _t as ClientBinaryListEntry, at as ClientWiringEntrySchema, cn as ClientSessionAccountObserveRequest, ct as ClientRuntimeObserveRequest, dn as ClientSessionLocator, gn as ClientUsageSnapshot, ht as ClientRuntimeStarted, in as ClientScanResult, it as ClientWiringEntry, ln as ClientSessionAccountObserveResponse, nn as ClientIdentityObservationSchema, nt as ClientSessionUserPromptSubmitted, on as ClientScanTarget, pn as ClientUsageIngestRequest, tn as ClientIdentityObservation, un as ClientSessionAccountObserveSchema, vn as ClientUsageWindow, xt as ClientInstallProgress, yt as ClientInstallCompleted } from "../index-BSFmBEDL.mjs";
8
8
  import { a as FocusContext, i as ActionIntent, t as SurfaceType } from "../index-BE-yMFTz.mjs";
9
9
  import { _ as TTSCapability, a as ConfigUpdateRequest, b as RelayConfig, c as AIModelMetadata, d as AIReasoningLevelSchema, f as DiscoveredAIModel, g as STTCapability, h as ReasoningLevelMap, i as ConfigSchemas, l as AIModelSchema, m as ProviderAIModelSchema, n as ConfigSubjects, o as ConfigUpdateResponse, p as ProviderAIModel, r as ConfigGetResponse, s as AIModel, u as AIReasoningLevel, v as Config, y as ConfigSchema } from "../config-namespace-DloU-hNB.mjs";
10
- import { $n as CliArgManifest, A as TransitionConditionSchema, B as BootstrapExportContext, Bn as ExtensionWarningAction, Bt as TileDeclaration, C as ExtensionTransitionActionsContribution, Cn as SessionEventActionOptions, Cr as dep, D as TransitionActionInvocation, Dt as PageDeclaration, E as TransitionActionHandler, Et as PageComponentProps, F as TransitionRuleDefinitionSchema, Fn as NodeExtensionContext, G as ExtensionBootstrap, Gt as UiContextSnapshot, H as BootstrapImportContext, Hn as ExtensionWarningEntry, Ht as TileProps, I as BootstrapAsset, In as ExtensionIdentity, It as WidgetProps, Jn as AdapterDefinitionContract, Jt as UiNavigationLevelMap, K as getBootstrapAssetKey, Kt as UiContextValueMap, L as BootstrapAssetKey, Ln as ExtensionService, M as TransitionEventType, N as TransitionEventTypeSchema, O as TransitionActionInvocationSchema, Or as AdapterClientRef, P as TransitionRuleDefinition, Pn as ExtensionContext, Pt as WidgetDeclaration, Qn as extensionToken, R as BootstrapChoice, Rn as ExtensionServiceLifecycle, S as MakaioNodeExtension, Sn as SessionEventActionDeclaration, Sr as allMigrationsPaths, T as TransitionActionFactory, Tn as WhenContext, Tr as CapabilityToken, Tt as ToolCallFormatterDeclaration, U as BootstrapImportResult, Un as ExtensionWarningEntrySchema, V as BootstrapExportResult, W as BootstrapResult, Wn as ExtensionWarningSchema, Wt as UiContextDimension, Xn as AdapterProviderRef, Xt as UiScope, Yn as AdapterProviderDefinitionContract, Yt as UiRuntimeNavigationLevel, Zn as ExtensionToken, Zt as UiScopeMap, _ as ExtensionArtifactLifecycleHooksContribution, _n as PickerConfig, _t as MakaioWebUiComponentProps, a as DetachedTransportSchema, an as HashTriggerSuggestResult, ar as ExtensionDependency, at as StationNodeBlockRun, bn as SelectionFeedback, c as ExtensionDescriptorBase, cn as ActionShortcut, ct as WorkflowStepBlock, d as ExtensionEntrypoints, dn as EntrypointConfig, dr as STORAGE_DIALECTS, f as ExtensionEntrypointsSchema, fn as EventFilter, fr as StorageDialect, ft as ExtensionConfigComponentProps, g as ArtifactLifecycleHooksContributionContext, gn as MessageRole, gt as MakaioWebUiActions, h as safeParseExtensionDescriptor, hn as MessageEventFilter, hr as TrayManifest, i as DetachedTransportConfig, it as RegisteredTriggerBlock, j as TransitionEvaluationContext, k as TransitionCondition, ln as ActionShortcutModifiers, lt as WorkflowStepBlockRun, m as parseExtensionDescriptor, mn as ExecuteResult, mt as LoaderContext, n as parseExtensionConfig, nn as HashTriggerContext, nr as CliManifestSchema, nt as DelegateRoleNodeBlockRun, o as EmbeddedDescriptor, on as ActionCategory, or as ExtensionDependencySchema, ot as WorkflowBlockCollection, p as isDetachedDescriptor, pn as ExecuteContext, pr as StorageManifest, pt as ExtensionFieldTypeLoader, q as AdapterContribution, qn as getExtensionWarningActionLabel, qt as UiNavigationLevel, r as DetachedDescriptor, rn as HashTriggerMetadata, rr as CliSubcommandManifest, rt as RegisteredStepBlock, s as ExtensionDescriptor, sn as ActionCategoryMap, st as WorkflowBlockMetadata, t as ExtensionConfigProvider, ti as BrowserEntrypointSchema, tn as HashTrigger, tr as CliManifest, tt as DelegateAgentNodeBlockRun, u as ExtensionDescriptorSchema, un as CreateSessionEventActionResult, ut as WorkflowTriggerBlock, v as ExtensionContributionProcessor, vn as PickerOpenContext, w as ExtensionTransitionRulesContribution, wn as StructuralEventFilter, wr as primaryMigrationsPath, x as MakaioExtension, xn as SessionEventActionContext, yn as SelectionChangeContext, yr as WindowParamSpec, yt as MakaioWebUiRoute, z as BootstrapDiscoverContext, zn as ExtensionWarning } from "../index-DHVoVh-j.mjs";
10
+ import { $n as CliArgManifest, A as TransitionConditionSchema, B as BootstrapExportContext, Bn as ExtensionWarningAction, Bt as TileDeclaration, C as ExtensionTransitionActionsContribution, Cn as SessionEventActionOptions, Cr as dep, D as TransitionActionInvocation, Dt as PageDeclaration, E as TransitionActionHandler, Et as PageComponentProps, F as TransitionRuleDefinitionSchema, Fn as NodeExtensionContext, G as ExtensionBootstrap, Gt as UiContextSnapshot, H as BootstrapImportContext, Hn as ExtensionWarningEntry, Ht as TileProps, I as BootstrapAsset, In as ExtensionIdentity, It as WidgetProps, Jn as AdapterDefinitionContract, Jt as UiNavigationLevelMap, K as getBootstrapAssetKey, Kt as UiContextValueMap, L as BootstrapAssetKey, Ln as ExtensionService, M as TransitionEventType, N as TransitionEventTypeSchema, O as TransitionActionInvocationSchema, Or as AdapterClientRef, P as TransitionRuleDefinition, Pn as ExtensionContext, Pt as WidgetDeclaration, Qn as extensionToken, R as BootstrapChoice, Rn as ExtensionServiceLifecycle, S as MakaioNodeExtension, Sn as SessionEventActionDeclaration, Sr as allMigrationsPaths, T as TransitionActionFactory, Tn as WhenContext, Tr as CapabilityToken, Tt as ToolCallFormatterDeclaration, U as BootstrapImportResult, Un as ExtensionWarningEntrySchema, V as BootstrapExportResult, W as BootstrapResult, Wn as ExtensionWarningSchema, Wt as UiContextDimension, Xn as AdapterProviderRef, Xt as UiScope, Yn as AdapterProviderDefinitionContract, Yt as UiRuntimeNavigationLevel, Zn as ExtensionToken, Zt as UiScopeMap, _ as ExtensionArtifactLifecycleHooksContribution, _n as PickerConfig, _t as MakaioWebUiComponentProps, a as DetachedTransportSchema, an as HashTriggerSuggestResult, ar as ExtensionDependency, at as StationNodeBlockRun, bn as SelectionFeedback, c as ExtensionDescriptorBase, cn as ActionShortcut, ct as WorkflowStepBlock, d as ExtensionEntrypoints, dn as EntrypointConfig, dr as STORAGE_DIALECTS, f as ExtensionEntrypointsSchema, fn as EventFilter, fr as StorageDialect, ft as ExtensionConfigComponentProps, g as ArtifactLifecycleHooksContributionContext, gn as MessageRole, gt as MakaioWebUiActions, h as safeParseExtensionDescriptor, hn as MessageEventFilter, hr as TrayManifest, i as DetachedTransportConfig, it as RegisteredTriggerBlock, j as TransitionEvaluationContext, k as TransitionCondition, ln as ActionShortcutModifiers, lt as WorkflowStepBlockRun, m as parseExtensionDescriptor, mn as ExecuteResult, mt as LoaderContext, n as parseExtensionConfig, nn as HashTriggerContext, nr as CliManifestSchema, nt as DelegateRoleNodeBlockRun, o as EmbeddedDescriptor, on as ActionCategory, or as ExtensionDependencySchema, ot as WorkflowBlockCollection, p as isDetachedDescriptor, pn as ExecuteContext, pr as StorageManifest, pt as ExtensionFieldTypeLoader, q as AdapterContribution, qn as getExtensionWarningActionLabel, qt as UiNavigationLevel, r as DetachedDescriptor, rn as HashTriggerMetadata, rr as CliSubcommandManifest, rt as RegisteredStepBlock, s as ExtensionDescriptor, sn as ActionCategoryMap, st as WorkflowBlockMetadata, t as ExtensionConfigProvider, ti as BrowserEntrypointSchema, tn as HashTrigger, tr as CliManifest, tt as DelegateAgentNodeBlockRun, u as ExtensionDescriptorSchema, un as CreateSessionEventActionResult, ut as WorkflowTriggerBlock, v as ExtensionContributionProcessor, vn as PickerOpenContext, w as ExtensionTransitionRulesContribution, wn as StructuralEventFilter, wr as primaryMigrationsPath, x as MakaioExtension, xn as SessionEventActionContext, yn as SelectionChangeContext, yr as WindowParamSpec, yt as MakaioWebUiRoute, z as BootstrapDiscoverContext, zn as ExtensionWarning } from "../index-DN0GXDlw.mjs";
11
11
  import { a as ProviderDefinition, i as ProtocolIdSchema, n as ProtocolEndpointsSchema, o as ProviderDefinitionInput, r as ProtocolId, s as ProviderDefinitionSchema, t as ProtocolEndpoints } from "../definition-BwLJnqEo.mjs";
12
12
  import { i as TimeoutConfigSchema, n as TimeoutCategory, r as TimeoutConfig, t as RequiredTimeoutConfig } from "../index-CBTp2XuF.mjs";
13
- import { $ as ImportStatus, B as TurnInitiator, C as SessionEventTypeMap, D as MessageRouting, G as TurnUsage, H as TurnSchema, K as TurnUsageSchema, M as SessionMessageBlock, O as MessageRoutingSchema, P as SessionMessageOrigin, R as SessionMessageSchema, S as SessionEventType, T as SendMessageRequest$1, U as TurnStatus, V as TurnInitiatorSchema, W as TurnStatusSchema, Y as AgentRole, Z as BranchKind, _ as ForkChildInfo, a as SessionPreviewData, b as SESSION_EVENT_TYPES, ct as safeValidateSnapshot, d as SegmentPolicy, dt as SessionPreviewDataSchema, ft as SessionWithPreviewSchema, h as SessionUpdatedEvent, ht as MakaioSessionAgentSchema, i as MakaioSessionEvent, it as SnapshotExportOptions, j as SessionMessage, k as MessageRoutingStatus, l as ForkTransforms, lt as validateSnapshot, mt as AgentStatusSchema, nt as SessionSnapshot, o as SessionWithPreview, ot as SnapshotImportConflictErrorData, p as SessionCreated, q as UsageMetrics, r as MakaioSessionAgent, rt as SessionSnapshotSchema, s as isKnownSessionEvent, st as SnapshotPreviewData, t as IMakaioSession, tt as SNAPSHOT_VERSION, u as ForkTransformsSchema, ut as MakaioSessionSchema, x as SessionEventPayload, y as MakaioSessionEventSchema, z as Turn } from "../types-Bo2-N1YR.mjs";
13
+ import { $ as ImportStatus, B as TurnInitiator, C as SessionEventTypeMap, D as MessageRouting, G as TurnUsage, H as TurnSchema, K as TurnUsageSchema, M as SessionMessageBlock, O as MessageRoutingSchema, P as SessionMessageOrigin, R as SessionMessageSchema, S as SessionEventType, T as SendMessageRequest$1, U as TurnStatus, V as TurnInitiatorSchema, W as TurnStatusSchema, Y as AgentRole, Z as BranchKind, _ as ForkChildInfo, a as SessionPreviewData, b as SESSION_EVENT_TYPES, ct as safeValidateSnapshot, d as SegmentPolicy, dt as SessionPreviewDataSchema, ft as SessionWithPreviewSchema, h as SessionUpdatedEvent, ht as MakaioSessionAgentSchema, i as MakaioSessionEvent, it as SnapshotExportOptions, j as SessionMessage, k as MessageRoutingStatus, l as ForkTransforms, lt as validateSnapshot, mt as AgentStatusSchema, nt as SessionSnapshot, o as SessionWithPreview, ot as SnapshotImportConflictErrorData, p as SessionCreated, q as UsageMetrics, r as MakaioSessionAgent, rt as SessionSnapshotSchema, s as isKnownSessionEvent, st as SnapshotPreviewData, t as IMakaioSession, tt as SNAPSHOT_VERSION, u as ForkTransformsSchema, ut as MakaioSessionSchema, x as SessionEventPayload, y as MakaioSessionEventSchema, z as Turn } from "../types-Co-MJvHY.mjs";
14
14
  import { $ as JsonValueSchema, A as FieldOption, B as ResponseSchemaDescriptorSchema, D as EntityUIConfig, E as CustomFieldDefinition, F as FieldWidget, G as StructuredOutputValidationErrorSchema, H as ResponseSchemaNameSchema, I as FormFieldProps, J as StructuredOutputValidationStatusSchema, K as StructuredOutputValidationSchema, O as EntityUIConfigSchema, P as FieldType, Q as JsonValue, R as StandardFieldDefinition, S as SystemPrompt, U as StructuredOutputValidation, V as ResponseSchemaName, W as StructuredOutputValidationError, Y as JsonObjectContractSchema, a as ErrorCategorySchema, d as MessageInput, i as ErrorCategory, k as FieldDefinition, l as MessageDeliveryMode, o as Message$1, p as MessageOutcome, q as StructuredOutputValidationStatus, r as ERROR_CATEGORIES, s as MessageBlock, t as ContentSource, y as SendMessageResultInnerResult, z as ResponseSchemaDescriptor } from "../index-B3mq3Qjf.mjs";
15
- import { _ as FacetNamespaceRegistration, a as FacetNamespaceRegisterRequest, c as FacetSubjects, d as FacetAppliesTo, f as FacetAppliesToSchema, g as FacetCardinalitySchema, h as FacetCardinality, i as FacetNamespaceListResponse, l as FacetNamespaceDefinition, m as FacetAuthoritySchema, n as FacetNamespaceChangedPayload, o as FacetNamespaceRegisterResponse, p as FacetAuthority, r as FacetNamespaceListRequest, s as FacetSchemas, t as FacetNamespace, u as defineFacetNamespace, v as FacetNamespaceRegistrationSchema } from "../index-DUI1W-zN.mjs";
16
- import { n as defineSurfaceBinding, t as SurfaceBindingDefinition } from "../definition-CZcVOhXZ.mjs";
17
- import { A as HarnessDefinitionSchema, C as ApprovalPolicy, D as HarnessDefinitionBaseSchema, E as HarnessDefinition, O as HarnessDefinitionCreate, S as HarnessSubjects, _ as ToolCapabilitySchema, d as expandProfileToolCapabilities, g as ToolCapability, h as CapabilityPickerValue, k as HarnessDefinitionCreateSchema, l as ProfileToolCapabilitiesConfig, m as CapabilityItem, o as codexCapabilityMap, p as CapabilityGroup, r as DEFAULT_HARNESSES, u as expandCapabilities, v as ToolMetaTag, w as ApprovalPolicySchema, y as computeMetaTags } from "../index-B1PgTu7q.mjs";
15
+ import { _ as FacetNamespaceRegistration, a as FacetNamespaceRegisterRequest, c as FacetSubjects, d as FacetAppliesTo, f as FacetAppliesToSchema, g as FacetCardinalitySchema, h as FacetCardinality, i as FacetNamespaceListResponse, l as FacetNamespaceDefinition, m as FacetAuthoritySchema, n as FacetNamespaceChangedPayload, o as FacetNamespaceRegisterResponse, p as FacetAuthority, r as FacetNamespaceListRequest, s as FacetSchemas, t as FacetNamespace, u as defineFacetNamespace, v as FacetNamespaceRegistrationSchema } from "../index-Cs1JVq0D.mjs";
16
+ import { n as defineSurfaceBinding, t as SurfaceBindingDefinition } from "../definition-DSq5ErZD.mjs";
17
+ import { A as HarnessDefinitionSchema, C as ApprovalPolicy, D as HarnessDefinitionBaseSchema, E as HarnessDefinition, O as HarnessDefinitionCreate, S as HarnessSubjects, _ as ToolCapabilitySchema, d as expandProfileToolCapabilities, g as ToolCapability, h as CapabilityPickerValue, k as HarnessDefinitionCreateSchema, l as ProfileToolCapabilitiesConfig, m as CapabilityItem, o as codexCapabilityMap, p as CapabilityGroup, r as DEFAULT_HARNESSES, u as expandCapabilities, v as ToolMetaTag, w as ApprovalPolicySchema, y as computeMetaTags } from "../index-BVf5D_xQ.mjs";
18
18
  import { a as WindowCreateRequest, c as WindowFocusResponse, d as WindowListResponse, f as WindowOpenedEvent, g as HostSubjects, h as HostNamespace, i as WindowClosedEvent, l as WindowLabelChangedEvent, m as WindowStateSchema, n as TrayActivateRequest, o as WindowCreateResponse, p as WindowState, r as TrayActivateResponse, s as WindowFocusRequest, t as HostSchemas, u as WindowListRequest } from "../index-BUilJdHr.mjs";
19
19
  import { a as resolveModelVisibility, i as ModelVisibilitySchema, n as ModelFilterModeSchema, r as ModelVisibility, t as ModelFilterMode } from "../index-BDnI2oqX.mjs";
20
20
  import { a as ModelRegistrySupportedModelsResponse, i as ModelRegistrySupportedModelsRequest, n as ModelRegistrySupportedModel, o as ModelRegistryPublicNamespace, r as ModelRegistrySupportedModelSchema, s as ModelRegistryPublicSubjects } from "../index-CfpfkKih.mjs";
21
21
  import { a as PlatformSchemas, i as AutoLaunchStatusResponse, n as AutoLaunchEnableRequest, o as PlatformNamespace, r as AutoLaunchEnableResponse, s as PlatformSubjects, t as AutoLaunchDisableResponse } from "../index-DWqSqcpW.mjs";
22
- import { F as CONNECTOR_SWAP_CANCELLED_CODE, G as ContextWindowState, H as UI_WARNINGS_CATEGORY, I as ConnectorSwapCancelledError, K as ForkOptions, L as isConnectorSwapCancelledError, N as ResolveAgentConfigResponse, R as CONNECTOR_SWAP_WARNING_OPTION_IDS, S as isInViewBranch, U as SessionContext, V as INTERACTIVE_DIALOG_TIMEOUT_MS, W as SessionContextSchema, X as SessionSubjects, Y as SessionNamespace, a as SessionStorageSubjects, c as SessionEventStorageSubjects, d as messageCursorKey, f as messageToCursor, g as MessageStorageSubjects, h as MessageStorageNamespace, i as SessionStorageSetSessionSchema, l as compareMessageCursorAsc, m as MessagePageCursorSchema, n as SessionStorageNamespace, o as SessionStorageUpdateSchema, p as MessagePageCursor, q as SessionExtensionContext, r as SessionStorageSetRequestSchema, s as SessionEventStorageNamespace, t as ImportUpsertRequest, u as compareMessageCursorDesc, v as CompressionMode, y as CompressionModeSchema, z as CONNECTOR_SWAP_WARNING_SUPPRESSED_KEY } from "../index-BF84QInS.mjs";
22
+ import { F as CONNECTOR_SWAP_CANCELLED_CODE, G as ContextWindowState, H as UI_WARNINGS_CATEGORY, I as ConnectorSwapCancelledError, K as ForkOptions, L as isConnectorSwapCancelledError, N as ResolveAgentConfigResponse, R as CONNECTOR_SWAP_WARNING_OPTION_IDS, S as isInViewBranch, U as SessionContext, V as INTERACTIVE_DIALOG_TIMEOUT_MS, W as SessionContextSchema, X as SessionSubjects, Y as SessionNamespace, a as SessionStorageSubjects, c as SessionEventStorageSubjects, d as messageCursorKey, f as messageToCursor, g as MessageStorageSubjects, h as MessageStorageNamespace, i as SessionStorageSetSessionSchema, l as compareMessageCursorAsc, m as MessagePageCursorSchema, n as SessionStorageNamespace, o as SessionStorageUpdateSchema, p as MessagePageCursor, q as SessionExtensionContext, r as SessionStorageSetRequestSchema, s as SessionEventStorageNamespace, t as ImportUpsertRequest, u as compareMessageCursorDesc, v as CompressionMode, y as CompressionModeSchema, z as CONNECTOR_SWAP_WARNING_SUPPRESSED_KEY } from "../index-BKbzDEv4.mjs";
23
23
  import { A as SkillRecordInputSchema, C as SkillGetActiveSkillsResponse, E as SkillQuery, F as SkillRuntimePolicySchema, L as SkillScope, M as SkillReinjection, O as SkillRecord, P as SkillRuntimePolicy, S as SkillGetActiveSkillsRequest, T as SkillGetCatalogResponse, U as SkillNamespace, V as SkillTurnEntry, W as SkillSubjects, b as SkillFrontmatter, c as SkillActivateRequest, f as SkillActivationTrigger, g as SkillCatalogTurnEntry, i as ActivatedSkillMetadata, k as SkillRecordInput, l as SkillActivateResponse, m as SkillCatalogEntry, n as SkillStorageSubjects, o as ActiveSkillState, p as SkillActivationTriggerSchema, r as validateSkillScope, t as SkillStorageNamespace, u as SkillActivationMode, v as SkillDeactivationReason, w as SkillGetCatalogRequest, x as SkillFrontmatterSchema, y as SkillDeactivationReasonSchema, z as SkillSource } from "../index-BQ8H7cvY.mjs";
24
- import { a as VariantGetInfoResponse, d as VariantUpgradeStatusSchema, i as MakaioVariantSchema, l as VariantUpgradeProgressEvent, n as VariantSubjects, o as VariantRequestUpgradeRequest, r as MakaioVariant, s as VariantRequestUpgradeResponse, t as VariantNamespace, u as VariantUpgradeStatus } from "../index-DyqZej9j.mjs";
24
+ import { a as VariantGetInfoResponse, d as VariantUpgradeStatusSchema, i as MakaioVariantSchema, l as VariantUpgradeProgressEvent, n as VariantSubjects, o as VariantRequestUpgradeRequest, r as MakaioVariant, s as VariantRequestUpgradeResponse, t as VariantNamespace, u as VariantUpgradeStatus } from "../index-GuspCNLR.mjs";
25
25
  import { _ as SupervisorSessionStatusSchema, a as NativeSupervisorLaunchRequest, c as NativeSupervisorStatusRequest, d as NativeSupervisorStopRequest, g as SupervisorSessionStatus, m as SupervisorRuntimeSnapshot, n as NativeSupervisorAttachRequest, y as NativeSessionSupervisorSubjects } from "../index-DdCyeZ59.mjs";
26
- import { a as MaterializationSubjects, c as SurfaceBindingListResponse, i as MaterializationSchemas, l as SurfaceBindingRegisterRequest, n as MaterializationNamespace, o as SurfaceBindingChangedPayload, s as SurfaceBindingListRequest, u as SurfaceBindingRegisterResponse } from "../index-cN4DkU5Y2.mjs";
26
+ import { a as MaterializationSubjects, c as SurfaceBindingListResponse, i as MaterializationSchemas, l as SurfaceBindingRegisterRequest, n as MaterializationNamespace, o as SurfaceBindingChangedPayload, s as SurfaceBindingListRequest, u as SurfaceBindingRegisterResponse } from "../index-iXawmtSH2.mjs";
27
27
  import { a as SubjectTelemetryFactSchema, c as SubjectTelemetryNamespace, i as SubjectTelemetryFact, l as SubjectTelemetrySubjects, n as SubjectTelemetryAttributeValueSchema, o as SubjectTelemetryMessageTypeSchema, r as SubjectTelemetryDirectionSchema, s as SubjectTelemetrySchemas, t as SubjectTelemetryAttributeValue } from "../index-DHHKwLww.mjs";
28
28
  import * as _$zod from "zod";
29
29
  import { z } from "zod";
@@ -315,9 +315,9 @@ declare const AgentNamespace: _$_makaio_core0.BusNamespaceDefinition<"agent", {
315
315
  description: _$zod.ZodOptional<_$zod.ZodString>;
316
316
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
317
317
  exposureMode: _$zod.ZodEnum<{
318
- hidden: "hidden";
319
318
  direct: "direct";
320
319
  discovery: "discovery";
320
+ hidden: "hidden";
321
321
  }>;
322
322
  enabled: _$zod.ZodBoolean;
323
323
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -334,9 +334,9 @@ declare const AgentNamespace: _$_makaio_core0.BusNamespaceDefinition<"agent", {
334
334
  description: _$zod.ZodOptional<_$zod.ZodString>;
335
335
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
336
336
  exposureMode: _$zod.ZodEnum<{
337
- hidden: "hidden";
338
337
  direct: "direct";
339
338
  discovery: "discovery";
339
+ hidden: "hidden";
340
340
  }>;
341
341
  enabled: _$zod.ZodBoolean;
342
342
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -363,9 +363,9 @@ declare const AgentNamespace: _$_makaio_core0.BusNamespaceDefinition<"agent", {
363
363
  request: _$zod.ZodObject<{
364
364
  sessionId: _$zod.ZodOptional<_$zod.ZodString>;
365
365
  messageId: _$zod.ZodOptional<_$zod.ZodString>;
366
- adapterId: _$zod.ZodString;
367
366
  adapterName: _$zod.ZodString;
368
367
  agentId: _$zod.ZodString;
368
+ adapterId: _$zod.ZodString;
369
369
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
370
370
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
371
371
  occurredAt: _$zod.ZodOptional<_$zod.ZodNumber>;
@@ -1600,9 +1600,9 @@ declare const AgentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
1600
1600
  description: _$zod.ZodOptional<_$zod.ZodString>;
1601
1601
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1602
1602
  exposureMode: _$zod.ZodEnum<{
1603
- hidden: "hidden";
1604
1603
  direct: "direct";
1605
1604
  discovery: "discovery";
1605
+ hidden: "hidden";
1606
1606
  }>;
1607
1607
  enabled: _$zod.ZodBoolean;
1608
1608
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1619,9 +1619,9 @@ declare const AgentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
1619
1619
  description: _$zod.ZodOptional<_$zod.ZodString>;
1620
1620
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
1621
1621
  exposureMode: _$zod.ZodEnum<{
1622
- hidden: "hidden";
1623
1622
  direct: "direct";
1624
1623
  discovery: "discovery";
1624
+ hidden: "hidden";
1625
1625
  }>;
1626
1626
  enabled: _$zod.ZodBoolean;
1627
1627
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1648,9 +1648,9 @@ declare const AgentSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
1648
1648
  request: _$zod.ZodObject<{
1649
1649
  sessionId: _$zod.ZodOptional<_$zod.ZodString>;
1650
1650
  messageId: _$zod.ZodOptional<_$zod.ZodString>;
1651
- adapterId: _$zod.ZodString;
1652
1651
  adapterName: _$zod.ZodString;
1653
1652
  agentId: _$zod.ZodString;
1653
+ adapterId: _$zod.ZodString;
1654
1654
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
1655
1655
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1656
1656
  occurredAt: _$zod.ZodOptional<_$zod.ZodNumber>;
@@ -2912,9 +2912,9 @@ declare const AgentSchemas: {
2912
2912
  description: _$zod.ZodOptional<_$zod.ZodString>;
2913
2913
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2914
2914
  exposureMode: _$zod.ZodEnum<{
2915
- hidden: "hidden";
2916
2915
  direct: "direct";
2917
2916
  discovery: "discovery";
2917
+ hidden: "hidden";
2918
2918
  }>;
2919
2919
  enabled: _$zod.ZodBoolean;
2920
2920
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -2931,9 +2931,9 @@ declare const AgentSchemas: {
2931
2931
  description: _$zod.ZodOptional<_$zod.ZodString>;
2932
2932
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2933
2933
  exposureMode: _$zod.ZodEnum<{
2934
- hidden: "hidden";
2935
2934
  direct: "direct";
2936
2935
  discovery: "discovery";
2936
+ hidden: "hidden";
2937
2937
  }>;
2938
2938
  enabled: _$zod.ZodBoolean;
2939
2939
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -2960,9 +2960,9 @@ declare const AgentSchemas: {
2960
2960
  request: _$zod.ZodObject<{
2961
2961
  sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2962
2962
  messageId: _$zod.ZodOptional<_$zod.ZodString>;
2963
- adapterId: _$zod.ZodString;
2964
2963
  adapterName: _$zod.ZodString;
2965
2964
  agentId: _$zod.ZodString;
2965
+ adapterId: _$zod.ZodString;
2966
2966
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2967
2967
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
2968
2968
  occurredAt: _$zod.ZodOptional<_$zod.ZodNumber>;
@@ -4661,9 +4661,9 @@ declare const ResolvedAgentConfigSchema: z.ZodObject<{
4661
4661
  directTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
4662
4662
  discoveryTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
4663
4663
  toolExposure: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
4664
- hidden: "hidden";
4665
4664
  direct: "direct";
4666
4665
  discovery: "discovery";
4666
+ hidden: "hidden";
4667
4667
  }>>>;
4668
4668
  }, z.core.$strip>>;
4669
4669
  }, z.core.$strip>;
@@ -4759,9 +4759,9 @@ declare const AgentResolutionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
4759
4759
  description: _$zod.ZodOptional<_$zod.ZodString>;
4760
4760
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4761
4761
  exposureMode: _$zod.ZodEnum<{
4762
- hidden: "hidden";
4763
4762
  direct: "direct";
4764
4763
  discovery: "discovery";
4764
+ hidden: "hidden";
4765
4765
  }>;
4766
4766
  enabled: _$zod.ZodBoolean;
4767
4767
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4778,9 +4778,9 @@ declare const AgentResolutionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
4778
4778
  description: _$zod.ZodOptional<_$zod.ZodString>;
4779
4779
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4780
4780
  exposureMode: _$zod.ZodEnum<{
4781
- hidden: "hidden";
4782
4781
  direct: "direct";
4783
4782
  discovery: "discovery";
4783
+ hidden: "hidden";
4784
4784
  }>;
4785
4785
  enabled: _$zod.ZodBoolean;
4786
4786
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4836,9 +4836,9 @@ declare const AgentResolutionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
4836
4836
  directTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
4837
4837
  discoveryTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
4838
4838
  toolExposure: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
4839
- hidden: "hidden";
4840
4839
  direct: "direct";
4841
4840
  discovery: "discovery";
4841
+ hidden: "hidden";
4842
4842
  }>>>;
4843
4843
  }, _$zod_v4_core0.$strip>>;
4844
4844
  }, _$zod_v4_core0.$strip>;
@@ -10464,12 +10464,12 @@ type WorkflowSourceLocation = z.infer<typeof WorkflowSourceLocationSchema>;
10464
10464
  * - `sequence` — ordered list of child nodes (the structural container)
10465
10465
  */
10466
10466
  declare const WorkflowNodeTypeSchema: z.ZodEnum<{
10467
- sequence: "sequence";
10468
10467
  station: "station";
10469
10468
  "delegate-agent": "delegate-agent";
10470
10469
  "delegate-role": "delegate-role";
10471
- parallel: "parallel";
10470
+ sequence: "sequence";
10472
10471
  gate: "gate";
10472
+ parallel: "parallel";
10473
10473
  iterate: "iterate";
10474
10474
  "iterate-chain": "iterate-chain";
10475
10475
  }>;
@@ -10867,6 +10867,22 @@ declare const WorkflowDefinitionProvenanceSchema: z.ZodDiscriminatedUnion<[z.Zod
10867
10867
  metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
10868
10868
  }, z.core.$strict>], "kind">;
10869
10869
  type WorkflowDefinitionProvenance = z.infer<typeof WorkflowDefinitionProvenanceSchema>;
10870
+ /**
10871
+ * Optional state contract declared on a workflow definition.
10872
+ *
10873
+ * When present, the workflow engine initializes run-scoped mutable state
10874
+ * at execution start and exposes it to station handlers via `ctx.state`.
10875
+ * State is runtime-owned execution data — persisted as a current snapshot
10876
+ * plus an append-only mutation log, never through the artifact store.
10877
+ * Keep state as small run working memory; large context, evidence, and
10878
+ * durable domain outputs belong in context providers or artifact storage.
10879
+ */
10880
+ declare const WorkflowStateDefinitionSchema: z.ZodObject<{
10881
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
10882
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
10883
+ }, z.core.$strip>;
10884
+ /** Inferred type for {@link WorkflowStateDefinitionSchema}. */
10885
+ type WorkflowStateDefinition = z.infer<typeof WorkflowStateDefinitionSchema>;
10870
10886
  /**
10871
10887
  * Persisted workflow definition in the pipeline-primitive model.
10872
10888
  *
@@ -10886,6 +10902,10 @@ declare const WorkflowDefinitionSchema: z.ZodObject<{
10886
10902
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
10887
10903
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
10888
10904
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
10905
+ state: z.ZodOptional<z.ZodObject<{
10906
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
10907
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
10908
+ }, z.core.$strip>>;
10889
10909
  artifact: z.ZodOptional<z.ZodObject<{
10890
10910
  kind: z.ZodString;
10891
10911
  schemaVersion: z.ZodString;
@@ -11001,8 +11021,8 @@ declare const ExecutionStatusSchema: z.ZodEnum<{
11001
11021
  completed: "completed";
11002
11022
  cancelled: "cancelled";
11003
11023
  failed: "failed";
11004
- running: "running";
11005
11024
  paused: "paused";
11025
+ running: "running";
11006
11026
  }>;
11007
11027
  type ExecutionStatus = z.infer<typeof ExecutionStatusSchema>;
11008
11028
  /**
@@ -11017,8 +11037,8 @@ declare const WorkflowExecutionSchema: z.ZodObject<{
11017
11037
  completed: "completed";
11018
11038
  cancelled: "cancelled";
11019
11039
  failed: "failed";
11020
- running: "running";
11021
11040
  paused: "paused";
11041
+ running: "running";
11022
11042
  }>;
11023
11043
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
11024
11044
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -11057,12 +11077,12 @@ declare const WorkflowFrameStateSchema: z.ZodObject<{
11057
11077
  frameId: z.ZodString;
11058
11078
  nodeId: z.ZodString;
11059
11079
  nodeType: z.ZodEnum<{
11060
- sequence: "sequence";
11061
11080
  station: "station";
11062
11081
  "delegate-agent": "delegate-agent";
11063
11082
  "delegate-role": "delegate-role";
11064
- parallel: "parallel";
11083
+ sequence: "sequence";
11065
11084
  gate: "gate";
11085
+ parallel: "parallel";
11066
11086
  iterate: "iterate";
11067
11087
  "iterate-chain": "iterate-chain";
11068
11088
  }>;
@@ -11271,8 +11291,8 @@ declare const ExecutionListQuerySchema: z.ZodObject<{
11271
11291
  completed: "completed";
11272
11292
  cancelled: "cancelled";
11273
11293
  failed: "failed";
11274
- running: "running";
11275
11294
  paused: "paused";
11295
+ running: "running";
11276
11296
  }>>;
11277
11297
  artifactRef: z.ZodOptional<z.ZodObject<{
11278
11298
  kind: z.ZodString;
@@ -11285,6 +11305,31 @@ declare const ExecutionListQuerySchema: z.ZodObject<{
11285
11305
  }, z.core.$strip>>;
11286
11306
  }, z.core.$strip>;
11287
11307
  type ExecutionListQuery = z.infer<typeof ExecutionListQuerySchema>;
11308
+ /** Maximum number of artifact refs accepted per batch request. */
11309
+ declare const EXECUTIONS_BY_ARTIFACT_REFS_MAX_REFS = 200;
11310
+ /** Maximum per-ref execution limit in a batch request. */
11311
+ declare const EXECUTIONS_BY_ARTIFACT_REFS_MAX_LIMIT_PER_REF = 100;
11312
+ /** Default per-ref execution limit when callers omit `limitPerRef`. */
11313
+ declare const EXECUTIONS_BY_ARTIFACT_REFS_DEFAULT_LIMIT_PER_REF = 10;
11314
+ /**
11315
+ * Query parameters for batch-fetching executions grouped by artifact reference.
11316
+ *
11317
+ * Each ref is queried independently against the artifact index. Results are
11318
+ * keyed by the canonical `"kind:id"` serialization (see {@link serializeArtifactRef}).
11319
+ * Refs that match no executions are omitted from the response record.
11320
+ *
11321
+ * Failure semantics are all-or-nothing: individual refs cannot fail independently
11322
+ * since each is a simple indexed lookup — a DB-level error would affect the
11323
+ * entire request.
11324
+ */
11325
+ declare const ExecutionsByArtifactRefsQuerySchema: z.ZodObject<{
11326
+ refs: z.ZodArray<z.ZodObject<{
11327
+ kind: z.ZodString;
11328
+ id: z.ZodString;
11329
+ }, z.core.$strip>>;
11330
+ limitPerRef: z.ZodDefault<z.ZodNumber>;
11331
+ }, z.core.$strip>;
11332
+ type ExecutionsByArtifactRefsQuery = z.infer<typeof ExecutionsByArtifactRefsQuerySchema>;
11288
11333
  /**
11289
11334
  * Query parameters for listing gate instances.
11290
11335
  *
@@ -11673,6 +11718,23 @@ declare const ExecutionLinkListQuerySchema: z.ZodObject<{
11673
11718
  }, z.core.$strip>;
11674
11719
  type ExecutionLinkListQuery = z.infer<typeof ExecutionLinkListQuerySchema>;
11675
11720
  //#endregion
11721
+ //#region core/contracts/src/workflow/json-patch.d.ts
11722
+ /** JSON Patch operation shape accepted by workflow state mutation subjects. */
11723
+ type JsonPatchOperation = {
11724
+ op: 'add' | 'replace' | 'test';
11725
+ path: string;
11726
+ value: JsonValue;
11727
+ } | {
11728
+ op: 'remove';
11729
+ path: string;
11730
+ } | {
11731
+ op: 'move' | 'copy';
11732
+ path: string;
11733
+ from: string;
11734
+ };
11735
+ /** Runtime schema for {@link JsonPatchOperation}. */
11736
+ declare const JsonPatchOperationSchema: z.ZodType<JsonPatchOperation>;
11737
+ //#endregion
11676
11738
  //#region core/contracts/src/workflow/context.d.ts
11677
11739
  /**
11678
11740
  * Artifact-query context source — resolves context from the artifact system.
@@ -11925,6 +11987,10 @@ declare const WorkflowSchemas: {
11925
11987
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
11926
11988
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
11927
11989
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
11990
+ state: z.ZodOptional<z.ZodObject<{
11991
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
11992
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
11993
+ }, z.core.$strip>>;
11928
11994
  artifact: z.ZodOptional<z.ZodObject<{
11929
11995
  kind: z.ZodString;
11930
11996
  schemaVersion: z.ZodString;
@@ -12037,6 +12103,10 @@ declare const WorkflowSchemas: {
12037
12103
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
12038
12104
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
12039
12105
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
12106
+ state: z.ZodOptional<z.ZodObject<{
12107
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
12108
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
12109
+ }, z.core.$strip>>;
12040
12110
  artifact: z.ZodOptional<z.ZodObject<{
12041
12111
  kind: z.ZodString;
12042
12112
  schemaVersion: z.ZodString;
@@ -12175,6 +12245,10 @@ declare const WorkflowSchemas: {
12175
12245
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
12176
12246
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
12177
12247
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
12248
+ state: z.ZodOptional<z.ZodObject<{
12249
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
12250
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
12251
+ }, z.core.$strip>>;
12178
12252
  artifact: z.ZodOptional<z.ZodObject<{
12179
12253
  kind: z.ZodString;
12180
12254
  schemaVersion: z.ZodString;
@@ -12285,6 +12359,10 @@ declare const WorkflowSchemas: {
12285
12359
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
12286
12360
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
12287
12361
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
12362
+ state: z.ZodOptional<z.ZodObject<{
12363
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
12364
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
12365
+ }, z.core.$strip>>;
12288
12366
  artifact: z.ZodOptional<z.ZodObject<{
12289
12367
  kind: z.ZodString;
12290
12368
  schemaVersion: z.ZodString;
@@ -12393,6 +12471,10 @@ declare const WorkflowSchemas: {
12393
12471
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
12394
12472
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
12395
12473
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
12474
+ state: z.ZodOptional<z.ZodObject<{
12475
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
12476
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
12477
+ }, z.core.$strip>>;
12396
12478
  artifact: z.ZodOptional<z.ZodObject<{
12397
12479
  kind: z.ZodString;
12398
12480
  schemaVersion: z.ZodString;
@@ -12568,8 +12650,8 @@ declare const WorkflowSchemas: {
12568
12650
  completed: "completed";
12569
12651
  cancelled: "cancelled";
12570
12652
  failed: "failed";
12571
- running: "running";
12572
12653
  paused: "paused";
12654
+ running: "running";
12573
12655
  }>;
12574
12656
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
12575
12657
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -12625,8 +12707,8 @@ declare const WorkflowSchemas: {
12625
12707
  completed: "completed";
12626
12708
  cancelled: "cancelled";
12627
12709
  failed: "failed";
12628
- running: "running";
12629
12710
  paused: "paused";
12711
+ running: "running";
12630
12712
  }>>;
12631
12713
  artifactRef: z.ZodOptional<z.ZodObject<{
12632
12714
  kind: z.ZodString;
@@ -12648,8 +12730,8 @@ declare const WorkflowSchemas: {
12648
12730
  completed: "completed";
12649
12731
  cancelled: "cancelled";
12650
12732
  failed: "failed";
12651
- running: "running";
12652
12733
  paused: "paused";
12734
+ running: "running";
12653
12735
  }>;
12654
12736
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
12655
12737
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -12678,6 +12760,62 @@ declare const WorkflowSchemas: {
12678
12760
  }, z.core.$strip>>;
12679
12761
  }, z.core.$strip>;
12680
12762
  };
12763
+ /**
12764
+ * Batch-fetch recent executions grouped by artifact reference.
12765
+ *
12766
+ * Eliminates N+1 fan-out when a consumer needs execution history for
12767
+ * multiple artifacts (e.g. graph enrichment). Each ref is an independent
12768
+ * indexed lookup; results are keyed by canonical `"kind:id"` serialization.
12769
+ * Refs with no matching executions are omitted from the response.
12770
+ */
12771
+ listExecutionsByArtifactRefs: {
12772
+ request: z.ZodObject<{
12773
+ refs: z.ZodArray<z.ZodObject<{
12774
+ kind: z.ZodString;
12775
+ id: z.ZodString;
12776
+ }, z.core.$strip>>;
12777
+ limitPerRef: z.ZodDefault<z.ZodNumber>;
12778
+ }, z.core.$strip>;
12779
+ response: z.ZodObject<{
12780
+ executionsByRef: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
12781
+ id: z.ZodString;
12782
+ workflowId: z.ZodString;
12783
+ coordinatorSessionId: z.ZodOptional<z.ZodString>;
12784
+ status: z.ZodEnum<{
12785
+ pending: "pending";
12786
+ completed: "completed";
12787
+ cancelled: "cancelled";
12788
+ failed: "failed";
12789
+ paused: "paused";
12790
+ running: "running";
12791
+ }>;
12792
+ inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
12793
+ config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
12794
+ startedAt: z.ZodNumber;
12795
+ completedAt: z.ZodOptional<z.ZodNumber>;
12796
+ error: z.ZodOptional<z.ZodString>;
12797
+ reason: z.ZodOptional<z.ZodString>;
12798
+ triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
12799
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
12800
+ type: z.ZodLiteral<"global">;
12801
+ }, z.core.$strict>, z.ZodObject<{
12802
+ type: z.ZodLiteral<"workspace">;
12803
+ id: z.ZodString;
12804
+ }, z.core.$strict>, z.ZodObject<{
12805
+ type: z.ZodLiteral<"session">;
12806
+ id: z.ZodString;
12807
+ }, z.core.$strict>, z.ZodObject<{
12808
+ type: z.ZodLiteral<"external">;
12809
+ kind: z.ZodString;
12810
+ id: z.ZodString;
12811
+ }, z.core.$strict>], "type">;
12812
+ artifactRef: z.ZodOptional<z.ZodObject<{
12813
+ kind: z.ZodString;
12814
+ id: z.ZodString;
12815
+ }, z.core.$strip>>;
12816
+ }, z.core.$strip>>>;
12817
+ }, z.core.$strip>;
12818
+ };
12681
12819
  /**
12682
12820
  * List persisted step spans for a workflow execution.
12683
12821
  *
@@ -12826,12 +12964,12 @@ declare const WorkflowSchemas: {
12826
12964
  frameId: z.ZodString;
12827
12965
  nodeId: z.ZodString;
12828
12966
  nodeType: z.ZodEnum<{
12829
- sequence: "sequence";
12830
12967
  station: "station";
12831
12968
  "delegate-agent": "delegate-agent";
12832
12969
  "delegate-role": "delegate-role";
12833
- parallel: "parallel";
12970
+ sequence: "sequence";
12834
12971
  gate: "gate";
12972
+ parallel: "parallel";
12835
12973
  iterate: "iterate";
12836
12974
  "iterate-chain": "iterate-chain";
12837
12975
  }>;
@@ -13022,6 +13160,10 @@ declare const WorkflowSchemas: {
13022
13160
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
13023
13161
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
13024
13162
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
13163
+ state: z.ZodOptional<z.ZodObject<{
13164
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
13165
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
13166
+ }, z.core.$strip>>;
13025
13167
  artifact: z.ZodOptional<z.ZodObject<{
13026
13168
  kind: z.ZodString;
13027
13169
  schemaVersion: z.ZodString;
@@ -13411,12 +13553,12 @@ declare const WorkflowSchemas: {
13411
13553
  frameId: z.ZodString;
13412
13554
  nodeId: z.ZodString;
13413
13555
  nodeType: z.ZodEnum<{
13414
- sequence: "sequence";
13415
13556
  station: "station";
13416
13557
  "delegate-agent": "delegate-agent";
13417
13558
  "delegate-role": "delegate-role";
13418
- parallel: "parallel";
13559
+ sequence: "sequence";
13419
13560
  gate: "gate";
13561
+ parallel: "parallel";
13420
13562
  iterate: "iterate";
13421
13563
  "iterate-chain": "iterate-chain";
13422
13564
  }>;
@@ -13540,8 +13682,8 @@ declare const WorkflowSchemas: {
13540
13682
  completed: "completed";
13541
13683
  cancelled: "cancelled";
13542
13684
  failed: "failed";
13543
- running: "running";
13544
13685
  paused: "paused";
13686
+ running: "running";
13545
13687
  }>;
13546
13688
  startedAt: z.ZodNumber;
13547
13689
  completedAt: z.ZodOptional<z.ZodNumber>;
@@ -13568,8 +13710,8 @@ declare const WorkflowSchemas: {
13568
13710
  completed: "completed";
13569
13711
  cancelled: "cancelled";
13570
13712
  failed: "failed";
13571
- running: "running";
13572
13713
  paused: "paused";
13714
+ running: "running";
13573
13715
  }>>;
13574
13716
  limit: z.ZodOptional<z.ZodNumber>;
13575
13717
  offset: z.ZodOptional<z.ZodNumber>;
@@ -13584,8 +13726,8 @@ declare const WorkflowSchemas: {
13584
13726
  completed: "completed";
13585
13727
  cancelled: "cancelled";
13586
13728
  failed: "failed";
13587
- running: "running";
13588
13729
  paused: "paused";
13730
+ running: "running";
13589
13731
  }>;
13590
13732
  startedAt: z.ZodNumber;
13591
13733
  completedAt: z.ZodOptional<z.ZodNumber>;
@@ -13638,6 +13780,58 @@ declare const WorkflowSchemas: {
13638
13780
  'worklog.changed': z.ZodObject<{
13639
13781
  executionId: z.ZodString;
13640
13782
  }, z.core.$strip>;
13783
+ /**
13784
+ * Retrieve the current run state snapshot for a workflow execution (RPC).
13785
+ *
13786
+ * Returns the current sequence number and state value. Sequence `0` is
13787
+ * the initial state written at execution start.
13788
+ */
13789
+ 'state.get': {
13790
+ request: z.ZodObject<{
13791
+ executionId: z.ZodString;
13792
+ }, z.core.$strip>;
13793
+ response: z.ZodObject<{
13794
+ executionId: z.ZodString;
13795
+ sequence: z.ZodNumber;
13796
+ value: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
13797
+ }, z.core.$strip>;
13798
+ };
13799
+ /**
13800
+ * Apply a state mutation to a workflow execution (RPC).
13801
+ *
13802
+ * The caller supplies the full next value and a JSON Patch array describing
13803
+ * the requested mutation. The engine persists a canonical patch derived from
13804
+ * the accepted state transition so the audit log and update events cannot
13805
+ * drift from the stored snapshot. The required `expectedSequence` lets the
13806
+ * handler reject the mutation if the current sequence does not match
13807
+ * (optimistic concurrency control).
13808
+ */
13809
+ 'state.patch': {
13810
+ request: z.ZodObject<{
13811
+ executionId: z.ZodString;
13812
+ expectedSequence: z.ZodNumber;
13813
+ patch: z.ZodArray<z.ZodType<_$_makaio_contracts0.JsonPatchOperation, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonPatchOperation, unknown>>>;
13814
+ nextValue: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
13815
+ }, z.core.$strip>;
13816
+ response: z.ZodObject<{
13817
+ executionId: z.ZodString;
13818
+ sequence: z.ZodNumber;
13819
+ value: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
13820
+ }, z.core.$strip>;
13821
+ };
13822
+ /**
13823
+ * Emitted after a state mutation is accepted and persisted.
13824
+ *
13825
+ * Subscribers use this for real-time state change observation
13826
+ * without polling the `state.get` RPC.
13827
+ */
13828
+ 'state.updated': z.ZodObject<{
13829
+ executionId: z.ZodString;
13830
+ sequence: z.ZodNumber;
13831
+ patch: z.ZodArray<z.ZodType<_$_makaio_contracts0.JsonPatchOperation, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonPatchOperation, unknown>>>;
13832
+ value: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
13833
+ updatedAt: z.ZodNumber;
13834
+ }, z.core.$strip>;
13641
13835
  };
13642
13836
  declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflow", {
13643
13837
  getDefinition: {
@@ -13652,6 +13846,10 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
13652
13846
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
13653
13847
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
13654
13848
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
13849
+ state: z.ZodOptional<z.ZodObject<{
13850
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
13851
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
13852
+ }, z.core.$strip>>;
13655
13853
  artifact: z.ZodOptional<z.ZodObject<{
13656
13854
  kind: z.ZodString;
13657
13855
  schemaVersion: z.ZodString;
@@ -13764,6 +13962,10 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
13764
13962
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
13765
13963
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
13766
13964
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
13965
+ state: z.ZodOptional<z.ZodObject<{
13966
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
13967
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
13968
+ }, z.core.$strip>>;
13767
13969
  artifact: z.ZodOptional<z.ZodObject<{
13768
13970
  kind: z.ZodString;
13769
13971
  schemaVersion: z.ZodString;
@@ -13902,6 +14104,10 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
13902
14104
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
13903
14105
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
13904
14106
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
14107
+ state: z.ZodOptional<z.ZodObject<{
14108
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
14109
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
14110
+ }, z.core.$strip>>;
13905
14111
  artifact: z.ZodOptional<z.ZodObject<{
13906
14112
  kind: z.ZodString;
13907
14113
  schemaVersion: z.ZodString;
@@ -14012,6 +14218,10 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
14012
14218
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
14013
14219
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
14014
14220
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
14221
+ state: z.ZodOptional<z.ZodObject<{
14222
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
14223
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
14224
+ }, z.core.$strip>>;
14015
14225
  artifact: z.ZodOptional<z.ZodObject<{
14016
14226
  kind: z.ZodString;
14017
14227
  schemaVersion: z.ZodString;
@@ -14120,6 +14330,10 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
14120
14330
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
14121
14331
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
14122
14332
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
14333
+ state: z.ZodOptional<z.ZodObject<{
14334
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
14335
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
14336
+ }, z.core.$strip>>;
14123
14337
  artifact: z.ZodOptional<z.ZodObject<{
14124
14338
  kind: z.ZodString;
14125
14339
  schemaVersion: z.ZodString;
@@ -14295,8 +14509,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
14295
14509
  completed: "completed";
14296
14510
  cancelled: "cancelled";
14297
14511
  failed: "failed";
14298
- running: "running";
14299
14512
  paused: "paused";
14513
+ running: "running";
14300
14514
  }>;
14301
14515
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
14302
14516
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -14352,8 +14566,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
14352
14566
  completed: "completed";
14353
14567
  cancelled: "cancelled";
14354
14568
  failed: "failed";
14355
- running: "running";
14356
14569
  paused: "paused";
14570
+ running: "running";
14357
14571
  }>>;
14358
14572
  artifactRef: z.ZodOptional<z.ZodObject<{
14359
14573
  kind: z.ZodString;
@@ -14375,8 +14589,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
14375
14589
  completed: "completed";
14376
14590
  cancelled: "cancelled";
14377
14591
  failed: "failed";
14378
- running: "running";
14379
14592
  paused: "paused";
14593
+ running: "running";
14380
14594
  }>;
14381
14595
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
14382
14596
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -14405,6 +14619,62 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
14405
14619
  }, z.core.$strip>>;
14406
14620
  }, z.core.$strip>;
14407
14621
  };
14622
+ /**
14623
+ * Batch-fetch recent executions grouped by artifact reference.
14624
+ *
14625
+ * Eliminates N+1 fan-out when a consumer needs execution history for
14626
+ * multiple artifacts (e.g. graph enrichment). Each ref is an independent
14627
+ * indexed lookup; results are keyed by canonical `"kind:id"` serialization.
14628
+ * Refs with no matching executions are omitted from the response.
14629
+ */
14630
+ listExecutionsByArtifactRefs: {
14631
+ request: z.ZodObject<{
14632
+ refs: z.ZodArray<z.ZodObject<{
14633
+ kind: z.ZodString;
14634
+ id: z.ZodString;
14635
+ }, z.core.$strip>>;
14636
+ limitPerRef: z.ZodDefault<z.ZodNumber>;
14637
+ }, z.core.$strip>;
14638
+ response: z.ZodObject<{
14639
+ executionsByRef: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
14640
+ id: z.ZodString;
14641
+ workflowId: z.ZodString;
14642
+ coordinatorSessionId: z.ZodOptional<z.ZodString>;
14643
+ status: z.ZodEnum<{
14644
+ pending: "pending";
14645
+ completed: "completed";
14646
+ cancelled: "cancelled";
14647
+ failed: "failed";
14648
+ paused: "paused";
14649
+ running: "running";
14650
+ }>;
14651
+ inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
14652
+ config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
14653
+ startedAt: z.ZodNumber;
14654
+ completedAt: z.ZodOptional<z.ZodNumber>;
14655
+ error: z.ZodOptional<z.ZodString>;
14656
+ reason: z.ZodOptional<z.ZodString>;
14657
+ triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
14658
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
14659
+ type: z.ZodLiteral<"global">;
14660
+ }, z.core.$strict>, z.ZodObject<{
14661
+ type: z.ZodLiteral<"workspace">;
14662
+ id: z.ZodString;
14663
+ }, z.core.$strict>, z.ZodObject<{
14664
+ type: z.ZodLiteral<"session">;
14665
+ id: z.ZodString;
14666
+ }, z.core.$strict>, z.ZodObject<{
14667
+ type: z.ZodLiteral<"external">;
14668
+ kind: z.ZodString;
14669
+ id: z.ZodString;
14670
+ }, z.core.$strict>], "type">;
14671
+ artifactRef: z.ZodOptional<z.ZodObject<{
14672
+ kind: z.ZodString;
14673
+ id: z.ZodString;
14674
+ }, z.core.$strip>>;
14675
+ }, z.core.$strip>>>;
14676
+ }, z.core.$strip>;
14677
+ };
14408
14678
  /**
14409
14679
  * List persisted step spans for a workflow execution.
14410
14680
  *
@@ -14553,12 +14823,12 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
14553
14823
  frameId: z.ZodString;
14554
14824
  nodeId: z.ZodString;
14555
14825
  nodeType: z.ZodEnum<{
14556
- sequence: "sequence";
14557
14826
  station: "station";
14558
14827
  "delegate-agent": "delegate-agent";
14559
14828
  "delegate-role": "delegate-role";
14560
- parallel: "parallel";
14829
+ sequence: "sequence";
14561
14830
  gate: "gate";
14831
+ parallel: "parallel";
14562
14832
  iterate: "iterate";
14563
14833
  "iterate-chain": "iterate-chain";
14564
14834
  }>;
@@ -14749,6 +15019,10 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
14749
15019
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
14750
15020
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
14751
15021
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15022
+ state: z.ZodOptional<z.ZodObject<{
15023
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
15024
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
15025
+ }, z.core.$strip>>;
14752
15026
  artifact: z.ZodOptional<z.ZodObject<{
14753
15027
  kind: z.ZodString;
14754
15028
  schemaVersion: z.ZodString;
@@ -15138,12 +15412,12 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
15138
15412
  frameId: z.ZodString;
15139
15413
  nodeId: z.ZodString;
15140
15414
  nodeType: z.ZodEnum<{
15141
- sequence: "sequence";
15142
15415
  station: "station";
15143
15416
  "delegate-agent": "delegate-agent";
15144
15417
  "delegate-role": "delegate-role";
15145
- parallel: "parallel";
15418
+ sequence: "sequence";
15146
15419
  gate: "gate";
15420
+ parallel: "parallel";
15147
15421
  iterate: "iterate";
15148
15422
  "iterate-chain": "iterate-chain";
15149
15423
  }>;
@@ -15267,8 +15541,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
15267
15541
  completed: "completed";
15268
15542
  cancelled: "cancelled";
15269
15543
  failed: "failed";
15270
- running: "running";
15271
15544
  paused: "paused";
15545
+ running: "running";
15272
15546
  }>;
15273
15547
  startedAt: z.ZodNumber;
15274
15548
  completedAt: z.ZodOptional<z.ZodNumber>;
@@ -15295,8 +15569,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
15295
15569
  completed: "completed";
15296
15570
  cancelled: "cancelled";
15297
15571
  failed: "failed";
15298
- running: "running";
15299
15572
  paused: "paused";
15573
+ running: "running";
15300
15574
  }>>;
15301
15575
  limit: z.ZodOptional<z.ZodNumber>;
15302
15576
  offset: z.ZodOptional<z.ZodNumber>;
@@ -15311,8 +15585,8 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
15311
15585
  completed: "completed";
15312
15586
  cancelled: "cancelled";
15313
15587
  failed: "failed";
15314
- running: "running";
15315
15588
  paused: "paused";
15589
+ running: "running";
15316
15590
  }>;
15317
15591
  startedAt: z.ZodNumber;
15318
15592
  completedAt: z.ZodOptional<z.ZodNumber>;
@@ -15365,6 +15639,58 @@ declare const WorkflowNamespace: _$_makaio_core0.BusNamespaceDefinition<"workflo
15365
15639
  'worklog.changed': z.ZodObject<{
15366
15640
  executionId: z.ZodString;
15367
15641
  }, z.core.$strip>;
15642
+ /**
15643
+ * Retrieve the current run state snapshot for a workflow execution (RPC).
15644
+ *
15645
+ * Returns the current sequence number and state value. Sequence `0` is
15646
+ * the initial state written at execution start.
15647
+ */
15648
+ 'state.get': {
15649
+ request: z.ZodObject<{
15650
+ executionId: z.ZodString;
15651
+ }, z.core.$strip>;
15652
+ response: z.ZodObject<{
15653
+ executionId: z.ZodString;
15654
+ sequence: z.ZodNumber;
15655
+ value: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
15656
+ }, z.core.$strip>;
15657
+ };
15658
+ /**
15659
+ * Apply a state mutation to a workflow execution (RPC).
15660
+ *
15661
+ * The caller supplies the full next value and a JSON Patch array describing
15662
+ * the requested mutation. The engine persists a canonical patch derived from
15663
+ * the accepted state transition so the audit log and update events cannot
15664
+ * drift from the stored snapshot. The required `expectedSequence` lets the
15665
+ * handler reject the mutation if the current sequence does not match
15666
+ * (optimistic concurrency control).
15667
+ */
15668
+ 'state.patch': {
15669
+ request: z.ZodObject<{
15670
+ executionId: z.ZodString;
15671
+ expectedSequence: z.ZodNumber;
15672
+ patch: z.ZodArray<z.ZodType<_$_makaio_contracts0.JsonPatchOperation, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonPatchOperation, unknown>>>;
15673
+ nextValue: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
15674
+ }, z.core.$strip>;
15675
+ response: z.ZodObject<{
15676
+ executionId: z.ZodString;
15677
+ sequence: z.ZodNumber;
15678
+ value: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
15679
+ }, z.core.$strip>;
15680
+ };
15681
+ /**
15682
+ * Emitted after a state mutation is accepted and persisted.
15683
+ *
15684
+ * Subscribers use this for real-time state change observation
15685
+ * without polling the `state.get` RPC.
15686
+ */
15687
+ 'state.updated': z.ZodObject<{
15688
+ executionId: z.ZodString;
15689
+ sequence: z.ZodNumber;
15690
+ patch: z.ZodArray<z.ZodType<_$_makaio_contracts0.JsonPatchOperation, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonPatchOperation, unknown>>>;
15691
+ value: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
15692
+ updatedAt: z.ZodNumber;
15693
+ }, z.core.$strip>;
15368
15694
  }>;
15369
15695
  declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"workflow", {
15370
15696
  getDefinition: {
@@ -15379,6 +15705,10 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
15379
15705
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15380
15706
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15381
15707
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15708
+ state: z.ZodOptional<z.ZodObject<{
15709
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
15710
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
15711
+ }, z.core.$strip>>;
15382
15712
  artifact: z.ZodOptional<z.ZodObject<{
15383
15713
  kind: z.ZodString;
15384
15714
  schemaVersion: z.ZodString;
@@ -15491,6 +15821,10 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
15491
15821
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15492
15822
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15493
15823
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15824
+ state: z.ZodOptional<z.ZodObject<{
15825
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
15826
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
15827
+ }, z.core.$strip>>;
15494
15828
  artifact: z.ZodOptional<z.ZodObject<{
15495
15829
  kind: z.ZodString;
15496
15830
  schemaVersion: z.ZodString;
@@ -15629,6 +15963,10 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
15629
15963
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15630
15964
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15631
15965
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15966
+ state: z.ZodOptional<z.ZodObject<{
15967
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
15968
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
15969
+ }, z.core.$strip>>;
15632
15970
  artifact: z.ZodOptional<z.ZodObject<{
15633
15971
  kind: z.ZodString;
15634
15972
  schemaVersion: z.ZodString;
@@ -15739,6 +16077,10 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
15739
16077
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15740
16078
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15741
16079
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
16080
+ state: z.ZodOptional<z.ZodObject<{
16081
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
16082
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
16083
+ }, z.core.$strip>>;
15742
16084
  artifact: z.ZodOptional<z.ZodObject<{
15743
16085
  kind: z.ZodString;
15744
16086
  schemaVersion: z.ZodString;
@@ -15847,6 +16189,10 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
15847
16189
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15848
16190
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
15849
16191
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
16192
+ state: z.ZodOptional<z.ZodObject<{
16193
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
16194
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
16195
+ }, z.core.$strip>>;
15850
16196
  artifact: z.ZodOptional<z.ZodObject<{
15851
16197
  kind: z.ZodString;
15852
16198
  schemaVersion: z.ZodString;
@@ -16022,8 +16368,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
16022
16368
  completed: "completed";
16023
16369
  cancelled: "cancelled";
16024
16370
  failed: "failed";
16025
- running: "running";
16026
16371
  paused: "paused";
16372
+ running: "running";
16027
16373
  }>;
16028
16374
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
16029
16375
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -16079,8 +16425,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
16079
16425
  completed: "completed";
16080
16426
  cancelled: "cancelled";
16081
16427
  failed: "failed";
16082
- running: "running";
16083
16428
  paused: "paused";
16429
+ running: "running";
16084
16430
  }>>;
16085
16431
  artifactRef: z.ZodOptional<z.ZodObject<{
16086
16432
  kind: z.ZodString;
@@ -16102,8 +16448,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
16102
16448
  completed: "completed";
16103
16449
  cancelled: "cancelled";
16104
16450
  failed: "failed";
16105
- running: "running";
16106
16451
  paused: "paused";
16452
+ running: "running";
16107
16453
  }>;
16108
16454
  inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
16109
16455
  config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
@@ -16132,6 +16478,62 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
16132
16478
  }, z.core.$strip>>;
16133
16479
  }, z.core.$strip>;
16134
16480
  };
16481
+ /**
16482
+ * Batch-fetch recent executions grouped by artifact reference.
16483
+ *
16484
+ * Eliminates N+1 fan-out when a consumer needs execution history for
16485
+ * multiple artifacts (e.g. graph enrichment). Each ref is an independent
16486
+ * indexed lookup; results are keyed by canonical `"kind:id"` serialization.
16487
+ * Refs with no matching executions are omitted from the response.
16488
+ */
16489
+ listExecutionsByArtifactRefs: {
16490
+ request: z.ZodObject<{
16491
+ refs: z.ZodArray<z.ZodObject<{
16492
+ kind: z.ZodString;
16493
+ id: z.ZodString;
16494
+ }, z.core.$strip>>;
16495
+ limitPerRef: z.ZodDefault<z.ZodNumber>;
16496
+ }, z.core.$strip>;
16497
+ response: z.ZodObject<{
16498
+ executionsByRef: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
16499
+ id: z.ZodString;
16500
+ workflowId: z.ZodString;
16501
+ coordinatorSessionId: z.ZodOptional<z.ZodString>;
16502
+ status: z.ZodEnum<{
16503
+ pending: "pending";
16504
+ completed: "completed";
16505
+ cancelled: "cancelled";
16506
+ failed: "failed";
16507
+ paused: "paused";
16508
+ running: "running";
16509
+ }>;
16510
+ inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
16511
+ config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
16512
+ startedAt: z.ZodNumber;
16513
+ completedAt: z.ZodOptional<z.ZodNumber>;
16514
+ error: z.ZodOptional<z.ZodString>;
16515
+ reason: z.ZodOptional<z.ZodString>;
16516
+ triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
16517
+ scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
16518
+ type: z.ZodLiteral<"global">;
16519
+ }, z.core.$strict>, z.ZodObject<{
16520
+ type: z.ZodLiteral<"workspace">;
16521
+ id: z.ZodString;
16522
+ }, z.core.$strict>, z.ZodObject<{
16523
+ type: z.ZodLiteral<"session">;
16524
+ id: z.ZodString;
16525
+ }, z.core.$strict>, z.ZodObject<{
16526
+ type: z.ZodLiteral<"external">;
16527
+ kind: z.ZodString;
16528
+ id: z.ZodString;
16529
+ }, z.core.$strict>], "type">;
16530
+ artifactRef: z.ZodOptional<z.ZodObject<{
16531
+ kind: z.ZodString;
16532
+ id: z.ZodString;
16533
+ }, z.core.$strip>>;
16534
+ }, z.core.$strip>>>;
16535
+ }, z.core.$strip>;
16536
+ };
16135
16537
  /**
16136
16538
  * List persisted step spans for a workflow execution.
16137
16539
  *
@@ -16280,12 +16682,12 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
16280
16682
  frameId: z.ZodString;
16281
16683
  nodeId: z.ZodString;
16282
16684
  nodeType: z.ZodEnum<{
16283
- sequence: "sequence";
16284
16685
  station: "station";
16285
16686
  "delegate-agent": "delegate-agent";
16286
16687
  "delegate-role": "delegate-role";
16287
- parallel: "parallel";
16688
+ sequence: "sequence";
16288
16689
  gate: "gate";
16690
+ parallel: "parallel";
16289
16691
  iterate: "iterate";
16290
16692
  "iterate-chain": "iterate-chain";
16291
16693
  }>;
@@ -16476,6 +16878,10 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
16476
16878
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
16477
16879
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
16478
16880
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
16881
+ state: z.ZodOptional<z.ZodObject<{
16882
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
16883
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
16884
+ }, z.core.$strip>>;
16479
16885
  artifact: z.ZodOptional<z.ZodObject<{
16480
16886
  kind: z.ZodString;
16481
16887
  schemaVersion: z.ZodString;
@@ -16865,12 +17271,12 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
16865
17271
  frameId: z.ZodString;
16866
17272
  nodeId: z.ZodString;
16867
17273
  nodeType: z.ZodEnum<{
16868
- sequence: "sequence";
16869
17274
  station: "station";
16870
17275
  "delegate-agent": "delegate-agent";
16871
17276
  "delegate-role": "delegate-role";
16872
- parallel: "parallel";
17277
+ sequence: "sequence";
16873
17278
  gate: "gate";
17279
+ parallel: "parallel";
16874
17280
  iterate: "iterate";
16875
17281
  "iterate-chain": "iterate-chain";
16876
17282
  }>;
@@ -16994,8 +17400,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
16994
17400
  completed: "completed";
16995
17401
  cancelled: "cancelled";
16996
17402
  failed: "failed";
16997
- running: "running";
16998
17403
  paused: "paused";
17404
+ running: "running";
16999
17405
  }>;
17000
17406
  startedAt: z.ZodNumber;
17001
17407
  completedAt: z.ZodOptional<z.ZodNumber>;
@@ -17022,8 +17428,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
17022
17428
  completed: "completed";
17023
17429
  cancelled: "cancelled";
17024
17430
  failed: "failed";
17025
- running: "running";
17026
17431
  paused: "paused";
17432
+ running: "running";
17027
17433
  }>>;
17028
17434
  limit: z.ZodOptional<z.ZodNumber>;
17029
17435
  offset: z.ZodOptional<z.ZodNumber>;
@@ -17038,8 +17444,8 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
17038
17444
  completed: "completed";
17039
17445
  cancelled: "cancelled";
17040
17446
  failed: "failed";
17041
- running: "running";
17042
17447
  paused: "paused";
17448
+ running: "running";
17043
17449
  }>;
17044
17450
  startedAt: z.ZodNumber;
17045
17451
  completedAt: z.ZodOptional<z.ZodNumber>;
@@ -17092,6 +17498,58 @@ declare const WorkflowSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
17092
17498
  'worklog.changed': z.ZodObject<{
17093
17499
  executionId: z.ZodString;
17094
17500
  }, z.core.$strip>;
17501
+ /**
17502
+ * Retrieve the current run state snapshot for a workflow execution (RPC).
17503
+ *
17504
+ * Returns the current sequence number and state value. Sequence `0` is
17505
+ * the initial state written at execution start.
17506
+ */
17507
+ 'state.get': {
17508
+ request: z.ZodObject<{
17509
+ executionId: z.ZodString;
17510
+ }, z.core.$strip>;
17511
+ response: z.ZodObject<{
17512
+ executionId: z.ZodString;
17513
+ sequence: z.ZodNumber;
17514
+ value: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
17515
+ }, z.core.$strip>;
17516
+ };
17517
+ /**
17518
+ * Apply a state mutation to a workflow execution (RPC).
17519
+ *
17520
+ * The caller supplies the full next value and a JSON Patch array describing
17521
+ * the requested mutation. The engine persists a canonical patch derived from
17522
+ * the accepted state transition so the audit log and update events cannot
17523
+ * drift from the stored snapshot. The required `expectedSequence` lets the
17524
+ * handler reject the mutation if the current sequence does not match
17525
+ * (optimistic concurrency control).
17526
+ */
17527
+ 'state.patch': {
17528
+ request: z.ZodObject<{
17529
+ executionId: z.ZodString;
17530
+ expectedSequence: z.ZodNumber;
17531
+ patch: z.ZodArray<z.ZodType<_$_makaio_contracts0.JsonPatchOperation, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonPatchOperation, unknown>>>;
17532
+ nextValue: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
17533
+ }, z.core.$strip>;
17534
+ response: z.ZodObject<{
17535
+ executionId: z.ZodString;
17536
+ sequence: z.ZodNumber;
17537
+ value: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
17538
+ }, z.core.$strip>;
17539
+ };
17540
+ /**
17541
+ * Emitted after a state mutation is accepted and persisted.
17542
+ *
17543
+ * Subscribers use this for real-time state change observation
17544
+ * without polling the `state.get` RPC.
17545
+ */
17546
+ 'state.updated': z.ZodObject<{
17547
+ executionId: z.ZodString;
17548
+ sequence: z.ZodNumber;
17549
+ patch: z.ZodArray<z.ZodType<_$_makaio_contracts0.JsonPatchOperation, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonPatchOperation, unknown>>>;
17550
+ value: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
17551
+ updatedAt: z.ZodNumber;
17552
+ }, z.core.$strip>;
17095
17553
  }>, "workflow">;
17096
17554
  //#endregion
17097
17555
  //#region core/contracts/src/workflow/artifact-ref.d.ts
@@ -17101,6 +17559,18 @@ declare const WorkflowArtifactRefSchema: z.ZodObject<{
17101
17559
  id: z.ZodString;
17102
17560
  }, z.core.$strip>;
17103
17561
  type WorkflowArtifactRef = z.infer<typeof WorkflowArtifactRefSchema>;
17562
+ /**
17563
+ * Canonical escaped `"kind:id"` serialization for use as record keys.
17564
+ * @param ref - Artifact reference to serialize.
17565
+ * @returns Canonical string key in `"kind:id"` format.
17566
+ */
17567
+ declare function serializeArtifactRef(ref: WorkflowArtifactRef): string;
17568
+ /**
17569
+ * Inverse of {@link serializeArtifactRef}.
17570
+ * @param key - Canonical `"kind:id"` string to parse.
17571
+ * @returns Parsed artifact reference.
17572
+ */
17573
+ declare function parseArtifactRef(key: string): WorkflowArtifactRef;
17104
17574
  //#endregion
17105
17575
  //#region core/contracts/src/workflow/run-context.d.ts
17106
17576
  /**
@@ -17135,6 +17605,10 @@ declare const WorkflowRunContextSchema: z.ZodObject<{
17135
17605
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
17136
17606
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
17137
17607
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
17608
+ state: z.ZodOptional<z.ZodObject<{
17609
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
17610
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
17611
+ }, z.core.$strip>>;
17138
17612
  artifact: z.ZodOptional<z.ZodObject<{
17139
17613
  kind: z.ZodString;
17140
17614
  schemaVersion: z.ZodString;
@@ -17305,6 +17779,135 @@ declare const WorkflowRunContextSchema: z.ZodObject<{
17305
17779
  }, z.core.$strip>;
17306
17780
  type WorkflowRunContext = z.infer<typeof WorkflowRunContextSchema>;
17307
17781
  //#endregion
17782
+ //#region core/contracts/src/workflow/walk.d.ts
17783
+ /** How the current node was reached from its parent. */
17784
+ type WalkRelationship = 'root' | 'sequence-child' | 'parallel-branch' | 'iterate-body' | 'iterate-chain-body';
17785
+ /**
17786
+ * Context passed to visitor callbacks during workflow definition traversal.
17787
+ */
17788
+ interface WalkContext {
17789
+ /** Parent node, undefined for the root sequence node. */
17790
+ parent: WorkflowNode | undefined;
17791
+ /** Zero-based depth from the root node. */
17792
+ depth: number;
17793
+ /** Ordered path of ancestor node IDs (root-first, exclusive of current node). */
17794
+ ancestors: readonly string[];
17795
+ /** How this node was reached from its parent. */
17796
+ relationship: WalkRelationship;
17797
+ /** Zero-based index within the parent's child list (sequence children only). */
17798
+ index?: number;
17799
+ /** Branch key when reached via a parallel branch. */
17800
+ branchKey?: string;
17801
+ }
17802
+ /**
17803
+ * Visitor interface for {@link walkWorkflowDefinition}.
17804
+ */
17805
+ interface WorkflowNodeVisitor {
17806
+ /** Called before visiting children. Return `false` to skip the subtree. */
17807
+ enter?(node: WorkflowNode, context: WalkContext): void | false;
17808
+ /** Called after all children have been visited. */
17809
+ leave?(node: WorkflowNode, context: WalkContext): void;
17810
+ }
17811
+ /**
17812
+ * Depth-first walk over a workflow definition tree.
17813
+ *
17814
+ * Visits every node in the tree, calling `enter` before children and `leave`
17815
+ * after. Handles all 4 recursive child relationships: `sequence.nodes`,
17816
+ * `parallel.branches`, `iterate.body`, and `iterate-chain.body`.
17817
+ * @param root - Root sequence node of the workflow definition.
17818
+ * @param visitor - Visitor with optional `enter`/`leave` callbacks.
17819
+ */
17820
+ declare function walkWorkflowDefinition(root: WorkflowSequenceNode, visitor: WorkflowNodeVisitor): void;
17821
+ //#endregion
17822
+ //#region core/contracts/src/workflow/projection.d.ts
17823
+ /** A segment in the definition-tree path encoding the relationship to the parent. */
17824
+ type WorkflowDefinitionPathSegment = {
17825
+ kind: 'node';
17826
+ id: string;
17827
+ } | {
17828
+ kind: 'branch';
17829
+ key: string;
17830
+ } | {
17831
+ kind: 'index';
17832
+ value: number;
17833
+ } | {
17834
+ kind: 'body';
17835
+ };
17836
+ /**
17837
+ * Ordered sequence of path segments from the root to a given node.
17838
+ * Encodes identity, position, and structural relationships.
17839
+ */
17840
+ type WorkflowDefinitionPath = readonly WorkflowDefinitionPathSegment[];
17841
+ /**
17842
+ * Node role in the static projection.
17843
+ *
17844
+ * - `leaf` — observable nodes that produce spans: station, delegate-agent, delegate-role, gate.
17845
+ * - `control` — container nodes with fan-out/fan-in semantics: parallel, iterate, iterate-chain.
17846
+ * - `structural` — organizational nodes in the static projection. Runtime frame
17847
+ * correlation is only emitted when the runtime creates frames for that node type.
17848
+ */
17849
+ type ProjectedNodeRole = 'leaf' | 'control' | 'structural';
17850
+ /**
17851
+ * A generic, UI-neutral projection of a workflow definition node.
17852
+ */
17853
+ interface ProjectedNode {
17854
+ /** Unique projection identity, derived from the definition-tree path. */
17855
+ key: string;
17856
+ /** Definition node ID — correlates with `WorkflowFrameState.nodeId` at runtime. */
17857
+ nodeId: string;
17858
+ /** Node type discriminant. */
17859
+ type: WorkflowNodeType;
17860
+ /** Node role in the static projection. */
17861
+ role: ProjectedNodeRole;
17862
+ /** Structured path encoding ancestor identities and relationships. */
17863
+ path: WorkflowDefinitionPath;
17864
+ /** Parent node's projection key, undefined for the root node. */
17865
+ parentKey: string | undefined;
17866
+ /** Branch key when this node is a direct child of a parallel branch. */
17867
+ branchKey?: string;
17868
+ }
17869
+ /** Edge kind describing the structural relationship between two projected nodes. */
17870
+ type ProjectedEdgeKind = 'sequence' | 'contains' | 'branch' | 'body';
17871
+ /**
17872
+ * A generic, UI-neutral edge between two projected workflow nodes.
17873
+ *
17874
+ * Edge kinds describe static structural relationships, not runtime
17875
+ * execution flow. Consumers that need fan-in/fan-out edges should
17876
+ * derive them from the structural graph.
17877
+ */
17878
+ interface ProjectedEdge {
17879
+ /** Source node projection key. */
17880
+ sourceKey: string;
17881
+ /** Target node projection key. */
17882
+ targetKey: string;
17883
+ /** Structural relationship kind. */
17884
+ kind: ProjectedEdgeKind;
17885
+ }
17886
+ /**
17887
+ * Result of projecting a workflow definition into a flat graph.
17888
+ */
17889
+ interface ProjectedWorkflowGraph {
17890
+ /** All nodes in the definition tree, in DFS order. */
17891
+ nodes: ProjectedNode[];
17892
+ /** All structural edges between nodes. */
17893
+ edges: ProjectedEdge[];
17894
+ }
17895
+ /**
17896
+ * Project a workflow definition into a flat, UI-neutral graph of nodes and edges.
17897
+ *
17898
+ * The projection walks the definition tree and emits:
17899
+ * - One {@link ProjectedNode} per definition node (DFS order).
17900
+ * - Structural {@link ProjectedEdge}s describing sequence ordering,
17901
+ * containment, branch, and body relationships.
17902
+ *
17903
+ * Edge kinds are structural — they describe the static definition topology,
17904
+ * not the runtime execution flow. Consumers that need execution-flow
17905
+ * semantics (e.g. fan-in/fan-out) should derive them from the structural graph.
17906
+ * @param definition - Workflow definition to project.
17907
+ * @returns Projected graph with nodes and edges.
17908
+ */
17909
+ declare function projectWorkflowGraph(definition: WorkflowDefinition): ProjectedWorkflowGraph;
17910
+ //#endregion
17308
17911
  //#region core/contracts/src/workflow/worker.d.ts
17309
17912
  /**
17310
17913
  * Bus authentication strategy for a workflow worker connection.
@@ -17365,6 +17968,10 @@ declare const WorkflowWorkerConfigSchema: z.ZodObject<{
17365
17968
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
17366
17969
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
17367
17970
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
17971
+ state: z.ZodOptional<z.ZodObject<{
17972
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
17973
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
17974
+ }, z.core.$strip>>;
17368
17975
  artifact: z.ZodOptional<z.ZodObject<{
17369
17976
  kind: z.ZodString;
17370
17977
  schemaVersion: z.ZodString;
@@ -17849,8 +18456,8 @@ declare const WorkLogExecutionSummarySchema: z.ZodObject<{
17849
18456
  completed: "completed";
17850
18457
  cancelled: "cancelled";
17851
18458
  failed: "failed";
17852
- running: "running";
17853
18459
  paused: "paused";
18460
+ running: "running";
17854
18461
  }>;
17855
18462
  startedAt: z.ZodNumber;
17856
18463
  completedAt: z.ZodOptional<z.ZodNumber>;
@@ -18414,6 +19021,35 @@ interface ArtifactContext<TData extends Record<string, unknown> = Record<string,
18414
19021
  */
18415
19022
  updateStatus(value: string): Promise<string>;
18416
19023
  }
19024
+ /**
19025
+ * Run-scoped mutable state API exposed on {@link StepContext}.
19026
+ *
19027
+ * Provides read and update access to the workflow's typed run state.
19028
+ * State mutations are sequence-numbered and conflict-checked by the
19029
+ * engine; the `update` method applies a producer function to a
19030
+ * structured clone of the current state, or accepts a returned replacement
19031
+ * value for primitive state.
19032
+ * @typeParam TState - The workflow's declared state type
19033
+ */
19034
+ interface WorkflowStateContext<TState> {
19035
+ /**
19036
+ * Retrieve the current state snapshot.
19037
+ * @returns The current state value
19038
+ */
19039
+ get(): Promise<TState>;
19040
+ /**
19041
+ * Apply a mutation to the current state.
19042
+ *
19043
+ * The `mutator` receives a mutable draft of the current state. Object and
19044
+ * array states can be mutated in place; primitive states should return the
19045
+ * replacement value.
19046
+ * The engine computes a JSON Patch from the mutation, persists it
19047
+ * with sequence numbering, and returns the accepted next state.
19048
+ * @param mutator - Function that mutates the draft state or returns a replacement
19049
+ * @returns The accepted next state after the mutation
19050
+ */
19051
+ update(mutator: (draft: TState) => TState | void | Promise<TState | void>): Promise<TState>;
19052
+ }
18417
19053
  /**
18418
19054
  * Platform and workspace context fields shared by both {@link WorkflowContext}
18419
19055
  * and {@link StepContext}.
@@ -18479,8 +19115,10 @@ type PreviousStepOutput<TOutput extends JsonValue> = {
18479
19115
  * `unknown` so the contracts package stays free of any bus implementation dependency.
18480
19116
  * Bind to `IMakaioBus` (from `@makaio/bus-core`) in host layers that need full bus
18481
19117
  * authoring surface access inside station handlers.
19118
+ * @typeParam TState - The workflow's declared run state type; defaults to `unknown`
19119
+ * when no state contract is declared on the workflow definition.
18482
19120
  */
18483
- interface StepContext<TTrigger, TPreviousSteps extends Record<string, PreviousStepOutput<JsonValue>>, TArtifactData extends Record<string, unknown> = Record<string, unknown>, TBus = unknown> extends WorkflowContextBase {
19121
+ interface StepContext<TTrigger, TPreviousSteps extends Record<string, PreviousStepOutput<JsonValue>>, TArtifactData extends Record<string, unknown> = Record<string, unknown>, TBus = unknown, TState = unknown> extends WorkflowContextBase {
18484
19122
  /** Typed payload from the trigger that started this execution. */
18485
19123
  readonly trigger: TTrigger;
18486
19124
  /**
@@ -18505,6 +19143,16 @@ interface StepContext<TTrigger, TPreviousSteps extends Record<string, PreviousSt
18505
19143
  * artifact could not be initialised.
18506
19144
  */
18507
19145
  readonly artifact?: ArtifactContext<TArtifactData>;
19146
+ /**
19147
+ * Run-scoped mutable state API.
19148
+ *
19149
+ * Present when the workflow declares a state contract via the `state`
19150
+ * field on the definition. Provides `get()` and `update()` methods
19151
+ * for reading and mutating the execution's working memory.
19152
+ *
19153
+ * `undefined` when no state contract is declared on the workflow.
19154
+ */
19155
+ readonly state?: WorkflowStateContext<TState>;
18508
19156
  /**
18509
19157
  * Runtime bus for station handlers that need to query or write durable
18510
19158
  * artifacts as part of their authored output.
@@ -18524,18 +19172,52 @@ interface StepContext<TTrigger, TPreviousSteps extends Record<string, PreviousSt
18524
19172
  readonly updateProgress: (update: WorkflowProgressUpdate) => Promise<void>;
18525
19173
  }
18526
19174
  /**
18527
- * Generic station handler a function accepting a {@link StepContext} and
19175
+ * Station handler context with state presence refined by the builder.
19176
+ *
19177
+ * Base {@link StepContext} keeps `state` optional because runtime contexts can
19178
+ * be constructed without a state contract. The authoring builder uses this
19179
+ * type so workflows that declare `.state<T>()` receive a required
19180
+ * `WorkflowStateContext<T>` in station handlers, while workflows without state
19181
+ * expose `state` as absent.
19182
+ * @typeParam TTrigger - The trigger payload type
19183
+ * @typeParam TPreviousSteps - Map of completed predecessor station outputs
19184
+ * @typeParam TArtifactData - Artifact data shape
19185
+ * @typeParam TBus - Runtime bus type supplied by the host runtime
19186
+ * @typeParam TState - The workflow's declared run state type
19187
+ */
19188
+ type StationStepContext<TTrigger, TPreviousSteps extends Record<string, PreviousStepOutput<JsonValue>>, TArtifactData extends Record<string, unknown> = Record<string, unknown>, TBus = unknown, TState = undefined> = Omit<StepContext<TTrigger, TPreviousSteps, TArtifactData, TBus, TState>, 'state'> & (unknown extends TState ? {
19189
+ readonly state?: WorkflowStateContext<TState>;
19190
+ } : [TState] extends [undefined] ? {
19191
+ readonly state?: undefined;
19192
+ } : {
19193
+ readonly state: WorkflowStateContext<TState>;
19194
+ });
19195
+ /**
19196
+ * Generic station handler — a function accepting a {@link StationStepContext} and
18528
19197
  * returning a JSON-serializable value.
18529
19198
  *
18530
19199
  * Used in the fluent builder methods where trigger and dependency types are
18531
- * not tracked at the builder call site.
19200
+ * tracked by the builder and erased for runtime handler storage.
19201
+ * @typeParam TTrigger - The trigger payload type
19202
+ * @typeParam TPreviousSteps - Map of completed predecessor station outputs
19203
+ * @typeParam TArtifactData - Artifact data shape
19204
+ * @typeParam TBus - Runtime bus type supplied by the host runtime
19205
+ * @typeParam TState - The workflow's declared run state type; defaults to
19206
+ * `unknown` for erased runtime-handler storage.
18532
19207
  */
18533
- type StationHandler = (ctx: StepContext<unknown, Record<string, PreviousStepOutput<JsonValue>>>) => JsonValue | Promise<JsonValue>;
19208
+ type StationHandler<TTrigger = unknown, TPreviousSteps extends Record<string, PreviousStepOutput<JsonValue>> = Record<string, PreviousStepOutput<JsonValue>>, TArtifactData extends Record<string, unknown> = Record<string, unknown>, TBus = unknown, TState = unknown> = {
19209
+ bivarianceHack(ctx: StationStepContext<TTrigger, TPreviousSteps, TArtifactData, TBus, TState>): JsonValue | Promise<JsonValue>;
19210
+ }['bivarianceHack'];
18534
19211
  /**
18535
19212
  * Generic iterate handler — same signature as {@link StationHandler} but
18536
19213
  * semantically used for `iterate` node bodies.
19214
+ * @typeParam TTrigger - The trigger payload type
19215
+ * @typeParam TPreviousSteps - Map of completed predecessor station outputs
19216
+ * @typeParam TArtifactData - Artifact data shape
19217
+ * @typeParam TBus - Runtime bus type supplied by the host runtime
19218
+ * @typeParam TState - The workflow's declared run state type
18537
19219
  */
18538
- type IterateHandler = StationHandler;
19220
+ type IterateHandler<TTrigger = unknown, TPreviousSteps extends Record<string, PreviousStepOutput<JsonValue>> = Record<string, PreviousStepOutput<JsonValue>>, TArtifactData extends Record<string, unknown> = Record<string, unknown>, TBus = unknown, TState = unknown> = StationHandler<TTrigger, TPreviousSteps, TArtifactData, TBus, TState>;
18539
19221
  //#endregion
18540
19222
  //#region core/contracts/src/workflow/authoring-triggers.d.ts
18541
19223
  /**
@@ -18796,6 +19478,20 @@ interface WorkflowZodSchemas {
18796
19478
  /** Gate resume schemas keyed by gate node ID. */
18797
19479
  readonly gates: Record<string, z.ZodTypeAny>;
18798
19480
  }
19481
+ /**
19482
+ * Typed state contract accepted by the fluent `.state()` builder method.
19483
+ *
19484
+ * The JSON Schema is serialized onto the workflow definition. The optional
19485
+ * initial value is typed for authoring-time handler context inference and is
19486
+ * also stored on the serializable definition when provided.
19487
+ * @typeParam TState - Workflow run-state shape declared by the author.
19488
+ */
19489
+ interface WorkflowStateAuthoringDefinition<TState extends JsonValue = JsonValue> {
19490
+ /** JSON Schema describing the workflow run-state shape. */
19491
+ readonly schema: Record<string, JsonValue>;
19492
+ /** Optional initial value for a new workflow execution. */
19493
+ readonly initial?: TState;
19494
+ }
18799
19495
  /**
18800
19496
  * The result of defining a workflow via the fluent builder.
18801
19497
  *
@@ -18849,8 +19545,9 @@ interface DefineWorkflowOptions<TTriggers extends readonly WorkflowTriggerDef<un
18849
19545
  * be passed wherever a built workflow is expected without an explicit `.build()`
18850
19546
  * call.
18851
19547
  * @typeParam TTrigger - Trigger payload type (from the union of added triggers)
19548
+ * @typeParam TState - Workflow run-state type declared via `.state()`.
18852
19549
  */
18853
- interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
19550
+ interface WorkflowBuilder<TTrigger = never, TState extends JsonValue | undefined = undefined> extends BuiltWorkflow {
18854
19551
  /**
18855
19552
  * Sets the workflow's input schema.
18856
19553
  *
@@ -18859,7 +19556,7 @@ interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
18859
19556
  * @param schema - Zod schema describing the workflow's input parameters
18860
19557
  * @returns This builder for chaining
18861
19558
  */
18862
- input(schema: z.ZodTypeAny): WorkflowBuilder<TTrigger>;
19559
+ input(schema: z.ZodTypeAny): WorkflowBuilder<TTrigger, TState>;
18863
19560
  /**
18864
19561
  * Sets the workflow's config schema.
18865
19562
  *
@@ -18868,7 +19565,7 @@ interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
18868
19565
  * @param schema - Zod schema describing the workflow's static configuration
18869
19566
  * @returns This builder for chaining
18870
19567
  */
18871
- config(schema: z.ZodTypeAny): WorkflowBuilder<TTrigger>;
19568
+ config(schema: z.ZodTypeAny): WorkflowBuilder<TTrigger, TState>;
18872
19569
  /**
18873
19570
  * Sets the workflow's output schema.
18874
19571
  *
@@ -18877,7 +19574,7 @@ interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
18877
19574
  * @param schema - Zod schema describing the workflow's primary output
18878
19575
  * @returns This builder for chaining
18879
19576
  */
18880
- output(schema: z.ZodTypeAny): WorkflowBuilder<TTrigger>;
19577
+ output(schema: z.ZodTypeAny): WorkflowBuilder<TTrigger, TState>;
18881
19578
  /**
18882
19579
  * Binds a primary artifact to the workflow.
18883
19580
  *
@@ -18886,7 +19583,18 @@ interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
18886
19583
  * @param options - Artifact binding configuration
18887
19584
  * @returns This builder for chaining
18888
19585
  */
18889
- artifact(options: ArtifactBindingOptions): WorkflowBuilder<TTrigger>;
19586
+ artifact(options: ArtifactBindingOptions): WorkflowBuilder<TTrigger, TState>;
19587
+ /**
19588
+ * Declares a typed run-state contract for this workflow.
19589
+ *
19590
+ * The state definition specifies a JSON Schema and optional initial value.
19591
+ * At execution start, the engine initializes the state snapshot from
19592
+ * `initial` (or `{}` when omitted). Station handlers access the state
19593
+ * via `ctx.state.get()` and `ctx.state.update()`.
19594
+ * @param definition - State contract with JSON Schema and optional initial value
19595
+ * @returns This builder for chaining
19596
+ */
19597
+ state<TNextState extends JsonValue>(definition: WorkflowStateAuthoringDefinition<TNextState>): WorkflowBuilder<TTrigger, TNextState>;
18890
19598
  /**
18891
19599
  * Appends a station node to the root sequence and registers the handler.
18892
19600
  *
@@ -18897,7 +19605,7 @@ interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
18897
19605
  * @param options - Optional node conditions (`when`, `skip`)
18898
19606
  * @returns This builder for chaining
18899
19607
  */
18900
- station(id: string, handler: StationHandler, options?: NodeOptions): WorkflowBuilder<TTrigger>;
19608
+ station(id: string, handler: StationHandler<TTrigger, Record<string, PreviousStepOutput<JsonValue>>, Record<string, unknown>, unknown, TState>, options?: NodeOptions): WorkflowBuilder<TTrigger, TState>;
18901
19609
  /**
18902
19610
  * Appends a delegate-agent node to the root sequence.
18903
19611
  * @param id - Unique node identifier
@@ -18905,7 +19613,7 @@ interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
18905
19613
  * @param options - Optional node conditions
18906
19614
  * @returns This builder for chaining
18907
19615
  */
18908
- delegateToAgent(id: string, agentConfig: AgentConfig, options?: NodeOptions): WorkflowBuilder<TTrigger>;
19616
+ delegateToAgent(id: string, agentConfig: AgentConfig, options?: NodeOptions): WorkflowBuilder<TTrigger, TState>;
18909
19617
  /**
18910
19618
  * Appends a delegate-role node to the root sequence.
18911
19619
  * @param id - Unique node identifier
@@ -18913,7 +19621,7 @@ interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
18913
19621
  * @param options - Optional node conditions and role delegation settings; `prompt` defaults to the node ID
18914
19622
  * @returns This builder for chaining
18915
19623
  */
18916
- delegateToRole(id: string, role: string, options?: DelegateToRoleOptions): WorkflowBuilder<TTrigger>;
19624
+ delegateToRole(id: string, role: string, options?: DelegateToRoleOptions): WorkflowBuilder<TTrigger, TState>;
18917
19625
  /**
18918
19626
  * Appends a parallel node with static branches to the root sequence.
18919
19627
  *
@@ -18925,7 +19633,7 @@ interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
18925
19633
  * @param branches - Ordered list of branch nodes
18926
19634
  * @returns This builder for chaining
18927
19635
  */
18928
- parallel(id: string, options: ParallelOptions, branches: WorkflowNode[]): WorkflowBuilder<TTrigger>;
19636
+ parallel(id: string, options: ParallelOptions, branches: WorkflowNode[]): WorkflowBuilder<TTrigger, TState>;
18929
19637
  /**
18930
19638
  * Appends a gate node to the root sequence.
18931
19639
  *
@@ -18936,7 +19644,7 @@ interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
18936
19644
  * @param options - Gate configuration including prompt and timeout
18937
19645
  * @returns This builder for chaining
18938
19646
  */
18939
- gate(id: string, options: GateOptions): WorkflowBuilder<TTrigger>;
19647
+ gate(id: string, options: GateOptions): WorkflowBuilder<TTrigger, TState>;
18940
19648
  /**
18941
19649
  * Appends an iterate node to the root sequence and registers the handler.
18942
19650
  * @param id - Unique iterate node identifier
@@ -18944,7 +19652,7 @@ interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
18944
19652
  * @param options - Iterate configuration including collection expression
18945
19653
  * @returns This builder for chaining
18946
19654
  */
18947
- iterate(id: string, handler: IterateHandler, options: IterateOptions): WorkflowBuilder<TTrigger>;
19655
+ iterate(id: string, handler: IterateHandler<TTrigger, Record<string, PreviousStepOutput<JsonValue>>, Record<string, unknown>, unknown, TState>, options: IterateOptions): WorkflowBuilder<TTrigger, TState>;
18948
19656
  /**
18949
19657
  * Appends an iterate-chain node to the root sequence.
18950
19658
  *
@@ -18955,13 +19663,13 @@ interface WorkflowBuilder<TTrigger = never> extends BuiltWorkflow {
18955
19663
  * @param options - Iterate configuration including collection expression
18956
19664
  * @returns This builder for chaining
18957
19665
  */
18958
- iterateChain(id: string, chain: WorkflowNode[], options: IterateOptions): WorkflowBuilder<TTrigger>;
19666
+ iterateChain(id: string, chain: WorkflowNode[], options: IterateOptions): WorkflowBuilder<TTrigger, TState>;
18959
19667
  /**
18960
19668
  * Appends a trigger to the workflow definition.
18961
19669
  * @param trigger - The trigger to add
18962
19670
  * @returns This builder with an expanded trigger payload union
18963
19671
  */
18964
- addTrigger<TPayload>(trigger: WorkflowTriggerDef<TPayload>): WorkflowBuilder<TTrigger | TPayload>;
19672
+ addTrigger<TPayload>(trigger: WorkflowTriggerDef<TPayload>): WorkflowBuilder<TTrigger | TPayload, TState>;
18965
19673
  /**
18966
19674
  * Appends an arbitrary pre-built node to the root sequence.
18967
19675
  *
@@ -19072,7 +19780,7 @@ declare function iterateChain(id: string, chain: WorkflowNode[], options: Iterat
19072
19780
  * .gate('approve', { prompt: 'Approve?', autoAction: 'reject', timeoutMs: null });
19073
19781
  * ```
19074
19782
  */
19075
- declare function defineWorkflow<const TTriggers extends readonly WorkflowTriggerDef<unknown>[] | undefined = undefined>(id: string, options?: DefineWorkflowOptions<TTriggers>): WorkflowBuilder<TriggerPayloadFromTriggers<TTriggers>>;
19783
+ declare function defineWorkflow<const TTriggers extends readonly WorkflowTriggerDef<unknown>[] | undefined = undefined>(id: string, options?: DefineWorkflowOptions<TTriggers>): WorkflowBuilder<TriggerPayloadFromTriggers<TTriggers>, undefined>;
19076
19784
  //#endregion
19077
19785
  //#region core/contracts/src/workflow/execution-hints.d.ts
19078
19786
  /**
@@ -19671,9 +20379,9 @@ declare const McpTransportConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
19671
20379
  }, z.core.$strip>], "type">;
19672
20380
  /** Exposure mode for MCP tools */
19673
20381
  declare const McpExposureModeSchema: z.ZodEnum<{
19674
- hidden: "hidden";
19675
20382
  direct: "direct";
19676
20383
  discovery: "discovery";
20384
+ hidden: "hidden";
19677
20385
  }>;
19678
20386
  /** Exposure mode variant that excludes hidden. */
19679
20387
  declare const McpNonHiddenExposureModeSchema: z.ZodEnum<{
@@ -19697,9 +20405,9 @@ declare const McpProfileConfigSchema: z.ZodObject<{
19697
20405
  directTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
19698
20406
  discoveryTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
19699
20407
  toolExposure: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
19700
- hidden: "hidden";
19701
20408
  direct: "direct";
19702
20409
  discovery: "discovery";
20410
+ hidden: "hidden";
19703
20411
  }>>>;
19704
20412
  }, z.core.$strip>;
19705
20413
  /** Resolved server info passed to adapter strategies */
@@ -19751,9 +20459,9 @@ declare const McpToolStateSchema: z.ZodObject<{
19751
20459
  description: z.ZodOptional<z.ZodString>;
19752
20460
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19753
20461
  exposureMode: z.ZodEnum<{
19754
- hidden: "hidden";
19755
20462
  direct: "direct";
19756
20463
  discovery: "discovery";
20464
+ hidden: "hidden";
19757
20465
  }>;
19758
20466
  enabled: z.ZodBoolean;
19759
20467
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -19815,9 +20523,9 @@ declare const McpSessionContextSchema: z.ZodObject<{
19815
20523
  description: z.ZodOptional<z.ZodString>;
19816
20524
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19817
20525
  exposureMode: z.ZodEnum<{
19818
- hidden: "hidden";
19819
20526
  direct: "direct";
19820
20527
  discovery: "discovery";
20528
+ hidden: "hidden";
19821
20529
  }>;
19822
20530
  enabled: z.ZodBoolean;
19823
20531
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -19834,9 +20542,9 @@ declare const McpSessionContextSchema: z.ZodObject<{
19834
20542
  description: z.ZodOptional<z.ZodString>;
19835
20543
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19836
20544
  exposureMode: z.ZodEnum<{
19837
- hidden: "hidden";
19838
20545
  direct: "direct";
19839
20546
  discovery: "discovery";
20547
+ hidden: "hidden";
19840
20548
  }>;
19841
20549
  enabled: z.ZodBoolean;
19842
20550
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -19902,9 +20610,9 @@ declare const McpRuntimeSessionContextSchema: z.ZodObject<{
19902
20610
  description: z.ZodOptional<z.ZodString>;
19903
20611
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19904
20612
  exposureMode: z.ZodEnum<{
19905
- hidden: "hidden";
19906
20613
  direct: "direct";
19907
20614
  discovery: "discovery";
20615
+ hidden: "hidden";
19908
20616
  }>;
19909
20617
  enabled: z.ZodBoolean;
19910
20618
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -19921,9 +20629,9 @@ declare const McpRuntimeSessionContextSchema: z.ZodObject<{
19921
20629
  description: z.ZodOptional<z.ZodString>;
19922
20630
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19923
20631
  exposureMode: z.ZodEnum<{
19924
- hidden: "hidden";
19925
20632
  direct: "direct";
19926
20633
  discovery: "discovery";
20634
+ hidden: "hidden";
19927
20635
  }>;
19928
20636
  enabled: z.ZodBoolean;
19929
20637
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -20008,9 +20716,9 @@ declare const McpSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubje
20008
20716
  directTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
20009
20717
  discoveryTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
20010
20718
  toolExposure: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
20011
- hidden: "hidden";
20012
20719
  direct: "direct";
20013
20720
  discovery: "discovery";
20721
+ hidden: "hidden";
20014
20722
  }>>>;
20015
20723
  }, _$zod_v4_core0.$strip>>;
20016
20724
  }, _$zod_v4_core0.$strip>;
@@ -20065,9 +20773,9 @@ declare const McpSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubje
20065
20773
  description: _$zod.ZodOptional<_$zod.ZodString>;
20066
20774
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
20067
20775
  exposureMode: _$zod.ZodEnum<{
20068
- hidden: "hidden";
20069
20776
  direct: "direct";
20070
20777
  discovery: "discovery";
20778
+ hidden: "hidden";
20071
20779
  }>;
20072
20780
  enabled: _$zod.ZodBoolean;
20073
20781
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -20084,9 +20792,9 @@ declare const McpSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubje
20084
20792
  description: _$zod.ZodOptional<_$zod.ZodString>;
20085
20793
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
20086
20794
  exposureMode: _$zod.ZodEnum<{
20087
- hidden: "hidden";
20088
20795
  direct: "direct";
20089
20796
  discovery: "discovery";
20797
+ hidden: "hidden";
20090
20798
  }>;
20091
20799
  enabled: _$zod.ZodBoolean;
20092
20800
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -21236,6 +21944,10 @@ declare const WorkerNodeDispatchRequestSchema: z.ZodObject<{
21236
21944
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
21237
21945
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
21238
21946
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
21947
+ state: z.ZodOptional<z.ZodObject<{
21948
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
21949
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
21950
+ }, z.core.$strip>>;
21239
21951
  artifact: z.ZodOptional<z.ZodObject<{
21240
21952
  kind: z.ZodString;
21241
21953
  schemaVersion: z.ZodString;
@@ -21574,6 +22286,10 @@ declare const WorkerNodeSchemas: {
21574
22286
  inputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
21575
22287
  configSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
21576
22288
  outputSchema: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
22289
+ state: z.ZodOptional<z.ZodObject<{
22290
+ schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
22291
+ initial: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
22292
+ }, z.core.$strip>>;
21577
22293
  artifact: z.ZodOptional<z.ZodObject<{
21578
22294
  kind: z.ZodString;
21579
22295
  schemaVersion: z.ZodString;
@@ -22157,6 +22873,10 @@ declare const WorkerNodeNamespace: _$_makaio_core0.BusNamespaceDefinition<"worke
22157
22873
  inputSchema: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
22158
22874
  configSchema: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
22159
22875
  outputSchema: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
22876
+ state: _$zod.ZodOptional<_$zod.ZodObject<{
22877
+ schema: _$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
22878
+ initial: _$zod.ZodOptional<_$zod.ZodType<_$_makaio_contracts0.JsonValue, unknown, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
22879
+ }, _$zod_v4_core0.$strip>>;
22160
22880
  artifact: _$zod.ZodOptional<_$zod.ZodObject<{
22161
22881
  kind: _$zod.ZodString;
22162
22882
  schemaVersion: _$zod.ZodString;
@@ -22664,6 +23384,10 @@ declare const WorkerNodeSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
22664
23384
  inputSchema: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
22665
23385
  configSchema: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
22666
23386
  outputSchema: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
23387
+ state: _$zod.ZodOptional<_$zod.ZodObject<{
23388
+ schema: _$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
23389
+ initial: _$zod.ZodOptional<_$zod.ZodType<_$_makaio_contracts0.JsonValue, unknown, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
23390
+ }, _$zod_v4_core0.$strip>>;
22667
23391
  artifact: _$zod.ZodOptional<_$zod.ZodObject<{
22668
23392
  kind: _$zod.ZodString;
22669
23393
  schemaVersion: _$zod.ZodString;
@@ -23284,4 +24008,4 @@ declare const FrameworkContractNamespaces: readonly RegistrableBusNamespaceDefin
23284
24008
  */
23285
24009
  declare const FrameworkStorageNamespaces: readonly RegistrableBusNamespaceDefinition[];
23286
24010
  //#endregion
23287
- export { type AIModel, type AIModelMetadata, AIModelSchema, type AIReasoningLevel, AIReasoningLevelSchema, AUTO_LAUNCH_CAPABILITY_ID, type ActionCategory, type ActionCategoryMap, type ActionIntent, type ActionShortcut, type ActionShortcutModifiers, type ActivatedSkillMetadata, type ActiveSkillState, type AdapterClientRef, type AdapterContribution, type AdapterDefinitionContract, AdapterNamespace, type AdapterProviderDefinitionContract, type AdapterProviderRef, type AdapterRuntimeOptions, type AdapterSelection, AdapterSubjects, type AgentComplete, type AgentConfig, type Message as AgentMessage, AgentNamespace, type AgentResolutionContext, AgentResolutionSubjects, type AgentRole, AgentSchemas, type AgentSelection, type AgentSelectionBase, AgentSelectionBaseSchema, type AgentSelectionKindMap, AgentSelectionSchema, type AgentStarted, AgentStatusSchema, AgentSubjects, type AgentToolApproveRequest, type AgentToolApproveResponse, AgentToolApproveSchema, type AnyArtifactKindDefinition, type ApprovalEntry, ApprovalNamespace, type ApprovalPolicy, ApprovalPolicySchema, ApprovalSubjects, type ArtifactActor, ArtifactActorSchema, type ArtifactBindingOptions, type ArtifactCompareRequest, ArtifactCompareRequestSchema, type ArtifactCompareResponse, ArtifactCompareResponseSchema, type ArtifactConflictPolicy, ArtifactConflictPolicySchema, type ArtifactContext, type ArtifactCreateRequest, type ArtifactCreateResponse, type ArtifactCreatedPayload, type ArtifactDataOf, type ArtifactDraft, type ArtifactDraftPatch, type ArtifactHookFilter, type ArtifactKindChangedPayload, type ArtifactKindDefinition, type ArtifactKindListRequest, type ArtifactKindListResponse, type ArtifactKindRegisterRequest, type ArtifactKindRegisterResponse, type ArtifactKindRegistration, ArtifactKindRegistrationSchema, type ArtifactLifecycleHookDefinition, type ArtifactLifecycleHookEvent, type ArtifactLifecycleHookRegistration, type ArtifactLifecycleHooksContributionContext, type ArtifactLifecycleSemanticEvent, type ArtifactMaterializationRef, ArtifactMaterializationRefSchema, ArtifactNamespace, type ArtifactObservation, type ArtifactObservationAddedPayload, ArtifactObservationSchema, type ArtifactOf, type ArtifactPatch, type ArtifactProjectionPolicy, ArtifactProjectionPolicySchema, ArtifactPublishTargetSchema, type ArtifactQueryRequest, ArtifactQueryRequestSchema, type ArtifactQueryResponse, type ArtifactQueryScope, ArtifactQueryScopeSchema, ArtifactQuerySourceSchema, type ArtifactReactionHookContext, type ArtifactReactionHookRegistration, type ArtifactRef, ArtifactRefSchema, type ArtifactRelation, type ArtifactRelationAddedPayload, ArtifactRelationSchema, type ArtifactRelationTarget, ArtifactRelationTargetSchema, type ArtifactRelationTypeListRequest, type ArtifactRelationTypeListResponse, type ArtifactRelationTypeRegisterRequest, type ArtifactRelationTypeRegisterResponse, type ArtifactRepresentations, ArtifactRepresentationsSchema, type ArtifactResolveRequest, type ArtifactResolveResponse, type ArtifactReviseRequest, type ArtifactReviseResponse, type ArtifactRevisedPayload, type ArtifactRevision, ArtifactRevisionSchema, ArtifactSchemas, type ArtifactScope, ArtifactScopeSchema, type ArtifactStatusChangedPayload, ArtifactSubjects, type ArtifactUpdateOperation, type ArtifactUpdater, type AudioChunk, type AutoLaunchDisableResponse, type AutoLaunchEnableRequest, type AutoLaunchEnableResponse, type AutoLaunchStatusResponse, type AwaitSubagentRequest, type AwaitSubagentResponse, BUILT_IN_THIN_WORKFLOW_PROVIDER_ID, type BeforeArtifactHookContext, type BeforeArtifactHookRegistration, type BlockData, type BootstrapAsset, type BootstrapAssetKey, type BootstrapChoice, type BootstrapDiscoverContext, type BootstrapExportContext, type BootstrapExportResult, type BootstrapImportContext, type BootstrapImportResult, type BootstrapResult, type BranchKind, BrowserEntrypointSchema, type BuiltWorkflow, BusEventPublishTargetSchema, type BusEventTrigger, BusEventTriggerSchema, BusEventWorkflowTrigger, BusRequestSourceSchema, COMPRESS_SESSION_LINEAGE_KIND, CONNECTOR_SWAP_CANCELLED_CODE, CONNECTOR_SWAP_WARNING_OPTION_IDS, CONNECTOR_SWAP_WARNING_SUPPRESSED_KEY, type CanonicalModelResolvedSelection, type CanonicalModelSelection, CanonicalModelSubjects, type CapabilityGroup, type CapabilityItem, type CapabilityPickerValue, CapabilitySubjects, type CapabilityToken, type CheckRunDetail, CheckRunDetailSchema, type ChecksSummary, ChecksSummarySchema, type CliArgManifest, type CliManifest, CliManifestSchema, type CliSubcommandManifest, type ClientAccountIdentifier, ClientAccountIdentifierSchema, type ClientAccountObserveRequest, type ClientBinaryCompatibility, ClientBinaryCompatibilitySchema, type ClientBinaryListEntry, type ClientDefinition, ClientDefinitionSchema, type ClientExecutionContext, type ClientIdentityObservation, ClientIdentityObservationSchema, type ClientInstallCompleted, type ClientInstallProgress, type ClientRuntimeObserveRequest, type ClientRuntimeStarted, type ClientScanResult, type ClientScanTarget, type ClientSessionAccountObserveRequest, type ClientSessionAccountObserveResponse, ClientSessionAccountObserveSchema, type ClientSessionLocator, type ClientSessionObservedBase, type ClientSessionStarted, type ClientSessionToolPost, type ClientSessionToolPre, type ClientSessionTurnCompleted, type ClientSessionUserPromptSubmitted, ClientSubjects, type ClientToolDefinition, ClientToolDefinitionSchema, type ClientUsageIngestRequest, type ClientUsageSnapshot, type ClientUsageWindow, type ClientVersionChanged, type ClientVoiceProviderDescriptor, type ClientWiringEntry, ClientWiringEntrySchema, type CompleteTaskRequest, type CompleteTaskResponse, type CompletionMode, CompletionModeSchema, CompressSessionLineageSchema, type CompressionMode, CompressionModeSchema, type ConfidenceBasis, ConfidenceBasisSchema, type ConfidenceLevel, ConfidenceLevelSchema, type ConfidenceMetadata, ConfidenceMetadataSchema, type Config, type ConfigGetResponse, ConfigSchema, ConfigSchemas, ConfigSubjects, type ConfigUpdateRequest, type ConfigUpdateResponse, ConnectorSwapCancelledError, type ContentSource, type ContextBundle, ContextBundleSchema, type ContextMode, ContextModeSchema, type ContextPublishTarget, ContextPublishTargetSchema, type ContextSource, ContextSourceSchema, type ContextWindowState, type CreateSessionEventActionResult, CredentialSubjects, type CronTriggerPayload, CronWorkflowTrigger, type CustomFieldDefinition, DEFAULT_CONSTRAINTS, DEFAULT_HARNESSES, type DefineWorkflowOptions, type DelegateAgentNodeBlockRun, type DelegateRoleNodeBlockRun, type DetachedDescriptor, type DetachedTransportConfig, DetachedTransportSchema, type DiscoveredAIModel, ERROR_CATEGORIES, EXECUTION_LIST_DEFAULT_LIMIT, EXECUTION_LIST_MAX_LIMIT, EXECUTION_LIST_MIN_LIMIT, type EmbeddedDescriptor, type EntityUIConfig, EntityUIConfigSchema, type EntrypointConfig, type ErrorCategory, ErrorCategorySchema, type EventFilter, type EvidenceRef, EvidenceRefSchema, type ExecuteContext, type ExecuteResult, type ExecuteSubagentResponse, type ExecutionHints, ExecutionHintsSchema, type ExecutionLink, type ExecutionLinkListQuery, ExecutionLinkListQuerySchema, ExecutionLinkSchema, type ExecutionLinkType, ExecutionLinkTypeSchema, type ExecutionListCursor, ExecutionListCursorSchema, type ExecutionListQuery, ExecutionListQuerySchema, ExecutionSourceHintSchema, type ExecutionStatus, ExecutionStatusSchema, type ExtensionArtifactLifecycleHooksContribution, type ExtensionBootstrap, type ExtensionConfigComponentProps, type ExtensionConfigProvider, type ExtensionContext, type ExtensionContributionProcessor, type ExtensionDependency, ExtensionDependencySchema, type ExtensionDescriptor, type ExtensionDescriptorBase, ExtensionDescriptorSchema, type ExtensionEntrypoints, ExtensionEntrypointsSchema, type ExtensionFieldTypeLoader, type ExtensionIdentity, type ExtensionService, type ExtensionServiceLifecycle, type ExtensionToken, type ExtensionTransitionActionsContribution, type ExtensionTransitionRulesContribution, type ExtensionWarning, type ExtensionWarningAction, type ExtensionWarningEntry, ExtensionWarningEntrySchema, ExtensionWarningSchema, ExtensionWorkflowTrigger, ExtensionWorkflowTriggerSchema, type ExtensionWorkflowTrigger$1 as ExtensionWorkflowTriggerShape, type ExtractTriggerPayload, FORK_SESSION_LINEAGE_KIND, type FacetAppliesTo, FacetAppliesToSchema, type FacetAuthority, FacetAuthoritySchema, type FacetCardinality, FacetCardinalitySchema, FacetNamespace, type FacetNamespaceChangedPayload, type FacetNamespaceDefinition, type FacetNamespaceListRequest, type FacetNamespaceListResponse, type FacetNamespaceRegisterRequest, type FacetNamespaceRegisterResponse, type FacetNamespaceRegistration, FacetNamespaceRegistrationSchema, FacetSchemas, FacetSubjects, type FetchFindingsParams, type FieldDefinition, type FieldOption, type FieldType, type FieldWidget, type FindingOrigin, FindingOriginSchema, type FindingSeverity, FindingSeveritySchema, type FindingStatus, FindingStatusSchema, type FindingTarget, FindingTargetSchema, type FindingsSummary, FindingsSummarySchema, type FocusContext, type ForkChildInfo, type ForkOptions, ForkSessionLineageSchema, type ForkTransforms, ForkTransformsSchema, type FormFieldProps, FrameworkContractNamespaces, FrameworkStorageNamespaces, GIT_HOOK_EVENTS_CAPABILITY_ID, type GateInstanceListQuery, GateInstanceListQuerySchema, type GateOptions, type GitHookCoverageReason, GitHookCoverageReasonSchema, type GitHookCoverageRequest, GitHookCoverageRequestSchema, type GitHookCoverageResponse, GitHookCoverageResponseSchema, type GitHookCoveredOperation, GitHookCoveredOperationSchema, GitHookNamespace, type GitHookNativeMergeEvent, GitHookNativeMergeEventSchema, type GitHookRewriteEvent, GitHookRewriteEventSchema, type GitHookRewritePair, GitHookRewritePairSchema, GitHookSchemas, GitHookSubjects, type HarnessDefinition, HarnessDefinitionBaseSchema, type HarnessDefinitionCreate, HarnessDefinitionCreateSchema, HarnessDefinitionSchema, HarnessSubjects, type HashTrigger, type HashTriggerContext, type HashTriggerMetadata, type HashTriggerSuggestResult, HostNamespace, HostSchemas, HostSubjects, type HttpServerLike, type IAutoLaunchProvider, type ICapabilityBasedService, type ICapabilityProvider, type IGitHookEventsProvider, type IMakaioSession, INTERACTIVE_DIALOG_TIMEOUT_MS, type IReviewSource, type IReviewerProcessor, type ISTTProvider, type IServerProvider, type IStepRunner, type ITTSProvider, type IVCSProvider, type IVisionProvider, type IVocabularyProvider, type IWorkerNodeProvider, type IWorkflowRunner, type IWorkflowTriggerTypeRegistry, type ImportStatus, type ImportUpsertRequest, type InstallStage, type InstalledVersionEntry, type IterateHandler, type IterateOptions, type JsonValue, JsonValueSchema, type KillSubagentRequest, type KillSubagentResponse, type LabelInfo, LabelInfoSchema, type LabelSemantic, LabelSemanticSchema, type ListSubagentsBySessionRequest, type ListSubagentsBySessionResponse, type LoaderContext, type LocalRef, LocalRefSchema, type LogSourceDefinition, LogSourceDefinitionSchema, MCP_CALL_TOOL_NAME, MCP_DISCOVER_TOOL_NAME, MCP_SCHEMA_TOOL_NAME, type MakaioExtension, type MakaioNodeExtension, type MakaioSessionAgent, MakaioSessionAgentSchema, type MakaioSessionEvent, MakaioSessionEventSchema, MakaioSessionSchema, type MakaioVariant, MakaioVariantSchema, type MakaioWebUiActions, type MakaioWebUiComponentProps, type MakaioWebUiRoute, type ManagedInstallDescriptor, ManagedInstallDescriptorSchema, type ManagedInstallStrategy, ManualWorkflowTrigger, MaterializationNamespace, MaterializationSchemas, MaterializationSubjects, type McpAgentContext, type McpAutoReconnectConfig, McpAutoReconnectConfigSchema, type McpExposureMode, McpExposureModeSchema, McpNonHiddenExposureModeSchema, type McpProfileConfig, McpProfileConfigSchema, type McpResolvedServer, type McpRuntimeSessionContext, McpRuntimeSessionContextSchema, type McpSessionContext, McpSubjects, McpToolPatternSchema, type McpToolState, type McpTransportConfig, McpTransportConfigSchema, type Message$1 as Message, type MessageBlock, type MessageDeliveryMode, type MessageEventFilter, type MessageInput, type MessageOutcome, type MessagePageCursor, MessagePageCursorSchema, type MessageRole, type MessageRouting, MessageRoutingSchema, type MessageRoutingStatus, MessageStorageNamespace, MessageStorageSubjects, type ModelFilterMode, ModelFilterModeSchema, ModelRegistryPublicNamespace, ModelRegistryPublicSubjects, type ModelRegistrySupportedModel, ModelRegistrySupportedModelSchema, type ModelRegistrySupportedModelsRequest, type ModelRegistrySupportedModelsResponse, type ModelVisibility, ModelVisibilitySchema, NativeSessionSupervisorSubjects, type NativeSupervisorAttachRequest, type NativeSupervisorLaunchRequest, type NativeSupervisorStatusRequest, type NativeSupervisorStopRequest, type NodeExtensionContext, type NodeOptions, type NormalizedWorkerNodeCapabilities, type NormalizedWorkerNodeRequirements, type NpmInstallDescriptor, type PageComponentProps, type PageDeclaration, type ParallelMode, type ParallelOptions, type PendingRequest, PendingRequestSchema, type PickerConfig, type PickerOpenContext, PlatformNamespace, PlatformSchemas, PlatformSubjects, type PostInstallDescriptor, type PreviousStepOutput, type ProcessCliOutputParams, type ProcessCommentsParams, type ProcessIssueCommentsParams, type ProcessReviewBodyParams, type ProfileToolCapabilitiesConfig, type ProjectedField, ProjectedFieldSchema, type ProjectedFieldSemantic, ProjectedFieldSemanticSchema, type ProtocolEndpoints, ProtocolEndpointsSchema, type ProtocolId, ProtocolIdSchema, type ProviderAIModel, ProviderAIModelSchema, type ProviderContext, ProviderContextSchema, type ProviderDefinition, type ProviderDefinitionInput, ProviderDefinitionSchema, type ProviderRegistration, type ProviderRuntime, type ProviderSummary, type ProviderUnregistration, type PullRequestState, PullRequestStateSchema, REVIEWER_PROCESSOR_CAPABILITY_ID, REVIEW_SOURCE_CAPABILITY_ID, ROOT_SESSION_LINEAGE_KIND, type ReadinessAssessment, ReadinessAssessmentSchema, type ReasoningLevelMap, type RegisteredStepBlock, type RegisteredTriggerBlock, type RelationTypeRegistration, RelationTypeRegistrationSchema, type RelayConfig, type ReportProgressRequest, type ReportProgressResponse, type RequestInputRpcRequest, type RequestInputRpcResponse, type RequiredTimeoutConfig, type ResolvableCanonicalModel, type ResolveAgentConfigResponse, type ResolveEnrichedPolicyResponse, type ResolvedAgentConfig, ResolvedAgentConfigSchema, type ResolvedApprovalEntry, type ResolvedContextEntry, ResolvedContextEntrySchema, type ResponseSchemaDescriptor, ResponseSchemaDescriptorSchema, type ResponseSchemaName, ResponseSchemaNameSchema, type ReviewFinding, ReviewFindingSchema, type ReviewIssueComment, ReviewIssueCommentSchema, ReviewNamespace, type ReviewRequestContext, ReviewSchemas, type ReviewSourceRateLimit, ReviewSourceRateLimitSchema, type ReviewSourceSnapshot, ReviewSubjects, type ReviewTriggerParams, type ReviewTriggerResult, type ReviewerState, ReviewerStateSchema, type ReviewsSummary, ReviewsSummarySchema, type RiskLevel, RootSessionLineageSchema, SERVER_CAPABILITY_ID, SESSION_EVENT_TYPES, SESSION_LINEAGE_KINDS, SNAPSHOT_VERSION, STORAGE_DIALECTS, type STTCapability, type STTMode, type STTProviderCapabilities, type STTRequest, type STTResult, STT_MODE_LITERALS, SUBAGENT_SESSION_LINEAGE_KIND, type SegmentPolicy, type SelectionChangeContext, type SelectionFeedback, type SendMessageRequest, type SendMessageResponse, type SendMessageResultInnerResult, type SendToSubagentRequest, type SendToSubagentResponse, type ServerAddress, type SessionContext, SessionContextSchema, type SessionCreated, type SessionDiscovered, SessionDiscoveredSchema, type SessionEventActionContext, type SessionEventActionDeclaration, type SessionEventActionOptions, type SessionEventPayload, SessionEventStorageNamespace, SessionEventStorageSubjects, type SessionEventType, type SessionEventTypeMap, type SessionExtensionContext, type SessionLineage, type SessionLineageKind, SessionLineageKindSchema, type SessionMessage, type SessionMessageBlock, type SessionMessageOrigin, SessionMessageSchema, type SessionMetadata, SessionNamespace, type SessionPreviewData, SessionPreviewDataSchema, type SendMessageRequest$1 as SessionSendMessageRequest, type SessionSnapshot, SessionSnapshotSchema, SessionStorageNamespace, SessionStorageSetRequestSchema, SessionStorageSetSessionSchema, SessionStorageSubjects, SessionStorageUpdateSchema, SessionSubjects, type SessionUpdatedEvent, type SessionWithPreview, SessionWithPreviewSchema, type SignedBinaryBucketInstallDescriptor, type SkillActivateRequest, type SkillActivateResponse, type SkillActivationMode, type SkillActivationTrigger, SkillActivationTriggerSchema, type SkillCatalogEntry, type SkillCatalogTurnEntry, type SkillDeactivationReason, SkillDeactivationReasonSchema, type SkillFrontmatter, SkillFrontmatterSchema, type SkillGetActiveSkillsRequest, type SkillGetActiveSkillsResponse, type SkillGetCatalogRequest, type SkillGetCatalogResponse, SkillNamespace, type SkillQuery, type SkillRecord, type SkillRecordInput, SkillRecordInputSchema, type SkillReinjection, type SkillRuntimePolicy, SkillRuntimePolicySchema, type SkillScope, type SkillSource, SkillStorageNamespace, SkillStorageSubjects, SkillSubjects, type SkillTurnEntry, type SnapshotExportOptions, type SnapshotImportConflictErrorData, type SnapshotPreviewData, type SpanRecord, SpanRecordSchema, type SpanStatus, SpanStatusSchema, type SpawnSubagentRpcRequest, SpawnSubagentRpcRequestSchema, type SpawnSubagentRpcResponse, type StandardFieldDefinition, type StartAgentRequest, type StartAgentResponse, type StationHandler, type StationNodeBlockRun, type StepCancelPayload, StepCancelPayloadSchema, type StepCancelSubject, type StepContext, type StepFinished, type StepRunConfig, StepRunConfigSchema, type StepRunResult, StepRunResultSchema, type StepRunnerBusAuth, type StepRunnerPlatformDefaults, type StepStarted, type StepTelemetry, StepTelemetrySchema, type StepType, StepTypeSchema, type StorageDialect, type StorageManifest, type StructuralEventFilter, type StructuredOutputValidation, type StructuredOutputValidationError, StructuredOutputValidationErrorSchema, StructuredOutputValidationSchema, type StructuredOutputValidationStatus, StructuredOutputValidationStatusSchema, type SubagentConfig, SubagentConfigSchema, type SubagentConstraints, SubagentError, SubagentErrorCode, type SubagentExecutionFailed, SubagentSessionLineageSchema, type SubagentStatus, SubagentStatusSchema, SubagentSubjects, type SubjectTelemetryAttributeValue, SubjectTelemetryAttributeValueSchema, SubjectTelemetryDirectionSchema, type SubjectTelemetryFact, SubjectTelemetryFactSchema, SubjectTelemetryMessageTypeSchema, SubjectTelemetryNamespace, SubjectTelemetrySchemas, SubjectTelemetrySubjects, type SuggestedChange, SuggestedChangeSchema, type SupervisorRuntimeSnapshot, type SupervisorSessionStatus, SupervisorSessionStatusSchema, type SurfaceBindingChangedPayload, type SurfaceBindingDefinition, type SurfaceBindingListRequest, type SurfaceBindingListResponse, type SurfaceBindingRegisterRequest, type SurfaceBindingRegisterResponse, type SurfaceBindingRegistration, SurfaceBindingRegistrationSchema, type SurfaceBindingTarget, SurfaceBindingTargetSchema, type SurfaceType, type SuspensionStrategy, SuspensionStrategySchema, type SystemPrompt, type TTSCapability, type TTSMode, type TTSProviderCapabilities, type TTSRequest, TTS_MODE_LITERALS, type TileDeclaration, type TileProps, type TimeoutCategory, type TimeoutConfig, TimeoutConfigSchema, type TokenUsage, TokenUsageSchema, type ToolAdapterIdentity, type ToolAnnotations, type ToolCallFormatterDeclaration, ToolCapability, ToolCapabilitySchema, type ToolCompleted, type ToolExecuteResult, type ToolExecutionContextOverrides, type ToolListItem, type ToolMetaTag, ToolNamespace, type ToolStarted, ToolSubjects, type TransitionActionFactory, type TransitionActionHandler, type TransitionActionInvocation, TransitionActionInvocationSchema, type TransitionCondition, TransitionConditionSchema, type TransitionEvaluationContext, type TransitionEventType, TransitionEventTypeSchema, type TransitionRuleDefinition, TransitionRuleDefinitionSchema, type TrayActivateRequest, type TrayActivateResponse, type TrayManifest, type Turn, type TurnInitiator, TurnInitiatorSchema, TurnSchema, type TurnStatus, TurnStatusSchema, type TurnUsage, TurnUsageSchema, UI_WARNINGS_CATEGORY, type UiContextDimension, type UiContextSnapshot, type UiContextValueMap, type UiNavigationLevel, type UiNavigationLevelMap, type UiRuntimeNavigationLevel, type UiScope, type UiScopeMap, type UpgradeHandler, type UsageMetrics, type VCSCheckRun, type VCSCommitStatus, VCSCommitStatusSchema, VCSEvents, VCSPRNamespace, VCSPRSchemas, VCSPRSubjects, type VCSPullRequest, type VCSPullRequestDetail, type VCSRepository, type VCSReview, type VCSReviewComment, VCSSubjects, VCS_CAPABILITY_ID, VIRTUAL_NAME_RE, type VariantGetInfoResponse, VariantNamespace, type VariantRequestUpgradeRequest, type VariantRequestUpgradeResponse, VariantSubjects, type VariantUpgradeProgressEvent, type VariantUpgradeStatus, VariantUpgradeStatusSchema, type VersionLiteral, VersionLiteralSchema, type VersionRange, VersionRangeSchema, type VisionAnalysisRequest, type VisionAnalysisResult, VisionNamespace, VisionSchemas, VisionSubjects, type VoicePipelineLeg, type VoicePipelineStrategy, type VoiceProviderPreference, VoiceProviderPreferenceSchema, type VoiceSessionStartResponse, type VoiceStatusState, VoiceSubjects, WORKER_NODE_CAPABILITY_ID, WORKFLOW_CANCELLED_REASON, type WebhookTriggerPayload, WebhookWorkflowTrigger, type WhenContext, type WidgetDeclaration, type WidgetProps, type WindowClosedEvent, type WindowCreateRequest, type WindowCreateResponse, type WindowFocusRequest, type WindowFocusResponse, type WindowLabelChangedEvent, type WindowListRequest, type WindowListResponse, type WindowOpenedEvent, type WindowParamSpec, type WindowState, WindowStateSchema, type WorkLogArtifactWrite, WorkLogArtifactWriteSchema, type WorkLogDynamicNodeMaterialization, WorkLogDynamicNodeMaterializationSchema, type WorkLogExecutionSummary, WorkLogExecutionSummarySchema, type WorkLogFrameEntry, WorkLogFrameEntrySchema, type WorkLogGateEvent, WorkLogGateEventSchema, type WorkLogStats, WorkLogStatsSchema, type WorkLogUsageSummary, WorkLogUsageSummarySchema, type WorkerContributionManifest, WorkerContributionManifestSchema, type WorkerContributionPackageRef, WorkerContributionPackageRefSchema, type WorkerNodeCapabilities, WorkerNodeCapabilitiesSchema, type WorkerNodeDispatch, WorkerNodeDispatchRequestSchema, WorkerNodeDispatchResponseSchema, type WorkerNodeHandle, WorkerNodeNamespace, type WorkerNodeProvisionRequest, type WorkerNodeReadyState, type WorkerNodeRequirements, WorkerNodeRequirementsSchema, WorkerNodeSchemas, WorkerNodeSubjects, type WorkflowArtifactBinding, WorkflowArtifactBindingSchema, type WorkflowArtifactRef, WorkflowArtifactRefSchema, type WorkflowBlockCollection, type WorkflowBlockMetadata, WorkflowBlocksNamespace, WorkflowBlocksSchemas, WorkflowBlocksSubjects, type WorkflowBuilder, type WorkflowCancelPayload, WorkflowCancelPayloadSchema, type WorkflowCancelSubject, type WorkflowContext, type WorkflowContextBase, type WorkflowDefinition, type WorkflowDefinitionProvenance, WorkflowDefinitionProvenanceSchema, WorkflowDefinitionSchema, type WorkflowDelegateAgentNode, WorkflowDelegateAgentNodeSchema, type WorkflowDelegateRoleNode, WorkflowDelegateRoleNodeSchema, type WorkflowExecution, WorkflowExecutionSchema, type WorkflowExecutionScope, WorkflowExecutionScopeSchema, type WorkflowFrameState, WorkflowFrameStateSchema, type WorkflowGateInstance, WorkflowGateInstanceSchema, type WorkflowGateNode, WorkflowGateNodeSchema, type WorkflowGateStatus, WorkflowGateStatusSchema, type WorkflowIterateChainNode, WorkflowIterateChainNodeSchema, type WorkflowIterateNode, WorkflowIterateNodeSchema, type WorkflowListQuery, WorkflowListQuerySchema, WorkflowNamespace, type WorkflowNode, type WorkflowNodeBase, WorkflowNodeBaseSchema, WorkflowNodeSchema, type WorkflowNodeType, WorkflowNodeTypeSchema, type WorkflowParallelMode, WorkflowParallelModeSchema, type WorkflowParallelNode, WorkflowParallelNodeSchema, type WorkflowProgressUpdate, WorkflowProgressUpdateSchema, type WorkflowResolvedAgent, WorkflowResolvedAgentSchema, type WorkflowResolvedRole, WorkflowResolvedRoleSchema, type WorkflowRunContext, WorkflowRunContextSchema, type WorkflowRunResult, WorkflowRunResultSchema, type WorkflowRunnerRunOptions, type WorkflowRunnerStepType, WorkflowSchemas, type WorkflowSequenceNode, WorkflowSequenceNodeSchema, type WorkflowStationNode, WorkflowStationNodeSchema, type WorkflowStepBlock, type WorkflowStepBlockRun, type WorkflowStepType, WorkflowStepTypeSchema, WorkflowSubjects, type WorkflowTrigger, type WorkflowTriggerBlock, type WorkflowTriggerDef, WorkflowTriggerSchema, type WorkflowTriggerTypeRecord, type WorkflowWorkerBusAuth, WorkflowWorkerBusAuthSchema, type WorkflowWorkerConfig, WorkflowWorkerConfigSchema, type WorkflowWorkerSource, WorkflowWorkerSourceSchema, type WorkflowZodSchemas, allMigrationsPaths, codexCapabilityMap, compareMessageCursorAsc, compareMessageCursorDesc, computeMetaTags, createClientDefinition, createStepCancelSubject, createWorkflowCancelSubject, defineArtifactKind, defineArtifactLifecycleHooks, defineFacetNamespace, defineSurfaceBinding, defineWorkflow, delegateToAgent, delegateToRole, dep, expandCapabilities, expandProfileToolCapabilities, extensionToken, gate, getBootstrapAssetKey, getExtensionWarningActionLabel, isCanonicalModelParseError, isConnectorSwapCancelledError, isDetachedDescriptor, isInViewBranch, isKnownSessionEvent, isUniversalRange, iterate, iterateChain, messageCursorKey, messageToCursor, parseCanonicalModel, parseExtensionConfig, parseExtensionDescriptor, primaryMigrationsPath, registerAutoLaunchProvider, registerGitHookEventsProvider, registerReviewSource, registerReviewerProcessor, registerServerProvider, registerVCSProvider, registerWorkerNodeProvider, resolveModelVisibility, safeParseExtensionDescriptor, safeValidateSnapshot, station, unregisterGitHookEventsProvider, unregisterReviewSource, unregisterReviewerProcessor, unregisterServerProvider, unregisterVCSProvider, unregisterWorkerNodeProvider, validateSkillScope, validateSnapshot, validateToolAdapterIdentity, versionSatisfies, zodSchemaToJsonRecord };
24011
+ export { type AIModel, type AIModelMetadata, AIModelSchema, type AIReasoningLevel, AIReasoningLevelSchema, AUTO_LAUNCH_CAPABILITY_ID, type ActionCategory, type ActionCategoryMap, type ActionIntent, type ActionShortcut, type ActionShortcutModifiers, type ActivatedSkillMetadata, type ActiveSkillState, type AdapterClientRef, type AdapterContribution, type AdapterDefinitionContract, AdapterNamespace, type AdapterProviderDefinitionContract, type AdapterProviderRef, type AdapterRuntimeOptions, type AdapterSelection, AdapterSubjects, type AgentComplete, type AgentConfig, type Message as AgentMessage, AgentNamespace, type AgentResolutionContext, AgentResolutionSubjects, type AgentRole, AgentSchemas, type AgentSelection, type AgentSelectionBase, AgentSelectionBaseSchema, type AgentSelectionKindMap, AgentSelectionSchema, type AgentStarted, AgentStatusSchema, AgentSubjects, type AgentToolApproveRequest, type AgentToolApproveResponse, AgentToolApproveSchema, type AnyArtifactKindDefinition, type ApprovalEntry, ApprovalNamespace, type ApprovalPolicy, ApprovalPolicySchema, ApprovalSubjects, type ArtifactActor, ArtifactActorSchema, type ArtifactBindingOptions, type ArtifactCompareRequest, ArtifactCompareRequestSchema, type ArtifactCompareResponse, ArtifactCompareResponseSchema, type ArtifactConflictPolicy, ArtifactConflictPolicySchema, type ArtifactContext, type ArtifactCreateRequest, type ArtifactCreateResponse, type ArtifactCreatedPayload, type ArtifactDataOf, type ArtifactDraft, type ArtifactDraftPatch, type ArtifactHookFilter, type ArtifactKindChangedPayload, type ArtifactKindDefinition, type ArtifactKindListRequest, type ArtifactKindListResponse, type ArtifactKindRegisterRequest, type ArtifactKindRegisterResponse, type ArtifactKindRegistration, ArtifactKindRegistrationSchema, type ArtifactLifecycleHookDefinition, type ArtifactLifecycleHookEvent, type ArtifactLifecycleHookRegistration, type ArtifactLifecycleHooksContributionContext, type ArtifactLifecycleSemanticEvent, type ArtifactMaterializationRef, ArtifactMaterializationRefSchema, ArtifactNamespace, type ArtifactObservation, type ArtifactObservationAddedPayload, ArtifactObservationSchema, type ArtifactOf, type ArtifactPatch, type ArtifactProjectionPolicy, ArtifactProjectionPolicySchema, ArtifactPublishTargetSchema, type ArtifactQueryRequest, ArtifactQueryRequestSchema, type ArtifactQueryResponse, type ArtifactQueryScope, ArtifactQueryScopeSchema, ArtifactQuerySourceSchema, type ArtifactReactionHookContext, type ArtifactReactionHookRegistration, type ArtifactRef, ArtifactRefSchema, type ArtifactRelation, type ArtifactRelationAddedPayload, ArtifactRelationSchema, type ArtifactRelationTarget, ArtifactRelationTargetSchema, type ArtifactRelationTypeListRequest, type ArtifactRelationTypeListResponse, type ArtifactRelationTypeRegisterRequest, type ArtifactRelationTypeRegisterResponse, type ArtifactRepresentations, ArtifactRepresentationsSchema, type ArtifactResolveRequest, type ArtifactResolveResponse, type ArtifactReviseRequest, type ArtifactReviseResponse, type ArtifactRevisedPayload, type ArtifactRevision, ArtifactRevisionSchema, ArtifactSchemas, type ArtifactScope, ArtifactScopeSchema, type ArtifactStatusChangedPayload, ArtifactSubjects, type ArtifactUpdateOperation, type ArtifactUpdater, type AudioChunk, type AutoLaunchDisableResponse, type AutoLaunchEnableRequest, type AutoLaunchEnableResponse, type AutoLaunchStatusResponse, type AwaitSubagentRequest, type AwaitSubagentResponse, BUILT_IN_THIN_WORKFLOW_PROVIDER_ID, type BeforeArtifactHookContext, type BeforeArtifactHookRegistration, type BlockData, type BootstrapAsset, type BootstrapAssetKey, type BootstrapChoice, type BootstrapDiscoverContext, type BootstrapExportContext, type BootstrapExportResult, type BootstrapImportContext, type BootstrapImportResult, type BootstrapResult, type BranchKind, BrowserEntrypointSchema, type BuiltWorkflow, BusEventPublishTargetSchema, type BusEventTrigger, BusEventTriggerSchema, BusEventWorkflowTrigger, BusRequestSourceSchema, COMPRESS_SESSION_LINEAGE_KIND, CONNECTOR_SWAP_CANCELLED_CODE, CONNECTOR_SWAP_WARNING_OPTION_IDS, CONNECTOR_SWAP_WARNING_SUPPRESSED_KEY, type CanonicalModelResolvedSelection, type CanonicalModelSelection, CanonicalModelSubjects, type CapabilityGroup, type CapabilityItem, type CapabilityPickerValue, CapabilitySubjects, type CapabilityToken, type CheckRunDetail, CheckRunDetailSchema, type ChecksSummary, ChecksSummarySchema, type CliArgManifest, type CliManifest, CliManifestSchema, type CliSubcommandManifest, type ClientAccountIdentifier, ClientAccountIdentifierSchema, type ClientAccountObserveRequest, type ClientBinaryCompatibility, ClientBinaryCompatibilitySchema, type ClientBinaryListEntry, type ClientDefinition, ClientDefinitionSchema, type ClientExecutionContext, type ClientIdentityObservation, ClientIdentityObservationSchema, type ClientInstallCompleted, type ClientInstallProgress, type ClientRuntimeObserveRequest, type ClientRuntimeStarted, type ClientScanResult, type ClientScanTarget, type ClientSessionAccountObserveRequest, type ClientSessionAccountObserveResponse, ClientSessionAccountObserveSchema, type ClientSessionLocator, type ClientSessionObservedBase, type ClientSessionStarted, type ClientSessionToolPost, type ClientSessionToolPre, type ClientSessionTurnCompleted, type ClientSessionUserPromptSubmitted, ClientSubjects, type ClientToolDefinition, ClientToolDefinitionSchema, type ClientUsageIngestRequest, type ClientUsageSnapshot, type ClientUsageWindow, type ClientVersionChanged, type ClientVoiceProviderDescriptor, type ClientWiringEntry, ClientWiringEntrySchema, type CompleteTaskRequest, type CompleteTaskResponse, type CompletionMode, CompletionModeSchema, CompressSessionLineageSchema, type CompressionMode, CompressionModeSchema, type ConfidenceBasis, ConfidenceBasisSchema, type ConfidenceLevel, ConfidenceLevelSchema, type ConfidenceMetadata, ConfidenceMetadataSchema, type Config, type ConfigGetResponse, ConfigSchema, ConfigSchemas, ConfigSubjects, type ConfigUpdateRequest, type ConfigUpdateResponse, ConnectorSwapCancelledError, type ContentSource, type ContextBundle, ContextBundleSchema, type ContextMode, ContextModeSchema, type ContextPublishTarget, ContextPublishTargetSchema, type ContextSource, ContextSourceSchema, type ContextWindowState, type CreateSessionEventActionResult, CredentialSubjects, type CronTriggerPayload, CronWorkflowTrigger, type CustomFieldDefinition, DEFAULT_CONSTRAINTS, DEFAULT_HARNESSES, type DefineWorkflowOptions, type DelegateAgentNodeBlockRun, type DelegateRoleNodeBlockRun, type DetachedDescriptor, type DetachedTransportConfig, DetachedTransportSchema, type DiscoveredAIModel, ERROR_CATEGORIES, EXECUTIONS_BY_ARTIFACT_REFS_DEFAULT_LIMIT_PER_REF, EXECUTIONS_BY_ARTIFACT_REFS_MAX_LIMIT_PER_REF, EXECUTIONS_BY_ARTIFACT_REFS_MAX_REFS, EXECUTION_LIST_DEFAULT_LIMIT, EXECUTION_LIST_MAX_LIMIT, EXECUTION_LIST_MIN_LIMIT, type EmbeddedDescriptor, type EntityUIConfig, EntityUIConfigSchema, type EntrypointConfig, type ErrorCategory, ErrorCategorySchema, type EventFilter, type EvidenceRef, EvidenceRefSchema, type ExecuteContext, type ExecuteResult, type ExecuteSubagentResponse, type ExecutionHints, ExecutionHintsSchema, type ExecutionLink, type ExecutionLinkListQuery, ExecutionLinkListQuerySchema, ExecutionLinkSchema, type ExecutionLinkType, ExecutionLinkTypeSchema, type ExecutionListCursor, ExecutionListCursorSchema, type ExecutionListQuery, ExecutionListQuerySchema, ExecutionSourceHintSchema, type ExecutionStatus, ExecutionStatusSchema, type ExecutionsByArtifactRefsQuery, ExecutionsByArtifactRefsQuerySchema, type ExtensionArtifactLifecycleHooksContribution, type ExtensionBootstrap, type ExtensionConfigComponentProps, type ExtensionConfigProvider, type ExtensionContext, type ExtensionContributionProcessor, type ExtensionDependency, ExtensionDependencySchema, type ExtensionDescriptor, type ExtensionDescriptorBase, ExtensionDescriptorSchema, type ExtensionEntrypoints, ExtensionEntrypointsSchema, type ExtensionFieldTypeLoader, type ExtensionIdentity, type ExtensionService, type ExtensionServiceLifecycle, type ExtensionToken, type ExtensionTransitionActionsContribution, type ExtensionTransitionRulesContribution, type ExtensionWarning, type ExtensionWarningAction, type ExtensionWarningEntry, ExtensionWarningEntrySchema, ExtensionWarningSchema, ExtensionWorkflowTrigger, ExtensionWorkflowTriggerSchema, type ExtensionWorkflowTrigger$1 as ExtensionWorkflowTriggerShape, type ExtractTriggerPayload, FORK_SESSION_LINEAGE_KIND, type FacetAppliesTo, FacetAppliesToSchema, type FacetAuthority, FacetAuthoritySchema, type FacetCardinality, FacetCardinalitySchema, FacetNamespace, type FacetNamespaceChangedPayload, type FacetNamespaceDefinition, type FacetNamespaceListRequest, type FacetNamespaceListResponse, type FacetNamespaceRegisterRequest, type FacetNamespaceRegisterResponse, type FacetNamespaceRegistration, FacetNamespaceRegistrationSchema, FacetSchemas, FacetSubjects, type FetchFindingsParams, type FieldDefinition, type FieldOption, type FieldType, type FieldWidget, type FindingOrigin, FindingOriginSchema, type FindingSeverity, FindingSeveritySchema, type FindingStatus, FindingStatusSchema, type FindingTarget, FindingTargetSchema, type FindingsSummary, FindingsSummarySchema, type FocusContext, type ForkChildInfo, type ForkOptions, ForkSessionLineageSchema, type ForkTransforms, ForkTransformsSchema, type FormFieldProps, FrameworkContractNamespaces, FrameworkStorageNamespaces, GIT_HOOK_EVENTS_CAPABILITY_ID, type GateInstanceListQuery, GateInstanceListQuerySchema, type GateOptions, type GitHookCoverageReason, GitHookCoverageReasonSchema, type GitHookCoverageRequest, GitHookCoverageRequestSchema, type GitHookCoverageResponse, GitHookCoverageResponseSchema, type GitHookCoveredOperation, GitHookCoveredOperationSchema, GitHookNamespace, type GitHookNativeMergeEvent, GitHookNativeMergeEventSchema, type GitHookRewriteEvent, GitHookRewriteEventSchema, type GitHookRewritePair, GitHookRewritePairSchema, GitHookSchemas, GitHookSubjects, type HarnessDefinition, HarnessDefinitionBaseSchema, type HarnessDefinitionCreate, HarnessDefinitionCreateSchema, HarnessDefinitionSchema, HarnessSubjects, type HashTrigger, type HashTriggerContext, type HashTriggerMetadata, type HashTriggerSuggestResult, HostNamespace, HostSchemas, HostSubjects, type HttpServerLike, type IAutoLaunchProvider, type ICapabilityBasedService, type ICapabilityProvider, type IGitHookEventsProvider, type IMakaioSession, INTERACTIVE_DIALOG_TIMEOUT_MS, type IReviewSource, type IReviewerProcessor, type ISTTProvider, type IServerProvider, type IStepRunner, type ITTSProvider, type IVCSProvider, type IVisionProvider, type IVocabularyProvider, type IWorkerNodeProvider, type IWorkflowRunner, type IWorkflowTriggerTypeRegistry, type ImportStatus, type ImportUpsertRequest, type InstallStage, type InstalledVersionEntry, type IterateHandler, type IterateOptions, type JsonPatchOperation, JsonPatchOperationSchema, type JsonValue, JsonValueSchema, type KillSubagentRequest, type KillSubagentResponse, type LabelInfo, LabelInfoSchema, type LabelSemantic, LabelSemanticSchema, type ListSubagentsBySessionRequest, type ListSubagentsBySessionResponse, type LoaderContext, type LocalRef, LocalRefSchema, type LogSourceDefinition, LogSourceDefinitionSchema, MCP_CALL_TOOL_NAME, MCP_DISCOVER_TOOL_NAME, MCP_SCHEMA_TOOL_NAME, type MakaioExtension, type MakaioNodeExtension, type MakaioSessionAgent, MakaioSessionAgentSchema, type MakaioSessionEvent, MakaioSessionEventSchema, MakaioSessionSchema, type MakaioVariant, MakaioVariantSchema, type MakaioWebUiActions, type MakaioWebUiComponentProps, type MakaioWebUiRoute, type ManagedInstallDescriptor, ManagedInstallDescriptorSchema, type ManagedInstallStrategy, ManualWorkflowTrigger, MaterializationNamespace, MaterializationSchemas, MaterializationSubjects, type McpAgentContext, type McpAutoReconnectConfig, McpAutoReconnectConfigSchema, type McpExposureMode, McpExposureModeSchema, McpNonHiddenExposureModeSchema, type McpProfileConfig, McpProfileConfigSchema, type McpResolvedServer, type McpRuntimeSessionContext, McpRuntimeSessionContextSchema, type McpSessionContext, McpSubjects, McpToolPatternSchema, type McpToolState, type McpTransportConfig, McpTransportConfigSchema, type Message$1 as Message, type MessageBlock, type MessageDeliveryMode, type MessageEventFilter, type MessageInput, type MessageOutcome, type MessagePageCursor, MessagePageCursorSchema, type MessageRole, type MessageRouting, MessageRoutingSchema, type MessageRoutingStatus, MessageStorageNamespace, MessageStorageSubjects, type ModelFilterMode, ModelFilterModeSchema, ModelRegistryPublicNamespace, ModelRegistryPublicSubjects, type ModelRegistrySupportedModel, ModelRegistrySupportedModelSchema, type ModelRegistrySupportedModelsRequest, type ModelRegistrySupportedModelsResponse, type ModelVisibility, ModelVisibilitySchema, NativeSessionSupervisorSubjects, type NativeSupervisorAttachRequest, type NativeSupervisorLaunchRequest, type NativeSupervisorStatusRequest, type NativeSupervisorStopRequest, type NodeExtensionContext, type NodeOptions, type NormalizedWorkerNodeCapabilities, type NormalizedWorkerNodeRequirements, type NpmInstallDescriptor, type PageComponentProps, type PageDeclaration, type ParallelMode, type ParallelOptions, type PendingRequest, PendingRequestSchema, type PickerConfig, type PickerOpenContext, PlatformNamespace, PlatformSchemas, PlatformSubjects, type PostInstallDescriptor, type PreviousStepOutput, type ProcessCliOutputParams, type ProcessCommentsParams, type ProcessIssueCommentsParams, type ProcessReviewBodyParams, type ProfileToolCapabilitiesConfig, type ProjectedEdge, type ProjectedEdgeKind, type ProjectedField, ProjectedFieldSchema, type ProjectedFieldSemantic, ProjectedFieldSemanticSchema, type ProjectedNode, type ProjectedNodeRole, type ProjectedWorkflowGraph, type ProtocolEndpoints, ProtocolEndpointsSchema, type ProtocolId, ProtocolIdSchema, type ProviderAIModel, ProviderAIModelSchema, type ProviderContext, ProviderContextSchema, type ProviderDefinition, type ProviderDefinitionInput, ProviderDefinitionSchema, type ProviderRegistration, type ProviderRuntime, type ProviderSummary, type ProviderUnregistration, type PullRequestState, PullRequestStateSchema, REVIEWER_PROCESSOR_CAPABILITY_ID, REVIEW_SOURCE_CAPABILITY_ID, ROOT_SESSION_LINEAGE_KIND, type ReadinessAssessment, ReadinessAssessmentSchema, type ReasoningLevelMap, type RegisteredStepBlock, type RegisteredTriggerBlock, type RelationTypeRegistration, RelationTypeRegistrationSchema, type RelayConfig, type ReportProgressRequest, type ReportProgressResponse, type RequestInputRpcRequest, type RequestInputRpcResponse, type RequiredTimeoutConfig, type ResolvableCanonicalModel, type ResolveAgentConfigResponse, type ResolveEnrichedPolicyResponse, type ResolvedAgentConfig, ResolvedAgentConfigSchema, type ResolvedApprovalEntry, type ResolvedContextEntry, ResolvedContextEntrySchema, type ResponseSchemaDescriptor, ResponseSchemaDescriptorSchema, type ResponseSchemaName, ResponseSchemaNameSchema, type ReviewFinding, ReviewFindingSchema, type ReviewIssueComment, ReviewIssueCommentSchema, ReviewNamespace, type ReviewRequestContext, ReviewSchemas, type ReviewSourceRateLimit, ReviewSourceRateLimitSchema, type ReviewSourceSnapshot, ReviewSubjects, type ReviewTriggerParams, type ReviewTriggerResult, type ReviewerState, ReviewerStateSchema, type ReviewsSummary, ReviewsSummarySchema, type RiskLevel, RootSessionLineageSchema, SERVER_CAPABILITY_ID, SESSION_EVENT_TYPES, SESSION_LINEAGE_KINDS, SNAPSHOT_VERSION, STORAGE_DIALECTS, type STTCapability, type STTMode, type STTProviderCapabilities, type STTRequest, type STTResult, STT_MODE_LITERALS, SUBAGENT_SESSION_LINEAGE_KIND, type SegmentPolicy, type SelectionChangeContext, type SelectionFeedback, type SendMessageRequest, type SendMessageResponse, type SendMessageResultInnerResult, type SendToSubagentRequest, type SendToSubagentResponse, type ServerAddress, type SessionContext, SessionContextSchema, type SessionCreated, type SessionDiscovered, SessionDiscoveredSchema, type SessionEventActionContext, type SessionEventActionDeclaration, type SessionEventActionOptions, type SessionEventPayload, SessionEventStorageNamespace, SessionEventStorageSubjects, type SessionEventType, type SessionEventTypeMap, type SessionExtensionContext, type SessionLineage, type SessionLineageKind, SessionLineageKindSchema, type SessionMessage, type SessionMessageBlock, type SessionMessageOrigin, SessionMessageSchema, type SessionMetadata, SessionNamespace, type SessionPreviewData, SessionPreviewDataSchema, type SendMessageRequest$1 as SessionSendMessageRequest, type SessionSnapshot, SessionSnapshotSchema, SessionStorageNamespace, SessionStorageSetRequestSchema, SessionStorageSetSessionSchema, SessionStorageSubjects, SessionStorageUpdateSchema, SessionSubjects, type SessionUpdatedEvent, type SessionWithPreview, SessionWithPreviewSchema, type SignedBinaryBucketInstallDescriptor, type SkillActivateRequest, type SkillActivateResponse, type SkillActivationMode, type SkillActivationTrigger, SkillActivationTriggerSchema, type SkillCatalogEntry, type SkillCatalogTurnEntry, type SkillDeactivationReason, SkillDeactivationReasonSchema, type SkillFrontmatter, SkillFrontmatterSchema, type SkillGetActiveSkillsRequest, type SkillGetActiveSkillsResponse, type SkillGetCatalogRequest, type SkillGetCatalogResponse, SkillNamespace, type SkillQuery, type SkillRecord, type SkillRecordInput, SkillRecordInputSchema, type SkillReinjection, type SkillRuntimePolicy, SkillRuntimePolicySchema, type SkillScope, type SkillSource, SkillStorageNamespace, SkillStorageSubjects, SkillSubjects, type SkillTurnEntry, type SnapshotExportOptions, type SnapshotImportConflictErrorData, type SnapshotPreviewData, type SpanRecord, SpanRecordSchema, type SpanStatus, SpanStatusSchema, type SpawnSubagentRpcRequest, SpawnSubagentRpcRequestSchema, type SpawnSubagentRpcResponse, type StandardFieldDefinition, type StartAgentRequest, type StartAgentResponse, type StationHandler, type StationNodeBlockRun, type StationStepContext, type StepCancelPayload, StepCancelPayloadSchema, type StepCancelSubject, type StepContext, type StepFinished, type StepRunConfig, StepRunConfigSchema, type StepRunResult, StepRunResultSchema, type StepRunnerBusAuth, type StepRunnerPlatformDefaults, type StepStarted, type StepTelemetry, StepTelemetrySchema, type StepType, StepTypeSchema, type StorageDialect, type StorageManifest, type StructuralEventFilter, type StructuredOutputValidation, type StructuredOutputValidationError, StructuredOutputValidationErrorSchema, StructuredOutputValidationSchema, type StructuredOutputValidationStatus, StructuredOutputValidationStatusSchema, type SubagentConfig, SubagentConfigSchema, type SubagentConstraints, SubagentError, SubagentErrorCode, type SubagentExecutionFailed, SubagentSessionLineageSchema, type SubagentStatus, SubagentStatusSchema, SubagentSubjects, type SubjectTelemetryAttributeValue, SubjectTelemetryAttributeValueSchema, SubjectTelemetryDirectionSchema, type SubjectTelemetryFact, SubjectTelemetryFactSchema, SubjectTelemetryMessageTypeSchema, SubjectTelemetryNamespace, SubjectTelemetrySchemas, SubjectTelemetrySubjects, type SuggestedChange, SuggestedChangeSchema, type SupervisorRuntimeSnapshot, type SupervisorSessionStatus, SupervisorSessionStatusSchema, type SurfaceBindingChangedPayload, type SurfaceBindingDefinition, type SurfaceBindingListRequest, type SurfaceBindingListResponse, type SurfaceBindingRegisterRequest, type SurfaceBindingRegisterResponse, type SurfaceBindingRegistration, SurfaceBindingRegistrationSchema, type SurfaceBindingTarget, SurfaceBindingTargetSchema, type SurfaceType, type SuspensionStrategy, SuspensionStrategySchema, type SystemPrompt, type TTSCapability, type TTSMode, type TTSProviderCapabilities, type TTSRequest, TTS_MODE_LITERALS, type TileDeclaration, type TileProps, type TimeoutCategory, type TimeoutConfig, TimeoutConfigSchema, type TokenUsage, TokenUsageSchema, type ToolAdapterIdentity, type ToolAnnotations, type ToolCallFormatterDeclaration, ToolCapability, ToolCapabilitySchema, type ToolCompleted, type ToolExecuteResult, type ToolExecutionContextOverrides, type ToolListItem, type ToolMetaTag, ToolNamespace, type ToolStarted, ToolSubjects, type TransitionActionFactory, type TransitionActionHandler, type TransitionActionInvocation, TransitionActionInvocationSchema, type TransitionCondition, TransitionConditionSchema, type TransitionEvaluationContext, type TransitionEventType, TransitionEventTypeSchema, type TransitionRuleDefinition, TransitionRuleDefinitionSchema, type TrayActivateRequest, type TrayActivateResponse, type TrayManifest, type Turn, type TurnInitiator, TurnInitiatorSchema, TurnSchema, type TurnStatus, TurnStatusSchema, type TurnUsage, TurnUsageSchema, UI_WARNINGS_CATEGORY, type UiContextDimension, type UiContextSnapshot, type UiContextValueMap, type UiNavigationLevel, type UiNavigationLevelMap, type UiRuntimeNavigationLevel, type UiScope, type UiScopeMap, type UpgradeHandler, type UsageMetrics, type VCSCheckRun, type VCSCommitStatus, VCSCommitStatusSchema, VCSEvents, VCSPRNamespace, VCSPRSchemas, VCSPRSubjects, type VCSPullRequest, type VCSPullRequestDetail, type VCSRepository, type VCSReview, type VCSReviewComment, VCSSubjects, VCS_CAPABILITY_ID, VIRTUAL_NAME_RE, type VariantGetInfoResponse, VariantNamespace, type VariantRequestUpgradeRequest, type VariantRequestUpgradeResponse, VariantSubjects, type VariantUpgradeProgressEvent, type VariantUpgradeStatus, VariantUpgradeStatusSchema, type VersionLiteral, VersionLiteralSchema, type VersionRange, VersionRangeSchema, type VisionAnalysisRequest, type VisionAnalysisResult, VisionNamespace, VisionSchemas, VisionSubjects, type VoicePipelineLeg, type VoicePipelineStrategy, type VoiceProviderPreference, VoiceProviderPreferenceSchema, type VoiceSessionStartResponse, type VoiceStatusState, VoiceSubjects, WORKER_NODE_CAPABILITY_ID, WORKFLOW_CANCELLED_REASON, type WalkContext, type WalkRelationship, type WebhookTriggerPayload, WebhookWorkflowTrigger, type WhenContext, type WidgetDeclaration, type WidgetProps, type WindowClosedEvent, type WindowCreateRequest, type WindowCreateResponse, type WindowFocusRequest, type WindowFocusResponse, type WindowLabelChangedEvent, type WindowListRequest, type WindowListResponse, type WindowOpenedEvent, type WindowParamSpec, type WindowState, WindowStateSchema, type WorkLogArtifactWrite, WorkLogArtifactWriteSchema, type WorkLogDynamicNodeMaterialization, WorkLogDynamicNodeMaterializationSchema, type WorkLogExecutionSummary, WorkLogExecutionSummarySchema, type WorkLogFrameEntry, WorkLogFrameEntrySchema, type WorkLogGateEvent, WorkLogGateEventSchema, type WorkLogStats, WorkLogStatsSchema, type WorkLogUsageSummary, WorkLogUsageSummarySchema, type WorkerContributionManifest, WorkerContributionManifestSchema, type WorkerContributionPackageRef, WorkerContributionPackageRefSchema, type WorkerNodeCapabilities, WorkerNodeCapabilitiesSchema, type WorkerNodeDispatch, WorkerNodeDispatchRequestSchema, WorkerNodeDispatchResponseSchema, type WorkerNodeHandle, WorkerNodeNamespace, type WorkerNodeProvisionRequest, type WorkerNodeReadyState, type WorkerNodeRequirements, WorkerNodeRequirementsSchema, WorkerNodeSchemas, WorkerNodeSubjects, type WorkflowArtifactBinding, WorkflowArtifactBindingSchema, type WorkflowArtifactRef, WorkflowArtifactRefSchema, type WorkflowBlockCollection, type WorkflowBlockMetadata, WorkflowBlocksNamespace, WorkflowBlocksSchemas, WorkflowBlocksSubjects, type WorkflowBuilder, type WorkflowCancelPayload, WorkflowCancelPayloadSchema, type WorkflowCancelSubject, type WorkflowContext, type WorkflowContextBase, type WorkflowDefinition, type WorkflowDefinitionPath, type WorkflowDefinitionPathSegment, type WorkflowDefinitionProvenance, WorkflowDefinitionProvenanceSchema, WorkflowDefinitionSchema, type WorkflowDelegateAgentNode, WorkflowDelegateAgentNodeSchema, type WorkflowDelegateRoleNode, WorkflowDelegateRoleNodeSchema, type WorkflowExecution, WorkflowExecutionSchema, type WorkflowExecutionScope, WorkflowExecutionScopeSchema, type WorkflowFrameState, WorkflowFrameStateSchema, type WorkflowGateInstance, WorkflowGateInstanceSchema, type WorkflowGateNode, WorkflowGateNodeSchema, type WorkflowGateStatus, WorkflowGateStatusSchema, type WorkflowIterateChainNode, WorkflowIterateChainNodeSchema, type WorkflowIterateNode, WorkflowIterateNodeSchema, type WorkflowListQuery, WorkflowListQuerySchema, WorkflowNamespace, type WorkflowNode, type WorkflowNodeBase, WorkflowNodeBaseSchema, WorkflowNodeSchema, type WorkflowNodeType, WorkflowNodeTypeSchema, type WorkflowNodeVisitor, type WorkflowParallelMode, WorkflowParallelModeSchema, type WorkflowParallelNode, WorkflowParallelNodeSchema, type WorkflowProgressUpdate, WorkflowProgressUpdateSchema, type WorkflowResolvedAgent, WorkflowResolvedAgentSchema, type WorkflowResolvedRole, WorkflowResolvedRoleSchema, type WorkflowRunContext, WorkflowRunContextSchema, type WorkflowRunResult, WorkflowRunResultSchema, type WorkflowRunnerRunOptions, type WorkflowRunnerStepType, WorkflowSchemas, type WorkflowSequenceNode, WorkflowSequenceNodeSchema, type WorkflowStateAuthoringDefinition, type WorkflowStateContext, type WorkflowStateDefinition, WorkflowStateDefinitionSchema, type WorkflowStationNode, WorkflowStationNodeSchema, type WorkflowStepBlock, type WorkflowStepBlockRun, type WorkflowStepType, WorkflowStepTypeSchema, WorkflowSubjects, type WorkflowTrigger, type WorkflowTriggerBlock, type WorkflowTriggerDef, WorkflowTriggerSchema, type WorkflowTriggerTypeRecord, type WorkflowWorkerBusAuth, WorkflowWorkerBusAuthSchema, type WorkflowWorkerConfig, WorkflowWorkerConfigSchema, type WorkflowWorkerSource, WorkflowWorkerSourceSchema, type WorkflowZodSchemas, allMigrationsPaths, codexCapabilityMap, compareMessageCursorAsc, compareMessageCursorDesc, computeMetaTags, createClientDefinition, createStepCancelSubject, createWorkflowCancelSubject, defineArtifactKind, defineArtifactLifecycleHooks, defineFacetNamespace, defineSurfaceBinding, defineWorkflow, delegateToAgent, delegateToRole, dep, expandCapabilities, expandProfileToolCapabilities, extensionToken, gate, getBootstrapAssetKey, getExtensionWarningActionLabel, isCanonicalModelParseError, isConnectorSwapCancelledError, isDetachedDescriptor, isInViewBranch, isKnownSessionEvent, isUniversalRange, iterate, iterateChain, messageCursorKey, messageToCursor, parseArtifactRef, parseCanonicalModel, parseExtensionConfig, parseExtensionDescriptor, primaryMigrationsPath, projectWorkflowGraph, registerAutoLaunchProvider, registerGitHookEventsProvider, registerReviewSource, registerReviewerProcessor, registerServerProvider, registerVCSProvider, registerWorkerNodeProvider, resolveModelVisibility, safeParseExtensionDescriptor, safeValidateSnapshot, serializeArtifactRef, station, unregisterGitHookEventsProvider, unregisterReviewSource, unregisterReviewerProcessor, unregisterServerProvider, unregisterVCSProvider, unregisterWorkerNodeProvider, validateSkillScope, validateSnapshot, validateToolAdapterIdentity, versionSatisfies, walkWorkflowDefinition, zodSchemaToJsonRecord };