@raycast/api 1.85.1 → 1.86.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.
Files changed (37) hide show
  1. package/bin/run.cmd +3 -0
  2. package/bin/run.js +4 -0
  3. package/dist/api/base.js +21 -0
  4. package/dist/api/github.js +31 -0
  5. package/dist/api/raycast.js +21 -0
  6. package/dist/commands/build/index.js +621 -0
  7. package/dist/commands/develop/index.js +622 -0
  8. package/dist/commands/lint/index.js +102 -0
  9. package/dist/commands/login/index.js +21 -0
  10. package/dist/commands/logout/index.js +1 -0
  11. package/dist/commands/migrate/index.js +43 -0
  12. package/dist/commands/profile/index.js +21 -0
  13. package/dist/commands/publish/index.js +811 -0
  14. package/dist/commands/pull-contributions/index.js +43 -0
  15. package/dist/commands/token/index.js +11 -0
  16. package/dist/commands/validate/index.js +102 -0
  17. package/dist/commands/version/index.js +1 -0
  18. package/dist/config.js +1 -0
  19. package/dist/index.js +1 -0
  20. package/dist/manifest.js +1 -0
  21. package/dist/types/json-source-map.d.js +1 -0
  22. package/dist/types/manifest-schema.d.js +1 -0
  23. package/dist/utils/BaseCommand.js +1 -0
  24. package/dist/utils/esbuild-plugins/node-files.js +1 -0
  25. package/dist/utils/esbuild-plugins/swift-files.js +150 -0
  26. package/dist/utils/generate-typeScript-definitions.js +37 -0
  27. package/dist/utils/output.js +13 -0
  28. package/dist/utils/publish/copy-dir.js +1 -0
  29. package/dist/utils/publish/git.js +4 -0
  30. package/dist/utils/publish/publish-to-public-repo.js +78 -0
  31. package/dist/utils/publish/publish-to-store.js +728 -0
  32. package/dist/utils/publish/pull-contributions.js +43 -0
  33. package/dist/utils/publish/setup-github-fork.js +43 -0
  34. package/dist/utils/raycast-app-communication.js +2 -0
  35. package/oclif.manifest.json +984 -0
  36. package/package.json +19 -7
  37. package/bin/ray +0 -71
