framework
Version:
The (AI) Framework: turnkey, zero-config AI orchestration that wraps a coding-agent CLI (Claude Code) as a black box and takes you from an idea to a running app. Vite for AI.
20 lines • 1.09 kB
JavaScript
import { join } from 'node:path';
import { THE_FRAMEWORK_DIR } from './framework-dir.js';
import { LAYOUT_FILE } from './layout.js';
/**
* The `.the-framework/.gitignore` (#313): one file, one content, written at install.
*
* Everything under `.the-framework/` is transient on main — `events.jsonl`, `agent.json`, the
* worktrees — and would otherwise turn every session into a dirty checkout. The lasting records
* (the session archives) live on the data branch (#1582), so the only tracked entry left is the
* layout marker (#1575): main is 100% code plus that one gate file.
*/
/** The `.gitignore` path under `cwd`'s `.the-framework/`. */
export function gitignorePath(cwd) {
return join(cwd, THE_FRAMEWORK_DIR, '.gitignore');
}
/** The whole file: everything under `.the-framework/` is transient except the layout marker (#1582, #1575). */
export function frameworkGitignore() {
return `# The Framework: agent state is transient; the lasting records live on the tf-data branch.\n*\n!.gitignore\n!${LAYOUT_FILE}\n`;
}
//# sourceMappingURL=framework-gitignore.js.map