-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Summary
Extend --json output to include category and tags per recipe with filter metadata, and update printListHelp() with documentation of the new --search, --category, and --tags flags with examples.
Player Experience Change
Game developers will:
- Get richer JSON output from
toneforge list recipes --jsonincluding category and tags for each recipe, enabling programmatic filtering and integration with other tools - See clear documentation in
toneforge list --helpexplaining the new filter flags with usage examples, reducing discovery friction
Acceptance Criteria
-
--jsonoutput includescategory(string) andtags(string[]) fields for each recipe object - JSON output includes a
totalfield with the total number of recipes (before filtering) - When filters are active, JSON output includes a
filtersobject indicating which filters were applied - JSON output conforms to schema:
{ command: "list", resource: "recipes", recipes: Array<{name, description, category, tags}>, total: number, filters?: {search?: string, category?: string, tags?: string[]} } -
toneforge list --helpdocuments--search,--category, and--tagsflags in the Options section - Help text includes at least 3 examples showing filter usage (individual and combined)
- Help text follows the established pattern from
classify searchhelp (src/cli.ts:270-318)
Minimal Implementation
- Update JSON output block in
src/cli.tsto emit enriched schema with category, tags, total, and optional filters - Update
printListHelp()(line 325) with new Options section entries and Examples
Dependencies
- Registry API: listDetailed with Filter (TF-0MM7K1K371LIKKZZ)
- CLI Filter Flags & Four-Column Table (TF-0MM7K1YHL12T4EJH)
Deliverables
- Updated JSON output in
src/cli.tslist recipes handler - Updated
printListHelp()insrc/cli.ts
Reference Files
src/cli.ts:1215-1216-- Current JSON output blocksrc/cli.ts:324-350-- CurrentprintListHelp()functionsrc/cli.ts:270-318--classify searchhelp text pattern
Reactions are currently unavailable