Skip to content

docs: CLI page accuracy pass#169

Merged
recoupableorg merged 2 commits intomainfrom
feat/docs-cli
Apr 28, 2026
Merged

docs: CLI page accuracy pass#169
recoupableorg merged 2 commits intomainfrom
feat/docs-cli

Conversation

@recoupableorg
Copy link
Copy Markdown
Contributor

@recoupableorg recoupableorg commented Apr 27, 2026

Summary

Brings cli.mdx in line with what's actually shipped in @recoupable/cli v0.1.13. Removes fictional commands, adds real ones, marks the page as beta.

Why this matters

Agents (and humans) following the docs should not hit command not found. The previous cli.mdx documented a recoup research command and several content/* subcommands that don't exist in the published binary. An LLM agent reading those docs would install the CLI, try to run them, fail, and either retry forever or give up.

Changes

Removed:

  • Entire ## research section (~100 lines of fictional examples). No recoup research command exists in cli/src/commands/.
  • recoup content image/video/caption/transcribe/upscale/analyze/edit subcommands. Only templates, validate, estimate, create exist.
  • Misleading "legacy pipeline" framing that pointed at non-existent subcommands as the recommended path.

Added:

  • The real songs command (presets, analyze) — shipped in v0.1.13 but undocumented.
  • A <Note> at the top declaring beta status, listing implemented commands, and telling agents to fall back to REST when something isn't documented.

Verification

Every command documented in this PR was verified by running ls cli/src/commands/ against the source.

Stack

PR 2 of 7. Replaces #145.

Test plan

  • All examples in cli.mdx run successfully against npm i -g @recoupable/cli@0.1.13
  • No fictional commands remain
  • <Note> block renders correctly in Mintlify

Made with Cursor

Summary by CodeRabbit

  • Documentation
    • Reorganized CLI documentation with improved structure and clearer guidance throughout
    • Added comprehensive beta feature guidance including REST API fallback instructions for unsupported commands
    • Documented new AI music analysis capabilities and endpoints for songs
    • Updated content validation, estimation, and creation documentation workflows
    • Refined command examples and removed redundant output format options for improved clarity

Brings cli.mdx in line with what's actually shipped in
@recoupable/cli v0.1.13.

Removed:
- Entire `## research` section (~100 lines of fictional examples).
  No `recoup research` command exists in source — it was aspirational
  documentation that would have caused agents to retry "command not
  found" loops.
- `recoup content image / video / caption / transcribe / upscale /
  analyze / edit` subcommands. Only `templates`, `validate`,
  `estimate`, and `create` exist in the published CLI; the rest were
  documented but unimplemented.
- Misleading "legacy pipeline" framing inside the content section
  that pointed agents at non-existent subcommands as the modern path.

Added:
- The real `songs` command (`presets`, `analyze`) which had been
  shipped in v0.1.13 but never documented.
- A `<Note>` at the top stating the CLI is in beta, listing what
  actually works, and instructing agents to fall back to the REST
  API for anything not in the documented command surface.

Verified by running `ls cli/src/commands/` against every command
documented here.

Made-with: Cursor
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 27, 2026

Warning

Rate limit exceeded

@recoupableorg has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 53 minutes and 43 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: dd0e41fc-56ab-42a1-a69b-2f3db53702d5

📥 Commits

Reviewing files that changed from the base of the PR and between 8c86eda and 4b562eb.

📒 Files selected for processing (1)
  • cli.mdx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/docs-cli

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="cli.mdx">

<violation number="1" location="cli.mdx:137">
P2: `--audio` is documented as required for `recoup songs analyze`, but the shipped CLI/API contract treats it as optional/conditional.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread cli.mdx Outdated
cli/src/commands/songs.ts uses .option("--audio <url>"), not
.requiredOption(...), and the action handler only includes
body.audio_url when provided. The action's only required-field
check is that EITHER --prompt OR --preset must be supplied.
The OpenAPI spec for POST /api/songs/analyze has an empty
`required: []` array.

Update the flag table to reflect the real contract:

  --preset    Conditional (required when --prompt is omitted)
  --prompt    Conditional (required when --preset is omitted)
  --audio     No  — some presets (e.g. catalog_metadata) work
              from metadata alone, others use the audio file
  --max-tokens No

Caught by cubic-dev-ai on PR #169.

Made-with: Cursor
@recoupableorg recoupableorg merged commit 21a6207 into main Apr 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants