- 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
15 lines
533 B
TypeScript
15 lines
533 B
TypeScript
import { Module } from "@nestjs/common";
|
|
import { TypeOrmModule } from "@nestjs/typeorm";
|
|
import { SnippetController } from "./snippet.controller";
|
|
import { SnippetEntity } from "./snippet.entity";
|
|
import { SnippetVersionEntity } from "./snippet-version.entity";
|
|
import { SnippetService } from "./snippet.service";
|
|
|
|
@Module({
|
|
imports: [TypeOrmModule.forFeature([SnippetEntity, SnippetVersionEntity])],
|
|
controllers: [SnippetController],
|
|
providers: [SnippetService],
|
|
exports: [SnippetService],
|
|
})
|
|
export class SnippetModule {}
|