@visulima/vis 1.0.0-alpha.31 → 1.0.0-alpha.32
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/CHANGELOG.md +6 -0
- package/dist/bin.js +1 -1
- package/dist/binx.js +1 -1
- package/dist/packem_chunks/bin.js +1 -1
- package/dist/packem_chunks/handler27.js +1 -1
- package/dist/packem_chunks/handler51.js +1 -1
- package/dist/packem_chunks/help-command.js +1 -1
- package/dist/packem_shared/{index-CMwxZ3Zx.js → index-K8aQuMvx.js} +1 -1
- package/index.js +52 -52
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## @visulima/vis [1.0.0-alpha.32](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.31...@visulima/vis@1.0.0-alpha.32) (2026-06-07)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **vis:** forward config.namedInputs to the task runner ([02201de](https://github.com/visulima/visulima/commit/02201ded24b2881df8d6f7f0e6c573f4bd3123dc))
|
|
6
|
+
|
|
1
7
|
## @visulima/vis [1.0.0-alpha.31](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.30...@visulima/vis@1.0.0-alpha.31) (2026-06-06)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/dist/bin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./packem_shared/index-
|
|
2
|
+
import"./packem_shared/index-K8aQuMvx.js";import"./packem_chunks/bin.js";import"./packem_chunks/config.js";import"./packem_shared/readFileSync-DseCu8sg-DEq4Fn3a.js";
|
package/dist/binx.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{$ as r,m as o,a as c,I as i,p as a,i as n}from"./packem_shared/index-
|
|
2
|
+
import{$ as r,m as o,a as c,I as i,p as a,i as n}from"./packem_shared/index-K8aQuMvx.js";r();process.argv.includes("--no-color")&&(process.env.NO_COLOR="1",process.env.FORCE_COLOR="0");process.argv.slice(2).some(s=>s==="--version"||s==="-v"||s==="-V")&&(process.stdout.write(`${o.version}
|
|
3
3
|
`),process.exit(0));process.argv.splice(2,0,"dlx");c();const e=i("visx",{packageName:"visx",packageVersion:o.version}),p=process.argv.includes("--debug")||!!process.env.DEBUG;e.addPlugin(a({detailed:p,exitOnError:!1}));e.addCommand(n);(async()=>{try{await e.run({shouldExitProcess:!1})}catch{process.exitCode=process.exitCode||1}finally{process.exit(process.exitCode??0)}})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var r8=Object.defineProperty;var p=(e,t)=>r8(e,"name",{value:t,configurable:!0});import{createRequire as n8}from"node:module";import{d as s8,m as Ug,$ as o8,a as a8,I as c8,p as l8,i as u8}from"../packem_shared/index-CMwxZ3Zx.js";import{$ as Av,g as d8,i as f8,z as p8,E as pr,s as nt,d as ef,b as bn,k as Wg,j as Fc,p as dD,e as D1}from"./config.js";import{n as tf,C as vr,U as Bn,M as j,L as PC,Q as fD,O as pD,b as gD,a as la,K as Ir,_ as TC,c as g8,s as hD,B as Le,z as Oc,l as K,y as h8}from"../packem_shared/readFileSync-DseCu8sg-DEq4Fn3a.js";import{x as ED}from"tinyexec";import{a as CD,g as Dh}from"../packem_shared/_commonjsHelpers-CLblCigl.js";import{r as k8,c as $8,s as Ec,A as R1}from"../packem_shared/pm-runner-DmKT2FqF.js";import{getMainWorktreeRoot as S8,Cache as Jg,parseCacheSize as x8,readLastRunSummary as bD,getLastRunSummaryPath as MC,digestFile as wD,looksLikeInputUri as R8,parseInputUri as N8}from"@visulima/task-runner";import{g as fr,H as M8,R as _8,o as G8,r as H8,h as U8,a as W8,i as J8,d as K8,t as $D,w as V8,c as z8,E as lc,T as EE,j as ls,e as Ad,q as zo,P as q8,I as Y8}from"../packem_shared/Table-3pFgIUZ2-DABgc6rj.js";import{resolveEditorconfigDefaults as Z8}from"#native";const i8=n8(import.meta.url),Ul=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,un=p(e=>{if(typeof Ul<"u"&&Ul.versions&&Ul.versions.node){const[t,r]=Ul.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Ul.getBuiltinModule(e)}return i8(e)},"__cjs_getBuiltinModule"),A8=un("node:assert"),$h=un("node:module"),{createRequire:ar}=$h,Wn=Ul,{env:yE}=Wn,dv=un("node:fs/promises"),{readdir:rf,stat:Ru,readFile:mD,realpath:S1,rm:fv,mkdtemp:m8,mkdir:y8}=dv,eo=un("node:path"),{resolve:mu,dirname:E8,delimiter:x1}=eo,Zl=un("node:fs"),{existsSync:Qh,rmSync:mi,writeFileSync:Tt,renameSync:C8,unlinkSync:ma,readdirSync:jr,statSync:Cs,readFileSync:yD,watch:I8,copyFileSync:v8,mkdirSync:B8,cpSync:b8}=Zl,ID=un("node:url"),{fileURLToPath:w8}=ID,Q8=un("util"),{spawn:N1,execFileSync:vD,execFile:D8,spawnSync:ou,execSync:BD}=un("node:child_process"),{createHash:F8,randomUUID:O8}=un("node:crypto"),{homedir:kD,platform:pv,tmpdir:j8}=un("node:os"),{createServer:L8,STATUS_CODES:P8}=un("node:http"),{Http2ServerRequest:wd,constants:T8}=un("node:http2"),{Readable:_C,PassThrough:F1}=un("node:stream"),{createInterface:gv}=un("node:readline"),X8=un("node:tty");var e3=Object.defineProperty,t3=p((e,t)=>e3(e,"name",{value:t,configurable:!0}),"o$1j");let O1=class extends Error{static{p(this,"s")}static{t3(this,"e")}root;constructor(t,r){super(`${t instanceof Error?t.message:String(t)} for path "${r}"`),this.cause=t,this.root=r}get name(){return"WalkError"}set name(t){throw new Error("Cannot overwrite name of WalkError")}};var r3=Object.defineProperty,Sh=p((e,t)=>r3(e,"name",{value:t,configurable:!0}),"a$1l");const j1=Sh(e=>{const t=e.replace(/[$()+\\^]/g,String.raw`\$&`).replace(/\.\*/g,".([^/]*)").replace(/\*\*/g,"(.*)").replace(/(?<!\.)\*(?!\*)/g,"([^/]*)").replace(/\?/g,"[^/]").replace(/\.(?!\*)/g,String.raw`\.`).replace(/\{/g,"(").replace(/\}/g,")").replace(/,/g,"|").replace(/\[!(.*?)\]/g,"[^$1]");try{return new RegExp(`^${t}$`)}catch(r){throw new Error(`Invalid glob pattern: ${e}`,{cause:r})}},"i");let n3=class{static{p(this,"o")}static{Sh(this,"c")}name;path;#e;constructor(t,r,n){this.#e=t,this.name=r,this.path=n}isDirectory(){return this.#e.isDirectory()}isFile(){return this.#e.isFile()}isSymbolicLink(){return this.#e.isSymbolicLink()}};const GC=Sh((e,t,r)=>new n3(e,t,r),"l"),Kp=Sh((e,t,r,n)=>{if(Array.isArray(t)&&t.length>0&&!t.some(s=>e.endsWith(s)))return!1;const i=e.includes("\\")?e.replaceAll("\\","/"):e;return r&&!r.some(s=>s.test(i))?!1:!n?.some(s=>s.test(i))},"o");var i3=Object.defineProperty,hv=p((e,t)=>i3(e,"name",{value:t,configurable:!0}),"m$1e");const s3=ar(import.meta.url),HA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,o3=hv(e=>{if(typeof HA<"u"&&HA.versions&&HA.versions.node){const[t,r]=HA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return HA.getBuiltinModule(e)}return s3(e)},"k"),{readdirSync:a3,realpathSync:c3,statSync:l3}=o3("node:fs"),u3=hv(e=>{const t=PC(e),r=l3(t);return GC(r,fD(t),t)},"q");function*Nu(e,{extensions:t,followSymlinks:r=!1,includeDirs:n=!0,includeFiles:i=!0,includeSymlinks:s=!0,match:o,maxDepth:c=Number.POSITIVE_INFINITY,skip:u}={}){if(tf(e),c<0)return;const A=o?o.map(h=>typeof h=="string"?j1(h):h):void 0,f=u?u.map(h=>typeof h=="string"?j1(h):h):void 0;if(e=vr(Bn(e)),n&&Kp(e,t,A,f)&&(yield u3(e)),!(c<1||!Kp(e,void 0,void 0,f)))try{const h=a3(e,{withFileTypes:!0});for(const m of h){let E=j(e,m.name);if(m.isSymbolicLink())if(r)E=c3(E);else if(s&&Kp(E,t,A,f)){yield GC(m,m.name,PC(E));continue}else continue;m.isDirectory()?yield*Nu(E,{extensions:t,followSymlinks:r,includeDirs:n,includeFiles:i,includeSymlinks:s,match:A,maxDepth:c-1,skip:f}):m.isFile()&&i&&Kp(E,t,A,f)&&(yield GC(m,m.name,PC(E)))}}catch(h){throw h instanceof O1?h:new O1(h,e)}}p(Nu,"g$W");hv(Nu,"P");var A3=Object.defineProperty,HC=p((e,t)=>A3(e,"name",{value:t,configurable:!0}),"n$1b");const d3=ar(import.meta.url),UA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,f3=HC(e=>{if(typeof UA<"u"&&UA.versions&&UA.versions.node){const[t,r]=UA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return UA.getBuiltinModule(e)}return d3(e)},"h"),{stat:p3,lstat:g3}=f3("node:fs/promises"),nf=HC(async(e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=t.cwd?Bn(t.cwd):process.cwd();let n=vr(r);const{root:i}=pD(n),s=Bn(t.stopAt??i),o=vr(n,s),c=t.type??"file",u=HC(async function(f){return typeof e=="function"?[await e(f)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"d");t.allowSymlinks??=!0;const A=t.allowSymlinks?p3:g3;for(;n&&n!==o&&n!==i;){const f=await u(n);for(let h of f){if(h===gD)return;if(h===void 0)continue;Buffer.isBuffer(h)?h=h.toString():h instanceof URL&&(h=Bn(h));const m=la(h)?h:vr(n,h);try{const E=await A(m);if(c==="file"&&E.isFile()||c==="directory"&&E.isDirectory())return m}catch{}}n=Ir(n)}},"k");var h3=Object.defineProperty,UC=p((e,t)=>h3(e,"name",{value:t,configurable:!0}),"n$1a");const m3=ar(import.meta.url),WA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,y3=UC(e=>{if(typeof WA<"u"&&WA.versions&&WA.versions.node){const[t,r]=WA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return WA.getBuiltinModule(e)}return m3(e)},"h"),{statSync:E3,lstatSync:C3}=y3("node:fs"),sf=UC((e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=t.cwd?Bn(t.cwd):process.cwd();let n=vr(r);const{root:i}=pD(n),s=Bn(t.stopAt??i),o=vr(n,s),c=t.type??"file",u=UC(function(f){return typeof e=="function"?[e(f)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"m");t.allowSymlinks??=!0;const A=t.allowSymlinks?E3:C3;for(;n&&n!==o&&n!==i;){for(let f of u(n)){if(f===gD)return;if(f===void 0)continue;Buffer.isBuffer(f)?f=f.toString():f instanceof URL&&(f=Bn(f));const h=la(f)?f:vr(n,f);try{const m=A(h);if(c==="file"&&m.isFile()||c==="directory"&&m.isDirectory())return h}catch{}}n=Ir(n)}},"F");var I3=Object.defineProperty,QD=p((e,t)=>I3(e,"name",{value:t,configurable:!0}),"t$_");const v3=ar(import.meta.url),JA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,B3=QD(e=>{if(typeof JA<"u"&&JA.versions&&JA.versions.node){const[t,r]=JA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return JA.getBuiltinModule(e)}return v3(e)},"i"),{access:b3}=B3("node:fs/promises");async function uc(e,t=TC){tf(e),e=Bn(e);try{return await b3(e,t),!0}catch{return!1}}p(uc,"l$Z");QD(uc,"d");var w3=Object.defineProperty,mv=p((e,t)=>w3(e,"name",{value:t,configurable:!0}),"i$1i");const k3=ar(import.meta.url),KA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,DD=mv(e=>{if(typeof KA<"u"&&KA.versions&&KA.versions.node){const[t,r]=KA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return KA.getBuiltinModule(e)}return k3(e)},"f"),{readFile:$3}=DD("node:fs/promises"),{unzip:Q3,brotliDecompress:D3}=DD("node:zlib"),S3={brotli:D3,gzip:Q3,none:mv((e,t)=>{t(null,e)},"none")},yv=mv(async(e,t)=>{if(tf(e),e=Bn(e),!await uc(e))throw new g8(`unable to read the non-accessible file: ${e}`);if(!await uc(e,hD))throw new Error(`Unable to read the non-readable file: ${e}`);const{buffer:r,compression:n,encoding:i,flag:s}=t??{};return await $3(e,s?{flag:s}:{}).then(async o=>await new Promise((c,u)=>{S3[n??"none"](o,(A,f)=>{A?u(A):c(r?f:f.toString(i??"utf8"))})})).catch(o=>{throw o})},"x");var x3=Object.defineProperty,R3=p((e,t)=>x3(e,"name",{value:t,configurable:!0}),"f$15");async function Ev(e,t,r){typeof t=="object"&&(r=t,t=void 0);const n=await yv(e,{buffer:!0,encoding:void 0});let i=new TextDecoder().decode(n);const{beforeParse:s,color:o}=r??{};return typeof s=="function"&&(i=s(i)),Av(i,t,Bn(e),{color:o})}p(Ev,"s$1c");R3(Ev,"u");var N3=Object.defineProperty,F3=p((e,t)=>N3(e,"name",{value:t,configurable:!0}),"t$Z");const O3=F3(e=>{const t={force:!0,recursive:!0};return e?.maxRetries!==void 0&&(t.maxRetries=e.maxRetries),e?.retryDelay!==void 0&&(t.retryDelay=e.retryDelay),t},"t");var j3=Object.defineProperty,SD=p((e,t)=>j3(e,"name",{value:t,configurable:!0}),"s$1b");const L3=ar(import.meta.url),VA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,P3=SD(e=>{if(typeof VA<"u"&&VA.versions&&VA.versions.node){const[t,r]=VA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return VA.getBuiltinModule(e)}return L3(e)},"i"),{unlinkSync:T3,rmSync:M3}=P3("node:fs"),_3=SD((e,t={})=>{tf(e);try{T3(e)}catch{}try{M3(e,O3(t))}catch{}},"_");var G3=Object.defineProperty,xD=p((e,t)=>G3(e,"name",{value:t,configurable:!0}),"m$1a");const H3=ar(import.meta.url),zA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,U3=xD(e=>{if(typeof zA<"u"&&zA.versions&&zA.versions.node){const[t,r]=zA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return zA.getBuiltinModule(e)}return H3(e)},"w"),{mkdir:W3,writeFile:J3,stat:K3,rename:L1,chown:V3,chmod:z3,unlink:q3}=U3("node:fs/promises"),Y3=xD(async(e,t,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},tf(e),d8(t),e=Bn(e);const n=`${e}.tmp`;try{const i=await uc(e,TC);if(!i&&r.recursive){const o=Ir(e);await uc(o,TC)||await W3(o,{recursive:!0})}let s;if(await J3(n,typeof t=="string"?Buffer.from(t,r.encoding??"utf8"):f8(t),{flag:r.flag}),i&&!r.overwrite&&(s=await K3(e),r.chown??={gid:s.gid,uid:s.uid},await L1(e,`${e}.bak`)),r.chown)try{await V3(n,r.chown.uid,r.chown.gid)}catch{}await z3(n,s&&!r.mode?s.mode:r.mode??438),await L1(n,e)}catch(i){throw new Error(`Failed to write file at: ${e} - ${i.message}`,{cause:i})}finally{await uc(n)&&await q3(`${e}.tmp`)}},"E");var X3=Object.defineProperty,RD=p((e,t)=>X3(e,"name",{value:t,configurable:!0}),"s$19");const Z3=ar(import.meta.url),qA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,eT=RD(e=>{if(typeof qA<"u"&&qA.versions&&qA.versions.node){const[t,r]=qA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return qA.getBuiltinModule(e)}return Z3(e)},"g"),{readFile:tT}=eT("node:fs/promises"),rT=RD(async(e,t,r={})=>{const{detectIndent:n,indent:i,replacer:s,stringify:o=JSON.stringify,...c}={indent:" ",...r};let u=i,A=`
|
|
1
|
+
var r8=Object.defineProperty;var p=(e,t)=>r8(e,"name",{value:t,configurable:!0});import{createRequire as n8}from"node:module";import{d as s8,m as Ug,$ as o8,a as a8,I as c8,p as l8,i as u8}from"../packem_shared/index-K8aQuMvx.js";import{$ as Av,g as d8,i as f8,z as p8,E as pr,s as nt,d as ef,b as bn,k as Wg,j as Fc,p as dD,e as D1}from"./config.js";import{n as tf,C as vr,U as Bn,M as j,L as PC,Q as fD,O as pD,b as gD,a as la,K as Ir,_ as TC,c as g8,s as hD,B as Le,z as Oc,l as K,y as h8}from"../packem_shared/readFileSync-DseCu8sg-DEq4Fn3a.js";import{x as ED}from"tinyexec";import{a as CD,g as Dh}from"../packem_shared/_commonjsHelpers-CLblCigl.js";import{r as k8,c as $8,s as Ec,A as R1}from"../packem_shared/pm-runner-DmKT2FqF.js";import{getMainWorktreeRoot as S8,Cache as Jg,parseCacheSize as x8,readLastRunSummary as bD,getLastRunSummaryPath as MC,digestFile as wD,looksLikeInputUri as R8,parseInputUri as N8}from"@visulima/task-runner";import{g as fr,H as M8,R as _8,o as G8,r as H8,h as U8,a as W8,i as J8,d as K8,t as $D,w as V8,c as z8,E as lc,T as EE,j as ls,e as Ad,q as zo,P as q8,I as Y8}from"../packem_shared/Table-3pFgIUZ2-DABgc6rj.js";import{resolveEditorconfigDefaults as Z8}from"#native";const i8=n8(import.meta.url),Ul=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,un=p(e=>{if(typeof Ul<"u"&&Ul.versions&&Ul.versions.node){const[t,r]=Ul.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Ul.getBuiltinModule(e)}return i8(e)},"__cjs_getBuiltinModule"),A8=un("node:assert"),$h=un("node:module"),{createRequire:ar}=$h,Wn=Ul,{env:yE}=Wn,dv=un("node:fs/promises"),{readdir:rf,stat:Ru,readFile:mD,realpath:S1,rm:fv,mkdtemp:m8,mkdir:y8}=dv,eo=un("node:path"),{resolve:mu,dirname:E8,delimiter:x1}=eo,Zl=un("node:fs"),{existsSync:Qh,rmSync:mi,writeFileSync:Tt,renameSync:C8,unlinkSync:ma,readdirSync:jr,statSync:Cs,readFileSync:yD,watch:I8,copyFileSync:v8,mkdirSync:B8,cpSync:b8}=Zl,ID=un("node:url"),{fileURLToPath:w8}=ID,Q8=un("util"),{spawn:N1,execFileSync:vD,execFile:D8,spawnSync:ou,execSync:BD}=un("node:child_process"),{createHash:F8,randomUUID:O8}=un("node:crypto"),{homedir:kD,platform:pv,tmpdir:j8}=un("node:os"),{createServer:L8,STATUS_CODES:P8}=un("node:http"),{Http2ServerRequest:wd,constants:T8}=un("node:http2"),{Readable:_C,PassThrough:F1}=un("node:stream"),{createInterface:gv}=un("node:readline"),X8=un("node:tty");var e3=Object.defineProperty,t3=p((e,t)=>e3(e,"name",{value:t,configurable:!0}),"o$1j");let O1=class extends Error{static{p(this,"s")}static{t3(this,"e")}root;constructor(t,r){super(`${t instanceof Error?t.message:String(t)} for path "${r}"`),this.cause=t,this.root=r}get name(){return"WalkError"}set name(t){throw new Error("Cannot overwrite name of WalkError")}};var r3=Object.defineProperty,Sh=p((e,t)=>r3(e,"name",{value:t,configurable:!0}),"a$1l");const j1=Sh(e=>{const t=e.replace(/[$()+\\^]/g,String.raw`\$&`).replace(/\.\*/g,".([^/]*)").replace(/\*\*/g,"(.*)").replace(/(?<!\.)\*(?!\*)/g,"([^/]*)").replace(/\?/g,"[^/]").replace(/\.(?!\*)/g,String.raw`\.`).replace(/\{/g,"(").replace(/\}/g,")").replace(/,/g,"|").replace(/\[!(.*?)\]/g,"[^$1]");try{return new RegExp(`^${t}$`)}catch(r){throw new Error(`Invalid glob pattern: ${e}`,{cause:r})}},"i");let n3=class{static{p(this,"o")}static{Sh(this,"c")}name;path;#e;constructor(t,r,n){this.#e=t,this.name=r,this.path=n}isDirectory(){return this.#e.isDirectory()}isFile(){return this.#e.isFile()}isSymbolicLink(){return this.#e.isSymbolicLink()}};const GC=Sh((e,t,r)=>new n3(e,t,r),"l"),Kp=Sh((e,t,r,n)=>{if(Array.isArray(t)&&t.length>0&&!t.some(s=>e.endsWith(s)))return!1;const i=e.includes("\\")?e.replaceAll("\\","/"):e;return r&&!r.some(s=>s.test(i))?!1:!n?.some(s=>s.test(i))},"o");var i3=Object.defineProperty,hv=p((e,t)=>i3(e,"name",{value:t,configurable:!0}),"m$1e");const s3=ar(import.meta.url),HA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,o3=hv(e=>{if(typeof HA<"u"&&HA.versions&&HA.versions.node){const[t,r]=HA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return HA.getBuiltinModule(e)}return s3(e)},"k"),{readdirSync:a3,realpathSync:c3,statSync:l3}=o3("node:fs"),u3=hv(e=>{const t=PC(e),r=l3(t);return GC(r,fD(t),t)},"q");function*Nu(e,{extensions:t,followSymlinks:r=!1,includeDirs:n=!0,includeFiles:i=!0,includeSymlinks:s=!0,match:o,maxDepth:c=Number.POSITIVE_INFINITY,skip:u}={}){if(tf(e),c<0)return;const A=o?o.map(h=>typeof h=="string"?j1(h):h):void 0,f=u?u.map(h=>typeof h=="string"?j1(h):h):void 0;if(e=vr(Bn(e)),n&&Kp(e,t,A,f)&&(yield u3(e)),!(c<1||!Kp(e,void 0,void 0,f)))try{const h=a3(e,{withFileTypes:!0});for(const m of h){let E=j(e,m.name);if(m.isSymbolicLink())if(r)E=c3(E);else if(s&&Kp(E,t,A,f)){yield GC(m,m.name,PC(E));continue}else continue;m.isDirectory()?yield*Nu(E,{extensions:t,followSymlinks:r,includeDirs:n,includeFiles:i,includeSymlinks:s,match:A,maxDepth:c-1,skip:f}):m.isFile()&&i&&Kp(E,t,A,f)&&(yield GC(m,m.name,PC(E)))}}catch(h){throw h instanceof O1?h:new O1(h,e)}}p(Nu,"g$W");hv(Nu,"P");var A3=Object.defineProperty,HC=p((e,t)=>A3(e,"name",{value:t,configurable:!0}),"n$1b");const d3=ar(import.meta.url),UA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,f3=HC(e=>{if(typeof UA<"u"&&UA.versions&&UA.versions.node){const[t,r]=UA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return UA.getBuiltinModule(e)}return d3(e)},"h"),{stat:p3,lstat:g3}=f3("node:fs/promises"),nf=HC(async(e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=t.cwd?Bn(t.cwd):process.cwd();let n=vr(r);const{root:i}=pD(n),s=Bn(t.stopAt??i),o=vr(n,s),c=t.type??"file",u=HC(async function(f){return typeof e=="function"?[await e(f)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"d");t.allowSymlinks??=!0;const A=t.allowSymlinks?p3:g3;for(;n&&n!==o&&n!==i;){const f=await u(n);for(let h of f){if(h===gD)return;if(h===void 0)continue;Buffer.isBuffer(h)?h=h.toString():h instanceof URL&&(h=Bn(h));const m=la(h)?h:vr(n,h);try{const E=await A(m);if(c==="file"&&E.isFile()||c==="directory"&&E.isDirectory())return m}catch{}}n=Ir(n)}},"k");var h3=Object.defineProperty,UC=p((e,t)=>h3(e,"name",{value:t,configurable:!0}),"n$1a");const m3=ar(import.meta.url),WA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,y3=UC(e=>{if(typeof WA<"u"&&WA.versions&&WA.versions.node){const[t,r]=WA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return WA.getBuiltinModule(e)}return m3(e)},"h"),{statSync:E3,lstatSync:C3}=y3("node:fs"),sf=UC((e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=t.cwd?Bn(t.cwd):process.cwd();let n=vr(r);const{root:i}=pD(n),s=Bn(t.stopAt??i),o=vr(n,s),c=t.type??"file",u=UC(function(f){return typeof e=="function"?[e(f)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"m");t.allowSymlinks??=!0;const A=t.allowSymlinks?E3:C3;for(;n&&n!==o&&n!==i;){for(let f of u(n)){if(f===gD)return;if(f===void 0)continue;Buffer.isBuffer(f)?f=f.toString():f instanceof URL&&(f=Bn(f));const h=la(f)?f:vr(n,f);try{const m=A(h);if(c==="file"&&m.isFile()||c==="directory"&&m.isDirectory())return h}catch{}}n=Ir(n)}},"F");var I3=Object.defineProperty,QD=p((e,t)=>I3(e,"name",{value:t,configurable:!0}),"t$_");const v3=ar(import.meta.url),JA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,B3=QD(e=>{if(typeof JA<"u"&&JA.versions&&JA.versions.node){const[t,r]=JA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return JA.getBuiltinModule(e)}return v3(e)},"i"),{access:b3}=B3("node:fs/promises");async function uc(e,t=TC){tf(e),e=Bn(e);try{return await b3(e,t),!0}catch{return!1}}p(uc,"l$Z");QD(uc,"d");var w3=Object.defineProperty,mv=p((e,t)=>w3(e,"name",{value:t,configurable:!0}),"i$1i");const k3=ar(import.meta.url),KA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,DD=mv(e=>{if(typeof KA<"u"&&KA.versions&&KA.versions.node){const[t,r]=KA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return KA.getBuiltinModule(e)}return k3(e)},"f"),{readFile:$3}=DD("node:fs/promises"),{unzip:Q3,brotliDecompress:D3}=DD("node:zlib"),S3={brotli:D3,gzip:Q3,none:mv((e,t)=>{t(null,e)},"none")},yv=mv(async(e,t)=>{if(tf(e),e=Bn(e),!await uc(e))throw new g8(`unable to read the non-accessible file: ${e}`);if(!await uc(e,hD))throw new Error(`Unable to read the non-readable file: ${e}`);const{buffer:r,compression:n,encoding:i,flag:s}=t??{};return await $3(e,s?{flag:s}:{}).then(async o=>await new Promise((c,u)=>{S3[n??"none"](o,(A,f)=>{A?u(A):c(r?f:f.toString(i??"utf8"))})})).catch(o=>{throw o})},"x");var x3=Object.defineProperty,R3=p((e,t)=>x3(e,"name",{value:t,configurable:!0}),"f$15");async function Ev(e,t,r){typeof t=="object"&&(r=t,t=void 0);const n=await yv(e,{buffer:!0,encoding:void 0});let i=new TextDecoder().decode(n);const{beforeParse:s,color:o}=r??{};return typeof s=="function"&&(i=s(i)),Av(i,t,Bn(e),{color:o})}p(Ev,"s$1c");R3(Ev,"u");var N3=Object.defineProperty,F3=p((e,t)=>N3(e,"name",{value:t,configurable:!0}),"t$Z");const O3=F3(e=>{const t={force:!0,recursive:!0};return e?.maxRetries!==void 0&&(t.maxRetries=e.maxRetries),e?.retryDelay!==void 0&&(t.retryDelay=e.retryDelay),t},"t");var j3=Object.defineProperty,SD=p((e,t)=>j3(e,"name",{value:t,configurable:!0}),"s$1b");const L3=ar(import.meta.url),VA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,P3=SD(e=>{if(typeof VA<"u"&&VA.versions&&VA.versions.node){const[t,r]=VA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return VA.getBuiltinModule(e)}return L3(e)},"i"),{unlinkSync:T3,rmSync:M3}=P3("node:fs"),_3=SD((e,t={})=>{tf(e);try{T3(e)}catch{}try{M3(e,O3(t))}catch{}},"_");var G3=Object.defineProperty,xD=p((e,t)=>G3(e,"name",{value:t,configurable:!0}),"m$1a");const H3=ar(import.meta.url),zA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,U3=xD(e=>{if(typeof zA<"u"&&zA.versions&&zA.versions.node){const[t,r]=zA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return zA.getBuiltinModule(e)}return H3(e)},"w"),{mkdir:W3,writeFile:J3,stat:K3,rename:L1,chown:V3,chmod:z3,unlink:q3}=U3("node:fs/promises"),Y3=xD(async(e,t,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},tf(e),d8(t),e=Bn(e);const n=`${e}.tmp`;try{const i=await uc(e,TC);if(!i&&r.recursive){const o=Ir(e);await uc(o,TC)||await W3(o,{recursive:!0})}let s;if(await J3(n,typeof t=="string"?Buffer.from(t,r.encoding??"utf8"):f8(t),{flag:r.flag}),i&&!r.overwrite&&(s=await K3(e),r.chown??={gid:s.gid,uid:s.uid},await L1(e,`${e}.bak`)),r.chown)try{await V3(n,r.chown.uid,r.chown.gid)}catch{}await z3(n,s&&!r.mode?s.mode:r.mode??438),await L1(n,e)}catch(i){throw new Error(`Failed to write file at: ${e} - ${i.message}`,{cause:i})}finally{await uc(n)&&await q3(`${e}.tmp`)}},"E");var X3=Object.defineProperty,RD=p((e,t)=>X3(e,"name",{value:t,configurable:!0}),"s$19");const Z3=ar(import.meta.url),qA=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,eT=RD(e=>{if(typeof qA<"u"&&qA.versions&&qA.versions.node){const[t,r]=qA.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return qA.getBuiltinModule(e)}return Z3(e)},"g"),{readFile:tT}=eT("node:fs/promises"),rT=RD(async(e,t,r={})=>{const{detectIndent:n,indent:i,replacer:s,stringify:o=JSON.stringify,...c}={indent:" ",...r};let u=i,A=`
|
|
2
2
|
`;if(await uc(e,hD))try{const h=await tT(e,"utf8");if(n){const{indent:m}=p8(h);u=m}A=h.endsWith(`
|
|
3
3
|
`)?`
|
|
4
4
|
`:""}catch(h){if(h.code!=="ENOENT")throw h}const f=o(t,s,u);await Y3(e,`${f}${A}`,c)},"R");var nT=Object.defineProperty,iT=p((e,t)=>nT(e,"name",{value:t,configurable:!0}),"t$X");const it=iT((e,t)=>async()=>({default:(await e())[t]}),"e");var sT=Object.defineProperty,xh=p((e,t)=>sT(e,"name",{value:t,configurable:!0}),"r$1k");function ND(e,t){return`#compdef ${e}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var a=Object.defineProperty;var s=(n,e)=>a(n,"name",{value:e,configurable:!0});import{createRequire as f}from"node:module";import{m as v}from"../packem_shared/index-
|
|
1
|
+
var a=Object.defineProperty;var s=(n,e)=>a(n,"name",{value:e,configurable:!0});import{createRequire as f}from"node:module";import{m as v}from"../packem_shared/index-K8aQuMvx.js";const d=f(import.meta.url),t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,l=s(n=>{if(typeof t<"u"&&t.versions&&t.versions.node){const[e,r]=t.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return t.getBuiltinModule(n)}return d(n)},"__cjs_getBuiltinModule"),{execSync:p,spawnSync:m}=l("node:child_process");var g=Object.defineProperty,y=s((n,e)=>g(n,"name",{value:e,configurable:!0}),"r");const w=y(async({argument:n,logger:e,options:r})=>{const c=n?.[0];e.info("info: checking for updates...");const o=v.version;let i;try{const u=p("npm view @visulima/vis version",{encoding:"utf8"}).trim();i=c??u}catch{throw new Error("Failed to query npm registry. Check your network connection.")}if(o===i&&!r.force){e.info(`
|
|
2
2
|
✓ Already up to date (${o})`);return}if(r.check){o===i?e.info(`✓ Already up to date (${o})`):e.info(`info: found @visulima/vis@${i} (current: ${o})`);return}if(e.info(`info: found @visulima/vis@${i} (current: ${o})`),e.info("info: installing..."),m("npm",["install","-g",`@visulima/vis@${i}`],{encoding:"utf8",stdio:"inherit"}).status!==0)throw new Error("Failed to update. Try running with sudo or fix npm permissions.");e.info(`
|
|
3
3
|
✓ Updated @visulima/vis from ${o} → ${i}`)},"execute");export{w as default};
|
|
@@ -186,7 +186,7 @@ ${this.#s}`:this.#s}}const Jn=O(t=>{const e=t.overrides.visOptions;if(e&&typeof
|
|
|
186
186
|
`;Y.append(me),f?.(r.id,me)}J.kind==="close"&&(I&&I.delete(r.id),y&&y.onRegistryTaskClosed(r.id,J.exitCode??0,!!J.killed).catch(()=>{}))},"onEvent"),N=O(async()=>{const J=k?.retryCount??0,me=k?.retryDelay,Ve=l?l.claim(J):J,Ke=typeof k?.timeout=="number"&&k.timeout>0?k.timeout:0,st=typeof k?.killGracePeriodMs=="number"&&k.killGracePeriodMs>=0?k.killGracePeriodMs:5e3;let oe=!1,Ae=0;const qe=Ml({killGracePeriodMs:st,onTimeout:O(()=>{oe=!0},"onTimeout"),sendSignal:O(ke=>{ue?.(ke)},"sendSignal"),timeoutMs:Ke});let xe;try{xe=await Mt([{command:q,cwd:E,env:ce,name:r.id,...ge?{ptySize:{cols:process.stdout.columns??80,rows:process.stdout.rows??24},stdin:"pty"}:{}}],{killOthers:["failure"],onEvent:de,...Ve>0?{restart:{delay:me??"exponential",onRetry:O(async(ke,We,be)=>{Ae=ke,n&&await n.callHook("task:retry",r,ke,be)},"onRetry"),tries:Ve}}:{}})}finally{qe.cancel()}const Ue=xe.closeEvents[0],Ee=re?re.toString():Y.toString();return oe?{code:124,retryAttempts:Ae,terminalOutput:`${Ee}
|
|
187
187
|
[timeout] Task "${r.id}" exceeded ${Ke}ms budget.
|
|
188
188
|
`}:{code:Ue?.exitCode??1,retryAttempts:Ae,terminalOutput:Ee}},"runOnce");return h?Td(h,k?.mutex,N):N()}},"createConcurrentExecutor"),Rd=O(t=>{if(!t||t.trim().length===0)return;const e=Number.parseFloat(t);return!Number.isFinite(e)||e<=0?{invalid:t}:{value:Math.floor(e)}},"parseEnvConcurrency"),Ed=O(async(t,e)=>{const r=await Ai(t,{dataDirectory:Ot(t)});if(!r){e.warn(`No previous run recorded yet. Run a task at least once to populate ${Li(t,{dataDirectory:Ot(t)})}.`);return}const s=(r.duration/1e3).toFixed(2);if(e.info(""),e.info(`Last run — ${r.startTime} (${s}s)`),e.info(""),e.info(` Total: ${String(r.stats.total)}`),e.info(` Succeeded: ${String(r.stats.succeeded)}`),e.info(` Cached: ${String(r.stats.cached)}`),e.info(` Failed: ${String(r.stats.failed)}`),e.info(` Skipped: ${String(r.stats.skipped)}`),e.info(""),r.stats.failed>0){const o=r.tasks.filter(n=>n.exitCode!==void 0&&n.exitCode!==0);e.info("Failed tasks:");for(const n of o){const c=n.duration??0;e.info(` × ${n.taskId} (exit ${String(n.exitCode??-1)}, ${c}ms)`)}e.info("")}const i=[...r.tasks].filter(o=>typeof o.duration=="number").sort((o,n)=>(n.duration??0)-(o.duration??0)).slice(0,5);if(i.length>0){e.info("Slowest tasks:");for(const o of i)e.info(` ${o.taskId.padEnd(40)} ${String(o.duration??0).padStart(6)}ms [${o.cacheStatus}]`);e.info("")}},"renderLastRunSummary"),Od=O(t=>{if(!(t===void 0||t==="")){if(t!=="read"&&t!=="write"&&t!=="readwrite")throw new Error(`--cache-mode must be one of: read, write, readwrite (received "${t}")`);return t}},"parseCacheMode"),Md=O(t=>{if(!(t===void 0||t==="")){if(t!=="http"&&t!=="reapi")throw new Error(`--cache-backend must be one of: http, reapi (received "${t}")`);return t}},"parseCacheBackend"),Xd=O(async({argument:t,logger:e,options:r,runtime:s,visConfig:i,workspaceRoot:o})=>{if(!o)throw new Error("Could not determine workspace root. Run this command inside a monorepo.");const n=o;if($i(n),r.lastDetails===!0){await Ed(n,e);return}const c=process.cwd(),u=await xi(n),{config:h,packageJsons:f,projectOptions:p,workspace:l}=ki(n,i,u),g=bi(n,l,f);let y=t[0];if(!y){const w=vs(l);if(process.stdout.isTTY&&process.stdin.isTTY){const b=await Fa(w);if(!b){e.info("No target selected.");return}y=b,await Cl(`vis run ${b}`)}else{e.info("Available targets:"),e.info(""),e.info(Pa(w)),e.info(""),e.info("Usage: vis run <target>");return}}if(h.constraints&&!r.skipConstraints){const w=Di(g,h.constraints);if(w.length>0){for(const b of w)e.error(`[${b.rule}] ${b.message}`);throw new Error(`${w.length} project constraint violation(s) found. Use --skip-constraints to bypass.`)}}if(r.affected){const w=[y];r.parallel!==void 0&&w.push(`--parallel=${String(r.parallel)}`),r.cache||w.push("--no-cache"),r.query&&w.push(`--query=${String(r.query)}`),r.reverse&&w.push("--reverse"),typeof r.runnerTags=="string"&&r.runnerTags!==""&&w.push(`--runner-tags=${r.runnerTags}`),await s.runCommand("affected",{argv:w});return}const I=await po(y,l,process.cwd(),n),D=Ra(p),x=Ea(I.target,D);x!==I.target&&e.debug?.(`Resolved alias "${I.target}" → "${x}"`);let k=I.projects;const E=t.slice(1).map(String);if(r.projects){const w=new Set(r.projects.split(",").map(b=>b.trim()));if(k=k.filter(b=>w.has(b)),k.length===0)throw new Error(`No matching projects found for: ${String(r.projects)}`)}if(r.query&&(k=go(k,l,r.query),k.length===0)){e.info(`Query "${String(r.query)}" matched no projects.`);return}const S=ji(),C=process.env[Nr],v=C?C.split(`
|
|
189
|
-
`).filter(Boolean):void 0,j=(typeof r.runnerTags=="string"?r.runnerTags:process.env.VIS_RUNNER_TAGS)??void 0,F=j?new Set(j.split(",").map(w=>w.trim()).filter(Boolean)):void 0,P=[],q=new Map;for(const w of k){const b=p.get(w)?.[x];if(!b)continue;const R=b.options;if(!R?.internal){if(!Si(R,!!pt)){e.debug?.(`Skipping ${w}:${x} — runInCI filter`);continue}if(!Ti(R,F)){e.debug?.(`Skipping ${w}:${x} — runner-tags filter`);continue}P.push(w),q.set(w,b)}}if(P.length===0){const w=vs(l),b=Object.entries(l.projects).filter(([,R])=>R.targets?.[x]!==void 0).map(([R])=>R);if(e.error(`No projects have the "${x}" target.`),b.length>0){e.info(""),e.info(`Target "${x}" exists in these projects but was filtered out:`);for(const R of b.slice(0,5))e.info(` - ${R}`);b.length>5&&e.info(` …and ${b.length-5} more`)}else{const R=Zs(x,w,3);R.length>0&&(e.info(""),e.info(R.length===1?`Did you mean "${R[0]}"?`:`Did you mean one of: ${R.map(_=>`"${_}"`).join(", ")}?`)),e.info(""),e.info("Run `vis run` without arguments to see all available targets.")}return}const ae=r.pty===!0,Q=P.map(w=>({project:w,schema:q.get(w)?.arguments})).filter(w=>Array.isArray(w.schema)&&w.schema.length>0),V=new Map;for(const{project:w,schema:b}of Q){const R=JSON.stringify(b),_=V.get(R)??[];_.push(w),V.set(R,_)}if(V.size>1){const w=[...V.values()].map(b=>b.join(", ")).join(" | ");throw new Error(`Target "${x}" declares conflicting \`arguments\` schemas across projects (${w}). Run a single project (e.g. \`vis run ${Q[0]?.project}:${x}\` or --projects=<name>) so the argument contract is unambiguous.`)}const ce=Q[0]?.schema,Re=q.get(Q[0]?.project??P[0])?.description,ie=vd(x,Re,ce,E);if(ie.kind==="help"){e.info(ie.text);return}if(ie.kind==="invalid"){e.info(`Invalid arguments for "${x}":`);for(const w of ie.errors)e.info(` ✖ ${w}`);throw e.info(""),e.info(ie.help),new Error(`Invalid arguments for target "${x}"`)}const ge=ie.env;let Y=P.map(w=>{const b=l.projects[w],R=q.get(w),_={project:w,target:x},z=`${w}:${x}`,Z=ae?{...R.options,pty:R.options?.pty??!0}:R.options,G=R.command?os(R.command,{affectedFiles:v,projectRoot:b?.root}):R.command,B=b?.root&&b.root.length>0?b.root:".",le=(R.outputs??[]).map(L=>typeof L!="string"?L:L.replaceAll("{projectRoot}",B).replaceAll("{projectName}",w));return{cache:R.cache,id:z,outputs:le,overrides:{command:G,...E.length>0?{[Xn]:E}:{},...Object.keys(ge).length>0?{[Gr]:ge}:{},...Z?{visOptions:Z}:{}},parallelism:R.parallelism,projectRoot:b?.root,target:_}});const re=[],ue=[];for(const w of Y)Jn(w)?.persistent?(w.cache=!1,re.push(w)):ue.push(w);Y=ue;const de=Bi(r.partition);if(de&&(Y=Ni.partitionTasks(Y,de),e.info(`Partition ${de.index}/${de.total}: running ${Y.length} task(s)`),Y.length===0)){e.info("No tasks assigned to this partition.");return}let N=_i([...Y,...re],{onCycleBroken:O(w=>{e.warn(`Ignoring dev-only dependency cycle (build order is ambiguous): ${w.join(" → ")}`)},"onCycleBroken"),projectGraph:g,targetDefaults:h.tasks,workspace:l});for(const[w,b]of Object.entries(N.tasks)){const R=b.target.project,_=b.target.target,z=p.get(R)?.[_];if(!z)continue;const Z=l.projects[R];let G=!1;const B={...b.overrides};B.visOptions===void 0&&z.options&&(B.visOptions=z.options,G=!0),B.command===void 0&&z.command&&(B.command=os(z.command,{affectedFiles:v,projectRoot:Z?.root}),G=!0),G&&(b.overrides=B,N.tasks[w]=b)}if(typeof r.skipCache=="string"&&r.skipCache.trim()!=="")if(r.cache){const w=xa(r.skipCache,l,Object.keys(N.tasks));for(const b of w.skipTaskIds){const R=N.tasks[b];R!==void 0&&(R.cache=!1)}w.unmatchedPatterns.length>0&&e.warn(`--skip-cache: no tasks matched ${w.unmatchedPatterns.map(b=>`"${b}"`).join(", ")}`),w.skipTaskIds.size>0&&e.debug?.(`--skip-cache: bypassing cache for ${String(w.skipTaskIds.size)} task(s)`)}else e.debug?.("--skip-cache ignored: --no-cache already disables caching for the whole run");await to(n,h.toolchain,{error:O(w=>{e.error(w)},"error"),info:O(w=>{e.info(w)},"info"),warn:O(w=>{e.warn(w)},"warn")},!!r.skipToolchain);const J=r.preflight!==!1&&h.preflight?.lockfile!==!1,me=Vi(n,pt,{warn:O(w=>{e.warn(w)},"warn")},{skip:!J});if(!me.shouldContinue)throw new Error(`${me.formattedMessage??"preflight: lockfile drift detected"} (pass --no-preflight to bypass)`);J&&!pt&&process.stdin.isTTY&&process.stdout.isTTY&&await ga(n,{interactive:!0,logger:{info:O(w=>{e.info(w)},"info"),warn:O(w=>{e.warn(w)},"warn")},projectManifests:[...f.values()]});const Ve=process.env.VIS_VERSION??"0.0.0",Ke=r.dryRun?void 0:async w=>{try{return await fo(w.config,{timeoutMs:yd}),!0}catch{return!1}},st=await oo(n),oe=await Ul({initialTasks:[...Y,...re],probe:Ke,registeredEntries:st,taskGraph:N,visVersion:Ve}),Ae=[];let qe,xe=0;const Ue=[],Ee=new Map;let ke=[];const We=new Set;let be=null,we=null;if(oe.diagnostics.length>0){const w=!!(process.stdout.isTTY&&process.stdin.isTTY),b=r.dryRun?"off":od({cli:r.services,config:h.run?.services,isCi:!!pt,isPersistentTarget:re.length>0,isTty:w,target:x});if(b==="off"){for(const B of oe.diagnostics)e.error(B.message);throw new Error(`${oe.diagnostics.length} service dependency error(s) — start the missing services or invoke them directly.`)}const R=oe.diagnostics.map(B=>B.targetId),_=b,z=_==="registry"?Vn(n,R,N):void 0,Z=process.argv[1]??"vis",G=nd({missingServiceIds:R,mode:_,taskGraph:N,visBin:Z,workspaceRoot:n});if(G.skipped.length>0){for(const{id:B,reason:le}of G.skipped)e.error(`Cannot auto-start ${B}: ${le}`);throw new Error(`${G.skipped.length} service(s) cannot be auto-started — invoke them directly or add a service config.`)}Ae.push(...G.ephemeralPidFiles),qe=G.runDir,ke=G.chain;for(const B of G.chain)We.add(B);if(_==="registry"&&(xe=G.chain.length,Ue.push(...G.chain)),G.chain.length>0){const B=new ws(G.chain),le=new Map;if(_==="ephemeral"&&G.runDir)for(const L of G.chain){const H=Kn(G.runDir,`${G.runDir}/bootstrap.mjs`,L);le.set(L,{ephemeral:{configFile:H.configFile,cwd:n,logFile:H.logFile,pidFile:H.pidFile,scriptPath:H.scriptPath},mode:"ephemeral"})}else if(_==="registry"&&z)for(const L of z.services)le.set(L.id,{mode:"registry",registry:{command:L.command,config:L.config,cwd:L.cwd,env:L.env}});if(le.size>0){const L=new Kl({indexToId:new Map,services:le,sink:{crashed:O((H,U)=>{B.markCrashed(H,U)},"crashed"),failed:O((H,U,se)=>{B.markFailed(H,U,se)},"failed"),log:O((H,U)=>{B.appendLog(H,U)},"log"),ready:O((H,U)=>{B.markReady(H,U)},"ready"),started:O((H,U)=>{B.markStarted(H,U),_==="registry"&&U!==null&&Ee.set(H,U)},"started"),starting:O(H=>{B.markStarting(H)},"starting")},workspaceRoot:n});be=B,we=L}}for(const[B,le]of G.serviceEnvByTaskId){const L=oe.serviceEnvByTaskId.get(B)??{};oe.serviceEnvByTaskId.set(B,{...L,...le})}}const M=new Set(re.map(w=>w.id));if(Y=oe.initialTasks.filter(w=>!M.has(w.id)),N=oe.taskGraph,ke.length>0&&(Y=[...ke.map(w=>N.tasks[w]).filter(w=>w!==void 0),...Y]),re.length>0){const w=new Set(re.map(Z=>Z.id)),b={};for(const[Z,G]of Object.entries(N.tasks))w.has(Z)||(b[Z]=G);const R={};for(const[Z,G]of Object.entries(N.dependencies))w.has(Z)||(R[Z]=G.filter(B=>!w.has(B)));const _=new Set;for(const Z of Object.values(R))for(const G of Z)_.add(G);const z=Object.keys(b).filter(Z=>!_.has(Z));N={dependencies:R,roots:z,tasks:b}}const{serviceEnvByTaskId:T}=oe;if(oe.satisfiedServices.length>0){const w=oe.satisfiedServices.map(b=>b.id).join(", ");if(e.debug?.(`Auto-attached to running services: ${w}`),be)for(const b of oe.satisfiedServices)be.registerService(b.id);else be=new ws(oe.satisfiedServices.map(b=>b.id));for(const b of oe.satisfiedServices){const R=b.config.readiness?.tcp?.port??b.config.port??0,_=b.config.readiness?.tcp?.host??"127.0.0.1";be.markReady(b.id,{host:_,port:R})}}if(r.reverse&&(N=Gi(N),e.debug?.(`Reversed task graph: ${String(N.roots.length)} new root(s) (originally leaves)`)),r.dryRun){const w=Object.keys(N.tasks).length,b=N.roots.length;e.info(`Execution plan (${String(w)} task(s), ${String(b)} root(s)):`),e.info("");const R=new Set,_=O((z,Z)=>{if(R.has(z))return;R.add(z);for(const le of N.dependencies[z]??[])_(le,Z+1);const G=N.tasks[z],B=" ".repeat(Z+1);e.info(`${B}${z}${G?.cache===!1?" (no-cache)":""}`)},"walkPlan");for(const z of N.roots)_(z,0);for(const z of Object.keys(N.tasks))_(z,0);re.length>0&&(e.info(""),e.info(` + ${String(re.length)} persistent task(s) (run after graph completes)`)),e.info("");return}const A=Date.now(),X=ao(),Ye=O((w,b)=>{const R=b instanceof Error?b.message:String(b);e.warn(`Plugin error in ${w}: ${R}`)},"onHookError");await co(X,h.plugins);const dt=typeof r.profile=="string"?r.profile:void 0,qr=O(async w=>{if(!dt)return;const b=as(w,N,A),R=dt.startsWith("/")?dt:`${n}/${dt}`;await qi(b,R),e.info(`Profile written to ${dt}`)},"maybeWriteProfile"),jt=h.taskRunner??{},Qn=Ci(n,r.cacheDir,jt.cacheDirectory,h.sharedWorktreeCache),Zn=Ii(Qn,n,h.branchScopedCache),nt=Rd(process.env.VIS_RUN_CONCURRENCY_LIMIT);nt&&"invalid"in nt&&e.warn(`VIS_RUN_CONCURRENCY_LIMIT=${nt.invalid} is not a positive number; falling back to default concurrency.`);const ei=nt&&"value"in nt?nt.value:void 0,ti=r.parallel??ei??3,Ur=r.strictEnv??h.strictEnv??!1,Je={dryRun:r.dryRun??!1,parallel:ti,skipNxCache:!r.cache,summarize:r.summarize??!1,...jt,cacheDirectory:Zn,dataDirectory:jt.dataDirectory??Ot(n),onFingerprint:O(async(w,b)=>{await X.callHook("task:fingerprint",w,b)},"onFingerprint")},Wr=Ui(jt.remoteCache);if(Wr){const w=Od(r.cacheMode),b=Md(r.cacheBackend);if(Je.remoteCache={...Wr,...w?{mode:w}:{},...b?{backend:b}:{}},Je.remoteCache.attestation){const{expectedIdentity:R,requireOnDownload:_}=Je.remoteCache.attestation;if(!(R!==void 0&&("github"in R&&typeof R.github?.ref=="string"&&typeof R.github.repo=="string"&&typeof R.github.workflow=="string"||"oidcIssuer"in R&&typeof R.oidcIssuer=="string"&&(typeof R.san=="string"||typeof R.sanRegex=="string"))))throw new Error("[vis run] remoteCache.attestation requires a pinned keyless signer via `expectedIdentity`. Use one of:\n • { github: { repo, workflow, ref } } (GitHub Actions — recommended)\n • { oidcIssuer, san } (literal identity; vis regex-escapes + anchors it)\n • { oidcIssuer, sanRegex } (advanced: raw regex, you own anchoring)\nWithout it, verification is integrity-only — use `remoteCache.signing` (HMAC) for that instead.");"sanRegex"in R&&(!R.sanRegex.startsWith("^")||!R.sanRegex.endsWith("$"))&&e.warn("[vis run] remoteCache.attestation.expectedIdentity.sanRegex is not anchored (^…$). sigstore matches it as a regex; an unanchored value is substring-matched and weakens the identity pin. Prefer the literal `san` form unless you need a pattern.");const{installCommandFor:z,isSigstoreInstalled:Z}=await import("./loader.js");Z()||e.warn(`[vis run] remoteCache.attestation is configured but the optional \`sigstore\` package is not installed. Cache uploads will be unsigned and signed entries can't be verified until you install it:
|
|
189
|
+
`).filter(Boolean):void 0,j=(typeof r.runnerTags=="string"?r.runnerTags:process.env.VIS_RUNNER_TAGS)??void 0,F=j?new Set(j.split(",").map(w=>w.trim()).filter(Boolean)):void 0,P=[],q=new Map;for(const w of k){const b=p.get(w)?.[x];if(!b)continue;const R=b.options;if(!R?.internal){if(!Si(R,!!pt)){e.debug?.(`Skipping ${w}:${x} — runInCI filter`);continue}if(!Ti(R,F)){e.debug?.(`Skipping ${w}:${x} — runner-tags filter`);continue}P.push(w),q.set(w,b)}}if(P.length===0){const w=vs(l),b=Object.entries(l.projects).filter(([,R])=>R.targets?.[x]!==void 0).map(([R])=>R);if(e.error(`No projects have the "${x}" target.`),b.length>0){e.info(""),e.info(`Target "${x}" exists in these projects but was filtered out:`);for(const R of b.slice(0,5))e.info(` - ${R}`);b.length>5&&e.info(` …and ${b.length-5} more`)}else{const R=Zs(x,w,3);R.length>0&&(e.info(""),e.info(R.length===1?`Did you mean "${R[0]}"?`:`Did you mean one of: ${R.map(_=>`"${_}"`).join(", ")}?`)),e.info(""),e.info("Run `vis run` without arguments to see all available targets.")}return}const ae=r.pty===!0,Q=P.map(w=>({project:w,schema:q.get(w)?.arguments})).filter(w=>Array.isArray(w.schema)&&w.schema.length>0),V=new Map;for(const{project:w,schema:b}of Q){const R=JSON.stringify(b),_=V.get(R)??[];_.push(w),V.set(R,_)}if(V.size>1){const w=[...V.values()].map(b=>b.join(", ")).join(" | ");throw new Error(`Target "${x}" declares conflicting \`arguments\` schemas across projects (${w}). Run a single project (e.g. \`vis run ${Q[0]?.project}:${x}\` or --projects=<name>) so the argument contract is unambiguous.`)}const ce=Q[0]?.schema,Re=q.get(Q[0]?.project??P[0])?.description,ie=vd(x,Re,ce,E);if(ie.kind==="help"){e.info(ie.text);return}if(ie.kind==="invalid"){e.info(`Invalid arguments for "${x}":`);for(const w of ie.errors)e.info(` ✖ ${w}`);throw e.info(""),e.info(ie.help),new Error(`Invalid arguments for target "${x}"`)}const ge=ie.env;let Y=P.map(w=>{const b=l.projects[w],R=q.get(w),_={project:w,target:x},z=`${w}:${x}`,Z=ae?{...R.options,pty:R.options?.pty??!0}:R.options,G=R.command?os(R.command,{affectedFiles:v,projectRoot:b?.root}):R.command,B=b?.root&&b.root.length>0?b.root:".",le=(R.outputs??[]).map(L=>typeof L!="string"?L:L.replaceAll("{projectRoot}",B).replaceAll("{projectName}",w));return{cache:R.cache,id:z,outputs:le,overrides:{command:G,...E.length>0?{[Xn]:E}:{},...Object.keys(ge).length>0?{[Gr]:ge}:{},...Z?{visOptions:Z}:{}},parallelism:R.parallelism,projectRoot:b?.root,target:_}});const re=[],ue=[];for(const w of Y)Jn(w)?.persistent?(w.cache=!1,re.push(w)):ue.push(w);Y=ue;const de=Bi(r.partition);if(de&&(Y=Ni.partitionTasks(Y,de),e.info(`Partition ${de.index}/${de.total}: running ${Y.length} task(s)`),Y.length===0)){e.info("No tasks assigned to this partition.");return}let N=_i([...Y,...re],{onCycleBroken:O(w=>{e.warn(`Ignoring dev-only dependency cycle (build order is ambiguous): ${w.join(" → ")}`)},"onCycleBroken"),projectGraph:g,targetDefaults:h.tasks,workspace:l});for(const[w,b]of Object.entries(N.tasks)){const R=b.target.project,_=b.target.target,z=p.get(R)?.[_];if(!z)continue;const Z=l.projects[R];let G=!1;const B={...b.overrides};B.visOptions===void 0&&z.options&&(B.visOptions=z.options,G=!0),B.command===void 0&&z.command&&(B.command=os(z.command,{affectedFiles:v,projectRoot:Z?.root}),G=!0),G&&(b.overrides=B,N.tasks[w]=b)}if(typeof r.skipCache=="string"&&r.skipCache.trim()!=="")if(r.cache){const w=xa(r.skipCache,l,Object.keys(N.tasks));for(const b of w.skipTaskIds){const R=N.tasks[b];R!==void 0&&(R.cache=!1)}w.unmatchedPatterns.length>0&&e.warn(`--skip-cache: no tasks matched ${w.unmatchedPatterns.map(b=>`"${b}"`).join(", ")}`),w.skipTaskIds.size>0&&e.debug?.(`--skip-cache: bypassing cache for ${String(w.skipTaskIds.size)} task(s)`)}else e.debug?.("--skip-cache ignored: --no-cache already disables caching for the whole run");await to(n,h.toolchain,{error:O(w=>{e.error(w)},"error"),info:O(w=>{e.info(w)},"info"),warn:O(w=>{e.warn(w)},"warn")},!!r.skipToolchain);const J=r.preflight!==!1&&h.preflight?.lockfile!==!1,me=Vi(n,pt,{warn:O(w=>{e.warn(w)},"warn")},{skip:!J});if(!me.shouldContinue)throw new Error(`${me.formattedMessage??"preflight: lockfile drift detected"} (pass --no-preflight to bypass)`);J&&!pt&&process.stdin.isTTY&&process.stdout.isTTY&&await ga(n,{interactive:!0,logger:{info:O(w=>{e.info(w)},"info"),warn:O(w=>{e.warn(w)},"warn")},projectManifests:[...f.values()]});const Ve=process.env.VIS_VERSION??"0.0.0",Ke=r.dryRun?void 0:async w=>{try{return await fo(w.config,{timeoutMs:yd}),!0}catch{return!1}},st=await oo(n),oe=await Ul({initialTasks:[...Y,...re],probe:Ke,registeredEntries:st,taskGraph:N,visVersion:Ve}),Ae=[];let qe,xe=0;const Ue=[],Ee=new Map;let ke=[];const We=new Set;let be=null,we=null;if(oe.diagnostics.length>0){const w=!!(process.stdout.isTTY&&process.stdin.isTTY),b=r.dryRun?"off":od({cli:r.services,config:h.run?.services,isCi:!!pt,isPersistentTarget:re.length>0,isTty:w,target:x});if(b==="off"){for(const B of oe.diagnostics)e.error(B.message);throw new Error(`${oe.diagnostics.length} service dependency error(s) — start the missing services or invoke them directly.`)}const R=oe.diagnostics.map(B=>B.targetId),_=b,z=_==="registry"?Vn(n,R,N):void 0,Z=process.argv[1]??"vis",G=nd({missingServiceIds:R,mode:_,taskGraph:N,visBin:Z,workspaceRoot:n});if(G.skipped.length>0){for(const{id:B,reason:le}of G.skipped)e.error(`Cannot auto-start ${B}: ${le}`);throw new Error(`${G.skipped.length} service(s) cannot be auto-started — invoke them directly or add a service config.`)}Ae.push(...G.ephemeralPidFiles),qe=G.runDir,ke=G.chain;for(const B of G.chain)We.add(B);if(_==="registry"&&(xe=G.chain.length,Ue.push(...G.chain)),G.chain.length>0){const B=new ws(G.chain),le=new Map;if(_==="ephemeral"&&G.runDir)for(const L of G.chain){const H=Kn(G.runDir,`${G.runDir}/bootstrap.mjs`,L);le.set(L,{ephemeral:{configFile:H.configFile,cwd:n,logFile:H.logFile,pidFile:H.pidFile,scriptPath:H.scriptPath},mode:"ephemeral"})}else if(_==="registry"&&z)for(const L of z.services)le.set(L.id,{mode:"registry",registry:{command:L.command,config:L.config,cwd:L.cwd,env:L.env}});if(le.size>0){const L=new Kl({indexToId:new Map,services:le,sink:{crashed:O((H,U)=>{B.markCrashed(H,U)},"crashed"),failed:O((H,U,se)=>{B.markFailed(H,U,se)},"failed"),log:O((H,U)=>{B.appendLog(H,U)},"log"),ready:O((H,U)=>{B.markReady(H,U)},"ready"),started:O((H,U)=>{B.markStarted(H,U),_==="registry"&&U!==null&&Ee.set(H,U)},"started"),starting:O(H=>{B.markStarting(H)},"starting")},workspaceRoot:n});be=B,we=L}}for(const[B,le]of G.serviceEnvByTaskId){const L=oe.serviceEnvByTaskId.get(B)??{};oe.serviceEnvByTaskId.set(B,{...L,...le})}}const M=new Set(re.map(w=>w.id));if(Y=oe.initialTasks.filter(w=>!M.has(w.id)),N=oe.taskGraph,ke.length>0&&(Y=[...ke.map(w=>N.tasks[w]).filter(w=>w!==void 0),...Y]),re.length>0){const w=new Set(re.map(Z=>Z.id)),b={};for(const[Z,G]of Object.entries(N.tasks))w.has(Z)||(b[Z]=G);const R={};for(const[Z,G]of Object.entries(N.dependencies))w.has(Z)||(R[Z]=G.filter(B=>!w.has(B)));const _=new Set;for(const Z of Object.values(R))for(const G of Z)_.add(G);const z=Object.keys(b).filter(Z=>!_.has(Z));N={dependencies:R,roots:z,tasks:b}}const{serviceEnvByTaskId:T}=oe;if(oe.satisfiedServices.length>0){const w=oe.satisfiedServices.map(b=>b.id).join(", ");if(e.debug?.(`Auto-attached to running services: ${w}`),be)for(const b of oe.satisfiedServices)be.registerService(b.id);else be=new ws(oe.satisfiedServices.map(b=>b.id));for(const b of oe.satisfiedServices){const R=b.config.readiness?.tcp?.port??b.config.port??0,_=b.config.readiness?.tcp?.host??"127.0.0.1";be.markReady(b.id,{host:_,port:R})}}if(r.reverse&&(N=Gi(N),e.debug?.(`Reversed task graph: ${String(N.roots.length)} new root(s) (originally leaves)`)),r.dryRun){const w=Object.keys(N.tasks).length,b=N.roots.length;e.info(`Execution plan (${String(w)} task(s), ${String(b)} root(s)):`),e.info("");const R=new Set,_=O((z,Z)=>{if(R.has(z))return;R.add(z);for(const le of N.dependencies[z]??[])_(le,Z+1);const G=N.tasks[z],B=" ".repeat(Z+1);e.info(`${B}${z}${G?.cache===!1?" (no-cache)":""}`)},"walkPlan");for(const z of N.roots)_(z,0);for(const z of Object.keys(N.tasks))_(z,0);re.length>0&&(e.info(""),e.info(` + ${String(re.length)} persistent task(s) (run after graph completes)`)),e.info("");return}const A=Date.now(),X=ao(),Ye=O((w,b)=>{const R=b instanceof Error?b.message:String(b);e.warn(`Plugin error in ${w}: ${R}`)},"onHookError");await co(X,h.plugins);const dt=typeof r.profile=="string"?r.profile:void 0,qr=O(async w=>{if(!dt)return;const b=as(w,N,A),R=dt.startsWith("/")?dt:`${n}/${dt}`;await qi(b,R),e.info(`Profile written to ${dt}`)},"maybeWriteProfile"),jt=h.taskRunner??{},Qn=Ci(n,r.cacheDir,jt.cacheDirectory,h.sharedWorktreeCache),Zn=Ii(Qn,n,h.branchScopedCache),nt=Rd(process.env.VIS_RUN_CONCURRENCY_LIMIT);nt&&"invalid"in nt&&e.warn(`VIS_RUN_CONCURRENCY_LIMIT=${nt.invalid} is not a positive number; falling back to default concurrency.`);const ei=nt&&"value"in nt?nt.value:void 0,ti=r.parallel??ei??3,Ur=r.strictEnv??h.strictEnv??!1,Je={dryRun:r.dryRun??!1,parallel:ti,skipNxCache:!r.cache,summarize:r.summarize??!1,...jt,cacheDirectory:Zn,namedInputs:h.namedInputs,dataDirectory:jt.dataDirectory??Ot(n),onFingerprint:O(async(w,b)=>{await X.callHook("task:fingerprint",w,b)},"onFingerprint")},Wr=Ui(jt.remoteCache);if(Wr){const w=Od(r.cacheMode),b=Md(r.cacheBackend);if(Je.remoteCache={...Wr,...w?{mode:w}:{},...b?{backend:b}:{}},Je.remoteCache.attestation){const{expectedIdentity:R,requireOnDownload:_}=Je.remoteCache.attestation;if(!(R!==void 0&&("github"in R&&typeof R.github?.ref=="string"&&typeof R.github.repo=="string"&&typeof R.github.workflow=="string"||"oidcIssuer"in R&&typeof R.oidcIssuer=="string"&&(typeof R.san=="string"||typeof R.sanRegex=="string"))))throw new Error("[vis run] remoteCache.attestation requires a pinned keyless signer via `expectedIdentity`. Use one of:\n • { github: { repo, workflow, ref } } (GitHub Actions — recommended)\n • { oidcIssuer, san } (literal identity; vis regex-escapes + anchors it)\n • { oidcIssuer, sanRegex } (advanced: raw regex, you own anchoring)\nWithout it, verification is integrity-only — use `remoteCache.signing` (HMAC) for that instead.");"sanRegex"in R&&(!R.sanRegex.startsWith("^")||!R.sanRegex.endsWith("$"))&&e.warn("[vis run] remoteCache.attestation.expectedIdentity.sanRegex is not anchored (^…$). sigstore matches it as a regex; an unanchored value is substring-matched and weakens the identity pin. Prefer the literal `san` form unless you need a pattern.");const{installCommandFor:z,isSigstoreInstalled:Z}=await import("./loader.js");Z()||e.warn(`[vis run] remoteCache.attestation is configured but the optional \`sigstore\` package is not installed. Cache uploads will be unsigned and signed entries can't be verified until you install it:
|
|
190
190
|
${z(n)}`);const{buildCacheAttestationHooks:G}=await import("./cache-attestation.js");Je.remoteCache.attestation=G({expectedIdentity:R,onReject:O((B,le)=>{e.warn(`[vis run] remote cache entry ${B.slice(0,12)} rejected: attestation ${le}. Treating as a cache miss.`)},"onReject"),onVerifyFailure:O(B=>{e.warn(`[vis run] attestation verification failed: ${B}`)},"onVerifyFailure"),requireOnDownload:_,workspaceRoot:n})}}else(r.cacheMode||r.cacheBackend)&&e.warn("[vis run] --cache-mode and --cache-backend require a `remoteCache` block in vis.config.ts (or TURBO_API env); ignoring.");const ri=process.stdout.isTTY&&!pt,si=h.tui?.autoExit??!1,Hr={args:{parallel:Je.parallel,targets:[x]},autoExit:si,projectNames:P,tasks:[...Y,...re]},zr=typeof r.retryBudget=="number"?r.retryBudget:void 0,Vr=zr===void 0?void 0:Cd(zr),Kr=new lo(X,Ye),Yr=new eo(n),Jr=bl(typeof r.outputStyle=="string"?r.outputStyle.toLowerCase():void 0);if(oe.satisfiedServices.length>0)for(const w of oe.satisfiedServices){const b=oe.serviceDependentsByServiceId.get(w.id)??[];try{await X.callHook("service:attach",w,b)}catch(R){Ye("service:attach",R)}}await X.callHook("run:before",{tasks:Y,workspaceRoot:n});const ut=r.stopServices===!0;let Xr=!1;const Qr=O(()=>{if(Xr)return;Xr=!0,we&&we.dispose().catch(()=>{});const w=ut?[...Ee.values()]:void 0;xd({extraPids:w,pidFiles:Ae,runDir:qe})},"runCleanupOnce"),St=O(()=>{Qr()},"onCleanupSignal"),Zr=Ae.length>0||qe!==void 0||ut&&Ue.length>0;Zr&&(process.on("SIGINT",St),process.on("SIGTERM",St));try{if(ri){const w=new Map,b=xl({...Hr,onRetryService:we?L=>we.retry(L):void 0,outputStyle:Jr,serviceDockStore:be,stdinRegistry:w}),{lifeCycle:R,store:_}=b,z=new cs([R,Kr,Yr]),Z=Ns({affectedFiles:v,currentOs:S,hooks:X,initCwd:c,lifeCycle:z,mutexPool:new Map,onOutput:O((L,H)=>{we&&We.has(L)?we.onTaskOutput(L,H):_.addOutput(L,H)},"onOutput"),onOutputReplace:O((L,H)=>{_.setOutput(L,H)},"onOutputReplace"),retryBudget:Vr,serviceEnvByTaskId:T,serviceEventBridge:we??void 0,stdinRegistry:w,strictEnv:Ur,workspaceRoot:n});let G="rerun",B=null,le=new Map;for(;G!=="quit";){if(G==="rerun"){if(le=await ls(Y,Je,{lifeCycle:z,projectGraph:g,taskExecutor:Z,taskGraph:N,workspaceRoot:n}),re.length>0&&!r.failFast){const L=new Promise(H=>{const U=_.subscribe(()=>{const se=_.getSnapshot();(se.rerunRequested||se.retryTaskId)&&(U(),H())});b.renderIsDone.then(()=>{U(),H()}).catch(()=>{U(),H()})});await Ds(re,n,v,c,{abortSignal:L,lifeCycle:z,stdinRegistry:w,store:_},T)}}else if(G==="retry"&&B){const L=Y.find(U=>U.id===B),H=L?.overrides.command;if(L&&H){const U=Bt(n,L.projectRoot,!1);z.startTasks?.([L]);const se=new ar(Dt),ye=(await Mt([{command:H,cwd:U,name:L.id,ptySize:{cols:process.stdout.columns??80,rows:process.stdout.rows??24},stdin:"pty"}],{onEvent:O(fe=>{fe.kind==="started"&&fe.write&&w.set(L.id,{kill:fe.kill,resize:fe.resize,write:fe.write}),(fe.kind==="stdout"||fe.kind==="stderr")&&fe.text&&(se.write(fe.text),_.setOutput(L.id,se.toString())),fe.kind==="close"&&w.delete(L.id)},"onEvent")})).closeEvents[0];z.endTasks?.([{code:ye?.exitCode??1,status:ye?.exitCode===0?"success":"failure",task:L,terminalOutput:_.getSnapshot().outputs.get(L.id)}])}else L&&z.endTasks?.([{code:1,status:"failure",task:L,terminalOutput:`No command configured for ${L.id}`}]);B=null,_.markDone()}G=await new Promise(L=>{const H=_.subscribe(()=>{const U=_.getSnapshot();U.rerunRequested&&(_.acknowledgeRerun(),H(),L("rerun")),U.retryTaskId&&(B=_.acknowledgeRetry(),H(),L("retry"))});b.renderIsDone.then(()=>{H(),L("quit")}).catch(()=>{H(),L("quit")})})}await b.renderIsDone,await X.callHook("run:after",le),await qr(le),xe>0&&(e.info(""),ut?e.info(`${String(xe)} service(s) stopped (--stop-services).`):e.info(`${String(xe)} service(s) started in the background. Run \`vis service stop --all\` to clean up.`))}else{const w=new Map,b=typeof r.log=="string"?r.log.toLowerCase():"",R=b==="labeled"||b==="grouped"||b==="interleaved"?b:void 0,_=R?Wi(R):void 0,z=new cs([new Sl({...Hr,ciGrouping:i?.run?.ciGrouping??"auto",logReporter:_,outputStyle:Jr}),Kr,Yr]),Z=Ns({affectedFiles:v,currentOs:S,hooks:X,initCwd:c,lifeCycle:z,mutexPool:w,retryBudget:Vr,serviceEnvByTaskId:T,serviceEventBridge:we??void 0,strictEnv:Ur,workspaceRoot:n}),G=O(async()=>{const U=Date.now(),se=await ls(Y,Je,{lifeCycle:z,projectGraph:g,taskExecutor:Z,taskGraph:N,workspaceRoot:n}),ye=Date.now()-U;if(r.summarize){const Ce=as(se,N,A);await Hi(Ce,n,{dataDirectory:Ot(n)})}let fe=!1;for(const[,Ce]of se)Ce.status==="failure"&&(fe=!0);const Te=Ri(se,ye),Oe=Ei(n),He=Oi(n,ye,Oe);return e.info(""),e.info(` ${Te}${He?` ${He}`:""}`),{hasFailure:fe,results:se,runHistory:Oe}},"runOnce"),B=await G();await X.callHook("run:after",B.results),await qr(B.results);const{hasFailure:le}=B;if(r.watch){const U=P.map(ve=>{const je=l.projects[ve]?.root;if(je)return je.startsWith("/")?je:`${n}/${je}`}).filter(ve=>ve!==void 0),se=Y;let ye;const fe=O(ve=>{const je=Al(se,ve);return ye=je.filter,Y=je.tasks,je.tasks.length},"applyFilter");let Te=!1,Oe=B.results;const He=O(()=>{const ve=hs(Oe,n);if(ve.directories.length>0&&ve.files.size>0){const je=To(ve.files,n,ve.directories);return{handle:ps({filter:je,onChange:Tt,paths:ve.directories}),mode:"tracked"}}return{handle:ps({onChange:Tt,paths:U}),mode:"roots"}},"buildHandle");let Ce;const Tt=O(async ve=>{if(!Te){Te=!0;try{e.info(`Change detected in ${ve.length} file(s), rerunning…`),Oe=(await G()).results,Ce?.close(),Ce=He().handle}finally{Te=!1}}},"onChangeHandler"),es=He();Ce=es.handle;const ni=es.mode==="tracked"?`Watching ${String(hs(Oe,n).files.size)} tracked file(s)`:`Watching ${String(U.length)} project root(s)`;e.info(`${ni} — edit a file to rerun, press h for keybinds, q to quit.`);const zt=O(async()=>{if(!Te){Te=!0;try{if(Y.length===0){e.info("No tasks match the active filter — press a to clear it.");return}Oe=(await G()).results,Ce?.close(),Ce=He().handle}finally{Te=!1}}},"triggerRerun");await new Promise(ve=>{let je=!1,ts;const rs=O(()=>{ss()},"onSigint"),ss=O(()=>{je||(je=!0,ts?.close(),process.off("SIGINT",rs),Ce?.close(),ve())},"exit");process.on("SIGINT",rs),ts=_l({handlers:{onClearFilter:O(async()=>{const ft=fe(void 0);e.info(`Filter cleared — running ${String(ft)} task(s).`),await zt()},"onClearFilter"),onFilter:O(async ft=>{const ii=ye,ns=fe(ft);if(ns===0){e.info(`Filter "${ft}" matched no projects — keeping previous filter.`),fe(ii);return}e.info(`Filter "${ft}" matched ${String(ns)} task(s).`),await zt()},"onFilter"),onHelp:O(()=>{Bl(process.stdout)},"onHelp"),onQuit:O(()=>{ss()},"onQuit"),onRerun:zt}})});return}if(r.flaky!==!1){const U=Mi(n,{minRuns:2},B.runHistory);if(U.length>0){e.info(""),e.info("Flaky tasks (based on historical runs):"),e.info("");for(const se of Pi(U))e.info(` ${se}`);e.info("")}}const L=[];for(const[U,se]of B.results)se.retryAttempts&&se.retryAttempts>0&&L.push(U);const H=r.failOnRetry===!0&&L.length>0;if(H){const U=L.slice(0,5),se=L.length-U.length,ye=se>0?`${U.join(", ")}, and ${String(se)} more`:U.join(", ");e.warn(""),e.warn(`--fail-on-retry: ${String(L.length)} task(s) succeeded only after retry: ${ye}`)}if(le||H){const U=H&&!le?"Some tasks succeeded only after retry (--fail-on-retry).":"Some tasks failed.",se=2e3,ye=[];for(const[fe,Te]of B.results){if(Te.status!=="failure")continue;const Oe=Te.terminalOutput??"",He=Oe.length>se?`…${Oe.slice(-se)}`:Oe,Ce=Te.code??"?";ye.push(` ${fe} (exit ${String(Ce)}):
|
|
191
191
|
${He.split(`
|
|
192
192
|
`).map(Tt=>` ${Tt}`).join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ke=Object.defineProperty;var m=(e,t)=>Ke(e,"name",{value:t,configurable:!0});import{createRequire as Ze}from"node:module";import{B as et,M as U,r as V,j as tt,I as N,N as w,q as W,e as z}from"../packem_shared/Table-3pFgIUZ2-DABgc6rj.js";import{h as it,E as R,c as L,b as ne}from"../packem_shared/index-
|
|
1
|
+
var Ke=Object.defineProperty;var m=(e,t)=>Ke(e,"name",{value:t,configurable:!0});import{createRequire as Ze}from"node:module";import{B as et,M as U,r as V,j as tt,I as N,N as w,q as W,e as z}from"../packem_shared/Table-3pFgIUZ2-DABgc6rj.js";import{h as it,E as R,c as L,b as ne}from"../packem_shared/index-K8aQuMvx.js";const Qe=Ze(import.meta.url),M=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Xe=m(e=>{if(typeof M<"u"&&M.versions&&M.versions.node){const[t,n]=M.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return M.getBuiltinModule(e)}return Qe(e)},"__cjs_getBuiltinModule"),{createRequire:nt}=Xe("node:module");var rt=Object.defineProperty,ot=m((e,t)=>rt(e,"name",{value:t,configurable:!0}),"f$2"),at=Object.defineProperty,st=ot((e,t)=>at(e,"name",{value:t,configurable:!0}),"s"),lt=Object.defineProperty,ct=st((e,t)=>lt(e,"name",{value:t,configurable:!0}),"a");const ut=/^#?([a-f\d]{3}|[a-f\d]{6})$/i,re=ct(e=>{let[,t]=ut.exec(e)??[];const n=t?t.length:0;if(n===3){const r=t.charAt(0),o=t.charAt(1),a=t.charAt(2);t=r+r+o+o+a+a}else if(n!==6)return[0,0,0];const i=Number.parseInt(t,16);return[i>>16&255,i>>8&255,i&255]},"convertHexToRgb");var dt=Object.defineProperty,ht=m((e,t)=>dt(e,"name",{value:t,configurable:!0}),"o$1"),ft=Object.defineProperty,pt=ht((e,t)=>ft(e,"name",{value:t,configurable:!0}),"s"),gt=Object.defineProperty,fe=pt((e,t)=>gt(e,"name",{value:t,configurable:!0}),"e");const Me=fe((e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/51)+6*Math.round(t/51)+Math.round(n/51),"rgbToAnsi256"),oe=fe(e=>{let t,n,i;if(e<8)return 30+e;if(e<16)return 90+(e-8);if(e>=232)t=n=i=((e-232)*10+8)/255;else{e-=16;const a=e%36;t=Math.floor(e/36)/5,n=Math.floor(a/6)/5,i=a%6/5}const r=Math.max(t,n,i)*2;if(r===0)return 30;const o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(t));return r===2?o+60:o},"ansi256To16"),we=fe((e,t,n)=>oe(Me(e,t,n)),"rgbToAnsi16");var mt=Object.defineProperty,Re=m((e,t)=>mt(e,"name",{value:t,configurable:!0}),"m"),bt=Object.defineProperty,P=Re((e,t)=>bt(e,"name",{value:t,configurable:!0}),"u"),wt=Object.defineProperty,yt=P((e,t)=>wt(e,"name",{value:t,configurable:!0}),"e");function J({onlyFirst:e=!1}={}){const t="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(t,e?void 0:"g")}m(J,"$$3");Re(J,"j");P(J,"t$1");yt(J,"ansiRegex");var $t=Object.defineProperty,vt=P((e,t)=>$t(e,"name",{value:t,configurable:!0}),"n$1");const A=vt((e,t,n)=>t>e?t:Math.min(e,n),"clamp");var Nt=Object.defineProperty,y=P((e,t)=>Nt(e,"name",{value:t,configurable:!0}),"b");const p=39,g=49,ye=10,ae=et(),ke={close:"",open:""},l=ae>0?(e,t)=>({close:`\x1B[${String(t)}m`,open:`\x1B[${String(e)}m`}):()=>ke,$e=y(e=>(t,n,i)=>e(Me(Number(t),Number(n),Number(i))),"createRgbFunction"),ve=y(e=>t=>{const[n,i,r]=re(t);return e(n,i,r)},"createHexFunction");let se=y(e=>l(`38;5;${String(e)}`,p),"createAnsi256"),le=y(e=>l(`48;5;${String(e)}`,g),"createBgAnsi256"),D=y((e,t,n)=>l(`38;2;${String(e)};${String(t)};${String(n)}`,p),"createRgb"),Y=y((e,t,n)=>l(`48;2;${String(e)};${String(t)};${String(n)}`,g),"createBgRgb");ae===1?(se=y(e=>l(oe(Number(e)),p),"createAnsi256"),le=y(e=>l(oe(Number(e))+ye,g),"createBgAnsi256"),D=y((e,t,n)=>l(we(Number(e),Number(t),Number(n)),p),"createRgb"),Y=y((e,t,n)=>l(we(Number(e),Number(t),Number(n))+ye,g),"createBgRgb")):ae===2&&(D=$e(se),Y=$e(le));const Ne={bold:l(1,22),dim:l(2,22),hidden:l(8,28),inverse:l(7,27),italic:l(3,23),overline:l(53,55),reset:l(0,0),strike:l(9,29),strikethrough:l(9,29),underline:l(4,24),visible:ke},Oe={bgBlack:l(40,g),bgBlackBright:l(100,g),bgBlue:l(44,g),bgBlueBright:l(104,g),bgCyan:l(46,g),bgCyanBright:l(106,g),bgGray:l(100,g),bgGreen:l(42,g),bgGreenBright:l(102,g),bgGrey:l(100,g),bgMagenta:l(45,g),bgMagentaBright:l(105,g),bgRed:l(41,g),bgRedBright:l(101,g),bgWhite:l(47,g),bgWhiteBright:l(107,g),bgYellow:l(43,g),bgYellowBright:l(103,g),black:l(30,p),blackBright:l(90,p),blue:l(34,p),blueBright:l(94,p),cyan:l(36,p),cyanBright:l(96,p),gray:l(90,p),green:l(32,p),greenBright:l(92,p),grey:l(90,p),magenta:l(35,p),magentaBright:l(95,p),red:l(31,p),redBright:l(91,p),white:l(37,p),whiteBright:l(97,p),yellow:l(33,p),yellowBright:l(93,p)},Ae={bg:y(e=>le(A(e,0,255)),"bg"),bgHex:ve(Y),bgRgb:y((e,t,n)=>Y(A(e,0,255),A(t,0,255),A(n,0,255)),"bgRgb"),fg:y(e=>se(A(e,0,255)),"fg"),hex:ve(D),rgb:y((e,t,n)=>D(A(e,0,255),A(t,0,255),A(n,0,255)),"rgb")};var Ot=Object.defineProperty,At=P((e,t)=>Ot(e,"name",{value:t,configurable:!0}),"s");const St=At((e,t,n)=>{if(t==="")return e;let i=e.indexOf(t);if(i<0)return e;const r=t.length;let o=0,a="";for(;~i;)a+=e.slice(o,i)+n,o=i+r,i=e.indexOf(t,o);return a+e.slice(o)},"stringReplaceAll");var jt=Object.defineProperty,T=P((e,t)=>jt(e,"name",{value:t,configurable:!0}),"a");const S={};let ce=null;const xt=T((e,t,n)=>{if(!e)return"";let i;if(e.raw===void 0?i=String(e):i=String.raw(e,...t),i.includes("\x1B"))for(let r=n;r;r=r.props)i=St(i,r.close,r.open);return i.includes(`
|
|
2
2
|
`)&&(i=i.replace(/(\r*\n)/g,`${n.closeStack}$1${n.openStack}`)),n.openStack+i+n.closeStack},"wrapText"),ue=T(({props:e},{close:t,open:n})=>{const i=(e?.openStack??"")+n,r=t+(e?.closeStack??""),o=T((a,...s)=>xt(a,s,o.props),"style");return Object.setPrototypeOf(o,ce),o.props={close:t,closeStack:r,open:n,openStack:i,props:e},o.open=i,o.close=r,o},"createStyle"),Et=T(function(){const e=T(t=>String(t),"self");e.strip=t=>t.replaceAll(J(),"");for(const t in Oe)S[t]={get(){const n=ue(this,Oe[t]);return Object.defineProperty(this,t,{value:n}),n}};for(const t in Ne)S[t]={get(){const n=ue(this,Ne[t]);return Object.defineProperty(this,t,{value:n}),n}};return ce=Object.defineProperties({},S),Object.setPrototypeOf(e,ce),e},"Colorize");for(const e in Ae)S[e]={get(){return(...t)=>ue(this,Ae[e](...t))}};S.ansi256=S.fg;S.bgAnsi256=S.bg;var It=Object.defineProperty,Bt=m((e,t)=>It(e,"name",{value:t,configurable:!0}),"g"),Wt=Object.defineProperty,K=Bt((e,t)=>Wt(e,"name",{value:t,configurable:!0}),"i"),Pt=Object.defineProperty,Mt=K((e,t)=>Pt(e,"name",{value:t,configurable:!0}),"n");const Ce=Mt(e=>(t,...n)=>{if(!Array.isArray(t)||!Array.isArray(t.raw))throw new TypeError("A tagged template literal must be provided");const i=[t.raw[0]];for(let r=1;r<t.raw.length;r+=1)i.push(String(n[r-1]).replaceAll(/[{}\\]/g,String.raw`\$&`),String(t.raw[r]));return e(i.join(""))},"makeColorizeTemplate");var Rt=Object.defineProperty,kt=K((e,t)=>Rt(e,"name",{value:t,configurable:!0}),"e$1");const Ct=new Map([["0","\0"],["\\","\\"],["a","\x07"],["b","\b"],["e","\x1B"],["f","\f"],["n",`
|
|
3
3
|
`],["r","\r"],["t"," "],["v","\v"]]),Te=kt(e=>{const t=e.startsWith("u"),n=e[1]==="{";return t&&!n&&e.length===5||e.startsWith("x")&&e.length===3?String.fromCodePoint(Number.parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(Number.parseInt(e.slice(2,-1),16)):Ct.get(e)??e},"unescape");var Tt=Object.defineProperty,Z=K((e,t)=>Tt(e,"name",{value:t,configurable:!0}),"u");const _t=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|\{(~)?(#?[\w:]+(?:\([^)]*\))?(?:\.#?[\w:]+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n))|(\})|((?:.|[\r\n\f])+?)/gi,Se=/(?:^|\.)(?:(\w+)(?:\(([^)]*)\))?|#(?=[:a-f\d]{2,})([a-f\d]{6})?(?::([a-f\d]{6}))?)/gi,Lt=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Ft=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,Ut=/\s*,\s*/,Vt=Z((e,t)=>{const n=[],i=t.trim().split(Ut);let r;for(const o of i){const a=Number(o);if(!Number.isNaN(a))n.push(a);else if(r=Lt.exec(o))n.push(r[2].replaceAll(Ft,(s,c,u)=>c?Te(c):u));else throw new Error(`Invalid template style argument: ${o} (in style '${e}')`)}return n},"parseArguments"),qt=Z(e=>{Se.lastIndex=0;const t=[];let n;for(;(n=Se.exec(e))!==null;){const i=n[1];n[2]?t.push([i,...Vt(i,n[2])]):n[3]||n[4]?(n[3]&&t.push(["rgb",...re(n[3])]),n[4]&&t.push(["bgRgb",...re(n[4])])):t.push([i])}return t},"parseStyle"),je=Z((e,t)=>{const n={};for(const r of t)for(const o of r.styles)n[o[0]]=r.inverse?void 0:o.slice(1);let i=e;for(const[r,o]of Object.entries(n))if(Array.isArray(o)){if(!(r in i))throw new Error(`Unknown style: ${r}`);i=o.length>0?i[r](...o):i[r]}return i},"buildStyle"),_e=Z(e=>t=>{const n=[],i=[];let r=[];if(t.replaceAll(_t,(o,a,s,c,u,d)=>{if(a)r.push(Te(a));else if(c){const f=r.join("");r=[],i.push(n.length===0?f:je(e,n)(f)),n.push({inverse:s,styles:qt(c)})}else if(u){if(n.length===0)throw new Error("Found extraneous } in template literal");i.push(je(e,n)(r.join(""))),r=[],n.pop()}else r.push(d)}),i.push(r.join("")),n.length>0)throw new Error(`template literal is missing ${String(n.length)} closing bracket${n.length===1?"":"s"} (\`}\`)`);return i.join("")},"makeTemplate");var Gt=Object.defineProperty,Ht=K((e,t)=>Gt(e,"name",{value:t,configurable:!0}),"e");const zt=new Et;Ht(e=>Ce(_e(e)),"makeTaggedTemplate");const Dt=_e(zt),Yt=Ce(Dt);var Jt=Object.defineProperty,h=m((e,t)=>Jt(e,"name",{value:t,configurable:!0}),"a");const Kt=nt(import.meta.url),B=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Q=h(e=>{if(typeof B<"u"&&B.versions&&B.versions.node){const[t,n]=B.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return B.getBuiltinModule(e)}return Kt(e)},"R"),x=B,{execFileSync:Zt}=Q("node:child_process"),C=Q("node:fs"),Qt=Q("node:tty"),Xt=Q("node:os"),en=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],tn=12288,nn=65510,rn=[12288,12288,65281,65376,65504,65510],on=8361,an=65518,sn=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],ln=32,cn=10630,un=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],dn=4352,hn=262141,Le=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],_=h((e,t)=>{let n=0,i=Math.floor(e.length/2)-1;for(;n<=i;){const r=Math.floor((n+i)/2),o=r*2;if(t<e[o])i=r-1;else if(t>e[o+1])n=r+1;else return!0}return!1},"$"),xe=19968,[fn,pn]=Fe(Le);function Fe(e){let t=e[0],n=e[1];for(let i=0;i<e.length;i+=2){const r=e[i],o=e[i+1];if(xe>=r&&xe<=o)return[r,o];o-r>n-t&&(t=r,n=o)}return[t,n]}m(Fe,"Wt");h(Fe,"N1");const gn=h(e=>e<161||e>1114109?!1:_(en,e),"I1"),mn=h(e=>e<tn||e>nn?!1:_(rn,e),"W1"),bn=h(e=>e<on||e>an?!1:_(sn,e),"$1"),wn=h(e=>e<ln||e>cn?!1:_(un,e),"O1"),yn=h(e=>e>=fn&&e<=pn?!0:e<dn||e>hn?!1:_(Le,e),"x1");function Ue(e){return gn(e)?"ambiguous":mn(e)?"fullwidth":bn(e)?"halfwidth":wn(e)?"narrow":yn(e)?"wide":"neutral"}m(Ue,"Mt");h(Ue,"E1");function Ve(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}m(Ve,"St");h(Ve,"v1");function pe(e){return Ve(e),Ue(e)}m(pe,"q");h(pe,"Y");const Ee=new Map,F=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,q=h(e=>e>=32&&e<=126?"latin":e===8203||e===8204||e===8205||e===8288?"zero":e<=31||e>=127&&e<=159?"control":e>=160&&e<=255||e>=9472&&e<=9599?"latin":e>=4352&&e<=4607||e>=11904&&e<=40959||e>=44032&&e<=55215||e>=63744&&e<=64255||e>=65280&&e<=65519&&!(e>=65377&&e<=65439)||e>=12352&&e<=12543?"wide":e===8230?"latin":"other","A"),$n=h((e,t)=>{const n=Math.floor(e/65536),i=e%65536;let r=Ee.get(n);if(r||(r=new Map,Ee.set(n,r)),r.has(i))return r.get(i);let o;if(q(e)==="latin")o=t.width.regular;else if(q(e)==="control")o=t.width.control;else if(q(e)==="wide")o=t.width.wide;else switch(pe(e)){case"ambiguous":{o=t.width.ambiguousIsNarrow?t.width.regular:t.width.wide;break}case"fullwidth":{o=t.width.fullWidth;break}case"wide":{o=t.width.wide;break}default:o=t.width.regular}return r.set(i,o),o},"A1"),vn=h(e=>e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071||e>=917760&&e<=917999||e>=65024&&e<=65039||e>=3633&&e<=3642||e>=3655&&e<=3662||e>=3761&&e<=3769||e>=3771&&e<=3772||e>=3784&&e<=3789||e>=2304&&e<=2307||e>=2362&&e<=2383||e>=2385&&e<=2391||e>=2402&&e<=2403||e>=2433&&e<=2435||e>=2492&&e<=2500||e>=2509&&e<=2509||e>=2561&&e<=2563||e>=2620&&e<=2637||e>=1611&&e<=1631||e>=1648&&e<=1648||e>=1750&&e<=1773||e>=2276&&e<=2302||e>=1425&&e<=1469||e>=1471&&e<=1471||e>=1473&&e<=1474||e>=1476&&e<=1477||e>=1479&&e<=1479||e>=3893&&e<=3893||e>=3895&&e<=3895||e>=3897&&e<=3897||e>=3953&&e<=3966||e>=3968&&e<=3972||e>=3974&&e<=3975?!0:e>=768&&e<=777||e>=803&&e<=803,"M1"),de=h((e,t={})=>{if(!e||e.length===0)return{ellipsed:!1,index:0,truncated:!1,width:0};const n={truncation:{countAnsiEscapeCodes:t.countAnsiEscapeCodes??!1,ellipsis:t.ellipsis??"",ellipsisWidth:t.ellipsisWidth??(t.ellipsis?de(t.ellipsis,{...t,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width:0),limit:t.limit??Number.POSITIVE_INFINITY},width:{ambiguousIsNarrow:t.ambiguousIsNarrow??!1,ansi:t.ansiWidth??0,control:t.controlWidth??0,emoji:t.emojiWidth??2,fullWidth:t.fullWidth??2,halfWidth:t.halfWidth??1,regular:t.regularWidth??1,tab:t.tabWidth??8,wide:t.wideWidth??2}},i=Math.max(0,n.truncation.limit-n.truncation.ellipsisWidth),{length:r}=e,o=r>1e4;let a=0,s=0,c=r,u=!1;const d=e.includes("\x1B")||e.includes("");for(;a<r;){if(d&&(e[a]==="\x1B"||e[a]==="")){if(e.startsWith("\x1B]8;;",a)){const v="\x1B]8;;\x07",j=v.length,X=e.indexOf("\x07",a+5);if(X!==-1){const ee=e.indexOf(v,X+1);if(ee!==-1){const Ye=ee+j,Je=e.slice(X+1,ee).replace(R,""),be=de(Je,{ambiguousIsNarrow:n.width.ambiguousIsNarrow,ansiWidth:n.width.ansi,controlWidth:n.width.control,countAnsiEscapeCodes:!1,ellipsis:n.truncation.ellipsis,ellipsisWidth:n.truncation.ellipsisWidth,emojiWidth:n.width.emoji,fullWidth:n.width.fullWidth,halfWidth:n.width.halfWidth,limit:Math.max(0,i-s),regularWidth:n.width.regular,tabWidth:n.width.tab,wideWidth:n.width.wide}),te=be.width;if(be.truncated)u=!0,c=Math.min(c,a);else if(s+te>i&&(c=Math.min(c,a),u=!0,s+te>n.truncation.limit))break;if(s+=te,a=Ye,u&&s>=n.truncation.limit)break;continue}}}if(R.lastIndex=a,R.test(e)){const v=R.lastIndex-a,j=n.truncation.countAnsiEscapeCodes?v:n.width.ansi;if(s+j>i&&(c=Math.min(c,a),s+j>n.truncation.limit)){u=!0;break}s+=j,a=R.lastIndex;continue}}const O=e.codePointAt(a);if(O===8203||O===65279||O>=8288&&O<=8292){a+=1;continue}if(O===9){if(s+n.width.tab>i&&(c=Math.min(c,a),s+n.width.tab>n.truncation.limit)){u=!0;break}s+=n.width.tab,a+=1;continue}if(F.lastIndex=a,F.test(e)){const v=(F.lastIndex-a)*n.width.regular;if(s+v>i){const j=Math.floor((i-s)/n.width.regular);if(c=Math.min(c,a+j),s+v>n.truncation.limit){u=!0;break}}s+=v,a=F.lastIndex;continue}if((O<=31||O>=127&&O<=159)&&(L.lastIndex=a,L.test(e))){const v=(L.lastIndex-a)*n.width.control;if(s+v>i&&(c=Math.min(c,a+Math.floor((i-s)/n.width.control)),s+v>n.truncation.limit)){u=!0;break}s+=v,a=L.lastIndex;continue}if(ne.lastIndex=a,ne.test(e)){if(s+n.width.emoji>i&&(c=Math.min(c,a),s+n.width.emoji>n.truncation.limit)){u=!0;break}s+=n.width.emoji,a=ne.lastIndex;continue}const I=e.codePointAt(a)??0;if(vn(I)){a+=I>65535?2:1;continue}let $;if(o)$=$n(I,n);else switch(q(I)){case"control":{$=n.width.control;break}case"latin":{$=n.width.regular;break}case"wide":{$=n.width.wide;break}case"zero":{$=0;break}default:switch(pe(I)){case"ambiguous":{$=n.width.ambiguousIsNarrow?n.width.regular:n.width.wide;break}case"fullwidth":{$=n.width.fullWidth;break}case"wide":{$=n.width.wide;break}default:$=n.width.regular}}if(s+$>i&&(c=Math.min(c,a),s+$>n.truncation.limit)){u=!0;break}s+=$,a+=I>65535?2:1}let f=s,me=!1;return u&&n.truncation.limit>=n.truncation.ellipsisWidth&&(f=n.truncation.limit,me=!0),{ellipsed:me,index:u?c:r,truncated:u,width:f}},"C"),Nn=h((e,t={})=>de(e,{...t,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width,"_1"),qe=80,Ge=24,he=h((e,t,{shell:n,env:i}={})=>Zt(e,t,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:n,env:i}).trim(),"B"),G=h((e,t)=>({columns:Number.parseInt(e,10),rows:Number.parseInt(t,10)}),"M"),He=h((e,t)=>{const{columns:n,rows:i}=G(e,t);if(!(Number.isNaN(n)||Number.isNaN(i))&&!(n===qe&&i===Ge))return{columns:n,rows:i}},"K"),On=h(()=>{if(x.platform!=="linux")return!0;try{const e=C.readFileSync("/proc/self/stat","utf8"),t=e.lastIndexOf(") ");if(t===-1)return!1;const n=e.slice(t+2).trim().split(/\s+/),i=Number.parseInt(n[2],10),r=Number.parseInt(n[5],10);return Number.isNaN(i)||Number.isNaN(r)||r<=0?!1:i===r}catch{return!1}},"R1");function ze(){const{env:e,stdout:t,stderr:n}=x;if(t?.columns&&t?.rows)return G(t.columns,t.rows);if(n?.columns&&n?.rows)return G(n.columns,n.rows);if(e.COLUMNS&&e.LINES)return G(e.COLUMNS,e.LINES);const i={columns:qe,rows:Ge};return x.platform==="win32"?ie()??i:x.platform==="darwin"?Ie()??ie()??i:Ie()??ie()??An()??i}m(ze,"Tt");h(ze,"S1");const Ie=h(()=>{try{const e=x.platform==="darwin"?C.constants.O_EVTONLY|C.constants.O_NONBLOCK:C.constants.O_NONBLOCK,{columns:t,rows:n}=Qt.WriteStream(C.openSync("/dev/tty",e));return{columns:t,rows:n}}catch{}},"H"),ie=h(()=>{try{const e=he("tput",["cols"],{env:{TERM:"dumb",...x.env}}),t=he("tput",["lines"],{env:{TERM:"dumb",...x.env}});if(e&&t)return He(e,t)}catch{}},"T"),An=h(()=>{try{if(!On())return;const e=he("resize",["-u"]).match(/\d+/g);if(e.length===2)return He(e[0],e[1])}catch{}},"k1"),k=new Map,Sn=500,b=h(e=>{if(!e||e==="")return"";const t=k.get(e);if(t!==void 0)return t;const n=Yt(Object.assign([],{raw:[e]}));if(k.size>=Sn){const i=k.keys().next().value;i!==void 0&&k.delete(i)}return k.set(e,n),n},"u"),H=h(()=>{const e=it().CEREBRO_TERMINAL_WIDTH;if(e===void 0)return;const t=Number.parseInt(e,10);if(!(Number.isNaN(t)||t<=0))return t},"_");let De=class{static{m(this,"G")}static{h(this,"U")}lines;constructor(){this.lines=[]}add(e){this.lines.push(e)}toString(){return this.lines.join(Xt.EOL)}header(e){this.add(tt(e)),this.lines.push("")}};const jn=h(e=>e!==void 0&&e>0?e:ze().columns,"L1"),xn=h((e,t,n,i)=>{if(e.length===0||e.some(u=>u.length!==2))return;let r=0;for(const u of e){const d=u[0];if(d===void 0)continue;const f=Nn(d);f>r&&(r=f)}if(r===0)return;const o=n+i,a=r+o,s=20+o;if(a+s>t)return;const c=t-a;return[a,c]},"T1");class En extends De{static{m(this,"Ft")}static{h(this,"C1")}constructor(t){if(super(),t.header&&this.header(b(t.header)),t.content){if(t.raw)if(Array.isArray(t.content)&&t.content.every(n=>typeof n=="string"))t.content.forEach(n=>{Array.isArray(n)?n.forEach(i=>{this.add(b(i))}):this.add(b(n))});else if(typeof t.content=="string")this.add(b(t.content));else throw new TypeError("Invalid raw content, must be a string or array of strings.");else this.add(this.getContentLines(t.content));this.add("")}}getContentLines(t){if(typeof t=="string"){const n=U({showHeader:!1,style:{border:V,paddingLeft:4,paddingRight:1},terminalWidth:H(),truncateOverflow:!1,wordWrap:!0});return n.addRow([b(t)]),n.toString()}if(Array.isArray(t)&&t.every(n=>typeof n=="string"||Array.isArray(n)&&n.every(i=>typeof i=="string"))){const n=jn(H()),i=h(s=>Array.isArray(s)?s.map(c=>b(c)):[b(s)],"t"),r=t.map(s=>i(s)),o=xn(r,n,4,1),a=U({columnWidths:o,showHeader:!1,style:{border:V,paddingLeft:4,paddingRight:1},terminalWidth:n,truncateOverflow:!1,wordWrap:!0});return r.forEach(s=>{o!==void 0&&s.length===2?a.addRow([{content:s[0],wordWrap:!1},s[1]]):a.addRow(s)}),a.toString()}if(typeof t=="object"){const n=t;if(!n.options||!n.data)throw new Error(`Must have an "options" or "data" property
|
|
4
4
|
${JSON.stringify(t)}`);const i=U({showHeader:!1,style:{border:V,paddingLeft:4,paddingRight:1},terminalWidth:H(),truncateOverflow:!1,wordWrap:!0});return n.data.forEach(r=>{Array.isArray(r)?i.addRow(r.map(o=>b(o))):i.addRow([b(r)])}),i.toString()}throw new Error(`invalid input - 'content' must be a string, array of strings or a object:
|
|
@@ -27,4 +27,4 @@ ${en(i,e,n+1,o)}`),`
|
|
|
27
27
|
${s}`},"getCause"),ar=L((t,e)=>(t.length>0?`
|
|
28
28
|
`:"")+t.map(n=>Ve(n,e)).join(`
|
|
29
29
|
`),"getStacktrace"),tn=L((t,e,n)=>{const o={cwd:nr(),displayShortPath:!1,filterStacktrace:void 0,framesMaxLimit:Number.POSITIVE_INFINITY,hideErrorCauseCodeView:!1,hideErrorCodeView:!1,hideErrorErrorsCodeView:!1,hideErrorTitle:!1,hideMessage:!1,indentation:4,linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,showLineNumbers:!0,tabWidth:4,...e,color:{fileLine:L(a=>a,"fileLine"),gutter:L(a=>a,"gutter"),hint:L(a=>a,"hint"),marker:L(a=>a,"marker"),message:L(a=>a,"message"),method:L(a=>a,"method"),title:L(a=>a,"title"),...e.color}},s=Jt(t,{filter:e.filterStacktrace,frameLimit:o.framesMaxLimit}),i=s.shift();return[e.hideMessage?void 0:Yt(t,o,n),Zt(t,o,n),i?Ve(i,o,n):void 0,i&&!o.hideErrorCodeView?Qt(i,o,n):void 0,t instanceof AggregateError?Xt(t,o,n):void 0,t.cause===void 0?void 0:en(t,o,n),s.length>0?ar(s,o):void 0].filter(Boolean).join(`
|
|
30
|
-
`).replaceAll("\\","/")},"internalRenderError"),lr=L((t,e={})=>{if(e.framesMaxLimit!==void 0&&e.framesMaxLimit<=0)throw new RangeError("The 'framesMaxLimit' option must be a positive number");return tn(t,e,0)},"renderError");var cr=Object.defineProperty,mt=_((t,e)=>cr(t,"name",{value:e,configurable:!0}),"i$1");const kr=mt((t={})=>({description:"Enhanced error handling and reporting with beautiful code frames",name:"error-handler",onError:mt((e,n)=>{const{logger:o,runtime:s}=n,{detailed:i=!1,exitOnError:a=!0,formatter:l,logErrors:h=!0,renderOptions:r={}}=t;if(h)if(l)o.error(l(e));else if(i){const c=s.getCwd(),m=lr(e,{cwd:c,hideErrorCodeView:!1,hideErrorTitle:!1,hideMessage:!1,linesAbove:2,linesBelow:3,...r});o.error(m)}else o.error(e);a&&z(1)},"onError"),version:"1.0.0"}),"E");var ur="1.0.0-alpha.
|
|
30
|
+
`).replaceAll("\\","/")},"internalRenderError"),lr=L((t,e={})=>{if(e.framesMaxLimit!==void 0&&e.framesMaxLimit<=0)throw new RangeError("The 'framesMaxLimit' option must be a positive number");return tn(t,e,0)},"renderError");var cr=Object.defineProperty,mt=_((t,e)=>cr(t,"name",{value:e,configurable:!0}),"i$1");const kr=mt((t={})=>({description:"Enhanced error handling and reporting with beautiful code frames",name:"error-handler",onError:mt((e,n)=>{const{logger:o,runtime:s}=n,{detailed:i=!1,exitOnError:a=!0,formatter:l,logErrors:h=!0,renderOptions:r={}}=t;if(h)if(l)o.error(l(e));else if(i){const c=s.getCwd(),m=lr(e,{cwd:c,hideErrorCodeView:!1,hideErrorTitle:!1,hideMessage:!1,linesAbove:2,linesBelow:3,...r});o.error(m)}else o.error(e);a&&z(1)},"onError"),version:"1.0.0"}),"E");var ur="1.0.0-alpha.31";const Or={version:ur};var pr=Object.defineProperty,hr=_((t,e)=>pr(t,"name",{value:e,configurable:!0}),"e");const Cr={argument:{description:"Package to execute (optionally with @version)",name:"package",type:String},description:"Execute a remote package without permanent installation",examples:[["vis dlx create-vite my-app","Scaffold a new project"],["vis dlx typescript@5.5.4 tsc --version","Run specific version"],["vis dlx -p cowsay -p lolcatjs -c 'echo hi | cowsay | lolcatjs'","Multiple packages with shell"],["vis install && vis dlx --offline typescript tsc --version","Hardened: pre-install + offline (no registry fetch on dlx)"]],group:"Run & Execute",loader:hr(()=>import("../packem_chunks/handler9.js"),"loader"),name:"dlx",options:[{alias:"p",description:"Additional packages to install (repeatable)",multiple:!0,name:"package",type:String},{alias:"c",defaultValue:!1,description:"Execute within shell environment",name:"shell-mode",type:Boolean},{alias:"s",defaultValue:!1,description:"Suppress output except command results",name:"silent",type:Boolean},{defaultValue:!1,description:"Resolve from local store only — fail rather than fetch from the registry. Pair with `vis install` for hardened npx-style workflows.",name:"offline",type:Boolean}]};export{Er as $,vr as E,Nr as I,Ar as a,G as b,yr as c,k as d,q as h,Cr as i,Or as m,kr as p};
|
package/index.js
CHANGED
|
@@ -81,8 +81,8 @@ function requireNative() {
|
|
|
81
81
|
try {
|
|
82
82
|
const binding = require('@visulima/vis-binding-android-arm64')
|
|
83
83
|
const bindingPackageVersion = require('@visulima/vis-binding-android-arm64/package.json').version
|
|
84
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
85
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
84
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
85
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
86
86
|
}
|
|
87
87
|
return binding
|
|
88
88
|
} catch (e) {
|
|
@@ -97,8 +97,8 @@ function requireNative() {
|
|
|
97
97
|
try {
|
|
98
98
|
const binding = require('@visulima/vis-binding-android-arm-eabi')
|
|
99
99
|
const bindingPackageVersion = require('@visulima/vis-binding-android-arm-eabi/package.json').version
|
|
100
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
101
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
100
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
101
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
102
102
|
}
|
|
103
103
|
return binding
|
|
104
104
|
} catch (e) {
|
|
@@ -118,8 +118,8 @@ function requireNative() {
|
|
|
118
118
|
try {
|
|
119
119
|
const binding = require('@visulima/vis-binding-win32-x64-gnu')
|
|
120
120
|
const bindingPackageVersion = require('@visulima/vis-binding-win32-x64-gnu/package.json').version
|
|
121
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
122
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
121
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
122
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
123
123
|
}
|
|
124
124
|
return binding
|
|
125
125
|
} catch (e) {
|
|
@@ -134,8 +134,8 @@ function requireNative() {
|
|
|
134
134
|
try {
|
|
135
135
|
const binding = require('@visulima/vis-binding-win32-x64-msvc')
|
|
136
136
|
const bindingPackageVersion = require('@visulima/vis-binding-win32-x64-msvc/package.json').version
|
|
137
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
138
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
137
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
138
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
139
139
|
}
|
|
140
140
|
return binding
|
|
141
141
|
} catch (e) {
|
|
@@ -151,8 +151,8 @@ function requireNative() {
|
|
|
151
151
|
try {
|
|
152
152
|
const binding = require('@visulima/vis-binding-win32-ia32-msvc')
|
|
153
153
|
const bindingPackageVersion = require('@visulima/vis-binding-win32-ia32-msvc/package.json').version
|
|
154
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
155
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
154
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
155
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
156
156
|
}
|
|
157
157
|
return binding
|
|
158
158
|
} catch (e) {
|
|
@@ -167,8 +167,8 @@ function requireNative() {
|
|
|
167
167
|
try {
|
|
168
168
|
const binding = require('@visulima/vis-binding-win32-arm64-msvc')
|
|
169
169
|
const bindingPackageVersion = require('@visulima/vis-binding-win32-arm64-msvc/package.json').version
|
|
170
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
171
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
170
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
171
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
172
172
|
}
|
|
173
173
|
return binding
|
|
174
174
|
} catch (e) {
|
|
@@ -186,8 +186,8 @@ function requireNative() {
|
|
|
186
186
|
try {
|
|
187
187
|
const binding = require('@visulima/vis-binding-darwin-universal')
|
|
188
188
|
const bindingPackageVersion = require('@visulima/vis-binding-darwin-universal/package.json').version
|
|
189
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
190
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
189
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
190
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
191
191
|
}
|
|
192
192
|
return binding
|
|
193
193
|
} catch (e) {
|
|
@@ -202,8 +202,8 @@ function requireNative() {
|
|
|
202
202
|
try {
|
|
203
203
|
const binding = require('@visulima/vis-binding-darwin-x64')
|
|
204
204
|
const bindingPackageVersion = require('@visulima/vis-binding-darwin-x64/package.json').version
|
|
205
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
206
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
205
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
206
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
207
207
|
}
|
|
208
208
|
return binding
|
|
209
209
|
} catch (e) {
|
|
@@ -218,8 +218,8 @@ function requireNative() {
|
|
|
218
218
|
try {
|
|
219
219
|
const binding = require('@visulima/vis-binding-darwin-arm64')
|
|
220
220
|
const bindingPackageVersion = require('@visulima/vis-binding-darwin-arm64/package.json').version
|
|
221
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
222
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
221
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
222
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
223
223
|
}
|
|
224
224
|
return binding
|
|
225
225
|
} catch (e) {
|
|
@@ -238,8 +238,8 @@ function requireNative() {
|
|
|
238
238
|
try {
|
|
239
239
|
const binding = require('@visulima/vis-binding-freebsd-x64')
|
|
240
240
|
const bindingPackageVersion = require('@visulima/vis-binding-freebsd-x64/package.json').version
|
|
241
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
242
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
241
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
242
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
243
243
|
}
|
|
244
244
|
return binding
|
|
245
245
|
} catch (e) {
|
|
@@ -254,8 +254,8 @@ function requireNative() {
|
|
|
254
254
|
try {
|
|
255
255
|
const binding = require('@visulima/vis-binding-freebsd-arm64')
|
|
256
256
|
const bindingPackageVersion = require('@visulima/vis-binding-freebsd-arm64/package.json').version
|
|
257
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
258
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
257
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
258
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
259
259
|
}
|
|
260
260
|
return binding
|
|
261
261
|
} catch (e) {
|
|
@@ -275,8 +275,8 @@ function requireNative() {
|
|
|
275
275
|
try {
|
|
276
276
|
const binding = require('@visulima/vis-binding-linux-x64-musl')
|
|
277
277
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-x64-musl/package.json').version
|
|
278
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
279
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
278
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
279
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
280
280
|
}
|
|
281
281
|
return binding
|
|
282
282
|
} catch (e) {
|
|
@@ -291,8 +291,8 @@ function requireNative() {
|
|
|
291
291
|
try {
|
|
292
292
|
const binding = require('@visulima/vis-binding-linux-x64-gnu')
|
|
293
293
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-x64-gnu/package.json').version
|
|
294
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
295
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
294
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
295
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
296
296
|
}
|
|
297
297
|
return binding
|
|
298
298
|
} catch (e) {
|
|
@@ -309,8 +309,8 @@ function requireNative() {
|
|
|
309
309
|
try {
|
|
310
310
|
const binding = require('@visulima/vis-binding-linux-arm64-musl')
|
|
311
311
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-arm64-musl/package.json').version
|
|
312
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
313
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
312
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
313
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
314
314
|
}
|
|
315
315
|
return binding
|
|
316
316
|
} catch (e) {
|
|
@@ -325,8 +325,8 @@ function requireNative() {
|
|
|
325
325
|
try {
|
|
326
326
|
const binding = require('@visulima/vis-binding-linux-arm64-gnu')
|
|
327
327
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-arm64-gnu/package.json').version
|
|
328
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
329
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
328
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
329
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
330
330
|
}
|
|
331
331
|
return binding
|
|
332
332
|
} catch (e) {
|
|
@@ -343,8 +343,8 @@ function requireNative() {
|
|
|
343
343
|
try {
|
|
344
344
|
const binding = require('@visulima/vis-binding-linux-arm-musleabihf')
|
|
345
345
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-arm-musleabihf/package.json').version
|
|
346
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
347
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
346
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
347
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
348
348
|
}
|
|
349
349
|
return binding
|
|
350
350
|
} catch (e) {
|
|
@@ -359,8 +359,8 @@ function requireNative() {
|
|
|
359
359
|
try {
|
|
360
360
|
const binding = require('@visulima/vis-binding-linux-arm-gnueabihf')
|
|
361
361
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-arm-gnueabihf/package.json').version
|
|
362
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
363
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
362
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
363
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
364
364
|
}
|
|
365
365
|
return binding
|
|
366
366
|
} catch (e) {
|
|
@@ -377,8 +377,8 @@ function requireNative() {
|
|
|
377
377
|
try {
|
|
378
378
|
const binding = require('@visulima/vis-binding-linux-loong64-musl')
|
|
379
379
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-loong64-musl/package.json').version
|
|
380
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
381
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
380
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
381
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
382
382
|
}
|
|
383
383
|
return binding
|
|
384
384
|
} catch (e) {
|
|
@@ -393,8 +393,8 @@ function requireNative() {
|
|
|
393
393
|
try {
|
|
394
394
|
const binding = require('@visulima/vis-binding-linux-loong64-gnu')
|
|
395
395
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-loong64-gnu/package.json').version
|
|
396
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
397
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
396
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
397
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
398
398
|
}
|
|
399
399
|
return binding
|
|
400
400
|
} catch (e) {
|
|
@@ -411,8 +411,8 @@ function requireNative() {
|
|
|
411
411
|
try {
|
|
412
412
|
const binding = require('@visulima/vis-binding-linux-riscv64-musl')
|
|
413
413
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-riscv64-musl/package.json').version
|
|
414
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
415
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
414
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
415
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
416
416
|
}
|
|
417
417
|
return binding
|
|
418
418
|
} catch (e) {
|
|
@@ -427,8 +427,8 @@ function requireNative() {
|
|
|
427
427
|
try {
|
|
428
428
|
const binding = require('@visulima/vis-binding-linux-riscv64-gnu')
|
|
429
429
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-riscv64-gnu/package.json').version
|
|
430
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
431
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
430
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
431
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
432
432
|
}
|
|
433
433
|
return binding
|
|
434
434
|
} catch (e) {
|
|
@@ -444,8 +444,8 @@ function requireNative() {
|
|
|
444
444
|
try {
|
|
445
445
|
const binding = require('@visulima/vis-binding-linux-ppc64-gnu')
|
|
446
446
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-ppc64-gnu/package.json').version
|
|
447
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
448
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
447
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
448
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
449
449
|
}
|
|
450
450
|
return binding
|
|
451
451
|
} catch (e) {
|
|
@@ -460,8 +460,8 @@ function requireNative() {
|
|
|
460
460
|
try {
|
|
461
461
|
const binding = require('@visulima/vis-binding-linux-s390x-gnu')
|
|
462
462
|
const bindingPackageVersion = require('@visulima/vis-binding-linux-s390x-gnu/package.json').version
|
|
463
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
464
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
463
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
464
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
465
465
|
}
|
|
466
466
|
return binding
|
|
467
467
|
} catch (e) {
|
|
@@ -480,8 +480,8 @@ function requireNative() {
|
|
|
480
480
|
try {
|
|
481
481
|
const binding = require('@visulima/vis-binding-openharmony-arm64')
|
|
482
482
|
const bindingPackageVersion = require('@visulima/vis-binding-openharmony-arm64/package.json').version
|
|
483
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
484
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
483
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
484
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
485
485
|
}
|
|
486
486
|
return binding
|
|
487
487
|
} catch (e) {
|
|
@@ -496,8 +496,8 @@ function requireNative() {
|
|
|
496
496
|
try {
|
|
497
497
|
const binding = require('@visulima/vis-binding-openharmony-x64')
|
|
498
498
|
const bindingPackageVersion = require('@visulima/vis-binding-openharmony-x64/package.json').version
|
|
499
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
500
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
499
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
500
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
501
501
|
}
|
|
502
502
|
return binding
|
|
503
503
|
} catch (e) {
|
|
@@ -512,8 +512,8 @@ function requireNative() {
|
|
|
512
512
|
try {
|
|
513
513
|
const binding = require('@visulima/vis-binding-openharmony-arm')
|
|
514
514
|
const bindingPackageVersion = require('@visulima/vis-binding-openharmony-arm/package.json').version
|
|
515
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
516
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
515
|
+
if (bindingPackageVersion !== '1.0.0-alpha.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
516
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
517
517
|
}
|
|
518
518
|
return binding
|
|
519
519
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/vis",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.32",
|
|
4
4
|
"description": "A monorepo dev toolkit — task runner, remote caching, security scanning, git hooks, and AI agent integrations — powered by @visulima/task-runner",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build",
|
|
@@ -110,14 +110,14 @@
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"optionalDependencies": {
|
|
113
|
-
"@visulima/vis-binding-
|
|
114
|
-
"@visulima/vis-binding-linux-arm64-
|
|
115
|
-
"@visulima/vis-binding-
|
|
116
|
-
"@visulima/vis-binding-linux-
|
|
117
|
-
"@visulima/vis-binding-darwin-
|
|
118
|
-
"@visulima/vis-binding-win32-arm64-msvc": "1.0.0-alpha.
|
|
119
|
-
"@visulima/vis-binding-win32-x64-msvc": "1.0.0-alpha.
|
|
120
|
-
"@visulima/vis-binding-linux-x64-musl": "1.0.0-alpha.
|
|
113
|
+
"@visulima/vis-binding-darwin-arm64": "1.0.0-alpha.32",
|
|
114
|
+
"@visulima/vis-binding-linux-arm64-gnu": "1.0.0-alpha.32",
|
|
115
|
+
"@visulima/vis-binding-linux-x64-gnu": "1.0.0-alpha.32",
|
|
116
|
+
"@visulima/vis-binding-linux-arm64-musl": "1.0.0-alpha.32",
|
|
117
|
+
"@visulima/vis-binding-darwin-x64": "1.0.0-alpha.32",
|
|
118
|
+
"@visulima/vis-binding-win32-arm64-msvc": "1.0.0-alpha.32",
|
|
119
|
+
"@visulima/vis-binding-win32-x64-msvc": "1.0.0-alpha.32",
|
|
120
|
+
"@visulima/vis-binding-linux-x64-musl": "1.0.0-alpha.32"
|
|
121
121
|
},
|
|
122
122
|
"engines": {
|
|
123
123
|
"node": "^22.14.0 || >=24.10.0"
|