workflowIDFromRun returns the workflow ID preferring the path-derived ID, falling back to a lowercased/hyphenated version of the display name.
(path, name string)
| 32 | // workflowIDFromRun returns the workflow ID preferring the path-derived ID, |
| 33 | // falling back to a lowercased/hyphenated version of the display name. |
| 34 | func workflowIDFromRun(path, name string) string { |
| 35 | if id := workflowIDFromPath(path); id != "" { |
| 36 | return id |
| 37 | } |
| 38 | // Normalize display name to kebab-case ID |
| 39 | id := strings.ToLower(name) |
| 40 | id = strings.ReplaceAll(id, " ", "-") |
| 41 | return id |
| 42 | } |
| 43 | |
| 44 | // renderLogsCompact outputs maximally information-dense output optimized for agentic consumption. |
| 45 | // Designed for LLM context windows: minimal formatting, no decoration, structured but flat. |
no test coverage detected