@preventive/triage 1.0.0-alpha.71 → 1.0.0-alpha.73

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 (145) hide show
  1. package/common/bundle-sources.d.ts +2 -0
  2. package/common/bundle-sources.js +19 -2
  3. package/common/finding-duplicates.js +5 -0
  4. package/common/finding-filters.js +45 -4
  5. package/common/line-diff.d.ts +2 -2
  6. package/common/line-diff.js +20 -8
  7. package/common/managed/finding-detail.js +1 -1
  8. package/common/managed/review-view-routes.js +23 -0
  9. package/common/managed/risk-routes.js +30 -0
  10. package/common/managed/routes.js +11 -6
  11. package/common/managed/team-app.d.ts +8 -6
  12. package/common/managed/team-app.js +15 -3
  13. package/common/stasis-files.d.ts +5 -0
  14. package/common/stasis-files.js +20 -0
  15. package/common/stasis-tgz.d.ts +6 -0
  16. package/common/stasis-tgz.js +27 -0
  17. package/common/workspace-app.js +20 -0
  18. package/out/activity.js +2 -4
  19. package/out/{chunk-2F3CYNPZ.js → chunk-2IHCVA3Y.js} +1 -1
  20. package/out/{chunk-HAZKDK4M.js → chunk-2V6Q4ZOZ.js} +1 -1
  21. package/out/{chunk-RRBIJL2B.js → chunk-4IW3VD3H.js} +1 -1
  22. package/out/chunk-4YZOXAXR.js +2 -0
  23. package/out/chunk-5NUDNLJA.js +6 -0
  24. package/out/chunk-5YP7P5KA.js +1 -0
  25. package/out/chunk-6VOB5WXX.js +2 -0
  26. package/out/chunk-74JZTGTO.js +11 -0
  27. package/out/chunk-7YFJUT2P.js +1 -0
  28. package/out/chunk-A4BBBHQU.js +1 -0
  29. package/out/{chunk-4ISO5F7Y.js → chunk-ADMVRLNP.js} +1 -1
  30. package/out/chunk-BIWPZT4E.js +52 -0
  31. package/out/{chunk-HETCVNO4.js → chunk-BLPHP4U3.js} +1 -1
  32. package/out/{chunk-Y5ZHFNBD.js → chunk-BXQCCW7F.js} +1 -1
  33. package/out/{chunk-JFL7WLRV.js → chunk-CU3FPB3P.js} +1 -1
  34. package/out/chunk-CXVBTUK3.js +4 -0
  35. package/out/{chunk-M37X4LCF.js → chunk-EXQQ5VQJ.js} +1 -1
  36. package/out/{chunk-NXATZJQ2.js → chunk-GSNSP3EF.js} +1 -1
  37. package/out/chunk-GV5U7OLP.js +40 -0
  38. package/out/{chunk-JOXLZXMI.js → chunk-GX5UXWT4.js} +1 -1
  39. package/out/{chunk-YF4M5OCI.js → chunk-I6UQQKAH.js} +1 -1
  40. package/out/{chunk-UCP3JRE2.js → chunk-LVW7WWV4.js} +1 -1
  41. package/out/chunk-NEFCZAIY.js +11 -0
  42. package/out/{chunk-TOXMUOIW.js → chunk-OQS2USZM.js} +1 -1
  43. package/out/chunk-PQPKHAI5.js +15 -0
  44. package/out/chunk-PX5DLFSD.js +1 -0
  45. package/out/chunk-QBFT2DDR.js +1 -0
  46. package/out/{chunk-GZ46SSTF.js → chunk-RGNF4OH6.js} +1 -1
  47. package/out/chunk-RLLA4GHZ.js +1 -0
  48. package/out/chunk-ROHACH7V.js +3 -0
  49. package/out/chunk-ROWUGPID.js +1 -0
  50. package/out/{chunk-QMVOEBWC.js → chunk-S2ZIKK45.js} +1 -1
  51. package/out/chunk-SSPDMA6D.js +1 -0
  52. package/out/chunk-TD7RVUTT.js +2 -0
  53. package/out/{chunk-4XIH7YTX.js → chunk-UH6NZBSU.js} +1 -1
  54. package/out/{chunk-M3Y6SLC4.js → chunk-UJP4PQJA.js} +1 -1
  55. package/out/{chunk-PAD2JHZT.js → chunk-UJSJMXEG.js} +1 -1
  56. package/out/{chunk-E3LFSUDJ.js → chunk-VYYUMYVW.js} +1 -1
  57. package/out/{chunk-VRX2APNA.js → chunk-XVKDPU4D.js} +1 -1
  58. package/out/chunk-Y2XGV3RC.js +8 -0
  59. package/out/chunk-YCEMQETS.js +255 -0
  60. package/out/client-managed-import.js +3 -3
  61. package/out/client-managed.js +30 -27
  62. package/out/compare.js +16 -25
  63. package/out/dialogs.js +38 -38
  64. package/out/graph.js +14 -14
  65. package/out/index.html +32 -52
  66. package/out/scan.js +2 -2
  67. package/out/terminal.js +239 -240
  68. package/out/view.css +1 -1
  69. package/out/view.js +15 -15
  70. package/package.json +21 -13
  71. package/risk/actions/resolve.js +56 -19
  72. package/risk/actions/uses.js +27 -9
  73. package/risk/actions/workflow.js +75 -2
  74. package/risk/files/characters.js +11 -0
  75. package/risk/files/hosts.js +4 -4
  76. package/risk/files/readability.js +5 -2
  77. package/risk/files/runs-code.js +12 -25
  78. package/risk/files/script.js +141 -19
  79. package/risk/files/source-map-link.js +43 -0
  80. package/risk/index.d.ts +24 -7
  81. package/risk/index.js +1 -0
  82. package/risk/npm/assess.js +1 -1
  83. package/risk/npm/compare.js +9 -30
  84. package/risk/npm/diff.js +1 -1
  85. package/risk/npm/held.js +6 -2
  86. package/risk/npm/registry.js +5 -2
  87. package/risk/npm/tarball.js +79 -22
  88. package/server-managed/bundle-advisories.ts +12 -36
  89. package/server-managed/bundle-build-worker.js +29 -11
  90. package/server-managed/bundle-build.ts +4 -3
  91. package/server-managed/bundle-cache.ts +53 -13
  92. package/server-managed/bundle.ts +45 -13
  93. package/server-managed/comparison.ts +3 -3
  94. package/server-managed/db-methods.ts +54 -17
  95. package/server-managed/db-neon.ts +9 -2
  96. package/server-managed/db-schema.ts +12 -2
  97. package/server-managed/db.ts +4 -1
  98. package/server-managed/dependency-reviews.ts +8 -5
  99. package/server-managed/github-errors.ts +22 -0
  100. package/server-managed/github-requests.ts +4 -2
  101. package/server-managed/http.ts +336 -76
  102. package/server-managed/management.ts +10 -4
  103. package/server-managed/npm-delta.ts +17 -2
  104. package/server-managed/npm-kept.ts +6 -0
  105. package/server-managed/npm-packages.ts +30 -29
  106. package/server-managed/npm-patch.ts +9 -9
  107. package/server-managed/package-entry-points.ts +54 -6
  108. package/server-managed/pull-dependencies.ts +4 -1
  109. package/server-managed/rename-diff-worker.js +11 -7
  110. package/server-managed/rename-diff.ts +5 -4
  111. package/server-managed/report-opening.ts +77 -0
  112. package/server-managed/report-sources.ts +2 -1
  113. package/server-managed/repository-aliases.ts +34 -0
  114. package/server-managed/repository-browser.ts +87 -32
  115. package/server-managed/repository-code.ts +6 -3
  116. package/server-managed/repository-dependency-reviews.ts +21 -0
  117. package/server-managed/repository-issues.ts +15 -9
  118. package/server-managed/repository-risk-read.ts +50 -4
  119. package/server-managed/repository-risk.ts +9 -2
  120. package/server-managed/stasis-config.ts +97 -5
  121. package/server-managed/stasis-dependencies.ts +7 -4
  122. package/server-managed/team-reports.ts +5 -3
  123. package/server-managed/type-only-proof.js +26 -4
  124. package/server-managed/upstream-cache.ts +18 -12
  125. package/server-managed/workspace-shares.ts +4 -4
  126. package/out/chunk-2HGKTQ5Q.js +0 -52
  127. package/out/chunk-45HTR22K.js +0 -4
  128. package/out/chunk-4RS3NDOG.js +0 -1
  129. package/out/chunk-7GJNLCXF.js +0 -15
  130. package/out/chunk-CGRIZ5M5.js +0 -1
  131. package/out/chunk-CQIT5UNK.js +0 -1
  132. package/out/chunk-D6NVKGGG.js +0 -10
  133. package/out/chunk-DTAR2BB6.js +0 -247
  134. package/out/chunk-MPXVKVPF.js +0 -3
  135. package/out/chunk-NB4JBTKK.js +0 -2
  136. package/out/chunk-QPGM3DTI.js +0 -42
  137. package/out/chunk-VFWMQ3LG.js +0 -2
  138. package/out/chunk-VG5RH6KN.js +0 -2
  139. package/out/chunk-WFDXHPT2.js +0 -12
  140. package/out/chunk-WMFDQS2L.js +0 -11
  141. package/out/chunk-WREU7JAG.js +0 -1
  142. /package/out/{chunk-JMG5DXII.js → chunk-7HP2VYIC.js} +0 -0
  143. /package/out/{chunk-HOB3YPS5.js → chunk-K4XJHM2T.js} +0 -0
  144. /package/out/{chunk-4EMM6UCD.js → chunk-QI66YA4F.js} +0 -0
  145. /package/out/{chunk-G3LY2FV4.js → chunk-WCDYSIKG.js} +0 -0
