zedbee 0.1.0-beta.12 → 0.1.0-beta.14

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 (1100) hide show
  1. package/README.md +3 -2
  2. package/SECURITY.md +2 -0
  3. package/THIRD_PARTY_NOTICES.md +130 -14
  4. package/dist/attribution/entities.d.ts.map +1 -1
  5. package/dist/attribution/entities.js +74 -72
  6. package/dist/attribution/entities.js.map +1 -1
  7. package/dist/attribution/metrics.d.ts +2 -0
  8. package/dist/attribution/metrics.d.ts.map +1 -1
  9. package/dist/attribution/metrics.js +8 -0
  10. package/dist/attribution/metrics.js.map +1 -1
  11. package/dist/attribution/pair-locations.js +1 -1
  12. package/dist/attribution/pair-locations.js.map +1 -1
  13. package/dist/attribution/source-identity.d.ts +6 -0
  14. package/dist/attribution/source-identity.d.ts.map +1 -0
  15. package/dist/attribution/source-identity.js +60 -0
  16. package/dist/attribution/source-identity.js.map +1 -0
  17. package/dist/cache/key.d.ts +6 -1
  18. package/dist/cache/key.d.ts.map +1 -1
  19. package/dist/cache/key.js +57 -21
  20. package/dist/cache/key.js.map +1 -1
  21. package/dist/cache/store.d.ts.map +1 -1
  22. package/dist/cache/store.js +7 -7
  23. package/dist/cache/store.js.map +1 -1
  24. package/dist/checks/applicability.d.ts.map +1 -1
  25. package/dist/checks/applicability.js +17 -14
  26. package/dist/checks/applicability.js.map +1 -1
  27. package/dist/checks/complexity/adapter.d.ts.map +1 -1
  28. package/dist/checks/complexity/adapter.js +72 -18
  29. package/dist/checks/complexity/adapter.js.map +1 -1
  30. package/dist/checks/complexity/pair-class-metrics.d.ts +12 -0
  31. package/dist/checks/complexity/pair-class-metrics.d.ts.map +1 -0
  32. package/dist/checks/complexity/pair-class-metrics.js +220 -0
  33. package/dist/checks/complexity/pair-class-metrics.js.map +1 -0
  34. package/dist/checks/dead-code/adapter.d.ts.map +1 -1
  35. package/dist/checks/dead-code/adapter.js +8 -97
  36. package/dist/checks/dead-code/adapter.js.map +1 -1
  37. package/dist/checks/dead-code/framework-entrypoints.d.ts +9 -0
  38. package/dist/checks/dead-code/framework-entrypoints.d.ts.map +1 -0
  39. package/dist/checks/dead-code/framework-entrypoints.js +47 -0
  40. package/dist/checks/dead-code/framework-entrypoints.js.map +1 -0
  41. package/dist/checks/dead-code/import-boundary.d.ts +1 -1
  42. package/dist/checks/dead-code/import-boundary.d.ts.map +1 -1
  43. package/dist/checks/dead-code/import-boundary.js +3 -1
  44. package/dist/checks/dead-code/import-boundary.js.map +1 -1
  45. package/dist/checks/dead-code/knip-worker.js +19 -8
  46. package/dist/checks/dead-code/knip-worker.js.map +1 -1
  47. package/dist/checks/dead-code/managed-config.d.ts +4 -2
  48. package/dist/checks/dead-code/managed-config.d.ts.map +1 -1
  49. package/dist/checks/dead-code/managed-config.js +29 -2
  50. package/dist/checks/dead-code/managed-config.js.map +1 -1
  51. package/dist/checks/dead-code/parse-report.d.ts.map +1 -1
  52. package/dist/checks/dead-code/parse-report.js +26 -23
  53. package/dist/checks/dead-code/parse-report.js.map +1 -1
  54. package/dist/checks/dependency-architecture/adapter.d.ts.map +1 -1
  55. package/dist/checks/dependency-architecture/adapter.js +57 -46
  56. package/dist/checks/dependency-architecture/adapter.js.map +1 -1
  57. package/dist/checks/dependency-architecture/normalize-graph.d.ts +2 -0
  58. package/dist/checks/dependency-architecture/normalize-graph.d.ts.map +1 -1
  59. package/dist/checks/dependency-architecture/normalize-graph.js +12 -3
  60. package/dist/checks/dependency-architecture/normalize-graph.js.map +1 -1
  61. package/dist/checks/diagnostic-messages.d.ts +4 -0
  62. package/dist/checks/diagnostic-messages.d.ts.map +1 -0
  63. package/dist/checks/diagnostic-messages.js +50 -0
  64. package/dist/checks/diagnostic-messages.js.map +1 -0
  65. package/dist/checks/dispatch-adapter.d.ts +25 -0
  66. package/dist/checks/dispatch-adapter.d.ts.map +1 -0
  67. package/dist/checks/dispatch-adapter.js +133 -0
  68. package/dist/checks/dispatch-adapter.js.map +1 -0
  69. package/dist/checks/dispatch-cache.d.ts +9 -0
  70. package/dist/checks/dispatch-cache.d.ts.map +1 -0
  71. package/dist/checks/dispatch-cache.js +154 -0
  72. package/dist/checks/dispatch-cache.js.map +1 -0
  73. package/dist/checks/dispatch-context.d.ts +11 -0
  74. package/dist/checks/dispatch-context.d.ts.map +1 -0
  75. package/dist/checks/dispatch-context.js +155 -0
  76. package/dist/checks/dispatch-context.js.map +1 -0
  77. package/dist/checks/dispatch-target.d.ts +17 -0
  78. package/dist/checks/dispatch-target.d.ts.map +1 -0
  79. package/dist/checks/dispatch-target.js +167 -0
  80. package/dist/checks/dispatch-target.js.map +1 -0
  81. package/dist/checks/dispatcher.d.ts +3 -7
  82. package/dist/checks/dispatcher.d.ts.map +1 -1
  83. package/dist/checks/dispatcher.js +12 -642
  84. package/dist/checks/dispatcher.js.map +1 -1
  85. package/dist/checks/duplication/adapter.d.ts.map +1 -1
  86. package/dist/checks/duplication/adapter.js +44 -6
  87. package/dist/checks/duplication/adapter.js.map +1 -1
  88. package/dist/checks/duplication/clone-comparison.d.ts +6 -0
  89. package/dist/checks/duplication/clone-comparison.d.ts.map +1 -0
  90. package/dist/checks/duplication/clone-comparison.js +163 -0
  91. package/dist/checks/duplication/clone-comparison.js.map +1 -0
  92. package/dist/checks/duplication/normalize-clone.d.ts.map +1 -1
  93. package/dist/checks/duplication/normalize-clone.js +9 -0
  94. package/dist/checks/duplication/normalize-clone.js.map +1 -1
  95. package/dist/checks/duplication/source-tokens.d.ts +18 -0
  96. package/dist/checks/duplication/source-tokens.d.ts.map +1 -0
  97. package/dist/checks/duplication/source-tokens.js +68 -0
  98. package/dist/checks/duplication/source-tokens.js.map +1 -0
  99. package/dist/checks/duplication/types.d.ts +2 -0
  100. package/dist/checks/duplication/types.d.ts.map +1 -1
  101. package/dist/checks/engine-identity.d.ts.map +1 -1
  102. package/dist/checks/engine-identity.js +9 -8
  103. package/dist/checks/engine-identity.js.map +1 -1
  104. package/dist/checks/eslint/convert-message.d.ts +2 -0
  105. package/dist/checks/eslint/convert-message.d.ts.map +1 -1
  106. package/dist/checks/eslint/convert-message.js +34 -1
  107. package/dist/checks/eslint/convert-message.js.map +1 -1
  108. package/dist/checks/eslint/lint-adapter.d.ts.map +1 -1
  109. package/dist/checks/eslint/lint-adapter.js +17 -13
  110. package/dist/checks/eslint/lint-adapter.js.map +1 -1
  111. package/dist/checks/events.d.ts +7 -1
  112. package/dist/checks/events.d.ts.map +1 -1
  113. package/dist/checks/metadata.d.ts +4 -2
  114. package/dist/checks/metadata.d.ts.map +1 -1
  115. package/dist/checks/metadata.js +7 -4
  116. package/dist/checks/metadata.js.map +1 -1
  117. package/dist/checks/observation-result.d.ts.map +1 -1
  118. package/dist/checks/observation-result.js +26 -14
  119. package/dist/checks/observation-result.js.map +1 -1
  120. package/dist/checks/prettier/project-engine.d.ts +8 -14
  121. package/dist/checks/prettier/project-engine.d.ts.map +1 -1
  122. package/dist/checks/prettier/project-engine.js +33 -281
  123. package/dist/checks/prettier/project-engine.js.map +1 -1
  124. package/dist/checks/prettier/project-error.d.ts +7 -0
  125. package/dist/checks/prettier/project-error.d.ts.map +1 -0
  126. package/dist/checks/prettier/project-error.js +12 -0
  127. package/dist/checks/prettier/project-error.js.map +1 -0
  128. package/dist/checks/prettier/project-import-capture.d.ts +20 -0
  129. package/dist/checks/prettier/project-import-capture.d.ts.map +1 -0
  130. package/dist/checks/prettier/project-import-capture.js +173 -0
  131. package/dist/checks/prettier/project-import-capture.js.map +1 -0
  132. package/dist/checks/prettier/project-import-dependencies.d.ts +5 -0
  133. package/dist/checks/prettier/project-import-dependencies.d.ts.map +1 -0
  134. package/dist/checks/prettier/project-import-dependencies.js +84 -0
  135. package/dist/checks/prettier/project-import-dependencies.js.map +1 -0
  136. package/dist/checks/prettier/project-installation.d.ts +3 -0
  137. package/dist/checks/prettier/project-installation.d.ts.map +1 -0
  138. package/dist/checks/prettier/project-installation.js +204 -0
  139. package/dist/checks/prettier/project-installation.js.map +1 -0
  140. package/dist/checks/prettier/project-protocol.d.ts.map +1 -1
  141. package/dist/checks/prettier/project-protocol.js +15 -3
  142. package/dist/checks/prettier/project-protocol.js.map +1 -1
  143. package/dist/checks/prettier/project-snapshot-identity.d.ts +7 -0
  144. package/dist/checks/prettier/project-snapshot-identity.d.ts.map +1 -0
  145. package/dist/checks/prettier/project-snapshot-identity.js +63 -0
  146. package/dist/checks/prettier/project-snapshot-identity.js.map +1 -0
  147. package/dist/checks/prettier/project-types.d.ts +2 -0
  148. package/dist/checks/prettier/project-types.d.ts.map +1 -1
  149. package/dist/checks/prettier/project-worker.js +25 -3
  150. package/dist/checks/prettier/project-worker.js.map +1 -1
  151. package/dist/checks/prettier/project-workspace.d.ts +7 -0
  152. package/dist/checks/prettier/project-workspace.d.ts.map +1 -1
  153. package/dist/checks/prettier/project-workspace.js +101 -40
  154. package/dist/checks/prettier/project-workspace.js.map +1 -1
  155. package/dist/checks/project-inputs.d.ts +6 -0
  156. package/dist/checks/project-inputs.d.ts.map +1 -0
  157. package/dist/checks/project-inputs.js +70 -0
  158. package/dist/checks/project-inputs.js.map +1 -0
  159. package/dist/checks/runner/process-group.d.ts.map +1 -1
  160. package/dist/checks/runner/process-group.js +30 -2
  161. package/dist/checks/runner/process-group.js.map +1 -1
  162. package/dist/checks/secrets/content.d.ts.map +1 -1
  163. package/dist/checks/secrets/content.js +35 -16
  164. package/dist/checks/secrets/content.js.map +1 -1
  165. package/dist/checks/typescript/adapter.d.ts.map +1 -1
  166. package/dist/checks/typescript/adapter.js +6 -14
  167. package/dist/checks/typescript/adapter.js.map +1 -1
  168. package/dist/checks/typescript/aliases.d.ts +28 -0
  169. package/dist/checks/typescript/aliases.d.ts.map +1 -0
  170. package/dist/checks/typescript/aliases.js +259 -0
  171. package/dist/checks/typescript/aliases.js.map +1 -0
  172. package/dist/checks/typescript/configuration-paths.d.ts +8 -0
  173. package/dist/checks/typescript/configuration-paths.d.ts.map +1 -0
  174. package/dist/checks/typescript/configuration-paths.js +138 -0
  175. package/dist/checks/typescript/configuration-paths.js.map +1 -0
  176. package/dist/checks/typescript/convert-diagnostic.d.ts +2 -0
  177. package/dist/checks/typescript/convert-diagnostic.d.ts.map +1 -1
  178. package/dist/checks/typescript/convert-diagnostic.js +23 -5
  179. package/dist/checks/typescript/convert-diagnostic.js.map +1 -1
  180. package/dist/checks/typescript/project-coverage.d.ts +16 -0
  181. package/dist/checks/typescript/project-coverage.d.ts.map +1 -0
  182. package/dist/checks/typescript/project-coverage.js +49 -0
  183. package/dist/checks/typescript/project-coverage.js.map +1 -0
  184. package/dist/checks/vulnerabilities/inventory/normalize.d.ts +1 -0
  185. package/dist/checks/vulnerabilities/inventory/normalize.d.ts.map +1 -1
  186. package/dist/checks/vulnerabilities/inventory/normalize.js +5 -2
  187. package/dist/checks/vulnerabilities/inventory/normalize.js.map +1 -1
  188. package/dist/checks/vulnerabilities/inventory/parse-bun.d.ts.map +1 -1
  189. package/dist/checks/vulnerabilities/inventory/parse-bun.js +18 -7
  190. package/dist/checks/vulnerabilities/inventory/parse-bun.js.map +1 -1
  191. package/dist/checks/vulnerabilities/inventory/parse-yarn.d.ts.map +1 -1
  192. package/dist/checks/vulnerabilities/inventory/parse-yarn.js +21 -11
  193. package/dist/checks/vulnerabilities/inventory/parse-yarn.js.map +1 -1
  194. package/dist/cli.d.ts.map +1 -1
  195. package/dist/cli.js +3 -0
  196. package/dist/cli.js.map +1 -1
  197. package/dist/commands/agent.js +1 -1
  198. package/dist/commands/agent.js.map +1 -1
  199. package/dist/commands/checks.d.ts +5 -2
  200. package/dist/commands/checks.d.ts.map +1 -1
  201. package/dist/commands/checks.js +18 -5
  202. package/dist/commands/checks.js.map +1 -1
  203. package/dist/commands/fix.d.ts.map +1 -1
  204. package/dist/commands/fix.js +6 -297
  205. package/dist/commands/fix.js.map +1 -1
  206. package/dist/commands/init.d.ts +4 -2
  207. package/dist/commands/init.d.ts.map +1 -1
  208. package/dist/commands/init.js +36 -379
  209. package/dist/commands/init.js.map +1 -1
  210. package/dist/commands/scan.d.ts +2 -1
  211. package/dist/commands/scan.d.ts.map +1 -1
  212. package/dist/commands/scan.js +6 -13
  213. package/dist/commands/scan.js.map +1 -1
  214. package/dist/commands/telemetry.d.ts.map +1 -1
  215. package/dist/commands/telemetry.js +3 -0
  216. package/dist/commands/telemetry.js.map +1 -1
  217. package/dist/config/load-config.d.ts.map +1 -1
  218. package/dist/config/load-config.js +6 -15
  219. package/dist/config/load-config.js.map +1 -1
  220. package/dist/config/selection-path.d.ts +7 -0
  221. package/dist/config/selection-path.d.ts.map +1 -0
  222. package/dist/config/selection-path.js +20 -0
  223. package/dist/config/selection-path.js.map +1 -0
  224. package/dist/core/check-label.d.ts +2 -0
  225. package/dist/core/check-label.d.ts.map +1 -0
  226. package/dist/core/check-label.js +19 -0
  227. package/dist/core/check-label.js.map +1 -0
  228. package/dist/core/freeze-result.d.ts +3 -0
  229. package/dist/core/freeze-result.d.ts.map +1 -0
  230. package/dist/core/freeze-result.js +10 -0
  231. package/dist/core/freeze-result.js.map +1 -0
  232. package/dist/core/immutable-map.d.ts +3 -0
  233. package/dist/core/immutable-map.d.ts.map +1 -0
  234. package/dist/core/immutable-map.js +33 -0
  235. package/dist/core/immutable-map.js.map +1 -0
  236. package/dist/core/kernel-lease.d.ts +17 -0
  237. package/dist/core/kernel-lease.d.ts.map +1 -0
  238. package/dist/core/kernel-lease.js +55 -0
  239. package/dist/core/kernel-lease.js.map +1 -0
  240. package/dist/fixes/apply-plan.d.ts.map +1 -1
  241. package/dist/fixes/apply-plan.js +2 -9
  242. package/dist/fixes/apply-plan.js.map +1 -1
  243. package/dist/fixes/build-plan.d.ts +5 -5
  244. package/dist/fixes/build-plan.d.ts.map +1 -1
  245. package/dist/fixes/build-plan.js +15 -466
  246. package/dist/fixes/build-plan.js.map +1 -1
  247. package/dist/fixes/exact-edits.d.ts +11 -1
  248. package/dist/fixes/exact-edits.d.ts.map +1 -1
  249. package/dist/fixes/exact-edits.js +101 -46
  250. package/dist/fixes/exact-edits.js.map +1 -1
  251. package/dist/fixes/plan-candidates.d.ts +8 -0
  252. package/dist/fixes/plan-candidates.d.ts.map +1 -0
  253. package/dist/fixes/plan-candidates.js +144 -0
  254. package/dist/fixes/plan-candidates.js.map +1 -0
  255. package/dist/fixes/prettier-provider.d.ts +3 -2
  256. package/dist/fixes/prettier-provider.d.ts.map +1 -1
  257. package/dist/fixes/prettier-provider.js +53 -0
  258. package/dist/fixes/prettier-provider.js.map +1 -1
  259. package/dist/fixes/public-plan.d.ts +8 -0
  260. package/dist/fixes/public-plan.d.ts.map +1 -0
  261. package/dist/fixes/public-plan.js +194 -0
  262. package/dist/fixes/public-plan.js.map +1 -0
  263. package/dist/fixes/working-preview.d.ts +18 -0
  264. package/dist/fixes/working-preview.d.ts.map +1 -0
  265. package/dist/fixes/working-preview.js +162 -0
  266. package/dist/fixes/working-preview.js.map +1 -0
  267. package/dist/git/change-set.d.ts.map +1 -1
  268. package/dist/git/change-set.js +10 -9
  269. package/dist/git/change-set.js.map +1 -1
  270. package/dist/git/client.d.ts +16 -0
  271. package/dist/git/client.d.ts.map +1 -1
  272. package/dist/git/client.js +46 -3
  273. package/dist/git/client.js.map +1 -1
  274. package/dist/git/merge-comparison.d.ts.map +1 -1
  275. package/dist/git/merge-comparison.js +16 -4
  276. package/dist/git/merge-comparison.js.map +1 -1
  277. package/dist/git/selected-comparison.d.ts +13 -0
  278. package/dist/git/selected-comparison.d.ts.map +1 -0
  279. package/dist/git/selected-comparison.js +143 -0
  280. package/dist/git/selected-comparison.js.map +1 -0
  281. package/dist/git/snapshot-work.d.ts +18 -0
  282. package/dist/git/snapshot-work.d.ts.map +1 -0
  283. package/dist/git/snapshot-work.js +59 -0
  284. package/dist/git/snapshot-work.js.map +1 -0
  285. package/dist/git/snapshot.d.ts +6 -1
  286. package/dist/git/snapshot.d.ts.map +1 -1
  287. package/dist/git/snapshot.js +102 -5
  288. package/dist/git/snapshot.js.map +1 -1
  289. package/dist/init/formatter-setup.d.ts +29 -0
  290. package/dist/init/formatter-setup.d.ts.map +1 -0
  291. package/dist/init/formatter-setup.js +166 -0
  292. package/dist/init/formatter-setup.js.map +1 -0
  293. package/dist/init/import-provenance.d.ts +7 -0
  294. package/dist/init/import-provenance.d.ts.map +1 -0
  295. package/dist/init/import-provenance.js +58 -0
  296. package/dist/init/import-provenance.js.map +1 -0
  297. package/dist/init/install-dependency.d.mts +40 -0
  298. package/dist/init/install-dependency.mjs +427 -0
  299. package/dist/init/install-project.d.ts +1 -0
  300. package/dist/init/install-project.d.ts.map +1 -1
  301. package/dist/init/install-project.js +12 -31
  302. package/dist/init/install-project.js.map +1 -1
  303. package/dist/init/presentation.d.ts +54 -0
  304. package/dist/init/presentation.d.ts.map +1 -0
  305. package/dist/init/presentation.js +139 -0
  306. package/dist/init/presentation.js.map +1 -0
  307. package/dist/init/selection-policy.d.ts +29 -0
  308. package/dist/init/selection-policy.d.ts.map +1 -0
  309. package/dist/init/selection-policy.js +59 -0
  310. package/dist/init/selection-policy.js.map +1 -0
  311. package/dist/init/types.d.ts +7 -0
  312. package/dist/init/types.d.ts.map +1 -1
  313. package/dist/init/types.js.map +1 -1
  314. package/dist/init/write-config.d.ts.map +1 -1
  315. package/dist/init/write-config.js +3 -13
  316. package/dist/init/write-config.js.map +1 -1
  317. package/dist/inspection/inspect-repository.d.ts.map +1 -1
  318. package/dist/inspection/inspect-repository.js +17 -3
  319. package/dist/inspection/inspect-repository.js.map +1 -1
  320. package/dist/inspection/snapshot-registry.d.ts +2 -0
  321. package/dist/inspection/snapshot-registry.d.ts.map +1 -1
  322. package/dist/inspection/snapshot-registry.js +58 -7
  323. package/dist/inspection/snapshot-registry.js.map +1 -1
  324. package/dist/inspection/types.d.ts +6 -1
  325. package/dist/inspection/types.d.ts.map +1 -1
  326. package/dist/inspection/types.js +7 -1
  327. package/dist/inspection/types.js.map +1 -1
  328. package/dist/inspection/workspaces.d.ts.map +1 -1
  329. package/dist/inspection/workspaces.js +17 -0
  330. package/dist/inspection/workspaces.js.map +1 -1
  331. package/dist/reporting/check-label.d.ts +1 -1
  332. package/dist/reporting/check-label.d.ts.map +1 -1
  333. package/dist/reporting/check-label.js +1 -18
  334. package/dist/reporting/check-label.js.map +1 -1
  335. package/dist/reporting/fix-plan-store.d.ts +7 -0
  336. package/dist/reporting/fix-plan-store.d.ts.map +1 -0
  337. package/dist/reporting/fix-plan-store.js +29 -0
  338. package/dist/reporting/fix-plan-store.js.map +1 -0
  339. package/dist/reporting/fix-presentation.d.ts +77 -0
  340. package/dist/reporting/fix-presentation.d.ts.map +1 -0
  341. package/dist/reporting/fix-presentation.js +262 -0
  342. package/dist/reporting/fix-presentation.js.map +1 -0
  343. package/dist/reporting/temporary-report-common.d.ts +27 -0
  344. package/dist/reporting/temporary-report-common.d.ts.map +1 -0
  345. package/dist/reporting/temporary-report-common.js +33 -0
  346. package/dist/reporting/temporary-report-common.js.map +1 -0
  347. package/dist/reporting/temporary-report-filesystem.d.ts +6 -0
  348. package/dist/reporting/temporary-report-filesystem.d.ts.map +1 -0
  349. package/dist/reporting/temporary-report-filesystem.js +124 -0
  350. package/dist/reporting/temporary-report-filesystem.js.map +1 -0
  351. package/dist/reporting/temporary-report-lifecycle.d.ts +19 -0
  352. package/dist/reporting/temporary-report-lifecycle.d.ts.map +1 -0
  353. package/dist/reporting/temporary-report-lifecycle.js +278 -0
  354. package/dist/reporting/temporary-report-lifecycle.js.map +1 -0
  355. package/dist/reporting/temporary-report-lock.d.ts +21 -0
  356. package/dist/reporting/temporary-report-lock.d.ts.map +1 -0
  357. package/dist/reporting/temporary-report-lock.js +106 -0
  358. package/dist/reporting/temporary-report-lock.js.map +1 -0
  359. package/dist/reporting/temporary-reports.d.ts +3 -24
  360. package/dist/reporting/temporary-reports.d.ts.map +1 -1
  361. package/dist/reporting/temporary-reports.js +10 -534
  362. package/dist/reporting/temporary-reports.js.map +1 -1
  363. package/dist/scan/analysis-failure.d.ts.map +1 -1
  364. package/dist/scan/analysis-failure.js +23 -0
  365. package/dist/scan/analysis-failure.js.map +1 -1
  366. package/dist/scan/analysis-session.d.ts +4 -0
  367. package/dist/scan/analysis-session.d.ts.map +1 -1
  368. package/dist/scan/analysis-session.js +60 -13
  369. package/dist/scan/analysis-session.js.map +1 -1
  370. package/dist/scan/incomplete-report.js +2 -2
  371. package/dist/scan/incomplete-report.js.map +1 -1
  372. package/dist/scan/merge-scan.d.ts +2 -1
  373. package/dist/scan/merge-scan.d.ts.map +1 -1
  374. package/dist/scan/merge-scan.js +82 -37
  375. package/dist/scan/merge-scan.js.map +1 -1
  376. package/dist/scan/progress.d.ts +4 -0
  377. package/dist/scan/progress.d.ts.map +1 -0
  378. package/dist/scan/progress.js +18 -0
  379. package/dist/scan/progress.js.map +1 -0
  380. package/dist/scan/run-scan.d.ts.map +1 -1
  381. package/dist/scan/run-scan.js +11 -15
  382. package/dist/scan/run-scan.js.map +1 -1
  383. package/dist/scan/source-excerpts.d.ts +1 -1
  384. package/dist/scan/source-excerpts.d.ts.map +1 -1
  385. package/dist/scan/source-excerpts.js +25 -27
  386. package/dist/scan/source-excerpts.js.map +1 -1
  387. package/dist/service/client-connection.d.ts +21 -0
  388. package/dist/service/client-connection.d.ts.map +1 -0
  389. package/dist/service/client-connection.js +219 -0
  390. package/dist/service/client-connection.js.map +1 -0
  391. package/dist/service/client-executor.d.ts +10 -0
  392. package/dist/service/client-executor.d.ts.map +1 -0
  393. package/dist/service/client-executor.js +69 -0
  394. package/dist/service/client-executor.js.map +1 -0
  395. package/dist/service/client-ownership.d.ts +16 -0
  396. package/dist/service/client-ownership.d.ts.map +1 -0
  397. package/dist/service/client-ownership.js +104 -0
  398. package/dist/service/client-ownership.js.map +1 -0
  399. package/dist/service/client-startup.d.ts +3 -0
  400. package/dist/service/client-startup.d.ts.map +1 -0
  401. package/dist/service/client-startup.js +123 -0
  402. package/dist/service/client-startup.js.map +1 -0
  403. package/dist/service/client.d.ts +2 -27
  404. package/dist/service/client.d.ts.map +1 -1
  405. package/dist/service/client.js +7 -490
  406. package/dist/service/client.js.map +1 -1
  407. package/dist/service/identity-parallel.js +3 -3
  408. package/dist/service/identity-parallel.js.map +1 -1
  409. package/dist/service/identity.js +4 -4
  410. package/dist/service/identity.js.map +1 -1
  411. package/dist/service/server-connection.d.ts +43 -0
  412. package/dist/service/server-connection.d.ts.map +1 -0
  413. package/dist/service/server-connection.js +327 -0
  414. package/dist/service/server-connection.js.map +1 -0
  415. package/dist/service/server.d.ts +1 -1
  416. package/dist/service/server.d.ts.map +1 -1
  417. package/dist/service/server.js +77 -343
  418. package/dist/service/server.js.map +1 -1
  419. package/dist/service/state.d.ts.map +1 -1
  420. package/dist/service/state.js +14 -26
  421. package/dist/service/state.js.map +1 -1
  422. package/dist/service/windows-pipe.d.ts +22 -14
  423. package/dist/service/windows-pipe.d.ts.map +1 -1
  424. package/dist/service/windows-pipe.js +384 -350
  425. package/dist/service/windows-pipe.js.map +1 -1
  426. package/dist/telemetry/ai-context.d.ts +14 -0
  427. package/dist/telemetry/ai-context.d.ts.map +1 -0
  428. package/dist/telemetry/ai-context.js +129 -0
  429. package/dist/telemetry/ai-context.js.map +1 -0
  430. package/dist/telemetry/batch.d.ts +4 -0
  431. package/dist/telemetry/batch.d.ts.map +1 -0
  432. package/dist/telemetry/batch.js +21 -0
  433. package/dist/telemetry/batch.js.map +1 -0
  434. package/dist/telemetry/client.d.ts +3 -0
  435. package/dist/telemetry/client.d.ts.map +1 -1
  436. package/dist/telemetry/client.js +63 -2
  437. package/dist/telemetry/client.js.map +1 -1
  438. package/dist/telemetry/details-store.d.ts +15 -0
  439. package/dist/telemetry/details-store.d.ts.map +1 -0
  440. package/dist/telemetry/details-store.js +198 -0
  441. package/dist/telemetry/details-store.js.map +1 -0
  442. package/dist/telemetry/finding-catalog.d.ts +2 -0
  443. package/dist/telemetry/finding-catalog.d.ts.map +1 -0
  444. package/dist/telemetry/finding-catalog.js +2817 -0
  445. package/dist/telemetry/finding-catalog.js.map +1 -0
  446. package/dist/telemetry/finding-rules.d.ts +3 -0
  447. package/dist/telemetry/finding-rules.d.ts.map +1 -0
  448. package/dist/telemetry/finding-rules.js +16 -0
  449. package/dist/telemetry/finding-rules.js.map +1 -0
  450. package/dist/telemetry/finding-summary.d.ts +8 -0
  451. package/dist/telemetry/finding-summary.d.ts.map +1 -0
  452. package/dist/telemetry/finding-summary.js +63 -0
  453. package/dist/telemetry/finding-summary.js.map +1 -0
  454. package/dist/telemetry/schema.d.ts +603 -4
  455. package/dist/telemetry/schema.d.ts.map +1 -1
  456. package/dist/telemetry/schema.js +117 -1
  457. package/dist/telemetry/schema.js.map +1 -1
  458. package/dist/telemetry/state.d.ts +5 -4
  459. package/dist/telemetry/state.d.ts.map +1 -1
  460. package/dist/telemetry/state.js +115 -69
  461. package/dist/telemetry/state.js.map +1 -1
  462. package/dist/telemetry/transport.d.ts.map +1 -1
  463. package/dist/telemetry/transport.js +5 -1
  464. package/dist/telemetry/transport.js.map +1 -1
  465. package/dist/telemetry/worker.d.ts.map +1 -1
  466. package/dist/telemetry/worker.js +9 -1
  467. package/dist/telemetry/worker.js.map +1 -1
  468. package/dist/ui/init-app.d.ts +6 -14
  469. package/dist/ui/init-app.d.ts.map +1 -1
  470. package/dist/ui/init-app.js +39 -203
  471. package/dist/ui/init-app.js.map +1 -1
  472. package/dist/ui/init-operation.d.ts +19 -0
  473. package/dist/ui/init-operation.d.ts.map +1 -0
  474. package/dist/ui/init-operation.js +54 -0
  475. package/dist/ui/init-operation.js.map +1 -0
  476. package/dist/ui/init-view.d.ts +42 -0
  477. package/dist/ui/init-view.d.ts.map +1 -0
  478. package/dist/ui/init-view.js +199 -0
  479. package/dist/ui/init-view.js.map +1 -0
  480. package/dist/ui/live-dashboard.d.ts +5 -1
  481. package/dist/ui/live-dashboard.d.ts.map +1 -1
  482. package/dist/ui/live-dashboard.js +46 -4
  483. package/dist/ui/live-dashboard.js.map +1 -1
  484. package/dist/vendor/knip/node_modules/get-tsconfig/LICENSE +21 -0
  485. package/dist/vendor/knip/node_modules/get-tsconfig/README.md +268 -0
  486. package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.cjs +7 -0
  487. package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.d.cts +2116 -0
  488. package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.d.mts +2116 -0
  489. package/dist/vendor/knip/node_modules/get-tsconfig/dist/index.mjs +7 -0
  490. package/dist/vendor/knip/node_modules/get-tsconfig/package.json +46 -0
  491. package/docs/checks.md +56 -5
  492. package/docs/cli-reference.md +12 -2
  493. package/docs/commercial-licensing.md +1 -1
  494. package/docs/managed-fixes.md +14 -0
  495. package/docs/privacy.md +55 -2
  496. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended-raw.js +1 -0
  497. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.d.ts +2 -0
  498. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/all.js +3 -0
  499. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/base.js +1 -0
  500. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/disable-type-checked.d.ts +2 -0
  501. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/disable-type-checked.js +3 -0
  502. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/eslint-recommended.js +1 -0
  503. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/recommended-type-checked-only.js +1 -0
  504. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/recommended-type-checked.js +1 -0
  505. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/recommended.js +1 -0
  506. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked-only.d.ts +2 -0
  507. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked-only.js +3 -0
  508. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked.d.ts +2 -0
  509. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict-type-checked.js +3 -0
  510. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/strict.js +1 -0
  511. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/stylistic-type-checked-only.js +1 -0
  512. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/stylistic-type-checked.js +1 -0
  513. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslintrc/stylistic.js +1 -0
  514. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/all.js +3 -0
  515. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/base.js +1 -0
  516. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/disable-type-checked.js +3 -0
  517. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/eslint-recommended.js +1 -0
  518. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended-type-checked-only.js +1 -0
  519. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended-type-checked.js +1 -0
  520. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/recommended.js +1 -0
  521. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict-type-checked-only.js +3 -0
  522. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict-type-checked.js +3 -0
  523. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/strict.js +1 -0
  524. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic-type-checked-only.js +1 -0
  525. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic-type-checked.js +1 -0
  526. package/node_modules/@typescript-eslint/eslint-plugin/dist/configs/flat/stylistic.js +1 -0
  527. package/node_modules/@typescript-eslint/eslint-plugin/dist/index.d.ts +9 -447
  528. package/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +1 -0
  529. package/node_modules/@typescript-eslint/eslint-plugin/dist/raw-plugin.d.ts +9 -447
  530. package/node_modules/@typescript-eslint/eslint-plugin/dist/raw-plugin.js +1 -0
  531. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +2 -0
  532. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +2 -0
  533. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.d.ts +6 -1
  534. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js +41 -6
  535. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +2 -0
  536. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js +2 -0
  537. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js +2 -0
  538. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js +2 -0
  539. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +2 -0
  540. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +2 -0
  541. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-return.js +2 -0
  542. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +2 -0
  543. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js +2 -0
  544. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js +2 -0
  545. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +2 -0
  546. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js +2 -0
  547. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js +2 -0
  548. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.d.ts +9 -0
  549. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js +69 -0
  550. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +2 -0
  551. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js +2 -0
  552. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js +2 -0
  553. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.d.ts +1 -447
  554. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +141 -273
  555. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js +2 -0
  556. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/max-params.js +2 -0
  557. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +59 -1
  558. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +2 -0
  559. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +1 -0
  560. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js +1 -0
  561. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js +1 -0
  562. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js +1 -0
  563. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +1 -0
  564. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js +1 -0
  565. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js +1 -0
  566. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +1 -0
  567. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +2 -0
  568. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js +2 -0
  569. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-delete.js +2 -0
  570. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +2 -0
  571. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js +2 -0
  572. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +30 -10
  573. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js +57 -2
  574. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js +2 -0
  575. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js +2 -0
  576. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +2 -0
  577. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js +2 -0
  578. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js +2 -0
  579. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +3 -0
  580. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-object-type.js +10 -4
  581. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +12 -2
  582. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js +2 -0
  583. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js +2 -0
  584. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +65 -55
  585. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js +2 -0
  586. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-generated-empty-object-type.d.ts +4 -0
  587. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-generated-empty-object-type.js +97 -0
  588. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +2 -0
  589. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +2 -0
  590. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +2 -0
  591. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js +2 -0
  592. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +2 -0
  593. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +2 -0
  594. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +2 -0
  595. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js +2 -0
  596. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.d.ts +1 -1
  597. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js +49 -1
  598. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js +2 -0
  599. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.d.ts +5 -1
  600. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +76 -4
  601. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-spread.js +6 -1
  602. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +35 -23
  603. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js +2 -0
  604. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +2 -0
  605. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js +2 -0
  606. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js +2 -0
  607. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js +2 -0
  608. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +6 -2
  609. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +2 -0
  610. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +3 -0
  611. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-types.js +2 -0
  612. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +2 -0
  613. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +2 -0
  614. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js +2 -0
  615. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +2 -0
  616. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +85 -12
  617. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-parameter-property-assignment.js +14 -4
  618. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +2 -0
  619. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-template-expression.js +4 -14
  620. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js +2 -0
  621. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.d.ts +2 -3
  622. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +52 -49
  623. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js +3 -0
  624. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-conversion.js +2 -0
  625. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-parameters.js +46 -18
  626. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +3 -91
  627. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js +2 -0
  628. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js +2 -0
  629. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js +2 -0
  630. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-assignment.d.ts +5 -0
  631. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-assignment.js +518 -0
  632. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js +4 -113
  633. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js +2 -0
  634. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js +2 -0
  635. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js +2 -0
  636. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-type-assertion.js +2 -0
  637. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-unary-minus.js +2 -0
  638. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js +2 -0
  639. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-private-class-members.js +2 -0
  640. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +6 -5
  641. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +2 -0
  642. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js +2 -0
  643. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-default-assignment.d.ts +1 -1
  644. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-default-assignment.js +29 -7
  645. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js +2 -0
  646. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js +3 -0
  647. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-wrapper-object-types.js +2 -0
  648. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js +2 -0
  649. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/only-throw-error.js +2 -0
  650. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js +2 -0
  651. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js +2 -0
  652. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-destructuring.js +2 -0
  653. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js +2 -0
  654. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-find.js +2 -0
  655. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +2 -0
  656. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +2 -0
  657. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +2 -0
  658. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js +2 -0
  659. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js +2 -0
  660. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +4 -3
  661. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/PreferOptionalChainOptions.js +1 -0
  662. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/analyzeChain.js +47 -10
  663. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/checkNullishAndReport.js +1 -0
  664. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/compareNodes.js +1 -0
  665. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain-utils/gatherLogicalOperands.js +2 -0
  666. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +2 -0
  667. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-promise-reject-errors.js +2 -0
  668. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js +2 -0
  669. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +2 -0
  670. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js +2 -0
  671. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +2 -0
  672. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js +2 -0
  673. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +2 -0
  674. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js +3 -0
  675. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +2 -0
  676. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/related-getter-setter-pairs.js +2 -0
  677. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +50 -3
  678. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js +2 -0
  679. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +2 -0
  680. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +2 -0
  681. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js +12 -9
  682. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +3 -0
  683. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +2 -0
  684. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-void-return.d.ts +3 -2
  685. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-void-return.js +100 -5
  686. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +3 -1
  687. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +6 -1
  688. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js +2 -0
  689. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +39 -12
  690. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.d.ts +1 -1
  691. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js +75 -37
  692. package/node_modules/@typescript-eslint/eslint-plugin/dist/rules/use-unknown-in-catch-callback-variable.js +2 -0
  693. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/FunctionSignature.d.ts +15 -0
  694. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/FunctionSignature.js +123 -0
  695. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/assertionFunctionUtils.js +1 -0
  696. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js +1 -0
  697. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/baseTypeUtils.d.ts +2 -0
  698. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/baseTypeUtils.js +17 -0
  699. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/class-scope-analyzer/classScopeAnalyzer.js +1 -0
  700. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/class-scope-analyzer/extractComputedName.js +1 -0
  701. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/class-scope-analyzer/types.js +1 -0
  702. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js +11 -7
  703. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js +1 -0
  704. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js +1 -0
  705. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js +1 -0
  706. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getAwaitTokenRemovalRange.d.ts +4 -0
  707. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getAwaitTokenRemovalRange.js +15 -0
  708. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getBaseTypesOfClassMember.js +1 -0
  709. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getConstraintInfo.js +1 -0
  710. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js +1 -0
  711. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFixOrSuggest.js +1 -0
  712. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getForStatementHeadLoc.js +1 -0
  713. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js +1 -0
  714. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getMemberHeadLoc.js +1 -0
  715. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js +2 -0
  716. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getParentFunctionNode.js +1 -0
  717. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStaticStringValue.js +1 -0
  718. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +1 -0
  719. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getTextWithParentheses.js +1 -0
  720. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js +1 -0
  721. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getValueOfLiteralType.js +1 -0
  722. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js +1 -0
  723. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +1 -1
  724. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/hasOverloadSignatures.js +1 -0
  725. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.d.ts +4 -0
  726. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +5 -0
  727. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isArrayMethodCallWithPredicate.js +1 -0
  728. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isAssignee.js +1 -0
  729. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isConditionalTest.js +1 -0
  730. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isHigherPrecedenceThanAwait.js +1 -0
  731. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js +1 -0
  732. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +1 -0
  733. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isPromiseAggregatorMethod.js +1 -0
  734. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfArrowFunctionBodyNeedingParentheses.d.ts +2 -0
  735. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfArrowFunctionBodyNeedingParentheses.js +30 -0
  736. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatement.js +1 -0
  737. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatementNeedingParentheses.d.ts +2 -0
  738. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isStartOfExpressionStatementNeedingParentheses.js +9 -0
  739. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeImport.js +1 -0
  740. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeOnlyReference.d.ts +4 -0
  741. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeOnlyReference.js +23 -0
  742. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js +1 -0
  743. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/lazyRules.d.ts +6 -0
  744. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/lazyRules.js +18 -0
  745. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +1 -0
  746. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsPrecedingSemiColon.js +1 -0
  747. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/needsToBeAwaited.js +1 -0
  748. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js +1 -0
  749. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/promiseUtils.js +1 -0
  750. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/rangeToLoc.js +1 -0
  751. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypePredicate.js +1 -0
  752. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/referenceContainsTypeQuery.js +1 -0
  753. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/scopeUtils.js +1 -0
  754. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/skipChainExpression.js +1 -0
  755. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/truthinessUtils.js +3 -1
  756. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js +1 -0
  757. package/node_modules/@typescript-eslint/eslint-plugin/dist/util/walkStatements.js +1 -0
  758. package/node_modules/@typescript-eslint/eslint-plugin/package.json +19 -18
  759. package/node_modules/@typescript-eslint/parser/dist/index.js +1 -0
  760. package/node_modules/@typescript-eslint/parser/dist/parser.js +1 -0
  761. package/node_modules/@typescript-eslint/parser/package.json +9 -8
  762. package/node_modules/@typescript-eslint/project-service/dist/createProjectService.js +10 -9
  763. package/node_modules/@typescript-eslint/project-service/dist/getParsedConfigFileFromTSServer.js +1 -0
  764. package/node_modules/@typescript-eslint/project-service/dist/index.js +1 -0
  765. package/node_modules/@typescript-eslint/project-service/dist/throttleOpenedFileCleanup.d.ts +7 -0
  766. package/node_modules/@typescript-eslint/project-service/dist/throttleOpenedFileCleanup.js +37 -0
  767. package/node_modules/@typescript-eslint/project-service/package.json +7 -6
  768. package/node_modules/@typescript-eslint/scope-manager/dist/ID.js +1 -0
  769. package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +1 -0
  770. package/node_modules/@typescript-eslint/scope-manager/dist/analyze.js +3 -0
  771. package/node_modules/@typescript-eslint/scope-manager/dist/assert.js +1 -0
  772. package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js +1 -0
  773. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js +1 -0
  774. package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js +1 -0
  775. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js +1 -0
  776. package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js +1 -0
  777. package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js +1 -0
  778. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js +1 -0
  779. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js +1 -0
  780. package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js +1 -0
  781. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js +1 -0
  782. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js +1 -0
  783. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js +1 -0
  784. package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js +1 -0
  785. package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js +1 -0
  786. package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js +1 -0
  787. package/node_modules/@typescript-eslint/scope-manager/dist/index.js +1 -0
  788. package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js +1 -0
  789. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +1 -0
  790. package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +1 -0
  791. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.asynciterable.js +1 -0
  792. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +1 -0
  793. package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +1 -0
  794. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js +1 -0
  795. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js +1 -0
  796. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js +1 -0
  797. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js +1 -0
  798. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js +1 -0
  799. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js +1 -0
  800. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js +1 -0
  801. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js +1 -0
  802. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js +1 -0
  803. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +1 -0
  804. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js +1 -0
  805. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js +1 -0
  806. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.intl.js +1 -0
  807. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js +1 -0
  808. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.arraybuffer.js +1 -0
  809. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js +1 -0
  810. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js +1 -0
  811. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js +1 -0
  812. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +1 -0
  813. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js +1 -0
  814. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js +1 -0
  815. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +1 -0
  816. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js +1 -0
  817. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js +1 -0
  818. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js +1 -0
  819. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js +1 -0
  820. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js +1 -0
  821. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js +1 -0
  822. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js +1 -0
  823. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js +1 -0
  824. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js +1 -0
  825. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js +1 -0
  826. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +1 -0
  827. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +1 -0
  828. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js +1 -0
  829. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +1 -0
  830. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js +1 -0
  831. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +1 -0
  832. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +1 -0
  833. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js +1 -0
  834. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js +1 -0
  835. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +1 -0
  836. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +1 -0
  837. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js +1 -0
  838. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js +1 -0
  839. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +1 -0
  840. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js +1 -0
  841. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js +1 -0
  842. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +1 -0
  843. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +1 -0
  844. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js +1 -0
  845. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +1 -0
  846. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js +1 -0
  847. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js +1 -0
  848. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js +1 -0
  849. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js +1 -0
  850. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js +1 -0
  851. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +1 -0
  852. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +1 -0
  853. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +1 -0
  854. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +1 -0
  855. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +1 -0
  856. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js +1 -0
  857. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +1 -0
  858. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.intl.js +1 -0
  859. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +1 -0
  860. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.arraybuffer.js +1 -0
  861. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.collection.js +1 -0
  862. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.full.js +1 -0
  863. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.js +1 -0
  864. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.object.js +1 -0
  865. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.promise.js +1 -0
  866. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.regexp.js +1 -0
  867. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.sharedmemory.js +1 -0
  868. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2024.string.js +1 -0
  869. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.collection.js +1 -0
  870. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.float16.js +1 -0
  871. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.full.js +1 -0
  872. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.intl.js +1 -0
  873. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.iterator.js +1 -0
  874. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.js +1 -0
  875. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.promise.js +1 -0
  876. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2025.regexp.js +1 -0
  877. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +1 -0
  878. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js +1 -0
  879. package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js +1 -0
  880. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js +1 -0
  881. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js +1 -0
  882. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +1 -0
  883. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js +1 -0
  884. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.date.js +1 -0
  885. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js +1 -0
  886. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js +1 -0
  887. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.error.js +1 -0
  888. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.float16.js +1 -0
  889. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js +1 -0
  890. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js +1 -0
  891. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.iterator.js +1 -0
  892. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +1 -0
  893. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.object.js +1 -0
  894. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js +1 -0
  895. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.regexp.js +1 -0
  896. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.sharedmemory.js +1 -0
  897. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +1 -0
  898. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js +1 -0
  899. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.temporal.js +1 -0
  900. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.typedarrays.js +1 -0
  901. package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js +1 -0
  902. package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +1 -0
  903. package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js +1 -0
  904. package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js +1 -0
  905. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.asynciterable.js +1 -0
  906. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js +1 -0
  907. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +1 -0
  908. package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +1 -0
  909. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +1 -0
  910. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js +1 -0
  911. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js +1 -0
  912. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +1 -0
  913. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +1 -0
  914. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +13 -1
  915. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +1 -0
  916. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js +1 -0
  917. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js +1 -0
  918. package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js +1 -0
  919. package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js +1 -0
  920. package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js +1 -0
  921. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js +1 -0
  922. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js +1 -0
  923. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js +1 -0
  924. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js +1 -0
  925. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js +1 -0
  926. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js +1 -0
  927. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +1 -0
  928. package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js +1 -0
  929. package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js +1 -0
  930. package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js +1 -0
  931. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js +1 -0
  932. package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js +1 -0
  933. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +1 -0
  934. package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +1 -0
  935. package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js +1 -0
  936. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js +1 -0
  937. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js +1 -0
  938. package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js +1 -0
  939. package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js +1 -0
  940. package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +1 -0
  941. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js +1 -0
  942. package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js +1 -0
  943. package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js +1 -0
  944. package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js +1 -0
  945. package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js +1 -0
  946. package/node_modules/@typescript-eslint/scope-manager/package.json +8 -7
  947. package/node_modules/@typescript-eslint/tsconfig-utils/dist/compilerOptions.js +1 -0
  948. package/node_modules/@typescript-eslint/tsconfig-utils/dist/getParsedConfigFile.js +1 -0
  949. package/node_modules/@typescript-eslint/tsconfig-utils/dist/index.js +1 -0
  950. package/node_modules/@typescript-eslint/tsconfig-utils/package.json +4 -3
  951. package/node_modules/@typescript-eslint/type-utils/dist/TypeOrValueSpecifier.js +4 -14
  952. package/node_modules/@typescript-eslint/type-utils/dist/builtinSymbolLikes.js +1 -0
  953. package/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +1 -0
  954. package/node_modules/@typescript-eslint/type-utils/dist/discriminateAnyType.js +7 -0
  955. package/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js +1 -0
  956. package/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js +1 -0
  957. package/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js +1 -0
  958. package/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js +1 -0
  959. package/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js +1 -0
  960. package/node_modules/@typescript-eslint/type-utils/dist/index.js +1 -0
  961. package/node_modules/@typescript-eslint/type-utils/dist/isSymbolFromDefaultLibrary.js +1 -0
  962. package/node_modules/@typescript-eslint/type-utils/dist/isTypeBrandedLiteralLike.js +3 -1
  963. package/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +10 -5
  964. package/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js +1 -0
  965. package/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts +5 -0
  966. package/node_modules/@typescript-eslint/type-utils/dist/predicates.js +11 -0
  967. package/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js +1 -0
  968. package/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js +1 -0
  969. package/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +2 -1
  970. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierNameMatches.js +1 -0
  971. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierSourceMatches.d.ts +3 -0
  972. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/specifierSourceMatches.js +19 -0
  973. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInFile.js +1 -0
  974. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInLib.js +1 -0
  975. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.d.ts +1 -1
  976. package/node_modules/@typescript-eslint/type-utils/dist/typeOrValueSpecifiers/typeDeclaredInPackageDeclarationFile.js +87 -9
  977. package/node_modules/@typescript-eslint/type-utils/package.json +9 -8
  978. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +3 -3
  979. package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +1 -0
  980. package/node_modules/@typescript-eslint/types/dist/index.js +1 -0
  981. package/node_modules/@typescript-eslint/types/dist/lib.js +1 -0
  982. package/node_modules/@typescript-eslint/types/dist/parser-options.js +1 -0
  983. package/node_modules/@typescript-eslint/types/dist/ts-estree.js +1 -0
  984. package/node_modules/@typescript-eslint/types/package.json +8 -7
  985. package/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +1 -0
  986. package/node_modules/@typescript-eslint/typescript-estree/dist/check-modifiers.js +7 -0
  987. package/node_modules/@typescript-eslint/typescript-estree/dist/check-syntax-errors.js +8 -0
  988. package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +3 -0
  989. package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +1 -0
  990. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts +1 -1
  991. package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +12 -2
  992. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js +1 -0
  993. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +1 -0
  994. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +1 -0
  995. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js +3 -2
  996. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +1 -0
  997. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +1 -0
  998. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js +2 -0
  999. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js +14 -6
  1000. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +23 -0
  1001. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +86 -1
  1002. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +1 -0
  1003. package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js +1 -0
  1004. package/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js +1 -0
  1005. package/node_modules/@typescript-eslint/typescript-estree/dist/getImportClausePhaseModifier.js +1 -0
  1006. package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +1 -0
  1007. package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +1 -0
  1008. package/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js +1 -0
  1009. package/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +48 -2
  1010. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +1 -0
  1011. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/candidateTSConfigRootDirs.js +1 -0
  1012. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +2 -0
  1013. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +1 -0
  1014. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js +1 -0
  1015. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js +1 -0
  1016. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +1 -0
  1017. package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +1 -0
  1018. package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js +1 -0
  1019. package/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +1 -0
  1020. package/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js +1 -0
  1021. package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +1 -0
  1022. package/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js +1 -0
  1023. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js +1 -0
  1024. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js +1 -0
  1025. package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js +1 -0
  1026. package/node_modules/@typescript-eslint/typescript-estree/dist/use-at-your-own-risk.js +1 -0
  1027. package/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js +45 -4
  1028. package/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +1 -0
  1029. package/node_modules/@typescript-eslint/typescript-estree/dist/version.js +1 -0
  1030. package/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js +1 -0
  1031. package/node_modules/@typescript-eslint/typescript-estree/package.json +9 -8
  1032. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +1 -0
  1033. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +1 -0
  1034. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +1 -0
  1035. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js +1 -0
  1036. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +1 -0
  1037. package/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +1 -0
  1038. package/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js +1 -0
  1039. package/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js +1 -0
  1040. package/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js +1 -0
  1041. package/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +1 -0
  1042. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js +1 -0
  1043. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js +2 -0
  1044. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +1 -0
  1045. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js +1 -0
  1046. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js +1 -0
  1047. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js +1 -0
  1048. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +1 -0
  1049. package/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js +1 -0
  1050. package/node_modules/@typescript-eslint/utils/dist/index.js +1 -0
  1051. package/node_modules/@typescript-eslint/utils/dist/json-schema.js +1 -0
  1052. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js +1 -0
  1053. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config.js +1 -0
  1054. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js +1 -0
  1055. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js +1 -0
  1056. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Parser.js +1 -0
  1057. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js +1 -0
  1058. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Processor.js +1 -0
  1059. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +17 -0
  1060. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js +1 -0
  1061. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js +1 -0
  1062. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js +1 -0
  1063. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js +1 -0
  1064. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/ESLintShared.js +1 -0
  1065. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/FlatESLint.js +1 -0
  1066. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/eslint/LegacyESLint.js +1 -0
  1067. package/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js +1 -0
  1068. package/node_modules/@typescript-eslint/utils/dist/ts-estree.js +1 -0
  1069. package/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.d.ts +1 -1
  1070. package/node_modules/@typescript-eslint/utils/dist/ts-utils/NoInfer.js +1 -0
  1071. package/node_modules/@typescript-eslint/utils/dist/ts-utils/index.js +1 -0
  1072. package/node_modules/@typescript-eslint/utils/dist/ts-utils/isArray.js +1 -0
  1073. package/node_modules/@typescript-eslint/utils/package.json +7 -6
  1074. package/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js +1 -0
  1075. package/node_modules/@typescript-eslint/visitor-keys/dist/index.js +1 -0
  1076. package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +1 -0
  1077. package/node_modules/@typescript-eslint/visitor-keys/package.json +6 -5
  1078. package/node_modules/dependency-cruiser/node_modules/ignore/LICENSE-MIT +21 -0
  1079. package/node_modules/dependency-cruiser/node_modules/ignore/README.md +452 -0
  1080. package/node_modules/dependency-cruiser/node_modules/ignore/index.d.ts +81 -0
  1081. package/node_modules/dependency-cruiser/node_modules/ignore/index.js +793 -0
  1082. package/node_modules/dependency-cruiser/node_modules/ignore/legacy.js +690 -0
  1083. package/node_modules/dependency-cruiser/node_modules/ignore/package.json +87 -0
  1084. package/node_modules/get-tsconfig/dist/index.cjs +4 -4
  1085. package/node_modules/get-tsconfig/dist/index.mjs +4 -4
  1086. package/node_modules/get-tsconfig/package.json +1 -1
  1087. package/node_modules/ignore/README.md +49 -0
  1088. package/node_modules/ignore/index.js +906 -162
  1089. package/node_modules/ignore/legacy.js +760 -127
  1090. package/node_modules/ignore/package.json +10 -4
  1091. package/node_modules/typescript-eslint/dist/compatibility-types.js +1 -0
  1092. package/node_modules/typescript-eslint/dist/config-helper.js +1 -0
  1093. package/node_modules/typescript-eslint/dist/getTSConfigRootDirFromStack.js +1 -0
  1094. package/node_modules/typescript-eslint/dist/globs.js +1 -0
  1095. package/node_modules/typescript-eslint/dist/index.js +2 -0
  1096. package/node_modules/typescript-eslint/package.json +13 -20
  1097. package/package.json +11 -9
  1098. package/plugins/swarm/README.md +31 -14
  1099. package/plugins/swarm/{skills/scan/SKILL.md → references/scan.md} +6 -13
  1100. package/schema/zedbee.schema.json +12 -0
