@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
package/build/cd.js CHANGED
@@ -1,2 +1,2 @@
1
- var U=Object.create;var W=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var re=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ee(t))!ne.call(e,i)&&i!==n&&W(e,i,{get:()=>t[i],enumerable:!(r=Y(t,i))||r.enumerable});return e};var ie=(e,t,n)=>(n=e!=null?U(te(e)):{},re(t||!e||!e.__esModule?W(n,"default",{value:e,enumerable:!0}):n,e));var z=j(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.shellExpand=I.ensureTrailingSlash=void 0;var se=e=>e.endsWith("/")?e:`${e}/`;I.ensureTrailingSlash=se;var oe=(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 s;let l=i.slice(1);return(s=t[l])!==null&&s!==void 0?s:i}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(i,s,l)=>{var c,a;return(a=(c=t[s])!==null&&c!==void 0?c:l)!==null&&a!==void 0?a:i}),ue=(e,t)=>{var n;let{environmentVariables:r}=t;return le(oe(e,(n=r?.HOME)!==null&&n!==void 0?n:"~"),r)};I.shellExpand=ue});var $=j(g=>{"use strict";var ce=g&&g.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(o){try{u(r.next(o))}catch(f){l(f)}}function a(o){try{u(r.throw(o))}catch(f){l(f)}}function u(o){o.done?s(o.value):i(o.value).then(c,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(g,"__esModule",{value:!0});g.filepaths=g.folders=g.getCurrentInsertedDirectory=g.sortFilesAlphabetically=void 0;var C=z();function R(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,s)=>i.localeCompare(s)),...r.filter(i=>i.startsWith(".")).sort((i,s)=>i.localeCompare(s)),"../"]}g.sortFilesAlphabetically=R;var ae=(e,t,n)=>{if(e===null)return"/";let r=(0,C.shellExpand)(t,n),i=r.slice(0,r.lastIndexOf("/")+1);return i===""?(0,C.ensureTrailingSlash)(e):i.startsWith("/")?i:`${(0,C.ensureTrailingSlash)(e)}${i}`};g.getCurrentInsertedDirectory=ae;function L(e={}){let{extensions:t=[],equals:n=[],matches:r,filterFolders:i=!1,editFileSuggestions:s,editFolderSuggestions:l,rootDirectory:c,showFolders:a="always"}=e,u=new Set(t),o=new Set(n),f=()=>t.length>0||n.length>0||r,p=(h=[])=>f()?h.filter(({name:v="",type:b})=>{if(!i&&b==="folder"||o.has(v)||r&&v.match(r))return!0;let[,...d]=v.split(".");if(d.length>=1){let O=d.length-1,m=d[O];do{if(u.has(m))return!0;O-=1,m=[d[O],m].join(".")}while(O>=0)}return!1}):h,S=(h=[])=>!s&&!l?h:h.map(v=>Object.assign(Object.assign({},v),(v.type==="file"?s:l)||{}));return{trigger:(h,v)=>{let b=h.lastIndexOf("/"),d=v.lastIndexOf("/");return b!==d?!0:b===-1&&d===-1?!1:h.slice(0,b)!==v.slice(0,d)},getQueryTerm:h=>h.slice(h.lastIndexOf("/")+1),custom:(h,v,b)=>ce(this,void 0,void 0,function*(){var d;let{isDangerous:O,currentWorkingDirectory:m,searchTerm:y}=b,w=(d=(0,g.getCurrentInsertedDirectory)(c??m,y,b))!==null&&d!==void 0?d:"/";try{let N=yield v({command:"ls",args:["-1ApL"],cwd:w}),Z=R(N.stdout.split(`
2
- `),[".DS_Store"]),P=[];for(let V of Z)if(V){let F=V.endsWith("/")?"folders":"filepaths";(F==="filepaths"&&a!=="only"||F==="folders"&&a!=="never")&&P.push({type:F==="filepaths"?"file":"folder",name:V,insertValue:V,isDangerous:O,context:{templateType:F}})}return S(p(P))}catch{return[]}})}}g.folders=Object.assign(()=>L({showFolders:"only"}),Object.freeze(L({showFolders:"only"})));g.filepaths=Object.assign(L,Object.freeze(L()))});var k=j(x=>{"use strict";var A=x&&x.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(o){try{u(r.next(o))}catch(f){l(f)}}function a(o){try{u(r.throw(o))}catch(f){l(f)}}function u(o){o.done?s(o.value):i(o.value).then(c,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(x,"__esModule",{value:!0});x.keyValueList=x.keyValue=x.valueList=void 0;var K=new Map;function D(e,t){return e.length===0?t:t.map(n=>n.insertValue?n:Object.assign(Object.assign({},n),{insertValue:n.name+e}))}function J(e,t,n){return A(this,void 0,void 0,function*(){if(typeof e=="function"){let r=yield e(...n);return D(t,r)}if(typeof e[0]=="string"){let r=e.map(i=>({name:i}));return D(t,r)}return D(t,e)})}function q(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 J(e,t,r),K.set(e,i)),i}return J(e,t,r)})}function Q(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function M(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(s=>n.has(s)))})}function fe({delimiter:e=",",values:t=[],cache:n=!1,insertDelimiter:r=!1,allowRepeatedValues:i=!1}){return{trigger:(s,l)=>s.lastIndexOf(e)!==l.lastIndexOf(e),getQueryTerm:s=>s.slice(s.lastIndexOf(e)+e.length),custom:(...s)=>A(this,void 0,void 0,function*(){var l;let c=yield q(t,r?e:"",n,s);if(i)return c;let[a]=s,u=(l=a[a.length-1])===null||l===void 0?void 0:l.split(e);return E(u,c)})}}x.valueList=fe;function de({separator:e="=",keys:t=[],values:n=[],cache:r=!1,insertSeparator:i=!0}){return{trigger:(s,l)=>s.indexOf(e)!==l.indexOf(e),getQueryTerm:s=>s.slice(s.indexOf(e)+1),custom:(...s)=>A(this,void 0,void 0,function*(){let[l]=s,a=!l[l.length-1].includes(e),u=a?t:n,o=Q(a,r);return q(u,a&&i?e:"",o,s)})}}x.keyValue=de;function he({separator:e="=",delimiter:t=",",keys:n=[],values:r=[],cache:i=!1,insertSeparator:s=!0,insertDelimiter:l=!1,allowRepeatedKeys:c=!1,allowRepeatedValues:a=!0}){return{trigger:(u,o)=>{let f=M(u,e,t),p=M(o,e,t);return f!==p},getQueryTerm:u=>{let o=M(u,e,t);return u.slice(o+1)},custom:(...u)=>A(this,void 0,void 0,function*(){let[o]=u,f=o[o.length-1],p=M(f,e,t),S=p===-1||f.slice(p,p+e.length)!==e,h=S?n:r,v=Q(S,i),d=yield q(h,S?s?e:"":l?t:"",v,u);if(S){if(c)return d;let m=f.split(t).map(y=>y.slice(0,y.indexOf(e)));return E(m,d)}if(a)return d;let O=f.split(t).map(m=>m.slice(m.indexOf(e)+e.length));return E(O,d)})}}x.keyValueList=he});var H=j(T=>{"use strict";var ye=T&&T.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(o){try{u(r.next(o))}catch(f){l(f)}}function a(o){try{u(r.throw(o))}catch(f){l(f)}}function u(o){o.done?s(o.value):i(o.value).then(c,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(T,"__esModule",{value:!0});T.ai=void 0;var ve=4097,pe=4,ge=.8,_e=ve*pe*ge;function Oe({name:e,prompt:t,message:n,postProcess:r,temperature:i,splitOn:s}){return{scriptTimeout:15e3,custom:(l,c,a)=>ye(this,void 0,void 0,function*(){var u,o;let f=yield c({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(f.stdout))return[];let p=typeof t=="function"?yield t({tokens:l,executeCommand:c,generatorContext:a}):t,S=typeof n=="function"?yield n({tokens:l,executeCommand:c,generatorContext:a}):n;if(S===null||S.length===0)return console.warn("No message provided to AI generator"),[];let h=_e-((u=p?.length)!==null&&u!==void 0?u:0),v={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...p?[{role:"system",content:p}]:[],{role:"user",content:S.slice(0,h)}],temperature:i},b=JSON.stringify(v),d=yield c({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",b]}),O=JSON.parse(d.stdout);return(o=O?.choices.map(y=>{var w;return(w=y?.message)===null||w===void 0?void 0:w.content}).filter(y=>typeof y=="string").flatMap(y=>s?y.split(s).filter(w=>w.trim().length>0):[y]).map(y=>{if(r)return r(y);let w=y.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:w,insertValue:`'${w}'`,description:"Generated by Fig AI"}}))!==null&&o!==void 0?o:[]})}}T.ai=Oe});var G=j(_=>{"use strict";var be=_&&_.__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]}),me=_&&_.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&be(t,e,n)};Object.defineProperty(_,"__esModule",{value:!0});_.ai=_.folders=_.filepaths=void 0;var B=$();Object.defineProperty(_,"filepaths",{enumerable:!0,get:function(){return B.filepaths}});Object.defineProperty(_,"folders",{enumerable:!0,get:function(){return B.folders}});me(k(),_);var Se=H();Object.defineProperty(_,"ai",{enumerable:!0,get:function(){return Se.ai}})});var X=ie(G(),1),we={name:"cd",description:"Change the shell working directory",args:{generators:(0,X.filepaths)({showFolders:"only"}),filterStrategy:"fuzzy",suggestions:[{name:"-",description:"Switch to the last used folder",hidden:!0},{name:"~",description:"Switch to the home directory",hidden:!0}]}},Fe=we;export{Fe as default};
1
+ var U=Object.create;var W=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var T=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var re=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ee(t))!ne.call(e,i)&&i!==n&&W(e,i,{get:()=>t[i],enumerable:!(r=Y(t,i))||r.enumerable});return e};var ie=(e,t,n)=>(n=e!=null?U(te(e)):{},re(t||!e||!e.__esModule?W(n,"default",{value:e,enumerable:!0}):n,e));var z=T(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.shellExpand=I.ensureTrailingSlash=void 0;var se=e=>e.endsWith("/")?e:`${e}/`;I.ensureTrailingSlash=se;var oe=(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 s;let l=i.slice(1);return(s=t[l])!==null&&s!==void 0?s:i}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(i,s,l)=>{var c,a;return(a=(c=t[s])!==null&&c!==void 0?c:l)!==null&&a!==void 0?a:i}),ue=(e,t)=>{var n;let{environmentVariables:r}=t;return le(oe(e,(n=r?.HOME)!==null&&n!==void 0?n:"~"),r)};I.shellExpand=ue});var $=T(O=>{"use strict";var ce=O&&O.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(o){try{u(r.next(o))}catch(f){l(f)}}function a(o){try{u(r.throw(o))}catch(f){l(f)}}function u(o){o.done?s(o.value):i(o.value).then(c,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(O,"__esModule",{value:!0});O.filepaths=O.folders=O.getCurrentInsertedDirectory=void 0;O.sortFilesAlphabetically=R;var L=z();function R(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,s)=>i.localeCompare(s)),...r.filter(i=>i.startsWith(".")).sort((i,s)=>i.localeCompare(s)),"../"]}var ae=(e,t,n)=>{if(e===null)return"/";let r=(0,L.shellExpand)(t,n),i=r.slice(0,r.lastIndexOf("/")+1);return i===""?(0,L.ensureTrailingSlash)(e):i.startsWith("/")?i:`${(0,L.ensureTrailingSlash)(e)}${i}`};O.getCurrentInsertedDirectory=ae;function M(e={}){let{extensions:t=[],equals:n=[],matches:r,filterFolders:i=!1,editFileSuggestions:s,editFolderSuggestions:l,rootDirectory:c,showFolders:a="always"}=e,u=new Set(t),o=new Set(n),f=()=>t.length>0||n.length>0||r,p=(h=[])=>f()?h.filter(({name:g="",type:m})=>{if(!i&&m==="folder"||o.has(g)||r&&g.match(r))return!0;let[,...d]=g.split(".");if(d.length>=1){let _=d.length-1,b=d[_];do{if(u.has(b))return!0;_-=1,b=[d[_],b].join(".")}while(_>=0)}return!1}):h,S=(h=[])=>!s&&!l?h:h.map(g=>Object.assign(Object.assign({},g),(g.type==="file"?s:l)||{}));return{trigger:(h,g)=>{let m=h.lastIndexOf("/"),d=g.lastIndexOf("/");return m!==d?!0:m===-1&&d===-1?!1:h.slice(0,m)!==g.slice(0,d)},getQueryTerm:h=>h.slice(h.lastIndexOf("/")+1),custom:(h,g,m)=>ce(this,void 0,void 0,function*(){var d;let{isDangerous:_,currentWorkingDirectory:b,searchTerm:y}=m,w=(d=(0,O.getCurrentInsertedDirectory)(c??b,y,m))!==null&&d!==void 0?d:"/";try{let N=yield g({command:"ls",args:["-1ApL"],cwd:w}),k=R(N.stdout.split(`
2
+ `),[".DS_Store"]),P=[];for(let F of k)if(F){let V=F.endsWith("/")?"folders":"filepaths";(V==="filepaths"&&a!=="only"||V==="folders"&&a!=="never")&&P.push({type:V==="filepaths"?"file":"folder",name:F,insertValue:F,isDangerous:_,context:{templateType:V}})}return S(p(P))}catch{return[]}})}}O.folders=Object.assign(()=>M({showFolders:"only"}),Object.freeze(M({showFolders:"only"})));O.filepaths=Object.assign(M,Object.freeze(M()))});var H=T(x=>{"use strict";var j=x&&x.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(o){try{u(r.next(o))}catch(f){l(f)}}function a(o){try{u(r.throw(o))}catch(f){l(f)}}function u(o){o.done?s(o.value):i(o.value).then(c,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(x,"__esModule",{value:!0});x.valueList=fe;x.keyValue=de;x.keyValueList=he;var K=new Map;function D(e,t){return e.length===0?t:t.map(n=>n.insertValue?n:Object.assign(Object.assign({},n),{insertValue:n.name+e}))}function J(e,t,n){return j(this,void 0,void 0,function*(){if(typeof e=="function"){let r=yield e(...n);return D(t,r)}if(typeof e[0]=="string"){let r=e.map(i=>({name:i}));return D(t,r)}return D(t,e)})}function q(e,t,n,r){return j(this,void 0,void 0,function*(){if(n||Array.isArray(e)){let i=K.get(e);return i===void 0&&(i=yield J(e,t,r),K.set(e,i)),i}return J(e,t,r)})}function Q(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(s=>n.has(s)))})}function fe({delimiter:e=",",values:t=[],cache:n=!1,insertDelimiter:r=!1,allowRepeatedValues:i=!1}){return{trigger:(s,l)=>s.lastIndexOf(e)!==l.lastIndexOf(e),getQueryTerm:s=>s.slice(s.lastIndexOf(e)+e.length),custom:(...s)=>j(this,void 0,void 0,function*(){var l;let c=yield q(t,r?e:"",n,s);if(i)return c;let[a]=s,u=(l=a[a.length-1])===null||l===void 0?void 0:l.split(e);return E(u,c)})}}function de({separator:e="=",keys:t=[],values:n=[],cache:r=!1,insertSeparator:i=!0}){return{trigger:(s,l)=>s.indexOf(e)!==l.indexOf(e),getQueryTerm:s=>s.slice(s.indexOf(e)+1),custom:(...s)=>j(this,void 0,void 0,function*(){let[l]=s,a=!l[l.length-1].includes(e),u=a?t:n,o=Q(a,r);return q(u,a&&i?e:"",o,s)})}}function he({separator:e="=",delimiter:t=",",keys:n=[],values:r=[],cache:i=!1,insertSeparator:s=!0,insertDelimiter:l=!1,allowRepeatedKeys:c=!1,allowRepeatedValues:a=!0}){return{trigger:(u,o)=>{let f=C(u,e,t),p=C(o,e,t);return f!==p},getQueryTerm:u=>{let o=C(u,e,t);return u.slice(o+1)},custom:(...u)=>j(this,void 0,void 0,function*(){let[o]=u,f=o[o.length-1],p=C(f,e,t),S=p===-1||f.slice(p,p+e.length)!==e,h=S?n:r,g=Q(S,i),d=yield q(h,S?s?e:"":l?t:"",g,u);if(S){if(c)return d;let b=f.split(t).map(y=>y.slice(0,y.indexOf(e)));return E(b,d)}if(a)return d;let _=f.split(t).map(b=>b.slice(b.indexOf(e)+e.length));return E(_,d)})}}});var B=T(A=>{"use strict";var ye=A&&A.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(o){try{u(r.next(o))}catch(f){l(f)}}function a(o){try{u(r.throw(o))}catch(f){l(f)}}function u(o){o.done?s(o.value):i(o.value).then(c,a)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(A,"__esModule",{value:!0});A.ai=Oe;var ge=4097,pe=4,ve=.8,_e=ge*pe*ve;function Oe({name:e,prompt:t,message:n,postProcess:r,temperature:i,splitOn:s}){return{scriptTimeout:15e3,custom:(l,c,a)=>ye(this,void 0,void 0,function*(){var u,o;let f=yield c({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(f.stdout))return[];let p=typeof t=="function"?yield t({tokens:l,executeCommand:c,generatorContext:a}):t,S=typeof n=="function"?yield n({tokens:l,executeCommand:c,generatorContext:a}):n;if(S===null||S.length===0)return console.warn("No message provided to AI generator"),[];let h=_e-((u=p?.length)!==null&&u!==void 0?u:0),g={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...p?[{role:"system",content:p}]:[],{role:"user",content:S.slice(0,h)}],temperature:i},m=JSON.stringify(g),d=yield c({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",m]}),_=JSON.parse(d.stdout);return(o=_?.choices.map(y=>{var w;return(w=y?.message)===null||w===void 0?void 0:w.content}).filter(y=>typeof y=="string").flatMap(y=>s?y.split(s).filter(w=>w.trim().length>0):[y]).map(y=>{if(r)return r(y);let w=y.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:w,insertValue:`'${w}'`,description:"Generated by Fig AI"}}))!==null&&o!==void 0?o:[]})}}});var X=T(v=>{"use strict";var me=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]}),be=v&&v.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&me(t,e,n)};Object.defineProperty(v,"__esModule",{value:!0});v.ai=v.folders=v.filepaths=void 0;var G=$();Object.defineProperty(v,"filepaths",{enumerable:!0,get:function(){return G.filepaths}});Object.defineProperty(v,"folders",{enumerable:!0,get:function(){return G.folders}});be(H(),v);var Se=B();Object.defineProperty(v,"ai",{enumerable:!0,get:function(){return Se.ai}})});var Z=ie(X(),1),we={name:"cd",description:"Change the shell working directory",args:{generators:(0,Z.filepaths)({showFolders:"only"}),filterStrategy:"fuzzy",suggestions:[{name:"-",description:"Switch to the last used folder",hidden:!0},{name:"~",description:"Switch to the home directory",hidden:!0}]}},Ve=we;export{Ve as default};
package/build/chezmoi.js CHANGED
@@ -1,2 +1,2 @@
1
- var ee=Object.create;var G=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var re=Object.getOwnPropertyNames;var ie=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ae=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of re(t))!ne.call(e,n)&&n!==r&&G(e,n,{get:()=>t[n],enumerable:!(i=te(t,n))||i.enumerable});return e};var se=(e,t,r)=>(r=e!=null?ee(ie(e)):{},ae(t||!e||!e.__esModule?G(r,"default",{value:e,enumerable:!0}):r,e));var U=I(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.shellExpand=O.ensureTrailingSlash=void 0;var oe=e=>e.endsWith("/")?e:`${e}/`;O.ensureTrailingSlash=oe;var ue=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,ce=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,n=>{var a;let o=n.slice(1);return(a=t[o])!==null&&a!==void 0?a:n}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(n,a,o)=>{var d,p;return(p=(d=t[a])!==null&&d!==void 0?d:o)!==null&&p!==void 0?p:n}),de=(e,t)=>{var r;let{environmentVariables:i}=t;return ce(ue(e,(r=i?.HOME)!==null&&r!==void 0?r:"~"),i)};O.shellExpand=de});var W=I(S=>{"use strict";var pe=S&&S.__awaiter||function(e,t,r,i){function n(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function d(s){try{u(i.next(s))}catch(l){o(l)}}function p(s){try{u(i.throw(s))}catch(l){o(l)}}function u(s){s.done?a(s.value):n(s.value).then(d,p)}u((i=i.apply(e,t||[])).next())})};Object.defineProperty(S,"__esModule",{value:!0});S.filepaths=S.folders=S.getCurrentInsertedDirectory=S.sortFilesAlphabetically=void 0;var z=U();function $(e,t=[]){let r=t.map(n=>n.toLowerCase()),i=e.filter(n=>!r.includes(n.toLowerCase()));return[...i.filter(n=>!n.startsWith(".")).sort((n,a)=>n.localeCompare(a)),...i.filter(n=>n.startsWith(".")).sort((n,a)=>n.localeCompare(a)),"../"]}S.sortFilesAlphabetically=$;var le=(e,t,r)=>{if(e===null)return"/";let i=(0,z.shellExpand)(t,r),n=i.slice(0,i.lastIndexOf("/")+1);return n===""?(0,z.ensureTrailingSlash)(e):n.startsWith("/")?n:`${(0,z.ensureTrailingSlash)(e)}${n}`};S.getCurrentInsertedDirectory=le;function T(e={}){let{extensions:t=[],equals:r=[],matches:i,filterFolders:n=!1,editFileSuggestions:a,editFolderSuggestions:o,rootDirectory:d,showFolders:p="always"}=e,u=new Set(t),s=new Set(r),l=()=>t.length>0||r.length>0||i,y=(f=[])=>l()?f.filter(({name:h="",type:x})=>{if(!n&&x==="folder"||s.has(h)||i&&h.match(i))return!0;let[,...m]=h.split(".");if(m.length>=1){let b=m.length-1,q=m[b];do{if(u.has(q))return!0;b-=1,q=[m[b],q].join(".")}while(b>=0)}return!1}):f,P=(f=[])=>!a&&!o?f:f.map(h=>Object.assign(Object.assign({},h),(h.type==="file"?a:o)||{}));return{trigger:(f,h)=>{let x=f.lastIndexOf("/"),m=h.lastIndexOf("/");return x!==m?!0:x===-1&&m===-1?!1:f.slice(0,x)!==h.slice(0,m)},getQueryTerm:f=>f.slice(f.lastIndexOf("/")+1),custom:(f,h,x)=>pe(this,void 0,void 0,function*(){var m;let{isDangerous:b,currentWorkingDirectory:q,searchTerm:g}=x,w=(m=(0,S.getCurrentInsertedDirectory)(d??q,g,x))!==null&&m!==void 0?m:"/";try{let F=yield h({command:"ls",args:["-1ApL"],cwd:w}),Z=$(F.stdout.split(`
2
- `),[".DS_Store"]),C=[];for(let A of Z)if(A){let V=A.endsWith("/")?"folders":"filepaths";(V==="filepaths"&&p!=="only"||V==="folders"&&p!=="never")&&C.push({type:V==="filepaths"?"file":"folder",name:A,insertValue:A,isDangerous:b,context:{templateType:V}})}return P(y(C))}catch{return[]}})}}S.folders=Object.assign(()=>T({showFolders:"only"}),Object.freeze(T({showFolders:"only"})));S.filepaths=Object.assign(T,Object.freeze(T()))});var Q=I(k=>{"use strict";var R=k&&k.__awaiter||function(e,t,r,i){function n(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function d(s){try{u(i.next(s))}catch(l){o(l)}}function p(s){try{u(i.throw(s))}catch(l){o(l)}}function u(s){s.done?a(s.value):n(s.value).then(d,p)}u((i=i.apply(e,t||[])).next())})};Object.defineProperty(k,"__esModule",{value:!0});k.keyValueList=k.keyValue=k.valueList=void 0;var B=new Map;function j(e,t){return e.length===0?t:t.map(r=>r.insertValue?r:Object.assign(Object.assign({},r),{insertValue:r.name+e}))}function K(e,t,r){return R(this,void 0,void 0,function*(){if(typeof e=="function"){let i=yield e(...r);return j(t,i)}if(typeof e[0]=="string"){let i=e.map(n=>({name:n}));return j(t,i)}return j(t,e)})}function M(e,t,r,i){return R(this,void 0,void 0,function*(){if(r||Array.isArray(e)){let n=B.get(e);return n===void 0&&(n=yield K(e,t,i),B.set(e,n)),n}return K(e,t,i)})}function N(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function E(e,...t){return Math.max(...t.map(r=>e.lastIndexOf(r)))}function D(e,t){let r=new Set(e);return t.filter(i=>{var n;return typeof i.name=="string"?!r.has(i.name):!(!((n=i.name)===null||n===void 0)&&n.some(a=>r.has(a)))})}function me({delimiter:e=",",values:t=[],cache:r=!1,insertDelimiter:i=!1,allowRepeatedValues:n=!1}){return{trigger:(a,o)=>a.lastIndexOf(e)!==o.lastIndexOf(e),getQueryTerm:a=>a.slice(a.lastIndexOf(e)+e.length),custom:(...a)=>R(this,void 0,void 0,function*(){var o;let d=yield M(t,i?e:"",r,a);if(n)return d;let[p]=a,u=(o=p[p.length-1])===null||o===void 0?void 0:o.split(e);return D(u,d)})}}k.valueList=me;function fe({separator:e="=",keys:t=[],values:r=[],cache:i=!1,insertSeparator:n=!0}){return{trigger:(a,o)=>a.indexOf(e)!==o.indexOf(e),getQueryTerm:a=>a.slice(a.indexOf(e)+1),custom:(...a)=>R(this,void 0,void 0,function*(){let[o]=a,p=!o[o.length-1].includes(e),u=p?t:r,s=N(p,i);return M(u,p&&n?e:"",s,a)})}}k.keyValue=fe;function ge({separator:e="=",delimiter:t=",",keys:r=[],values:i=[],cache:n=!1,insertSeparator:a=!0,insertDelimiter:o=!1,allowRepeatedKeys:d=!1,allowRepeatedValues:p=!0}){return{trigger:(u,s)=>{let l=E(u,e,t),y=E(s,e,t);return l!==y},getQueryTerm:u=>{let s=E(u,e,t);return u.slice(s+1)},custom:(...u)=>R(this,void 0,void 0,function*(){let[s]=u,l=s[s.length-1],y=E(l,e,t),P=y===-1||l.slice(y,y+e.length)!==e,f=P?r:i,h=N(P,n),m=yield M(f,P?a?e:"":o?t:"",h,u);if(P){if(d)return m;let q=l.split(t).map(g=>g.slice(0,g.indexOf(e)));return D(q,m)}if(p)return m;let b=l.split(t).map(q=>q.slice(q.indexOf(e)+e.length));return D(b,m)})}}k.keyValueList=ge});var H=I(_=>{"use strict";var he=_&&_.__awaiter||function(e,t,r,i){function n(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function d(s){try{u(i.next(s))}catch(l){o(l)}}function p(s){try{u(i.throw(s))}catch(l){o(l)}}function u(s){s.done?a(s.value):n(s.value).then(d,p)}u((i=i.apply(e,t||[])).next())})};Object.defineProperty(_,"__esModule",{value:!0});_.ai=void 0;var ye=4097,Se=4,ve=.8,be=ye*Se*ve;function xe({name:e,prompt:t,message:r,postProcess:i,temperature:n,splitOn:a}){return{scriptTimeout:15e3,custom:(o,d,p)=>he(this,void 0,void 0,function*(){var u,s;let l=yield d({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(l.stdout))return[];let y=typeof t=="function"?yield t({tokens:o,executeCommand:d,generatorContext:p}):t,P=typeof r=="function"?yield r({tokens:o,executeCommand:d,generatorContext:p}):r;if(P===null||P.length===0)return console.warn("No message provided to AI generator"),[];let f=be-((u=y?.length)!==null&&u!==void 0?u:0),h={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...y?[{role:"system",content:y}]:[],{role:"user",content:P.slice(0,f)}],temperature:n},x=JSON.stringify(h),m=yield d({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",x]}),b=JSON.parse(m.stdout);return(s=b?.choices.map(g=>{var w;return(w=g?.message)===null||w===void 0?void 0:w.content}).filter(g=>typeof g=="string").flatMap(g=>a?g.split(a).filter(w=>w.trim().length>0):[g]).map(g=>{if(i)return i(g);let w=g.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:w,insertValue:`'${w}'`,description:"Generated by Fig AI"}}))!==null&&s!==void 0?s:[]})}}_.ai=xe});var X=I(v=>{"use strict";var qe=v&&v.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),Pe=v&&v.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&qe(t,e,r)};Object.defineProperty(v,"__esModule",{value:!0});v.ai=v.folders=v.filepaths=void 0;var J=W();Object.defineProperty(v,"filepaths",{enumerable:!0,get:function(){return J.filepaths}});Object.defineProperty(v,"folders",{enumerable:!0,get:function(){return J.folders}});Pe(Q(),v);var we=H();Object.defineProperty(v,"ai",{enumerable:!0,get:function(){return we.ai}})});var Y=se(X(),1),L=[{name:["after","a"],description:"Attribute modifier"},{name:["before","b"],description:"Attribute modifier"},{name:["empty","e"],description:"Attribute modifier"},{name:"encrypted",description:"Attribute modifier"},{name:"exact",description:"Attribute modifier"},{name:["executable","x"],description:"Attribute modifier"},{name:["once","o"],description:"Attribute modifier"},{name:["private","p"],description:"Attribute modifier"},{name:["readonly","r"],description:"Attribute modifier"},{name:"remove",description:"Attribute modifier"},{name:["template","t"],description:"Attribute modifier"},{name:"create",description:"Type modifier"},{name:"modify",description:"Type modifier"},{name:"script",description:"Type modifier"},{name:"symlink",description:"Type modifier"}],ke=["+","-"].flatMap(e=>L.map(t=>({...t,name:typeof t.name=="string"?`${e}${t.name}`:t.name.map(r=>`${e}${r}`)}))),Oe=L.map(e=>({...e,name:typeof e.name=="string"?`no${e.name}`:e.name.map(t=>`no${t}`)})),c=(0,Y.valueList)({values:["all","dirs","files","remove","scripts","symlinks","encrypted"],insertDelimiter:!0}),_e={name:"chezmoi",description:"Manage your dotfiles across multiple diverse machines, securely",subcommands:[{name:["manage","add"],description:"Add an existing file, directory, or symlink to the source state",args:{name:"file",template:["filepaths","folders"],isVariadic:!0},options:[{name:["--autotemplate","-a"],description:"Generate the template when adding files as templates"},{name:"--create",description:"Add files that should exist, irrespective of their contents"},{name:"--encrypt",description:"Encrypt files"},{name:"--exact",description:"Add directories exactly"},{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--follow","-f"],description:"Add symlink targets instead of symlinks"},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:["--prompt","-p"],description:"Prompt before adding each entry"},{name:["--recursive","-r"],description:"Recurse into subdirectories"},{name:["--template","-T"],description:"Add files as templates"},{name:"--template-symlinks",description:"Add symlinks with target in source or home dirs as templates"}]},{name:"apply",description:"Update the destination directory to match the target state",args:{name:"target",template:["filepaths","folders"],isVariadic:!0,isOptional:!0},options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"archive",description:"Generate a tar archive of the target state",args:{name:"target",isVariadic:!0,isOptional:!0,template:["filepaths","folders"]},options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--format","-f"],description:"Set archive format",requiresSeparator:!0,args:{name:"format",suggestions:["tar","tar.bz2","tar.gz","tar.xz","tbz2","tgz","txz","zip"]}},{name:["--gzip","-z"],description:"Compress output with gzip"},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"cat",description:"Print the target contents of a file, script, or symlink",args:{name:"target",isVariadic:!0,template:["filepaths","folders"]}},{name:"cd",description:"Launch a shell in the source directory"},{name:"chattr",description:"Change the attributes of a target in the source state",args:[{name:"attributes/modifiers",generators:{trigger:()=>!0,getQueryTerm:",",custom:async e=>{let t=e[e.length-1],r=t.slice(t.lastIndexOf(",")+1);return r[0]==="+"||r[0]==="-"?ke:r.startsWith("no")?Oe:L}}},{name:"target",isVariadic:!0,template:["filepaths","folders"]}]},{name:"completion",description:"Generate shell completion code",args:{name:"shell",suggestions:["bash","fish","zsh","powershell"]}},{name:"data",description:"Print the template data",options:[{name:["--format","-f"],description:"Format",isPersistent:!0,requiresSeparator:!0,args:{name:"format",default:"json",suggestions:["json","yaml"]}}]},{name:"decrypt",description:"Decrypt file or standard input",args:{name:"file",isVariadic:!0,isOptional:!0,template:"filepaths"}},{name:"diff",description:"Print the diff between the target state and the destination state",args:{name:"target",isVariadic:!0,isOptional:!0},options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:"--pager",description:"Set pager",requiresSeparator:!0,args:{name:"pager"}},{name:["--recursive","-r"],description:"Recurse into subdirectories"},{name:"--reverse",description:"Reverse the direction of the diff"},{name:"--use-builtin-diff",description:"Use the builtin diff"}]},{name:"doctor",description:"Check your system for potential problems"},{name:"dump",description:"Generate a dump of the target state",args:{name:"target",isVariadic:!0,isOptional:!0,template:"filepaths"},options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--format","-f"],description:"Set output format",requiresSeparator:!0,args:{name:"format",default:"json"}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"edit",description:"Edit the source state of a target",args:{name:"target",isVariadic:!0,template:"filepaths"},options:[{name:["--apply","-a"],description:"Apply after editing"},{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:"--hardlink",description:"Invoke editor with a hardlink to the source file"},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"dirs,files,symlinks,encrypted",generators:c}},{name:"--init",description:"Recreate config file from template"}]},{name:"edit-config",description:"Edit the configuration file"},{name:"encrypt",description:"Encrypt file or standard input",args:{name:"target",isVariadic:!0,isOptional:!0,template:"filepaths"}},{name:"execute-template",description:"Execute the given template(s)",args:{name:"template",isVariadic:!0,isOptional:!0,template:"filepaths"},options:[{name:["--init","-i"],description:"Simulate chezmoi init"},{name:"--promptBool",description:"Simulate promptBool",requiresSeparator:!0,args:{name:"promptBool"}},{name:"--promptInt",description:"Simulate promptInt",requiresSeparator:!0,args:{name:"promptInt"}},{name:["--promptString","-p"],description:"Simulate promptString",requiresSeparator:!0,args:{name:"promptString"}},{name:"--stdinisatty",description:"Simulate stdinIsATTY"}]},{name:["unmanage","forget"],description:"Remove a target from the source state",args:{name:"target",isVariadic:!0,isOptional:!0,template:"filepaths"}},{name:"generate",insertValue:"generate install.sh > install.sh",description:"Generate a file for use with chezmoi",args:{name:"file",suggestions:["install.sh"]}},{name:"git",description:"Run git in the source directory",loadSpec:"git"},{name:"ignored",description:"Print ignored targets"},{name:"import",description:"Import an archive into the source state",args:{name:"archive",template:"filepaths"},options:[{name:"--exact",description:"Set exact_ attribute on imported directories"},{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:["--remove-destination","-r"],description:"Remove destination before import"},{name:"--strip-components",description:"Strip leading path components",requiresSeparator:!0,args:{name:"strip-components",default:"0"}}]},{name:"init",description:"Setup the source directory and update the destination directory to match the target state",args:{name:"source"},options:[{name:["--apply","-a"],description:"Update destination directory"},{name:"--branch",description:"Set initial branch to checkout",requiresSeparator:!0,args:{name:"branch"}},{name:["--config-path","-C"],description:"Path to write generated config file",requiresSeparator:!0,args:{name:"config-path"}},{name:"--data",description:"Include existing template data"},{name:["--depth","-d"],description:"Create a shallow clone",requiresSeparator:!0,args:{name:"depth",default:"0"}},{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--guess-repo-url","-g"],description:"Guess the repo URL"},{name:"--one-shot",description:"Run in one-shot mode"},{name:"--prompt",description:"Force prompt*Once template functions to prompt"},{name:["--purge","-p"],description:"Purge config and source directories after running"},{name:["--purge-binary","-P"],description:"Purge chezmoi binary after running"},{name:"--ssh",description:"Use ssh instead of https when guessing dotfile repo URL"}]},{name:"license",description:"Print license"},{name:["list","managed"],description:"List the managed entries in the destination directory",options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"dirs,files,symlinks,encrypted",generators:c}}]},{name:"merge",description:"Perform a three-way merge between the destination state, the source state, and the target state",args:{name:"target",isVariadic:!0,template:"filepaths"}},{name:"merge-all",description:"Perform a three-way merge for each modified file",options:[{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"purge",description:"Purge chezmoi's configuration and data",options:[{name:["--binary","-P"],description:"Purge chezmoi binary"}]},{name:"re-add",description:"Re-add modified files",options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}}]},{name:["rm","remove"],description:"Remove a target from the source state and the destination directory",args:{name:"target",isVariadic:!0,template:"filepaths"},options:[{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"secret",description:"Interact with a secret manager",requiresSubcommand:!0,subcommands:[{name:"keyring",description:"Interact with keyring",requiresSubcommand:!0,subcommands:[{name:"delete",description:"Delete a value from keyring",options:[{name:"--service",description:"Service",isPersistent:!0,requiresSeparator:!0,args:{name:"service"},isRequired:!0},{name:"--user",description:"User",isPersistent:!0,requiresSeparator:!0,args:{name:"user"},isRequired:!0}]},{name:"get",description:"Get a value from keyring",options:[{name:"--service",description:"Service",isPersistent:!0,requiresSeparator:!0,args:{name:"service"},isRequired:!0},{name:"--user",description:"User",isPersistent:!0,requiresSeparator:!0,args:{name:"user"},isRequired:!0}]},{name:"set",description:"Set a value in keyring",options:[{name:"--service",description:"Service",isPersistent:!0,requiresSeparator:!0,args:{name:"service"},isRequired:!0},{name:"--user",description:"User",isPersistent:!0,requiresSeparator:!0,args:{name:"user"},isRequired:!0},{name:"--value",description:"Value",isPersistent:!0,requiresSeparator:!0,args:{name:"value"}}]}]}]},{name:"source-path",description:"Print the source path of a target",args:{name:"target",isVariadic:!0,isOptional:!0,template:"filepaths"}},{name:"state",description:"Manipulate the persistent state",requiresSubcommand:!0,subcommands:[{name:"data",description:"Print the raw data in the persistent state",options:[{name:["--format","-f"],description:"Format",isPersistent:!0,requiresSeparator:!0,args:{name:"format",default:"json"}}]},{name:"delete",description:"Delete a value from the persistent state",options:[{name:"--bucket",description:"Bucket",isPersistent:!0,requiresSeparator:!0,args:{name:"bucket"}},{name:"--key",description:"Key",isPersistent:!0,requiresSeparator:!0,args:{name:"key"}}]},{name:"delete-bucket",description:"Delete a bucket from the persistent state",options:[{name:"--bucket",description:"Bucket",isPersistent:!0,requiresSeparator:!0,args:{name:"bucket"}}]},{name:"dump",description:"Generate a dump of the persistent state",options:[{name:["--format","-f"],description:"Format",isPersistent:!0,requiresSeparator:!0,args:{name:"format",default:"json"}}]},{name:"get",description:"Get a value from the persistent state",options:[{name:"--bucket",description:"Bucket",isPersistent:!0,requiresSeparator:!0,args:{name:"bucket"}},{name:"--key",description:"Key",isPersistent:!0,requiresSeparator:!0,args:{name:"key"}}]},{name:"get-bucket",description:"Get a bucket from the persistent state",options:[{name:"--bucket",description:"Bucket",isPersistent:!0,requiresSeparator:!0,args:{name:"bucket"}},{name:["--format","-f"],description:"Format",isPersistent:!0,requiresSeparator:!0,args:{name:"format",default:"json"}}]},{name:"reset",description:"Reset the persistent state"},{name:"set",description:"Set a value from the persistent state",options:[{name:"--bucket",description:"Bucket",isPersistent:!0,requiresSeparator:!0,args:{name:"bucket"}},{name:"--key",description:"Key",isPersistent:!0,requiresSeparator:!0,args:{name:"key"}},{name:"--value",description:"Value",isPersistent:!0,requiresSeparator:!0,args:{name:"value"}}]}]},{name:"status",description:"Show the status of targets",args:{name:"target",isVariadic:!0,isOptional:!0,template:"filepaths"},options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"target-path",description:"Print the target path of a source path",args:{name:"source",isVariadic:!0,isOptional:!0,template:"filepaths"}},{name:"unmanaged",description:"List the unmanaged files in the destination directory",args:{name:"paths",isVariadic:!0,isOptional:!0,template:"filepaths"}},{name:"update",description:"Pull and apply any changes",options:[{name:["--apply","-a"],description:"Apply after pulling"},{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"upgrade",description:"Upgrade chezmoi to the latest released version",options:[{name:"--executable",description:"Set executable to replace",requiresSeparator:!0,args:{name:"executable"}},{name:"--method",description:"Set upgrade method",requiresSeparator:!0,args:{name:"method"}},{name:"--owner",description:"Set owner",requiresSeparator:!0,args:{name:"owner",default:"twpayne"}},{name:"--repo",description:"Set repo",requiresSeparator:!0,args:{name:"repo",default:"chezmoi"}}]},{name:"verify",description:"Exit with success if the destination state matches the target state, fail otherwise",args:{name:"target",isVariadic:!0,isOptional:!0,template:"filepaths"},options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"dirs,files,remove,symlinks,encrypted,externals",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"help",description:"Help about any command",subcommands:[{name:["manage","add"],description:"Add an existing file, directory, or symlink to the source state"},{name:"apply",description:"Update the destination directory to match the target state"},{name:"archive",description:"Generate a tar archive of the target state"},{name:"cat",description:"Print the target contents of a file, script, or symlink"},{name:"cd",description:"Launch a shell in the source directory"},{name:"chattr",description:"Change the attributes of a target in the source state"},{name:"completion",description:"Generate shell completion code"},{name:"data",description:"Print the template data"},{name:"decrypt",description:"Decrypt file or standard input"},{name:"diff",description:"Print the diff between the target state and the destination state"},{name:"doctor",description:"Check your system for potential problems"},{name:"dump",description:"Generate a dump of the target state"},{name:"edit",description:"Edit the source state of a target"},{name:"edit-config",description:"Edit the configuration file"},{name:"encrypt",description:"Encrypt file or standard input"},{name:"execute-template",description:"Execute the given template(s)"},{name:["unmanage","forget"],description:"Remove a target from the source state"},{name:"generate",description:"Generate a file for use with chezmoi"},{name:"git",description:"Run git in the source directory"},{name:"ignored",description:"Print ignored targets"},{name:"import",description:"Import an archive into the source state"},{name:"init",description:"Setup the source directory and update the destination directory to match the target state"},{name:"license",description:"Print license"},{name:["list","managed"],description:"List the managed entries in the destination directory"},{name:"merge",description:"Perform a three-way merge between the destination state, the source state, and the target state"},{name:"merge-all",description:"Perform a three-way merge for each modified file"},{name:"purge",description:"Purge chezmoi's configuration and data"},{name:"re-add",description:"Re-add modified files"},{name:["rm","remove"],description:"Remove a target from the source state and the destination directory"},{name:"secret",description:"Interact with a secret manager",subcommands:[{name:"keyring",description:"Interact with keyring",subcommands:[{name:"delete",description:"Delete a value from keyring"},{name:"get",description:"Get a value from keyring"},{name:"set",description:"Set a value in keyring"}]}]},{name:"source-path",description:"Print the source path of a target"},{name:"state",description:"Manipulate the persistent state",subcommands:[{name:"data",description:"Print the raw data in the persistent state"},{name:"delete",description:"Delete a value from the persistent state"},{name:"delete-bucket",description:"Delete a bucket from the persistent state"},{name:"dump",description:"Generate a dump of the persistent state"},{name:"get",description:"Get a value from the persistent state"},{name:"get-bucket",description:"Get a bucket from the persistent state"},{name:"reset",description:"Reset the persistent state"},{name:"set",description:"Set a value from the persistent state"}]},{name:"status",description:"Show the status of targets"},{name:"target-path",description:"Print the target path of a source path"},{name:"unmanaged",description:"List the unmanaged files in the destination directory"},{name:"update",description:"Pull and apply any changes"},{name:"upgrade",description:"Upgrade chezmoi to the latest released version"},{name:"verify",description:"Exit with success if the destination state matches the target state, fail otherwise"}]}],options:[{name:"--cache",description:"Set cache directory",isPersistent:!0,requiresSeparator:!0,args:{name:"cache",default:"~/.cache/chezmoi"}},{name:"--color",description:"Colorize output",isPersistent:!0,requiresSeparator:!0,args:{name:"color",default:"auto",suggestions:["true","false","auto"]}},{name:["--config","-c"],description:"Set config file",isPersistent:!0,requiresSeparator:!0,args:{name:"config",default:"~/.config/chezmoi/chezmoi.toml",template:["filepaths"]}},{name:"--config-format",description:"Set config file format",isPersistent:!0,requiresSeparator:!0,args:{name:"config-format",suggestions:["json","toml","yaml"]}},{name:"--cpu-profile",description:"Write a CPU profile to path",isPersistent:!0,hidden:!0,requiresSeparator:!0,args:{name:"cpu-profile",template:["filepaths"]}},{name:"--debug",description:"Include debug information in output",isPersistent:!0},{name:["--destination","-D"],description:"Set destination directory",isPersistent:!0,requiresSeparator:!0,args:{name:"destination",default:"~",template:["folders"]}},{name:["--dry-run","-n"],description:"Do not make any modifications to the destination directory",isPersistent:!0},{name:"--force",description:"Make all changes without prompting",isPersistent:!0},{name:"--gops",description:"Enable gops agent",isPersistent:!0,hidden:!0},{name:"--interactive",description:"Prompt for all changes",isPersistent:!0},{name:["--keep-going","-k"],description:"Keep going as far as possible after an error",isPersistent:!0},{name:"--mode",description:"Mode",isPersistent:!0,requiresSeparator:!0,args:{name:"mode",suggestions:["file","symlink"]}},{name:"--no-pager",description:"Do not use the pager",isPersistent:!0},{name:"--no-tty",description:"Do not attempt to get a TTY for reading passwords",isPersistent:!0},{name:["--output","-o"],description:"Write output to path instead of stdout",isPersistent:!0,requiresSeparator:!0,args:{name:"output",template:["filepaths"]}},{name:"--persistent-state",description:"Set persistent state file",isPersistent:!0,requiresSeparator:!0,args:{name:"persistent-state"}},{name:["--refresh-externals","-R"],description:"Refresh external cache",isPersistent:!0},{name:"--safe",description:"Safely replace files and symlinks",isPersistent:!0,hidden:!0},{name:["--source","-S"],description:"Set source directory",isPersistent:!0,requiresSeparator:!0,args:{name:"source",default:"~/.local/share/chezmoi",template:["folders"]}},{name:"--source-path",description:"Specify targets by source path",isPersistent:!0},{name:"--use-builtin-age",description:"Use builtin age",isPersistent:!0,requiresSeparator:!0,args:{name:"use-builtin-age",default:"auto",suggestions:["true","false","auto"]}},{name:"--use-builtin-git",description:"Use builtin git",isPersistent:!0,requiresSeparator:!0,args:{name:"use-builtin-git",default:"auto",suggestions:["true","false","auto"]}},{name:["--verbose","-v"],description:"Make output more verbose",isPersistent:!0},{name:["--working-tree","-W"],description:"Set working tree directory",isPersistent:!0,requiresSeparator:!0,args:{name:"working-tree",template:"folders"}},{name:["--help","-h"],description:"Display help",isPersistent:!0}]},ze=_e;export{ze as default};
1
+ var ee=Object.create;var L=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var re=Object.getOwnPropertyNames;var ie=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ae=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of re(t))!ne.call(e,n)&&n!==r&&L(e,n,{get:()=>t[n],enumerable:!(i=te(t,n))||i.enumerable});return e};var se=(e,t,r)=>(r=e!=null?ee(ie(e)):{},ae(t||!e||!e.__esModule?L(r,"default",{value:e,enumerable:!0}):r,e));var U=_(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.shellExpand=O.ensureTrailingSlash=void 0;var oe=e=>e.endsWith("/")?e:`${e}/`;O.ensureTrailingSlash=oe;var ue=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,ce=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,n=>{var a;let o=n.slice(1);return(a=t[o])!==null&&a!==void 0?a:n}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(n,a,o)=>{var d,p;return(p=(d=t[a])!==null&&d!==void 0?d:o)!==null&&p!==void 0?p:n}),de=(e,t)=>{var r;let{environmentVariables:i}=t;return ce(ue(e,(r=i?.HOME)!==null&&r!==void 0?r:"~"),i)};O.shellExpand=de});var W=_(b=>{"use strict";var pe=b&&b.__awaiter||function(e,t,r,i){function n(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function d(s){try{u(i.next(s))}catch(l){o(l)}}function p(s){try{u(i.throw(s))}catch(l){o(l)}}function u(s){s.done?a(s.value):n(s.value).then(d,p)}u((i=i.apply(e,t||[])).next())})};Object.defineProperty(b,"__esModule",{value:!0});b.filepaths=b.folders=b.getCurrentInsertedDirectory=void 0;b.sortFilesAlphabetically=$;var z=U();function $(e,t=[]){let r=t.map(n=>n.toLowerCase()),i=e.filter(n=>!r.includes(n.toLowerCase()));return[...i.filter(n=>!n.startsWith(".")).sort((n,a)=>n.localeCompare(a)),...i.filter(n=>n.startsWith(".")).sort((n,a)=>n.localeCompare(a)),"../"]}var le=(e,t,r)=>{if(e===null)return"/";let i=(0,z.shellExpand)(t,r),n=i.slice(0,i.lastIndexOf("/")+1);return n===""?(0,z.ensureTrailingSlash)(e):n.startsWith("/")?n:`${(0,z.ensureTrailingSlash)(e)}${n}`};b.getCurrentInsertedDirectory=le;function T(e={}){let{extensions:t=[],equals:r=[],matches:i,filterFolders:n=!1,editFileSuggestions:a,editFolderSuggestions:o,rootDirectory:d,showFolders:p="always"}=e,u=new Set(t),s=new Set(r),l=()=>t.length>0||r.length>0||i,y=(f=[])=>l()?f.filter(({name:h="",type:x})=>{if(!n&&x==="folder"||s.has(h)||i&&h.match(i))return!0;let[,...m]=h.split(".");if(m.length>=1){let v=m.length-1,q=m[v];do{if(u.has(q))return!0;v-=1,q=[m[v],q].join(".")}while(v>=0)}return!1}):f,P=(f=[])=>!a&&!o?f:f.map(h=>Object.assign(Object.assign({},h),(h.type==="file"?a:o)||{}));return{trigger:(f,h)=>{let x=f.lastIndexOf("/"),m=h.lastIndexOf("/");return x!==m?!0:x===-1&&m===-1?!1:f.slice(0,x)!==h.slice(0,m)},getQueryTerm:f=>f.slice(f.lastIndexOf("/")+1),custom:(f,h,x)=>pe(this,void 0,void 0,function*(){var m;let{isDangerous:v,currentWorkingDirectory:q,searchTerm:g}=x,w=(m=(0,b.getCurrentInsertedDirectory)(d??q,g,x))!==null&&m!==void 0?m:"/";try{let F=yield h({command:"ls",args:["-1ApL"],cwd:w}),Z=$(F.stdout.split(`
2
+ `),[".DS_Store"]),G=[];for(let A of Z)if(A){let V=A.endsWith("/")?"folders":"filepaths";(V==="filepaths"&&p!=="only"||V==="folders"&&p!=="never")&&G.push({type:V==="filepaths"?"file":"folder",name:A,insertValue:A,isDangerous:v,context:{templateType:V}})}return P(y(G))}catch{return[]}})}}b.folders=Object.assign(()=>T({showFolders:"only"}),Object.freeze(T({showFolders:"only"})));b.filepaths=Object.assign(T,Object.freeze(T()))});var Q=_(k=>{"use strict";var I=k&&k.__awaiter||function(e,t,r,i){function n(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function d(s){try{u(i.next(s))}catch(l){o(l)}}function p(s){try{u(i.throw(s))}catch(l){o(l)}}function u(s){s.done?a(s.value):n(s.value).then(d,p)}u((i=i.apply(e,t||[])).next())})};Object.defineProperty(k,"__esModule",{value:!0});k.valueList=me;k.keyValue=fe;k.keyValueList=ge;var B=new Map;function j(e,t){return e.length===0?t:t.map(r=>r.insertValue?r:Object.assign(Object.assign({},r),{insertValue:r.name+e}))}function K(e,t,r){return I(this,void 0,void 0,function*(){if(typeof e=="function"){let i=yield e(...r);return j(t,i)}if(typeof e[0]=="string"){let i=e.map(n=>({name:n}));return j(t,i)}return j(t,e)})}function M(e,t,r,i){return I(this,void 0,void 0,function*(){if(r||Array.isArray(e)){let n=B.get(e);return n===void 0&&(n=yield K(e,t,i),B.set(e,n)),n}return K(e,t,i)})}function N(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function E(e,...t){return Math.max(...t.map(r=>e.lastIndexOf(r)))}function D(e,t){let r=new Set(e);return t.filter(i=>{var n;return typeof i.name=="string"?!r.has(i.name):!(!((n=i.name)===null||n===void 0)&&n.some(a=>r.has(a)))})}function me({delimiter:e=",",values:t=[],cache:r=!1,insertDelimiter:i=!1,allowRepeatedValues:n=!1}){return{trigger:(a,o)=>a.lastIndexOf(e)!==o.lastIndexOf(e),getQueryTerm:a=>a.slice(a.lastIndexOf(e)+e.length),custom:(...a)=>I(this,void 0,void 0,function*(){var o;let d=yield M(t,i?e:"",r,a);if(n)return d;let[p]=a,u=(o=p[p.length-1])===null||o===void 0?void 0:o.split(e);return D(u,d)})}}function fe({separator:e="=",keys:t=[],values:r=[],cache:i=!1,insertSeparator:n=!0}){return{trigger:(a,o)=>a.indexOf(e)!==o.indexOf(e),getQueryTerm:a=>a.slice(a.indexOf(e)+1),custom:(...a)=>I(this,void 0,void 0,function*(){let[o]=a,p=!o[o.length-1].includes(e),u=p?t:r,s=N(p,i);return M(u,p&&n?e:"",s,a)})}}function ge({separator:e="=",delimiter:t=",",keys:r=[],values:i=[],cache:n=!1,insertSeparator:a=!0,insertDelimiter:o=!1,allowRepeatedKeys:d=!1,allowRepeatedValues:p=!0}){return{trigger:(u,s)=>{let l=E(u,e,t),y=E(s,e,t);return l!==y},getQueryTerm:u=>{let s=E(u,e,t);return u.slice(s+1)},custom:(...u)=>I(this,void 0,void 0,function*(){let[s]=u,l=s[s.length-1],y=E(l,e,t),P=y===-1||l.slice(y,y+e.length)!==e,f=P?r:i,h=N(P,n),m=yield M(f,P?a?e:"":o?t:"",h,u);if(P){if(d)return m;let q=l.split(t).map(g=>g.slice(0,g.indexOf(e)));return D(q,m)}if(p)return m;let v=l.split(t).map(q=>q.slice(q.indexOf(e)+e.length));return D(v,m)})}}});var H=_(R=>{"use strict";var he=R&&R.__awaiter||function(e,t,r,i){function n(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function d(s){try{u(i.next(s))}catch(l){o(l)}}function p(s){try{u(i.throw(s))}catch(l){o(l)}}function u(s){s.done?a(s.value):n(s.value).then(d,p)}u((i=i.apply(e,t||[])).next())})};Object.defineProperty(R,"__esModule",{value:!0});R.ai=xe;var ye=4097,Se=4,ve=.8,be=ye*Se*ve;function xe({name:e,prompt:t,message:r,postProcess:i,temperature:n,splitOn:a}){return{scriptTimeout:15e3,custom:(o,d,p)=>he(this,void 0,void 0,function*(){var u,s;let l=yield d({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(l.stdout))return[];let y=typeof t=="function"?yield t({tokens:o,executeCommand:d,generatorContext:p}):t,P=typeof r=="function"?yield r({tokens:o,executeCommand:d,generatorContext:p}):r;if(P===null||P.length===0)return console.warn("No message provided to AI generator"),[];let f=be-((u=y?.length)!==null&&u!==void 0?u:0),h={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...y?[{role:"system",content:y}]:[],{role:"user",content:P.slice(0,f)}],temperature:n},x=JSON.stringify(h),m=yield d({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",x]}),v=JSON.parse(m.stdout);return(s=v?.choices.map(g=>{var w;return(w=g?.message)===null||w===void 0?void 0:w.content}).filter(g=>typeof g=="string").flatMap(g=>a?g.split(a).filter(w=>w.trim().length>0):[g]).map(g=>{if(i)return i(g);let w=g.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:w,insertValue:`'${w}'`,description:"Generated by Fig AI"}}))!==null&&s!==void 0?s:[]})}}});var X=_(S=>{"use strict";var qe=S&&S.__createBinding||(Object.create?function(e,t,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){i===void 0&&(i=r),e[i]=t[r]}),Pe=S&&S.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&qe(t,e,r)};Object.defineProperty(S,"__esModule",{value:!0});S.ai=S.folders=S.filepaths=void 0;var J=W();Object.defineProperty(S,"filepaths",{enumerable:!0,get:function(){return J.filepaths}});Object.defineProperty(S,"folders",{enumerable:!0,get:function(){return J.folders}});Pe(Q(),S);var we=H();Object.defineProperty(S,"ai",{enumerable:!0,get:function(){return we.ai}})});var Y=se(X(),1),C=[{name:["after","a"],description:"Attribute modifier"},{name:["before","b"],description:"Attribute modifier"},{name:["empty","e"],description:"Attribute modifier"},{name:"encrypted",description:"Attribute modifier"},{name:"exact",description:"Attribute modifier"},{name:["executable","x"],description:"Attribute modifier"},{name:["once","o"],description:"Attribute modifier"},{name:["private","p"],description:"Attribute modifier"},{name:["readonly","r"],description:"Attribute modifier"},{name:"remove",description:"Attribute modifier"},{name:["template","t"],description:"Attribute modifier"},{name:"create",description:"Type modifier"},{name:"modify",description:"Type modifier"},{name:"script",description:"Type modifier"},{name:"symlink",description:"Type modifier"}],ke=["+","-"].flatMap(e=>C.map(t=>({...t,name:typeof t.name=="string"?`${e}${t.name}`:t.name.map(r=>`${e}${r}`)}))),Oe=C.map(e=>({...e,name:typeof e.name=="string"?`no${e.name}`:e.name.map(t=>`no${t}`)})),c=(0,Y.valueList)({values:["all","dirs","files","remove","scripts","symlinks","encrypted"],insertDelimiter:!0}),_e={name:"chezmoi",description:"Manage your dotfiles across multiple diverse machines, securely",subcommands:[{name:["manage","add"],description:"Add an existing file, directory, or symlink to the source state",args:{name:"file",template:["filepaths","folders"],isVariadic:!0},options:[{name:["--autotemplate","-a"],description:"Generate the template when adding files as templates"},{name:"--create",description:"Add files that should exist, irrespective of their contents"},{name:"--encrypt",description:"Encrypt files"},{name:"--exact",description:"Add directories exactly"},{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--follow","-f"],description:"Add symlink targets instead of symlinks"},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:["--prompt","-p"],description:"Prompt before adding each entry"},{name:["--recursive","-r"],description:"Recurse into subdirectories"},{name:["--template","-T"],description:"Add files as templates"},{name:"--template-symlinks",description:"Add symlinks with target in source or home dirs as templates"}]},{name:"apply",description:"Update the destination directory to match the target state",args:{name:"target",template:["filepaths","folders"],isVariadic:!0,isOptional:!0},options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"archive",description:"Generate a tar archive of the target state",args:{name:"target",isVariadic:!0,isOptional:!0,template:["filepaths","folders"]},options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--format","-f"],description:"Set archive format",requiresSeparator:!0,args:{name:"format",suggestions:["tar","tar.bz2","tar.gz","tar.xz","tbz2","tgz","txz","zip"]}},{name:["--gzip","-z"],description:"Compress output with gzip"},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"cat",description:"Print the target contents of a file, script, or symlink",args:{name:"target",isVariadic:!0,template:["filepaths","folders"]}},{name:"cd",description:"Launch a shell in the source directory"},{name:"chattr",description:"Change the attributes of a target in the source state",args:[{name:"attributes/modifiers",generators:{trigger:()=>!0,getQueryTerm:",",custom:async e=>{let t=e[e.length-1],r=t.slice(t.lastIndexOf(",")+1);return r[0]==="+"||r[0]==="-"?ke:r.startsWith("no")?Oe:C}}},{name:"target",isVariadic:!0,template:["filepaths","folders"]}]},{name:"completion",description:"Generate shell completion code",args:{name:"shell",suggestions:["bash","fish","zsh","powershell"]}},{name:"data",description:"Print the template data",options:[{name:["--format","-f"],description:"Format",isPersistent:!0,requiresSeparator:!0,args:{name:"format",default:"json",suggestions:["json","yaml"]}}]},{name:"decrypt",description:"Decrypt file or standard input",args:{name:"file",isVariadic:!0,isOptional:!0,template:"filepaths"}},{name:"diff",description:"Print the diff between the target state and the destination state",args:{name:"target",isVariadic:!0,isOptional:!0},options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:"--pager",description:"Set pager",requiresSeparator:!0,args:{name:"pager"}},{name:["--recursive","-r"],description:"Recurse into subdirectories"},{name:"--reverse",description:"Reverse the direction of the diff"},{name:"--use-builtin-diff",description:"Use the builtin diff"}]},{name:"doctor",description:"Check your system for potential problems"},{name:"dump",description:"Generate a dump of the target state",args:{name:"target",isVariadic:!0,isOptional:!0,template:"filepaths"},options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--format","-f"],description:"Set output format",requiresSeparator:!0,args:{name:"format",default:"json"}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"edit",description:"Edit the source state of a target",args:{name:"target",isVariadic:!0,template:"filepaths"},options:[{name:["--apply","-a"],description:"Apply after editing"},{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:"--hardlink",description:"Invoke editor with a hardlink to the source file"},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"dirs,files,symlinks,encrypted",generators:c}},{name:"--init",description:"Recreate config file from template"}]},{name:"edit-config",description:"Edit the configuration file"},{name:"encrypt",description:"Encrypt file or standard input",args:{name:"target",isVariadic:!0,isOptional:!0,template:"filepaths"}},{name:"execute-template",description:"Execute the given template(s)",args:{name:"template",isVariadic:!0,isOptional:!0,template:"filepaths"},options:[{name:["--init","-i"],description:"Simulate chezmoi init"},{name:"--promptBool",description:"Simulate promptBool",requiresSeparator:!0,args:{name:"promptBool"}},{name:"--promptInt",description:"Simulate promptInt",requiresSeparator:!0,args:{name:"promptInt"}},{name:["--promptString","-p"],description:"Simulate promptString",requiresSeparator:!0,args:{name:"promptString"}},{name:"--stdinisatty",description:"Simulate stdinIsATTY"}]},{name:["unmanage","forget"],description:"Remove a target from the source state",args:{name:"target",isVariadic:!0,isOptional:!0,template:"filepaths"}},{name:"generate",insertValue:"generate install.sh > install.sh",description:"Generate a file for use with chezmoi",args:{name:"file",suggestions:["install.sh"]}},{name:"git",description:"Run git in the source directory",loadSpec:"git"},{name:"ignored",description:"Print ignored targets"},{name:"import",description:"Import an archive into the source state",args:{name:"archive",template:"filepaths"},options:[{name:"--exact",description:"Set exact_ attribute on imported directories"},{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:["--remove-destination","-r"],description:"Remove destination before import"},{name:"--strip-components",description:"Strip leading path components",requiresSeparator:!0,args:{name:"strip-components",default:"0"}}]},{name:"init",description:"Setup the source directory and update the destination directory to match the target state",args:{name:"source"},options:[{name:["--apply","-a"],description:"Update destination directory"},{name:"--branch",description:"Set initial branch to checkout",requiresSeparator:!0,args:{name:"branch"}},{name:["--config-path","-C"],description:"Path to write generated config file",requiresSeparator:!0,args:{name:"config-path"}},{name:"--data",description:"Include existing template data"},{name:["--depth","-d"],description:"Create a shallow clone",requiresSeparator:!0,args:{name:"depth",default:"0"}},{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--guess-repo-url","-g"],description:"Guess the repo URL"},{name:"--one-shot",description:"Run in one-shot mode"},{name:"--prompt",description:"Force prompt*Once template functions to prompt"},{name:["--purge","-p"],description:"Purge config and source directories after running"},{name:["--purge-binary","-P"],description:"Purge chezmoi binary after running"},{name:"--ssh",description:"Use ssh instead of https when guessing dotfile repo URL"}]},{name:"license",description:"Print license"},{name:["list","managed"],description:"List the managed entries in the destination directory",options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"dirs,files,symlinks,encrypted",generators:c}}]},{name:"merge",description:"Perform a three-way merge between the destination state, the source state, and the target state",args:{name:"target",isVariadic:!0,template:"filepaths"}},{name:"merge-all",description:"Perform a three-way merge for each modified file",options:[{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"purge",description:"Purge chezmoi's configuration and data",options:[{name:["--binary","-P"],description:"Purge chezmoi binary"}]},{name:"re-add",description:"Re-add modified files",options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}}]},{name:["rm","remove"],description:"Remove a target from the source state and the destination directory",args:{name:"target",isVariadic:!0,template:"filepaths"},options:[{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"secret",description:"Interact with a secret manager",requiresSubcommand:!0,subcommands:[{name:"keyring",description:"Interact with keyring",requiresSubcommand:!0,subcommands:[{name:"delete",description:"Delete a value from keyring",options:[{name:"--service",description:"Service",isPersistent:!0,requiresSeparator:!0,args:{name:"service"},isRequired:!0},{name:"--user",description:"User",isPersistent:!0,requiresSeparator:!0,args:{name:"user"},isRequired:!0}]},{name:"get",description:"Get a value from keyring",options:[{name:"--service",description:"Service",isPersistent:!0,requiresSeparator:!0,args:{name:"service"},isRequired:!0},{name:"--user",description:"User",isPersistent:!0,requiresSeparator:!0,args:{name:"user"},isRequired:!0}]},{name:"set",description:"Set a value in keyring",options:[{name:"--service",description:"Service",isPersistent:!0,requiresSeparator:!0,args:{name:"service"},isRequired:!0},{name:"--user",description:"User",isPersistent:!0,requiresSeparator:!0,args:{name:"user"},isRequired:!0},{name:"--value",description:"Value",isPersistent:!0,requiresSeparator:!0,args:{name:"value"}}]}]}]},{name:"source-path",description:"Print the source path of a target",args:{name:"target",isVariadic:!0,isOptional:!0,template:"filepaths"}},{name:"state",description:"Manipulate the persistent state",requiresSubcommand:!0,subcommands:[{name:"data",description:"Print the raw data in the persistent state",options:[{name:["--format","-f"],description:"Format",isPersistent:!0,requiresSeparator:!0,args:{name:"format",default:"json"}}]},{name:"delete",description:"Delete a value from the persistent state",options:[{name:"--bucket",description:"Bucket",isPersistent:!0,requiresSeparator:!0,args:{name:"bucket"}},{name:"--key",description:"Key",isPersistent:!0,requiresSeparator:!0,args:{name:"key"}}]},{name:"delete-bucket",description:"Delete a bucket from the persistent state",options:[{name:"--bucket",description:"Bucket",isPersistent:!0,requiresSeparator:!0,args:{name:"bucket"}}]},{name:"dump",description:"Generate a dump of the persistent state",options:[{name:["--format","-f"],description:"Format",isPersistent:!0,requiresSeparator:!0,args:{name:"format",default:"json"}}]},{name:"get",description:"Get a value from the persistent state",options:[{name:"--bucket",description:"Bucket",isPersistent:!0,requiresSeparator:!0,args:{name:"bucket"}},{name:"--key",description:"Key",isPersistent:!0,requiresSeparator:!0,args:{name:"key"}}]},{name:"get-bucket",description:"Get a bucket from the persistent state",options:[{name:"--bucket",description:"Bucket",isPersistent:!0,requiresSeparator:!0,args:{name:"bucket"}},{name:["--format","-f"],description:"Format",isPersistent:!0,requiresSeparator:!0,args:{name:"format",default:"json"}}]},{name:"reset",description:"Reset the persistent state"},{name:"set",description:"Set a value from the persistent state",options:[{name:"--bucket",description:"Bucket",isPersistent:!0,requiresSeparator:!0,args:{name:"bucket"}},{name:"--key",description:"Key",isPersistent:!0,requiresSeparator:!0,args:{name:"key"}},{name:"--value",description:"Value",isPersistent:!0,requiresSeparator:!0,args:{name:"value"}}]}]},{name:"status",description:"Show the status of targets",args:{name:"target",isVariadic:!0,isOptional:!0,template:"filepaths"},options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"target-path",description:"Print the target path of a source path",args:{name:"source",isVariadic:!0,isOptional:!0,template:"filepaths"}},{name:"unmanaged",description:"List the unmanaged files in the destination directory",args:{name:"paths",isVariadic:!0,isOptional:!0,template:"filepaths"}},{name:"update",description:"Pull and apply any changes",options:[{name:["--apply","-a"],description:"Apply after pulling"},{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"all",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"upgrade",description:"Upgrade chezmoi to the latest released version",options:[{name:"--executable",description:"Set executable to replace",requiresSeparator:!0,args:{name:"executable"}},{name:"--method",description:"Set upgrade method",requiresSeparator:!0,args:{name:"method"}},{name:"--owner",description:"Set owner",requiresSeparator:!0,args:{name:"owner",default:"twpayne"}},{name:"--repo",description:"Set repo",requiresSeparator:!0,args:{name:"repo",default:"chezmoi"}}]},{name:"verify",description:"Exit with success if the destination state matches the target state, fail otherwise",args:{name:"target",isVariadic:!0,isOptional:!0,template:"filepaths"},options:[{name:["--exclude","-x"],description:"Exclude entry types",requiresSeparator:!0,args:{name:"exclude",default:"none",generators:c}},{name:["--include","-i"],description:"Include entry types",requiresSeparator:!0,args:{name:"include",default:"dirs,files,remove,symlinks,encrypted,externals",generators:c}},{name:"--init",description:"Recreate config file from template"},{name:["--recursive","-r"],description:"Recurse into subdirectories"}]},{name:"help",description:"Help about any command",subcommands:[{name:["manage","add"],description:"Add an existing file, directory, or symlink to the source state"},{name:"apply",description:"Update the destination directory to match the target state"},{name:"archive",description:"Generate a tar archive of the target state"},{name:"cat",description:"Print the target contents of a file, script, or symlink"},{name:"cd",description:"Launch a shell in the source directory"},{name:"chattr",description:"Change the attributes of a target in the source state"},{name:"completion",description:"Generate shell completion code"},{name:"data",description:"Print the template data"},{name:"decrypt",description:"Decrypt file or standard input"},{name:"diff",description:"Print the diff between the target state and the destination state"},{name:"doctor",description:"Check your system for potential problems"},{name:"dump",description:"Generate a dump of the target state"},{name:"edit",description:"Edit the source state of a target"},{name:"edit-config",description:"Edit the configuration file"},{name:"encrypt",description:"Encrypt file or standard input"},{name:"execute-template",description:"Execute the given template(s)"},{name:["unmanage","forget"],description:"Remove a target from the source state"},{name:"generate",description:"Generate a file for use with chezmoi"},{name:"git",description:"Run git in the source directory"},{name:"ignored",description:"Print ignored targets"},{name:"import",description:"Import an archive into the source state"},{name:"init",description:"Setup the source directory and update the destination directory to match the target state"},{name:"license",description:"Print license"},{name:["list","managed"],description:"List the managed entries in the destination directory"},{name:"merge",description:"Perform a three-way merge between the destination state, the source state, and the target state"},{name:"merge-all",description:"Perform a three-way merge for each modified file"},{name:"purge",description:"Purge chezmoi's configuration and data"},{name:"re-add",description:"Re-add modified files"},{name:["rm","remove"],description:"Remove a target from the source state and the destination directory"},{name:"secret",description:"Interact with a secret manager",subcommands:[{name:"keyring",description:"Interact with keyring",subcommands:[{name:"delete",description:"Delete a value from keyring"},{name:"get",description:"Get a value from keyring"},{name:"set",description:"Set a value in keyring"}]}]},{name:"source-path",description:"Print the source path of a target"},{name:"state",description:"Manipulate the persistent state",subcommands:[{name:"data",description:"Print the raw data in the persistent state"},{name:"delete",description:"Delete a value from the persistent state"},{name:"delete-bucket",description:"Delete a bucket from the persistent state"},{name:"dump",description:"Generate a dump of the persistent state"},{name:"get",description:"Get a value from the persistent state"},{name:"get-bucket",description:"Get a bucket from the persistent state"},{name:"reset",description:"Reset the persistent state"},{name:"set",description:"Set a value from the persistent state"}]},{name:"status",description:"Show the status of targets"},{name:"target-path",description:"Print the target path of a source path"},{name:"unmanaged",description:"List the unmanaged files in the destination directory"},{name:"update",description:"Pull and apply any changes"},{name:"upgrade",description:"Upgrade chezmoi to the latest released version"},{name:"verify",description:"Exit with success if the destination state matches the target state, fail otherwise"}]}],options:[{name:"--cache",description:"Set cache directory",isPersistent:!0,requiresSeparator:!0,args:{name:"cache",default:"~/.cache/chezmoi"}},{name:"--color",description:"Colorize output",isPersistent:!0,requiresSeparator:!0,args:{name:"color",default:"auto",suggestions:["true","false","auto"]}},{name:["--config","-c"],description:"Set config file",isPersistent:!0,requiresSeparator:!0,args:{name:"config",default:"~/.config/chezmoi/chezmoi.toml",template:["filepaths"]}},{name:"--config-format",description:"Set config file format",isPersistent:!0,requiresSeparator:!0,args:{name:"config-format",suggestions:["json","toml","yaml"]}},{name:"--cpu-profile",description:"Write a CPU profile to path",isPersistent:!0,hidden:!0,requiresSeparator:!0,args:{name:"cpu-profile",template:["filepaths"]}},{name:"--debug",description:"Include debug information in output",isPersistent:!0},{name:["--destination","-D"],description:"Set destination directory",isPersistent:!0,requiresSeparator:!0,args:{name:"destination",default:"~",template:["folders"]}},{name:["--dry-run","-n"],description:"Do not make any modifications to the destination directory",isPersistent:!0},{name:"--force",description:"Make all changes without prompting",isPersistent:!0},{name:"--gops",description:"Enable gops agent",isPersistent:!0,hidden:!0},{name:"--interactive",description:"Prompt for all changes",isPersistent:!0},{name:["--keep-going","-k"],description:"Keep going as far as possible after an error",isPersistent:!0},{name:"--mode",description:"Mode",isPersistent:!0,requiresSeparator:!0,args:{name:"mode",suggestions:["file","symlink"]}},{name:"--no-pager",description:"Do not use the pager",isPersistent:!0},{name:"--no-tty",description:"Do not attempt to get a TTY for reading passwords",isPersistent:!0},{name:["--output","-o"],description:"Write output to path instead of stdout",isPersistent:!0,requiresSeparator:!0,args:{name:"output",template:["filepaths"]}},{name:"--persistent-state",description:"Set persistent state file",isPersistent:!0,requiresSeparator:!0,args:{name:"persistent-state"}},{name:["--refresh-externals","-R"],description:"Refresh external cache",isPersistent:!0},{name:"--safe",description:"Safely replace files and symlinks",isPersistent:!0,hidden:!0},{name:["--source","-S"],description:"Set source directory",isPersistent:!0,requiresSeparator:!0,args:{name:"source",default:"~/.local/share/chezmoi",template:["folders"]}},{name:"--source-path",description:"Specify targets by source path",isPersistent:!0},{name:"--use-builtin-age",description:"Use builtin age",isPersistent:!0,requiresSeparator:!0,args:{name:"use-builtin-age",default:"auto",suggestions:["true","false","auto"]}},{name:"--use-builtin-git",description:"Use builtin git",isPersistent:!0,requiresSeparator:!0,args:{name:"use-builtin-git",default:"auto",suggestions:["true","false","auto"]}},{name:["--verbose","-v"],description:"Make output more verbose",isPersistent:!0},{name:["--working-tree","-W"],description:"Set working tree directory",isPersistent:!0,requiresSeparator:!0,args:{name:"working-tree",template:"folders"}},{name:["--help","-h"],description:"Display help",isPersistent:!0}]},ze=_e;export{ze as default};