// SPEC: PJ2026-01060703 CI/CD branch follower help text. // Responsibility: bounded CLI help payloads for the branch-follower entrypoint. export function buildCicdHelp(configPath: string, spec: string): unknown { return { command: "cicd branch-follower plan|apply|status|run-once|debug-step|cleanup-state|events|logs|taskrun|job|runtime|gate", deprecated: true, mode: "retired-readonly-for-jd01-consumers", replacement: "bun scripts/cli.ts platform-infra pipelines-as-code status --target JD01", issue: "https://github.com/pikasTech/unidesk/issues/1560", output: "text by default; use --json, --raw, or -o json|yaml for machine output", usage: [ "bun scripts/cli.ts cicd branch-follower status", "bun scripts/cli.ts cicd branch-follower status --live", "bun scripts/cli.ts cicd branch-follower debug-step --follower web-probe-sentinel-master --step controller-source", "bun scripts/cli.ts cicd branch-follower debug-step --follower web-probe-sentinel-master --step state-read", "bun scripts/cli.ts cicd branch-follower events --follower agentrun-jd01-v02", "bun scripts/cli.ts cicd branch-follower logs --follower web-probe-sentinel-master", "bun scripts/cli.ts cicd branch-follower taskrun --follower hwlab-jd01-v03 --taskrun runtime-ready --logs-tail 120 --json", "bun scripts/cli.ts cicd branch-follower job --follower agentrun-jd01-v02 --source-commit --job image-build --json", "bun scripts/cli.ts cicd branch-follower gate --follower hwlab-jd01-v03 --gate control-plane-refresh --source-commit --confirm --json", "bun scripts/cli.ts cicd branch-follower gate --follower hwlab-jd01-v03 --gate git-mirror-flush --source-commit --confirm --json", "bun scripts/cli.ts cicd branch-follower gate --follower hwlab-jd01-v03 --gate runtime-closeout --source-commit --confirm --json", "bun scripts/cli.ts cicd branch-follower gate --follower agentrun-jd01-v02 --gate reuse-plan --source-commit --json", ], config: configPath, spec, description: "Retired branch-follower controller surface for the JD01 migrated consumers. Use PaC status/history for current closeout; branch-follower commands remain only for historical state and bounded migration diagnostics.", currentCloseout: [ "bun scripts/cli.ts platform-infra gitea mirror status --target JD01", "bun scripts/cli.ts platform-infra gitea mirror webhook status --target JD01", "bun scripts/cli.ts platform-infra pipelines-as-code status --target JD01", "bun scripts/cli.ts platform-infra pipelines-as-code history --target JD01 --limit 10", ], }; }