package/out/index.html CHANGED
@@ -4,20 +4,13 @@
4
4
  <base href="/">
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
- <!-- `worker-src 'self'` is what lets the brotli fallback decoder run
8
- off the main thread (view/brotli-decompress.js); `child-src` repeats
9
- it for browsers that predate `worker-src` and resolve a worker
10
- through `child-src` instead, and `frame-src 'none'` keeps that
11
- repeat from admitting frames, which `default-src 'none'` blocked.
12
- `require-trusted-types-for 'script'` has every sink that parses
13
- HTML or loads a script refuse a plain string, and `trusted-types`
14
- names the only policies that may bless one: Lit's `lit-html` for
15
- its templates, and `deepview` (view/trusted-types.js) for the
16
- markup and the worker URL the app sets outside Lit.
17
- `style-src 'self'` takes no inline style: no `style` attribute in
18
- markup and no style element. Styles come from the stylesheets,
19
- Lit's adopted sheets, and the CSSOM (`styleMap`, `element.style`),
20
- so markup that gets in can't restyle the page. -->
7
+ <!-- `worker-src` runs the brotli fallback off the main thread; `child-src`
8
+ repeats it for browsers predating `worker-src`, and `frame-src 'none'`
9
+ keeps that repeat from admitting frames. Trusted types: only Lit's
10
+ `lit-html` and `deepview` (view/trusted-types.js) may bless HTML or a
11
+ script URL. `style-src 'self'` allows no inline style, only
12
+ stylesheets, adopted sheets and the CSSOM, so injected markup can't
13
+ restyle the page. -->
21
14
  <meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; require-trusted-types-for 'script'; trusted-types lit-html deepview; worker-src 'self'; child-src 'self'; frame-src 'none'; style-src 'self'; img-src 'self'; manifest-src 'self'; form-action 'none'; connect-src 'self'">
