@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.
Files changed (110) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE.md +3228 -110
  3. package/dist/bin.js +1 -1
  4. package/dist/binx.js +1 -1
  5. package/dist/packem_chunks/bin.js +468 -364
  6. package/dist/packem_chunks/bloom-status.js +1 -1
  7. package/dist/packem_chunks/bloom-sync.js +1 -1
  8. package/dist/packem_chunks/config.js +15 -15
  9. package/dist/packem_chunks/devtools.js +82 -0
  10. package/dist/packem_chunks/doctor-probe.js +1 -1
  11. package/dist/packem_chunks/fix.js +1 -1
  12. package/dist/packem_chunks/handler10.js +1 -1
  13. package/dist/packem_chunks/handler11.js +1 -1
  14. package/dist/packem_chunks/handler12.js +1 -1
  15. package/dist/packem_chunks/handler13.js +1 -1
  16. package/dist/packem_chunks/handler14.js +1 -1
  17. package/dist/packem_chunks/handler15.js +1 -1
  18. package/dist/packem_chunks/handler16.js +1 -1
  19. package/dist/packem_chunks/handler17.js +1 -1
  20. package/dist/packem_chunks/handler18.js +1 -1
  21. package/dist/packem_chunks/handler19.js +1 -1
  22. package/dist/packem_chunks/handler20.js +1 -1
  23. package/dist/packem_chunks/handler21.js +3 -3
  24. package/dist/packem_chunks/handler22.js +1 -1
  25. package/dist/packem_chunks/handler23.js +2 -2
  26. package/dist/packem_chunks/handler24.js +1 -1
  27. package/dist/packem_chunks/handler26.js +1 -1
  28. package/dist/packem_chunks/handler27.js +1 -1
  29. package/dist/packem_chunks/handler28.js +1 -1
  30. package/dist/packem_chunks/handler29.js +1 -1
  31. package/dist/packem_chunks/handler3.js +1 -1
  32. package/dist/packem_chunks/handler30.js +6 -6
  33. package/dist/packem_chunks/handler31.js +2 -2
  34. package/dist/packem_chunks/handler33.js +1 -1
  35. package/dist/packem_chunks/handler34.js +4 -4
  36. package/dist/packem_chunks/handler35.js +2 -2
  37. package/dist/packem_chunks/handler36.js +1 -1
  38. package/dist/packem_chunks/handler37.js +4 -4
  39. package/dist/packem_chunks/handler38.js +2 -2
  40. package/dist/packem_chunks/handler39.js +5 -5
  41. package/dist/packem_chunks/handler4.js +5 -5
  42. package/dist/packem_chunks/handler40.js +18 -18
  43. package/dist/packem_chunks/handler41.js +1 -1
  44. package/dist/packem_chunks/handler42.js +25 -10
  45. package/dist/packem_chunks/handler43.js +10 -25
  46. package/dist/packem_chunks/handler44.js +11 -11
  47. package/dist/packem_chunks/handler45.js +15 -15
  48. package/dist/packem_chunks/handler46.js +19 -19
  49. package/dist/packem_chunks/handler47.js +16 -16
  50. package/dist/packem_chunks/handler48.js +3 -3
  51. package/dist/packem_chunks/handler49.js +12 -12
  52. package/dist/packem_chunks/handler5.js +7 -7
  53. package/dist/packem_chunks/handler50.js +70 -71
  54. package/dist/packem_chunks/handler51.js +23 -23
  55. package/dist/packem_chunks/handler8.js +1 -1
  56. package/dist/packem_chunks/handler9.js +1 -1
  57. package/dist/packem_chunks/heal-accept.js +1 -1
  58. package/dist/packem_chunks/heal.js +1 -1
  59. package/dist/packem_chunks/help-command.js +7 -17
  60. package/dist/packem_chunks/index.js +3 -3
  61. package/dist/packem_chunks/keys-refresh.js +1 -1
  62. package/dist/packem_chunks/list.js +2 -2
  63. package/dist/packem_chunks/loader.js +1 -1
  64. package/dist/packem_chunks/prune.js +1 -1
  65. package/dist/packem_chunks/run.js +1 -1
  66. package/dist/packem_chunks/status.js +1 -1
  67. package/dist/packem_chunks/sync.js +1 -1
  68. package/dist/packem_chunks/sync2.js +1 -1
  69. package/dist/packem_chunks/tripwire.js +1 -1
  70. package/dist/packem_chunks/verify-lockfile.js +1 -1
  71. package/dist/packem_shared/Table-CwC2kW07-EjFLNV0q.js +12 -0
  72. package/dist/packem_shared/_commonjsHelpers-CLblCigl.js +1 -0
  73. package/dist/packem_shared/{advisories-xIOdLbAI.js → advisories-BxXiKFbL.js} +1 -1
  74. package/dist/packem_shared/{ai-analysis-Csn82p17.js → ai-analysis-BnmDFqc8.js} +5 -5
  75. package/dist/packem_shared/{ai-fix-BlYyz5bI.js → ai-fix-BGbnrWCz.js} +7 -7
  76. package/dist/packem_shared/{cyclonedx-B3ILsY74.js → cyclonedx-C2k2HmvI.js} +1 -1
  77. package/dist/packem_shared/{dependency-scan-s2MD0vi-.js → dependency-scan-Bki15Yi-.js} +1 -1
  78. package/dist/packem_shared/{docker-BynKrOLe.js → docker-k-Sl8b-w.js} +1 -1
  79. package/dist/packem_shared/{failure-log-B0Uh-65U.js → failure-log-C3bG1bCA.js} +1 -1
  80. package/dist/packem_shared/index-2r730kXY.js +29 -0
  81. package/dist/packem_shared/{index-B_KtN1MB.js → index-DBq4TVu5.js} +1 -1
  82. package/dist/packem_shared/{lifecycle-CJRNbN3x.js → lifecycle-B91p_ra8.js} +2 -2
  83. package/dist/packem_shared/{lockfile-BG1HvBzH.js → lockfile-DmDfgKaT.js} +1 -1
  84. package/dist/packem_shared/{min-release-age-aEn0x8Vy.js → min-release-age-B1Jm1_JY.js} +1 -1
  85. package/dist/packem_shared/{native-config-sync-DdhTLlKL.js → native-config-sync-Cnpj2xcn.js} +6 -6
  86. package/dist/packem_shared/{osv-bloom-BJhlc_I2.js → osv-bloom-ep8GlDGT.js} +2 -2
  87. package/dist/packem_shared/pm-runner-COoPLGKi.js +1 -0
  88. package/dist/packem_shared/{provenance-BuiEsWbI.js → provenance-DbkJRDqt.js} +1 -1
  89. package/dist/packem_shared/{registry-keys-pemEkRM9.js → registry-keys-SylX07bs.js} +1 -1
  90. package/dist/packem_shared/{resolve-explicit-RgRrUDZv.js → resolve-explicit-CJ_5wYSu.js} +1 -1
  91. package/dist/packem_shared/s1ngularity-DlS-4a6K.js +1 -0
  92. package/dist/packem_shared/scan-progress-CU4ttEHQ.js +2 -0
  93. package/dist/packem_shared/{signatures-LYMy8OR5.js → signatures-B-1u4t-c.js} +1 -1
  94. package/dist/packem_shared/spinner-B9ZPv1iT.js +1 -0
  95. package/dist/packem_shared/spinners-f91Rbo99-Bjf3NcO0.js +1 -0
  96. package/dist/packem_shared/tabs-C-qFIoUv.js +1 -0
  97. package/dist/packem_shared/typosquats-BxCOUvTJ.js +1 -0
  98. package/dist/packem_shared/use-measured-height-kIDCuc76.js +1 -0
  99. package/dist/packem_shared/vis-update-app-COYmjGKv.js +1 -0
  100. package/dist/packem_shared/{watch-loop-DLlMLg_J.js → watch-loop-CP318TfG.js} +2 -2
  101. package/index.js +26 -26
  102. package/package.json +9 -9
  103. package/dist/packem_shared/index-efSniSRN.js +0 -29
  104. package/dist/packem_shared/index.server-B7ETiT4C.js +0 -2
  105. package/dist/packem_shared/pm-runner-BwX5AL3W.js +0 -1
  106. package/dist/packem_shared/s1ngularity-Bs9fUf3q.js +0 -1
  107. package/dist/packem_shared/scan-progress-DjPT66jy.js +0 -2
  108. package/dist/packem_shared/typosquats-znskIR5j.js +0 -1
  109. package/dist/packem_shared/use-measured-height-DjYgUOKk.js +0 -1
  110. 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{c as W,y 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,K as _,H as A,W as ee,G as te,s as oe}from"./bin.js";import{render as O,renderToString as re}from"@visulima/tui";import{Text as y}from"@visulima/tui/components/text";import i from"react";import{H as se,e as ne,Z as ae}from"../packem_shared/ai-analysis-Csn82p17.js";import{A as ie}from"../packem_shared/pm-runner-BwX5AL3W.js";import{U as ce,C as le,a as D}from"../packem_shared/vis-update-app-qhQPV97i.js";var de=Object.defineProperty,ue=j((c,o)=>de(c,"name",{value:o,configurable:!0}),"A");const $e=ue(async({argument:c,logger:o,options:e,visConfig:a,workspaceRoot:R})=>{if(!R)throw new Error("Could not determine workspace root. Run this command inside a monorepo.");const u=R;if(e.securityConfig){const t=ie(u);if(W(a??{},t.name),e.sync&&t.name==="pnpm"){const r=q(a??{});if(r.length>0){m.info(`
2
- Settings that would sync to pnpm-workspace.yaml:`);for(const E of r)m.success(` ${E}`)}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&&!oe;let d;const z=h?(t,r)=>{d?d.rerender(i.createElement(D,{current:t,total:r})):d=O(i.createElement(D,{current:t,total:r}),{interactive:!0,patchConsole:!1})}:(t,r)=>{o.info(`Checking ${String(t)}/${String(r)} dependencies...`)};h||o.info(`Checking ${String(x)} catalog dependencies against npm registry...
3
- `);const $=new Set;U("socket")&&$.add("socket"),U("depsDev")&&$.add("deps-dev");const k=a?.security?.policies?.score?.minimum,H=Q(a?.security,{disabled:$,minimumScore:k}),{failed:C,outdated:n}=await X(v,N,M,z,u,H,a?.security?.acceptedRisks);if(d&&(d.clear(),d.unmount()),C.length>0&&o.warn(`Failed to fetch: ${C.join(", ")}`),n.length===0){o.info("All catalog dependencies are up to date.");return}const b=e.format??l.format??"table",I=se(e.aiType??"impact"),p=e.ai?await ne(n,o,a?.ai,I):void 0;if(h&&b==="table"){const t=new ce(n,p??null),r=a?.tui?.autoExit??!1,E=r===!0?3:typeof r=="number"?r:0;await O(i.createElement(le,{autoExitSeconds:E,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 s of n){const P=s.vulnerabilities?.length||s.socketReport&&s.socketReport.alerts.length>0,S=!!s.acceptedRisk,V=P?S?"✓":"⚠":"✓",Y=S?"gray":s.updateType==="major"?"red":s.updateType==="minor"?"yellow":"green",g=s.socketReport?.score.overall,G=g===void 0?"":` [${String(Math.round(g*100))}%]`,T=g===void 0?void 0:_(g);process.stdout.write(`${re(i.createElement(y,null," ",i.createElement(y,{color:Y},V),` ${s.packageName} ${s.currentRange} → ${s.newRange}`,i.createElement(y,{dimColor:!0},` ${s.updateType}`),T?i.createElement(y,{color:T},G):null),{columns:L})}
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(A(n,k))}else if(b==="json"){const t={failed:C,outdated:n};p&&(t.aiAnalysis=p),process.stdout.write(`${JSON.stringify(t,void 0,2)}
7
- `)}else b==="minimal"?process.stdout.write(`${ee(n)}
8
- `):(te(n,o),o.info(A(n,k)),p&&(o.info(""),o.info(ae(p))));e.exitCode&&n.length>0&&(process.exitCode=1)},"execute");export{$e as default};
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};