import{Si as e,xi as t}from"./model-selection-p21GBPS6.js";import{n}from"./call-_dlYen_W.js";import{n as r}from"./progress-Cyn5U745.js";function i(e){return e.option(`--url <url>`,`Gateway WebSocket URL (defaults to gateway.remote.url when configured)`).option(`--token <token>`,`Gateway token (if required)`).option(`--timeout <ms>`,`Timeout in ms`,`30000`).option(`--expect-final`,`Wait for final response (agent)`,!1)}async function a(i,a,o,s){let c=s?.progress??a.json!==!0;return await r({label:`Gateway ${i}`,indeterminate:!0,enabled:c},async()=>await n({url:a.url,token:a.token,method:i,params:o,expectFinal:s?.expectFinal??!!a.expectFinal,timeoutMs:Number(a.timeout??1e4),clientName:e.CLI,mode:t.CLI}))}export{a as n,i as t};
