@visulima/vis 1.0.0-alpha.27 → 1.0.0-alpha.28
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 +7 -0
- package/LICENSE.md +3228 -110
- package/dist/bin.js +1 -1
- package/dist/binx.js +1 -1
- package/dist/packem_chunks/bin.js +468 -364
- package/dist/packem_chunks/bloom-status.js +1 -1
- package/dist/packem_chunks/bloom-sync.js +1 -1
- package/dist/packem_chunks/config.js +15 -15
- package/dist/packem_chunks/devtools.js +82 -0
- package/dist/packem_chunks/doctor-probe.js +1 -1
- package/dist/packem_chunks/fix.js +1 -1
- package/dist/packem_chunks/handler10.js +1 -1
- package/dist/packem_chunks/handler11.js +1 -1
- package/dist/packem_chunks/handler12.js +1 -1
- package/dist/packem_chunks/handler13.js +1 -1
- package/dist/packem_chunks/handler14.js +1 -1
- package/dist/packem_chunks/handler15.js +1 -1
- package/dist/packem_chunks/handler16.js +1 -1
- package/dist/packem_chunks/handler17.js +1 -1
- package/dist/packem_chunks/handler18.js +1 -1
- package/dist/packem_chunks/handler19.js +1 -1
- package/dist/packem_chunks/handler20.js +1 -1
- package/dist/packem_chunks/handler21.js +3 -3
- package/dist/packem_chunks/handler22.js +1 -1
- package/dist/packem_chunks/handler23.js +2 -2
- package/dist/packem_chunks/handler24.js +1 -1
- package/dist/packem_chunks/handler26.js +1 -1
- package/dist/packem_chunks/handler27.js +1 -1
- package/dist/packem_chunks/handler28.js +1 -1
- package/dist/packem_chunks/handler29.js +1 -1
- package/dist/packem_chunks/handler3.js +1 -1
- package/dist/packem_chunks/handler30.js +6 -6
- package/dist/packem_chunks/handler31.js +2 -2
- package/dist/packem_chunks/handler33.js +1 -1
- package/dist/packem_chunks/handler34.js +4 -4
- package/dist/packem_chunks/handler35.js +2 -2
- package/dist/packem_chunks/handler36.js +1 -1
- package/dist/packem_chunks/handler37.js +4 -4
- package/dist/packem_chunks/handler38.js +2 -2
- package/dist/packem_chunks/handler39.js +5 -5
- package/dist/packem_chunks/handler4.js +5 -5
- package/dist/packem_chunks/handler40.js +18 -18
- package/dist/packem_chunks/handler41.js +1 -1
- package/dist/packem_chunks/handler42.js +25 -10
- package/dist/packem_chunks/handler43.js +10 -25
- package/dist/packem_chunks/handler44.js +11 -11
- package/dist/packem_chunks/handler45.js +15 -15
- package/dist/packem_chunks/handler46.js +19 -19
- package/dist/packem_chunks/handler47.js +16 -16
- package/dist/packem_chunks/handler48.js +3 -3
- package/dist/packem_chunks/handler49.js +12 -12
- package/dist/packem_chunks/handler5.js +7 -7
- package/dist/packem_chunks/handler50.js +70 -71
- package/dist/packem_chunks/handler51.js +23 -23
- package/dist/packem_chunks/handler8.js +1 -1
- package/dist/packem_chunks/handler9.js +1 -1
- package/dist/packem_chunks/heal-accept.js +1 -1
- package/dist/packem_chunks/heal.js +1 -1
- package/dist/packem_chunks/help-command.js +7 -17
- package/dist/packem_chunks/index.js +3 -3
- package/dist/packem_chunks/keys-refresh.js +1 -1
- package/dist/packem_chunks/list.js +2 -2
- package/dist/packem_chunks/loader.js +1 -1
- package/dist/packem_chunks/prune.js +1 -1
- package/dist/packem_chunks/run.js +1 -1
- package/dist/packem_chunks/status.js +1 -1
- package/dist/packem_chunks/sync.js +1 -1
- package/dist/packem_chunks/sync2.js +1 -1
- package/dist/packem_chunks/tripwire.js +1 -1
- package/dist/packem_chunks/verify-lockfile.js +1 -1
- package/dist/packem_shared/Table-CwC2kW07-EjFLNV0q.js +12 -0
- package/dist/packem_shared/_commonjsHelpers-CLblCigl.js +1 -0
- package/dist/packem_shared/{advisories-xIOdLbAI.js → advisories-BxXiKFbL.js} +1 -1
- package/dist/packem_shared/{ai-analysis-Csn82p17.js → ai-analysis-BnmDFqc8.js} +5 -5
- package/dist/packem_shared/{ai-fix-BlYyz5bI.js → ai-fix-BGbnrWCz.js} +7 -7
- package/dist/packem_shared/{cyclonedx-B3ILsY74.js → cyclonedx-C2k2HmvI.js} +1 -1
- package/dist/packem_shared/{dependency-scan-s2MD0vi-.js → dependency-scan-Bki15Yi-.js} +1 -1
- package/dist/packem_shared/{docker-BynKrOLe.js → docker-k-Sl8b-w.js} +1 -1
- package/dist/packem_shared/{failure-log-B0Uh-65U.js → failure-log-C3bG1bCA.js} +1 -1
- package/dist/packem_shared/index-2r730kXY.js +29 -0
- package/dist/packem_shared/{index-B_KtN1MB.js → index-DBq4TVu5.js} +1 -1
- package/dist/packem_shared/{lifecycle-CJRNbN3x.js → lifecycle-B91p_ra8.js} +2 -2
- package/dist/packem_shared/{lockfile-BG1HvBzH.js → lockfile-DmDfgKaT.js} +1 -1
- package/dist/packem_shared/{min-release-age-aEn0x8Vy.js → min-release-age-B1Jm1_JY.js} +1 -1
- package/dist/packem_shared/{native-config-sync-DdhTLlKL.js → native-config-sync-Cnpj2xcn.js} +6 -6
- package/dist/packem_shared/{osv-bloom-BJhlc_I2.js → osv-bloom-ep8GlDGT.js} +2 -2
- package/dist/packem_shared/pm-runner-COoPLGKi.js +1 -0
- package/dist/packem_shared/{provenance-BuiEsWbI.js → provenance-DbkJRDqt.js} +1 -1
- package/dist/packem_shared/{registry-keys-pemEkRM9.js → registry-keys-SylX07bs.js} +1 -1
- package/dist/packem_shared/{resolve-explicit-RgRrUDZv.js → resolve-explicit-CJ_5wYSu.js} +1 -1
- package/dist/packem_shared/s1ngularity-DlS-4a6K.js +1 -0
- package/dist/packem_shared/scan-progress-CU4ttEHQ.js +2 -0
- package/dist/packem_shared/{signatures-LYMy8OR5.js → signatures-B-1u4t-c.js} +1 -1
- package/dist/packem_shared/spinner-B9ZPv1iT.js +1 -0
- package/dist/packem_shared/spinners-f91Rbo99-Bjf3NcO0.js +1 -0
- package/dist/packem_shared/tabs-C-qFIoUv.js +1 -0
- package/dist/packem_shared/typosquats-BxCOUvTJ.js +1 -0
- package/dist/packem_shared/use-measured-height-kIDCuc76.js +1 -0
- package/dist/packem_shared/vis-update-app-COYmjGKv.js +1 -0
- package/dist/packem_shared/{watch-loop-DLlMLg_J.js → watch-loop-CP318TfG.js} +2 -2
- package/index.js +26 -26
- package/package.json +9 -9
- package/dist/packem_shared/index-efSniSRN.js +0 -29
- package/dist/packem_shared/index.server-B7ETiT4C.js +0 -2
- package/dist/packem_shared/pm-runner-BwX5AL3W.js +0 -1
- package/dist/packem_shared/s1ngularity-Bs9fUf3q.js +0 -1
- package/dist/packem_shared/scan-progress-DjPT66jy.js +0 -2
- package/dist/packem_shared/typosquats-znskIR5j.js +0 -1
- package/dist/packem_shared/use-measured-height-DjYgUOKk.js +0 -1
- package/dist/packem_shared/vis-update-app-qhQPV97i.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var J=Object.defineProperty;var j=(c,o)=>J(c,"name",{value:o,configurable:!0});import{
|
|
2
|
-
Settings that would sync to pnpm-workspace.yaml:`);for(const
|
|
3
|
-
`);const
|
|
4
|
-
`);for(const
|
|
1
|
+
var J=Object.defineProperty;var j=(c,o)=>J(c,"name",{value:o,configurable:!0});import{e as W,g as q,p as m,U as B,O as K,R as Z,F as f,i as U,b as Q,V as X,v as A,d as i,K as _,c as ee,n as y,H as O,W as te,G as oe,s as se}from"./bin.js";import{H as re,e as ne,Z as ae}from"../packem_shared/ai-analysis-BnmDFqc8.js";import{A as ie}from"../packem_shared/pm-runner-COoPLGKi.js";import{U as ce,C as le,a as D}from"../packem_shared/vis-update-app-COYmjGKv.js";var de=Object.defineProperty,ue=j((c,o)=>de(c,"name",{value:o,configurable:!0}),"A");const ve=ue(async({argument:c,logger:o,options:e,visConfig:a,workspaceRoot:$})=>{if(!$)throw new Error("Could not determine workspace root. Run this command inside a monorepo.");const u=$;if(e.securityConfig){const t=ie(u);if(W(a??{},t.name),e.sync&&t.name==="pnpm"){const s=q(a??{});if(s.length>0){m.info(`
|
|
2
|
+
Settings that would sync to pnpm-workspace.yaml:`);for(const R of s)m.success(` ${R}`)}else m.info("No security settings to sync.")}else e.sync&&t.name!=="pnpm"&&(m.info(`--sync is only available for pnpm projects. Your project uses ${t.name}.`),m.info("vis enforces security settings at the vis layer for non-pnpm projects."));if(!e.security&&!c?.length)return}const{packageManager:F}=B(u),M=K(u),l=a?.update??{},v=Z(u,F,{dev:e.dev,includeInternal:e["include-internal"],peer:e.peer,prod:e.prod});if(v.size===0){o.info("No catalogs found.");return}const w=e.target??l.target??"latest";if(!["latest","minor","patch"].includes(w))throw new Error(`Invalid target "${w}". Use: latest, minor, or patch.`);const N={exclude:[...f(e.exclude),...f(l.exclude)],ignore:f(l.ignore),include:[...f(e.include),...f(l.include),...c],includeLocked:!!e.includeLocked,includePrerelease:e.prerelease||l.prerelease||!1,security:e.security!==!1,target:w};let x=0;for(const t of v.values())x+=t.size;const h=!!process.stdout.isTTY&&!se;let d;const z=h?(t,s)=>{d?d.rerender(i.createElement(D,{current:t,total:s})):d=A(i.createElement(D,{current:t,total:s}),{interactive:!0,patchConsole:!1})}:(t,s)=>{o.info(`Checking ${String(t)}/${String(s)} dependencies...`)};h||o.info(`Checking ${String(x)} catalog dependencies against npm registry...
|
|
3
|
+
`);const C=new Set;U("socket")&&C.add("socket"),U("depsDev")&&C.add("deps-dev");const k=a?.security?.policies?.score?.minimum,H=Q(a?.security,{disabled:C,minimumScore:k}),{failed:b,outdated:n}=await X(v,N,M,z,u,H,a?.security?.acceptedRisks);if(d&&(d.clear(),d.unmount()),b.length>0&&o.warn(`Failed to fetch: ${b.join(", ")}`),n.length===0){o.info("All catalog dependencies are up to date.");return}const E=e.format??l.format??"table",I=re(e.aiType??"impact"),p=e.ai?await ne(n,o,a?.ai,I):void 0;if(h&&E==="table"){const t=new ce(n,p??null),s=a?.tui?.autoExit??!1,R=s===!0?3:typeof s=="number"?s:0;await A(i.createElement(le,{autoExitSeconds:R,isDryRun:!0,store:t}),{alternateScreen:!0,exitOnCtrlC:!1,interactive:!0,patchConsole:!0}).waitUntilExit();const L=process.stdout.columns||80;process.stdout.write(`
|
|
4
|
+
`);for(const r of n){const P=r.vulnerabilities?.length||r.socketReport&&r.socketReport.alerts.length>0,S=!!r.acceptedRisk,V=P?S?"✓":"⚠":"✓",Y=S?"gray":r.updateType==="major"?"red":r.updateType==="minor"?"yellow":"green",g=r.socketReport?.score.overall,G=g===void 0?"":` [${String(Math.round(g*100))}%]`,T=g===void 0?void 0:_(g);process.stdout.write(`${ee(i.createElement(y,null," ",i.createElement(y,{color:Y},V),` ${r.packageName} ${r.currentRange} → ${r.newRange}`,i.createElement(y,{dimColor:!0},` ${r.updateType}`),T?i.createElement(y,{color:T},G):null),{columns:L})}
|
|
5
5
|
`)}process.stdout.write(`
|
|
6
|
-
`),o.info(
|
|
7
|
-
`)}else
|
|
8
|
-
`):(
|
|
6
|
+
`),o.info(O(n,k))}else if(E==="json"){const t={failed:b,outdated:n};p&&(t.aiAnalysis=p),process.stdout.write(`${JSON.stringify(t,void 0,2)}
|
|
7
|
+
`)}else E==="minimal"?process.stdout.write(`${te(n)}
|
|
8
|
+
`):(oe(n,o),o.info(O(n,k)),p&&(o.info(""),o.info(ae(p))));e.exitCode&&n.length>0&&(process.exitCode=1)},"execute");export{ve as default};
|