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:
Fusion
2026-04-30 19:46:33 -07:00
committed by gsxdsm
parent e3b320d494
commit 451c6d820d
8 changed files with 424 additions and 1 deletions

View File

@@ -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";
}