kibi-cli 0.14.0 → 0.17.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 (456) hide show
  1. package/bin/kibi +3 -1
  2. package/dist/cli-command.d.ts +5 -0
  3. package/dist/cli-command.d.ts.map +1 -0
  4. package/dist/cli-command.js +9 -0
  5. package/dist/cli-errors.d.ts +13 -0
  6. package/dist/cli-errors.d.ts.map +1 -0
  7. package/dist/cli-errors.js +26 -0
  8. package/dist/cli-input.d.ts +6 -0
  9. package/dist/cli-input.d.ts.map +1 -0
  10. package/dist/cli-input.js +54 -0
  11. package/dist/cli-json-command.d.ts +14 -0
  12. package/dist/cli-json-command.d.ts.map +1 -0
  13. package/dist/cli-json-command.js +96 -0
  14. package/dist/cli-protocol.d.ts +12 -0
  15. package/dist/cli-protocol.d.ts.map +1 -0
  16. package/dist/cli-protocol.js +37 -0
  17. package/dist/cli-register-foundation.d.ts +3 -0
  18. package/dist/cli-register-foundation.d.ts.map +1 -0
  19. package/dist/cli-register-foundation.js +90 -0
  20. package/dist/cli-register-maintenance.d.ts +3 -0
  21. package/dist/cli-register-maintenance.d.ts.map +1 -0
  22. package/dist/cli-register-maintenance.js +36 -0
  23. package/dist/cli-register-reporting.d.ts +3 -0
  24. package/dist/cli-register-reporting.d.ts.map +1 -0
  25. package/dist/cli-register-reporting.js +101 -0
  26. package/dist/cli-register-skills.d.ts +3 -0
  27. package/dist/cli-register-skills.d.ts.map +1 -0
  28. package/dist/cli-register-skills.js +71 -0
  29. package/dist/cli-validate.d.ts +18 -0
  30. package/dist/cli-validate.d.ts.map +1 -0
  31. package/dist/cli-validate.js +45 -0
  32. package/dist/cli.d.ts +4 -4
  33. package/dist/cli.d.ts.map +1 -1
  34. package/dist/cli.js +48 -211
  35. package/dist/commands/aggregated-checks.d.ts +1 -1
  36. package/dist/commands/aggregated-checks.d.ts.map +1 -1
  37. package/dist/commands/aggregated-checks.js +28 -34
  38. package/dist/commands/check.d.ts +1 -1
  39. package/dist/commands/check.d.ts.map +1 -1
  40. package/dist/commands/check.js +53 -95
  41. package/dist/commands/coverage.d.ts.map +1 -1
  42. package/dist/commands/coverage.js +12 -17
  43. package/dist/commands/discovery-shared.d.ts +2 -1
  44. package/dist/commands/discovery-shared.d.ts.map +1 -1
  45. package/dist/commands/discovery-shared.js +6 -18
  46. package/dist/commands/gaps.d.ts.map +1 -1
  47. package/dist/commands/gaps.js +15 -19
  48. package/dist/commands/graph.d.ts.map +1 -1
  49. package/dist/commands/graph.js +15 -21
  50. package/dist/commands/query.d.ts +7 -7
  51. package/dist/commands/query.d.ts.map +1 -1
  52. package/dist/commands/query.js +98 -204
  53. package/dist/commands/search.d.ts +4 -4
  54. package/dist/commands/search.d.ts.map +1 -1
  55. package/dist/commands/search.js +14 -27
  56. package/dist/commands/status.d.ts +1 -1
  57. package/dist/commands/status.d.ts.map +1 -1
  58. package/dist/commands/status.js +6 -7
  59. package/dist/commands/sync/manifest.d.ts +13 -2
  60. package/dist/commands/sync/manifest.d.ts.map +1 -1
  61. package/dist/commands/sync/manifest.js +31 -22
  62. package/dist/commands/sync/persistence.d.ts.map +1 -1
  63. package/dist/commands/sync/persistence.js +39 -1
  64. package/dist/extractors/markdown.d.ts +22 -2
  65. package/dist/extractors/markdown.d.ts.map +1 -1
  66. package/dist/extractors/markdown.js +50 -1
  67. package/dist/extractors/symbols-ts.d.ts.map +1 -1
  68. package/dist/extractors/symbols-ts.js +11 -1
  69. package/dist/logic/ir.d.ts +112 -0
  70. package/dist/logic/ir.d.ts.map +1 -0
  71. package/dist/logic/ir.js +729 -0
  72. package/dist/operations/autopilot/activation.d.ts +4 -0
  73. package/dist/operations/autopilot/activation.d.ts.map +1 -0
  74. package/dist/operations/autopilot/activation.js +130 -0
  75. package/dist/operations/autopilot/candidate-helpers.d.ts +13 -0
  76. package/dist/operations/autopilot/candidate-helpers.d.ts.map +1 -0
  77. package/dist/operations/autopilot/candidate-helpers.js +55 -0
  78. package/dist/operations/autopilot/candidates.d.ts +4 -0
  79. package/dist/operations/autopilot/candidates.d.ts.map +1 -0
  80. package/dist/operations/autopilot/candidates.js +114 -0
  81. package/dist/operations/autopilot/discovery-evidence.d.ts +10 -0
  82. package/dist/operations/autopilot/discovery-evidence.d.ts.map +1 -0
  83. package/dist/operations/autopilot/discovery-evidence.js +158 -0
  84. package/dist/operations/autopilot/discovery.d.ts +4 -0
  85. package/dist/operations/autopilot/discovery.d.ts.map +1 -0
  86. package/dist/operations/autopilot/discovery.js +100 -0
  87. package/dist/operations/autopilot/generate.d.ts +8 -0
  88. package/dist/operations/autopilot/generate.d.ts.map +1 -0
  89. package/dist/operations/autopilot/generate.js +112 -0
  90. package/dist/operations/autopilot/guidance-actions.d.ts +3 -0
  91. package/dist/operations/autopilot/guidance-actions.d.ts.map +1 -0
  92. package/dist/operations/autopilot/guidance-actions.js +79 -0
  93. package/dist/operations/autopilot/guidance.d.ts +14 -0
  94. package/dist/operations/autopilot/guidance.d.ts.map +1 -0
  95. package/dist/operations/autopilot/guidance.js +124 -0
  96. package/dist/operations/autopilot/markdown-candidates.d.ts +7 -0
  97. package/dist/operations/autopilot/markdown-candidates.d.ts.map +1 -0
  98. package/dist/operations/autopilot/markdown-candidates.js +134 -0
  99. package/dist/operations/autopilot/presentation.d.ts +13 -0
  100. package/dist/operations/autopilot/presentation.d.ts.map +1 -0
  101. package/dist/operations/autopilot/presentation.js +91 -0
  102. package/dist/operations/autopilot/requirement-claims.d.ts +3 -0
  103. package/dist/operations/autopilot/requirement-claims.d.ts.map +1 -0
  104. package/dist/operations/autopilot/requirement-claims.js +48 -0
  105. package/dist/operations/autopilot/types.d.ts +117 -0
  106. package/dist/operations/autopilot/types.d.ts.map +1 -0
  107. package/dist/operations/autopilot/types.js +8 -0
  108. package/dist/operations/modeling/logic-modeling.d.ts +22 -0
  109. package/dist/operations/modeling/logic-modeling.d.ts.map +1 -0
  110. package/dist/operations/modeling/logic-modeling.js +111 -0
  111. package/dist/operations/modeling/model-requirement.d.ts +10 -0
  112. package/dist/operations/modeling/model-requirement.d.ts.map +1 -0
  113. package/dist/operations/modeling/model-requirement.js +164 -0
  114. package/dist/operations/modeling/predicate-applyplan.d.ts +6 -0
  115. package/dist/operations/modeling/predicate-applyplan.d.ts.map +1 -0
  116. package/dist/operations/modeling/predicate-applyplan.js +117 -0
  117. package/dist/operations/modeling/predicate-catalog-1.d.ts +3 -0
  118. package/dist/operations/modeling/predicate-catalog-1.d.ts.map +1 -0
  119. package/dist/operations/modeling/predicate-catalog-1.js +200 -0
  120. package/dist/operations/modeling/predicate-catalog-2.d.ts +3 -0
  121. package/dist/operations/modeling/predicate-catalog-2.d.ts.map +1 -0
  122. package/dist/operations/modeling/predicate-catalog-2.js +197 -0
  123. package/dist/operations/modeling/predicate-catalog-3.d.ts +3 -0
  124. package/dist/operations/modeling/predicate-catalog-3.d.ts.map +1 -0
  125. package/dist/operations/modeling/predicate-catalog-3.js +193 -0
  126. package/dist/operations/modeling/predicate-catalog-4.d.ts +3 -0
  127. package/dist/operations/modeling/predicate-catalog-4.d.ts.map +1 -0
  128. package/dist/operations/modeling/predicate-catalog-4.js +149 -0
  129. package/dist/operations/modeling/predicate-catalog.d.ts +5 -0
  130. package/dist/operations/modeling/predicate-catalog.d.ts.map +1 -0
  131. package/dist/operations/modeling/predicate-catalog.js +29 -0
  132. package/dist/operations/modeling/predicate-inference-1.d.ts +16 -0
  133. package/dist/operations/modeling/predicate-inference-1.d.ts.map +1 -0
  134. package/dist/operations/modeling/predicate-inference-1.js +161 -0
  135. package/dist/operations/modeling/predicate-inference-2.d.ts +19 -0
  136. package/dist/operations/modeling/predicate-inference-2.d.ts.map +1 -0
  137. package/dist/operations/modeling/predicate-inference-2.js +169 -0
  138. package/dist/operations/modeling/predicate-inference-3.d.ts +15 -0
  139. package/dist/operations/modeling/predicate-inference-3.d.ts.map +1 -0
  140. package/dist/operations/modeling/predicate-inference-3.js +163 -0
  141. package/dist/operations/modeling/predicate-inference.d.ts +5 -0
  142. package/dist/operations/modeling/predicate-inference.d.ts.map +1 -0
  143. package/dist/operations/modeling/predicate-inference.js +163 -0
  144. package/dist/operations/modeling/predicate-loader.d.ts +10 -0
  145. package/dist/operations/modeling/predicate-loader.d.ts.map +1 -0
  146. package/dist/operations/modeling/predicate-loader.js +94 -0
  147. package/dist/operations/modeling/predicate-ranker.d.ts +3 -0
  148. package/dist/operations/modeling/predicate-ranker.d.ts.map +1 -0
  149. package/dist/operations/modeling/predicate-ranker.js +62 -0
  150. package/dist/operations/modeling/predicate-score-1.d.ts +3 -0
  151. package/dist/operations/modeling/predicate-score-1.d.ts.map +1 -0
  152. package/dist/operations/modeling/predicate-score-1.js +121 -0
  153. package/dist/operations/modeling/predicate-score-2.d.ts +3 -0
  154. package/dist/operations/modeling/predicate-score-2.d.ts.map +1 -0
  155. package/dist/operations/modeling/predicate-score-2.js +122 -0
  156. package/dist/operations/modeling/predicate-score-3.d.ts +3 -0
  157. package/dist/operations/modeling/predicate-score-3.d.ts.map +1 -0
  158. package/dist/operations/modeling/predicate-score-3.js +54 -0
  159. package/dist/operations/modeling/predicate-types.d.ts +64 -0
  160. package/dist/operations/modeling/predicate-types.d.ts.map +1 -0
  161. package/dist/operations/modeling/predicate-types.js +1 -0
  162. package/dist/operations/modeling/predicate-usage-hints-1.d.ts +3 -0
  163. package/dist/operations/modeling/predicate-usage-hints-1.d.ts.map +1 -0
  164. package/dist/operations/modeling/predicate-usage-hints-1.js +211 -0
  165. package/dist/operations/modeling/predicate-usage-hints-2.d.ts +3 -0
  166. package/dist/operations/modeling/predicate-usage-hints-2.d.ts.map +1 -0
  167. package/dist/operations/modeling/predicate-usage-hints-2.js +209 -0
  168. package/dist/operations/modeling/predicate-usage-hints-3.d.ts +3 -0
  169. package/dist/operations/modeling/predicate-usage-hints-3.d.ts.map +1 -0
  170. package/dist/operations/modeling/predicate-usage-hints-3.js +45 -0
  171. package/dist/operations/modeling/predicate-utils.d.ts +23 -0
  172. package/dist/operations/modeling/predicate-utils.d.ts.map +1 -0
  173. package/dist/operations/modeling/predicate-utils.js +187 -0
  174. package/dist/operations/modeling/requirement-applyplan.d.ts +4 -0
  175. package/dist/operations/modeling/requirement-applyplan.d.ts.map +1 -0
  176. package/dist/operations/modeling/requirement-applyplan.js +44 -0
  177. package/dist/operations/modeling/requirement-heuristics.d.ts +4 -0
  178. package/dist/operations/modeling/requirement-heuristics.d.ts.map +1 -0
  179. package/dist/operations/modeling/requirement-heuristics.js +114 -0
  180. package/dist/operations/modeling/requirement-modeler.d.ts +8 -0
  181. package/dist/operations/modeling/requirement-modeler.d.ts.map +1 -0
  182. package/dist/operations/modeling/requirement-modeler.js +70 -0
  183. package/dist/operations/modeling/requirement-types.d.ts +61 -0
  184. package/dist/operations/modeling/requirement-types.d.ts.map +1 -0
  185. package/dist/operations/modeling/requirement-types.js +1 -0
  186. package/dist/operations/modeling/requirement-utils.d.ts +10 -0
  187. package/dist/operations/modeling/requirement-utils.d.ts.map +1 -0
  188. package/dist/operations/modeling/requirement-utils.js +65 -0
  189. package/dist/operations/modeling/suggest-predicates.d.ts +6 -0
  190. package/dist/operations/modeling/suggest-predicates.d.ts.map +1 -0
  191. package/dist/operations/modeling/suggest-predicates.js +64 -0
  192. package/dist/operations/mutation/audit.d.ts +6 -0
  193. package/dist/operations/mutation/audit.d.ts.map +1 -0
  194. package/dist/operations/mutation/audit.js +22 -0
  195. package/dist/operations/mutation/contradictions.d.ts +10 -0
  196. package/dist/operations/mutation/contradictions.d.ts.map +1 -0
  197. package/dist/operations/mutation/contradictions.js +40 -0
  198. package/dist/operations/mutation/delete.d.ts +5 -0
  199. package/dist/operations/mutation/delete.d.ts.map +1 -0
  200. package/dist/operations/mutation/delete.js +67 -0
  201. package/dist/operations/mutation/relationships.d.ts +17 -0
  202. package/dist/operations/mutation/relationships.d.ts.map +1 -0
  203. package/dist/operations/mutation/relationships.js +142 -0
  204. package/dist/operations/mutation/save.d.ts +4 -0
  205. package/dist/operations/mutation/save.d.ts.map +1 -0
  206. package/dist/operations/mutation/save.js +14 -0
  207. package/dist/operations/mutation/serialization.d.ts +5 -0
  208. package/dist/operations/mutation/serialization.d.ts.map +1 -0
  209. package/dist/operations/mutation/serialization.js +88 -0
  210. package/dist/operations/mutation/strict-fact.d.ts +4 -0
  211. package/dist/operations/mutation/strict-fact.d.ts.map +1 -0
  212. package/dist/operations/mutation/strict-fact.js +132 -0
  213. package/dist/operations/mutation/symbol-granularity.d.ts +4 -0
  214. package/dist/operations/mutation/symbol-granularity.d.ts.map +1 -0
  215. package/dist/operations/mutation/symbol-granularity.js +109 -0
  216. package/dist/operations/mutation/symbol-refresh.d.ts +10 -0
  217. package/dist/operations/mutation/symbol-refresh.d.ts.map +1 -0
  218. package/dist/operations/mutation/symbol-refresh.js +105 -0
  219. package/dist/operations/mutation/types.d.ts +43 -0
  220. package/dist/operations/mutation/types.d.ts.map +1 -0
  221. package/dist/operations/mutation/types.js +1 -0
  222. package/dist/operations/mutation/upsert.d.ts +5 -0
  223. package/dist/operations/mutation/upsert.d.ts.map +1 -0
  224. package/dist/operations/mutation/upsert.js +103 -0
  225. package/dist/operations/mutation/validate-upsert.d.ts +5 -0
  226. package/dist/operations/mutation/validate-upsert.d.ts.map +1 -0
  227. package/dist/operations/mutation/validate-upsert.js +50 -0
  228. package/dist/operations/mutation/validation.d.ts +5 -0
  229. package/dist/operations/mutation/validation.d.ts.map +1 -0
  230. package/dist/operations/mutation/validation.js +107 -0
  231. package/dist/operations/mutation/warnings.d.ts +4 -0
  232. package/dist/operations/mutation/warnings.d.ts.map +1 -0
  233. package/dist/operations/mutation/warnings.js +17 -0
  234. package/dist/operations/semantic-advisor/analysis-receipt.d.ts +5 -0
  235. package/dist/operations/semantic-advisor/analysis-receipt.d.ts.map +1 -0
  236. package/dist/operations/semantic-advisor/analysis-receipt.js +120 -0
  237. package/dist/operations/semantic-advisor/analyze-prose.d.ts +5 -0
  238. package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -0
  239. package/dist/operations/semantic-advisor/analyze-prose.js +693 -0
  240. package/dist/operations/semantic-advisor/clauses.d.ts +10 -0
  241. package/dist/operations/semantic-advisor/clauses.d.ts.map +1 -0
  242. package/dist/operations/semantic-advisor/clauses.js +43 -0
  243. package/dist/operations/semantic-advisor/observation-plan.d.ts +3 -0
  244. package/dist/operations/semantic-advisor/observation-plan.d.ts.map +1 -0
  245. package/dist/operations/semantic-advisor/observation-plan.js +31 -0
  246. package/dist/operations/semantic-advisor/predicate-rule.d.ts +14 -0
  247. package/dist/operations/semantic-advisor/predicate-rule.d.ts.map +1 -0
  248. package/dist/operations/semantic-advisor/predicate-rule.js +22 -0
  249. package/dist/operations/semantic-advisor/predicate-rules-core.d.ts +79 -0
  250. package/dist/operations/semantic-advisor/predicate-rules-core.d.ts.map +1 -0
  251. package/dist/operations/semantic-advisor/predicate-rules-core.js +140 -0
  252. package/dist/operations/semantic-advisor/predicate-rules-policy.d.ts +83 -0
  253. package/dist/operations/semantic-advisor/predicate-rules-policy.d.ts.map +1 -0
  254. package/dist/operations/semantic-advisor/predicate-rules-policy.js +150 -0
  255. package/dist/operations/semantic-advisor/predicate-rules-product-tail.d.ts +48 -0
  256. package/dist/operations/semantic-advisor/predicate-rules-product-tail.d.ts.map +1 -0
  257. package/dist/operations/semantic-advisor/predicate-rules-product-tail.js +102 -0
  258. package/dist/operations/semantic-advisor/predicate-rules-product.d.ts +71 -0
  259. package/dist/operations/semantic-advisor/predicate-rules-product.d.ts.map +1 -0
  260. package/dist/operations/semantic-advisor/predicate-rules-product.js +133 -0
  261. package/dist/operations/semantic-advisor/prose-coverage-evaluator.d.ts +29 -0
  262. package/dist/operations/semantic-advisor/prose-coverage-evaluator.d.ts.map +1 -0
  263. package/dist/operations/semantic-advisor/prose-coverage-evaluator.js +54 -0
  264. package/dist/operations/semantic-advisor/shared.d.ts +19 -0
  265. package/dist/operations/semantic-advisor/shared.d.ts.map +1 -0
  266. package/dist/operations/semantic-advisor/shared.js +209 -0
  267. package/dist/operations/semantic-advisor/strict-count-rules.d.ts +4 -0
  268. package/dist/operations/semantic-advisor/strict-count-rules.d.ts.map +1 -0
  269. package/dist/operations/semantic-advisor/strict-count-rules.js +62 -0
  270. package/dist/operations/semantic-advisor/strict-rules.d.ts +4 -0
  271. package/dist/operations/semantic-advisor/strict-rules.d.ts.map +1 -0
  272. package/dist/operations/semantic-advisor/strict-rules.js +106 -0
  273. package/dist/operations/semantic-advisor/types.d.ts +195 -0
  274. package/dist/operations/semantic-advisor/types.d.ts.map +1 -0
  275. package/dist/operations/semantic-advisor/types.js +1 -0
  276. package/dist/prolog/codec.d.ts.map +1 -1
  277. package/dist/prolog/codec.js +20 -3
  278. package/dist/prolog.d.ts +5 -0
  279. package/dist/prolog.d.ts.map +1 -1
  280. package/dist/prolog.js +89 -32
  281. package/dist/public/impact/diagnostics.d.ts.map +1 -1
  282. package/dist/public/impact/diagnostics.js +8 -4
  283. package/dist/public/impact/full-kb-quality.d.ts +1 -1
  284. package/dist/public/impact/full-kb-quality.d.ts.map +1 -1
  285. package/dist/public/impact/full-kb-quality.js +34 -1
  286. package/dist/public/impact/requirement-quality.d.ts.map +1 -1
  287. package/dist/public/impact/requirement-quality.js +6 -23
  288. package/dist/public/operations/catalog.d.ts +986 -0
  289. package/dist/public/operations/catalog.d.ts.map +1 -0
  290. package/dist/public/operations/catalog.js +42 -0
  291. package/dist/public/operations/check-executor.d.ts +21 -0
  292. package/dist/public/operations/check-executor.d.ts.map +1 -0
  293. package/dist/public/operations/check-executor.js +111 -0
  294. package/dist/public/operations/check-format-shared.d.ts +36 -0
  295. package/dist/public/operations/check-format-shared.d.ts.map +1 -0
  296. package/dist/public/operations/check-format-shared.js +107 -0
  297. package/dist/public/operations/check-helpers.d.ts +10 -0
  298. package/dist/public/operations/check-helpers.d.ts.map +1 -0
  299. package/dist/public/operations/check-helpers.js +107 -0
  300. package/dist/public/operations/discovery-entities.d.ts +14 -0
  301. package/dist/public/operations/discovery-entities.d.ts.map +1 -0
  302. package/dist/public/operations/discovery-entities.js +91 -0
  303. package/dist/public/operations/discovery-executors.d.ts +39 -0
  304. package/dist/public/operations/discovery-executors.d.ts.map +1 -0
  305. package/dist/public/operations/discovery-executors.js +101 -0
  306. package/dist/public/operations/index.d.ts +21 -0
  307. package/dist/public/operations/index.d.ts.map +1 -0
  308. package/dist/public/operations/index.js +19 -0
  309. package/dist/public/operations/node-ports.d.ts +15 -0
  310. package/dist/public/operations/node-ports.d.ts.map +1 -0
  311. package/dist/public/operations/node-ports.js +57 -0
  312. package/dist/public/operations/prolog-json.d.ts +5 -0
  313. package/dist/public/operations/prolog-json.d.ts.map +1 -0
  314. package/dist/public/operations/prolog-json.js +44 -0
  315. package/dist/public/operations/runtime-types.d.ts +69 -0
  316. package/dist/public/operations/runtime-types.d.ts.map +1 -0
  317. package/dist/public/operations/runtime-types.js +17 -0
  318. package/dist/public/operations/specs/autopilot.d.ts +82 -0
  319. package/dist/public/operations/specs/autopilot.d.ts.map +1 -0
  320. package/dist/public/operations/specs/autopilot.js +72 -0
  321. package/dist/public/operations/specs/check.d.ts +51 -0
  322. package/dist/public/operations/specs/check.d.ts.map +1 -0
  323. package/dist/public/operations/specs/check.js +65 -0
  324. package/dist/public/operations/specs/discovery.d.ts +94 -0
  325. package/dist/public/operations/specs/discovery.d.ts.map +1 -0
  326. package/dist/public/operations/specs/discovery.js +98 -0
  327. package/dist/public/operations/specs/modeling.d.ts +142 -0
  328. package/dist/public/operations/specs/modeling.d.ts.map +1 -0
  329. package/dist/public/operations/specs/modeling.js +133 -0
  330. package/dist/public/operations/specs/mutation-schemas.d.ts +268 -0
  331. package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -0
  332. package/dist/public/operations/specs/mutation-schemas.js +294 -0
  333. package/dist/public/operations/specs/mutation.d.ts +56 -0
  334. package/dist/public/operations/specs/mutation.d.ts.map +1 -0
  335. package/dist/public/operations/specs/mutation.js +44 -0
  336. package/dist/public/operations/specs/reporting.d.ts +185 -0
  337. package/dist/public/operations/specs/reporting.d.ts.map +1 -0
  338. package/dist/public/operations/specs/reporting.js +158 -0
  339. package/dist/public/operations/specs/semantic.d.ts +81 -0
  340. package/dist/public/operations/specs/semantic.d.ts.map +1 -0
  341. package/dist/public/operations/specs/semantic.js +137 -0
  342. package/dist/public/operations/specs/skills.d.ts +70 -0
  343. package/dist/public/operations/specs/skills.d.ts.map +1 -0
  344. package/dist/public/operations/specs/skills.js +107 -0
  345. package/dist/public/operations/specs/sparql.d.ts +39 -0
  346. package/dist/public/operations/specs/sparql.d.ts.map +1 -0
  347. package/dist/public/operations/specs/sparql.js +121 -0
  348. package/dist/public/operations/specs/upsert.d.ts +291 -0
  349. package/dist/public/operations/specs/upsert.d.ts.map +1 -0
  350. package/dist/public/operations/specs/upsert.js +27 -0
  351. package/dist/public/operations/types.d.ts +24 -0
  352. package/dist/public/operations/types.d.ts.map +1 -0
  353. package/dist/public/operations/types.js +1 -0
  354. package/dist/public/schemas/entity.d.ts.map +1 -1
  355. package/dist/public/schemas/entity.js +317 -0
  356. package/dist/public/schemas/relationship.d.ts.map +1 -1
  357. package/dist/public/schemas/relationship.js +1 -0
  358. package/dist/public/skill-system/errors.d.ts +19 -0
  359. package/dist/public/skill-system/errors.d.ts.map +1 -0
  360. package/dist/public/skill-system/errors.js +36 -0
  361. package/dist/public/skill-system/loader.d.ts +9 -0
  362. package/dist/public/skill-system/loader.d.ts.map +1 -0
  363. package/dist/public/skill-system/loader.js +76 -0
  364. package/dist/public/skill-system/paths.d.ts +6 -0
  365. package/dist/public/skill-system/paths.d.ts.map +1 -0
  366. package/dist/public/skill-system/paths.js +25 -0
  367. package/dist/public/skill-system/types.d.ts +15 -0
  368. package/dist/public/skill-system/types.d.ts.map +1 -0
  369. package/dist/public/skill-system/types.js +1 -0
  370. package/dist/public/skill-system/validation.d.ts +10 -0
  371. package/dist/public/skill-system/validation.d.ts.map +1 -0
  372. package/dist/public/skill-system/validation.js +119 -0
  373. package/dist/public/skills/init-kibi/SKILL.md +62 -0
  374. package/dist/public/skills/kibi-freshness/SKILL.md +44 -0
  375. package/dist/public/skills/kibi-traceability/SKILL.md +54 -0
  376. package/dist/public/skills/kibi-usage/SKILL.md +145 -99
  377. package/dist/public/skills/kibi-usage/resources/fact-lanes.md +112 -0
  378. package/dist/public/skills/kibi-usage/resources/logic-ir.md +43 -0
  379. package/dist/public/skills/kibi-usage/resources/operation-access.md +44 -0
  380. package/dist/public/skills/kibi-usage/resources/ui-requirements.md +96 -0
  381. package/dist/public/skills/kibi-usage/resources/workflows.md +41 -3
  382. package/dist/public/skills.d.ts +4 -41
  383. package/dist/public/skills.d.ts.map +1 -1
  384. package/dist/public/skills.js +3 -270
  385. package/dist/public/symbol-granularity.d.ts +9 -0
  386. package/dist/public/symbol-granularity.d.ts.map +1 -1
  387. package/dist/public/symbol-granularity.js +16 -0
  388. package/dist/runtime/cli-runtime.d.ts +3 -0
  389. package/dist/runtime/cli-runtime.d.ts.map +1 -0
  390. package/dist/runtime/cli-runtime.js +96 -0
  391. package/dist/schemas/entity.schema.json +329 -3
  392. package/dist/traceability/staged-diagnostics.d.ts +2 -2
  393. package/dist/traceability/staged-diagnostics.d.ts.map +1 -1
  394. package/dist/traceability/staged-diagnostics.js +17 -10
  395. package/dist/traceability/staged-impact-contract.js +1 -1
  396. package/dist/traceability/staged-symbols-manifest.d.ts +1 -0
  397. package/dist/traceability/staged-symbols-manifest.d.ts.map +1 -1
  398. package/dist/traceability/staged-symbols-manifest.js +53 -24
  399. package/dist/traceability/symbol-extract.d.ts.map +1 -1
  400. package/dist/traceability/symbol-extract.js +17 -1
  401. package/dist/traceability/temp-kb.d.ts.map +1 -1
  402. package/dist/traceability/temp-kb.js +47 -1
  403. package/dist/types/entities.d.ts +3 -0
  404. package/dist/types/entities.d.ts.map +1 -1
  405. package/dist/types/relationships.d.ts +1 -1
  406. package/dist/types/relationships.d.ts.map +1 -1
  407. package/dist/utils/rule-registry.d.ts.map +1 -1
  408. package/dist/utils/rule-registry.js +24 -0
  409. package/dist/utils/schema-version.d.ts +1 -1
  410. package/dist/utils/schema-version.js +1 -1
  411. package/package.json +60 -2
  412. package/src/public/impact/diagnostics.ts +18 -11
  413. package/src/public/impact/full-kb-quality.ts +30 -3
  414. package/src/public/impact/requirement-quality.ts +6 -26
  415. package/src/public/operations/catalog.ts +60 -0
  416. package/src/public/operations/check-executor.ts +185 -0
  417. package/src/public/operations/check-format-shared.ts +178 -0
  418. package/src/public/operations/check-helpers.ts +141 -0
  419. package/src/public/operations/discovery-entities.ts +122 -0
  420. package/src/public/operations/discovery-executors.ts +176 -0
  421. package/src/public/operations/index.ts +20 -0
  422. package/src/public/operations/node-ports.ts +78 -0
  423. package/src/public/operations/prolog-json.ts +71 -0
  424. package/src/public/operations/runtime-types.ts +106 -0
  425. package/src/public/operations/specs/autopilot.ts +98 -0
  426. package/src/public/operations/specs/check.ts +75 -0
  427. package/src/public/operations/specs/discovery.ts +126 -0
  428. package/src/public/operations/specs/modeling.ts +174 -0
  429. package/src/public/operations/specs/mutation-schemas.ts +326 -0
  430. package/src/public/operations/specs/mutation.ts +58 -0
  431. package/src/public/operations/specs/reporting.ts +249 -0
  432. package/src/public/operations/specs/semantic.ts +174 -0
  433. package/src/public/operations/specs/skills.ts +142 -0
  434. package/src/public/operations/specs/sparql.ts +149 -0
  435. package/src/public/operations/specs/upsert.ts +40 -0
  436. package/src/public/operations/types.ts +57 -0
  437. package/src/public/schemas/entity.ts +324 -1
  438. package/src/public/schemas/relationship.ts +1 -0
  439. package/src/public/skill-system/errors.ts +38 -0
  440. package/src/public/skill-system/loader.ts +108 -0
  441. package/src/public/skill-system/paths.ts +27 -0
  442. package/src/public/skill-system/types.ts +14 -0
  443. package/src/public/skill-system/validation.ts +175 -0
  444. package/src/public/skills/init-kibi/SKILL.md +62 -0
  445. package/src/public/skills/kibi-freshness/SKILL.md +44 -0
  446. package/src/public/skills/kibi-traceability/SKILL.md +54 -0
  447. package/src/public/skills/kibi-usage/SKILL.md +145 -99
  448. package/src/public/skills/kibi-usage/resources/fact-lanes.md +112 -0
  449. package/src/public/skills/kibi-usage/resources/logic-ir.md +43 -0
  450. package/src/public/skills/kibi-usage/resources/operation-access.md +44 -0
  451. package/src/public/skills/kibi-usage/resources/ui-requirements.md +96 -0
  452. package/src/public/skills/kibi-usage/resources/workflows.md +41 -3
  453. package/src/public/skills.ts +18 -427
  454. package/src/public/symbol-granularity.ts +25 -0
  455. package/src/schemas/entity.schema.json +329 -3
  456. package/src/schemas/relationship.schema.json +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/public/operations/catalog.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE/D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBe,CAAC;AAO9C,wBAAgB,OAAO,CAAC,IAAI,EAAE,aAAa,GAAG,aAAa,CAM1D;AAGD,wBAAgB,SAAS,IAAI,SAAS,aAAa,EAAE,CAEpD"}