22
15
  <title>DeepView</title>
23
16
  <link rel="icon" href="./icon.svg" type="image/svg+xml" />
@@ -31,28 +24,30 @@
31
24
  <link rel="preload" href="./view.css" as="style" />
32
25
  <link rel="modulepreload" href="./view.js" />
33
26
  <link rel="modulepreload" href="./chunk-R3NZFXVR.js" />
34
- <link rel="modulepreload" href="./chunk-45HTR22K.js" />
35
- <link rel="modulepreload" href="./chunk-DTAR2BB6.js" />
27
+ <link rel="modulepreload" href="./chunk-CXVBTUK3.js" />
28
+ <link rel="modulepreload" href="./chunk-YCEMQETS.js" />
29
+ <link rel="modulepreload" href="./chunk-A4BBBHQU.js" />
36
30
  <link rel="modulepreload" href="./chunk-JCIIBLKR.js" />
37
- <link rel="modulepreload" href="./chunk-E3LFSUDJ.js" />
38
- <link rel="modulepreload" href="./chunk-JMG5DXII.js" />
39
- <link rel="modulepreload" href="./chunk-2F3CYNPZ.js" />
40
- <link rel="modulepreload" href="./chunk-2HGKTQ5Q.js" />
41
- <link rel="modulepreload" href="./chunk-WFDXHPT2.js" />
31
+ <link rel="modulepreload" href="./chunk-VYYUMYVW.js" />
32
+ <link rel="modulepreload" href="./chunk-7HP2VYIC.js" />
33
+ <link rel="modulepreload" href="./chunk-PQPKHAI5.js" />
34
+ <link rel="modulepreload" href="./chunk-2IHCVA3Y.js" />
35
+ <link rel="modulepreload" href="./chunk-BIWPZT4E.js" />
36
+ <link rel="modulepreload" href="./chunk-5NUDNLJA.js" />
37
+ <link rel="modulepreload" href="./chunk-Y2XGV3RC.js" />
42
38
  <link rel="modulepreload" href="./chunk-NRPC74AM.js" />
