Skip to content

fix(cli): require explicit non-interactive init source#2395

Merged
miguel-heygen merged 1 commit into
mainfrom
fix/noninteractive-init-requires-example
Jul 14, 2026
Merged

fix(cli): require explicit non-interactive init source#2395
miguel-heygen merged 1 commit into
mainfrom
fix/noninteractive-init-requires-example

Conversation

@miguel-heygen

@miguel-heygen miguel-heygen commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • fail non-interactive init when no --example, --video, or --audio source is provided
  • prevent silent scaffolding of an empty 10-second black composition that passes check
  • update CLI examples to pass --example blank explicitly
  • add regression coverage that asserts failure leaves no project directory

Reproduction

HYPERFRAMES_SKIP_SKILLS=1 npx --yes hyperframes@0.7.56 init demo --non-interactive exits 0, creates a blank 10-second composition, and check --json reports zero findings.

Verification

  • regression test failed before fix and passes after fix
  • bunx vitest run packages/cli/src/commands/init.test.ts (22/22)
  • bun run --filter @hyperframes/cli typecheck
  • targeted oxfmt and oxlint clean
  • branch CLI exits 1 with the actionable source requirement and creates no project
  • pre-commit gates passed

Human review required; do not self-merge.

@miguel-heygen miguel-heygen merged commit 8bf7bc3 into main Jul 14, 2026
56 of 65 checks passed
@miguel-heygen miguel-heygen deleted the fix/noninteractive-init-requires-example branch July 14, 2026 03:28
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.

1 participant