Refresh public workflow inventory#5
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cb2d0fa836
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| for (const { path, workflow } of workflows) { | ||
| console.log( | ||
| `| ${path} | ${escapeTableCell(workflow.name)} | ${workflow.risk_level} | ${workflow.authority} |`, |
There was a problem hiding this comment.
Handle missing workflow names in inventory rows
aw inventory can crash instead of producing a report when any workflow file is parseable YAML but lacks name. In that case loadWorkflow returns an object with workflow.name === undefined, and this line passes it to escapeTableCell, which calls .replace on a non-string and throws (undefined is not an object). This makes the inventory command fail on malformed or in-progress workflow files rather than surfacing a validation-style error or a safe placeholder.
Useful? React with 👍 / 👎.
Summary
aw inventoryto summarize workflows, skills, and examples in one Markdown report.Verification