/** * Git workflows without prompting the model for context: * * /commit [message] commit what is staged (or stage everything, after asking); with no * message the model drafts one from the diff, and you edit or accept it * /push push the branch (publishes it with an upstream the first time) * /merge [branch|abort] merge a branch into the current one; stops cleanly on conflicts * /pr [base] [--draft] push if needed, draft the title and description from the commits and * diff, and open the request with gh or glab * /git [status|on|off] a menu of the above, the repository status, or the off switch * * Generic: any git remote, any host the gh or glab CLI is signed in to. The commands show up in * the command palette like any slash command. The flows are in flows.ts; this file only connects * them to pi. `/git off` switches the commands off (saved in chassis.json) and `/git on` restores them. * * Results are also passed to the model on its next turn (a hidden message with the outcome and a * fresh repository status), so it never relies on a `git status` from before the command. */ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; export default function (pi: ExtensionAPI): void;