@@ -0,0 +1,42 @@
1
+ import { autopilotGenerateSpec } from "./specs/autopilot.js";
2
+ import { checkSpec } from "./specs/check.js";
3
+ import { querySpec, searchSpec, statusSpec } from "./specs/discovery.js";
4
+ import { modelRequirementSpec, suggestPredicatesSpec, } from "./specs/modeling.js";
5
+ import { deleteSpec, upsertSpec, validateUpsertSpec, } from "./specs/mutation.js";
6
+ import { coverageSpec, findGapsSpec, graphSpec } from "./specs/reporting.js";
7
+ import { semanticAdvisorSpec } from "./specs/semantic.js";
8
+ import { skillsListSpec, skillsLoadSpec, skillsReadSpec, } from "./specs/skills.js";
9
+ import { sparqlRemoteSpec } from "./specs/sparql.js";
10
+ export const OPERATION_CATALOG = [
11
+ skillsListSpec,
12
+ skillsLoadSpec,
13
+ skillsReadSpec,
14
+ querySpec,
15
+ searchSpec,
16
+ statusSpec,
17
+ findGapsSpec,
18
+ coverageSpec,
19
+ graphSpec,
20
+ semanticAdvisorSpec,
21
+ modelRequirementSpec,
22
+ suggestPredicatesSpec,
23
+ autopilotGenerateSpec,
24
+ validateUpsertSpec,
25
+ upsertSpec,
26
+ deleteSpec,
27
+ checkSpec,
28
+ sparqlRemoteSpec,
29
+ ];
30
+ const SPECS_BY_NAME = new Map(OPERATION_CATALOG.map((spec) => [spec.name, spec]));
31
+ // implements REQ-kibi-operation-interface-parity
32
+ export function getSpec(name) {
33
+ const spec = SPECS_BY_NAME.get(name);
34
+ if (!spec) {
35
+ throw new RangeError(`Unknown Kibi operation: ${name}`);
36
+ }
37
+ return spec;
38
+ }
39
+ // implements REQ-kibi-operation-interface-parity
40
+ export function listSpecs() {
41
+ return OPERATION_CATALOG;
42
+ }
@@ -0,0 +1,21 @@
1
+ import { type CheckDiagnostic, type CheckStructuredContent, buildStructuredContent, buildSummary } from "./check-format-shared.js";
2
+ import { getEffectiveRules, loadChecksConfig } from "./check-helpers.js";
3
+ import type { OperationContext } from "./runtime-types.js";
4
+ import type { OperationResult } from "./types.js";
5
+ export type CheckInput = {
6
+ readonly rules?: readonly string[];
7
+ readonly workspaceRoot?: string;
8
+ readonly sourceFiles?: readonly string[];
9
+ readonly staged?: boolean;
10
+ readonly includeWorkingTreeDiff?: boolean;
11
+ readonly includeImpactDiagnostics?: boolean;
12
+ readonly maxDiagnostics?: number;
13
+ };
14
+ export type CheckPayload = CheckStructuredContent;
15
+ export type { CheckDiagnostic, CheckStructuredContent };
16
+ export { buildStructuredContent, buildSummary, getEffectiveRules, loadChecksConfig, };
17
+ export type CheckExecutionOptions = {
18
+ readonly collectFullQualityDiagnosticsForExplicitRules?: boolean;
19
+ };
20
+ export declare function executeCheck(args: CheckInput, context: OperationContext, options?: CheckExecutionOptions): Promise<OperationResult<CheckPayload>>;
21
+ //# sourceMappingURL=check-executor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-executor.d.ts","sourceRoot":"","sources":["../../../src/public/operations/check-executor.ts"],"names":[],"mappings":"AAoBA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,sBAAsB,EACtB,YAAY,EACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,iBAAiB,EACjB,gBAAgB,EAEjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAc,MAAM,oBAAoB,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAC1C,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAC5C,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAAC;AAClD,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,GACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,6CAA6C,CAAC,EAAE,OAAO,CAAC;CAClE,CAAC;AAcF,wBAAsB,YAAY,CAChC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,gBAAgB,EACzB,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CA4GxC"}
@@ -0,0 +1,111 @@
1
+ import { runAggregatedChecks } from "../../commands/aggregated-checks.js";
2
+ import { collectFullKbQualityDiagnostics } from "../impact-diagnostics.js";
3
+ import { buildStructuredContent, buildSummary, } from "./check-format-shared.js";
4
+ import { analyzeKbCheckImpact, collectQueryPlanSafetyViolations, getEffectiveRules, loadChecksConfig, qualityDiagnosticsFromImpact, } from "./check-helpers.js";
5
+ export { buildStructuredContent, buildSummary, getEffectiveRules, loadChecksConfig, };
6
+ function requireProlog(context) {
7
+ if (context.prolog === undefined) {
8
+ throw new Error("Check operation requires a Prolog runtime");
9
+ }
10
+ return context.prolog;
11
+ }
12
+ function invalidatePrologCache(prolog) {
13
+ prolog.invalidateCache?.();
14
+ }
15
+ // implements REQ-kibi-operation-interface-parity, REQ-002
16
+ export async function executeCheck(args, context, options = {}) {
17
+ try {
18
+ const workspaceRoot = args.workspaceRoot ?? context.workspaceRoot;
19
+ const prolog = requireProlog(context);
20
+ const checksConfig = await loadChecksConfig(workspaceRoot);
21
+ const rulesAllowlist = args.rules === undefined
22
+ ? getEffectiveRules(checksConfig.rules)
23
+ : args.rules.length === 0
24
+ ? new Set()
25
+ : getEffectiveRules(undefined, args.rules.join(","));
26
+ const hasExplicitRules = args.rules !== undefined;
27
+ const impactResult = analyzeKbCheckImpact(workspaceRoot, args);
28
+ const impactQualityDiagnostics = qualityDiagnosticsFromImpact(impactResult);
29
+ const maxDiagnosticsOption = args.maxDiagnostics !== undefined
30
+ ? { maxDiagnostics: args.maxDiagnostics }
31
+ : {};
32
+ if (rulesAllowlist.size === 0) {
33
+ const qualityDiagnostics = hasExplicitRules &&
34
+ options.collectFullQualityDiagnosticsForExplicitRules !== true
35
+ ? []
36
+ : impactResult
37
+ ? impactQualityDiagnostics
38
+ : await collectFullKbQualityDiagnostics({
39
+ prolog,
40
+ ...maxDiagnosticsOption,
41
+ });
42
+ return {
43
+ content: [
44
+ {
45
+ type: "text",
46
+ text: buildSummary({
47
+ violations: [],
48
+ impactResult,
49
+ qualityDiagnostics,
50
+ }),
51
+ },
52
+ ],
53
+ structuredContent: buildStructuredContent({
54
+ violations: [],
55
+ diagnostics: [],
56
+ qualityDiagnostics,
57
+ impactResult,
58
+ }),
59
+ };
60
+ }
61
+ invalidatePrologCache(prolog);
62
+ const aggregatedViolations = await runAggregatedChecks(prolog, rulesAllowlist, checksConfig.symbolTraceability.requireAdr);
63
+ const queryPlanViolations = rulesAllowlist.has("query-plan-safety")
64
+ ? collectQueryPlanSafetyViolations()
65
+ : [];
66
+ const violations = [
67
+ ...aggregatedViolations,
68
+ ...queryPlanViolations,
69
+ ];
70
+ const diagnostics = violations.map((v) => ({
71
+ category: "SYNC_ERROR",
72
+ severity: "error",
73
+ message: v.description,
74
+ ...(v.source !== undefined ? { file: v.source } : {}),
75
+ ...(v.suggestion !== undefined ? { suggestion: v.suggestion } : {}),
76
+ }));
77
+ const collectFullQualityDiagnostics = !hasExplicitRules ||
78
+ options.collectFullQualityDiagnosticsForExplicitRules === true;
79
+ const qualityDiagnostics = !collectFullQualityDiagnostics
80
+ ? impactQualityDiagnostics
81
+ : impactResult
82
+ ? impactQualityDiagnostics
83
+ : await collectFullKbQualityDiagnostics({
84
+ prolog,
85
+ hardViolationEntityIds: new Set(violations.map((v) => v.entityId)),
86
+ ...maxDiagnosticsOption,
87
+ });
88
+ return {
89
+ content: [
90
+ {
91
+ type: "text",
92
+ text: buildSummary({
93
+ violations,
94
+ impactResult,
95
+ qualityDiagnostics,
96
+ }),
97
+ },
98
+ ],
99
+ structuredContent: buildStructuredContent({
100
+ violations,
101
+ diagnostics,
102
+ qualityDiagnostics,
103
+ impactResult,
104
+ }),
105
+ };
106
+ }
107
+ catch (error) {
108
+ const message = error instanceof Error ? error.message : String(error);
109
+ throw new Error(`Check execution failed: ${message}`);
110
+ }
111
+ }
@@ -0,0 +1,36 @@
1
+ import type { Violation } from "../check-types.js";
2
+ import type { ChangedFileImpactResult } from "../impact-diagnostics.js";
3
+ import type { QualityDiagnostic } from "../impact-diagnostics.js";
4
+ export interface CheckDiagnostic {
5
+ readonly category: string;
6
+ readonly severity: "error" | "warning";
7
+ readonly message: string;
8
+ readonly file?: string;
9
+ readonly suggestion?: string;
10
+ }
11
+ export interface CheckStructuredContent {
12
+ readonly violations: readonly Violation[];
13
+ readonly count: number;
14
+ readonly diagnostics: readonly CheckDiagnostic[];
15
+ readonly qualityDiagnostics?: readonly QualityDiagnostic[];
16
+ readonly impactDiagnostics?: ChangedFileImpactResult["impactDiagnostics"];
17
+ readonly sourceFiles?: ChangedFileImpactResult["sourceFiles"];
18
+ readonly extractedSymbols?: ChangedFileImpactResult["extractedSymbols"];
19
+ readonly linkedEntities?: ChangedFileImpactResult["linkedEntities"];
20
+ readonly nextActions?: ChangedFileImpactResult["nextActions"];
21
+ }
22
+ export declare function formatImpactText(impactResult: ChangedFileImpactResult): string;
23
+ export declare function formatQualityDiagnosticsText(diagnostics: readonly QualityDiagnostic[]): string;
24
+ export declare function formatViolationText(violations: readonly Violation[]): string;
25
+ export declare function buildStructuredContent(input: {
26
+ violations: readonly Violation[];
27
+ diagnostics: readonly CheckDiagnostic[];
28
+ qualityDiagnostics?: readonly QualityDiagnostic[];
29
+ impactResult: ChangedFileImpactResult | undefined;
30
+ }): CheckStructuredContent;
31
+ export declare function buildSummary(input: {
32
+ readonly violations: readonly Violation[];
33
+ readonly impactResult: ChangedFileImpactResult | undefined;
34
+ readonly qualityDiagnostics: readonly QualityDiagnostic[];
35
+ }): string;
36
+ //# sourceMappingURL=check-format-shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-format-shared.d.ts","sourceRoot":"","sources":["../../../src/public/operations/check-format-shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAkBnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAGD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;IAC1C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,SAAS,eAAe,EAAE,CAAC;IACjD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAC3D,QAAQ,CAAC,iBAAiB,CAAC,EAAE,uBAAuB,CAAC,mBAAmB,CAAC,CAAC;IAC1E,QAAQ,CAAC,WAAW,CAAC,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC;IAC9D,QAAQ,CAAC,gBAAgB,CAAC,EAAE,uBAAuB,CAAC,kBAAkB,CAAC,CAAC;IACxE,QAAQ,CAAC,cAAc,CAAC,EAAE,uBAAuB,CAAC,gBAAgB,CAAC,CAAC;IACpE,QAAQ,CAAC,WAAW,CAAC,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC;CAC/D;AAaD,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,uBAAuB,GACpC,MAAM,CAaR;AAaD,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,SAAS,iBAAiB,EAAE,GACxC,MAAM,CA4BR;AAGD,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,GAAG,MAAM,CAmB5E;AAGD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;IACjC,WAAW,EAAE,SAAS,eAAe,EAAE,CAAC;IACxC,kBAAkB,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAClD,YAAY,EAAE,uBAAuB,GAAG,SAAS,CAAC;CACnD,GAAG,sBAAsB,CAmBzB;AAGD,wBAAgB,YAAY,CAAC,KAAK,EAAE;IAClC,QAAQ,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;IAC1C,QAAQ,CAAC,YAAY,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAC3D,QAAQ,CAAC,kBAAkB,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAC3D,GAAG,MAAM,CAST"}
@@ -0,0 +1,107 @@
1
+ function formatDiagnostics(diagnostics) {
2
+ return diagnostics.map((d) => ({
3
+ category: d.category,
4
+ severity: d.severity,
5
+ message: d.message,
6
+ ...(d.file !== undefined ? { file: d.file } : {}),
7
+ ...(d.suggestion !== undefined ? { suggestion: d.suggestion } : {}),
8
+ }));
9
+ }
10
+ // implements REQ-mcp-tool-check
11
+ export function formatImpactText(impactResult) {
12
+ if (impactResult.impactDiagnostics.length === 0) {
13
+ return "No impact diagnostics found";
14
+ }
15
+ const details = impactResult.impactDiagnostics.map((diagnostic) => {
16
+ const files = diagnostic.files.length > 0
17
+ ? diagnostic.files.join(", ")
18
+ : "unknown-source";
19
+ return `- ${diagnostic.id} | ${diagnostic.severity} | ${files} | ${diagnostic.message} Suggestion: ${diagnostic.suggestion}`;
20
+ });
21
+ return `${impactResult.impactDiagnostics.length} impact diagnostics found\n${details.join("\n")}`;
22
+ }
23
+ function formatOptionalList(label, values) {
24
+ if (values === undefined || values.length === 0) {
25
+ return [];
26
+ }
27
+ return [`${label}: ${values.join(", ")}`];
28
+ }
29
+ // implements REQ-mcp-tool-check
30
+ export function formatQualityDiagnosticsText(diagnostics) {
31
+ if (diagnostics.length === 0) {
32
+ return "No quality diagnostics found";
33
+ }
34
+ const details = diagnostics.map((diagnostic) => {
35
+ const parts = [
36
+ diagnostic.id,
37
+ diagnostic.severity,
38
+ diagnostic.category,
39
+ diagnostic.message,
40
+ ];
41
+ const metadata = [
42
+ `Blocking: ${diagnostic.blocking ? "yes" : "no"}`,
43
+ ...formatOptionalList("Files", diagnostic.files),
44
+ ...formatOptionalList("Docs", diagnostic.docs),
45
+ ...(diagnostic.entityId !== undefined
46
+ ? [`Entity: ${diagnostic.entityId}`]
47
+ : []),
48
+ ...(diagnostic.source !== undefined
49
+ ? [`Source: ${diagnostic.source}`]
50
+ : []),
51
+ `Suggestion: ${diagnostic.suggestion}`,
52
+ ];
53
+ return `- ${parts.join(" | ")}\n ${metadata.join("\n ")}`;
54
+ });
55
+ return `${diagnostics.length} quality diagnostic${diagnostics.length === 1 ? "" : "s"} found\n${details.join("\n")}`;
56
+ }
57
+ // implements REQ-mcp-tool-check
58
+ export function formatViolationText(violations) {
59
+ if (violations.length === 0) {
60
+ return "No violations found";
61
+ }
62
+ const details = violations.map((violation) => {
63
+ const parts = [
64
+ violation.rule,
65
+ violation.entityId,
66
+ violation.source ?? "unknown-source",
67
+ violation.description,
68
+ ];
69
+ if (violation.suggestion) {
70
+ parts.push(`Suggestion: ${violation.suggestion}`);
71
+ }
72
+ return `- ${parts.join(" | ")}`;
73
+ });
74
+ return `${violations.length} violations found\n${details.join("\n")}`;
75
+ }
76
+ // implements REQ-mcp-tool-check
77
+ export function buildStructuredContent(input) {
78
+ const qualityDiagnostics = input.qualityDiagnostics ?? [];
79
+ return {
80
+ violations: [...input.violations],
81
+ count: input.violations.length,
82
+ diagnostics: formatDiagnostics(input.diagnostics),
83
+ ...(qualityDiagnostics.length > 0
84
+ ? { qualityDiagnostics: [...qualityDiagnostics] }
85
+ : {}),
86
+ ...(input.impactResult
87
+ ? {
88
+ impactDiagnostics: input.impactResult.impactDiagnostics,
89
+ sourceFiles: input.impactResult.sourceFiles,
90
+ extractedSymbols: input.impactResult.extractedSymbols,
91
+ linkedEntities: input.impactResult.linkedEntities,
92
+ nextActions: input.impactResult.nextActions,
93
+ }
94
+ : {}),
95
+ };
96
+ }
97
+ // implements REQ-mcp-tool-check
98
+ export function buildSummary(input) {
99
+ const sections = [formatViolationText(input.violations)];
100
+ if (input.impactResult !== undefined) {
101
+ sections.push(formatImpactText(input.impactResult));
102
+ }
103
+ if (input.qualityDiagnostics.length > 0) {
104
+ sections.push(formatQualityDiagnosticsText(input.qualityDiagnostics));
105
+ }
106
+ return sections.join("\n");
107
+ }
@@ -0,0 +1,10 @@
1
+ import { type ChecksConfig, RULE_NAMES, type Violation, getEffectiveRules } from "../../utils/rule-registry.js";
2
+ import { type ChangedFileImpactResult, type QualityDiagnostic } from "../impact-diagnostics.js";
3
+ import type { CheckInput } from "./check-executor.js";
4
+ export { RULE_NAMES, getEffectiveRules };
5
+ export declare function collectQueryPlanSafetyViolations(): Violation[];
6
+ export declare function loadChecksConfig(workspaceRoot: string): Promise<ChecksConfig>;
7
+ export declare function hasImpactOptions(args: CheckInput): boolean;
8
+ export declare function analyzeKbCheckImpact(workspaceRoot: string, args: CheckInput): ChangedFileImpactResult | undefined;
9
+ export declare function qualityDiagnosticsFromImpact(impactResult: ChangedFileImpactResult | undefined): readonly QualityDiagnostic[];
10
+ //# sourceMappingURL=check-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-helpers.d.ts","sourceRoot":"","sources":["../../../src/public/operations/check-helpers.ts"],"names":[],"mappings":"AAuBA,OAAO,EACL,KAAK,YAAY,EAEjB,UAAU,EACV,KAAK,SAAS,EACd,iBAAiB,EAClB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC;AAQzC,wBAAgB,gCAAgC,IAAI,SAAS,EAAE,CAU9D;AAGD,wBAAsB,gBAAgB,CACpC,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,YAAY,CAAC,CAkCvB;AAGD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAO1D;AAGD,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,UAAU,GACf,uBAAuB,GAAG,SAAS,CAoBrC;AAGD,wBAAgB,4BAA4B,CAC1C,YAAY,EAAE,uBAAuB,GAAG,SAAS,GAChD,SAAS,iBAAiB,EAAE,CAK9B"}
@@ -0,0 +1,107 @@
1
+ import { readFileSync } from "node:fs";
2
+ /*
3
+ Kibi — repo-local, per-branch, queryable long-term memory for software projects
4
+ Copyright (C) 2026 Piotr Franczyk
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU Affero General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU Affero General Public License for more details.
15
+
16
+ You should have received a copy of the GNU Affero General Public License
17
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
18
+ */
19
+ import { readFile } from "node:fs/promises";
20
+ import path from "node:path";
21
+ import { getKbPlPathOverride } from "../../env.js";
22
+ import { resolveKbPlPath } from "../../prolog.js";
23
+ import { analyzePrologQueryPlanSafety } from "../../utils/prolog-query-plan-safety.js";
24
+ import { DEFAULT_CHECKS_CONFIG, RULE_NAMES, getEffectiveRules, } from "../../utils/rule-registry.js";
25
+ import { analyzeChangedFileImpact, } from "../impact-diagnostics.js";
26
+ export { RULE_NAMES, getEffectiveRules };
27
+ function resolveChecksPlPath() {
28
+ const override = getKbPlPathOverride();
29
+ return path.join(path.dirname(override ?? resolveKbPlPath()), "checks.pl");
30
+ }
31
+ // implements REQ-mcp-tool-check
32
+ export function collectQueryPlanSafetyViolations() {
33
+ const checksPlPath = resolveChecksPlPath();
34
+ const source = readFileSync(checksPlPath, "utf8");
35
+ return analyzePrologQueryPlanSafety(source).map((v) => ({
36
+ rule: "query-plan-safety",
37
+ entityId: v.predicate,
38
+ description: v.description,
39
+ suggestion: v.suggestion,
40
+ source: `${checksPlPath}:${v.line}`,
41
+ }));
42
+ }
43
+ // implements REQ-mcp-tool-check
44
+ export async function loadChecksConfig(workspaceRoot) {
45
+ const configPath = path.join(workspaceRoot, ".kb", "config.json");
46
+ try {
47
+ const content = await readFile(configPath, "utf8");
48
+ const parsed = JSON.parse(content);
49
+ const parsedRules = parsed.checks?.rules;
50
+ const normalizedRules = {
51
+ ...DEFAULT_CHECKS_CONFIG.rules,
52
+ };
53
+ if (parsedRules && typeof parsedRules === "object") {
54
+ for (const [key, value] of Object.entries(parsedRules)) {
55
+ if (typeof value === "boolean") {
56
+ normalizedRules[key] = value;
57
+ }
58
+ }
59
+ }
60
+ const parsedSt = parsed.checks?.symbolTraceability;
61
+ const normalizedSt = { ...DEFAULT_CHECKS_CONFIG.symbolTraceability };
62
+ if (parsedSt &&
63
+ typeof parsedSt === "object" &&
64
+ typeof parsedSt.requireAdr === "boolean") {
65
+ normalizedSt.requireAdr = parsedSt.requireAdr;
66
+ }
67
+ return { rules: normalizedRules, symbolTraceability: normalizedSt };
68
+ }
69
+ catch {
70
+ return DEFAULT_CHECKS_CONFIG;
71
+ }
72
+ }
73
+ // implements REQ-mcp-tool-check
74
+ export function hasImpactOptions(args) {
75
+ return Boolean(args.includeImpactDiagnostics ||
76
+ args.staged ||
77
+ args.includeWorkingTreeDiff ||
78
+ (args.sourceFiles !== undefined && args.sourceFiles.length > 0));
79
+ }
80
+ // implements REQ-mcp-tool-check
81
+ export function analyzeKbCheckImpact(workspaceRoot, args) {
82
+ if (!hasImpactOptions(args)) {
83
+ return undefined;
84
+ }
85
+ return analyzeChangedFileImpact({
86
+ workspaceRoot,
87
+ ...(args.sourceFiles !== undefined
88
+ ? { sourceFiles: args.sourceFiles }
89
+ : {}),
90
+ ...(args.staged !== undefined ? { staged: args.staged } : {}),
91
+ ...(args.includeWorkingTreeDiff !== undefined
92
+ ? { includeWorkingTreeDiff: args.includeWorkingTreeDiff }
93
+ : {}),
94
+ ...(args.includeImpactDiagnostics !== undefined
95
+ ? { includeImpactDiagnostics: args.includeImpactDiagnostics }
96
+ : {}),
97
+ ...(args.maxDiagnostics !== undefined
98
+ ? { maxDiagnostics: args.maxDiagnostics }
99
+ : {}),
100
+ });
101
+ }
102
+ // implements REQ-mcp-tool-check
103
+ export function qualityDiagnosticsFromImpact(impactResult) {
104
+ if (impactResult === undefined)
105
+ return [];
106
+ return impactResult.impactDiagnostics.filter((d) => !d.blocking && d.severity !== "error");
107
+ }
@@ -0,0 +1,14 @@
1
+ import type { PrologPort } from "./runtime-types.js";
2
+ export type EntityQueryInput = {
3
+ readonly type?: string;
4
+ readonly id?: string;
5
+ readonly tags?: readonly string[];
6
+ readonly sourceFile?: string;
7
+ };
8
+ export declare const VALID_ENTITY_TYPES: readonly ["req", "scenario", "test", "adr", "flag", "event", "symbol", "fact"];
9
+ export declare function validateEntityType(type?: string): void;
10
+ export declare function buildEntityGoal(input: EntityQueryInput): string;
11
+ export declare function loadEntities(prolog: Pick<PrologPort, "query">, input: EntityQueryInput): Promise<Record<string, unknown>[]>;
12
+ export declare function paginateResults<T>(results: readonly T[], limit?: number, offset?: number): T[];
13
+ export declare function dedupeEntities(entities: readonly Record<string, unknown>[]): Record<string, unknown>[];
14
+ //# sourceMappingURL=discovery-entities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discovery-entities.d.ts","sourceRoot":"","sources":["../../../src/public/operations/discovery-entities.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,gFASrB,CAAC;AAGX,wBAAgB,kBAAkB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAMtD;AAGD,wBAAgB,eAAe,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CA+B/D;AAGD,wBAAsB,YAAY,CAChC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,EACjC,KAAK,EAAE,gBAAgB,GACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CA0BpC;AAGD,wBAAgB,eAAe,CAAC,CAAC,EAC/B,OAAO,EAAE,SAAS,CAAC,EAAE,EACrB,KAAK,SAAM,EACX,MAAM,SAAI,GACT,CAAC,EAAE,CAEL;AAGD,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAC3C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAQ3B"}
@@ -0,0 +1,91 @@
1
+ import { escapeAtomContent, parseEntityFromBinding, parseEntityFromList, parseListOfLists, } from "../../prolog/codec.js";
2
+ export const VALID_ENTITY_TYPES = [
3
+ "req",
4
+ "scenario",
5
+ "test",
6
+ "adr",
7
+ "flag",
8
+ "event",
9
+ "symbol",
10
+ "fact",
11
+ ];
12
+ // implements REQ-002, REQ-013
13
+ export function validateEntityType(type) {
14
+ if (type && !VALID_ENTITY_TYPES.some((candidate) => candidate === type)) {
15
+ throw new Error(`Invalid type '${type}'. Valid types: ${VALID_ENTITY_TYPES.join(", ")}. Use a single type value, or omit this parameter to query all entities.`);
16
+ }
17
+ }
18
+ // implements REQ-002, REQ-013
19
+ export function buildEntityGoal(input) {
20
+ const { type, id, tags, sourceFile } = input;
21
+ if (sourceFile) {
22
+ const safeSource = escapeAtomContent(sourceFile);
23
+ if (type) {
24
+ const safeType = escapeAtomContent(type);
25
+ return `findall([Id,'${safeType}',Props], (kb_entities_by_source('${safeSource}', SourceIds), member(Id, SourceIds), kb_entity(Id, '${safeType}', Props)), Results)`;
26
+ }
27
+ return `findall([Id,Type,Props], (kb_entities_by_source('${safeSource}', SourceIds), member(Id, SourceIds), kb_entity(Id, Type, Props)), Results)`;
28
+ }
29
+ if (id && type) {
30
+ const safeId = escapeAtomContent(id);
31
+ const safeType = escapeAtomContent(type);
32
+ return `findall(['${safeId}','${safeType}',Props], kb_entity('${safeId}', '${safeType}', Props), Results)`;
33
+ }
34
+ if (id) {
35
+ const safeId = escapeAtomContent(id);
36
+ return `findall(['${safeId}',Type,Props], kb_entity('${safeId}', Type, Props), Results)`;
37
+ }
38
+ if (tags && tags.length > 0) {
39
+ if (type) {
40
+ const safeType = escapeAtomContent(type);
41
+ return `findall([Id,'${safeType}',Props], kb_entity(Id, '${safeType}', Props), Results)`;
42
+ }
43
+ return "findall([Id,Type,Props], kb_entity(Id, Type, Props), Results)";
44
+ }
45
+ if (type) {
46
+ const safeType = escapeAtomContent(type);
47
+ return `findall([Id,'${safeType}',Props], kb_entity(Id, '${safeType}', Props), Results)`;
48
+ }
49
+ return "findall([Id,Type,Props], kb_entity(Id, Type, Props), Results)";
50
+ }
51
+ // implements REQ-002, REQ-013
52
+ export async function loadEntities(prolog, input) {
53
+ validateEntityType(input.type);
54
+ const queryResult = await prolog.query(buildEntityGoal(input));
55
+ if (!queryResult.success) {
56
+ throw new Error(queryResult.error || "Query failed with unknown error");
57
+ }
58
+ let entities = [];
59
+ const resultsBinding = queryResult.bindings.Results;
60
+ const resultBinding = queryResult.bindings.Result;
61
+ if (resultsBinding) {
62
+ entities = parseListOfLists(resultsBinding).map(parseEntityFromList);
63
+ }
64
+ else if (resultBinding) {
65
+ entities = [parseEntityFromBinding(resultBinding)];
66
+ }
67
+ if (input.tags && input.tags.length > 0) {
68
+ const requested = new Set(input.tags.map((tag) => tag.trim()));
69
+ entities = entities.filter((entity) => {
70
+ const tags = entity.tags;
71
+ return (Array.isArray(tags) &&
72
+ tags.some((tag) => requested.has(String(tag).trim())));
73
+ });
74
+ }
75
+ return dedupeEntities(entities);
76
+ }
77
+ // implements REQ-002
78
+ export function paginateResults(results, limit = 100, offset = 0) {
79
+ return results.slice(offset, offset + limit);
80
+ }
81
+ // implements REQ-002
82
+ export function dedupeEntities(entities) {
83
+ const seen = new Set();
84
+ return entities.filter((entity) => {
85
+ const key = `${String(entity.type ?? "")}::${String(entity.id ?? "")}`;
86
+ if (seen.has(key))
87
+ return false;
88
+ seen.add(key);
89
+ return true;
90
+ });
91
+ }
@@ -0,0 +1,39 @@
1
+ import type { SearchMatch } from "../../search-ranking.js";
2
+ import type { OperationContext } from "./runtime-types.js";
3
+ import type { OperationResult } from "./types.js";
4
+ export type QueryInput = {
5
+ readonly type?: string;
6
+ readonly id?: string;
7
+ readonly tags?: readonly string[];
8
+ readonly sourceFile?: string;
9
+ readonly limit?: number;
10
+ readonly offset?: number;
11
+ };
12
+ export type QueryPayload = {
13
+ readonly entities: readonly Record<string, unknown>[];
14
+ readonly count: number;
15
+ };
16
+ export type SearchInput = {
17
+ readonly query: string;
18
+ readonly type?: string;
19
+ readonly limit?: number;
20
+ readonly offset?: number;
21
+ };
22
+ export type SearchPayload = {
23
+ readonly results: readonly SearchMatch[];
24
+ readonly count: number;
25
+ };
26
+ export type StatusInput = Readonly<Record<string, never>>;
27
+ export type StatusPayload = {
28
+ readonly branch: string;
29
+ readonly snapshotId: string;
30
+ readonly syncedAt: string | null;
31
+ readonly dirty: boolean;
32
+ readonly syncState: string;
33
+ readonly kbPath?: string;
34
+ readonly lastSyncSource?: string;
35
+ };
36
+ export declare function executeQuery(input: QueryInput, context: OperationContext): Promise<OperationResult<QueryPayload>>;
37
+ export declare function executeSearch(input: SearchInput, context: OperationContext): Promise<OperationResult<SearchPayload>>;
38
+ export declare function executeStatus(_input: StatusInput, context: OperationContext): Promise<OperationResult<StatusPayload>>;
39
+ //# sourceMappingURL=discovery-executors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discovery-executors.d.ts","sourceRoot":"","sources":["../../../src/public/operations/discovery-executors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAO3D,OAAO,KAAK,EAAE,gBAAgB,EAAc,MAAM,oBAAoB,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IACtD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IACzC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC;AAqBF,wBAAsB,YAAY,CAChC,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CA+BxC;AAED,wBAAsB,aAAa,CACjC,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAsCzC;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAyBzC"}