Git utilities for AI prompting and automation
Warning
This package is included in the @synstack/synscript package. It is not recommended to install both packages at the same time.
Note
The ls
function is available through @synstack/fs for convenience.
This package provides a small set of Git operations commonly needed when working with AI tools and automation scripts:
import { ls, show } from "@synstack/git";
// Get all git-relevant files in your project
const files = await ls();
// View specific commit changes
const commitDetails = await show("449b7730436026243936a0a2f37c6d3474fcad3b");
npm install @synstack/git
# or
yarn add @synstack/git
# or
pnpm add @synstack/git