Archive pipelines: hide unused ones while keeping their history

archived_at on pipelines (migrated in place). archive_pipeline and
unarchive_pipeline by id or name with an expected-version guard;
list_pipelines hides archived unless include_archived. Archived
pipelines refuse runs, retries, new versions and name reuse, and
cannot be archived while an enabled schedule points at them.
CLI archive/unarchive and list --archived/--all, docs and skill note.
This commit is contained in:
2026-11-04 23:25:55 +00:00
parent fa6c0864db
commit 06bf580154
16 changed files with 630 additions and 14 deletions
+2 -1
View File
@@ -139,7 +139,8 @@ func (a App) importBundle(ctx context.Context, o *options, pos []string, call ca
entries = keep
}
// All selected sources/names are checked before any publication.
existing, err := call(protocol.Message{Type: protocol.List})
// Archived names stay reserved, so they count as existing here.
existing, err := call(protocol.Message{Type: protocol.List, IncludeArchived: true})
if err != nil {
return err
}