(wf: (typeof data.workflows)[0], indent: string)
| 148 | } |
| 149 | |
| 150 | const formatWf = (wf: (typeof data.workflows)[0], indent: string) => { |
| 151 | const parts = [`${indent}- **${wf.name}** (${wf.id})`] |
| 152 | const workflowDir = canonicalWorkflowVfsDir({ name: wf.name, folderPath: wf.folderPath }) |
| 153 | parts.push(`${indent} VFS dir: \`${workflowDir}\``) |
| 154 | parts.push(`${indent} VFS state path: \`${workflowDir}/state.json\``) |
| 155 | if (wf.description) parts.push(`${indent} ${wf.description}`) |
| 156 | // `deployed` is a structural flag (kept); `lastRunAt` is intentionally |
| 157 | // omitted — it changes on every run and would bust the cached prompt |
| 158 | // prefix that carries this inventory. Current run data lives in |
| 159 | // workflows/{name}/executions.json. |
| 160 | if (wf.isDeployed) parts[0] += ' — deployed' |
| 161 | return parts.join('\n') |
| 162 | } |
| 163 | |
| 164 | const lines: string[] = [] |
| 165 | lines.push( |
no test coverage detected