43
39
  <link rel="modulepreload" href="./chunk-7BKKYVWR.js" />
44
40
  <link rel="modulepreload" href="./chunk-7C7DWL7I.js" />
45
41
  <link rel="modulepreload" href="./chunk-PNHBZGDD.js" />
46
- <link rel="modulepreload" href="./chunk-VFWMQ3LG.js" />
47
- <link rel="modulepreload" href="./chunk-QPGM3DTI.js" />
48
- <link rel="modulepreload" href="./chunk-HETCVNO4.js" />
49
- <link rel="modulepreload" href="./chunk-D6NVKGGG.js" />
42
+ <link rel="modulepreload" href="./chunk-GV5U7OLP.js" />
43
+ <link rel="modulepreload" href="./chunk-BLPHP4U3.js" />
44
+ <link rel="modulepreload" href="./chunk-74JZTGTO.js" />
50
45
  <link rel="modulepreload" href="./chunk-IYPY47MC.js" />
51
- <link rel="modulepreload" href="./chunk-PWFUOLZK.js" />
52
- <link rel="modulepreload" href="./chunk-4RS3NDOG.js" />
53
- <link rel="modulepreload" href="./chunk-QRKFPLA4.js" />
54
46
  <link rel="modulepreload" href="./chunk-74AEKRES.js" />
47
+ <link rel="modulepreload" href="./chunk-PWFUOLZK.js" />
55
48
  <link rel="modulepreload" href="./chunk-C4Z6ZBXV.js" />
49
+ <link rel="modulepreload" href="./chunk-5YP7P5KA.js" />
50
+ <link rel="modulepreload" href="./chunk-QRKFPLA4.js" />
56
51
  <link rel="modulepreload" href="./chunk-2XUEZHIP.js" />
