@raycast/api 1.90.0 → 1.91.0

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 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.90.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.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
+ "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.91.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.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,9 +1,11 @@
1
1
  {
2
2
  "commands": {
3
- "build": {
4
- "aliases": [],
3
+ "develop": {
4
+ "aliases": [
5
+ "dev"
6
+ ],
5
7
  "args": {},
6
- "description": "Build the extension to the output directory",
8
+ "description": "Start the extension in development mode and watches for changes",
7
9
  "flags": {
8
10
  "exit-on-error": {
9
11
  "aliases": [
@@ -53,45 +55,31 @@
53
55
  ],
54
56
  "type": "option"
55
57
  },
56
- "environment": {
57
- "char": "e",
58
- "description": "Environment to build for",
59
- "name": "environment",
60
- "default": "dev",
61
- "hasDynamicHelp": false,
62
- "multiple": false,
63
- "options": [
64
- "dev",
65
- "dist"
66
- ],
67
- "type": "option"
68
- },
69
- "output": {
70
- "char": "o",
71
- "description": "Output path",
72
- "name": "output",
73
- "hasDynamicHelp": false,
74
- "multiple": false,
75
- "type": "option"
58
+ "print-tool-schemas": {
59
+ "description": "Indicates whether to print the schema tools \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
60
+ "hidden": true,
61
+ "name": "print-tool-schemas",
62
+ "allowNo": false,
63
+ "type": "boolean"
76
64
  },
77
- "skip-types": {
78
- "description": "Indicates whether to skip types generation \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
65
+ "print-instructions": {
66
+ "description": "Indicates whether to print the extension's instructions \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
79
67
  "hidden": true,
80
- "name": "skip-types",
68
+ "name": "print-instructions",
81
69
  "allowNo": false,
82
70
  "type": "boolean"
83
71
  },
84
- "print-tool-schemas": {
85
- "description": "Indicates whether to print the schema tools \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
72
+ "print-tool-calls": {
73
+ "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",
86
74
  "hidden": true,
87
- "name": "print-tool-schemas",
75
+ "name": "print-tool-calls",
88
76
  "allowNo": false,
89
77
  "type": "boolean"
90
78
  }
91
79
  },
92
80
  "hasDynamicHelp": false,
93
81
  "hiddenAliases": [],
94
- "id": "build",
82
+ "id": "develop",
95
83
  "pluginAlias": "ray",
96
84
  "pluginName": "ray",
97
85
  "pluginType": "core",
@@ -101,16 +89,14 @@
101
89
  "relativePath": [
102
90
  "dist",
103
91
  "commands",
104
- "build",
92
+ "develop",
105
93
  "index.js"
106
94
  ]
107
95
  },
108
- "develop": {
109
- "aliases": [
110
- "dev"
111
- ],
96
+ "build": {
97
+ "aliases": [],
112
98
  "args": {},
113
- "description": "Start the extension in development mode and watches for changes",
99
+ "description": "Build the extension to the output directory",
114
100
  "flags": {
115
101
  "exit-on-error": {
116
102
  "aliases": [
@@ -160,31 +146,45 @@
160
146
  ],
161
147
  "type": "option"
162
148
  },
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",
167
- "allowNo": false,
168
- "type": "boolean"
149
+ "environment": {
150
+ "char": "e",
151
+ "description": "Environment to build for",
152
+ "name": "environment",
153
+ "default": "dev",
154
+ "hasDynamicHelp": false,
155
+ "multiple": false,
156
+ "options": [
157
+ "dev",
158
+ "dist"
159
+ ],
160
+ "type": "option"
169
161
  },
170
- "print-instructions": {
171
- "description": "Indicates whether to print the extension's instructions \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
162
+ "output": {
163
+ "char": "o",
164
+ "description": "Output path",
165
+ "name": "output",
166
+ "hasDynamicHelp": false,
167
+ "multiple": false,
168
+ "type": "option"
169
+ },
170
+ "skip-types": {
171
+ "description": "Indicates whether to skip types generation \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
172
172
  "hidden": true,
173
- "name": "print-instructions",
173
+ "name": "skip-types",
174
174
  "allowNo": false,
175
175
  "type": "boolean"
176
176
  },
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",
177
+ "print-tool-schemas": {
178
+ "description": "Indicates whether to print the schema tools \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
179
179
  "hidden": true,
180
- "name": "print-tool-calls",
180
+ "name": "print-tool-schemas",
181
181
  "allowNo": false,
182
182
  "type": "boolean"
183
183
  }
184
184
  },
185
185
  "hasDynamicHelp": false,
186
186
  "hiddenAliases": [],
187
- "id": "develop",
187
+ "id": "build",
188
188
  "pluginAlias": "ray",
189
189
  "pluginName": "ray",
190
190
  "pluginType": "core",
@@ -194,7 +194,7 @@
194
194
  "relativePath": [
195
195
  "dist",
196
196
  "commands",
197
- "develop",
197
+ "build",
198
198
  "index.js"
199
199
  ]
200
200
  },
@@ -467,10 +467,10 @@
467
467
  "index.js"
468
468
  ]
469
469
  },
470
- "logout": {
470
+ "migrate": {
471
471
  "aliases": [],
472
472
  "args": {},
473
- "description": "Log out of your Raycast account",
473
+ "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",
474
474
  "flags": {
475
475
  "exit-on-error": {
476
476
  "aliases": [
@@ -519,29 +519,46 @@
519
519
  "release"
520
520
  ],
521
521
  "type": "option"
522
+ },
523
+ "path": {
524
+ "char": "p",
525
+ "description": "Path to extension root",
526
+ "name": "path",
527
+ "default": ".",
528
+ "hasDynamicHelp": false,
529
+ "multiple": false,
530
+ "type": "option"
522
531
  }
523
532
  },
524
533
  "hasDynamicHelp": false,
525
534
  "hiddenAliases": [],
526
- "id": "logout",
535
+ "id": "migrate",
527
536
  "pluginAlias": "ray",
528
537
  "pluginName": "ray",
529
538
  "pluginType": "core",
530
539
  "strict": true,
540
+ "summary": "Migrate the extension to a newer version of the Raycast API",
531
541
  "enableJsonFlag": false,
532
542
  "isESM": false,
533
543
  "relativePath": [
534
544
  "dist",
535
545
  "commands",
536
- "logout",
546
+ "migrate",
537
547
  "index.js"
538
548
  ]
539
549
  },
540
- "migrate": {
550
+ "profile": {
541
551
  "aliases": [],
542
552
  "args": {},
543
- "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",
553
+ "description": "Show profile of the currently logged in user",
544
554
  "flags": {
555
+ "json": {
556
+ "description": "Format output as json.",
557
+ "helpGroup": "GLOBAL",
558
+ "name": "json",
559
+ "allowNo": false,
560
+ "type": "boolean"
561
+ },
545
562
  "exit-on-error": {
546
563
  "aliases": [
547
564
  "exitOnError"
@@ -589,46 +606,29 @@
589
606
  "release"
590
607
  ],
591
608
  "type": "option"
592
- },
593
- "path": {
594
- "char": "p",
595
- "description": "Path to extension root",
596
- "name": "path",
597
- "default": ".",
598
- "hasDynamicHelp": false,
599
- "multiple": false,
600
- "type": "option"
601
609
  }
602
610
  },
603
611
  "hasDynamicHelp": false,
604
612
  "hiddenAliases": [],
605
- "id": "migrate",
613
+ "id": "profile",
606
614
  "pluginAlias": "ray",
607
615
  "pluginName": "ray",
608
616
  "pluginType": "core",
609
617
  "strict": true,
610
- "summary": "Migrate the extension to a newer version of the Raycast API",
611
- "enableJsonFlag": false,
618
+ "enableJsonFlag": true,
612
619
  "isESM": false,
613
620
  "relativePath": [
614
621
  "dist",
615
622
  "commands",
616
- "migrate",
623
+ "profile",
617
624
  "index.js"
618
625
  ]
619
626
  },
620
- "profile": {
627
+ "logout": {
621
628
  "aliases": [],
622
629
  "args": {},
623
- "description": "Show profile of the currently logged in user",
630
+ "description": "Log out of your Raycast account",
624
631
  "flags": {
625
- "json": {
626
- "description": "Format output as json.",
627
- "helpGroup": "GLOBAL",
628
- "name": "json",
629
- "allowNo": false,
630
- "type": "boolean"
631
- },
632
632
  "exit-on-error": {
633
633
  "aliases": [
634
634
  "exitOnError"
@@ -680,17 +680,17 @@
680
680
  },
681
681
  "hasDynamicHelp": false,
682
682
  "hiddenAliases": [],
683
- "id": "profile",
683
+ "id": "logout",
684
684
  "pluginAlias": "ray",
685
685
  "pluginName": "ray",
686
686
  "pluginType": "core",
687
687
  "strict": true,
688
- "enableJsonFlag": true,
688
+ "enableJsonFlag": false,
689
689
  "isESM": false,
690
690
  "relativePath": [
691
691
  "dist",
692
692
  "commands",
693
- "profile",
693
+ "logout",
694
694
  "index.js"
695
695
  ]
696
696
  },
@@ -787,11 +787,18 @@
787
787
  "index.js"
788
788
  ]
789
789
  },
790
- "pull-contributions": {
790
+ "token": {
791
791
  "aliases": [],
792
792
  "args": {},
793
- "description": "Pull contributions of the extension",
793
+ "description": "Display the access token",
794
794
  "flags": {
795
+ "json": {
796
+ "description": "Format output as json.",
797
+ "helpGroup": "GLOBAL",
798
+ "name": "json",
799
+ "allowNo": false,
800
+ "type": "boolean"
801
+ },
795
802
  "exit-on-error": {
796
803
  "aliases": [
797
804
  "exitOnError"
@@ -839,36 +846,36 @@
839
846
  "release"
840
847
  ],
841
848
  "type": "option"
849
+ },
850
+ "clipboard": {
851
+ "char": "C",
852
+ "description": "Copy the token to the clipboard",
853
+ "name": "clipboard",
854
+ "allowNo": false,
855
+ "type": "boolean"
842
856
  }
843
857
  },
844
858
  "hasDynamicHelp": false,
845
859
  "hiddenAliases": [],
846
- "id": "pull-contributions",
860
+ "id": "token",
847
861
  "pluginAlias": "ray",
848
862
  "pluginName": "ray",
849
863
  "pluginType": "core",
850
864
  "strict": true,
851
- "enableJsonFlag": false,
865
+ "enableJsonFlag": true,
852
866
  "isESM": false,
853
867
  "relativePath": [
854
868
  "dist",
855
869
  "commands",
856
- "pull-contributions",
870
+ "token",
857
871
  "index.js"
858
872
  ]
859
873
  },
860
- "token": {
874
+ "pull-contributions": {
861
875
  "aliases": [],
862
876
  "args": {},
863
- "description": "Display the access token",
877
+ "description": "Pull contributions of the extension",
864
878
  "flags": {
865
- "json": {
866
- "description": "Format output as json.",
867
- "helpGroup": "GLOBAL",
868
- "name": "json",
869
- "allowNo": false,
870
- "type": "boolean"
871
- },
872
879
  "exit-on-error": {
873
880
  "aliases": [
874
881
  "exitOnError"
@@ -916,28 +923,21 @@
916
923
  "release"
917
924
  ],
918
925
  "type": "option"
919
- },
920
- "clipboard": {
921
- "char": "C",
922
- "description": "Copy the token to the clipboard",
923
- "name": "clipboard",
924
- "allowNo": false,
925
- "type": "boolean"
926
926
  }
927
927
  },
928
928
  "hasDynamicHelp": false,
929
929
  "hiddenAliases": [],
930
- "id": "token",
930
+ "id": "pull-contributions",
931
931
  "pluginAlias": "ray",
932
932
  "pluginName": "ray",
933
933
  "pluginType": "core",
934
934
  "strict": true,
935
- "enableJsonFlag": true,
935
+ "enableJsonFlag": false,
936
936
  "isESM": false,
937
937
  "relativePath": [
938
938
  "dist",
939
939
  "commands",
940
- "token",
940
+ "pull-contributions",
941
941
  "index.js"
942
942
  ]
943
943
  },
@@ -1099,5 +1099,5 @@
1099
1099
  ]
1100
1100
  }
1101
1101
  },
1102
- "version": "1.90.0"
1102
+ "version": "1.91.0"
1103
1103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.90.0",
3
+ "version": "1.91.0",
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
@@ -500,14 +500,26 @@ export declare namespace AI {
500
500
  Anthropic_Claude_Sonnet = "anthropic-claude-sonnet",
501
501
  MixtraL_8x7B = "mixtral-8x7b",
502
502
  "Mistral_Nemo" = "mistral-nemo",
503
- "Mistral_Large2" = "mistral-large-2",
504
503
  Llama3_70B = "llama3-70b",
505
504
  "Llama3.3_70B" = "groq-llama-3.3-70b-versatile",
506
505
  "Llama3.1_8B" = "llama3.1-8b",
507
506
  "Llama3.1_405B" = "llama3.1-405b",
508
- "Perplexity_Llama3.1_Sonar_Huge" = "perplexity-llama-3.1-sonar-huge-128k-online",
509
- "Perplexity_Llama3.1_Sonar_Large" = "perplexity-llama-3.1-sonar-large-128k-online",
510
- "Perplexity_Llama3.1_Sonar_Small" = "perplexity-llama-3.1-sonar-small-128k-online",
507
+ "Mistral_Large" = "mistral-large",
508
+ "Mistral_Small" = "mistral-small",
509
+ "Mistral_Codestral" = "mistral-codestral",
510
+ "OpenAI_o1-preview" = "openai_o1-o1-preview",
511
+ "OpenAI_o1-mini" = "openai_o1-o1-mini",
512
+ "OpenAI_o3-mini" = "openai_o1-o3-mini",
513
+ "Perplexity_Sonar" = "perplexity-sonar",
514
+ "Perplexity_Sonar_Pro" = "perplexity-sonar-pro",
515
+ "Perplexity_Sonar_Reasoning" = "perplexity-sonar-reasoning",
516
+ "Groq_DeepSeek_R1_Distill_Llama_3.3_70B" = "groq-deepseek-r1-distill-llama-70b",
517
+ "Google_Gemini_1.5_Flash" = "google-gemini-1.5-flash",
518
+ "Google_Gemini_1.5_Pro" = "google-gemini-1.5-pro",
519
+ "Google_Gemini_2.0_Flash" = "google-gemini-2.0-flash",
520
+ "Google_Gemini_2.0_Flash_Thinking" = "google-gemini-2.0-flash-thinking",
521
+ "Together_DeepSeek_R1" = "together-deepseek-ai/DeepSeek-R1",
522
+ "xAI_Grok_2" = "xai-grok-2-latest",
511
523
  /** @deprecated Use `AI.Model["OpenAI_GPT4o-mini"]` instead */
512
524
  "OpenAI_GPT3.5-turbo-instruct" = "openai-gpt-3.5-turbo-instruct",
513
525
  /** @deprecated Use `AI.Model.Llama3_70B` instead */
@@ -525,7 +537,15 @@ export declare namespace AI {
525
537
  /** @deprecated Use `AI.Model["OpenAI_GPT4o-mini"]` instead */
526
538
  "OpenAI_GPT3.5-turbo" = "openai-gpt-3.5-turbo",
527
539
  /** @deprecated Use `AI.Model["Llama3.3_70B"]` instead */
528
- "Llama3.1_70B" = "llama3.1-70b"
540
+ "Llama3.1_70B" = "llama3.1-70b",
541
+ /** @deprecated Use `AI.Model["Perplexity_Sonar_Pro"]` instead */
542
+ "Perplexity_Llama3.1_Sonar_Huge" = "perplexity-llama-3.1-sonar-huge-128k-online",
543
+ /** @deprecated Use `AI.Model["Perplexity_Sonar"]` instead */
544
+ "Perplexity_Llama3.1_Sonar_Large" = "perplexity-llama-3.1-sonar-large-128k-online",
545
+ /** @deprecated Use `AI.Model["Perplexity_Sonar"]` instead */
546
+ "Perplexity_Llama3.1_Sonar_Small" = "perplexity-llama-3.1-sonar-small-128k-online",
547
+ /** @deprecated Use `AI.Model["Mistral_Large"]` instead */
548
+ "Mistral_Large2" = "mistral-large-2"
529
549
  }
530
550
  /** @deprecated Use the `AI.Model` enum instead */
531
551
  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"
@@ -8685,7 +8705,28 @@ declare interface LabelProps {
8685
8705
  * ```
8686
8706
  */
8687
8707
  export function getDesktops(): Promise<Desktop[]>;
8688
-
8708
+ /**
8709
+ * Gets the active {@link Window}.
8710
+ *
8711
+ * @returns A Promise that resolves with the active Window. If no window is active, the promise will be rejected.
8712
+ *
8713
+ * @example
8714
+ * ```typescript
8715
+ * import { WindowManagement, showToast } from "@raycast/api";
8716
+ *
8717
+ * export default async function Command() {
8718
+ * try {
8719
+ * const window = await WindowManagement.getActiveWindow();
8720
+ * if (window.positionable) {
8721
+ * WindowManagement.setWindowBounds({ id: window.id, bounds: { position: { x: 100 } } })
8722
+ * }
8723
+ * } catch (error) {
8724
+ * showToast({ title: "Could not move window", message: error.message, style: Toast.Style.Failure });
8725
+ * }
8726
+ * }
8727
+ * ```
8728
+ */
8729
+ export function getActiveWindow(): Promise<Window>;
8689
8730
  /**
8690
8731
  * Gets the list of {@link Window}s on the active {@link Desktop}.
8691
8732
  *