Add shared task catalog and static gallery - #664
Conversation
|
| """Format environment entries as a table with a task-directory tree.""" | ||
| if color is None: | ||
| color = "NO_COLOR" not in os.environ and sys.stdout.isatty() | ||
| width = max(80, min(width or shutil.get_terminal_size((100, 24)).columns, 120)) |
There was a problem hiding this comment.
Narrow terminals still overflow
When list-task runs in a terminal narrower than 80 columns, this lower clamp still produces an 80-column table. The output can therefore wrap or be clipped instead of fitting the detected terminal width. The new test also preserves this behavior by expecting 80-column output for a 40-column terminal. This is a non-blocking usability issue; please honor the available width or use a compact layout.
Prompt To Fix With AI
This is a comment left during a code review.
Path: embodichain/cli/list_task.py
Line: 73
Comment:
**Narrow terminals still overflow**
When `list-task` runs in a terminal narrower than 80 columns, this lower clamp still produces an 80-column table. The output can therefore wrap or be clipped instead of fitting the detected terminal width. The new test also preserves this behavior by expecting 80-column output for a 40-column terminal. This is a non-blocking usability issue; please honor the available width or use a compact layout.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Description
Stack
mainThis PR extracts the task catalog layer from #657 so it can be reviewed and merged independently.
catalog.yamlmetadata and one shared catalog model for logical tasks and named deployments.show-task, category filtering, simulator-free config roots, and static HTML gallery export.Refs #106 and #655.
Dependencies: no new Python dependencies. PR #657 is the dependent physical-objective layer and should be reviewed after this PR.
Validation
black .with Black 26.3.1: no files changed.python docs/scripts/check_api_docs.py: 2176/2176 exports documented.python .agents/skills/project-dev-context/scripts/context.py check: passed.prettytable,dexsim.engine, or the installed task package); CI remains authoritative for those cases.Type of change
Screenshots
No screenshot attached. Generate the static gallery with:
Checklist
black .command to format the code base.python docs/scripts/check_api_docs.py), if applicable.