@visulima/vis 1.0.0-alpha.32 → 1.0.0-alpha.33

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 CHANGED
@@ -1,3 +1,14 @@
1
+ ## @visulima/vis [1.0.0-alpha.33](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.32...@visulima/vis@1.0.0-alpha.33) (2026-06-07)
2
+
3
+ ### Features
4
+
5
+ * **task-runner:** warn when a cacheable task's inputs resolve to zero files ([3a4ecbb](https://github.com/visulima/visulima/commit/3a4ecbbef46b49afa4cb8b3e0b741fae0de42b3c))
6
+
7
+
8
+ ### Dependencies
9
+
10
+ * **@visulima/task-runner:** upgraded to 1.0.0-alpha.21
11
+
1
12
  ## @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
13
 
3
14
  ### Bug Fixes
package/dist/bin.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import"./packem_shared/index-K8aQuMvx.js";import"./packem_chunks/bin.js";import"./packem_chunks/config.js";import"./packem_shared/readFileSync-DseCu8sg-DEq4Fn3a.js";
2
+ import"./packem_shared/index-ClJtJDdT.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-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}
2
+ import{$ as r,m as o,a as c,I as i,p as a,i as n}from"./packem_shared/index-ClJtJDdT.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-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=`
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-ClJtJDdT.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-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(`
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-ClJtJDdT.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};