@phren/cli 0.1.19 → 0.1.20
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.
package/dist/cli/session-stop.js
CHANGED
|
@@ -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).
|
package/dist/cli-hooks-stop.js
CHANGED
|
@@ -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) {
|
package/dist/tools/finding.js
CHANGED
|
@@ -467,7 +467,7 @@ async function handlePushChanges(ctx, { message }) {
|
|
|
467
467
|
const commitMsg = message || `phren: save ${files.length} file(s) across ${projectNames.length} project(s)`;
|
|
468
468
|
runCustomHooks(phrenPath, "pre-save");
|
|
469
469
|
// Stage all files including untracked (new project dirs, first FINDINGS.md, etc.)
|
|
470
|
-
runGit(["add", "-A"]);
|
|
470
|
+
runGit(["add", "--sparse", "-A"]);
|
|
471
471
|
runGit(["commit", "-m", commitMsg]);
|
|
472
472
|
let hasRemote = false;
|
|
473
473
|
try {
|
|
@@ -570,7 +570,7 @@ async function handlePushChanges(ctx, { message }) {
|
|
|
570
570
|
continue;
|
|
571
571
|
}
|
|
572
572
|
// Only stage team-safe files: journal/, tasks.md, truths.md, FINDINGS.md, summary.md
|
|
573
|
-
runStoreGit(["add", "--", "*/journal/*", "*/tasks.md", "*/truths.md", "*/FINDINGS.md", "*/summary.md"]);
|
|
573
|
+
runStoreGit(["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/**"]);
|
|
574
574
|
const actor = process.env.PHREN_ACTOR || process.env.USER || "unknown";
|
|
575
575
|
runStoreGit(["commit", "-m", `phren: ${actor} team sync`]);
|
|
576
576
|
try {
|