Files
gstack/bin/gstack-clean
garrytanandcapy-ai[bot] 6b833d0341 feat: gstack-clean reclaims per-repo .gstack scratch and logs, dry run by default (#2627)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
2026-11-01 00:40:12 +00:00

13 lines
559 B
TypeScript
Executable File

#!/usr/bin/env -S bun --no-env-file --config=/dev/null
/**
* gstack-clean — reclaim throwaway files in this repository's .gstack folder
* (#2627): old codex scratch in tmp/, oversized browse logs cut in place, and
* with --audit-days N old browse audit entries. Dry run unless --apply;
* `gstack-clean --help` lists the fixed thresholds. The rules live in
* lib/repo-state-clean.ts; error codes GSTACK_CLEAN_* are documented in
* docs/troubleshooting.md.
*/
import { main } from '../lib/repo-state-clean';
process.exit(main(process.argv.slice(2)));