MCPcopy Create free account
hub / github.com/github/gh-aw / getEngineArtifactPaths

Function getEngineArtifactPaths

pkg/workflow/engine_output.go:63–72  ·  view source on GitHub ↗

getEngineArtifactPaths returns the file paths declared by the engine that should be included in the unified agent artifact. The redacted URLs log is always appended. Returns nil if the engine declares no output files.

(engine CodingAgentEngine)

Source from the content-addressed store, hash-verified

61// included in the unified agent artifact. The redacted URLs log is always appended.
62// Returns nil if the engine declares no output files.
63func getEngineArtifactPaths(engine CodingAgentEngine) []string {
64 outputFiles := engine.GetDeclaredOutputFiles()
65 if len(outputFiles) == 0 {
66 return nil
67 }
68 // Always include the redacted URLs log alongside engine output files.
69 // This file is created during content sanitization when URLs were redacted.
70 outputFiles = append(outputFiles, RedactedURLsLogPath)
71 return outputFiles
72}
73
74// generateEngineOutputCleanup generates the workspace cleanup step for engine-declared output
75// files. It does NOT upload an artifact — paths are added to the unified agent artifact instead.

Calls 1