@tabsmith/autocomplete-specs 1.0.0 → 1.0.14
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.
- package/build/@magnolia/cli.js +2 -2
- package/build/@withfig/autocomplete-tools.js +2 -2
- package/build/airflow.js +2 -2
- package/build/ansible-playbook.js +2 -2
- package/build/apt.js +4 -4
- package/build/asr.js +2 -2
- package/build/bun.js +9 -9
- package/build/cargo.js +4 -4
- package/build/cd.js +2 -2
- package/build/chezmoi.js +2 -2
- package/build/cloudflared.js +2 -2
- package/build/coda.js +3 -3
- package/build/codesign.js +2 -2
- package/build/dapr.js +2 -2
- package/build/deno/generators.js +4 -4
- package/build/deno.js +2 -2
- package/build/deployctl.js +2 -2
- package/build/direnv.js +2 -2
- package/build/docker.js +18 -18
- package/build/dotenv-vault.js +2 -2
- package/build/dotnet/dotnet-add.js +2 -2
- package/build/dotnet/dotnet-build.js +2 -2
- package/build/dotnet/dotnet-clean.js +2 -2
- package/build/dotnet/dotnet-format.js +2 -2
- package/build/dotnet/dotnet-list.js +2 -2
- package/build/dotnet/dotnet-migrate.js +2 -2
- package/build/dotnet/dotnet-nuget.js +3 -3
- package/build/dotnet/dotnet-pack.js +2 -2
- package/build/dotnet/dotnet-publish.js +2 -2
- package/build/dotnet/dotnet-remove.js +2 -2
- package/build/dotnet/dotnet-restore.js +2 -2
- package/build/dotnet/dotnet-sln.js +2 -2
- package/build/dotnet/dotnet-store.js +2 -2
- package/build/dotnet/dotnet-test.js +2 -2
- package/build/dotnet/dotnet-tool.js +3 -3
- package/build/dotnet.js +2 -2
- package/build/dtm.js +3 -3
- package/build/dynamic/index.js +1 -1
- package/build/elixir.js +2 -2
- package/build/elm-json.js +2 -2
- package/build/esbuild.js +3 -3
- package/build/file.js +2 -2
- package/build/flutter.js +5 -5
- package/build/gh.js +4 -4
- package/build/git.js +20 -20
- package/build/glow.js +2 -2
- package/build/hub.js +20 -20
- package/build/iex.js +2 -2
- package/build/index.js +1 -1
- package/build/index.json +1 -1
- package/build/java.js +2 -2
- package/build/julia.js +2 -2
- package/build/limactl.js +3 -3
- package/build/man.js +3 -3
- package/build/meteor.js +3 -3
- package/build/mgnl.js +2 -2
- package/build/mix.js +2 -2
- package/build/mongoimport.js +2 -2
- package/build/n.js +3 -3
- package/build/ni.js +2 -2
- package/build/node.js +2 -2
- package/build/npm.js +2 -2
- package/build/nr.js +3 -3
- package/build/nrm.js +2 -2
- package/build/opencode.js +2 -2
- package/build/osascript.js +2 -2
- package/build/osqueryi.js +2 -2
- package/build/pandoc.js +3 -3
- package/build/pdfunite.js +2 -2
- package/build/pi.js +2 -2
- package/build/pipenv.js +2 -2
- package/build/pm2.js +2 -2
- package/build/pnpm.js +23 -24
- package/build/pod.js +2 -2
- package/build/pre-commit.js +126 -126
- package/build/python.js +2 -2
- package/build/python3.js +2 -2
- package/build/r.js +3 -3
- package/build/rails.js +3 -3
- package/build/rancher.js +3 -3
- package/build/react-native.js +5 -5
- package/build/robot.js +2 -2
- package/build/rojo.js +2 -2
- package/build/rollup.js +2 -2
- package/build/rscript.js +2 -2
- package/build/rush.js +5 -5
- package/build/rushx.js +4 -4
- package/build/scc.js +2 -2
- package/build/shortcuts.js +2 -2
- package/build/sidekiq.js +2 -2
- package/build/sqlite3.js +2 -2
- package/build/streamlit.js +2 -2
- package/build/subl.js +2 -2
- package/build/swift.js +2 -2
- package/build/systemctl.js +2 -2
- package/build/ts-node.js +3 -3
- package/build/tsc.js +2 -2
- package/build/tsx.js +2 -2
- package/build/turbo.js +20 -20
- package/build/typst.js +2 -2
- package/build/vsce.js +20 -20
- package/build/wasm-bindgen.js +2 -2
- package/build/yarn.js +4 -4
- package/build/yomo.js +2 -2
- package/package.json +20 -20
- package/build/ai-agents specs.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var ie=Object.create;var q=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var se=Object.getOwnPropertyNames;var re=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty;var
|
|
2
|
-
`),[".DS_Store"]),R=[];for(let j of te)if(j){let
|
|
3
|
-
uget.config starting from the root of drive and ending in the current directory`,args:{name:"root",description:"Specifies the file path to the package to be pushed",generators:Y},options:[{name:["-d","--disable-buffering"],description:"Disables buffering when pushing to an HTTP(S) server to reduce memory usage"},{name:"--force-english-output",description:"Forces the application to run using an invariant, English-based culture"},{name:"--interactive",description:"Allows the command to stop and wait for user input or action. For example, to complete authentication. Available since .NET Core 3.0 SDK"},{name:["-k","--api-key"],description:"The API key for the server",args:{name:"key"}},{name:["-n","--no-symbols"],description:"Doesn't push symbols (even if present)"},{name:"--no-service-endpoint",description:`Doesn't append "api/v2/package" to the source URL. Option available since .NET Core 2.1 SDK`},{name:["-s","--source"],description:"Specifies the server URL. NuGet identifies a UNC or local folder source and simply copies the file there instead of pushing it using HTTP",args:{name:"source"}},{name:"--skip-duplicate",description:"When pushing multiple packages to an HTTP(S) server, treats any 409 Conflict response as a warning so that the push can continue. Available since .NET Core 3.1 SDK"},{name:["-sk","--symbol-api-key"],description:"The API key for the symbol server",args:{name:"key"}},{name:["-ss","--symbol-source"],description:"Specifies the symbol server URL",args:{name:"symbol_source"}},{name:["-t","--timeout"],description:"Specifies the timeout for pushing to a server in seconds. Defaults to 300 seconds (5 minutes). Specifying 0 applies the default value",args:{name:"timeout",isOptional:!0,default:"300"}}]},{name:"add",subcommands:[{name:"source",description:"The dotnet nuget add source command adds a new package source to your NuGet configuration files",args:{name:"package_source",description:"Path to the package source"},options:ee}]},{name:"disable",subcommands:[{name:"source",description:"The dotnet nuget disable source command disables an existing source in your NuGet configuration files",args:{name:"name",description:"Name of the source"},options:[{name:"--configfile",description:"The NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used",args:{name:"file",generators:x}}]}]},{name:"enable",subcommands:[{name:"source",description:"The dotnet nuget enable source command enables an existing source in your NuGet configuration files",args:{name:"name",description:"Name of the source"},options:[{name:"--configfile",description:"The NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used",args:{name:"file",generators:x}}]}]},{name:"list",subcommands:[{name:"source",description:"The dotnet nuget list source command lists all existing sources from your NuGet configuration files"}],options:[{name:"--configfile",description:"The NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used",args:{name:"file",generators:x}},{name:"--format",description:"The format of the list command output: Detailed (the default) and Short",args:{name:"output",suggestions:["Detailed","Short"]}}]},{name:"remove",subcommands:[{name:"source",description:"The dotnet nuget remove source command removes an existing source from your NuGet configuration files",args:{name:"name",description:"Name of the source"},options:[{name:"--configFile",description:"The NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used",args:{name:"file",generators:x}}]}]},{name:"update",subcommands:[{name:"source",description:"The dotnet nuget update source command updates an existing source in your NuGet configuration files",args:{name:"name",description:"Name of the source"},options:ee}]},{name:"verify",description:"The dotnet nuget verify command verifies a signed NuGet package",args:{name:"package-path",description:"Specifies the file path to the package(s) to be verified. Multiple position arguments can be passed in to verify multiple packages",generators:Y},options:[{name:"--all",description:"Specifies that all verifications possible should be performed on the package(s). By default, only signatures are verified"},{name:"--certificate-fingerprint",description:"Verify that the signer certificate matches with one of the specified SHA256 fingerprints. This option can be supplied multiple times to provide multiple fingerprints",args:{name:"fingerprint"}},{name:["-v","--verbosity"],description:"Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. Not supported in every command. See specific command page to determine if this option is available",args:{name:"verbosity",suggestions:["quiet","minimal","normal","detailed","diagnostic"]}}]},{name:"trust",description:"The dotnet nuget trust command manages the trusted signers. By default, NuGet accepts all authors and repositories. These commands allow you to specify only a specific subset of signers whose signatures will be accepted, while rejecting all others",subcommands:[{name:"list",description:"Lists all the trusted signers in the configuration. This option will include all the certificates (with fingerprint and fingerprint algorithm) each signer has. If a certificate has a preceding [U], it means that certificate entry has allowUntrustedRoot set as true",options:_},{name:"sync",description:"Deletes the current list of certificates and replaces them with an up-to-date list from the repository",options:_},{name:"remove",description:"Removes any trusted signers that match the given name",args:{name:"name",description:"The name of the existing trusted signer to remove"},options:_},{name:"author",description:"Adds a trusted signer with the given name, based on the author signature of the package",args:[{name:"name",description:"The name of the trusted signer to add. If NAME already exists in the configuration, the signature is appended"},{name:"package",description:"The given PACKAGE should be a local path to the signed .nupkg file"}],options:[{name:"--allow-untrusted-root",description:"Specifies if the certificate for the trusted signer should be allowed to chain to an untrusted root. This is not recommended"},..._]},{name:"repository",description:"Adds a trusted signer with the given name, based on the repository signature or countersignature of a signed package",args:[{name:"name",description:"The name of the trusted signer to add. If NAME already exists in the configuration, the signature is appended"},{name:"package",description:"The given PACKAGE should be a local path to the signed .nupkg file"}],options:[{name:"--allow-untrusted-root",description:"Specifies if the certificate for the trusted signer should be allowed to chain to an untrusted root. This is not recommended"},{name:"--owners",description:"Semicolon-separated list of trusted owners to further restrict the trust of a repository"},..._]},{name:"certificate",description:"Adds a trusted signer with the given name, based on a certificate fingerprint",args:[{name:"name",description:"The name of the trusted signer to add. If a trusted signer with the given name already exists, the certificate item is added to that signer. Otherwise a trusted author is created with a certificate item from the given certificate information"},{name:"fingerprint",description:"The fingerprint of the certificate"}],options:[{name:"--algorithm",description:"Specifies the hash algorithm used to calculate the certificate fingerprint. Defaults to SHA256. Values supported are SHA256, SHA384 and SHA512"},..._]},{name:"source",description:"Adds a trusted signer based on a given package source",args:{name:"name"},options:[{name:"owners",description:"Semicolon-separated list of trusted owners to further restrict the trust of a repository"},{name:"--source-url",description:"If a source-url is provided, it must be a v3 package source URL (like https://api.nuget.org/v3/index.json). Other package source types are not supported",args:{name:"source-url"}},..._]}]},{name:"sign",description:"The dotnet nuget sign command signs all the packages matching the first argument with a certificate. The certificate with the private key can be obtained from a file or from a certificate installed in a certificate store by providing a subject name or a SHA-1 fingerprint",args:{name:"package-paths",description:"Specifies the file path to the package(s) to be signed. Multiple arguments can be passed in to sign multiple packages",isVariadic:!0},options:[{name:"--certificate-path",description:"Specifies the file path to the certificate to be used in signing the package",args:{name:"path",generators:(0,H.filepaths)({extensions:["pfx"]})}},{name:"--certificate-store-name",description:'Specifies the name of the X.509 certificate store to use to search for the certificate. Defaults to "My", the X.509 certificate store for personal certificates. This option should be used when specifying the certificate via --certificate-subject-name or --certificate-fingerprint options',args:{name:"storename"}},{name:"--certificate-store-location",description:'Specifies the name of the X.509 certificate store use to search for the certificate. Defaults to "CurrentUser", the X.509 certificate store used by the current user. This option should be used when specifying the certificate via --certificate-subject-name or --certificate-fingerprint options',args:{name:"location"}},{name:"--certificate-subject-name",description:"Specifies the subject name of the certificate used to search a local certificate store for the certificate. The search is a case-insensitive string comparison using the supplied value, which will find all certificates with the subject name containing that string, regardless of other subject values. The certificate store can be specified by --certificate-store-name and --certificate-store-location options",args:{name:"subjectname"}},{name:"--certificate-fingerprint",description:"SHA-1 fingerprint of the certificate used to search a local certificate store for the certificate",args:{name:"fingerprint"}},{name:"--certificate-password",description:"Specifies the certificate password, if needed. If a certificate is password protected but no password is provided, the sign command will fail",args:{name:"password"}},{name:"--hash-algorithm",description:"Hash algorithm to be used to sign the package. Defaults to SHA256. Possible values are SHA256, SHA384, and SHA512",args:{name:"algorithm",suggestions:["SHA256","SHA384","SHA512"]}},{name:["-o","--output"],description:"Specifies the directory where the signed package should be saved. If this option is not specified, by default the original package is overwritten by the signed package",args:{name:"directory",template:"folders"}},{name:"--overwrite",description:"Indicate that the current signature should be overwritten. By default the command will fail if the package already has a signature",isDangerous:!0},{name:"--timestamp-hash-algorithm",description:"Hash algorithm to be used by the RFC 3161 timestamp server. Defaults to SHA256",args:{name:"algorithm",suggestions:["SHA256"]}},{name:"--timestamper",description:"URL to an RFC 3161 timestamping server",args:{name:"url"}},{name:["-v","--verbosity"],description:"Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. The default is minimal",args:{name:"verbosity",suggestions:["quiet","minimal","normal","detailed","diagnostic"]}}]}]},Ge=Ie;export{Ge as default};
|
|
1
|
+
var ie=Object.create;var q=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var se=Object.getOwnPropertyNames;var re=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ae=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of se(t))!oe.call(e,s)&&s!==i&&q(e,s,{get:()=>t[s],enumerable:!(n=ne(t,s))||n.enumerable});return e};var ce=(e,t,i)=>(i=e!=null?ie(re(e)):{},ae(t||!e||!e.__esModule?q(i,"default",{value:e,enumerable:!0}):i,e));var U=x(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.shellExpand=A.ensureTrailingSlash=void 0;var ue=e=>e.endsWith("/")?e:`${e}/`;A.ensureTrailingSlash=ue;var le=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,de=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,s=>{var r;let a=s.slice(1);return(r=t[a])!==null&&r!==void 0?r:s}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(s,r,a)=>{var u,l;return(l=(u=t[r])!==null&&u!==void 0?u:a)!==null&&l!==void 0?l:s}),fe=(e,t)=>{var i;let{environmentVariables:n}=t;return de(le(e,(i=n?.HOME)!==null&&i!==void 0?i:"~"),n)};A.shellExpand=fe});var W=x(b=>{"use strict";var pe=b&&b.__awaiter||function(e,t,i,n){function s(r){return r instanceof i?r:new i(function(a){a(r)})}return new(i||(i=Promise))(function(r,a){function u(o){try{c(n.next(o))}catch(d){a(d)}}function l(o){try{c(n.throw(o))}catch(d){a(d)}}function c(o){o.done?r(o.value):s(o.value).then(u,l)}c((n=n.apply(e,t||[])).next())})};Object.defineProperty(b,"__esModule",{value:!0});b.filepaths=b.folders=b.getCurrentInsertedDirectory=void 0;b.sortFilesAlphabetically=K;var E=U();function K(e,t=[]){let i=t.map(s=>s.toLowerCase()),n=e.filter(s=>!i.includes(s.toLowerCase()));return[...n.filter(s=>!s.startsWith(".")).sort((s,r)=>s.localeCompare(r)),...n.filter(s=>s.startsWith(".")).sort((s,r)=>s.localeCompare(r)),"../"]}var he=(e,t,i)=>{if(e===null)return"/";let n=(0,E.shellExpand)(t,i),s=n.slice(0,n.lastIndexOf("/")+1);return s===""?(0,E.ensureTrailingSlash)(e):s.startsWith("/")?s:`${(0,E.ensureTrailingSlash)(e)}${s}`};b.getCurrentInsertedDirectory=he;function F(e={}){let{extensions:t=[],equals:i=[],matches:n,filterFolders:s=!1,editFileSuggestions:r,editFolderSuggestions:a,rootDirectory:u,showFolders:l="always"}=e,c=new Set(t),o=new Set(i),d=()=>t.length>0||i.length>0||n,m=(p=[])=>d()?p.filter(({name:g="",type:w})=>{if(!s&&w==="folder"||o.has(g)||n&&g.match(n))return!0;let[,...f]=g.split(".");if(f.length>=1){let y=f.length-1,S=f[y];do{if(c.has(S))return!0;y-=1,S=[f[y],S].join(".")}while(y>=0)}return!1}):p,T=(p=[])=>!r&&!a?p:p.map(g=>Object.assign(Object.assign({},g),(g.type==="file"?r:a)||{}));return{trigger:(p,g)=>{let w=p.lastIndexOf("/"),f=g.lastIndexOf("/");return w!==f?!0:w===-1&&f===-1?!1:p.slice(0,w)!==g.slice(0,f)},getQueryTerm:p=>p.slice(p.lastIndexOf("/")+1),custom:(p,g,w)=>pe(this,void 0,void 0,function*(){var f;let{isDangerous:y,currentWorkingDirectory:S,searchTerm:h}=w,k=(f=(0,b.getCurrentInsertedDirectory)(u??S,h,w))!==null&&f!==void 0?f:"/";try{let V=yield g({command:"ls",args:["-1ApL"],cwd:k}),te=K(V.stdout.split(`
|
|
2
|
+
`),[".DS_Store"]),R=[];for(let j of te)if(j){let C=j.endsWith("/")?"folders":"filepaths";(C==="filepaths"&&l!=="only"||C==="folders"&&l!=="never")&&R.push({type:C==="filepaths"?"file":"folder",name:j,insertValue:j,isDangerous:y,context:{templateType:C}})}return T(m(R))}catch{return[]}})}}b.folders=Object.assign(()=>F({showFolders:"only"}),Object.freeze(F({showFolders:"only"})));b.filepaths=Object.assign(F,Object.freeze(F()))});var z=x(O=>{"use strict";var N=O&&O.__awaiter||function(e,t,i,n){function s(r){return r instanceof i?r:new i(function(a){a(r)})}return new(i||(i=Promise))(function(r,a){function u(o){try{c(n.next(o))}catch(d){a(d)}}function l(o){try{c(n.throw(o))}catch(d){a(d)}}function c(o){o.done?r(o.value):s(o.value).then(u,l)}c((n=n.apply(e,t||[])).next())})};Object.defineProperty(O,"__esModule",{value:!0});O.valueList=ge;O.keyValue=me;O.keyValueList=ve;var B=new Map;function L(e,t){return e.length===0?t:t.map(i=>i.insertValue?i:Object.assign(Object.assign({},i),{insertValue:i.name+e}))}function $(e,t,i){return N(this,void 0,void 0,function*(){if(typeof e=="function"){let n=yield e(...i);return L(t,n)}if(typeof e[0]=="string"){let n=e.map(s=>({name:s}));return L(t,n)}return L(t,e)})}function P(e,t,i,n){return N(this,void 0,void 0,function*(){if(i||Array.isArray(e)){let s=B.get(e);return s===void 0&&(s=yield $(e,t,n),B.set(e,s)),s}return $(e,t,n)})}function X(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function G(e,...t){return Math.max(...t.map(i=>e.lastIndexOf(i)))}function M(e,t){let i=new Set(e);return t.filter(n=>{var s;return typeof n.name=="string"?!i.has(n.name):!(!((s=n.name)===null||s===void 0)&&s.some(r=>i.has(r)))})}function ge({delimiter:e=",",values:t=[],cache:i=!1,insertDelimiter:n=!1,allowRepeatedValues:s=!1}){return{trigger:(r,a)=>r.lastIndexOf(e)!==a.lastIndexOf(e),getQueryTerm:r=>r.slice(r.lastIndexOf(e)+e.length),custom:(...r)=>N(this,void 0,void 0,function*(){var a;let u=yield P(t,n?e:"",i,r);if(s)return u;let[l]=r,c=(a=l[l.length-1])===null||a===void 0?void 0:a.split(e);return M(c,u)})}}function me({separator:e="=",keys:t=[],values:i=[],cache:n=!1,insertSeparator:s=!0}){return{trigger:(r,a)=>r.indexOf(e)!==a.indexOf(e),getQueryTerm:r=>r.slice(r.indexOf(e)+1),custom:(...r)=>N(this,void 0,void 0,function*(){let[a]=r,l=!a[a.length-1].includes(e),c=l?t:i,o=X(l,n);return P(c,l&&s?e:"",o,r)})}}function ve({separator:e="=",delimiter:t=",",keys:i=[],values:n=[],cache:s=!1,insertSeparator:r=!0,insertDelimiter:a=!1,allowRepeatedKeys:u=!1,allowRepeatedValues:l=!0}){return{trigger:(c,o)=>{let d=G(c,e,t),m=G(o,e,t);return d!==m},getQueryTerm:c=>{let o=G(c,e,t);return c.slice(o+1)},custom:(...c)=>N(this,void 0,void 0,function*(){let[o]=c,d=o[o.length-1],m=G(d,e,t),T=m===-1||d.slice(m,m+e.length)!==e,p=T?i:n,g=X(T,s),f=yield P(p,T?r?e:"":a?t:"",g,c);if(T){if(u)return f;let S=d.split(t).map(h=>h.slice(0,h.indexOf(e)));return M(S,f)}if(l)return f;let y=d.split(t).map(S=>S.slice(S.indexOf(e)+e.length));return M(y,f)})}}});var J=x(D=>{"use strict";var ye=D&&D.__awaiter||function(e,t,i,n){function s(r){return r instanceof i?r:new i(function(a){a(r)})}return new(i||(i=Promise))(function(r,a){function u(o){try{c(n.next(o))}catch(d){a(d)}}function l(o){try{c(n.throw(o))}catch(d){a(d)}}function c(o){o.done?r(o.value):s(o.value).then(u,l)}c((n=n.apply(e,t||[])).next())})};Object.defineProperty(D,"__esModule",{value:!0});D.ai=ke;var be=4097,we=4,Se=.8,Te=be*we*Se;function ke({name:e,prompt:t,message:i,postProcess:n,temperature:s,splitOn:r}){return{scriptTimeout:15e3,custom:(a,u,l)=>ye(this,void 0,void 0,function*(){var c,o;let d=yield u({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(d.stdout))return[];let m=typeof t=="function"?yield t({tokens:a,executeCommand:u,generatorContext:l}):t,T=typeof i=="function"?yield i({tokens:a,executeCommand:u,generatorContext:l}):i;if(T===null||T.length===0)return console.warn("No message provided to AI generator"),[];let p=Te-((c=m?.length)!==null&&c!==void 0?c:0),g={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...m?[{role:"system",content:m}]:[],{role:"user",content:T.slice(0,p)}],temperature:s},w=JSON.stringify(g),f=yield u({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",w]}),y=JSON.parse(f.stdout);return(o=y?.choices.map(h=>{var k;return(k=h?.message)===null||k===void 0?void 0:k.content}).filter(h=>typeof h=="string").flatMap(h=>r?h.split(r).filter(k=>k.trim().length>0):[h]).map(h=>{if(n)return n(h);let k=h.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:k,insertValue:`'${k}'`,description:"Generated by Fig AI"}}))!==null&&o!==void 0?o:[]})}}});var Z=x(v=>{"use strict";var Oe=v&&v.__createBinding||(Object.create?function(e,t,i,n){n===void 0&&(n=i);var s=Object.getOwnPropertyDescriptor(t,i);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,s)}:function(e,t,i,n){n===void 0&&(n=i),e[n]=t[i]}),_e=v&&v.__exportStar||function(e,t){for(var i in e)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&Oe(t,e,i)};Object.defineProperty(v,"__esModule",{value:!0});v.ai=v.folders=v.filepaths=void 0;var Q=W();Object.defineProperty(v,"filepaths",{enumerable:!0,get:function(){return Q.filepaths}});Object.defineProperty(v,"folders",{enumerable:!0,get:function(){return Q.folders}});_e(z(),v);var Ae=J();Object.defineProperty(v,"ai",{enumerable:!0,get:function(){return Ae.ai}})});var H=ce(Z(),1),I=(0,H.filepaths)({equals:"nuget.config"}),Y=(0,H.filepaths)({extensions:["nupkg"]}),ee=[{name:"--configfile",description:"The NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used",args:{name:"file",generators:I}},{name:["-n","--name"],description:"Name of the source",args:{name:"name"}},{name:["-p","--password"],description:"Password to be used when connecting to an authenticated source",args:{name:"password"}},{name:"--store-password-in-clear-text",description:"Enables storing portable package source credentials by disabling password encryption",args:{name:"clear-text"}},{name:["-u","--username"],description:"Username to be used when connecting to an authenticated source",args:{name:"username"}},{name:"--valid-authentication-types",description:"Comma-separated list of valid authentication types for this source. Set this to basic if the server advertises NTLM or Negotiate and your credentials must be sent using the Basic mechanism, for instance when using a PAT with on-premises Azure DevOps Server. Other valid values include negotiate, kerberos, ntlm, and digest, but these values are unlikely to be useful",args:{name:"types",suggestions:["negotiate","kerberos","ntlm","digest"]}}],_=[{name:"--configfile",description:"The NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used",args:{name:"file",generators:I}},{name:["-v","--verbosity"],description:"Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. The default is minimal",args:{name:"verbosity",suggestions:["quiet","minimal","normal","detailed","diagnostic"]}}],Ie={name:"nuget",subcommands:[{name:"delete",description:"The dotnet nuget delete command deletes or unlists a package from the server. For nuget.org, the action is to unlist the package",isDangerous:!0,args:[{name:"package_name",description:"Name/ID of the package to delete"},{name:"package_version",description:"Version of the package to delete"}],options:[{name:"--force-english-output",description:"Forces the application to run using an invariant, English-based culture"},{name:"--interactive",description:"Allows the command to stop and wait for user input or action. For example, to complete authentication. Available since .NET Core 3.0 SDK"},{name:["-k","--api-key"],description:"The API key for the server",args:{name:"key"}},{name:"--no-service-endpoint",description:`Doesn't append "api/v2/package" to the source URL. Option available since .NET Core 2.1 SDK`},{name:"--non-interactive",description:"Doesn't prompt for user input or confirmations"},{name:["-s","--source"],description:"Specifies the server URL. Supported URLs for nuget.org include https://www.nuget.org, https://www.nuget.org/api/v3, and https://www.nuget.org/api/v2/package. For private feeds, replace the host name (for example, %hostname%/api/v3)",args:{name:"source"}}]},{name:"locals",description:"The dotnet nuget locals command clears or lists local NuGet resources in the http-request cache, temporary cache, or machine-wide global packages folder",args:{name:"cache_location",suggestions:["all","http-cache","global-packages","temp"]},options:[{name:["-c","--clear"],description:"The clear option executes a clear operation on the specified cache type. The contents of the cache directories are deleted recursively. The executing user/group must have permission to the files in the cache directories. If not, an error is displayed indicating the files/folders that weren't cleared"},{name:["-l","--list"],description:"The list option is used to display the location of the specified cache type"}]},{name:"push",description:`The dotnet nuget push command pushes a package to the server and publishes it. The push command uses server and credential details found in the system's NuGet config file or chain of config files. For more information on config files, see Configuring NuGet Behavior. NuGet's default configuration is obtained by loading %AppData%NuGetNuGet.config (Windows) or $HOME/.local/share (Linux/macOS), then loading any nuget.config or .nuget
|
|
3
|
+
uget.config starting from the root of drive and ending in the current directory`,args:{name:"root",description:"Specifies the file path to the package to be pushed",generators:Y},options:[{name:["-d","--disable-buffering"],description:"Disables buffering when pushing to an HTTP(S) server to reduce memory usage"},{name:"--force-english-output",description:"Forces the application to run using an invariant, English-based culture"},{name:"--interactive",description:"Allows the command to stop and wait for user input or action. For example, to complete authentication. Available since .NET Core 3.0 SDK"},{name:["-k","--api-key"],description:"The API key for the server",args:{name:"key"}},{name:["-n","--no-symbols"],description:"Doesn't push symbols (even if present)"},{name:"--no-service-endpoint",description:`Doesn't append "api/v2/package" to the source URL. Option available since .NET Core 2.1 SDK`},{name:["-s","--source"],description:"Specifies the server URL. NuGet identifies a UNC or local folder source and simply copies the file there instead of pushing it using HTTP",args:{name:"source"}},{name:"--skip-duplicate",description:"When pushing multiple packages to an HTTP(S) server, treats any 409 Conflict response as a warning so that the push can continue. Available since .NET Core 3.1 SDK"},{name:["-sk","--symbol-api-key"],description:"The API key for the symbol server",args:{name:"key"}},{name:["-ss","--symbol-source"],description:"Specifies the symbol server URL",args:{name:"symbol_source"}},{name:["-t","--timeout"],description:"Specifies the timeout for pushing to a server in seconds. Defaults to 300 seconds (5 minutes). Specifying 0 applies the default value",args:{name:"timeout",isOptional:!0,default:"300"}}]},{name:"add",subcommands:[{name:"source",description:"The dotnet nuget add source command adds a new package source to your NuGet configuration files",args:{name:"package_source",description:"Path to the package source"},options:ee}]},{name:"disable",subcommands:[{name:"source",description:"The dotnet nuget disable source command disables an existing source in your NuGet configuration files",args:{name:"name",description:"Name of the source"},options:[{name:"--configfile",description:"The NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used",args:{name:"file",generators:I}}]}]},{name:"enable",subcommands:[{name:"source",description:"The dotnet nuget enable source command enables an existing source in your NuGet configuration files",args:{name:"name",description:"Name of the source"},options:[{name:"--configfile",description:"The NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used",args:{name:"file",generators:I}}]}]},{name:"list",subcommands:[{name:"source",description:"The dotnet nuget list source command lists all existing sources from your NuGet configuration files"}],options:[{name:"--configfile",description:"The NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used",args:{name:"file",generators:I}},{name:"--format",description:"The format of the list command output: Detailed (the default) and Short",args:{name:"output",suggestions:["Detailed","Short"]}}]},{name:"remove",subcommands:[{name:"source",description:"The dotnet nuget remove source command removes an existing source from your NuGet configuration files",args:{name:"name",description:"Name of the source"},options:[{name:"--configFile",description:"The NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used",args:{name:"file",generators:I}}]}]},{name:"update",subcommands:[{name:"source",description:"The dotnet nuget update source command updates an existing source in your NuGet configuration files",args:{name:"name",description:"Name of the source"},options:ee}]},{name:"verify",description:"The dotnet nuget verify command verifies a signed NuGet package",args:{name:"package-path",description:"Specifies the file path to the package(s) to be verified. Multiple position arguments can be passed in to verify multiple packages",generators:Y},options:[{name:"--all",description:"Specifies that all verifications possible should be performed on the package(s). By default, only signatures are verified"},{name:"--certificate-fingerprint",description:"Verify that the signer certificate matches with one of the specified SHA256 fingerprints. This option can be supplied multiple times to provide multiple fingerprints",args:{name:"fingerprint"}},{name:["-v","--verbosity"],description:"Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. Not supported in every command. See specific command page to determine if this option is available",args:{name:"verbosity",suggestions:["quiet","minimal","normal","detailed","diagnostic"]}}]},{name:"trust",description:"The dotnet nuget trust command manages the trusted signers. By default, NuGet accepts all authors and repositories. These commands allow you to specify only a specific subset of signers whose signatures will be accepted, while rejecting all others",subcommands:[{name:"list",description:"Lists all the trusted signers in the configuration. This option will include all the certificates (with fingerprint and fingerprint algorithm) each signer has. If a certificate has a preceding [U], it means that certificate entry has allowUntrustedRoot set as true",options:_},{name:"sync",description:"Deletes the current list of certificates and replaces them with an up-to-date list from the repository",options:_},{name:"remove",description:"Removes any trusted signers that match the given name",args:{name:"name",description:"The name of the existing trusted signer to remove"},options:_},{name:"author",description:"Adds a trusted signer with the given name, based on the author signature of the package",args:[{name:"name",description:"The name of the trusted signer to add. If NAME already exists in the configuration, the signature is appended"},{name:"package",description:"The given PACKAGE should be a local path to the signed .nupkg file"}],options:[{name:"--allow-untrusted-root",description:"Specifies if the certificate for the trusted signer should be allowed to chain to an untrusted root. This is not recommended"},..._]},{name:"repository",description:"Adds a trusted signer with the given name, based on the repository signature or countersignature of a signed package",args:[{name:"name",description:"The name of the trusted signer to add. If NAME already exists in the configuration, the signature is appended"},{name:"package",description:"The given PACKAGE should be a local path to the signed .nupkg file"}],options:[{name:"--allow-untrusted-root",description:"Specifies if the certificate for the trusted signer should be allowed to chain to an untrusted root. This is not recommended"},{name:"--owners",description:"Semicolon-separated list of trusted owners to further restrict the trust of a repository"},..._]},{name:"certificate",description:"Adds a trusted signer with the given name, based on a certificate fingerprint",args:[{name:"name",description:"The name of the trusted signer to add. If a trusted signer with the given name already exists, the certificate item is added to that signer. Otherwise a trusted author is created with a certificate item from the given certificate information"},{name:"fingerprint",description:"The fingerprint of the certificate"}],options:[{name:"--algorithm",description:"Specifies the hash algorithm used to calculate the certificate fingerprint. Defaults to SHA256. Values supported are SHA256, SHA384 and SHA512"},..._]},{name:"source",description:"Adds a trusted signer based on a given package source",args:{name:"name"},options:[{name:"owners",description:"Semicolon-separated list of trusted owners to further restrict the trust of a repository"},{name:"--source-url",description:"If a source-url is provided, it must be a v3 package source URL (like https://api.nuget.org/v3/index.json). Other package source types are not supported",args:{name:"source-url"}},..._]}]},{name:"sign",description:"The dotnet nuget sign command signs all the packages matching the first argument with a certificate. The certificate with the private key can be obtained from a file or from a certificate installed in a certificate store by providing a subject name or a SHA-1 fingerprint",args:{name:"package-paths",description:"Specifies the file path to the package(s) to be signed. Multiple arguments can be passed in to sign multiple packages",isVariadic:!0},options:[{name:"--certificate-path",description:"Specifies the file path to the certificate to be used in signing the package",args:{name:"path",generators:(0,H.filepaths)({extensions:["pfx"]})}},{name:"--certificate-store-name",description:'Specifies the name of the X.509 certificate store to use to search for the certificate. Defaults to "My", the X.509 certificate store for personal certificates. This option should be used when specifying the certificate via --certificate-subject-name or --certificate-fingerprint options',args:{name:"storename"}},{name:"--certificate-store-location",description:'Specifies the name of the X.509 certificate store use to search for the certificate. Defaults to "CurrentUser", the X.509 certificate store used by the current user. This option should be used when specifying the certificate via --certificate-subject-name or --certificate-fingerprint options',args:{name:"location"}},{name:"--certificate-subject-name",description:"Specifies the subject name of the certificate used to search a local certificate store for the certificate. The search is a case-insensitive string comparison using the supplied value, which will find all certificates with the subject name containing that string, regardless of other subject values. The certificate store can be specified by --certificate-store-name and --certificate-store-location options",args:{name:"subjectname"}},{name:"--certificate-fingerprint",description:"SHA-1 fingerprint of the certificate used to search a local certificate store for the certificate",args:{name:"fingerprint"}},{name:"--certificate-password",description:"Specifies the certificate password, if needed. If a certificate is password protected but no password is provided, the sign command will fail",args:{name:"password"}},{name:"--hash-algorithm",description:"Hash algorithm to be used to sign the package. Defaults to SHA256. Possible values are SHA256, SHA384, and SHA512",args:{name:"algorithm",suggestions:["SHA256","SHA384","SHA512"]}},{name:["-o","--output"],description:"Specifies the directory where the signed package should be saved. If this option is not specified, by default the original package is overwritten by the signed package",args:{name:"directory",template:"folders"}},{name:"--overwrite",description:"Indicate that the current signature should be overwritten. By default the command will fail if the package already has a signature",isDangerous:!0},{name:"--timestamp-hash-algorithm",description:"Hash algorithm to be used by the RFC 3161 timestamp server. Defaults to SHA256",args:{name:"algorithm",suggestions:["SHA256"]}},{name:"--timestamper",description:"URL to an RFC 3161 timestamping server",args:{name:"url"}},{name:["-v","--verbosity"],description:"Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. The default is minimal",args:{name:"verbosity",suggestions:["quiet","minimal","normal","detailed","diagnostic"]}}]}]},Ge=Ie;export{Ge as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var U=Object.create;var R=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var
|
|
2
|
-
`),[".DS_Store"]),q=[];for(let D of Z)if(D){let F=D.endsWith("/")?"folders":"filepaths";(F==="filepaths"&&u!=="only"||F==="folders"&&u!=="never")&&q.push({type:F==="filepaths"?"file":"folder",name:D,insertValue:D,isDangerous:
|
|
1
|
+
var U=Object.create;var R=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ie=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ee(t))!ne.call(e,r)&&r!==n&&R(e,r,{get:()=>t[r],enumerable:!(i=Y(t,r))||i.enumerable});return e};var re=(e,t,n)=>(n=e!=null?U(te(e)):{},ie(t||!e||!e.__esModule?R(n,"default",{value:e,enumerable:!0}):n,e));var G=I(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.shellExpand=x.ensureTrailingSlash=void 0;var oe=e=>e.endsWith("/")?e:`${e}/`;x.ensureTrailingSlash=oe;var se=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,ae=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,r=>{var o;let a=r.slice(1);return(o=t[a])!==null&&o!==void 0?o:r}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(r,o,a)=>{var c,u;return(u=(c=t[o])!==null&&c!==void 0?c:a)!==null&&u!==void 0?u:r}),le=(e,t)=>{var n;let{environmentVariables:i}=t;return ae(se(e,(n=i?.HOME)!==null&&n!==void 0?n:"~"),i)};x.shellExpand=le});var K=I(b=>{"use strict";var ce=b&&b.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function c(s){try{l(i.next(s))}catch(f){a(f)}}function u(s){try{l(i.throw(s))}catch(f){a(f)}}function l(s){s.done?o(s.value):r(s.value).then(c,u)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(b,"__esModule",{value:!0});b.filepaths=b.folders=b.getCurrentInsertedDirectory=void 0;b.sortFilesAlphabetically=P;var N=G();function P(e,t=[]){let n=t.map(r=>r.toLowerCase()),i=e.filter(r=>!n.includes(r.toLowerCase()));return[...i.filter(r=>!r.startsWith(".")).sort((r,o)=>r.localeCompare(o)),...i.filter(r=>r.startsWith(".")).sort((r,o)=>r.localeCompare(o)),"../"]}var ue=(e,t,n)=>{if(e===null)return"/";let i=(0,N.shellExpand)(t,n),r=i.slice(0,i.lastIndexOf("/")+1);return r===""?(0,N.ensureTrailingSlash)(e):r.startsWith("/")?r:`${(0,N.ensureTrailingSlash)(e)}${r}`};b.getCurrentInsertedDirectory=ue;function V(e={}){let{extensions:t=[],equals:n=[],matches:i,filterFolders:r=!1,editFileSuggestions:o,editFolderSuggestions:a,rootDirectory:c,showFolders:u="always"}=e,l=new Set(t),s=new Set(n),f=()=>t.length>0||n.length>0||i,m=(p=[])=>f()?p.filter(({name:g="",type:_})=>{if(!r&&_==="folder"||s.has(g)||i&&g.match(i))return!0;let[,...d]=g.split(".");if(d.length>=1){let v=d.length-1,O=d[v];do{if(l.has(O))return!0;v-=1,O=[d[v],O].join(".")}while(v>=0)}return!1}):p,S=(p=[])=>!o&&!a?p:p.map(g=>Object.assign(Object.assign({},g),(g.type==="file"?o:a)||{}));return{trigger:(p,g)=>{let _=p.lastIndexOf("/"),d=g.lastIndexOf("/");return _!==d?!0:_===-1&&d===-1?!1:p.slice(0,_)!==g.slice(0,d)},getQueryTerm:p=>p.slice(p.lastIndexOf("/")+1),custom:(p,g,_)=>ce(this,void 0,void 0,function*(){var d;let{isDangerous:v,currentWorkingDirectory:O,searchTerm:h}=_,j=(d=(0,b.getCurrentInsertedDirectory)(c??O,h,_))!==null&&d!==void 0?d:"/";try{let E=yield g({command:"ls",args:["-1ApL"],cwd:j}),Z=P(E.stdout.split(`
|
|
2
|
+
`),[".DS_Store"]),q=[];for(let D of Z)if(D){let F=D.endsWith("/")?"folders":"filepaths";(F==="filepaths"&&u!=="only"||F==="folders"&&u!=="never")&&q.push({type:F==="filepaths"?"file":"folder",name:D,insertValue:D,isDangerous:v,context:{templateType:F}})}return S(m(q))}catch{return[]}})}}b.folders=Object.assign(()=>V({showFolders:"only"}),Object.freeze(V({showFolders:"only"})));b.filepaths=Object.assign(V,Object.freeze(V()))});var J=I(w=>{"use strict";var T=w&&w.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function c(s){try{l(i.next(s))}catch(f){a(f)}}function u(s){try{l(i.throw(s))}catch(f){a(f)}}function l(s){s.done?o(s.value):r(s.value).then(c,u)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(w,"__esModule",{value:!0});w.valueList=fe;w.keyValue=de;w.keyValueList=pe;var W=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 $(e,t,n){return T(this,void 0,void 0,function*(){if(typeof e=="function"){let i=yield e(...n);return M(t,i)}if(typeof e[0]=="string"){let i=e.map(r=>({name:r}));return M(t,i)}return M(t,e)})}function L(e,t,n,i){return T(this,void 0,void 0,function*(){if(n||Array.isArray(e)){let r=W.get(e);return r===void 0&&(r=yield $(e,t,i),W.set(e,r)),r}return $(e,t,i)})}function z(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function k(e,...t){return Math.max(...t.map(n=>e.lastIndexOf(n)))}function C(e,t){let n=new Set(e);return t.filter(i=>{var r;return typeof i.name=="string"?!n.has(i.name):!(!((r=i.name)===null||r===void 0)&&r.some(o=>n.has(o)))})}function fe({delimiter:e=",",values:t=[],cache:n=!1,insertDelimiter:i=!1,allowRepeatedValues:r=!1}){return{trigger:(o,a)=>o.lastIndexOf(e)!==a.lastIndexOf(e),getQueryTerm:o=>o.slice(o.lastIndexOf(e)+e.length),custom:(...o)=>T(this,void 0,void 0,function*(){var a;let c=yield L(t,i?e:"",n,o);if(r)return c;let[u]=o,l=(a=u[u.length-1])===null||a===void 0?void 0:a.split(e);return C(l,c)})}}function de({separator:e="=",keys:t=[],values:n=[],cache:i=!1,insertSeparator:r=!0}){return{trigger:(o,a)=>o.indexOf(e)!==a.indexOf(e),getQueryTerm:o=>o.slice(o.indexOf(e)+1),custom:(...o)=>T(this,void 0,void 0,function*(){let[a]=o,u=!a[a.length-1].includes(e),l=u?t:n,s=z(u,i);return L(l,u&&r?e:"",s,o)})}}function pe({separator:e="=",delimiter:t=",",keys:n=[],values:i=[],cache:r=!1,insertSeparator:o=!0,insertDelimiter:a=!1,allowRepeatedKeys:c=!1,allowRepeatedValues:u=!0}){return{trigger:(l,s)=>{let f=k(l,e,t),m=k(s,e,t);return f!==m},getQueryTerm:l=>{let s=k(l,e,t);return l.slice(s+1)},custom:(...l)=>T(this,void 0,void 0,function*(){let[s]=l,f=s[s.length-1],m=k(f,e,t),S=m===-1||f.slice(m,m+e.length)!==e,p=S?n:i,g=z(S,r),d=yield L(p,S?o?e:"":a?t:"",g,l);if(S){if(c)return d;let O=f.split(t).map(h=>h.slice(0,h.indexOf(e)));return C(O,d)}if(u)return d;let v=f.split(t).map(O=>O.slice(O.indexOf(e)+e.length));return C(v,d)})}}});var Q=I(A=>{"use strict";var he=A&&A.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function c(s){try{l(i.next(s))}catch(f){a(f)}}function u(s){try{l(i.throw(s))}catch(f){a(f)}}function l(s){s.done?o(s.value):r(s.value).then(c,u)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(A,"__esModule",{value:!0});A.ai=be;var ge=4097,me=4,ye=.8,ve=ge*me*ye;function be({name:e,prompt:t,message:n,postProcess:i,temperature:r,splitOn:o}){return{scriptTimeout:15e3,custom:(a,c,u)=>he(this,void 0,void 0,function*(){var l,s;let f=yield c({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(f.stdout))return[];let m=typeof t=="function"?yield t({tokens:a,executeCommand:c,generatorContext:u}):t,S=typeof n=="function"?yield n({tokens:a,executeCommand:c,generatorContext:u}):n;if(S===null||S.length===0)return console.warn("No message provided to AI generator"),[];let p=ve-((l=m?.length)!==null&&l!==void 0?l:0),g={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...m?[{role:"system",content:m}]:[],{role:"user",content:S.slice(0,p)}],temperature:r},_=JSON.stringify(g),d=yield c({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",_]}),v=JSON.parse(d.stdout);return(s=v?.choices.map(h=>{var j;return(j=h?.message)===null||j===void 0?void 0:j.content}).filter(h=>typeof h=="string").flatMap(h=>o?h.split(o).filter(j=>j.trim().length>0):[h]).map(h=>{if(i)return i(h);let j=h.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:j,insertValue:`'${j}'`,description:"Generated by Fig AI"}}))!==null&&s!==void 0?s:[]})}}});var H=I(y=>{"use strict";var _e=y&&y.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),Oe=y&&y.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&_e(t,e,n)};Object.defineProperty(y,"__esModule",{value:!0});y.ai=y.folders=y.filepaths=void 0;var B=K();Object.defineProperty(y,"filepaths",{enumerable:!0,get:function(){return B.filepaths}});Object.defineProperty(y,"folders",{enumerable:!0,get:function(){return B.folders}});Oe(J(),y);var Se=Q();Object.defineProperty(y,"ai",{enumerable:!0,get:function(){return Se.ai}})});var X=re(H(),1),je={name:"pack",description:"The dotnet pack command builds the project and creates NuGet packages. The result of this command is a NuGet package (that is, a .nupkg file)",args:{name:"project",description:"The project or solution to pack. It's either a path to a csproj, vbproj, or fsproj file, or to a solution file or directory. If not specified, the command searches the current directory for a project or solution file",generators:(0,X.filepaths)({extensions:["csproj","sln"]})},options:[{name:["-c","--configuration"],description:"Defines the build configuration. The default for most projects is Debug, but you can override the build configuration settings in your project",args:{name:"configuration",suggestions:["Debug","Release"]}},{name:"--force",description:"Forces all dependencies to be resolved even if the last restore was successful. Specifying this flag is the same as deleting the project.assets.json file"},{name:"--include-source",description:"Includes the debug symbols NuGet packages in addition to the regular NuGet packages in the output directory. The sources files are included in the src folder within the symbols package"},{name:"--include-symbols",description:"Includes the debug symbols NuGet packages in addition to the regular NuGet packages in the output directory"},{name:"--interactive",description:"Allows the command to stop and wait for user input or action. For example, to complete authentication. Available since .NET Core 3.0 SDK"},{name:"--no-build",description:"Doesn't build the project before packing. It also implicitly sets the --no-restore flag"},{name:"--no-dependencies",description:"Ignores project-to-project references and only restores the root project"},{name:"--no-restore",description:"Doesn't execute an implicit restore when running the command"},{name:"--nologo",description:"Doesn't display the startup banner or the copyright message. Available since .NET Core 3.0 SDK"},{name:["-o","--output"],description:"Places the built packages in the directory specified",args:{name:"directory",template:"folders"}},{name:"--runtime",description:"Specifies the target runtime to restore packages for. For a list of Runtime Identifiers (RIDs), see the RID catalog",args:{name:"runtime"}},{name:["-s","--serviceable"],description:"Sets the serviceable flag in the package"},{name:"--version-suffix",description:"Defines the value for the $(VersionSuffix) MSBuild property in the project",args:{name:"suffix"}},{name:["-v","--verbosity"],description:"Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. For more information, see LoggerVerbosity",args:{name:"verbosity",suggestions:["quiet","minimal","normal","detailed","diagnostic"]}}]},Fe=je;export{Fe as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var U=Object.create;var q=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var
|
|
2
|
-
`),[".DS_Store"]),P=[];for(let A of Z)if(A){let F=A.endsWith("/")?"folders":"filepaths";(F==="filepaths"&&c!=="only"||F==="folders"&&c!=="never")&&P.push({type:F==="filepaths"?"file":"folder",name:A,insertValue:A,isDangerous:
|
|
1
|
+
var U=Object.create;var q=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ie=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ee(t))!ne.call(e,r)&&r!==n&&q(e,r,{get:()=>t[r],enumerable:!(i=Y(t,r))||i.enumerable});return e};var re=(e,t,n)=>(n=e!=null?U(te(e)):{},ie(t||!e||!e.__esModule?q(n,"default",{value:e,enumerable:!0}):n,e));var K=I(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.shellExpand=j.ensureTrailingSlash=void 0;var se=e=>e.endsWith("/")?e:`${e}/`;j.ensureTrailingSlash=se;var oe=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,ae=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,r=>{var s;let a=r.slice(1);return(s=t[a])!==null&&s!==void 0?s:r}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(r,s,a)=>{var u,c;return(c=(u=t[s])!==null&&u!==void 0?u:a)!==null&&c!==void 0?c:r}),le=(e,t)=>{var n;let{environmentVariables:i}=t;return ae(oe(e,(n=i?.HOME)!==null&&n!==void 0?n:"~"),i)};j.shellExpand=le});var k=I(b=>{"use strict";var ue=b&&b.__awaiter||function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function u(o){try{l(i.next(o))}catch(f){a(f)}}function c(o){try{l(i.throw(o))}catch(f){a(f)}}function l(o){o.done?s(o.value):r(o.value).then(u,c)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(b,"__esModule",{value:!0});b.filepaths=b.folders=b.getCurrentInsertedDirectory=void 0;b.sortFilesAlphabetically=W;var V=K();function W(e,t=[]){let n=t.map(r=>r.toLowerCase()),i=e.filter(r=>!n.includes(r.toLowerCase()));return[...i.filter(r=>!r.startsWith(".")).sort((r,s)=>r.localeCompare(s)),...i.filter(r=>r.startsWith(".")).sort((r,s)=>r.localeCompare(s)),"../"]}var ce=(e,t,n)=>{if(e===null)return"/";let i=(0,V.shellExpand)(t,n),r=i.slice(0,i.lastIndexOf("/")+1);return r===""?(0,V.ensureTrailingSlash)(e):r.startsWith("/")?r:`${(0,V.ensureTrailingSlash)(e)}${r}`};b.getCurrentInsertedDirectory=ce;function R(e={}){let{extensions:t=[],equals:n=[],matches:i,filterFolders:r=!1,editFileSuggestions:s,editFolderSuggestions:a,rootDirectory:u,showFolders:c="always"}=e,l=new Set(t),o=new Set(n),f=()=>t.length>0||n.length>0||i,g=(h=[])=>f()?h.filter(({name:m="",type:_})=>{if(!r&&_==="folder"||o.has(m)||i&&m.match(i))return!0;let[,...d]=m.split(".");if(d.length>=1){let y=d.length-1,w=d[y];do{if(l.has(w))return!0;y-=1,w=[d[y],w].join(".")}while(y>=0)}return!1}):h,O=(h=[])=>!s&&!a?h:h.map(m=>Object.assign(Object.assign({},m),(m.type==="file"?s:a)||{}));return{trigger:(h,m)=>{let _=h.lastIndexOf("/"),d=m.lastIndexOf("/");return _!==d?!0:_===-1&&d===-1?!1:h.slice(0,_)!==m.slice(0,d)},getQueryTerm:h=>h.slice(h.lastIndexOf("/")+1),custom:(h,m,_)=>ue(this,void 0,void 0,function*(){var d;let{isDangerous:y,currentWorkingDirectory:w,searchTerm:p}=_,S=(d=(0,b.getCurrentInsertedDirectory)(u??w,p,_))!==null&&d!==void 0?d:"/";try{let L=yield m({command:"ls",args:["-1ApL"],cwd:S}),Z=W(L.stdout.split(`
|
|
2
|
+
`),[".DS_Store"]),P=[];for(let A of Z)if(A){let F=A.endsWith("/")?"folders":"filepaths";(F==="filepaths"&&c!=="only"||F==="folders"&&c!=="never")&&P.push({type:F==="filepaths"?"file":"folder",name:A,insertValue:A,isDangerous:y,context:{templateType:F}})}return O(g(P))}catch{return[]}})}}b.folders=Object.assign(()=>R({showFolders:"only"}),Object.freeze(R({showFolders:"only"})));b.filepaths=Object.assign(R,Object.freeze(R()))});var Q=I(x=>{"use strict";var T=x&&x.__awaiter||function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function u(o){try{l(i.next(o))}catch(f){a(f)}}function c(o){try{l(i.throw(o))}catch(f){a(f)}}function l(o){o.done?s(o.value):r(o.value).then(u,c)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(x,"__esModule",{value:!0});x.valueList=fe;x.keyValue=de;x.keyValueList=he;var $=new Map;function C(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 T(this,void 0,void 0,function*(){if(typeof e=="function"){let i=yield e(...n);return C(t,i)}if(typeof e[0]=="string"){let i=e.map(r=>({name:r}));return C(t,i)}return C(t,e)})}function N(e,t,n,i){return T(this,void 0,void 0,function*(){if(n||Array.isArray(e)){let r=$.get(e);return r===void 0&&(r=yield z(e,t,i),$.set(e,r)),r}return z(e,t,i)})}function J(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function E(e,...t){return Math.max(...t.map(n=>e.lastIndexOf(n)))}function M(e,t){let n=new Set(e);return t.filter(i=>{var r;return typeof i.name=="string"?!n.has(i.name):!(!((r=i.name)===null||r===void 0)&&r.some(s=>n.has(s)))})}function fe({delimiter:e=",",values:t=[],cache:n=!1,insertDelimiter:i=!1,allowRepeatedValues:r=!1}){return{trigger:(s,a)=>s.lastIndexOf(e)!==a.lastIndexOf(e),getQueryTerm:s=>s.slice(s.lastIndexOf(e)+e.length),custom:(...s)=>T(this,void 0,void 0,function*(){var a;let u=yield N(t,i?e:"",n,s);if(r)return u;let[c]=s,l=(a=c[c.length-1])===null||a===void 0?void 0:a.split(e);return M(l,u)})}}function de({separator:e="=",keys:t=[],values:n=[],cache:i=!1,insertSeparator:r=!0}){return{trigger:(s,a)=>s.indexOf(e)!==a.indexOf(e),getQueryTerm:s=>s.slice(s.indexOf(e)+1),custom:(...s)=>T(this,void 0,void 0,function*(){let[a]=s,c=!a[a.length-1].includes(e),l=c?t:n,o=J(c,i);return N(l,c&&r?e:"",o,s)})}}function he({separator:e="=",delimiter:t=",",keys:n=[],values:i=[],cache:r=!1,insertSeparator:s=!0,insertDelimiter:a=!1,allowRepeatedKeys:u=!1,allowRepeatedValues:c=!0}){return{trigger:(l,o)=>{let f=E(l,e,t),g=E(o,e,t);return f!==g},getQueryTerm:l=>{let o=E(l,e,t);return l.slice(o+1)},custom:(...l)=>T(this,void 0,void 0,function*(){let[o]=l,f=o[o.length-1],g=E(f,e,t),O=g===-1||f.slice(g,g+e.length)!==e,h=O?n:i,m=J(O,r),d=yield N(h,O?s?e:"":a?t:"",m,l);if(O){if(u)return d;let w=f.split(t).map(p=>p.slice(0,p.indexOf(e)));return M(w,d)}if(c)return d;let y=f.split(t).map(w=>w.slice(w.indexOf(e)+e.length));return M(y,d)})}}});var H=I(D=>{"use strict";var pe=D&&D.__awaiter||function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function u(o){try{l(i.next(o))}catch(f){a(f)}}function c(o){try{l(i.throw(o))}catch(f){a(f)}}function l(o){o.done?s(o.value):r(o.value).then(u,c)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(D,"__esModule",{value:!0});D.ai=be;var me=4097,ge=4,ve=.8,ye=me*ge*ve;function be({name:e,prompt:t,message:n,postProcess:i,temperature:r,splitOn:s}){return{scriptTimeout:15e3,custom:(a,u,c)=>pe(this,void 0,void 0,function*(){var l,o;let f=yield u({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(f.stdout))return[];let g=typeof t=="function"?yield t({tokens:a,executeCommand:u,generatorContext:c}):t,O=typeof n=="function"?yield n({tokens:a,executeCommand:u,generatorContext:c}):n;if(O===null||O.length===0)return console.warn("No message provided to AI generator"),[];let h=ye-((l=g?.length)!==null&&l!==void 0?l:0),m={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...g?[{role:"system",content:g}]:[],{role:"user",content:O.slice(0,h)}],temperature:r},_=JSON.stringify(m),d=yield u({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",_]}),y=JSON.parse(d.stdout);return(o=y?.choices.map(p=>{var S;return(S=p?.message)===null||S===void 0?void 0:S.content}).filter(p=>typeof p=="string").flatMap(p=>s?p.split(s).filter(S=>S.trim().length>0):[p]).map(p=>{if(i)return i(p);let S=p.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:S,insertValue:`'${S}'`,description:"Generated by Fig AI"}}))!==null&&o!==void 0?o:[]})}}});var G=I(v=>{"use strict";var _e=v&&v.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),we=v&&v.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&_e(t,e,n)};Object.defineProperty(v,"__esModule",{value:!0});v.ai=v.folders=v.filepaths=void 0;var B=k();Object.defineProperty(v,"filepaths",{enumerable:!0,get:function(){return B.filepaths}});Object.defineProperty(v,"folders",{enumerable:!0,get:function(){return B.folders}});we(Q(),v);var Oe=H();Object.defineProperty(v,"ai",{enumerable:!0,get:function(){return Oe.ai}})});var X=re(G(),1),Se={name:"publish",description:"Dotnet publish compiles the application, reads through its dependencies specified in the project file, and publishes the resulting set of files to a directory",args:{name:"project",description:"The project or solution to publish",isOptional:!0,generators:(0,X.filepaths)({extensions:["csproj","sln"]})},options:[{name:["-a","--arch"],description:"Specifies the target architecture. This is a shorthand syntax for setting the Runtime Identifier (RID), where the provided value is combined with the default RID. For example, on a win-x64 machine, specifying --arch x86 sets the RID to win-x86. If you use this option, don't use the -r|--runtime option. Available since .NET 6 Preview 7",args:{name:"arch",suggestions:["x86","x64","arm","arm64"]}},{name:["-c","--configuration"],description:"Defines the build configuration. The default for most projects is Debug, but you can override the build configuration settings in your project",args:{name:"configuration",suggestions:["Debug","Release"]}},{name:["-f","--framework"],description:"Publishes the application for the specified target framework. You must specify the target framework in the project file",args:{name:"framework"}},{name:"--force",description:"Forces all dependencies to be resolved even if the last restore was successful. Specifying this flag is the same as deleting the project.assets.json file"},{name:"--interactive",description:"Allows the command to stop and wait for user input or action. For example, to complete authentication. Available since .NET Core 3.0 SDK"},{name:"--manifest",description:"Specifies one or several target manifests to use to trim the set of packages published with the app. The manifest file is part of the output of the dotnet store command. To specify multiple manifests, add a --manifest option for each manifest",args:{name:"path",template:"filepaths"}},{name:"--no-build",description:"Doesn't build the project before publishing. It also implicitly sets the --no-restore flag"},{name:"--no-dependencies",description:"Ignores project-to-project references and only restores the root project"},{name:"--nologo",description:"Doesn't display the startup banner or the copyright message. Available since .NET Core 3.0 SDK"},{name:"--no-restore",description:"Doesn't execute an implicit restore when running the command"},{name:["-o","--output"],description:"Specifies the path for the output directory",args:{name:"path",template:"folders"}},{name:"--os",description:"Specifies the target operating system (OS). This is a shorthand syntax for setting the Runtime Identifier (RID), where the provided value is combined with the default RID. For example, on a win-x64 machine, specifying --os os sets the RID to os-x64. If you use this option, don't use the -r|--runtime option. Available since .NET 6 Preview 7",args:{name:"os"}},{name:"--self-contained",description:"Publishes the .NET runtime with your application so the runtime doesn't need to be installed on the target machine. Default is true if a runtime identifier is specified and the project is an executable project (not a library project)",args:{name:"self-contained",default:"true",isOptional:!0,suggestions:["true","false"]}},{name:"--no-self-contained",description:"Equivalent to --self-contained false. Available since .NET Core 3.0 SDK"},{name:["-r","--runtime"],description:"Publishes the application for a given runtime. For a list of Runtime Identifiers (RIDs), see the RID catalog",args:{name:"runtime"}},{name:["-v","--verbosity"],description:"Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. The default is minimal. For more information, see LoggerVerbosity",args:{name:"verbosity",suggestions:["quiet","minimal","normal","detailed","diagnostic"]}},{name:"--version-suffix",description:"Defines the version suffix to replace the asterisk (*) in the version field of the project file",args:{name:"suffix"}}]},Fe=Se;export{Fe as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var Y=Object.create;var W=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var te=Object.getOwnPropertyNames;var ne=Object.getPrototypeOf,re=Object.prototype.hasOwnProperty;var
|
|
2
|
-
`),[".DS_Store"]),P=[];for(let V of U)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:
|
|
1
|
+
var Y=Object.create;var W=Object.defineProperty;var ee=Object.getOwnPropertyDescriptor;var te=Object.getOwnPropertyNames;var ne=Object.getPrototypeOf,re=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ie=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of te(t))!re.call(e,i)&&i!==n&&W(e,i,{get:()=>t[i],enumerable:!(r=ee(t,i))||r.enumerable});return e};var oe=(e,t,n)=>(n=e!=null?Y(ne(e)):{},ie(t||!e||!e.__esModule?W(n,"default",{value:e,enumerable:!0}):n,e));var R=I(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.shellExpand=x.ensureTrailingSlash=void 0;var se=e=>e.endsWith("/")?e:`${e}/`;x.ensureTrailingSlash=se;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 c=i.slice(1);return(o=t[c])!==null&&o!==void 0?o:i}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(i,o,c)=>{var u,a;return(a=(u=t[o])!==null&&u!==void 0?u:c)!==null&&a!==void 0?a:i}),ue=(e,t)=>{var n;let{environmentVariables:r}=t;return le(ce(e,(n=r?.HOME)!==null&&n!==void 0?n:"~"),r)};x.shellExpand=ue});var K=I(_=>{"use strict";var ae=_&&_.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(c){c(o)})}return new(n||(n=Promise))(function(o,c){function u(s){try{l(r.next(s))}catch(f){c(f)}}function a(s){try{l(r.throw(s))}catch(f){c(f)}}function l(s){s.done?o(s.value):i(s.value).then(u,a)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(_,"__esModule",{value:!0});_.filepaths=_.folders=_.getCurrentInsertedDirectory=void 0;_.sortFilesAlphabetically=$;var L=R();function $(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,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}`};_.getCurrentInsertedDirectory=fe;function M(e={}){let{extensions:t=[],equals:n=[],matches:r,filterFolders:i=!1,editFileSuggestions:o,editFolderSuggestions:c,rootDirectory:u,showFolders:a="always"}=e,l=new Set(t),s=new Set(n),f=()=>t.length>0||n.length>0||r,g=(h=[])=>f()?h.filter(({name:v="",type:O})=>{if(!i&&O==="folder"||s.has(v)||r&&v.match(r))return!0;let[,...d]=v.split(".");if(d.length>=1){let m=d.length-1,b=d[m];do{if(l.has(b))return!0;m-=1,b=[d[m],b].join(".")}while(m>=0)}return!1}):h,S=(h=[])=>!o&&!c?h:h.map(v=>Object.assign(Object.assign({},v),(v.type==="file"?o:c)||{}));return{trigger:(h,v)=>{let O=h.lastIndexOf("/"),d=v.lastIndexOf("/");return O!==d?!0:O===-1&&d===-1?!1:h.slice(0,O)!==v.slice(0,d)},getQueryTerm:h=>h.slice(h.lastIndexOf("/")+1),custom:(h,v,O)=>ae(this,void 0,void 0,function*(){var d;let{isDangerous:m,currentWorkingDirectory:b,searchTerm:p}=O,w=(d=(0,_.getCurrentInsertedDirectory)(u??b,p,O))!==null&&d!==void 0?d:"/";try{let N=yield v({command:"ls",args:["-1ApL"],cwd:w}),U=$(N.stdout.split(`
|
|
2
|
+
`),[".DS_Store"]),P=[];for(let V of U)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:m,context:{templateType:F}})}return S(g(P))}catch{return[]}})}}_.folders=Object.assign(()=>M({showFolders:"only"}),Object.freeze(M({showFolders:"only"})));_.filepaths=Object.assign(M,Object.freeze(M()))});var Q=I(j=>{"use strict";var T=j&&j.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(c){c(o)})}return new(n||(n=Promise))(function(o,c){function u(s){try{l(r.next(s))}catch(f){c(f)}}function a(s){try{l(r.throw(s))}catch(f){c(f)}}function l(s){s.done?o(s.value):i(s.value).then(u,a)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(j,"__esModule",{value:!0});j.valueList=de;j.keyValue=he;j.keyValueList=pe;var z=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 G(e,t,n){return T(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 T(this,void 0,void 0,function*(){if(n||Array.isArray(e)){let i=z.get(e);return i===void 0&&(i=yield G(e,t,r),z.set(e,i)),i}return G(e,t,r)})}function J(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 de({delimiter:e=",",values:t=[],cache:n=!1,insertDelimiter:r=!1,allowRepeatedValues:i=!1}){return{trigger:(o,c)=>o.lastIndexOf(e)!==c.lastIndexOf(e),getQueryTerm:o=>o.slice(o.lastIndexOf(e)+e.length),custom:(...o)=>T(this,void 0,void 0,function*(){var c;let u=yield q(t,r?e:"",n,o);if(i)return u;let[a]=o,l=(c=a[a.length-1])===null||c===void 0?void 0:c.split(e);return E(l,u)})}}function he({separator:e="=",keys:t=[],values:n=[],cache:r=!1,insertSeparator:i=!0}){return{trigger:(o,c)=>o.indexOf(e)!==c.indexOf(e),getQueryTerm:o=>o.slice(o.indexOf(e)+1),custom:(...o)=>T(this,void 0,void 0,function*(){let[c]=o,a=!c[c.length-1].includes(e),l=a?t:n,s=J(a,r);return q(l,a&&i?e:"",s,o)})}}function pe({separator:e="=",delimiter:t=",",keys:n=[],values:r=[],cache:i=!1,insertSeparator:o=!0,insertDelimiter:c=!1,allowRepeatedKeys:u=!1,allowRepeatedValues:a=!0}){return{trigger:(l,s)=>{let f=C(l,e,t),g=C(s,e,t);return f!==g},getQueryTerm:l=>{let s=C(l,e,t);return l.slice(s+1)},custom:(...l)=>T(this,void 0,void 0,function*(){let[s]=l,f=s[s.length-1],g=C(f,e,t),S=g===-1||f.slice(g,g+e.length)!==e,h=S?n:r,v=J(S,i),d=yield q(h,S?o?e:"":c?t:"",v,l);if(S){if(u)return d;let b=f.split(t).map(p=>p.slice(0,p.indexOf(e)));return E(b,d)}if(a)return d;let m=f.split(t).map(b=>b.slice(b.indexOf(e)+e.length));return E(m,d)})}}});var k=I(A=>{"use strict";var ve=A&&A.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(c){c(o)})}return new(n||(n=Promise))(function(o,c){function u(s){try{l(r.next(s))}catch(f){c(f)}}function a(s){try{l(r.throw(s))}catch(f){c(f)}}function l(s){s.done?o(s.value):i(s.value).then(u,a)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(A,"__esModule",{value:!0});A.ai=Oe;var ge=4097,ye=4,me=.8,_e=ge*ye*me;function Oe({name:e,prompt:t,message:n,postProcess:r,temperature:i,splitOn:o}){return{scriptTimeout:15e3,custom:(c,u,a)=>ve(this,void 0,void 0,function*(){var l,s;let f=yield u({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(f.stdout))return[];let g=typeof t=="function"?yield t({tokens:c,executeCommand:u,generatorContext:a}):t,S=typeof n=="function"?yield n({tokens:c,executeCommand:u,generatorContext:a}):n;if(S===null||S.length===0)return console.warn("No message provided to AI generator"),[];let h=_e-((l=g?.length)!==null&&l!==void 0?l:0),v={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...g?[{role:"system",content:g}]:[],{role:"user",content:S.slice(0,h)}],temperature:i},O=JSON.stringify(v),d=yield u({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",O]}),m=JSON.parse(d.stdout);return(s=m?.choices.map(p=>{var w;return(w=p?.message)===null||w===void 0?void 0:w.content}).filter(p=>typeof p=="string").flatMap(p=>o?p.split(o).filter(w=>w.trim().length>0):[p]).map(p=>{if(r)return r(p);let w=p.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:w,insertValue:`'${w}'`,description:"Generated by Fig AI"}}))!==null&&s!==void 0?s:[]})}}});var B=I(y=>{"use strict";var be=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]}),Se=y&&y.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&be(t,e,n)};Object.defineProperty(y,"__esModule",{value:!0});y.ai=y.folders=y.filepaths=void 0;var H=K();Object.defineProperty(y,"filepaths",{enumerable:!0,get:function(){return H.filepaths}});Object.defineProperty(y,"folders",{enumerable:!0,get:function(){return H.folders}});Se(Q(),y);var we=k();Object.defineProperty(y,"ai",{enumerable:!0,get:function(){return we.ai}})});var Z=oe(B(),1),X=(0,Z.filepaths)({extensions:["csproj"]}),je={name:"remove",args:{name:"project",description:"Specifies the project file. If not specified, the command searches the current directory for one",isOptional:!0,generators:X},subcommands:[{name:"package",description:"The dotnet remove package command provides a convenient option to remove a NuGet package reference from a project",args:{name:"id"}},{name:"reference",description:"The dotnet remove reference command provides a convenient option to remove project references from a project",args:{name:"ref",generators:X}}]},Me=je;export{Me as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var Z=Object.create;var R=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var
|
|
2
|
-
`),[".DS_Store"]),N=[];for(let F of X)if(F){let V=F.endsWith("/")?"folders":"filepaths";(V==="filepaths"&&u!=="only"||V==="folders"&&u!=="never")&&N.push({type:V==="filepaths"?"file":"folder",name:F,insertValue:F,isDangerous:
|
|
1
|
+
var Z=Object.create;var R=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ie=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ee(t))!ne.call(e,r)&&r!==n&&R(e,r,{get:()=>t[r],enumerable:!(i=Y(t,r))||i.enumerable});return e};var re=(e,t,n)=>(n=e!=null?Z(te(e)):{},ie(t||!e||!e.__esModule?R(n,"default",{value:e,enumerable:!0}):n,e));var W=x(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.shellExpand=T.ensureTrailingSlash=void 0;var se=e=>e.endsWith("/")?e:`${e}/`;T.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,r=>{var s;let l=r.slice(1);return(s=t[l])!==null&&s!==void 0?s:r}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(r,s,l)=>{var c,u;return(u=(c=t[s])!==null&&c!==void 0?c:l)!==null&&u!==void 0?u:r}),ae=(e,t)=>{var n;let{environmentVariables:i}=t;return le(oe(e,(n=i?.HOME)!==null&&n!==void 0?n:"~"),i)};T.shellExpand=ae});var G=x(_=>{"use strict";var ce=_&&_.__awaiter||function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(o){try{a(i.next(o))}catch(f){l(f)}}function u(o){try{a(i.throw(o))}catch(f){l(f)}}function a(o){o.done?s(o.value):r(o.value).then(c,u)}a((i=i.apply(e,t||[])).next())})};Object.defineProperty(_,"__esModule",{value:!0});_.filepaths=_.folders=_.getCurrentInsertedDirectory=void 0;_.sortFilesAlphabetically=$;var q=W();function $(e,t=[]){let n=t.map(r=>r.toLowerCase()),i=e.filter(r=>!n.includes(r.toLowerCase()));return[...i.filter(r=>!r.startsWith(".")).sort((r,s)=>r.localeCompare(s)),...i.filter(r=>r.startsWith(".")).sort((r,s)=>r.localeCompare(s)),"../"]}var ue=(e,t,n)=>{if(e===null)return"/";let i=(0,q.shellExpand)(t,n),r=i.slice(0,i.lastIndexOf("/")+1);return r===""?(0,q.ensureTrailingSlash)(e):r.startsWith("/")?r:`${(0,q.ensureTrailingSlash)(e)}${r}`};_.getCurrentInsertedDirectory=ue;function k(e={}){let{extensions:t=[],equals:n=[],matches:i,filterFolders:r=!1,editFileSuggestions:s,editFolderSuggestions:l,rootDirectory:c,showFolders:u="always"}=e,a=new Set(t),o=new Set(n),f=()=>t.length>0||n.length>0||i,m=(p=[])=>f()?p.filter(({name:g="",type:b})=>{if(!r&&b==="folder"||o.has(g)||i&&g.match(i))return!0;let[,...d]=g.split(".");if(d.length>=1){let y=d.length-1,O=d[y];do{if(a.has(O))return!0;y-=1,O=[d[y],O].join(".")}while(y>=0)}return!1}):p,w=(p=[])=>!s&&!l?p:p.map(g=>Object.assign(Object.assign({},g),(g.type==="file"?s:l)||{}));return{trigger:(p,g)=>{let b=p.lastIndexOf("/"),d=g.lastIndexOf("/");return b!==d?!0:b===-1&&d===-1?!1:p.slice(0,b)!==g.slice(0,d)},getQueryTerm:p=>p.slice(p.lastIndexOf("/")+1),custom:(p,g,b)=>ce(this,void 0,void 0,function*(){var d;let{isDangerous:y,currentWorkingDirectory:O,searchTerm:h}=b,S=(d=(0,_.getCurrentInsertedDirectory)(c??O,h,b))!==null&&d!==void 0?d:"/";try{let P=yield g({command:"ls",args:["-1ApL"],cwd:S}),X=$(P.stdout.split(`
|
|
2
|
+
`),[".DS_Store"]),N=[];for(let F of X)if(F){let V=F.endsWith("/")?"folders":"filepaths";(V==="filepaths"&&u!=="only"||V==="folders"&&u!=="never")&&N.push({type:V==="filepaths"?"file":"folder",name:F,insertValue:F,isDangerous:y,context:{templateType:V}})}return w(m(N))}catch{return[]}})}}_.folders=Object.assign(()=>k({showFolders:"only"}),Object.freeze(k({showFolders:"only"})));_.filepaths=Object.assign(k,Object.freeze(k()))});var H=x(j=>{"use strict";var I=j&&j.__awaiter||function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(o){try{a(i.next(o))}catch(f){l(f)}}function u(o){try{a(i.throw(o))}catch(f){l(f)}}function a(o){o.done?s(o.value):r(o.value).then(c,u)}a((i=i.apply(e,t||[])).next())})};Object.defineProperty(j,"__esModule",{value:!0});j.valueList=fe;j.keyValue=de;j.keyValueList=pe;var J=new Map;function C(e,t){return e.length===0?t:t.map(n=>n.insertValue?n:Object.assign(Object.assign({},n),{insertValue:n.name+e}))}function K(e,t,n){return I(this,void 0,void 0,function*(){if(typeof e=="function"){let i=yield e(...n);return C(t,i)}if(typeof e[0]=="string"){let i=e.map(r=>({name:r}));return C(t,i)}return C(t,e)})}function L(e,t,n,i){return I(this,void 0,void 0,function*(){if(n||Array.isArray(e)){let r=J.get(e);return r===void 0&&(r=yield K(e,t,i),J.set(e,r)),r}return K(e,t,i)})}function z(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 D(e,t){let n=new Set(e);return t.filter(i=>{var r;return typeof i.name=="string"?!n.has(i.name):!(!((r=i.name)===null||r===void 0)&&r.some(s=>n.has(s)))})}function fe({delimiter:e=",",values:t=[],cache:n=!1,insertDelimiter:i=!1,allowRepeatedValues:r=!1}){return{trigger:(s,l)=>s.lastIndexOf(e)!==l.lastIndexOf(e),getQueryTerm:s=>s.slice(s.lastIndexOf(e)+e.length),custom:(...s)=>I(this,void 0,void 0,function*(){var l;let c=yield L(t,i?e:"",n,s);if(r)return c;let[u]=s,a=(l=u[u.length-1])===null||l===void 0?void 0:l.split(e);return D(a,c)})}}function de({separator:e="=",keys:t=[],values:n=[],cache:i=!1,insertSeparator:r=!0}){return{trigger:(s,l)=>s.indexOf(e)!==l.indexOf(e),getQueryTerm:s=>s.slice(s.indexOf(e)+1),custom:(...s)=>I(this,void 0,void 0,function*(){let[l]=s,u=!l[l.length-1].includes(e),a=u?t:n,o=z(u,i);return L(a,u&&r?e:"",o,s)})}}function pe({separator:e="=",delimiter:t=",",keys:n=[],values:i=[],cache:r=!1,insertSeparator:s=!0,insertDelimiter:l=!1,allowRepeatedKeys:c=!1,allowRepeatedValues:u=!0}){return{trigger:(a,o)=>{let f=M(a,e,t),m=M(o,e,t);return f!==m},getQueryTerm:a=>{let o=M(a,e,t);return a.slice(o+1)},custom:(...a)=>I(this,void 0,void 0,function*(){let[o]=a,f=o[o.length-1],m=M(f,e,t),w=m===-1||f.slice(m,m+e.length)!==e,p=w?n:i,g=z(w,r),d=yield L(p,w?s?e:"":l?t:"",g,a);if(w){if(c)return d;let O=f.split(t).map(h=>h.slice(0,h.indexOf(e)));return D(O,d)}if(u)return d;let y=f.split(t).map(O=>O.slice(O.indexOf(e)+e.length));return D(y,d)})}}});var Q=x(A=>{"use strict";var he=A&&A.__awaiter||function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(o){try{a(i.next(o))}catch(f){l(f)}}function u(o){try{a(i.throw(o))}catch(f){l(f)}}function a(o){o.done?s(o.value):r(o.value).then(c,u)}a((i=i.apply(e,t||[])).next())})};Object.defineProperty(A,"__esModule",{value:!0});A.ai=_e;var ge=4097,me=4,ve=.8,ye=ge*me*ve;function _e({name:e,prompt:t,message:n,postProcess:i,temperature:r,splitOn:s}){return{scriptTimeout:15e3,custom:(l,c,u)=>he(this,void 0,void 0,function*(){var a,o;let f=yield c({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(f.stdout))return[];let m=typeof t=="function"?yield t({tokens:l,executeCommand:c,generatorContext:u}):t,w=typeof n=="function"?yield n({tokens:l,executeCommand:c,generatorContext:u}):n;if(w===null||w.length===0)return console.warn("No message provided to AI generator"),[];let p=ye-((a=m?.length)!==null&&a!==void 0?a:0),g={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...m?[{role:"system",content:m}]:[],{role:"user",content:w.slice(0,p)}],temperature:r},b=JSON.stringify(g),d=yield c({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",b]}),y=JSON.parse(d.stdout);return(o=y?.choices.map(h=>{var S;return(S=h?.message)===null||S===void 0?void 0:S.content}).filter(h=>typeof h=="string").flatMap(h=>s?h.split(s).filter(S=>S.trim().length>0):[h]).map(h=>{if(i)return i(h);let S=h.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:S,insertValue:`'${S}'`,description:"Generated by Fig AI"}}))!==null&&o!==void 0?o:[]})}}});var U=x(v=>{"use strict";var be=v&&v.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),Oe=v&&v.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&be(t,e,n)};Object.defineProperty(v,"__esModule",{value:!0});v.ai=v.folders=v.filepaths=void 0;var B=G();Object.defineProperty(v,"filepaths",{enumerable:!0,get:function(){return B.filepaths}});Object.defineProperty(v,"folders",{enumerable:!0,get:function(){return B.folders}});Oe(H(),v);var we=Q();Object.defineProperty(v,"ai",{enumerable:!0,get:function(){return we.ai}})});var E=re(U(),1),Se={name:"restore",description:"The dotnet restore command uses NuGet to restore dependencies as well as project-specific tools that are specified in the project file",args:{name:"root",description:"Optional path to the project file to restore",isOptional:!0,generators:(0,E.filepaths)({extensions:["csproj","sln"]})},options:[{name:"--configfile",description:"The NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used",args:{name:"file",generators:(0,E.filepaths)({equals:"nuget.config"})}},{name:"--disable-parallel",description:"Disables restoring multiple projects in parallel"},{name:"--force",description:"Forces all dependencies to be resolved even if the last restore was successful. Specifying this flag is the same as deleting the project.assets.json file"},{name:"-force-evaluate",description:"Forces restore to reevaluate all dependencies even if a lock file already exists"},{name:"--ignore-failed-sources",description:"Only warn about failed sources if there are packages meeting the version requirement"},{name:"--interactive",description:"Allows the command to stop and wait for user input or action. For example, to complete authentication"},{name:"--lock-file-path",description:"Output location where project lock file is written. By default, this is PROJECT_ROOTpackages.lock.json",args:{name:"path",template:"filepaths"}},{name:"--locked-mode",description:"Don't allow updating project lock file"},{name:"--no-cache",description:"Specifies to not cache HTTP requests"},{name:"--no-dependencies",description:"When restoring a project with project-to-project (P2P) references, restores the root project and not the references"},{name:"--packages",description:"Specifies the directory for restored packages",args:{name:"directory",template:"folders"}},{name:["-r","--runtime"],description:"Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file",args:{name:"runtime"}},{name:["-s","--source"],description:"Specifies the URI of the NuGet package source to use during the restore operation. This setting overrides all of the sources specified in the nuget.config files. Multiple sources can be provided by specifying this option multiple times",args:{name:"source"}},{name:"--use-lock-file",description:"Enables project lock file to be generated and used with restore"},{name:["-v","--verbosity"],description:"Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. The default is minimal. For more information, see LoggerVerbosity",args:{name:"verbosity",suggestions:["quiet","minimal","normal","detailed","diagnostic"]}}]},Ve=Se;export{Ve as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
`),[".DS_Store"]),K=[];for(let C of
|
|
1
|
+
var k=Object.create;var P=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 o of ee(t))!ne.call(e,o)&&o!==n&&P(e,o,{get:()=>t[o],enumerable:!(r=Y(t,o))||r.enumerable});return e};var oe=(e,t,n)=>(n=e!=null?k(te(e)):{},re(t||!e||!e.__esModule?P(n,"default",{value:e,enumerable:!0}):n,e));var R=T(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.shellExpand=w.ensureTrailingSlash=void 0;var ie=e=>e.endsWith("/")?e:`${e}/`;w.ensureTrailingSlash=ie;var se=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,le=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,o=>{var i;let l=o.slice(1);return(i=t[l])!==null&&i!==void 0?i:o}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(o,i,l)=>{var u,c;return(c=(u=t[i])!==null&&u!==void 0?u:l)!==null&&c!==void 0?c:o}),ae=(e,t)=>{var n;let{environmentVariables:r}=t;return le(se(e,(n=r?.HOME)!==null&&n!==void 0?n:"~"),r)};w.shellExpand=ae});var $=T(_=>{"use strict";var ue=_&&_.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function u(s){try{a(r.next(s))}catch(f){l(f)}}function c(s){try{a(r.throw(s))}catch(f){l(f)}}function a(s){s.done?i(s.value):o(s.value).then(u,c)}a((r=r.apply(e,t||[])).next())})};Object.defineProperty(_,"__esModule",{value:!0});_.filepaths=_.folders=_.getCurrentInsertedDirectory=void 0;_.sortFilesAlphabetically=W;var D=R();function W(e,t=[]){let n=t.map(o=>o.toLowerCase()),r=e.filter(o=>!n.includes(o.toLowerCase()));return[...r.filter(o=>!o.startsWith(".")).sort((o,i)=>o.localeCompare(i)),...r.filter(o=>o.startsWith(".")).sort((o,i)=>o.localeCompare(i)),"../"]}var ce=(e,t,n)=>{if(e===null)return"/";let r=(0,D.shellExpand)(t,n),o=r.slice(0,r.lastIndexOf("/")+1);return o===""?(0,D.ensureTrailingSlash)(e):o.startsWith("/")?o:`${(0,D.ensureTrailingSlash)(e)}${o}`};_.getCurrentInsertedDirectory=ce;function F(e={}){let{extensions:t=[],equals:n=[],matches:r,filterFolders:o=!1,editFileSuggestions:i,editFolderSuggestions:l,rootDirectory:u,showFolders:c="always"}=e,a=new Set(t),s=new Set(n),f=()=>t.length>0||n.length>0||r,g=(h=[])=>f()?h.filter(({name:v="",type:b})=>{if(!o&&b==="folder"||s.has(v)||r&&v.match(r))return!0;let[,...d]=v.split(".");if(d.length>=1){let m=d.length-1,O=d[m];do{if(a.has(O))return!0;m-=1,O=[d[m],O].join(".")}while(m>=0)}return!1}):h,S=(h=[])=>!i&&!l?h:h.map(v=>Object.assign(Object.assign({},v),(v.type==="file"?i: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)=>ue(this,void 0,void 0,function*(){var d;let{isDangerous:m,currentWorkingDirectory:O,searchTerm:p}=b,x=(d=(0,_.getCurrentInsertedDirectory)(u??O,p,b))!==null&&d!==void 0?d:"/";try{let q=yield v({command:"ls",args:["-1ApL"],cwd:x}),Z=W(q.stdout.split(`
|
|
2
|
+
`),[".DS_Store"]),K=[];for(let C of Z)if(C){let V=C.endsWith("/")?"folders":"filepaths";(V==="filepaths"&&c!=="only"||V==="folders"&&c!=="never")&&K.push({type:V==="filepaths"?"file":"folder",name:C,insertValue:C,isDangerous:m,context:{templateType:V}})}return S(g(K))}catch{return[]}})}}_.folders=Object.assign(()=>F({showFolders:"only"}),Object.freeze(F({showFolders:"only"})));_.filepaths=Object.assign(F,Object.freeze(F()))});var G=T(j=>{"use strict";var I=j&&j.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function u(s){try{a(r.next(s))}catch(f){l(f)}}function c(s){try{a(r.throw(s))}catch(f){l(f)}}function a(s){s.done?i(s.value):o(s.value).then(u,c)}a((r=r.apply(e,t||[])).next())})};Object.defineProperty(j,"__esModule",{value:!0});j.valueList=fe;j.keyValue=de;j.keyValueList=he;var z=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 J(e,t,n){return I(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(o=>({name:o}));return M(t,r)}return M(t,e)})}function N(e,t,n,r){return I(this,void 0,void 0,function*(){if(n||Array.isArray(e)){let o=z.get(e);return o===void 0&&(o=yield J(e,t,r),z.set(e,o)),o}return J(e,t,r)})}function Q(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function L(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 o;return typeof r.name=="string"?!n.has(r.name):!(!((o=r.name)===null||o===void 0)&&o.some(i=>n.has(i)))})}function fe({delimiter:e=",",values:t=[],cache:n=!1,insertDelimiter:r=!1,allowRepeatedValues:o=!1}){return{trigger:(i,l)=>i.lastIndexOf(e)!==l.lastIndexOf(e),getQueryTerm:i=>i.slice(i.lastIndexOf(e)+e.length),custom:(...i)=>I(this,void 0,void 0,function*(){var l;let u=yield N(t,r?e:"",n,i);if(o)return u;let[c]=i,a=(l=c[c.length-1])===null||l===void 0?void 0:l.split(e);return E(a,u)})}}function de({separator:e="=",keys:t=[],values:n=[],cache:r=!1,insertSeparator:o=!0}){return{trigger:(i,l)=>i.indexOf(e)!==l.indexOf(e),getQueryTerm:i=>i.slice(i.indexOf(e)+1),custom:(...i)=>I(this,void 0,void 0,function*(){let[l]=i,c=!l[l.length-1].includes(e),a=c?t:n,s=Q(c,r);return N(a,c&&o?e:"",s,i)})}}function he({separator:e="=",delimiter:t=",",keys:n=[],values:r=[],cache:o=!1,insertSeparator:i=!0,insertDelimiter:l=!1,allowRepeatedKeys:u=!1,allowRepeatedValues:c=!0}){return{trigger:(a,s)=>{let f=L(a,e,t),g=L(s,e,t);return f!==g},getQueryTerm:a=>{let s=L(a,e,t);return a.slice(s+1)},custom:(...a)=>I(this,void 0,void 0,function*(){let[s]=a,f=s[s.length-1],g=L(f,e,t),S=g===-1||f.slice(g,g+e.length)!==e,h=S?n:r,v=Q(S,o),d=yield N(h,S?i?e:"":l?t:"",v,a);if(S){if(u)return d;let O=f.split(t).map(p=>p.slice(0,p.indexOf(e)));return E(O,d)}if(c)return d;let m=f.split(t).map(O=>O.slice(O.indexOf(e)+e.length));return E(m,d)})}}});var H=T(A=>{"use strict";var pe=A&&A.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function u(s){try{a(r.next(s))}catch(f){l(f)}}function c(s){try{a(r.throw(s))}catch(f){l(f)}}function a(s){s.done?i(s.value):o(s.value).then(u,c)}a((r=r.apply(e,t||[])).next())})};Object.defineProperty(A,"__esModule",{value:!0});A.ai=_e;var ve=4097,ge=4,ye=.8,me=ve*ge*ye;function _e({name:e,prompt:t,message:n,postProcess:r,temperature:o,splitOn:i}){return{scriptTimeout:15e3,custom:(l,u,c)=>pe(this,void 0,void 0,function*(){var a,s;let f=yield u({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(f.stdout))return[];let g=typeof t=="function"?yield t({tokens:l,executeCommand:u,generatorContext:c}):t,S=typeof n=="function"?yield n({tokens:l,executeCommand:u,generatorContext:c}):n;if(S===null||S.length===0)return console.warn("No message provided to AI generator"),[];let h=me-((a=g?.length)!==null&&a!==void 0?a:0),v={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...g?[{role:"system",content:g}]:[],{role:"user",content:S.slice(0,h)}],temperature:o},b=JSON.stringify(v),d=yield u({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",b]}),m=JSON.parse(d.stdout);return(s=m?.choices.map(p=>{var x;return(x=p?.message)===null||x===void 0?void 0:x.content}).filter(p=>typeof p=="string").flatMap(p=>i?p.split(i).filter(x=>x.trim().length>0):[p]).map(p=>{if(r)return r(p);let x=p.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:x,insertValue:`'${x}'`,description:"Generated by Fig AI"}}))!==null&&s!==void 0?s:[]})}}});var B=T(y=>{"use strict";var be=y&&y.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Oe=y&&y.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&be(t,e,n)};Object.defineProperty(y,"__esModule",{value:!0});y.ai=y.folders=y.filepaths=void 0;var U=$();Object.defineProperty(y,"filepaths",{enumerable:!0,get:function(){return U.filepaths}});Object.defineProperty(y,"folders",{enumerable:!0,get:function(){return U.folders}});Oe(G(),y);var Se=H();Object.defineProperty(y,"ai",{enumerable:!0,get:function(){return Se.ai}})});var X=oe(B(),1),xe=(0,X.filepaths)({extensions:["sln"]}),je={name:"sln",args:{name:"solution",description:"The solution file to use. If this argument is omitted, the command searches the current directory for one. If it finds no solution file or multiple solution files, the command fails",isOptional:!0,generators:xe},subcommands:[{name:"list",description:"Lists all projects in a solution file"},{name:"add",description:"Adds one or more projects to the solution file",args:{name:"path",description:"The path to the project or projects to add to the solution. Unix/Linux shell globbing pattern expansions are processed correctly by the dotnet sln command",template:"folders"},options:[{name:"--in-root",description:"Places the projects in the root of the solution, rather than creating a solution folder. Can't be used with -s|--solution-folder. Available since .NET Core 3.0 SDK"},{name:["-s","--solution-folder"],description:"The destination solution folder path to add the projects to. Can't be used with --in-root. Available since .NET Core 3.0 SDK",args:{name:"path",description:"The destination solution folder path to add the projects to. Can't be used with --in-root. Available since .NET Core 3.0 SDK",template:"folders"}}]},{name:"remove",description:"Removes a project or multiple projects from the solution file",args:{name:"path",description:"The path to the project or projects to add to the solution. Unix/Linux shell globbing pattern expansions are processed correctly by the dotnet sln command",template:"folders"}}]},Fe=je;export{Fe as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var U=Object.create;var N=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var
|
|
2
|
-
`),[".DS_Store"]),R=[];for(let A of Z)if(A){let
|
|
1
|
+
var U=Object.create;var N=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&&N(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?N(n,"default",{value:e,enumerable:!0}):n,e));var W=j(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.shellExpand=x.ensureTrailingSlash=void 0;var se=e=>e.endsWith("/")?e:`${e}/`;x.ensureTrailingSlash=se;var oe=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,ae=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,i=>{var s;let a=i.slice(1);return(s=t[a])!==null&&s!==void 0?s:i}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(i,s,a)=>{var u,c;return(c=(u=t[s])!==null&&u!==void 0?u:a)!==null&&c!==void 0?c:i}),le=(e,t)=>{var n;let{environmentVariables:r}=t;return ae(oe(e,(n=r?.HOME)!==null&&n!==void 0?n:"~"),r)};x.shellExpand=le});var K=j(b=>{"use strict";var ue=b&&b.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function u(o){try{l(r.next(o))}catch(f){a(f)}}function c(o){try{l(r.throw(o))}catch(f){a(f)}}function l(o){o.done?s(o.value):i(o.value).then(u,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(b,"__esModule",{value:!0});b.filepaths=b.folders=b.getCurrentInsertedDirectory=void 0;b.sortFilesAlphabetically=z;var M=W();function z(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 ce=(e,t,n)=>{if(e===null)return"/";let r=(0,M.shellExpand)(t,n),i=r.slice(0,r.lastIndexOf("/")+1);return i===""?(0,M.ensureTrailingSlash)(e):i.startsWith("/")?i:`${(0,M.ensureTrailingSlash)(e)}${i}`};b.getCurrentInsertedDirectory=ce;function V(e={}){let{extensions:t=[],equals:n=[],matches:r,filterFolders:i=!1,editFileSuggestions:s,editFolderSuggestions:a,rootDirectory:u,showFolders:c="always"}=e,l=new Set(t),o=new Set(n),f=()=>t.length>0||n.length>0||r,g=(h=[])=>f()?h.filter(({name:m="",type:_})=>{if(!i&&_==="folder"||o.has(m)||r&&m.match(r))return!0;let[,...d]=m.split(".");if(d.length>=1){let v=d.length-1,O=d[v];do{if(l.has(O))return!0;v-=1,O=[d[v],O].join(".")}while(v>=0)}return!1}):h,w=(h=[])=>!s&&!a?h:h.map(m=>Object.assign(Object.assign({},m),(m.type==="file"?s:a)||{}));return{trigger:(h,m)=>{let _=h.lastIndexOf("/"),d=m.lastIndexOf("/");return _!==d?!0:_===-1&&d===-1?!1:h.slice(0,_)!==m.slice(0,d)},getQueryTerm:h=>h.slice(h.lastIndexOf("/")+1),custom:(h,m,_)=>ue(this,void 0,void 0,function*(){var d;let{isDangerous:v,currentWorkingDirectory:O,searchTerm:p}=_,S=(d=(0,b.getCurrentInsertedDirectory)(u??O,p,_))!==null&&d!==void 0?d:"/";try{let E=yield m({command:"ls",args:["-1ApL"],cwd:S}),Z=z(E.stdout.split(`
|
|
2
|
+
`),[".DS_Store"]),R=[];for(let A of Z)if(A){let F=A.endsWith("/")?"folders":"filepaths";(F==="filepaths"&&c!=="only"||F==="folders"&&c!=="never")&&R.push({type:F==="filepaths"?"file":"folder",name:A,insertValue:A,isDangerous:v,context:{templateType:F}})}return w(g(R))}catch{return[]}})}}b.folders=Object.assign(()=>V({showFolders:"only"}),Object.freeze(V({showFolders:"only"})));b.filepaths=Object.assign(V,Object.freeze(V()))});var Q=j(T=>{"use strict";var I=T&&T.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function u(o){try{l(r.next(o))}catch(f){a(f)}}function c(o){try{l(r.throw(o))}catch(f){a(f)}}function l(o){o.done?s(o.value):i(o.value).then(u,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(T,"__esModule",{value:!0});T.valueList=fe;T.keyValue=de;T.keyValueList=he;var P=new Map;function q(e,t){return e.length===0?t:t.map(n=>n.insertValue?n:Object.assign(Object.assign({},n),{insertValue:n.name+e}))}function $(e,t,n){return I(this,void 0,void 0,function*(){if(typeof e=="function"){let r=yield e(...n);return q(t,r)}if(typeof e[0]=="string"){let r=e.map(i=>({name:i}));return q(t,r)}return q(t,e)})}function C(e,t,n,r){return I(this,void 0,void 0,function*(){if(n||Array.isArray(e)){let i=P.get(e);return i===void 0&&(i=yield $(e,t,r),P.set(e,i)),i}return $(e,t,r)})}function J(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function L(e,...t){return Math.max(...t.map(n=>e.lastIndexOf(n)))}function D(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,a)=>s.lastIndexOf(e)!==a.lastIndexOf(e),getQueryTerm:s=>s.slice(s.lastIndexOf(e)+e.length),custom:(...s)=>I(this,void 0,void 0,function*(){var a;let u=yield C(t,r?e:"",n,s);if(i)return u;let[c]=s,l=(a=c[c.length-1])===null||a===void 0?void 0:a.split(e);return D(l,u)})}}function de({separator:e="=",keys:t=[],values:n=[],cache:r=!1,insertSeparator:i=!0}){return{trigger:(s,a)=>s.indexOf(e)!==a.indexOf(e),getQueryTerm:s=>s.slice(s.indexOf(e)+1),custom:(...s)=>I(this,void 0,void 0,function*(){let[a]=s,c=!a[a.length-1].includes(e),l=c?t:n,o=J(c,r);return C(l,c&&i?e:"",o,s)})}}function he({separator:e="=",delimiter:t=",",keys:n=[],values:r=[],cache:i=!1,insertSeparator:s=!0,insertDelimiter:a=!1,allowRepeatedKeys:u=!1,allowRepeatedValues:c=!0}){return{trigger:(l,o)=>{let f=L(l,e,t),g=L(o,e,t);return f!==g},getQueryTerm:l=>{let o=L(l,e,t);return l.slice(o+1)},custom:(...l)=>I(this,void 0,void 0,function*(){let[o]=l,f=o[o.length-1],g=L(f,e,t),w=g===-1||f.slice(g,g+e.length)!==e,h=w?n:r,m=J(w,i),d=yield C(h,w?s?e:"":a?t:"",m,l);if(w){if(u)return d;let O=f.split(t).map(p=>p.slice(0,p.indexOf(e)));return D(O,d)}if(c)return d;let v=f.split(t).map(O=>O.slice(O.indexOf(e)+e.length));return D(v,d)})}}});var B=j(k=>{"use strict";var pe=k&&k.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function u(o){try{l(r.next(o))}catch(f){a(f)}}function c(o){try{l(r.throw(o))}catch(f){a(f)}}function l(o){o.done?s(o.value):i(o.value).then(u,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(k,"__esModule",{value:!0});k.ai=be;var me=4097,ge=4,ye=.8,ve=me*ge*ye;function be({name:e,prompt:t,message:n,postProcess:r,temperature:i,splitOn:s}){return{scriptTimeout:15e3,custom:(a,u,c)=>pe(this,void 0,void 0,function*(){var l,o;let f=yield u({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(f.stdout))return[];let g=typeof t=="function"?yield t({tokens:a,executeCommand:u,generatorContext:c}):t,w=typeof n=="function"?yield n({tokens:a,executeCommand:u,generatorContext:c}):n;if(w===null||w.length===0)return console.warn("No message provided to AI generator"),[];let h=ve-((l=g?.length)!==null&&l!==void 0?l:0),m={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...g?[{role:"system",content:g}]:[],{role:"user",content:w.slice(0,h)}],temperature:i},_=JSON.stringify(m),d=yield u({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",_]}),v=JSON.parse(d.stdout);return(o=v?.choices.map(p=>{var S;return(S=p?.message)===null||S===void 0?void 0:S.content}).filter(p=>typeof p=="string").flatMap(p=>s?p.split(s).filter(S=>S.trim().length>0):[p]).map(p=>{if(r)return r(p);let S=p.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:S,insertValue:`'${S}'`,description:"Generated by Fig AI"}}))!==null&&o!==void 0?o:[]})}}});var X=j(y=>{"use strict";var _e=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]}),Oe=y&&y.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&_e(t,e,n)};Object.defineProperty(y,"__esModule",{value:!0});y.ai=y.folders=y.filepaths=void 0;var H=K();Object.defineProperty(y,"filepaths",{enumerable:!0,get:function(){return H.filepaths}});Object.defineProperty(y,"folders",{enumerable:!0,get:function(){return H.folders}});Oe(Q(),y);var we=B();Object.defineProperty(y,"ai",{enumerable:!0,get:function(){return we.ai}})});var G=ie(X(),1),Se={name:"store",description:"Dotnet store stores the specified assemblies in the runtime package store. By default, assemblies are optimized for the target runtime and framework. For more information, see the runtime package store topic",options:[{name:["-f","--framework"],description:"Specifies the target framework. The target framework has to be specified in the project file",isRequired:!0,args:{name:"framework"}},{name:["-m","--manifest"],description:"The package store manifest file is an XML file that contains the list of packages to store. The format of the manifest file is compatible with the SDK-style project format. So, a project file that references the desired packages can be used with the -m|--manifest option to store assemblies in the runtime package store",isRequired:!0,isRepeatable:!0,args:{name:"manifest",generators:(0,G.filepaths)({extensions:["csproj"]})}},{name:["-r","--runtime"],isRequired:!0,description:"The runtime identifier to target",args:{name:"runtime"}},{name:"--framework-version",description:"Specifies the .NET SDK version. This option enables you to select a specific framework version beyond the framework specified by the -f|--framework option",args:{name:"version"}},{name:["-o","--output"],description:"Specifies the path to the runtime package store. If not specified, it defaults to the store subdirectory of the user profile .NET installation directory",args:{name:"path",template:"folders"}},{name:"--skip-optimization",description:"Skips the optimization phase"},{name:"--skip-symbols",description:"Skips symbol generation. Currently, you can only generate symbols on Windows and Linux"},{name:["-v","--verbosity"],description:"Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. For more information, see LoggerVerbosity",args:{name:"verbosity",suggestions:["quiet","minimal","normal","detailed","diagnostic"]}},{name:["-w","--working-dir"],description:"The working directory used by the command. If not specified, it uses the obj subdirectory of the current directory",args:{name:"directory",template:"folders"}}]},Fe=Se;export{Fe as default};
|