Skip to content

Commit d27c4a1

Browse files
Merge pull request #705 from WadydX/docs/clarify-cli-interactivity-scope
docs(cli): align interactivity and --human-friendly guidance with actual behavior
2 parents 57ea564 + e0573c1 commit d27c4a1

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

docs/packages/cli.mdx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@ npx hyperframes <command>
3535

3636
## Agent-Friendly by Default
3737

38-
The CLI is **non-interactive by default** — designed so AI agents (Claude Code, Gemini CLI, Codex, Cursor) can drive every command without prompts or interactive UI.
38+
The CLI is **agent-friendly by default**: commands support explicit flags and parseable output so automation can run reliably.
3939

40-
- All inputs are passed via flags (e.g., `--example`, `--video`, `--output`)
40+
- Inputs can be passed via flags (for example, `--example`, `--video`, `--output`)
4141
- Missing required flags fail fast with a clear error and usage example
4242
- Output is plain text suitable for parsing
43-
- No interactive prompts, spinners, or selection menus
4443

45-
Add `--human-friendly` to any command to enable the interactive terminal UI with prompts, spinners, and selection menus.
44+
Interactivity is command-specific. For example, `init` uses prompts on TTY by default; pass `--non-interactive` to force non-interactive mode.
45+
46+
`--human-friendly` is also command-specific (for example, `catalog`). It is not a global flag on every command.
4647

4748
<Tabs>
4849
<Tab title="Agent mode (default)">
@@ -55,9 +56,11 @@ Add `--human-friendly` to any command to enable the interactive terminal UI with
5556
</Tab>
5657
<Tab title="Human mode">
5758
```bash
58-
# Interactive prompts, spinners, and selection menus
59-
npx hyperframes init --human-friendly
60-
npx hyperframes upgrade
59+
# Command-specific interactive flow
60+
npx hyperframes init my-video
61+
62+
# Interactive picker supported by catalog
63+
npx hyperframes catalog --human-friendly
6164
```
6265
</Tab>
6366
</Tabs>
@@ -155,13 +158,13 @@ This is suppressed in CI environments, non-TTY shells, and when `HYPERFRAMES_NO_
155158
# Include Tailwind CSS browser-runtime support
156159
npx hyperframes init my-video --example blank --tailwind
157160

158-
# Human mode — interactive prompts
159-
npx hyperframes init --human-friendly
161+
# Human mode — interactive prompts on TTY by default
162+
npx hyperframes init my-video
160163
```
161164

162165
| Flag | Description |
163166
|------|-------------|
164-
| `--example, -e` | Example to scaffold (required in default mode, interactive in `--human-friendly`) |
167+
| `--example, -e` | Example to scaffold (required in non-interactive mode, prompted on TTY by default) |
165168
| `--resolution` | Canvas preset: `landscape` (1920×1080), `portrait` (1080×1920), `landscape-4k` (3840×2160), `portrait-4k` (2160×3840). Aliases: `1080p`, `4k`, `uhd`. Default: keep template dimensions. |
166169
| `--video, -V` | Path to a video file (MP4, WebM, MOV) |
167170
| `--audio, -a` | Path to an audio file (MP3, WAV, M4A) |
@@ -170,7 +173,6 @@ This is suppressed in CI environments, non-TTY shells, and when `HYPERFRAMES_NO_
170173
| `--skip-transcribe` | Skip automatic whisper transcription |
171174
| `--model` | Whisper model for transcription (e.g. `small.en`, `medium.en`, `large-v3`) |
172175
| `--language` | Language code for transcription (e.g. `en`, `es`, `ja`). Filters non-target speech. |
173-
| `--human-friendly` | Enable interactive terminal UI with prompts |
174176

175177
| Example | Description |
176178
|----------|-------------|
@@ -180,7 +182,7 @@ This is suppressed in CI environments, non-TTY shells, and when `HYPERFRAMES_NO_
180182
| `swiss-grid` | Structured grid layout |
181183
| `vignelli` | Bold typography with red accents |
182184

183-
In default (agent) mode, `--example` is required — the CLI errors with a usage example if missing. In `--human-friendly` mode, you choose interactively. When `--video` or `--audio` is provided, the CLI automatically transcribes the audio with Whisper and patches captions into the composition (use `--skip-transcribe` to disable).
185+
In non-interactive mode, `--example` is required — the CLI errors with a usage example if missing. In interactive mode (default on TTY), you choose the example interactively. Pass `--non-interactive` to require `--example` via flag. When `--video` or `--audio` is provided, the CLI automatically transcribes the audio with Whisper and patches captions into the composition (use `--skip-transcribe` to disable).
184186

185187
`--tailwind` injects the pinned Tailwind v4 browser runtime into scaffolded HTML and exposes a `window.__tailwindReady` promise that renders wait on before capturing frame 0. Use the `/tailwind` skill when editing these projects so agents follow v4 CSS-first patterns instead of v3 `tailwind.config.js` and `@tailwind` directive patterns. The browser runtime is still intended for scaffolded projects and quick iteration; for fully offline or locked-down production renders, compile Tailwind to CSS and include the stylesheet directly.
186188

0 commit comments

Comments
 (0)