Move attempt views to workspace path ownership

This commit is contained in:
2026-12-02 21:36:30 +00:00
parent 3d09745a79
commit 106036cf5b
14 changed files with 470 additions and 424 deletions

View File

@@ -8,7 +8,6 @@ import (
"gitea.maximumdirect.net/eric/narratio/internal/artifacts"
"gitea.maximumdirect.net/eric/narratio/internal/config"
"gitea.maximumdirect.net/eric/narratio/internal/fileops"
"gitea.maximumdirect.net/eric/narratio/internal/manifest"
"go.maximumdirect.net/commandkit"
)
@@ -131,7 +130,7 @@ func restoreSessionState(ctx context.Context, cfg *config.Config, opts RestorePl
return diagnostic, fmt.Errorf("restore: generate diagnostic run id: %w", err)
}
sessionPaths := artifactStore.SessionPathsFor(cfg.Session.Campaign, cfg.Session.SessionID)
if _, err := fileops.BeginAttemptViews(sessionPaths.Root, restoreRunID, "restore"); err != nil {
if _, err := artifacts.BeginAttemptViews(sessionPaths.Root, restoreRunID, "restore"); err != nil {
return diagnostic, fmt.Errorf("restore: prepare diagnostic views: %w", err)
}
report.reportPathRel = filepath.ToSlash(filepath.Join("runs", restoreRunID, "restore", "logs", "restore.json"))