@raycast/api 1.90.0 → 1.91.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 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.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}`)}};
@@ -105,12 +105,10 @@
105
105
  "index.js"
106
106
  ]
107
107
  },
108
- "develop": {
109
- "aliases": [
110
- "dev"
111
- ],
108
+ "evals": {
109
+ "aliases": [],
112
110
  "args": {},
113
- "description": "Start the extension in development mode and watches for changes",
111
+ "description": "Run AI evals defined in extension package.json",
114
112
  "flags": {
115
113
  "exit-on-error": {
116
114
  "aliases": [
@@ -160,31 +158,45 @@
160
158
  ],
161
159
  "type": "option"
162
160
  },
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",
161
+ "skipBuild": {
162
+ "char": "s",
163
+ "description": "Skip extension build step",
164
+ "name": "skipBuild",
167
165
  "allowNo": false,
168
166
  "type": "boolean"
169
167
  },
170
- "print-instructions": {
171
- "description": "Indicates whether to print the extension's instructions \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
172
- "hidden": true,
173
- "name": "print-instructions",
174
- "allowNo": false,
175
- "type": "boolean"
168
+ "extension": {
169
+ "char": "e",
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
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
+ "apiEndpoint": {
178
+ "char": "a",
179
+ "description": "AI Evals API endpoint",
179
180
  "hidden": true,
180
- "name": "print-tool-calls",
181
- "allowNo": false,
182
- "type": "boolean"
181
+ "name": "apiEndpoint",
182
+ "default": "https://ai-evals.raycast.com/run-evals",
183
+ "hasDynamicHelp": false,
184
+ "multiple": false,
185
+ "type": "option"
186
+ },
187
+ "only": {
188
+ "char": "o",
189
+ "description": "Only run specified evals (0-2, 1, 1,2,3)",
190
+ "name": "only",
191
+ "default": "",
192
+ "hasDynamicHelp": false,
193
+ "multiple": false,
194
+ "type": "option"
183
195
  }
184
196
  },
185
197
  "hasDynamicHelp": false,
186
198
  "hiddenAliases": [],
187
- "id": "develop",
199
+ "id": "evals",
188
200
  "pluginAlias": "ray",
189
201
  "pluginName": "ray",
190
202
  "pluginType": "core",
@@ -194,14 +206,16 @@
194
206
  "relativePath": [
195
207
  "dist",
196
208
  "commands",
197
- "develop",
209
+ "evals",
198
210
  "index.js"
199
211
  ]
200
212
  },
201
- "evals": {
202
- "aliases": [],
213
+ "develop": {
214
+ "aliases": [
215
+ "dev"
216
+ ],
203
217
  "args": {},
204
- "description": "Run AI evals defined in extension package.json",
218
+ "description": "Start the extension in development mode and watches for changes",
205
219
  "flags": {
206
220
  "exit-on-error": {
207
221
  "aliases": [
@@ -251,45 +265,31 @@
251
265
  ],
252
266
  "type": "option"
253
267
  },
254
- "skipBuild": {
255
- "char": "s",
256
- "description": "Skip extension build step",
257
- "name": "skipBuild",
268
+ "print-tool-schemas": {
269
+ "description": "Indicates whether to print the schema tools \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
270
+ "hidden": true,
271
+ "name": "print-tool-schemas",
258
272
  "allowNo": false,
259
273
  "type": "boolean"
260
274
  },
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"
269
- },
270
- "apiEndpoint": {
271
- "char": "a",
272
- "description": "AI Evals API endpoint",
275
+ "print-instructions": {
276
+ "description": "Indicates whether to print the extension's instructions \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
273
277
  "hidden": true,
274
- "name": "apiEndpoint",
275
- "default": "https://ai-evals.raycast.com/run-evals",
276
- "hasDynamicHelp": false,
277
- "multiple": false,
278
- "type": "option"
278
+ "name": "print-instructions",
279
+ "allowNo": false,
280
+ "type": "boolean"
279
281
  },
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"
282
+ "print-tool-calls": {
283
+ "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",
284
+ "hidden": true,
285
+ "name": "print-tool-calls",
286
+ "allowNo": false,
287
+ "type": "boolean"
288
288
  }
289
289
  },
290
290
  "hasDynamicHelp": false,
291
291
  "hiddenAliases": [],
292
- "id": "evals",
292
+ "id": "develop",
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
- "evals",
302
+ "develop",
303
303
  "index.js"
304
304
  ]
305
305
  },
@@ -1099,5 +1099,5 @@
1099
1099
  ]
1100
1100
  }
1101
1101
  },
1102
- "version": "1.90.0"
1102
+ "version": "1.91.1"
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.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
@@ -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
  *