gatelineAPI reference
  • Structure-only brief draft (R3): the repo's own intent-brief.md template with the title substituted into the H1 — the CLI never invents Problem/Motivation/Constraints prose. Falls back to BUILTIN_SECTIONS when the target repo carries no contracts/ tree. Pure (no I/O), so it is directly unit-testable.

    Parameters

    • template: null | string
    • title: string

    Returns string