fix(cli): read the steps outside any section in gram suggest #319

Merged
abiwab merged 1 commit from fix/suggest-top-level-steps into main 2026-11-29 20:15:33 +01:00
Owner

Summary

gram suggest only read the steps inside a ## section: the ingredients of steps written before any header were never collected, so a recipe without sections never came up (nor was excluded by --without). Found while testing M1 (fix/check-directory-argument).

  • packages/cli/src/services/suggester.ts: collect the top-level steps, then each section's.
  • Two regression tests (both fail without the fix).

Type of change

  • Bug fix (non-breaking change fixing an issue)

Quality checklist

  • Code formatted with Biome (bun run lint:fix)
  • TypeScript types validated (bun run typecheck)
  • Package tests passing (bun test)
  • If changing a published package, a changeset is included (bun run change)
## Summary `gram suggest` only read the steps inside a `##` section: the ingredients of steps written before any header were never collected, so a recipe without sections never came up (nor was excluded by `--without`). Found while testing M1 (`fix/check-directory-argument`). - `packages/cli/src/services/suggester.ts`: collect the top-level steps, then each section's. - Two regression tests (both fail without the fix). ## Type of change - [x] Bug fix (non-breaking change fixing an issue) ## Quality checklist - [x] Code formatted with Biome (`bun run lint:fix`) - [x] TypeScript types validated (`bun run typecheck`) - [x] Package tests passing (`bun test`) - [x] If changing a published package, a changeset is included (`bun run change`)
fix(cli): read the steps outside any section in gram suggest
All checks were successful
CI / Build & Test (pull_request) Successful in 5m3s
96ac75eaa2
abiwab merged commit 2667b58bdb into main 2026-11-29 20:15:33 +01:00
Sign in to join this conversation.
No description provided.