import{r as e}from"./core-DcH9fClu.js";import{Xn as t,Zn as n}from"./tauri-CdWwv9tA.js";import{n as r}from"./host-IZNQjG4L.js";function i(){return Error(`Managed skills are unavailable with the current Orchestra host configuration.`)}function a(){return t()?.client.skills??null}function o(){if(n()||!r())throw i()}async function s(t=!1){let n=a();return n?n.listSkills(t):(o(),e(`list_skills`,{includeArchived:t}))}async function c(t){let n=a();return n?n.getSkill(t):(o(),e(`get_skill`,{skillId:t}))}async function l(){let t=a();return t?t.getCatalogDiagnostics():(o(),e(`get_skills_catalog_diagnostics`))}async function u(t){let n=a();return n?n.createLocalSkill(t):(o(),e(`create_local_skill`,{input:t}))}async function d(t,n){let r=a();return r?r.updateLocalSkill(t,n):(o(),e(`update_local_skill`,{skillId:t,input:n}))}async function f(t){let n=a();return n?n.archiveLocalSkill(t):(o(),e(`archive_local_skill`,{skillId:t}))}async function p(t){let n=a();return n?n.unarchiveLocalSkill(t):(o(),e(`unarchive_local_skill`,{skillId:t}))}async function m(t){let n=a();return n?n.deleteLocalSkill(t):(o(),e(`delete_local_skill`,{skillId:t}))}async function h(){let t=a();return t?t.refreshExternalSkills():(o(),e(`refresh_external_skills`))}async function g(t,n){let r=a();return r?r.setSkillBindings(t,n):(o(),e(`set_skill_bindings`,{skillId:t,bindings:n}))}async function _(t){let n=a();return n?n.getRoleSkillLinks(t):(o(),e(`get_role_skill_links`,{roleId:t}))}async function v(t){let n=a();return n?n.getAgentSkillLinks(t):(o(),e(`get_agent_skill_links`,{agentId:t}))}async function y(t){let n=a();return n?n.getWorkflowSkillLinks(t):(o(),e(`get_workflow_skill_links`,{workflowId:t}))}export{_ as a,y as c,g as d,p as f,v as i,s as l,u as n,c as o,d as p,m as r,l as s,f as t,h as u};