From d9f4035d2c66918193bd76d77b640d6e2edbf476 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Thu, 28 May 2026 02:00:44 -0300 Subject: [PATCH] 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. --- src/shared/constants/agentSkills.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/shared/constants/agentSkills.ts b/src/shared/constants/agentSkills.ts index 773e3df9b8..0d92d10a80 100644 --- a/src/shared/constants/agentSkills.ts +++ b/src/shared/constants/agentSkills.ts @@ -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), -}));