@phren/cli 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -282,7 +282,7 @@ export async function handleHookStop() {
282
282
  // Stage all changes first, then unstage any sensitive files that slipped
283
283
  // through. Using pathspec exclusions with `git add -A` can fail when
284
284
  // excluded paths are also gitignored (git treats the pathspec as an error).
285
- let add = await runBestEffortGit(["add", "-A"], phrenPath);
285
+ let add = await runBestEffortGit(["add", "--sparse", "-A"], phrenPath);
286
286
  if (add.ok) {
287
287
  // Belt-and-suspenders: unstage sensitive files that .gitignore should
288
288
  // already block. Failures here are non-fatal (files may not exist).
@@ -341,7 +341,7 @@ export async function handleHookStop() {
341
341
  // Stage all changes first, then unstage any sensitive files that slipped
342
342
  // through. Using pathspec exclusions with `git add -A` can fail when
343
343
  // excluded paths are also gitignored (git treats the pathspec as an error).
344
- let add = await runBestEffortGit(["add", "-A"], phrenPath);
344
+ let add = await runBestEffortGit(["add", "--sparse", "-A"], phrenPath);
345
345
  if (add.ok) {
346
346
  // Belt-and-suspenders: unstage sensitive files that .gitignore should
347
347
  // already block. Failures here are non-fatal (files may not exist).
@@ -486,7 +486,7 @@ export async function handleHookStop() {
486
486
  const storeStatus = await runBestEffortGit(["status", "--porcelain"], store.path);
487
487
  if (storeStatus.ok && storeStatus.output) {
488
488
  // Only stage journal/, tasks.md, truths.md, FINDINGS.md, summary.md — NOT .runtime/
489
- await runBestEffortGit(["add", "--", "*/journal/*", "*/tasks.md", "*/truths.md", "*/FINDINGS.md", "*/summary.md", ".phren-team.yaml"], store.path);
489
+ await runBestEffortGit(["add", "--sparse", "--", "*/journal/*", "*/tasks.md", "*/truths.md", "*/FINDINGS.md", "*/FINDINGS.md.bak", "*/summary.md", "*/review.md", "*/CLAUDE.md", "*/topic-config.json", "*/phren.project.yaml", "*/reference/**", "*/skills/**", ".phren-team.yaml"], store.path);
490
490
  const actor = process.env.PHREN_ACTOR || process.env.USER || "unknown";
491
491
  const teamCommit = await runBestEffortGit(["commit", "-m", `phren: ${actor} team sync`], store.path);
492
492
  if (teamCommit.ok) {