mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-06 08:54:04 +01:00
preflight runs Steps 1-3 (branch guard, status, fetch, diff stat, PR and receipt carry dry-run, scope, merge, distribution, policy, runtime lines) and Step 5 (pregate, then the lanes in parallel inside the evidence ledger). release version/finish/push run Step 12, Steps 15-16 stages 1-4 and Step 17's idempotency check and push. Each prints at most 30 lines; STOP: names the decision the prose leaves to the agent, NEXT: the step to run. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
11 lines
450 B
TypeScript
Executable File
11 lines
450 B
TypeScript
Executable File
#!/usr/bin/env -S bun --no-env-file --config=/dev/null
|
|
/**
|
|
* gstack-ship-preflight — /ship Steps 1-3 and Step 5's pregate and lanes in one call, with
|
|
* STOP:/NEXT: lines wherever the agent must judge. Logic: lib/ship-preflight.ts.
|
|
*/
|
|
import { preflight } from '../lib/ship-preflight';
|
|
|
|
const out = await preflight(process.argv.slice(2), process.cwd());
|
|
(out.exit === 2 ? process.stderr : process.stdout).write(out.text);
|
|
process.exit(out.exit);
|