@bluecopa/harness 0.1.0-snapshot.31 → 0.1.0-snapshot.33
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/package.json
CHANGED
package/src/arc/arc-loop.ts
CHANGED
|
@@ -599,12 +599,19 @@ export class ArcLoop {
|
|
|
599
599
|
|
|
600
600
|
// Fast match only (keyword + alias, no LLM call)
|
|
601
601
|
const matched = await this.skillRouter.selectSkill(action, this.skillSummaries);
|
|
602
|
+
if (matched) {
|
|
603
|
+
console.log(`[skill-router] Matched skill "${matched.name}" for action: "${action.slice(0, 80)}..."`);
|
|
604
|
+
} else {
|
|
605
|
+
console.log(`[skill-router] No match for action: "${action.slice(0, 80)}..."`);
|
|
606
|
+
}
|
|
602
607
|
if (!matched) return null;
|
|
603
608
|
|
|
604
609
|
try {
|
|
605
610
|
const skill = await loadSkillFromFile(matched.path);
|
|
611
|
+
console.log(`[skill-router] Loaded skill "${matched.name}" (${skill.instructions?.length ?? 0} chars)`);
|
|
606
612
|
return skill.instructions || null;
|
|
607
|
-
} catch {
|
|
613
|
+
} catch (err) {
|
|
614
|
+
console.error(`[skill-router] Failed to load skill "${matched.name}":`, err);
|
|
608
615
|
return null;
|
|
609
616
|
}
|
|
610
617
|
}
|
|
@@ -19,7 +19,10 @@ export interface SkillRouterConfig {
|
|
|
19
19
|
const DEFAULT_ALIASES: Record<string, string[]> = {
|
|
20
20
|
xlsx: ['excel', 'spreadsheet', 'workbook', 'csv'],
|
|
21
21
|
docx: ['word', 'document', 'doc'],
|
|
22
|
-
pptx: ['powerpoint', 'slides', 'presentation']
|
|
22
|
+
pptx: ['powerpoint', 'slides', 'presentation'],
|
|
23
|
+
'visual-explainer': ['visual explainer', 'visual explanation', 'interactive visual', 'visualize', 'diagram d3', 'data visualization', 'd3'],
|
|
24
|
+
'excalidraw-diagram': ['excalidraw', 'architecture diagram', 'flowchart', 'sequence diagram'],
|
|
25
|
+
'json-render': ['jsonrender', 'interactive ui', 'action buttons'],
|
|
23
26
|
};
|
|
24
27
|
|
|
25
28
|
export class SkillRouter {
|