@preventive/triage 1.0.0-alpha.74 → 1.0.0-alpha.76
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/common/finding-duplicates.js +4 -4
- package/common/finding-filters.js +11 -13
- package/common/managed/roles.ts +6 -0
- package/common/managed/routes.js +4 -3
- package/common/managed/team-app.d.ts +2 -0
- package/common/managed/team-app.js +31 -14
- package/out/activity.js +1 -1
- package/out/{chunk-C6OPCPCA.js → chunk-24LZZYAP.js} +1 -1
- package/out/{chunk-VRAJCPV5.js → chunk-EYTPAODY.js} +2 -2
- package/out/chunk-ITUKKCCK.js +10 -0
- package/out/{chunk-BLPHP4U3.js → chunk-IVDE66N5.js} +1 -1
- package/out/{chunk-VS7RV24Z.js → chunk-MFAB7P3T.js} +2 -2
- package/out/chunk-O6FA2R5G.js +53 -0
- package/out/chunk-OCE6KQGJ.js +40 -0
- package/out/{chunk-YI4D6XVX.js → chunk-RHOQDAU4.js} +1 -1
- package/out/{chunk-2IHCVA3Y.js → chunk-T6EXDRB7.js} +1 -1
- package/out/chunk-UZC7POI4.js +255 -0
- package/out/chunk-WGQ7D5DB.js +1 -0
- package/out/client-managed-import.js +1 -1
- package/out/client-managed.js +30 -30
- package/out/compare.js +4 -4
- package/out/dialogs.js +1 -1
- package/out/graph.js +6 -6
- package/out/index.html +8 -8
- package/out/prism.js +1 -1
- package/out/scan.js +1 -1
- package/out/view.css +1 -1
- package/out/view.js +4 -4
- package/package.json +5 -2
- package/risk/files/characters.js +142 -8
- package/risk/files/hosts.js +4 -3
- package/risk/files/readability.js +18 -13
- package/risk/files/runs-code.js +41 -80
- package/risk/files/script.js +210 -48
- package/risk/index.d.ts +4 -2
- package/risk/npm/assess.js +1 -1
- package/risk/npm/tarball.js +35 -19
- package/server-managed/dependency-review-comments.ts +22 -10
- package/server-managed/http.ts +74 -25
- package/server-managed/locked-packages.ts +62 -5
- package/server-managed/npm-packages.ts +7 -5
- package/server-managed/queue.ts +8 -7
- package/server-managed/repository-browser.ts +6 -3
- package/server-managed/repository-code.ts +3 -2
- package/server-managed/repository-risk-caches.ts +37 -0
- package/server-managed/repository-risk-read.ts +41 -18
- package/server-managed/repository-risk-stasis.ts +61 -0
- package/server-managed/repository-risk-turn.ts +97 -0
- package/server-managed/repository-risk.ts +128 -102
- package/server-managed/scan-downloads.ts +44 -10
- package/server-managed/team-app-summaries.ts +3 -1
- package/server-managed/team-app.ts +4 -2
- package/server-managed/team-reports.ts +8 -3
- package/out/chunk-5YP7P5KA.js +0 -1
- package/out/chunk-74AEKRES.js +0 -10
- package/out/chunk-DQJEVHRE.js +0 -52
- package/out/chunk-ESJZZF2Y.js +0 -255
- package/out/chunk-GV5U7OLP.js +0 -40
package/out/dialogs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,b as t,d as n,e as r,i,j as a}from"./chunk-
|
|
1
|
+
import{a as e,b as t,d as n,e as r,i,j as a}from"./chunk-MFAB7P3T.js";import{b as o,c as s,d as c,e as l,g as u}from"./chunk-24LZZYAP.js";import{A as d,d as f,e as p,z as m}from"./chunk-EYTPAODY.js";import"./chunk-6CCSTJWB.js";import{$ as h,$f as g,Bf as ee,Bg as te,C as ne,Cc as re,Cf as ie,D as ae,Dc as _,Df as oe,Ea as se,Ec as ce,Ef as le,Fc as ue,Ff as de,Gc as fe,Gf as pe,H as me,Hc as he,Ic as ge,If as v,J as _e,Jc as ve,Jf as ye,K as be,Kc as xe,Kf as Se,Lc as Ce,M as we,Mc as Te,Nc as Ee,Nf as De,Oc as Oe,Of as ke,Pc as Ae,Pf as y,Qb as je,Qf as Me,S as Ne,U as Pe,Uf as Fe,Ve as b,Vf as Ie,Wc as Le,Xb as Re,Xf as ze,Ya as Be,Ye as Ve,Yf as He,Za as Ue,Ze as We,Zf as Ge,_ as Ke,_f as qe,aa as Je,b as Ye,ba as Xe,bb as Ze,bg as Qe,ca as $e,d as et,da as tt,db as x,e as nt,ea as rt,eb as S,f as it,fa as at,fb as C,gb as w,h as ot,hb as st,i as ct,ib as lt,ie as ut,jb as T,je as dt,kb as E,l as ft,lf as pt,mb as D,nc as mt,oc as ht,qa as O,ra as gt,tf as _t,u as k,ub as vt,uf as yt,v as bt,vb as xt,vc as St,vf as Ct,w as wt,wb as Tt,wf as Et,x as Dt,xa as Ot,xb as kt,xf as At,y as jt,ya as Mt,yb as Nt,yf as Pt,zb as Ft}from"./chunk-UZC7POI4.js";import"./chunk-A4BBBHQU.js";import"./chunk-JCIIBLKR.js";import"./chunk-VYYUMYVW.js";import"./chunk-7HP2VYIC.js";import"./chunk-PQPKHAI5.js";import{h as It,i as Lt}from"./chunk-T6EXDRB7.js";import{Wa as Rt,b as A,m as zt,n as Bt}from"./chunk-O6FA2R5G.js";import{a as Vt}from"./chunk-62QT2RXR.js";import"./chunk-S5HSDGTP.js";import"./chunk-NRPC74AM.js";import"./chunk-7BKKYVWR.js";import"./chunk-7C7DWL7I.js";import"./chunk-PNHBZGDD.js";import{a as Ht}from"./chunk-R5O6FAW4.js";import{$ as Ut,Ga as Wt,U as Gt,aa as Kt,e as qt,ja as Jt}from"./chunk-OCE6KQGJ.js";import"./chunk-IVDE66N5.js";import"./chunk-74JZTGTO.js";import{e as Yt}from"./chunk-IYPY47MC.js";import{C as Xt,D as Zt,d as j}from"./chunk-ITUKKCCK.js";import{a as M,d as Qt}from"./chunk-PWFUOLZK.js";import"./chunk-C4Z6ZBXV.js";import{r as $t}from"./chunk-WGQ7D5DB.js";import{B as en,J as tn,L as nn,b as rn,k as an,p as on,v as sn}from"./chunk-QRKFPLA4.js";import{a as N,c as P,d as cn,g as F}from"./chunk-2XUEZHIP.js";import"./chunk-TUII34K2.js";import"./chunk-OOJM4CTU.js";var ln=`.inline-quote{background:rgb(from var(--accent) r g b / .1);padding:1px;border-radius:3px;color:var(--text)}.inline-code{background:var(--surface-active);border-radius:3px;border:1px solid var(--border);padding:0 .25em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;color:var(--text)}.para+.para{margin-top:.5lh}.md-list{margin:0;padding-inline-start:1.2em}.md-list li+li{margin-top:.25lh}.para+.md-list,.md-list+.para,.md-list+.md-list{margin-top:.5lh}.md-list li::marker{color:rgb(from currentcolor r g b / .45)}.md-list li.md-task{list-style:none;position:relative}.md-task>input{position:absolute;inset-inline-start:-1.2em;top:calc((1lh - .9em)/2);width:.9em;height:.9em;margin:0;font:inherit}.md-heading{font-weight:600}.md-heading:is([aria-level="1"],[aria-level="2"]){font-size:1.15em}.md-heading:not(:first-child){margin-top:.75lh}.md-heading+*{margin-top:.25lh}.md-rule{margin:.75lh 0;border:0;border-top:1px solid var(--border)}.code-block:not(.token){white-space:normal;margin:.4rem 0;border:1px solid var(--border);border-radius:var(--ui-radius, 4px);background:rgb(from var(--text) r g b / .05);overflow:hidden;width:fit-content;max-width:100%;.code-block-lang{padding:.15rem .5rem;border-bottom:1px solid var(--border);color:var(--muted);font-size:.62rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em}& pre{margin:0;padding:.4rem .55rem;overflow-x:auto;white-space:pre;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.95em;line-height:1.5;color:var(--text)}& code{font:inherit}}
|
|
2
2
|
`,un=`dialog{width:min(94vw,80rem);max-width:none;max-height:90dvh;margin:auto;padding:0;overflow:hidden}dialog[open]{display:flex;flex-direction:column}header{display:flex;align-items:start;gap:1rem;flex-shrink:0;padding:.8rem 1rem;border-bottom:1px solid var(--border)}header h3{display:flex;align-items:baseline;gap:.6rem;flex:1;min-width:0;margin:0;overflow-wrap:anywhere}header h3>span:last-child{min-width:0}header button{flex-shrink:0;border:0;background:transparent;color:var(--muted);font-family:inherit;font-size:1.4rem;line-height:1;padding:0 .25rem}header button:hover{color:var(--text)}.advisory-description{min-height:0;padding:1rem;overflow:auto;overscroll-behavior:contain;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.85rem;line-height:1.6}a{color:var(--accent)}button:focus-visible,.advisory-description:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
|
|
3
3
|
`,dn=class extends x{static styles=[...x.styles,N(ln),N(e),N(t),N(w),N(un)];static properties={heading:{attribute:!1},severity:{attribute:!1},_body:{state:!0}};connectedCallback(){super.connectedCallback(),this._dispose=A(()=>{this.isCurrent()?this._body=Le(Gt(this.markdown)):(this._body=F,queueMicrotask(this._onClose))})}disconnectedCallback(){this._dispose?.(),super.disconnectedCallback()}render(){return P`<dialog aria-labelledby="advisory-title" @close="${this._onClose}"><header><h3 id="advisory-title">${st(this.severity===`unknown`?`unrated`:this.severity)}<span>${this.heading}</span></h3><button type="button" aria-label="Close advisory details" @click="${this._onClose}">×</button></header><div class="advisory-description" tabindex="0">${this._body}</div></dialog>`}};customElements.define(`advisory-details-dialog`,dn);function fn(e){return S(`advisory-details-dialog`,e)}var pn=`dialog{max-width:640px;width:min(94vw,640px)}header h3{margin:0 0 .4rem}.finding{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:.35rem}.loc{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.76rem;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.desc{font-size:.78rem;color:var(--muted);margin:0 0 .7rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}textarea{display:block;width:100%;min-height:9rem;max-height:50vh;resize:vertical;padding:.55rem .65rem;border:1px solid var(--border);border-radius:var(--ui-radius, 6px);background:var(--bg);color:var(--text);font:inherit;font-size:.88rem;line-height:1.4;&:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgb(from var(--accent) r g b / .18)}&::placeholder{color:var(--muted)}}
|
|
4
4
|
`,mn=class extends x{static styles=[...x.styles,N(w),N(pn)];static properties={_value:{state:!0}};constructor(){super(),this._value=``}beforeOpen(){this._value=this.initial}focusInitial(){let e=this.renderRoot.querySelector(`textarea`);if(e){e.focus();try{e.setSelectionRange(e.value.length,e.value.length)}catch{}}}_onInput=e=>{this._value=e.target.value};_onSave=()=>{let e=this._value.trim();this._finish(e===this.initial.trim()?null:e)};_onKeydown=e=>{e.key===`Enter`&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),this._onSave())};render(){let e=this.initial.length>0;return P`<dialog @close="${this._onClose}"><header><h3>${e?`Edit comment`:`Add comment`}</h3>${lt(this.finding??{})}</header><textarea rows="6" placeholder="Write your notes here. Markdown is not rendered. Ctrl/⌘+Enter to save, Esc to cancel." .value="${this._value}" @input="${this._onInput}" @keydown="${this._onKeydown}"></textarea><footer class="nwd-actions">${e?P`<button type="button" class="danger" @click="${()=>this._finish(``)}">Clear</button>`:F} <span class="nwd-spacer"></span> <button type="button" @click="${this._onCancel}">Cancel</button> <button type="button" class="primary" @click="${this._onSave}">Save</button></footer></dialog>`}};customElements.define(`comment-dialog`,mn);function hn({initial:e=``,finding:t=null}={}){return S(`comment-dialog`,{initial:e??``,finding:t})}var I=`.lwd-body{margin:.2rem 0 .55rem;color:var(--text);font-size:.86rem;line-height:1.5}.lwd-empty{margin:.2rem 0 .55rem;color:var(--muted);font-size:.78rem}.lwd-note{margin:.2rem 0 .65rem;padding:.55rem .7rem;border:1px solid var(--border);border-radius:var(--ui-radius, 6px);background:rgb(from var(--text) r g b / .03);color:var(--muted);font-size:.78rem;line-height:1.45}.lwd-choice{margin:.2rem 0 .65rem;padding:.55rem .7rem .6rem;border:1px solid var(--border);border-radius:var(--ui-radius, 6px);background:rgb(from var(--text) r g b / .03);& legend{padding:0 .35rem;color:var(--text);font-size:.78rem;font-weight:500;& strong{font-weight:600}}}.lwd-option{display:flex;align-items:flex-start;gap:.5rem;padding:.3rem .15rem;& input[type=radio]{margin:.15rem 0 0;accent-color:var(--accent)}.lwd-option-text{display:flex;flex-direction:column;gap:.1rem;min-width:0}.lwd-option-title{color:var(--text);font-size:.82rem;line-height:1.35}.lwd-option-hint{color:var(--muted);font-size:.72rem;line-height:1.4}}.lwd-list{padding-left:1.1rem;color:var(--muted);font-size:.76rem;line-height:1.5;& li+li{margin-top:.2rem}& strong{color:var(--text);font-weight:600}}.lwd-kind-tag{display:inline-block;vertical-align:middle;margin-left:.3rem;padding:0 .35rem;border:1px solid var(--border);border-radius:3px;background:rgb(from var(--text) r g b / .04);color:var(--muted);font-size:.62rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em}.lwd-rename-input{margin-top:.2rem}.lwd-rename-error{margin:.25rem 0 0;color:var(--critical);font-size:.72rem;line-height:1.35}
|