sleepcode 1.4.4 → 1.4.5

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.
@@ -13,7 +13,10 @@
13
13
  "Bash(NPM_TOKEN=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 npm publish:*)",
14
14
  "Bash(NPM_TOKEN=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 npm publish)",
15
15
  "Bash(git push:*)",
16
- "Bash(claude:*)"
16
+ "Bash(claude:*)",
17
+ "Bash(git reset:*)",
18
+ "Bash(NPM_TOKEN=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 npm publish --registry=https://registry.npmjs.org/)",
19
+ "Bash(npm publish --//registry.npmjs.org/:_authToken=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)"
17
20
  ]
18
21
  }
19
22
  }
package/.gitattributes ADDED
@@ -0,0 +1,4 @@
1
+ # Shell scripts must always use LF line endings
2
+ *.sh text eol=lf
3
+ *.py text eol=lf
4
+ *.md text eol=lf
package/bin/index.js CHANGED
@@ -279,6 +279,10 @@ function generateFiles(targetDir, { typeKey, projectName, role, buildCmd, testCm
279
279
  if (fs.existsSync(src)) {
280
280
  let content = fs.readFileSync(src, 'utf-8');
281
281
  content = content.replace(/\{\{SLEEP_INTERVAL\}\}/g, sleepInterval);
282
+ // Shell/Python 스크립트는 반드시 LF 줄바꿈 (Windows에서도)
283
+ if (file.endsWith('.sh') || file.endsWith('.py')) {
284
+ content = content.replace(/\r\n/g, '\n');
285
+ }
282
286
  // PowerShell은 UTF-8 BOM 필요 (한글 깨짐 방지)
283
287
  if (file.endsWith('.ps1')) content = '\uFEFF' + content;
284
288
  fs.writeFileSync(dest, content);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sleepcode",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "AI codes while you sleep — Claude AI 야간 자동화 세팅 CLI",
5
5
  "bin": {
6
6
  "sleepcode": "./bin/index.js"