@codemation/core 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/EngineExecutionLimitsPolicy-8MEFIYx1.d.cts +160 -0
- package/dist/EngineExecutionLimitsPolicy-BWAXW9D6.d.cts +160 -0
- package/dist/EngineExecutionLimitsPolicy-Bp8PS1Ss.d.cts +159 -0
- package/dist/EngineExecutionLimitsPolicy-CLxcN-D2.d.ts +159 -0
- package/dist/EngineExecutionLimitsPolicy-DZXuix51.d.ts +160 -0
- package/dist/EngineExecutionLimitsPolicy-Gfz6ngFd.d.ts +160 -0
- package/dist/EngineFactory-CBnntY3J.cjs +3152 -0
- package/dist/EngineFactory-CBnntY3J.cjs.map +1 -0
- package/dist/EngineFactory-Cwn3R2YA.js +3087 -0
- package/dist/EngineFactory-Cwn3R2YA.js.map +1 -0
- package/dist/EngineFactory-DWCnNocp.js +3063 -0
- package/dist/EngineFactory-DWCnNocp.js.map +1 -0
- package/dist/EngineFactory-DhPFou4p.cjs +3188 -0
- package/dist/EngineFactory-DhPFou4p.cjs.map +1 -0
- package/dist/EngineFactory-l_9xmBtv.cjs +3190 -0
- package/dist/EngineFactory-l_9xmBtv.cjs.map +1 -0
- package/dist/EngineFactory-w-aOWuqh.js +3089 -0
- package/dist/EngineFactory-w-aOWuqh.js.map +1 -0
- package/dist/InMemoryLiveWorkflowRepository-1J9MHN_I.js +18 -0
- package/dist/InMemoryLiveWorkflowRepository-1J9MHN_I.js.map +1 -0
- package/dist/InMemoryLiveWorkflowRepository-BTzHpQ6e.cjs +151 -0
- package/dist/InMemoryLiveWorkflowRepository-BTzHpQ6e.cjs.map +1 -0
- package/dist/InMemoryLiveWorkflowRepository-BoLNnVLg.js +139 -0
- package/dist/InMemoryLiveWorkflowRepository-BoLNnVLg.js.map +1 -0
- package/dist/InMemoryLiveWorkflowRepository-CULNqv96.d.ts +1300 -0
- package/dist/InMemoryLiveWorkflowRepository-D6eiiXxF.d.cts +1168 -0
- package/dist/InMemoryLiveWorkflowRepository-D7l8cjdZ.d.cts +1130 -0
- package/dist/InMemoryLiveWorkflowRepository-DL7LmC9S.d.ts +1340 -0
- package/dist/InMemoryLiveWorkflowRepository-jnv-OnOP.d.ts +1300 -0
- package/dist/InMemoryLiveWorkflowRepository-xny1_Z6i.cjs +24 -0
- package/dist/InMemoryLiveWorkflowRepository-xny1_Z6i.cjs.map +1 -0
- package/dist/InMemoryLiveWorkflowRepository-xr7b4kvi.d.ts +1338 -0
- package/dist/InMemoryWorkflowCatalog-BIdFpwbK.d.ts +1205 -0
- package/dist/InMemoryWorkflowCatalog-BW00_3N3.d.cts +12 -0
- package/dist/InMemoryWorkflowCatalog-BiYHGoPw.cjs +24 -0
- package/dist/InMemoryWorkflowCatalog-BiYHGoPw.cjs.map +1 -0
- package/dist/InMemoryWorkflowCatalog-BrG0ApMO.d.cts +1115 -0
- package/dist/InMemoryWorkflowCatalog-BzrAr--Y.js +139 -0
- package/dist/InMemoryWorkflowCatalog-BzrAr--Y.js.map +1 -0
- package/dist/InMemoryWorkflowCatalog-C-EJlJ7y.d.cts +1120 -0
- package/dist/InMemoryWorkflowCatalog-C4482bpw.cjs +24 -0
- package/dist/InMemoryWorkflowCatalog-C4482bpw.cjs.map +1 -0
- package/dist/InMemoryWorkflowCatalog-CZ0kZpOv.d.ts +1289 -0
- package/dist/InMemoryWorkflowCatalog-C_ACeLyW.d.cts +1119 -0
- package/dist/InMemoryWorkflowCatalog-CiHWIu5E.d.cts +12 -0
- package/dist/InMemoryWorkflowCatalog-CkH7gkya.js +18 -0
- package/dist/InMemoryWorkflowCatalog-CkH7gkya.js.map +1 -0
- package/dist/InMemoryWorkflowCatalog-CnpZVJM9.d.ts +1205 -0
- package/dist/InMemoryWorkflowCatalog-Cu68S8YR.js +18 -0
- package/dist/InMemoryWorkflowCatalog-Cu68S8YR.js.map +1 -0
- package/dist/InMemoryWorkflowCatalog-D2w9nMj2.cjs +151 -0
- package/dist/InMemoryWorkflowCatalog-D2w9nMj2.cjs.map +1 -0
- package/dist/InMemoryWorkflowCatalog-D5eMxEf7.js +18 -0
- package/dist/InMemoryWorkflowCatalog-D5eMxEf7.js.map +1 -0
- package/dist/InMemoryWorkflowCatalog-D5nCp2yZ.d.ts +1267 -0
- package/dist/InMemoryWorkflowCatalog-DIq0bjqN.d.ts +12 -0
- package/dist/InMemoryWorkflowCatalog-DLgaEaw_.d.ts +1288 -0
- package/dist/InMemoryWorkflowCatalog-DNBFdK-x.d.cts +1120 -0
- package/dist/InMemoryWorkflowCatalog-DQBkCzb7.cjs +24 -0
- package/dist/InMemoryWorkflowCatalog-DQBkCzb7.cjs.map +1 -0
- package/dist/InMemoryWorkflowCatalog-DS4-eX6i.d.cts +1118 -0
- package/dist/InMemoryWorkflowCatalog-DdVfy8MY.d.ts +12 -0
- package/dist/InMemoryWorkflowCatalog-DeVZu3g8.d.ts +12 -0
- package/dist/InMemoryWorkflowCatalog-GxkQjvt5.d.ts +1200 -0
- package/dist/InMemoryWorkflowCatalog-qaVRn1Lc.d.cts +1115 -0
- package/dist/InMemoryWorkflowCatalog-z1aIT4TC.d.cts +12 -0
- package/dist/InMemoryWorkflowRegistry-BBuOovLL.d.ts +1007 -0
- package/dist/InMemoryWorkflowRegistry-BIFnSl3k.d.ts +1201 -0
- package/dist/InMemoryWorkflowRegistry-BnGilthz.d.ts +1137 -0
- package/dist/InMemoryWorkflowRegistry-CEp5I8No.d.ts +1146 -0
- package/dist/InMemoryWorkflowRegistry-CHyMB9jW.d.cts +976 -0
- package/dist/InMemoryWorkflowRegistry-CUN7K86m.d.cts +1061 -0
- package/dist/InMemoryWorkflowRegistry-CVfHyELh.d.cts +971 -0
- package/dist/InMemoryWorkflowRegistry-CXXJrwAr.d.cts +1052 -0
- package/dist/InMemoryWorkflowRegistry-DDGfPTJy.d.ts +1013 -0
- package/dist/InMemoryWorkflowRegistry-DnYSOoT5.d.ts +1120 -0
- package/dist/InMemoryWorkflowRegistry-Dp5GiFF2.d.cts +1035 -0
- package/dist/InMemoryWorkflowRegistry-DypDBeOw.d.cts +1116 -0
- package/dist/InMemoryWorkflowRegistry-SzwJCAxT.d.ts +1012 -0
- package/dist/InMemoryWorkflowRegistry-jupvqyGc.d.cts +977 -0
- package/dist/InMemoryWorkflowRegistry-rAdKVWYT.d.ts +1117 -0
- package/dist/InProcessRetryRunner-BBNPkXjy.d.cts +292 -0
- package/dist/PersistedWorkflowSnapshotFactory-7RkOL3Kg.d.ts +14 -0
- package/dist/PersistedWorkflowSnapshotFactory-BmANa46W.cjs +141 -0
- package/dist/PersistedWorkflowSnapshotFactory-BmANa46W.cjs.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-Bwb_etSt.js +118 -0
- package/dist/PersistedWorkflowSnapshotFactory-Bwb_etSt.js.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-CRkKGNV6.js +123 -0
- package/dist/PersistedWorkflowSnapshotFactory-CRkKGNV6.js.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-CZolnGy5.js +101 -0
- package/dist/PersistedWorkflowSnapshotFactory-CZolnGy5.js.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-Ca_oysOv.cjs +131 -0
- package/dist/PersistedWorkflowSnapshotFactory-Ca_oysOv.cjs.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-CqIcShnX.js +103 -0
- package/dist/PersistedWorkflowSnapshotFactory-CqIcShnX.js.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-D-tBk4_G.js +119 -0
- package/dist/PersistedWorkflowSnapshotFactory-D-tBk4_G.js.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-D4cXl2e2.cjs +131 -0
- package/dist/PersistedWorkflowSnapshotFactory-D4cXl2e2.cjs.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-DINoP12r.cjs +131 -0
- package/dist/PersistedWorkflowSnapshotFactory-DINoP12r.cjs.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-DJAwSuHU.js +103 -0
- package/dist/PersistedWorkflowSnapshotFactory-DJAwSuHU.js.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-DSUjVCcf.cjs +131 -0
- package/dist/PersistedWorkflowSnapshotFactory-DSUjVCcf.cjs.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-DdHuhkDb.cjs +107 -0
- package/dist/PersistedWorkflowSnapshotFactory-DdHuhkDb.cjs.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-Dqc6NHis.js +119 -0
- package/dist/PersistedWorkflowSnapshotFactory-Dqc6NHis.js.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-Dxa2dSrw.cjs +130 -0
- package/dist/PersistedWorkflowSnapshotFactory-Dxa2dSrw.cjs.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-Ep79Ah1G.js +123 -0
- package/dist/PersistedWorkflowSnapshotFactory-Ep79Ah1G.js.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-GyLfRuiJ.js +119 -0
- package/dist/PersistedWorkflowSnapshotFactory-GyLfRuiJ.js.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-HTpBsBzn.js +102 -0
- package/dist/PersistedWorkflowSnapshotFactory-HTpBsBzn.js.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-LVmaaf3t.cjs +141 -0
- package/dist/PersistedWorkflowSnapshotFactory-LVmaaf3t.cjs.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-PZCpo2ZS.js +119 -0
- package/dist/PersistedWorkflowSnapshotFactory-PZCpo2ZS.js.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-UjQ1SJev.cjs +109 -0
- package/dist/PersistedWorkflowSnapshotFactory-UjQ1SJev.cjs.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-Y8kCrhcy.cjs +109 -0
- package/dist/PersistedWorkflowSnapshotFactory-Y8kCrhcy.cjs.map +1 -0
- package/dist/PersistedWorkflowSnapshotFactory-Z_nB-fmB.cjs +108 -0
- package/dist/PersistedWorkflowSnapshotFactory-Z_nB-fmB.cjs.map +1 -0
- package/dist/RunIntentService-1EE6N8ZL.cjs +963 -0
- package/dist/RunIntentService-1EE6N8ZL.cjs.map +1 -0
- package/dist/RunIntentService-2ivFmNQh.cjs +3462 -0
- package/dist/RunIntentService-2ivFmNQh.cjs.map +1 -0
- package/dist/RunIntentService-B0sUL5q-.js +761 -0
- package/dist/RunIntentService-B0sUL5q-.js.map +1 -0
- package/dist/RunIntentService-BFVbsOcg.js +3131 -0
- package/dist/RunIntentService-BFVbsOcg.js.map +1 -0
- package/dist/RunIntentService-BsBOwpVN.cjs +1051 -0
- package/dist/RunIntentService-BsBOwpVN.cjs.map +1 -0
- package/dist/RunIntentService-CSk3ETyn.js +858 -0
- package/dist/RunIntentService-CSk3ETyn.js.map +1 -0
- package/dist/RunIntentService-Ckn3u3tA.d.cts +326 -0
- package/dist/RunIntentService-DEo6GTTo.d.cts +289 -0
- package/dist/RunIntentService-DKrGtL0B.js +782 -0
- package/dist/RunIntentService-DKrGtL0B.js.map +1 -0
- package/dist/RunIntentService-DNOJc1R7.cjs +942 -0
- package/dist/RunIntentService-DNOJc1R7.cjs.map +1 -0
- package/dist/RunIntentService-Dq3pV53j.d.cts +289 -0
- package/dist/RunIntentService-NKobsfMQ.d.cts +274 -0
- package/dist/WorkflowSnapshotCodec-C3fuuS_R.d.cts +22 -0
- package/dist/WorkflowSnapshotCodec-CUudUo6f.js +123 -0
- package/dist/WorkflowSnapshotCodec-CUudUo6f.js.map +1 -0
- package/dist/WorkflowSnapshotCodec-CuCPQZTc.cjs +129 -0
- package/dist/WorkflowSnapshotCodec-CuCPQZTc.cjs.map +1 -0
- package/dist/WorkflowSnapshotCodec-DLiXQNvV.d.cts +22 -0
- package/dist/WorkflowSnapshotCodec-DNtdrZ7l.d.cts +22 -0
- package/dist/WorkflowSnapshotCodec-DTdWkoW_.d.cts +22 -0
- package/dist/bootstrap/index.cjs +1028 -0
- package/dist/bootstrap/index.cjs.map +1 -0
- package/dist/bootstrap/index.d.cts +311 -0
- package/dist/bootstrap/index.d.ts +83 -0
- package/dist/bootstrap/index.js +994 -0
- package/dist/bootstrap/index.js.map +1 -0
- package/dist/credentialTypes-B5h3dI7r.d.cts +1107 -0
- package/dist/credentialTypes-B9okPCVo.d.cts +963 -0
- package/dist/credentialTypes-BFL70rgZ.d.cts +964 -0
- package/dist/credentialTypes-BGkh1O07.d.ts +1010 -0
- package/dist/credentialTypes-BNLi4Q7u.d.ts +1030 -0
- package/dist/credentialTypes-CeSoZGj3.d.cts +994 -0
- package/dist/credentialTypes-CpHc32Ig.d.cts +984 -0
- package/dist/credentialTypes-D0m7MQQl.d.cts +1107 -0
- package/dist/credentialTypes-D4nL2sUd.d.ts +1000 -0
- package/dist/credentialTypes-DBYK2Qbu.d.ts +999 -0
- package/dist/credentialTypes-DMJVy0r1.d.ts +1000 -0
- package/dist/credentialTypes-DhUAjYQp.d.ts +1020 -0
- package/dist/credentialTypes-gGITj5KL.d.cts +964 -0
- package/dist/credentialTypes-r3KVBJBE.d.cts +974 -0
- package/dist/diTokens-ClO27tjK.cjs +34 -0
- package/dist/diTokens-ClO27tjK.cjs.map +1 -0
- package/dist/diTokens-CoHBkwG6.js +28 -0
- package/dist/diTokens-CoHBkwG6.js.map +1 -0
- package/dist/index-6Doxmfnd.d.ts +857 -0
- package/dist/index-9g6Pfe9Z.d.ts +689 -0
- package/dist/index-AZ72Ej-K.d.ts +920 -0
- package/dist/index-BEk9V-q-.d.ts +667 -0
- package/dist/index-Bjt7_7oS.d.ts +1192 -0
- package/dist/index-CFGxsYXy.d.ts +708 -0
- package/dist/index-C_u8xFgn.d.ts +690 -0
- package/dist/index-CpbfsvOJ.d.ts +1192 -0
- package/dist/index-CsReNJN_.d.ts +859 -0
- package/dist/index-D5iNnXaW.d.ts +667 -0
- package/dist/index-DD_Eft1q.d.ts +708 -0
- package/dist/index-DiSYUe0G.d.ts +1192 -0
- package/dist/index-gIcH60sp.d.ts +674 -0
- package/dist/index.cjs +520 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +345 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +412 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime-BIvd-1JA.cjs +4112 -0
- package/dist/runtime-BIvd-1JA.cjs.map +1 -0
- package/dist/runtime-D3eWKSQK.cjs +3986 -0
- package/dist/runtime-D3eWKSQK.cjs.map +1 -0
- package/dist/runtime-Dvp4xAjg.js +3799 -0
- package/dist/runtime-Dvp4xAjg.js.map +1 -0
- package/dist/runtime-vc76SSAa.js +3685 -0
- package/dist/runtime-vc76SSAa.js.map +1 -0
- package/dist/runtimeTypes-BK0b8SaG.d.cts +884 -0
- package/dist/runtimeTypes-CoYZkYQq.d.cts +851 -0
- package/dist/runtimeTypes-D-Pm0Uas.d.cts +849 -0
- package/dist/testing.cjs +18 -0
- package/dist/testing.cjs.map +1 -0
- package/dist/testing.d.cts +19 -0
- package/dist/testing.d.ts +18 -0
- package/dist/testing.js +16 -0
- package/dist/testing.js.map +1 -0
- package/dist/types-Cb5UK7Y6.d.ts +857 -0
- package/package.json +66 -0
- package/src/ai/AiHost.ts +115 -0
- package/src/binaries/DefaultExecutionBinaryServiceFactory.ts +37 -0
- package/src/binaries/DefaultNodeBinaryAttachmentServiceFactory.ts +120 -0
- package/src/binaries/UnavailableBinaryStorage.ts +19 -0
- package/src/binaries/index.ts +2 -0
- package/src/bootstrap/index.ts +46 -0
- package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +180 -0
- package/src/bootstrap/runtime/EngineRuntimeRegistration.types.ts +43 -0
- package/src/bootstrap/runtime/index.ts +6 -0
- package/src/browser.ts +8 -0
- package/src/contracts/Clock.ts +10 -0
- package/src/contracts/ExpRetryPolicy.ts +23 -0
- package/src/contracts/NoRetryPolicy.ts +5 -0
- package/src/contracts/RetryPolicy.ts +23 -0
- package/src/contracts/credentialTypes.ts +194 -0
- package/src/contracts/index.ts +6 -0
- package/src/contracts/retryPolicySpec.types.ts +30 -0
- package/src/contracts/runFinishedAtFactory.ts +19 -0
- package/src/contracts/runTypes.ts +314 -0
- package/src/contracts/runtimeTypes.ts +373 -0
- package/src/contracts/webhookTypes.ts +49 -0
- package/src/contracts/workflowActivationPolicy.ts +16 -0
- package/src/contracts/workflowTypes.ts +280 -0
- package/src/di/CoreTokens.ts +60 -0
- package/src/di/index.ts +24 -0
- package/src/events/EventPublishingWorkflowExecutionRepository.ts +67 -0
- package/src/events/InMemoryRunEventBusRegistry.ts +37 -0
- package/src/events/InMemoryRunEventSubscription.ts +9 -0
- package/src/events/NodeEventPublisher.ts +22 -0
- package/src/events/index.ts +4 -0
- package/src/events/runEvents.ts +54 -0
- package/src/execution/ActivationEnqueueService.ts +125 -0
- package/src/execution/CredentialResolverFactory.ts +39 -0
- package/src/execution/DefaultAsyncSleeper.ts +9 -0
- package/src/execution/DefaultExecutionContextFactory.ts +48 -0
- package/src/execution/InProcessRetryRunner.ts +115 -0
- package/src/execution/InProcessRetryRunnerFactory.ts +8 -0
- package/src/execution/NodeActivationRequestComposer.ts +113 -0
- package/src/execution/NodeExecutionSnapshotFactory.ts +152 -0
- package/src/execution/NodeExecutor.ts +43 -0
- package/src/execution/NodeExecutorFactory.ts +10 -0
- package/src/execution/NodeInputsByPortFactory.ts +14 -0
- package/src/execution/NodeInstanceFactory.ts +32 -0
- package/src/execution/NodeInstanceFactoryFactory.ts +9 -0
- package/src/execution/NodeRunStateWriter.ts +185 -0
- package/src/execution/NodeRunStateWriterFactory.ts +29 -0
- package/src/execution/PersistedRunStateTerminalBuilder.ts +25 -0
- package/src/execution/RunStateSemantics.ts +158 -0
- package/src/execution/WorkflowRunExecutionContextFactory.ts +45 -0
- package/src/execution/asyncSleeper.types.ts +3 -0
- package/src/execution/index.ts +26 -0
- package/src/index.ts +18 -0
- package/src/orchestration/Engine.ts +229 -0
- package/src/orchestration/EngineWaiters.ts +37 -0
- package/src/orchestration/RunContinuationService.ts +810 -0
- package/src/orchestration/RunStartService.ts +449 -0
- package/src/orchestration/TriggerRuntimeService.ts +260 -0
- package/src/orchestration/index.ts +5 -0
- package/src/planning/CurrentStateFrontierPlanner.ts +400 -0
- package/src/planning/EngineWorkflowPlanningFactory.ts +63 -0
- package/src/planning/RunQueuePlanner.ts +302 -0
- package/src/planning/WorkflowTopologyPlanner.ts +77 -0
- package/src/planning/index.ts +4 -0
- package/src/policies/WorkflowPolicyErrorServices.ts +38 -0
- package/src/policies/executionLimits/EngineExecutionLimitsPolicy.ts +66 -0
- package/src/policies/executionLimits/EngineExecutionLimitsPolicyFactory.ts +14 -0
- package/src/policies/index.ts +10 -0
- package/src/policies/storage/RunPolicySnapshotFactory.ts +23 -0
- package/src/policies/storage/RunTerminalPersistenceCoordinator.ts +29 -0
- package/src/policies/storage/WorkflowStoragePolicyEvaluator.ts +39 -0
- package/src/runStorage/BinaryBodyBufferReader.ts +57 -0
- package/src/runStorage/BinaryBodyReadableStreamFactory.ts +21 -0
- package/src/runStorage/InMemoryBinaryStorageRegistry.ts +53 -0
- package/src/runStorage/InMemoryRunData.ts +33 -0
- package/src/runStorage/InMemoryRunDataFactory.ts +8 -0
- package/src/runStorage/InMemoryWorkflowExecutionRepository.ts +95 -0
- package/src/runStorage/RunSummaryMapper.ts +17 -0
- package/src/runStorage/index.ts +7 -0
- package/src/runtime/EngineFactory.ts +151 -0
- package/src/runtime/EngineWorkflowRunnerService.ts +39 -0
- package/src/runtime/EngineWorkflowRunnerServiceFactory.ts +11 -0
- package/src/runtime/InMemoryLiveWorkflowRepository.ts +20 -0
- package/src/runtime/RunIntentService.ts +175 -0
- package/src/runtime/RunIntentServiceFactory.ts +11 -0
- package/src/runtime/WorkflowRepositoryWebhookTriggerMatcher.ts +144 -0
- package/src/runtime/WorkflowRepositoryWebhookTriggerMatcherFactory.ts +13 -0
- package/src/runtime/index.ts +9 -0
- package/src/runtime-types/InjectableRuntimeDecoratorComposerRegistry.ts +25 -0
- package/src/runtime-types/PersistedRuntimeTypeMetadataStoreRegistry.ts +46 -0
- package/src/runtime-types/PersistedRuntimeTypeNameResolver.ts +14 -0
- package/src/runtime-types/StackTraceCallSitePathResolver.ts +25 -0
- package/src/runtime-types/persistedRuntimeTypeModelRegistry.ts +33 -0
- package/src/runtime-types/runtimeTypeDecorators.types.ts +46 -0
- package/src/scheduler/ConfigDrivenOffloadPolicy.ts +28 -0
- package/src/scheduler/DefaultDrivingScheduler.ts +100 -0
- package/src/scheduler/HintOnlyOffloadPolicy.ts +9 -0
- package/src/scheduler/InlineDrivingScheduler.ts +145 -0
- package/src/scheduler/InlineDrivingSchedulerFactory.ts +9 -0
- package/src/scheduler/LocalOnlyScheduler.ts +7 -0
- package/src/serialization/ItemsInputNormalizer.ts +36 -0
- package/src/testing/RejectingCredentialSessionService.ts +15 -0
- package/src/testing.ts +6 -0
- package/src/types/index.ts +12 -0
- package/src/workflow/definition/ConnectionInvocationIdFactory.ts +17 -0
- package/src/workflow/definition/ConnectionNodeIdFactory.ts +42 -0
- package/src/workflow/definition/WorkflowExecutableNodeClassifier.ts +71 -0
- package/src/workflow/definition/WorkflowExecutableNodeClassifierFactory.ts +9 -0
- package/src/workflow/dsl/ChainCursorResolver.ts +103 -0
- package/src/workflow/dsl/WhenBuilder.ts +57 -0
- package/src/workflow/dsl/WorkflowBuilder.ts +55 -0
- package/src/workflow/dsl/workflowBuilderTypes.ts +63 -0
- package/src/workflow/graph/DefaultWorkflowGraphFactory.ts +8 -0
- package/src/workflow/graph/ExecutableGraph.ts +24 -0
- package/src/workflow/index.ts +11 -0
- package/src/workflowSnapshots/MissingRuntimeExecutionMarker.ts +5 -0
- package/src/workflowSnapshots/MissingRuntimeFallbacksFactory.ts +27 -0
- package/src/workflowSnapshots/MissingRuntimeNode.ts +12 -0
- package/src/workflowSnapshots/MissingRuntimeNodeConfig.ts +14 -0
- package/src/workflowSnapshots/MissingRuntimeNodeToken.ts +1 -0
- package/src/workflowSnapshots/MissingRuntimeTrigger.ts +16 -0
- package/src/workflowSnapshots/MissingRuntimeTriggerConfig.ts +14 -0
- package/src/workflowSnapshots/MissingRuntimeTriggerToken.ts +1 -0
- package/src/workflowSnapshots/PersistedRuntimeTypeIdFactory.ts +19 -0
- package/src/workflowSnapshots/PersistedWorkflowTokenRegistry.ts +89 -0
- package/src/workflowSnapshots/PersistedWorkflowTokenRegistryFactory.ts +2 -0
- package/src/workflowSnapshots/WorkflowSnapshotCodec.ts +177 -0
- package/src/workflowSnapshots/WorkflowSnapshotResolver.ts +102 -0
- package/src/workflowSnapshots/index.ts +12 -0
- package/tsconfig.json +9 -0
- package/tsdown.config.ts +10 -0
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# `@codemation/core`
|
|
2
|
+
|
|
3
|
+
The **Codemation engine**: workflow types, the execution model, builder DSL, dependency-injection primitives, and shared runtime contracts. It stays free of HTTP servers, databases, UI, and concrete node catalogs so apps and plugins can build on a stable core.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @codemation/core@^0.0.0
|
|
9
|
+
# or
|
|
10
|
+
npm install @codemation/core@^0.0.0
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## When to use
|
|
14
|
+
|
|
15
|
+
Use this package when you define workflows, implement **custom nodes** (config classes + `Node` implementations), or integrate with the engine in TypeScript. Consumer apps and node packages should depend on `@codemation/core`; they should not pull host or infrastructure code into engine-shaped modules.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Main entry:
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import { WorkflowBuilder /* engine types, DI helpers */ } from "@codemation/core";
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Additional subpaths:
|
|
26
|
+
|
|
27
|
+
- `@codemation/core/browser` — browser-safe surface where applicable
|
|
28
|
+
- `@codemation/core/testing` — test helpers for engine-style code
|
|
29
|
+
|
|
30
|
+
Build the package (`pnpm --filter @codemation/core build`) so `dist` matches the `exports` map before consuming from published tarballs.
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { En as WebhookTriggerResolution, Jt as NodeActivationContinuation, K as NodeId, N as Items, Nn as CurrentStateExecutionRequest, Qn as RunExecutionOptions, Tn as WebhookTriggerMatcher, Y as NodeOutputs, ar as RunStateStore, at as RunId, bn as WorkflowSnapshotResolver, bt as WorkflowId, et as ParentExecutionRef, lr as WebhookRunResult, mn as WorkflowCatalog, mt as WorkflowDefinition, qn as PersistedWorkflowTokenRegistryLike, rr as RunResult, xn as HttpMethod, z as NodeActivationId, zn as NodeInputsByPort } from "./credentialTypes-B5h3dI7r.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/engine/api/Engine.d.ts
|
|
4
|
+
interface EngineTriggerRuntime {
|
|
5
|
+
startTriggers(): Promise<void>;
|
|
6
|
+
stop(): Promise<void>;
|
|
7
|
+
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
8
|
+
createTriggerTestItems(args: {
|
|
9
|
+
workflow: WorkflowDefinition;
|
|
10
|
+
nodeId: NodeId;
|
|
11
|
+
}): Promise<Items | undefined>;
|
|
12
|
+
}
|
|
13
|
+
interface EngineWorkflowRunStarter {
|
|
14
|
+
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
15
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
16
|
+
mutableState?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["mutableState"];
|
|
17
|
+
}>): Promise<RunResult>;
|
|
18
|
+
}
|
|
19
|
+
interface EngineCurrentStateRunStarter {
|
|
20
|
+
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
21
|
+
}
|
|
22
|
+
interface EngineRunContinuationService {
|
|
23
|
+
markNodeRunning(args: {
|
|
24
|
+
runId: RunId;
|
|
25
|
+
activationId: NodeActivationId;
|
|
26
|
+
nodeId: NodeId;
|
|
27
|
+
inputsByPort: NodeInputsByPort;
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
resumeFromNodeResult(args: {
|
|
30
|
+
runId: RunId;
|
|
31
|
+
activationId: NodeActivationId;
|
|
32
|
+
nodeId: NodeId;
|
|
33
|
+
outputs: NodeOutputs;
|
|
34
|
+
}): Promise<RunResult>;
|
|
35
|
+
resumeFromNodeError(args: {
|
|
36
|
+
runId: RunId;
|
|
37
|
+
activationId: NodeActivationId;
|
|
38
|
+
nodeId: NodeId;
|
|
39
|
+
error: Error;
|
|
40
|
+
}): Promise<RunResult>;
|
|
41
|
+
resumeFromStepResult(args: {
|
|
42
|
+
runId: RunId;
|
|
43
|
+
activationId: NodeActivationId;
|
|
44
|
+
nodeId: NodeId;
|
|
45
|
+
outputs: NodeOutputs;
|
|
46
|
+
}): Promise<RunResult>;
|
|
47
|
+
resumeFromStepError(args: {
|
|
48
|
+
runId: RunId;
|
|
49
|
+
activationId: NodeActivationId;
|
|
50
|
+
nodeId: NodeId;
|
|
51
|
+
error: Error;
|
|
52
|
+
}): Promise<RunResult>;
|
|
53
|
+
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
54
|
+
status: "completed" | "failed";
|
|
55
|
+
}>>;
|
|
56
|
+
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
57
|
+
}
|
|
58
|
+
interface EngineFacadeDeps {
|
|
59
|
+
workflowCatalog: WorkflowCatalog;
|
|
60
|
+
tokenRegistry: PersistedWorkflowTokenRegistryLike;
|
|
61
|
+
webhookTriggerMatcher: WebhookTriggerMatcher;
|
|
62
|
+
workflowSnapshotResolver: WorkflowSnapshotResolver;
|
|
63
|
+
triggerRuntime: EngineTriggerRuntime;
|
|
64
|
+
workflowRunStarter: EngineWorkflowRunStarter;
|
|
65
|
+
currentStateRunStarter: EngineCurrentStateRunStarter;
|
|
66
|
+
runContinuationService: EngineRunContinuationService;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Runtime facade for orchestration, continuation, triggers, and webhook routing.
|
|
70
|
+
* Prefer {@link import("../intents/RunIntentService").RunIntentService} for host/HTTP invocation boundaries.
|
|
71
|
+
* The class token is exported from `@codemation/core/bootstrap` (not the main `@codemation/core` barrel).
|
|
72
|
+
*/
|
|
73
|
+
declare class Engine implements NodeActivationContinuation {
|
|
74
|
+
private readonly deps;
|
|
75
|
+
constructor(deps: EngineFacadeDeps);
|
|
76
|
+
loadWorkflows(workflows: ReadonlyArray<WorkflowDefinition>): void;
|
|
77
|
+
getTokenRegistry(): EngineFacadeDeps["tokenRegistry"];
|
|
78
|
+
resolveWorkflowSnapshot(args: {
|
|
79
|
+
workflowId: WorkflowId;
|
|
80
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
81
|
+
}): WorkflowDefinition | undefined;
|
|
82
|
+
startTriggers(): Promise<void>;
|
|
83
|
+
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
84
|
+
start(workflows: WorkflowDefinition[]): Promise<void>;
|
|
85
|
+
stop(): Promise<void>;
|
|
86
|
+
resolveWebhookTrigger(args: {
|
|
87
|
+
endpointPath: string;
|
|
88
|
+
method: HttpMethod;
|
|
89
|
+
}): WebhookTriggerResolution;
|
|
90
|
+
createTriggerTestItems(args: {
|
|
91
|
+
workflow: WorkflowDefinition;
|
|
92
|
+
nodeId: NodeId;
|
|
93
|
+
}): Promise<Items | undefined>;
|
|
94
|
+
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
95
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
96
|
+
mutableState?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["mutableState"];
|
|
97
|
+
}>): Promise<RunResult>;
|
|
98
|
+
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
99
|
+
markNodeRunning(args: {
|
|
100
|
+
runId: RunId;
|
|
101
|
+
activationId: NodeActivationId;
|
|
102
|
+
nodeId: NodeId;
|
|
103
|
+
inputsByPort: NodeInputsByPort;
|
|
104
|
+
}): Promise<void>;
|
|
105
|
+
resumeFromNodeResult(args: {
|
|
106
|
+
runId: RunId;
|
|
107
|
+
activationId: NodeActivationId;
|
|
108
|
+
nodeId: NodeId;
|
|
109
|
+
outputs: NodeOutputs;
|
|
110
|
+
}): Promise<RunResult>;
|
|
111
|
+
resumeFromNodeError(args: {
|
|
112
|
+
runId: RunId;
|
|
113
|
+
activationId: NodeActivationId;
|
|
114
|
+
nodeId: NodeId;
|
|
115
|
+
error: Error;
|
|
116
|
+
}): Promise<RunResult>;
|
|
117
|
+
resumeFromStepResult(args: {
|
|
118
|
+
runId: RunId;
|
|
119
|
+
activationId: NodeActivationId;
|
|
120
|
+
nodeId: NodeId;
|
|
121
|
+
outputs: NodeOutputs;
|
|
122
|
+
}): Promise<RunResult>;
|
|
123
|
+
resumeFromStepError(args: {
|
|
124
|
+
runId: RunId;
|
|
125
|
+
activationId: NodeActivationId;
|
|
126
|
+
nodeId: NodeId;
|
|
127
|
+
error: Error;
|
|
128
|
+
}): Promise<RunResult>;
|
|
129
|
+
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
130
|
+
status: "completed" | "failed";
|
|
131
|
+
}>>;
|
|
132
|
+
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
133
|
+
}
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/engine/policies/EngineExecutionLimitsPolicy.d.ts
|
|
136
|
+
interface EngineExecutionLimitsPolicyConfig {
|
|
137
|
+
readonly defaultMaxNodeActivations: number;
|
|
138
|
+
readonly hardMaxNodeActivations: number;
|
|
139
|
+
readonly defaultMaxSubworkflowDepth: number;
|
|
140
|
+
readonly hardMaxSubworkflowDepth: number;
|
|
141
|
+
}
|
|
142
|
+
/** Framework defaults for {@link EngineExecutionLimitsPolicy} (merged with host `runtime.engineExecutionLimits`). */
|
|
143
|
+
declare const ENGINE_EXECUTION_LIMITS_DEFAULTS: EngineExecutionLimitsPolicyConfig;
|
|
144
|
+
/**
|
|
145
|
+
* Resolves per-run execution limits: defaults, hard ceilings, and subworkflow depth for new runs.
|
|
146
|
+
*/
|
|
147
|
+
declare class EngineExecutionLimitsPolicy {
|
|
148
|
+
private readonly config;
|
|
149
|
+
constructor(config?: EngineExecutionLimitsPolicyConfig);
|
|
150
|
+
/**
|
|
151
|
+
* Effective options for a new root run (depth 0): defaults merged with engine ceilings.
|
|
152
|
+
* Replaces a separate one-method factory for root-run bootstrap.
|
|
153
|
+
*/
|
|
154
|
+
createRootExecutionOptions(): RunExecutionOptions;
|
|
155
|
+
mergeExecutionOptionsForNewRun(parent: ParentExecutionRef | undefined, user: RunExecutionOptions | undefined): RunExecutionOptions;
|
|
156
|
+
private capNumber;
|
|
157
|
+
}
|
|
158
|
+
//#endregion
|
|
159
|
+
export { Engine as i, EngineExecutionLimitsPolicy as n, EngineExecutionLimitsPolicyConfig as r, ENGINE_EXECUTION_LIMITS_DEFAULTS as t };
|
|
160
|
+
//# sourceMappingURL=EngineExecutionLimitsPolicy-8MEFIYx1.d.cts.map
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { En as WebhookTriggerResolution, Jt as NodeActivationContinuation, K as NodeId, N as Items, Nn as CurrentStateExecutionRequest, Qn as RunExecutionOptions, Tn as WebhookTriggerMatcher, Y as NodeOutputs, ar as RunStateStore, at as RunId, bn as WorkflowSnapshotResolver, bt as WorkflowId, et as ParentExecutionRef, lr as WebhookRunResult, mn as WorkflowCatalog, mt as WorkflowDefinition, qn as PersistedWorkflowTokenRegistryLike, rr as RunResult, xn as HttpMethod, z as NodeActivationId, zn as NodeInputsByPort } from "./credentialTypes-D0m7MQQl.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/engine/api/Engine.d.ts
|
|
4
|
+
interface EngineTriggerRuntime {
|
|
5
|
+
startTriggers(): Promise<void>;
|
|
6
|
+
stop(): Promise<void>;
|
|
7
|
+
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
8
|
+
createTriggerTestItems(args: {
|
|
9
|
+
workflow: WorkflowDefinition;
|
|
10
|
+
nodeId: NodeId;
|
|
11
|
+
}): Promise<Items | undefined>;
|
|
12
|
+
}
|
|
13
|
+
interface EngineWorkflowRunStarter {
|
|
14
|
+
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
15
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
16
|
+
mutableState?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["mutableState"];
|
|
17
|
+
}>): Promise<RunResult>;
|
|
18
|
+
}
|
|
19
|
+
interface EngineCurrentStateRunStarter {
|
|
20
|
+
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
21
|
+
}
|
|
22
|
+
interface EngineRunContinuationService {
|
|
23
|
+
markNodeRunning(args: {
|
|
24
|
+
runId: RunId;
|
|
25
|
+
activationId: NodeActivationId;
|
|
26
|
+
nodeId: NodeId;
|
|
27
|
+
inputsByPort: NodeInputsByPort;
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
resumeFromNodeResult(args: {
|
|
30
|
+
runId: RunId;
|
|
31
|
+
activationId: NodeActivationId;
|
|
32
|
+
nodeId: NodeId;
|
|
33
|
+
outputs: NodeOutputs;
|
|
34
|
+
}): Promise<RunResult>;
|
|
35
|
+
resumeFromNodeError(args: {
|
|
36
|
+
runId: RunId;
|
|
37
|
+
activationId: NodeActivationId;
|
|
38
|
+
nodeId: NodeId;
|
|
39
|
+
error: Error;
|
|
40
|
+
}): Promise<RunResult>;
|
|
41
|
+
resumeFromStepResult(args: {
|
|
42
|
+
runId: RunId;
|
|
43
|
+
activationId: NodeActivationId;
|
|
44
|
+
nodeId: NodeId;
|
|
45
|
+
outputs: NodeOutputs;
|
|
46
|
+
}): Promise<RunResult>;
|
|
47
|
+
resumeFromStepError(args: {
|
|
48
|
+
runId: RunId;
|
|
49
|
+
activationId: NodeActivationId;
|
|
50
|
+
nodeId: NodeId;
|
|
51
|
+
error: Error;
|
|
52
|
+
}): Promise<RunResult>;
|
|
53
|
+
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
54
|
+
status: "completed" | "failed";
|
|
55
|
+
}>>;
|
|
56
|
+
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
57
|
+
}
|
|
58
|
+
interface EngineFacadeDeps {
|
|
59
|
+
workflowCatalog: WorkflowCatalog;
|
|
60
|
+
tokenRegistry: PersistedWorkflowTokenRegistryLike;
|
|
61
|
+
webhookTriggerMatcher: WebhookTriggerMatcher;
|
|
62
|
+
workflowSnapshotResolver: WorkflowSnapshotResolver;
|
|
63
|
+
triggerRuntime: EngineTriggerRuntime;
|
|
64
|
+
workflowRunStarter: EngineWorkflowRunStarter;
|
|
65
|
+
currentStateRunStarter: EngineCurrentStateRunStarter;
|
|
66
|
+
runContinuationService: EngineRunContinuationService;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Runtime facade for orchestration, continuation, triggers, and webhook routing.
|
|
70
|
+
* Prefer {@link import("../intents/RunIntentService").RunIntentService} for host/HTTP invocation boundaries.
|
|
71
|
+
* The class token is exported from `@codemation/core/bootstrap` (not the main `@codemation/core` barrel).
|
|
72
|
+
*/
|
|
73
|
+
declare class Engine implements NodeActivationContinuation {
|
|
74
|
+
private readonly deps;
|
|
75
|
+
constructor(deps: EngineFacadeDeps);
|
|
76
|
+
loadWorkflows(workflows: ReadonlyArray<WorkflowDefinition>): void;
|
|
77
|
+
getTokenRegistry(): EngineFacadeDeps["tokenRegistry"];
|
|
78
|
+
resolveWorkflowSnapshot(args: {
|
|
79
|
+
workflowId: WorkflowId;
|
|
80
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
81
|
+
}): WorkflowDefinition | undefined;
|
|
82
|
+
startTriggers(): Promise<void>;
|
|
83
|
+
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
84
|
+
start(workflows: WorkflowDefinition[]): Promise<void>;
|
|
85
|
+
stop(): Promise<void>;
|
|
86
|
+
resolveWebhookTrigger(args: {
|
|
87
|
+
endpointPath: string;
|
|
88
|
+
method: HttpMethod;
|
|
89
|
+
}): WebhookTriggerResolution;
|
|
90
|
+
createTriggerTestItems(args: {
|
|
91
|
+
workflow: WorkflowDefinition;
|
|
92
|
+
nodeId: NodeId;
|
|
93
|
+
}): Promise<Items | undefined>;
|
|
94
|
+
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
95
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
96
|
+
mutableState?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["mutableState"];
|
|
97
|
+
}>): Promise<RunResult>;
|
|
98
|
+
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
99
|
+
markNodeRunning(args: {
|
|
100
|
+
runId: RunId;
|
|
101
|
+
activationId: NodeActivationId;
|
|
102
|
+
nodeId: NodeId;
|
|
103
|
+
inputsByPort: NodeInputsByPort;
|
|
104
|
+
}): Promise<void>;
|
|
105
|
+
resumeFromNodeResult(args: {
|
|
106
|
+
runId: RunId;
|
|
107
|
+
activationId: NodeActivationId;
|
|
108
|
+
nodeId: NodeId;
|
|
109
|
+
outputs: NodeOutputs;
|
|
110
|
+
}): Promise<RunResult>;
|
|
111
|
+
resumeFromNodeError(args: {
|
|
112
|
+
runId: RunId;
|
|
113
|
+
activationId: NodeActivationId;
|
|
114
|
+
nodeId: NodeId;
|
|
115
|
+
error: Error;
|
|
116
|
+
}): Promise<RunResult>;
|
|
117
|
+
resumeFromStepResult(args: {
|
|
118
|
+
runId: RunId;
|
|
119
|
+
activationId: NodeActivationId;
|
|
120
|
+
nodeId: NodeId;
|
|
121
|
+
outputs: NodeOutputs;
|
|
122
|
+
}): Promise<RunResult>;
|
|
123
|
+
resumeFromStepError(args: {
|
|
124
|
+
runId: RunId;
|
|
125
|
+
activationId: NodeActivationId;
|
|
126
|
+
nodeId: NodeId;
|
|
127
|
+
error: Error;
|
|
128
|
+
}): Promise<RunResult>;
|
|
129
|
+
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
130
|
+
status: "completed" | "failed";
|
|
131
|
+
}>>;
|
|
132
|
+
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
133
|
+
}
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/engine/policies/EngineExecutionLimitsPolicy.d.ts
|
|
136
|
+
interface EngineExecutionLimitsPolicyConfig {
|
|
137
|
+
readonly defaultMaxNodeActivations: number;
|
|
138
|
+
readonly hardMaxNodeActivations: number;
|
|
139
|
+
readonly defaultMaxSubworkflowDepth: number;
|
|
140
|
+
readonly hardMaxSubworkflowDepth: number;
|
|
141
|
+
}
|
|
142
|
+
/** Framework defaults for {@link EngineExecutionLimitsPolicy} (merged with host `runtime.engineExecutionLimits`). */
|
|
143
|
+
declare const ENGINE_EXECUTION_LIMITS_DEFAULTS: EngineExecutionLimitsPolicyConfig;
|
|
144
|
+
/**
|
|
145
|
+
* Resolves per-run execution limits: defaults, hard ceilings, and subworkflow depth for new runs.
|
|
146
|
+
*/
|
|
147
|
+
declare class EngineExecutionLimitsPolicy {
|
|
148
|
+
private readonly config;
|
|
149
|
+
constructor(config?: EngineExecutionLimitsPolicyConfig);
|
|
150
|
+
/**
|
|
151
|
+
* Effective options for a new root run (depth 0): defaults merged with engine ceilings.
|
|
152
|
+
* Replaces a separate one-method factory for root-run bootstrap.
|
|
153
|
+
*/
|
|
154
|
+
createRootExecutionOptions(): RunExecutionOptions;
|
|
155
|
+
mergeExecutionOptionsForNewRun(parent: ParentExecutionRef | undefined, user: RunExecutionOptions | undefined): RunExecutionOptions;
|
|
156
|
+
private capNumber;
|
|
157
|
+
}
|
|
158
|
+
//#endregion
|
|
159
|
+
export { Engine as i, EngineExecutionLimitsPolicy as n, EngineExecutionLimitsPolicyConfig as r, ENGINE_EXECUTION_LIMITS_DEFAULTS as t };
|
|
160
|
+
//# sourceMappingURL=EngineExecutionLimitsPolicy-BWAXW9D6.d.cts.map
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { En as WebhookTriggerResolution, Jt as NodeActivationContinuation, K as NodeId, N as Items, Nn as CurrentStateExecutionRequest, Qn as RunExecutionOptions, Tn as WebhookTriggerMatcher, Y as NodeOutputs, ar as RunStateStore, at as RunId, bn as WorkflowSnapshotResolver, bt as WorkflowId, et as ParentExecutionRef, lr as WebhookRunResult, mn as WorkflowCatalog, mt as WorkflowDefinition, qn as PersistedWorkflowTokenRegistryLike, rr as RunResult, xn as HttpMethod, z as NodeActivationId, zn as NodeInputsByPort } from "./credentialTypes-D0m7MQQl.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/engine/api/Engine.d.ts
|
|
4
|
+
interface EngineTriggerRuntime {
|
|
5
|
+
startTriggers(): Promise<void>;
|
|
6
|
+
stop(): Promise<void>;
|
|
7
|
+
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
8
|
+
createTriggerTestItems(args: {
|
|
9
|
+
workflow: WorkflowDefinition;
|
|
10
|
+
nodeId: NodeId;
|
|
11
|
+
}): Promise<Items | undefined>;
|
|
12
|
+
}
|
|
13
|
+
interface EngineWorkflowRunStarter {
|
|
14
|
+
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
15
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
16
|
+
mutableState?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["mutableState"];
|
|
17
|
+
}>): Promise<RunResult>;
|
|
18
|
+
}
|
|
19
|
+
interface EngineCurrentStateRunStarter {
|
|
20
|
+
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
21
|
+
}
|
|
22
|
+
interface EngineRunContinuationService {
|
|
23
|
+
markNodeRunning(args: {
|
|
24
|
+
runId: RunId;
|
|
25
|
+
activationId: NodeActivationId;
|
|
26
|
+
nodeId: NodeId;
|
|
27
|
+
inputsByPort: NodeInputsByPort;
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
resumeFromNodeResult(args: {
|
|
30
|
+
runId: RunId;
|
|
31
|
+
activationId: NodeActivationId;
|
|
32
|
+
nodeId: NodeId;
|
|
33
|
+
outputs: NodeOutputs;
|
|
34
|
+
}): Promise<RunResult>;
|
|
35
|
+
resumeFromNodeError(args: {
|
|
36
|
+
runId: RunId;
|
|
37
|
+
activationId: NodeActivationId;
|
|
38
|
+
nodeId: NodeId;
|
|
39
|
+
error: Error;
|
|
40
|
+
}): Promise<RunResult>;
|
|
41
|
+
resumeFromStepResult(args: {
|
|
42
|
+
runId: RunId;
|
|
43
|
+
activationId: NodeActivationId;
|
|
44
|
+
nodeId: NodeId;
|
|
45
|
+
outputs: NodeOutputs;
|
|
46
|
+
}): Promise<RunResult>;
|
|
47
|
+
resumeFromStepError(args: {
|
|
48
|
+
runId: RunId;
|
|
49
|
+
activationId: NodeActivationId;
|
|
50
|
+
nodeId: NodeId;
|
|
51
|
+
error: Error;
|
|
52
|
+
}): Promise<RunResult>;
|
|
53
|
+
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
54
|
+
status: "completed" | "failed";
|
|
55
|
+
}>>;
|
|
56
|
+
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
57
|
+
}
|
|
58
|
+
interface EngineFacadeDeps {
|
|
59
|
+
workflowCatalog: WorkflowCatalog;
|
|
60
|
+
tokenRegistry: PersistedWorkflowTokenRegistryLike;
|
|
61
|
+
webhookTriggerMatcher: WebhookTriggerMatcher;
|
|
62
|
+
workflowSnapshotResolver: WorkflowSnapshotResolver;
|
|
63
|
+
triggerRuntime: EngineTriggerRuntime;
|
|
64
|
+
workflowRunStarter: EngineWorkflowRunStarter;
|
|
65
|
+
currentStateRunStarter: EngineCurrentStateRunStarter;
|
|
66
|
+
runContinuationService: EngineRunContinuationService;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Runtime facade for orchestration, continuation, triggers, and webhook routing.
|
|
70
|
+
* Prefer {@link import("../intents/RunIntentService").RunIntentService} for host/HTTP invocation boundaries.
|
|
71
|
+
*/
|
|
72
|
+
declare class Engine implements NodeActivationContinuation {
|
|
73
|
+
private readonly deps;
|
|
74
|
+
constructor(deps: EngineFacadeDeps);
|
|
75
|
+
loadWorkflows(workflows: ReadonlyArray<WorkflowDefinition>): void;
|
|
76
|
+
getTokenRegistry(): EngineFacadeDeps["tokenRegistry"];
|
|
77
|
+
resolveWorkflowSnapshot(args: {
|
|
78
|
+
workflowId: WorkflowId;
|
|
79
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
80
|
+
}): WorkflowDefinition | undefined;
|
|
81
|
+
startTriggers(): Promise<void>;
|
|
82
|
+
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
83
|
+
start(workflows: WorkflowDefinition[]): Promise<void>;
|
|
84
|
+
stop(): Promise<void>;
|
|
85
|
+
resolveWebhookTrigger(args: {
|
|
86
|
+
endpointPath: string;
|
|
87
|
+
method: HttpMethod;
|
|
88
|
+
}): WebhookTriggerResolution;
|
|
89
|
+
createTriggerTestItems(args: {
|
|
90
|
+
workflow: WorkflowDefinition;
|
|
91
|
+
nodeId: NodeId;
|
|
92
|
+
}): Promise<Items | undefined>;
|
|
93
|
+
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
94
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
95
|
+
mutableState?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["mutableState"];
|
|
96
|
+
}>): Promise<RunResult>;
|
|
97
|
+
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
98
|
+
markNodeRunning(args: {
|
|
99
|
+
runId: RunId;
|
|
100
|
+
activationId: NodeActivationId;
|
|
101
|
+
nodeId: NodeId;
|
|
102
|
+
inputsByPort: NodeInputsByPort;
|
|
103
|
+
}): Promise<void>;
|
|
104
|
+
resumeFromNodeResult(args: {
|
|
105
|
+
runId: RunId;
|
|
106
|
+
activationId: NodeActivationId;
|
|
107
|
+
nodeId: NodeId;
|
|
108
|
+
outputs: NodeOutputs;
|
|
109
|
+
}): Promise<RunResult>;
|
|
110
|
+
resumeFromNodeError(args: {
|
|
111
|
+
runId: RunId;
|
|
112
|
+
activationId: NodeActivationId;
|
|
113
|
+
nodeId: NodeId;
|
|
114
|
+
error: Error;
|
|
115
|
+
}): Promise<RunResult>;
|
|
116
|
+
resumeFromStepResult(args: {
|
|
117
|
+
runId: RunId;
|
|
118
|
+
activationId: NodeActivationId;
|
|
119
|
+
nodeId: NodeId;
|
|
120
|
+
outputs: NodeOutputs;
|
|
121
|
+
}): Promise<RunResult>;
|
|
122
|
+
resumeFromStepError(args: {
|
|
123
|
+
runId: RunId;
|
|
124
|
+
activationId: NodeActivationId;
|
|
125
|
+
nodeId: NodeId;
|
|
126
|
+
error: Error;
|
|
127
|
+
}): Promise<RunResult>;
|
|
128
|
+
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
129
|
+
status: "completed" | "failed";
|
|
130
|
+
}>>;
|
|
131
|
+
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/engine/policies/EngineExecutionLimitsPolicy.d.ts
|
|
135
|
+
interface EngineExecutionLimitsPolicyConfig {
|
|
136
|
+
readonly defaultMaxNodeActivations: number;
|
|
137
|
+
readonly hardMaxNodeActivations: number;
|
|
138
|
+
readonly defaultMaxSubworkflowDepth: number;
|
|
139
|
+
readonly hardMaxSubworkflowDepth: number;
|
|
140
|
+
}
|
|
141
|
+
/** Framework defaults for {@link EngineExecutionLimitsPolicy} (merged with host `runtime.engineExecutionLimits`). */
|
|
142
|
+
declare const ENGINE_EXECUTION_LIMITS_DEFAULTS: EngineExecutionLimitsPolicyConfig;
|
|
143
|
+
/**
|
|
144
|
+
* Resolves per-run execution limits: defaults, hard ceilings, and subworkflow depth for new runs.
|
|
145
|
+
*/
|
|
146
|
+
declare class EngineExecutionLimitsPolicy {
|
|
147
|
+
private readonly config;
|
|
148
|
+
constructor(config?: EngineExecutionLimitsPolicyConfig);
|
|
149
|
+
/**
|
|
150
|
+
* Effective options for a new root run (depth 0): defaults merged with engine ceilings.
|
|
151
|
+
* Replaces a separate one-method factory for root-run bootstrap.
|
|
152
|
+
*/
|
|
153
|
+
createRootExecutionOptions(): RunExecutionOptions;
|
|
154
|
+
mergeExecutionOptionsForNewRun(parent: ParentExecutionRef | undefined, user: RunExecutionOptions | undefined): RunExecutionOptions;
|
|
155
|
+
private capNumber;
|
|
156
|
+
}
|
|
157
|
+
//#endregion
|
|
158
|
+
export { Engine as i, EngineExecutionLimitsPolicy as n, EngineExecutionLimitsPolicyConfig as r, ENGINE_EXECUTION_LIMITS_DEFAULTS as t };
|
|
159
|
+
//# sourceMappingURL=EngineExecutionLimitsPolicy-Bp8PS1Ss.d.cts.map
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { $t as NodeActivationContinuation, An as WebhookTriggerMatcher, En as HttpMethod, Qn as PersistedWorkflowTokenRegistryLike, R as Items, Rn as CurrentStateExecutionRequest, Tn as WorkflowSnapshotResolver, Tt as WorkflowId, W as NodeActivationId, Wn as NodeInputsByPort, Z as NodeId, at as ParentExecutionRef, cr as RunResult, et as NodeOutputs, jn as WebhookTriggerResolution, mr as WebhookRunResult, rr as RunExecutionOptions, ur as RunStateStore, ut as RunId, yn as WorkflowCatalog, yt as WorkflowDefinition } from "./index-Bjt7_7oS.js";
|
|
2
|
+
|
|
3
|
+
//#region src/engine/api/Engine.d.ts
|
|
4
|
+
interface EngineTriggerRuntime {
|
|
5
|
+
startTriggers(): Promise<void>;
|
|
6
|
+
stop(): Promise<void>;
|
|
7
|
+
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
8
|
+
createTriggerTestItems(args: {
|
|
9
|
+
workflow: WorkflowDefinition;
|
|
10
|
+
nodeId: NodeId;
|
|
11
|
+
}): Promise<Items | undefined>;
|
|
12
|
+
}
|
|
13
|
+
interface EngineWorkflowRunStarter {
|
|
14
|
+
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
15
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
16
|
+
mutableState?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["mutableState"];
|
|
17
|
+
}>): Promise<RunResult>;
|
|
18
|
+
}
|
|
19
|
+
interface EngineCurrentStateRunStarter {
|
|
20
|
+
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
21
|
+
}
|
|
22
|
+
interface EngineRunContinuationService {
|
|
23
|
+
markNodeRunning(args: {
|
|
24
|
+
runId: RunId;
|
|
25
|
+
activationId: NodeActivationId;
|
|
26
|
+
nodeId: NodeId;
|
|
27
|
+
inputsByPort: NodeInputsByPort;
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
resumeFromNodeResult(args: {
|
|
30
|
+
runId: RunId;
|
|
31
|
+
activationId: NodeActivationId;
|
|
32
|
+
nodeId: NodeId;
|
|
33
|
+
outputs: NodeOutputs;
|
|
34
|
+
}): Promise<RunResult>;
|
|
35
|
+
resumeFromNodeError(args: {
|
|
36
|
+
runId: RunId;
|
|
37
|
+
activationId: NodeActivationId;
|
|
38
|
+
nodeId: NodeId;
|
|
39
|
+
error: Error;
|
|
40
|
+
}): Promise<RunResult>;
|
|
41
|
+
resumeFromStepResult(args: {
|
|
42
|
+
runId: RunId;
|
|
43
|
+
activationId: NodeActivationId;
|
|
44
|
+
nodeId: NodeId;
|
|
45
|
+
outputs: NodeOutputs;
|
|
46
|
+
}): Promise<RunResult>;
|
|
47
|
+
resumeFromStepError(args: {
|
|
48
|
+
runId: RunId;
|
|
49
|
+
activationId: NodeActivationId;
|
|
50
|
+
nodeId: NodeId;
|
|
51
|
+
error: Error;
|
|
52
|
+
}): Promise<RunResult>;
|
|
53
|
+
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
54
|
+
status: "completed" | "failed";
|
|
55
|
+
}>>;
|
|
56
|
+
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
57
|
+
}
|
|
58
|
+
interface EngineFacadeDeps {
|
|
59
|
+
workflowCatalog: WorkflowCatalog;
|
|
60
|
+
tokenRegistry: PersistedWorkflowTokenRegistryLike;
|
|
61
|
+
webhookTriggerMatcher: WebhookTriggerMatcher;
|
|
62
|
+
workflowSnapshotResolver: WorkflowSnapshotResolver;
|
|
63
|
+
triggerRuntime: EngineTriggerRuntime;
|
|
64
|
+
workflowRunStarter: EngineWorkflowRunStarter;
|
|
65
|
+
currentStateRunStarter: EngineCurrentStateRunStarter;
|
|
66
|
+
runContinuationService: EngineRunContinuationService;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Runtime facade for orchestration, continuation, triggers, and webhook routing.
|
|
70
|
+
* Prefer {@link import("../intents/RunIntentService").RunIntentService} for host/HTTP invocation boundaries.
|
|
71
|
+
*/
|
|
72
|
+
declare class Engine implements NodeActivationContinuation {
|
|
73
|
+
private readonly deps;
|
|
74
|
+
constructor(deps: EngineFacadeDeps);
|
|
75
|
+
loadWorkflows(workflows: ReadonlyArray<WorkflowDefinition>): void;
|
|
76
|
+
getTokenRegistry(): EngineFacadeDeps["tokenRegistry"];
|
|
77
|
+
resolveWorkflowSnapshot(args: {
|
|
78
|
+
workflowId: WorkflowId;
|
|
79
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
80
|
+
}): WorkflowDefinition | undefined;
|
|
81
|
+
startTriggers(): Promise<void>;
|
|
82
|
+
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
83
|
+
start(workflows: WorkflowDefinition[]): Promise<void>;
|
|
84
|
+
stop(): Promise<void>;
|
|
85
|
+
resolveWebhookTrigger(args: {
|
|
86
|
+
endpointPath: string;
|
|
87
|
+
method: HttpMethod;
|
|
88
|
+
}): WebhookTriggerResolution;
|
|
89
|
+
createTriggerTestItems(args: {
|
|
90
|
+
workflow: WorkflowDefinition;
|
|
91
|
+
nodeId: NodeId;
|
|
92
|
+
}): Promise<Items | undefined>;
|
|
93
|
+
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
94
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
95
|
+
mutableState?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["mutableState"];
|
|
96
|
+
}>): Promise<RunResult>;
|
|
97
|
+
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
98
|
+
markNodeRunning(args: {
|
|
99
|
+
runId: RunId;
|
|
100
|
+
activationId: NodeActivationId;
|
|
101
|
+
nodeId: NodeId;
|
|
102
|
+
inputsByPort: NodeInputsByPort;
|
|
103
|
+
}): Promise<void>;
|
|
104
|
+
resumeFromNodeResult(args: {
|
|
105
|
+
runId: RunId;
|
|
106
|
+
activationId: NodeActivationId;
|
|
107
|
+
nodeId: NodeId;
|
|
108
|
+
outputs: NodeOutputs;
|
|
109
|
+
}): Promise<RunResult>;
|
|
110
|
+
resumeFromNodeError(args: {
|
|
111
|
+
runId: RunId;
|
|
112
|
+
activationId: NodeActivationId;
|
|
113
|
+
nodeId: NodeId;
|
|
114
|
+
error: Error;
|
|
115
|
+
}): Promise<RunResult>;
|
|
116
|
+
resumeFromStepResult(args: {
|
|
117
|
+
runId: RunId;
|
|
118
|
+
activationId: NodeActivationId;
|
|
119
|
+
nodeId: NodeId;
|
|
120
|
+
outputs: NodeOutputs;
|
|
121
|
+
}): Promise<RunResult>;
|
|
122
|
+
resumeFromStepError(args: {
|
|
123
|
+
runId: RunId;
|
|
124
|
+
activationId: NodeActivationId;
|
|
125
|
+
nodeId: NodeId;
|
|
126
|
+
error: Error;
|
|
127
|
+
}): Promise<RunResult>;
|
|
128
|
+
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
129
|
+
status: "completed" | "failed";
|
|
130
|
+
}>>;
|
|
131
|
+
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/engine/policies/EngineExecutionLimitsPolicy.d.ts
|
|
135
|
+
interface EngineExecutionLimitsPolicyConfig {
|
|
136
|
+
readonly defaultMaxNodeActivations: number;
|
|
137
|
+
readonly hardMaxNodeActivations: number;
|
|
138
|
+
readonly defaultMaxSubworkflowDepth: number;
|
|
139
|
+
readonly hardMaxSubworkflowDepth: number;
|
|
140
|
+
}
|
|
141
|
+
/** Framework defaults for {@link EngineExecutionLimitsPolicy} (merged with host `runtime.engineExecutionLimits`). */
|
|
142
|
+
declare const ENGINE_EXECUTION_LIMITS_DEFAULTS: EngineExecutionLimitsPolicyConfig;
|
|
143
|
+
/**
|
|
144
|
+
* Resolves per-run execution limits: defaults, hard ceilings, and subworkflow depth for new runs.
|
|
145
|
+
*/
|
|
146
|
+
declare class EngineExecutionLimitsPolicy {
|
|
147
|
+
private readonly config;
|
|
148
|
+
constructor(config?: EngineExecutionLimitsPolicyConfig);
|
|
149
|
+
/**
|
|
150
|
+
* Effective options for a new root run (depth 0): defaults merged with engine ceilings.
|
|
151
|
+
* Replaces a separate one-method factory for root-run bootstrap.
|
|
152
|
+
*/
|
|
153
|
+
createRootExecutionOptions(): RunExecutionOptions;
|
|
154
|
+
mergeExecutionOptionsForNewRun(parent: ParentExecutionRef | undefined, user: RunExecutionOptions | undefined): RunExecutionOptions;
|
|
155
|
+
private capNumber;
|
|
156
|
+
}
|
|
157
|
+
//#endregion
|
|
158
|
+
export { Engine as i, EngineExecutionLimitsPolicy as n, EngineExecutionLimitsPolicyConfig as r, ENGINE_EXECUTION_LIMITS_DEFAULTS as t };
|
|
159
|
+
//# sourceMappingURL=EngineExecutionLimitsPolicy-CLxcN-D2.d.ts.map
|