feat(experts): add built-in expert skills with per-agent activation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
xintaofei
2026-04-10 15:17:51 +08:00
parent 64d4e9c903
commit 5b613daded
73 changed files with 11199 additions and 30 deletions

View File

@@ -15,6 +15,8 @@ import type {
AgentSkillItem,
AgentSkillsListResult,
AgentSkillContent,
ExpertListItem,
ExpertInstallStatus,
FolderHistoryEntry,
FolderDetail,
DbConversationSummary,
@@ -332,6 +334,46 @@ export async function acpDeleteAgentSkill(params: {
})
}
// ─── Experts (built-in expert skills) ───────────────────────────────────
export async function expertsList(): Promise<ExpertListItem[]> {
return getTransport().call("experts_list")
}
export async function expertsGetInstallStatus(
expertId: string
): Promise<ExpertInstallStatus[]> {
return getTransport().call("experts_get_install_status", { expertId })
}
export async function expertsLinkToAgent(params: {
expertId: string
agentType: AgentType
}): Promise<ExpertInstallStatus> {
return getTransport().call("experts_link_to_agent", {
expertId: params.expertId,
agentType: params.agentType,
})
}
export async function expertsUnlinkFromAgent(params: {
expertId: string
agentType: AgentType
}): Promise<void> {
return getTransport().call("experts_unlink_from_agent", {
expertId: params.expertId,
agentType: params.agentType,
})
}
export async function expertsReadContent(expertId: string): Promise<string> {
return getTransport().call("experts_read_content", { expertId })
}
export async function expertsOpenCentralDir(): Promise<string> {
return getTransport().call("experts_open_central_dir")
}
export async function getSystemProxySettings(): Promise<SystemProxySettings> {
return getTransport().call("get_system_proxy_settings")
}