@raycast/api 1.87.4 → 1.88.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.
- package/dist/api/evals.js +5 -0
- package/dist/commands/build/index.js +1 -1
- package/dist/commands/develop/index.js +1 -1
- package/dist/commands/evals/index.js +67 -0
- package/dist/commands/publish/index.js +2 -2
- package/dist/commands/pull-contributions/index.js +1 -1
- package/dist/commands/version/index.js +1 -1
- package/dist/utils/evals/build-extension.js +42 -0
- package/dist/utils/evals/format-expectation.js +1 -0
- package/dist/utils/evals/get-package-json.js +54 -0
- package/dist/utils/evals/render-results.js +9 -0
- package/dist/utils/generate-typeScript-definitions.js +13 -13
- package/dist/utils/publish/git.js +1 -1
- package/dist/utils/publish/publish-to-public-repo.js +1 -1
- package/dist/utils/publish/publish-to-store.js +1 -1
- package/dist/utils/publish/pull-contributions.js +1 -1
- package/oclif.manifest.json +97 -1
- package/package.json +1 -1
- package/types/index.d.ts +5 -2
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";var c=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var T=(e,t)=>{for(var o in t)c(e,o,{get:t[o],enumerable:!0})},A=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of y(t))!h.call(e,n)&&n!==o&&c(e,n,{get:()=>t[n],enumerable:!(i=m(t,n))||i.enumerable});return e};var x=e=>A(c({},"__esModule",{value:!0}),e);var N={};T(N,{runEvalsRemotely:()=>R});module.exports=x(N);var b="KqAdcGhNfBKiUpfjD3nU3VNgh1t0iMPoX2hYEkN9d4I",k="e69bae0ec90f5e838555",r={};function l(e){switch(e){case"raycastApiURL":return process.env.RAY_APIURL||r.APIURL||"https://www.raycast.com";case"raycastAccessToken":return process.env.RAY_Token||r.Token||r.AccessToken||"";case"raycastClientId":return process.env.RAY_ClientID||r.ClientID||b;case"githubClientId":return process.env.RAY_GithubClientID||r.GithubClientID||k;case"githubAccessToken":return process.env.GITHUB_ACCESS_TOKEN||r.GithubAccessToken||"";case"flavorName":return process.env.RAY_Target||(typeof r.Target>"u"?C("release"):r.Target)}}function C(e){switch(e){case"debug":return"debug";case"internal":return"internal";case"release":return"";case void 0:return l("flavorName")}}async function R(e,t,o){let i=l("raycastAccessToken"),n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:JSON.stringify({packageJson:t})});if(!n.ok||n.body===null)throw await n.text();let p=n.body.getReader(),f=new TextDecoder("utf-8"),{done:u,value:g}=await p.read(),s="";for(;!u;){for(s+=f.decode(g,{stream:!0});s.includes(`
|
|
2
|
+
|
|
3
|
+
`);){let a=s.indexOf(`
|
|
4
|
+
|
|
5
|
+
`)+2,d=s.substring(0,a);s=s.substring(a),o(JSON.parse(d))}({done:u,value:g}=await p.read())}s&&(o(JSON.parse(s)),s="")}0&&(module.exports={runEvalsRemotely});
|
|
@@ -646,7 +646,7 @@ ${E}
|
|
|
646
646
|
${d.join(`
|
|
647
647
|
|
|
648
648
|
`)}`)}function PGe(f){let d="{";return(f||[]).forEach((S,E)=>{switch(E===0&&(d+=`
|
|
649
|
-
`),d+=` /** ${S.title} - ${S.description} */
|
|
649
|
+
`),d+=` /** ${S.title} - ${S.description?.replace(/\*\//g,"*\u200B/")} */
|
|
650
650
|
"${S.name}"`,(!S.required&&S.default==null||S.type==="appPicker")&&(d+="?"),d+=": ",S.type){case"textfield":case"password":case"file":case"directory":d+="string";break;case"checkbox":d+="boolean";break;case"appPicker":d+='import("@raycast/api").Application';break;case"dropdown":d+=S.data?.map(O=>`"${O.value}"`).join(" | ")||"unknown";break;default:d+="unknown"}E<(f||[]).length-1&&(d+=","),d+=`
|
|
651
651
|
`}),d+="}",d}function aIt(f){let d="{";return(f||[]).forEach((S,E)=>{switch(E===0&&(d+=`
|
|
652
652
|
`),d+=` /** ${S.placeholder} */
|
|
@@ -647,7 +647,7 @@ ${C}
|
|
|
647
647
|
${d.join(`
|
|
648
648
|
|
|
649
649
|
`)}`)}function DYe(u){let d="{";return(u||[]).forEach((v,C)=>{switch(C===0&&(d+=`
|
|
650
|
-
`),d+=` /** ${v.title} - ${v.description} */
|
|
650
|
+
`),d+=` /** ${v.title} - ${v.description?.replace(/\*\//g,"*\u200B/")} */
|
|
651
651
|
"${v.name}"`,(!v.required&&v.default==null||v.type==="appPicker")&&(d+="?"),d+=": ",v.type){case"textfield":case"password":case"file":case"directory":d+="string";break;case"checkbox":d+="boolean";break;case"appPicker":d+='import("@raycast/api").Application';break;case"dropdown":d+=v.data?.map(I=>`"${I.value}"`).join(" | ")||"unknown";break;default:d+="unknown"}C<(u||[]).length-1&&(d+=","),d+=`
|
|
652
652
|
`}),d+="}",d}function H7t(u){let d="{";return(u||[]).forEach((v,C)=>{switch(C===0&&(d+=`
|
|
653
653
|
`),d+=` /** ${v.placeholder} */
|