@team-semicolon/semo-cli 3.0.16 → 3.0.17
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 +31 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ const child_process_1 = require("child_process");
|
|
|
59
59
|
const fs = __importStar(require("fs"));
|
|
60
60
|
const path = __importStar(require("path"));
|
|
61
61
|
const os = __importStar(require("os"));
|
|
62
|
-
const VERSION = "3.0.
|
|
62
|
+
const VERSION = "3.0.17";
|
|
63
63
|
const PACKAGE_NAME = "@team-semicolon/semo-cli";
|
|
64
64
|
// === 버전 비교 유틸리티 ===
|
|
65
65
|
/**
|
|
@@ -1755,6 +1755,35 @@ async function setupClaudeMd(cwd, extensions, force) {
|
|
|
1755
1755
|
console.log(chalk_1.default.gray(` + ${pkg}/CLAUDE.md 병합됨`));
|
|
1756
1756
|
}
|
|
1757
1757
|
}
|
|
1758
|
+
// 4. Orchestrator 참조 경로 결정 (Extension 패키지 우선)
|
|
1759
|
+
// Extension 패키지 중 orchestrator가 있는 첫 번째 패키지를 Primary로 설정
|
|
1760
|
+
let primaryOrchestratorPath = "semo-core/agents/orchestrator/orchestrator.md";
|
|
1761
|
+
const orchestratorPaths = [];
|
|
1762
|
+
for (const pkg of extensions) {
|
|
1763
|
+
const pkgOrchestratorPath = path.join(semoSystemDir, pkg, "agents/orchestrator/orchestrator.md");
|
|
1764
|
+
if (fs.existsSync(pkgOrchestratorPath)) {
|
|
1765
|
+
orchestratorPaths.push(`semo-system/${pkg}/agents/orchestrator/orchestrator.md`);
|
|
1766
|
+
// 첫 번째 Extension 패키지의 orchestrator를 Primary로 설정
|
|
1767
|
+
if (primaryOrchestratorPath === "semo-core/agents/orchestrator/orchestrator.md") {
|
|
1768
|
+
primaryOrchestratorPath = `${pkg}/agents/orchestrator/orchestrator.md`;
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
// semo-core orchestrator는 항상 포함
|
|
1773
|
+
orchestratorPaths.unshift("semo-system/semo-core/agents/orchestrator/orchestrator.md");
|
|
1774
|
+
// Orchestrator 참조 섹션 생성
|
|
1775
|
+
const orchestratorRefSection = orchestratorPaths.length > 1
|
|
1776
|
+
? `**Primary Orchestrator**: \`semo-system/${primaryOrchestratorPath}\`
|
|
1777
|
+
|
|
1778
|
+
> Extension 패키지가 설치되어 해당 패키지의 Orchestrator를 우선 참조합니다.
|
|
1779
|
+
|
|
1780
|
+
**모든 Orchestrator 파일** (라우팅 테이블 병합됨):
|
|
1781
|
+
${orchestratorPaths.map(p => `- \`${p}\``).join("\n")}
|
|
1782
|
+
|
|
1783
|
+
이 파일들에서 라우팅 테이블, 의도 분류, 메시지 포맷을 확인하세요.`
|
|
1784
|
+
: `**반드시 읽어야 할 파일**: \`semo-system/semo-core/agents/orchestrator/orchestrator.md\`
|
|
1785
|
+
|
|
1786
|
+
이 파일에서 라우팅 테이블, 의도 분류, 메시지 포맷을 확인하세요.`;
|
|
1758
1787
|
const claudeMdContent = `# SEMO Project Configuration
|
|
1759
1788
|
|
|
1760
1789
|
> SEMO (Semicolon Orchestrate) - AI Agent Orchestration Framework v${VERSION}
|
|
@@ -1784,9 +1813,7 @@ async function setupClaudeMd(cwd, extensions, force) {
|
|
|
1784
1813
|
|
|
1785
1814
|
### Orchestrator 참조
|
|
1786
1815
|
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
이 파일에서 라우팅 테이블, 의도 분류, 메시지 포맷을 확인하세요.
|
|
1816
|
+
${orchestratorRefSection}
|
|
1790
1817
|
|
|
1791
1818
|
---
|
|
1792
1819
|
|