@raycast/api 1.94.0 → 1.94.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.
@@ -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 i in n)m(t,i,{get:n[i],enumerable:!0})},A=(t,n,i,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of D(n))!L.call(t,o)&&o!==i&&m(t,o,{get:()=>n[o],enumerable:!(c=G(n,o))||c.enumerable});return t};var h=(t,n,i)=>(i=t!=null?$(O(t)):{},A(n||!t||!t.__esModule?m(i,"default",{value:t,enumerable:!0}):i,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 o=>o;let i=`\x1B[${t}m`,c=`\x1B[${n}m`;return o=>{let d=o+"",p=d.indexOf(c);if(p===-1)return i+d+c;let x=i,g=0;for(;p!==-1;)x+=d.slice(g,p)+i,g=p+c.length,p=d.indexOf(c,g);return x+=d.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((oe,H)=>{H.exports={name:"ray",description:"Build extensions for Raycast with React and Node.js.",version:"1.94.0",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.25.1",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"x":return"x";case"x-internal":return"x-internal";case"x-debug":return"x-debug";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","x","x-debug","x-internal"],hidden:!0})()};flags;args;async init(){await super.init(),process.on("SIGINT",()=>process.exit(1));let{args:n,flags:i}=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=i,this.args=n,C(this.flags.target),j(this.flags.emoji,this.flags["non-interactive"])}error(n,i){return i?.message&&n instanceof Error&&(n.message=`${i.message} (${n.message})`,delete i.message),super.error(n,i)}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
+ "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 i in n)m(t,i,{get:n[i],enumerable:!0})},A=(t,n,i,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of D(n))!L.call(t,o)&&o!==i&&m(t,o,{get:()=>n[o],enumerable:!(c=G(n,o))||c.enumerable});return t};var h=(t,n,i)=>(i=t!=null?$(O(t)):{},A(n||!t||!t.__esModule?m(i,"default",{value:t,enumerable:!0}):i,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 o=>o;let i=`\x1B[${t}m`,c=`\x1B[${n}m`;return o=>{let d=o+"",p=d.indexOf(c);if(p===-1)return i+d+c;let x=i,g=0;for(;p!==-1;)x+=d.slice(g,p)+i,g=p+c.length,p=d.indexOf(c,g);return x+=d.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((oe,H)=>{H.exports={name:"ray",description:"Build extensions for Raycast with React and Node.js.",version:"1.94.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.25.1",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"x":return"x";case"x-internal":return"x-internal";case"x-debug":return"x-debug";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","x","x-debug","x-internal"],hidden:!0})()};flags;args;async init(){await super.init(),process.on("SIGINT",()=>process.exit(1));let{args:n,flags:i}=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=i,this.args=n,C(this.flags.target),j(this.flags.emoji,this.flags["non-interactive"])}error(n,i){return i?.message&&n instanceof Error&&(n.message=`${i.message} (${n.message})`,delete i.message),super.error(n,i)}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}`)}};
@@ -482,10 +482,10 @@
482
482
  "index.js"
483
483
  ]
484
484
  },
485
- "logout": {
485
+ "migrate": {
486
486
  "aliases": [],
487
487
  "args": {},
488
- "description": "Log out of your Raycast account",
488
+ "description": "Migrate the extension to a newer version of the Raycast API\nInternally, the command makes use of https://www.npmjs.com/package/@raycast/migration",
489
489
  "flags": {
490
490
  "exit-on-error": {
491
491
  "aliases": [
@@ -537,36 +537,39 @@
537
537
  "x-internal"
538
538
  ],
539
539
  "type": "option"
540
+ },
541
+ "path": {
542
+ "char": "p",
543
+ "description": "Path to extension root",
544
+ "name": "path",
545
+ "default": ".",
546
+ "hasDynamicHelp": false,
547
+ "multiple": false,
548
+ "type": "option"
540
549
  }
541
550
  },
542
551
  "hasDynamicHelp": false,
543
552
  "hiddenAliases": [],
544
- "id": "logout",
553
+ "id": "migrate",
545
554
  "pluginAlias": "ray",
546
555
  "pluginName": "ray",
547
556
  "pluginType": "core",
548
557
  "strict": true,
558
+ "summary": "Migrate the extension to a newer version of the Raycast API",
549
559
  "enableJsonFlag": false,
550
560
  "isESM": false,
551
561
  "relativePath": [
552
562
  "dist",
553
563
  "commands",
554
- "logout",
564
+ "migrate",
555
565
  "index.js"
556
566
  ]
557
567
  },
558
- "profile": {
568
+ "logout": {
559
569
  "aliases": [],
560
570
  "args": {},
561
- "description": "Show profile of the currently logged in user",
571
+ "description": "Log out of your Raycast account",
562
572
  "flags": {
563
- "json": {
564
- "description": "Format output as json.",
565
- "helpGroup": "GLOBAL",
566
- "name": "json",
567
- "allowNo": false,
568
- "type": "boolean"
569
- },
570
573
  "exit-on-error": {
571
574
  "aliases": [
572
575
  "exitOnError"
@@ -621,25 +624,32 @@
621
624
  },
622
625
  "hasDynamicHelp": false,
623
626
  "hiddenAliases": [],
624
- "id": "profile",
627
+ "id": "logout",
625
628
  "pluginAlias": "ray",
626
629
  "pluginName": "ray",
627
630
  "pluginType": "core",
628
631
  "strict": true,
629
- "enableJsonFlag": true,
632
+ "enableJsonFlag": false,
630
633
  "isESM": false,
631
634
  "relativePath": [
632
635
  "dist",
633
636
  "commands",
634
- "profile",
637
+ "logout",
635
638
  "index.js"
636
639
  ]
637
640
  },
638
- "publish": {
641
+ "profile": {
639
642
  "aliases": [],
640
643
  "args": {},
641
- "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​)",
644
+ "description": "Show profile of the currently logged in user",
642
645
  "flags": {
646
+ "json": {
647
+ "description": "Format output as json.",
648
+ "helpGroup": "GLOBAL",
649
+ "name": "json",
650
+ "allowNo": false,
651
+ "type": "boolean"
652
+ },
643
653
  "exit-on-error": {
644
654
  "aliases": [
645
655
  "exitOnError"
@@ -690,51 +700,28 @@
690
700
  "x-internal"
691
701
  ],
692
702
  "type": "option"
693
- },
694
- "clipboard": {
695
- "char": "C",
696
- "description": "Copy the extension link to the clipboard upon publishing",
697
- "name": "clipboard",
698
- "allowNo": false,
699
- "type": "boolean"
700
- },
701
- "skip-validation": {
702
- "char": "s",
703
- "description": "Skip validation and always publish \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
704
- "hidden": true,
705
- "name": "skip-validation",
706
- "allowNo": false,
707
- "type": "boolean"
708
- },
709
- "skip-notify-raycast": {
710
- "description": "Skip notifying Raycast after publishing \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
711
- "hidden": true,
712
- "name": "skip-notify-raycast",
713
- "allowNo": false,
714
- "type": "boolean"
715
703
  }
716
704
  },
717
705
  "hasDynamicHelp": false,
718
706
  "hiddenAliases": [],
719
- "id": "publish",
707
+ "id": "profile",
720
708
  "pluginAlias": "ray",
721
709
  "pluginName": "ray",
722
710
  "pluginType": "core",
723
711
  "strict": true,
724
- "summary": "Publish the extension",
725
- "enableJsonFlag": false,
712
+ "enableJsonFlag": true,
726
713
  "isESM": false,
727
714
  "relativePath": [
728
715
  "dist",
729
716
  "commands",
730
- "publish",
717
+ "profile",
731
718
  "index.js"
732
719
  ]
733
720
  },
734
- "migrate": {
721
+ "publish": {
735
722
  "aliases": [],
736
723
  "args": {},
737
- "description": "Migrate the extension to a newer version of the Raycast API\nInternally, the command makes use of https://www.npmjs.com/package/@raycast/migration",
724
+ "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​)",
738
725
  "flags": {
739
726
  "exit-on-error": {
740
727
  "aliases": [
@@ -787,30 +774,43 @@
787
774
  ],
788
775
  "type": "option"
789
776
  },
790
- "path": {
791
- "char": "p",
792
- "description": "Path to extension root",
793
- "name": "path",
794
- "default": ".",
795
- "hasDynamicHelp": false,
796
- "multiple": false,
797
- "type": "option"
777
+ "clipboard": {
778
+ "char": "C",
779
+ "description": "Copy the extension link to the clipboard upon publishing",
780
+ "name": "clipboard",
781
+ "allowNo": false,
782
+ "type": "boolean"
783
+ },
784
+ "skip-validation": {
785
+ "char": "s",
786
+ "description": "Skip validation and always publish \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
787
+ "hidden": true,
788
+ "name": "skip-validation",
789
+ "allowNo": false,
790
+ "type": "boolean"
791
+ },
792
+ "skip-notify-raycast": {
793
+ "description": "Skip notifying Raycast after publishing \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
794
+ "hidden": true,
795
+ "name": "skip-notify-raycast",
796
+ "allowNo": false,
797
+ "type": "boolean"
798
798
  }
799
799
  },
800
800
  "hasDynamicHelp": false,
801
801
  "hiddenAliases": [],
802
- "id": "migrate",
802
+ "id": "publish",
803
803
  "pluginAlias": "ray",
804
804
  "pluginName": "ray",
805
805
  "pluginType": "core",
806
806
  "strict": true,
807
- "summary": "Migrate the extension to a newer version of the Raycast API",
807
+ "summary": "Publish the extension",
808
808
  "enableJsonFlag": false,
809
809
  "isESM": false,
810
810
  "relativePath": [
811
811
  "dist",
812
812
  "commands",
813
- "migrate",
813
+ "publish",
814
814
  "index.js"
815
815
  ]
816
816
  },
@@ -974,10 +974,10 @@
974
974
  "index.js"
975
975
  ]
976
976
  },
977
- "validate": {
977
+ "version": {
978
978
  "aliases": [],
979
979
  "args": {},
980
- "description": "Validate the extension so that it can be published - \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
980
+ "description": "Print the version number",
981
981
  "flags": {
982
982
  "exit-on-error": {
983
983
  "aliases": [
@@ -1029,45 +1029,28 @@
1029
1029
  "x-internal"
1030
1030
  ],
1031
1031
  "type": "option"
1032
- },
1033
- "schema": {
1034
- "char": "s",
1035
- "description": "Path to JSON schema for package.json validation ",
1036
- "name": "schema",
1037
- "default": "https://www.raycast.com/schemas/extension.json",
1038
- "hasDynamicHelp": false,
1039
- "multiple": false,
1040
- "type": "option"
1041
- },
1042
- "skip-owner": {
1043
- "description": "Skip owner checks",
1044
- "name": "skip-owner",
1045
- "allowNo": false,
1046
- "type": "boolean"
1047
1032
  }
1048
1033
  },
1049
1034
  "hasDynamicHelp": false,
1050
- "hidden": true,
1051
1035
  "hiddenAliases": [],
1052
- "id": "validate",
1036
+ "id": "version",
1053
1037
  "pluginAlias": "ray",
1054
1038
  "pluginName": "ray",
1055
1039
  "pluginType": "core",
1056
1040
  "strict": true,
1057
- "summary": "Validate the extension - \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
1058
1041
  "enableJsonFlag": false,
1059
1042
  "isESM": false,
1060
1043
  "relativePath": [
1061
1044
  "dist",
1062
1045
  "commands",
1063
- "validate",
1046
+ "version",
1064
1047
  "index.js"
1065
1048
  ]
1066
1049
  },
1067
- "version": {
1050
+ "validate": {
1068
1051
  "aliases": [],
1069
1052
  "args": {},
1070
- "description": "Print the version number",
1053
+ "description": "Validate the extension so that it can be published - \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
1071
1054
  "flags": {
1072
1055
  "exit-on-error": {
1073
1056
  "aliases": [
@@ -1119,24 +1102,41 @@
1119
1102
  "x-internal"
1120
1103
  ],
1121
1104
  "type": "option"
1105
+ },
1106
+ "schema": {
1107
+ "char": "s",
1108
+ "description": "Path to JSON schema for package.json validation ",
1109
+ "name": "schema",
1110
+ "default": "https://www.raycast.com/schemas/extension.json",
1111
+ "hasDynamicHelp": false,
1112
+ "multiple": false,
1113
+ "type": "option"
1114
+ },
1115
+ "skip-owner": {
1116
+ "description": "Skip owner checks",
1117
+ "name": "skip-owner",
1118
+ "allowNo": false,
1119
+ "type": "boolean"
1122
1120
  }
1123
1121
  },
1124
1122
  "hasDynamicHelp": false,
1123
+ "hidden": true,
1125
1124
  "hiddenAliases": [],
1126
- "id": "version",
1125
+ "id": "validate",
1127
1126
  "pluginAlias": "ray",
1128
1127
  "pluginName": "ray",
1129
1128
  "pluginType": "core",
1130
1129
  "strict": true,
1130
+ "summary": "Validate the extension - \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
1131
1131
  "enableJsonFlag": false,
1132
1132
  "isESM": false,
1133
1133
  "relativePath": [
1134
1134
  "dist",
1135
1135
  "commands",
1136
- "version",
1136
+ "validate",
1137
1137
  "index.js"
1138
1138
  ]
1139
1139
  }
1140
1140
  },
1141
- "version": "1.94.0"
1141
+ "version": "1.94.1"
1142
1142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.94.0",
3
+ "version": "1.94.1",
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",
package/types/index.d.ts CHANGED
@@ -559,27 +559,7 @@ export declare namespace AI {
559
559
  }
560
560
 
561
561
  /** @deprecated Use the `AI.Model` enum instead */
562
- export type __DeprecatedModelUnion =
563
- /** @deprecated */
564
- "openai-gpt-3.5-turbo-instruct"
565
- /** @deprecated */
566
- | "openai-gpt-3.5-turbo" | "openai-gpt-4" | "openai-gpt-4-turbo" | "anthropic-claude-haiku" | "anthropic-claude-opus" | "anthropic-claude-sonnet"
567
- /** @deprecated */
568
- | "perplexity-sonar-medium-online"
569
- /** @deprecated */
570
- | "perplexity-sonar-small-online"
571
- /** @deprecated */
572
- | "llama2-70b" | "mixtral-8x7b"
573
- /** @deprecated */
574
- | "codellama-70b-instruct"
575
- /** @deprecated */
576
- | "gpt-3.5-turbo"
577
- /** @deprecated */
578
- | "gpt-3.5-turbo-instruct"
579
- /** @deprecated */
580
- | "gpt-4"
581
- /** @deprecated */
582
- | "text-davinci-003";
562
+ export type __DeprecatedModelUnion = "openai-gpt-3.5-turbo-instruct" | "openai-gpt-3.5-turbo" | "openai-gpt-4" | "openai-gpt-4-turbo" | "anthropic-claude-haiku" | "anthropic-claude-opus" | "anthropic-claude-sonnet" | "perplexity-sonar-medium-online" | "perplexity-sonar-small-online" | "llama2-70b" | "mixtral-8x7b" | "codellama-70b-instruct" | "gpt-3.5-turbo" | "gpt-3.5-turbo-instruct" | "gpt-4" | "text-davinci-003";
583
563
  }
584
564
 
585
565
  export declare namespace Alert {
@@ -5729,7 +5709,6 @@ declare interface ItemProps_3 {
5729
5709
  * @remarks
5730
5710
  * Only available in maCOS Sonoma and later.
5731
5711
  *
5732
- * @remarks
5733
5712
  * When used as an `alternate`, a {@link MenuBarExtra.Item} cannot specify its own shortcut shortcut. Instead, its
5734
5713
  * shortcut will automatically be set to whatever its parent's shortcut is, plus the ⌥ (opt) modifier.
5735
5714
  * Conversely, a {@link MenuBarExtra.Item} that provides an alternate cannot use ⌥ (opt) as a modifier. If it does,
@@ -5904,7 +5883,7 @@ declare interface LabelProps {
5904
5883
  icon?: Image.ImageLike | undefined | null;
5905
5884
  /**
5906
5885
  * The text value of the item.
5907
- * Specifying `color` will display the text in the provided color. Defaults to {@link Color.SecondaryText}.
5886
+ * Specifying `color` will display the text in the provided color. Defaults to {@link Color.PrimaryText}.
5908
5887
  */
5909
5888
  text?: string | {
5910
5889
  value: string;
@@ -6612,7 +6591,6 @@ declare interface LabelProps {
6612
6591
  * @remarks
6613
6592
  * An item that only provides only a `title` (and optionally `icon`) prop will be rendered as disabled. Use this to create section titles.
6614
6593
  *
6615
- * @remarks
6616
6594
  * An item that provides an `onAction` prop alongside `title` (and optionally `icon`) will _not_ be rendered as
6617
6595
  * disabled. When users click this item in the menu bar, the action handler will be executed.
6618
6596
  *
@@ -6939,7 +6917,9 @@ declare interface LabelProps {
6939
6917
  * Optional additional parameters for the authorization request.
6940
6918
  * Note that some providers require additional parameters, for example to obtain long-lived refresh tokens.
6941
6919
  */
6942
- extraParameters?: Record<string, string>;
6920
+ extraParameters?: {
6921
+ [key: string]: string;
6922
+ };
6943
6923
  }
6944
6924
  /**
6945
6925
  * Values of {@link OAuth.AuthorizationRequest}.
@@ -7543,7 +7523,9 @@ declare interface LabelProps {
7543
7523
  /**
7544
7524
  * A record type holding the preferences (entered in Raycast Preferences) that have been passed to the command.
7545
7525
  */
7546
- declare type Preferences_2 = Record<string, Preference_2>;
7526
+ declare type Preferences_2 = {
7527
+ [name: string]: Preference_2;
7528
+ };
7547
7529
 
7548
7530
  /**
7549
7531
  * Values of preference items.
@@ -8544,7 +8526,7 @@ declare interface LabelProps {
8544
8526
  /**
8545
8527
  * Moves a file or directory to the Trash.
8546
8528
  *
8547
- * @param paths - The item or items to move to the trash.
8529
+ * @param path - The item or items to move to the trash.
8548
8530
  * @returns A Promise that resolves when all files are moved to the trash.
8549
8531
  *
8550
8532
  * @example