@@ -1,397 +1,431 @@
1
- import koffi from "koffi";
1
+ import { createRequire } from "node:module";
2
2
  import { ServiceUnavailableError } from "./protocol.js";
3
- // Loaded only on Windows. All handles are noninherited and every descriptor is freed.
4
- const kernel = koffi.load("kernel32.dll"), security = koffi.load("advapi32.dll");
5
- const ptr = koffi.out(koffi.pointer("void *"));
6
- const uint = koffi.out(koffi.pointer("uint32"));
7
- const integer = koffi.out(koffi.pointer("int"));
8
- const close = kernel.func("int __stdcall CloseHandle(void *)");
9
- const free = kernel.func("void * __stdcall LocalFree(void *)");
10
- const errorCode = kernel.func("uint32 __stdcall GetLastError()");
11
- const open = kernel.func("void * __stdcall CreateFileW(const char16_t *, uint32, uint32, void *, uint32, uint32, void *)");
12
- const createDirectory = kernel.func("int __stdcall CreateDirectoryW(const char16_t *, void *)");
13
- const currentProcess = kernel.func("void * __stdcall GetCurrentProcess()");
14
- const openToken = security.func("__stdcall", "OpenProcessToken", "int", [
15
- "void *",
16
- "uint32",
17
- ptr,
18
- ]);
19
- const getToken = security.func("__stdcall", "GetTokenInformation", "int", [
20
- "void *",
21
- "int",
22
- "void *",
23
- "uint32",
24
- uint,
25
- ]);
26
- const sidString = security.func("__stdcall", "ConvertSidToStringSidW", "int", [
27
- "void *",
28
- ptr,
29
- ]);
30
- const parseSid = security.func("__stdcall", "ConvertStringSidToSidW", "int", [
31
- "str16",
32
- ptr,
33
- ]);
34
- const convert = security.func("__stdcall", "ConvertStringSecurityDescriptorToSecurityDescriptorW", "int", ["str16", "uint32", ptr, "void *"]);
35
- const getDacl = security.func("__stdcall", "GetSecurityDescriptorDacl", "int", [
36
- "void *",
37
- integer,
38
- ptr,
39
- integer,
40
- ]);
41
- const getSecurity = security.func("__stdcall", "GetSecurityInfo", "uint32", [
42
- "void *",
43
- "int",
44
- "uint32",
45
- ptr,
46
- "void *",
47
- ptr,
48
- "void *",
49
- ptr,
50
- ]);
51
- const setSecurity = security.func("uint32 __stdcall SetSecurityInfo(void *, int, uint32, void *, void *, void *, void *)");
52
- const getControl = security.func("__stdcall", "GetSecurityDescriptorControl", "int", ["void *", koffi.out(koffi.pointer("uint16")), uint]);
53
- const equalSid = security.func("int __stdcall EqualSid(void *, void *)");
54
- const getAce = security.func("__stdcall", "GetAce", "int", [
55
- "void *",
56
- "uint32",
57
- ptr,
58
- ]);
59
- const fileInfo = kernel.func("int __stdcall GetFileInformationByHandleEx(void *, int, void *, uint32)");
60
- const lockFile = kernel.func("int __stdcall LockFileEx(void *, uint32, uint32, uint32, uint32, void *)");
61
- const attributes = koffi.struct({
62
- length: "uint32",
63
- descriptor: "void *",
64
- inherit: "int",
65
- });
66
- const overlapped = koffi.struct({
67
- internal: "uintptr_t",
68
- internalHigh: "uintptr_t",
69
- offset: "uint32",
70
- offsetHigh: "uint32",
71
- event: "void *",
72
- });
73
- function fail() {
74
- const code = errorCode();
75
- if (code === 2 || code === 3)
76
- throw Object.assign(new ServiceUnavailableError(), { code: "ENOENT" });
77
- throw new ServiceUnavailableError();
78
- }
79
- function validHandle(handle) {
80
- return (!!handle &&
81
- koffi.address(handle) !== (1n << BigInt(koffi.sizeof("void *") * 8)) - 1n);
82
- }
83
- function checkedClose(handle) {
84
- if (!close(handle))
3
+ const require = createRequire(import.meta.url);
4
+ function loadBindings() {
5
+ const koffi = require("koffi");
6
+ // Loaded only on Windows. All handles are noninherited and every descriptor is freed.
7
+ const kernel = koffi.load("kernel32.dll"), security = koffi.load("advapi32.dll");
8
+ const ptr = koffi.out(koffi.pointer("void *"));
9
+ const uint = koffi.out(koffi.pointer("uint32"));
10
+ const integer = koffi.out(koffi.pointer("int"));
11
+ const close = kernel.func("int __stdcall CloseHandle(void *)");
12
+ const free = kernel.func("void * __stdcall LocalFree(void *)");
13
+ const errorCode = kernel.func("uint32 __stdcall GetLastError()");
14
+ const open = kernel.func("void * __stdcall CreateFileW(const char16_t *, uint32, uint32, void *, uint32, uint32, void *)");
15
+ const createDirectory = kernel.func("int __stdcall CreateDirectoryW(const char16_t *, void *)");
16
+ const currentProcess = kernel.func("void * __stdcall GetCurrentProcess()");
17
+ const openToken = security.func("__stdcall", "OpenProcessToken", "int", [
18
+ "void *",
19
+ "uint32",
20
+ ptr,
21
+ ]);
22
+ const getToken = security.func("__stdcall", "GetTokenInformation", "int", [
23
+ "void *",
24
+ "int",
25
+ "void *",
26
+ "uint32",
27
+ uint,
28
+ ]);
29
+ const sidString = security.func("__stdcall", "ConvertSidToStringSidW", "int", ["void *", ptr]);
30
+ const parseSid = security.func("__stdcall", "ConvertStringSidToSidW", "int", [
31
+ "str16",
32
+ ptr,
33
+ ]);
34
+ const convert = security.func("__stdcall", "ConvertStringSecurityDescriptorToSecurityDescriptorW", "int", ["str16", "uint32", ptr, "void *"]);
35
+ const getDacl = security.func("__stdcall", "GetSecurityDescriptorDacl", "int", ["void *", integer, ptr, integer]);
36
+ const getSecurity = security.func("__stdcall", "GetSecurityInfo", "uint32", [
37
+ "void *",
38
+ "int",
39
+ "uint32",
40
+ ptr,
41
+ "void *",
42
+ ptr,
43
+ "void *",
44
+ ptr,
45
+ ]);
46
+ const setSecurity = security.func("uint32 __stdcall SetSecurityInfo(void *, int, uint32, void *, void *, void *, void *)");
47
+ const getControl = security.func("__stdcall", "GetSecurityDescriptorControl", "int", ["void *", koffi.out(koffi.pointer("uint16")), uint]);
48
+ const equalSid = security.func("int __stdcall EqualSid(void *, void *)");
49
+ const getAce = security.func("__stdcall", "GetAce", "int", [
50
+ "void *",
51
+ "uint32",
52
+ ptr,
53
+ ]);
54
+ const fileInfo = kernel.func("int __stdcall GetFileInformationByHandleEx(void *, int, void *, uint32)");
55
+ const lockFile = kernel.func("int __stdcall LockFileEx(void *, uint32, uint32, uint32, uint32, void *)");
56
+ const attributes = koffi.struct({
57
+ length: "uint32",
58
+ descriptor: "void *",
59
+ inherit: "int",
60
+ });
61
+ const overlapped = koffi.struct({
62
+ internal: "uintptr_t",
63
+ internalHigh: "uintptr_t",
64
+ offset: "uint32",
65
+ offsetHigh: "uint32",
66
+ event: "void *",
67
+ });
68
+ function fail() {
69
+ const code = errorCode();
70
+ if (code === 2 || code === 3)
71
+ throw Object.assign(new ServiceUnavailableError(), { code: "ENOENT" });
85
72
  throw new ServiceUnavailableError();
86
- }
87
- function withIdentity(run) {
88
- const token = [null];
89
- if (!openToken(currentProcess(), 8, token))
90
- fail();
91
- try {
92
- const length = [0];
93
- getToken(token[0], 1, null, 0, length);
94
- if (errorCode() !== 122 || !length[0] || length[0] > 65536)
95
- fail();
96
- const bytes = Buffer.alloc(length[0]);
97
- if (!getToken(token[0], 1, bytes, bytes.length, length))
98
- fail();
99
- const sid = koffi.decode(bytes, "void *");
100
- const text = [null];
101
- if (!sidString(sid, text))
102
- fail();
103
- try {
104
- return run(sid, koffi.decode(text[0], "char16_t", -1));
105
- }
106
- finally {
107
- free(text[0]);
108
- }
109
73
  }
110
- finally {
111
- checkedClose(token[0]);
74
+ function validHandle(handle) {
75
+ return (!!handle &&
76
+ koffi.address(handle) !== (1n << BigInt(koffi.sizeof("void *") * 8)) - 1n);
112
77
  }
113
- }
114
- function withDescriptor(run, mode = "state") {
115
- return withIdentity((sid, text) => {
116
- const descriptor = [null];
117
- if (!convert(`O:${text}D:P${mode === "pipe" ? "(D;;FA;;;S-1-5-2)" : ""}(A;${mode === "state" ? "OICI" : ""};${mode === "job" ? "GA" : "FA"};;;${text})`, 1, descriptor, null))
78
+ function checkedClose(handle) {
79
+ if (!close(handle))
80
+ throw new ServiceUnavailableError();
81
+ }
82
+ function withIdentity(run) {
83
+ const token = [null];
84
+ if (!openToken(currentProcess(), 8, token))
118
85
  fail();
119
86
  try {
120
- const present = [0], acl = [null], defaulted = [0];
121
- if (!getDacl(descriptor[0], present, acl, defaulted) ||
122
- !present[0] ||
123
- !acl[0])
87
+ const length = [0];
88
+ getToken(token[0], 1, null, 0, length);
89
+ if (errorCode() !== 122 || !length[0] || length[0] > 65536)
90
+ fail();
91
+ const bytes = Buffer.alloc(length[0]);
92
+ if (!getToken(token[0], 1, bytes, bytes.length, length))
124
93
  fail();
125
- return run(descriptor[0], acl[0], sid);
94
+ const sid = koffi.decode(bytes, "void *");
95
+ const text = [null];
96
+ if (!sidString(sid, text))
97
+ fail();
98
+ try {
99
+ return run(sid, koffi.decode(text[0], "char16_t", -1));
100
+ }
101
+ finally {
102
+ free(text[0]);
103
+ }
126
104
  }
127
105
  finally {
128
- free(descriptor[0]);
106
+ checkedClose(token[0]);
129
107
  }
130
- });
131
- }
132
- function verify(handle, kind, pipe = false) {
133
- withIdentity((sid) => {
134
- const descriptor = [null], owner = [null], acl = [null];
135
- if (getSecurity(handle, kind, 1 | 4, owner, null, acl, null, descriptor) !== 0)
136
- throw new ServiceUnavailableError();
137
- try {
138
- const control = [0], revision = [0];
139
- if (!owner[0] ||
140
- !acl[0] ||
141
- !equalSid(owner[0], sid) ||
142
- !getControl(descriptor[0], control, revision) ||
143
- !(control[0] & 0x1000))
144
- throw new ServiceUnavailableError();
145
- const header = Buffer.from(koffi.decode(acl[0], "uint8", 8));
146
- const count = pipe ? 2 : 1;
147
- if (header.readUInt16LE(4) !== count)
148
- throw new ServiceUnavailableError();
149
- for (let index = 0; index < count; index++) {
150
- const denyNetwork = pipe && index === 0;
151
- const ace = [null];
152
- if (!getAce(acl[0], index, ace))
108
+ }
109
+ function withDescriptor(run, mode = "state") {
110
+ return withIdentity((sid, text) => {
111
+ const descriptor = [null];
112
+ if (!convert(`O:${text}D:P${mode === "pipe" ? "(D;;FA;;;S-1-5-2)" : ""}(A;${mode === "state" ? "OICI" : ""};${mode === "job" ? "GA" : "FA"};;;${text})`, 1, descriptor, null))
113
+ fail();
114
+ try {
115
+ const present = [0], acl = [null], defaulted = [0];
116
+ if (!getDacl(descriptor[0], present, acl, defaulted) ||
117
+ !present[0] ||
118
+ !acl[0])
153
119
  fail();
154
- const entry = Buffer.from(koffi.decode(ace[0], "uint8", 8));
155
- const size = entry.readUInt16LE(2), mask = entry.readUInt32LE(4);
156
- if (entry[0] !== (denyNetwork ? 1 : 0) ||
157
- (pipe ? entry[1] !== 0 : (entry[1] & ~3) !== 0) ||
158
- size < 16 ||
159
- size > 1024 ||
160
- (pipe
161
- ? mask !== 0x001f01ff
162
- : mask !== 0x001f01ff &&
163
- mask !== 0x10000000 &&
164
- mask !== 0x001f001f &&
165
- mask !== 0x001f003f))
120
+ return run(descriptor[0], acl[0], sid);
121
+ }
122
+ finally {
123
+ free(descriptor[0]);
124
+ }
125
+ });
126
+ }
127
+ function verify(handle, kind, pipe = false) {
128
+ withIdentity((sid) => {
129
+ const descriptor = [null], owner = [null], acl = [null];
130
+ if (getSecurity(handle, kind, 1 | 4, owner, null, acl, null, descriptor) !==
131
+ 0)
132
+ throw new ServiceUnavailableError();
133
+ try {
134
+ const control = [0], revision = [0];
135
+ if (!owner[0] ||
136
+ !acl[0] ||
137
+ !equalSid(owner[0], sid) ||
138
+ !getControl(descriptor[0], control, revision) ||
139
+ !(control[0] & 0x1000))
140
+ throw new ServiceUnavailableError();
141
+ const header = Buffer.from(koffi.decode(acl[0], "uint8", 8));
142
+ const count = pipe ? 2 : 1;
143
+ if (header.readUInt16LE(4) !== count)
166
144
  throw new ServiceUnavailableError();
167
- const aceBytes = Buffer.from(koffi.decode(ace[0], "uint8", size));
168
- if (denyNetwork) {
169
- const network = [null];
170
- if (!parseSid("S-1-5-2", network))
145
+ for (let index = 0; index < count; index++) {
146
+ const denyNetwork = pipe && index === 0;
147
+ const ace = [null];
148
+ if (!getAce(acl[0], index, ace))
171
149
  fail();
172
- try {
173
- if (!equalSid(aceBytes.subarray(8), network[0]))
174
- throw new ServiceUnavailableError();
175
- }
176
- finally {
177
- free(network[0]);
150
+ const entry = Buffer.from(koffi.decode(ace[0], "uint8", 8));
151
+ const size = entry.readUInt16LE(2), mask = entry.readUInt32LE(4);
152
+ if (entry[0] !== (denyNetwork ? 1 : 0) ||
153
+ (pipe ? entry[1] !== 0 : (entry[1] & ~3) !== 0) ||
154
+ size < 16 ||
155
+ size > 1024 ||
156
+ (pipe
157
+ ? mask !== 0x001f01ff
158
+ : mask !== 0x001f01ff &&
159
+ mask !== 0x10000000 &&
160
+ mask !== 0x001f001f &&
161
+ mask !== 0x001f003f))
162
+ throw new ServiceUnavailableError();
163
+ const aceBytes = Buffer.from(koffi.decode(ace[0], "uint8", size));
164
+ if (denyNetwork) {
165
+ const network = [null];
166
+ if (!parseSid("S-1-5-2", network))
167
+ fail();
168
+ try {
169
+ if (!equalSid(aceBytes.subarray(8), network[0]))
170
+ throw new ServiceUnavailableError();
171
+ }
172
+ finally {
173
+ free(network[0]);
174
+ }
178
175
  }
176
+ else if (!equalSid(aceBytes.subarray(8), sid))
177
+ throw new ServiceUnavailableError();
179
178
  }
180
- else if (!equalSid(aceBytes.subarray(8), sid))
181
- throw new ServiceUnavailableError();
182
179
  }
180
+ finally {
181
+ free(descriptor[0]);
182
+ }
183
+ });
184
+ }
185
+ function pathHandle(path, access = 0x20000 | 0x80) {
186
+ // OPEN_REPARSE_POINT inspects the lexical entry; BACKUP_SEMANTICS permits dirs.
187
+ const handle = open(path, access, 1 | 2, null, 3, 0x00200000 | 0x02000000, null);
188
+ if (!validHandle(handle))
189
+ fail();
190
+ try {
191
+ const info = Buffer.alloc(8);
192
+ if (!fileInfo(handle, 9, info, info.length) ||
193
+ info.readUInt32LE() & 0x400)
194
+ throw new ServiceUnavailableError();
195
+ return handle;
196
+ }
197
+ catch (error) {
198
+ checkedClose(handle);
199
+ throw error;
200
+ }
201
+ }
202
+ function verifyWindowsPath(path, ownerOnly) {
203
+ // Ancestors need attribute inspection, not access to their security descriptor.
204
+ const handle = pathHandle(path, ownerOnly ? 0x20000 | 0x80 : 0x80);
205
+ try {
206
+ if (ownerOnly)
207
+ verify(handle, 1);
183
208
  }
184
209
  finally {
185
- free(descriptor[0]);
210
+ checkedClose(handle);
186
211
  }
187
- });
188
- }
189
- function pathHandle(path, access = 0x20000 | 0x80) {
190
- // OPEN_REPARSE_POINT inspects the lexical entry; BACKUP_SEMANTICS permits dirs.
191
- const handle = open(path, access, 1 | 2, null, 3, 0x00200000 | 0x02000000, null);
192
- if (!validHandle(handle))
193
- fail();
194
- try {
195
- const info = Buffer.alloc(8);
196
- if (!fileInfo(handle, 9, info, info.length) || info.readUInt32LE() & 0x400)
197
- throw new ServiceUnavailableError();
198
- return handle;
199
212
  }
200
- catch (error) {
201
- checkedClose(handle);
202
- throw error;
213
+ function createWindowsDirectory(path) {
214
+ withDescriptor((descriptor) => {
215
+ const bytes = Buffer.alloc(koffi.sizeof(attributes));
216
+ koffi.encode(bytes, attributes, {
217
+ length: bytes.length,
218
+ descriptor,
219
+ inherit: 0,
220
+ });
221
+ if (!createDirectory(path, bytes) && errorCode() !== 183)
222
+ fail();
223
+ });
224
+ verifyWindowsPath(path, true);
203
225
  }
204
- }
205
- export function verifyWindowsPath(path, ownerOnly) {
206
- // Ancestors need attribute inspection, not access to their security descriptor.
207
- const handle = pathHandle(path, ownerOnly ? 0x20000 | 0x80 : 0x80);
208
- try {
209
- if (ownerOnly)
226
+ /** Only the caller's just-created exclusive unpublished metadata file. */
227
+ function restrictCreatedWindowsPath(path) {
228
+ const handle = pathHandle(path, 0x20000 | 0x40000 | 0x80000 | 0x80);
229
+ try {
230
+ withDescriptor((_descriptor, acl, owner) => {
231
+ if (setSecurity(handle, 1, 1 | 4 | 0x80000000, owner, null, acl, null) !==
232
+ 0)
233
+ throw new ServiceUnavailableError();
234
+ });
210
235
  verify(handle, 1);
236
+ }
237
+ finally {
238
+ checkedClose(handle);
239
+ }
211
240
  }
212
- finally {
213
- checkedClose(handle);
214
- }
215
- }
216
- export function createWindowsDirectory(path) {
217
- withDescriptor((descriptor) => {
218
- const bytes = Buffer.alloc(koffi.sizeof(attributes));
219
- koffi.encode(bytes, attributes, {
220
- length: bytes.length,
221
- descriptor,
222
- inherit: 0,
241
+ function openWindowsStateLease(path, create = true) {
242
+ let handle;
243
+ withDescriptor((descriptor) => {
244
+ const bytes = Buffer.alloc(koffi.sizeof(attributes));
245
+ koffi.encode(bytes, attributes, {
246
+ length: bytes.length,
247
+ descriptor,
248
+ inherit: 0,
249
+ });
250
+ handle = open(path, 0x80000000 | 0x40000000 | 0x20000, 1 | 2, bytes, create ? 4 : 3, 0x00200000, null);
223
251
  });
224
- if (!createDirectory(path, bytes) && errorCode() !== 183)
252
+ if (!validHandle(handle))
225
253
  fail();
226
- });
227
- verifyWindowsPath(path, true);
228
- }
229
- /** Only the caller's just-created exclusive unpublished metadata file. */
230
- export function restrictCreatedWindowsPath(path) {
231
- const handle = pathHandle(path, 0x20000 | 0x40000 | 0x80000 | 0x80);
232
- try {
233
- withDescriptor((_descriptor, acl, owner) => {
234
- if (setSecurity(handle, 1, 1 | 4 | 0x80000000, owner, null, acl, null) !== 0)
254
+ try {
255
+ const info = Buffer.alloc(8);
256
+ if (!fileInfo(handle, 9, info, info.length) ||
257
+ info.readUInt32LE() & 0x400)
235
258
  throw new ServiceUnavailableError();
236
- });
237
- verify(handle, 1);
238
- }
239
- finally {
240
- checkedClose(handle);
259
+ const standard = Buffer.alloc(24);
260
+ if (!fileInfo(handle, 1, standard, standard.length) ||
261
+ standard.readBigInt64LE(8) !== 0n ||
262
+ standard.readUInt32LE(16) !== 1 ||
263
+ standard[20] !== 0 ||
264
+ standard[21] !== 0)
265
+ throw new ServiceUnavailableError();
266
+ verify(handle, 1);
267
+ const overlap = Buffer.alloc(koffi.sizeof(overlapped));
268
+ let closed = false, acquired = false;
269
+ return {
270
+ acquire() {
271
+ if (closed)
272
+ throw new ServiceUnavailableError();
273
+ if (acquired)
274
+ return true;
275
+ if (lockFile(handle, 1 | 2, 0, 1, 0, overlap)) {
276
+ acquired = true;
277
+ return true;
278
+ }
279
+ if (errorCode() === 33)
280
+ return false;
281
+ throw new ServiceUnavailableError();
282
+ },
283
+ close() {
284
+ if (!closed) {
285
+ checkedClose(handle);
286
+ closed = true;
287
+ }
288
+ },
289
+ };
290
+ }
291
+ catch (error) {
292
+ if (handle)
293
+ checkedClose(handle);
294
+ throw error;
295
+ }
241
296
  }
242
- }
243
- export function openWindowsStateLease(path, create = true) {
244
- let handle;
245
- withDescriptor((descriptor) => {
246
- const bytes = Buffer.alloc(koffi.sizeof(attributes));
247
- koffi.encode(bytes, attributes, {
248
- length: bytes.length,
249
- descriptor,
250
- inherit: 0,
251
- });
252
- handle = open(path, 0x80000000 | 0x40000000 | 0x20000, 1 | 2, bytes, create ? 4 : 3, 0x00200000, null);
253
- });
254
- if (!validHandle(handle))
255
- fail();
256
- try {
257
- const info = Buffer.alloc(8);
258
- if (!fileInfo(handle, 9, info, info.length) || info.readUInt32LE() & 0x400)
259
- throw new ServiceUnavailableError();
260
- const standard = Buffer.alloc(24);
261
- if (!fileInfo(handle, 1, standard, standard.length) ||
262
- standard.readBigInt64LE(8) !== 0n ||
263
- standard.readUInt32LE(16) !== 1 ||
264
- standard[20] !== 0 ||
265
- standard[21] !== 0)
297
+ /** No Node private handle fields: open only the controlled local pipe endpoint. */
298
+ function restrictWindowsPipe(endpoint) {
299
+ if (!/^\\\\\.\\pipe\\zedbee-[a-f0-9]{64}$/u.test(endpoint))
266
300
  throw new ServiceUnavailableError();
267
- verify(handle, 1);
268
- const overlap = Buffer.alloc(koffi.sizeof(overlapped));
269
- let closed = false, acquired = false;
270
- return {
271
- acquire() {
272
- if (closed)
301
+ const handle = open(endpoint, 0x20000 | 0x40000 | 0x80000, 0, null, 3, 0, null);
302
+ if (!validHandle(handle))
303
+ fail();
304
+ try {
305
+ withDescriptor((_descriptor, acl, owner) => {
306
+ if (setSecurity(handle, 6, 1 | 4 | 0x80000000, owner, null, acl, null) !==
307
+ 0)
273
308
  throw new ServiceUnavailableError();
274
- if (acquired)
275
- return true;
276
- if (lockFile(handle, 1 | 2, 0, 1, 0, overlap)) {
277
- acquired = true;
278
- return true;
279
- }
280
- if (errorCode() === 33)
281
- return false;
282
- throw new ServiceUnavailableError();
283
- },
284
- close() {
285
- if (!closed) {
286
- checkedClose(handle);
287
- closed = true;
288
- }
289
- },
290
- };
291
- }
292
- catch (error) {
293
- if (handle)
309
+ }, "pipe");
310
+ verify(handle, 6, true);
311
+ }
312
+ finally {
294
313
  checkedClose(handle);
295
- throw error;
314
+ }
296
315
  }
297
- }
298
- /** No Node private handle fields: open only the controlled local pipe endpoint. */
299
- export function restrictWindowsPipe(endpoint) {
300
- if (!/^\\\\\.\\pipe\\zedbee-[a-f0-9]{64}$/u.test(endpoint))
301
- throw new ServiceUnavailableError();
302
- const handle = open(endpoint, 0x20000 | 0x40000 | 0x80000, 0, null, 3, 0, null);
303
- if (!validHandle(handle))
304
- fail();
305
- try {
306
- withDescriptor((_descriptor, acl, owner) => {
307
- if (setSecurity(handle, 6, 1 | 4 | 0x80000000, owner, null, acl, null) !== 0)
308
- throw new ServiceUnavailableError();
309
- }, "pipe");
310
- verify(handle, 6, true);
316
+ const createJob = kernel.func("void * __stdcall CreateJobObjectW(void *, const char16_t *)");
317
+ const openJob = kernel.func("void * __stdcall OpenJobObjectW(uint32, int, const char16_t *)");
318
+ const terminateJob = kernel.func("int __stdcall TerminateJobObject(void *, uint32)");
319
+ const accounting = koffi.struct({
320
+ totalUser: "int64",
321
+ totalKernel: "int64",
322
+ periodUser: "int64",
323
+ periodKernel: "int64",
324
+ pageFaults: "uint32",
325
+ totalProcesses: "uint32",
326
+ activeProcesses: "uint32",
327
+ terminated: "uint32",
328
+ });
329
+ const queryJob = kernel.func("int __stdcall QueryInformationJobObject(void *, int, void *, uint32, void *)");
330
+ function jobName(name) {
331
+ if (!/^Local\\zedbee-[a-f0-9]{64}$/u.test(name))
332
+ throw new ServiceUnavailableError();
311
333
  }
312
- finally {
313
- checkedClose(handle);
334
+ function createOwnedWindowsJobHandle(name) {
335
+ jobName(name);
336
+ return withDescriptor((descriptor) => {
337
+ const bytes = Buffer.alloc(koffi.sizeof(attributes));
338
+ koffi.encode(bytes, attributes, {
339
+ length: bytes.length,
340
+ descriptor,
341
+ inherit: 0,
342
+ });
343
+ const handle = createJob(bytes, name);
344
+ if (!handle)
345
+ fail();
346
+ try {
347
+ if (errorCode() === 183)
348
+ throw new ServiceUnavailableError();
349
+ verify(handle, 6);
350
+ return handle;
351
+ }
352
+ catch (error) {
353
+ checkedClose(handle);
354
+ throw error;
355
+ }
356
+ }, "job");
314
357
  }
315
- }
316
- const createJob = kernel.func("void * __stdcall CreateJobObjectW(void *, const char16_t *)");
317
- const openJob = kernel.func("void * __stdcall OpenJobObjectW(uint32, int, const char16_t *)");
318
- const terminateJob = kernel.func("int __stdcall TerminateJobObject(void *, uint32)");
319
- const accounting = koffi.struct({
320
- totalUser: "int64",
321
- totalKernel: "int64",
322
- periodUser: "int64",
323
- periodKernel: "int64",
324
- pageFaults: "uint32",
325
- totalProcesses: "uint32",
326
- activeProcesses: "uint32",
327
- terminated: "uint32",
328
- });
329
- const queryJob = kernel.func("int __stdcall QueryInformationJobObject(void *, int, void *, uint32, void *)");
330
- function jobName(name) {
331
- if (!/^Local\\zedbee-[a-f0-9]{64}$/u.test(name))
332
- throw new ServiceUnavailableError();
333
- }
334
- export function createOwnedWindowsJobHandle(name) {
335
- jobName(name);
336
- return withDescriptor((descriptor) => {
337
- const bytes = Buffer.alloc(koffi.sizeof(attributes));
338
- koffi.encode(bytes, attributes, {
339
- length: bytes.length,
340
- descriptor,
341
- inherit: 0,
342
- });
343
- const handle = createJob(bytes, name);
358
+ function openWindowsJobWitness(name) {
359
+ jobName(name);
360
+ const handle = openJob(0x20000 | 4 | 8, 0, name);
344
361
  if (!handle)
345
362
  fail();
346
363
  try {
347
- if (errorCode() === 183)
348
- throw new ServiceUnavailableError();
349
364
  verify(handle, 6);
350
- return handle;
351
365
  }
352
366
  catch (error) {
353
367
  checkedClose(handle);
354
368
  throw error;
355
369
  }
356
- }, "job");
357
- }
358
- export function openWindowsJobWitness(name) {
359
- jobName(name);
360
- const handle = openJob(0x20000 | 4 | 8, 0, name);
361
- if (!handle)
362
- fail();
363
- try {
364
- verify(handle, 6);
365
- }
366
- catch (error) {
367
- checkedClose(handle);
368
- throw error;
370
+ let closed = false;
371
+ const finish = () => {
372
+ if (!closed) {
373
+ checkedClose(handle);
374
+ closed = true;
375
+ }
376
+ };
377
+ return {
378
+ close: finish,
379
+ async stop() {
380
+ if (closed)
381
+ return;
382
+ if (!terminateJob(handle, 0x5a454442))
383
+ throw new ServiceUnavailableError();
384
+ const state = Buffer.alloc(koffi.sizeof(accounting));
385
+ while (true) {
386
+ if (!queryJob(handle, 1, state, state.length, null))
387
+ throw new ServiceUnavailableError();
388
+ if (state.readUInt32LE(koffi.offsetof(accounting, "activeProcesses")) === 0)
389
+ break;
390
+ await new Promise((resolve) => setTimeout(resolve, 20));
391
+ }
392
+ finish();
393
+ },
394
+ };
369
395
  }
370
- let closed = false;
371
- const finish = () => {
372
- if (!closed) {
373
- checkedClose(handle);
374
- closed = true;
375
- }
376
- };
377
396
  return {
378
- close: finish,
379
- async stop() {
380
- if (closed)
381
- return;
382
- if (!terminateJob(handle, 0x5a454442))
383
- throw new ServiceUnavailableError();
384
- const state = Buffer.alloc(koffi.sizeof(accounting));
385
- while (true) {
386
- if (!queryJob(handle, 1, state, state.length, null))
387
- throw new ServiceUnavailableError();
388
- if (state.readUInt32LE(koffi.offsetof(accounting, "activeProcesses")) ===
389
- 0)
390
- break;
391
- await new Promise((resolve) => setTimeout(resolve, 20));
392
- }
393
- finish();
394
- },
397
+ verifyWindowsPath,
398
+ createWindowsDirectory,
399
+ restrictCreatedWindowsPath,
400
+ openWindowsStateLease,
401
+ restrictWindowsPipe,
402
+ createOwnedWindowsJobHandle,
403
+ openWindowsJobWitness,
395
404
  };
396
405
  }
406
+ let cached;
407
+ function bindings() {
408
+ return (cached ??= loadBindings());
409
+ }
410
+ export function verifyWindowsPath(...args) {
411
+ return bindings().verifyWindowsPath(...args);
412
+ }
413
+ export function createWindowsDirectory(...args) {
414
+ return bindings().createWindowsDirectory(...args);
415
+ }
416
+ export function restrictCreatedWindowsPath(...args) {
417
+ return bindings().restrictCreatedWindowsPath(...args);
418
+ }
419
+ export function openWindowsStateLease(...args) {
420
+ return bindings().openWindowsStateLease(...args);
421
+ }
422
+ export function restrictWindowsPipe(...args) {
423
+ return bindings().restrictWindowsPipe(...args);
424
+ }
425
+ export function createOwnedWindowsJobHandle(...args) {
426
+ return bindings().createOwnedWindowsJobHandle(...args);
427
+ }
428
+ export function openWindowsJobWitness(...args) {
429
+ return bindings().openWindowsJobWitness(...args);
430
+ }
397
431
  //# sourceMappingURL=windows-pipe.js.map