@dataparade/cli 0.0.11 → 0.0.13

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 (505) hide show
  1. package/dist/package.json +5 -8
  2. package/dist/src/ai-enrichment/candidate-selector.d.ts +1 -1
  3. package/dist/src/ai-enrichment/fallbacks.d.ts +2 -2
  4. package/dist/src/ai-enrichment/fallbacks.js +97 -80
  5. package/dist/src/ai-enrichment/merge-rules.d.ts +2 -0
  6. package/dist/src/ai-enrichment/merge-rules.js +116 -4
  7. package/dist/src/ai-enrichment/non-pii-signal-rules.js +2 -6
  8. package/dist/src/ai-enrichment/openai-proposals-response.schema.d.ts +1 -1
  9. package/dist/src/ai-enrichment/pii-signal-rules.js +2 -6
  10. package/dist/src/ai-enrichment/prompts/provider-enrichment-prompts.d.ts +1 -1
  11. package/dist/src/ai-enrichment/prompts/provider-enrichment-prompts.js +1 -1
  12. package/dist/src/ai-enrichment/provider-prompt.d.ts +1 -1
  13. package/dist/src/ai-enrichment/provider-prompt.js +4 -0
  14. package/dist/src/ai-enrichment/provider-topology-rules.js +2 -6
  15. package/dist/src/ai-enrichment/providers/provider-contract.d.ts +6 -0
  16. package/dist/src/ai-enrichment/providers/provider-contract.js +62 -2
  17. package/dist/src/ai-enrichment/sensitive-paths.d.ts +1 -1
  18. package/dist/src/ai-enrichment/sensitive-paths.js +3 -3
  19. package/dist/src/ai-enrichment/third-party-data-flow.js +3 -3
  20. package/dist/src/ai-enrichment/third-party-subtype.js +2 -2
  21. package/dist/src/ai-enrichment/tools/index.d.ts +1 -1
  22. package/dist/src/ai-enrichment/types.d.ts +1 -1
  23. package/dist/src/cli.js +6 -5
  24. package/dist/src/config/file.d.ts +1 -1
  25. package/dist/src/config/file.js +21 -19
  26. package/dist/src/config/resolve.d.ts +1 -1
  27. package/dist/src/config/resolve.js +75 -68
  28. package/dist/src/core/pipeline/graph-mapping.d.ts +1 -6
  29. package/dist/src/core/pipeline/graph-mapping.js +3 -314
  30. package/dist/src/core/pipeline/orchestrator-result.d.ts +1 -6
  31. package/dist/src/core/pipeline/orchestrator.d.ts +2 -26
  32. package/dist/src/core/pipeline/orchestrator.js +4 -77
  33. package/dist/src/core/pipeline/scan-pipeline.d.ts +2 -1
  34. package/dist/src/core/pipeline/scan-pipeline.js +39 -97
  35. package/dist/src/core/schema/index.d.ts +2 -2
  36. package/dist/src/core/schema/index.js +4 -2
  37. package/dist/src/core/schema/scan-config.schema.d.ts +5 -3
  38. package/dist/src/core/schema/scan-config.schema.js +18 -16
  39. package/dist/src/core/schema/scan-result.schema.d.ts +2 -455
  40. package/dist/src/core/schema/scan-result.schema.js +12 -239
  41. package/dist/src/core/types/component.d.ts +1 -18
  42. package/dist/src/core/types/component.js +15 -0
  43. package/dist/src/core/types/config.d.ts +1 -64
  44. package/dist/src/core/types/config.js +15 -0
  45. package/dist/src/core/types/data-flow.d.ts +1 -24
  46. package/dist/src/core/types/data-flow.js +15 -0
  47. package/dist/src/core/types/detection.d.ts +1 -12
  48. package/dist/src/core/types/detection.js +15 -17
  49. package/dist/src/core/types/file.d.ts +1 -14
  50. package/dist/src/core/types/file.js +15 -0
  51. package/dist/src/core/types/index.d.ts +1 -7
  52. package/dist/src/core/types/index.js +1 -7
  53. package/dist/src/core/types/progress.d.ts +1 -9
  54. package/dist/src/core/types/progress.js +15 -0
  55. package/dist/src/core/types/result.d.ts +1 -140
  56. package/dist/src/core/types/result.js +15 -0
  57. package/dist/src/evals/run-model-matrix.js +2 -1
  58. package/dist/src/platform-api/estimate-scan-footprint.js +9 -10
  59. package/dist/src/scanner-package-root.d.ts +2 -0
  60. package/dist/src/scanner-package-root.js +12 -0
  61. package/dist/tests/cli/cli.spec.js +18 -15
  62. package/dist/tests/unit/ai-enrichment/merge-rules.spec.js +246 -0
  63. package/dist/tests/unit/ai-enrichment/provider-contract.spec.js +78 -0
  64. package/dist/tests/unit/ai-enrichment/provider-prompt.spec.js +2 -0
  65. package/dist/tests/unit/ai-enrichment/third-party-data-flow.spec.js +2 -2
  66. package/dist/tests/unit/cli/scan-command-ai-flags.spec.js +5 -3
  67. package/dist/tests/unit/cli/scan-command-e2e-monorepo-app-plus-terraform.spec.js +2 -2
  68. package/dist/tests/unit/cli/scan-command-e2e-ts-sentry-route-env.spec.js +2 -1
  69. package/dist/tests/unit/cli/scan-command-exit-code.spec.js +7 -5
  70. package/dist/tests/unit/core/cpp-dotnet-scan.spec.js +4 -3
  71. package/dist/tests/unit/core/go-scan.spec.js +7 -6
  72. package/dist/tests/unit/core/graph-mapping.spec.js +2 -1
  73. package/dist/tests/unit/core/invariant-tests-dedupe-determinism.spec.js +7 -6
  74. package/dist/tests/unit/core/jvm-scan.spec.js +6 -5
  75. package/dist/tests/unit/core/no-source-code-leakage.spec.js +2 -1
  76. package/dist/tests/unit/core/orchestrator.spec.js +21 -20
  77. package/dist/tests/unit/core/output-json.spec.js +3 -2
  78. package/dist/tests/unit/core/parsing-error-handling-nonfatal.spec.js +2 -1
  79. package/dist/tests/unit/core/scan-result-language-stats.spec.js +2 -1
  80. package/dist/tests/unit/core/terraform-json-overlay.spec.js +2 -1
  81. package/dist/tests/unit/publish-manifest.spec.js +3 -2
  82. package/package.json +5 -8
  83. package/dist/src/analyzers/cpp/cpp-detection-config.d.ts +0 -73
  84. package/dist/src/analyzers/cpp/cpp-detection-config.js +0 -137
  85. package/dist/src/analyzers/cpp/dependency-manifests.d.ts +0 -8
  86. package/dist/src/analyzers/cpp/dependency-manifests.js +0 -130
  87. package/dist/src/analyzers/cpp/detector.d.ts +0 -3
  88. package/dist/src/analyzers/cpp/detector.js +0 -21
  89. package/dist/src/analyzers/cpp/index.d.ts +0 -2
  90. package/dist/src/analyzers/cpp/index.js +0 -11
  91. package/dist/src/analyzers/cpp/manifest-parsers.d.ts +0 -13
  92. package/dist/src/analyzers/cpp/manifest-parsers.js +0 -104
  93. package/dist/src/analyzers/cpp/parser.d.ts +0 -35
  94. package/dist/src/analyzers/cpp/parser.js +0 -206
  95. package/dist/src/analyzers/cpp/patterns.d.ts +0 -3
  96. package/dist/src/analyzers/cpp/patterns.js +0 -37
  97. package/dist/src/analyzers/csharp/csharp-detection-config.d.ts +0 -100
  98. package/dist/src/analyzers/csharp/csharp-detection-config.js +0 -160
  99. package/dist/src/analyzers/csharp/dependency-manifests.d.ts +0 -13
  100. package/dist/src/analyzers/csharp/dependency-manifests.js +0 -184
  101. package/dist/src/analyzers/csharp/detector.d.ts +0 -3
  102. package/dist/src/analyzers/csharp/detector.js +0 -21
  103. package/dist/src/analyzers/csharp/index.d.ts +0 -2
  104. package/dist/src/analyzers/csharp/index.js +0 -11
  105. package/dist/src/analyzers/csharp/manifest-parsers.d.ts +0 -34
  106. package/dist/src/analyzers/csharp/manifest-parsers.js +0 -130
  107. package/dist/src/analyzers/csharp/parser.d.ts +0 -48
  108. package/dist/src/analyzers/csharp/parser.js +0 -277
  109. package/dist/src/analyzers/csharp/patterns.d.ts +0 -3
  110. package/dist/src/analyzers/csharp/patterns.js +0 -57
  111. package/dist/src/analyzers/go/dependency-manifests.d.ts +0 -10
  112. package/dist/src/analyzers/go/dependency-manifests.js +0 -117
  113. package/dist/src/analyzers/go/detector.d.ts +0 -3
  114. package/dist/src/analyzers/go/detector.js +0 -21
  115. package/dist/src/analyzers/go/go-detection-config.d.ts +0 -97
  116. package/dist/src/analyzers/go/go-detection-config.js +0 -164
  117. package/dist/src/analyzers/go/index.d.ts +0 -2
  118. package/dist/src/analyzers/go/index.js +0 -11
  119. package/dist/src/analyzers/go/manifest-parsers.d.ts +0 -20
  120. package/dist/src/analyzers/go/manifest-parsers.js +0 -104
  121. package/dist/src/analyzers/go/parser.d.ts +0 -40
  122. package/dist/src/analyzers/go/parser.js +0 -186
  123. package/dist/src/analyzers/go/patterns.d.ts +0 -3
  124. package/dist/src/analyzers/go/patterns.js +0 -50
  125. package/dist/src/analyzers/jvm/dependency-manifests.d.ts +0 -16
  126. package/dist/src/analyzers/jvm/dependency-manifests.js +0 -205
  127. package/dist/src/analyzers/jvm/detector.d.ts +0 -3
  128. package/dist/src/analyzers/jvm/detector.js +0 -21
  129. package/dist/src/analyzers/jvm/index.d.ts +0 -9
  130. package/dist/src/analyzers/jvm/index.js +0 -18
  131. package/dist/src/analyzers/jvm/jvm-detection-config.d.ts +0 -136
  132. package/dist/src/analyzers/jvm/jvm-detection-config.js +0 -195
  133. package/dist/src/analyzers/jvm/manifest-parsers.d.ts +0 -61
  134. package/dist/src/analyzers/jvm/manifest-parsers.js +0 -246
  135. package/dist/src/analyzers/jvm/parser.d.ts +0 -54
  136. package/dist/src/analyzers/jvm/parser.js +0 -419
  137. package/dist/src/analyzers/jvm/patterns.d.ts +0 -3
  138. package/dist/src/analyzers/jvm/patterns.js +0 -64
  139. package/dist/src/analyzers/python/dependency-manifests.d.ts +0 -8
  140. package/dist/src/analyzers/python/dependency-manifests.js +0 -131
  141. package/dist/src/analyzers/python/detector.d.ts +0 -3
  142. package/dist/src/analyzers/python/detector.js +0 -22
  143. package/dist/src/analyzers/python/index.d.ts +0 -2
  144. package/dist/src/analyzers/python/index.js +0 -11
  145. package/dist/src/analyzers/python/manifest-parsers.d.ts +0 -3
  146. package/dist/src/analyzers/python/manifest-parsers.js +0 -134
  147. package/dist/src/analyzers/python/parser.d.ts +0 -27
  148. package/dist/src/analyzers/python/parser.js +0 -194
  149. package/dist/src/analyzers/python/patterns.d.ts +0 -8
  150. package/dist/src/analyzers/python/patterns.js +0 -51
  151. package/dist/src/analyzers/python/python-detection-config.d.ts +0 -93
  152. package/dist/src/analyzers/python/python-detection-config.js +0 -168
  153. package/dist/src/analyzers/registry.d.ts +0 -13
  154. package/dist/src/analyzers/registry.js +0 -75
  155. package/dist/src/analyzers/shared/c-family-calls.d.ts +0 -26
  156. package/dist/src/analyzers/shared/c-family-calls.js +0 -118
  157. package/dist/src/analyzers/shared/manifest-budgets.d.ts +0 -19
  158. package/dist/src/analyzers/shared/manifest-budgets.js +0 -21
  159. package/dist/src/analyzers/shared/manifest-fs.d.ts +0 -13
  160. package/dist/src/analyzers/shared/manifest-fs.js +0 -138
  161. package/dist/src/analyzers/shared/property-inference.d.ts +0 -8
  162. package/dist/src/analyzers/shared/property-inference.js +0 -165
  163. package/dist/src/analyzers/shared/strip-comments.d.ts +0 -32
  164. package/dist/src/analyzers/shared/strip-comments.js +0 -167
  165. package/dist/src/analyzers/terraform/detector.d.ts +0 -10
  166. package/dist/src/analyzers/terraform/detector.js +0 -198
  167. package/dist/src/analyzers/terraform/index.d.ts +0 -2
  168. package/dist/src/analyzers/terraform/index.js +0 -13
  169. package/dist/src/analyzers/terraform/parser.d.ts +0 -29
  170. package/dist/src/analyzers/terraform/parser.js +0 -202
  171. package/dist/src/analyzers/terraform/terraform-detection-config.d.ts +0 -48
  172. package/dist/src/analyzers/terraform/terraform-detection-config.js +0 -218
  173. package/dist/src/analyzers/terraform/terraform-exec.d.ts +0 -11
  174. package/dist/src/analyzers/terraform/terraform-exec.js +0 -35
  175. package/dist/src/analyzers/terraform/terraform-module-manifest.d.ts +0 -19
  176. package/dist/src/analyzers/terraform/terraform-module-manifest.js +0 -75
  177. package/dist/src/analyzers/terraform/terraform-show-json.d.ts +0 -15
  178. package/dist/src/analyzers/terraform/terraform-show-json.js +0 -188
  179. package/dist/src/analyzers/terraform/terraform-utility-resource.d.ts +0 -12
  180. package/dist/src/analyzers/terraform/terraform-utility-resource.js +0 -30
  181. package/dist/src/analyzers/types.d.ts +0 -5
  182. package/dist/src/analyzers/types.js +0 -2
  183. package/dist/src/analyzers/typescript/actor-detection.d.ts +0 -4
  184. package/dist/src/analyzers/typescript/actor-detection.js +0 -15
  185. package/dist/src/analyzers/typescript/dependency-manifests.d.ts +0 -9
  186. package/dist/src/analyzers/typescript/dependency-manifests.js +0 -131
  187. package/dist/src/analyzers/typescript/detector.d.ts +0 -3
  188. package/dist/src/analyzers/typescript/detector.js +0 -23
  189. package/dist/src/analyzers/typescript/index.d.ts +0 -2
  190. package/dist/src/analyzers/typescript/index.js +0 -11
  191. package/dist/src/analyzers/typescript/manifest-parsers.d.ts +0 -1
  192. package/dist/src/analyzers/typescript/manifest-parsers.js +0 -30
  193. package/dist/src/analyzers/typescript/parser.d.ts +0 -44
  194. package/dist/src/analyzers/typescript/parser.js +0 -287
  195. package/dist/src/analyzers/typescript/third-party-detection.d.ts +0 -4
  196. package/dist/src/analyzers/typescript/third-party-detection.js +0 -16
  197. package/dist/src/analyzers/typescript/typescript-detection-config.d.ts +0 -105
  198. package/dist/src/analyzers/typescript/typescript-detection-config.js +0 -219
  199. package/dist/src/analyzers/typescript/typescript-detection.d.ts +0 -11
  200. package/dist/src/analyzers/typescript/typescript-detection.js +0 -55
  201. package/dist/src/classifier/application-injection.d.ts +0 -12
  202. package/dist/src/classifier/application-injection.js +0 -335
  203. package/dist/src/classifier/classify.d.ts +0 -3
  204. package/dist/src/classifier/classify.js +0 -15
  205. package/dist/src/classifier/component-factory.d.ts +0 -3
  206. package/dist/src/classifier/component-factory.js +0 -488
  207. package/dist/src/classifier/config.d.ts +0 -38
  208. package/dist/src/classifier/config.js +0 -260
  209. package/dist/src/classifier/enhance-defaults.d.ts +0 -28
  210. package/dist/src/classifier/enhance-defaults.js +0 -369
  211. package/dist/src/classifier/enhance.d.ts +0 -13
  212. package/dist/src/classifier/enhance.js +0 -295
  213. package/dist/src/classifier/external-url-third-party.d.ts +0 -26
  214. package/dist/src/classifier/external-url-third-party.js +0 -195
  215. package/dist/src/classifier/grouping.d.ts +0 -1
  216. package/dist/src/classifier/grouping.js +0 -2
  217. package/dist/src/classifier/main-application-selection.d.ts +0 -41
  218. package/dist/src/classifier/main-application-selection.js +0 -222
  219. package/dist/src/classifier/naming.d.ts +0 -4
  220. package/dist/src/classifier/naming.js +0 -78
  221. package/dist/src/classifier/postprocessing.d.ts +0 -12
  222. package/dist/src/classifier/postprocessing.js +0 -510
  223. package/dist/src/classifier/sectioning.d.ts +0 -5
  224. package/dist/src/classifier/sectioning.js +0 -60
  225. package/dist/src/classifier/terraform-provider-hub.d.ts +0 -6
  226. package/dist/src/classifier/terraform-provider-hub.js +0 -38
  227. package/dist/src/config/actor-detection-config.d.ts +0 -21
  228. package/dist/src/config/actor-detection-config.js +0 -97
  229. package/dist/src/config/property-detection-config.d.ts +0 -27
  230. package/dist/src/config/property-detection-config.js +0 -355
  231. package/dist/src/config/third-party-detection-config.d.ts +0 -25
  232. package/dist/src/config/third-party-detection-config.js +0 -97
  233. package/dist/src/core/pipeline/classifier-phase.d.ts +0 -7
  234. package/dist/src/core/pipeline/classifier-phase.js +0 -78
  235. package/dist/src/core/pipeline/dataflow-phase.d.ts +0 -7
  236. package/dist/src/core/pipeline/dataflow-phase.js +0 -10
  237. package/dist/src/core/pipeline/diagram-layout/app-section-layout.d.ts +0 -7
  238. package/dist/src/core/pipeline/diagram-layout/app-section-layout.js +0 -74
  239. package/dist/src/core/pipeline/diagram-layout/constants.d.ts +0 -11
  240. package/dist/src/core/pipeline/diagram-layout/constants.js +0 -14
  241. package/dist/src/core/pipeline/diagram-layout/edge-handles.d.ts +0 -3
  242. package/dist/src/core/pipeline/diagram-layout/edge-handles.js +0 -26
  243. package/dist/src/core/pipeline/diagram-layout/managed-provider-layout.d.ts +0 -3
  244. package/dist/src/core/pipeline/diagram-layout/managed-provider-layout.js +0 -40
  245. package/dist/src/core/pipeline/diagram-layout/minimal-terraform-layout.d.ts +0 -6
  246. package/dist/src/core/pipeline/diagram-layout/minimal-terraform-layout.js +0 -53
  247. package/dist/src/core/pipeline/diagram-layout/section-helpers.d.ts +0 -30
  248. package/dist/src/core/pipeline/diagram-layout/section-helpers.js +0 -62
  249. package/dist/src/core/pipeline/diagram-layout/terraform-lane-layout.d.ts +0 -3
  250. package/dist/src/core/pipeline/diagram-layout/terraform-lane-layout.js +0 -109
  251. package/dist/src/core/pipeline/diagram-layout/types.d.ts +0 -2
  252. package/dist/src/core/pipeline/diagram-layout/types.js +0 -2
  253. package/dist/src/core/pipeline/infer-data-flow-protocol.d.ts +0 -7
  254. package/dist/src/core/pipeline/infer-data-flow-protocol.js +0 -39
  255. package/dist/src/core/pipeline/mixed-app-terraform-scan.d.ts +0 -13
  256. package/dist/src/core/pipeline/mixed-app-terraform-scan.js +0 -81
  257. package/dist/src/core/pipeline/resolve-path-under-scan-root.d.ts +0 -7
  258. package/dist/src/core/pipeline/resolve-path-under-scan-root.js +0 -55
  259. package/dist/src/core/pipeline/sorting.d.ts +0 -3
  260. package/dist/src/core/pipeline/sorting.js +0 -48
  261. package/dist/src/core/pipeline/stable-component-ids.d.ts +0 -15
  262. package/dist/src/core/pipeline/stable-component-ids.js +0 -68
  263. package/dist/src/core/pipeline/structural-scan.d.ts +0 -19
  264. package/dist/src/core/pipeline/structural-scan.js +0 -427
  265. package/dist/src/core/pipeline/terraform-flow-utils.d.ts +0 -6
  266. package/dist/src/core/pipeline/terraform-flow-utils.js +0 -32
  267. package/dist/src/core/pipeline/terraform-minimal-services.d.ts +0 -31
  268. package/dist/src/core/pipeline/terraform-minimal-services.js +0 -225
  269. package/dist/src/core/sectioning/discover-service-sections.d.ts +0 -80
  270. package/dist/src/core/sectioning/discover-service-sections.js +0 -494
  271. package/dist/src/core/sectioning/section-runtime.d.ts +0 -21
  272. package/dist/src/core/sectioning/section-runtime.js +0 -148
  273. package/dist/src/core/terraform/component-predicates.d.ts +0 -13
  274. package/dist/src/core/terraform/component-predicates.js +0 -71
  275. package/dist/src/data-flow/application-hub.d.ts +0 -7
  276. package/dist/src/data-flow/application-hub.js +0 -88
  277. package/dist/src/data-flow/dedupe.d.ts +0 -7
  278. package/dist/src/data-flow/dedupe.js +0 -92
  279. package/dist/src/data-flow/detect.d.ts +0 -16
  280. package/dist/src/data-flow/detect.js +0 -203
  281. package/dist/src/data-flow/detector.d.ts +0 -15
  282. package/dist/src/data-flow/detector.js +0 -18
  283. package/dist/src/data-flow/drop-cross-section-flows.d.ts +0 -8
  284. package/dist/src/data-flow/drop-cross-section-flows.js +0 -32
  285. package/dist/src/data-flow/ensure-actor-flow.d.ts +0 -16
  286. package/dist/src/data-flow/ensure-actor-flow.js +0 -101
  287. package/dist/src/data-flow/ensure-manifest-declared-flows.d.ts +0 -14
  288. package/dist/src/data-flow/ensure-manifest-declared-flows.js +0 -76
  289. package/dist/src/data-flow/ensure-section-api-flows.d.ts +0 -6
  290. package/dist/src/data-flow/ensure-section-api-flows.js +0 -57
  291. package/dist/src/data-flow/flow-builder.d.ts +0 -5
  292. package/dist/src/data-flow/flow-builder.js +0 -80
  293. package/dist/src/data-flow/import-graph.d.ts +0 -10
  294. package/dist/src/data-flow/import-graph.js +0 -147
  295. package/dist/src/data-flow/index.d.ts +0 -8
  296. package/dist/src/data-flow/index.js +0 -20
  297. package/dist/src/data-flow/internal-fetch.d.ts +0 -8
  298. package/dist/src/data-flow/internal-fetch.js +0 -209
  299. package/dist/src/data-flow/postprocess.d.ts +0 -9
  300. package/dist/src/data-flow/postprocess.js +0 -63
  301. package/dist/src/data-flow/rewire.d.ts +0 -10
  302. package/dist/src/data-flow/rewire.js +0 -93
  303. package/dist/src/data-flow/source-attribution.d.ts +0 -8
  304. package/dist/src/data-flow/source-attribution.js +0 -131
  305. package/dist/src/data-flow/source-resolution.d.ts +0 -13
  306. package/dist/src/data-flow/source-resolution.js +0 -61
  307. package/dist/src/data-flow/target-matching.d.ts +0 -21
  308. package/dist/src/data-flow/target-matching.js +0 -253
  309. package/dist/src/data-flow/terraform-flows.d.ts +0 -32
  310. package/dist/src/data-flow/terraform-flows.js +0 -170
  311. package/dist/src/ingest/file-system.d.ts +0 -17
  312. package/dist/src/ingest/file-system.js +0 -266
  313. package/dist/src/ingest/gitignore.d.ts +0 -12
  314. package/dist/src/ingest/gitignore.js +0 -127
  315. package/dist/src/ingest/sensitive-paths.d.ts +0 -2
  316. package/dist/src/ingest/sensitive-paths.js +0 -8
  317. package/dist/src/patterns/config.d.ts +0 -30
  318. package/dist/src/patterns/config.js +0 -255
  319. package/dist/src/patterns/detectors/cpp.d.ts +0 -8
  320. package/dist/src/patterns/detectors/cpp.js +0 -243
  321. package/dist/src/patterns/detectors/csharp.d.ts +0 -9
  322. package/dist/src/patterns/detectors/csharp.js +0 -385
  323. package/dist/src/patterns/detectors/go.d.ts +0 -9
  324. package/dist/src/patterns/detectors/go.js +0 -298
  325. package/dist/src/patterns/detectors/helpers.d.ts +0 -22
  326. package/dist/src/patterns/detectors/helpers.js +0 -73
  327. package/dist/src/patterns/detectors/jvm.d.ts +0 -15
  328. package/dist/src/patterns/detectors/jvm.js +0 -537
  329. package/dist/src/patterns/detectors/python.d.ts +0 -9
  330. package/dist/src/patterns/detectors/python.js +0 -499
  331. package/dist/src/patterns/detectors/typescript.d.ts +0 -10
  332. package/dist/src/patterns/detectors/typescript.js +0 -480
  333. package/dist/src/patterns/engine.d.ts +0 -58
  334. package/dist/src/patterns/engine.js +0 -141
  335. package/dist/src/patterns/flow-source-patterns.d.ts +0 -6
  336. package/dist/src/patterns/flow-source-patterns.js +0 -39
  337. package/dist/src/patterns/frontend-frameworks.d.ts +0 -4
  338. package/dist/src/patterns/frontend-frameworks.js +0 -25
  339. package/dist/src/patterns/scan-exclusions.d.ts +0 -14
  340. package/dist/src/patterns/scan-exclusions.js +0 -96
  341. package/dist/tests/unit/analyzers/cpp/dependency-manifests.spec.d.ts +0 -1
  342. package/dist/tests/unit/analyzers/cpp/dependency-manifests.spec.js +0 -66
  343. package/dist/tests/unit/analyzers/cpp/parser.spec.d.ts +0 -1
  344. package/dist/tests/unit/analyzers/cpp/parser.spec.js +0 -80
  345. package/dist/tests/unit/analyzers/cpp/patterns.spec.d.ts +0 -1
  346. package/dist/tests/unit/analyzers/cpp/patterns.spec.js +0 -141
  347. package/dist/tests/unit/analyzers/csharp/dependency-manifests.spec.d.ts +0 -1
  348. package/dist/tests/unit/analyzers/csharp/dependency-manifests.spec.js +0 -75
  349. package/dist/tests/unit/analyzers/csharp/parser.spec.d.ts +0 -1
  350. package/dist/tests/unit/analyzers/csharp/parser.spec.js +0 -118
  351. package/dist/tests/unit/analyzers/csharp/patterns.spec.d.ts +0 -1
  352. package/dist/tests/unit/analyzers/csharp/patterns.spec.js +0 -210
  353. package/dist/tests/unit/analyzers/go/dependency-manifests.spec.d.ts +0 -1
  354. package/dist/tests/unit/analyzers/go/dependency-manifests.spec.js +0 -96
  355. package/dist/tests/unit/analyzers/go/parser.spec.d.ts +0 -1
  356. package/dist/tests/unit/analyzers/go/parser.spec.js +0 -110
  357. package/dist/tests/unit/analyzers/go/patterns.spec.d.ts +0 -1
  358. package/dist/tests/unit/analyzers/go/patterns.spec.js +0 -239
  359. package/dist/tests/unit/analyzers/jvm/dependency-manifests.spec.d.ts +0 -1
  360. package/dist/tests/unit/analyzers/jvm/dependency-manifests.spec.js +0 -179
  361. package/dist/tests/unit/analyzers/jvm/parser.spec.d.ts +0 -1
  362. package/dist/tests/unit/analyzers/jvm/parser.spec.js +0 -195
  363. package/dist/tests/unit/analyzers/jvm/patterns.spec.d.ts +0 -1
  364. package/dist/tests/unit/analyzers/jvm/patterns.spec.js +0 -284
  365. package/dist/tests/unit/analyzers/python/parser.spec.d.ts +0 -1
  366. package/dist/tests/unit/analyzers/python/parser.spec.js +0 -104
  367. package/dist/tests/unit/analyzers/python/patterns.spec.d.ts +0 -1
  368. package/dist/tests/unit/analyzers/python/patterns.spec.js +0 -458
  369. package/dist/tests/unit/analyzers/registry.spec.d.ts +0 -1
  370. package/dist/tests/unit/analyzers/registry.spec.js +0 -234
  371. package/dist/tests/unit/analyzers/terraform/classifier-subtype-parity.spec.d.ts +0 -1
  372. package/dist/tests/unit/analyzers/terraform/classifier-subtype-parity.spec.js +0 -87
  373. package/dist/tests/unit/analyzers/terraform/detector.spec.d.ts +0 -1
  374. package/dist/tests/unit/analyzers/terraform/detector.spec.js +0 -110
  375. package/dist/tests/unit/analyzers/terraform/generated-provider-hints.spec.d.ts +0 -1
  376. package/dist/tests/unit/analyzers/terraform/generated-provider-hints.spec.js +0 -53
  377. package/dist/tests/unit/analyzers/terraform/parser.spec.d.ts +0 -1
  378. package/dist/tests/unit/analyzers/terraform/parser.spec.js +0 -56
  379. package/dist/tests/unit/analyzers/terraform/terraform-module-manifest.spec.d.ts +0 -1
  380. package/dist/tests/unit/analyzers/terraform/terraform-module-manifest.spec.js +0 -63
  381. package/dist/tests/unit/analyzers/terraform/terraform-utility-resource.spec.d.ts +0 -1
  382. package/dist/tests/unit/analyzers/terraform/terraform-utility-resource.spec.js +0 -19
  383. package/dist/tests/unit/analyzers/terraform-exec.spec.d.ts +0 -1
  384. package/dist/tests/unit/analyzers/terraform-exec.spec.js +0 -27
  385. package/dist/tests/unit/analyzers/terraform-show-json.spec.d.ts +0 -1
  386. package/dist/tests/unit/analyzers/terraform-show-json.spec.js +0 -77
  387. package/dist/tests/unit/analyzers/typescript/dependency-manifests.spec.d.ts +0 -1
  388. package/dist/tests/unit/analyzers/typescript/dependency-manifests.spec.js +0 -61
  389. package/dist/tests/unit/analyzers/typescript/detector.spec.d.ts +0 -1
  390. package/dist/tests/unit/analyzers/typescript/detector.spec.js +0 -413
  391. package/dist/tests/unit/analyzers/typescript/external-apis-auth0.spec.d.ts +0 -1
  392. package/dist/tests/unit/analyzers/typescript/external-apis-auth0.spec.js +0 -49
  393. package/dist/tests/unit/analyzers/typescript/external-apis-sentry.spec.d.ts +0 -1
  394. package/dist/tests/unit/analyzers/typescript/external-apis-sentry.spec.js +0 -27
  395. package/dist/tests/unit/analyzers/typescript/fixture-integration.spec.d.ts +0 -1
  396. package/dist/tests/unit/analyzers/typescript/fixture-integration.spec.js +0 -64
  397. package/dist/tests/unit/analyzers/typescript/parser.spec.d.ts +0 -1
  398. package/dist/tests/unit/analyzers/typescript/parser.spec.js +0 -99
  399. package/dist/tests/unit/analyzers/typescript/pattern-config.spec.d.ts +0 -1
  400. package/dist/tests/unit/analyzers/typescript/pattern-config.spec.js +0 -24
  401. package/dist/tests/unit/analyzers/typescript/property-detection.spec.d.ts +0 -1
  402. package/dist/tests/unit/analyzers/typescript/property-detection.spec.js +0 -160
  403. package/dist/tests/unit/classifier/classify.spec.d.ts +0 -1
  404. package/dist/tests/unit/classifier/classify.spec.js +0 -1453
  405. package/dist/tests/unit/classifier/enhance.spec.d.ts +0 -1
  406. package/dist/tests/unit/classifier/enhance.spec.js +0 -400
  407. package/dist/tests/unit/classifier/external-url-third-party.spec.d.ts +0 -1
  408. package/dist/tests/unit/classifier/external-url-third-party.spec.js +0 -83
  409. package/dist/tests/unit/classifier/frontend-framework-grouping.spec.d.ts +0 -1
  410. package/dist/tests/unit/classifier/frontend-framework-grouping.spec.js +0 -44
  411. package/dist/tests/unit/classifier/terraform-grouping.spec.d.ts +0 -1
  412. package/dist/tests/unit/classifier/terraform-grouping.spec.js +0 -96
  413. package/dist/tests/unit/config/property-detection-config.spec.d.ts +0 -1
  414. package/dist/tests/unit/config/property-detection-config.spec.js +0 -38
  415. package/dist/tests/unit/core/classifier-phase-regressions.spec.d.ts +0 -1
  416. package/dist/tests/unit/core/classifier-phase-regressions.spec.js +0 -68
  417. package/dist/tests/unit/core/cpp-dotnet-sections.spec.d.ts +0 -1
  418. package/dist/tests/unit/core/cpp-dotnet-sections.spec.js +0 -46
  419. package/dist/tests/unit/core/dependency-manifest-performance-budgets.spec.d.ts +0 -1
  420. package/dist/tests/unit/core/dependency-manifest-performance-budgets.spec.js +0 -66
  421. package/dist/tests/unit/core/dependency-manifest-toggles-confidence.spec.d.ts +0 -1
  422. package/dist/tests/unit/core/dependency-manifest-toggles-confidence.spec.js +0 -132
  423. package/dist/tests/unit/core/discover-service-sections.spec.d.ts +0 -1
  424. package/dist/tests/unit/core/discover-service-sections.spec.js +0 -204
  425. package/dist/tests/unit/core/infer-data-flow-protocol.spec.d.ts +0 -1
  426. package/dist/tests/unit/core/infer-data-flow-protocol.spec.js +0 -37
  427. package/dist/tests/unit/core/manifest-package-hub.spec.d.ts +0 -1
  428. package/dist/tests/unit/core/manifest-package-hub.spec.js +0 -53
  429. package/dist/tests/unit/core/monorepo-package-sections.spec.d.ts +0 -1
  430. package/dist/tests/unit/core/monorepo-package-sections.spec.js +0 -121
  431. package/dist/tests/unit/core/resolve-path-under-scan-root.spec.d.ts +0 -1
  432. package/dist/tests/unit/core/resolve-path-under-scan-root.spec.js +0 -54
  433. package/dist/tests/unit/core/section-discovery-excludes.spec.d.ts +0 -1
  434. package/dist/tests/unit/core/section-discovery-excludes.spec.js +0 -49
  435. package/dist/tests/unit/core/section-runtime.spec.d.ts +0 -1
  436. package/dist/tests/unit/core/section-runtime.spec.js +0 -166
  437. package/dist/tests/unit/core/stable-component-ids.spec.d.ts +0 -1
  438. package/dist/tests/unit/core/stable-component-ids.spec.js +0 -112
  439. package/dist/tests/unit/core/structural-scan.spec.d.ts +0 -1
  440. package/dist/tests/unit/core/structural-scan.spec.js +0 -83
  441. package/dist/tests/unit/core/terraform-minimal-services.spec.d.ts +0 -1
  442. package/dist/tests/unit/core/terraform-minimal-services.spec.js +0 -378
  443. package/dist/tests/unit/data-flow/application-hub.spec.d.ts +0 -1
  444. package/dist/tests/unit/data-flow/application-hub.spec.js +0 -48
  445. package/dist/tests/unit/data-flow/cross-section-terraform-bridge.spec.d.ts +0 -1
  446. package/dist/tests/unit/data-flow/cross-section-terraform-bridge.spec.js +0 -95
  447. package/dist/tests/unit/data-flow/dedupe.spec.d.ts +0 -1
  448. package/dist/tests/unit/data-flow/dedupe.spec.js +0 -134
  449. package/dist/tests/unit/data-flow/detector.spec.d.ts +0 -1
  450. package/dist/tests/unit/data-flow/detector.spec.js +0 -1254
  451. package/dist/tests/unit/data-flow/drop-cross-section-flows.spec.d.ts +0 -1
  452. package/dist/tests/unit/data-flow/drop-cross-section-flows.spec.js +0 -132
  453. package/dist/tests/unit/data-flow/ensure-actor-flow.spec.d.ts +0 -1
  454. package/dist/tests/unit/data-flow/ensure-actor-flow.spec.js +0 -233
  455. package/dist/tests/unit/data-flow/ensure-manifest-declared-flows.spec.d.ts +0 -1
  456. package/dist/tests/unit/data-flow/ensure-manifest-declared-flows.spec.js +0 -125
  457. package/dist/tests/unit/data-flow/ensure-section-api-flows.spec.d.ts +0 -1
  458. package/dist/tests/unit/data-flow/ensure-section-api-flows.spec.js +0 -40
  459. package/dist/tests/unit/data-flow/postprocess.spec.d.ts +0 -1
  460. package/dist/tests/unit/data-flow/postprocess.spec.js +0 -78
  461. package/dist/tests/unit/data-flow/rewire.spec.d.ts +0 -1
  462. package/dist/tests/unit/data-flow/rewire.spec.js +0 -194
  463. package/dist/tests/unit/data-flow/terraform-flows.spec.d.ts +0 -1
  464. package/dist/tests/unit/data-flow/terraform-flows.spec.js +0 -199
  465. package/dist/tests/unit/ingest/cpp-dotnet-languages.spec.d.ts +0 -1
  466. package/dist/tests/unit/ingest/cpp-dotnet-languages.spec.js +0 -56
  467. package/dist/tests/unit/ingest/env-exclusion.spec.d.ts +0 -1
  468. package/dist/tests/unit/ingest/env-exclusion.spec.js +0 -43
  469. package/dist/tests/unit/ingest/file-system.spec.d.ts +0 -1
  470. package/dist/tests/unit/ingest/file-system.spec.js +0 -180
  471. package/dist/tests/unit/ingest/gitignore.spec.d.ts +0 -1
  472. package/dist/tests/unit/ingest/gitignore.spec.js +0 -30
  473. package/dist/tests/unit/ingest/jvm-languages.spec.d.ts +0 -1
  474. package/dist/tests/unit/ingest/jvm-languages.spec.js +0 -47
  475. package/dist/tests/unit/patterns/scan-exclusions.spec.d.ts +0 -1
  476. package/dist/tests/unit/patterns/scan-exclusions.spec.js +0 -58
  477. package/patterns/README.md +0 -322
  478. package/patterns/actor.patterns.yaml +0 -51
  479. package/patterns/aws-terraform-catalog.snapshot.json +0 -1760
  480. package/patterns/aws-terraform-service-hints.generated.json +0 -1446
  481. package/patterns/azure-terraform-catalog.snapshot.json +0 -1195
  482. package/patterns/azure-terraform-service-hints.generated.json +0 -864
  483. package/patterns/classifier/actors.classifier.yaml +0 -17
  484. package/patterns/classifier/components.classifier.yaml +0 -110
  485. package/patterns/classifier/third-party.classifier.yaml +0 -169
  486. package/patterns/cpp.md +0 -176
  487. package/patterns/cpp.patterns.yaml +0 -314
  488. package/patterns/csharp.md +0 -211
  489. package/patterns/csharp.patterns.yaml +0 -375
  490. package/patterns/go.md +0 -211
  491. package/patterns/go.patterns.yaml +0 -429
  492. package/patterns/jvm.md +0 -160
  493. package/patterns/jvm.patterns.yaml +0 -884
  494. package/patterns/kubernetes-terraform-catalog.snapshot.json +0 -94
  495. package/patterns/kubernetes-terraform-service-hints.generated.json +0 -258
  496. package/patterns/non-pii-signals.rules.yaml +0 -84
  497. package/patterns/pii-signals.rules.yaml +0 -115
  498. package/patterns/property.patterns.yaml +0 -431
  499. package/patterns/provider-topology.rules.yaml +0 -765
  500. package/patterns/python.md +0 -211
  501. package/patterns/python.patterns.yaml +0 -337
  502. package/patterns/terraform.md +0 -37
  503. package/patterns/terraform.patterns.yaml +0 -495
  504. package/patterns/third-party.patterns.yaml +0 -172
  505. package/patterns/typescript.patterns.yaml +0 -361
