validatePromptTmpPaths emits an advisory warning when the workflow markdown body references /tmp/ or /tmp/gh-aw/ instead of the recommended /tmp/gh-aw/agent/ root.
(workflowData *WorkflowData, markdownPath string)
| 87 | // validatePromptTmpPaths emits an advisory warning when the workflow markdown body |
| 88 | // references /tmp/ or /tmp/gh-aw/ instead of the recommended /tmp/gh-aw/agent/ root. |
| 89 | func (c *Compiler) validatePromptTmpPaths(workflowData *WorkflowData, markdownPath string) { |
| 90 | if msg := warnPromptTmpPaths(workflowData.MarkdownContent); msg != "" { |
| 91 | fmt.Fprintln(os.Stderr, formatCompilerMessage(markdownPath, "warning", msg)) |
| 92 | c.IncrementWarningCount() |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // validateFeatureConfig validates feature flags declared in the workflow frontmatter |
| 97 | // and applies any action-mode override specified via the "action-mode" feature flag. |