@visulima/vis 1.0.0-alpha.6 → 1.0.0-alpha.7
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 +10 -0
- package/dist/bin.js +1 -1
- package/package.json +10 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## @visulima/vis [1.0.0-alpha.7](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.6...@visulima/vis@1.0.0-alpha.7) (2026-04-22)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* added [@bomb](https://github.com/bomb).sh/tab ([8be4063](https://github.com/visulima/visulima/commit/8be40636caff4e7eb4776869bb71e11cc6c76298))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* added [@bomb](https://github.com/bomb).sh/tab to exclude ([6e3839e](https://github.com/visulima/visulima/commit/6e3839e5973bac479d6b2e0cb2c3d3c59db3d416))
|
|
10
|
+
|
|
1
11
|
## @visulima/vis [1.0.0-alpha.6](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.5...@visulima/vis@1.0.0-alpha.6) (2026-04-22)
|
|
2
12
|
|
|
3
13
|
### Features
|
package/dist/bin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var Iu=Object.defineProperty;var b=(t,e)=>Iu(t,"name",{value:e,configurable:!0});import{createRequire as Au}from"node:module";import{createCerebro as Pu}from"@visulima/cerebro";import Nu from"@visulima/cerebro/command/completion";import Mu from"@visulima/cerebro/compile-cache";import{applyHeapTuning as Du}from"@visulima/cerebro/heap-tuning";import{errorHandlerPlugin as Bu}from"@visulima/cerebro/plugins/error-handler";import{isAccessibleSync as T,readFileSync as ee,isFsCaseSensitive as Fu,walkSync as Rn,readJsonSync as ue,ensureDirSync as je,writeJsonSync as Mi,writeFileSync as Q,removeSync as Lu,glob as Vu}from"@visulima/fs";import{findPackageManagerSync as $o,parseLockFileContent as Sc,getPackageManagerVersion as Uu,findMonorepoRootSync as xc}from"@visulima/package";import{relative as _e,join as w,isAbsolute as nt,basename as So,resolve as $e,dirname as Nt,parse as _u,sep as Cc}from"@visulima/path";import{createTaskGraph as Di,getAffectedProjects as jc,DEFAULT_CACHE_DIRECTORY_NAME as Gu,Cache as Tc,parseCacheSize as Wu,projectGraphToDot as zu,runConcurrently as Bi,TerminalBuffer as Ec,readLastRunSummary as Hu,enforceProjectConstraints as Rc,parsePartition as qu,TaskScheduler as Ju,generateRunSummary as Ps,writeChromeTrace as Yu,CompositeLifeCycle as Ns,defaultTaskRunner as Ms,createLogReporter as Ku,writeRunSummary as Xu}from"@visulima/task-runner";import{dim as be,green as Et,yellow as Re,cyan as st,red as Ue,magenta as Ac,bold as fr}from"@visulima/colorize";import Zu,{coerce as In,lt as ep,rcompare as tp,parse as rp,validRange as np,satisfies as op}from"semver";import{hyperlink as ip}from"@visulima/ansi";import{runProvider as Dc,PROVIDER_NAMES as fp,detectProvider as gp,detectAvailableProviders as hp,detectAllProviders as mp}from"@visulima/find-ai-runner";import{Spinner as Vi,Text as l,Box as h,render as Ut,renderToString as Oe,Table as Ui,useWindowSize as zr,useApp as Hr,useInput as mt,Dialog as wr,ScrollView as qr,Tabs as Bc,Tab as Fc,ScrollBar as An,TextInput as _i,StaticRender as Fs}from"@visulima/tui";import X,{useState as ve,useRef as Ve,useEffect as Rt,useCallback as It,useSyncExternalStore as On,useMemo as At}from"react";import{findCacheDirSync as Lc}from"@visulima/find-cache-dir";import{readYamlSync as Jr}from"@visulima/fs/yaml";import{formatBytes as wn,duration as Gc}from"@visulima/humanizer";import{jsx as u,jsxs as f,Fragment as gn}from"react/jsx-runtime";import{getRandomWord as Vs}from"@nkzw/safe-word-list";import wp from"validate-npm-package-name";import{downloadTemplate as Wc}from"giget";import{stripJsonComments as kp}from"@visulima/fs/utils";import{getManifestData as bp}from"@socketsecurity/registry";import $p from"module-replacements/manifests/micro-utilities.json"with{type:"json"};import Sp from"module-replacements/manifests/native.json"with{type:"json"};import xp from"module-replacements/manifests/preferred.json"with{type:"json"};import{findVisConfigFile as Yr,loadVisConfig as Us}from"./config.js";import{createHooks as Tp}from"hookable";import{toXML as Rp}from"jstoxml";import{fingerprint as Br,listRules as zc,listRequiredValidators as Ip,scan as Hc,scanFiles as Ap,inspectRuleset as Op}from"@visulima/secret-scanner";import{execa as qc}from"execa";import Jc from"zeptomatch";const Ou=Au(import.meta.url),Dr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,wt=b(t=>{if(typeof Dr<"u"&&Dr.versions&&Dr.versions.node){const[e,r]=Dr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Dr.getBuiltinModule(t)}return Ou(t)},"__cjs_getBuiltinModule"),{createInterface:dt}=wt("node:readline"),{platform:Ic,availableParallelism:Ds,homedir:Xe,tmpdir:Qu}=wt("node:os"),{env:Yo,cwd:Fi,stdin:Bs,stdout:sp}=Dr,{readFileSync:Oc,writeFileSync:Se,unlinkSync:Wr,readdirSync:Ge,rmSync:ot,statSync:br,lstatSync:Pc,chmodSync:Nc,cpSync:Li,mkdtempSync:ap,copyFileSync:cp,mkdirSync:lp,watch:dp}=wt("node:fs"),{createRequire:up}=wt("node:module"),{fileURLToPath:pp,pathToFileURL:Mc}=wt("node:url"),{execSync:Pn,spawnSync:ct,execFileSync:Vc,execFile:yp}=wt("node:child_process"),{readdir:Uc,stat:_c,realpath:Ls,rm:vp,appendFile:Gi}=wt("node:fs/promises"),{promisify:Cp}=wt("node:util"),{createInterface:jp}=wt("node:readline/promises"),{randomUUID:Ep}=wt("node:crypto"),{resolve:Pp,join:Np}=wt("node:path");var Mp="1.0.0-alpha.
|
|
2
|
+
var Iu=Object.defineProperty;var b=(t,e)=>Iu(t,"name",{value:e,configurable:!0});import{createRequire as Au}from"node:module";import{createCerebro as Pu}from"@visulima/cerebro";import Nu from"@visulima/cerebro/command/completion";import Mu from"@visulima/cerebro/compile-cache";import{applyHeapTuning as Du}from"@visulima/cerebro/heap-tuning";import{errorHandlerPlugin as Bu}from"@visulima/cerebro/plugins/error-handler";import{isAccessibleSync as T,readFileSync as ee,isFsCaseSensitive as Fu,walkSync as Rn,readJsonSync as ue,ensureDirSync as je,writeJsonSync as Mi,writeFileSync as Q,removeSync as Lu,glob as Vu}from"@visulima/fs";import{findPackageManagerSync as $o,parseLockFileContent as Sc,getPackageManagerVersion as Uu,findMonorepoRootSync as xc}from"@visulima/package";import{relative as _e,join as w,isAbsolute as nt,basename as So,resolve as $e,dirname as Nt,parse as _u,sep as Cc}from"@visulima/path";import{createTaskGraph as Di,getAffectedProjects as jc,DEFAULT_CACHE_DIRECTORY_NAME as Gu,Cache as Tc,parseCacheSize as Wu,projectGraphToDot as zu,runConcurrently as Bi,TerminalBuffer as Ec,readLastRunSummary as Hu,enforceProjectConstraints as Rc,parsePartition as qu,TaskScheduler as Ju,generateRunSummary as Ps,writeChromeTrace as Yu,CompositeLifeCycle as Ns,defaultTaskRunner as Ms,createLogReporter as Ku,writeRunSummary as Xu}from"@visulima/task-runner";import{dim as be,green as Et,yellow as Re,cyan as st,red as Ue,magenta as Ac,bold as fr}from"@visulima/colorize";import Zu,{coerce as In,lt as ep,rcompare as tp,parse as rp,validRange as np,satisfies as op}from"semver";import{hyperlink as ip}from"@visulima/ansi";import{runProvider as Dc,PROVIDER_NAMES as fp,detectProvider as gp,detectAvailableProviders as hp,detectAllProviders as mp}from"@visulima/find-ai-runner";import{Spinner as Vi,Text as l,Box as h,render as Ut,renderToString as Oe,Table as Ui,useWindowSize as zr,useApp as Hr,useInput as mt,Dialog as wr,ScrollView as qr,Tabs as Bc,Tab as Fc,ScrollBar as An,TextInput as _i,StaticRender as Fs}from"@visulima/tui";import X,{useState as ve,useRef as Ve,useEffect as Rt,useCallback as It,useSyncExternalStore as On,useMemo as At}from"react";import{findCacheDirSync as Lc}from"@visulima/find-cache-dir";import{readYamlSync as Jr}from"@visulima/fs/yaml";import{formatBytes as wn,duration as Gc}from"@visulima/humanizer";import{jsx as u,jsxs as f,Fragment as gn}from"react/jsx-runtime";import{getRandomWord as Vs}from"@nkzw/safe-word-list";import wp from"validate-npm-package-name";import{downloadTemplate as Wc}from"giget";import{stripJsonComments as kp}from"@visulima/fs/utils";import{getManifestData as bp}from"@socketsecurity/registry";import $p from"module-replacements/manifests/micro-utilities.json"with{type:"json"};import Sp from"module-replacements/manifests/native.json"with{type:"json"};import xp from"module-replacements/manifests/preferred.json"with{type:"json"};import{findVisConfigFile as Yr,loadVisConfig as Us}from"./config.js";import{createHooks as Tp}from"hookable";import{toXML as Rp}from"jstoxml";import{fingerprint as Br,listRules as zc,listRequiredValidators as Ip,scan as Hc,scanFiles as Ap,inspectRuleset as Op}from"@visulima/secret-scanner";import{execa as qc}from"execa";import Jc from"zeptomatch";const Ou=Au(import.meta.url),Dr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,wt=b(t=>{if(typeof Dr<"u"&&Dr.versions&&Dr.versions.node){const[e,r]=Dr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Dr.getBuiltinModule(t)}return Ou(t)},"__cjs_getBuiltinModule"),{createInterface:dt}=wt("node:readline"),{platform:Ic,availableParallelism:Ds,homedir:Xe,tmpdir:Qu}=wt("node:os"),{env:Yo,cwd:Fi,stdin:Bs,stdout:sp}=Dr,{readFileSync:Oc,writeFileSync:Se,unlinkSync:Wr,readdirSync:Ge,rmSync:ot,statSync:br,lstatSync:Pc,chmodSync:Nc,cpSync:Li,mkdtempSync:ap,copyFileSync:cp,mkdirSync:lp,watch:dp}=wt("node:fs"),{createRequire:up}=wt("node:module"),{fileURLToPath:pp,pathToFileURL:Mc}=wt("node:url"),{execSync:Pn,spawnSync:ct,execFileSync:Vc,execFile:yp}=wt("node:child_process"),{readdir:Uc,stat:_c,realpath:Ls,rm:vp,appendFile:Gi}=wt("node:fs/promises"),{promisify:Cp}=wt("node:util"),{createInterface:jp}=wt("node:readline/promises"),{randomUUID:Ep}=wt("node:crypto"),{resolve:Pp,join:Np}=wt("node:path");var Mp="1.0.0-alpha.6";const kn={version:Mp};var Dp=Object.defineProperty,kr=b((t,e)=>Dp(t,"name",{value:e,configurable:!0}),"g$v");const Bp=/^#([\w\-/]+):(.+)$/,Fp=/^([@\w\-/]+):(.+)$/,Lp=kr(t=>{if(t==="")return;if(t.startsWith(":"))return{kind:"all",target:t.slice(1)};if(t.startsWith("~:"))return{kind:"closest",target:t.slice(2)};const e=Bp.exec(t);if(e?.[1]&&e[2])return{kind:"tag",tag:e[1],target:e[2]};const r=Fp.exec(t);return r?.[1]&&r[2]&&(r[1].startsWith("@")||r[1].includes("/")||r[1].includes("-"))?{kind:"project",projects:[r[1]],target:r[2]}:{kind:"all",target:t}},"parseTargetSelector"),Yc=kr(async(t,e,r,n)=>{const o=Lp(t);if(!o)throw new Error(`Invalid target selector: "${t}"`);const i=Object.keys(e.projects);if(o.kind==="all")return{projects:i,target:o.target};if(o.kind==="project")return{projects:o.projects??[],target:o.target};if(o.kind==="tag"){const d=o.tag;return{projects:i.filter(p=>e.projects[p]?.tags?.includes(d)??!1),target:o.target}}const s=_e(n,r)||".";let a,c=-1;for(const[d,p]of Object.entries(e.projects)){const g=p.root;g&&(s===g||s.startsWith(`${g}/`))&&g.length>c&&(c=g.length,a=d)}if(!a){if(process.stdout.isTTY){const d=dt({input:process.stdin,output:process.stderr}),p=Object.keys(e.projects).sort();process.stderr.write(`No project found at ${s}. Pick one:
|
|
3
3
|
`);for(const[y,v]of p.entries())process.stderr.write(` ${String(y+1)}) ${v}
|
|
4
4
|
`);const g=await new Promise(y=>{d.question("> ",y)});d.close();const m=Number.parseInt(g,10)-1;if(m>=0&&m<p.length)return{projects:[p[m]],target:o.target}}throw new Error(`No project found at or above ${s} for selector "${t}".`)}return{projects:[a],target:o.target}},"resolveSelector"),Vp=/^(\w+)\s*(!?=)\s*(.+)$/,Up=kr(t=>{const e=t.trim();if(e==="")return;const r=e.split("&&").map(d=>d.trim()),n=e.split("||").map(d=>d.trim()),o=r.length>1,i=n.length>1;if(o&&i)throw new Error("Query language does not support mixed && / || — split into multiple --query flags or simplify.");const s=i?n:r,a=i?"||":"&&",c=[];for(const d of s){const p=Vp.exec(d);if(!p)throw new Error(`Invalid query clause: "${d}". Expected <field>=<value> or <field>!=<value>.`);const[,g,m,y]=p;c.push({field:g,op:m==="!="?"!=":"=",value:y.trim().replaceAll(/^["']|["']$/g,"")})}return{clauses:c,op:a}},"parseQuery"),_s=kr((t,e,r)=>{const{field:n,op:o,value:i}=t,s=kr(c=>{const d=c===i;return o==="="?d:!d},"test"),a=kr(c=>{const d=(c??[]).includes(i);return o==="="?d:!d},"testList");switch(n){case"id":case"project":return s(e);case"language":return s(r.language);case"layer":return s(r.layer);case"projectType":case"type":return s(r.projectType);case"stack":return s(r.stack);case"tag":case"tags":return a(r.tags);default:return!1}},"matchClause"),xo=kr((t,e,r)=>{if(!r||r.trim()==="")return t;const n=Up(r);return n?t.filter(o=>{const i=e.projects[o];return i?n.op==="&&"?n.clauses.every(s=>_s(s,o,i)):n.clauses.some(s=>_s(s,o,i)):!1}):t},"filterProjectsByQuery");var _p=Object.defineProperty,kt=b((t,e)=>_p(t,"name",{value:e,configurable:!0}),"s$v");const Gp=kt((t,e=process.env,r=process.platform)=>{if(t===void 0)return!0;if(typeof t=="string"){const n=t.trim();if(n.startsWith("!")){const o=n.slice(1);return!e[o]}if(n.startsWith("$")){const o=n.slice(1);return!!e[o]}return!!e[n]}if(t.platform!==void 0&&!(Array.isArray(t.platform)?t.platform:[t.platform]).includes(r))return!1;if(t.env!==void 0){const n=e[t.env];return t.equals!==void 0?n===t.equals:t.in!==void 0?typeof n=="string"&&t.in.includes(n):!!n}return!0},"evaluateWhen"),Wp={server:{cache:!1,interactive:!1,persistent:!0,runInCI:!1},utility:{cache:!1,runInCI:!1}},zp=kt(t=>{const e=t.preset??t.options?.preset;if(!e)return t;const r=Wp[e];if(!r)return t;const{cache:n,...o}=r;return{...t,cache:t.cache??n,options:{...o,...t.options}}},"applyPreset"),Hp=kt(t=>{if(t!==void 0)return Array.isArray(t)?t:[t]},"normalizeOsType"),Wi=kt(()=>{const t=Ic();return t==="darwin"?"macos":t==="win32"?"windows":"linux"},"detectCurrentOs"),qp=kt((t,e=Wi())=>{const r=Hp(t?.osType);return!r||r.length===0?!0:r.includes(e)},"matchesOs"),Jp=kt((t,e,r=!0)=>{const n=t?.runInCI??!0;return n===!0||n==="always"?!0:n===!1?!e:n==="affected"?!e||r:!0},"shouldRunInCI"),Kc=kt((t,e)=>{if(e===!1)return{};const r=e===!0?Yp("production"):Array.isArray(e)?e:[e],n={};for(const o of r)Object.assign(n,Kp(t,o));return n},"loadEnvFile"),Yp=kt(t=>{const e=[".env"];return t&&e.push(`.env.${t}`),t!=="test"&&e.push(".env.local"),t&&t!=="test"&&e.push(`.env.${t}.local`),e},"resolveEnvCascade"),Kp=kt((t,e)=>{const r=e.startsWith("/")?e:w(t,e);if(!T(r))return{};let n;try{n=ee(r)}catch{return{}}const o={};for(const i of n.split(/\r?\n/)){const s=i.trim();if(s===""||s.startsWith("#"))continue;const a=s.indexOf("=");if(a===-1)continue;const c=s.slice(0,a).trim();if(c==="")continue;let d=s.slice(a+1).trim();(d.startsWith('"')&&d.endsWith('"')||d.startsWith("'")&&d.endsWith("'"))&&(d=d.slice(1,-1)),o[c]=d}return o},"loadSingleEnvFile"),Xp=kt((t,e=Wi())=>{if(t)return e==="windows"&&t.windowsShell?t.windowsShell:(e==="linux"||e==="macos")&&t.unixShell?t.unixShell:t.shell},"resolveTargetShell"),Qp=kt(t=>{if(t==="run")return!1;if(t==="build"||t==="test")return!0},"defaultCacheForType");var Zp=Object.defineProperty,ef=b((t,e)=>Zp(t,"name",{value:e,configurable:!0}),"s$u");class jr extends Error{static{b(this,"StagedError")}static{ef(this,"StagedError")}constructor(e,r){super(e,r),this.name=this.constructor.name}}var tf=Object.defineProperty,rf=b((t,e)=>tf(t,"name",{value:e,configurable:!0}),"o$v");class nf extends jr{static{b(this,"ApplyEmptyCommitError")}static{rf(this,"ApplyEmptyCommitError")}}var of=Object.defineProperty,sf=b((t,e)=>of(t,"name",{value:e,configurable:!0}),"o$u");class vt extends jr{static{b(this,"ConfigError")}static{sf(this,"ConfigError")}}var af=Object.defineProperty,cf=b((t,e)=>af(t,"name",{value:e,configurable:!0}),"t$l");class Gs extends jr{static{b(this,"GetBackupStashError")}static{cf(this,"GetBackupStashError")}}var lf=Object.defineProperty,df=b((t,e)=>lf(t,"name",{value:e,configurable:!0}),"s$t");class hn extends jr{static{b(this,"GitError")}static{df(this,"GitError")}stderr;constructor(e,r,n){super(e,n),this.stderr=r}}var uf=Object.defineProperty,pf=b((t,e)=>uf(t,"name",{value:e,configurable:!0}),"e$a");class Ws extends jr{static{b(this,"RestoreOriginalStateError")}static{pf(this,"RestoreOriginalStateError")}}var ff=Object.defineProperty,gf=b((t,e)=>ff(t,"name",{value:e,configurable:!0}),"o$r");class yr extends jr{static{b(this,"TaskError")}static{gf(this,"TaskError")}commandTitle;constructor(e,r,n){super(r,n),this.commandTitle=e}}var hf=Object.defineProperty,Co=b((t,e)=>hf(t,"name",{value:e,configurable:!0}),"i$h");const mf=Co(async t=>{if(t.config!==void 0)return t.config;throw new vt(`No staged config provided. Add \`staged\` to your vis.config.ts:
|
|
5
5
|
|
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.7",
|
|
4
4
|
"description": "A CLI task runner for monorepo workspaces, powered by @visulima/task-runner",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"visulima",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"LICENSE.md"
|
|
65
65
|
],
|
|
66
66
|
"dependencies": {
|
|
67
|
+
"@bomb.sh/tab": "^0.0.14",
|
|
67
68
|
"@nkzw/safe-word-list": "^3.1.2",
|
|
68
69
|
"@socketsecurity/registry": "^2.0.2",
|
|
69
70
|
"@visulima/ansi": "4.0.0-alpha.13",
|
|
@@ -93,14 +94,14 @@
|
|
|
93
94
|
"zeptomatch": "^2.1.0"
|
|
94
95
|
},
|
|
95
96
|
"optionalDependencies": {
|
|
96
|
-
"@visulima/vis-binding-darwin-arm64": "1.0.0-alpha.
|
|
97
|
-
"@visulima/vis-binding-darwin-x64": "1.0.0-alpha.
|
|
98
|
-
"@visulima/vis-binding-linux-arm64-gnu": "1.0.0-alpha.
|
|
99
|
-
"@visulima/vis-binding-linux-
|
|
100
|
-
"@visulima/vis-binding-linux-x64-
|
|
101
|
-
"@visulima/vis-binding-
|
|
102
|
-
"@visulima/vis-binding-
|
|
103
|
-
"@visulima/vis-binding-win32-x64-msvc": "1.0.0-alpha.
|
|
97
|
+
"@visulima/vis-binding-darwin-arm64": "1.0.0-alpha.7",
|
|
98
|
+
"@visulima/vis-binding-darwin-x64": "1.0.0-alpha.7",
|
|
99
|
+
"@visulima/vis-binding-linux-arm64-gnu": "1.0.0-alpha.7",
|
|
100
|
+
"@visulima/vis-binding-linux-x64-gnu": "1.0.0-alpha.7",
|
|
101
|
+
"@visulima/vis-binding-linux-x64-musl": "1.0.0-alpha.7",
|
|
102
|
+
"@visulima/vis-binding-win32-arm64-msvc": "1.0.0-alpha.7",
|
|
103
|
+
"@visulima/vis-binding-linux-arm64-musl": "1.0.0-alpha.7",
|
|
104
|
+
"@visulima/vis-binding-win32-x64-msvc": "1.0.0-alpha.7"
|
|
104
105
|
},
|
|
105
106
|
"engines": {
|
|
106
107
|
"node": "^22.14.0 || >=24.10.0"
|