@@ -67,6 +67,8 @@ describe("provider-prompt", () => {
67
67
  expect(payload.componentContext.tp_1).toBeDefined();
68
68
  expect(payload.componentContext.tp_1.name).toBe("X");
69
69
  expect(String(payload.instructions)).toContain("targetComponentId` must be exactly one of canonicalComponentIds");
70
+ expect(String(payload.instructions)).toContain("data_action");
71
+ expect(String(payload.instructions)).toContain("multiple");
70
72
  expect(payload.canonicalComponentIds).toEqual(["tp_1"]);
71
73
  });
72
74
  it("collectReferencedPathsForQueue includes flow endpoint component paths", () => {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const third_party_data_flow_1 = require("../../../src/ai-enrichment/third-party-data-flow");
4
- const stable_component_ids_1 = require("../../../src/core/pipeline/stable-component-ids");
4
+ const scanner_1 = require("@dataparade/scanner");
5
5
  function thirdPartyComponent() {
6
6
  return {
7
7
  id: "cmp_tp_supabase",
@@ -840,7 +840,7 @@ describe("buildThirdPartyDataFlowSummary", () => {
840
840
  api_type: "rest",
841
841
  },
842
842
  };
843
- const stable = (0, stable_component_ids_1.assignStableComponentIds)([postAiAuth0, postAiGoogle], []);
843
+ const stable = (0, scanner_1.assignStableComponentIds)([postAiAuth0, postAiGoogle], []);
844
844
  const finalGoogle = stable.components.find((c) => c.name === "Google");
845
845
  const finalAuth0 = stable.components.find((c) => c.name === "Auth0");
846
846
  expect(finalGoogle?.id).toMatch(/^cmp_\d+$/);
@@ -11,7 +11,9 @@ jest.mock("../../../src/core/pipeline/orchestrator", () => ({
11
11
  ...overrides,
12
12
  enableAiInference: overrides.enableAiInference ?? false,
13
13
  })),
14
- scan: jest.fn(async () => ({
14
+ }));
15
+ jest.mock("../../../src/core/pipeline/scan-pipeline", () => ({
16
+ runScanPipeline: jest.fn(async () => ({
15
17
  scanResult: {
16
18
  components: [],
17
19
  dataFlows: [],
@@ -86,8 +88,8 @@ describe("cli scan command ai flags", () => {
86
88
  });
87
89
  it("prints all proposal property changes one per line without truncation", async () => {
88
90
  const { run } = require("../../../src/cli");
89
- const orchestrator = require("../../../src/core/pipeline/orchestrator");
90
- orchestrator.scan.mockResolvedValueOnce({
91
+ const scanPipeline = require("../../../src/core/pipeline/scan-pipeline");
92
+ scanPipeline.runScanPipeline.mockResolvedValueOnce({
91
93
  scanResult: {
92
94
  components: [],
93
95
  dataFlows: [],
@@ -8,7 +8,7 @@ const os_1 = __importDefault(require("os"));
8
8
  const path_1 = __importDefault(require("path"));
9
9
  const cli_1 = require("../../../src/cli");
10
10
  const dataflow_wrapper_schema_1 = require("../../../src/core/schema/dataflow-wrapper.schema");
11
- const application_injection_1 = require("../../../src/classifier/application-injection");
11
+ const INJECTED_PROJECT_PLACEHOLDER_SOURCE_CONTEXT = "injected-project-placeholder";
12
12
  function nodeSourcePaths(node) {
13
13
  const locs = node.data?.sourceLocations;
14
14
  if (!Array.isArray(locs))
@@ -55,7 +55,7 @@ describe("cli scan command - monorepo app plus terraform", () => {
55
55
  const isMain = n.data?.isMainApplication === true ||
56
56
  n.data?.isMainApplication === "true";
57
57
  const isActor = n.data?.componentType === "actor";
58
- return (sourceContext === application_injection_1.INJECTED_PROJECT_PLACEHOLDER_SOURCE_CONTEXT &&
58
+ return (sourceContext === INJECTED_PROJECT_PLACEHOLDER_SOURCE_CONTEXT &&
59
59
  (isMain || isActor));
60
60
  });
61
61
  expect(placeholderUnderTfModules).toHaveLength(0);
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const path_1 = __importDefault(require("path"));
7
+ const scan_pipeline_1 = require("../../../src/core/pipeline/scan-pipeline");
7
8
  const orchestrator_1 = require("../../../src/core/pipeline/orchestrator");
8
9
  describe("cli scan - DP-P0-CLI regression: sentry/route/env", () => {
9
10
  it("detects Sentry third_party, Express route, and API_KEY env_variable", async () => {
@@ -11,7 +12,7 @@ describe("cli scan - DP-P0-CLI regression: sentry/route/env", () => {
11
12
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false,
12
13
  projectName: "SentryRouteEnvApp",
13
14
  });
14
- const { scanResult, findings } = await (0, orchestrator_1.scan)(fixturesRoot, config, undefined);
15
+ const { scanResult, findings } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, config, undefined);
15
16
  const envFinding = findings.find((f) => f.pattern === "env_variable" && f.properties?.key === "API_KEY");
16
17
  expect(envFinding).toBeDefined();
17
18
  const sentryFinding = findings.find((f) => f.pattern === "external_api_call" &&
@@ -19,7 +19,9 @@ jest.mock("../../../src/core/pipeline/orchestrator", () => ({
19
19
  languages: overrides?.languages,
20
20
  deepAnalysis: overrides?.deepAnalysis ?? false,
21
21
  })),
22
- scan: jest.fn(async () => ({
22
+ }));
23
+ jest.mock("../../../src/core/pipeline/scan-pipeline", () => ({
24
+ runScanPipeline: jest.fn(async () => ({
23
25
  scanResult: {
24
26
  components: [],
25
27
  dataFlows: [],
@@ -76,12 +78,12 @@ describe("cli scan command - exit codes", () => {
76
78
  });
77
79
  it("sets exitCode=1 when scanResult.errors is non-empty", async () => {
78
80
  const { run } = require("../../../src/cli");
79
- const orchestrator = require("../../../src/core/pipeline/orchestrator");
81
+ const scanPipeline = require("../../../src/core/pipeline/scan-pipeline");
80
82
  const graphMapping = require("../../../src/core/pipeline/graph-mapping");
81
83
  const outputJson = require("../../../src/output/json");
82
84
  // Reset before running.
83
85
  process.exitCode = undefined;
84
- orchestrator.scan.mockResolvedValueOnce({
86
+ scanPipeline.runScanPipeline.mockResolvedValueOnce({
85
87
  scanResult: {
86
88
  components: [],
87
89
  dataFlows: [],
@@ -114,11 +116,11 @@ describe("cli scan command - exit codes", () => {
114
116
  });
115
117
  it("sets exitCode=1 when diagram graph building fails", async () => {
116
118
  const { run } = require("../../../src/cli");
117
- const orchestrator = require("../../../src/core/pipeline/orchestrator");
119
+ const scanPipeline = require("../../../src/core/pipeline/scan-pipeline");
118
120
  const graphMapping = require("../../../src/core/pipeline/graph-mapping");
119
121
  const outputJson = require("../../../src/output/json");
120
122
  process.exitCode = undefined;
121
- orchestrator.scan.mockResolvedValueOnce({
123
+ scanPipeline.runScanPipeline.mockResolvedValueOnce({
122
124
  scanResult: {
123
125
  components: [],
124
126
  dataFlows: [],
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const path_1 = __importDefault(require("path"));
7
+ const scan_pipeline_1 = require("../../../src/core/pipeline/scan-pipeline");
7
8
  const orchestrator_1 = require("../../../src/core/pipeline/orchestrator");
8
9
  function fixturePath(name) {
9
10
  return path_1.default.join(__dirname, "..", "..", "fixtures", name);
@@ -11,7 +12,7 @@ function fixturePath(name) {
11
12
  describe("structural scan - C++ and .NET repositories", () => {
12
13
  it("produces components, flows, and parser stats for a C++ service", async () => {
13
14
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
14
- const { scanResult, files, findings } = await (0, orchestrator_1.scan)(fixturePath("cpp-basic"), config);
15
+ const { scanResult, files, findings } = await (0, scan_pipeline_1.runScanPipeline)(fixturePath("cpp-basic"), config);
15
16
  expect(files.some((file) => file.language === "cpp")).toBe(true);
16
17
  const patterns = new Set(findings.map((f) => f.pattern));
17
18
  expect(patterns.has("express_route")).toBe(true);
@@ -31,7 +32,7 @@ describe("structural scan - C++ and .NET repositories", () => {
31
32
  });
32
33
  it("produces components, flows, and parser stats for a .NET service", async () => {
33
34
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
34
- const { scanResult, files, findings } = await (0, orchestrator_1.scan)(fixturePath("csharp-basic"), config);
35
+ const { scanResult, files, findings } = await (0, scan_pipeline_1.runScanPipeline)(fixturePath("csharp-basic"), config);
35
36
  expect(files.some((file) => file.language === "csharp")).toBe(true);
36
37
  const routeNames = findings
37
38
  .filter((f) => f.pattern === "express_route")
@@ -58,7 +59,7 @@ describe("structural scan - C++ and .NET repositories", () => {
58
59
  });
59
60
  it("honours the language filter for C++ and C#", async () => {
60
61
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
61
- const { files } = await (0, orchestrator_1.scan)(fixturePath("csharp-basic"), {
62
+ const { files } = await (0, scan_pipeline_1.runScanPipeline)(fixturePath("csharp-basic"), {
62
63
  ...config,
63
64
  languages: ["cpp"],
64
65
  });
@@ -4,11 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const fs_1 = __importDefault(require("fs"));
7
+ const scan_pipeline_1 = require("../../../src/core/pipeline/scan-pipeline");
7
8
  const os_1 = __importDefault(require("os"));
8
9
  const path_1 = __importDefault(require("path"));
9
10
  const orchestrator_1 = require("../../../src/core/pipeline/orchestrator");
10
- const discover_service_sections_1 = require("../../../src/core/sectioning/discover-service-sections");
11
- const file_system_1 = require("../../../src/ingest/file-system");
11
+ const scanner_1 = require("@dataparade/scanner");
12
+ const scanner_2 = require("@dataparade/scanner");
12
13
  function fixturePath(name) {
13
14
  return path_1.default.join(__dirname, "..", "..", "fixtures", name);
14
15
  }
@@ -19,7 +20,7 @@ function write(filePath, content) {
19
20
  describe("structural scan - Go repositories", () => {
20
21
  it("produces components, flows, and parser stats for a Go service", async () => {
21
22
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
22
- const { scanResult, files, findings } = await (0, orchestrator_1.scan)(fixturePath("go-basic"), config);
23
+ const { scanResult, files, findings } = await (0, scan_pipeline_1.runScanPipeline)(fixturePath("go-basic"), config);
23
24
  expect(files.some((file) => file.language === "go")).toBe(true);
24
25
  const routeNames = findings
25
26
  .filter((f) => f.pattern === "express_route")
@@ -47,14 +48,14 @@ describe("structural scan - Go repositories", () => {
47
48
  });
48
49
  it("honours the language filter for Go", async () => {
49
50
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
50
- const { files } = await (0, orchestrator_1.scan)(fixturePath("go-basic"), {
51
+ const { files } = await (0, scan_pipeline_1.runScanPipeline)(fixturePath("go-basic"), {
51
52
  ...config,
52
53
  languages: ["python"],
53
54
  });
54
55
  expect(files.every((file) => file.language === "python")).toBe(true);
55
56
  });
56
57
  it("maps .go files to the go language on ingest", async () => {
57
- const files = await (0, file_system_1.ingestFileSystem)(fixturePath("go-basic"));
58
+ const files = await (0, scanner_2.ingestFileSystem)(fixturePath("go-basic"));
58
59
  const byPath = new Map(files.map((file) => [file.path, file.language]));
59
60
  expect(byPath.get("main.go")).toBe("go");
60
61
  expect(byPath.get("handlers.go")).toBe("go");
@@ -64,7 +65,7 @@ describe("structural scan - Go repositories", () => {
64
65
  try {
65
66
  write(path_1.default.join(root, "services", "api", "go.mod"), "module github.com/acme/api\n\ngo 1.22\n");
66
67
  write(path_1.default.join(root, "services", "worker", "go.mod"), "module github.com/acme/worker\n\ngo 1.22\n");
67
- const { sections } = await (0, discover_service_sections_1.discoverServiceSections)(root);
68
+ const { sections } = await (0, scanner_1.discoverServiceSections)(root);
68
69
  const serviceDirs = sections
69
70
  .filter((section) => section.role === "service")
70
71
  .map((section) => section.sectionDir)
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const path_1 = __importDefault(require("path"));
7
+ const scan_pipeline_1 = require("../../../src/core/pipeline/scan-pipeline");
7
8
  const orchestrator_1 = require("../../../src/core/pipeline/orchestrator");
8
9
  const graph_mapping_1 = require("../../../src/core/pipeline/graph-mapping");
9
10
  const schema_1 = require("../../../src/core/schema");
@@ -12,7 +13,7 @@ describe("core/pipeline/graph-mapping - DP-P0-CLI-402", () => {
12
13
  it("builds a DiagramGraphJson from a real ScanResult for the typescript-basic fixture", async () => {
13
14
  const fixturesRoot = path_1.default.join(__dirname, "..", "..", "fixtures", "typescript-basic");
14
15
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
15
- const { scanResult } = await (0, orchestrator_1.scan)(fixturesRoot, config);
16
+ const { scanResult } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, config);
16
17
  const graph = (0, graph_mapping_1.buildDiagramGraphFromScanResult)(scanResult);
17
18
  expect(graph.nodes.length).toBe(scanResult.components.length);
18
19
  expect(graph.edges.length).toBeGreaterThan(0);
@@ -4,9 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const path_1 = __importDefault(require("path"));
7
+ const scan_pipeline_1 = require("../../../src/core/pipeline/scan-pipeline");
7
8
  const graph_mapping_1 = require("../../../src/core/pipeline/graph-mapping");
8
9
  const orchestrator_1 = require("../../../src/core/pipeline/orchestrator");
9
- const dedupe_1 = require("../../../src/data-flow/dedupe");
10
+ const scanner_1 = require("@dataparade/scanner");
10
11
  function shuffleDeterministic(arr, mode) {
11
12
  // Avoid randomness to keep the test stable across runs.
12
13
  if (mode === 1)
@@ -22,8 +23,8 @@ describe("invariant-tests - determinism", () => {
22
23
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false,
23
24
  deepAnalysis: false,
24
25
  });
25
- const { scanResult: scanResult1 } = await (0, orchestrator_1.scan)(fixturesRoot, config);
26
- const { scanResult: scanResult2 } = await (0, orchestrator_1.scan)(fixturesRoot, config);
26
+ const { scanResult: scanResult1 } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, config);
27
+ const { scanResult: scanResult2 } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, config);
27
28
  const graph1 = (0, graph_mapping_1.buildDiagramGraphFromScanResult)(scanResult1);
28
29
  const graph2 = (0, graph_mapping_1.buildDiagramGraphFromScanResult)(scanResult2);
29
30
  expect(graph1).toEqual(graph2);
@@ -55,9 +56,9 @@ describe("invariant-tests - determinism", () => {
55
56
  sourceLocation: { filePath: "src/db2.ts", startLine: 5, endLine: 6 },
56
57
  },
57
58
  ];
58
- const dedupedA = (0, dedupe_1.dedupeDataFlows)(baseFlows);
59
- const dedupedB = (0, dedupe_1.dedupeDataFlows)(shuffleDeterministic(baseFlows, 1));
60
- const dedupedC = (0, dedupe_1.dedupeDataFlows)(shuffleDeterministic(baseFlows, 2));
59
+ const dedupedA = (0, scanner_1.dedupeDataFlows)(baseFlows);
60
+ const dedupedB = (0, scanner_1.dedupeDataFlows)(shuffleDeterministic(baseFlows, 1));
61
+ const dedupedC = (0, scanner_1.dedupeDataFlows)(shuffleDeterministic(baseFlows, 2));
61
62
  expect(dedupedA).toEqual(dedupedB);
62
63
  expect(dedupedA).toEqual(dedupedC);
63
64
  });
@@ -4,10 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const fs_1 = __importDefault(require("fs"));
7
+ const scan_pipeline_1 = require("../../../src/core/pipeline/scan-pipeline");
7
8
  const os_1 = __importDefault(require("os"));
8
9
  const path_1 = __importDefault(require("path"));
9
10
  const orchestrator_1 = require("../../../src/core/pipeline/orchestrator");
10
- const discover_service_sections_1 = require("../../../src/core/sectioning/discover-service-sections");
11
+ const scanner_1 = require("@dataparade/scanner");
11
12
  function fixturePath(name) {
12
13
  return path_1.default.join(__dirname, "..", "..", "fixtures", name);
13
14
  }
@@ -18,7 +19,7 @@ function write(filePath, content) {
18
19
  describe("structural scan - JVM repositories", () => {
19
20
  it("produces components, flows, and parser stats for a Spring service", async () => {
20
21
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
21
- const { scanResult, files, findings } = await (0, orchestrator_1.scan)(fixturePath("java-basic"), config);
22
+ const { scanResult, files, findings } = await (0, scan_pipeline_1.runScanPipeline)(fixturePath("java-basic"), config);
22
23
  expect(files.some((file) => file.language === "java")).toBe(true);
23
24
  const routeNames = findings
24
25
  .filter((f) => f.pattern === "express_route")
@@ -49,7 +50,7 @@ describe("structural scan - JVM repositories", () => {
49
50
  });
50
51
  it("scans a Kotlin service through the same analyzer", async () => {
51
52
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
52
- const { scanResult, files, findings } = await (0, orchestrator_1.scan)(fixturePath("kotlin-basic"), config);
53
+ const { scanResult, files, findings } = await (0, scan_pipeline_1.runScanPipeline)(fixturePath("kotlin-basic"), config);
53
54
  expect(files.some((file) => file.language === "kotlin")).toBe(true);
54
55
  const routeNames = findings
55
56
  .filter((f) => f.pattern === "express_route")
@@ -77,7 +78,7 @@ describe("section discovery - JVM build files", () => {
77
78
  fs_1.default.rmSync(root, { recursive: true, force: true });
78
79
  });
79
80
  it("treats pom.xml and build.gradle.kts as service boundaries", async () => {
80
- const { sections } = await (0, discover_service_sections_1.discoverServiceSections)(root);
81
+ const { sections } = await (0, scanner_1.discoverServiceSections)(root);
81
82
  const serviceDirs = sections
82
83
  .filter((section) => section.role === "service")
83
84
  .map((section) => section.sectionDir)
@@ -85,7 +86,7 @@ describe("section discovery - JVM build files", () => {
85
86
  expect(serviceDirs).toEqual(["services/billing", "services/ledger"]);
86
87
  });
87
88
  it("does not promote settings.gradle.kts to a service section", async () => {
88
- const { sections } = await (0, discover_service_sections_1.discoverServiceSections)(root);
89
+ const { sections } = await (0, scanner_1.discoverServiceSections)(root);
89
90
  const rootSection = sections.find((section) => section.sectionDir === "");
90
91
  // A settings file marks a multi-project build, not a deployable module,
91
92
  // so the repository root stays the root section.
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const scan_pipeline_1 = require("../../../src/core/pipeline/scan-pipeline");
6
7
  const graph_mapping_1 = require("../../../src/core/pipeline/graph-mapping");
7
8
  const orchestrator_1 = require("../../../src/core/pipeline/orchestrator");
8
9
  const path_1 = __importDefault(require("path"));
@@ -41,7 +42,7 @@ describe("output safety - no source code leakage (DP-P0-CLI-XXX)", () => {
41
42
  it("does not emit `code` under graph.nodes[].data", async () => {
42
43
  const fixturesRoot = path_1.default.join(__dirname, "..", "..", "fixtures", "typescript-basic");
43
44
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
44
- const { scanResult } = await (0, orchestrator_1.scan)(fixturesRoot, config);
45
+ const { scanResult } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, config);
45
46
  const graph = (0, graph_mapping_1.buildDiagramGraphFromScanResult)(scanResult);
46
47
  expect(graphNodesContainCodeKey(graph)).toBe(false);
47
48
  });
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const path_1 = __importDefault(require("path"));
7
+ const scan_pipeline_1 = require("../../../src/core/pipeline/scan-pipeline");
7
8
  const promises_1 = __importDefault(require("fs/promises"));
8
9
  const os_1 = __importDefault(require("os"));
9
10
  const orchestrator_1 = require("../../../src/core/pipeline/orchestrator");
@@ -11,7 +12,7 @@ describe("core/pipeline/orchestrator - DP-P0-CLI-401", () => {
11
12
  it("runs the full structural pipeline for the typescript-basic fixture", async () => {
12
13
  const fixturesRoot = path_1.default.join(__dirname, "..", "..", "fixtures", "typescript-basic");
13
14
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
14
- const { scanResult } = await (0, orchestrator_1.scan)(fixturesRoot, config);
15
+ const { scanResult } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, config);
15
16
  expect(scanResult.components.length).toBeGreaterThan(0);
16
17
  expect(scanResult.dataFlows.length).toBeGreaterThan(0);
17
18
  expect(scanResult.filesScanned).toBeGreaterThan(0);
@@ -30,21 +31,21 @@ describe("core/pipeline/orchestrator - DP-P0-CLI-401", () => {
30
31
  it("honors excludePaths by reducing the number of scanned files", async () => {
31
32
  const fixturesRoot = path_1.default.join(__dirname, "..", "..", "fixtures", "typescript-basic");
32
33
  const baselineConfig = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
33
- const { scanResult: baseline } = await (0, orchestrator_1.scan)(fixturesRoot, baselineConfig);
34
+ const { scanResult: baseline } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, baselineConfig);
34
35
  const configWithExcludes = (0, orchestrator_1.createDefaultScanConfiguration)({
35
36
  excludePaths: ["**/db.ts"],
36
37
  });
37
- const { scanResult: withExcludes } = await (0, orchestrator_1.scan)(fixturesRoot, configWithExcludes);
38
+ const { scanResult: withExcludes } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, configWithExcludes);
38
39
  expect(withExcludes.filesScanned).toBeLessThanOrEqual(baseline.filesScanned);
39
40
  });
40
41
  it("supports ? wildcard in excludePaths patterns", async () => {
41
42
  const fixturesRoot = path_1.default.join(__dirname, "..", "..", "fixtures", "typescript-basic");
42
43
  const baselineConfig = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
43
- const { files: baselineFiles } = await (0, orchestrator_1.scan)(fixturesRoot, baselineConfig);
44
+ const { files: baselineFiles } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, baselineConfig);
44
45
  const configWithQuestionGlob = (0, orchestrator_1.createDefaultScanConfiguration)({
45
46
  excludePaths: ["d?.ts"],
46
47
  });
47
- const { files: withQuestionGlob } = await (0, orchestrator_1.scan)(fixturesRoot, configWithQuestionGlob);
48
+ const { files: withQuestionGlob } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, configWithQuestionGlob);
48
49
  const baselineHasDbTs = baselineFiles.some((file) => file.path.endsWith("db.ts"));
49
50
  const withQuestionGlobHasDbTs = withQuestionGlob.some((file) => file.path.endsWith("db.ts"));
50
51
  expect(baselineHasDbTs).toBe(true);
@@ -53,11 +54,11 @@ describe("core/pipeline/orchestrator - DP-P0-CLI-401", () => {
53
54
  it("filters files by languages when languages are specified", async () => {
54
55
  const fixturesRoot = path_1.default.join(__dirname, "..", "..", "fixtures", "typescript-basic");
55
56
  const baselineConfig = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
56
- const { scanResult: baseline } = await (0, orchestrator_1.scan)(fixturesRoot, baselineConfig);
57
+ const { scanResult: baseline } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, baselineConfig);
57
58
  const configLanguagesOnlyTs = (0, orchestrator_1.createDefaultScanConfiguration)({
58
59
  languages: ["typescript"],
59
60
  });
60
- const { scanResult: tsOnly } = await (0, orchestrator_1.scan)(fixturesRoot, configLanguagesOnlyTs);
61
+ const { scanResult: tsOnly } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, configLanguagesOnlyTs);
61
62
  expect(tsOnly.filesScanned).toBeLessThanOrEqual(baseline.filesScanned);
62
63
  });
63
64
  it("enforces minimumConfidence across findings, components, and flows", async () => {
@@ -65,11 +66,11 @@ describe("core/pipeline/orchestrator - DP-P0-CLI-401", () => {
65
66
  const baselineConfig = (0, orchestrator_1.createDefaultScanConfiguration)({
66
67
  minimumConfidence: 0,
67
68
  });
68
- const { scanResult: baseline, findings: baselineFindings } = await (0, orchestrator_1.scan)(fixturesRoot, baselineConfig);
69
+ const { scanResult: baseline, findings: baselineFindings } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, baselineConfig);
69
70
  const strictConfig = (0, orchestrator_1.createDefaultScanConfiguration)({
70
71
  minimumConfidence: 0.95,
71
72
  });
72
- const { scanResult: strict, findings: strictFindings } = await (0, orchestrator_1.scan)(fixturesRoot, strictConfig);
73
+ const { scanResult: strict, findings: strictFindings } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, strictConfig);
73
74
  expect(strictFindings.every((f) => f.confidence >= 0.95)).toBe(true);
74
75
  expect(strict.components.every((c) => c.confidence >= 0.95)).toBe(true);
75
76
  expect(strict.dataFlows.every((f) => f.confidence >= 0.95)).toBe(true);
@@ -80,15 +81,15 @@ describe("core/pipeline/orchestrator - DP-P0-CLI-401", () => {
80
81
  it("respects enableAPIDetection and enableDatabaseDetection", async () => {
81
82
  const fixturesRoot = path_1.default.join(__dirname, "..", "..", "fixtures", "typescript-basic");
82
83
  const baselineConfig = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
83
- const { findings: baselineFindings } = await (0, orchestrator_1.scan)(fixturesRoot, baselineConfig);
84
+ const { findings: baselineFindings } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, baselineConfig);
84
85
  const apiDisabledConfig = (0, orchestrator_1.createDefaultScanConfiguration)({
85
86
  enableAPIDetection: false,
86
87
  });
87
- const { findings: apiDisabledFindings } = await (0, orchestrator_1.scan)(fixturesRoot, apiDisabledConfig);
88
+ const { findings: apiDisabledFindings } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, apiDisabledConfig);
88
89
  const dbDisabledConfig = (0, orchestrator_1.createDefaultScanConfiguration)({
89
90
  enableDatabaseDetection: false,
90
91
  });
91
- const { findings: dbDisabledFindings } = await (0, orchestrator_1.scan)(fixturesRoot, dbDisabledConfig);
92
+ const { findings: dbDisabledFindings } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, dbDisabledConfig);
92
93
  const countByPattern = (pattern, findings) => findings.filter((f) => f.pattern === pattern).length;
93
94
  expect(countByPattern("express_route", apiDisabledFindings)).toBeLessThanOrEqual(countByPattern("express_route", baselineFindings));
94
95
  expect(countByPattern("database_connection", dbDisabledFindings)).toBeLessThanOrEqual(countByPattern("database_connection", baselineFindings));
@@ -97,7 +98,7 @@ describe("core/pipeline/orchestrator - DP-P0-CLI-401", () => {
97
98
  const fixturesRoot = path_1.default.join(__dirname, "..", "..", "fixtures", "typescript-basic");
98
99
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
99
100
  const phases = [];
100
- await (0, orchestrator_1.scan)(fixturesRoot, config, (progress) => {
101
+ await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, config, (progress) => {
101
102
  phases.push(progress.phase);
102
103
  expect(progress.progress).toBeGreaterThanOrEqual(0);
103
104
  expect(progress.progress).toBeLessThanOrEqual(1);
@@ -113,7 +114,7 @@ describe("core/pipeline/orchestrator - DP-P0-CLI-401", () => {
113
114
  it("detects third-party services from Python dependency manifests", async () => {
114
115
  const fixturesRoot = path_1.default.join(__dirname, "..", "..", "fixtures", "python-dependency-manifests-basic");
115
116
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
116
- const { scanResult } = await (0, orchestrator_1.scan)(fixturesRoot, config);
117
+ const { scanResult } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, config);
117
118
  const thirdParties = scanResult.components.filter((c) => c.type === "third_party");
118
119
  const serviceNames = thirdParties
119
120
  .map((c) => c.properties?.serviceName)
@@ -124,7 +125,7 @@ describe("core/pipeline/orchestrator - DP-P0-CLI-401", () => {
124
125
  it("detects third-party services from TypeScript dependency manifests", async () => {
125
126
  const fixturesRoot = path_1.default.join(__dirname, "..", "..", "fixtures", "typescript-dependency-manifests-basic");
126
127
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
127
- const { scanResult } = await (0, orchestrator_1.scan)(fixturesRoot, config);
128
+ const { scanResult } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, config);
128
129
  const thirdParties = scanResult.components.filter((c) => c.type === "third_party");
129
130
  const serviceNames = thirdParties
130
131
  .map((c) => c.properties?.serviceName)
@@ -150,12 +151,12 @@ describe("core/pipeline/orchestrator - DP-P0-CLI-401", () => {
150
151
  const baselineConfig = (0, orchestrator_1.createDefaultScanConfiguration)({
151
152
  minimumConfidence: 0,
152
153
  });
153
- const { scanResult: baseline } = await (0, orchestrator_1.scan)(root, baselineConfig);
154
+ const { scanResult: baseline } = await (0, scan_pipeline_1.runScanPipeline)(root, baselineConfig);
154
155
  const excludedConfig = (0, orchestrator_1.createDefaultScanConfiguration)({
155
156
  minimumConfidence: 0,
156
157
  excludePaths: ["sandbox-a/**", "sandbox-b/**"],
157
158
  });
158
- const { scanResult: excluded } = await (0, orchestrator_1.scan)(root, excludedConfig);
159
+ const { scanResult: excluded } = await (0, scan_pipeline_1.runScanPipeline)(root, excludedConfig);
159
160
  const sectionIdsBaseline = baseline.components
160
161
  .map((c) => c.properties?.section_id)
161
162
  .filter((v) => typeof v === "string");
@@ -176,7 +177,7 @@ describe("core/pipeline/orchestrator - DP-P0-CLI-401", () => {
176
177
  await promises_1.default.writeFile(path_1.default.join(root, "src", "app.ts"), "export const x = 1;\n", "utf8");
177
178
  await promises_1.default.writeFile(path_1.default.join(root, "src", "app.spec.ts"), "import { x } from './app';\n", "utf8");
178
179
  await promises_1.default.writeFile(path_1.default.join(root, "playwright.config.ts"), "export default {};\n", "utf8");
179
- const { files } = await (0, orchestrator_1.scan)(root, (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false }));
180
+ const { files } = await (0, scan_pipeline_1.runScanPipeline)(root, (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false }));
180
181
  const paths = files.map((f) => f.path);
181
182
  expect(paths.some((p) => p.endsWith("app.spec.ts"))).toBe(false);
182
183
  expect(paths.some((p) => p.includes("playwright.config"))).toBe(false);
@@ -189,7 +190,7 @@ describe("core/pipeline/orchestrator - DP-P0-CLI-401", () => {
189
190
  it("produces a combined ScanResult for mixed TypeScript and Python repos", async () => {
190
191
  const fixturesRoot = path_1.default.join(__dirname, "..", "..", "fixtures", "mixed-language-basic");
191
192
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
192
- const { scanResult, files, findings } = await (0, orchestrator_1.scan)(fixturesRoot, config);
193
+ const { scanResult, files, findings } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, config);
193
194
  const scannedLanguages = new Set(files.map((file) => file.language));
194
195
  expect(scannedLanguages.has("typescript")).toBe(true);
195
196
  expect(scannedLanguages.has("python")).toBe(true);
@@ -232,7 +233,7 @@ describe("core/pipeline/orchestrator - DP-P0-CLI-401", () => {
232
233
  "",
233
234
  ].join("\n"), "utf8");
234
235
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
235
- const { scanResult } = await (0, orchestrator_1.scan)(root, config);
236
+ const { scanResult } = await (0, scan_pipeline_1.runScanPipeline)(root, config);
236
237
  const postgresTargets = scanResult.components.filter((c) => c.type === "asset" &&
237
238
  c.subType === "database" &&
238
239
  (String(c.properties?.databaseType ?? "").toLowerCase().includes("postgres") ||
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const fs_1 = __importDefault(require("fs"));
7
+ const scan_pipeline_1 = require("../../../src/core/pipeline/scan-pipeline");
7
8
  const os_1 = __importDefault(require("os"));
8
9
  const path_1 = __importDefault(require("path"));
9
10
  const graph_mapping_1 = require("../../../src/core/pipeline/graph-mapping");
@@ -14,7 +15,7 @@ describe("output/json - DP-P0-CLI-403", () => {
14
15
  it("builds and writes a validated dataflow.json wrapper for a real ScanResult", async () => {
15
16
  const fixturesRoot = path_1.default.join(__dirname, "..", "..", "fixtures", "typescript-basic");
16
17
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
17
- const { scanResult } = await (0, orchestrator_1.scan)(fixturesRoot, config);
18
+ const { scanResult } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, config);
18
19
  const graph = (0, graph_mapping_1.buildDiagramGraphFromScanResult)(scanResult);
19
20
  const wrapper = (0, json_1.buildDataflowWrapper)(scanResult, graph, {
20
21
  projectName: "typescript-basic",
@@ -44,7 +45,7 @@ describe("output/json - DP-P0-CLI-403", () => {
44
45
  it("throws and does not write a file when validation fails", async () => {
45
46
  const fixturesRoot = path_1.default.join(__dirname, "..", "..", "fixtures", "typescript-basic");
46
47
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
47
- const { scanResult } = await (0, orchestrator_1.scan)(fixturesRoot, config);
48
+ const { scanResult } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, config);
48
49
  const graph = (0, graph_mapping_1.buildDiagramGraphFromScanResult)(scanResult);
49
50
  // Create an intentionally invalid graph by clearing the first node id so
50
51
  // that validation fails when writing the wrapper.
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const promises_1 = __importDefault(require("fs/promises"));
7
+ const scan_pipeline_1 = require("../../../src/core/pipeline/scan-pipeline");
7
8
  const path_1 = __importDefault(require("path"));
8
9
  const graph_mapping_1 = require("../../../src/core/pipeline/graph-mapping");
9
10
  const orchestrator_1 = require("../../../src/core/pipeline/orchestrator");
@@ -26,7 +27,7 @@ describe("parsing error handling - non-fatal", () => {
26
27
  languages: ["typescript", "python"],
27
28
  enableDataFlowDetection: false,
28
29
  });
29
- const { scanResult } = await (0, orchestrator_1.scan)(root, config);
30
+ const { scanResult } = await (0, scan_pipeline_1.runScanPipeline)(root, config);
30
31
  expect(Array.isArray(scanResult.errors)).toBe(true);
31
32
  expect(scanResult.errors).toHaveLength(0);
32
33
  expect(scanResult.warnings.some((w) => /contains null bytes/i.test(w))).toBe(true);
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const scan_pipeline_1 = require("../../../src/core/pipeline/scan-pipeline");
3
4
  const orchestrator_1 = require("../../../src/core/pipeline/orchestrator");
4
5
  describe("ScanResult.languageStats for Python", () => {
5
6
  it("populates languageStats entry for Python files", async () => {
6
7
  const rootPath = `${__dirname}/../../fixtures/python-parser-basic`;
7
8
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false });
8
- const { scanResult } = await (0, orchestrator_1.scan)(rootPath, config);
9
+ const { scanResult } = await (0, scan_pipeline_1.runScanPipeline)(rootPath, config);
9
10
  expect(scanResult.languageStats).toBeDefined();
10
11
  const pythonStats = scanResult.languageStats?.find((entry) => entry.language === "python");
11
12
  expect(pythonStats).toBeDefined();
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const fs_1 = __importDefault(require("fs"));
7
+ const scan_pipeline_1 = require("../../../src/core/pipeline/scan-pipeline");
7
8
  const path_1 = __importDefault(require("path"));
8
9
  const orchestrator_1 = require("../../../src/core/pipeline/orchestrator");
9
10
  const json_1 = require("../../../src/output/json");
@@ -18,7 +19,7 @@ describe("terraform JSON overlay in scan pipeline", () => {
18
19
  const config = (0, orchestrator_1.createDefaultScanConfiguration)({ enableAiInference: false,
19
20
  terraformJsonPath: "show-overlay.json",
20
21
  });
21
- const { scanResult } = await (0, orchestrator_1.scan)(fixturesRoot, config);
22
+ const { scanResult } = await (0, scan_pipeline_1.runScanPipeline)(fixturesRoot, config);
22
23
  expect(scanResult.terraformScanSummary).toBeDefined();
23
24
  expect(scanResult.terraformScanSummary?.mode).toBe("json_overlay");
24
25
  expect(scanResult.terraformScanSummary?.jsonFindingsMerged).toBeGreaterThanOrEqual(1);
@@ -12,7 +12,8 @@ describe("npm publish manifest", () => {
12
12
  expect(pkg.dependencies?.typescript).toBeDefined();
13
13
  expect(pkg.devDependencies?.typescript).toBeUndefined();
14
14
  });
15
- it("includes patterns/ in published files (runtime YAML configs)", () => {
16
- expect(pkg.files).toContain("patterns");
15
+ it("depends on @dataparade/scanner for deterministic scan engine", () => {
16
+ expect(pkg.dependencies?.["@dataparade/scanner"]).toBeDefined();
17
+ expect(pkg.files).not.toContain("patterns");
17
18
  });
18
19
  });