@tabsmith/autocomplete-specs 1.0.0 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/build/@magnolia/cli.js +2 -2
  2. package/build/@withfig/autocomplete-tools.js +2 -2
  3. package/build/airflow.js +2 -2
  4. package/build/ansible-playbook.js +2 -2
  5. package/build/apt.js +4 -4
  6. package/build/asr.js +2 -2
  7. package/build/bun.js +9 -9
  8. package/build/cargo.js +4 -4
  9. package/build/cd.js +2 -2
  10. package/build/chezmoi.js +2 -2
  11. package/build/cloudflared.js +2 -2
  12. package/build/coda.js +3 -3
  13. package/build/codeburn.js +1 -0
  14. package/build/codesign.js +2 -2
  15. package/build/dapr.js +2 -2
  16. package/build/deno/generators.js +4 -4
  17. package/build/deno.js +2 -2
  18. package/build/deployctl.js +2 -2
  19. package/build/direnv.js +2 -2
  20. package/build/docker.js +18 -18
  21. package/build/dotenv-vault.js +2 -2
  22. package/build/dotnet/dotnet-add.js +2 -2
  23. package/build/dotnet/dotnet-build.js +2 -2
  24. package/build/dotnet/dotnet-clean.js +2 -2
  25. package/build/dotnet/dotnet-format.js +2 -2
  26. package/build/dotnet/dotnet-list.js +2 -2
  27. package/build/dotnet/dotnet-migrate.js +2 -2
  28. package/build/dotnet/dotnet-nuget.js +3 -3
  29. package/build/dotnet/dotnet-pack.js +2 -2
  30. package/build/dotnet/dotnet-publish.js +2 -2
  31. package/build/dotnet/dotnet-remove.js +2 -2
  32. package/build/dotnet/dotnet-restore.js +2 -2
  33. package/build/dotnet/dotnet-sln.js +2 -2
  34. package/build/dotnet/dotnet-store.js +2 -2
  35. package/build/dotnet/dotnet-test.js +2 -2
  36. package/build/dotnet/dotnet-tool.js +3 -3
  37. package/build/dotnet.js +2 -2
  38. package/build/dsh.js +2 -0
  39. package/build/dtm.js +3 -3
  40. package/build/dynamic/index.js +1 -1
  41. package/build/elixir.js +2 -2
  42. package/build/elm-json.js +2 -2
  43. package/build/esbuild.js +3 -3
  44. package/build/file.js +2 -2
  45. package/build/flutter.js +5 -5
  46. package/build/gh.js +6 -37
  47. package/build/git.js +20 -20
  48. package/build/glow.js +2 -2
  49. package/build/hub.js +20 -20
  50. package/build/iex.js +2 -2
  51. package/build/index.js +1 -1
  52. package/build/index.json +1 -1
  53. package/build/java.js +2 -2
  54. package/build/julia.js +2 -2
  55. package/build/limactl.js +3 -3
  56. package/build/man.js +3 -3
  57. package/build/meteor.js +3 -3
  58. package/build/mgnl.js +2 -2
  59. package/build/mix.js +2 -2
  60. package/build/mongoimport.js +2 -2
  61. package/build/n.js +3 -3
  62. package/build/ni.js +2 -2
  63. package/build/node.js +2 -2
  64. package/build/npm.js +2 -2
  65. package/build/nr.js +3 -3
  66. package/build/nrm.js +2 -2
  67. package/build/opencode.js +2 -2
  68. package/build/osascript.js +2 -2
  69. package/build/osqueryi.js +2 -2
  70. package/build/pandoc.js +3 -3
  71. package/build/pdfunite.js +2 -2
  72. package/build/pi.js +2 -2
  73. package/build/pipenv.js +2 -2
  74. package/build/pm2.js +2 -2
  75. package/build/pnpm.js +23 -24
  76. package/build/pod.js +2 -2
  77. package/build/pre-commit.js +126 -126
  78. package/build/python.js +2 -2
  79. package/build/python3.js +2 -2
  80. package/build/r.js +3 -3
  81. package/build/rails.js +3 -3
  82. package/build/rancher.js +3 -3
  83. package/build/react-native.js +5 -5
  84. package/build/robot.js +2 -2
  85. package/build/rojo.js +2 -2
  86. package/build/rollup.js +2 -2
  87. package/build/rscript.js +2 -2
  88. package/build/rush.js +5 -5
  89. package/build/rushx.js +4 -4
  90. package/build/scc.js +2 -2
  91. package/build/shortcuts.js +2 -2
  92. package/build/sidekiq.js +2 -2
  93. package/build/sqlite3.js +2 -2
  94. package/build/streamlit.js +2 -2
  95. package/build/subl.js +2 -2
  96. package/build/swift.js +2 -2
  97. package/build/systemctl.js +2 -2
  98. package/build/ts-node.js +3 -3
  99. package/build/tsc.js +2 -2
  100. package/build/tsx.js +2 -2
  101. package/build/turbo.js +20 -20
  102. package/build/typst.js +2 -2
  103. package/build/vsce.js +20 -20
  104. package/build/wasm-bindgen.js +2 -2
  105. package/build/yarn.js +4 -4
  106. package/build/yomo.js +2 -2
  107. package/package.json +20 -20
  108. package/build/ai-agents specs.js +0 -1
