feat(FN-3035): tighten insight tool filter typing
Fixes the insight tool filter typing in the CLI extension to use stricter types, preventing incorrect filter values from being passed through. Fusion-Task-Id: FN-3035
This commit is contained in:
@@ -43,13 +43,14 @@ const CAP_TABLE_BEGIN =
|
||||
"<!-- BEGIN: fusion-capabilities-tool-table (auto-generated by scripts/sync-fusion-skill-tools.mjs — do not edit by hand) -->";
|
||||
const CAP_TABLE_END = "<!-- END: fusion-capabilities-tool-table -->";
|
||||
|
||||
const CATEGORY_ORDER = ["Task", "GitHub", "Mission", "Agent", "Skills", "Other"];
|
||||
const CATEGORY_ORDER = ["Task", "GitHub", "Mission", "Agent", "Skills", "Insight", "Other"];
|
||||
const CATEGORY_LABELS = {
|
||||
Task: "Task tools",
|
||||
GitHub: "GitHub tools",
|
||||
Mission: "Mission tools",
|
||||
Agent: "Agent tools",
|
||||
Skills: "Skills tools",
|
||||
Insight: "Insight tools",
|
||||
Other: "Other tools",
|
||||
};
|
||||
|
||||
@@ -59,6 +60,7 @@ const CATEGORY_HEADERS = {
|
||||
Mission: "## Mission Tools",
|
||||
Agent: "## Agent Tools",
|
||||
Skills: "## Skills Tools",
|
||||
Insight: "## Insight Tools",
|
||||
Other: "## Other Tools",
|
||||
};
|
||||
|
||||
@@ -75,6 +77,7 @@ function categorize(name) {
|
||||
}
|
||||
if (name.startsWith("fn_agent_")) return "Agent";
|
||||
if (name.startsWith("fn_skills_")) return "Skills";
|
||||
if (name.startsWith("fn_insight_")) return "Insight";
|
||||
return "Other";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user