{
  "title": "pi-git",
  "pitch": "Stage, write and commit from inside pi, while a quick commit runs in the background and you keep typing.",
  "repo": "https://github.com/Soleone/pi-git",
  "env": {
    "PATH": "~/bin:/usr/local/bin:/usr/bin:/bin",
    "PI_OFFLINE": "1"
  },
  "setup": [
    "chmod +x bin/pi bin/git bin/fd bin/rg",
    "node .demo/setup.js",
    "npm install --no-audit --no-fund"
  ],
  "start": "cd project && pi",
  "onTheme": "node .demo/pi-theme.js",
  "welcome": [
    "\u001b[1mpi-git\u001b[0m stages, writes and commits from inside pi, and a quick commit runs in the background while you keep typing.",
    "This is real pi with the extension. The model is scripted, so it knows a few prompts and needs no key.",
    "pi opens by itself in a small sample repository. Press the buttons above, in order:",
    "",
    "  add a --json flag     the agent edits a file and runs it",
    "  /git                  the staging view: space stages a file, Esc closes it",
    "  /git-quick-commit     stages everything, writes the message and commits",
    "",
    "Change the theme at the top right and pi follows it."
  ],
  "hints": [
    "add a --json flag",
    "/git",
    "/git-quick-commit"
  ],
  "disclosure": "The real pi-git runs in a Node.js sandbox in your browser (WebContainers). The model is scripted: it knows one edit and the commit message for it, and nothing is sent anywhere. The browser sandbox has no git, so a stand-in built on isomorphic-git answers the commands pi-git calls. Other git commands aren't covered. Reload to start over."
}
