sleepcode 1.4.0 → 1.4.1
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/.claude/settings.local.json +2 -1
- package/bin/index.js +9 -1
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -527,12 +527,17 @@ function generateTasks() {
|
|
|
527
527
|
|
|
528
528
|
tasks.md 내용만 출력하세요. 다른 설명은 하지 마세요.`;
|
|
529
529
|
|
|
530
|
+
// claude 중첩 세션 방지: CLAUDECODE 환경변수 제거
|
|
531
|
+
const env = { ...process.env };
|
|
532
|
+
delete env.CLAUDECODE;
|
|
533
|
+
|
|
530
534
|
try {
|
|
531
535
|
const result = execSync(
|
|
532
536
|
'claude -p --output-format text',
|
|
533
537
|
{
|
|
534
538
|
input: prompt,
|
|
535
539
|
cwd: targetDir,
|
|
540
|
+
env,
|
|
536
541
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
537
542
|
timeout: 300000,
|
|
538
543
|
maxBuffer: 1024 * 1024,
|
|
@@ -547,7 +552,10 @@ tasks.md 내용만 출력하세요. 다른 설명은 하지 마세요.`;
|
|
|
547
552
|
console.log(` ${C.cyan}npx sleepcode run${C.reset} ${C.dim}# 1회 실행${C.reset}`);
|
|
548
553
|
console.log(` ${C.cyan}npx sleepcode run --loop${C.reset} ${C.dim}# 무한 루프${C.reset}`);
|
|
549
554
|
} catch (e) {
|
|
550
|
-
|
|
555
|
+
const stderr = e.stderr ? e.stderr.toString().trim() : '';
|
|
556
|
+
console.error(`${C.red}태스크 생성 실패:${C.reset}`);
|
|
557
|
+
if (stderr) console.error(stderr);
|
|
558
|
+
else console.error(e.message);
|
|
551
559
|
process.exit(1);
|
|
552
560
|
}
|
|
553
561
|
}
|