/** * shared/gitignore — auto-manage .pi/.gitignore entries for pi-swarm state. * * Ensures `swarm/state/` is listed in `.pi/.gitignore` so durable * runtime state is never committed. Only operates when the project is an * actual git repository (#110) and only writes to `.pi/.gitignore` * (#123) — never the project-root `.gitignore`, which would be an * unwanted side effect in projects that opt out of gitignore. */ /** * Ensure `swarm/state/` (relative to `.pi/`) is listed in `.pi/.gitignore`. * * Behavior (#123): * - If cwd is not a git repository: do nothing (#110). * - If `.pi/.gitignore` exists and contains the entry: no-op. * - If `.pi/.gitignore` exists but lacks the entry: append it. * - If `.pi/.gitignore` does not exist: create it inside `.pi/`. * * Never writes to the project-root `.gitignore`. Every filesystem * error is surfaced via `console.error` (AGENTS.md §0 Quality Gates). */ export declare function ensureGitignore(cwd: string): void; //# sourceMappingURL=gitignore.d.ts.map