kirograph 0.19.0 → 0.20.0

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 (658) hide show
  1. package/README.md +10 -8
  2. package/dist/architecture/layers/dart.d.ts +10 -0
  3. package/dist/architecture/layers/dart.d.ts.map +1 -0
  4. package/dist/architecture/layers/elixir.d.ts +6 -0
  5. package/dist/architecture/layers/elixir.d.ts.map +1 -0
  6. package/dist/architecture/layers/index.d.ts.map +1 -1
  7. package/dist/architecture/layers/ocaml.d.ts +6 -0
  8. package/dist/architecture/layers/ocaml.d.ts.map +1 -0
  9. package/dist/architecture/layers/scala.d.ts +6 -0
  10. package/dist/architecture/layers/scala.d.ts.map +1 -0
  11. package/dist/architecture/layers/solidity.d.ts +6 -0
  12. package/dist/architecture/layers/solidity.d.ts.map +1 -0
  13. package/dist/architecture/layers/vue.d.ts +6 -0
  14. package/dist/architecture/layers/vue.d.ts.map +1 -0
  15. package/dist/architecture/manifest/elm.d.ts +3 -0
  16. package/dist/architecture/manifest/elm.d.ts.map +1 -0
  17. package/dist/architecture/manifest/index.d.ts.map +1 -1
  18. package/dist/architecture/manifest/ocaml.d.ts +3 -0
  19. package/dist/architecture/manifest/ocaml.d.ts.map +1 -0
  20. package/dist/architecture/manifest/scala.d.ts +3 -0
  21. package/dist/architecture/manifest/scala.d.ts.map +1 -0
  22. package/dist/bin/banner.d.ts.map +1 -1
  23. package/dist/bin/commands/affected.d.ts.map +1 -1
  24. package/dist/bin/commands/attack-surface.d.ts +3 -0
  25. package/dist/bin/commands/attack-surface.d.ts.map +1 -0
  26. package/dist/bin/commands/attack-surface.js +7 -0
  27. package/dist/bin/commands/attack-surface.js.map +2 -2
  28. package/dist/bin/commands/benchmark.d.ts +9 -0
  29. package/dist/bin/commands/benchmark.d.ts.map +1 -0
  30. package/dist/bin/commands/budget.d.ts +6 -0
  31. package/dist/bin/commands/budget.d.ts.map +1 -0
  32. package/dist/bin/commands/caveman.d.ts +7 -0
  33. package/dist/bin/commands/caveman.d.ts.map +1 -0
  34. package/dist/bin/commands/communities.d.ts +3 -0
  35. package/dist/bin/commands/communities.d.ts.map +1 -0
  36. package/dist/bin/commands/compression.d.ts +7 -0
  37. package/dist/bin/commands/compression.d.ts.map +1 -0
  38. package/dist/bin/commands/context.d.ts.map +1 -1
  39. package/dist/bin/commands/data.d.ts +3 -0
  40. package/dist/bin/commands/data.d.ts.map +1 -0
  41. package/dist/bin/commands/dead-code.d.ts +3 -0
  42. package/dist/bin/commands/dead-code.d.ts.map +1 -0
  43. package/dist/bin/commands/dep-confusion.d.ts +3 -0
  44. package/dist/bin/commands/dep-confusion.d.ts.map +1 -0
  45. package/dist/bin/commands/docs.d.ts +3 -0
  46. package/dist/bin/commands/docs.d.ts.map +1 -0
  47. package/dist/bin/commands/exec.d.ts +11 -0
  48. package/dist/bin/commands/exec.d.ts.map +1 -0
  49. package/dist/bin/commands/export.d.ts +3 -0
  50. package/dist/bin/commands/export.d.ts.map +1 -0
  51. package/dist/bin/commands/flows.d.ts +3 -0
  52. package/dist/bin/commands/flows.d.ts.map +1 -0
  53. package/dist/bin/commands/gain.d.ts +6 -0
  54. package/dist/bin/commands/gain.d.ts.map +1 -0
  55. package/dist/bin/commands/help.d.ts +7 -0
  56. package/dist/bin/commands/help.d.ts.map +1 -1
  57. package/dist/bin/commands/help.js +20 -3
  58. package/dist/bin/commands/help.js.map +2 -2
  59. package/dist/bin/commands/hotspots.d.ts +3 -0
  60. package/dist/bin/commands/hotspots.d.ts.map +1 -0
  61. package/dist/bin/commands/hotspots.js +94 -1
  62. package/dist/bin/commands/hotspots.js.map +3 -3
  63. package/dist/bin/commands/install.d.ts.map +1 -1
  64. package/dist/bin/commands/install.js +3 -3
  65. package/dist/bin/commands/install.js.map +2 -2
  66. package/dist/bin/commands/licenses.d.ts +3 -0
  67. package/dist/bin/commands/licenses.d.ts.map +1 -0
  68. package/dist/bin/commands/memory.d.ts +16 -0
  69. package/dist/bin/commands/memory.d.ts.map +1 -0
  70. package/dist/bin/commands/memory.js +151 -4
  71. package/dist/bin/commands/memory.js.map +2 -2
  72. package/dist/bin/commands/path.d.ts +3 -0
  73. package/dist/bin/commands/path.d.ts.map +1 -0
  74. package/dist/bin/commands/pattern.d.ts +3 -0
  75. package/dist/bin/commands/pattern.d.ts.map +1 -0
  76. package/dist/bin/commands/pattern.js +592 -0
  77. package/dist/bin/commands/pattern.js.map +7 -0
  78. package/dist/bin/commands/query.d.ts.map +1 -1
  79. package/dist/bin/commands/reachability.d.ts +3 -0
  80. package/dist/bin/commands/reachability.d.ts.map +1 -0
  81. package/dist/bin/commands/read.d.ts +6 -0
  82. package/dist/bin/commands/read.d.ts.map +1 -0
  83. package/dist/bin/commands/refactor.d.ts +3 -0
  84. package/dist/bin/commands/refactor.d.ts.map +1 -0
  85. package/dist/bin/commands/remediation.d.ts +3 -0
  86. package/dist/bin/commands/remediation.d.ts.map +1 -0
  87. package/dist/bin/commands/sbom.d.ts +3 -0
  88. package/dist/bin/commands/sbom.d.ts.map +1 -0
  89. package/dist/bin/commands/security-ci-report.d.ts +9 -0
  90. package/dist/bin/commands/security-ci-report.d.ts.map +1 -0
  91. package/dist/bin/commands/security-export.d.ts +2 -0
  92. package/dist/bin/commands/security-export.d.ts.map +1 -0
  93. package/dist/bin/commands/security-flows.d.ts +3 -0
  94. package/dist/bin/commands/security-flows.d.ts.map +1 -0
  95. package/dist/bin/commands/security-secrets.d.ts +3 -0
  96. package/dist/bin/commands/security-secrets.d.ts.map +1 -0
  97. package/dist/bin/commands/security.d.ts +3 -0
  98. package/dist/bin/commands/security.d.ts.map +1 -0
  99. package/dist/bin/commands/security.js +15 -0
  100. package/dist/bin/commands/security.js.map +2 -2
  101. package/dist/bin/commands/snapshot.d.ts +3 -0
  102. package/dist/bin/commands/snapshot.d.ts.map +1 -0
  103. package/dist/bin/commands/staleness.d.ts +3 -0
  104. package/dist/bin/commands/staleness.d.ts.map +1 -0
  105. package/dist/bin/commands/status.d.ts.map +1 -1
  106. package/dist/bin/commands/status.js +27 -0
  107. package/dist/bin/commands/status.js.map +2 -2
  108. package/dist/bin/commands/supply-chain.d.ts +3 -0
  109. package/dist/bin/commands/supply-chain.d.ts.map +1 -0
  110. package/dist/bin/commands/surprising.d.ts +3 -0
  111. package/dist/bin/commands/surprising.d.ts.map +1 -0
  112. package/dist/bin/commands/sync.d.ts.map +1 -1
  113. package/dist/bin/commands/uninit.d.ts.map +1 -1
  114. package/dist/bin/commands/utils.d.ts +5 -0
  115. package/dist/bin/commands/utils.d.ts.map +1 -1
  116. package/dist/bin/commands/vex.d.ts +3 -0
  117. package/dist/bin/commands/vex.d.ts.map +1 -0
  118. package/dist/bin/commands/vuln-suppress.d.ts +3 -0
  119. package/dist/bin/commands/vuln-suppress.d.ts.map +1 -0
  120. package/dist/bin/commands/vulns.d.ts +3 -0
  121. package/dist/bin/commands/vulns.d.ts.map +1 -0
  122. package/dist/bin/installer/archive.d.ts +47 -0
  123. package/dist/bin/installer/archive.d.ts.map +1 -0
  124. package/dist/bin/installer/auto-detect.d.ts +16 -0
  125. package/dist/bin/installer/auto-detect.d.ts.map +1 -0
  126. package/dist/bin/installer/caveman.d.ts +12 -0
  127. package/dist/bin/installer/caveman.d.ts.map +1 -0
  128. package/dist/bin/installer/cli-agent.d.ts +7 -2
  129. package/dist/bin/installer/cli-agent.d.ts.map +1 -1
  130. package/dist/bin/installer/cli-agent.js +6 -2
  131. package/dist/bin/installer/cli-agent.js.map +2 -2
  132. package/dist/bin/installer/common.d.ts +36 -0
  133. package/dist/bin/installer/common.d.ts.map +1 -0
  134. package/dist/bin/installer/common.js +2 -1
  135. package/dist/bin/installer/common.js.map +2 -2
  136. package/dist/bin/installer/config-prompt.d.ts +1 -1
  137. package/dist/bin/installer/config-prompt.d.ts.map +1 -1
  138. package/dist/bin/installer/config-prompt.js +74 -2
  139. package/dist/bin/installer/config-prompt.js.map +2 -2
  140. package/dist/bin/installer/dashboard.d.ts.map +1 -1
  141. package/dist/bin/installer/detect.d.ts +30 -0
  142. package/dist/bin/installer/detect.d.ts.map +1 -0
  143. package/dist/bin/installer/hooks.d.ts +4 -1
  144. package/dist/bin/installer/hooks.d.ts.map +1 -1
  145. package/dist/bin/installer/hooks.js +34 -0
  146. package/dist/bin/installer/hooks.js.map +2 -2
  147. package/dist/bin/installer/index.d.ts +5 -4
  148. package/dist/bin/installer/index.d.ts.map +1 -1
  149. package/dist/bin/installer/index.js +38 -8
  150. package/dist/bin/installer/index.js.map +2 -2
  151. package/dist/bin/installer/instructions.d.ts +14 -0
  152. package/dist/bin/installer/instructions.d.ts.map +1 -0
  153. package/dist/bin/installer/instructions.js +15 -1
  154. package/dist/bin/installer/instructions.js.map +2 -2
  155. package/dist/bin/installer/mcp.d.ts.map +1 -1
  156. package/dist/bin/installer/prompts.d.ts +17 -0
  157. package/dist/bin/installer/prompts.d.ts.map +1 -1
  158. package/dist/bin/installer/qdrant-dashboard.d.ts.map +1 -1
  159. package/dist/bin/installer/steering.d.ts +14 -2
  160. package/dist/bin/installer/steering.d.ts.map +1 -1
  161. package/dist/bin/installer/steering.js +81 -0
  162. package/dist/bin/installer/steering.js.map +2 -2
  163. package/dist/bin/installer/targets/aider.d.ts +6 -0
  164. package/dist/bin/installer/targets/aider.d.ts.map +1 -0
  165. package/dist/bin/installer/targets/aider.js +3 -3
  166. package/dist/bin/installer/targets/aider.js.map +2 -2
  167. package/dist/bin/installer/targets/amp.d.ts +6 -0
  168. package/dist/bin/installer/targets/amp.d.ts.map +1 -0
  169. package/dist/bin/installer/targets/amp.js +3 -3
  170. package/dist/bin/installer/targets/amp.js.map +2 -2
  171. package/dist/bin/installer/targets/antigravity.d.ts +13 -0
  172. package/dist/bin/installer/targets/antigravity.d.ts.map +1 -0
  173. package/dist/bin/installer/targets/antigravity.js +2 -2
  174. package/dist/bin/installer/targets/antigravity.js.map +2 -2
  175. package/dist/bin/installer/targets/augment.d.ts +6 -0
  176. package/dist/bin/installer/targets/augment.d.ts.map +1 -0
  177. package/dist/bin/installer/targets/augment.js +3 -3
  178. package/dist/bin/installer/targets/augment.js.map +2 -2
  179. package/dist/bin/installer/targets/claude.d.ts +6 -0
  180. package/dist/bin/installer/targets/claude.d.ts.map +1 -0
  181. package/dist/bin/installer/targets/claude.js +2 -2
  182. package/dist/bin/installer/targets/claude.js.map +2 -2
  183. package/dist/bin/installer/targets/cline.d.ts +13 -0
  184. package/dist/bin/installer/targets/cline.d.ts.map +1 -0
  185. package/dist/bin/installer/targets/cline.js +2 -2
  186. package/dist/bin/installer/targets/cline.js.map +2 -2
  187. package/dist/bin/installer/targets/codex.d.ts +6 -0
  188. package/dist/bin/installer/targets/codex.d.ts.map +1 -0
  189. package/dist/bin/installer/targets/codex.js +2 -2
  190. package/dist/bin/installer/targets/codex.js.map +2 -2
  191. package/dist/bin/installer/targets/continue.d.ts +12 -0
  192. package/dist/bin/installer/targets/continue.d.ts.map +1 -0
  193. package/dist/bin/installer/targets/continue.js +2 -2
  194. package/dist/bin/installer/targets/continue.js.map +2 -2
  195. package/dist/bin/installer/targets/copilot-cli.d.ts +12 -0
  196. package/dist/bin/installer/targets/copilot-cli.d.ts.map +1 -0
  197. package/dist/bin/installer/targets/copilot-cli.js +2 -2
  198. package/dist/bin/installer/targets/copilot-cli.js.map +2 -2
  199. package/dist/bin/installer/targets/copilot.d.ts +6 -0
  200. package/dist/bin/installer/targets/copilot.d.ts.map +1 -0
  201. package/dist/bin/installer/targets/copilot.js +2 -2
  202. package/dist/bin/installer/targets/copilot.js.map +2 -2
  203. package/dist/bin/installer/targets/cursor.d.ts +6 -0
  204. package/dist/bin/installer/targets/cursor.d.ts.map +1 -0
  205. package/dist/bin/installer/targets/cursor.js +2 -2
  206. package/dist/bin/installer/targets/cursor.js.map +2 -2
  207. package/dist/bin/installer/targets/devin.d.ts +13 -0
  208. package/dist/bin/installer/targets/devin.d.ts.map +1 -0
  209. package/dist/bin/installer/targets/devin.js +2 -2
  210. package/dist/bin/installer/targets/devin.js.map +2 -2
  211. package/dist/bin/installer/targets/gemini-cli.d.ts +16 -0
  212. package/dist/bin/installer/targets/gemini-cli.d.ts.map +1 -0
  213. package/dist/bin/installer/targets/gemini-cli.js +2 -2
  214. package/dist/bin/installer/targets/gemini-cli.js.map +2 -2
  215. package/dist/bin/installer/targets/generic.d.ts +59 -0
  216. package/dist/bin/installer/targets/generic.d.ts.map +1 -0
  217. package/dist/bin/installer/targets/generic.js +2 -2
  218. package/dist/bin/installer/targets/generic.js.map +2 -2
  219. package/dist/bin/installer/targets/goose.d.ts +6 -0
  220. package/dist/bin/installer/targets/goose.d.ts.map +1 -0
  221. package/dist/bin/installer/targets/goose.js +3 -3
  222. package/dist/bin/installer/targets/goose.js.map +2 -2
  223. package/dist/bin/installer/targets/index.d.ts +11 -0
  224. package/dist/bin/installer/targets/index.d.ts.map +1 -0
  225. package/dist/bin/installer/targets/index.js.map +1 -1
  226. package/dist/bin/installer/targets/junie.d.ts +13 -0
  227. package/dist/bin/installer/targets/junie.d.ts.map +1 -0
  228. package/dist/bin/installer/targets/junie.js +2 -2
  229. package/dist/bin/installer/targets/junie.js.map +2 -2
  230. package/dist/bin/installer/targets/kilo.d.ts +12 -0
  231. package/dist/bin/installer/targets/kilo.d.ts.map +1 -0
  232. package/dist/bin/installer/targets/kilo.js +2 -2
  233. package/dist/bin/installer/targets/kilo.js.map +2 -2
  234. package/dist/bin/installer/targets/kiro.d.ts +5 -0
  235. package/dist/bin/installer/targets/kiro.d.ts.map +1 -0
  236. package/dist/bin/installer/targets/kiro.js +4 -4
  237. package/dist/bin/installer/targets/kiro.js.map +2 -2
  238. package/dist/bin/installer/targets/opencode.d.ts +13 -0
  239. package/dist/bin/installer/targets/opencode.d.ts.map +1 -0
  240. package/dist/bin/installer/targets/opencode.js +2 -2
  241. package/dist/bin/installer/targets/opencode.js.map +2 -2
  242. package/dist/bin/installer/targets/openhands.d.ts +6 -0
  243. package/dist/bin/installer/targets/openhands.d.ts.map +1 -0
  244. package/dist/bin/installer/targets/openhands.js +3 -3
  245. package/dist/bin/installer/targets/openhands.js.map +2 -2
  246. package/dist/bin/installer/targets/qoder.d.ts +12 -0
  247. package/dist/bin/installer/targets/qoder.d.ts.map +1 -0
  248. package/dist/bin/installer/targets/qoder.js +2 -2
  249. package/dist/bin/installer/targets/qoder.js.map +2 -2
  250. package/dist/bin/installer/targets/qwen.d.ts +12 -0
  251. package/dist/bin/installer/targets/qwen.d.ts.map +1 -0
  252. package/dist/bin/installer/targets/qwen.js +2 -2
  253. package/dist/bin/installer/targets/qwen.js.map +2 -2
  254. package/dist/bin/installer/targets/replit.d.ts +6 -0
  255. package/dist/bin/installer/targets/replit.d.ts.map +1 -0
  256. package/dist/bin/installer/targets/replit.js +3 -3
  257. package/dist/bin/installer/targets/replit.js.map +2 -2
  258. package/dist/bin/installer/targets/roo.d.ts +13 -0
  259. package/dist/bin/installer/targets/roo.d.ts.map +1 -0
  260. package/dist/bin/installer/targets/roo.js +2 -2
  261. package/dist/bin/installer/targets/roo.js.map +2 -2
  262. package/dist/bin/installer/targets/tabnine.d.ts +6 -0
  263. package/dist/bin/installer/targets/tabnine.d.ts.map +1 -0
  264. package/dist/bin/installer/targets/tabnine.js +3 -3
  265. package/dist/bin/installer/targets/tabnine.js.map +2 -2
  266. package/dist/bin/installer/targets/trae.d.ts +6 -0
  267. package/dist/bin/installer/targets/trae.d.ts.map +1 -0
  268. package/dist/bin/installer/targets/trae.js +3 -3
  269. package/dist/bin/installer/targets/trae.js.map +2 -2
  270. package/dist/bin/installer/targets/warp.d.ts +12 -0
  271. package/dist/bin/installer/targets/warp.d.ts.map +1 -0
  272. package/dist/bin/installer/targets/warp.js +2 -2
  273. package/dist/bin/installer/targets/warp.js.map +2 -2
  274. package/dist/bin/installer/targets/windsurf.d.ts +13 -0
  275. package/dist/bin/installer/targets/windsurf.d.ts.map +1 -0
  276. package/dist/bin/installer/targets/windsurf.js +2 -2
  277. package/dist/bin/installer/targets/windsurf.js.map +2 -2
  278. package/dist/bin/kirograph.js +3 -1
  279. package/dist/bin/kirograph.js.map +3 -3
  280. package/dist/bin/progress.d.ts +16 -1
  281. package/dist/bin/progress.d.ts.map +1 -1
  282. package/dist/compression/filters/aws.d.ts +9 -0
  283. package/dist/compression/filters/aws.d.ts.map +1 -0
  284. package/dist/compression/filters/docker.d.ts +6 -0
  285. package/dist/compression/filters/docker.d.ts.map +1 -0
  286. package/dist/compression/filters/files.d.ts +6 -0
  287. package/dist/compression/filters/files.d.ts.map +1 -0
  288. package/dist/compression/filters/generic.d.ts +7 -0
  289. package/dist/compression/filters/generic.d.ts.map +1 -0
  290. package/dist/compression/filters/git.d.ts +6 -0
  291. package/dist/compression/filters/git.d.ts.map +1 -0
  292. package/dist/compression/filters/github.d.ts +6 -0
  293. package/dist/compression/filters/github.d.ts.map +1 -0
  294. package/dist/compression/filters/lint.d.ts +6 -0
  295. package/dist/compression/filters/lint.d.ts.map +1 -0
  296. package/dist/compression/filters/misc.d.ts +6 -0
  297. package/dist/compression/filters/misc.d.ts.map +1 -0
  298. package/dist/compression/filters/package.d.ts +6 -0
  299. package/dist/compression/filters/package.d.ts.map +1 -0
  300. package/dist/compression/filters/test.d.ts +6 -0
  301. package/dist/compression/filters/test.d.ts.map +1 -0
  302. package/dist/compression/index.d.ts +29 -0
  303. package/dist/compression/index.d.ts.map +1 -0
  304. package/dist/compression/naive-cost.d.ts +26 -0
  305. package/dist/compression/naive-cost.d.ts.map +1 -0
  306. package/dist/compression/tracker.d.ts +155 -0
  307. package/dist/compression/tracker.d.ts.map +1 -0
  308. package/dist/compression/types.d.ts +49 -0
  309. package/dist/compression/types.d.ts.map +1 -0
  310. package/dist/config.d.ts +90 -0
  311. package/dist/config.d.ts.map +1 -1
  312. package/dist/config.js +55 -1
  313. package/dist/config.js.map +2 -2
  314. package/dist/core/lock-manager.d.ts +2 -0
  315. package/dist/core/lock-manager.d.ts.map +1 -1
  316. package/dist/core/pipeline.d.ts +4 -1
  317. package/dist/core/pipeline.d.ts.map +1 -1
  318. package/dist/core/pipeline.js +42 -0
  319. package/dist/core/pipeline.js.map +2 -2
  320. package/dist/core/snapshot.d.ts +58 -0
  321. package/dist/core/snapshot.d.ts.map +1 -0
  322. package/dist/data/filters.d.ts +23 -0
  323. package/dist/data/filters.d.ts.map +1 -0
  324. package/dist/data/indexer.d.ts +25 -0
  325. package/dist/data/indexer.d.ts.map +1 -0
  326. package/dist/data/linker.d.ts +37 -0
  327. package/dist/data/linker.d.ts.map +1 -0
  328. package/dist/data/lint.d.ts +27 -0
  329. package/dist/data/lint.d.ts.map +1 -0
  330. package/dist/data/parsers/csv.d.ts +11 -0
  331. package/dist/data/parsers/csv.d.ts.map +1 -0
  332. package/dist/data/parsers/excel.d.ts +10 -0
  333. package/dist/data/parsers/excel.d.ts.map +1 -0
  334. package/dist/data/parsers/index.d.ts +28 -0
  335. package/dist/data/parsers/index.d.ts.map +1 -0
  336. package/dist/data/parsers/json-array.d.ts +9 -0
  337. package/dist/data/parsers/json-array.d.ts.map +1 -0
  338. package/dist/data/parsers/jsonl.d.ts +9 -0
  339. package/dist/data/parsers/jsonl.d.ts.map +1 -0
  340. package/dist/data/parsers/parquet.d.ts +10 -0
  341. package/dist/data/parsers/parquet.d.ts.map +1 -0
  342. package/dist/data/profiler.d.ts +29 -0
  343. package/dist/data/profiler.d.ts.map +1 -0
  344. package/dist/data/queries.d.ts +95 -0
  345. package/dist/data/queries.d.ts.map +1 -0
  346. package/dist/data/types.d.ts +103 -0
  347. package/dist/data/types.d.ts.map +1 -0
  348. package/dist/db/database.d.ts +57 -0
  349. package/dist/db/database.d.ts.map +1 -1
  350. package/dist/db/database.js +19 -0
  351. package/dist/db/database.js.map +2 -2
  352. package/dist/db/patterns-schema.sql +23 -0
  353. package/dist/docs/formats/asciidoc.d.ts +9 -0
  354. package/dist/docs/formats/asciidoc.d.ts.map +1 -0
  355. package/dist/docs/formats/html.d.ts +10 -0
  356. package/dist/docs/formats/html.d.ts.map +1 -0
  357. package/dist/docs/formats/index.d.ts +31 -0
  358. package/dist/docs/formats/index.d.ts.map +1 -0
  359. package/dist/docs/formats/markdown.d.ts +11 -0
  360. package/dist/docs/formats/markdown.d.ts.map +1 -0
  361. package/dist/docs/formats/openapi.d.ts +17 -0
  362. package/dist/docs/formats/openapi.d.ts.map +1 -0
  363. package/dist/docs/formats/org.d.ts +9 -0
  364. package/dist/docs/formats/org.d.ts.map +1 -0
  365. package/dist/docs/formats/plaintext.d.ts +11 -0
  366. package/dist/docs/formats/plaintext.d.ts.map +1 -0
  367. package/dist/docs/formats/rdoc.d.ts +10 -0
  368. package/dist/docs/formats/rdoc.d.ts.map +1 -0
  369. package/dist/docs/formats/rst.d.ts +11 -0
  370. package/dist/docs/formats/rst.d.ts.map +1 -0
  371. package/dist/docs/indexer.d.ts +49 -0
  372. package/dist/docs/indexer.d.ts.map +1 -0
  373. package/dist/docs/linker.d.ts +30 -0
  374. package/dist/docs/linker.d.ts.map +1 -0
  375. package/dist/docs/lint.d.ts +27 -0
  376. package/dist/docs/lint.d.ts.map +1 -0
  377. package/dist/docs/queries.d.ts +78 -0
  378. package/dist/docs/queries.d.ts.map +1 -0
  379. package/dist/docs/section-id.d.ts +48 -0
  380. package/dist/docs/section-id.d.ts.map +1 -0
  381. package/dist/docs/summarizer.d.ts +13 -0
  382. package/dist/docs/summarizer.d.ts.map +1 -0
  383. package/dist/docs/types.d.ts +71 -0
  384. package/dist/docs/types.d.ts.map +1 -0
  385. package/dist/docs/vectors.d.ts +54 -0
  386. package/dist/docs/vectors.d.ts.map +1 -0
  387. package/dist/extraction/extractor.d.ts +1 -1
  388. package/dist/extraction/extractor.d.ts.map +1 -1
  389. package/dist/extraction/grammars.d.ts +6 -0
  390. package/dist/extraction/grammars.d.ts.map +1 -1
  391. package/dist/extraction/languages.d.ts.map +1 -1
  392. package/dist/extraction/notebook.d.ts +14 -0
  393. package/dist/extraction/notebook.d.ts.map +1 -0
  394. package/dist/frameworks/amplify.d.ts +9 -0
  395. package/dist/frameworks/amplify.d.ts.map +1 -0
  396. package/dist/frameworks/angular.d.ts +9 -0
  397. package/dist/frameworks/angular.d.ts.map +1 -0
  398. package/dist/frameworks/ansible.d.ts +8 -0
  399. package/dist/frameworks/ansible.d.ts.map +1 -0
  400. package/dist/frameworks/cloudformation.d.ts +9 -0
  401. package/dist/frameworks/cloudformation.d.ts.map +1 -0
  402. package/dist/frameworks/docker.d.ts +9 -0
  403. package/dist/frameworks/docker.d.ts.map +1 -0
  404. package/dist/frameworks/elixir.d.ts +6 -0
  405. package/dist/frameworks/elixir.d.ts.map +1 -0
  406. package/dist/frameworks/flutter.d.ts +12 -0
  407. package/dist/frameworks/flutter.d.ts.map +1 -0
  408. package/dist/frameworks/iac.d.ts +10 -0
  409. package/dist/frameworks/iac.d.ts.map +1 -0
  410. package/dist/frameworks/index.d.ts +14 -0
  411. package/dist/frameworks/index.d.ts.map +1 -1
  412. package/dist/frameworks/kubernetes.d.ts +9 -0
  413. package/dist/frameworks/kubernetes.d.ts.map +1 -0
  414. package/dist/frameworks/pulumi.d.ts +9 -0
  415. package/dist/frameworks/pulumi.d.ts.map +1 -0
  416. package/dist/frameworks/scala.d.ts +6 -0
  417. package/dist/frameworks/scala.d.ts.map +1 -0
  418. package/dist/frameworks/solidity.d.ts +6 -0
  419. package/dist/frameworks/solidity.d.ts.map +1 -0
  420. package/dist/frameworks/terraform.d.ts +14 -0
  421. package/dist/frameworks/terraform.d.ts.map +1 -0
  422. package/dist/frameworks/vue.d.ts +7 -0
  423. package/dist/frameworks/vue.d.ts.map +1 -0
  424. package/dist/graph/communities.d.ts +43 -0
  425. package/dist/graph/communities.d.ts.map +1 -0
  426. package/dist/graph/flows.d.ts +55 -0
  427. package/dist/graph/flows.d.ts.map +1 -0
  428. package/dist/graph/refactor.d.ts +43 -0
  429. package/dist/graph/refactor.d.ts.map +1 -0
  430. package/dist/index.d.ts +36 -4
  431. package/dist/index.d.ts.map +1 -1
  432. package/dist/mcp/cache.d.ts +69 -0
  433. package/dist/mcp/cache.d.ts.map +1 -0
  434. package/dist/mcp/read-modes.d.ts +31 -0
  435. package/dist/mcp/read-modes.d.ts.map +1 -0
  436. package/dist/mcp/server.d.ts +1 -0
  437. package/dist/mcp/server.d.ts.map +1 -1
  438. package/dist/mcp/server.js +15 -2
  439. package/dist/mcp/server.js.map +2 -2
  440. package/dist/mcp/tool-names.d.ts +2 -0
  441. package/dist/mcp/tool-names.d.ts.map +1 -0
  442. package/dist/mcp/tool-names.js +4 -1
  443. package/dist/mcp/tool-names.js.map +2 -2
  444. package/dist/mcp/tools.d.ts +12 -0
  445. package/dist/mcp/tools.d.ts.map +1 -1
  446. package/dist/mcp/tools.js +397 -0
  447. package/dist/mcp/tools.js.map +2 -2
  448. package/dist/memory/compress.d.ts +19 -0
  449. package/dist/memory/compress.d.ts.map +1 -0
  450. package/dist/memory/database.d.ts +92 -0
  451. package/dist/memory/database.d.ts.map +1 -0
  452. package/dist/memory/database.js +38 -0
  453. package/dist/memory/database.js.map +2 -2
  454. package/dist/memory/index.d.ts +71 -0
  455. package/dist/memory/index.d.ts.map +1 -0
  456. package/dist/memory/index.js +12 -2
  457. package/dist/memory/index.js.map +2 -2
  458. package/dist/memory/symbols.d.ts +21 -0
  459. package/dist/memory/symbols.d.ts.map +1 -0
  460. package/dist/memory/types.d.ts +78 -0
  461. package/dist/memory/types.d.ts.map +1 -0
  462. package/dist/memory/types.js.map +1 -1
  463. package/dist/memory/vectors.d.ts +43 -0
  464. package/dist/memory/vectors.d.ts.map +1 -0
  465. package/dist/patterns/graph.d.ts +16 -0
  466. package/dist/patterns/graph.d.ts.map +1 -0
  467. package/dist/patterns/graph.js +45 -0
  468. package/dist/patterns/graph.js.map +7 -0
  469. package/dist/patterns/index.d.ts +4 -0
  470. package/dist/patterns/index.d.ts.map +1 -0
  471. package/dist/patterns/index.js +39 -0
  472. package/dist/patterns/index.js.map +7 -0
  473. package/dist/patterns/indexer.d.ts +15 -0
  474. package/dist/patterns/indexer.d.ts.map +1 -0
  475. package/dist/patterns/indexer.js +97 -0
  476. package/dist/patterns/indexer.js.map +7 -0
  477. package/dist/patterns/library/command-injection-go.yaml +11 -0
  478. package/dist/patterns/library/dangerous-eval-js.yaml +14 -0
  479. package/dist/patterns/library/dangerous-exec-py.yaml +13 -0
  480. package/dist/patterns/library/dangerous-reflection-java.yaml +8 -0
  481. package/dist/patterns/library/path-traversal-go.yaml +11 -0
  482. package/dist/patterns/library/path-traversal-py.yaml +12 -0
  483. package/dist/patterns/library/path-traversal-readfile-js.yaml +14 -0
  484. package/dist/patterns/library/prototype-pollution-js.yaml +12 -0
  485. package/dist/patterns/library/sql-injection-concat-js.yaml +12 -0
  486. package/dist/patterns/library/sql-injection-java.yaml +13 -0
  487. package/dist/patterns/library/sql-injection-py.yaml +12 -0
  488. package/dist/patterns/library/sql-injection-template-js.yaml +13 -0
  489. package/dist/patterns/library/weak-crypto-md5-js.yaml +13 -0
  490. package/dist/patterns/library/weak-crypto-py.yaml +13 -0
  491. package/dist/patterns/loader.d.ts +18 -0
  492. package/dist/patterns/loader.d.ts.map +1 -0
  493. package/dist/patterns/loader.js +277 -0
  494. package/dist/patterns/loader.js.map +7 -0
  495. package/dist/patterns/runner.d.ts +42 -0
  496. package/dist/patterns/runner.d.ts.map +1 -0
  497. package/dist/patterns/runner.js +277 -0
  498. package/dist/patterns/runner.js.map +7 -0
  499. package/dist/patterns/types.d.ts +27 -0
  500. package/dist/patterns/types.d.ts.map +1 -0
  501. package/dist/patterns/types.js +34 -0
  502. package/dist/patterns/types.js.map +7 -0
  503. package/dist/resolution/bridges/android-rn.d.ts +13 -0
  504. package/dist/resolution/bridges/android-rn.d.ts.map +1 -0
  505. package/dist/resolution/bridges/expo-modules.d.ts +10 -0
  506. package/dist/resolution/bridges/expo-modules.d.ts.map +1 -0
  507. package/dist/resolution/bridges/flutter-channel.d.ts +14 -0
  508. package/dist/resolution/bridges/flutter-channel.d.ts.map +1 -0
  509. package/dist/resolution/bridges/index.d.ts +40 -0
  510. package/dist/resolution/bridges/index.d.ts.map +1 -0
  511. package/dist/resolution/bridges/native-events.d.ts +10 -0
  512. package/dist/resolution/bridges/native-events.d.ts.map +1 -0
  513. package/dist/resolution/bridges/native-views.d.ts +13 -0
  514. package/dist/resolution/bridges/native-views.d.ts.map +1 -0
  515. package/dist/resolution/bridges/react-native.d.ts +9 -0
  516. package/dist/resolution/bridges/react-native.d.ts.map +1 -0
  517. package/dist/resolution/bridges/swift-objc.d.ts +14 -0
  518. package/dist/resolution/bridges/swift-objc.d.ts.map +1 -0
  519. package/dist/resolution/bridges/turbomodules.d.ts +10 -0
  520. package/dist/resolution/bridges/turbomodules.d.ts.map +1 -0
  521. package/dist/resolution/index.d.ts +28 -3
  522. package/dist/resolution/index.d.ts.map +1 -1
  523. package/dist/security/attack-surface.d.ts +46 -0
  524. package/dist/security/attack-surface.d.ts.map +1 -0
  525. package/dist/security/attack-surface.js +43 -1
  526. package/dist/security/attack-surface.js.map +2 -2
  527. package/dist/security/context-warnings.d.ts +40 -0
  528. package/dist/security/context-warnings.d.ts.map +1 -0
  529. package/dist/security/data-flows.d.ts +33 -0
  530. package/dist/security/data-flows.d.ts.map +1 -0
  531. package/dist/security/data-flows.js +65 -7
  532. package/dist/security/data-flows.js.map +2 -2
  533. package/dist/security/dep-confusion.d.ts +23 -0
  534. package/dist/security/dep-confusion.d.ts.map +1 -0
  535. package/dist/security/errors.d.ts +16 -0
  536. package/dist/security/errors.d.ts.map +1 -0
  537. package/dist/security/export/fix-suggestions.d.ts +21 -0
  538. package/dist/security/export/fix-suggestions.d.ts.map +1 -0
  539. package/dist/security/export/sbom.d.ts +33 -0
  540. package/dist/security/export/sbom.d.ts.map +1 -0
  541. package/dist/security/export/serialization.d.ts +62 -0
  542. package/dist/security/export/serialization.d.ts.map +1 -0
  543. package/dist/security/export/vex.d.ts +58 -0
  544. package/dist/security/export/vex.d.ts.map +1 -0
  545. package/dist/security/index.d.ts +21 -0
  546. package/dist/security/index.d.ts.map +1 -0
  547. package/dist/security/integrator.d.ts +63 -0
  548. package/dist/security/integrator.d.ts.map +1 -0
  549. package/dist/security/license.d.ts +33 -0
  550. package/dist/security/license.d.ts.map +1 -0
  551. package/dist/security/manifest/adapter.d.ts +92 -0
  552. package/dist/security/manifest/adapter.d.ts.map +1 -0
  553. package/dist/security/manifest/parser.d.ts +73 -0
  554. package/dist/security/manifest/parser.d.ts.map +1 -0
  555. package/dist/security/manifest/plugins/cargo.d.ts +11 -0
  556. package/dist/security/manifest/plugins/cargo.d.ts.map +1 -0
  557. package/dist/security/manifest/plugins/composer.d.ts +11 -0
  558. package/dist/security/manifest/plugins/composer.d.ts.map +1 -0
  559. package/dist/security/manifest/plugins/go.d.ts +12 -0
  560. package/dist/security/manifest/plugins/go.d.ts.map +1 -0
  561. package/dist/security/manifest/plugins/gradle.d.ts +12 -0
  562. package/dist/security/manifest/plugins/gradle.d.ts.map +1 -0
  563. package/dist/security/manifest/plugins/hex.d.ts +11 -0
  564. package/dist/security/manifest/plugins/hex.d.ts.map +1 -0
  565. package/dist/security/manifest/plugins/maven.d.ts +11 -0
  566. package/dist/security/manifest/plugins/maven.d.ts.map +1 -0
  567. package/dist/security/manifest/plugins/npm.d.ts +11 -0
  568. package/dist/security/manifest/plugins/npm.d.ts.map +1 -0
  569. package/dist/security/manifest/plugins/nuget.d.ts +12 -0
  570. package/dist/security/manifest/plugins/nuget.d.ts.map +1 -0
  571. package/dist/security/manifest/plugins/pip.d.ts +11 -0
  572. package/dist/security/manifest/plugins/pip.d.ts.map +1 -0
  573. package/dist/security/manifest/plugins/pubspec.d.ts +11 -0
  574. package/dist/security/manifest/plugins/pubspec.d.ts.map +1 -0
  575. package/dist/security/manifest/plugins/pyproject.d.ts +3 -0
  576. package/dist/security/manifest/plugins/pyproject.d.ts.map +1 -0
  577. package/dist/security/manifest/plugins/rubygems.d.ts +11 -0
  578. package/dist/security/manifest/plugins/rubygems.d.ts.map +1 -0
  579. package/dist/security/manifest/plugins/swift.d.ts +11 -0
  580. package/dist/security/manifest/plugins/swift.d.ts.map +1 -0
  581. package/dist/security/owasp.d.ts +16 -0
  582. package/dist/security/owasp.d.ts.map +1 -0
  583. package/dist/security/pipeline.d.ts +37 -0
  584. package/dist/security/pipeline.d.ts.map +1 -0
  585. package/dist/security/reachability.d.ts +67 -0
  586. package/dist/security/reachability.d.ts.map +1 -0
  587. package/dist/security/remediation.d.ts +51 -0
  588. package/dist/security/remediation.d.ts.map +1 -0
  589. package/dist/security/secrets.d.ts +38 -0
  590. package/dist/security/secrets.d.ts.map +1 -0
  591. package/dist/security/staleness.d.ts +43 -0
  592. package/dist/security/staleness.d.ts.map +1 -0
  593. package/dist/security/supply-chain.d.ts +34 -0
  594. package/dist/security/supply-chain.d.ts.map +1 -0
  595. package/dist/security/suppressions.d.ts +18 -0
  596. package/dist/security/suppressions.d.ts.map +1 -0
  597. package/dist/security/types.d.ts +144 -0
  598. package/dist/security/types.d.ts.map +1 -0
  599. package/dist/security/vuln/client.d.ts +90 -0
  600. package/dist/security/vuln/client.d.ts.map +1 -0
  601. package/dist/security/vuln/client.js.map +2 -2
  602. package/dist/security/vuln/epss-client.d.ts +26 -0
  603. package/dist/security/vuln/epss-client.d.ts.map +1 -0
  604. package/dist/security/vuln/index.d.ts +6 -0
  605. package/dist/security/vuln/index.d.ts.map +1 -0
  606. package/dist/security/vuln/osv-adapter.d.ts +58 -0
  607. package/dist/security/vuln/osv-adapter.d.ts.map +1 -0
  608. package/dist/security/vuln/types.d.ts +29 -0
  609. package/dist/security/vuln/types.d.ts.map +1 -0
  610. package/dist/sync/index.d.ts +4 -2
  611. package/dist/sync/index.d.ts.map +1 -1
  612. package/dist/types.d.ts +10 -4
  613. package/dist/types.d.ts.map +1 -1
  614. package/dist/types.js.map +1 -1
  615. package/dist/vectors/index.d.ts +11 -3
  616. package/dist/vectors/index.d.ts.map +1 -1
  617. package/dist/vectors/qdrant-index.d.ts +10 -3
  618. package/dist/vectors/qdrant-index.d.ts.map +1 -1
  619. package/dist/vectors/typesense-index.d.ts.map +1 -1
  620. package/dist/watchmen/index.js +83 -0
  621. package/dist/watchmen/index.js.map +7 -0
  622. package/dist/watchmen/synthesize.js +475 -0
  623. package/dist/watchmen/synthesize.js.map +7 -0
  624. package/package.json +5 -2
  625. package/dist/security/context-warnings.test.js +0 -300
  626. package/dist/security/context-warnings.test.js.map +0 -7
  627. package/dist/security/export/fix-suggestions.test.js +0 -74
  628. package/dist/security/export/fix-suggestions.test.js.map +0 -7
  629. package/dist/security/export/sbom.test.js +0 -288
  630. package/dist/security/export/sbom.test.js.map +0 -7
  631. package/dist/security/export/serialization.test.js +0 -310
  632. package/dist/security/export/serialization.test.js.map +0 -7
  633. package/dist/security/export/vex.test.js +0 -278
  634. package/dist/security/export/vex.test.js.map +0 -7
  635. package/dist/security/integrator-transitives.test.js +0 -359
  636. package/dist/security/integrator-transitives.test.js.map +0 -7
  637. package/dist/security/integrator.test.js +0 -237
  638. package/dist/security/integrator.test.js.map +0 -7
  639. package/dist/security/manifest/adapter.test.js +0 -272
  640. package/dist/security/manifest/adapter.test.js.map +0 -7
  641. package/dist/security/manifest/parser.test.js +0 -110
  642. package/dist/security/manifest/parser.test.js.map +0 -7
  643. package/dist/security/manifest/plugins/cargo.test.js +0 -304
  644. package/dist/security/manifest/plugins/cargo.test.js.map +0 -7
  645. package/dist/security/manifest/plugins/go.test.js +0 -341
  646. package/dist/security/manifest/plugins/go.test.js.map +0 -7
  647. package/dist/security/manifest/plugins/maven.test.js +0 -389
  648. package/dist/security/manifest/plugins/maven.test.js.map +0 -7
  649. package/dist/security/manifest/plugins/npm.test.js +0 -298
  650. package/dist/security/manifest/plugins/npm.test.js.map +0 -7
  651. package/dist/security/manifest/plugins/pip.test.js +0 -208
  652. package/dist/security/manifest/plugins/pip.test.js.map +0 -7
  653. package/dist/security/reachability.test.js +0 -394
  654. package/dist/security/reachability.test.js.map +0 -7
  655. package/dist/security/vuln/client.test.js +0 -288
  656. package/dist/security/vuln/client.test.js.map +0 -7
  657. package/dist/security/vuln/osv-adapter.test.js +0 -391
  658. package/dist/security/vuln/osv-adapter.test.js.map +0 -7
