@codemation/host 0.3.1 → 1.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/dist/{AppConfigFactory-Dq7ttwQ_.d.ts → AppConfigFactory-PFmDg5Sg.d.ts} +3 -3
  3. package/dist/{AppContainerFactory-DL_qZ80U.js → AppContainerFactory-Cr3JeVmg.js} +2 -1
  4. package/dist/{AppContainerFactory-DL_qZ80U.js.map → AppContainerFactory-Cr3JeVmg.js.map} +1 -1
  5. package/dist/{CodemationAppContext-P7P-xZhQ.d.ts → CodemationAppContext-DP_-56c6.d.ts} +2 -2
  6. package/dist/{CodemationAuthoring.types-OMYu7vKP.d.ts → CodemationAuthoring.types-Cr2QZsUX.d.ts} +8 -6
  7. package/dist/{CodemationConfigNormalizer-BCtBrJDe.d.ts → CodemationConfigNormalizer-B8RGUwAe.d.ts} +2 -2
  8. package/dist/{CodemationConsumerConfigLoader-evvw4b_a.d.ts → CodemationConsumerConfigLoader-C_QVwcI3.d.ts} +2 -2
  9. package/dist/{CodemationPluginListMerger-PSTtEQjC.d.ts → CodemationPluginListMerger-Bgn1CIX9.d.ts} +5 -5
  10. package/dist/{CredentialServices-0Hk8RFY1.d.ts → CredentialServices-95DPogx-.d.ts} +3 -3
  11. package/dist/{PublicFrontendBootstrapFactory-D0_ds7nS.d.ts → PublicFrontendBootstrapFactory-C_iLgPV-.d.ts} +2 -2
  12. package/dist/authoring.d.ts +3 -3
  13. package/dist/consumer.d.ts +4 -4
  14. package/dist/credentials.d.ts +3 -3
  15. package/dist/devServerSidecar.d.ts +1 -1
  16. package/dist/{index-CeS2saCe.d.ts → index-W4eSjdCM.d.ts} +26 -15
  17. package/dist/index.d.ts +11 -11
  18. package/dist/index.js +2 -2
  19. package/dist/nextServer.d.ts +7 -7
  20. package/dist/nextServer.js +1 -1
  21. package/dist/{persistenceServer-CJeu1STC.d.ts → persistenceServer-_pqP_0nw.d.ts} +2 -2
  22. package/dist/persistenceServer.d.ts +5 -5
  23. package/dist/{server-DteBORJX.js → server-BE4PLhcb.js} +2 -2
  24. package/dist/{server-DteBORJX.js.map → server-BE4PLhcb.js.map} +1 -1
  25. package/dist/{server-Clvg5x1w.d.ts → server-Q5uwa6iR.d.ts} +5 -5
  26. package/dist/server.d.ts +8 -8
  27. package/dist/server.js +2 -2
  28. package/package.json +7 -5
  29. package/src/infrastructure/persistence/PrismaWorkflowRunRepository.ts +8 -0
@@ -611,6 +611,14 @@ export class PrismaWorkflowRunRepository implements WorkflowRunRepository, Workf
611
611
  }
612
612
  let cIdx = 0;
613
613
  for (const inv of state.connectionInvocations ?? []) {
614
+ if (inv.runId !== state.runId) {
615
+ // Defense-in-depth: `invocationId` is a global primary key in `ExecutionInstance`.
616
+ // A record whose `runId` differs from the current run belongs to another run and
617
+ // would collide on insert. `RunStartService.createRunCurrentState` already prevents
618
+ // carry-over; we skip here so any other accidental carry-over path self-heals
619
+ // instead of crashing the save.
620
+ continue;
621
+ }
614
622
  rows.push({
615
623
  instanceId: inv.invocationId,
616
624
  runId: state.runId,