Skip to content

Migrate analyze and classify commands #236

@SorraTheOrc

Description

@SorraTheOrc

Summary: Re-implement analyze and classify command paths in yargs with parity for automation-oriented JSON contracts.

User Story

As a pipeline user, I can run analysis/classification jobs with stable argument validation and machine-readable outputs that do not break existing scripts.

Expected UX Change

  • User experience: consistent command ergonomics and clearer validation messages.
  • Player experience: downstream sound selection/labeling outcomes remain equivalent for identical inputs.

Acceptance Criteria

  • analyze and classify execute through yargs handlers, including currently supported modes.
  • --json schema/shape remains compatible for existing consumers.
  • Batch and single-input scenarios are covered by integration tests.
  • Help output and error semantics are parity-tested for key invalid-input cases.

Minimal Implementation

  • Add yargs modules/builders for analyze and classify.
  • Reuse current domain services and output adapters to preserve behavior.
  • Add contract tests that assert JSON shape stability.
  • Remove command-specific legacy dispatch for these commands once parity is green.

Dependencies

  • blocked-by:TF-0MMJ892CE0Y4MFFL
  • blocked-by:TF-0MMJ894WA1IHEKV9
  • blocked-by:TF-0MMJ899TT0RPVHEG

Deliverables

  • yargs analyze/classify command modules.
  • JSON contract tests and integration coverage.
  • Updated help/docs snippets.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions