@raycast/api 1.104.21 → 1.104.22

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.
@@ -1 +1 @@
1
- "use strict";var U=Object.create;var y=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var Y=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var A=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),H=(e,r)=>{for(var o in r)y(e,o,{get:r[o],enumerable:!0})},C=(e,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of M(r))!J.call(e,c)&&c!==o&&y(e,c,{get:()=>r[c],enumerable:!(i=_(r,c))||i.enumerable});return e};var h=(e,r,o)=>(o=e!=null?U(Y(e)):{},C(r||!e||!e.__esModule?y(o,"default",{value:e,enumerable:!0}):o,e)),K=e=>C(y({},"__esModule",{value:!0}),e);var O=A((ye,$)=>{var re=require("node:tty"),te=re?.WriteStream?.prototype?.hasColors?.()??!1,n=(e,r)=>{if(!te)return c=>c;let o=`\x1B[${e}m`,i=`\x1B[${r}m`;return c=>{let p=c+"",d=p.indexOf(i);if(d===-1)return o+p+i;let w=o,m=0,S=(r===22?i:"")+o;for(;d!==-1;)w+=p.slice(m,d)+S,m=d+i.length,d=p.indexOf(i,m);return w+=p.slice(m)+i,w}},t={};t.reset=n(0,0);t.bold=n(1,22);t.dim=n(2,22);t.italic=n(3,23);t.underline=n(4,24);t.overline=n(53,55);t.inverse=n(7,27);t.hidden=n(8,28);t.strikethrough=n(9,29);t.black=n(30,39);t.red=n(31,39);t.green=n(32,39);t.yellow=n(33,39);t.blue=n(34,39);t.magenta=n(35,39);t.cyan=n(36,39);t.white=n(37,39);t.gray=n(90,39);t.bgBlack=n(40,49);t.bgRed=n(41,49);t.bgGreen=n(42,49);t.bgYellow=n(43,49);t.bgBlue=n(44,49);t.bgMagenta=n(45,49);t.bgCyan=n(46,49);t.bgWhite=n(47,49);t.bgGray=n(100,49);t.redBright=n(91,39);t.greenBright=n(92,39);t.yellowBright=n(93,39);t.blueBright=n(94,39);t.magentaBright=n(95,39);t.cyanBright=n(96,39);t.whiteBright=n(97,39);t.bgRedBright=n(101,49);t.bgGreenBright=n(102,49);t.bgYellowBright=n(103,49);t.bgBlueBright=n(104,49);t.bgMagentaBright=n(105,49);t.bgCyanBright=n(106,49);t.bgWhiteBright=n(107,49);$.exports=t});var L=A((Ae,se)=>{se.exports={name:"ray",description:"Build extensions for Raycast with React and Node.js.",version:"1.104.21",author:"mathieudutour",private:!0,bin:{ray:"./bin/run.js"},dependencies:{"@oclif/core":"^4.8.4","@oclif/plugin-autocomplete":"^3.2.40","@oclif/plugin-help":"^6.2.37","@oclif/plugin-not-found":"^3.2.74","@raycast/eslint-plugin":"^2.1.1",ajv:"^8.18.0",archiver:"^7.0.1",camelcase:"^8.0.0",chokidar:"^4.0.3","cli-progress":"^3.12.0",clipboardy:"^2.3.0",execa:"^9.6.1","json-source-map":"^0.6.1",json5:"^2.2.3","node-fetch-cjs":"^3.3.2",open:"^8.4.2",ora:"^8.2.0",tail:"^2.2.6","terminal-link":"^3.0.0",yaml:"^2.8.2","yoctocolors-cjs":"^2.1.3"},devDependencies:{"@raycast/eslint-config":"^2.1.1","@types/archiver":"^7.0.0","@types/cli-progress":"^3.11.6","@types/node":"22.19.17","@types/tail":"^2.2.3",esbuild:"^0.27.3",eslint:"^9","json-schema-to-typescript":"^15.0.4",oclif:"^4.22.87",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":'tsc "./scripts/build.ts" "./scripts/build-command.ts" "./scripts/dev-command.ts" --outDir ./scripts/dist --esModuleInterop',prebuild:"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",test:"node --experimental-strip-types --test"},types:"dist/index.d.ts"}});var oe={};H(oe,{default:()=>I});module.exports=K(oe);var u=require("@oclif/core");var g=h(require("node:fs")),R=h(require("node:path")),P=h(require("node:os"));var a={debug:"debug",internal:"internal",release:"release",x:"x",xDevelopment:"x-development",xInternal:"x-internal"},E=Object.values(a);function N(e){return e==="x"?{bundleID:"com.raycast-x.macos",scheme:process.platform==="darwin"?"raycast-x":"raycast"}:e.startsWith("x-")?{bundleID:`com.raycast-x.macos.${e.replace("x-","")}`,scheme:`raycast-${e}`}:e?{bundleID:`com.raycast.macos.${e}`,scheme:`raycast${e}`}:{bundleID:"com.raycast.macos",scheme:"raycast"}}function b(e){return e===a.release?"":e}var V=[[a.release,a.x],[a.internal,a.xInternal],[a.debug,a.xDevelopment]];function D(e,r){for(let[o,i]of V){let c=b(o);if(e!==c)continue;let p=b(i);return r(N(p).bundleID)?p:e}return e}var k=require("node:child_process");function F(e){try{return(0,k.execFileSync)("/usr/bin/lsappinfo",["find",`bundleid=${e}`],{encoding:"utf8",stdio:["ignore","pipe","ignore"]}).trim().length>0}catch{return!1}}var B={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"],X="e69bae0ec90f5e838555",l={},v,q;function j(e){v=e;try{l=JSON.parse(g.readFileSync(R.join(ee(),"config.json"),"utf8"))}catch(r){if(!(r instanceof Error)||r.code!=="ENOENT")throw new Error(`Failed to read config file: ${r}`)}q=z()}function W(e){switch(e){case"raycastApiURL":return process.env.RAY_APIURL||l.APIURL||B.url;case"raycastAccessToken":return process.env.RAY_TOKEN||l.Token||l.AccessToken||"";case"raycastClientId":return process.env.RAY_CLIENT_ID||l.ClientID||B.clientID;case"githubClientId":return process.env.RAY_GithubClientID||l.GithubClientID||X;case"githubAccessToken":return process.env.GITHUB_ACCESS_TOKEN||l.GithubAccessToken||"";case"flavorName":return process.env.RAY_Target?process.env.RAY_Target:typeof l.Target<"u"?l.Target:x(process.platform==="win32"?a.x:a.release)}}function x(e){return typeof e<"u"?b(e):W("flavorName")}function z(){let e=x(v);return process.platform!=="darwin"?e:D(e,F)}function Z(e){return e==""?"raycast":`raycast-${e}`}function Q(e){let r=R.join(P.default.homedir(),".config",Z(e));return g.mkdirSync(r,{recursive:!0}),r}function ee(){return Q(x(v))}var s=h(O());var he=(0,s.blue)((0,s.dim)("internal only"));var f={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")} - `},ne=!0;function G(e,r){e||(f.wait=`${(0,s.blue)("wait")} - `,f.info=`${(0,s.cyan)("info")} - `,f.success=`${(0,s.green)("ready")} - `,f.warn=`${(0,s.yellow)("warn")} - `,f.error=`${(0,s.red)("error")} - `,f.event=`${(0,s.magenta)("event")} - `,f.paymentPrompt=`${(0,s.yellowBright)("plan")} - `),r&&(ne=!1)}var T=class extends u.Command{static baseFlags={"exit-on-error":u.Flags.boolean({default:!0,helpGroup:"GLOBAL",aliases:["exitOnError"],deprecateAliases:!0,summary:"Always exit with non-zero code on error",allowNo:!0}),emoji:u.Flags.boolean({default:!1,helpGroup:"GLOBAL",summary:"Prefix output with emojis \u{1F308}"}),help:u.Flags.boolean({default:!1,helpGroup:"GLOBAL",summary:"Show the help message for the command"}),"non-interactive":u.Flags.boolean({char:"I",default:!1,helpGroup:"GLOBAL",summary:"Disable interactive outputs, useful for CI"}),target:u.Flags.option({char:"t",description:"Raycast app target",helpGroup:"GLOBAL",multiple:!1,options:[...E],hidden:!0})()};flags;args;async init(){await super.init(),process.on("SIGINT",()=>process.exit(1));let{args:r,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=r,j(this.flags.target),G(this.flags.emoji,this.flags["non-interactive"])}error(r,o){return o?.message&&r instanceof Error&&(r.message=`${o.message} (${r.message})`,delete o.message),super.error(r,o)}async catch(r){return super.catch(r)}async finally(r){return super.finally(r)}};var I=class e extends T{static description="Print the version number";async run(){await this.parse(e),this.log(`${L().version}`)}};
1
+ "use strict";var U=Object.create;var y=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var Y=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var A=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),H=(e,r)=>{for(var o in r)y(e,o,{get:r[o],enumerable:!0})},C=(e,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of M(r))!J.call(e,c)&&c!==o&&y(e,c,{get:()=>r[c],enumerable:!(i=_(r,c))||i.enumerable});return e};var h=(e,r,o)=>(o=e!=null?U(Y(e)):{},C(r||!e||!e.__esModule?y(o,"default",{value:e,enumerable:!0}):o,e)),K=e=>C(y({},"__esModule",{value:!0}),e);var O=A((ye,$)=>{var re=require("node:tty"),te=re?.WriteStream?.prototype?.hasColors?.()??!1,n=(e,r)=>{if(!te)return c=>c;let o=`\x1B[${e}m`,i=`\x1B[${r}m`;return c=>{let p=c+"",d=p.indexOf(i);if(d===-1)return o+p+i;let w=o,m=0,S=(r===22?i:"")+o;for(;d!==-1;)w+=p.slice(m,d)+S,m=d+i.length,d=p.indexOf(i,m);return w+=p.slice(m)+i,w}},t={};t.reset=n(0,0);t.bold=n(1,22);t.dim=n(2,22);t.italic=n(3,23);t.underline=n(4,24);t.overline=n(53,55);t.inverse=n(7,27);t.hidden=n(8,28);t.strikethrough=n(9,29);t.black=n(30,39);t.red=n(31,39);t.green=n(32,39);t.yellow=n(33,39);t.blue=n(34,39);t.magenta=n(35,39);t.cyan=n(36,39);t.white=n(37,39);t.gray=n(90,39);t.bgBlack=n(40,49);t.bgRed=n(41,49);t.bgGreen=n(42,49);t.bgYellow=n(43,49);t.bgBlue=n(44,49);t.bgMagenta=n(45,49);t.bgCyan=n(46,49);t.bgWhite=n(47,49);t.bgGray=n(100,49);t.redBright=n(91,39);t.greenBright=n(92,39);t.yellowBright=n(93,39);t.blueBright=n(94,39);t.magentaBright=n(95,39);t.cyanBright=n(96,39);t.whiteBright=n(97,39);t.bgRedBright=n(101,49);t.bgGreenBright=n(102,49);t.bgYellowBright=n(103,49);t.bgBlueBright=n(104,49);t.bgMagentaBright=n(105,49);t.bgCyanBright=n(106,49);t.bgWhiteBright=n(107,49);$.exports=t});var L=A((Ae,se)=>{se.exports={name:"ray",description:"Build extensions for Raycast with React and Node.js.",version:"1.104.22",author:"mathieudutour",private:!0,bin:{ray:"./bin/run.js"},dependencies:{"@oclif/core":"^4.8.4","@oclif/plugin-autocomplete":"^3.2.40","@oclif/plugin-help":"^6.2.37","@oclif/plugin-not-found":"^3.2.74","@raycast/eslint-plugin":"^2.1.1",ajv:"^8.18.0",archiver:"^7.0.1",camelcase:"^8.0.0",chokidar:"^4.0.3","cli-progress":"^3.12.0",clipboardy:"^2.3.0",execa:"^9.6.1","json-source-map":"^0.6.1",json5:"^2.2.3","node-fetch-cjs":"^3.3.2",open:"^8.4.2",ora:"^8.2.0",tail:"^2.2.6","terminal-link":"^3.0.0",yaml:"^2.8.2","yoctocolors-cjs":"^2.1.3"},devDependencies:{"@raycast/eslint-config":"^2.1.1","@types/archiver":"^7.0.0","@types/cli-progress":"^3.11.6","@types/node":"22.19.17","@types/tail":"^2.2.3",esbuild:"^0.27.3",eslint:"^9","json-schema-to-typescript":"^15.0.4",oclif:"^4.22.87",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":'tsc "./scripts/build.ts" "./scripts/build-command.ts" "./scripts/dev-command.ts" --outDir ./scripts/dist --esModuleInterop',prebuild:"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",test:"node --experimental-strip-types --test"},types:"dist/index.d.ts"}});var oe={};H(oe,{default:()=>I});module.exports=K(oe);var u=require("@oclif/core");var g=h(require("node:fs")),R=h(require("node:path")),P=h(require("node:os"));var a={debug:"debug",internal:"internal",release:"release",x:"x",xDevelopment:"x-development",xInternal:"x-internal"},E=Object.values(a);function N(e){return e==="x"?{bundleID:"com.raycast-x.macos",scheme:process.platform==="darwin"?"raycast-x":"raycast"}:e.startsWith("x-")?{bundleID:`com.raycast-x.macos.${e.replace("x-","")}`,scheme:`raycast-${e}`}:e?{bundleID:`com.raycast.macos.${e}`,scheme:`raycast${e}`}:{bundleID:"com.raycast.macos",scheme:"raycast"}}function b(e){return e===a.release?"":e}var V=[[a.release,a.x],[a.internal,a.xInternal],[a.debug,a.xDevelopment]];function D(e,r){for(let[o,i]of V){let c=b(o);if(e!==c)continue;let p=b(i);return r(N(p).bundleID)?p:e}return e}var k=require("node:child_process");function F(e){try{return(0,k.execFileSync)("/usr/bin/lsappinfo",["find",`bundleid=${e}`],{encoding:"utf8",stdio:["ignore","pipe","ignore"]}).trim().length>0}catch{return!1}}var B={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"],X="e69bae0ec90f5e838555",l={},v,q;function j(e){v=e;try{l=JSON.parse(g.readFileSync(R.join(ee(),"config.json"),"utf8"))}catch(r){if(!(r instanceof Error)||r.code!=="ENOENT")throw new Error(`Failed to read config file: ${r}`)}q=z()}function W(e){switch(e){case"raycastApiURL":return process.env.RAY_APIURL||l.APIURL||B.url;case"raycastAccessToken":return process.env.RAY_TOKEN||l.Token||l.AccessToken||"";case"raycastClientId":return process.env.RAY_CLIENT_ID||l.ClientID||B.clientID;case"githubClientId":return process.env.RAY_GithubClientID||l.GithubClientID||X;case"githubAccessToken":return process.env.GITHUB_ACCESS_TOKEN||l.GithubAccessToken||"";case"flavorName":return process.env.RAY_Target?process.env.RAY_Target:typeof l.Target<"u"?l.Target:x(process.platform==="win32"?a.x:a.release)}}function x(e){return typeof e<"u"?b(e):W("flavorName")}function z(){let e=x(v);return process.platform!=="darwin"?e:D(e,F)}function Z(e){return e==""?"raycast":`raycast-${e}`}function Q(e){let r=R.join(P.default.homedir(),".config",Z(e));return g.mkdirSync(r,{recursive:!0}),r}function ee(){return Q(x(v))}var s=h(O());var he=(0,s.blue)((0,s.dim)("internal only"));var f={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")} - `},ne=!0;function G(e,r){e||(f.wait=`${(0,s.blue)("wait")} - `,f.info=`${(0,s.cyan)("info")} - `,f.success=`${(0,s.green)("ready")} - `,f.warn=`${(0,s.yellow)("warn")} - `,f.error=`${(0,s.red)("error")} - `,f.event=`${(0,s.magenta)("event")} - `,f.paymentPrompt=`${(0,s.yellowBright)("plan")} - `),r&&(ne=!1)}var T=class extends u.Command{static baseFlags={"exit-on-error":u.Flags.boolean({default:!0,helpGroup:"GLOBAL",aliases:["exitOnError"],deprecateAliases:!0,summary:"Always exit with non-zero code on error",allowNo:!0}),emoji:u.Flags.boolean({default:!1,helpGroup:"GLOBAL",summary:"Prefix output with emojis \u{1F308}"}),help:u.Flags.boolean({default:!1,helpGroup:"GLOBAL",summary:"Show the help message for the command"}),"non-interactive":u.Flags.boolean({char:"I",default:!1,helpGroup:"GLOBAL",summary:"Disable interactive outputs, useful for CI"}),target:u.Flags.option({char:"t",description:"Raycast app target",helpGroup:"GLOBAL",multiple:!1,options:[...E],hidden:!0})()};flags;args;async init(){await super.init(),process.on("SIGINT",()=>process.exit(1));let{args:r,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=r,j(this.flags.target),G(this.flags.emoji,this.flags["non-interactive"])}error(r,o){return o?.message&&r instanceof Error&&(r.message=`${o.message} (${r.message})`,delete o.message),super.error(r,o)}async catch(r){return super.catch(r)}async finally(r){return super.finally(r)}};var I=class e extends T{static description="Print the version number";async run(){await this.parse(e),this.log(`${L().version}`)}};
@@ -204,10 +204,10 @@
204
204
  "index.js"
205
205
  ]
206
206
  },
207
- "lint": {
207
+ "evals": {
208
208
  "aliases": [],
209
209
  "args": {},
210
- "description": "Validate the extension manifest and metadata, and lint its source code",
210
+ "description": "Run AI evals defined in extension package.json",
211
211
  "flags": {
212
212
  "exit-on-error": {
213
213
  "aliases": [
@@ -260,26 +260,37 @@
260
260
  ],
261
261
  "type": "option"
262
262
  },
263
- "fix": {
264
- "char": "f",
265
- "description": "Attempt to fix linting issues",
266
- "name": "fix",
263
+ "skipBuild": {
264
+ "char": "s",
265
+ "description": "Skip extension build step",
266
+ "name": "skipBuild",
267
267
  "allowNo": false,
268
268
  "type": "boolean"
269
269
  },
270
- "relaxed": {
271
- "char": "r",
272
- "description": "Use relaxed linting mode to skip validation of: package.json schema, icons and metadata.",
273
- "name": "relaxed",
274
- "allowNo": false,
275
- "type": "boolean"
270
+ "extension": {
271
+ "char": "e",
272
+ "description": "Path to extension. Current directory is used by default",
273
+ "name": "extension",
274
+ "default": "./",
275
+ "hasDynamicHelp": false,
276
+ "multiple": false,
277
+ "type": "option"
276
278
  },
277
- "schema": {
278
- "char": "s",
279
- "description": "Path to JSON schema for package.json validation \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
279
+ "apiEndpoint": {
280
+ "char": "a",
281
+ "description": "AI Evals API endpoint",
280
282
  "hidden": true,
281
- "name": "schema",
282
- "default": "https://www.raycast.com/schemas/extension.json",
283
+ "name": "apiEndpoint",
284
+ "default": "https://ai-evals.raycast.com/run-evals",
285
+ "hasDynamicHelp": false,
286
+ "multiple": false,
287
+ "type": "option"
288
+ },
289
+ "only": {
290
+ "char": "o",
291
+ "description": "Only run specified evals (0-2, 1, 1,2,3)",
292
+ "name": "only",
293
+ "default": "",
283
294
  "hasDynamicHelp": false,
284
295
  "multiple": false,
285
296
  "type": "option"
@@ -287,7 +298,7 @@
287
298
  },
288
299
  "hasDynamicHelp": false,
289
300
  "hiddenAliases": [],
290
- "id": "lint",
301
+ "id": "evals",
291
302
  "pluginAlias": "ray",
292
303
  "pluginName": "ray",
293
304
  "pluginType": "core",
@@ -297,14 +308,14 @@
297
308
  "relativePath": [
298
309
  "dist",
299
310
  "commands",
300
- "lint",
311
+ "evals",
301
312
  "index.js"
302
313
  ]
303
314
  },
304
- "evals": {
315
+ "lint": {
305
316
  "aliases": [],
306
317
  "args": {},
307
- "description": "Run AI evals defined in extension package.json",
318
+ "description": "Validate the extension manifest and metadata, and lint its source code",
308
319
  "flags": {
309
320
  "exit-on-error": {
310
321
  "aliases": [
@@ -357,37 +368,26 @@
357
368
  ],
358
369
  "type": "option"
359
370
  },
360
- "skipBuild": {
361
- "char": "s",
362
- "description": "Skip extension build step",
363
- "name": "skipBuild",
371
+ "fix": {
372
+ "char": "f",
373
+ "description": "Attempt to fix linting issues",
374
+ "name": "fix",
364
375
  "allowNo": false,
365
376
  "type": "boolean"
366
377
  },
367
- "extension": {
368
- "char": "e",
369
- "description": "Path to extension. Current directory is used by default",
370
- "name": "extension",
371
- "default": "./",
372
- "hasDynamicHelp": false,
373
- "multiple": false,
374
- "type": "option"
378
+ "relaxed": {
379
+ "char": "r",
380
+ "description": "Use relaxed linting mode to skip validation of: package.json schema, icons and metadata.",
381
+ "name": "relaxed",
382
+ "allowNo": false,
383
+ "type": "boolean"
375
384
  },
376
- "apiEndpoint": {
377
- "char": "a",
378
- "description": "AI Evals API endpoint",
385
+ "schema": {
386
+ "char": "s",
387
+ "description": "Path to JSON schema for package.json validation \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
379
388
  "hidden": true,
380
- "name": "apiEndpoint",
381
- "default": "https://ai-evals.raycast.com/run-evals",
382
- "hasDynamicHelp": false,
383
- "multiple": false,
384
- "type": "option"
385
- },
386
- "only": {
387
- "char": "o",
388
- "description": "Only run specified evals (0-2, 1, 1,2,3)",
389
- "name": "only",
390
- "default": "",
389
+ "name": "schema",
390
+ "default": "https://www.raycast.com/schemas/extension.json",
391
391
  "hasDynamicHelp": false,
392
392
  "multiple": false,
393
393
  "type": "option"
@@ -395,7 +395,7 @@
395
395
  },
396
396
  "hasDynamicHelp": false,
397
397
  "hiddenAliases": [],
398
- "id": "evals",
398
+ "id": "lint",
399
399
  "pluginAlias": "ray",
400
400
  "pluginName": "ray",
401
401
  "pluginType": "core",
@@ -405,7 +405,7 @@
405
405
  "relativePath": [
406
406
  "dist",
407
407
  "commands",
408
- "evals",
408
+ "lint",
409
409
  "index.js"
410
410
  ]
411
411
  },
@@ -893,11 +893,18 @@
893
893
  "index.js"
894
894
  ]
895
895
  },
896
- "version": {
896
+ "token": {
897
897
  "aliases": [],
898
898
  "args": {},
899
- "description": "Print the version number",
899
+ "description": "Display the access token",
900
900
  "flags": {
901
+ "json": {
902
+ "description": "Format output as json.",
903
+ "helpGroup": "GLOBAL",
904
+ "name": "json",
905
+ "allowNo": false,
906
+ "type": "boolean"
907
+ },
901
908
  "exit-on-error": {
902
909
  "aliases": [
903
910
  "exitOnError"
@@ -948,36 +955,36 @@
948
955
  "x-internal"
949
956
  ],
950
957
  "type": "option"
958
+ },
959
+ "clipboard": {
960
+ "char": "C",
961
+ "description": "Copy the token to the clipboard",
962
+ "name": "clipboard",
963
+ "allowNo": false,
964
+ "type": "boolean"
951
965
  }
952
966
  },
953
967
  "hasDynamicHelp": false,
954
968
  "hiddenAliases": [],
955
- "id": "version",
969
+ "id": "token",
956
970
  "pluginAlias": "ray",
957
971
  "pluginName": "ray",
958
972
  "pluginType": "core",
959
973
  "strict": true,
960
- "enableJsonFlag": false,
974
+ "enableJsonFlag": true,
961
975
  "isESM": false,
962
976
  "relativePath": [
963
977
  "dist",
964
978
  "commands",
965
- "version",
979
+ "token",
966
980
  "index.js"
967
981
  ]
968
982
  },
969
- "token": {
983
+ "validate": {
970
984
  "aliases": [],
971
985
  "args": {},
972
- "description": "Display the access token",
986
+ "description": "Validate the extension so that it can be published - \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
973
987
  "flags": {
974
- "json": {
975
- "description": "Format output as json.",
976
- "helpGroup": "GLOBAL",
977
- "name": "json",
978
- "allowNo": false,
979
- "type": "boolean"
980
- },
981
988
  "exit-on-error": {
982
989
  "aliases": [
983
990
  "exitOnError"
@@ -1029,34 +1036,44 @@
1029
1036
  ],
1030
1037
  "type": "option"
1031
1038
  },
1032
- "clipboard": {
1033
- "char": "C",
1034
- "description": "Copy the token to the clipboard",
1035
- "name": "clipboard",
1039
+ "schema": {
1040
+ "char": "s",
1041
+ "description": "Path to JSON schema for package.json validation ",
1042
+ "name": "schema",
1043
+ "default": "https://www.raycast.com/schemas/extension.json",
1044
+ "hasDynamicHelp": false,
1045
+ "multiple": false,
1046
+ "type": "option"
1047
+ },
1048
+ "skip-owner": {
1049
+ "description": "Skip owner checks",
1050
+ "name": "skip-owner",
1036
1051
  "allowNo": false,
1037
1052
  "type": "boolean"
1038
1053
  }
1039
1054
  },
1040
1055
  "hasDynamicHelp": false,
1056
+ "hidden": true,
1041
1057
  "hiddenAliases": [],
1042
- "id": "token",
1058
+ "id": "validate",
1043
1059
  "pluginAlias": "ray",
1044
1060
  "pluginName": "ray",
1045
1061
  "pluginType": "core",
1046
1062
  "strict": true,
1047
- "enableJsonFlag": true,
1063
+ "summary": "Validate the extension - \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
1064
+ "enableJsonFlag": false,
1048
1065
  "isESM": false,
1049
1066
  "relativePath": [
1050
1067
  "dist",
1051
1068
  "commands",
1052
- "token",
1069
+ "validate",
1053
1070
  "index.js"
1054
1071
  ]
1055
1072
  },
1056
- "validate": {
1073
+ "version": {
1057
1074
  "aliases": [],
1058
1075
  "args": {},
1059
- "description": "Validate the extension so that it can be published - \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
1076
+ "description": "Print the version number",
1060
1077
  "flags": {
1061
1078
  "exit-on-error": {
1062
1079
  "aliases": [
@@ -1108,41 +1125,24 @@
1108
1125
  "x-internal"
1109
1126
  ],
1110
1127
  "type": "option"
1111
- },
1112
- "schema": {
1113
- "char": "s",
1114
- "description": "Path to JSON schema for package.json validation ",
1115
- "name": "schema",
1116
- "default": "https://www.raycast.com/schemas/extension.json",
1117
- "hasDynamicHelp": false,
1118
- "multiple": false,
1119
- "type": "option"
1120
- },
1121
- "skip-owner": {
1122
- "description": "Skip owner checks",
1123
- "name": "skip-owner",
1124
- "allowNo": false,
1125
- "type": "boolean"
1126
1128
  }
1127
1129
  },
1128
1130
  "hasDynamicHelp": false,
1129
- "hidden": true,
1130
1131
  "hiddenAliases": [],
1131
- "id": "validate",
1132
+ "id": "version",
1132
1133
  "pluginAlias": "ray",
1133
1134
  "pluginName": "ray",
1134
1135
  "pluginType": "core",
1135
1136
  "strict": true,
1136
- "summary": "Validate the extension - \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
1137
1137
  "enableJsonFlag": false,
1138
1138
  "isESM": false,
1139
1139
  "relativePath": [
1140
1140
  "dist",
1141
1141
  "commands",
1142
- "validate",
1142
+ "version",
1143
1143
  "index.js"
1144
1144
  ]
1145
1145
  }
1146
1146
  },
1147
- "version": "1.104.21"
1147
+ "version": "1.104.22"
1148
1148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.104.21",
3
+ "version": "1.104.22",
4
4
  "description": "Build extensions for Raycast with React and Node.js.",
5
5
  "author": "Raycast Technologies Ltd.",
6
6
  "homepage": "https://developers.raycast.com",