@elyun/bylane 1.8.0 → 1.10.0
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/commands/bylane.md +2 -1
- package/package.json +1 -1
- package/src/cli.js +7 -2
- /package/{skills/analyze-agent.md → commands/bylane-analyze-agent.md} +0 -0
- /package/{skills/code-agent.md → commands/bylane-code-agent.md} +0 -0
- /package/{skills/commit-agent.md → commands/bylane-commit-agent.md} +0 -0
- /package/{skills/issue-agent.md → commands/bylane-issue-agent.md} +0 -0
- /package/{skills/notify-agent.md → commands/bylane-notify-agent.md} +0 -0
- /package/{skills/orchestrator.md → commands/bylane-orchestrator.md} +0 -0
- /package/{skills/pr-agent.md → commands/bylane-pr-agent.md} +0 -0
- /package/{skills/respond-agent.md → commands/bylane-respond-agent.md} +0 -0
- /package/{skills/respond-loop.md → commands/bylane-respond-loop.md} +0 -0
- /package/{skills/review-agent.md → commands/bylane-review-agent.md} +0 -0
- /package/{skills/review-loop.md → commands/bylane-review-loop.md} +0 -0
- /package/{skills/setup.md → commands/bylane-setup.md} +0 -0
- /package/{skills/test-agent.md → commands/bylane-test-agent.md} +0 -0
package/commands/bylane.md
CHANGED
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { cpSync, mkdirSync, symlinkSync, existsSync, readdirSync, copyFileSync, renameSync } from 'fs'
|
|
2
|
+
import { cpSync, mkdirSync, symlinkSync, existsSync, readdirSync, copyFileSync, renameSync, readFileSync } from 'fs'
|
|
3
3
|
import { join, dirname } from 'path'
|
|
4
4
|
import { fileURLToPath } from 'url'
|
|
5
5
|
import { homedir } from 'os'
|
|
@@ -13,7 +13,6 @@ const command = args[0] || 'install'
|
|
|
13
13
|
const useSymlink = args.includes('--symlink')
|
|
14
14
|
|
|
15
15
|
const TARGETS = [
|
|
16
|
-
{ src: join(ROOT, 'skills'), dest: join(CLAUDE_DIR, 'skills'), label: 'Skills' },
|
|
17
16
|
{ src: join(ROOT, 'commands'), dest: join(CLAUDE_DIR, 'commands'), label: 'Commands' },
|
|
18
17
|
{ src: join(ROOT, 'hooks'), dest: join(CLAUDE_DIR, 'hooks'), label: 'Hooks' },
|
|
19
18
|
]
|
|
@@ -23,6 +22,12 @@ function backupAndCopy(src, dest, file, label) {
|
|
|
23
22
|
const srcFile = join(src, file)
|
|
24
23
|
|
|
25
24
|
if (existsSync(destFile)) {
|
|
25
|
+
const srcContent = readFileSync(srcFile)
|
|
26
|
+
const destContent = readFileSync(destFile)
|
|
27
|
+
if (srcContent.equals(destContent)) {
|
|
28
|
+
console.log(` = ${label}: ${file} (변경 없음, 건너뜀)`)
|
|
29
|
+
return
|
|
30
|
+
}
|
|
26
31
|
const backupPath = `${destFile}.bak`
|
|
27
32
|
renameSync(destFile, backupPath)
|
|
28
33
|
copyFileSync(srcFile, destFile)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|