triflux 10.0.1 → 10.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/bin/triflux.mjs +6 -6
- package/package.json +1 -1
- package/scripts/setup.mjs +6 -4
package/bin/triflux.mjs
CHANGED
|
@@ -787,9 +787,9 @@ function cmdSetup(options = {}) {
|
|
|
787
787
|
syncFile(target.src, target.dst, target.label);
|
|
788
788
|
}
|
|
789
789
|
{
|
|
790
|
-
const claudeGuide = ensureGlobalClaudeRoutingSection();
|
|
791
|
-
if (
|
|
792
|
-
else if (claudeGuide.
|
|
790
|
+
const claudeGuide = ensureGlobalClaudeRoutingSection(CLAUDE_DIR);
|
|
791
|
+
if (claudeGuide.skipped) warn(`CLAUDE.md 라우팅 섹션 확인 실패: ${claudeGuide.reason}`);
|
|
792
|
+
else if (claudeGuide.action === "created" || claudeGuide.action === "updated") ok("CLAUDE.md: 전역 triflux 라우팅 요약 갱신");
|
|
793
793
|
else ok("CLAUDE.md: 전역 triflux 라우팅 요약 유지");
|
|
794
794
|
}
|
|
795
795
|
|
|
@@ -1373,9 +1373,9 @@ async function cmdDoctor(options = {}) {
|
|
|
1373
1373
|
syncFile(target.src, target.dst, target.label);
|
|
1374
1374
|
}
|
|
1375
1375
|
{
|
|
1376
|
-
const claudeGuide = ensureGlobalClaudeRoutingSection();
|
|
1377
|
-
if (
|
|
1378
|
-
else if (claudeGuide.
|
|
1376
|
+
const claudeGuide = ensureGlobalClaudeRoutingSection(CLAUDE_DIR);
|
|
1377
|
+
if (claudeGuide.skipped) warn(`CLAUDE.md 라우팅 섹션 확인 실패: ${claudeGuide.reason}`);
|
|
1378
|
+
else if (claudeGuide.action === "created" || claudeGuide.action === "updated") ok("CLAUDE.md: 전역 triflux 라우팅 요약 갱신");
|
|
1379
1379
|
}
|
|
1380
1380
|
// 스킬 동기화
|
|
1381
1381
|
const fSkillsSrc = join(PKG_ROOT, "skills");
|
package/package.json
CHANGED
package/scripts/setup.mjs
CHANGED
|
@@ -260,9 +260,9 @@ function normalizeErrorMessage(error, fallback = "unknown error") {
|
|
|
260
260
|
const candidate = /** @type {{ message?: unknown }} */ (error).message;
|
|
261
261
|
if (isMeaningful(candidate)) return candidate.trim();
|
|
262
262
|
}
|
|
263
|
-
return fallback;
|
|
264
|
-
}
|
|
265
|
-
|
|
263
|
+
return fallback;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
266
|
function hasProfileSection(tomlContent, profileName) {
|
|
267
267
|
const section = `^\\[profiles\\.${escapeRegExp(profileName)}\\]\\s*$`;
|
|
268
268
|
return new RegExp(section, "m").test(tomlContent);
|
|
@@ -660,9 +660,11 @@ for (const { src, dst } of SYNC_MAP) {
|
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
|
|
663
|
-
{
|
|
663
|
+
try {
|
|
664
664
|
const claudeGuide = ensureGlobalClaudeRoutingSection(CLAUDE_DIR);
|
|
665
665
|
if (claudeGuide.changed) synced++;
|
|
666
|
+
} catch (e) {
|
|
667
|
+
console.log(` \x1b[33m⚠\x1b[0m CLAUDE.md 라우팅: ${e.message}`);
|
|
666
668
|
}
|
|
667
669
|
|
|
668
670
|
// ── Worker 의존성 동기화 (MCP SDK + transitive deps) ──
|