@radnine/claude-session-daemon 0.6.8 → 0.6.9
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/package.json +1 -1
- package/src/git-reset.js +5 -2
package/package.json
CHANGED
package/src/git-reset.js
CHANGED
|
@@ -25,9 +25,12 @@ const EXEC_TIMEOUT = 15000; // 15 seconds per git command
|
|
|
25
25
|
async function resetGitState(workingDir, logger) {
|
|
26
26
|
const results = { stash: false, checkout: false, pull: false };
|
|
27
27
|
|
|
28
|
-
// Step 1: stash
|
|
28
|
+
// Step 1: stash TRACKED changes only. We deliberately avoid --include-untracked:
|
|
29
|
+
// vault-style repos (Obsidian notebooks, etc.) routinely hold valuable
|
|
30
|
+
// uncommitted markdown that would otherwise be swept away. If an operator
|
|
31
|
+
// needs a full sweep they can opt out of safe_working_tree per pilot.
|
|
29
32
|
try {
|
|
30
|
-
const { stdout } = await execFileAsync('git', ['stash'
|
|
33
|
+
const { stdout } = await execFileAsync('git', ['stash'], {
|
|
31
34
|
cwd: workingDir,
|
|
32
35
|
timeout: EXEC_TIMEOUT,
|
|
33
36
|
encoding: 'utf8',
|