@@ -1,298 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (let key of __getOwnPropNames(from))
11
- if (!__hasOwnProp.call(to, key) && key !== except)
12
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- }
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
24
- var import_vitest = require("vitest");
25
- var fs = __toESM(require("fs"));
26
- var path = __toESM(require("path"));
27
- var os = __toESM(require("os"));
28
- var import_npm = require("./npm");
29
- (0, import_vitest.describe)("parseNpmManifest", () => {
30
- let tmpDir;
31
- (0, import_vitest.beforeEach)(() => {
32
- tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "kirograph-npm-test-"));
33
- });
34
- (0, import_vitest.afterEach)(() => {
35
- fs.rmSync(tmpDir, { recursive: true, force: true });
36
- });
37
- function writePackageJson(content, dir) {
38
- const targetDir = dir ?? tmpDir;
39
- const filePath = path.join(targetDir, "package.json");
40
- fs.mkdirSync(targetDir, { recursive: true });
41
- fs.writeFileSync(filePath, JSON.stringify(content, null, 2));
42
- return filePath;
43
- }
44
- (0, import_vitest.it)("extracts production dependencies with correct scope", async () => {
45
- const manifestPath = writePackageJson({
46
- name: "test-project",
47
- version: "1.0.0",
48
- dependencies: {
49
- express: "^4.18.2",
50
- lodash: "~4.17.21"
51
- }
52
- });
53
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
54
- (0, import_vitest.expect)(deps).toHaveLength(2);
55
- const express = deps.find((d) => d.name === "express");
56
- (0, import_vitest.expect)(express).toBeDefined();
57
- (0, import_vitest.expect)(express.declaredConstraint).toBe("^4.18.2");
58
- (0, import_vitest.expect)(express.scope).toBe("production");
59
- (0, import_vitest.expect)(express.ecosystem).toBe("npm");
60
- const lodash = deps.find((d) => d.name === "lodash");
61
- (0, import_vitest.expect)(lodash).toBeDefined();
62
- (0, import_vitest.expect)(lodash.declaredConstraint).toBe("~4.17.21");
63
- (0, import_vitest.expect)(lodash.scope).toBe("production");
64
- });
65
- (0, import_vitest.it)("extracts devDependencies with development scope", async () => {
66
- const manifestPath = writePackageJson({
67
- name: "test-project",
68
- devDependencies: {
69
- vitest: "^1.0.0",
70
- typescript: "^5.0.0"
71
- }
72
- });
73
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
74
- (0, import_vitest.expect)(deps).toHaveLength(2);
75
- (0, import_vitest.expect)(deps.every((d) => d.scope === "development")).toBe(true);
76
- });
77
- (0, import_vitest.it)("extracts optionalDependencies with optional scope", async () => {
78
- const manifestPath = writePackageJson({
79
- name: "test-project",
80
- optionalDependencies: {
81
- "better-sqlite3": "^11.0.0"
82
- }
83
- });
84
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
85
- (0, import_vitest.expect)(deps).toHaveLength(1);
86
- (0, import_vitest.expect)(deps[0].scope).toBe("optional");
87
- (0, import_vitest.expect)(deps[0].name).toBe("better-sqlite3");
88
- });
89
- (0, import_vitest.it)("handles all scope fields together", async () => {
90
- const manifestPath = writePackageJson({
91
- name: "test-project",
92
- dependencies: { express: "^4.18.0" },
93
- devDependencies: { vitest: "^1.0.0" },
94
- optionalDependencies: { sqlite3: "^5.0.0" }
95
- });
96
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
97
- (0, import_vitest.expect)(deps).toHaveLength(3);
98
- (0, import_vitest.expect)(deps.find((d) => d.name === "express").scope).toBe("production");
99
- (0, import_vitest.expect)(deps.find((d) => d.name === "vitest").scope).toBe("development");
100
- (0, import_vitest.expect)(deps.find((d) => d.name === "sqlite3").scope).toBe("optional");
101
- });
102
- (0, import_vitest.it)("resolves versions from package-lock.json (v2/v3 format)", async () => {
103
- writePackageJson({
104
- name: "test-project",
105
- dependencies: { express: "^4.18.0" }
106
- });
107
- const lockContent = {
108
- lockfileVersion: 3,
109
- packages: {
110
- "": { name: "test-project", version: "1.0.0" },
111
- "node_modules/express": { version: "4.18.2" }
112
- }
113
- };
114
- fs.writeFileSync(
115
- path.join(tmpDir, "package-lock.json"),
116
- JSON.stringify(lockContent)
117
- );
118
- const manifestPath = path.join(tmpDir, "package.json");
119
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
120
- (0, import_vitest.expect)(deps).toHaveLength(1);
121
- (0, import_vitest.expect)(deps[0].resolvedVersion).toBe("4.18.2");
122
- (0, import_vitest.expect)(deps[0].declaredConstraint).toBe("^4.18.0");
123
- });
124
- (0, import_vitest.it)("resolves versions from package-lock.json (v1 format)", async () => {
125
- writePackageJson({
126
- name: "test-project",
127
- dependencies: { lodash: "^4.17.0" }
128
- });
129
- const lockContent = {
130
- lockfileVersion: 1,
131
- dependencies: {
132
- lodash: { version: "4.17.21" }
133
- }
134
- };
135
- fs.writeFileSync(
136
- path.join(tmpDir, "package-lock.json"),
137
- JSON.stringify(lockContent)
138
- );
139
- const manifestPath = path.join(tmpDir, "package.json");
140
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
141
- (0, import_vitest.expect)(deps).toHaveLength(1);
142
- (0, import_vitest.expect)(deps[0].resolvedVersion).toBe("4.17.21");
143
- });
144
- (0, import_vitest.it)("resolves versions from yarn.lock", async () => {
145
- writePackageJson({
146
- name: "test-project",
147
- dependencies: { react: "^18.0.0" }
148
- });
149
- const yarnLock = `# yarn lockfile v1
150
-
151
- react@^18.0.0:
152
- version "18.2.0"
153
- resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz"
154
- integrity sha512-abc123
155
- `;
156
- fs.writeFileSync(path.join(tmpDir, "yarn.lock"), yarnLock);
157
- const manifestPath = path.join(tmpDir, "package.json");
158
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
159
- (0, import_vitest.expect)(deps).toHaveLength(1);
160
- (0, import_vitest.expect)(deps[0].resolvedVersion).toBe("18.2.0");
161
- });
162
- (0, import_vitest.it)("handles scoped packages in yarn.lock", async () => {
163
- writePackageJson({
164
- name: "test-project",
165
- dependencies: { "@types/node": "^20.0.0" }
166
- });
167
- const yarnLock = `# yarn lockfile v1
168
-
169
- "@types/node@^20.0.0":
170
- version "20.11.5"
171
- resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.5.tgz"
172
- `;
173
- fs.writeFileSync(path.join(tmpDir, "yarn.lock"), yarnLock);
174
- const manifestPath = path.join(tmpDir, "package.json");
175
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
176
- (0, import_vitest.expect)(deps).toHaveLength(1);
177
- (0, import_vitest.expect)(deps[0].name).toBe("@types/node");
178
- (0, import_vitest.expect)(deps[0].resolvedVersion).toBe("20.11.5");
179
- });
180
- (0, import_vitest.it)("skips invalid dependency entries gracefully", async () => {
181
- const manifestPath = writePackageJson({
182
- name: "test-project",
183
- dependencies: {
184
- express: "^4.18.0",
185
- "": "^1.0.0",
186
- // invalid: empty name
187
- ".hidden": "^1.0.0",
188
- // invalid: starts with dot
189
- validPkg: "",
190
- // invalid: empty constraint
191
- anotherValid: "^2.0.0",
192
- // valid
193
- badConstraint: 123
194
- // invalid: non-string constraint
195
- }
196
- });
197
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
198
- const names = deps.map((d) => d.name);
199
- (0, import_vitest.expect)(names).toContain("express");
200
- (0, import_vitest.expect)(names).toContain("anotherValid");
201
- (0, import_vitest.expect)(names).not.toContain("");
202
- (0, import_vitest.expect)(names).not.toContain(".hidden");
203
- (0, import_vitest.expect)(names).not.toContain("validPkg");
204
- (0, import_vitest.expect)(names).not.toContain("badConstraint");
205
- });
206
- (0, import_vitest.it)("returns empty array for invalid JSON", async () => {
207
- const filePath = path.join(tmpDir, "package.json");
208
- fs.writeFileSync(filePath, "not valid json {{{");
209
- const deps = await (0, import_npm.parseNpmManifest)(filePath, tmpDir);
210
- (0, import_vitest.expect)(deps).toEqual([]);
211
- });
212
- (0, import_vitest.it)("returns empty array for non-object JSON", async () => {
213
- const filePath = path.join(tmpDir, "package.json");
214
- fs.writeFileSync(filePath, '"just a string"');
215
- const deps = await (0, import_npm.parseNpmManifest)(filePath, tmpDir);
216
- (0, import_vitest.expect)(deps).toEqual([]);
217
- });
218
- (0, import_vitest.it)("returns empty array for array JSON", async () => {
219
- const filePath = path.join(tmpDir, "package.json");
220
- fs.writeFileSync(filePath, "[1, 2, 3]");
221
- const deps = await (0, import_npm.parseNpmManifest)(filePath, tmpDir);
222
- (0, import_vitest.expect)(deps).toEqual([]);
223
- });
224
- (0, import_vitest.it)("handles package.json with no dependency fields", async () => {
225
- const manifestPath = writePackageJson({
226
- name: "empty-project",
227
- version: "1.0.0"
228
- });
229
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
230
- (0, import_vitest.expect)(deps).toEqual([]);
231
- });
232
- (0, import_vitest.it)("sets sourceManifest as relative path", async () => {
233
- const subDir = path.join(tmpDir, "packages", "sub");
234
- const manifestPath = writePackageJson(
235
- { name: "sub", dependencies: { foo: "^1.0.0" } },
236
- subDir
237
- );
238
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
239
- (0, import_vitest.expect)(deps).toHaveLength(1);
240
- (0, import_vitest.expect)(deps[0].sourceManifest).toBe("packages/sub/package.json");
241
- });
242
- (0, import_vitest.it)("handles peerDependencies with production scope", async () => {
243
- const manifestPath = writePackageJson({
244
- name: "test-project",
245
- peerDependencies: { react: ">=16.0.0" }
246
- });
247
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
248
- (0, import_vitest.expect)(deps).toHaveLength(1);
249
- (0, import_vitest.expect)(deps[0].name).toBe("react");
250
- (0, import_vitest.expect)(deps[0].scope).toBe("production");
251
- (0, import_vitest.expect)(deps[0].declaredConstraint).toBe(">=16.0.0");
252
- });
253
- (0, import_vitest.it)("does not duplicate peerDependencies already in dependencies", async () => {
254
- const manifestPath = writePackageJson({
255
- name: "test-project",
256
- dependencies: { react: "^18.0.0" },
257
- peerDependencies: { react: ">=16.0.0" }
258
- });
259
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
260
- const reactDeps = deps.filter((d) => d.name === "react");
261
- (0, import_vitest.expect)(reactDeps).toHaveLength(1);
262
- (0, import_vitest.expect)(reactDeps[0].scope).toBe("production");
263
- (0, import_vitest.expect)(reactDeps[0].declaredConstraint).toBe("^18.0.0");
264
- });
265
- (0, import_vitest.it)("prefers package-lock.json over yarn.lock", async () => {
266
- writePackageJson({
267
- name: "test-project",
268
- dependencies: { express: "^4.0.0" }
269
- });
270
- const lockContent = {
271
- lockfileVersion: 3,
272
- packages: {
273
- "": { name: "test-project" },
274
- "node_modules/express": { version: "4.18.2" }
275
- }
276
- };
277
- fs.writeFileSync(path.join(tmpDir, "package-lock.json"), JSON.stringify(lockContent));
278
- const yarnLock = `# yarn lockfile v1
279
-
280
- express@^4.0.0:
281
- version "4.17.0"
282
- `;
283
- fs.writeFileSync(path.join(tmpDir, "yarn.lock"), yarnLock);
284
- const manifestPath = path.join(tmpDir, "package.json");
285
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
286
- (0, import_vitest.expect)(deps[0].resolvedVersion).toBe("4.18.2");
287
- });
288
- (0, import_vitest.it)("leaves resolvedVersion undefined when no lock file exists", async () => {
289
- const manifestPath = writePackageJson({
290
- name: "test-project",
291
- dependencies: { express: "^4.18.0" }
292
- });
293
- const deps = await (0, import_npm.parseNpmManifest)(manifestPath, tmpDir);
294
- (0, import_vitest.expect)(deps).toHaveLength(1);
295
- (0, import_vitest.expect)(deps[0].resolvedVersion).toBeUndefined();
296
- });
297
- });
298
- //# sourceMappingURL=npm.test.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/security/manifest/plugins/npm.test.ts"],
4
- "sourcesContent": ["/**\n * Unit tests for the npm security manifest plugin.\n */\nimport { describe, it, expect, beforeEach, afterEach } from 'vitest';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport * as os from 'os';\nimport { parseNpmManifest } from './npm';\n\ndescribe('parseNpmManifest', () => {\n let tmpDir: string;\n\n beforeEach(() => {\n tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'kirograph-npm-test-'));\n });\n\n afterEach(() => {\n fs.rmSync(tmpDir, { recursive: true, force: true });\n });\n\n function writePackageJson(content: Record<string, unknown>, dir?: string): string {\n const targetDir = dir ?? tmpDir;\n const filePath = path.join(targetDir, 'package.json');\n fs.mkdirSync(targetDir, { recursive: true });\n fs.writeFileSync(filePath, JSON.stringify(content, null, 2));\n return filePath;\n }\n\n it('extracts production dependencies with correct scope', async () => {\n const manifestPath = writePackageJson({\n name: 'test-project',\n version: '1.0.0',\n dependencies: {\n express: '^4.18.2',\n lodash: '~4.17.21',\n },\n });\n\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(2);\n const express = deps.find(d => d.name === 'express');\n expect(express).toBeDefined();\n expect(express!.declaredConstraint).toBe('^4.18.2');\n expect(express!.scope).toBe('production');\n expect(express!.ecosystem).toBe('npm');\n\n const lodash = deps.find(d => d.name === 'lodash');\n expect(lodash).toBeDefined();\n expect(lodash!.declaredConstraint).toBe('~4.17.21');\n expect(lodash!.scope).toBe('production');\n });\n\n it('extracts devDependencies with development scope', async () => {\n const manifestPath = writePackageJson({\n name: 'test-project',\n devDependencies: {\n vitest: '^1.0.0',\n typescript: '^5.0.0',\n },\n });\n\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(2);\n expect(deps.every(d => d.scope === 'development')).toBe(true);\n });\n\n it('extracts optionalDependencies with optional scope', async () => {\n const manifestPath = writePackageJson({\n name: 'test-project',\n optionalDependencies: {\n 'better-sqlite3': '^11.0.0',\n },\n });\n\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].scope).toBe('optional');\n expect(deps[0].name).toBe('better-sqlite3');\n });\n\n it('handles all scope fields together', async () => {\n const manifestPath = writePackageJson({\n name: 'test-project',\n dependencies: { express: '^4.18.0' },\n devDependencies: { vitest: '^1.0.0' },\n optionalDependencies: { sqlite3: '^5.0.0' },\n });\n\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(3);\n expect(deps.find(d => d.name === 'express')!.scope).toBe('production');\n expect(deps.find(d => d.name === 'vitest')!.scope).toBe('development');\n expect(deps.find(d => d.name === 'sqlite3')!.scope).toBe('optional');\n });\n\n it('resolves versions from package-lock.json (v2/v3 format)', async () => {\n writePackageJson({\n name: 'test-project',\n dependencies: { express: '^4.18.0' },\n });\n\n // Write a package-lock.json with resolved versions\n const lockContent = {\n lockfileVersion: 3,\n packages: {\n '': { name: 'test-project', version: '1.0.0' },\n 'node_modules/express': { version: '4.18.2' },\n },\n };\n fs.writeFileSync(\n path.join(tmpDir, 'package-lock.json'),\n JSON.stringify(lockContent),\n );\n\n const manifestPath = path.join(tmpDir, 'package.json');\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].resolvedVersion).toBe('4.18.2');\n expect(deps[0].declaredConstraint).toBe('^4.18.0');\n });\n\n it('resolves versions from package-lock.json (v1 format)', async () => {\n writePackageJson({\n name: 'test-project',\n dependencies: { lodash: '^4.17.0' },\n });\n\n const lockContent = {\n lockfileVersion: 1,\n dependencies: {\n lodash: { version: '4.17.21' },\n },\n };\n fs.writeFileSync(\n path.join(tmpDir, 'package-lock.json'),\n JSON.stringify(lockContent),\n );\n\n const manifestPath = path.join(tmpDir, 'package.json');\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].resolvedVersion).toBe('4.17.21');\n });\n\n it('resolves versions from yarn.lock', async () => {\n writePackageJson({\n name: 'test-project',\n dependencies: { react: '^18.0.0' },\n });\n\n const yarnLock = `# yarn lockfile v1\n\nreact@^18.0.0:\n version \"18.2.0\"\n resolved \"https://registry.yarnpkg.com/react/-/react-18.2.0.tgz\"\n integrity sha512-abc123\n`;\n fs.writeFileSync(path.join(tmpDir, 'yarn.lock'), yarnLock);\n\n const manifestPath = path.join(tmpDir, 'package.json');\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].resolvedVersion).toBe('18.2.0');\n });\n\n it('handles scoped packages in yarn.lock', async () => {\n writePackageJson({\n name: 'test-project',\n dependencies: { '@types/node': '^20.0.0' },\n });\n\n const yarnLock = `# yarn lockfile v1\n\n\"@types/node@^20.0.0\":\n version \"20.11.5\"\n resolved \"https://registry.yarnpkg.com/@types/node/-/node-20.11.5.tgz\"\n`;\n fs.writeFileSync(path.join(tmpDir, 'yarn.lock'), yarnLock);\n\n const manifestPath = path.join(tmpDir, 'package.json');\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].name).toBe('@types/node');\n expect(deps[0].resolvedVersion).toBe('20.11.5');\n });\n\n it('skips invalid dependency entries gracefully', async () => {\n const manifestPath = writePackageJson({\n name: 'test-project',\n dependencies: {\n express: '^4.18.0',\n '': '^1.0.0', // invalid: empty name\n '.hidden': '^1.0.0', // invalid: starts with dot\n validPkg: '', // invalid: empty constraint\n anotherValid: '^2.0.0', // valid\n badConstraint: 123, // invalid: non-string constraint\n },\n });\n\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n // Should only extract valid entries\n const names = deps.map(d => d.name);\n expect(names).toContain('express');\n expect(names).toContain('anotherValid');\n expect(names).not.toContain('');\n expect(names).not.toContain('.hidden');\n expect(names).not.toContain('validPkg');\n expect(names).not.toContain('badConstraint');\n });\n\n it('returns empty array for invalid JSON', async () => {\n const filePath = path.join(tmpDir, 'package.json');\n fs.writeFileSync(filePath, 'not valid json {{{');\n\n const deps = await parseNpmManifest(filePath, tmpDir);\n expect(deps).toEqual([]);\n });\n\n it('returns empty array for non-object JSON', async () => {\n const filePath = path.join(tmpDir, 'package.json');\n fs.writeFileSync(filePath, '\"just a string\"');\n\n const deps = await parseNpmManifest(filePath, tmpDir);\n expect(deps).toEqual([]);\n });\n\n it('returns empty array for array JSON', async () => {\n const filePath = path.join(tmpDir, 'package.json');\n fs.writeFileSync(filePath, '[1, 2, 3]');\n\n const deps = await parseNpmManifest(filePath, tmpDir);\n expect(deps).toEqual([]);\n });\n\n it('handles package.json with no dependency fields', async () => {\n const manifestPath = writePackageJson({\n name: 'empty-project',\n version: '1.0.0',\n });\n\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n expect(deps).toEqual([]);\n });\n\n it('sets sourceManifest as relative path', async () => {\n const subDir = path.join(tmpDir, 'packages', 'sub');\n const manifestPath = writePackageJson(\n { name: 'sub', dependencies: { foo: '^1.0.0' } },\n subDir,\n );\n\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].sourceManifest).toBe('packages/sub/package.json');\n });\n\n it('handles peerDependencies with production scope', async () => {\n const manifestPath = writePackageJson({\n name: 'test-project',\n peerDependencies: { react: '>=16.0.0' },\n });\n\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].name).toBe('react');\n expect(deps[0].scope).toBe('production');\n expect(deps[0].declaredConstraint).toBe('>=16.0.0');\n });\n\n it('does not duplicate peerDependencies already in dependencies', async () => {\n const manifestPath = writePackageJson({\n name: 'test-project',\n dependencies: { react: '^18.0.0' },\n peerDependencies: { react: '>=16.0.0' },\n });\n\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n const reactDeps = deps.filter(d => d.name === 'react');\n expect(reactDeps).toHaveLength(1);\n expect(reactDeps[0].scope).toBe('production');\n expect(reactDeps[0].declaredConstraint).toBe('^18.0.0');\n });\n\n it('prefers package-lock.json over yarn.lock', async () => {\n writePackageJson({\n name: 'test-project',\n dependencies: { express: '^4.0.0' },\n });\n\n // Both lock files present\n const lockContent = {\n lockfileVersion: 3,\n packages: {\n '': { name: 'test-project' },\n 'node_modules/express': { version: '4.18.2' },\n },\n };\n fs.writeFileSync(path.join(tmpDir, 'package-lock.json'), JSON.stringify(lockContent));\n\n const yarnLock = `# yarn lockfile v1\n\nexpress@^4.0.0:\n version \"4.17.0\"\n`;\n fs.writeFileSync(path.join(tmpDir, 'yarn.lock'), yarnLock);\n\n const manifestPath = path.join(tmpDir, 'package.json');\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n // Should use package-lock.json version\n expect(deps[0].resolvedVersion).toBe('4.18.2');\n });\n\n it('leaves resolvedVersion undefined when no lock file exists', async () => {\n const manifestPath = writePackageJson({\n name: 'test-project',\n dependencies: { express: '^4.18.0' },\n });\n\n const deps = await parseNpmManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].resolvedVersion).toBeUndefined();\n });\n});\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAGA,oBAA4D;AAC5D,SAAoB;AACpB,WAAsB;AACtB,SAAoB;AACpB,iBAAiC;AAAA,IAEjC,wBAAS,oBAAoB,MAAM;AACjC,MAAI;AAEJ,gCAAW,MAAM;AACf,aAAS,GAAG,YAAY,KAAK,KAAK,GAAG,OAAO,GAAG,qBAAqB,CAAC;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Ac;AACrD,UAAM,OAAO,UAAM,6BAAiB,cAAc,MAAM;AAGxD,8BAAO,KAAK,CAAC,EAAE,eAAe,EAAE,KAAK,QAAQ;AAAA,EAC/C,CAAC;AAED,wBAAG,6DAA6D,YAAY;AAC1E,UAAM,eAAe,iBAAiB;AAAA,MACpC,MAAM;AAAA,MACN,cAAc,EAAE,SAAS,UAAU;AAAA,IACrC,CAAC;AAED,UAAM,OAAO,UAAM,6BAAiB,cAAc,MAAM;AAExD,8BAAO,IAAI,EAAE,aAAa,CAAC;AAC3B,8BAAO,KAAK,CAAC,EAAE,eAAe,EAAE,cAAc;AAAA,EAChD,CAAC;AACH,CAAC;",
6
- "names": []
7
- }
@@ -1,208 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (let key of __getOwnPropNames(from))
11
- if (!__hasOwnProp.call(to, key) && key !== except)
12
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- }
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
24
- var import_vitest = require("vitest");
25
- var fs = __toESM(require("fs"));
26
- var path = __toESM(require("path"));
27
- var os = __toESM(require("os"));
28
- var import_pip = require("./pip");
29
- (0, import_vitest.describe)("parsePipManifest", () => {
30
- let tmpDir;
31
- (0, import_vitest.beforeEach)(() => {
32
- tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "kirograph-pip-test-"));
33
- });
34
- (0, import_vitest.afterEach)(() => {
35
- fs.rmSync(tmpDir, { recursive: true, force: true });
36
- });
37
- function writeRequirements(content, filename = "requirements.txt") {
38
- const filePath = path.join(tmpDir, filename);
39
- fs.writeFileSync(filePath, content);
40
- return filePath;
41
- }
42
- (0, import_vitest.it)("extracts packages with == constraint and resolves exact version", async () => {
43
- const manifestPath = writeRequirements("flask==2.3.0\nrequests==2.28.1\n");
44
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
45
- (0, import_vitest.expect)(deps).toHaveLength(2);
46
- const flask = deps.find((d) => d.name === "flask");
47
- (0, import_vitest.expect)(flask).toBeDefined();
48
- (0, import_vitest.expect)(flask.declaredConstraint).toBe("==2.3.0");
49
- (0, import_vitest.expect)(flask.resolvedVersion).toBe("2.3.0");
50
- (0, import_vitest.expect)(flask.scope).toBe("production");
51
- (0, import_vitest.expect)(flask.ecosystem).toBe("pypi");
52
- const requests = deps.find((d) => d.name === "requests");
53
- (0, import_vitest.expect)(requests).toBeDefined();
54
- (0, import_vitest.expect)(requests.declaredConstraint).toBe("==2.28.1");
55
- (0, import_vitest.expect)(requests.resolvedVersion).toBe("2.28.1");
56
- });
57
- (0, import_vitest.it)("extracts packages with >= constraint (no resolved version)", async () => {
58
- const manifestPath = writeRequirements("requests>=2.28\n");
59
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
60
- (0, import_vitest.expect)(deps).toHaveLength(1);
61
- (0, import_vitest.expect)(deps[0].name).toBe("requests");
62
- (0, import_vitest.expect)(deps[0].declaredConstraint).toBe(">=2.28");
63
- (0, import_vitest.expect)(deps[0].resolvedVersion).toBeUndefined();
64
- });
65
- (0, import_vitest.it)("extracts packages with ~= constraint", async () => {
66
- const manifestPath = writeRequirements("django~=4.2\n");
67
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
68
- (0, import_vitest.expect)(deps).toHaveLength(1);
69
- (0, import_vitest.expect)(deps[0].name).toBe("django");
70
- (0, import_vitest.expect)(deps[0].declaredConstraint).toBe("~=4.2");
71
- (0, import_vitest.expect)(deps[0].resolvedVersion).toBeUndefined();
72
- });
73
- (0, import_vitest.it)("extracts packages with no version constraint", async () => {
74
- const manifestPath = writeRequirements("numpy\nscipy\n");
75
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
76
- (0, import_vitest.expect)(deps).toHaveLength(2);
77
- (0, import_vitest.expect)(deps[0].name).toBe("numpy");
78
- (0, import_vitest.expect)(deps[0].declaredConstraint).toBe("");
79
- (0, import_vitest.expect)(deps[0].resolvedVersion).toBeUndefined();
80
- (0, import_vitest.expect)(deps[1].name).toBe("scipy");
81
- });
82
- (0, import_vitest.it)("skips comment lines", async () => {
83
- const manifestPath = writeRequirements(
84
- "# This is a comment\nflask==2.3.0\n# Another comment\nrequests>=2.28\n"
85
- );
86
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
87
- (0, import_vitest.expect)(deps).toHaveLength(2);
88
- (0, import_vitest.expect)(deps.map((d) => d.name)).toEqual(["flask", "requests"]);
89
- });
90
- (0, import_vitest.it)("skips empty lines", async () => {
91
- const manifestPath = writeRequirements("flask==2.3.0\n\n\nrequests>=2.28\n\n");
92
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
93
- (0, import_vitest.expect)(deps).toHaveLength(2);
94
- });
95
- (0, import_vitest.it)("skips pip option lines (-r, -c, -e, --index-url, --extra-index-url)", async () => {
96
- const manifestPath = writeRequirements(
97
- "-r base.txt\n-c constraints.txt\n-e git+https://github.com/user/repo.git\n--index-url https://pypi.org/simple\n--extra-index-url https://private.pypi.org/simple\nflask==2.3.0\n"
98
- );
99
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
100
- (0, import_vitest.expect)(deps).toHaveLength(1);
101
- (0, import_vitest.expect)(deps[0].name).toBe("flask");
102
- });
103
- (0, import_vitest.it)("strips environment markers", async () => {
104
- const manifestPath = writeRequirements(
105
- 'pywin32>=300; sys_platform == "win32"\ncolorama>=0.4; os_name == "nt"\nflask==2.3.0\n'
106
- );
107
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
108
- (0, import_vitest.expect)(deps).toHaveLength(3);
109
- const pywin32 = deps.find((d) => d.name === "pywin32");
110
- (0, import_vitest.expect)(pywin32).toBeDefined();
111
- (0, import_vitest.expect)(pywin32.declaredConstraint).toBe(">=300");
112
- const colorama = deps.find((d) => d.name === "colorama");
113
- (0, import_vitest.expect)(colorama).toBeDefined();
114
- (0, import_vitest.expect)(colorama.declaredConstraint).toBe(">=0.4");
115
- });
116
- (0, import_vitest.it)("handles packages with extras (e.g. package[extra]>=1.0)", async () => {
117
- const manifestPath = writeRequirements("requests[security]>=2.28.0\ncelery[redis]==5.3.0\n");
118
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
119
- (0, import_vitest.expect)(deps).toHaveLength(2);
120
- const requests = deps.find((d) => d.name === "requests");
121
- (0, import_vitest.expect)(requests).toBeDefined();
122
- (0, import_vitest.expect)(requests.declaredConstraint).toBe(">=2.28.0");
123
- const celery = deps.find((d) => d.name === "celery");
124
- (0, import_vitest.expect)(celery).toBeDefined();
125
- (0, import_vitest.expect)(celery.declaredConstraint).toBe("==5.3.0");
126
- (0, import_vitest.expect)(celery.resolvedVersion).toBe("5.3.0");
127
- });
128
- (0, import_vitest.it)("normalizes package names (PEP 503)", async () => {
129
- const manifestPath = writeRequirements(
130
- "Flask==2.3.0\nPyYAML>=6.0\nmy_package==1.0.0\nAnother.Package>=2.0\n"
131
- );
132
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
133
- (0, import_vitest.expect)(deps).toHaveLength(4);
134
- (0, import_vitest.expect)(deps.map((d) => d.name)).toEqual([
135
- "flask",
136
- "pyyaml",
137
- "my-package",
138
- "another-package"
139
- ]);
140
- });
141
- (0, import_vitest.it)("all dependencies have production scope", async () => {
142
- const manifestPath = writeRequirements("flask==2.3.0\npytest==7.0.0\nmypy>=1.0\n");
143
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
144
- (0, import_vitest.expect)(deps).toHaveLength(3);
145
- (0, import_vitest.expect)(deps.every((d) => d.scope === "production")).toBe(true);
146
- });
147
- (0, import_vitest.it)("all dependencies have pypi ecosystem", async () => {
148
- const manifestPath = writeRequirements("flask==2.3.0\ndjango~=4.2\n");
149
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
150
- (0, import_vitest.expect)(deps.every((d) => d.ecosystem === "pypi")).toBe(true);
151
- });
152
- (0, import_vitest.it)("sets sourceManifest as relative path", async () => {
153
- const subDir = path.join(tmpDir, "services", "api");
154
- fs.mkdirSync(subDir, { recursive: true });
155
- const filePath = path.join(subDir, "requirements.txt");
156
- fs.writeFileSync(filePath, "flask==2.3.0\n");
157
- const deps = await (0, import_pip.parsePipManifest)(filePath, tmpDir);
158
- (0, import_vitest.expect)(deps).toHaveLength(1);
159
- (0, import_vitest.expect)(deps[0].sourceManifest).toBe("services/api/requirements.txt");
160
- });
161
- (0, import_vitest.it)("returns empty array for non-existent file", async () => {
162
- const deps = await (0, import_pip.parsePipManifest)(
163
- path.join(tmpDir, "nonexistent.txt"),
164
- tmpDir
165
- );
166
- (0, import_vitest.expect)(deps).toEqual([]);
167
- });
168
- (0, import_vitest.it)("handles inline comments", async () => {
169
- const manifestPath = writeRequirements(
170
- "flask==2.3.0 # web framework\nrequests>=2.28 # HTTP library\n"
171
- );
172
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
173
- (0, import_vitest.expect)(deps).toHaveLength(2);
174
- (0, import_vitest.expect)(deps[0].declaredConstraint).toBe("==2.3.0");
175
- (0, import_vitest.expect)(deps[1].declaredConstraint).toBe(">=2.28");
176
- });
177
- (0, import_vitest.it)("handles compound version constraints (e.g. >=1.0,<2.0)", async () => {
178
- const manifestPath = writeRequirements("flask>=2.0,<3.0\nrequests>=2.28,!=2.29.0\n");
179
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
180
- (0, import_vitest.expect)(deps).toHaveLength(2);
181
- (0, import_vitest.expect)(deps[0].name).toBe("flask");
182
- (0, import_vitest.expect)(deps[0].declaredConstraint).toBe(">=2.0,<3.0");
183
- (0, import_vitest.expect)(deps[0].resolvedVersion).toBeUndefined();
184
- (0, import_vitest.expect)(deps[1].name).toBe("requests");
185
- (0, import_vitest.expect)(deps[1].declaredConstraint).toBe(">=2.28,!=2.29.0");
186
- });
187
- (0, import_vitest.it)("handles != constraint", async () => {
188
- const manifestPath = writeRequirements("flask!=2.2.0\n");
189
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
190
- (0, import_vitest.expect)(deps).toHaveLength(1);
191
- (0, import_vitest.expect)(deps[0].declaredConstraint).toBe("!=2.2.0");
192
- (0, import_vitest.expect)(deps[0].resolvedVersion).toBeUndefined();
193
- });
194
- (0, import_vitest.it)("handles < and > constraints", async () => {
195
- const manifestPath = writeRequirements("flask>2.0\ndjango<5.0\n");
196
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
197
- (0, import_vitest.expect)(deps).toHaveLength(2);
198
- (0, import_vitest.expect)(deps[0].declaredConstraint).toBe(">2.0");
199
- (0, import_vitest.expect)(deps[1].declaredConstraint).toBe("<5.0");
200
- });
201
- (0, import_vitest.it)("handles <= constraint", async () => {
202
- const manifestPath = writeRequirements("flask<=2.3.0\n");
203
- const deps = await (0, import_pip.parsePipManifest)(manifestPath, tmpDir);
204
- (0, import_vitest.expect)(deps).toHaveLength(1);
205
- (0, import_vitest.expect)(deps[0].declaredConstraint).toBe("<=2.3.0");
206
- });
207
- });
208
- //# sourceMappingURL=pip.test.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/security/manifest/plugins/pip.test.ts"],
4
- "sourcesContent": ["/**\n * Unit tests for the pip security manifest plugin.\n */\nimport { describe, it, expect, beforeEach, afterEach } from 'vitest';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport * as os from 'os';\nimport { parsePipManifest } from './pip';\n\ndescribe('parsePipManifest', () => {\n let tmpDir: string;\n\n beforeEach(() => {\n tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'kirograph-pip-test-'));\n });\n\n afterEach(() => {\n fs.rmSync(tmpDir, { recursive: true, force: true });\n });\n\n function writeRequirements(content: string, filename = 'requirements.txt'): string {\n const filePath = path.join(tmpDir, filename);\n fs.writeFileSync(filePath, content);\n return filePath;\n }\n\n it('extracts packages with == constraint and resolves exact version', async () => {\n const manifestPath = writeRequirements('flask==2.3.0\\nrequests==2.28.1\\n');\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(2);\n const flask = deps.find(d => d.name === 'flask');\n expect(flask).toBeDefined();\n expect(flask!.declaredConstraint).toBe('==2.3.0');\n expect(flask!.resolvedVersion).toBe('2.3.0');\n expect(flask!.scope).toBe('production');\n expect(flask!.ecosystem).toBe('pypi');\n\n const requests = deps.find(d => d.name === 'requests');\n expect(requests).toBeDefined();\n expect(requests!.declaredConstraint).toBe('==2.28.1');\n expect(requests!.resolvedVersion).toBe('2.28.1');\n });\n\n it('extracts packages with >= constraint (no resolved version)', async () => {\n const manifestPath = writeRequirements('requests>=2.28\\n');\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].name).toBe('requests');\n expect(deps[0].declaredConstraint).toBe('>=2.28');\n expect(deps[0].resolvedVersion).toBeUndefined();\n });\n\n it('extracts packages with ~= constraint', async () => {\n const manifestPath = writeRequirements('django~=4.2\\n');\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].name).toBe('django');\n expect(deps[0].declaredConstraint).toBe('~=4.2');\n expect(deps[0].resolvedVersion).toBeUndefined();\n });\n\n it('extracts packages with no version constraint', async () => {\n const manifestPath = writeRequirements('numpy\\nscipy\\n');\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(2);\n expect(deps[0].name).toBe('numpy');\n expect(deps[0].declaredConstraint).toBe('');\n expect(deps[0].resolvedVersion).toBeUndefined();\n expect(deps[1].name).toBe('scipy');\n });\n\n it('skips comment lines', async () => {\n const manifestPath = writeRequirements(\n '# This is a comment\\nflask==2.3.0\\n# Another comment\\nrequests>=2.28\\n',\n );\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(2);\n expect(deps.map(d => d.name)).toEqual(['flask', 'requests']);\n });\n\n it('skips empty lines', async () => {\n const manifestPath = writeRequirements('flask==2.3.0\\n\\n\\nrequests>=2.28\\n\\n');\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(2);\n });\n\n it('skips pip option lines (-r, -c, -e, --index-url, --extra-index-url)', async () => {\n const manifestPath = writeRequirements(\n '-r base.txt\\n-c constraints.txt\\n-e git+https://github.com/user/repo.git\\n--index-url https://pypi.org/simple\\n--extra-index-url https://private.pypi.org/simple\\nflask==2.3.0\\n',\n );\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].name).toBe('flask');\n });\n\n it('strips environment markers', async () => {\n const manifestPath = writeRequirements(\n 'pywin32>=300; sys_platform == \"win32\"\\ncolorama>=0.4; os_name == \"nt\"\\nflask==2.3.0\\n',\n );\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(3);\n const pywin32 = deps.find(d => d.name === 'pywin32');\n expect(pywin32).toBeDefined();\n expect(pywin32!.declaredConstraint).toBe('>=300');\n\n const colorama = deps.find(d => d.name === 'colorama');\n expect(colorama).toBeDefined();\n expect(colorama!.declaredConstraint).toBe('>=0.4');\n });\n\n it('handles packages with extras (e.g. package[extra]>=1.0)', async () => {\n const manifestPath = writeRequirements('requests[security]>=2.28.0\\ncelery[redis]==5.3.0\\n');\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(2);\n const requests = deps.find(d => d.name === 'requests');\n expect(requests).toBeDefined();\n expect(requests!.declaredConstraint).toBe('>=2.28.0');\n\n const celery = deps.find(d => d.name === 'celery');\n expect(celery).toBeDefined();\n expect(celery!.declaredConstraint).toBe('==5.3.0');\n expect(celery!.resolvedVersion).toBe('5.3.0');\n });\n\n it('normalizes package names (PEP 503)', async () => {\n const manifestPath = writeRequirements(\n 'Flask==2.3.0\\nPyYAML>=6.0\\nmy_package==1.0.0\\nAnother.Package>=2.0\\n',\n );\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(4);\n expect(deps.map(d => d.name)).toEqual([\n 'flask',\n 'pyyaml',\n 'my-package',\n 'another-package',\n ]);\n });\n\n it('all dependencies have production scope', async () => {\n const manifestPath = writeRequirements('flask==2.3.0\\npytest==7.0.0\\nmypy>=1.0\\n');\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(3);\n expect(deps.every(d => d.scope === 'production')).toBe(true);\n });\n\n it('all dependencies have pypi ecosystem', async () => {\n const manifestPath = writeRequirements('flask==2.3.0\\ndjango~=4.2\\n');\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps.every(d => d.ecosystem === 'pypi')).toBe(true);\n });\n\n it('sets sourceManifest as relative path', async () => {\n const subDir = path.join(tmpDir, 'services', 'api');\n fs.mkdirSync(subDir, { recursive: true });\n const filePath = path.join(subDir, 'requirements.txt');\n fs.writeFileSync(filePath, 'flask==2.3.0\\n');\n\n const deps = await parsePipManifest(filePath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].sourceManifest).toBe('services/api/requirements.txt');\n });\n\n it('returns empty array for non-existent file', async () => {\n const deps = await parsePipManifest(\n path.join(tmpDir, 'nonexistent.txt'),\n tmpDir,\n );\n expect(deps).toEqual([]);\n });\n\n it('handles inline comments', async () => {\n const manifestPath = writeRequirements(\n 'flask==2.3.0 # web framework\\nrequests>=2.28 # HTTP library\\n',\n );\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(2);\n expect(deps[0].declaredConstraint).toBe('==2.3.0');\n expect(deps[1].declaredConstraint).toBe('>=2.28');\n });\n\n it('handles compound version constraints (e.g. >=1.0,<2.0)', async () => {\n const manifestPath = writeRequirements('flask>=2.0,<3.0\\nrequests>=2.28,!=2.29.0\\n');\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(2);\n expect(deps[0].name).toBe('flask');\n expect(deps[0].declaredConstraint).toBe('>=2.0,<3.0');\n expect(deps[0].resolvedVersion).toBeUndefined();\n\n expect(deps[1].name).toBe('requests');\n expect(deps[1].declaredConstraint).toBe('>=2.28,!=2.29.0');\n });\n\n it('handles != constraint', async () => {\n const manifestPath = writeRequirements('flask!=2.2.0\\n');\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].declaredConstraint).toBe('!=2.2.0');\n expect(deps[0].resolvedVersion).toBeUndefined();\n });\n\n it('handles < and > constraints', async () => {\n const manifestPath = writeRequirements('flask>2.0\\ndjango<5.0\\n');\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(2);\n expect(deps[0].declaredConstraint).toBe('>2.0');\n expect(deps[1].declaredConstraint).toBe('<5.0');\n });\n\n it('handles <= constraint', async () => {\n const manifestPath = writeRequirements('flask<=2.3.0\\n');\n\n const deps = await parsePipManifest(manifestPath, tmpDir);\n\n expect(deps).toHaveLength(1);\n expect(deps[0].declaredConstraint).toBe('<=2.3.0');\n });\n});\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAGA,oBAA4D;AAC5D,SAAoB;AACpB,WAAsB;AACtB,SAAoB;AACpB,i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