@makaio/framework 1.0.0-dev-1788511348215 → 1.0.0-dev-1788721567504
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/attempt-record-codec-BORASgzn.mjs +1 -0
- package/dist/bus/index.d.mts +19 -19
- package/dist/bus/index.mjs +1 -1
- package/dist/{context-resolution-841T7jBI.d.mts → context-resolution-CoKFKIqz.d.mts} +3 -3
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +2 -2
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/index.d.mts +616 -122
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +2 -2
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/shared/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +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/{execution-attempt-repository-DY4KTptE.d.mts → execution-attempt-repository-CRdrgou3.d.mts} +512 -3
- package/dist/{index-jxPncqWZ2.d.mts → index--Ws52sWV2.d.mts} +4 -4
- package/dist/{index-Wbd_syN2.d.mts → index-37_b--BH.d.mts} +11 -11
- package/dist/{index-6trZYnUP2.d.mts → index-8NdPPzUh2.d.mts} +12 -12
- package/dist/{index-B-3I98nw.d.mts → index-AdcDBUnc.d.mts} +95 -95
- package/dist/{index-C6aSnO8m.d.mts → index-BJdkVFX9.d.mts} +288 -24
- package/dist/{index-DXtQRehh.d.mts → index-BKIxdzIw.d.mts} +11 -11
- package/dist/{index-CmwAJ8-5.d.mts → index-CFI6FxC7.d.mts} +1 -1
- package/dist/{index-DI2lS7VT.d.mts → index-CVcG4Q3X.d.mts} +5 -5
- package/dist/{index-DHH-93YD.d.mts → index-CYjgoYeX.d.mts} +1 -1
- package/dist/{index-CDud4NAm.d.mts → index-CxwqnZpT.d.mts} +75 -75
- package/dist/{index-BkbnC65b.d.mts → index-CyWGSxrs.d.mts} +291 -291
- package/dist/{index-C146Eq_J.d.mts → index-D1wTWSLR.d.mts} +327 -327
- package/dist/{index-Bqk0pJBQ2.d.mts → index-DBD_oFEt2.d.mts} +1 -1
- package/dist/{index-BmilK-co2.d.mts → index-DV38-klA2.d.mts} +12 -36
- package/dist/{index-DNI6UF9h.d.mts → index-I5a37JCm.d.mts} +4 -4
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/{namespace-l-HG1rLF.d.mts → namespace-Bo94cenp.d.mts} +136 -136
- package/dist/{namespace-DknCutQZ.d.mts → namespace-CPm9dhi2.d.mts} +2 -2
- package/dist/{namespace-BNp7n_gu.d.mts → namespace-CsnrP8AD.d.mts} +3 -3
- package/dist/{namespace-BGRHcrmp.d.mts → namespace-CstawJgN.d.mts} +2 -2
- package/dist/{package-efR90JGe.d.mts → package-DkZmsdCd.d.mts} +49 -1
- package/dist/package-UemD2NWn.mjs +7 -0
- package/dist/package.json +1 -1
- package/dist/runtime-node/index.d.mts +2 -2
- package/dist/runtime-node/index.mjs +24 -24
- package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
- package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/worker-entry.d.mts +49 -9
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/runtime-registration-client-BTtFpt_k.mjs +1 -0
- package/dist/{schemas-D7EeKBDJ.d.mts → schemas-CJKHYluy.d.mts} +13 -13
- package/dist/{schemas-C1mxTfd7.d.mts → schemas-CenET9Cq.d.mts} +1 -1
- package/dist/{schemas-D7ScxLrf.d.mts → schemas-DTJtS14K.d.mts} +136 -136
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +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/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/index.d.mts +86 -86
- package/dist/services/session/index.d.mts +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +10 -10
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- 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/{transition-D3zUBTPc.d.mts → transition-DxsrTsn4.d.mts} +1 -1
- package/dist/{types-DcxBYlPA.d.mts → types-Czdm5op1.d.mts} +306 -306
- package/dist/{view-builder-B0j9p5C0.d.mts → view-builder-D-Wz_l_B.d.mts} +1 -1
- package/dist/worker-DlRdLf2d.mjs +1 -0
- package/dist/workflow-engine/execution-attempt-repository.d.mts +2 -2
- package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
- package/dist/workflow-engine/index.d.mts +205 -70
- 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/testing/index.d.mts +55 -3
- package/dist/workflow-engine/testing/index.mjs +1 -1
- package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
- package/dist/workflow-engine/testing/sqlite.mjs +106 -38
- package/dist/workflow-worker-DjUfKshi.mjs +1 -0
- package/package.json +1 -1
- package/dist/attempt-record-codec-dC9LSFUE.mjs +0 -1
- package/dist/await-trigger-Bkg2BQfg.mjs +0 -1
- package/dist/package-Cgjpm9om.mjs +0 -7
- package/dist/worker-CARV52hT.mjs +0 -1
- package/dist/workflow-worker-Dul-wcOR.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as SurfaceBindingRegistration, a as ResolvedArtifactContextWire$1, q as ArtifactRevision$1, z as ArtifactRelation } from "./context-resolution-
|
|
1
|
+
import { _ as SurfaceBindingRegistration, a as ResolvedArtifactContextWire$1, q as ArtifactRevision$1, z as ArtifactRelation } from "./context-resolution-CoKFKIqz.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./json-value-BBZ6uGwc.mjs";import{A as t,_ as n,x as r}from"./worker-CLsRbzpk.mjs";import{G as i,H as a,V as o}from"./workflow-BomH9DBB.mjs";import{z as s}from"zod";import{createBusNamespace as c}from"@makaio/framework/core";const l=s.object({executionAttemptId:s.string().min(1),executionId:s.string().min(1),environment:s.string().min(1),metadata:e.optional()}),u=s.object({executionAttemptId:s.string().min(1),config:i,manifest:o.optional(),requirements:t.optional(),metadata:e.optional()}),d=s.object({executionAttemptId:s.string().min(1),allocationRef:r}).strict(),f={dispatch:{request:u,response:d},"control.outcome.submit":{request:s.object({executionAttemptId:s.string().min(1),executionId:s.string().min(1),result:a}).strict().superRefine((e,t)=>{e.result.executionId!==e.executionId&&t.addIssue({code:s.ZodIssueCode.custom,path:[`result`,`executionId`],message:`result.executionId must match executionId`})}),response:s.object({decision:n}).strict()},"control.bootstrap.claim":{request:s.object({executionId:s.string().min(1),executionAttemptId:s.string().min(1)}).strict(),response:s.object({busUrl:s.string().min(1),busAuthSecret:s.string().min(1)}).strict()},"lifecycle.provisioning":l,"lifecycle.booting":l,"lifecycle.ready":l,"lifecycle.busy":l,"lifecycle.completed":l,"lifecycle.failed":l.extend({error:s.string().min(1)}),"lifecycle.terminated":l.extend({reason:s.string().optional()}),"lifecycle.paused":l.extend({pausedAtGateId:s.string().min(1),pausedAtFrameId:s.string().min(1)})},p=`worker-bootstrap`,m=c(`worker`,f),h=m.subjects;export{d as a,u as i,m as n,f as o,h as r,p as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { AllocationRecordingDecision, AllocationRefEvolution, AllocationRefEvolutionDecision, AllocationTerminationDecision, BeginProvisioningInput, DiscoveredAllocationDecision, DuplicateExecutionAttemptError, DurableOutcome, EXECUTION_ATTEMPT_SETTLEMENT_KINDS, EXECUTION_ATTEMPT_STATUSES, ExecutionAttemptCreate, ExecutionAttemptOutcomeCommit, ExecutionAttemptOutcomeDecision, ExecutionAttemptRecord, ExecutionAttemptRecoveryOperations, ExecutionAttemptRepository, ExecutionAttemptSettlementKind, ExecutionAttemptStatus, ExecutionOwnerId, HandoffProviderOperationInput, InfrastructureFailureDecision, OutcomeCodec, PendingAttemptAbandonmentDecision, ProvisionerIncarnationLossDecision, ProvisioningAbsenceDecision, ProvisioningClaimDecision, RecordAllocationInput, RecordAllocationTerminatedInput, RecordInfrastructureFailureInput, RecordProviderOperationUncertaintyInput, RecordProvisionerIncarnationLostInput, RecordProvisioningAbsentInput, RecoverableAttemptRecord, RenewProviderOperationClaimInput, TakeOverProviderOperationInput, decodeDurableOutcome, durableOutcome, sameAllocationRef, sameDurableOutcome };
|
|
1
|
+
import { A as OutcomeCodec, B as RecordProvisioningAbsentInput, C as ExecutionAttemptStatus, D as MarkRuntimeReadyInput, E as InfrastructureFailureDecision, F as RecordAllocationInput, G as RuntimeRegistrationDecision, H as RegisterRuntimeInput, I as RecordAllocationTerminatedInput, J as durableOutcome, K as TakeOverProviderOperationInput, L as RecordInfrastructureFailureInput, M as ProvisionerIncarnationLossDecision, N as ProvisioningAbsenceDecision, O as OperationAdmissionDecision, P as ProvisioningClaimDecision, R as RecordProviderOperationUncertaintyInput, S as ExecutionAttemptSettlementKind, T as HandoffProviderOperationInput, U as RenewProviderOperationClaimInput, V as RecoverableAttemptRecord, W as RuntimeReadinessDecision, X as sameDurableOutcome, Y as sameAllocationRef, _ as ExecutionAttemptOutcomeCommit, a as AllocationRefEvolutionDecision, b as ExecutionAttemptRecoveryOperations, c as AttemptOperationStartGate, d as DiscoveredAllocationDecision, f as DuplicateExecutionAttemptError, g as ExecutionAttemptCreate, h as EXECUTION_ATTEMPT_STATUSES, i as AllocationRefEvolution, j as PendingAttemptAbandonmentDecision, k as OperationCompletionDecision, l as BeginProvisioningInput, m as EXECUTION_ATTEMPT_SETTLEMENT_KINDS, n as AdmitOperationInput, o as AllocationTerminationDecision, p as DurableOutcome, q as decodeDurableOutcome, r as AllocationRecordingDecision, s as AttemptControlState, t as ATTEMPT_OPERATION_START_GATES, u as CompleteOperationInput, v as ExecutionAttemptOutcomeDecision, w as ExecutionOwnerId, x as ExecutionAttemptRepository, y as ExecutionAttemptRecord, z as RecordProvisionerIncarnationLostInput } from "../execution-attempt-repository-CRdrgou3.mjs";
|
|
2
|
+
export { ATTEMPT_OPERATION_START_GATES, AdmitOperationInput, AllocationRecordingDecision, AllocationRefEvolution, AllocationRefEvolutionDecision, AllocationTerminationDecision, AttemptControlState, AttemptOperationStartGate, BeginProvisioningInput, CompleteOperationInput, DiscoveredAllocationDecision, DuplicateExecutionAttemptError, DurableOutcome, EXECUTION_ATTEMPT_SETTLEMENT_KINDS, EXECUTION_ATTEMPT_STATUSES, ExecutionAttemptCreate, ExecutionAttemptOutcomeCommit, ExecutionAttemptOutcomeDecision, ExecutionAttemptRecord, ExecutionAttemptRecoveryOperations, ExecutionAttemptRepository, ExecutionAttemptSettlementKind, ExecutionAttemptStatus, ExecutionOwnerId, HandoffProviderOperationInput, InfrastructureFailureDecision, MarkRuntimeReadyInput, OperationAdmissionDecision, OperationCompletionDecision, OutcomeCodec, PendingAttemptAbandonmentDecision, ProvisionerIncarnationLossDecision, ProvisioningAbsenceDecision, ProvisioningClaimDecision, RecordAllocationInput, RecordAllocationTerminatedInput, RecordInfrastructureFailureInput, RecordProviderOperationUncertaintyInput, RecordProvisionerIncarnationLostInput, RecordProvisioningAbsentInput, RecoverableAttemptRecord, RegisterRuntimeInput, RenewProviderOperationClaimInput, RuntimeReadinessDecision, RuntimeRegistrationDecision, TakeOverProviderOperationInput, decodeDurableOutcome, durableOutcome, sameAllocationRef, sameDurableOutcome };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{canonicalStringify as e}from"@makaio/framework/utils";const t=[`pending`,`provisioning`,`allocated`,`settled`],n=[`outcome`,`abandoned`,`infrastructure-failure`];function
|
|
1
|
+
import{canonicalStringify as e}from"@makaio/framework/utils";const t=[`pending`,`provisioning`,`allocated`,`settled`],n=[`outcome`,`abandoned`,`infrastructure-failure`],r=[`open`,`closed`];function i(t,n){return e(t)===e(n)}function a(t,n){return e(JSON.parse(t))===e(JSON.parse(n))}function o(e,t){let n=e.serialize(e.parse(t));return{text:n,outcome:s(e,n)}}function s(e,t){return e.parse(JSON.parse(t))}var c=class extends Error{executionAttemptId;constructor(e,t){super(`Execution attempt '${e}' already exists`,t),this.name=`DuplicateExecutionAttemptError`,this.executionAttemptId=e}};export{r as ATTEMPT_OPERATION_START_GATES,c as DuplicateExecutionAttemptError,n as EXECUTION_ATTEMPT_SETTLEMENT_KINDS,t as EXECUTION_ATTEMPT_STATUSES,s as decodeDurableOutcome,o as durableOutcome,i as sameAllocationRef,a as sameDurableOutcome};
|