@@ -0,0 +1 @@
1
+ "use strict";var j=Object.create;var m=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var A=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),O=(t,n)=>{for(var i in n)m(t,i,{get:n[i],enumerable:!0})},T=(t,n,i,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of G(n))!L.call(t,o)&&o!==i&&m(t,o,{get:()=>n[o],enumerable:!(c=P(n,o))||c.enumerable});return t};var h=(t,n,i)=>(i=t!=null?j(R(t)):{},T(n||!t||!t.__esModule?m(i,"default",{value:t,enumerable:!0}):i,t)),D=t=>T(m({},"__esModule",{value:!0}),t);var B=A((Z,E)=>{var J=require("node:tty"),Y=J?.WriteStream?.prototype?.hasColors?.()??!1,r=(t,n)=>{if(!Y)return o=>o;let i=`\x1B[${t}m`,c=`\x1B[${n}m`;return o=>{let d=o+"",p=d.indexOf(c);if(p===-1)return i+d+c;let x=i,g=0;for(;p!==-1;)x+=d.slice(g,p)+i,g=p+c.length,p=d.indexOf(c,g);return x+=d.slice(g)+c,x}},e={};e.reset=r(0,0);e.bold=r(1,22);e.dim=r(2,22);e.italic=r(3,23);e.underline=r(4,24);e.overline=r(53,55);e.inverse=r(7,27);e.hidden=r(8,28);e.strikethrough=r(9,29);e.black=r(30,39);e.red=r(31,39);e.green=r(32,39);e.yellow=r(33,39);e.blue=r(34,39);e.magenta=r(35,39);e.cyan=r(36,39);e.white=r(37,39);e.gray=r(90,39);e.bgBlack=r(40,49);e.bgRed=r(41,49);e.bgGreen=r(42,49);e.bgYellow=r(43,49);e.bgBlue=r(44,49);e.bgMagenta=r(45,49);e.bgCyan=r(46,49);e.bgWhite=r(47,49);e.bgGray=r(100,49);e.redBright=r(91,39);e.greenBright=r(92,39);e.yellowBright=r(93,39);e.blueBright=r(94,39);e.magentaBright=r(95,39);e.cyanBright=r(96,39);e.whiteBright=r(97,39);e.bgRedBright=r(101,49);e.bgGreenBright=r(102,49);e.bgYellowBright=r(103,49);e.bgBlueBright=r(104,49);e.bgMagentaBright=r(105,49);e.bgCyanBright=r(106,49);e.bgWhiteBright=r(107,49);E.exports=e});var $=A((oe,q)=>{q.exports={name:"ray",description:"Build extensions for Raycast with React and Node.js.",version:"1.86.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",clipboardy:"^2.3.0",execa:"^9.5.1","json-source-map":"^0.6.1","node-fetch-cjs":"^3.3.2",open:"^8.4.2",ora:"^8.1.1","terminal-link":"^3.0.0","yoctocolors-cjs":"^2.1.2"},devDependencies:{"@raycast/eslint-config":"^1.0.11","@types/archiver":"^6.0.3","@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={};O(K,{default:()=>b});module.exports=D(K);var l=require("@oclif/core");var f=h(require("node:fs")),w=h(require("node:path")),v=h(require("node:os"));var S="KqAdcGhNfBKiUpfjD3nU3VNgh1t0iMPoX2hYEkN9d4I",F="e69bae0ec90f5e838555",a={},C;function I(t){C=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||"https://www.raycast.com";case"raycastAccessToken":return process.env.RAY_Token||a.Token||a.AccessToken||"";case"raycastClientId":return process.env.RAY_ClientID||a.ClientID||S;case"githubClientId":return process.env.RAY_GithubClientID||a.GithubClientID||F;case"githubAccessToken":return process.env.GITHUB_ACCESS_TOKEN||a.GithubAccessToken||"";case"flavorName":return process.env.RAY_Target||(typeof a.Target>"u"?k("release"):a.Target)}}function k(t){switch(t){case"debug":return"debug";case"internal":return"internal";case"release":return"";case void 0:return U("flavorName")}}function _(){let t=k(C);return t==""?"raycast":`raycast-${t}`}function M(){let t=w.join(v.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")} - `},H=!0;function N(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&&(H=!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:i}=await this.parse({flags:this.ctor.flags,baseFlags:super.ctor.baseFlags,enableJsonFlag:this.ctor.enableJsonFlag,args:this.ctor.args,strict:this.ctor.strict});this.flags=i,this.args=n,I(this.flags.target),N(this.flags.emoji,this.flags["non-interactive"])}error(n,i){return i?.message&&n instanceof Error&&(n.message=`${i.message} (${n.message})`,delete i.message),super.error(n,i)}async catch(n){return super.catch(n)}async finally(n){return super.finally(n)}};var b=class t extends y{static description="Print the version number";async run(){await this.parse(t),this.log(`${$().version}`)}};
package/dist/config.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";var A=Object.create;var o=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty;var I=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})},p=(e,t,r,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of T(t))!C.call(e,s)&&s!==r&&o(e,s,{get:()=>t[s],enumerable:!(l=b(t,s))||l.enumerable});return e};var i=(e,t,r)=>(r=e!=null?A(N(e)):{},p(t||!e||!e.__esModule?o(r,"default",{value:e,enumerable:!0}):r,e)),w=e=>p(o({},"__esModule",{value:!0}),e);var L={};I(L,{extensionBuildDirectory:()=>D,getConfig:()=>k,initConfig:()=>S,raycastAppScheme:()=>v,raycastBundleID:()=>E,raycastConfigDirectory:()=>d,setConfig:()=>U});module.exports=w(L);var a=i(require("node:fs")),c=i(require("node:path")),y=i(require("node:os"));var g=i(require("node:path")),m=i(require("node:fs"));function h(){let e;try{e=g.resolve("package.json")}catch(r){throw new Error(`cannot resolve package manifest path: ${r}`)}let t;try{t=JSON.parse(m.readFileSync(e,"utf8"))}catch(r){throw new Error(`package manifest: ${r}`)}return t.name=t.name.replace(/^@workaround/g,""),t}var R="KqAdcGhNfBKiUpfjD3nU3VNgh1t0iMPoX2hYEkN9d4I",x="e69bae0ec90f5e838555",n={},f;function D(){let e=h();if(!e.name)throw new Error("extension name in manifest cannot be empty");return c.join(d(),"extensions",e.name)}function E(){let e=u(f);return e?`com.raycast.macos.${e}`:"com.raycast.macos"}function v(){return`raycast${u(f)}`}function S(e){f=e;try{n=JSON.parse(a.readFileSync(c.join(d(),"config.json"),"utf8"))}catch(t){if(t instanceof Error&&t.code==="ENOENT")return;throw new Error(`Failed to read config file: ${t}`)}}function k(e){switch(e){case"raycastApiURL":return process.env.RAY_APIURL||n.APIURL||"https://www.raycast.com";case"raycastAccessToken":return process.env.RAY_Token||n.Token||n.AccessToken||"";case"raycastClientId":return process.env.RAY_ClientID||n.ClientID||R;case"githubClientId":return process.env.RAY_GithubClientID||n.GithubClientID||x;case"githubAccessToken":return process.env.GITHUB_ACCESS_TOKEN||n.GithubAccessToken||"";case"flavorName":return process.env.RAY_Target||(typeof n.Target>"u"?u("release"):n.Target)}}function U(e,t){switch(e){case"raycastApiURL":t===void 0?delete n.APIURL:n.APIURL=t;break;case"raycastAccessToken":t===void 0?delete n.Token:n.Token=t,delete n.AccessToken;break;case"raycastClientId":t===void 0?delete n.ClientID:n.ClientID=t;break;case"githubAccessToken":t===void 0?delete n.GithubAccessToken:n.GithubAccessToken=t;break;case"flavorName":t===void 0?delete n.Target:n.Target=t;break}let r=d();a.writeFileSync(c.join(r,"config.json"),JSON.stringify(n,null," "),"utf8")}function u(e){switch(e){case"debug":return"debug";case"internal":return"internal";case"release":return"";case void 0:return k("flavorName")}}function G(){let e=u(f);return e==""?"raycast":`raycast-${e}`}function d(){let e=c.join(y.default.homedir(),".config",G());return a.mkdirSync(e,{recursive:!0}),e}0&&(module.exports={extensionBuildDirectory,getConfig,initConfig,raycastAppScheme,raycastBundleID,raycastConfigDirectory,setConfig});
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";var m=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var a=(o,r)=>{for(var f in r)m(o,f,{get:r[f],enumerable:!0})},b=(o,r,f,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of u(r))!x.call(o,e)&&e!==f&&m(o,e,{get:()=>r[e],enumerable:!(n=t(r,e))||n.enumerable});return o};var c=o=>b(m({},"__esModule",{value:!0}),o);var d={};a(d,{run:()=>p.run});module.exports=c(d);var p=require("@oclif/core");0&&(module.exports={run});
@@ -0,0 +1 @@
1
+ "use strict";var m=Object.create;var n=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var g=(a,e)=>{for(var t in e)n(a,t,{get:e[t],enumerable:!0})},s=(a,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of h(e))!u.call(a,r)&&r!==t&&n(a,r,{get:()=>e[r],enumerable:!(o=f(e,r))||o.enumerable});return a};var c=(a,e,t)=>(t=a!=null?m(l(a)):{},s(e||!a||!a.__esModule?n(t,"default",{value:a,enumerable:!0}):t,a)),w=a=>s(n({},"__esModule",{value:!0}),a);var x={};g(x,{isPrivateExtension:()=>k,readManifest:()=>y});module.exports=w(x);var p=c(require("node:path")),i=c(require("node:fs"));function y(){let a;try{a=p.resolve("package.json")}catch(t){throw new Error(`cannot resolve package manifest path: ${t}`)}let e;try{e=JSON.parse(i.readFileSync(a,"utf8"))}catch(t){throw new Error(`package manifest: ${t}`)}return e.name=e.name.replace(/^@workaround/g,""),e}function k(a){return!!a.owner&&a.access!=="public"}0&&(module.exports={isPrivateExtension,readManifest});
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";var r=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var m=(e,n,o,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of a(n))!g.call(e,t)&&t!==o&&r(e,t,{get:()=>n[t],enumerable:!(i=s(n,t))||i.enumerable});return e};var p=e=>m(r({},"__esModule",{value:!0}),e);var d={};module.exports=p(d);
@@ -0,0 +1 @@
1
+ "use strict";var B=Object.create;var m=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var G=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var L=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),O=(n,t)=>{for(var o in t)m(n,o,{get:t[o],enumerable:!0})},w=(n,t,o,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $(t))!P.call(n,a)&&a!==o&&m(n,a,{get:()=>t[a],enumerable:!(c=v(t,a))||c.enumerable});return n};var h=(n,t,o)=>(o=n!=null?B(G(n)):{},w(t||!n||!n.__esModule?m(o,"default",{value:n,enumerable:!0}):o,n)),R=n=>w(m({},"__esModule",{value:!0}),n);var E=L((z,k)=>{var _=require("node:tty"),J=_?.WriteStream?.prototype?.hasColors?.()??!1,r=(n,t)=>{if(!J)return a=>a;let o=`\x1B[${n}m`,c=`\x1B[${t}m`;return a=>{let g=a+"",u=g.indexOf(c);if(u===-1)return o+g+c;let y=o,d=0;for(;u!==-1;)y+=g.slice(d,u)+o,d=u+c.length,u=g.indexOf(c,d);return y+=g.slice(d)+c,y}},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 Y={};O(Y,{BaseCommand:()=>x});module.exports=R(Y);var l=require("@oclif/core");var p=h(require("node:fs")),b=h(require("node:path")),A=h(require("node:os"));var D="KqAdcGhNfBKiUpfjD3nU3VNgh1t0iMPoX2hYEkN9d4I",S="e69bae0ec90f5e838555",i={},T;function C(n){T=n;try{i=JSON.parse(p.readFileSync(b.join(j(),"config.json"),"utf8"))}catch(t){if(t instanceof Error&&t.code==="ENOENT")return;throw new Error(`Failed to read config file: ${t}`)}}function F(n){switch(n){case"raycastApiURL":return process.env.RAY_APIURL||i.APIURL||"https://www.raycast.com";case"raycastAccessToken":return process.env.RAY_Token||i.Token||i.AccessToken||"";case"raycastClientId":return process.env.RAY_ClientID||i.ClientID||D;case"githubClientId":return process.env.RAY_GithubClientID||i.GithubClientID||S;case"githubAccessToken":return process.env.GITHUB_ACCESS_TOKEN||i.GithubAccessToken||"";case"flavorName":return process.env.RAY_Target||(typeof i.Target>"u"?I("release"):i.Target)}}function I(n){switch(n){case"debug":return"debug";case"internal":return"internal";case"release":return"";case void 0:return F("flavorName")}}function U(){let n=I(T);return n==""?"raycast":`raycast-${n}`}function j(){let n=b.join(A.default.homedir(),".config",U());return p.mkdirSync(n,{recursive:!0}),n}var s=h(E());var X=(0,s.blue)((0,s.dim)("internal only"));var f={wait:`\u{1F550}${(0,s.blue)("wait")} - `,info:`${process.env.GITHUB_ACTIONS==="true"?"\u2139\uFE0F":"\u2139\uFE0F "}${(0,s.cyan)("info")} - `,success:`\u2705${(0,s.green)("ready")} - `,warn:`${process.env.GITHUB_ACTIONS==="true"?"\u26A0\uFE0F":"\u26A0\uFE0F "}${(0,s.yellow)("warn")} - `,error:`\u{1F4A5}${(0,s.red)("error")} - `,event:`\u26A1\uFE0F${(0,s.magenta)("event")} - `,paymentPrompt:`\u{1F4B0}${(0,s.yellowBright)("plan")} - `},M=!0;function N(n,t){n||(f.wait=`${(0,s.blue)("wait")} - `,f.info=`${(0,s.cyan)("info")} - `,f.success=`${(0,s.green)("ready")} - `,f.warn=`${(0,s.yellow)("warn")} - `,f.error=`${(0,s.red)("error")} - `,f.event=`${(0,s.magenta)("event")} - `,f.paymentPrompt=`${(0,s.yellowBright)("plan")} - `),t&&(M=!1)}var x=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:t,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=t,C(this.flags.target),N(this.flags.emoji,this.flags["non-interactive"])}error(t,o){return o?.message&&t instanceof Error&&(t.message=`${o.message} (${t.message})`,delete o.message),super.error(t,o)}async catch(t){return super.catch(t)}async finally(t){return super.finally(t)}};0&&(module.exports={BaseCommand});
@@ -0,0 +1 @@
1
+ "use strict";var c=Object.create;var r=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var u=(s,e)=>{for(var t in e)r(s,t,{get:e[t],enumerable:!0})},f=(s,e,t,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of h(e))!j.call(s,n)&&n!==t&&r(s,n,{get:()=>e[n],enumerable:!(l=x(e,n))||l.enumerable});return s};var p=(s,e,t)=>(t=s!=null?c(m(s)):{},f(e||!s||!s.__esModule?r(t,"default",{value:s,enumerable:!0}):t,s)),v=s=>f(r({},"__esModule",{value:!0}),s);var d={};u(d,{nodeFiles:()=>a});module.exports=v(d);var i=p(require("node:fs")),o=p(require("node:path")),a={name:"node-files",setup(s){s.onResolve({filter:/\.node$/},e=>i.existsSync(o.default.join(e.resolveDir,e.path+".js"))||i.existsSync(o.default.join(e.resolveDir,e.path+".ts"))||i.existsSync(o.default.join(e.resolveDir,e.path+".tsx"))||i.existsSync(o.default.join(e.resolveDir,e.path+".jsx"))||i.existsSync(o.default.join(e.resolveDir,e.path+".json"))||i.existsSync(o.default.join(e.resolveDir,e.path+".css"))||i.existsSync(o.default.join(e.resolveDir,e.path+".wasm"))||i.existsSync(o.default.join(e.resolveDir,e.path+".swift"))?{}:{errors:[{text:"native bindings (e.g., .node files) are not supported because they are neither cross-platform nor cross-architecture; for example, native bindings built on a M1 mac would not work on an Intel mac"}]})}};0&&(module.exports={nodeFiles});