@raycast/api 1.93.2 → 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.
- package/dist/api/evals.js +2 -2
- package/dist/api/github.js +8 -8
- package/dist/api/raycast.js +1 -1
- package/dist/commands/build/index.js +3 -3
- package/dist/commands/develop/index.js +131 -131
- package/dist/commands/evals/index.js +11 -11
- package/dist/commands/lint/index.js +43 -43
- package/dist/commands/login/index.js +3 -3
- package/dist/commands/logout/index.js +1 -1
- package/dist/commands/migrate/index.js +1 -1
- package/dist/commands/profile/index.js +4 -4
- package/dist/commands/publish/index.js +178 -180
- package/dist/commands/pull-contributions/index.js +9 -9
- package/dist/commands/token/index.js +1 -1
- package/dist/commands/validate/index.js +11 -11
- package/dist/commands/version/index.js +1 -1
- package/dist/config.js +1 -1
- package/dist/types/manifest-schema.d.js +1 -1
- package/dist/utils/BaseCommand.js +1 -1
- package/dist/utils/esbuild-plugins/swift-files.js +1 -1
- package/dist/utils/evals/get-package-json.js +1 -1
- package/dist/utils/evals/render-results.js +2 -2
- package/dist/utils/output.js +1 -1
- package/dist/utils/publish/publish-to-public-repo.js +14 -16
- package/dist/utils/publish/publish-to-store.js +3 -3
- package/dist/utils/publish/pull-contributions.js +2 -2
- package/dist/utils/publish/setup-github-fork.js +2 -2
- package/dist/utils/raycast-app-communication.js +2 -2
- package/oclif.manifest.json +146 -107
- package/package.json +9 -9
- package/types/index.d.ts +30 -45
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var pe=Object.create;var I=Object.defineProperty;var ge=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var he=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty;var y=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),we=(e,r)=>{for(var t in r)I(e,t,{get:r[t],enumerable:!0})},U=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of me(r))!ye.call(e,s)&&s!==t&&I(e,s,{get:()=>r[s],enumerable:!(i=ge(r,s))||i.enumerable});return e};var p=(e,r,t)=>(t=e!=null?pe(he(e)):{},U(r||!e||!e.__esModule?I(t,"default",{value:e,enumerable:!0}):t,e)),be=e=>U(I({},"__esModule",{value:!0}),e);var z=y((He,V)=>{var ke=require("node:tty"),Ce=ke?.WriteStream?.prototype?.hasColors?.()??!1,o=(e,r)=>{if(!Ce)return s=>s;let t=`\x1B[${e}m`,i=`\x1B[${r}m`;return s=>{let a=s+"",c=a.indexOf(i);if(c===-1)return t+a+i;let f=t,u=0;for(;c!==-1;)f+=a.slice(u,c)+t,u=c+i.length,c=a.indexOf(i,u);return f+=a.slice(u)+i,f}},n={};n.reset=o(0,0);n.bold=o(1,22);n.dim=o(2,22);n.italic=o(3,23);n.underline=o(4,24);n.overline=o(53,55);n.inverse=o(7,27);n.hidden=o(8,28);n.strikethrough=o(9,29);n.black=o(30,39);n.red=o(31,39);n.green=o(32,39);n.yellow=o(33,39);n.blue=o(34,39);n.magenta=o(35,39);n.cyan=o(36,39);n.white=o(37,39);n.gray=o(90,39);n.bgBlack=o(40,49);n.bgRed=o(41,49);n.bgGreen=o(42,49);n.bgYellow=o(43,49);n.bgBlue=o(44,49);n.bgMagenta=o(45,49);n.bgCyan=o(46,49);n.bgWhite=o(47,49);n.bgGray=o(100,49);n.redBright=o(91,39);n.greenBright=o(92,39);n.yellowBright=o(93,39);n.blueBright=o(94,39);n.magentaBright=o(95,39);n.cyanBright=o(96,39);n.whiteBright=o(97,39);n.bgRedBright=o(101,49);n.bgGreenBright=o(102,49);n.bgYellowBright=o(103,49);n.bgBlueBright=o(104,49);n.bgMagentaBright=o(105,49);n.bgCyanBright=o(106,49);n.bgWhiteBright=o(107,49);V.exports=n});var D=y((er,Z)=>{"use strict";var H=require("fs"),B;function Pe(){try{return H.statSync("/.dockerenv"),!0}catch{return!1}}function Se(){try{return H.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}Z.exports=()=>(B===void 0&&(B=Pe()||Se()),B)});var re=y((rr,O)=>{"use strict";var $e=require("os"),Te=require("fs"),Q=D(),ee=()=>{if(process.platform!=="linux")return!1;if($e.release().toLowerCase().includes("microsoft"))return!Q();try{return Te.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Q():!1}catch{return!1}};process.env.__IS_WSL_TEST__?O.exports=ee:O.exports=ee()});var ne=y((tr,te)=>{"use strict";te.exports=(e,r,t)=>{let i=s=>Object.defineProperty(e,r,{value:s,enumerable:!0,writable:!0});return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get(){let s=t();return i(s),s},set(s){i(s)}}),e}});var le=y((nr,ue)=>{var Ne=require("path"),Be=require("child_process"),{promises:v,constants:ce}=require("fs"),C=re(),De=D(),R=ne(),oe=Ne.join(__dirname,"xdg-open"),{platform:h,arch:se}=process,Oe=()=>{try{return v.statSync("/run/.containerenv"),!0}catch{return!1}},F;function Fe(){return F===void 0&&(F=Oe()||De()),F}var Re=(()=>{let e="/mnt/",r;return async function(){if(r)return r;let t="/etc/wsl.conf",i=!1;try{await v.access(t,ce.F_OK),i=!0}catch{}if(!i)return e;let s=await v.readFile(t,{encoding:"utf8"}),a=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(s);return a?(r=a.groups.mountPoint.trim(),r=r.endsWith("/")?r:`${r}/`,r):e}})(),ie=async(e,r)=>{let t;for(let i of e)try{return await r(i)}catch(s){t=s}throw t},P=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return ie(e.app,f=>P({...e,app:f}));let{name:r,arguments:t=[]}=e.app||{};if(t=[...t],Array.isArray(r))return ie(r,f=>P({...e,app:{name:f,arguments:t}}));let i,s=[],a={};if(h==="darwin")i="open",e.wait&&s.push("--wait-apps"),e.background&&s.push("--background"),e.newInstance&&s.push("--new"),r&&s.push("-a",r);else if(h==="win32"||C&&!Fe()&&!r){let f=await Re();i=C?`${f}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,s.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),C||(a.windowsVerbatimArguments=!0);let u=["Start"];e.wait&&u.push("-Wait"),r?(u.push(`"\`"${r}\`""`,"-ArgumentList"),e.target&&t.unshift(e.target)):e.target&&u.push(`"${e.target}"`),t.length>0&&(t=t.map(m=>`"\`"${m}\`""`),u.push(t.join(","))),e.target=Buffer.from(u.join(" "),"utf16le").toString("base64")}else{if(r)i=r;else{let f=!__dirname||__dirname==="/",u=!1;try{await v.access(oe,ce.X_OK),u=!0}catch{}i=process.versions.electron||h==="android"||f||!u?"xdg-open":oe}t.length>0&&s.push(...t),e.wait||(a.stdio="ignore",a.detached=!0)}e.target&&s.push(e.target),h==="darwin"&&t.length>0&&s.push("--args",...t);let c=Be.spawn(i,s,a);return e.wait?new Promise((f,u)=>{c.once("error",u),c.once("close",m=>{if(!e.allowNonzeroExitCode&&m>0){u(new Error(`Exited with code ${m}`));return}f(c)})}):(c.unref(),c)},_=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");return P({...r,target:e})},_e=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `name`");let{arguments:t=[]}=r||{};if(t!=null&&!Array.isArray(t))throw new TypeError("Expected `appArguments` as Array type");return P({...r,app:{name:e,arguments:t}})};function ae(e){if(typeof e=="string"||Array.isArray(e))return e;let{[se]:r}=e;if(!r)throw new Error(`${se} is not supported`);return r}function G({[h]:e},{wsl:r}){if(r&&C)return ae(r);if(!e)throw new Error(`${h} is not supported`);return ae(e)}var S={};R(S,"chrome",()=>G({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));R(S,"firefox",()=>G({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));R(S,"edge",()=>G({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));_.apps=S;_.openApp=_e;ue.exports=_});var qe={};we(qe,{commFilePath:()=>L,notifyRaycast:()=>Ge,updatePid:()=>de});module.exports=be(qe);var j=require("node:child_process"),d=p(require("node:fs")),x=p(require("node:path"));var A=p(require("node:fs")),$=p(require("node:path")),K=p(require("node:os"));var q=p(require("node:path")),W=p(require("node:fs"));function E(){let e;try{e=q.resolve("package.json")}catch(t){throw new Error(`cannot resolve package manifest path: ${t}`)}let r;try{r=JSON.parse(W.readFileSync(e,"utf8"))}catch(t){throw new Error(`cannot read package manifest: ${t}`)}return r.name=r.name.replace(/^@workaround/g,""),r}var Y={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"],xe="e69bae0ec90f5e838555",g={},T;function w(){let e=E();if(!e.name)throw new Error("extension name in manifest cannot be empty");return $.join(Ae(),"extensions",e.name)}function X(){let e=k(T);return e?`com.raycast.macos.${e}`:"com.raycast.macos"}function J(){return`raycast${k(T)}`}function Ie(e){switch(e){case"raycastApiURL":return process.env.RAY_APIURL||g.APIURL||Y.url;case"raycastAccessToken":return process.env.RAY_TOKEN||g.Token||g.AccessToken||"";case"raycastClientId":return process.env.RAY_CLIENT_ID||g.ClientID||Y.clientID;case"githubClientId":return process.env.RAY_GithubClientID||g.GithubClientID||xe;case"githubAccessToken":return process.env.GITHUB_ACCESS_TOKEN||g.GithubAccessToken||"";case"flavorName":return process.env.RAY_Target||(typeof g.Target>"u"?k("release"):g.Target)}}function k(e){switch(e){case"debug":return"debug";case"internal":return"internal";case"release":return"";case void 0:return Ie("flavorName")}}function Ee(){let e=k(T);return e==""?"raycast":`raycast-${e}`}function Ae(){let e=$.join(K.default.homedir(),".config",Ee());return A.mkdirSync(e,{recursive:!0}),e}var l=p(z());var Ze=(0,l.blue)((0,l.dim)("internal only"));function N(e,r,t){console.log(ve[e]+r),typeof t?.exit<"u"&&process.exit(t.exit)}var ve={wait:`\u{1F550}${(0,l.blue)("wait")} - `,info:`${process.env.GITHUB_ACTIONS==="true"?"\u2139\uFE0F":"\u2139\uFE0F "}${(0,l.cyan)("info")} - `,success:`\u2705${(0,l.green)("ready")} - `,warn:`${process.env.GITHUB_ACTIONS==="true"?"\u26A0\uFE0F":"\u26A0\uFE0F "}${(0,l.yellow)("warn")} - `,error:`\u{1F4A5}${(0,l.red)("error")} - `,event:`\u26A1\uFE0F${(0,l.magenta)("event")} - `,paymentPrompt:`\u{1F4B0}${(0,l.yellowBright)("plan")} - `};var fe=p(le());async function Ge(e,r){let t=!1;switch(e){case"start":{Me(),de(),Le();break}case"stop":{try{d.unlinkSync(L("log"))}catch{}try{d.unlinkSync(L("pid"))}catch{}return}default:t=!0}let i;try{i=E()}catch{return}Ue()||N("warn","Raycast is not running"),t?je(i.name,e,r):await M(i.name,e,r)}function L(e){return x.join(w(),e==="log"?"dev.log":"cli.pid")}function de(){let e=w();try{d.mkdirSync(e,{recursive:!0})}catch(t){throw new Error(`cannot create output directory (${t.message})`)}let r=process.pid.toString();try{d.writeFileSync(x.join(e,"cli.pid"),r,{mode:420})}catch(t){throw new Error(`cannot write pid file (${t.message})`)}}function Le(){let e=w();try{d.mkdirSync(e,{recursive:!0})}catch(r){throw new Error(`cannot create output directory (${r.message})`)}try{d.writeFileSync(x.join(e,"dev.log"),"")}catch(r){throw new Error(`cannot write log file (${r.message})`)}}function Me(){let e=x.join(w(),"cli.pid");try{let i=`kill -9 ${d.readFileSync(e,"utf8").trim()}`;(0,j.execSync)(i,{shell:"/bin/sh"})}catch{}}var b=null;function je(e,r,t){b?(clearTimeout(b),b=setTimeout(()=>{M(e,r,t)},300)):(M(e,r,t),b=setTimeout(()=>{b=null},300))}async function M(e,r,t){let i=process.cwd(),s=`${J()}://cli/${e}/${r}?cwd=${encodeURIComponent(i)}&info=${encodeURIComponent(t||"")}`;try{await(0,fe.default)(s,{background:!0})}catch(a){N("error",`cannot notify Raycast (${a.message})`)}}function Ue(){let r=X(),t="ps -e -o args | grep -v grep | grep -i contents/macos/raycast",i;try{i=(0,j.execSync)(t,{shell:"/bin/sh",encoding:"utf8"})}catch{return!1}let s=i.trim();if(s==="")return!1;let a=s.split(`
|
|
2
|
-
`);for(let c of a){let f=c.indexOf("/Contents/MacOS/Raycast");if(f>-1&&(c=c.substring(0,f)),!!d.existsSync(c))return!0}return!1}0&&(module.exports={commFilePath,notifyRaycast,updatePid});
|
|
1
|
+
"use strict";var pe=Object.create;var E=Object.defineProperty;var ge=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var he=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty;var y=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),we=(e,r)=>{for(var t in r)E(e,t,{get:r[t],enumerable:!0})},U=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of me(r))!ye.call(e,s)&&s!==t&&E(e,s,{get:()=>r[s],enumerable:!(i=ge(r,s))||i.enumerable});return e};var p=(e,r,t)=>(t=e!=null?pe(he(e)):{},U(r||!e||!e.__esModule?E(t,"default",{value:e,enumerable:!0}):t,e)),xe=e=>U(E({},"__esModule",{value:!0}),e);var J=y((ze,H)=>{var ke=require("node:tty"),Ce=ke?.WriteStream?.prototype?.hasColors?.()??!1,o=(e,r)=>{if(!Ce)return s=>s;let t=`\x1B[${e}m`,i=`\x1B[${r}m`;return s=>{let a=s+"",c=a.indexOf(i);if(c===-1)return t+a+i;let f=t,u=0;for(;c!==-1;)f+=a.slice(u,c)+t,u=c+i.length,c=a.indexOf(i,u);return f+=a.slice(u)+i,f}},n={};n.reset=o(0,0);n.bold=o(1,22);n.dim=o(2,22);n.italic=o(3,23);n.underline=o(4,24);n.overline=o(53,55);n.inverse=o(7,27);n.hidden=o(8,28);n.strikethrough=o(9,29);n.black=o(30,39);n.red=o(31,39);n.green=o(32,39);n.yellow=o(33,39);n.blue=o(34,39);n.magenta=o(35,39);n.cyan=o(36,39);n.white=o(37,39);n.gray=o(90,39);n.bgBlack=o(40,49);n.bgRed=o(41,49);n.bgGreen=o(42,49);n.bgYellow=o(43,49);n.bgBlue=o(44,49);n.bgMagenta=o(45,49);n.bgCyan=o(46,49);n.bgWhite=o(47,49);n.bgGray=o(100,49);n.redBright=o(91,39);n.greenBright=o(92,39);n.yellowBright=o(93,39);n.blueBright=o(94,39);n.magentaBright=o(95,39);n.cyanBright=o(96,39);n.whiteBright=o(97,39);n.bgRedBright=o(101,49);n.bgGreenBright=o(102,49);n.bgYellowBright=o(103,49);n.bgBlueBright=o(104,49);n.bgMagentaBright=o(105,49);n.bgCyanBright=o(106,49);n.bgWhiteBright=o(107,49);H.exports=n});var O=y((er,Z)=>{"use strict";var z=require("fs"),B;function $e(){try{return z.statSync("/.dockerenv"),!0}catch{return!1}}function Pe(){try{return z.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}Z.exports=()=>(B===void 0&&(B=$e()||Pe()),B)});var re=y((rr,F)=>{"use strict";var Se=require("os"),Te=require("fs"),Q=O(),ee=()=>{if(process.platform!=="linux")return!1;if(Se.release().toLowerCase().includes("microsoft"))return!Q();try{return Te.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Q():!1}catch{return!1}};process.env.__IS_WSL_TEST__?F.exports=ee:F.exports=ee()});var ne=y((tr,te)=>{"use strict";te.exports=(e,r,t)=>{let i=s=>Object.defineProperty(e,r,{value:s,enumerable:!0,writable:!0});return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get(){let s=t();return i(s),s},set(s){i(s)}}),e}});var le=y((nr,ue)=>{var Ne=require("path"),De=require("child_process"),{promises:$,constants:ce}=require("fs"),v=re(),Be=O(),_=ne(),oe=Ne.join(__dirname,"xdg-open"),{platform:h,arch:se}=process,Oe=()=>{try{return $.statSync("/run/.containerenv"),!0}catch{return!1}},R;function Fe(){return R===void 0&&(R=Oe()||Be()),R}var Re=(()=>{let e="/mnt/",r;return async function(){if(r)return r;let t="/etc/wsl.conf",i=!1;try{await $.access(t,ce.F_OK),i=!0}catch{}if(!i)return e;let s=await $.readFile(t,{encoding:"utf8"}),a=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(s);return a?(r=a.groups.mountPoint.trim(),r=r.endsWith("/")?r:`${r}/`,r):e}})(),ie=async(e,r)=>{let t;for(let i of e)try{return await r(i)}catch(s){t=s}throw t},P=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return ie(e.app,f=>P({...e,app:f}));let{name:r,arguments:t=[]}=e.app||{};if(t=[...t],Array.isArray(r))return ie(r,f=>P({...e,app:{name:f,arguments:t}}));let i,s=[],a={};if(h==="darwin")i="open",e.wait&&s.push("--wait-apps"),e.background&&s.push("--background"),e.newInstance&&s.push("--new"),r&&s.push("-a",r);else if(h==="win32"||v&&!Fe()&&!r){let f=await Re();i=v?`${f}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,s.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),v||(a.windowsVerbatimArguments=!0);let u=["Start"];e.wait&&u.push("-Wait"),r?(u.push(`"\`"${r}\`""`,"-ArgumentList"),e.target&&t.unshift(e.target)):e.target&&u.push(`"${e.target}"`),t.length>0&&(t=t.map(m=>`"\`"${m}\`""`),u.push(t.join(","))),e.target=Buffer.from(u.join(" "),"utf16le").toString("base64")}else{if(r)i=r;else{let f=!__dirname||__dirname==="/",u=!1;try{await $.access(oe,ce.X_OK),u=!0}catch{}i=process.versions.electron||h==="android"||f||!u?"xdg-open":oe}t.length>0&&s.push(...t),e.wait||(a.stdio="ignore",a.detached=!0)}e.target&&s.push(e.target),h==="darwin"&&t.length>0&&s.push("--args",...t);let c=De.spawn(i,s,a);return e.wait?new Promise((f,u)=>{c.once("error",u),c.once("close",m=>{if(!e.allowNonzeroExitCode&&m>0){u(new Error(`Exited with code ${m}`));return}f(c)})}):(c.unref(),c)},G=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");return P({...r,target:e})},_e=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `name`");let{arguments:t=[]}=r||{};if(t!=null&&!Array.isArray(t))throw new TypeError("Expected `appArguments` as Array type");return P({...r,app:{name:e,arguments:t}})};function ae(e){if(typeof e=="string"||Array.isArray(e))return e;let{[se]:r}=e;if(!r)throw new Error(`${se} is not supported`);return r}function M({[h]:e},{wsl:r}){if(r&&v)return ae(r);if(!e)throw new Error(`${h} is not supported`);return ae(e)}var S={};_(S,"chrome",()=>M({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));_(S,"firefox",()=>M({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));_(S,"edge",()=>M({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));G.apps=S;G.openApp=_e;ue.exports=G});var qe={};we(qe,{commFilePath:()=>L,notifyRaycast:()=>Ge,updatePid:()=>de});module.exports=xe(qe);var b=require("node:child_process"),d=p(require("node:fs")),I=p(require("node:path"));var k=p(require("node:fs")),T=p(require("node:path")),K=p(require("node:os"));var q=p(require("node:path")),W=p(require("node:fs"));function A(){let e;try{e=q.resolve("package.json")}catch(t){throw new Error(`cannot resolve package manifest path: ${t}`)}let r;try{r=JSON.parse(W.readFileSync(e,"utf8"))}catch(t){throw new Error(`cannot read package manifest: ${t}`)}return r.name=r.name.replace(/^@workaround/g,""),r}var Y={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"],be="e69bae0ec90f5e838555",g={},N;function w(){let e=A();if(!e.name)throw new Error("extension name in manifest cannot be empty");return T.join(Ae(),"extensions",e.name)}function V(){let e=C(N);return e?.startsWith("x")?e==="x"?"com.raycast-x.macos":`com.raycast-x.macos.${e.replace("x-","")}`:e?`com.raycast.macos.${e}`:"com.raycast.macos"}function X(){return`raycast${C(N)}`}function Ie(e){switch(e){case"raycastApiURL":return process.env.RAY_APIURL||g.APIURL||Y.url;case"raycastAccessToken":return process.env.RAY_TOKEN||g.Token||g.AccessToken||"";case"raycastClientId":return process.env.RAY_CLIENT_ID||g.ClientID||Y.clientID;case"githubClientId":return process.env.RAY_GithubClientID||g.GithubClientID||be;case"githubAccessToken":return process.env.GITHUB_ACCESS_TOKEN||g.GithubAccessToken||"";case"flavorName":return process.env.RAY_Target||(typeof g.Target>"u"?C("release"):g.Target)}}function C(e){switch(e){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 Ie("flavorName")}}function Ee(){let e=C(N);return e==""?"raycast":`raycast-${e}`}function Ae(){let e=T.join(K.default.homedir(),".config",Ee());return k.mkdirSync(e,{recursive:!0}),e}var l=p(J());var Ze=(0,l.blue)((0,l.dim)("internal only"));function D(e,r,t){console.log(ve[e]+r),typeof t?.exit<"u"&&process.exit(t.exit)}var ve={wait:`\u{1F550}${(0,l.blue)("wait")} - `,info:`${process.env.GITHUB_ACTIONS==="true"?"\u2139\uFE0F":"\u2139\uFE0F "}${(0,l.cyan)("info")} - `,success:`\u2705${(0,l.green)("ready")} - `,warn:`${process.env.GITHUB_ACTIONS==="true"?"\u26A0\uFE0F":"\u26A0\uFE0F "}${(0,l.yellow)("warn")} - `,error:`\u{1F4A5}${(0,l.red)("error")} - `,event:`\u26A1\uFE0F${(0,l.magenta)("event")} - `,paymentPrompt:`\u{1F4B0}${(0,l.yellowBright)("plan")} - `};var fe=p(le());async function Ge(e,r){let t=!1;switch(e){case"start":{Le(),de(),Me();break}case"stop":{try{d.unlinkSync(L("log"))}catch{}try{d.unlinkSync(L("pid"))}catch{}return}default:t=!0}let i;try{i=A()}catch{return}Ue()||D("warn","Raycast is not running"),t?je(i.name,e,r):await j(i.name,e,r)}function L(e){return I.join(w(),e==="log"?"dev.log":"cli.pid")}function de(){let e=w();try{d.mkdirSync(e,{recursive:!0})}catch(t){throw new Error(`cannot create output directory (${t.message})`)}let r=process.pid.toString();try{d.writeFileSync(I.join(e,"cli.pid"),r,{mode:420})}catch(t){throw new Error(`cannot write pid file (${t.message})`)}}function Me(){let e=w();try{d.mkdirSync(e,{recursive:!0})}catch(r){throw new Error(`cannot create output directory (${r.message})`)}try{d.writeFileSync(I.join(e,"dev.log"),"")}catch(r){throw new Error(`cannot write log file (${r.message})`)}}function Le(){let e=I.join(w(),"cli.pid");try{let t=d.readFileSync(e,"utf8").trim();process.platform==="win32"?(0,b.execSync)(`taskkill /F /PID ${t}`):(0,b.execSync)(`kill -9 ${t}`,{shell:"/bin/sh"})}catch{}}var x=null;function je(e,r,t){x?(clearTimeout(x),x=setTimeout(()=>{j(e,r,t)},300)):(j(e,r,t),x=setTimeout(()=>{x=null},300))}async function j(e,r,t){let i=process.cwd(),s=`${X()}://cli/${e}/${r}?cwd=${encodeURIComponent(i)}&info=${encodeURIComponent(t||"")}`;try{await(0,fe.default)(s,{background:!0})}catch(a){D("error",`cannot notify Raycast (${a.message})`)}}function Ue(){if(process.platform==="win32")return(0,b.execSync)('tasklist /FI "IMAGENAME eq Raycast.exe" /FO CSV /NH',{encoding:"utf8"}).toLowerCase().includes("raycast.exe");{let r=V(),t="ps -e -o args | grep -v grep | grep -i contents/macos/raycast",i;try{i=(0,b.execSync)(t,{shell:"/bin/sh",encoding:"utf8"})}catch{return!1}let s=i.trim();if(s==="")return!1;let a=s.split(`
|
|
2
|
+
`);for(let c of a){let f=c.indexOf("/Contents/MacOS/Raycast");if(f>-1&&(c=c.substring(0,f)),!!d.existsSync(c))return!0}}return!1}0&&(module.exports={commFilePath,notifyRaycast,updatePid});
|
package/oclif.manifest.json
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"
|
|
4
|
-
"aliases": [
|
|
5
|
-
"dev"
|
|
6
|
-
],
|
|
3
|
+
"build": {
|
|
4
|
+
"aliases": [],
|
|
7
5
|
"args": {},
|
|
8
|
-
"description": "
|
|
6
|
+
"description": "Build the extension to the output directory",
|
|
9
7
|
"flags": {
|
|
10
8
|
"exit-on-error": {
|
|
11
9
|
"aliases": [
|
|
@@ -51,35 +49,52 @@
|
|
|
51
49
|
"options": [
|
|
52
50
|
"debug",
|
|
53
51
|
"internal",
|
|
54
|
-
"release"
|
|
52
|
+
"release",
|
|
53
|
+
"x",
|
|
54
|
+
"x-debug",
|
|
55
|
+
"x-internal"
|
|
55
56
|
],
|
|
56
57
|
"type": "option"
|
|
57
58
|
},
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"name": "
|
|
62
|
-
"
|
|
63
|
-
"
|
|
59
|
+
"environment": {
|
|
60
|
+
"char": "e",
|
|
61
|
+
"description": "Environment to build for",
|
|
62
|
+
"name": "environment",
|
|
63
|
+
"default": "dev",
|
|
64
|
+
"hasDynamicHelp": false,
|
|
65
|
+
"multiple": false,
|
|
66
|
+
"options": [
|
|
67
|
+
"dev",
|
|
68
|
+
"dist"
|
|
69
|
+
],
|
|
70
|
+
"type": "option"
|
|
64
71
|
},
|
|
65
|
-
"
|
|
66
|
-
"
|
|
72
|
+
"output": {
|
|
73
|
+
"char": "o",
|
|
74
|
+
"description": "Output path",
|
|
75
|
+
"name": "output",
|
|
76
|
+
"hasDynamicHelp": false,
|
|
77
|
+
"multiple": false,
|
|
78
|
+
"type": "option"
|
|
79
|
+
},
|
|
80
|
+
"skip-types": {
|
|
81
|
+
"description": "Indicates whether to skip types generation \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
67
82
|
"hidden": true,
|
|
68
|
-
"name": "
|
|
83
|
+
"name": "skip-types",
|
|
69
84
|
"allowNo": false,
|
|
70
85
|
"type": "boolean"
|
|
71
86
|
},
|
|
72
|
-
"print-tool-
|
|
73
|
-
"description": "Indicates whether to print the
|
|
87
|
+
"print-tool-schemas": {
|
|
88
|
+
"description": "Indicates whether to print the schema tools \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
74
89
|
"hidden": true,
|
|
75
|
-
"name": "print-tool-
|
|
90
|
+
"name": "print-tool-schemas",
|
|
76
91
|
"allowNo": false,
|
|
77
92
|
"type": "boolean"
|
|
78
93
|
}
|
|
79
94
|
},
|
|
80
95
|
"hasDynamicHelp": false,
|
|
81
96
|
"hiddenAliases": [],
|
|
82
|
-
"id": "
|
|
97
|
+
"id": "build",
|
|
83
98
|
"pluginAlias": "ray",
|
|
84
99
|
"pluginName": "ray",
|
|
85
100
|
"pluginType": "core",
|
|
@@ -89,14 +104,16 @@
|
|
|
89
104
|
"relativePath": [
|
|
90
105
|
"dist",
|
|
91
106
|
"commands",
|
|
92
|
-
"
|
|
107
|
+
"build",
|
|
93
108
|
"index.js"
|
|
94
109
|
]
|
|
95
110
|
},
|
|
96
|
-
"
|
|
97
|
-
"aliases": [
|
|
111
|
+
"develop": {
|
|
112
|
+
"aliases": [
|
|
113
|
+
"dev"
|
|
114
|
+
],
|
|
98
115
|
"args": {},
|
|
99
|
-
"description": "
|
|
116
|
+
"description": "Start the extension in development mode and watches for changes",
|
|
100
117
|
"flags": {
|
|
101
118
|
"exit-on-error": {
|
|
102
119
|
"aliases": [
|
|
@@ -142,49 +159,38 @@
|
|
|
142
159
|
"options": [
|
|
143
160
|
"debug",
|
|
144
161
|
"internal",
|
|
145
|
-
"release"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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"
|
|
162
|
+
"release",
|
|
163
|
+
"x",
|
|
164
|
+
"x-debug",
|
|
165
|
+
"x-internal"
|
|
159
166
|
],
|
|
160
167
|
"type": "option"
|
|
161
168
|
},
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"name": "
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"type": "option"
|
|
169
|
+
"print-tool-schemas": {
|
|
170
|
+
"description": "Indicates whether to print the schema tools \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
171
|
+
"hidden": true,
|
|
172
|
+
"name": "print-tool-schemas",
|
|
173
|
+
"allowNo": false,
|
|
174
|
+
"type": "boolean"
|
|
169
175
|
},
|
|
170
|
-
"
|
|
171
|
-
"description": "Indicates whether to
|
|
176
|
+
"print-instructions": {
|
|
177
|
+
"description": "Indicates whether to print the extension's instructions \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
172
178
|
"hidden": true,
|
|
173
|
-
"name": "
|
|
179
|
+
"name": "print-instructions",
|
|
174
180
|
"allowNo": false,
|
|
175
181
|
"type": "boolean"
|
|
176
182
|
},
|
|
177
|
-
"print-tool-
|
|
178
|
-
"description": "Indicates whether to print the
|
|
183
|
+
"print-tool-calls": {
|
|
184
|
+
"description": "Indicates whether to print the inputs and outputs of tools when they are called from Raycast \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
179
185
|
"hidden": true,
|
|
180
|
-
"name": "print-tool-
|
|
186
|
+
"name": "print-tool-calls",
|
|
181
187
|
"allowNo": false,
|
|
182
188
|
"type": "boolean"
|
|
183
189
|
}
|
|
184
190
|
},
|
|
185
191
|
"hasDynamicHelp": false,
|
|
186
192
|
"hiddenAliases": [],
|
|
187
|
-
"id": "
|
|
193
|
+
"id": "develop",
|
|
188
194
|
"pluginAlias": "ray",
|
|
189
195
|
"pluginName": "ray",
|
|
190
196
|
"pluginType": "core",
|
|
@@ -194,7 +200,7 @@
|
|
|
194
200
|
"relativePath": [
|
|
195
201
|
"dist",
|
|
196
202
|
"commands",
|
|
197
|
-
"
|
|
203
|
+
"develop",
|
|
198
204
|
"index.js"
|
|
199
205
|
]
|
|
200
206
|
},
|
|
@@ -247,7 +253,10 @@
|
|
|
247
253
|
"options": [
|
|
248
254
|
"debug",
|
|
249
255
|
"internal",
|
|
250
|
-
"release"
|
|
256
|
+
"release",
|
|
257
|
+
"x",
|
|
258
|
+
"x-debug",
|
|
259
|
+
"x-internal"
|
|
251
260
|
],
|
|
252
261
|
"type": "option"
|
|
253
262
|
},
|
|
@@ -352,7 +361,10 @@
|
|
|
352
361
|
"options": [
|
|
353
362
|
"debug",
|
|
354
363
|
"internal",
|
|
355
|
-
"release"
|
|
364
|
+
"release",
|
|
365
|
+
"x",
|
|
366
|
+
"x-debug",
|
|
367
|
+
"x-internal"
|
|
356
368
|
],
|
|
357
369
|
"type": "option"
|
|
358
370
|
},
|
|
@@ -446,7 +458,10 @@
|
|
|
446
458
|
"options": [
|
|
447
459
|
"debug",
|
|
448
460
|
"internal",
|
|
449
|
-
"release"
|
|
461
|
+
"release",
|
|
462
|
+
"x",
|
|
463
|
+
"x-debug",
|
|
464
|
+
"x-internal"
|
|
450
465
|
],
|
|
451
466
|
"type": "option"
|
|
452
467
|
}
|
|
@@ -467,10 +482,10 @@
|
|
|
467
482
|
"index.js"
|
|
468
483
|
]
|
|
469
484
|
},
|
|
470
|
-
"
|
|
485
|
+
"migrate": {
|
|
471
486
|
"aliases": [],
|
|
472
487
|
"args": {},
|
|
473
|
-
"description": "
|
|
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",
|
|
474
489
|
"flags": {
|
|
475
490
|
"exit-on-error": {
|
|
476
491
|
"aliases": [
|
|
@@ -516,31 +531,44 @@
|
|
|
516
531
|
"options": [
|
|
517
532
|
"debug",
|
|
518
533
|
"internal",
|
|
519
|
-
"release"
|
|
534
|
+
"release",
|
|
535
|
+
"x",
|
|
536
|
+
"x-debug",
|
|
537
|
+
"x-internal"
|
|
520
538
|
],
|
|
521
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"
|
|
522
549
|
}
|
|
523
550
|
},
|
|
524
551
|
"hasDynamicHelp": false,
|
|
525
552
|
"hiddenAliases": [],
|
|
526
|
-
"id": "
|
|
553
|
+
"id": "migrate",
|
|
527
554
|
"pluginAlias": "ray",
|
|
528
555
|
"pluginName": "ray",
|
|
529
556
|
"pluginType": "core",
|
|
530
557
|
"strict": true,
|
|
558
|
+
"summary": "Migrate the extension to a newer version of the Raycast API",
|
|
531
559
|
"enableJsonFlag": false,
|
|
532
560
|
"isESM": false,
|
|
533
561
|
"relativePath": [
|
|
534
562
|
"dist",
|
|
535
563
|
"commands",
|
|
536
|
-
"
|
|
564
|
+
"migrate",
|
|
537
565
|
"index.js"
|
|
538
566
|
]
|
|
539
567
|
},
|
|
540
|
-
"
|
|
568
|
+
"logout": {
|
|
541
569
|
"aliases": [],
|
|
542
570
|
"args": {},
|
|
543
|
-
"description": "
|
|
571
|
+
"description": "Log out of your Raycast account",
|
|
544
572
|
"flags": {
|
|
545
573
|
"exit-on-error": {
|
|
546
574
|
"aliases": [
|
|
@@ -586,34 +614,27 @@
|
|
|
586
614
|
"options": [
|
|
587
615
|
"debug",
|
|
588
616
|
"internal",
|
|
589
|
-
"release"
|
|
617
|
+
"release",
|
|
618
|
+
"x",
|
|
619
|
+
"x-debug",
|
|
620
|
+
"x-internal"
|
|
590
621
|
],
|
|
591
622
|
"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
623
|
}
|
|
602
624
|
},
|
|
603
625
|
"hasDynamicHelp": false,
|
|
604
626
|
"hiddenAliases": [],
|
|
605
|
-
"id": "
|
|
627
|
+
"id": "logout",
|
|
606
628
|
"pluginAlias": "ray",
|
|
607
629
|
"pluginName": "ray",
|
|
608
630
|
"pluginType": "core",
|
|
609
631
|
"strict": true,
|
|
610
|
-
"summary": "Migrate the extension to a newer version of the Raycast API",
|
|
611
632
|
"enableJsonFlag": false,
|
|
612
633
|
"isESM": false,
|
|
613
634
|
"relativePath": [
|
|
614
635
|
"dist",
|
|
615
636
|
"commands",
|
|
616
|
-
"
|
|
637
|
+
"logout",
|
|
617
638
|
"index.js"
|
|
618
639
|
]
|
|
619
640
|
},
|
|
@@ -673,7 +694,10 @@
|
|
|
673
694
|
"options": [
|
|
674
695
|
"debug",
|
|
675
696
|
"internal",
|
|
676
|
-
"release"
|
|
697
|
+
"release",
|
|
698
|
+
"x",
|
|
699
|
+
"x-debug",
|
|
700
|
+
"x-internal"
|
|
677
701
|
],
|
|
678
702
|
"type": "option"
|
|
679
703
|
}
|
|
@@ -743,7 +767,10 @@
|
|
|
743
767
|
"options": [
|
|
744
768
|
"debug",
|
|
745
769
|
"internal",
|
|
746
|
-
"release"
|
|
770
|
+
"release",
|
|
771
|
+
"x",
|
|
772
|
+
"x-debug",
|
|
773
|
+
"x-internal"
|
|
747
774
|
],
|
|
748
775
|
"type": "option"
|
|
749
776
|
},
|
|
@@ -836,7 +863,10 @@
|
|
|
836
863
|
"options": [
|
|
837
864
|
"debug",
|
|
838
865
|
"internal",
|
|
839
|
-
"release"
|
|
866
|
+
"release",
|
|
867
|
+
"x",
|
|
868
|
+
"x-debug",
|
|
869
|
+
"x-internal"
|
|
840
870
|
],
|
|
841
871
|
"type": "option"
|
|
842
872
|
}
|
|
@@ -913,7 +943,10 @@
|
|
|
913
943
|
"options": [
|
|
914
944
|
"debug",
|
|
915
945
|
"internal",
|
|
916
|
-
"release"
|
|
946
|
+
"release",
|
|
947
|
+
"x",
|
|
948
|
+
"x-debug",
|
|
949
|
+
"x-internal"
|
|
917
950
|
],
|
|
918
951
|
"type": "option"
|
|
919
952
|
},
|
|
@@ -941,10 +974,10 @@
|
|
|
941
974
|
"index.js"
|
|
942
975
|
]
|
|
943
976
|
},
|
|
944
|
-
"
|
|
977
|
+
"version": {
|
|
945
978
|
"aliases": [],
|
|
946
979
|
"args": {},
|
|
947
|
-
"description": "
|
|
980
|
+
"description": "Print the version number",
|
|
948
981
|
"flags": {
|
|
949
982
|
"exit-on-error": {
|
|
950
983
|
"aliases": [
|
|
@@ -990,48 +1023,34 @@
|
|
|
990
1023
|
"options": [
|
|
991
1024
|
"debug",
|
|
992
1025
|
"internal",
|
|
993
|
-
"release"
|
|
1026
|
+
"release",
|
|
1027
|
+
"x",
|
|
1028
|
+
"x-debug",
|
|
1029
|
+
"x-internal"
|
|
994
1030
|
],
|
|
995
1031
|
"type": "option"
|
|
996
|
-
},
|
|
997
|
-
"schema": {
|
|
998
|
-
"char": "s",
|
|
999
|
-
"description": "Path to JSON schema for package.json validation ",
|
|
1000
|
-
"name": "schema",
|
|
1001
|
-
"default": "https://www.raycast.com/schemas/extension.json",
|
|
1002
|
-
"hasDynamicHelp": false,
|
|
1003
|
-
"multiple": false,
|
|
1004
|
-
"type": "option"
|
|
1005
|
-
},
|
|
1006
|
-
"skip-owner": {
|
|
1007
|
-
"description": "Skip owner checks",
|
|
1008
|
-
"name": "skip-owner",
|
|
1009
|
-
"allowNo": false,
|
|
1010
|
-
"type": "boolean"
|
|
1011
1032
|
}
|
|
1012
1033
|
},
|
|
1013
1034
|
"hasDynamicHelp": false,
|
|
1014
|
-
"hidden": true,
|
|
1015
1035
|
"hiddenAliases": [],
|
|
1016
|
-
"id": "
|
|
1036
|
+
"id": "version",
|
|
1017
1037
|
"pluginAlias": "ray",
|
|
1018
1038
|
"pluginName": "ray",
|
|
1019
1039
|
"pluginType": "core",
|
|
1020
1040
|
"strict": true,
|
|
1021
|
-
"summary": "Validate the extension - \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
1022
1041
|
"enableJsonFlag": false,
|
|
1023
1042
|
"isESM": false,
|
|
1024
1043
|
"relativePath": [
|
|
1025
1044
|
"dist",
|
|
1026
1045
|
"commands",
|
|
1027
|
-
"
|
|
1046
|
+
"version",
|
|
1028
1047
|
"index.js"
|
|
1029
1048
|
]
|
|
1030
1049
|
},
|
|
1031
|
-
"
|
|
1050
|
+
"validate": {
|
|
1032
1051
|
"aliases": [],
|
|
1033
1052
|
"args": {},
|
|
1034
|
-
"description": "
|
|
1053
|
+
"description": "Validate the extension so that it can be published - \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
1035
1054
|
"flags": {
|
|
1036
1055
|
"exit-on-error": {
|
|
1037
1056
|
"aliases": [
|
|
@@ -1077,27 +1096,47 @@
|
|
|
1077
1096
|
"options": [
|
|
1078
1097
|
"debug",
|
|
1079
1098
|
"internal",
|
|
1080
|
-
"release"
|
|
1099
|
+
"release",
|
|
1100
|
+
"x",
|
|
1101
|
+
"x-debug",
|
|
1102
|
+
"x-internal"
|
|
1081
1103
|
],
|
|
1082
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"
|
|
1083
1120
|
}
|
|
1084
1121
|
},
|
|
1085
1122
|
"hasDynamicHelp": false,
|
|
1123
|
+
"hidden": true,
|
|
1086
1124
|
"hiddenAliases": [],
|
|
1087
|
-
"id": "
|
|
1125
|
+
"id": "validate",
|
|
1088
1126
|
"pluginAlias": "ray",
|
|
1089
1127
|
"pluginName": "ray",
|
|
1090
1128
|
"pluginType": "core",
|
|
1091
1129
|
"strict": true,
|
|
1130
|
+
"summary": "Validate the extension - \u001b[34m\u001b[2minternal only\u001b[22m\u001b[39m",
|
|
1092
1131
|
"enableJsonFlag": false,
|
|
1093
1132
|
"isESM": false,
|
|
1094
1133
|
"relativePath": [
|
|
1095
1134
|
"dist",
|
|
1096
1135
|
"commands",
|
|
1097
|
-
"
|
|
1136
|
+
"validate",
|
|
1098
1137
|
"index.js"
|
|
1099
1138
|
]
|
|
1100
1139
|
}
|
|
1101
1140
|
},
|
|
1102
|
-
"version": "1.
|
|
1141
|
+
"version": "1.94.1"
|
|
1103
1142
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raycast/api",
|
|
3
|
-
"version": "1.
|
|
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",
|
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"types": "types/index.d.ts",
|
|
12
12
|
"engines": {
|
|
13
|
-
"node": ">=
|
|
13
|
+
"node": ">=22.14.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@oclif/core": "^4.0.33",
|
|
17
17
|
"@oclif/plugin-autocomplete": "^3.2.10",
|
|
18
18
|
"@oclif/plugin-help": "^6.2.18",
|
|
19
19
|
"@oclif/plugin-not-found": "^3.2.28",
|
|
20
|
-
"@types/node": "
|
|
21
|
-
"@types/react": "
|
|
22
|
-
"esbuild": "^0.25.
|
|
23
|
-
"react": "
|
|
20
|
+
"@types/node": "22.13.10",
|
|
21
|
+
"@types/react": "19.0.10",
|
|
22
|
+
"esbuild": "^0.25.1",
|
|
23
|
+
"react": "19.0.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@types/node": "
|
|
27
|
-
"@types/react": "
|
|
28
|
-
"react-devtools": "
|
|
26
|
+
"@types/node": "22.13.10",
|
|
27
|
+
"@types/react": "19.0.10",
|
|
28
|
+
"react-devtools": "6.1.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependenciesMeta": {
|
|
31
31
|
"@types/node": {
|