feat(versioning): version scenarios and snippets, bump to 1.16.0

- snapshot scenario and snippet content into version tables on every
  content change; live tables keep holding the latest version
- record the scenario version on each run and copy its steps into the
  run steps, so runs execute and show the version they were created with
- keep run step history when a step is deleted (FK set null)
- pin a snippet version with runSnippet('alias@N')
- add version picker to the run modal and version info across the UI
- add version list/get endpoints and MCP tools
- include version in exports and require it on import, restoring the
  exact version by id + version
This commit is contained in:
Andrii Arsenin committed 2026-09-30 15:24:44 +03:00
1 parent 9fb6e8538b
commit eed385debf
40 files changed
+1457 -137

No files matched your search

+5
View File
@@ -124,11 +124,16 @@ describe("McpController", () => {
}
async function createRunStep(runId: string, scenarioStepId: string, order = 0) {
// Run steps execute from their own copy of the step content
const step = await stepRepo.findOneByOrFail({ id: scenarioStepId });
return runStepRepo.save(
runStepRepo.create({
runId,
scenarioStepId,
order,
title: step.title,
execCode: step.execCode,
timeoutSeconds: step.timeoutSeconds,
status: "pending",
}),
);