@makaio/framework 1.0.0-dev-1788978977154 → 1.0.0-dev-1789000242829
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +2 -2
- package/dist/{2020-CpDjcHDh.mjs → 2020-DvDj4r_K.mjs} +1 -1
- package/dist/{account-identity-D00LLclm.mjs → account-identity-CNdiLYaM.mjs} +1 -1
- package/dist/{adapter-D92pfm_b.mjs → adapter-BdMny6vw.mjs} +1 -1
- package/dist/adapters/claude/index.d.mts +24 -24
- package/dist/adapters/index.mjs +1 -1
- package/dist/artifact-Cxm5ZX7L.mjs +1 -0
- package/dist/{auth-CB4an9bh.mjs → auth-BIgwGHp-.mjs} +1 -1
- package/dist/{authority-state-bootstrap-B8jG1zI1.mjs → authority-state-bootstrap-DVFYemDL.mjs} +1 -1
- package/dist/{automation-trigger-xNDX0Am_.mjs → automation-trigger-CQNQpzkA.mjs} +1 -1
- package/dist/bus/index.mjs +8 -1
- package/dist/{caller-owned-adapter-stub-oM1G1KvC.mjs → caller-owned-adapter-stub-NiR7KT2N.mjs} +1 -1
- package/dist/{canonical-model-D7Cg0l2R.mjs → canonical-model-BMnzRhG_.mjs} +1 -1
- package/dist/{capabilities-D2ggcMem.mjs → capabilities-CEwSeTB3.mjs} +1 -1
- package/dist/{client-CpUVfDxa.mjs → client-C0HcPzvw.mjs} +1 -1
- package/dist/{code-execution-CMqsHnGg.mjs → code-execution-BhUo84eg.mjs} +1 -1
- package/dist/{compression-Civ-rf-O.mjs → compression-DvPXSBWS.mjs} +1 -1
- package/dist/{config-namespace-CQnsvr77.mjs → config-namespace-CE3KasJn.mjs} +1 -1
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/artifact/index.d.mts +3 -3
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/auth/index.mjs +1 -1
- package/dist/contracts/automation-trigger/index.mjs +1 -1
- package/dist/contracts/canonical-model/index.mjs +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/capabilities/index.mjs +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/code-execution/index.mjs +1 -1
- package/dist/contracts/common/index.mjs +1 -1
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/facet/index.mjs +1 -1
- package/dist/contracts/harness/index.mjs +1 -1
- package/dist/contracts/host/index.mjs +1 -1
- package/dist/contracts/index.d.mts +22 -22
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +1 -1
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/model-registry/index.mjs +1 -1
- package/dist/contracts/native-session-supervisor/index.mjs +1 -1
- package/dist/contracts/platform/index.mjs +1 -1
- package/dist/contracts/provider/index.mjs +1 -1
- package/dist/contracts/reaction/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +1 -1
- package/dist/contracts/shared/index.mjs +1 -1
- package/dist/contracts/skill/index.mjs +1 -1
- package/dist/contracts/telemetry/index.mjs +1 -1
- package/dist/contracts/timeout/index.mjs +1 -1
- package/dist/contracts/toast/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/variant/index.mjs +1 -1
- package/dist/contracts/worker/index.d.mts +1 -1
- package/dist/contracts/worker/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{definition-Dqw0YJdi.mjs → definition-o5Dfg5j-.mjs} +1 -1
- package/dist/{dist-DeI9zYMP.mjs → dist-DMIaE8sg.mjs} +1 -1
- package/dist/{execution-target-_oVNW6Zm.mjs → execution-target-Ba7b_UmX.mjs} +1 -1
- package/dist/{extension-CAi7bbyv.mjs → extension-D9D8tJQY.mjs} +1 -1
- package/dist/{extension-CrghVa93.mjs → extension-GQEL-NCV.mjs} +1 -1
- package/dist/{framework-packages-BOPhhtK7.mjs → framework-packages-DdCJ4JsE.mjs} +1 -1
- package/dist/{handlers-YPTyZDhF.mjs → handlers-CqL2TWbk.mjs} +1 -1
- package/dist/{harness-Ds1I4smU.mjs → harness-CYzkReGi.mjs} +1 -1
- package/dist/{index-2ww5IWeo.d.mts → index-BTluq4-E.d.mts} +85 -42
- package/dist/{index-CQ8MVY5G.d.mts → index-BxJRljy-.d.mts} +77 -77
- package/dist/{index-CWuPfOzU.d.mts → index-CCNCo440.d.mts} +5 -5
- package/dist/{index-OQeNNbiX2.d.mts → index-CRM23ToM2.d.mts} +2 -2
- package/dist/{index-D_oDoazF.d.mts → index-D7IZQNhD.d.mts} +1 -1
- package/dist/{index-h7_ddTvG2.d.mts → index-DR308wUB2.d.mts} +3 -3
- package/dist/{index-VLZJ3Scz.d.mts → index-DvoitgXV.d.mts} +5 -5
- package/dist/{index-CWq-9Mpk.d.mts → index-GTCM4lXx.d.mts} +1 -1
- package/dist/{index-CVBlYxKV2.d.mts → index-hm8NV4CJ2.d.mts} +4 -4
- package/dist/kernel/cli/index.mjs +1 -1
- package/dist/kernel/cli/register.mjs +1 -1
- package/dist/kernel/cli/schemas.mjs +1 -1
- package/dist/kernel/extension/index.mjs +1 -1
- package/dist/kernel/index.mjs +1 -1
- package/dist/kernel/namespace/index.mjs +1 -1
- package/dist/kernel/observability/index.mjs +1 -1
- package/dist/kernel/providers/index.mjs +1 -1
- package/dist/kernel/window/index.mjs +1 -1
- package/dist/kind-registration-BanX_UAF.mjs +1 -0
- package/dist/{materialization-BwC7pVg2.mjs → materialization--bg6ZwQd.mjs} +1 -1
- package/dist/mcp-http-server/index.mjs +1 -1
- package/dist/model-Dya0clsM.mjs +1 -0
- package/dist/{namespace-CnRcpgJ8.mjs → namespace-CD9mJGhU.mjs} +1 -1
- package/dist/{namespace-B1sjokHd.d.mts → namespace-CfA0C0JR.d.mts} +2 -2
- package/dist/namespace-D53UGrP6.mjs +1 -0
- package/dist/{namespace-Cy62a3YP.d.mts → namespace-Dmbm2JzV.d.mts} +2 -2
- package/dist/{native-session-supervisor-B0rziwHI.mjs → native-session-supervisor-i3PeijHn.mjs} +1 -1
- package/dist/{orchestrator-shared-CmS8iU9_.mjs → orchestrator-shared-DMldWEah.mjs} +1 -1
- package/dist/{ownership-memory-handler-DMirNILL.mjs → ownership-memory-handler-LXaweX6V.mjs} +1 -1
- package/dist/{package-Co36_pRw.mjs → package-BFto8lbP.mjs} +1 -1
- package/dist/{package-BDaNGoBY.mjs → package-BT94BLu4.mjs} +1 -1
- package/dist/{package-DQgqWIcX.d.mts → package-BaTrCWZl.d.mts} +1 -1
- package/dist/package.json +1 -1
- package/dist/packages-DAw3Z011.mjs +1 -0
- package/dist/{profile-C9RV7ao-.mjs → profile-Cjq4QnUQ.mjs} +1 -1
- package/dist/{provider-context-BPITm0cn.mjs → provider-context-BpabfMlj.mjs} +1 -1
- package/dist/{provider-context-CyGvwXPz.mjs → provider-context-CYUUoI6x.mjs} +1 -1
- package/dist/{resolved-M6PyrgFr.mjs → resolved-XQTiHgrA.mjs} +1 -1
- package/dist/runtime-node/index.mjs +1 -1
- package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
- package/dist/{schema-DrHrto2J.mjs → schema-BVbkNHVQ.mjs} +1 -1
- package/dist/{schemas-DGKWi7mk.d.mts → schemas-CQe4xCRn.d.mts} +2 -2
- package/dist/{schemas-DRho446W.mjs → schemas-NKlV5jqJ.mjs} +1 -1
- package/dist/{schemas-DyZNwquY.mjs → schemas-QEr2LI43.mjs} +1 -1
- package/dist/{schemas-uWyTgMWm.d.mts → schemas-bcDK-fK3.d.mts} +17 -8
- package/dist/{schemas-CQKfd2Xd.mjs → schemas-pHboaOxJ.mjs} +1 -1
- package/dist/{schemas-C_kxk6gr.d.mts → schemas-yXs929kr.d.mts} +7 -7
- package/dist/{selection-BDs7K53w.mjs → selection-D7V0wyHX.mjs} +1 -1
- package/dist/services/adapter-runtime/index.mjs +1 -1
- package/dist/services/adapter-subsystem/index.mjs +1 -1
- package/dist/services/adapter-subsystem/namespace.mjs +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/execution-target/index.mjs +1 -1
- package/dist/services/execution-target/namespace.mjs +1 -1
- package/dist/services/execution-target/schemas.mjs +1 -1
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/index.d.mts +10 -10
- package/dist/services/index.mjs +1 -1
- package/dist/services/materialization/index.mjs +1 -1
- package/dist/services/provider-context/index.mjs +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.mjs +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.mjs +1 -1
- package/dist/services/session/testing/index.mjs +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.mjs +1 -1
- package/dist/services/session-editor/index.mjs +1 -1
- package/dist/services/settings/index.mjs +1 -1
- package/dist/services/settings/namespace.d.mts +4 -4
- package/dist/services/settings/storage/clients-namespace.mjs +1 -1
- package/dist/services/settings/storage/index.mjs +1 -1
- package/dist/services/settings/storage/providers-namespace.mjs +1 -1
- package/dist/services/subagent/index.mjs +1 -1
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/workflow-transitions/index.mjs +1 -1
- package/dist/{session-Cn8z1hxD.mjs → session-CAKfa5o8.mjs} +1 -1
- package/dist/{session-9C42TPQq.mjs → session-CODDwsGa.mjs} +1 -1
- package/dist/{shared-DqvfJVYk.mjs → shared-CkCrHz66.mjs} +1 -1
- package/dist/{skill-BmRp8GhW.mjs → skill-91kZNQnF.mjs} +1 -1
- package/dist/{tool-approval-service-DchkAdAr.mjs → tool-approval-service-BV3WxxX6.mjs} +1 -1
- package/dist/{tools-r50UBPJ9.mjs → tools-CElCajoS.mjs} +1 -1
- package/dist/{transition-h6UZHLGq.d.mts → transition-bYkXnLY2.d.mts} +1 -1
- package/dist/{types-Bcsp_FCp.d.mts → types-BNKqcHfP.d.mts} +1 -1
- package/dist/{version-sDSWOMn_.mjs → version-DdGhNoY5.mjs} +1 -1
- package/dist/{view-builder-BMmmF-Mf.d.mts → view-builder-CA5qUx85.d.mts} +2 -2
- package/dist/{visibility-syKffo3e.mjs → visibility-cMXbf9nY.mjs} +1 -1
- package/dist/{worker-DRQGyWAS.mjs → worker-B0xwfo9-.mjs} +1 -1
- package/dist/{worker-DzbPk2YI.mjs → worker-Cx1JDOB9.mjs} +1 -1
- package/dist/{workflow-D-yrAZW8.mjs → workflow-5yHn_Knq.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +48 -48
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/{workflow-transitions-D5RvMSnf.mjs → workflow-transitions-DH246j6E.mjs} +1 -1
- package/package.json +1 -1
- package/dist/artifact-_pN73_7c.mjs +0 -1
- package/dist/kind-registration-DggkrLkv.mjs +0 -1
- package/dist/model-Cn1IFEP8.mjs +0 -1
- package/dist/namespace-DFc1nkal.mjs +0 -1
- package/dist/packages-COqPg5TI.mjs +0 -1
- /package/dist/{ajv-IlnfOGAj.mjs → ajv-Dz-0DD7m.mjs} +0 -0
- /package/dist/{attach-error-DOlUtquX.mjs → attach-error-D5BWfaBO.mjs} +0 -0
- /package/dist/{capability-BQHyskJB.mjs → capability-BnQx1BWc.mjs} +0 -0
- /package/dist/{common-CylczUIW.mjs → common-Bta2ivrd.mjs} +0 -0
- /package/dist/{definitions-2T95Q-y6.mjs → definitions-CyFaNG_c.mjs} +0 -0
- /package/dist/{extension-namespace-CWfV3IiR.mjs → extension-namespace-AaHKv6tQ.mjs} +0 -0
- /package/dist/{facet-6tnSbjXc.mjs → facet-De-2AP_o.mjs} +0 -0
- /package/dist/{host-D7v3YlDG.mjs → host-CbaJg6D4.mjs} +0 -0
- /package/dist/{identity-CxMRRAXx.mjs → identity-B6RqbCn7.mjs} +0 -0
- /package/dist/{model-registry-BTjKBCCw.mjs → model-registry-DVTFd0RF.mjs} +0 -0
- /package/dist/{modes-Bo9Vv5c9.mjs → modes-Dc9_sSbr.mjs} +0 -0
- /package/dist/{namespace-DX3QsYpv.mjs → namespace-BZ7UQmW4.mjs} +0 -0
- /package/dist/{namespace-Dyxpur8_.mjs → namespace-BnNBM94X.mjs} +0 -0
- /package/dist/{namespace-DORNUF0_.mjs → namespace-DGi7tw_W.mjs} +0 -0
- /package/dist/{namespace-BCSJz417.mjs → namespace-KYIbWPvl.mjs} +0 -0
- /package/dist/{ownership-recovery-guard-CYA5CsiO.mjs → ownership-recovery-guard-BIB5uqgz.mjs} +0 -0
- /package/dist/{platform-BdLHWgVc.mjs → platform-BObC-WJA.mjs} +0 -0
- /package/dist/{providers-DGTA-lki.mjs → providers-BysYiNMO.mjs} +0 -0
- /package/dist/{reaction-aQJGWUWl.mjs → reaction-Cev6JNcb.mjs} +0 -0
- /package/dist/{schema-mXXJcaQT.mjs → schema-bfw9nz8B.mjs} +0 -0
- /package/dist/{schema-introspection-BsWP1vGC.mjs → schema-introspection-BTS7FZT_.mjs} +0 -0
- /package/dist/{schemas-HffXbw8C.mjs → schemas-A2hlgeNu.mjs} +0 -0
- /package/dist/{schemas-NYUz8K9Q.mjs → schemas-B3UNnzKG.mjs} +0 -0
- /package/dist/{schemas-7fHmNUQc.mjs → schemas-BEDq3Psz.mjs} +0 -0
- /package/dist/{schemas-MIYusvwn.mjs → schemas-mLjTSUvJ.mjs} +0 -0
- /package/dist/{semver-_h8-BJ8k.mjs → semver-ByPlHR3P.mjs} +0 -0
- /package/dist/{shared-schemas-CaL1iEk6.mjs → shared-schemas-CKsgVsGX.mjs} +0 -0
- /package/dist/{storage-namespace-definition-4UYuij1r.mjs → storage-namespace-definition-Ct9ohqU0.mjs} +0 -0
- /package/dist/{telemetry-BLYrkonr.mjs → telemetry-Be3u4I7b.mjs} +0 -0
- /package/dist/{timeout-d0dzIY3V.mjs → timeout-Bscg1B-y.mjs} +0 -0
- /package/dist/{ui-config-CsH94fwa.mjs → ui-config-Bl2Wbkr-.mjs} +0 -0
- /package/dist/{variant-BZ9UcJBi.mjs → variant-B5j5wR2p.mjs} +0 -0
- /package/dist/{window-registry-DQkv5wM9.mjs → window-registry-DWHz8TA5.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as InitialProviderOperationClaimContextSource, At as evaluateRuntimeReadiness, B as RecordProvisioningAbsentInput, Bt as snapshotRequestExecutionCancellationInput, C as ExecutionAttemptStatus, Ct as RuntimeOutcomeFenceMismatchError, D as MarkRuntimeReadyInput, Dt as evaluateOperationCompletion, E as InfrastructureFailureDecision, Et as evaluateOperationAdmission, F as ReadBootstrapStartStateInput, Ft as RequestAttemptCancellationInput, G as RuntimeRegistrationDecision, Gt as EnsureExecutionAttemptPersistenceInput, H as RegisterRuntimeInput, Ht as AttemptSettlementSnapshot, I as RecordAllocationInput, It as RequestExecutionCancellationInput, J as sameAllocationRef, Jt as replayEnsuredAttempt, K as decodeDurableOutcome, Kt as ReadAttemptSettlementInput, L as RecordAllocationTerminatedInput, Lt as evaluateAttemptCancellation, M as PendingAttemptAbandonmentDecision, Mt as AttemptOutcomeControlObservation, Nt as ExecutionAttemptCancellationDecision, O as OperationAdmissionDecision, P as ProvisioningClaimDecision, Pt as ExecutionAttemptCancellationIntent, Q as InitialProviderOperationClaimContext, R as RecordInfrastructureFailureInput, Rt as snapshotAttemptOutcomeControl, S as ExecutionAttemptSettlementKind, St as RuntimeOutcomeFence, Tt as evaluateAttemptReachability, Ut as EnsureExecutionAttemptDecision, V as RecoverableAttemptRecord, Vt as AttemptSettlementRead, W as RuntimeReadinessDecision, Wt as EnsureExecutionAttemptInput, X as CompleteProviderOperationInput, Xt as snapshotEnsureExecutionAttemptPersistenceInput, Y as sameDurableOutcome, Yt as snapshotEnsureExecutionAttemptInput, Z as HandoffProviderOperationInput, Zt as snapshotReadAttemptSettlementInput, _ as EXECUTION_ATTEMPT_STATUSES, _t as isProviderOperationResolved, a as AllocationRefEvolutionDecision, at as ProviderOperationClaimDecision, b as ExecutionAttemptRecoveryOperations, bt as AttemptReachability, ct as ProviderOperationLeaseRenewal, d as BootstrapStartState, dt as ProviderOperationOwnershipRecord, et as ListOpenProviderOperationsInput, f as CompleteOperationInput, ft as ProvisionerIncarnationLossDecision, g as EXECUTION_ATTEMPT_SETTLEMENT_KINDS, gt as TakeOverProviderOperationInput, h as DurableOutcome, ht as RenewProviderOperationClaimInput, i as AllocationRefEvolution, it as ProviderOperationClaim, j as OutcomeCodec, jt as evaluateRuntimeRegistration, k as OperationCompletionDecision, kt as evaluateProvisionerIncarnationLoss, l as AttemptOperationStartGate, lt as ProviderOperationMutationDecision, m as DuplicateExecutionAttemptError, mt as RecordProviderOperationUncertaintyInput, n as AdmitOperationInput, nt as PROVIDER_OPERATION_OBLIGATIONS, o as AllocationTerminationDecision, ot as ProviderOperationCompletionDecision, p as DiscoveredAllocationDecision, pt as ProvisioningAbsenceDecision, q as durableOutcome, qt as readAttemptSettlementSnapshot, r as AllocationRecordingDecision, rt as ProcessBoundProvisionerLossProof, s as AttemptControlState, st as ProviderOperationLeasePolicy, t as ATTEMPT_OPERATION_START_GATES, tt as OpenProviderOperationRecord, u as BeginProvisioningInput, ut as ProviderOperationObligation, v as ExecutionAttemptCreate, vt as ExecutionAttemptOutcomeCommit, w as ExecutionOwnerId, wt as assertRuntimeOutcomeFence, x as ExecutionAttemptRepository, xt as AttemptReachabilityDecision, y as ExecutionAttemptRecord, yt as ExecutionAttemptOutcomeDecision, z as RecordProvisionerIncarnationLostInput, zt as snapshotRequestAttemptCancellationInput } from "../execution-attempt-repository-DSpz2kyW.mjs";
|
|
2
|
-
import { A as BootstrapStartOptions, C as OutcomeAcceptance, D as submitAttemptOutcome, E as OutcomePreCommitValidation, M as WorkflowMaterializationSpecResolver, N as WorkflowWorkspaceRootResolver, O as ExecutionAttemptAuthority, P as registerDrizzleWorkflowStorage, S as AttemptOutcomeSubmissionDeps, T as OutcomeConvergenceInput, _ as AttemptOutcomeDecodingInput, a as WorkflowEngineServiceOptions, b as AcceptedAttemptOutcome, c as CommittedWorkflowOutcomeIdentity, d as WorkflowAttemptOutcomeSchema, f as WorkflowAttemptTechnicalFailure, g as workflowAttemptOutcomeCodec, h as toCommittedWorkflowRunnerResult, i as WorkflowEngineService, j as WorkflowMaterializationSpecResolution, k as BootstrapStartAuthority, l as WorkflowAttemptCancellation, m as toCommittedWorkflowRunnerCompletion, n as createWorkflowEnginePackage, o as WorkflowTriggerReconciler, p as decodeWorkflowAttemptOutcome, r as workflowEnginePackage, s as WorkflowExecutor, t as WorkflowEngineToken, u as WorkflowAttemptOutcome, v as ExecutionAttemptHandlersDeps, w as OutcomeConvergence, x as AttemptOutcomeSubmission, y as registerExecutionAttemptHandlers } from "../package-
|
|
2
|
+
import { A as BootstrapStartOptions, C as OutcomeAcceptance, D as submitAttemptOutcome, E as OutcomePreCommitValidation, M as WorkflowMaterializationSpecResolver, N as WorkflowWorkspaceRootResolver, O as ExecutionAttemptAuthority, P as registerDrizzleWorkflowStorage, S as AttemptOutcomeSubmissionDeps, T as OutcomeConvergenceInput, _ as AttemptOutcomeDecodingInput, a as WorkflowEngineServiceOptions, b as AcceptedAttemptOutcome, c as CommittedWorkflowOutcomeIdentity, d as WorkflowAttemptOutcomeSchema, f as WorkflowAttemptTechnicalFailure, g as workflowAttemptOutcomeCodec, h as toCommittedWorkflowRunnerResult, i as WorkflowEngineService, j as WorkflowMaterializationSpecResolution, k as BootstrapStartAuthority, l as WorkflowAttemptCancellation, m as toCommittedWorkflowRunnerCompletion, n as createWorkflowEnginePackage, o as WorkflowTriggerReconciler, p as decodeWorkflowAttemptOutcome, r as workflowEnginePackage, s as WorkflowExecutor, t as WorkflowEngineToken, u as WorkflowAttemptOutcome, v as ExecutionAttemptHandlersDeps, w as OutcomeConvergence, x as AttemptOutcomeSubmission, y as registerExecutionAttemptHandlers } from "../package-BaTrCWZl.mjs";
|
|
3
3
|
import { WorkflowTriggerPayloadPredicate, assertWorkflowTriggerPayload, compileWorkflowTriggerBindingFilter } from "./workflow-trigger-binding-consumer.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
@@ -797,8 +797,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
797
797
|
pending: "pending";
|
|
798
798
|
completed: "completed";
|
|
799
799
|
cancelled: "cancelled";
|
|
800
|
-
failed: "failed";
|
|
801
800
|
running: "running";
|
|
801
|
+
failed: "failed";
|
|
802
802
|
paused: "paused";
|
|
803
803
|
finalizing: "finalizing";
|
|
804
804
|
}>;
|
|
@@ -839,8 +839,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
839
839
|
pending: "pending";
|
|
840
840
|
completed: "completed";
|
|
841
841
|
cancelled: "cancelled";
|
|
842
|
-
failed: "failed";
|
|
843
842
|
running: "running";
|
|
843
|
+
failed: "failed";
|
|
844
844
|
paused: "paused";
|
|
845
845
|
finalizing: "finalizing";
|
|
846
846
|
}>;
|
|
@@ -888,8 +888,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
888
888
|
pending: "pending";
|
|
889
889
|
completed: "completed";
|
|
890
890
|
cancelled: "cancelled";
|
|
891
|
-
failed: "failed";
|
|
892
891
|
running: "running";
|
|
892
|
+
failed: "failed";
|
|
893
893
|
paused: "paused";
|
|
894
894
|
finalizing: "finalizing";
|
|
895
895
|
}>;
|
|
@@ -1148,8 +1148,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1148
1148
|
"delegate-agent": "delegate-agent";
|
|
1149
1149
|
"delegate-role": "delegate-role";
|
|
1150
1150
|
sequence: "sequence";
|
|
1151
|
-
parallel: "parallel";
|
|
1152
1151
|
gate: "gate";
|
|
1152
|
+
parallel: "parallel";
|
|
1153
1153
|
iterate: "iterate";
|
|
1154
1154
|
"iterate-chain": "iterate-chain";
|
|
1155
1155
|
loop: "loop";
|
|
@@ -1193,8 +1193,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1193
1193
|
"delegate-agent": "delegate-agent";
|
|
1194
1194
|
"delegate-role": "delegate-role";
|
|
1195
1195
|
sequence: "sequence";
|
|
1196
|
-
parallel: "parallel";
|
|
1197
1196
|
gate: "gate";
|
|
1197
|
+
parallel: "parallel";
|
|
1198
1198
|
iterate: "iterate";
|
|
1199
1199
|
"iterate-chain": "iterate-chain";
|
|
1200
1200
|
loop: "loop";
|
|
@@ -1228,8 +1228,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1228
1228
|
pending: "pending";
|
|
1229
1229
|
completed: "completed";
|
|
1230
1230
|
cancelled: "cancelled";
|
|
1231
|
-
failed: "failed";
|
|
1232
1231
|
running: "running";
|
|
1232
|
+
failed: "failed";
|
|
1233
1233
|
paused: "paused";
|
|
1234
1234
|
finalizing: "finalizing";
|
|
1235
1235
|
}>>;
|
|
@@ -1425,8 +1425,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1425
1425
|
pending: "pending";
|
|
1426
1426
|
completed: "completed";
|
|
1427
1427
|
cancelled: "cancelled";
|
|
1428
|
-
failed: "failed";
|
|
1429
1428
|
running: "running";
|
|
1429
|
+
failed: "failed";
|
|
1430
1430
|
paused: "paused";
|
|
1431
1431
|
finalizing: "finalizing";
|
|
1432
1432
|
}>>;
|
|
@@ -1449,8 +1449,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1449
1449
|
pending: "pending";
|
|
1450
1450
|
completed: "completed";
|
|
1451
1451
|
cancelled: "cancelled";
|
|
1452
|
-
failed: "failed";
|
|
1453
1452
|
running: "running";
|
|
1453
|
+
failed: "failed";
|
|
1454
1454
|
paused: "paused";
|
|
1455
1455
|
finalizing: "finalizing";
|
|
1456
1456
|
}>;
|
|
@@ -1502,8 +1502,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1502
1502
|
pending: "pending";
|
|
1503
1503
|
completed: "completed";
|
|
1504
1504
|
cancelled: "cancelled";
|
|
1505
|
-
failed: "failed";
|
|
1506
1505
|
running: "running";
|
|
1506
|
+
failed: "failed";
|
|
1507
1507
|
paused: "paused";
|
|
1508
1508
|
finalizing: "finalizing";
|
|
1509
1509
|
}>;
|
|
@@ -1551,8 +1551,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1551
1551
|
"delegate-agent": "delegate-agent";
|
|
1552
1552
|
"delegate-role": "delegate-role";
|
|
1553
1553
|
sequence: "sequence";
|
|
1554
|
-
parallel: "parallel";
|
|
1555
1554
|
gate: "gate";
|
|
1555
|
+
parallel: "parallel";
|
|
1556
1556
|
iterate: "iterate";
|
|
1557
1557
|
"iterate-chain": "iterate-chain";
|
|
1558
1558
|
loop: "loop";
|
|
@@ -1563,8 +1563,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1563
1563
|
pending: "pending";
|
|
1564
1564
|
completed: "completed";
|
|
1565
1565
|
cancelled: "cancelled";
|
|
1566
|
-
failed: "failed";
|
|
1567
1566
|
running: "running";
|
|
1567
|
+
failed: "failed";
|
|
1568
1568
|
skipped: "skipped";
|
|
1569
1569
|
waiting: "waiting";
|
|
1570
1570
|
}>;
|
|
@@ -1597,8 +1597,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1597
1597
|
"delegate-agent": "delegate-agent";
|
|
1598
1598
|
"delegate-role": "delegate-role";
|
|
1599
1599
|
sequence: "sequence";
|
|
1600
|
-
parallel: "parallel";
|
|
1601
1600
|
gate: "gate";
|
|
1601
|
+
parallel: "parallel";
|
|
1602
1602
|
iterate: "iterate";
|
|
1603
1603
|
"iterate-chain": "iterate-chain";
|
|
1604
1604
|
loop: "loop";
|
|
@@ -1609,8 +1609,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1609
1609
|
pending: "pending";
|
|
1610
1610
|
completed: "completed";
|
|
1611
1611
|
cancelled: "cancelled";
|
|
1612
|
-
failed: "failed";
|
|
1613
1612
|
running: "running";
|
|
1613
|
+
failed: "failed";
|
|
1614
1614
|
skipped: "skipped";
|
|
1615
1615
|
waiting: "waiting";
|
|
1616
1616
|
}>;
|
|
@@ -1640,8 +1640,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1640
1640
|
"delegate-agent": "delegate-agent";
|
|
1641
1641
|
"delegate-role": "delegate-role";
|
|
1642
1642
|
sequence: "sequence";
|
|
1643
|
-
parallel: "parallel";
|
|
1644
1643
|
gate: "gate";
|
|
1644
|
+
parallel: "parallel";
|
|
1645
1645
|
iterate: "iterate";
|
|
1646
1646
|
"iterate-chain": "iterate-chain";
|
|
1647
1647
|
loop: "loop";
|
|
@@ -1652,8 +1652,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1652
1652
|
pending: "pending";
|
|
1653
1653
|
completed: "completed";
|
|
1654
1654
|
cancelled: "cancelled";
|
|
1655
|
-
failed: "failed";
|
|
1656
1655
|
running: "running";
|
|
1656
|
+
failed: "failed";
|
|
1657
1657
|
skipped: "skipped";
|
|
1658
1658
|
waiting: "waiting";
|
|
1659
1659
|
}>;
|
|
@@ -1920,8 +1920,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1920
1920
|
}>;
|
|
1921
1921
|
status: z.ZodEnum<{
|
|
1922
1922
|
completed: "completed";
|
|
1923
|
-
failed: "failed";
|
|
1924
1923
|
running: "running";
|
|
1924
|
+
failed: "failed";
|
|
1925
1925
|
skipped: "skipped";
|
|
1926
1926
|
}>;
|
|
1927
1927
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1956,8 +1956,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1956
1956
|
}>;
|
|
1957
1957
|
status: z.ZodEnum<{
|
|
1958
1958
|
completed: "completed";
|
|
1959
|
-
failed: "failed";
|
|
1960
1959
|
running: "running";
|
|
1960
|
+
failed: "failed";
|
|
1961
1961
|
skipped: "skipped";
|
|
1962
1962
|
}>;
|
|
1963
1963
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3020,7 +3020,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3020
3020
|
tableName: "workflow_executions";
|
|
3021
3021
|
dataType: "string";
|
|
3022
3022
|
columnType: "SQLiteText";
|
|
3023
|
-
data: "pending" | "completed" | "cancelled" | "
|
|
3023
|
+
data: "pending" | "completed" | "cancelled" | "running" | "failed" | "paused" | "finalizing";
|
|
3024
3024
|
driverParam: string;
|
|
3025
3025
|
notNull: true;
|
|
3026
3026
|
hasDefault: false;
|
|
@@ -3289,7 +3289,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3289
3289
|
tableName: "workflow_execution_frames";
|
|
3290
3290
|
dataType: "string";
|
|
3291
3291
|
columnType: "SQLiteText";
|
|
3292
|
-
data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "
|
|
3292
|
+
data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop";
|
|
3293
3293
|
driverParam: string;
|
|
3294
3294
|
notNull: true;
|
|
3295
3295
|
hasDefault: false;
|
|
@@ -3302,7 +3302,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3302
3302
|
generated: undefined;
|
|
3303
3303
|
}, {}, {
|
|
3304
3304
|
length: number | undefined;
|
|
3305
|
-
$type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "
|
|
3305
|
+
$type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop";
|
|
3306
3306
|
}>;
|
|
3307
3307
|
path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3308
3308
|
name: string;
|
|
@@ -3347,7 +3347,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3347
3347
|
tableName: "workflow_execution_frames";
|
|
3348
3348
|
dataType: "string";
|
|
3349
3349
|
columnType: "SQLiteText";
|
|
3350
|
-
data: "pending" | "completed" | "cancelled" | "
|
|
3350
|
+
data: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
|
|
3351
3351
|
driverParam: string;
|
|
3352
3352
|
notNull: true;
|
|
3353
3353
|
hasDefault: true;
|
|
@@ -3360,7 +3360,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3360
3360
|
generated: undefined;
|
|
3361
3361
|
}, {}, {
|
|
3362
3362
|
length: number | undefined;
|
|
3363
|
-
$type: "pending" | "completed" | "cancelled" | "
|
|
3363
|
+
$type: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
|
|
3364
3364
|
}>;
|
|
3365
3365
|
attempt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3366
3366
|
name: string;
|
|
@@ -3858,7 +3858,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3858
3858
|
tableName: "workflow_step_spans";
|
|
3859
3859
|
dataType: "string";
|
|
3860
3860
|
columnType: "SQLiteText";
|
|
3861
|
-
data: "completed" | "
|
|
3861
|
+
data: "completed" | "running" | "failed" | "skipped";
|
|
3862
3862
|
driverParam: string;
|
|
3863
3863
|
notNull: true;
|
|
3864
3864
|
hasDefault: false;
|
|
@@ -3871,7 +3871,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3871
3871
|
generated: undefined;
|
|
3872
3872
|
}, {}, {
|
|
3873
3873
|
length: number | undefined;
|
|
3874
|
-
$type: "completed" | "
|
|
3874
|
+
$type: "completed" | "running" | "failed" | "skipped";
|
|
3875
3875
|
}>;
|
|
3876
3876
|
startedAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3877
3877
|
name: string;
|
|
@@ -4880,7 +4880,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4880
4880
|
tableName: "worklog_summaries";
|
|
4881
4881
|
dataType: "string";
|
|
4882
4882
|
columnType: "SQLiteText";
|
|
4883
|
-
data: "pending" | "completed" | "cancelled" | "
|
|
4883
|
+
data: "pending" | "completed" | "cancelled" | "running" | "failed" | "paused" | "finalizing";
|
|
4884
4884
|
driverParam: string;
|
|
4885
4885
|
notNull: true;
|
|
4886
4886
|
hasDefault: false;
|
|
@@ -5103,7 +5103,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
5103
5103
|
tableName: "worklog_frame_entries";
|
|
5104
5104
|
dataType: "string";
|
|
5105
5105
|
columnType: "SQLiteText";
|
|
5106
|
-
data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "
|
|
5106
|
+
data: "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop";
|
|
5107
5107
|
driverParam: string;
|
|
5108
5108
|
notNull: true;
|
|
5109
5109
|
hasDefault: false;
|
|
@@ -5116,7 +5116,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
5116
5116
|
generated: undefined;
|
|
5117
5117
|
}, {}, {
|
|
5118
5118
|
length: number | undefined;
|
|
5119
|
-
$type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "
|
|
5119
|
+
$type: "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop";
|
|
5120
5120
|
}>;
|
|
5121
5121
|
path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5122
5122
|
name: string;
|
|
@@ -5142,7 +5142,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
5142
5142
|
tableName: "worklog_frame_entries";
|
|
5143
5143
|
dataType: "string";
|
|
5144
5144
|
columnType: "SQLiteText";
|
|
5145
|
-
data: "pending" | "completed" | "cancelled" | "
|
|
5145
|
+
data: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
|
|
5146
5146
|
driverParam: string;
|
|
5147
5147
|
notNull: true;
|
|
5148
5148
|
hasDefault: false;
|
|
@@ -6420,8 +6420,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6420
6420
|
pending: "pending";
|
|
6421
6421
|
completed: "completed";
|
|
6422
6422
|
cancelled: "cancelled";
|
|
6423
|
-
failed: "failed";
|
|
6424
6423
|
running: "running";
|
|
6424
|
+
failed: "failed";
|
|
6425
6425
|
paused: "paused";
|
|
6426
6426
|
finalizing: "finalizing";
|
|
6427
6427
|
}>;
|
|
@@ -6462,8 +6462,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6462
6462
|
pending: "pending";
|
|
6463
6463
|
completed: "completed";
|
|
6464
6464
|
cancelled: "cancelled";
|
|
6465
|
-
failed: "failed";
|
|
6466
6465
|
running: "running";
|
|
6466
|
+
failed: "failed";
|
|
6467
6467
|
paused: "paused";
|
|
6468
6468
|
finalizing: "finalizing";
|
|
6469
6469
|
}>;
|
|
@@ -6511,8 +6511,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6511
6511
|
pending: "pending";
|
|
6512
6512
|
completed: "completed";
|
|
6513
6513
|
cancelled: "cancelled";
|
|
6514
|
-
failed: "failed";
|
|
6515
6514
|
running: "running";
|
|
6515
|
+
failed: "failed";
|
|
6516
6516
|
paused: "paused";
|
|
6517
6517
|
finalizing: "finalizing";
|
|
6518
6518
|
}>;
|
|
@@ -6771,8 +6771,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6771
6771
|
"delegate-agent": "delegate-agent";
|
|
6772
6772
|
"delegate-role": "delegate-role";
|
|
6773
6773
|
sequence: "sequence";
|
|
6774
|
-
parallel: "parallel";
|
|
6775
6774
|
gate: "gate";
|
|
6775
|
+
parallel: "parallel";
|
|
6776
6776
|
iterate: "iterate";
|
|
6777
6777
|
"iterate-chain": "iterate-chain";
|
|
6778
6778
|
loop: "loop";
|
|
@@ -6816,8 +6816,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6816
6816
|
"delegate-agent": "delegate-agent";
|
|
6817
6817
|
"delegate-role": "delegate-role";
|
|
6818
6818
|
sequence: "sequence";
|
|
6819
|
-
parallel: "parallel";
|
|
6820
6819
|
gate: "gate";
|
|
6820
|
+
parallel: "parallel";
|
|
6821
6821
|
iterate: "iterate";
|
|
6822
6822
|
"iterate-chain": "iterate-chain";
|
|
6823
6823
|
loop: "loop";
|
|
@@ -6851,8 +6851,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6851
6851
|
pending: "pending";
|
|
6852
6852
|
completed: "completed";
|
|
6853
6853
|
cancelled: "cancelled";
|
|
6854
|
-
failed: "failed";
|
|
6855
6854
|
running: "running";
|
|
6855
|
+
failed: "failed";
|
|
6856
6856
|
paused: "paused";
|
|
6857
6857
|
finalizing: "finalizing";
|
|
6858
6858
|
}>>;
|
|
@@ -7048,8 +7048,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7048
7048
|
pending: "pending";
|
|
7049
7049
|
completed: "completed";
|
|
7050
7050
|
cancelled: "cancelled";
|
|
7051
|
-
failed: "failed";
|
|
7052
7051
|
running: "running";
|
|
7052
|
+
failed: "failed";
|
|
7053
7053
|
paused: "paused";
|
|
7054
7054
|
finalizing: "finalizing";
|
|
7055
7055
|
}>>;
|
|
@@ -7072,8 +7072,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7072
7072
|
pending: "pending";
|
|
7073
7073
|
completed: "completed";
|
|
7074
7074
|
cancelled: "cancelled";
|
|
7075
|
-
failed: "failed";
|
|
7076
7075
|
running: "running";
|
|
7076
|
+
failed: "failed";
|
|
7077
7077
|
paused: "paused";
|
|
7078
7078
|
finalizing: "finalizing";
|
|
7079
7079
|
}>;
|
|
@@ -7125,8 +7125,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7125
7125
|
pending: "pending";
|
|
7126
7126
|
completed: "completed";
|
|
7127
7127
|
cancelled: "cancelled";
|
|
7128
|
-
failed: "failed";
|
|
7129
7128
|
running: "running";
|
|
7129
|
+
failed: "failed";
|
|
7130
7130
|
paused: "paused";
|
|
7131
7131
|
finalizing: "finalizing";
|
|
7132
7132
|
}>;
|
|
@@ -7174,8 +7174,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7174
7174
|
"delegate-agent": "delegate-agent";
|
|
7175
7175
|
"delegate-role": "delegate-role";
|
|
7176
7176
|
sequence: "sequence";
|
|
7177
|
-
parallel: "parallel";
|
|
7178
7177
|
gate: "gate";
|
|
7178
|
+
parallel: "parallel";
|
|
7179
7179
|
iterate: "iterate";
|
|
7180
7180
|
"iterate-chain": "iterate-chain";
|
|
7181
7181
|
loop: "loop";
|
|
@@ -7186,8 +7186,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7186
7186
|
pending: "pending";
|
|
7187
7187
|
completed: "completed";
|
|
7188
7188
|
cancelled: "cancelled";
|
|
7189
|
-
failed: "failed";
|
|
7190
7189
|
running: "running";
|
|
7190
|
+
failed: "failed";
|
|
7191
7191
|
skipped: "skipped";
|
|
7192
7192
|
waiting: "waiting";
|
|
7193
7193
|
}>;
|
|
@@ -7220,8 +7220,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7220
7220
|
"delegate-agent": "delegate-agent";
|
|
7221
7221
|
"delegate-role": "delegate-role";
|
|
7222
7222
|
sequence: "sequence";
|
|
7223
|
-
parallel: "parallel";
|
|
7224
7223
|
gate: "gate";
|
|
7224
|
+
parallel: "parallel";
|
|
7225
7225
|
iterate: "iterate";
|
|
7226
7226
|
"iterate-chain": "iterate-chain";
|
|
7227
7227
|
loop: "loop";
|
|
@@ -7232,8 +7232,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7232
7232
|
pending: "pending";
|
|
7233
7233
|
completed: "completed";
|
|
7234
7234
|
cancelled: "cancelled";
|
|
7235
|
-
failed: "failed";
|
|
7236
7235
|
running: "running";
|
|
7236
|
+
failed: "failed";
|
|
7237
7237
|
skipped: "skipped";
|
|
7238
7238
|
waiting: "waiting";
|
|
7239
7239
|
}>;
|
|
@@ -7263,8 +7263,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7263
7263
|
"delegate-agent": "delegate-agent";
|
|
7264
7264
|
"delegate-role": "delegate-role";
|
|
7265
7265
|
sequence: "sequence";
|
|
7266
|
-
parallel: "parallel";
|
|
7267
7266
|
gate: "gate";
|
|
7267
|
+
parallel: "parallel";
|
|
7268
7268
|
iterate: "iterate";
|
|
7269
7269
|
"iterate-chain": "iterate-chain";
|
|
7270
7270
|
loop: "loop";
|
|
@@ -7275,8 +7275,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7275
7275
|
pending: "pending";
|
|
7276
7276
|
completed: "completed";
|
|
7277
7277
|
cancelled: "cancelled";
|
|
7278
|
-
failed: "failed";
|
|
7279
7278
|
running: "running";
|
|
7279
|
+
failed: "failed";
|
|
7280
7280
|
skipped: "skipped";
|
|
7281
7281
|
waiting: "waiting";
|
|
7282
7282
|
}>;
|
|
@@ -7543,8 +7543,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7543
7543
|
}>;
|
|
7544
7544
|
status: z.ZodEnum<{
|
|
7545
7545
|
completed: "completed";
|
|
7546
|
-
failed: "failed";
|
|
7547
7546
|
running: "running";
|
|
7547
|
+
failed: "failed";
|
|
7548
7548
|
skipped: "skipped";
|
|
7549
7549
|
}>;
|
|
7550
7550
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7579,8 +7579,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7579
7579
|
}>;
|
|
7580
7580
|
status: z.ZodEnum<{
|
|
7581
7581
|
completed: "completed";
|
|
7582
|
-
failed: "failed";
|
|
7583
7582
|
running: "running";
|
|
7583
|
+
failed: "failed";
|
|
7584
7584
|
skipped: "skipped";
|
|
7585
7585
|
}>;
|
|
7586
7586
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -8293,7 +8293,7 @@ declare const workflowStepSpansDual: _$_makaio_storage_drizzle0.DualTable<"workf
|
|
|
8293
8293
|
frameId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"frame_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"frame_id", [string, ...string[]]>>>; /** Step identifier within the workflow definition. */
|
|
8294
8294
|
stepId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"step_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"step_id", [string, ...string[]]>>>; /** Step type discriminant. */
|
|
8295
8295
|
stepType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"step_type", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"step_type", [string, ...string[]]>>>; /** Current span status. */
|
|
8296
|
-
status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", [string, ...string[]], number | undefined>, "completed" | "
|
|
8296
|
+
status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", [string, ...string[]], number | undefined>, "completed" | "running" | "failed" | "skipped">>, _$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", [string, ...string[]]>, "completed" | "running" | "failed" | "skipped">>>; /** Step start timestamp (epoch ms). */
|
|
8297
8297
|
startedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Step completion timestamp (epoch ms). */
|
|
8298
8298
|
completedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Wall-clock duration in milliseconds. */
|
|
8299
8299
|
durationMs: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>; /** Input tokens consumed (agent steps). */
|
|
@@ -8341,7 +8341,7 @@ declare const worklogFrameEntriesDual: _$_makaio_storage_drizzle0.DualTable<"wor
|
|
|
8341
8341
|
/** Unique frame identifier within the execution. */frameId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"frame_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"frame_id", [string, ...string[]]>>>>; /** Execution this frame belongs to. */
|
|
8342
8342
|
executionId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_id", [string, ...string[]]>>>; /** Node identifier from the workflow definition. */
|
|
8343
8343
|
nodeId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_id", [string, ...string[]]>>>; /** Node type discriminant. */
|
|
8344
|
-
nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "station" | "delegate-agent" | "delegate-role" | "sequence" | "
|
|
8344
|
+
nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_type", [string, ...string[]]>>, "station" | "delegate-agent" | "delegate-role" | "sequence" | "gate" | "parallel" | "iterate" | "iterate-chain" | "loop">>;
|
|
8345
8345
|
/**
|
|
8346
8346
|
* Ordered path of frame IDs from the root frame to this frame (inclusive).
|
|
8347
8347
|
* Stored as a JSON array for tree correlation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,C as t,D as n,E as ee,G as te,K as r,O as i,S as a,T as o,Y as s,at as c,b as l,dt as u,ht as d,q as f,rt as p,tt as m,v as h,w as g,x as _,xt as v,y,yt as b}from"../authority-state-bootstrap-
|
|
1
|
+
import{B as e,C as t,D as n,E as ee,G as te,K as r,O as i,S as a,T as o,Y as s,at as c,b as l,dt as u,ht as d,q as f,rt as p,tt as m,v as h,w as g,x as _,xt as v,y,yt as b}from"../authority-state-bootstrap-DVFYemDL.mjs";import{_ as x,a as S,c as C,d as w,f as T,g as E,h as D,i as O,l as k,m as A,n as j,o as M,p as N,r as P,s as F,t as I,u as L}from"../package-BT94BLu4.mjs";import{_ as R,a as ne,b as z,c as B,d as V,f as H,g as U,h as W,i as G,l as K,m as q,n as J,o as Y,p as X,r as Z,s as re,t as ie,u as ae,x as oe,y as se}from"../execution-attempt-repository-CWbgCTwA.mjs";import{assertWorkflowTriggerPayload as ce,compileWorkflowTriggerBindingFilter as le}from"./workflow-trigger-binding-consumer.mjs";import{a as ue,i as de,n as fe,r as pe,t as me}from"../execution-attempt-owner-recovery-D4APLAvt.mjs";import{PROVIDER_OPERATION_OBLIGATIONS as he,isProviderOperationResolved as ge}from"./provider-operation.mjs";import{JsonValueSchema as Q,WorkflowFrameStateSchema as _e}from"@makaio/framework/contracts";const ve=new Set([..._e.shape.status.options]);function $(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ye(e){if(!$(e))return!1;for(let t of Object.values(e))if(!$(t)||typeof t.status!=`string`||!ve.has(t.status)||`result`in t&&t.result!==void 0&&!Q.safeParse(t.result).success)return!1;return!0}function be(e){let t={trigger:$(e.trigger)?e.trigger:{},steps:ye(e.steps)?e.steps:{},inputs:Q.safeParse(e.inputs).success?e.inputs:{}};return`item`in e&&(t.item=e.item),typeof e.index==`number`&&(t.index=e.index),t}export{ie as ATTEMPT_OPERATION_START_GATES,J as DuplicateExecutionAttemptError,Z as EXECUTION_ATTEMPT_SETTLEMENT_KINDS,G as EXECUTION_ATTEMPT_STATUSES,S as ExecutionAttemptAuthority,he as PROVIDER_OPERATION_OBLIGATIONS,k as RUNTIME_PROBE_DELIVERY_TIMEOUT_MS,X as RuntimeOutcomeFenceMismatchError,t as WORKFLOW_WORKLOAD_KIND,g as WORKFLOW_WORKLOAD_VERSION,h as WorkflowAttemptOutcomeSchema,O as WorkflowEngineService,I as WorkflowEngineToken,F as WorkflowExecutor,o as WorkflowInvocationInputSchema,r as WorkflowStorageNamespace,f as WorkflowStorageSubjects,M as WorkflowTriggerReconciler,q as assertRuntimeOutcomeFence,ce as assertWorkflowTriggerPayload,ee as buildWorkflowAttemptInstruction,be as buildWorkflowExpressionContextFromResolvedInputs,le as compileWorkflowTriggerBindingFilter,j as createWorkflowEnginePackage,ne as decodeDurableOutcome,y as decodeWorkflowAttemptOutcome,Y as durableOutcome,K as evaluateAttemptCancellation,W as evaluateAttemptReachability,U as evaluateOperationAdmission,R as evaluateOperationCompletion,se as evaluateProvisionerIncarnationLoss,z as evaluateRuntimeReadiness,oe as evaluateRuntimeRegistration,D as getWorkflowState,E as initializeWorkflowState,ge as isProviderOperationResolved,n as parseWorkflowAttemptInstruction,x as patchWorkflowState,me as readAttemptSettlementSnapshot,C as registerBootstrapStartHandler,A as registerDrizzleWorkflowStorage,T as registerExecutionAttemptHandlers,w as registerOperationAdmissionHandler,L as registerRuntimeRegistrationHandler,fe as replayEnsuredAttempt,te as resolveExecutionAttemptPeer,i as runAuthorityDispatchedAttempt,e as runShellStep,re as sameAllocationRef,B as sameDurableOutcome,ae as snapshotAttemptOutcomeControl,pe as snapshotEnsureExecutionAttemptInput,de as snapshotEnsureExecutionAttemptPersistenceInput,ue as snapshotReadAttemptSettlementInput,V as snapshotRequestAttemptCancellationInput,H as snapshotRequestExecutionCancellationInput,N as submitAttemptOutcome,l as toCommittedWorkflowRunnerCompletion,_ as toCommittedWorkflowRunnerResult,a as workflowAttemptOutcomeCodec,s as workflowDefinitionsDual,P as workflowEnginePackage,m as workflowExecutionStateDual,p as workflowExecutionStateEventsDual,c as workflowExecutionsDual,v as workflowFinalizationsDual,u as workflowStepSpansDual,d as worklogFrameEntriesDual,b as worklogSummariesDual};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createWorkflowEnginePackage, r as workflowEnginePackage, t as WorkflowEngineToken } from "../package-
|
|
1
|
+
import { n as createWorkflowEnginePackage, r as workflowEnginePackage, t as WorkflowEngineToken } from "../package-BaTrCWZl.mjs";
|
|
2
2
|
export { WorkflowEngineToken, createWorkflowEnginePackage, workflowEnginePackage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"../package-
|
|
1
|
+
import{n as e,r as t,t as n}from"../package-BT94BLu4.mjs";export{n as WorkflowEngineToken,e as createWorkflowEnginePackage,t as workflowEnginePackage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ct as e,H as t,M as n,c as r,d as i,i as a,l as o,q as s,r as c,s as l,t as u}from"../authority-state-bootstrap-
|
|
1
|
+
import{Ct as e,H as t,M as n,c as r,d as i,i as a,l as o,q as s,r as c,s as l,t as u}from"../authority-state-bootstrap-DVFYemDL.mjs";import{WORKFLOW_CANCELLED_REASON as d,WorkflowRunContextSchema as f}from"@makaio/framework/contracts";import*as p from"node:os";async function m(t,n,r,i){let a=await y(t,n,r);return await t.request(s.setExecution,{execution:a}),r===`completed`?await t.emit(e.execution.completed,{executionId:n.executionId,workflowId:n.workflowId,totalDuration:0,completedAt:a.completedAt}):await t.emit(e.execution.cancelled,{executionId:n.executionId,workflowId:n.workflowId,reason:i,completedAt:a.completedAt}),r===`cancelled`?{executionId:n.executionId,workflowId:n.workflowId,status:`cancelled`,...i===void 0?{}:{reason:i}}:{executionId:n.executionId,workflowId:n.workflowId,status:`completed`}}function h(e,t){return t.status===`completed`?{executionId:e.executionId,workflowId:e.workflowId,status:`completed`,...t.artifact===void 0?{}:{artifact:t.artifact}}:t.status===`cancelled`?{executionId:e.executionId,workflowId:e.workflowId,status:`cancelled`,...t.reason===void 0?{}:{reason:t.reason}}:t.status===`paused`?{executionId:e.executionId,workflowId:e.workflowId,status:`paused`,pausedAtGateId:t.pausedAtGateId,pausedAtFrameId:t.pausedAtFrameId}:{executionId:e.executionId,workflowId:e.workflowId,status:`failed`,error:t.error}}function g(e){let r,i=()=>{r=n({bus:e.bus,activeExecutions:e.activeExecutions,shellAbortControllers:e.shellAbortControllers,activeRunnerSteps:e.activeRunnerSteps,durableLifecycleTransitions:e.durableLifecycleTransitions,lifecyclePublications:e.lifecyclePublications,publishingLifecycleExecutions:e.publishingLifecycleExecutions,cancelTimeoutMs:t.cancelTimeoutMs},e.executionId,d).catch(t=>(console.error(`[WorkflowOrchestrator] Failed to persist cancellation for ${e.executionId}:`,t),!1))};return e.signal.addEventListener(`abort`,i,{once:!0}),e.signal.aborted&&i(),async()=>(e.signal.removeEventListener(`abort`,i),r??!1)}async function _(e,t){let n=await e.requestOptional(s.getExecution,{executionId:t});return n.handled?n.data.execution?.startedAt??void 0:void 0}async function v(e,t){return{id:t.executionId,workflowId:t.workflowId,coordinatorSessionId:t.coordinatorSessionId,status:`running`,inputs:t.inputs,config:t.config??{},startedAt:await _(e,t.executionId)??Date.now(),triggerPayload:t.triggerPayload,...t.artifactRef===void 0?{}:{artifactRef:t.artifactRef},scope:t.scope}}async function y(e,t,n){let r=Date.now();return{id:t.executionId,workflowId:t.workflowId,coordinatorSessionId:t.coordinatorSessionId,status:n,inputs:t.inputs,config:t.config??{},startedAt:await _(e,t.executionId)??r,completedAt:r,triggerPayload:t.triggerPayload,...t.artifactRef===void 0?{}:{artifactRef:t.artifactRef},scope:t.scope}}async function b(e,t,n,i,s,c,l,u,f){let m=e.suspensionStrategy===`wait-in-process`?void 0:await x(e.executionId,l,{required:!0}),h=await r({definition:t,execution:n,runContext:i,zodSchema:f?.artifact,bus:l}),g=new o(e.executionId,e.workflowId,t,n,s,l,u,void 0,h,{context:{repoPath:process.cwd(),makaioHome:process.env.MAKAIO_HOME??`${p.homedir()}/.makaio`,os:process.platform===`win32`?`win32`:process.platform===`darwin`?`darwin`:`linux`,arch:process.arch},env:e.env},{suspensionStrategy:e.suspensionStrategy,resumeFrames:m,runtimeLoopGates:c}),_=g.buildExpressionContext(),v=await a(t.root,g,_);return v.status===`failed`?{status:`failed`,error:v.error}:v.status===`paused`?{status:`paused`,pausedAtGateId:v.pausedAtGateId,pausedAtFrameId:v.pausedAtFrameId}:v.status===`cancelled`||u.aborted?{status:`cancelled`,reason:d}:{status:`completed`,artifact:h?.current}}async function x(e,t,n={}){try{let r=await t.requestOptional(s.listFrames,{executionId:e});if(!r.handled){if(n.required===!0)throw Error(`Frame storage handler is required to resume execution '${e}'.`);return}return r.data.frames.length===0?void 0:l(r.data.frames)}catch(e){if(n.required===!0)throw e;return}}function S(e,t){return f.parse({executionId:e.executionId,workflowId:e.workflowId,source:e.source.kind===`path`?{kind:`path`,path:e.materializationSpec?.sourcePath??``}:e.source,definitionSnapshot:e.source.kind===`definition`?e.definition??t:t,workerManifest:{contributionRefs:[]},inputs:e.inputs,config:e.config??{},scope:e.scope,triggerPayload:e.triggerPayload,...e.artifactRef===void 0?{}:{artifactRef:e.artifactRef},coordinatorSessionId:e.coordinatorSessionId,cancelSubject:e.cancelSubject,env:e.env,createdAt:Date.now(),suspensionStrategy:e.suspensionStrategy,...e.terminalAuthority===void 0?{}:{terminalAuthority:e.terminalAuthority},...e.materializationSpec===void 0?{}:{materializationSpec:e.materializationSpec}})}async function C(t,n,r,i,a){r.status=`paused`,await t.request(s.setExecution,{execution:r}),await t.emit(e.execution.paused,{executionId:n.executionId,workflowId:n.workflowId,pausedAtGateId:i,pausedAtFrameId:a})}async function w(t,n,r,i,a,o){r===`completed`?await t.emit(e.execution.completed,{executionId:n.executionId,workflowId:n.workflowId,totalDuration:a-i.startedAt,completedAt:a}):r===`cancelled`?await t.emit(e.execution.cancelled,{executionId:n.executionId,workflowId:n.workflowId,reason:d,completedAt:a}):await t.emit(e.execution.failed,{executionId:n.executionId,workflowId:n.workflowId,error:o??`Workflow execution failed`,completedAt:a})}async function T(e){let{config:t,loaded:n,bus:r,signal:a}=e,{definition:o}=n;if(a.aborted)return t.terminalAuthority===`authority`?{executionId:t.executionId,workflowId:t.workflowId,status:`cancelled`,reason:d}:m(r,t,`cancelled`,d);let l=await v(r,t),f=S(t,o);t.terminalAuthority===`authority`?await u(r,f,o):await i(r,l,f,o);let p=new Map(n.runtimeHandlers),_=n.runtimeLoopGates??new Map,y=new Map,x=new Map,T=new Map,E=new Map,D=new Map,O=new Set;y.set(t.executionId,{execution:l,workflow:o,runContext:f,runtimeHandlers:p,runtimeLoopGates:new Map(_)});let k=t.terminalAuthority===`authority`?async()=>!1:g({signal:a,executionId:t.executionId,bus:r,activeExecutions:y,shellAbortControllers:x,activeRunnerSteps:T,durableLifecycleTransitions:E,lifecyclePublications:D,publishingLifecycleExecutions:O}),A={status:`completed`},j=!1;try{o.root.nodes.length>0&&(c(o,_),A=await b(t,o,l,f,p,_,r,a,n.zodSchemas))}catch(e){A={status:`failed`,error:e instanceof Error?e.message:String(e)}}finally{j=await k(),y.clear()}if(j)return h(t,{status:`cancelled`,reason:d});if((a.aborted||l.status===`cancelled`)&&(A={status:`cancelled`,reason:d}),A.status===`paused`)return t.terminalAuthority!==`authority`&&await C(r,t,l,A.pausedAtGateId,A.pausedAtFrameId),h(t,A);if(t.terminalAuthority===`authority`)return h(t,A);let M=Date.now(),N=A.status===`failed`?A.error:void 0;return l.status=A.status,l.completedAt=M,l.error=N,await r.request(s.setExecution,{execution:l}),await w(r,t,A.status,l,M,N),h(t,A)}export{T as runWorkflowOrchestrator};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as e}from"./framework-packages-
|
|
1
|
+
import{u as e}from"./framework-packages-DdCJ4JsE.mjs";function t(){let t=new Map;return{filter:e=>!!(e.transitionRules?.rules?.length||e.transitionActions?.actions),async processActivated(i,a,o){let s=o.getService(e);if(!s)throw Error(`TransitionContributionProcessor: TransitionPipelineService is not available — ensure '${e.name}' is started before extensions with transitionRules or transitionActions.`);let c=a.transitionRules?.rules??[],l=a.transitionActions?.actions,u=c.length>0,d=l!==void 0;u&&n(i,c),d&&r(i,l);let f=!1,p=!1;try{u&&(s.ruleRegistry.register(i,c),f=!0),d&&(s.actionRegistry.register(i,l),p=!0)}catch(e){throw f&&s.ruleRegistry.deregister(i),p&&s.actionRegistry.deregister(i),e}t.set(i,()=>{u&&s.ruleRegistry.deregister(i),d&&s.actionRegistry.deregister(i)})},async processStopped(e){let n=t.get(e);if(n){try{n()}catch(t){console.error(`[TransitionContributionProcessor] Deregister error for "${e}":`,t)}t.delete(e)}}}}function n(e,t){let n=`${e}.`;for(let e of t)if(!e.id.startsWith(n))throw Error(`TransitionContributionProcessor: rule '${e.id}' must be namespaced by extension '${n}'`)}function r(e,t){let n=`${e}.`;for(let e of Object.keys(t))if(!e.startsWith(n))throw Error(`TransitionContributionProcessor: action type '${e}' must be namespaced by extension '${n}'`)}export{t};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,S as t,a as n,c as r,d as i,i as a,l as o,n as s,r as c,y as l}from"./schemas-DRho446W.mjs";import{a as u,c as d,d as f,f as p}from"./kind-registration-DggkrLkv.mjs";import{t as m}from"./zod-json-schema-DGWHUOK0.mjs";import{z as h}from"zod";import{createBusNamespace as g}from"@makaio/framework/core";const _=h.strictObject({evidence:t}),v=h.strictObject({kind:h.literal(`text`),text:h.string()}),[y,b,x]=t.options,S=h.union([y.pick({source:!0,location:!0}).extend({content:v}),b.pick({source:!0,location:!0}).extend({content:v}),x.pick({source:!0,location:!0}).extend({content:v})]);function C(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function w(e){return e.replaceAll(`~`,`~0`).replaceAll(`/`,`~1`)}function T(e,t){if(t===`#`)return{node:e,pointer:``};if(!t.startsWith(`#/`))return;let n;try{n=decodeURIComponent(t.slice(1))}catch{return}let r=e;for(let e of n.slice(1).split(`/`)){let t=e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`);if(Array.isArray(r)){if(!/^(0|[1-9]\d*)$/.test(t)||Number(t)>=r.length)return;r=r[Number(t)]}else{let e=C(r);if(!e||!Object.hasOwn(e,t))return;r=e[t]}}let i=typeof r==`boolean`?r:C(r);return i===void 0?void 0:{node:i,pointer:n}}function E(e,t){if(t===``)return!1;let n=e;for(let e of t.slice(1).split(`/`)){let t=e.replaceAll(`~1`,`/`).replaceAll(`~0`,`~`);if(n=Array.isArray(n)?n[Number(t)]:C(n)?.[t],typeof C(n)?.$id==`string`)return!0}return!1}function D(e,n,r){if(e[`x-makaio-value-type`]!==`evidence/v1`)return;let i=t.safeParse(n);if(!i.success)throw Error(`Invalid schema-declared evidence at ${r}`);return{evidence:i.data,dataPath:r}}function O(e,t,n,r){if(typeof t.$ref!=`string`)return!1;if(r)return!0;let i=T(e,t.$ref);return i===void 0?!0:typeof i.node!=`boolean`&&k(e,i.node,n,E(e,i.pointer))}function k(e,t,n=new WeakSet,r=!1){let i=C(t);if(!i||n.has(i))return!1;n.add(i);let a=r||i!==e&&typeof i.$id==`string`;if(i[`x-makaio-value-type`]===`evidence/v1`||typeof i.$dynamicRef==`string`||O(e,i,n,a)||[`additionalItems`,`additionalProperties`,`contains`,`else`,`if`,`items`,`then`,`unevaluatedItems`,`unevaluatedProperties`].some(t=>k(e,i[t],n,a))||[`allOf`,`anyOf`,`oneOf`,`prefixItems`].some(t=>Array.isArray(i[t])&&i[t].some(t=>k(e,t,n,a)))||Array.isArray(i.items)&&i.items.some(t=>k(e,t,n,a)))return!0;for(let t of[`dependentSchemas`,`dependencies`,`patternProperties`,`properties`]){let r=C(i[t]);if(r&&Object.values(r).some(t=>k(e,t,n,a)))return!0}return!1}var A=class{dataSchema;matchesSchema;occurrences=new Map;visited=new WeakMap;constructor(e,t){this.dataSchema=e,this.matchesSchema=t}extract(e){return this.visit(this.dataSchema,e,`/data`),[...this.occurrences.values()]}visit(e,t,n,r=``){let i=this.visited.get(e)??new Set;if(i.has(n))return;if(i.add(n),this.visited.set(e,i),typeof e.$dynamicRef==`string`)throw Error(`Evidence discovery does not support active $dynamicRef at ${n}`);if(typeof e.$ref==`string`){if(E(this.dataSchema,r))throw Error(`Evidence discovery does not support local $ref inside nested $id resource at ${n}`);let i=T(this.dataSchema,e.$ref);if(i===void 0)throw Error(`Cannot resolve local schema reference ${e.$ref} at ${n}`);if(typeof i.node!=`boolean`&&this.visit(i.node,t,n,i.pointer),this.dataSchema.$schema!==`https://json-schema.org/draft/2020-12/schema`)return}let a=D(e,t,n);if(a){this.occurrences.set(n,a);return}this.visitCombiners(e,t,n,r),this.visitConditional(e,t,n,r),this.visitDependencies(e,t,n,r),this.assertSupportedApplicators(e,n,r),Array.isArray(t)?this.visitArray(e,t,n,r):typeof t==`object`&&t&&this.visitObject(e,t,n,r)}visitCombiners(e,t,n,r){for(let i of[`allOf`,`anyOf`,`oneOf`]){let a=e[i];if(Array.isArray(a))for(let[e,o]of a.entries()){let a=C(o),s=`${r}/${i}/${e}`;a&&(i===`allOf`||this.matchesSchema(this.dataSchema,s,t))&&this.visit(a,t,n,s)}}}visitConditional(e,t,n,r){let i=typeof e.if==`boolean`?e.if:C(e.if);if(i===void 0)return;let a=`${r}/if`,o=this.matchesSchema(this.dataSchema,a,t);o&&typeof i!=`boolean`&&this.visit(i,t,n,a);let s=o?`then`:`else`,c=C(e[s]);c&&this.visit(c,t,n,`${r}/${s}`)}visitDependencies(e,t,n,r){if(!(typeof t!=`object`||!t||Array.isArray(t)))for(let i of[`dependentSchemas`,`dependencies`]){let a=C(e[i]);if(a)for(let[e,o]of Object.entries(a)){let a=C(o);Object.hasOwn(t,e)&&a&&this.visit(a,t,n,`${r}/${i}/${w(e)}`)}}}assertSupportedApplicators(e,t,n){for(let r of[`unevaluatedProperties`,`unevaluatedItems`])if(k(this.dataSchema,e[r],void 0,E(this.dataSchema,n)))throw Error(`Evidence under unsupported ${r} applicator at ${t}`)}visitArray(e,t,n,r){let i=Array.isArray(e.prefixItems),a=i?e.prefixItems:Array.isArray(e.items)?e.items:[];a.forEach((e,a)=>{let o=C(e),s=i?`prefixItems`:`items`;o&&a<t.length&&this.visit(o,t[a],`${n}/${a}`,`${r}/${s}/${a}`)});let o=Array.isArray(e.items)?C(e.additionalItems):C(e.items);if(o){let i=Array.isArray(e.items)?`additionalItems`:`items`;t.slice(a.length).forEach((e,t)=>this.visit(o,e,`${n}/${a.length+t}`,`${r}/${i}`))}this.visitContains(e,t,n,r)}visitContains(e,t,n,r){let i=C(e.contains);if(!i)return;let a=`${r}/contains`;t.forEach((e,t)=>{this.matchesSchema(this.dataSchema,a,e)&&this.visit(i,e,`${n}/${t}`,a)})}visitObject(e,t,n,r){let i=C(e.properties),a=C(e.patternProperties);for(let[o,s]of Object.entries(t)){let t=w(o),c=i!==void 0&&Object.hasOwn(i,o),l=C(i?.[o]);l&&this.visit(l,s,`${n}/${t}`,`${r}/properties/${t}`);let u=this.visitPatterns(a,o,s,`${n}/${t}`,r),d=C(e.additionalProperties);!c&&!u&&d&&this.visit(d,s,`${n}/${t}`,`${r}/additionalProperties`)}}visitPatterns(e,t,n,r,i){let a=!1;for(let[o,s]of Object.entries(e??{})){if(!new RegExp(o,`u`).test(t))continue;a=!0;let e=C(s);e&&this.visit(e,n,r,`${i}/patternProperties/${w(o)}`)}return a}};function j(e,t,n){return new A(e,n.matchesSchema).extract(t)}function M(e){let{dataSchema:t,hooks:n,...r}=e,i={$schema:`https://json-schema.org/draft/2020-12/schema`,...m(t)};f(i);let a=u.parse({...r,dataSchema:i});if(a.kind!==e.kind)throw Error(`Artifact kind identifiers must not contain surrounding whitespace`);let o=h.fromJSONSchema(a.dataSchema),s=h.unknown().superRefine((e,t)=>{let n=o.safeParse(e);if(!n.success)for(let e of n.error.issues)t.addIssue({code:`custom`,path:e.path,message:e.message})}).pipe(t).superRefine((e,t)=>{try{p(e,a.titlePath)}catch(e){t.addIssue({code:`custom`,path:a.titlePath.split(`.`),message:e instanceof Error?e.message:`Artifact title must be a nonblank string`})}});return{...structuredClone(a),kind:e.kind,schemaVersion:e.schemaVersion,dataSchema:s,...n?{hooks:n}:{},toRegistration:()=>structuredClone(a)}}function N(e){return{hooks:[...e.hooks]}}const P=[`inline`,`summary`,`link`,`omit`],F=h.string().min(1),I=h.object({kinds:h.array(h.string().min(1)).optional(),hint:F.optional(),depth:h.number().int().min(1).max(20).optional(),nested:h.lazy(()=>L).optional()}),L=h.record(h.string().min(1),I);function R(e){return JSON.stringify([e.kind,e.id,e.revision])}const z=h.enum([`not-selected`,`not-found`,`depth-exceeded`,`unsupported-ref-class`,`cycle-detected`]),B=h.object({target:o,sourceRef:e,relationType:h.string().min(1),hint:F,status:h.enum([`resolved`,`unresolved`]),reason:z.optional()}).superRefine((e,t)=>{e.status===`unresolved`&&e.reason===void 0&&t.addIssue({code:h.ZodIssueCode.custom,path:[`reason`],message:`reason is required for unresolved artifact context refs`}),e.status===`resolved`&&e.reason!==void 0&&t.addIssue({code:h.ZodIssueCode.custom,path:[`reason`],message:`reason must be omitted for resolved artifact context refs`}),e.status===`resolved`&&e.target.refClass!==`artifact`&&t.addIssue({code:h.ZodIssueCode.custom,path:[`target`],message:`resolved artifact context refs must target an artifact revision`})}),V=h.object({rootRef:e,refs:h.array(B),resolved:h.array(i)}).superRefine((e,t)=>{let n=new Set(e.resolved.map(R));n.has(R(e.rootRef))||t.addIssue({code:h.ZodIssueCode.custom,path:[`resolved`],message:`resolved artifact context wire payloads must include the root artifact revision`}),e.refs.forEach((e,r)=>{n.has(R(e.sourceRef))||t.addIssue({code:h.ZodIssueCode.custom,path:[`refs`,r,`sourceRef`],message:`artifact context ref sources must have a matching revision in resolved`}),!(e.status!==`resolved`||e.target.refClass!==`artifact`)&&(n.has(R(e.target))||t.addIssue({code:h.ZodIssueCode.custom,path:[`refs`,r,`target`],message:`resolved artifact context refs must have a matching revision in resolved`}))})});function H(e){let t=V.parse(e),n=new Map(t.resolved.map(e=>[q(e),e])),r=new Map;for(let e of t.refs){let t=q(e.sourceRef),n=r.get(t);n||(n=[],r.set(t,n)),n.push(e)}let i=n.get(q(t.rootRef));if(!i)throw Error(`Resolved artifact context is missing root artifact '${q(t.rootRef)}'`);let a=U(t.rootRef,i,`inline`,r,n);return{root:a,flatten(){let e=[];return K(a,e),e}}}function U(e,t,n,r,i){return{status:`resolved`,ref:e,artifact:t,hint:n,children:G(e,r,i,new Set([q(e)]))}}function W(e,t,n,r,i,a,o){let s=q(e),c=new Set(o);return c.add(s),{status:`resolved`,ref:e,artifact:t,relation:n,hint:r,children:G(e,i,a,c)}}function G(e,t,n,r){return(t.get(q(e))??[]).map(e=>{if(e.status===`unresolved`)return{status:`unresolved`,target:e.target,relation:e.relationType,hint:e.hint,reason:e.reason};if(e.target.refClass!==`artifact`)throw Error(`Resolved artifact context refs must target an artifact revision`);let i=q(e.target),a=n.get(i);if(!a)throw Error(`Resolved artifact context is missing target artifact '${i}'`);return r.has(i)?{status:`unresolved`,target:e.target,relation:e.relationType,hint:e.hint,reason:`cycle-detected`}:W(e.target,a,e.relationType,e.hint,t,n,r)})}function K(e,t){if(e.status!==`unresolved`){t.push(e.artifact);for(let n of e.children)K(n,t)}}function q(e){return JSON.stringify([e.kind,e.id,e.revision])}const J={"kind.register":{request:u,response:h.object({registered:h.boolean()})},"kind.list":{request:h.object({kind:h.string().min(1).optional()}),response:h.object({kinds:h.array(u)})},"relation-type.register":{request:l,response:h.object({registered:h.boolean()})},"relation-type.list":{request:h.object({type:h.string().min(1).optional()}),response:h.object({relationTypes:h.array(l)})},create:{request:i.omit({id:!0,revision:!0,timestamp:!0}).extend({id:e.shape.id.optional()}),response:h.object({artifact:i})},revise:{request:h.object({previous:e,statusPath:h.string().regex(/^(?:\/(?:[^~/]|~[01])*)+$/,`Expected a data-relative JSON Pointer`).optional(),revision:i.omit({id:!0,revision:!0,timestamp:!0})}),response:h.object({artifact:i})},resolve:{request:h.object({ref:e}),response:h.object({artifact:i.nullable()})},query:{request:n,response:h.object({artifacts:h.array(i)})},compare:{request:s,response:c},"evidence.resolve":{request:_,response:S},resolveContext:{request:h.object({ref:e,selectors:L.optional(),maxDepth:h.number().int().min(1).max(20).default(5)}),response:h.object({context:V})},created:h.object({artifact:i}),revised:h.object({previous:e,artifact:i}),"relation.added":h.object({artifact:e,relation:r}),"observation.added":h.object({artifact:e,observation:a}),"status.changed":h.object({artifact:e,path:h.string().min(1),previous:h.unknown().optional(),current:h.unknown().optional()}),"kind.changed":h.object({kind:h.string().min(1),schemaVersion:d})},Y=g(`artifact`,J),X=Y.subjects;export{B as a,P as c,L as d,N as f,S as g,_ as h,H as i,I as l,j as m,J as n,z as o,M as p,X as r,V as s,Y as t,F as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./json-value-DM-EjTC1.mjs";import{z as t}from"zod";function n(e){return r(e)?e:void 0}function r(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function i(e,t){if(t===`#`)return e;if(!t.startsWith(`#/`))return;let r=e;for(let e of t.slice(2).split(`/`)){let t=n(r),i=e.replace(/~1/g,`/`).replace(/~0/g,`~`);if(!t||!Object.hasOwn(t,i))return;r=t[i]}return r}function a(e,t){let r=t.$ref;if(typeof r!=`string`)return;let a=n(i(e,r));if(!a||e.$schema!==`https://json-schema.org/draft/2020-12/schema`)return a;let{$ref:o,...s}=t;return Object.keys(s).length===0?a:{...a,allOf:[s,...Array.isArray(a.allOf)?a.allOf:[]]}}function o(e,t){for(let[n,r]of Object.entries(t))e[n]=Object.hasOwn(e,n)?{allOf:[e[n],r]}:r}function s(e){return Array.isArray(e.required)?e.required.filter(e=>typeof e==`string`):[]}function c(e,t,r){if(typeof t.$ref==`string`){if(r.has(t.$ref))return;let n=a(e,t);return n?c(e,n,new Set([...r,t.$ref])):void 0}if(!Array.isArray(t.allOf))return t;let{allOf:i,...l}=t,u={},d={},f=new Set;for(let t of[l,...i]){let i=n(t),a=i?c(e,i,r):void 0;if(!a||a.anyOf||a.oneOf)return;if(a.type!==void 0){if(u.type!==void 0&&u.type!==a.type)return;u.type=a.type}o(d,n(a.properties)??{});for(let e of s(a))f.add(e)}return{...u,properties:d,required:[...f]}}function l(e,t,r,i,o=new Set,u=!1){if(typeof t.$ref==`string`){if(o.has(t.$ref))return;let n=a(e,t);return n?l(e,n,r,i,new Set([...o,t.$ref]),u):void 0}let d=Array.isArray(t.anyOf)?`anyOf`:`oneOf`,f=t[d];if(Array.isArray(f)){let{[d]:a,...s}=t,c=f.map(t=>{let a=n(t);if(a)return l(e,typeof a.$ref==`string`?{allOf:[s,a]}:{...a,allOf:[s,...Array.isArray(a.allOf)?a.allOf:[]]},r,i,o,u)});return c.every(e=>e!==void 0)?c.flatMap(e=>e??[]):void 0}if(Array.isArray(t.allOf)){let n=c(e,t,o);return n?l(e,n,r,i,o,u):void 0}if(r.length===0)return[t];if(t.type!==`object`&&!(t.type===void 0&&u))return;let[p,...m]=r;if(!p||i&&!s(t).includes(p))return;let h=n(n(t.properties)?.[p]);return h?l(e,h,m,i):void 0}function u(e){let t=[],r=(e,r)=>{let i=n(e);i&&t.push({node:i,path:r})};for(let t of[`properties`,`patternProperties`,`$defs`,`definitions`,`dependentSchemas`,`dependencies`])for(let[i,a]of Object.entries(n(e[t])??{}))r(a,[t,i]);for(let t of[`allOf`,`anyOf`,`oneOf`,`prefixItems`,`items`]){let n=e[t];Array.isArray(n)&&n.forEach((e,n)=>r(e,[t,n]))}for(let t of[`items`,`additionalItems`,`additionalProperties`,`unevaluatedItems`,`unevaluatedProperties`,`propertyNames`,`contains`,`not`,`if`,`then`,`else`,`contentSchema`])r(e[t],[t]);return t}function d(e,t=[`dataSchema`]){if(Array.isArray(e.prefixItems)||Array.isArray(e.items))throw Error(`Unsupported tuple serialization at ${t.join(`.`)}: use an array schema or an explicit JSON Schema registration`);for(let n of u(e))d(n.node,[...t,...n.path])}function f(e,t,n=new Set){if(t.additionalProperties===!1)return!0;if(typeof t.$ref==`string`&&!n.has(t.$ref)){let r=a(e,t);if(!r||f(e,r,new Set([...n,t.$ref])))return!0}return u(t).some(t=>f(e,t.node,n))}function p(e,t,r,a){if(Object.hasOwn(t,`$ref`)&&typeof t.$ref!=`string`&&r.addIssue({code:`custom`,path:[...a,`$ref`],message:`Schema reference must be a string`}),typeof t.$ref==`string`&&!t.$ref.startsWith(`#`)&&r.addIssue({code:`custom`,path:[...a,`$ref`],message:`Only fragment schema references are supported; absolute and document-relative references are outside the artifact registration profile`}),Object.hasOwn(t,`$anchor`)&&r.addIssue({code:`custom`,path:[...a,`$anchor`],message:`Named schema anchors are not supported; use local JSON Pointer references`}),typeof t.$ref==`string`&&t.$ref.startsWith(`#`)&&t.$ref.length>1&&!t.$ref.startsWith(`#/`)&&r.addIssue({code:`custom`,path:[...a,`$ref`],message:`Named schema references are not supported; use local JSON Pointer references`}),typeof t.$ref==`string`&&(t.$ref===`#`||t.$ref.startsWith(`#/`))){let o=i(e,t.$ref);!n(o)&&typeof o!=`boolean`&&r.addIssue({code:`custom`,path:[...a,`$ref`],message:`Fragment schema reference must resolve to an existing object or boolean schema`})}}function m(e,t,n,r=[`dataSchema`]){Object.hasOwn(t,`$async`)&&t.$async!==!1&&n.addIssue({code:`custom`,path:[...r,`$async`],message:`Asynchronous artifact schemas are not supported`}),p(e,t,n,r);for(let e of[`anyOf`,`oneOf`]){let i=t[e];Array.isArray(i)&&i.some(e=>typeof e==`boolean`)&&n.addIssue({code:`custom`,path:[...r,e],message:`Unsupported boolean union alternative: use object schema declarations`})}Array.isArray(t.allOf)&&(f(e,t)||!c(e,t,new Set))&&n.addIssue({code:`custom`,path:[...r,`allOf`],message:`Unsupported intersection: use open compatible conjuncts or a single closed object schema`});for(let i of u(t))m(e,i.node,n,[...r,...i.path])}function h(e,t){m(e.dataSchema,e.dataSchema,t);let n=l(e.dataSchema,e.dataSchema,e.titlePath.split(`.`),!0,new Set,!0);(!n?.length||n.some(e=>e.type!==`string`))&&t.addIssue({code:`custom`,path:[`titlePath`],message:`titlePath must select a required string in every data schema variant`});let r=[...(e.indexedFields??[]).map((e,t)=>({path:e,location:[`indexedFields`,t]})),...(e.searchableFields??[]).map((e,t)=>({path:e,location:[`searchableFields`,t]})),...(e.uniqueness??[]).flatMap((e,t)=>e.by.flatMap((e,n)=>e.kind===`data`?[{path:e.path,location:[`uniqueness`,t,`by`,n,`path`]}]:[]))];for(let{path:n,location:i}of r)l(e.dataSchema,e.dataSchema,n.split(`.`),!1,new Set,!0)||t.addIssue({code:`custom`,path:i,message:`Data path ${n} must select a declared field`})}function g(e,t){let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n||Array.isArray(n)||!Object.hasOwn(n,e))throw Error(`Artifact title is missing at ${t}`);n=Reflect.get(n,e)}if(typeof n!=`string`||n.trim().length===0)throw Error(`Artifact title at ${t} must be a nonblank string`);return n}const _=t.number().int().positive(),v=t.enum([`knowledge`,`commitment`,`interaction`,`record`]),y=t.string().regex(/^[A-Za-z_$][\w$-]*(?:\.[A-Za-z_$][\w$-]*)*$/),b={knowledge:[`valid`,`retired`],commitment:[`proposed`,`decided`,`fulfilled`,`revoked`],interaction:[`open`,`resolved`,`closed-without-resolution`],record:[]},x=t.enum([...b.knowledge,...b.commitment,...b.interaction]),S=t.strictObject({relationType:t.string().trim().min(1),targetKinds:t.array(t.string().trim().min(1)).min(1).optional(),minItems:t.number().int().nonnegative(),maxItems:t.number().int().nonnegative().optional()}).refine(e=>e.maxItems===void 0||e.maxItems>=e.minItems,{path:[`maxItems`],message:`maxItems must be at least minItems`}),C=t.discriminatedUnion(`kind`,[t.strictObject({kind:t.literal(`data`),path:y}),t.strictObject({kind:t.literal(`relation-target`),relationType:t.string().trim().min(1)})]),w=t.strictObject({by:t.array(C).min(1),lifecycleStates:t.array(x).min(1).optional()}),T=t.strictObject({minItems:t.number().int().nonnegative()}),E=t.enum([`http://json-schema.org/draft-07/schema#`,`https://json-schema.org/draft/2020-12/schema`]).optional(),D=t.strictObject({kind:t.string().trim().min(1),description:t.string().trim().min(1),schemaVersion:_,category:v,dataSchema:e,titlePath:y,relations:t.array(S).optional(),uniqueness:t.array(w).optional(),evidenceRequirements:T.optional(),indexedFields:t.array(y).optional(),searchableFields:t.array(y).optional()}).superRefine((e,t)=>{E.safeParse(e.dataSchema.$schema).success||t.addIssue({code:`custom`,path:[`dataSchema`,`$schema`],message:`Unsupported data schema dialect: omit $schema for draft-7 or declare the supported draft-7 or 2020-12 URI`});let n=b[e.category];e.uniqueness?.forEach((r,i)=>{r.lifecycleStates?.some(e=>!n.includes(e))&&t.addIssue({code:`custom`,path:[`uniqueness`,i,`lifecycleStates`],message:`Lifecycle conditions are incompatible with category ${e.category}`})}),h(e,t)});export{D as a,_ as c,d,g as f,T as i,w as l,v as n,x as o,y as r,S as s,b as t,C as u};
|
package/dist/model-Cn1IFEP8.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./visibility-syKffo3e.mjs";export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./schemas-7fHmNUQc.mjs";import{createBusNamespace as t}from"@makaio/framework/core";const n=t(`kernel:cli`,e),r=n.subjects;export{r as n,n as t};
|