57
52
  <link rel="modulepreload" href="./chunk-TUII34K2.js" />
58
53
  <link rel="modulepreload" href="./chunk-OOJM4CTU.js" />
@@ -63,12 +58,8 @@
63
58
 
64
59
  <theme-toggle></theme-toggle>
65
60
 
66
- <!-- App sidebar — Lit component, owns its own shadow-DOM chrome
67
- (brand header, search input, file list, sync button). The
68
- brand wordmark inside is the click target that routes to
69
- `goHome` via the sidebar's own click delegate; in WCO PWA
70
- mode the same brand is what the OS controls strip overlays
71
- onto (no light-DOM duplicate needed). -->
61
+ <!-- Its own shadow DOM holds the brand, search, list and sync button;
62
+ window-controls-overlay mode overlays the OS controls on its brand. -->
72
63
  <app-sidebar role="complementary" aria-label="Reports and workspaces" inert></app-sidebar>
73
64
 
74
65
  <main id="main-content">
@@ -97,11 +88,8 @@
97
88
  </button>
98
89
  <p class="drop-import-hint">Or reopen a report from the sidebar.</p>
99
90
  </div>
100
- <!-- Supported-formats list — each row's icon placeholder is
101
- filled at boot by view/drop-supported-icons.js with the
102
- same SVG markup the sidebar uses for its file / bundle /
103
- workspace rows (see view/file-display.js + view/icons.js
104
- for the source of truth). `data-icon` keys the lookup. -->
91
+ <!-- view/drop-supported-icons.js fills each `data-icon` with the
92
+ sidebar's own icon for it. -->
105
93
  <div class="drop-supported" aria-label="Supported formats">
106
94
  <section class="drop-supported-section">
107
95
  <h2>Reports</h2>
@@ -127,20 +115,15 @@
127
115
  <li><span class="drop-supported-icon" data-icon="workspace" aria-hidden="true"></span><span class="drop-supported-label">Workspace exports</span></li>
128
116
  </ul>
129
117
  </section>
130
- <!-- Not a report: a links file says which findings in the
131
- reports above are the same finding reported twice. Listed
132
- here because it is something you drop, and the drop zone
133
- is where the app says what it accepts. -->
118
+ <!-- Not a report: which findings of the reports are the same one. -->
134
119
  <section class="drop-supported-section">
135
120
  <h2>Links</h2>
136
121
  <ul>
137
122
  <li><span class="drop-supported-icon" data-icon="links" aria-hidden="true"></span><span class="drop-supported-label">Linked findings</span></li>
138
123
  </ul>
139
124
  </section>
140
- <!-- Not saved: a lockfile dropped opens alone, its packages
141
- graphed, and is gone once its view is (view/lockfile-drop.js).
142
- One row per ecosystem, with the icon the Code tab's tree gives
143
- its packages or files (view/lockfile-view.js reads them). -->
125
+ <!-- Not saved: a dropped lockfile opens alone (view/lockfile-drop.js).
126
+ One row per ecosystem, with its Code tab icon. -->
144
127
  <section class="drop-supported-section">
145
128
  <h2>Lockfiles</h2>
146
129
  <ul>
@@ -169,11 +152,8 @@
169
152
  <div id="report"></div>
170
153
  </main>
171
154
 
172
- <!-- Bundle source viewer overlay — rendered globally (sibling of
173
- #main-content) so the [Code →] shortcut on a finding can pop
174
- the same modal regardless of which view the user is on,
175
- without having to switch them to the bundles view first.
176
- Kept empty until render() puts the modal HTML in. -->
155
+ <!-- The bundle source modal, outside #main-content so a finding's [Code →]
156
+ opens it from any view; empty until render() fills it. -->
177
157
  <div id="bundle-source-overlay-slot"></div>
178
158
 
179
159
  </body>