Files
gstack/bin/gstack-ship-release
T
garrytanandcapy-ai[bot] e694b40ed6 feat(ship): gstack-ship-preflight and gstack-ship-release bins (GSTA-167)
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>
2026-10-30 00:42:04 +00:00

11 lines
446 B
TypeScript
Executable File

#!/usr/bin/env -S bun --no-env-file --config=/dev/null
/**
* gstack-ship-release — /ship Step 12 (version), Steps 15-16 (finish) and Step 17 (push),
* with STOP:/NEXT: lines wherever the agent must judge. Logic: lib/ship-release.ts.
*/
import { release } from '../lib/ship-release';
const out = await release(process.argv.slice(2), process.cwd());
(out.exit === 2 ? process.stderr : process.stdout).write(out.text);
process.exit(out.exit);