@@ -1,2 +1,2 @@
1
- var Z=Object.create;var G=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var S=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var oe=(e,n,t,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of ne(n))!ie.call(e,o)&&o!==t&&G(e,o,{get:()=>n[o],enumerable:!(i=ee(n,o))||i.enumerable});return e};var re=(e,n,t)=>(t=e!=null?Z(te(e)):{},oe(n||!e||!e.__esModule?G(t,"default",{value:e,enumerable:!0}):t,e));var M=S(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.shellExpand=R.ensureTrailingSlash=void 0;var ae=e=>e.endsWith("/")?e:`${e}/`;R.ensureTrailingSlash=ae;var se=(e,n)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",n):e,le=(e,n)=>e.replace(/\$([A-Za-z0-9_]+)/g,o=>{var r;let s=o.slice(1);return(r=n[s])!==null&&r!==void 0?r:o}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(o,r,s)=>{var d,u;return(u=(d=n[r])!==null&&d!==void 0?d:s)!==null&&u!==void 0?u:o}),de=(e,n)=>{var t;let{environmentVariables:i}=n;return le(se(e,(t=i?.HOME)!==null&&t!==void 0?t:"~"),i)};R.shellExpand=de});var W=S(y=>{"use strict";var ue=y&&y.__awaiter||function(e,n,t,i){function o(r){return r instanceof t?r:new t(function(s){s(r)})}return new(t||(t=Promise))(function(r,s){function d(a){try{l(i.next(a))}catch(c){s(c)}}function u(a){try{l(i.throw(a))}catch(c){s(c)}}function l(a){a.done?r(a.value):o(a.value).then(d,u)}l((i=i.apply(e,n||[])).next())})};Object.defineProperty(y,"__esModule",{value:!0});y.filepaths=y.folders=y.getCurrentInsertedDirectory=y.sortFilesAlphabetically=void 0;var P=M();function H(e,n=[]){let t=n.map(o=>o.toLowerCase()),i=e.filter(o=>!t.includes(o.toLowerCase()));return[...i.filter(o=>!o.startsWith(".")).sort((o,r)=>o.localeCompare(r)),...i.filter(o=>o.startsWith(".")).sort((o,r)=>o.localeCompare(r)),"../"]}y.sortFilesAlphabetically=H;var ce=(e,n,t)=>{if(e===null)return"/";let i=(0,P.shellExpand)(n,t),o=i.slice(0,i.lastIndexOf("/")+1);return o===""?(0,P.ensureTrailingSlash)(e):o.startsWith("/")?o:`${(0,P.ensureTrailingSlash)(e)}${o}`};y.getCurrentInsertedDirectory=ce;function C(e={}){let{extensions:n=[],equals:t=[],matches:i,filterFolders:o=!1,editFileSuggestions:r,editFolderSuggestions:s,rootDirectory:d,showFolders:u="always"}=e,l=new Set(n),a=new Set(t),c=()=>n.length>0||t.length>0||i,h=(f=[])=>c()?f.filter(({name:g="",type:N})=>{if(!o&&N==="folder"||a.has(g)||i&&g.match(i))return!0;let[,...p]=g.split(".");if(p.length>=1){let T=p.length-1,E=p[T];do{if(l.has(E))return!0;T-=1,E=[p[T],E].join(".")}while(T>=0)}return!1}):f,L=(f=[])=>!r&&!s?f:f.map(g=>Object.assign(Object.assign({},g),(g.type==="file"?r:s)||{}));return{trigger:(f,g)=>{let N=f.lastIndexOf("/"),p=g.lastIndexOf("/");return N!==p?!0:N===-1&&p===-1?!1:f.slice(0,N)!==g.slice(0,p)},getQueryTerm:f=>f.slice(f.lastIndexOf("/")+1),custom:(f,g,N)=>ue(this,void 0,void 0,function*(){var p;let{isDangerous:T,currentWorkingDirectory:E,searchTerm:m}=N,w=(p=(0,y.getCurrentInsertedDirectory)(d??E,m,N))!==null&&p!==void 0?p:"/";try{let F=yield g({command:"ls",args:["-1ApL"],cwd:w}),Q=H(F.stdout.split(`
2
- `),[".DS_Store"]),V=[];for(let I of Q)if(I){let A=I.endsWith("/")?"folders":"filepaths";(A==="filepaths"&&u!=="only"||A==="folders"&&u!=="never")&&V.push({type:A==="filepaths"?"file":"folder",name:I,insertValue:I,isDangerous:T,context:{templateType:A}})}return L(h(V))}catch{return[]}})}}y.folders=Object.assign(()=>C({showFolders:"only"}),Object.freeze(C({showFolders:"only"})));y.filepaths=Object.assign(C,Object.freeze(C()))});var K=S(_=>{"use strict";var b=_&&_.__awaiter||function(e,n,t,i){function o(r){return r instanceof t?r:new t(function(s){s(r)})}return new(t||(t=Promise))(function(r,s){function d(a){try{l(i.next(a))}catch(c){s(c)}}function u(a){try{l(i.throw(a))}catch(c){s(c)}}function l(a){a.done?r(a.value):o(a.value).then(d,u)}l((i=i.apply(e,n||[])).next())})};Object.defineProperty(_,"__esModule",{value:!0});_.keyValueList=_.keyValue=_.valueList=void 0;var j=new Map;function x(e,n){return e.length===0?n:n.map(t=>t.insertValue?t:Object.assign(Object.assign({},t),{insertValue:t.name+e}))}function Y(e,n,t){return b(this,void 0,void 0,function*(){if(typeof e=="function"){let i=yield e(...t);return x(n,i)}if(typeof e[0]=="string"){let i=e.map(o=>({name:o}));return x(n,i)}return x(n,e)})}function k(e,n,t,i){return b(this,void 0,void 0,function*(){if(t||Array.isArray(e)){let o=j.get(e);return o===void 0&&(o=yield Y(e,n,i),j.set(e,o)),o}return Y(e,n,i)})}function B(e,n){return typeof n=="string"?e&&n==="keys"||!e&&n==="values":n}function $(e,...n){return Math.max(...n.map(t=>e.lastIndexOf(t)))}function q(e,n){let t=new Set(e);return n.filter(i=>{var o;return typeof i.name=="string"?!t.has(i.name):!(!((o=i.name)===null||o===void 0)&&o.some(r=>t.has(r)))})}function pe({delimiter:e=",",values:n=[],cache:t=!1,insertDelimiter:i=!1,allowRepeatedValues:o=!1}){return{trigger:(r,s)=>r.lastIndexOf(e)!==s.lastIndexOf(e),getQueryTerm:r=>r.slice(r.lastIndexOf(e)+e.length),custom:(...r)=>b(this,void 0,void 0,function*(){var s;let d=yield k(n,i?e:"",t,r);if(o)return d;let[u]=r,l=(s=u[u.length-1])===null||s===void 0?void 0:s.split(e);return q(l,d)})}}_.valueList=pe;function fe({separator:e="=",keys:n=[],values:t=[],cache:i=!1,insertSeparator:o=!0}){return{trigger:(r,s)=>r.indexOf(e)!==s.indexOf(e),getQueryTerm:r=>r.slice(r.indexOf(e)+1),custom:(...r)=>b(this,void 0,void 0,function*(){let[s]=r,u=!s[s.length-1].includes(e),l=u?n:t,a=B(u,i);return k(l,u&&o?e:"",a,r)})}}_.keyValue=fe;function me({separator:e="=",delimiter:n=",",keys:t=[],values:i=[],cache:o=!1,insertSeparator:r=!0,insertDelimiter:s=!1,allowRepeatedKeys:d=!1,allowRepeatedValues:u=!0}){return{trigger:(l,a)=>{let c=$(l,e,n),h=$(a,e,n);return c!==h},getQueryTerm:l=>{let a=$(l,e,n);return l.slice(a+1)},custom:(...l)=>b(this,void 0,void 0,function*(){let[a]=l,c=a[a.length-1],h=$(c,e,n),L=h===-1||c.slice(h,h+e.length)!==e,f=L?t:i,g=B(L,o),p=yield k(f,L?r?e:"":s?n:"",g,l);if(L){if(d)return p;let E=c.split(n).map(m=>m.slice(0,m.indexOf(e)));return q(E,p)}if(u)return p;let T=c.split(n).map(E=>E.slice(E.indexOf(e)+e.length));return q(T,p)})}}_.keyValueList=me});var X=S(U=>{"use strict";var ge=U&&U.__awaiter||function(e,n,t,i){function o(r){return r instanceof t?r:new t(function(s){s(r)})}return new(t||(t=Promise))(function(r,s){function d(a){try{l(i.next(a))}catch(c){s(c)}}function u(a){try{l(i.throw(a))}catch(c){s(c)}}function l(a){a.done?r(a.value):o(a.value).then(d,u)}l((i=i.apply(e,n||[])).next())})};Object.defineProperty(U,"__esModule",{value:!0});U.ai=void 0;var he=4097,ye=4,ve=.8,Te=he*ye*ve;function Ne({name:e,prompt:n,message:t,postProcess:i,temperature:o,splitOn:r}){return{scriptTimeout:15e3,custom:(s,d,u)=>ge(this,void 0,void 0,function*(){var l,a;let c=yield d({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(c.stdout))return[];let h=typeof n=="function"?yield n({tokens:s,executeCommand:d,generatorContext:u}):n,L=typeof t=="function"?yield t({tokens:s,executeCommand:d,generatorContext:u}):t;if(L===null||L.length===0)return console.warn("No message provided to AI generator"),[];let f=Te-((l=h?.length)!==null&&l!==void 0?l:0),g={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...h?[{role:"system",content:h}]:[],{role:"user",content:L.slice(0,f)}],temperature:o},N=JSON.stringify(g),p=yield d({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",N]}),T=JSON.parse(p.stdout);return(a=T?.choices.map(m=>{var w;return(w=m?.message)===null||w===void 0?void 0:w.content}).filter(m=>typeof m=="string").flatMap(m=>r?m.split(r).filter(w=>w.trim().length>0):[m]).map(m=>{if(i)return i(m);let w=m.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:w,insertValue:`'${w}'`,description:"Generated by Fig AI"}}))!==null&&a!==void 0?a:[]})}}U.ai=Ne});var J=S(v=>{"use strict";var Ee=v&&v.__createBinding||(Object.create?function(e,n,t,i){i===void 0&&(i=t);var o=Object.getOwnPropertyDescriptor(n,t);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,i,o)}:function(e,n,t,i){i===void 0&&(i=t),e[i]=n[t]}),Le=v&&v.__exportStar||function(e,n){for(var t in e)t!=="default"&&!Object.prototype.hasOwnProperty.call(n,t)&&Ee(n,e,t)};Object.defineProperty(v,"__esModule",{value:!0});v.ai=v.folders=v.filepaths=void 0;var z=W();Object.defineProperty(v,"filepaths",{enumerable:!0,get:function(){return z.filepaths}});Object.defineProperty(v,"folders",{enumerable:!0,get:function(){return z.folders}});Le(K(),v);var we=X();Object.defineProperty(v,"ai",{enumerable:!0,get:function(){return we.ai}})});var O=re(J(),1),D=[{name:["--hostname","--tunnel-host","-T"],description:"Specify the hostname of your application",args:{name:"value",description:"Hostname"},isRequired:!0},{name:"--destination",description:"Specify the destination address of your SSH server",args:{name:"value",description:"Address of SSH server"},isRequired:!0},{name:["--url","--listener","-L"],description:"Specify the host:port to forward data to Cloudflare edge",args:{name:"value",description:"Host:port to forward data to Cloudflare edge"},isRequired:!0},{name:["--service-token-id","--id"],description:"Specify an Access service token ID you wish to use. [$TUNNEL_SERVICE_TOKEN_ID]",args:{name:"value",description:"Access service token ID"},isRequired:!0},{name:["--service-token-secret","--secret"],description:"Specify an Access service token secret you wish to use. [$TUNNEL_SERVICE_TOKEN_SECRET]",args:{name:"value",description:"Access service token secret"},isRequired:!0},{name:["--log-directory","--logfile"],description:"Save application log to this directory for reporting issues",args:{name:"value",description:"Directory",template:["folders"]},isRequired:!0},{name:["--log-level","--loglevel"],description:"Application logging level {debug, info, warn, error, fatal}",args:{name:"value",description:"Directory",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]},isRequired:!0}],_e={name:"update",description:"Update the agent if a new version exists",options:[{name:"--beta",description:"Specify if you wish to update to the latest beta version (default: false)"},{name:"--version",description:"Specify a version you wish to upgrade or downgrade to",args:{name:"value"}}],args:{name:"arguments",isVariadic:!0,isOptional:!0}},Oe={name:"version",description:"Print the version",args:{name:"arguments",isVariadic:!0,isOptional:!0}},Re={name:"proxy-dns",description:"Run a DNS over HTTPS proxy server",options:[{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value"}},{name:"--address",description:'Listen address for the DNS over HTTPS proxy server. (default: "localhost") [$TUNNEL_DNS_ADDRESS]',args:{name:"value",default:"localhost"}},{name:"--port",description:"Listen on given port for the DNS over HTTPS proxy server. (default: 53) [$TUNNEL_DNS_PORT]",args:{name:"value",default:"53"}},{name:"--upstream",description:'Upstream endpoint URL, you can specify multiple endpoints for redundancy. (default: "https://1.1.1.1/dns-query", "https://1.0.0.1/dns-query") (accepts multiple inputs) [$TUNNEL_DNS_UPSTREAM]',args:{name:"value",isVariadic:!0}},{name:"--bootstrap",description:'Bootstrap endpoint URL, you can specify multiple endpoints for redundancy. (default: "https://162.159.36.1/dns-query", "https://162.159.46.1/dns-query", "https://[2606:4700:4700::1111]/dns-query", "https://[2606:4700:4700::1001]/dns-query") (accepts multiple inputs) [$TUNNEL_DNS_BOOTSTRAP]',args:{name:"value",isVariadic:!0}},{name:"--max-upstream-conns",description:"Maximum concurrent connections to upstream. Setting to 0 means unlimited. (default: 5) [$TUNNEL_DNS_MAX_UPSTREAM_CONNS]",args:{name:"value",isVariadic:!0}}],args:{name:"command options",isOptional:!0}},Ue={name:"service",description:"Manages the cloudflared launch agent",subcommands:[{name:"install",description:"Install cloudflared as an user launch agent"},{name:"uninstall",description:"Uninstall the cloudflared launch agent"},{name:["help","h"],description:"Shows a list of commands or help for one command"}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},Se={name:"help",description:"Shows a list of commands or help for one command"},be={name:"access",description:"Cloudflare Access protects internal resources by securing, authenticating and monitoring access per-user and by application. With Cloudflare Access, only authenticated users with the required permissions are able to reach sensitive resources. The commands provided here allow you to interact with Access protected applications from the command line",subcommands:[{name:"login",description:"The login subcommand initiates an authentication flow with your identity provider. The subcommand will launch a browser. For headless systems, a url is provided. Once authenticated with your identity provider, the login command will generate a JSON Web Token (JWT) scoped to your identity, the application you intend to reach, and valid for a session duration set by your administrator. cloudflared stores the token in local storage",displayName:"login <url of access application>",args:{name:"url"}},{name:"curl",description:"Uninstall the cloudflared launch agent",options:[{name:["--allow-request","--ar"]}],args:[{name:"url"},{name:"curl args",isVariadic:!0}]},{name:"token",description:"The token subcommand produces a JWT which can be used to authenticate requests",displayName:"token -app=<url of access application>",options:[{name:"--app",requiresSeparator:!0,args:{name:"value",description:"Url of access application"},isRequired:!0}]},{name:"tcp",description:"The tcp subcommand sends data over a proxy to the Cloudflare edge",options:D},{name:"rdp",description:"The rdp subcommand sends data over a proxy to the Cloudflare edge",options:D},{name:"ssh",description:"The ssh subcommand sends data over a proxy to the Cloudflare edge",options:D},{name:"smb",description:"The smb subcommand sends data over a proxy to the Cloudflare edge",options:D},{name:"ssh-config",description:"Prints an example configuration ~/.ssh/config",options:[{name:"--hostname",description:"Specify the hostname of your application",args:{name:"value",description:"Hostname"},isRequired:!0},{name:"--short-lived-cert",description:"Specify if you wish to generate short lived certs. (default: false)"}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},{name:"ssh-gen",description:"Generates a short lived certificate for given hostname",options:[{name:"--hostname",description:"Specify the hostname of your application",args:{name:"value",description:"Hostname"},isRequired:!0}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},{name:["help","h"],description:"Shows a list of commands or help for one command"}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},Ie={name:"tunnel",description:"Use Cloudflare Tunnel to expose private services to the Internet or to Cloudflare connected private users",subcommands:[{name:"login",description:"Generate a configuration file with your login details"},{name:"create",description:'Creates a tunnel, registers it with Cloudflare edge and generates credential file used to run this tunnel. Use "cloudflared tunnel route" subcommand to map a DNS name to this tunnel and "cloudflared tunnel run" to start the connection',additionalSuggestions:["cloudflared tunnel [tunnel command options] create [subcommand options] NAME"],options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,O.filepaths)({extensions:["yml","yaml"]})},isRequired:!0},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate generated"},isRequired:!0},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"},isRequired:!0},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Adress"},isRequired:!0},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"Application PID"},isRequired:!0},{name:"--loglevel",description:'Application logging level {debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]},isRequired:!0},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) {debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]},isRequired:!0},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:["filepaths"]},isRequired:!0},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Directory",template:["folders"]},isRequired:!0},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Output file"},isRequired:!0},{name:["--output","-o"],description:"Render output using given FORMAT. Valid options are 'json' or 'yaml'",args:{name:"format",description:"Format",suggestions:["json","yaml"]}},{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Filepath",template:["filepaths","folders"]}},{name:["--secret","-s"],description:"Base64 encoded secret to set for the tunnel. The decoded secret must be at least 32 bytes long. If not specified, a random 32-byte secret will be generated. [$TUNNEL_CREATE_SECRET]",args:{name:"value",description:"Base 64 encoded secret"}}],args:{name:"name"}},{name:"route",description:"The route command defines how Cloudflare will proxy requests to this tunnel",subcommands:[{name:"dns",description:"Creates a DNS CNAME record hostname that points to the tunnel",options:[{name:["--overwrite-dns","-f"],description:"Overwrites existing DNS records with this hostname (default: false) [$TUNNEL_FORCE_PROVISIONING_DNS]"}],args:[{name:"tunnel",description:"Tunnel"},{name:"hostname",description:"Hostname"}]},{name:"lb",description:"Creates Load Balancer with an origin pool that points to the tunnel",args:[{name:"tunnel",description:"Tunnel"},{name:"hostname",description:"Hostname"},{name:"LB-POOL",description:"Load balancer pool"}]},{name:"ip",description:"Configure and query Cloudflare WARP routing to private IP networks made available through Cloudflare Tunnels",subcommands:[{name:"add",description:"Add a new network to the routing table reachable via a Tunnel",options:[{name:["--vnet","--vn"],description:"The ID or name of the virtual network to which the route is associated to",args:{name:"value",description:"Id or name"}}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},{name:["show","list"],description:"Shows your organization private routing table. You can use flags to filter the results",options:[{name:"--filter-is-deleted",description:"If false (default), only show non-deleted routes. If true, only show deleted routes. (default: false)",args:{name:"value",description:"Id or name"}},{name:"--filter-tunnel-id",description:"Show only routes with the given tunnel ID",args:{name:"value",description:"Id"}},{name:["--filter-network-is-subset-of","--nsub"],description:"Show only routes whose network is a subset of the given network",args:{name:"value",description:"Network"}},{name:["--filter-network-is-superset-of","--nsup"],description:"Show only routes whose network is a superset of the given network",args:{name:"value",description:"Network"}},{name:"--filter-comment-is",description:"Show only routes with this comment",args:{name:"value",description:"Comment"}},{name:"--filter-vnet-id",description:"Show only routes that are attached to the given virtual network ID",args:{name:"value",description:"Vnet id"}},{name:["--output","-o"],description:"Render output using given FORMAT. Valid options are 'json' or 'yaml'",args:{name:"format",description:"Format",suggestions:["json","yaml"]}}],args:{name:"flags",isOptional:!0,isVariadic:!0}},{name:"delete",description:"Delete a row from your organization's private routing table",options:[{name:["--vnet","--vn"],description:"The ID or name of the virtual network to which the route is associated to",args:{name:"value",description:"Id or name"}}],args:[{name:"flags",isOptional:!0,isVariadic:!0},{name:"CIDR"}]},{name:"get",description:"Check which row of the routing table matches a given IP",options:[{name:["--vnet","--vn"],description:"The ID or name of the virtual network to which the route is associated to",args:{name:"value",description:"Id or name"}}],args:[{name:"flags",isOptional:!0,isVariadic:!0},{name:"IP"}]}]}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},{name:"vnet",description:"Configure and query virtual networks to manage private IP routes with overlapping IPs",subcommands:[{name:"add",description:"Add a new virtual network to which IP routes can be attached",options:[{name:["--default","-d"],description:"The virtual network becomes the default one for the account. This means that all operations that omit a virtual network will now implicitly be using this virtual network (i.e., the default one) such as new IP routes that are created. When this flag is not set, the virtual network will not become the default one in the account. (default: false)"}]},{name:"list",description:"Lists the virtual networks based on the given filter flags",options:[{name:"--id",description:"List virtual networks with the given ID",args:{name:"ID",description:"Id"}},{name:"--name",description:"List virtual networks with the given NAME",args:{name:"NAME",description:"Name"}},{name:"--is-default",description:"If true, lists the virtual network that is the default one. If false, lists all non-default virtual networks for the account. If absent, all are included in the results regardless of their default status. (default: false)"},{name:"--show-deleted",description:"If false (default), only show non-deleted virtual networks. If true, only show deleted virtual networks. (default: false)"},{name:["--output","-o"],description:"Render output using given FORMAT. Valid options are 'json' or 'yaml'",args:{name:"format",description:"Format",suggestions:["json","yaml"]}}]},{name:"delete",description:"Delete a virtual network"},{name:"update",description:"Update a virtual network",options:[{name:["--name","-n"],description:"The new name for the virtual network",args:{name:"value",description:"Name"}},{name:["--comment","-c"],description:"A new comment describing the purpose of the virtual network",args:{name:"value",description:"Comment"}},{name:["--default","-d"],description:"The virtual network becomes the default one for the account. This means that all operations that omit a virtual network will now implicitly be using this virtual network (i.e., the default one) such as new IP routes that are created. When this flag is not set, the virtual network will not become the default one in the account. (default: false)"}]}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},{name:"run",description:"Proxy a local web server by running the given tunnel",options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file in YAML",generators:(0,O.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Path to the certificate",template:["filepaths"]}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Autoupdate frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Listen address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"Application's PID"}},{name:"--loglevel",description:'Application logging level {debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) {debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"File",template:"filepaths"}},{name:["--force","-f"],description:"By default, if a tunnel is currently being run from a cloudflared, you can't simultaneously rerun it again from a second cloudflared. The --force flag lets you overwrite the previous tunnel. If you want to use a single hostname with multiple tunnels, you can do so with Cloudflare's Load Balancer product. (default: false)"},{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Filepath",template:"filepaths"}},{name:"--credentials-contents",description:"Contents of the tunnel credentials JSON file to use. When provided along with credentials-file, this will take precedence. [$TUNNEL_CRED_CONTENTS]",args:{name:"value",description:"Contents of the tunnel credentials JSON"}},{name:["--features","-F"],description:"Opt into various features that are still being developed or tested. (accepts multiple inputs)",args:{name:"value",description:"Features"}},{name:"--token",description:"The Tunnel token. When provided along with credentials, this will take precedence. [$TUNNEL_TOKEN]",args:{name:"value",description:"Tunnel token"}},{name:"--url",description:'Connect to the local webserver at URL. (default: "http://localhost:8080") [$TUNNEL_URL]',args:{name:"URL",description:"Url"}},{name:"--hello-world",description:"Run Hello World Server (default: false) [$TUNNEL_HELLO_WORLD]"},{name:"--socks5",description:"Specify if this tunnel is running as a SOCK5 Server This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false) [$TUNNEL_SOCKS]",dependsOn:["--url"]},{name:"--proxy-connect-timeout",description:"HTTP proxy timeout for establishing a new connection This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 30s)",dependsOn:["--url"]},{name:"--proxy-tls-timeout",description:"HTTP proxy timeout for completing a TLS handshake This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 10s)",dependsOn:["--url"]},{name:"--proxy-tcp-keepalive",description:"HTTP proxy TCP keepalive duration This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 30s)",dependsOn:["--url"]},{name:"--proxy-no-happy-eyeballs",description:'HTTP proxy should disable "happy eyeballs" for IPv4/v6 fallback This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false)',dependsOn:["--url"]},{name:"--proxy-keepalive-connections",description:"HTTP proxy maximum keepalive connection pool size This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 100)",dependsOn:["--url"]},{name:"--proxy-keepalive-timeout",description:"HTTP proxy timeout for closing an idle connection This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 1m30s)",dependsOn:["--url"]},{name:"--proxy-connection-timeout",description:"DEPRECATED. No longer has any effect. (default: 1m30s)",deprecated:!0},{name:"--proxy-expect-continue-timeout",description:"DEPRECATED. No longer has any effect. (default: 1m30s)",deprecated:!0},{name:"--http-host-header",description:"Sets the HTTP Host header for the local webserver. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress [$TUNNEL_HTTP_HOST_HEADER]",dependsOn:["--url"]},{name:"--origin-server-name",description:"Hostname on the origin server certificate. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress [$TUNNEL_ORIGIN_SERVER_NAME]",dependsOn:["--url"]},{name:"--unix-socket",description:"Path to unix socket to use instead of --url [$TUNNEL_UNIX_SOCKET]",args:{name:"value",description:"Unix socket path",template:"filepaths"}},{name:"--origin-ca-pool",description:"Path to the CA for the certificate of your origin. This option should be used only if your certificate is not signed by Cloudflare. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress [$TUNNEL_ORIGIN_CA_POOL]",dependsOn:["--url"]},{name:"--no-tls-verify",description:"Disables TLS verification of the certificate presented by your origin. Will allow any certificate from the origin to be accepted. Note: The connection from your machine to Cloudflare's Edge is still encrypted. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false) [$NO_TLS_VERIFY]",dependsOn:["--url"]},{name:"--no-chunked-encoding",description:"Disables chunked transfer encoding; useful if you are running a WSGI server. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false) [$TUNNEL_NO_CHUNKED_ENCODING]",dependsOn:["--url"]},{name:"--bastion",description:"Runs as jump host (default: false) [$TUNNEL_BASTION]"},{name:"--proxy-address",description:'Listen address for the proxy. (default: "127.0.0.1") [$TUNNEL_PROXY_ADDRESS]',args:{name:"value",description:"Address"}},{name:"--proxy-port",description:"Listen port for the proxy. (default: 0) [$TUNNEL_PROXY_PORT]",args:{name:"value",description:"Address"}}]},{name:"list",description:"Cloudflared tunnel list will display all active tunnels, their created time and associated connections",options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,O.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate path",template:"filepaths"}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"PID"}},{name:"--loglevel",description:'Application logging level { value: debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) { value: debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Folder",template:["folders"]}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Name"}},{name:["--output","-o"],description:"Render output using given FORMAT. Valid options are 'json' or 'yaml'",args:{name:"FORMAT",description:"Format",suggestions:["json","yaml"]}},{name:["--show-deleted","-d"],description:"Include deleted tunnels in the list (default: false)"},{name:["--name","-n"],description:"List tunnels with the given NAME",args:{name:"NAME",description:"Name"}},{name:["--name-prefix","--np"],description:"List tunnels that start with the give NAME prefix",args:{name:"NAME",description:"Name prefix"}},{name:["--exclude-name-prefix","--enp"],description:"List tunnels whose NAME does not start with the given prefix",args:{name:"NAME",description:"Prefix"}},{name:["--when","-w"],description:"List tunnels that are active at the given TIME in RFC3339 format (default: current time, 2022-04-07T20:03:58+01:00)",args:{name:"TIME",description:"Time in RFC3339 format"}},{name:["--id","-i"],description:"List tunnel by ID",args:{name:"ID",description:"Id"}},{name:["--show-recently-disconnected","--rd"],description:"Include connections that have recently disconnected in the list (default: false)"},{name:"--sort-by",description:'Sorts the list of tunnels by the given field. Valid options are { value: name, id, createdAt, deletedAt, numConnections} (default: "name") [$TUNNEL_LIST_SORT_BY]',args:{name:"value",description:"Field",suggestions:["name","id","createdAt","deletedAt","numConnections"]}},{name:"--invert-sort",description:"Inverts the sort order of the tunnel list. (default: false) [$TUNNEL_LIST_INVERT_SORT]"}]},{name:"info",description:"Cloudflared tunnel info displays details about the active connectors for a given tunnel (identified by name or uuid)",options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,O.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate path",template:"filepaths"}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"PID"}},{name:"--loglevel",description:'Application logging level { value: debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) { value: debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Folder",template:["folders"]}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Name"}},{name:["--output","-o"],description:"Render output using given FORMAT. Valid options are 'json' or 'yaml'",args:{name:"FORMAT",description:"Format",suggestions:["json","yaml"]}},{name:["--show-recently-disconnected","--rd"],description:"Include connections that have recently disconnected in the list (default: false)"},{name:"--sort-by",description:'Sorts the list of tunnels by the given field. Valid options are { value: name, id, createdAt, deletedAt, numConnections} (default: "name") [$TUNNEL_LIST_SORT_BY]',args:{name:"value",description:"Field",suggestions:["name","id","createdAt","deletedAt","numConnections"]}},{name:"--invert-sort",description:"Inverts the sort order of the tunnel list. (default: false) [$TUNNEL_LIST_INVERT_SORT]"}]},{name:"delete",description:"Cloudflared tunnel delete will delete tunnels with the given tunnel UUIDs or names. A tunnel cannot be deleted if it has active connections. To delete the tunnel unconditionally, use -f flag",options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,O.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate path",template:"filepaths"}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"PID"}},{name:"--loglevel",description:'Application logging level { value: debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) { value: debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Folder",template:["folders"]}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Name"}},{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Path",template:["filepaths"]}},{name:["--force","-f"],description:"Cleans up any stale connections before the tunnel is deleted. cloudflared will not delete a tunnel with connections without this flag. (default: false) [$TUNNEL_RUN_FORCE_OVERWRITE]"}],args:{name:"TUNNEL",description:"Tunnel"}},{name:"cleanup",description:"Delete connections for tunnels with the given UUIDs or names",options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,O.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate path",template:"filepaths"}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"PID"}},{name:"--loglevel",description:'Application logging level { value: debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) { value: debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Folder",template:["folders"]}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Name"}},{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Path",template:["filepaths"]}},{name:["--force","-f"],description:"Cleans up any stale connections before the tunnel is deleted. cloudflared will not delete a tunnel with connections without this flag. (default: false) [$TUNNEL_RUN_FORCE_OVERWRITE]"}],args:{name:"TUNNEL",description:"Tunnel"}},{name:"token",description:"Fetch the credentials token for an existing tunnel (by name or UUID) that allows to run it",options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,O.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate path",template:"filepaths"}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"PID"}},{name:"--loglevel",description:'Application logging level { value: debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) { value: debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Folder",template:["folders"]}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Name"}},{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Path",template:["filepaths"]}},{name:["--force","-f"],description:"Cleans up any stale connections before the tunnel is deleted. cloudflared will not delete a tunnel with connections without this flag. (default: false) [$TUNNEL_RUN_FORCE_OVERWRITE]"}],args:{name:"TUNNEL",description:"Tunnel"}},{name:["help","h"],description:"Shows a list of commands or help for one command"}],options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,O.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate path",template:"filepaths"}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"PID"}},{name:"--url",description:'Connect to the local webserver at URL. (default: "http://localhost:8080") [$TUNNEL_URL]',args:{name:"URL",description:"Url"}},{name:"--hello-world",description:"Run Hello World Server (default: false) [$TUNNEL_HELLO_WORLD]"},{name:"--socks5",description:"Specify if this tunnel is running as a SOCK5 Server This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false) [$TUNNEL_SOCKS]",dependsOn:["--url"]},{name:"--proxy-connect-timeout",description:"HTTP proxy timeout for establishing a new connection This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 30s)",dependsOn:["--url"]},{name:"--proxy-tls-timeout",description:"HTTP proxy timeout for completing a TLS handshake This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 10s)",dependsOn:["--url"]},{name:"--proxy-tcp-keepalive",description:"HTTP proxy TCP keepalive duration This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 30s)",dependsOn:["--url"]},{name:"--proxy-no-happy-eyeballs",description:'HTTP proxy should disable "happy eyeballs" for IPv4/v6 fallback This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false)',dependsOn:["--url"]},{name:"--proxy-keepalive-connections",description:"HTTP proxy maximum keepalive connection pool size This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 100)",dependsOn:["--url"]},{name:"--proxy-keepalive-timeout",description:"HTTP proxy timeout for closing an idle connection This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 1m30s)",dependsOn:["--url"]},{name:"--proxy-connection-timeout",description:"DEPRECATED. No longer has any effect. (default: 1m30s)",deprecated:!0},{name:"--proxy-expect-continue-timeout",description:"DEPRECATED. No longer has any effect. (default: 1m30s)",deprecated:!0},{name:"--http-host-header",description:"Sets the HTTP Host header for the local webserver. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress [$TUNNEL_HTTP_HOST_HEADER]",dependsOn:["--url"]},{name:"--origin-server-name",description:"Hostname on the origin server certificate. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress [$TUNNEL_ORIGIN_SERVER_NAME]",dependsOn:["--url"]},{name:"--unix-socket",description:"Path to unix socket to use instead of --url [$TUNNEL_UNIX_SOCKET]",args:{name:"value",description:"Unix socket",template:"filepaths"}},{name:"--origin-ca-pool",description:"Path to the CA for the certificate of your origin. This option should be used only if your certificate is not signed by Cloudflare. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress [$TUNNEL_ORIGIN_CA_POOL]",dependsOn:["--url"]},{name:"--no-tls-verify",description:"Disables TLS verification of the certificate presented by your origin. Will allow any certificate from the origin to be accepted. Note: The connection from your machine to Cloudflare's Edge is still encrypted. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false) [$NO_TLS_VERIFY]",dependsOn:["--url"]},{name:"--no-chunked-encoding",description:"Disables chunked transfer encoding; useful if you are running a WSGI server. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false) [$TUNNEL_NO_CHUNKED_ENCODING]",dependsOn:["--url"]},{name:"--bastion",description:"Runs as jump host (default: false) [$TUNNEL_BASTION]"},{name:"--proxy-address",description:'Listen address for the proxy. (default: "127.0.0.1") [$TUNNEL_PROXY_ADDRESS]',args:{name:"value",description:"Address"}},{name:"--proxy-port",description:"Listen port for the proxy. (default: 0) [$TUNNEL_PROXY_PORT]",args:{name:"value",description:"Address"}},{name:"--loglevel",description:'Application logging level { value: debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) { value: debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Folder",template:["folders"]}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Name"}},{name:"--proxy-dns",description:"Run a DNS over HTTPS proxy server. (default: false) [$TUNNEL_DNS]"},{name:"--proxy-dns-port",description:"Listen on given port for the DNS over HTTPS proxy server. (default: 53) [$TUNNEL_DNS_PORT]",args:{name:"value",description:"Port"}},{name:"--proxy-dns-address",description:'Listen address for the DNS over HTTPS proxy server. (default: "localhost") [$TUNNEL_DNS_ADDRESS]',args:{name:"value",description:"Listen address"}},{name:"--proxy-dns-upstream",description:'Upstream endpoint URL, you can specify multiple endpoints for redundancy. (default: "https://1.1.1.1/dns-query", "https://1.0.0.1/dns-query") (accepts multiple inputs) [$TUNNEL_DNS_UPSTREAM]',args:{name:"value",description:"Upstream endpoint",isVariadic:!0}},{name:"--proxy-dns-max-upstream-conns",description:"Maximum concurrent connections to upstream. Setting to 0 means unlimited. (default: 5) [$TUNNEL_DNS_MAX_UPSTREAM_CONNS]",args:{name:"URL",description:"Max concurrent connections"}},{name:"--proxy-dns-bootstrap",description:'Bootstrap endpoint URL, you can specify multiple endpoints for redundancy. (default: "https://162.159.36.1/dns-query", "https://162.159.46.1/dns-query", "https://[2606:4700:4700::1111]/dns-query", "https://[2606:4700:4700::1001]/dns-query") (accepts multiple inputs) [$TUNNEL_DNS_BOOTSTRAP]',args:{name:"value",description:"Bootstrap endpoint",isVariadic:!0}},{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Path",template:["filepaths"]}},{name:"--region",description:"Cloudflare Edge region to connect to. Omit or set to empty to connect to the global region. [$TUNNEL_REGION]",args:{name:"value",description:"Region"}},{name:"--hostname",description:"Set a hostname on a Cloudflare zone to route traffic through this tunnel. [$TUNNEL_HOSTNAME]",args:{name:"value",description:"Hostname"}},{name:"--lb-pool",description:"The name of a (new/existing) load balancing pool to add this origin to. [$TUNNEL_LB_POOL]",args:{name:"value",description:"Pool name"}},{name:"--metrics-update-freq",description:"Frequency to update tunnel metrics (default: 5s) [$TUNNEL_METRICS_UPDATE_FREQ]",args:{name:"value",description:"Frequency"}},{name:"--tag",description:"Custom tags used to identify this tunnel, in format KEY=VALUE. Multiple tags may be specified (accepts multiple inputs) [$TUNNEL_TAG]",args:{name:"KEY",description:"Tag",isVariadic:!0}},{name:"--retries",description:"Maximum number of retries for connection/protocol errors. (default: 5) [$TUNNEL_RETRIES]",args:{name:"value",description:"Max retries"}},{name:"--grace-period",description:"When cloudflared receives SIGINT/SIGTERM it will stop accepting new requests, wait for in-progress requests to terminate, then shutdown. Waiting for in-progress requests will timeout after this grace period, or when a second SIGTERM/SIGINT is received. (default: 30s) [$TUNNEL_GRACE_PERIOD]",args:{name:"value",description:"Time (s)"}},{name:"--compression-quality",description:"(beta) Use cross-stream compression instead HTTP compression. 0-off, 1-low, 2-medium, >=3-high. (default: 0) [$TUNNEL_COMPRESSION_LEVEL]",args:{name:"value",description:"Compression quality",suggestions:[{name:"0",description:"Off"},{name:"1",description:"Low"},{name:"3",description:"High"}]}},{name:["--name","-n"],description:"Stable name to identify the tunnel. Using this flag will create, route and run a tunnel. For production usage, execute each command separately [$TUNNEL_NAME]",args:{name:"value",description:"Name"}},{name:"--ui",description:"Launch tunnel UI. Tunnel logs are scrollable via 'j', 'k', or arrow keys. (default: false)"},{name:["--overwrite-dns","-f"],description:"Overwrites existing DNS records with this hostname (default: false) [$TUNNEL_FORCE_PROVISIONING_DNS]"}],args:{name:"command options",isOptional:!0}},Ae={name:"cloudflared",description:"Cloudflared connects your machine or user identity to Cloudflare's global network",subcommands:[_e,Oe,Re,Ue,Se,be,Ie],options:[{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Credentials path",template:"filepaths"}},{name:"--region",description:"Cloudflare Edge region to connect to. Omit or set to empty to connect to the global region. [$TUNNEL_REGION]",args:{name:"value",description:"Region"}},{name:["--overwrite-dns","-f"],description:"Overwrites existing DNS records with this hostname (default: false) [$TUNNEL_FORCE_PROVISIONING_DNS]"},{name:["--help","-h"],description:"Show help for cloudflared",isPersistent:!0}]},ke=Ae;export{ke as default};
1
+ var Z=Object.create;var G=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var U=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var oe=(e,n,t,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of ne(n))!ie.call(e,o)&&o!==t&&G(e,o,{get:()=>n[o],enumerable:!(i=ee(n,o))||i.enumerable});return e};var re=(e,n,t)=>(t=e!=null?Z(te(e)):{},oe(n||!e||!e.__esModule?G(t,"default",{value:e,enumerable:!0}):t,e));var M=U(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.shellExpand=R.ensureTrailingSlash=void 0;var ae=e=>e.endsWith("/")?e:`${e}/`;R.ensureTrailingSlash=ae;var se=(e,n)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",n):e,le=(e,n)=>e.replace(/\$([A-Za-z0-9_]+)/g,o=>{var r;let s=o.slice(1);return(r=n[s])!==null&&r!==void 0?r:o}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(o,r,s)=>{var d,c;return(c=(d=n[r])!==null&&d!==void 0?d:s)!==null&&c!==void 0?c:o}),de=(e,n)=>{var t;let{environmentVariables:i}=n;return le(se(e,(t=i?.HOME)!==null&&t!==void 0?t:"~"),i)};R.shellExpand=de});var W=U(T=>{"use strict";var ce=T&&T.__awaiter||function(e,n,t,i){function o(r){return r instanceof t?r:new t(function(s){s(r)})}return new(t||(t=Promise))(function(r,s){function d(a){try{l(i.next(a))}catch(u){s(u)}}function c(a){try{l(i.throw(a))}catch(u){s(u)}}function l(a){a.done?r(a.value):o(a.value).then(d,c)}l((i=i.apply(e,n||[])).next())})};Object.defineProperty(T,"__esModule",{value:!0});T.filepaths=T.folders=T.getCurrentInsertedDirectory=void 0;T.sortFilesAlphabetically=H;var P=M();function H(e,n=[]){let t=n.map(o=>o.toLowerCase()),i=e.filter(o=>!t.includes(o.toLowerCase()));return[...i.filter(o=>!o.startsWith(".")).sort((o,r)=>o.localeCompare(r)),...i.filter(o=>o.startsWith(".")).sort((o,r)=>o.localeCompare(r)),"../"]}var ue=(e,n,t)=>{if(e===null)return"/";let i=(0,P.shellExpand)(n,t),o=i.slice(0,i.lastIndexOf("/")+1);return o===""?(0,P.ensureTrailingSlash)(e):o.startsWith("/")?o:`${(0,P.ensureTrailingSlash)(e)}${o}`};T.getCurrentInsertedDirectory=ue;function C(e={}){let{extensions:n=[],equals:t=[],matches:i,filterFolders:o=!1,editFileSuggestions:r,editFolderSuggestions:s,rootDirectory:d,showFolders:c="always"}=e,l=new Set(n),a=new Set(t),u=()=>n.length>0||t.length>0||i,h=(f=[])=>u()?f.filter(({name:g="",type:N})=>{if(!o&&N==="folder"||a.has(g)||i&&g.match(i))return!0;let[,...p]=g.split(".");if(p.length>=1){let v=p.length-1,E=p[v];do{if(l.has(E))return!0;v-=1,E=[p[v],E].join(".")}while(v>=0)}return!1}):f,L=(f=[])=>!r&&!s?f:f.map(g=>Object.assign(Object.assign({},g),(g.type==="file"?r:s)||{}));return{trigger:(f,g)=>{let N=f.lastIndexOf("/"),p=g.lastIndexOf("/");return N!==p?!0:N===-1&&p===-1?!1:f.slice(0,N)!==g.slice(0,p)},getQueryTerm:f=>f.slice(f.lastIndexOf("/")+1),custom:(f,g,N)=>ce(this,void 0,void 0,function*(){var p;let{isDangerous:v,currentWorkingDirectory:E,searchTerm:m}=N,w=(p=(0,T.getCurrentInsertedDirectory)(d??E,m,N))!==null&&p!==void 0?p:"/";try{let F=yield g({command:"ls",args:["-1ApL"],cwd:w}),Q=H(F.stdout.split(`
2
+ `),[".DS_Store"]),V=[];for(let I of Q)if(I){let A=I.endsWith("/")?"folders":"filepaths";(A==="filepaths"&&c!=="only"||A==="folders"&&c!=="never")&&V.push({type:A==="filepaths"?"file":"folder",name:I,insertValue:I,isDangerous:v,context:{templateType:A}})}return L(h(V))}catch{return[]}})}}T.folders=Object.assign(()=>C({showFolders:"only"}),Object.freeze(C({showFolders:"only"})));T.filepaths=Object.assign(C,Object.freeze(C()))});var K=U(O=>{"use strict";var S=O&&O.__awaiter||function(e,n,t,i){function o(r){return r instanceof t?r:new t(function(s){s(r)})}return new(t||(t=Promise))(function(r,s){function d(a){try{l(i.next(a))}catch(u){s(u)}}function c(a){try{l(i.throw(a))}catch(u){s(u)}}function l(a){a.done?r(a.value):o(a.value).then(d,c)}l((i=i.apply(e,n||[])).next())})};Object.defineProperty(O,"__esModule",{value:!0});O.valueList=pe;O.keyValue=fe;O.keyValueList=me;var j=new Map;function x(e,n){return e.length===0?n:n.map(t=>t.insertValue?t:Object.assign(Object.assign({},t),{insertValue:t.name+e}))}function Y(e,n,t){return S(this,void 0,void 0,function*(){if(typeof e=="function"){let i=yield e(...t);return x(n,i)}if(typeof e[0]=="string"){let i=e.map(o=>({name:o}));return x(n,i)}return x(n,e)})}function k(e,n,t,i){return S(this,void 0,void 0,function*(){if(t||Array.isArray(e)){let o=j.get(e);return o===void 0&&(o=yield Y(e,n,i),j.set(e,o)),o}return Y(e,n,i)})}function B(e,n){return typeof n=="string"?e&&n==="keys"||!e&&n==="values":n}function $(e,...n){return Math.max(...n.map(t=>e.lastIndexOf(t)))}function q(e,n){let t=new Set(e);return n.filter(i=>{var o;return typeof i.name=="string"?!t.has(i.name):!(!((o=i.name)===null||o===void 0)&&o.some(r=>t.has(r)))})}function pe({delimiter:e=",",values:n=[],cache:t=!1,insertDelimiter:i=!1,allowRepeatedValues:o=!1}){return{trigger:(r,s)=>r.lastIndexOf(e)!==s.lastIndexOf(e),getQueryTerm:r=>r.slice(r.lastIndexOf(e)+e.length),custom:(...r)=>S(this,void 0,void 0,function*(){var s;let d=yield k(n,i?e:"",t,r);if(o)return d;let[c]=r,l=(s=c[c.length-1])===null||s===void 0?void 0:s.split(e);return q(l,d)})}}function fe({separator:e="=",keys:n=[],values:t=[],cache:i=!1,insertSeparator:o=!0}){return{trigger:(r,s)=>r.indexOf(e)!==s.indexOf(e),getQueryTerm:r=>r.slice(r.indexOf(e)+1),custom:(...r)=>S(this,void 0,void 0,function*(){let[s]=r,c=!s[s.length-1].includes(e),l=c?n:t,a=B(c,i);return k(l,c&&o?e:"",a,r)})}}function me({separator:e="=",delimiter:n=",",keys:t=[],values:i=[],cache:o=!1,insertSeparator:r=!0,insertDelimiter:s=!1,allowRepeatedKeys:d=!1,allowRepeatedValues:c=!0}){return{trigger:(l,a)=>{let u=$(l,e,n),h=$(a,e,n);return u!==h},getQueryTerm:l=>{let a=$(l,e,n);return l.slice(a+1)},custom:(...l)=>S(this,void 0,void 0,function*(){let[a]=l,u=a[a.length-1],h=$(u,e,n),L=h===-1||u.slice(h,h+e.length)!==e,f=L?t:i,g=B(L,o),p=yield k(f,L?r?e:"":s?n:"",g,l);if(L){if(d)return p;let E=u.split(n).map(m=>m.slice(0,m.indexOf(e)));return q(E,p)}if(c)return p;let v=u.split(n).map(E=>E.slice(E.indexOf(e)+e.length));return q(v,p)})}}});var X=U(b=>{"use strict";var ge=b&&b.__awaiter||function(e,n,t,i){function o(r){return r instanceof t?r:new t(function(s){s(r)})}return new(t||(t=Promise))(function(r,s){function d(a){try{l(i.next(a))}catch(u){s(u)}}function c(a){try{l(i.throw(a))}catch(u){s(u)}}function l(a){a.done?r(a.value):o(a.value).then(d,c)}l((i=i.apply(e,n||[])).next())})};Object.defineProperty(b,"__esModule",{value:!0});b.ai=Ne;var he=4097,ye=4,ve=.8,Te=he*ye*ve;function Ne({name:e,prompt:n,message:t,postProcess:i,temperature:o,splitOn:r}){return{scriptTimeout:15e3,custom:(s,d,c)=>ge(this,void 0,void 0,function*(){var l,a;let u=yield d({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(u.stdout))return[];let h=typeof n=="function"?yield n({tokens:s,executeCommand:d,generatorContext:c}):n,L=typeof t=="function"?yield t({tokens:s,executeCommand:d,generatorContext:c}):t;if(L===null||L.length===0)return console.warn("No message provided to AI generator"),[];let f=Te-((l=h?.length)!==null&&l!==void 0?l:0),g={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...h?[{role:"system",content:h}]:[],{role:"user",content:L.slice(0,f)}],temperature:o},N=JSON.stringify(g),p=yield d({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",N]}),v=JSON.parse(p.stdout);return(a=v?.choices.map(m=>{var w;return(w=m?.message)===null||w===void 0?void 0:w.content}).filter(m=>typeof m=="string").flatMap(m=>r?m.split(r).filter(w=>w.trim().length>0):[m]).map(m=>{if(i)return i(m);let w=m.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:w,insertValue:`'${w}'`,description:"Generated by Fig AI"}}))!==null&&a!==void 0?a:[]})}}});var J=U(y=>{"use strict";var Ee=y&&y.__createBinding||(Object.create?function(e,n,t,i){i===void 0&&(i=t);var o=Object.getOwnPropertyDescriptor(n,t);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,i,o)}:function(e,n,t,i){i===void 0&&(i=t),e[i]=n[t]}),Le=y&&y.__exportStar||function(e,n){for(var t in e)t!=="default"&&!Object.prototype.hasOwnProperty.call(n,t)&&Ee(n,e,t)};Object.defineProperty(y,"__esModule",{value:!0});y.ai=y.folders=y.filepaths=void 0;var z=W();Object.defineProperty(y,"filepaths",{enumerable:!0,get:function(){return z.filepaths}});Object.defineProperty(y,"folders",{enumerable:!0,get:function(){return z.folders}});Le(K(),y);var we=X();Object.defineProperty(y,"ai",{enumerable:!0,get:function(){return we.ai}})});var _=re(J(),1),D=[{name:["--hostname","--tunnel-host","-T"],description:"Specify the hostname of your application",args:{name:"value",description:"Hostname"},isRequired:!0},{name:"--destination",description:"Specify the destination address of your SSH server",args:{name:"value",description:"Address of SSH server"},isRequired:!0},{name:["--url","--listener","-L"],description:"Specify the host:port to forward data to Cloudflare edge",args:{name:"value",description:"Host:port to forward data to Cloudflare edge"},isRequired:!0},{name:["--service-token-id","--id"],description:"Specify an Access service token ID you wish to use. [$TUNNEL_SERVICE_TOKEN_ID]",args:{name:"value",description:"Access service token ID"},isRequired:!0},{name:["--service-token-secret","--secret"],description:"Specify an Access service token secret you wish to use. [$TUNNEL_SERVICE_TOKEN_SECRET]",args:{name:"value",description:"Access service token secret"},isRequired:!0},{name:["--log-directory","--logfile"],description:"Save application log to this directory for reporting issues",args:{name:"value",description:"Directory",template:["folders"]},isRequired:!0},{name:["--log-level","--loglevel"],description:"Application logging level {debug, info, warn, error, fatal}",args:{name:"value",description:"Directory",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]},isRequired:!0}],_e={name:"update",description:"Update the agent if a new version exists",options:[{name:"--beta",description:"Specify if you wish to update to the latest beta version (default: false)"},{name:"--version",description:"Specify a version you wish to upgrade or downgrade to",args:{name:"value"}}],args:{name:"arguments",isVariadic:!0,isOptional:!0}},Oe={name:"version",description:"Print the version",args:{name:"arguments",isVariadic:!0,isOptional:!0}},Re={name:"proxy-dns",description:"Run a DNS over HTTPS proxy server",options:[{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value"}},{name:"--address",description:'Listen address for the DNS over HTTPS proxy server. (default: "localhost") [$TUNNEL_DNS_ADDRESS]',args:{name:"value",default:"localhost"}},{name:"--port",description:"Listen on given port for the DNS over HTTPS proxy server. (default: 53) [$TUNNEL_DNS_PORT]",args:{name:"value",default:"53"}},{name:"--upstream",description:'Upstream endpoint URL, you can specify multiple endpoints for redundancy. (default: "https://1.1.1.1/dns-query", "https://1.0.0.1/dns-query") (accepts multiple inputs) [$TUNNEL_DNS_UPSTREAM]',args:{name:"value",isVariadic:!0}},{name:"--bootstrap",description:'Bootstrap endpoint URL, you can specify multiple endpoints for redundancy. (default: "https://162.159.36.1/dns-query", "https://162.159.46.1/dns-query", "https://[2606:4700:4700::1111]/dns-query", "https://[2606:4700:4700::1001]/dns-query") (accepts multiple inputs) [$TUNNEL_DNS_BOOTSTRAP]',args:{name:"value",isVariadic:!0}},{name:"--max-upstream-conns",description:"Maximum concurrent connections to upstream. Setting to 0 means unlimited. (default: 5) [$TUNNEL_DNS_MAX_UPSTREAM_CONNS]",args:{name:"value",isVariadic:!0}}],args:{name:"command options",isOptional:!0}},Ue={name:"service",description:"Manages the cloudflared launch agent",subcommands:[{name:"install",description:"Install cloudflared as an user launch agent"},{name:"uninstall",description:"Uninstall the cloudflared launch agent"},{name:["help","h"],description:"Shows a list of commands or help for one command"}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},Se={name:"help",description:"Shows a list of commands or help for one command"},be={name:"access",description:"Cloudflare Access protects internal resources by securing, authenticating and monitoring access per-user and by application. With Cloudflare Access, only authenticated users with the required permissions are able to reach sensitive resources. The commands provided here allow you to interact with Access protected applications from the command line",subcommands:[{name:"login",description:"The login subcommand initiates an authentication flow with your identity provider. The subcommand will launch a browser. For headless systems, a url is provided. Once authenticated with your identity provider, the login command will generate a JSON Web Token (JWT) scoped to your identity, the application you intend to reach, and valid for a session duration set by your administrator. cloudflared stores the token in local storage",displayName:"login <url of access application>",args:{name:"url"}},{name:"curl",description:"Uninstall the cloudflared launch agent",options:[{name:["--allow-request","--ar"]}],args:[{name:"url"},{name:"curl args",isVariadic:!0}]},{name:"token",description:"The token subcommand produces a JWT which can be used to authenticate requests",displayName:"token -app=<url of access application>",options:[{name:"--app",requiresSeparator:!0,args:{name:"value",description:"Url of access application"},isRequired:!0}]},{name:"tcp",description:"The tcp subcommand sends data over a proxy to the Cloudflare edge",options:D},{name:"rdp",description:"The rdp subcommand sends data over a proxy to the Cloudflare edge",options:D},{name:"ssh",description:"The ssh subcommand sends data over a proxy to the Cloudflare edge",options:D},{name:"smb",description:"The smb subcommand sends data over a proxy to the Cloudflare edge",options:D},{name:"ssh-config",description:"Prints an example configuration ~/.ssh/config",options:[{name:"--hostname",description:"Specify the hostname of your application",args:{name:"value",description:"Hostname"},isRequired:!0},{name:"--short-lived-cert",description:"Specify if you wish to generate short lived certs. (default: false)"}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},{name:"ssh-gen",description:"Generates a short lived certificate for given hostname",options:[{name:"--hostname",description:"Specify the hostname of your application",args:{name:"value",description:"Hostname"},isRequired:!0}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},{name:["help","h"],description:"Shows a list of commands or help for one command"}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},Ie={name:"tunnel",description:"Use Cloudflare Tunnel to expose private services to the Internet or to Cloudflare connected private users",subcommands:[{name:"login",description:"Generate a configuration file with your login details"},{name:"create",description:'Creates a tunnel, registers it with Cloudflare edge and generates credential file used to run this tunnel. Use "cloudflared tunnel route" subcommand to map a DNS name to this tunnel and "cloudflared tunnel run" to start the connection',additionalSuggestions:["cloudflared tunnel [tunnel command options] create [subcommand options] NAME"],options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,_.filepaths)({extensions:["yml","yaml"]})},isRequired:!0},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate generated"},isRequired:!0},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"},isRequired:!0},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Adress"},isRequired:!0},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"Application PID"},isRequired:!0},{name:"--loglevel",description:'Application logging level {debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]},isRequired:!0},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) {debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]},isRequired:!0},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:["filepaths"]},isRequired:!0},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Directory",template:["folders"]},isRequired:!0},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Output file"},isRequired:!0},{name:["--output","-o"],description:"Render output using given FORMAT. Valid options are 'json' or 'yaml'",args:{name:"format",description:"Format",suggestions:["json","yaml"]}},{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Filepath",template:["filepaths","folders"]}},{name:["--secret","-s"],description:"Base64 encoded secret to set for the tunnel. The decoded secret must be at least 32 bytes long. If not specified, a random 32-byte secret will be generated. [$TUNNEL_CREATE_SECRET]",args:{name:"value",description:"Base 64 encoded secret"}}],args:{name:"name"}},{name:"route",description:"The route command defines how Cloudflare will proxy requests to this tunnel",subcommands:[{name:"dns",description:"Creates a DNS CNAME record hostname that points to the tunnel",options:[{name:["--overwrite-dns","-f"],description:"Overwrites existing DNS records with this hostname (default: false) [$TUNNEL_FORCE_PROVISIONING_DNS]"}],args:[{name:"tunnel",description:"Tunnel"},{name:"hostname",description:"Hostname"}]},{name:"lb",description:"Creates Load Balancer with an origin pool that points to the tunnel",args:[{name:"tunnel",description:"Tunnel"},{name:"hostname",description:"Hostname"},{name:"LB-POOL",description:"Load balancer pool"}]},{name:"ip",description:"Configure and query Cloudflare WARP routing to private IP networks made available through Cloudflare Tunnels",subcommands:[{name:"add",description:"Add a new network to the routing table reachable via a Tunnel",options:[{name:["--vnet","--vn"],description:"The ID or name of the virtual network to which the route is associated to",args:{name:"value",description:"Id or name"}}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},{name:["show","list"],description:"Shows your organization private routing table. You can use flags to filter the results",options:[{name:"--filter-is-deleted",description:"If false (default), only show non-deleted routes. If true, only show deleted routes. (default: false)",args:{name:"value",description:"Id or name"}},{name:"--filter-tunnel-id",description:"Show only routes with the given tunnel ID",args:{name:"value",description:"Id"}},{name:["--filter-network-is-subset-of","--nsub"],description:"Show only routes whose network is a subset of the given network",args:{name:"value",description:"Network"}},{name:["--filter-network-is-superset-of","--nsup"],description:"Show only routes whose network is a superset of the given network",args:{name:"value",description:"Network"}},{name:"--filter-comment-is",description:"Show only routes with this comment",args:{name:"value",description:"Comment"}},{name:"--filter-vnet-id",description:"Show only routes that are attached to the given virtual network ID",args:{name:"value",description:"Vnet id"}},{name:["--output","-o"],description:"Render output using given FORMAT. Valid options are 'json' or 'yaml'",args:{name:"format",description:"Format",suggestions:["json","yaml"]}}],args:{name:"flags",isOptional:!0,isVariadic:!0}},{name:"delete",description:"Delete a row from your organization's private routing table",options:[{name:["--vnet","--vn"],description:"The ID or name of the virtual network to which the route is associated to",args:{name:"value",description:"Id or name"}}],args:[{name:"flags",isOptional:!0,isVariadic:!0},{name:"CIDR"}]},{name:"get",description:"Check which row of the routing table matches a given IP",options:[{name:["--vnet","--vn"],description:"The ID or name of the virtual network to which the route is associated to",args:{name:"value",description:"Id or name"}}],args:[{name:"flags",isOptional:!0,isVariadic:!0},{name:"IP"}]}]}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},{name:"vnet",description:"Configure and query virtual networks to manage private IP routes with overlapping IPs",subcommands:[{name:"add",description:"Add a new virtual network to which IP routes can be attached",options:[{name:["--default","-d"],description:"The virtual network becomes the default one for the account. This means that all operations that omit a virtual network will now implicitly be using this virtual network (i.e., the default one) such as new IP routes that are created. When this flag is not set, the virtual network will not become the default one in the account. (default: false)"}]},{name:"list",description:"Lists the virtual networks based on the given filter flags",options:[{name:"--id",description:"List virtual networks with the given ID",args:{name:"ID",description:"Id"}},{name:"--name",description:"List virtual networks with the given NAME",args:{name:"NAME",description:"Name"}},{name:"--is-default",description:"If true, lists the virtual network that is the default one. If false, lists all non-default virtual networks for the account. If absent, all are included in the results regardless of their default status. (default: false)"},{name:"--show-deleted",description:"If false (default), only show non-deleted virtual networks. If true, only show deleted virtual networks. (default: false)"},{name:["--output","-o"],description:"Render output using given FORMAT. Valid options are 'json' or 'yaml'",args:{name:"format",description:"Format",suggestions:["json","yaml"]}}]},{name:"delete",description:"Delete a virtual network"},{name:"update",description:"Update a virtual network",options:[{name:["--name","-n"],description:"The new name for the virtual network",args:{name:"value",description:"Name"}},{name:["--comment","-c"],description:"A new comment describing the purpose of the virtual network",args:{name:"value",description:"Comment"}},{name:["--default","-d"],description:"The virtual network becomes the default one for the account. This means that all operations that omit a virtual network will now implicitly be using this virtual network (i.e., the default one) such as new IP routes that are created. When this flag is not set, the virtual network will not become the default one in the account. (default: false)"}]}],args:[{name:"command options",isOptional:!0},{name:"arguments",isVariadic:!0,isOptional:!0}]},{name:"run",description:"Proxy a local web server by running the given tunnel",options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file in YAML",generators:(0,_.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Path to the certificate",template:["filepaths"]}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Autoupdate frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Listen address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"Application's PID"}},{name:"--loglevel",description:'Application logging level {debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) {debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"File",template:"filepaths"}},{name:["--force","-f"],description:"By default, if a tunnel is currently being run from a cloudflared, you can't simultaneously rerun it again from a second cloudflared. The --force flag lets you overwrite the previous tunnel. If you want to use a single hostname with multiple tunnels, you can do so with Cloudflare's Load Balancer product. (default: false)"},{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Filepath",template:"filepaths"}},{name:"--credentials-contents",description:"Contents of the tunnel credentials JSON file to use. When provided along with credentials-file, this will take precedence. [$TUNNEL_CRED_CONTENTS]",args:{name:"value",description:"Contents of the tunnel credentials JSON"}},{name:["--features","-F"],description:"Opt into various features that are still being developed or tested. (accepts multiple inputs)",args:{name:"value",description:"Features"}},{name:"--token",description:"The Tunnel token. When provided along with credentials, this will take precedence. [$TUNNEL_TOKEN]",args:{name:"value",description:"Tunnel token"}},{name:"--url",description:'Connect to the local webserver at URL. (default: "http://localhost:8080") [$TUNNEL_URL]',args:{name:"URL",description:"Url"}},{name:"--hello-world",description:"Run Hello World Server (default: false) [$TUNNEL_HELLO_WORLD]"},{name:"--socks5",description:"Specify if this tunnel is running as a SOCK5 Server This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false) [$TUNNEL_SOCKS]",dependsOn:["--url"]},{name:"--proxy-connect-timeout",description:"HTTP proxy timeout for establishing a new connection This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 30s)",dependsOn:["--url"]},{name:"--proxy-tls-timeout",description:"HTTP proxy timeout for completing a TLS handshake This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 10s)",dependsOn:["--url"]},{name:"--proxy-tcp-keepalive",description:"HTTP proxy TCP keepalive duration This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 30s)",dependsOn:["--url"]},{name:"--proxy-no-happy-eyeballs",description:'HTTP proxy should disable "happy eyeballs" for IPv4/v6 fallback This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false)',dependsOn:["--url"]},{name:"--proxy-keepalive-connections",description:"HTTP proxy maximum keepalive connection pool size This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 100)",dependsOn:["--url"]},{name:"--proxy-keepalive-timeout",description:"HTTP proxy timeout for closing an idle connection This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 1m30s)",dependsOn:["--url"]},{name:"--proxy-connection-timeout",description:"DEPRECATED. No longer has any effect. (default: 1m30s)",deprecated:!0},{name:"--proxy-expect-continue-timeout",description:"DEPRECATED. No longer has any effect. (default: 1m30s)",deprecated:!0},{name:"--http-host-header",description:"Sets the HTTP Host header for the local webserver. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress [$TUNNEL_HTTP_HOST_HEADER]",dependsOn:["--url"]},{name:"--origin-server-name",description:"Hostname on the origin server certificate. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress [$TUNNEL_ORIGIN_SERVER_NAME]",dependsOn:["--url"]},{name:"--unix-socket",description:"Path to unix socket to use instead of --url [$TUNNEL_UNIX_SOCKET]",args:{name:"value",description:"Unix socket path",template:"filepaths"}},{name:"--origin-ca-pool",description:"Path to the CA for the certificate of your origin. This option should be used only if your certificate is not signed by Cloudflare. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress [$TUNNEL_ORIGIN_CA_POOL]",dependsOn:["--url"]},{name:"--no-tls-verify",description:"Disables TLS verification of the certificate presented by your origin. Will allow any certificate from the origin to be accepted. Note: The connection from your machine to Cloudflare's Edge is still encrypted. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false) [$NO_TLS_VERIFY]",dependsOn:["--url"]},{name:"--no-chunked-encoding",description:"Disables chunked transfer encoding; useful if you are running a WSGI server. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false) [$TUNNEL_NO_CHUNKED_ENCODING]",dependsOn:["--url"]},{name:"--bastion",description:"Runs as jump host (default: false) [$TUNNEL_BASTION]"},{name:"--proxy-address",description:'Listen address for the proxy. (default: "127.0.0.1") [$TUNNEL_PROXY_ADDRESS]',args:{name:"value",description:"Address"}},{name:"--proxy-port",description:"Listen port for the proxy. (default: 0) [$TUNNEL_PROXY_PORT]",args:{name:"value",description:"Address"}}]},{name:"list",description:"Cloudflared tunnel list will display all active tunnels, their created time and associated connections",options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,_.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate path",template:"filepaths"}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"PID"}},{name:"--loglevel",description:'Application logging level { value: debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) { value: debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Folder",template:["folders"]}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Name"}},{name:["--output","-o"],description:"Render output using given FORMAT. Valid options are 'json' or 'yaml'",args:{name:"FORMAT",description:"Format",suggestions:["json","yaml"]}},{name:["--show-deleted","-d"],description:"Include deleted tunnels in the list (default: false)"},{name:["--name","-n"],description:"List tunnels with the given NAME",args:{name:"NAME",description:"Name"}},{name:["--name-prefix","--np"],description:"List tunnels that start with the give NAME prefix",args:{name:"NAME",description:"Name prefix"}},{name:["--exclude-name-prefix","--enp"],description:"List tunnels whose NAME does not start with the given prefix",args:{name:"NAME",description:"Prefix"}},{name:["--when","-w"],description:"List tunnels that are active at the given TIME in RFC3339 format (default: current time, 2022-04-07T20:03:58+01:00)",args:{name:"TIME",description:"Time in RFC3339 format"}},{name:["--id","-i"],description:"List tunnel by ID",args:{name:"ID",description:"Id"}},{name:["--show-recently-disconnected","--rd"],description:"Include connections that have recently disconnected in the list (default: false)"},{name:"--sort-by",description:'Sorts the list of tunnels by the given field. Valid options are { value: name, id, createdAt, deletedAt, numConnections} (default: "name") [$TUNNEL_LIST_SORT_BY]',args:{name:"value",description:"Field",suggestions:["name","id","createdAt","deletedAt","numConnections"]}},{name:"--invert-sort",description:"Inverts the sort order of the tunnel list. (default: false) [$TUNNEL_LIST_INVERT_SORT]"}]},{name:"info",description:"Cloudflared tunnel info displays details about the active connectors for a given tunnel (identified by name or uuid)",options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,_.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate path",template:"filepaths"}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"PID"}},{name:"--loglevel",description:'Application logging level { value: debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) { value: debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Folder",template:["folders"]}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Name"}},{name:["--output","-o"],description:"Render output using given FORMAT. Valid options are 'json' or 'yaml'",args:{name:"FORMAT",description:"Format",suggestions:["json","yaml"]}},{name:["--show-recently-disconnected","--rd"],description:"Include connections that have recently disconnected in the list (default: false)"},{name:"--sort-by",description:'Sorts the list of tunnels by the given field. Valid options are { value: name, id, createdAt, deletedAt, numConnections} (default: "name") [$TUNNEL_LIST_SORT_BY]',args:{name:"value",description:"Field",suggestions:["name","id","createdAt","deletedAt","numConnections"]}},{name:"--invert-sort",description:"Inverts the sort order of the tunnel list. (default: false) [$TUNNEL_LIST_INVERT_SORT]"}]},{name:"delete",description:"Cloudflared tunnel delete will delete tunnels with the given tunnel UUIDs or names. A tunnel cannot be deleted if it has active connections. To delete the tunnel unconditionally, use -f flag",options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,_.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate path",template:"filepaths"}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"PID"}},{name:"--loglevel",description:'Application logging level { value: debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) { value: debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Folder",template:["folders"]}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Name"}},{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Path",template:["filepaths"]}},{name:["--force","-f"],description:"Cleans up any stale connections before the tunnel is deleted. cloudflared will not delete a tunnel with connections without this flag. (default: false) [$TUNNEL_RUN_FORCE_OVERWRITE]"}],args:{name:"TUNNEL",description:"Tunnel"}},{name:"cleanup",description:"Delete connections for tunnels with the given UUIDs or names",options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,_.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate path",template:"filepaths"}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"PID"}},{name:"--loglevel",description:'Application logging level { value: debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) { value: debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Folder",template:["folders"]}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Name"}},{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Path",template:["filepaths"]}},{name:["--force","-f"],description:"Cleans up any stale connections before the tunnel is deleted. cloudflared will not delete a tunnel with connections without this flag. (default: false) [$TUNNEL_RUN_FORCE_OVERWRITE]"}],args:{name:"TUNNEL",description:"Tunnel"}},{name:"token",description:"Fetch the credentials token for an existing tunnel (by name or UUID) that allows to run it",options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,_.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate path",template:"filepaths"}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"PID"}},{name:"--loglevel",description:'Application logging level { value: debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) { value: debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Folder",template:["folders"]}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Name"}},{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Path",template:["filepaths"]}},{name:["--force","-f"],description:"Cleans up any stale connections before the tunnel is deleted. cloudflared will not delete a tunnel with connections without this flag. (default: false) [$TUNNEL_RUN_FORCE_OVERWRITE]"}],args:{name:"TUNNEL",description:"Tunnel"}},{name:["help","h"],description:"Shows a list of commands or help for one command"}],options:[{name:"--config",description:'Specifies a config file in YAML format. (default: "/usr/local/etc/cloudflared/config.yml")',args:{name:"value",description:"Config file",generators:(0,_.filepaths)({extensions:["yml","yaml"]})}},{name:"--origincert",description:"Path to the certificate generated for your origin when you run cloudflared login. [$TUNNEL_ORIGIN_CERT]",args:{name:"value",description:"Certificate path",template:"filepaths"}},{name:"--autoupdate-freq",description:"Autoupdate frequency. Default is 24h0m0s. (default: 24h0m0s)",args:{name:"value",description:"Frequency"}},{name:"--no-autoupdate",description:"Disable periodic check for updates, restarting the server with the new version. (default: false) [$NO_AUTOUPDATE]"},{name:"--metrics",description:'Listen address for metrics reporting. (default: "localhost:") [$TUNNEL_METRICS]',args:{name:"value",description:"Address"}},{name:"--pidfile",description:"Write the application's PID to this file after first successful connection. [$TUNNEL_PIDFILE]",args:{name:"value",description:"PID"}},{name:"--url",description:'Connect to the local webserver at URL. (default: "http://localhost:8080") [$TUNNEL_URL]',args:{name:"URL",description:"Url"}},{name:"--hello-world",description:"Run Hello World Server (default: false) [$TUNNEL_HELLO_WORLD]"},{name:"--socks5",description:"Specify if this tunnel is running as a SOCK5 Server This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false) [$TUNNEL_SOCKS]",dependsOn:["--url"]},{name:"--proxy-connect-timeout",description:"HTTP proxy timeout for establishing a new connection This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 30s)",dependsOn:["--url"]},{name:"--proxy-tls-timeout",description:"HTTP proxy timeout for completing a TLS handshake This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 10s)",dependsOn:["--url"]},{name:"--proxy-tcp-keepalive",description:"HTTP proxy TCP keepalive duration This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 30s)",dependsOn:["--url"]},{name:"--proxy-no-happy-eyeballs",description:'HTTP proxy should disable "happy eyeballs" for IPv4/v6 fallback This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false)',dependsOn:["--url"]},{name:"--proxy-keepalive-connections",description:"HTTP proxy maximum keepalive connection pool size This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 100)",dependsOn:["--url"]},{name:"--proxy-keepalive-timeout",description:"HTTP proxy timeout for closing an idle connection This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: 1m30s)",dependsOn:["--url"]},{name:"--proxy-connection-timeout",description:"DEPRECATED. No longer has any effect. (default: 1m30s)",deprecated:!0},{name:"--proxy-expect-continue-timeout",description:"DEPRECATED. No longer has any effect. (default: 1m30s)",deprecated:!0},{name:"--http-host-header",description:"Sets the HTTP Host header for the local webserver. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress [$TUNNEL_HTTP_HOST_HEADER]",dependsOn:["--url"]},{name:"--origin-server-name",description:"Hostname on the origin server certificate. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress [$TUNNEL_ORIGIN_SERVER_NAME]",dependsOn:["--url"]},{name:"--unix-socket",description:"Path to unix socket to use instead of --url [$TUNNEL_UNIX_SOCKET]",args:{name:"value",description:"Unix socket",template:"filepaths"}},{name:"--origin-ca-pool",description:"Path to the CA for the certificate of your origin. This option should be used only if your certificate is not signed by Cloudflare. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress [$TUNNEL_ORIGIN_CA_POOL]",dependsOn:["--url"]},{name:"--no-tls-verify",description:"Disables TLS verification of the certificate presented by your origin. Will allow any certificate from the origin to be accepted. Note: The connection from your machine to Cloudflare's Edge is still encrypted. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false) [$NO_TLS_VERIFY]",dependsOn:["--url"]},{name:"--no-chunked-encoding",description:"Disables chunked transfer encoding; useful if you are running a WSGI server. This flag only takes effect if you define your origin with --url and if you do not use ingress rules. The recommended way is to rely on ingress rules and define this property under `originRequest` as per https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress (default: false) [$TUNNEL_NO_CHUNKED_ENCODING]",dependsOn:["--url"]},{name:"--bastion",description:"Runs as jump host (default: false) [$TUNNEL_BASTION]"},{name:"--proxy-address",description:'Listen address for the proxy. (default: "127.0.0.1") [$TUNNEL_PROXY_ADDRESS]',args:{name:"value",description:"Address"}},{name:"--proxy-port",description:"Listen port for the proxy. (default: 0) [$TUNNEL_PROXY_PORT]",args:{name:"value",description:"Address"}},{name:"--loglevel",description:'Application logging level { value: debug, info, warn, error, fatal}. At debug level cloudflared will log request URL, method, protocol, content length, as well as, all request and response headers. This can expose sensitive information in your logs. (default: "info") [$TUNNEL_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:["--transport-loglevel","--proto-loglevel"],description:'Transport logging level(previously called protocol logging level) { value: debug, info, warn, error, fatal} (default: "info") [$TUNNEL_PROTO_LOGLEVEL, $TUNNEL_TRANSPORT_LOGLEVEL]',args:{name:"value",description:"Logging level",suggestions:[{name:"debug"},{name:"info"},{name:"warn"},{name:"error"},{name:"fatal"}]}},{name:"--logfile",description:"Save application log to this file for reporting issues. [$TUNNEL_LOGFILE]",args:{name:"value",description:"File",template:"filepaths"}},{name:"--log-directory",description:"Save application log to this directory for reporting issues. [$TUNNEL_LOGDIRECTORY]",args:{name:"value",description:"Folder",template:["folders"]}},{name:"--trace-output",description:"Name of trace output file, generated when cloudflared stops. [$TUNNEL_TRACE_OUTPUT]",args:{name:"value",description:"Name"}},{name:"--proxy-dns",description:"Run a DNS over HTTPS proxy server. (default: false) [$TUNNEL_DNS]"},{name:"--proxy-dns-port",description:"Listen on given port for the DNS over HTTPS proxy server. (default: 53) [$TUNNEL_DNS_PORT]",args:{name:"value",description:"Port"}},{name:"--proxy-dns-address",description:'Listen address for the DNS over HTTPS proxy server. (default: "localhost") [$TUNNEL_DNS_ADDRESS]',args:{name:"value",description:"Listen address"}},{name:"--proxy-dns-upstream",description:'Upstream endpoint URL, you can specify multiple endpoints for redundancy. (default: "https://1.1.1.1/dns-query", "https://1.0.0.1/dns-query") (accepts multiple inputs) [$TUNNEL_DNS_UPSTREAM]',args:{name:"value",description:"Upstream endpoint",isVariadic:!0}},{name:"--proxy-dns-max-upstream-conns",description:"Maximum concurrent connections to upstream. Setting to 0 means unlimited. (default: 5) [$TUNNEL_DNS_MAX_UPSTREAM_CONNS]",args:{name:"URL",description:"Max concurrent connections"}},{name:"--proxy-dns-bootstrap",description:'Bootstrap endpoint URL, you can specify multiple endpoints for redundancy. (default: "https://162.159.36.1/dns-query", "https://162.159.46.1/dns-query", "https://[2606:4700:4700::1111]/dns-query", "https://[2606:4700:4700::1001]/dns-query") (accepts multiple inputs) [$TUNNEL_DNS_BOOTSTRAP]',args:{name:"value",description:"Bootstrap endpoint",isVariadic:!0}},{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Path",template:["filepaths"]}},{name:"--region",description:"Cloudflare Edge region to connect to. Omit or set to empty to connect to the global region. [$TUNNEL_REGION]",args:{name:"value",description:"Region"}},{name:"--hostname",description:"Set a hostname on a Cloudflare zone to route traffic through this tunnel. [$TUNNEL_HOSTNAME]",args:{name:"value",description:"Hostname"}},{name:"--lb-pool",description:"The name of a (new/existing) load balancing pool to add this origin to. [$TUNNEL_LB_POOL]",args:{name:"value",description:"Pool name"}},{name:"--metrics-update-freq",description:"Frequency to update tunnel metrics (default: 5s) [$TUNNEL_METRICS_UPDATE_FREQ]",args:{name:"value",description:"Frequency"}},{name:"--tag",description:"Custom tags used to identify this tunnel, in format KEY=VALUE. Multiple tags may be specified (accepts multiple inputs) [$TUNNEL_TAG]",args:{name:"KEY",description:"Tag",isVariadic:!0}},{name:"--retries",description:"Maximum number of retries for connection/protocol errors. (default: 5) [$TUNNEL_RETRIES]",args:{name:"value",description:"Max retries"}},{name:"--grace-period",description:"When cloudflared receives SIGINT/SIGTERM it will stop accepting new requests, wait for in-progress requests to terminate, then shutdown. Waiting for in-progress requests will timeout after this grace period, or when a second SIGTERM/SIGINT is received. (default: 30s) [$TUNNEL_GRACE_PERIOD]",args:{name:"value",description:"Time (s)"}},{name:"--compression-quality",description:"(beta) Use cross-stream compression instead HTTP compression. 0-off, 1-low, 2-medium, >=3-high. (default: 0) [$TUNNEL_COMPRESSION_LEVEL]",args:{name:"value",description:"Compression quality",suggestions:[{name:"0",description:"Off"},{name:"1",description:"Low"},{name:"3",description:"High"}]}},{name:["--name","-n"],description:"Stable name to identify the tunnel. Using this flag will create, route and run a tunnel. For production usage, execute each command separately [$TUNNEL_NAME]",args:{name:"value",description:"Name"}},{name:"--ui",description:"Launch tunnel UI. Tunnel logs are scrollable via 'j', 'k', or arrow keys. (default: false)"},{name:["--overwrite-dns","-f"],description:"Overwrites existing DNS records with this hostname (default: false) [$TUNNEL_FORCE_PROVISIONING_DNS]"}],args:{name:"command options",isOptional:!0}},Ae={name:"cloudflared",description:"Cloudflared connects your machine or user identity to Cloudflare's global network",subcommands:[_e,Oe,Re,Ue,Se,be,Ie],options:[{name:["--credentials-file","--cred-file"],description:"Filepath at which to read/write the tunnel credentials [$TUNNEL_CRED_FILE]",args:{name:"value",description:"Credentials path",template:"filepaths"}},{name:"--region",description:"Cloudflare Edge region to connect to. Omit or set to empty to connect to the global region. [$TUNNEL_REGION]",args:{name:"value",description:"Region"}},{name:["--overwrite-dns","-f"],description:"Overwrites existing DNS records with this hostname (default: false) [$TUNNEL_FORCE_PROVISIONING_DNS]"},{name:["--help","-h"],description:"Show help for cloudflared",isPersistent:!0}]},ke=Ae;export{ke as default};
package/build/coda.js CHANGED
@@ -1,3 +1,3 @@
1
- var ee=Object.create;var U=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames;var re=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var oe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ne(t))!ie.call(e,i)&&i!==n&&U(e,i,{get:()=>t[i],enumerable:!(r=te(t,i))||r.enumerable});return e};var se=(e,t,n)=>(n=e!=null?ee(re(e)):{},oe(t||!e||!e.__esModule?U(n,"default",{value:e,enumerable:!0}):n,e));var N=x(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.shellExpand=I.ensureTrailingSlash=void 0;var ae=e=>e.endsWith("/")?e:`${e}/`;I.ensureTrailingSlash=ae;var ce=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,le=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,i=>{var o;let a=i.slice(1);return(o=t[a])!==null&&o!==void 0?o:i}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(i,o,a)=>{var l,u;return(u=(l=t[o])!==null&&l!==void 0?l:a)!==null&&u!==void 0?u:i}),ue=(e,t)=>{var n;let{environmentVariables:r}=t;return le(ce(e,(n=r?.HOME)!==null&&n!==void 0?n:"~"),r)};I.shellExpand=ue});var $=x(y=>{"use strict";var de=y&&y.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(s){try{c(r.next(s))}catch(d){a(d)}}function u(s){try{c(r.throw(s))}catch(d){a(d)}}function c(s){s.done?o(s.value):i(s.value).then(l,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(y,"__esModule",{value:!0});y.filepaths=y.folders=y.getCurrentInsertedDirectory=y.sortFilesAlphabetically=void 0;var V=N();function W(e,t=[]){let n=t.map(i=>i.toLowerCase()),r=e.filter(i=>!n.includes(i.toLowerCase()));return[...r.filter(i=>!i.startsWith(".")).sort((i,o)=>i.localeCompare(o)),...r.filter(i=>i.startsWith(".")).sort((i,o)=>i.localeCompare(o)),"../"]}y.sortFilesAlphabetically=W;var fe=(e,t,n)=>{if(e===null)return"/";let r=(0,V.shellExpand)(t,n),i=r.slice(0,r.lastIndexOf("/")+1);return i===""?(0,V.ensureTrailingSlash)(e):i.startsWith("/")?i:`${(0,V.ensureTrailingSlash)(e)}${i}`};y.getCurrentInsertedDirectory=fe;function F(e={}){let{extensions:t=[],equals:n=[],matches:r,filterFolders:i=!1,editFileSuggestions:o,editFolderSuggestions:a,rootDirectory:l,showFolders:u="always"}=e,c=new Set(t),s=new Set(n),d=()=>t.length>0||n.length>0||r,g=(p=[])=>d()?p.filter(({name:m="",type:_})=>{if(!i&&_==="folder"||s.has(m)||r&&m.match(r))return!0;let[,...f]=m.split(".");if(f.length>=1){let b=f.length-1,O=f[b];do{if(c.has(O))return!0;b-=1,O=[f[b],O].join(".")}while(b>=0)}return!1}):p,S=(p=[])=>!o&&!a?p:p.map(m=>Object.assign(Object.assign({},m),(m.type==="file"?o:a)||{}));return{trigger:(p,m)=>{let _=p.lastIndexOf("/"),f=m.lastIndexOf("/");return _!==f?!0:_===-1&&f===-1?!1:p.slice(0,_)!==m.slice(0,f)},getQueryTerm:p=>p.slice(p.lastIndexOf("/")+1),custom:(p,m,_)=>de(this,void 0,void 0,function*(){var f;let{isDangerous:b,currentWorkingDirectory:O,searchTerm:h}=_,k=(f=(0,y.getCurrentInsertedDirectory)(l??O,h,_))!==null&&f!==void 0?f:"/";try{let R=yield m({command:"ls",args:["-1ApL"],cwd:k}),Z=W(R.stdout.split(`
2
- `),[".DS_Store"]),q=[];for(let j of Z)if(j){let L=j.endsWith("/")?"folders":"filepaths";(L==="filepaths"&&u!=="only"||L==="folders"&&u!=="never")&&q.push({type:L==="filepaths"?"file":"folder",name:j,insertValue:j,isDangerous:b,context:{templateType:L}})}return S(g(q))}catch{return[]}})}}y.folders=Object.assign(()=>F({showFolders:"only"}),Object.freeze(F({showFolders:"only"})));y.filepaths=Object.assign(F,Object.freeze(F()))});var J=x(w=>{"use strict";var A=w&&w.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(s){try{c(r.next(s))}catch(d){a(d)}}function u(s){try{c(r.throw(s))}catch(d){a(d)}}function c(s){s.done?o(s.value):i(s.value).then(l,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(w,"__esModule",{value:!0});w.keyValueList=w.keyValue=w.valueList=void 0;var K=new Map;function M(e,t){return e.length===0?t:t.map(n=>n.insertValue?n:Object.assign(Object.assign({},n),{insertValue:n.name+e}))}function z(e,t,n){return A(this,void 0,void 0,function*(){if(typeof e=="function"){let r=yield e(...n);return M(t,r)}if(typeof e[0]=="string"){let r=e.map(i=>({name:i}));return M(t,r)}return M(t,e)})}function D(e,t,n,r){return A(this,void 0,void 0,function*(){if(n||Array.isArray(e)){let i=K.get(e);return i===void 0&&(i=yield z(e,t,r),K.set(e,i)),i}return z(e,t,r)})}function G(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function C(e,...t){return Math.max(...t.map(n=>e.lastIndexOf(n)))}function E(e,t){let n=new Set(e);return t.filter(r=>{var i;return typeof r.name=="string"?!n.has(r.name):!(!((i=r.name)===null||i===void 0)&&i.some(o=>n.has(o)))})}function pe({delimiter:e=",",values:t=[],cache:n=!1,insertDelimiter:r=!1,allowRepeatedValues:i=!1}){return{trigger:(o,a)=>o.lastIndexOf(e)!==a.lastIndexOf(e),getQueryTerm:o=>o.slice(o.lastIndexOf(e)+e.length),custom:(...o)=>A(this,void 0,void 0,function*(){var a;let l=yield D(t,r?e:"",n,o);if(i)return l;let[u]=o,c=(a=u[u.length-1])===null||a===void 0?void 0:a.split(e);return E(c,l)})}}w.valueList=pe;function he({separator:e="=",keys:t=[],values:n=[],cache:r=!1,insertSeparator:i=!0}){return{trigger:(o,a)=>o.indexOf(e)!==a.indexOf(e),getQueryTerm:o=>o.slice(o.indexOf(e)+1),custom:(...o)=>A(this,void 0,void 0,function*(){let[a]=o,u=!a[a.length-1].includes(e),c=u?t:n,s=G(u,r);return D(c,u&&i?e:"",s,o)})}}w.keyValue=he;function me({separator:e="=",delimiter:t=",",keys:n=[],values:r=[],cache:i=!1,insertSeparator:o=!0,insertDelimiter:a=!1,allowRepeatedKeys:l=!1,allowRepeatedValues:u=!0}){return{trigger:(c,s)=>{let d=C(c,e,t),g=C(s,e,t);return d!==g},getQueryTerm:c=>{let s=C(c,e,t);return c.slice(s+1)},custom:(...c)=>A(this,void 0,void 0,function*(){let[s]=c,d=s[s.length-1],g=C(d,e,t),S=g===-1||d.slice(g,g+e.length)!==e,p=S?n:r,m=G(S,i),f=yield D(p,S?o?e:"":a?t:"",m,c);if(S){if(l)return f;let O=d.split(t).map(h=>h.slice(0,h.indexOf(e)));return E(O,f)}if(u)return f;let b=d.split(t).map(O=>O.slice(O.indexOf(e)+e.length));return E(b,f)})}}w.keyValueList=me});var Q=x(T=>{"use strict";var ge=T&&T.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(s){try{c(r.next(s))}catch(d){a(d)}}function u(s){try{c(r.throw(s))}catch(d){a(d)}}function c(s){s.done?o(s.value):i(s.value).then(l,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(T,"__esModule",{value:!0});T.ai=void 0;var ye=4097,ve=4,be=.8,_e=ye*ve*be;function Oe({name:e,prompt:t,message:n,postProcess:r,temperature:i,splitOn:o}){return{scriptTimeout:15e3,custom:(a,l,u)=>ge(this,void 0,void 0,function*(){var c,s;let d=yield l({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(d.stdout))return[];let g=typeof t=="function"?yield t({tokens:a,executeCommand:l,generatorContext:u}):t,S=typeof n=="function"?yield n({tokens:a,executeCommand:l,generatorContext:u}):n;if(S===null||S.length===0)return console.warn("No message provided to AI generator"),[];let p=_e-((c=g?.length)!==null&&c!==void 0?c:0),m={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...g?[{role:"system",content:g}]:[],{role:"user",content:S.slice(0,p)}],temperature:i},_=JSON.stringify(m),f=yield l({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",_]}),b=JSON.parse(f.stdout);return(s=b?.choices.map(h=>{var k;return(k=h?.message)===null||k===void 0?void 0:k.content}).filter(h=>typeof h=="string").flatMap(h=>o?h.split(o).filter(k=>k.trim().length>0):[h]).map(h=>{if(r)return r(h);let k=h.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:k,insertValue:`'${k}'`,description:"Generated by Fig AI"}}))!==null&&s!==void 0?s:[]})}}T.ai=Oe});var B=x(v=>{"use strict";var Se=v&&v.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),ke=v&&v.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Se(t,e,n)};Object.defineProperty(v,"__esModule",{value:!0});v.ai=v.folders=v.filepaths=void 0;var H=$();Object.defineProperty(v,"filepaths",{enumerable:!0,get:function(){return H.filepaths}});Object.defineProperty(v,"folders",{enumerable:!0,get:function(){return H.folders}});ke(J(),v);var we=Q();Object.defineProperty(v,"ai",{enumerable:!0,get:function(){return we.ai}})});var Y=se(B(),1),Pe={script:["bash","-c",`grep -A5 --include=*.ts --exclude-dir=node_modules -r 'addFormula\\|addSyncTable\\|makeFormula\\|makeSyncTable' . | grep -A3 -i formula | grep name: | grep -oE "['\\"]\\w*['\\"]"`],postProcess:e=>e.trim().length===0?[]:e.split(`
3
- `).map(t=>({name:t.replace(/['"]/g,"").trim(),description:`Execute ${t}`}))},P={name:"path/to/pack.ts",description:"The path to the pack.ts file. E.g. src/pack.ts",generators:(0,Y.filepaths)({extensions:["ts"]})},X={name:"urlOrPackId",description:"The URL or ID of the Pack. E.g. https://coda.io/p/123456 or 123456"},Ie={name:"coda",description:"Coda Local development CLI tool. It comes bundled with the Pack SDK and makes it easy to build and manage Packs from the CLI",subcommands:[{name:"init",description:"Initialize an empty project with the recommended settings and dependencies"},{name:"execute",description:"Execute the formula and print the output to the terminal",args:[P,{name:"formula",description:"Formula name to execute",generators:Pe},{name:"params",description:"Arguments to pass to the formula",isVariadic:!0,isOptional:!0}],options:[{name:"--dynamicUrl",description:"To run a sync for a dynamic sync table, use this parameter to specify which URL to sync from",args:{name:"url",description:"The URL to sync from"}}]},{name:"auth",description:"Set up authentication in your development environment so that you can execute Pack formulas with authentication applied to them",args:P},{name:"register",description:"Create a new API token or register an existing one to be used with future commands",args:{name:"apiToken",description:"The API token to register",isOptional:!0}},{name:"create",description:"Create a new Pack on Coda\u2019s servers and get assigned a Pack ID. Run this command just once for each Pack you create",args:P,options:[{name:"--name",description:"Specify a name for the Pack. You can always set or update the name in the Pack management UI later",args:{name:"name",description:"The desired Pack name"}},{name:"--description",description:"Specify a description for the Pack. You can always set or update the description in the Pack management UI later",args:{name:"description",description:"The Pack description"}}]},{name:"upload",description:"Use this command to upload a new version of your Pack based on your latest code",args:P},{name:"release",description:"Release a Pack version and make it live for your users",args:[P,{name:"version",description:"The release version. Must always be greater than that of any of your previous releases",isOptional:!0}]},{name:"clone",description:"Migrate the development of a Pack from the Pack Studio to a new local CLI Pack development",args:X},{name:"link",description:"Link the development of a Pack from the Pack studio to an existing local CLI Pack development",args:[P,X]},{name:"whoami",description:"Looks up information about the API token that is registered in this environment",args:{name:"apiToken",description:"The API token to look up",isOptional:!0}},{name:"build",description:"Generate a bundle for your Pack",args:P},{name:"validate",description:"Validate your Pack definition",args:P},{name:"setOption",description:"Set a persistent build option for the Pack. This will be used for all builds of the Pack",args:[P,{name:"option",description:"Currently the only supported option is 'timerStrategy'",suggestions:["timerStrategy"]},{name:"value",description:"Value to set for the option",suggestions:["none","error","fake"]}]}],options:[{name:"--version",description:"Show version number",priority:1,isPersistent:!0},{name:"--help",description:"Show help",priority:2,isPersistent:!0}]},Ce=Ie;export{Ce as default};
1
+ var ee=Object.create;var U=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames;var re=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var T=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var oe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ne(t))!ie.call(e,i)&&i!==n&&U(e,i,{get:()=>t[i],enumerable:!(r=te(t,i))||r.enumerable});return e};var se=(e,t,n)=>(n=e!=null?ee(re(e)):{},oe(t||!e||!e.__esModule?U(n,"default",{value:e,enumerable:!0}):n,e));var N=T(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.shellExpand=I.ensureTrailingSlash=void 0;var ae=e=>e.endsWith("/")?e:`${e}/`;I.ensureTrailingSlash=ae;var ce=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,le=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,i=>{var o;let a=i.slice(1);return(o=t[a])!==null&&o!==void 0?o:i}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(i,o,a)=>{var l,u;return(u=(l=t[o])!==null&&l!==void 0?l:a)!==null&&u!==void 0?u:i}),ue=(e,t)=>{var n;let{environmentVariables:r}=t;return le(ce(e,(n=r?.HOME)!==null&&n!==void 0?n:"~"),r)};I.shellExpand=ue});var $=T(b=>{"use strict";var de=b&&b.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(s){try{c(r.next(s))}catch(d){a(d)}}function u(s){try{c(r.throw(s))}catch(d){a(d)}}function c(s){s.done?o(s.value):i(s.value).then(l,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(b,"__esModule",{value:!0});b.filepaths=b.folders=b.getCurrentInsertedDirectory=void 0;b.sortFilesAlphabetically=W;var V=N();function W(e,t=[]){let n=t.map(i=>i.toLowerCase()),r=e.filter(i=>!n.includes(i.toLowerCase()));return[...r.filter(i=>!i.startsWith(".")).sort((i,o)=>i.localeCompare(o)),...r.filter(i=>i.startsWith(".")).sort((i,o)=>i.localeCompare(o)),"../"]}var fe=(e,t,n)=>{if(e===null)return"/";let r=(0,V.shellExpand)(t,n),i=r.slice(0,r.lastIndexOf("/")+1);return i===""?(0,V.ensureTrailingSlash)(e):i.startsWith("/")?i:`${(0,V.ensureTrailingSlash)(e)}${i}`};b.getCurrentInsertedDirectory=fe;function C(e={}){let{extensions:t=[],equals:n=[],matches:r,filterFolders:i=!1,editFileSuggestions:o,editFolderSuggestions:a,rootDirectory:l,showFolders:u="always"}=e,c=new Set(t),s=new Set(n),d=()=>t.length>0||n.length>0||r,g=(p=[])=>d()?p.filter(({name:m="",type:_})=>{if(!i&&_==="folder"||s.has(m)||r&&m.match(r))return!0;let[,...f]=m.split(".");if(f.length>=1){let v=f.length-1,O=f[v];do{if(c.has(O))return!0;v-=1,O=[f[v],O].join(".")}while(v>=0)}return!1}):p,S=(p=[])=>!o&&!a?p:p.map(m=>Object.assign(Object.assign({},m),(m.type==="file"?o:a)||{}));return{trigger:(p,m)=>{let _=p.lastIndexOf("/"),f=m.lastIndexOf("/");return _!==f?!0:_===-1&&f===-1?!1:p.slice(0,_)!==m.slice(0,f)},getQueryTerm:p=>p.slice(p.lastIndexOf("/")+1),custom:(p,m,_)=>de(this,void 0,void 0,function*(){var f;let{isDangerous:v,currentWorkingDirectory:O,searchTerm:h}=_,w=(f=(0,b.getCurrentInsertedDirectory)(l??O,h,_))!==null&&f!==void 0?f:"/";try{let R=yield m({command:"ls",args:["-1ApL"],cwd:w}),Z=W(R.stdout.split(`
2
+ `),[".DS_Store"]),q=[];for(let j of Z)if(j){let L=j.endsWith("/")?"folders":"filepaths";(L==="filepaths"&&u!=="only"||L==="folders"&&u!=="never")&&q.push({type:L==="filepaths"?"file":"folder",name:j,insertValue:j,isDangerous:v,context:{templateType:L}})}return S(g(q))}catch{return[]}})}}b.folders=Object.assign(()=>C({showFolders:"only"}),Object.freeze(C({showFolders:"only"})));b.filepaths=Object.assign(C,Object.freeze(C()))});var J=T(P=>{"use strict";var x=P&&P.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(s){try{c(r.next(s))}catch(d){a(d)}}function u(s){try{c(r.throw(s))}catch(d){a(d)}}function c(s){s.done?o(s.value):i(s.value).then(l,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(P,"__esModule",{value:!0});P.valueList=pe;P.keyValue=he;P.keyValueList=me;var K=new Map;function M(e,t){return e.length===0?t:t.map(n=>n.insertValue?n:Object.assign(Object.assign({},n),{insertValue:n.name+e}))}function z(e,t,n){return x(this,void 0,void 0,function*(){if(typeof e=="function"){let r=yield e(...n);return M(t,r)}if(typeof e[0]=="string"){let r=e.map(i=>({name:i}));return M(t,r)}return M(t,e)})}function D(e,t,n,r){return x(this,void 0,void 0,function*(){if(n||Array.isArray(e)){let i=K.get(e);return i===void 0&&(i=yield z(e,t,r),K.set(e,i)),i}return z(e,t,r)})}function G(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function F(e,...t){return Math.max(...t.map(n=>e.lastIndexOf(n)))}function E(e,t){let n=new Set(e);return t.filter(r=>{var i;return typeof r.name=="string"?!n.has(r.name):!(!((i=r.name)===null||i===void 0)&&i.some(o=>n.has(o)))})}function pe({delimiter:e=",",values:t=[],cache:n=!1,insertDelimiter:r=!1,allowRepeatedValues:i=!1}){return{trigger:(o,a)=>o.lastIndexOf(e)!==a.lastIndexOf(e),getQueryTerm:o=>o.slice(o.lastIndexOf(e)+e.length),custom:(...o)=>x(this,void 0,void 0,function*(){var a;let l=yield D(t,r?e:"",n,o);if(i)return l;let[u]=o,c=(a=u[u.length-1])===null||a===void 0?void 0:a.split(e);return E(c,l)})}}function he({separator:e="=",keys:t=[],values:n=[],cache:r=!1,insertSeparator:i=!0}){return{trigger:(o,a)=>o.indexOf(e)!==a.indexOf(e),getQueryTerm:o=>o.slice(o.indexOf(e)+1),custom:(...o)=>x(this,void 0,void 0,function*(){let[a]=o,u=!a[a.length-1].includes(e),c=u?t:n,s=G(u,r);return D(c,u&&i?e:"",s,o)})}}function me({separator:e="=",delimiter:t=",",keys:n=[],values:r=[],cache:i=!1,insertSeparator:o=!0,insertDelimiter:a=!1,allowRepeatedKeys:l=!1,allowRepeatedValues:u=!0}){return{trigger:(c,s)=>{let d=F(c,e,t),g=F(s,e,t);return d!==g},getQueryTerm:c=>{let s=F(c,e,t);return c.slice(s+1)},custom:(...c)=>x(this,void 0,void 0,function*(){let[s]=c,d=s[s.length-1],g=F(d,e,t),S=g===-1||d.slice(g,g+e.length)!==e,p=S?n:r,m=G(S,i),f=yield D(p,S?o?e:"":a?t:"",m,c);if(S){if(l)return f;let O=d.split(t).map(h=>h.slice(0,h.indexOf(e)));return E(O,f)}if(u)return f;let v=d.split(t).map(O=>O.slice(O.indexOf(e)+e.length));return E(v,f)})}}});var Q=T(A=>{"use strict";var ge=A&&A.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(s){try{c(r.next(s))}catch(d){a(d)}}function u(s){try{c(r.throw(s))}catch(d){a(d)}}function c(s){s.done?o(s.value):i(s.value).then(l,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(A,"__esModule",{value:!0});A.ai=Oe;var ye=4097,ve=4,be=.8,_e=ye*ve*be;function Oe({name:e,prompt:t,message:n,postProcess:r,temperature:i,splitOn:o}){return{scriptTimeout:15e3,custom:(a,l,u)=>ge(this,void 0,void 0,function*(){var c,s;let d=yield l({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(d.stdout))return[];let g=typeof t=="function"?yield t({tokens:a,executeCommand:l,generatorContext:u}):t,S=typeof n=="function"?yield n({tokens:a,executeCommand:l,generatorContext:u}):n;if(S===null||S.length===0)return console.warn("No message provided to AI generator"),[];let p=_e-((c=g?.length)!==null&&c!==void 0?c:0),m={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...g?[{role:"system",content:g}]:[],{role:"user",content:S.slice(0,p)}],temperature:i},_=JSON.stringify(m),f=yield l({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",_]}),v=JSON.parse(f.stdout);return(s=v?.choices.map(h=>{var w;return(w=h?.message)===null||w===void 0?void 0:w.content}).filter(h=>typeof h=="string").flatMap(h=>o?h.split(o).filter(w=>w.trim().length>0):[h]).map(h=>{if(r)return r(h);let w=h.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:w,insertValue:`'${w}'`,description:"Generated by Fig AI"}}))!==null&&s!==void 0?s:[]})}}});var B=T(y=>{"use strict";var Se=y&&y.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),we=y&&y.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Se(t,e,n)};Object.defineProperty(y,"__esModule",{value:!0});y.ai=y.folders=y.filepaths=void 0;var H=$();Object.defineProperty(y,"filepaths",{enumerable:!0,get:function(){return H.filepaths}});Object.defineProperty(y,"folders",{enumerable:!0,get:function(){return H.folders}});we(J(),y);var ke=Q();Object.defineProperty(y,"ai",{enumerable:!0,get:function(){return ke.ai}})});var Y=se(B(),1),Pe={script:["bash","-c",`grep -A5 --include=*.ts --exclude-dir=node_modules -r 'addFormula\\|addSyncTable\\|makeFormula\\|makeSyncTable' . | grep -A3 -i formula | grep name: | grep -oE "['\\"]\\w*['\\"]"`],postProcess:e=>e.trim().length===0?[]:e.split(`
3
+ `).map(t=>({name:t.replace(/['"]/g,"").trim(),description:`Execute ${t}`}))},k={name:"path/to/pack.ts",description:"The path to the pack.ts file. E.g. src/pack.ts",generators:(0,Y.filepaths)({extensions:["ts"]})},X={name:"urlOrPackId",description:"The URL or ID of the Pack. E.g. https://coda.io/p/123456 or 123456"},Ie={name:"coda",description:"Coda Local development CLI tool. It comes bundled with the Pack SDK and makes it easy to build and manage Packs from the CLI",subcommands:[{name:"init",description:"Initialize an empty project with the recommended settings and dependencies"},{name:"execute",description:"Execute the formula and print the output to the terminal",args:[k,{name:"formula",description:"Formula name to execute",generators:Pe},{name:"params",description:"Arguments to pass to the formula",isVariadic:!0,isOptional:!0}],options:[{name:"--dynamicUrl",description:"To run a sync for a dynamic sync table, use this parameter to specify which URL to sync from",args:{name:"url",description:"The URL to sync from"}}]},{name:"auth",description:"Set up authentication in your development environment so that you can execute Pack formulas with authentication applied to them",args:k},{name:"register",description:"Create a new API token or register an existing one to be used with future commands",args:{name:"apiToken",description:"The API token to register",isOptional:!0}},{name:"create",description:"Create a new Pack on Coda\u2019s servers and get assigned a Pack ID. Run this command just once for each Pack you create",args:k,options:[{name:"--name",description:"Specify a name for the Pack. You can always set or update the name in the Pack management UI later",args:{name:"name",description:"The desired Pack name"}},{name:"--description",description:"Specify a description for the Pack. You can always set or update the description in the Pack management UI later",args:{name:"description",description:"The Pack description"}}]},{name:"upload",description:"Use this command to upload a new version of your Pack based on your latest code",args:k},{name:"release",description:"Release a Pack version and make it live for your users",args:[k,{name:"version",description:"The release version. Must always be greater than that of any of your previous releases",isOptional:!0}]},{name:"clone",description:"Migrate the development of a Pack from the Pack Studio to a new local CLI Pack development",args:X},{name:"link",description:"Link the development of a Pack from the Pack studio to an existing local CLI Pack development",args:[k,X]},{name:"whoami",description:"Looks up information about the API token that is registered in this environment",args:{name:"apiToken",description:"The API token to look up",isOptional:!0}},{name:"build",description:"Generate a bundle for your Pack",args:k},{name:"validate",description:"Validate your Pack definition",args:k},{name:"setOption",description:"Set a persistent build option for the Pack. This will be used for all builds of the Pack",args:[k,{name:"option",description:"Currently the only supported option is 'timerStrategy'",suggestions:["timerStrategy"]},{name:"value",description:"Value to set for the option",suggestions:["none","error","fake"]}]}],options:[{name:"--version",description:"Show version number",priority:1,isPersistent:!0},{name:"--help",description:"Show help",priority:2,isPersistent:!0}]},Fe=Ie;export{Fe as default};
@@ -0,0 +1 @@
1
+ var f=["today","week","30days","month","all","lifetime"],b=[{name:"all",description:"Every provider"},...[["amp","Amp"],["antigravity","Antigravity"],["claude","Claude"],["cline","Cline"],["cline-cli","Cline CLI"],["codewhale","CodeWhale"],["codebuff","Codebuff"],["codex","Codex"],["command-code","Command Code"],["copilot","Copilot"],["crush","Crush"],["cursor","Cursor"],["cursor-agent","Cursor Agent"],["dsh","DeepSeek Harness"],["devin","Devin"],["droid","Droid"],["forge","Forge"],["gemini","Gemini"],["goose","Goose"],["grokbot","Grok Bot"],["grok","Grok Build"],["hermes","Hermes Agent"],["ibm-bob","IBM Bob"],["kilo-code","KiloCode"],["kimi","Kimi"],["kimicode","Kimi Code"],["kiro","Kiro"],["lingtai-tui","LingTai TUI"],["mistral-vibe","Mistral Vibe"],["mux","Mux"],["omp","OMP"],["open-design","Open Design"],["openclaude","OpenClaude"],["openclaw","OpenClaw"],["opencode","OpenCode"],["pi","Pi"],["quickdesk","Quick Desktop"],["qwen","Qwen"],["vercel-gateway","Vercel AI Gateway"],["warp","Warp"],["zcode","ZCode"],["zed","Zed"],["zerostack","Zerostack"]].map(([n,i])=>({name:n,description:i}))],d=(n,i="Period")=>({name:["-p","--period"],description:`${i} (default: ${n})`,args:{name:"period",suggestions:f}}),t=(n,i)=>({name:n,description:i,args:{name:"date",description:"YYYY-MM-DD"}}),p=[t("--from","Start date"),t("--to","End date")],s={name:"--provider",description:"Filter by provider (default: all)",args:{name:"provider",suggestions:b}},o=[{name:"--project",description:"Show only projects matching name",isRepeatable:!0,args:{name:"name"}},{name:"--exclude",description:"Exclude projects matching name",isRepeatable:!0,args:{name:"name"}}],e=(n,i="--format")=>({name:i,description:`Output format (default: ${n[0]})`,args:{name:"format",suggestions:n}}),a={name:"--json",description:"Output as JSON"},u={name:"--no-color",description:"Disable ANSI colors"},l=[{name:"--route",description:"Filter by billing route (direct includes unknown)",args:{name:"route",suggestions:["direct","bedrock","openrouter","vertex"]}},{name:"--billing",description:"Filter by billing mode",args:{name:"mode",suggestions:["metered","subscription"]}}],y={name:"--refresh",description:"Auto-refresh interval in seconds (minimum 60; 0 to disable)",args:{name:"seconds",default:"60"}},g=(n,i)=>({name:n,description:i,options:[s,e(["tui","json"]),...o,y]}),r=n=>[d(n,"Analysis period"),...p,s],c=(n,i)=>[{name:"--remove",description:`Remove ${i}`,args:{name:n}},{name:"--list",description:`List configured ${i}s`}],m={name:"--dir",description:"Override the plugins directory (default: ~/.config/codeburn/plugins)",args:{name:"path",template:"folders"}},h=[{name:"--global",description:"Use ~/.claude/settings.json instead of the project"},{name:"--project",description:"Use <path>/.claude/settings.json",args:{name:"path",template:"folders"}}],v={name:"codeburn",description:"See where your AI coding tokens go - by task, tool, model, and project",subcommands:[{name:"report",description:"Interactive usage dashboard",options:[d("week","Starting period"),t("--day","Single day to review (YYYY-MM-DD, today, or yesterday)"),...p,s,e(["tui","json"]),...o,y]},{name:"share",description:"Securely share this device's usage with your other devices",args:{name:"action",isOptional:!0,suggestions:["status"]},options:[{name:"--port",description:"Port to listen on (default: 7777)",args:{name:"number"}},{name:"--pair",description:"Open a pairing window and print a PIN to add a device"},{name:"--always",description:"Keep sharing until stopped (default: stop after 10 min idle)"},e(["text","json"])]},{name:"devices",description:"Combined usage across your devices",args:[{name:"action",isOptional:!0,suggestions:[{name:"scan",description:"Find nearby devices"},{name:"add",description:"Pair a nearby device, or <host> --pin"},{name:"rm",description:"Remove a device by name"}]},{name:"target",isOptional:!0,description:"Host or device name"}],options:[{name:"--pin",description:"Pairing PIN shown on the device you are adding",args:{name:"pin"}},d("month"),{name:"--port",description:"Default port when adding a device (default: 7777)",args:{name:"number"}},e(["text","json"])]},{name:"identity",description:"Show this device identity for sharing",options:[e(["text","json"])]},{name:"overview",description:"Plain-text usage overview, copy-pasteable",options:[d("month"),...p,s,...o,u]},{name:"budget",description:"Set spend budgets and check current spend against them",options:[...["daily","weekly","monthly"].map(n=>({name:`--${n}`,description:`Set ${n} spend budget in the active display currency`,args:{name:"amount"}})),{name:"--list",description:"List configured spend budgets"},{name:"--remove",description:"Remove one budget",args:{name:"period",suggestions:["daily","weekly","monthly"]}},{name:"--check",description:"Check current spend and exit 1 if any budget is over"}]},{name:"web",description:"Open the local web dashboard in your browser",options:[d("today","Initial period"),...p,s,...o,{name:"--port",description:"Port to listen on (default: 4747, falls back if taken)",args:{name:"number"}},{name:"--no-open",description:"Do not open the browser"}]},{name:"status",description:"Compact status output (today + month)",options:[e(["terminal","menubar-json","json"]),{name:"--scope",description:"Usage scope for menubar-json (default: local)",args:{name:"scope",suggestions:["local","combined"]}},{name:"--combined-details",description:"Include per-device payloads in combined menubar-json"},s,...o,{name:"--period",description:"Primary period for menubar-json (default: today)",args:{name:"period",suggestions:f}},t("--day","Single day for menubar-json (YYYY-MM-DD, today, yesterday)"),...p,{name:"--days",description:"Comma-separated dates (YYYY-MM-DD) for multi-day selection",args:{name:"dates"}},{name:"--no-optimize",description:"Skip optimize findings (faster)"},{name:"--no-timeline",description:"Skip the granular timeline (faster)"}]},g("today","Today's usage dashboard"),g("month","This month's usage dashboard"),{name:"export",description:"Export usage data to CSV or JSON",options:[{...e(["csv","json"]),name:["-f","--format"]},{name:["-o","--output"],description:"Output file path",args:{name:"path",template:"filepaths"}},...p,s,...l,...o]},{name:"menubar",description:"Install and launch the menubar app on macOS and Windows",options:[{name:"--force",description:"Reinstall even if already installed"},{name:"--staged-msi",description:"Windows: install the staged CodeBurn.Menubar .msi",args:{name:"path",template:"filepaths"}},{name:"--uninstall",description:"Windows: remove CodeBurn Menubar"}]},{name:"update",description:"Update the global CLI, the menubar app and the desktop app",options:[{name:"--check",description:"Report what is out of date; change nothing"},{name:"--cli",description:"The global codeburn command"},{name:"--menubar",description:"The macOS menubar app"},{name:"--desktop",description:"The desktop app, via its own updater"},{name:"--all",description:"Every component (the default)"},{name:"--local",description:"With --check: no network"},{name:"--json",description:"One JSON object per line on stdout"}]},{name:"currency",description:"Set display currency",args:{name:"code",isOptional:!0,suggestions:["USD","EUR","GBP","JPY","CAD","AUD","INR","CNY"]},options:[{name:"--symbol",description:"Override the currency symbol",args:{name:"symbol"}},{name:"--reset",description:"Reset to USD"}]},{name:"import",description:"Replace local estimates with usage a tool exported itself",args:[{name:"tool",suggestions:["cursor"]},{name:"file",isOptional:!0,template:"filepaths"}],options:[t("--from","Start of the exported range (date, ISO time or epoch ms)"),t("--to","End of the exported range (date, ISO time or epoch ms)"),{name:"--remove",description:"Delete the imported usage"},{name:"--sync",description:"Download the export from cursor.com with the app's login"}]},{name:"model-alias",description:"Map a provider model name to a canonical one for pricing",args:[{name:"from",isOptional:!0},{name:"to",isOptional:!0}],options:[...c("from","alias"),e(["text","json"])]},{name:"price-override",description:"Override or add local model pricing (USD per 1M tokens)",args:{name:"model",isOptional:!0},options:[...["input","output","cache-read","cache-creation"].map(n=>({name:`--${n}`,description:`Price for ${n} tokens, in USD per 1,000,000 tokens`,args:{name:"usd-per-1M"}})),...c("model","price override"),e(["text","json"])]},{name:"model-savings",description:"Track a local model as savings against a paid baseline",args:[{name:"local",isOptional:!0},{name:"baseline",isOptional:!0}],options:c("local","savings mapping")},{name:"model-flat-rate",description:"Mark a model as subscription / flat-rate billed",args:{name:"model",isOptional:!0},options:c("model","flat-rate model")},{name:"proxy-path",description:"Mark a project directory as routed through a subscription proxy",args:{name:"path",isOptional:!0,template:"folders"},options:[...c("path","proxy path"),e(["text","json"])]},{name:"project",description:"Put a folder (and everything under it) in a repository project",args:[{name:"action",isOptional:!0,suggestions:[{name:"link",description:"Link a folder: link <folder> <project>"},{name:"unlink",description:"Unlink a folder: unlink <folder>"},{name:"links",description:"List folder links"}]},{name:"folder",isOptional:!0,template:"folders"},{name:"project",isOptional:!0}],options:[e(["text","json"])]},{name:"gateway-totals",description:"Include or exclude Vercel AI Gateway spend in headline totals",args:{name:"mode",isOptional:!0,suggestions:["include","exclude"]},options:[e(["text","json"])]},{name:"plan",description:"Show or configure a subscription plan for overage tracking",args:[{name:"action",isOptional:!0,suggestions:[{name:"set",description:"Set the plan you pay for"},{name:"reset",description:"Remove plan config (or one --provider)"}]},{name:"id",isOptional:!0,suggestions:["claude-max","claude-pro","cursor-pro","copilot-pro","google-ai-pro","custom","none"]}],options:[e(["text","json"]),{name:"--monthly-usd",description:"Monthly plan price in USD (for custom)",args:{name:"n"}},{name:"--credits",description:"Monthly AI credits (copilot custom plans)",args:{name:"n"}},{name:"--provider",description:"Provider scope",args:{name:"name",suggestions:["all","claude","codex","cursor","grok","copilot","antigravity"]}},{name:"--reset-day",description:"Day of month plan resets, 1-28 (default: 1)",args:{name:"n"}}]},{name:"optimize",description:"Find token waste and get exact fixes",options:[...r("30days"),e(["text","json"]),{name:"--json",description:"Alias for --format json"},{name:"--apply",description:"Interactively apply config-class fixes (undoable)"},{name:"--yes",description:"With --apply: apply every fix without prompting"},{name:"--dry-run",description:"With --apply: print the plan and exit"},{name:"--only",description:"With --apply: comma-separated finding ids",args:{name:"ids"}},{name:"--auto-revert",description:"Undo applied fixes that measured no reduction"},...o]},{name:"context",description:"Context token breakdown per session (experimental)",args:{name:"session",isOptional:!0},options:[{name:"--list",description:"List recent sessions to pick from"},{name:"--full",description:"Cover the whole history, not the post-compaction window"},a,{name:"--provider",description:"Session source (default: claude)",args:{name:"provider",suggestions:["claude","codex"]}}]},{name:"codex-tps",description:"Retrospective Codex generated-tokens/sec estimate",args:{name:"session",isOptional:!0},options:[a,{name:"--limit",description:"Number of recent checkpoints to scan (default: 10)",args:{name:"n"}},{name:"--watch",description:"Refresh continuously while Codex writes checkpoints",args:{name:"seconds"}}]},{name:"compare",description:"Compare two AI models side-by-side",options:[...r("all"),e(["tui","json","cohort-json"]),{name:"--model-a",description:"First model",args:{name:"model"}},{name:"--model-b",description:"Second model",args:{name:"model"}},...o,{name:"--category",description:"With cohort-json: one activity category",args:{name:"category"}},{name:"--project-id",description:"With cohort-json: exact canonical project identity",isRepeatable:!0,args:{name:"id"}}]},{name:"compare-periods",description:"Compare usage and cost between two periods (B minus A)",options:[t("--from-a","Reference period A start"),t("--to-a","Reference period A end"),t("--from-b","Analyzed period B start"),t("--to-b","Analyzed period B end"),s,e(["json","sessions"]),{name:"--dimension",description:"Drill-down dimension for --format sessions",args:{name:"dimension",suggestions:["project","model"]}},{name:"--key",description:"Contribution key for --format sessions (project path or model id)",args:{name:"key"}},...o,{name:"--no-with-history",description:"Skip the durable daily-history cross-check"}]},{name:"audit",description:"Token audit: raw provider fields vs displayed totals and cost",options:[...r("30days"),...l,e(["table","json"]),...o]},{name:"models",description:"Per-model token + cost table",options:[...r("30days"),...l,{name:"--task",description:"Filter to one task type",args:{name:"category",suggestions:["feature","debugging","refactoring"]}},{name:"--by-task",description:"One row per (provider, model, task)"},{name:"--by-agent",description:"One row per (provider, model, agent)"},{name:"--top",description:"Show only the top N rows",args:{name:"n"}},{name:"--min-cost",description:"Hide rows below this cost threshold",args:{name:"usd"}},{name:"--unpriced",description:"Show only models that price at $0"},{name:"--no-totals",description:"Suppress the footer totals row"},e(["table","markdown","json","csv"]),...o]},{name:"sessions",description:"Full per-session usage report",options:[...r("30days"),...l,e(["table","json"]),{name:"--by-pr",description:"Group spend by referenced pull requests"},{name:"--by-work-unit",description:"Group sessions into provider-recorded work units"},{name:"--contributions",description:"JSON only: attach per-session contribution segments"},{name:"--id",description:"With --why: the Claude Code session to explain",args:{name:"id"}},{name:"--why",description:"Explain why one session cost what it did (needs --id)",dependsOn:["--id"]},{name:"--no-pager",description:"Print the table instead of the browser"},...o]},{name:"yield",description:"Track which AI spend shipped vs reverted (experimental)",options:[d("week","Analysis period"),s,e(["text","json"]),...o]},{name:"spend",description:"Emit model x project spend flow data",options:[...r("30days"),e(["flow-json","branch-json"]),...o]},{name:"antigravity-hook",description:"Install or remove exact Antigravity CLI usage capture",args:{name:"action",suggestions:["install","uninstall"]},options:[{name:"--force",description:"Replace an existing custom Antigravity statusLine command"}]},{name:"mcp",description:"Run an MCP server (stdio) exposing usage + savings to agents"},{name:"doctor",description:"Per-provider detection status and parse health",options:[s,a,u]},{name:"quota",description:"Live provider capacity for each signed-in coding tool",options:[e(["table","json"]),{name:"--claude-profiles",description:"Read each Claude config directory's own quota"},u]},{name:"act",description:"Review and undo changes codeburn has applied",subcommands:[{name:"list",description:"List applied actions, newest first",options:[a]},{name:"undo",description:"Undo an action by id (8-char prefix), or --last",args:{name:"id",isOptional:!0},options:[{name:"--last",description:"Undo the most recent action"},{name:"--force",description:"Undo even if target files changed"}]},{name:"apply-model",description:"Apply the model default recommendation for a project",args:{name:"project"}},{name:"report",description:"Realized vs estimated savings for actions older than 3 days",options:[a]}]},{name:"guard",description:"Opt-in, removable session-time hooks for Claude Code",subcommands:[{name:"install",description:"Install the guard hooks (default: this project)",options:[...h,{name:"--statusline",description:"Also configure the guard statusline"}]},{name:"uninstall",description:"Remove the guard hooks, leaving user hooks untouched",options:h},{name:"status",description:"Show resolved guard config and install locations"},{name:"refresh",description:"Recompute the session-opener flag list"},{name:"allow",description:"Lift the hard budget cap for the current (or given) session",args:{name:"sessionId",isOptional:!0}},{name:"hook",description:"Internal: Claude Code hook entry point",hidden:!0,args:{name:"event"}},{name:"statusline",description:"Internal: Claude Code statusline command",hidden:!0}]},{name:"sync",description:"Sync AI usage telemetry to a remote OTLP endpoint",subcommands:[{name:"setup",description:"Configure sync with a remote endpoint (one-time)",args:{name:"url"}},{name:"status",description:"Show sync configuration and auth status"},{name:"logout",description:"Remove stored credentials and revoke token"},{name:"reset",description:"Clear the sent-ledger",options:[{name:"--confirm",description:"Required to confirm reset"}]},{name:"push",description:"Push unsent telemetry data to the configured endpoint",options:[{name:"--since",description:"Time window (default: 7d, max 6 months)",args:{name:"period",suggestions:["today","7d","30d","month","all"]}},{name:"--dry-run",description:"Show what would be sent"},{name:"--attribution",description:"Also push git attribution spans"}]},{name:"auto",description:"Manage automatic scheduled pushes",subcommands:[{name:"enable",description:"Enable automatic scheduled pushes",options:[{name:"--cadence",description:"Schedule frequency (default: daily)",args:{name:"cadence",suggestions:["daily","hourly"]}},{name:"--attribution",description:"Also send work-matching data"},{name:"--accept",description:"Accept the disclosure and enable"}]},{name:"disable",description:"Disable automatic pushes (kill switch)"},{name:"status",description:"Show automatic sync status and recent receipts",options:[a]},{name:"run",description:"Run automatic push (invoked by scheduler)"}]}]},{name:"plugin",description:"Inspect the plugin socket",subcommands:[{name:"list",description:"List every plugin the loader found, with status",options:[m,a]},{name:"info",description:"Print the full manifest of a loaded plugin",args:{name:"name"},options:[m,a]},{name:"verify",description:"Re-run the verification hook for a plugin",args:{name:"name"},options:[m]},{name:"add",description:"Install a plugin from a local path or the org receiver",args:{name:"source",template:"folders"},options:[m]},{name:"remove",description:"Remove an installed plugin",args:{name:"name"},options:[m,{name:"--confirm",description:"Confirm removal"}]}]},{name:"serve",description:"Run a resident query server over stdio (desktop app)",options:[{name:"--stdio",description:"Serve JSON over stdin/stdout"}]}],options:[{name:["-V","--version"],description:"Output the version number"},{name:["-h","--help"],description:"Display help for command",isPersistent:!0},{name:"--verbose",description:"Print warnings to stderr on read failures and skipped files",isPersistent:!0},{name:"--timezone",description:"IANA timezone for date grouping",isPersistent:!0,args:{name:"zone",suggestions:["UTC","America/New_York","Europe/London","Asia/Tokyo"]}},{name:"--exact-project",description:"A --project/--exclude path matches that folder only",isPersistent:!0}]},w=v;export{w as default};