Write handover snapshots under docs and ignore worktrees

This commit is contained in:
rob
2026-11-04 13:23:26 +00:00
parent 03e15dd531
commit 767b424a4c
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -6,6 +6,6 @@ From the repository root, run:
python3 scripts/create_snapshot.py
```
The script writes a timestamped ZIP into `snapshots/`. It includes the application source, `AGENTS.md`, `docs/`, and `scripts/`, including safe untracked files. It omits Git metadata, task worktrees, dependency directories, local environment files, local databases, shared files, caches, generated builds, prior snapshots, symlinks, and common key/credential files. The root `.gitignore` ignores `snapshots/`.
The script writes a timestamped ZIP into `docs/snapshots/`. It includes the application source, `AGENTS.md`, `docs/`, and `scripts/`, including safe untracked files. It omits Git metadata, task worktrees, dependency directories, local environment files, local databases, shared files, caches, generated builds, prior snapshots, symlinks, and common key/credential files. The root `.gitignore` ignores `docs/snapshots/` and `.worktrees/`.
Inspect the ZIP contents before uploading it if you have added new local data or sensitive file types to the project.
+1 -1
View File
@@ -8,7 +8,7 @@ from zipfile import ZIP_DEFLATED, ZipFile
ROOT = Path(__file__).resolve().parent.parent
OUTPUT = ROOT / "snapshots"
OUTPUT = ROOT / "docs" / "snapshots"
ROOT_ENTRIES = ("AGENTS.md", ".gitignore", "README.md", "api", "react", "docs", "scripts")
EXCLUDED_DIRS = {
".git", ".worktrees", ".venv", "venv", "node_modules", "share",