@raycast/api 1.91.2 → 1.92.1
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/dist/commands/evals/index.js +33 -33
- package/dist/commands/publish/index.js +1 -1
- package/dist/commands/version/index.js +1 -1
- package/dist/utils/evals/format-expectation.js +1 -1
- package/dist/utils/evals/render-results.js +4 -4
- package/oclif.manifest.json +88 -88
- package/package.json +1 -1
- package/types/index.d.ts +36 -8
|
@@ -861,7 +861,7 @@ Be sure to add as much details as possible in the PR description to accelerate t
|
|
|
861
861
|
`;var lhe=class i extends a3{static summary="Publish the extension";static description=`Publish the extension on the Raycast Store.
|
|
862
862
|
Private extension are a team feature. Sign up for it here: `+A7(`${Jx.url}/pricing`,`${Jx.url}/pricing`);static flags={clipboard:che.Flags.boolean({char:"C",description:"Copy the extension link to the clipboard upon publishing",default:!1}),"skip-validation":che.Flags.boolean({char:"s",description:"Skip validation and always publish "+i3,default:!1,hidden:!0}),"skip-notify-raycast":che.Flags.boolean({description:"Skip notifying Raycast after publishing "+i3,default:!1,hidden:!0})};async run(){let{flags:s}=await this.parse(i),c=Ck();if(s["skip-validation"]||await jFe({skipOwner:!0,fix:!1,relaxed:!1,skipLockFiles:!1,schema:`${Jx.url}/schemas/extension.json`})||this.error("failed validating extension"),Vct(c)){G0t();let p=await RFe();p.publishing_bot&&this.error("publishing bot cannot publish private extensions");let y=c.owner;y||this.error("missing owner in manifest");let x=(await H0t()).data;x.length===0&&this.error(`logged in user '${p.username}' is not part of any organization`),x.find(w=>w.handle===y)||this.error(`owner '${y}' in package.json doesn't match any organizations of the logged in user '${p.username}'`);try{let w=await N9e(c);s.clipboard&&(hPt.default.writeSync(w.store_url),E_("event","copied extension link to clipboard")),E_("success",`published extension to ${w.store_url}`),s["skip-notify-raycast"]||tPt("publish",c.owner)}catch(w){if(w instanceof Error&&w.message.includes("the limit of free commands has been reached")){let L=await X0t(c.owner),z=`${Jx.url}/upgrade/${c.owner}/${L}`;console.log((0,gPt.yellowBright)(`
|
|
863
863
|
You reached the limit of commands of the free plan for your organization. Upgrade your plan here:
|
|
864
|
-
${z}`)),process.exit(1)}this.error(w,{message:"publishing failed"})}}else{let p=!1;try{p=(await RFe()).publishing_bot}catch{}if(p)try{let y=await N9e(c);E_("success",`published extension to ${y.store_url}`)}catch(y){this.error(y,{message:"publishing failed"})}else s["non-interactive"]?this.error("Cannot publish the public extension to the store in non-interactive mode.
|
|
864
|
+
${z}`)),process.exit(1)}this.error(w,{message:"publishing failed"})}}else{let p=!1;try{p=(await RFe()).publishing_bot}catch{}if(p)try{let y=await N9e(c);E_("success",`published extension to ${y.store_url}`)}catch(y){this.error(y,{message:"publishing failed"})}else s["non-interactive"]?this.error("Cannot publish the public extension to the store in non-interactive mode. To make the extension private add the `owner` field to your package.json and ensure that the `access` field is not set to `public`."):await mPt(c)}}};
|
|
865
865
|
/*! Bundled license information:
|
|
866
866
|
|
|
867
867
|
arch/index.js:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var $=Object.create;var m=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var I=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),R=(t,n)=>{for(var o in n)m(t,o,{get:n[o],enumerable:!0})},A=(t,n,o,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of D(n))!L.call(t,i)&&i!==o&&m(t,i,{get:()=>n[i],enumerable:!(c=G(n,i))||c.enumerable});return t};var h=(t,n,o)=>(o=t!=null?$(O(t)):{},A(n||!t||!t.__esModule?m(o,"default",{value:t,enumerable:!0}):o,t)),F=t=>A(m({},"__esModule",{value:!0}),t);var B=I((Q,k)=>{var Y=require("node:tty"),J=Y?.WriteStream?.prototype?.hasColors?.()??!1,r=(t,n)=>{if(!J)return i=>i;let o=`\x1B[${t}m`,c=`\x1B[${n}m`;return i=>{let p=i+"",d=p.indexOf(c);if(d===-1)return o+p+c;let x=o,g=0;for(;d!==-1;)x+=p.slice(g,d)+o,g=d+c.length,d=p.indexOf(c,g);return x+=p.slice(g)+c,x}},e={};e.reset=r(0,0);e.bold=r(1,22);e.dim=r(2,22);e.italic=r(3,23);e.underline=r(4,24);e.overline=r(53,55);e.inverse=r(7,27);e.hidden=r(8,28);e.strikethrough=r(9,29);e.black=r(30,39);e.red=r(31,39);e.green=r(32,39);e.yellow=r(33,39);e.blue=r(34,39);e.magenta=r(35,39);e.cyan=r(36,39);e.white=r(37,39);e.gray=r(90,39);e.bgBlack=r(40,49);e.bgRed=r(41,49);e.bgGreen=r(42,49);e.bgYellow=r(43,49);e.bgBlue=r(44,49);e.bgMagenta=r(45,49);e.bgCyan=r(46,49);e.bgWhite=r(47,49);e.bgGray=r(100,49);e.redBright=r(91,39);e.greenBright=r(92,39);e.yellowBright=r(93,39);e.blueBright=r(94,39);e.magentaBright=r(95,39);e.cyanBright=r(96,39);e.whiteBright=r(97,39);e.bgRedBright=r(101,49);e.bgGreenBright=r(102,49);e.bgYellowBright=r(103,49);e.bgBlueBright=r(104,49);e.bgMagentaBright=r(105,49);e.bgCyanBright=r(106,49);e.bgWhiteBright=r(107,49);k.exports=e});var P=I((ie,H)=>{H.exports={name:"ray",description:"Build extensions for Raycast with React and Node.js.",version:"1.
|
|
1
|
+
"use strict";var $=Object.create;var m=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var I=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),R=(t,n)=>{for(var o in n)m(t,o,{get:n[o],enumerable:!0})},A=(t,n,o,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of D(n))!L.call(t,i)&&i!==o&&m(t,i,{get:()=>n[i],enumerable:!(c=G(n,i))||c.enumerable});return t};var h=(t,n,o)=>(o=t!=null?$(O(t)):{},A(n||!t||!t.__esModule?m(o,"default",{value:t,enumerable:!0}):o,t)),F=t=>A(m({},"__esModule",{value:!0}),t);var B=I((Q,k)=>{var Y=require("node:tty"),J=Y?.WriteStream?.prototype?.hasColors?.()??!1,r=(t,n)=>{if(!J)return i=>i;let o=`\x1B[${t}m`,c=`\x1B[${n}m`;return i=>{let p=i+"",d=p.indexOf(c);if(d===-1)return o+p+c;let x=o,g=0;for(;d!==-1;)x+=p.slice(g,d)+o,g=d+c.length,d=p.indexOf(c,g);return x+=p.slice(g)+c,x}},e={};e.reset=r(0,0);e.bold=r(1,22);e.dim=r(2,22);e.italic=r(3,23);e.underline=r(4,24);e.overline=r(53,55);e.inverse=r(7,27);e.hidden=r(8,28);e.strikethrough=r(9,29);e.black=r(30,39);e.red=r(31,39);e.green=r(32,39);e.yellow=r(33,39);e.blue=r(34,39);e.magenta=r(35,39);e.cyan=r(36,39);e.white=r(37,39);e.gray=r(90,39);e.bgBlack=r(40,49);e.bgRed=r(41,49);e.bgGreen=r(42,49);e.bgYellow=r(43,49);e.bgBlue=r(44,49);e.bgMagenta=r(45,49);e.bgCyan=r(46,49);e.bgWhite=r(47,49);e.bgGray=r(100,49);e.redBright=r(91,39);e.greenBright=r(92,39);e.yellowBright=r(93,39);e.blueBright=r(94,39);e.magentaBright=r(95,39);e.cyanBright=r(96,39);e.whiteBright=r(97,39);e.bgRedBright=r(101,49);e.bgGreenBright=r(102,49);e.bgYellowBright=r(103,49);e.bgBlueBright=r(104,49);e.bgMagentaBright=r(105,49);e.bgCyanBright=r(106,49);e.bgWhiteBright=r(107,49);k.exports=e});var P=I((ie,H)=>{H.exports={name:"ray",description:"Build extensions for Raycast with React and Node.js.",version:"1.92.1",author:"mathieudutour",private:!0,bin:{ray:"./bin/run.js"},dependencies:{"@oclif/core":"^4.0.33","@oclif/plugin-autocomplete":"^3.2.10","@oclif/plugin-help":"^6.2.18","@oclif/plugin-not-found":"^3.2.28","@raycast/eslint-plugin":"^1.0.15","@raycast/extract-tools-info":"file:../extract-tools-info",ajv:"^8.17.1",archiver:"^7.0.1",camelcase:"^8.0.0",chokidar:"^4.0.1","cli-progress":"^3.12.0",clipboardy:"^2.3.0",execa:"^9.5.1","json-source-map":"^0.6.1",json5:"^2.2.3","node-fetch-cjs":"^3.3.2",open:"^8.4.2",ora:"^8.1.1","terminal-link":"^3.0.0",yaml:"^2.6.1","yoctocolors-cjs":"^2.1.2"},devDependencies:{"@raycast/eslint-config":"^1.0.11","@types/archiver":"^6.0.3","@types/cli-progress":"^3.11.6","@types/node":"20.8.4",esbuild:"^0.24.0",eslint:"^8","json-schema-to-typescript":"^15.0.3",oclif:"^4.15.28",typescript:"^5.6.3"},files:["/bin","/dist","/oclif.manifest.json"],license:"MIT",main:"dist/index.js",oclif:{bin:"ray",dirname:"ray",commands:"./dist/commands",plugins:["@oclif/plugin-autocomplete","@oclif/plugin-help","@oclif/plugin-not-found"]},scripts:{"json-schema-to-ts":"json2ts ../../api/schema.json -y > src/types/manifest-schema.d.ts","build-scripts":'./node_modules/.bin/tsc "./scripts/build.ts" "./scripts/build-command.ts" "./scripts/dev-command.ts" --outDir ./scripts/dist --esModuleInterop',"build-extract-tools-info":"cd ../extract-tools-info && npm ci && npm run build",prebuild:"npm run build-extract-tools-info && npm run json-schema-to-ts && npm run build-scripts",build:"node ./scripts/dist/build-command.js",predev:"npm run json-schema-to-ts && npm run build-scripts",dev:"node ./scripts/dist/dev-command.js",lint:"eslint . --ext .ts"},types:"dist/index.d.ts"}});var K={};R(K,{default:()=>b});module.exports=F(K);var l=require("@oclif/core");var f=h(require("node:fs")),w=h(require("node:path")),T=h(require("node:os"));var v={production:{url:"https://www.raycast.com",clientID:"KqAdcGhNfBKiUpfjD3nU3VNgh1t0iMPoX2hYEkN9d4I"},staging:{url:"https://www.rayca.st",clientID:"KqAdcGhNfBKiUpfjD3nU3VNgh1t0iMPoX2hYEkN9d4I"},development:{url:"http://localhost:3000",clientID:"rOCD_LhnXFObSLu9v7788qOGu25FZDqEzGjet4Q45ZY"}}[process.env.API_ENV||"production"],S="e69bae0ec90f5e838555",a={},E;function C(t){E=t;try{a=JSON.parse(f.readFileSync(w.join(M(),"config.json"),"utf8"))}catch(n){if(n instanceof Error&&n.code==="ENOENT")return;throw new Error(`Failed to read config file: ${n}`)}}function U(t){switch(t){case"raycastApiURL":return process.env.RAY_APIURL||a.APIURL||v.url;case"raycastAccessToken":return process.env.RAY_TOKEN||a.Token||a.AccessToken||"";case"raycastClientId":return process.env.RAY_CLIENT_ID||a.ClientID||v.clientID;case"githubClientId":return process.env.RAY_GithubClientID||a.GithubClientID||S;case"githubAccessToken":return process.env.GITHUB_ACCESS_TOKEN||a.GithubAccessToken||"";case"flavorName":return process.env.RAY_Target||(typeof a.Target>"u"?N("release"):a.Target)}}function N(t){switch(t){case"debug":return"debug";case"internal":return"internal";case"release":return"";case void 0:return U("flavorName")}}function _(){let t=N(E);return t==""?"raycast":`raycast-${t}`}function M(){let t=w.join(T.default.homedir(),".config",_());return f.mkdirSync(t,{recursive:!0}),t}var s=h(B());var ee=(0,s.blue)((0,s.dim)("internal only"));var u={wait:`\u{1F550}${(0,s.blue)("wait")} - `,info:`${process.env.GITHUB_ACTIONS==="true"?"\u2139\uFE0F":"\u2139\uFE0F "}${(0,s.cyan)("info")} - `,success:`\u2705${(0,s.green)("ready")} - `,warn:`${process.env.GITHUB_ACTIONS==="true"?"\u26A0\uFE0F":"\u26A0\uFE0F "}${(0,s.yellow)("warn")} - `,error:`\u{1F4A5}${(0,s.red)("error")} - `,event:`\u26A1\uFE0F${(0,s.magenta)("event")} - `,paymentPrompt:`\u{1F4B0}${(0,s.yellowBright)("plan")} - `},q=!0;function j(t,n){t||(u.wait=`${(0,s.blue)("wait")} - `,u.info=`${(0,s.cyan)("info")} - `,u.success=`${(0,s.green)("ready")} - `,u.warn=`${(0,s.yellow)("warn")} - `,u.error=`${(0,s.red)("error")} - `,u.event=`${(0,s.magenta)("event")} - `,u.paymentPrompt=`${(0,s.yellowBright)("plan")} - `),n&&(q=!1)}var y=class extends l.Command{static baseFlags={"exit-on-error":l.Flags.boolean({default:!0,helpGroup:"GLOBAL",aliases:["exitOnError"],deprecateAliases:!0,summary:"Always exit with non-zero code on error",allowNo:!0}),emoji:l.Flags.boolean({default:!1,helpGroup:"GLOBAL",summary:"Prefix output with emojis \u{1F308}"}),help:l.Flags.boolean({default:!1,helpGroup:"GLOBAL",summary:"Show the help message for the command"}),"non-interactive":l.Flags.boolean({char:"I",default:!1,helpGroup:"GLOBAL",summary:"Disable interactive outputs, useful for CI"}),target:l.Flags.option({char:"t",description:"Raycast app target",helpGroup:"GLOBAL",multiple:!1,options:["debug","internal","release"],hidden:!0})()};flags;args;async init(){await super.init(),process.on("SIGINT",()=>process.exit(1));let{args:n,flags:o}=await this.parse({flags:this.ctor.flags,baseFlags:super.ctor.baseFlags,enableJsonFlag:this.ctor.enableJsonFlag,args:this.ctor.args,strict:this.ctor.strict});this.flags=o,this.args=n,C(this.flags.target),j(this.flags.emoji,this.flags["non-interactive"])}error(n,o){return o?.message&&n instanceof Error&&(n.message=`${o.message} (${n.message})`,delete o.message),super.error(n,o)}async catch(n){return super.catch(n)}async finally(n){return super.finally(n)}};var b=class t extends y{static description="Print the version number";async run(){await this.parse(t),this.log(`${P().version}`)}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var p=(t,r)=>{for(var s in r)e(t,s,{get:r[s],enumerable:!0})},u=(t,r,s,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of m(r))!f.call(t,i)&&i!==s&&e(t,i,{get:()=>r[i],enumerable:!(o=c(r,i))||o.enumerable});return t};var T=t=>u(e({},"__esModule",{value:!0}),t);var y={};p(y,{formatExpectation:()=>l});module.exports=T(y);var g=t=>t==="meetsCriteria"?"":t.replace(/([A-Z])/g," $1").trim().split(" ").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ");function a(t){if(typeof t=="string")return a({name:t});let r=`Calls Tool ${t.name}`;return t.arguments&&(r+=` with arguments ${Object.keys(t.arguments).join(", ")}`),r}var l=t=>{if("meetsCriteria"in t)return t.meetsCriteria;if("callsTool"in t)return a(t.callsTool);if("not"in t){let n=l(t.not).split(" ");return n[0].endsWith("s")&&(n[0]=n[0].slice(0,-1)),`Doesn't ${n.join(" ")}`}if("or"in t)return`${t.or.map(l).join(" or ")}`;let r=Object.keys(t)[0],s=t[r],o=g(r);return s?`${o} "${s}"`:o};0&&(module.exports={formatExpectation});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";var Be=Object.create;var R=Object.defineProperty;var Ae=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var Ie=Object.getPrototypeOf,Se=Object.prototype.hasOwnProperty;var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pe=(e,t)=>{for(var r in t)R(e,r,{get:t[r],enumerable:!0})},U=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $e(t))!Se.call(e,o)&&o!==r&&R(e,o,{get:()=>t[o],enumerable:!(n=Ae(t,o))||n.enumerable});return e};var _e=(e,t,r)=>(r=e!=null?Be(Ie(e)):{},U(t||!e||!e.__esModule?R(r,"default",{value:e,enumerable:!0}):r,e)),Fe=e=>U(R({},"__esModule",{value:!0}),e);var W=m((pt,Y)=>{"use strict";Y.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var S=m((bt,X)=>{var E=W(),K={};for(let e of Object.keys(E))K[E[e]]=e;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};X.exports=i;for(let e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:r})}i.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),s=Math.max(t,r,n),l=s-o,c,a;s===o?c=0:t===s?c=(r-n)/l:r===s?c=2+(n-t)/l:n===s&&(c=4+(t-r)/l),c=Math.min(c*60,360),c<0&&(c+=360);let u=(o+s)/2;return s===o?a=0:u<=.5?a=l/(s+o):a=l/(2-s-o),[c,a*100,u*100]};i.rgb.hsv=function(e){let t,r,n,o,s,l=e[0]/255,c=e[1]/255,a=e[2]/255,u=Math.max(l,c,a),g=u-Math.min(l,c,a),h=function(b){return(u-b)/6/g+1/2};return g===0?(o=0,s=0):(s=g/u,t=h(l),r=h(c),n=h(a),l===u?o=n-r:c===u?o=1/3+t-n:a===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,s*100,u*100]};i.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],o=i.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,s*100,n*100]};i.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n),s=(1-t-o)/(1-o)||0,l=(1-r-o)/(1-o)||0,c=(1-n-o)/(1-o)||0;return[s*100,l*100,c*100,o*100]};function Le(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.keyword=function(e){let t=K[e];if(t)return t;let r=1/0,n;for(let o of Object.keys(E)){let s=E[o],l=Le(e,s);l<r&&(r=l,n=o)}return n};i.keyword.rgb=function(e){return E[e]};i.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let o=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,l=t*.0193+r*.1192+n*.9505;return[o*100,s*100,l*100]};i.rgb.lab=function(e){let t=i.rgb.xyz(e),r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let s=116*n-16,l=500*(r-n),c=200*(n-o);return[s,l,c]};i.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,o,s,l;if(r===0)return l=n*255,[l,l,l];n<.5?o=n*(1+r):o=n+r-n*r;let c=2*n-o,a=[0,0,0];for(let u=0;u<3;u++)s=t+1/3*-(u-1),s<0&&s++,s>1&&s--,6*s<1?l=c+(o-c)*6*s:2*s<1?l=o:3*s<2?l=c+(o-c)*(2/3-s)*6:l=c,a[u]=l*255;return a};i.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,o=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=s<=1?s:2-s;let l=(n+r)/2,c=n===0?2*o/(s+o):2*r/(n+r);return[t,c*100,l*100]};i.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,s=t-Math.floor(t),l=255*n*(1-r),c=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,o){case 0:return[n,a,l];case 1:return[c,n,l];case 2:return[l,n,a];case 3:return[l,c,n];case 4:return[a,l,n];case 5:return[n,l,c]}};i.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01),s,l;l=(2-r)*n;let c=(2-r)*o;return s=r*o,s/=c<=1?c:2-c,s=s||0,l/=2,[t,s*100,l*100]};i.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,o=r+n,s;o>1&&(r/=o,n/=o);let l=Math.floor(6*t),c=1-n;s=6*t-l,l&1&&(s=1-s);let a=r+s*(c-r),u,g,h;switch(l){default:case 6:case 0:u=c,g=a,h=r;break;case 1:u=a,g=c,h=r;break;case 2:u=r,g=c,h=a;break;case 3:u=r,g=a,h=c;break;case 4:u=a,g=r,h=c;break;case 5:u=c,g=r,h=a;break}return[u*255,g*255,h*255]};i.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100,s=1-Math.min(1,t*(1-o)+o),l=1-Math.min(1,r*(1-o)+o),c=1-Math.min(1,n*(1-o)+o);return[s*255,l*255,c*255]};i.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,o,s,l;return o=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,l=t*.0557+r*-.204+n*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),l=Math.min(Math.max(0,l),1),[o*255,s*255,l*255]};i.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let o=116*r-16,s=500*(t-r),l=200*(r-n);return[o,s,l]};i.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],o,s,l;s=(t+16)/116,o=r/500+s,l=s-n/200;let c=s**3,a=o**3,u=l**3;return s=c>.008856?c:(s-16/116)/7.787,o=a>.008856?a:(o-16/116)/7.787,l=u>.008856?u:(l-16/116)/7.787,o*=95.047,s*=100,l*=108.883,[o,s,l]};i.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],o;o=Math.atan2(n,r)*360/2/Math.PI,o<0&&(o+=360);let l=Math.sqrt(r*r+n*n);return[t,l,o]};i.lch.lab=function(e){let t=e[0],r=e[1],o=e[2]/360*2*Math.PI,s=r*Math.cos(o),l=r*Math.sin(o);return[t,s,l]};i.rgb.ansi16=function(e,t=null){let[r,n,o]=e,s=t===null?i.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let l=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(l+=60),l};i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])};i.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};i.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,o=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,o,s]};i.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,n,o]};i.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};i.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(c=>c+c).join(""));let n=parseInt(r,16),o=n>>16&255,s=n>>8&255,l=n&255;return[o,s,l]};i.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),l=o-s,c,a;return l<1?c=s/(1-l):c=0,l<=0?a=0:o===t?a=(r-n)/l%6:o===r?a=2+(n-t)/l:a=4+(t-r)/l,a/=6,a%=1,[a*360,l*100,c*100]};i.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],n*100,o*100]};i.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],n*100,o*100]};i.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let o=[0,0,0],s=t%1*6,l=s%1,c=1-l,a=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=c,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=c,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=c}return a=(1-r)*n,[(r*o[0]+a)*255,(r*o[1]+a)*255,(r*o[2]+a)*255]};i.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),o=0;return n>0&&(o=t/n),[e[0],o*100,n*100]};i.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,o=0;return n>0&&n<.5?o=t/(2*n):n>=.5&&n<1&&(o=t/(2*(1-n))),[e[0],o*100,n*100]};i.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};i.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,o=n-t,s=0;return o<1&&(s=(n-o)/(1-o)),[e[0],o*100,s*100]};i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};i.gray.hsl=function(e){return[0,0,e[0]]};i.gray.hsv=i.gray.hsl;i.gray.hwb=function(e){return[0,100,e[0]]};i.gray.cmyk=function(e){return[0,0,0,e[0]]};i.gray.lab=function(e){return[e[0],0,0]};i.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Z=m((mt,H)=>{var j=S();function qe(){let e={},t=Object.keys(j);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Ne(e){let t=qe(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),o=Object.keys(j[n]);for(let s=o.length,l=0;l<s;l++){let c=o[l],a=t[c];a.distance===-1&&(a.distance=t[n].distance+1,a.parent=n,r.unshift(c))}}return t}function Ge(e,t){return function(r){return t(e(r))}}function ze(e,t){let r=[t[e].parent,e],n=j[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),n=Ge(j[t[o].parent][o],n),o=t[o].parent;return n.conversion=r,n}H.exports=function(e){let t=Ne(e),r={},n=Object.keys(t);for(let o=n.length,s=0;s<o;s++){let l=n[s];t[l].parent!==null&&(r[l]=ze(l,t))}return r}});var Q=m((yt,J)=>{var P=S(),Ve=Z(),k={},De=Object.keys(P);function Ue(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Ye(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let o=e(r);if(typeof o=="object")for(let s=o.length,l=0;l<s;l++)o[l]=Math.round(o[l]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}De.forEach(e=>{k[e]={},Object.defineProperty(k[e],"channels",{value:P[e].channels}),Object.defineProperty(k[e],"labels",{value:P[e].labels});let t=Ve(e);Object.keys(t).forEach(n=>{let o=t[n];k[e][n]=Ye(o),k[e][n].raw=Ue(o)})});J.exports=k});var se=m((vt,oe)=>{"use strict";var ee=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,te=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},ne=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},T=e=>e,re=(e,t,r)=>[e,t,r],C=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},_,x=(e,t,r,n)=>{_===void 0&&(_=Q());let o=n?10:0,s={};for(let[l,c]of Object.entries(_)){let a=l==="ansi16"?"ansi":l;l===t?s[a]=e(r,o):typeof c=="object"&&(s[a]=e(c[t],o))}return s};function We(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[o,s]of Object.entries(n))t[o]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[o]=t[o],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",C(t.color,"ansi",()=>x(ee,"ansi16",T,!1)),C(t.color,"ansi256",()=>x(te,"ansi256",T,!1)),C(t.color,"ansi16m",()=>x(ne,"rgb",re,!1)),C(t.bgColor,"ansi",()=>x(ee,"ansi16",T,!0)),C(t.bgColor,"ansi256",()=>x(te,"ansi256",T,!0)),C(t.bgColor,"ansi16m",()=>x(ne,"rgb",re,!0)),t}Object.defineProperty(oe,"exports",{enumerable:!0,get:We})});var ce=m((wt,le)=>{"use strict";le.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var ue=m((kt,ae)=>{"use strict";var Ke=require("os"),ie=require("tty"),p=ce(),{env:d}=process,y;p("no-color")||p("no-colors")||p("color=false")||p("color=never")?y=0:(p("color")||p("colors")||p("color=true")||p("color=always"))&&(y=1);"FORCE_COLOR"in d&&(d.FORCE_COLOR==="true"?y=1:d.FORCE_COLOR==="false"?y=0:y=d.FORCE_COLOR.length===0?1:Math.min(parseInt(d.FORCE_COLOR,10),3));function F(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function L(e,t){if(y===0)return 0;if(p("color=16m")||p("color=full")||p("color=truecolor"))return 3;if(p("color=256"))return 2;if(e&&!t&&y===void 0)return 0;let r=y||0;if(d.TERM==="dumb")return r;if(process.platform==="win32"){let n=Ke.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in d)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in d)||d.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in d)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(d.TEAMCITY_VERSION)?1:0;if(d.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in d){let n=parseInt((d.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(d.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(d.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(d.TERM)||"COLORTERM"in d?1:r}function Xe(e){let t=L(e,e&&e.isTTY);return F(t)}ae.exports={supportsColor:Xe,stdout:F(L(!0,ie.isatty(1))),stderr:F(L(!0,ie.isatty(2)))}});var he=m((Ct,fe)=>{"use strict";var He=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let o=t.length,s=0,l="";do l+=e.substr(s,n-s)+t+r,s=n+o,n=e.indexOf(t,s);while(n!==-1);return l+=e.substr(s),l},Ze=(e,t,r,n)=>{let o=0,s="";do{let l=e[n-1]==="\r";s+=e.substr(o,(l?n-1:n)-o)+t+(l?`\r
|
|
1
|
+
"use strict";var Be=Object.create;var R=Object.defineProperty;var Ae=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var Ie=Object.getPrototypeOf,Se=Object.prototype.hasOwnProperty;var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pe=(e,t)=>{for(var r in t)R(e,r,{get:t[r],enumerable:!0})},U=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $e(t))!Se.call(e,o)&&o!==r&&R(e,o,{get:()=>t[o],enumerable:!(n=Ae(t,o))||n.enumerable});return e};var _e=(e,t,r)=>(r=e!=null?Be(Ie(e)):{},U(t||!e||!e.__esModule?R(r,"default",{value:e,enumerable:!0}):r,e)),Fe=e=>U(R({},"__esModule",{value:!0}),e);var W=m((pt,Y)=>{"use strict";Y.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var P=m((bt,X)=>{var E=W(),K={};for(let e of Object.keys(E))K[E[e]]=e;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};X.exports=i;for(let e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:r})}i.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),s=Math.max(t,r,n),l=s-o,c,a;s===o?c=0:t===s?c=(r-n)/l:r===s?c=2+(n-t)/l:n===s&&(c=4+(t-r)/l),c=Math.min(c*60,360),c<0&&(c+=360);let u=(o+s)/2;return s===o?a=0:u<=.5?a=l/(s+o):a=l/(2-s-o),[c,a*100,u*100]};i.rgb.hsv=function(e){let t,r,n,o,s,l=e[0]/255,c=e[1]/255,a=e[2]/255,u=Math.max(l,c,a),g=u-Math.min(l,c,a),h=function(b){return(u-b)/6/g+1/2};return g===0?(o=0,s=0):(s=g/u,t=h(l),r=h(c),n=h(a),l===u?o=n-r:c===u?o=1/3+t-n:a===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,s*100,u*100]};i.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],o=i.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,s*100,n*100]};i.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n),s=(1-t-o)/(1-o)||0,l=(1-r-o)/(1-o)||0,c=(1-n-o)/(1-o)||0;return[s*100,l*100,c*100,o*100]};function Le(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.keyword=function(e){let t=K[e];if(t)return t;let r=1/0,n;for(let o of Object.keys(E)){let s=E[o],l=Le(e,s);l<r&&(r=l,n=o)}return n};i.keyword.rgb=function(e){return E[e]};i.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let o=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,l=t*.0193+r*.1192+n*.9505;return[o*100,s*100,l*100]};i.rgb.lab=function(e){let t=i.rgb.xyz(e),r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let s=116*n-16,l=500*(r-n),c=200*(n-o);return[s,l,c]};i.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,o,s,l;if(r===0)return l=n*255,[l,l,l];n<.5?o=n*(1+r):o=n+r-n*r;let c=2*n-o,a=[0,0,0];for(let u=0;u<3;u++)s=t+1/3*-(u-1),s<0&&s++,s>1&&s--,6*s<1?l=c+(o-c)*6*s:2*s<1?l=o:3*s<2?l=c+(o-c)*(2/3-s)*6:l=c,a[u]=l*255;return a};i.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,o=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=s<=1?s:2-s;let l=(n+r)/2,c=n===0?2*o/(s+o):2*r/(n+r);return[t,c*100,l*100]};i.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,s=t-Math.floor(t),l=255*n*(1-r),c=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,o){case 0:return[n,a,l];case 1:return[c,n,l];case 2:return[l,n,a];case 3:return[l,c,n];case 4:return[a,l,n];case 5:return[n,l,c]}};i.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01),s,l;l=(2-r)*n;let c=(2-r)*o;return s=r*o,s/=c<=1?c:2-c,s=s||0,l/=2,[t,s*100,l*100]};i.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,o=r+n,s;o>1&&(r/=o,n/=o);let l=Math.floor(6*t),c=1-n;s=6*t-l,l&1&&(s=1-s);let a=r+s*(c-r),u,g,h;switch(l){default:case 6:case 0:u=c,g=a,h=r;break;case 1:u=a,g=c,h=r;break;case 2:u=r,g=c,h=a;break;case 3:u=r,g=a,h=c;break;case 4:u=a,g=r,h=c;break;case 5:u=c,g=r,h=a;break}return[u*255,g*255,h*255]};i.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100,s=1-Math.min(1,t*(1-o)+o),l=1-Math.min(1,r*(1-o)+o),c=1-Math.min(1,n*(1-o)+o);return[s*255,l*255,c*255]};i.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,o,s,l;return o=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,l=t*.0557+r*-.204+n*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),l=Math.min(Math.max(0,l),1),[o*255,s*255,l*255]};i.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let o=116*r-16,s=500*(t-r),l=200*(r-n);return[o,s,l]};i.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],o,s,l;s=(t+16)/116,o=r/500+s,l=s-n/200;let c=s**3,a=o**3,u=l**3;return s=c>.008856?c:(s-16/116)/7.787,o=a>.008856?a:(o-16/116)/7.787,l=u>.008856?u:(l-16/116)/7.787,o*=95.047,s*=100,l*=108.883,[o,s,l]};i.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],o;o=Math.atan2(n,r)*360/2/Math.PI,o<0&&(o+=360);let l=Math.sqrt(r*r+n*n);return[t,l,o]};i.lch.lab=function(e){let t=e[0],r=e[1],o=e[2]/360*2*Math.PI,s=r*Math.cos(o),l=r*Math.sin(o);return[t,s,l]};i.rgb.ansi16=function(e,t=null){let[r,n,o]=e,s=t===null?i.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let l=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(l+=60),l};i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])};i.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};i.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,o=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,o,s]};i.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,n,o]};i.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};i.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(c=>c+c).join(""));let n=parseInt(r,16),o=n>>16&255,s=n>>8&255,l=n&255;return[o,s,l]};i.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),l=o-s,c,a;return l<1?c=s/(1-l):c=0,l<=0?a=0:o===t?a=(r-n)/l%6:o===r?a=2+(n-t)/l:a=4+(t-r)/l,a/=6,a%=1,[a*360,l*100,c*100]};i.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],n*100,o*100]};i.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],n*100,o*100]};i.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let o=[0,0,0],s=t%1*6,l=s%1,c=1-l,a=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=c,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=c,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=c}return a=(1-r)*n,[(r*o[0]+a)*255,(r*o[1]+a)*255,(r*o[2]+a)*255]};i.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),o=0;return n>0&&(o=t/n),[e[0],o*100,n*100]};i.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,o=0;return n>0&&n<.5?o=t/(2*n):n>=.5&&n<1&&(o=t/(2*(1-n))),[e[0],o*100,n*100]};i.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};i.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,o=n-t,s=0;return o<1&&(s=(n-o)/(1-o)),[e[0],o*100,s*100]};i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};i.gray.hsl=function(e){return[0,0,e[0]]};i.gray.hsv=i.gray.hsl;i.gray.hwb=function(e){return[0,100,e[0]]};i.gray.cmyk=function(e){return[0,0,0,e[0]]};i.gray.lab=function(e){return[e[0],0,0]};i.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Z=m((mt,H)=>{var j=P();function qe(){let e={},t=Object.keys(j);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Ne(e){let t=qe(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),o=Object.keys(j[n]);for(let s=o.length,l=0;l<s;l++){let c=o[l],a=t[c];a.distance===-1&&(a.distance=t[n].distance+1,a.parent=n,r.unshift(c))}}return t}function Ge(e,t){return function(r){return t(e(r))}}function ze(e,t){let r=[t[e].parent,e],n=j[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),n=Ge(j[t[o].parent][o],n),o=t[o].parent;return n.conversion=r,n}H.exports=function(e){let t=Ne(e),r={},n=Object.keys(t);for(let o=n.length,s=0;s<o;s++){let l=n[s];t[l].parent!==null&&(r[l]=ze(l,t))}return r}});var Q=m((yt,J)=>{var _=P(),Ve=Z(),k={},De=Object.keys(_);function Ue(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Ye(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let o=e(r);if(typeof o=="object")for(let s=o.length,l=0;l<s;l++)o[l]=Math.round(o[l]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}De.forEach(e=>{k[e]={},Object.defineProperty(k[e],"channels",{value:_[e].channels}),Object.defineProperty(k[e],"labels",{value:_[e].labels});let t=Ve(e);Object.keys(t).forEach(n=>{let o=t[n];k[e][n]=Ye(o),k[e][n].raw=Ue(o)})});J.exports=k});var se=m((vt,oe)=>{"use strict";var ee=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,te=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},ne=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},T=e=>e,re=(e,t,r)=>[e,t,r],C=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},F,x=(e,t,r,n)=>{F===void 0&&(F=Q());let o=n?10:0,s={};for(let[l,c]of Object.entries(F)){let a=l==="ansi16"?"ansi":l;l===t?s[a]=e(r,o):typeof c=="object"&&(s[a]=e(c[t],o))}return s};function We(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[o,s]of Object.entries(n))t[o]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[o]=t[o],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",C(t.color,"ansi",()=>x(ee,"ansi16",T,!1)),C(t.color,"ansi256",()=>x(te,"ansi256",T,!1)),C(t.color,"ansi16m",()=>x(ne,"rgb",re,!1)),C(t.bgColor,"ansi",()=>x(ee,"ansi16",T,!0)),C(t.bgColor,"ansi256",()=>x(te,"ansi256",T,!0)),C(t.bgColor,"ansi16m",()=>x(ne,"rgb",re,!0)),t}Object.defineProperty(oe,"exports",{enumerable:!0,get:We})});var ce=m((wt,le)=>{"use strict";le.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var ue=m((kt,ae)=>{"use strict";var Ke=require("os"),ie=require("tty"),p=ce(),{env:d}=process,y;p("no-color")||p("no-colors")||p("color=false")||p("color=never")?y=0:(p("color")||p("colors")||p("color=true")||p("color=always"))&&(y=1);"FORCE_COLOR"in d&&(d.FORCE_COLOR==="true"?y=1:d.FORCE_COLOR==="false"?y=0:y=d.FORCE_COLOR.length===0?1:Math.min(parseInt(d.FORCE_COLOR,10),3));function L(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function q(e,t){if(y===0)return 0;if(p("color=16m")||p("color=full")||p("color=truecolor"))return 3;if(p("color=256"))return 2;if(e&&!t&&y===void 0)return 0;let r=y||0;if(d.TERM==="dumb")return r;if(process.platform==="win32"){let n=Ke.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in d)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in d)||d.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in d)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(d.TEAMCITY_VERSION)?1:0;if(d.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in d){let n=parseInt((d.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(d.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(d.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(d.TERM)||"COLORTERM"in d?1:r}function Xe(e){let t=q(e,e&&e.isTTY);return L(t)}ae.exports={supportsColor:Xe,stdout:L(q(!0,ie.isatty(1))),stderr:L(q(!0,ie.isatty(2)))}});var he=m((Ct,fe)=>{"use strict";var He=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let o=t.length,s=0,l="";do l+=e.substr(s,n-s)+t+r,s=n+o,n=e.indexOf(t,s);while(n!==-1);return l+=e.substr(s),l},Ze=(e,t,r,n)=>{let o=0,s="";do{let l=e[n-1]==="\r";s+=e.substr(o,(l?n-1:n)-o)+t+(l?`\r
|
|
2
2
|
`:`
|
|
3
3
|
`)+r,o=n+1,n=e.indexOf(`
|
|
4
4
|
`,o)}while(n!==-1);return s+=e.substr(o),s};fe.exports={stringReplaceAll:He,stringEncaseCRLFWithFirstIndex:Ze}});var me=m((xt,be)=>{"use strict";var Je=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ge=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Qe=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,et=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,tt=new Map([["n",`
|
|
5
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function pe(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):tt.get(e)||e}function nt(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),o;for(let s of n){let l=Number(s);if(!Number.isNaN(l))r.push(l);else if(o=s.match(Qe))r.push(o[2].replace(et,(c,a,u)=>a?pe(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function rt(e){ge.lastIndex=0;let t=[],r;for(;(r=ge.exec(e))!==null;){let n=r[1];if(r[2]){let o=nt(n,r[2]);t.push([n].concat(o))}else t.push([n])}return t}function de(e,t){let r={};for(let o of t)for(let s of o.styles)r[s[0]]=o.inverse?null:s.slice(1);let n=e;for(let[o,s]of Object.entries(r))if(Array.isArray(s)){if(!(o in n))throw new Error(`Unknown Chalk style: ${o}`);n=s.length>0?n[o](...s):n[o]}return n}be.exports=(e,t)=>{let r=[],n=[],o=[];if(t.replace(Je,(s,l,c,a,u,g)=>{if(l)o.push(pe(l));else if(a){let h=o.join("");o=[],n.push(r.length===0?h:de(e,r)(h)),r.push({inverse:c,styles:rt(a)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(de(e,r)(o.join(""))),o=[],r.pop()}else o.push(g)}),n.push(o.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Oe=m((Ot,xe)=>{"use strict";var M=se(),{stdout:
|
|
6
|
-
`);return s!==-1&&(t=st(t,o,n,s)),n+t+o},
|
|
5
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function pe(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):tt.get(e)||e}function nt(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),o;for(let s of n){let l=Number(s);if(!Number.isNaN(l))r.push(l);else if(o=s.match(Qe))r.push(o[2].replace(et,(c,a,u)=>a?pe(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function rt(e){ge.lastIndex=0;let t=[],r;for(;(r=ge.exec(e))!==null;){let n=r[1];if(r[2]){let o=nt(n,r[2]);t.push([n].concat(o))}else t.push([n])}return t}function de(e,t){let r={};for(let o of t)for(let s of o.styles)r[s[0]]=o.inverse?null:s.slice(1);let n=e;for(let[o,s]of Object.entries(r))if(Array.isArray(s)){if(!(o in n))throw new Error(`Unknown Chalk style: ${o}`);n=s.length>0?n[o](...s):n[o]}return n}be.exports=(e,t)=>{let r=[],n=[],o=[];if(t.replace(Je,(s,l,c,a,u,g)=>{if(l)o.push(pe(l));else if(a){let h=o.join("");o=[],n.push(r.length===0?h:de(e,r)(h)),r.push({inverse:c,styles:rt(a)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(de(e,r)(o.join(""))),o=[],r.pop()}else o.push(g)}),n.push(o.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Oe=m((Ot,xe)=>{"use strict";var M=se(),{stdout:G,stderr:z}=ue(),{stringReplaceAll:ot,stringEncaseCRLFWithFirstIndex:st}=he(),{isArray:B}=Array,ve=["ansi","ansi","ansi256","ansi16m"],O=Object.create(null),lt=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=G?G.level:0;e.level=t.level===void 0?r:t.level},V=class{constructor(t){return we(t)}},we=e=>{let t={};return lt(t,e),t.template=(...r)=>Ce(t.template,...r),Object.setPrototypeOf(t,A.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=V,t.template};function A(e){return we(e)}for(let[e,t]of Object.entries(M))O[e]={get(){let r=$(this,D(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};O.visible={get(){let e=$(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var ke=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of ke)O[e]={get(){let{level:t}=this;return function(...r){let n=D(M.color[ve[t]][e](...r),M.color.close,this._styler);return $(this,n,this._isEmpty)}}};for(let e of ke){let t="bg"+e[0].toUpperCase()+e.slice(1);O[t]={get(){let{level:r}=this;return function(...n){let o=D(M.bgColor[ve[r]][e](...n),M.bgColor.close,this._styler);return $(this,o,this._isEmpty)}}}}var ct=Object.defineProperties(()=>{},{...O,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),D=(e,t,r)=>{let n,o;return r===void 0?(n=e,o=t):(n=r.openAll+e,o=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:o,parent:r}},$=(e,t,r)=>{let n=(...o)=>B(o[0])&&B(o[0].raw)?ye(n,Ce(n,...o)):ye(n,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(n,ct),n._generator=e,n._styler=t,n._isEmpty=r,n},ye=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:o}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=ot(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
6
|
+
`);return s!==-1&&(t=st(t,o,n,s)),n+t+o},N,Ce=(e,...t)=>{let[r]=t;if(!B(r)||!B(r.raw))return t.join(" ");let n=t.slice(1),o=[r.raw[0]];for(let s=1;s<r.length;s++)o.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return N===void 0&&(N=me()),N(e,o.join(""))};Object.defineProperties(A.prototype,O);var I=A();I.supportsColor=G;I.stderr=A({level:z?z.level:0});I.stderr.supportsColor=z;xe.exports=I});var gt={};Pe(gt,{renderResults:()=>ht});module.exports=Fe(gt);var f=_e(Oe());var it=e=>e==="meetsCriteria"?"":e.replace(/([A-Z])/g," $1").trim().split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");function Ee(e){if(typeof e=="string")return Ee({name:e});let t=`Calls Tool ${e.name}`;return e.arguments&&(t+=` with arguments ${Object.keys(e.arguments).join(", ")}`),t}var S=e=>{if("meetsCriteria"in e)return e.meetsCriteria;if("callsTool"in e)return Ee(e.callsTool);if("not"in e){let s=S(e.not).split(" ");return s[0].endsWith("s")&&(s[0]=s[0].slice(0,-1)),`Doesn't ${s.join(" ")}`}if("or"in e)return`${e.or.map(S).join(" or ")}`;let t=Object.keys(e)[0],r=e[t],n=it(t);return r?`${n} "${r}"`:n};var v=100,w=e=>{let t=e.replace(/\u001b\[\d+m/g,"");return Array.from(t).reduce((r,n)=>r+(new RegExp("\\p{Emoji_Presentation}","u").test(n)?2:1),0)},Me=(e,t=75)=>e?w(e)<=t?e:e.slice(0,t)+"...":"";function at(e,t,r=" "){let n=w(e);return n>=t?e:e+r.repeat(t-n)}function ut(e,t,r=" "){let n=w(e);return n>=t?e:r.repeat(t-n)+e}function Re(e){let t=e.reduce((l,c)=>Math.max(l,w(c.name)),0),r=f.default.grey("\u250C"+"\u2500".repeat(t+2)+"\u252C"+"\u2500".repeat(v)+"\u2510")+`
|
|
7
7
|
`,n=f.default.grey("\u251C"+"\u2500".repeat(t+2)+"\u253C"+"\u2500".repeat(v)+"\u2524")+`
|
|
8
8
|
`,o=f.default.grey("\u2514"+"\u2500".repeat(t+2)+"\u2534"+"\u2500".repeat(v)+"\u2518")+`
|
|
9
9
|
`,s=r;return e.forEach((l,c)=>{let a=l.content.split(`
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
`)}c===e.length-1?s+=o:s+=n}),s}function ft(e){let t=e.input,r="messages"in t?t.messages[0]?.content.text:t,n=e.score*100,o=e.assertionResults||[],s;e.status==="skipped"?s=f.default.yellow:e.status==="completed"&&n>=100?s=f.default.green:s=f.default.red;let c=(e.status==="error"||e.status==="completed"&&n<100?f.default.red:f.default.white)(`${e.index+1}. ${Me(r,200)}
|
|
13
13
|
`),a=e.status==="skipped"?"skipped":`Score: ${Math.round(n)}%`;if(c+=s(` ${ut(a,4)} `),c+=`
|
|
14
14
|
|
|
15
|
-
`,e.status==="error")c+=Re([{name:"Error",content:s(e.error)}]);else if(e.status==="completed"){let g=[{name:"Criteria",content:e.expected.map((h,b)=>{let je=o[b]?.result===1,Te=
|
|
15
|
+
`,e.status==="error")c+=Re([{name:"Error",content:s(e.error)}]);else if(e.status==="completed"){let g=[{name:"Criteria",content:e.expected.map((h,b)=>{let je=o[b]?.result===1,Te=S(h);return`${je?f.default.green("\u2714"):f.default.red("\u2718")} ${f.default.grey(Te)}`}).join(`
|
|
16
16
|
`)},{name:"Output",content:f.default.grey(Me(e.output.text,400))}];if(e.output.calledTools.length>0){let h=e.output.calledTools.map(b=>f.default.grey(`${b.name}(${b.arguments})`)).join(`
|
|
17
17
|
`);g.push({name:"Tools",content:h})}c+=Re(g),c+=`
|
|
18
18
|
`}return c}function ht(e){let t=e.length?e.reduce((c,a)=>c+a.score,0)/e.filter(c=>c.status!=="skipped").length*100:0;console.log();let r=e.length,n=e.filter(c=>c.status==="error"||c.status==="completed"&&c.score<1).length,o=e.filter(c=>c.status==="completed"&&c.score===1).length,s=e.filter(c=>c.status==="skipped").length,l="Total Score: ";l+=t===100?f.default.green(`${Math.round(t)}%`):f.default.red(`${Math.round(t)}%`),l+=" \u2502 ",l+=f.default.blue(`${o}/${r} Passed`),s>0&&(l+=" \u2502 ",l+=f.default.yellow(`${s} Skipped`)),n>0&&(l+=" \u2502 ",l+=f.default.red(`\u26A0\uFE0F ${n} Failed`)),console.log(l),console.log(),e.forEach(c=>{process.stdout.write(ft(c))})}0&&(module.exports={renderResults});
|
package/oclif.manifest.json
CHANGED
|
@@ -105,10 +105,12 @@
|
|
|
105
105
|
"index.js"
|
|
106
106
|
]
|
|
107
107
|
},
|
|
108
|
-
"
|
|
109
|
-
"aliases": [
|
|
108
|
+
"develop": {
|
|
109
|
+
"aliases": [
|
|
110
|
+
"dev"
|
|
111
|
+
],
|
|
110
112
|
"args": {},
|
|
111
|
-
"description": "
|
|
113
|
+
"description": "Start the extension in development mode and watches for changes",
|
|
112
114
|
"flags": {
|
|
113
115
|
"exit-on-error": {
|
|
114
116
|
"aliases": [
|
|
@@ -158,45 +160,31 @@
|
|
|
158
160
|
],
|
|
159
161
|
"type": "option"
|
|
160
162
|
},
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"name": "
|
|
163
|
+
"print-tool-schemas": {
|
|
164
|
+
"description": "Indicates whether to print the schema tools \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
165
|
+
"hidden": true,
|
|
166
|
+
"name": "print-tool-schemas",
|
|
165
167
|
"allowNo": false,
|
|
166
168
|
"type": "boolean"
|
|
167
169
|
},
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"description": "Path to extension. Current directory is used by default",
|
|
171
|
-
"name": "extension",
|
|
172
|
-
"default": "./",
|
|
173
|
-
"hasDynamicHelp": false,
|
|
174
|
-
"multiple": false,
|
|
175
|
-
"type": "option"
|
|
176
|
-
},
|
|
177
|
-
"apiEndpoint": {
|
|
178
|
-
"char": "a",
|
|
179
|
-
"description": "AI Evals API endpoint",
|
|
170
|
+
"print-instructions": {
|
|
171
|
+
"description": "Indicates whether to print the extension's instructions \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
180
172
|
"hidden": true,
|
|
181
|
-
"name": "
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"multiple": false,
|
|
185
|
-
"type": "option"
|
|
173
|
+
"name": "print-instructions",
|
|
174
|
+
"allowNo": false,
|
|
175
|
+
"type": "boolean"
|
|
186
176
|
},
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"name": "
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"multiple": false,
|
|
194
|
-
"type": "option"
|
|
177
|
+
"print-tool-calls": {
|
|
178
|
+
"description": "Indicates whether to print the inputs and outputs of tools when they are called from Raycast \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
179
|
+
"hidden": true,
|
|
180
|
+
"name": "print-tool-calls",
|
|
181
|
+
"allowNo": false,
|
|
182
|
+
"type": "boolean"
|
|
195
183
|
}
|
|
196
184
|
},
|
|
197
185
|
"hasDynamicHelp": false,
|
|
198
186
|
"hiddenAliases": [],
|
|
199
|
-
"id": "
|
|
187
|
+
"id": "develop",
|
|
200
188
|
"pluginAlias": "ray",
|
|
201
189
|
"pluginName": "ray",
|
|
202
190
|
"pluginType": "core",
|
|
@@ -206,16 +194,14 @@
|
|
|
206
194
|
"relativePath": [
|
|
207
195
|
"dist",
|
|
208
196
|
"commands",
|
|
209
|
-
"
|
|
197
|
+
"develop",
|
|
210
198
|
"index.js"
|
|
211
199
|
]
|
|
212
200
|
},
|
|
213
|
-
"
|
|
214
|
-
"aliases": [
|
|
215
|
-
"dev"
|
|
216
|
-
],
|
|
201
|
+
"evals": {
|
|
202
|
+
"aliases": [],
|
|
217
203
|
"args": {},
|
|
218
|
-
"description": "
|
|
204
|
+
"description": "Run AI evals defined in extension package.json",
|
|
219
205
|
"flags": {
|
|
220
206
|
"exit-on-error": {
|
|
221
207
|
"aliases": [
|
|
@@ -265,31 +251,45 @@
|
|
|
265
251
|
],
|
|
266
252
|
"type": "option"
|
|
267
253
|
},
|
|
268
|
-
"
|
|
269
|
-
"
|
|
270
|
-
"
|
|
271
|
-
"name": "
|
|
254
|
+
"skipBuild": {
|
|
255
|
+
"char": "s",
|
|
256
|
+
"description": "Skip extension build step",
|
|
257
|
+
"name": "skipBuild",
|
|
272
258
|
"allowNo": false,
|
|
273
259
|
"type": "boolean"
|
|
274
260
|
},
|
|
275
|
-
"
|
|
276
|
-
"
|
|
277
|
-
"
|
|
278
|
-
"name": "
|
|
279
|
-
"
|
|
280
|
-
"
|
|
261
|
+
"extension": {
|
|
262
|
+
"char": "e",
|
|
263
|
+
"description": "Path to extension. Current directory is used by default",
|
|
264
|
+
"name": "extension",
|
|
265
|
+
"default": "./",
|
|
266
|
+
"hasDynamicHelp": false,
|
|
267
|
+
"multiple": false,
|
|
268
|
+
"type": "option"
|
|
281
269
|
},
|
|
282
|
-
"
|
|
283
|
-
"
|
|
270
|
+
"apiEndpoint": {
|
|
271
|
+
"char": "a",
|
|
272
|
+
"description": "AI Evals API endpoint",
|
|
284
273
|
"hidden": true,
|
|
285
|
-
"name": "
|
|
286
|
-
"
|
|
287
|
-
"
|
|
274
|
+
"name": "apiEndpoint",
|
|
275
|
+
"default": "https://ai-evals.raycast.com/run-evals",
|
|
276
|
+
"hasDynamicHelp": false,
|
|
277
|
+
"multiple": false,
|
|
278
|
+
"type": "option"
|
|
279
|
+
},
|
|
280
|
+
"only": {
|
|
281
|
+
"char": "o",
|
|
282
|
+
"description": "Only run specified evals (0-2, 1, 1,2,3)",
|
|
283
|
+
"name": "only",
|
|
284
|
+
"default": "",
|
|
285
|
+
"hasDynamicHelp": false,
|
|
286
|
+
"multiple": false,
|
|
287
|
+
"type": "option"
|
|
288
288
|
}
|
|
289
289
|
},
|
|
290
290
|
"hasDynamicHelp": false,
|
|
291
291
|
"hiddenAliases": [],
|
|
292
|
-
"id": "
|
|
292
|
+
"id": "evals",
|
|
293
293
|
"pluginAlias": "ray",
|
|
294
294
|
"pluginName": "ray",
|
|
295
295
|
"pluginType": "core",
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
"relativePath": [
|
|
300
300
|
"dist",
|
|
301
301
|
"commands",
|
|
302
|
-
"
|
|
302
|
+
"evals",
|
|
303
303
|
"index.js"
|
|
304
304
|
]
|
|
305
305
|
},
|
|
@@ -694,10 +694,10 @@
|
|
|
694
694
|
"index.js"
|
|
695
695
|
]
|
|
696
696
|
},
|
|
697
|
-
"
|
|
697
|
+
"pull-contributions": {
|
|
698
698
|
"aliases": [],
|
|
699
699
|
"args": {},
|
|
700
|
-
"description": "
|
|
700
|
+
"description": "Pull contributions of the extension",
|
|
701
701
|
"flags": {
|
|
702
702
|
"exit-on-error": {
|
|
703
703
|
"aliases": [
|
|
@@ -746,51 +746,28 @@
|
|
|
746
746
|
"release"
|
|
747
747
|
],
|
|
748
748
|
"type": "option"
|
|
749
|
-
},
|
|
750
|
-
"clipboard": {
|
|
751
|
-
"char": "C",
|
|
752
|
-
"description": "Copy the extension link to the clipboard upon publishing",
|
|
753
|
-
"name": "clipboard",
|
|
754
|
-
"allowNo": false,
|
|
755
|
-
"type": "boolean"
|
|
756
|
-
},
|
|
757
|
-
"skip-validation": {
|
|
758
|
-
"char": "s",
|
|
759
|
-
"description": "Skip validation and always publish \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
760
|
-
"hidden": true,
|
|
761
|
-
"name": "skip-validation",
|
|
762
|
-
"allowNo": false,
|
|
763
|
-
"type": "boolean"
|
|
764
|
-
},
|
|
765
|
-
"skip-notify-raycast": {
|
|
766
|
-
"description": "Skip notifying Raycast after publishing \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
767
|
-
"hidden": true,
|
|
768
|
-
"name": "skip-notify-raycast",
|
|
769
|
-
"allowNo": false,
|
|
770
|
-
"type": "boolean"
|
|
771
749
|
}
|
|
772
750
|
},
|
|
773
751
|
"hasDynamicHelp": false,
|
|
774
752
|
"hiddenAliases": [],
|
|
775
|
-
"id": "
|
|
753
|
+
"id": "pull-contributions",
|
|
776
754
|
"pluginAlias": "ray",
|
|
777
755
|
"pluginName": "ray",
|
|
778
756
|
"pluginType": "core",
|
|
779
757
|
"strict": true,
|
|
780
|
-
"summary": "Publish the extension",
|
|
781
758
|
"enableJsonFlag": false,
|
|
782
759
|
"isESM": false,
|
|
783
760
|
"relativePath": [
|
|
784
761
|
"dist",
|
|
785
762
|
"commands",
|
|
786
|
-
"
|
|
763
|
+
"pull-contributions",
|
|
787
764
|
"index.js"
|
|
788
765
|
]
|
|
789
766
|
},
|
|
790
|
-
"
|
|
767
|
+
"publish": {
|
|
791
768
|
"aliases": [],
|
|
792
769
|
"args": {},
|
|
793
|
-
"description": "
|
|
770
|
+
"description": "Publish the extension on the Raycast Store.\nPrivate extension are a team feature. Sign up for it here: https://www.raycast.com/pricing (https://www.raycast.com/pricing)",
|
|
794
771
|
"flags": {
|
|
795
772
|
"exit-on-error": {
|
|
796
773
|
"aliases": [
|
|
@@ -839,21 +816,44 @@
|
|
|
839
816
|
"release"
|
|
840
817
|
],
|
|
841
818
|
"type": "option"
|
|
819
|
+
},
|
|
820
|
+
"clipboard": {
|
|
821
|
+
"char": "C",
|
|
822
|
+
"description": "Copy the extension link to the clipboard upon publishing",
|
|
823
|
+
"name": "clipboard",
|
|
824
|
+
"allowNo": false,
|
|
825
|
+
"type": "boolean"
|
|
826
|
+
},
|
|
827
|
+
"skip-validation": {
|
|
828
|
+
"char": "s",
|
|
829
|
+
"description": "Skip validation and always publish \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
830
|
+
"hidden": true,
|
|
831
|
+
"name": "skip-validation",
|
|
832
|
+
"allowNo": false,
|
|
833
|
+
"type": "boolean"
|
|
834
|
+
},
|
|
835
|
+
"skip-notify-raycast": {
|
|
836
|
+
"description": "Skip notifying Raycast after publishing \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
837
|
+
"hidden": true,
|
|
838
|
+
"name": "skip-notify-raycast",
|
|
839
|
+
"allowNo": false,
|
|
840
|
+
"type": "boolean"
|
|
842
841
|
}
|
|
843
842
|
},
|
|
844
843
|
"hasDynamicHelp": false,
|
|
845
844
|
"hiddenAliases": [],
|
|
846
|
-
"id": "
|
|
845
|
+
"id": "publish",
|
|
847
846
|
"pluginAlias": "ray",
|
|
848
847
|
"pluginName": "ray",
|
|
849
848
|
"pluginType": "core",
|
|
850
849
|
"strict": true,
|
|
850
|
+
"summary": "Publish the extension",
|
|
851
851
|
"enableJsonFlag": false,
|
|
852
852
|
"isESM": false,
|
|
853
853
|
"relativePath": [
|
|
854
854
|
"dist",
|
|
855
855
|
"commands",
|
|
856
|
-
"
|
|
856
|
+
"publish",
|
|
857
857
|
"index.js"
|
|
858
858
|
]
|
|
859
859
|
},
|
|
@@ -1099,5 +1099,5 @@
|
|
|
1099
1099
|
]
|
|
1100
1100
|
}
|
|
1101
1101
|
},
|
|
1102
|
-
"version": "1.
|
|
1102
|
+
"version": "1.92.1"
|
|
1103
1103
|
}
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -8451,35 +8451,63 @@ declare interface LabelProps {
|
|
|
8451
8451
|
|
|
8452
8452
|
export declare namespace Tool {
|
|
8453
8453
|
/**
|
|
8454
|
-
* A
|
|
8454
|
+
* A tool confirmation is used to ask the user to validate the side-effects of the tool.
|
|
8455
8455
|
*
|
|
8456
|
-
*
|
|
8456
|
+
* @remarks
|
|
8457
|
+
* The tool confirmation is executed _before_ the actual tool is executed and receives the same input as the tool.
|
|
8458
|
+
* A confirmation returns an optional object that describes what the tool is about to do. It is important to be as clear as possible.
|
|
8459
|
+
*
|
|
8460
|
+
* If the user confirms the action, the tool will be executed afterwards. If the user cancels the action, the tool will not be executed.
|
|
8457
8461
|
*
|
|
8458
|
-
*
|
|
8462
|
+
* You can return `undefined` to skip the confirmation. This is useful for tools that conditionally perform destructive actions.
|
|
8463
|
+
* F.e. when moving a file, you don't need to confirm the action if the file doesn't overwrite another file.
|
|
8464
|
+
*
|
|
8465
|
+
* @example
|
|
8466
|
+
* ```typescript
|
|
8467
|
+
* const confirmation = (input: string) => {
|
|
8468
|
+
* return {
|
|
8469
|
+
* style: Action.Style.Destructive,
|
|
8470
|
+
* message: "Are you sure you want to delete the file?",
|
|
8471
|
+
* info: [{ name: "Filepath", value: input }],
|
|
8472
|
+
* };
|
|
8473
|
+
* };
|
|
8474
|
+
* ```
|
|
8459
8475
|
*/
|
|
8460
|
-
export type Confirmation<T> = (input: T) => Promise<
|
|
8476
|
+
export type Confirmation<T> = (input: T) => Promise<undefined | {
|
|
8461
8477
|
/**
|
|
8462
8478
|
* Defines the visual style of the Confirmation.
|
|
8463
8479
|
*
|
|
8464
8480
|
* @remarks
|
|
8465
|
-
* Use {@link Action.Style.Regular}
|
|
8466
|
-
* Use {@link Action.Style.Destructive} when your action
|
|
8481
|
+
* Use {@link Action.Style.Regular} to display a regular action.
|
|
8482
|
+
* Use {@link Action.Style.Destructive} when your action performs something irreversible like deleting data.
|
|
8483
|
+
*
|
|
8467
8484
|
* @defaultValue {@link Action.Style.Regular}
|
|
8468
8485
|
*/
|
|
8469
8486
|
style?: Action.Style;
|
|
8470
8487
|
/**
|
|
8471
8488
|
* Some name/value pairs that represents the side-effects of the tool.
|
|
8489
|
+
*
|
|
8490
|
+
* @remarks
|
|
8491
|
+
* Use it to provide more context about the tool to the user. For example, list the files that will be deleted.
|
|
8492
|
+
*
|
|
8493
|
+
* A name/value pair with an optional value won't be displayed if the value is `undefined`.
|
|
8472
8494
|
*/
|
|
8473
8495
|
info?: {
|
|
8474
8496
|
name: string;
|
|
8475
|
-
value
|
|
8497
|
+
value?: string;
|
|
8476
8498
|
}[];
|
|
8477
8499
|
/**
|
|
8478
8500
|
* A string that represents the side-effects of the tool.
|
|
8501
|
+
*
|
|
8502
|
+
* @remarks
|
|
8503
|
+
* Often times this is a question that the user needs to answer. For Example, "Are you sure you want to delete the file?"
|
|
8479
8504
|
*/
|
|
8480
8505
|
message?: string;
|
|
8481
8506
|
/**
|
|
8482
|
-
* An image that represents the side-effects of the tool.
|
|
8507
|
+
* An image that visually represents the side-effects of the tool.
|
|
8508
|
+
*
|
|
8509
|
+
* @remarks
|
|
8510
|
+
* Use an image that is relevant to the side-effects of the tool. For example, a screenshot of the files that will be deleted.
|
|
8483
8511
|
*/
|
|
8484
8512
|
image?: Image.URL | FileIcon;
|
|
8485
8513
|
}>;
|