@simplysm/claude 13.0.27 → 13.0.29
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.
|
@@ -14,7 +14,9 @@ function getOutput(command) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// 메인 working tree 경로 (worktree 안에서 실행해도 정확)
|
|
17
|
-
const mainWorktree = getOutput("git worktree list --porcelain")
|
|
17
|
+
const mainWorktree = getOutput("git worktree list --porcelain")
|
|
18
|
+
.split("\n")[0]
|
|
19
|
+
.replace("worktree ", "");
|
|
18
20
|
|
|
19
21
|
function detectWorktreeName() {
|
|
20
22
|
const cwd = process.cwd();
|
|
@@ -109,7 +111,9 @@ switch (cmd) {
|
|
|
109
111
|
const cwd = process.cwd();
|
|
110
112
|
if (cwd === worktreePath || cwd.startsWith(worktreePath + "/")) {
|
|
111
113
|
console.error(`Error: Cannot clean '${name}' from inside its worktree.`);
|
|
112
|
-
console.error(
|
|
114
|
+
console.error(
|
|
115
|
+
`Run: cd "${mainWorktree}" && node .claude/skills/sd-worktree/sd-worktree.mjs clean ${name}`,
|
|
116
|
+
);
|
|
113
117
|
process.exit(1);
|
|
114
118
|
}
|
|
115
119
|
if (existsSync(worktreePath)) {
|