refactor(agent-skills): remove deprecated AGENT_SKILLS dead code (GAP-3)

AgentSkillsPageClient (F7) was rewritten and no longer imports AGENT_SKILLS.
Grep confirms zero remaining imports of the symbol in src/, open-sse/, tests/,
or electron/. Remove the backward-compatible shim and TODO(F7) comment.
This commit is contained in:
diegosouzapw
2026-05-28 02:00:44 -03:00
parent 9f88f39f6a
commit d9f4035d2c

View File

@@ -431,16 +431,3 @@ export const CURATED_SKILLS: CuratedSkillEntry[] = [
},
];
// ── Backward-compatible re-export ─────────────────────────────────────────────
// TODO(F7): Remove AGENT_SKILLS alias once AgentSkillsPageClient is rewritten.
// The old shape expected `endpoint` (singular string | null) instead of `endpoints` (array).
// This shim preserves the old dashboard until F7 rewrites it.
/** @deprecated Use getCatalog() from src/lib/agentSkills/catalog.ts instead. */
export const AGENT_SKILLS: AgentSkill[] = CURATED_SKILLS.map((s) => ({
...s,
endpoints: s.category === "api" ? [] : undefined,
cliCommands: s.category === "cli" ? [] : undefined,
rawUrl: getAgentSkillRawUrl(s.id),
githubUrl: getAgentSkillBlobUrl(s.id),
}));