@team-semicolon/semo-cli 4.0.2 → 4.0.3
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/dist/index.js +12 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1193,15 +1193,20 @@ function verifyInstallation(cwd, installedExtensions = []) {
|
|
|
1193
1193
|
if (fs.existsSync(claudeAgentsDir)) {
|
|
1194
1194
|
for (const agent of expectedAgents) {
|
|
1195
1195
|
const linkPath = path.join(claudeAgentsDir, agent);
|
|
1196
|
-
|
|
1197
|
-
if (
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1196
|
+
try {
|
|
1197
|
+
if (fs.existsSync(linkPath) || fs.lstatSync(linkPath).isSymbolicLink()) {
|
|
1198
|
+
if (isSymlinkValid(linkPath)) {
|
|
1199
|
+
result.stats.agents.linked++;
|
|
1200
|
+
}
|
|
1201
|
+
else {
|
|
1202
|
+
result.stats.agents.broken++;
|
|
1203
|
+
result.warnings.push(`깨진 링크: .claude/agents/${agent}`);
|
|
1204
|
+
}
|
|
1203
1205
|
}
|
|
1204
1206
|
}
|
|
1207
|
+
catch {
|
|
1208
|
+
// path doesn't exist at all — skip
|
|
1209
|
+
}
|
|
1205
1210
|
}
|
|
1206
1211
|
}
|
|
1207
1212
|
}
|