import{u as i,c as u}from"./vendor-query-B2UbickB.js";import{b as n}from"./index-BZu5zewH.js";function a(t={}){const e=new URLSearchParams;return t.limit&&e.set("limit",String(t.limit)),t.offset!==void 0&&e.set("offset",String(t.offset)),t.entity&&e.set("entity",t.entity),t.search&&e.set("search",t.search),t.status&&e.set("status",t.status),t.sort_by&&e.set("sort_by",t.sort_by),t.order&&e.set("order",t.order),e.set("app_id",t.app_id||"longtail"),i({queryKey:["mcpRuns",t],queryFn:()=>n(`/pipelines?${e}`)})}function p(t="longtail"){return i({queryKey:["mcpEntities",t],queryFn:()=>n(`/pipelines/entities?app_id=${t}`)})}function r(t,e="longtail"){return i({queryKey:["mcpRunExecution",t,e],queryFn:()=>n(`/pipelines/${t}/execution?app_id=${e}`),enabled:!!t})}function c(){return u({mutationFn:t=>n(`/pipelines/${t.jobId}/interrupt`,{method:"POST",body:JSON.stringify({topic:t.topic,app_id:t.appId})})})}export{p as a,r as b,c,a as u};
//# sourceMappingURL=pipelines-C8aRprVr.js.map
