kibi-cli 0.12.8 → 0.16.1

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 (501) 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 -210
  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 +2 -1
  39. package/dist/commands/check.d.ts.map +1 -1
  40. package/dist/commands/check.js +145 -152
  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 +3 -1
  44. package/dist/commands/discovery-shared.d.ts.map +1 -1
  45. package/dist/commands/discovery-shared.js +8 -209
  46. package/dist/commands/discovery-table.d.ts +3 -0
  47. package/dist/commands/discovery-table.d.ts.map +1 -0
  48. package/dist/commands/discovery-table.js +204 -0
  49. package/dist/commands/gaps.d.ts.map +1 -1
  50. package/dist/commands/gaps.js +15 -19
  51. package/dist/commands/graph.d.ts.map +1 -1
  52. package/dist/commands/graph.js +15 -21
  53. package/dist/commands/query.d.ts +7 -7
  54. package/dist/commands/query.d.ts.map +1 -1
  55. package/dist/commands/query.js +98 -204
  56. package/dist/commands/search.d.ts +4 -4
  57. package/dist/commands/search.d.ts.map +1 -1
  58. package/dist/commands/search.js +14 -27
  59. package/dist/commands/status.d.ts +1 -1
  60. package/dist/commands/status.d.ts.map +1 -1
  61. package/dist/commands/status.js +6 -7
  62. package/dist/commands/sync/discovery.d.ts.map +1 -1
  63. package/dist/commands/sync/discovery.js +8 -1
  64. package/dist/commands/sync/extraction.d.ts +6 -1
  65. package/dist/commands/sync/extraction.d.ts.map +1 -1
  66. package/dist/commands/sync/extraction.js +7 -3
  67. package/dist/commands/sync/manifest.d.ts +1 -1
  68. package/dist/commands/sync/manifest.d.ts.map +1 -1
  69. package/dist/commands/sync/manifest.js +9 -17
  70. package/dist/commands/sync/persistence.d.ts.map +1 -1
  71. package/dist/commands/sync/persistence.js +51 -2
  72. package/dist/extractors/manifest.d.ts.map +1 -1
  73. package/dist/extractors/manifest.js +18 -0
  74. package/dist/extractors/markdown.d.ts +20 -2
  75. package/dist/extractors/markdown.d.ts.map +1 -1
  76. package/dist/extractors/markdown.js +38 -1
  77. package/dist/extractors/symbols-coordinator.d.ts +1 -1
  78. package/dist/extractors/symbols-coordinator.d.ts.map +1 -1
  79. package/dist/extractors/symbols-ts.d.ts.map +1 -1
  80. package/dist/extractors/symbols-ts.js +73 -1
  81. package/dist/operations/autopilot/activation.d.ts +4 -0
  82. package/dist/operations/autopilot/activation.d.ts.map +1 -0
  83. package/dist/operations/autopilot/activation.js +130 -0
  84. package/dist/operations/autopilot/candidate-helpers.d.ts +13 -0
  85. package/dist/operations/autopilot/candidate-helpers.d.ts.map +1 -0
  86. package/dist/operations/autopilot/candidate-helpers.js +55 -0
  87. package/dist/operations/autopilot/candidates.d.ts +4 -0
  88. package/dist/operations/autopilot/candidates.d.ts.map +1 -0
  89. package/dist/operations/autopilot/candidates.js +114 -0
  90. package/dist/operations/autopilot/discovery-evidence.d.ts +10 -0
  91. package/dist/operations/autopilot/discovery-evidence.d.ts.map +1 -0
  92. package/dist/operations/autopilot/discovery-evidence.js +158 -0
  93. package/dist/operations/autopilot/discovery.d.ts +4 -0
  94. package/dist/operations/autopilot/discovery.d.ts.map +1 -0
  95. package/dist/operations/autopilot/discovery.js +100 -0
  96. package/dist/operations/autopilot/generate.d.ts +8 -0
  97. package/dist/operations/autopilot/generate.d.ts.map +1 -0
  98. package/dist/operations/autopilot/generate.js +112 -0
  99. package/dist/operations/autopilot/guidance-actions.d.ts +3 -0
  100. package/dist/operations/autopilot/guidance-actions.d.ts.map +1 -0
  101. package/dist/operations/autopilot/guidance-actions.js +79 -0
  102. package/dist/operations/autopilot/guidance.d.ts +14 -0
  103. package/dist/operations/autopilot/guidance.d.ts.map +1 -0
  104. package/dist/operations/autopilot/guidance.js +124 -0
  105. package/dist/operations/autopilot/markdown-candidates.d.ts +7 -0
  106. package/dist/operations/autopilot/markdown-candidates.d.ts.map +1 -0
  107. package/dist/operations/autopilot/markdown-candidates.js +134 -0
  108. package/dist/operations/autopilot/presentation.d.ts +13 -0
  109. package/dist/operations/autopilot/presentation.d.ts.map +1 -0
  110. package/dist/operations/autopilot/presentation.js +91 -0
  111. package/dist/operations/autopilot/requirement-claims.d.ts +3 -0
  112. package/dist/operations/autopilot/requirement-claims.d.ts.map +1 -0
  113. package/dist/operations/autopilot/requirement-claims.js +48 -0
  114. package/dist/operations/autopilot/types.d.ts +117 -0
  115. package/dist/operations/autopilot/types.d.ts.map +1 -0
  116. package/dist/operations/autopilot/types.js +8 -0
  117. package/dist/operations/modeling/model-requirement.d.ts +10 -0
  118. package/dist/operations/modeling/model-requirement.d.ts.map +1 -0
  119. package/dist/operations/modeling/model-requirement.js +108 -0
  120. package/dist/operations/modeling/predicate-applyplan.d.ts +6 -0
  121. package/dist/operations/modeling/predicate-applyplan.d.ts.map +1 -0
  122. package/dist/operations/modeling/predicate-applyplan.js +104 -0
  123. package/dist/operations/modeling/predicate-catalog-1.d.ts +3 -0
  124. package/dist/operations/modeling/predicate-catalog-1.d.ts.map +1 -0
  125. package/dist/operations/modeling/predicate-catalog-1.js +200 -0
  126. package/dist/operations/modeling/predicate-catalog-2.d.ts +3 -0
  127. package/dist/operations/modeling/predicate-catalog-2.d.ts.map +1 -0
  128. package/dist/operations/modeling/predicate-catalog-2.js +197 -0
  129. package/dist/operations/modeling/predicate-catalog-3.d.ts +3 -0
  130. package/dist/operations/modeling/predicate-catalog-3.d.ts.map +1 -0
  131. package/dist/operations/modeling/predicate-catalog-3.js +193 -0
  132. package/dist/operations/modeling/predicate-catalog-4.d.ts +3 -0
  133. package/dist/operations/modeling/predicate-catalog-4.d.ts.map +1 -0
  134. package/dist/operations/modeling/predicate-catalog-4.js +149 -0
  135. package/dist/operations/modeling/predicate-catalog.d.ts +5 -0
  136. package/dist/operations/modeling/predicate-catalog.d.ts.map +1 -0
  137. package/dist/operations/modeling/predicate-catalog.js +29 -0
  138. package/dist/operations/modeling/predicate-inference-1.d.ts +16 -0
  139. package/dist/operations/modeling/predicate-inference-1.d.ts.map +1 -0
  140. package/dist/operations/modeling/predicate-inference-1.js +161 -0
  141. package/dist/operations/modeling/predicate-inference-2.d.ts +19 -0
  142. package/dist/operations/modeling/predicate-inference-2.d.ts.map +1 -0
  143. package/dist/operations/modeling/predicate-inference-2.js +169 -0
  144. package/dist/operations/modeling/predicate-inference-3.d.ts +15 -0
  145. package/dist/operations/modeling/predicate-inference-3.d.ts.map +1 -0
  146. package/dist/operations/modeling/predicate-inference-3.js +163 -0
  147. package/dist/operations/modeling/predicate-inference.d.ts +5 -0
  148. package/dist/operations/modeling/predicate-inference.d.ts.map +1 -0
  149. package/dist/operations/modeling/predicate-inference.js +148 -0
  150. package/dist/operations/modeling/predicate-loader.d.ts +10 -0
  151. package/dist/operations/modeling/predicate-loader.d.ts.map +1 -0
  152. package/dist/operations/modeling/predicate-loader.js +88 -0
  153. package/dist/operations/modeling/predicate-ranker.d.ts +3 -0
  154. package/dist/operations/modeling/predicate-ranker.d.ts.map +1 -0
  155. package/dist/operations/modeling/predicate-ranker.js +24 -0
  156. package/dist/operations/modeling/predicate-score-1.d.ts +3 -0
  157. package/dist/operations/modeling/predicate-score-1.d.ts.map +1 -0
  158. package/dist/operations/modeling/predicate-score-1.js +121 -0
  159. package/dist/operations/modeling/predicate-score-2.d.ts +3 -0
  160. package/dist/operations/modeling/predicate-score-2.d.ts.map +1 -0
  161. package/dist/operations/modeling/predicate-score-2.js +122 -0
  162. package/dist/operations/modeling/predicate-score-3.d.ts +3 -0
  163. package/dist/operations/modeling/predicate-score-3.d.ts.map +1 -0
  164. package/dist/operations/modeling/predicate-score-3.js +54 -0
  165. package/dist/operations/modeling/predicate-types.d.ts +61 -0
  166. package/dist/operations/modeling/predicate-types.d.ts.map +1 -0
  167. package/dist/operations/modeling/predicate-types.js +1 -0
  168. package/dist/operations/modeling/predicate-usage-hints-1.d.ts +3 -0
  169. package/dist/operations/modeling/predicate-usage-hints-1.d.ts.map +1 -0
  170. package/dist/operations/modeling/predicate-usage-hints-1.js +211 -0
  171. package/dist/operations/modeling/predicate-usage-hints-2.d.ts +3 -0
  172. package/dist/operations/modeling/predicate-usage-hints-2.d.ts.map +1 -0
  173. package/dist/operations/modeling/predicate-usage-hints-2.js +209 -0
  174. package/dist/operations/modeling/predicate-usage-hints-3.d.ts +3 -0
  175. package/dist/operations/modeling/predicate-usage-hints-3.d.ts.map +1 -0
  176. package/dist/operations/modeling/predicate-usage-hints-3.js +45 -0
  177. package/dist/operations/modeling/predicate-utils.d.ts +23 -0
  178. package/dist/operations/modeling/predicate-utils.d.ts.map +1 -0
  179. package/dist/operations/modeling/predicate-utils.js +187 -0
  180. package/dist/operations/modeling/requirement-applyplan.d.ts +4 -0
  181. package/dist/operations/modeling/requirement-applyplan.d.ts.map +1 -0
  182. package/dist/operations/modeling/requirement-applyplan.js +44 -0
  183. package/dist/operations/modeling/requirement-heuristics.d.ts +4 -0
  184. package/dist/operations/modeling/requirement-heuristics.d.ts.map +1 -0
  185. package/dist/operations/modeling/requirement-heuristics.js +114 -0
  186. package/dist/operations/modeling/requirement-modeler.d.ts +8 -0
  187. package/dist/operations/modeling/requirement-modeler.d.ts.map +1 -0
  188. package/dist/operations/modeling/requirement-modeler.js +70 -0
  189. package/dist/operations/modeling/requirement-types.d.ts +49 -0
  190. package/dist/operations/modeling/requirement-types.d.ts.map +1 -0
  191. package/dist/operations/modeling/requirement-types.js +1 -0
  192. package/dist/operations/modeling/requirement-utils.d.ts +10 -0
  193. package/dist/operations/modeling/requirement-utils.d.ts.map +1 -0
  194. package/dist/operations/modeling/requirement-utils.js +65 -0
  195. package/dist/operations/modeling/suggest-predicates.d.ts +6 -0
  196. package/dist/operations/modeling/suggest-predicates.d.ts.map +1 -0
  197. package/dist/operations/modeling/suggest-predicates.js +64 -0
  198. package/dist/operations/mutation/audit.d.ts +6 -0
  199. package/dist/operations/mutation/audit.d.ts.map +1 -0
  200. package/dist/operations/mutation/audit.js +22 -0
  201. package/dist/operations/mutation/contradictions.d.ts +10 -0
  202. package/dist/operations/mutation/contradictions.d.ts.map +1 -0
  203. package/dist/operations/mutation/contradictions.js +40 -0
  204. package/dist/operations/mutation/delete.d.ts +5 -0
  205. package/dist/operations/mutation/delete.d.ts.map +1 -0
  206. package/dist/operations/mutation/delete.js +67 -0
  207. package/dist/operations/mutation/relationships.d.ts +17 -0
  208. package/dist/operations/mutation/relationships.d.ts.map +1 -0
  209. package/dist/operations/mutation/relationships.js +134 -0
  210. package/dist/operations/mutation/save.d.ts +4 -0
  211. package/dist/operations/mutation/save.d.ts.map +1 -0
  212. package/dist/operations/mutation/save.js +14 -0
  213. package/dist/operations/mutation/serialization.d.ts +5 -0
  214. package/dist/operations/mutation/serialization.d.ts.map +1 -0
  215. package/dist/operations/mutation/serialization.js +85 -0
  216. package/dist/operations/mutation/strict-fact.d.ts +4 -0
  217. package/dist/operations/mutation/strict-fact.d.ts.map +1 -0
  218. package/dist/operations/mutation/strict-fact.js +67 -0
  219. package/dist/operations/mutation/symbol-granularity.d.ts +4 -0
  220. package/dist/operations/mutation/symbol-granularity.d.ts.map +1 -0
  221. package/dist/operations/mutation/symbol-granularity.js +109 -0
  222. package/dist/operations/mutation/symbol-refresh.d.ts +10 -0
  223. package/dist/operations/mutation/symbol-refresh.d.ts.map +1 -0
  224. package/dist/operations/mutation/symbol-refresh.js +105 -0
  225. package/dist/operations/mutation/types.d.ts +43 -0
  226. package/dist/operations/mutation/types.d.ts.map +1 -0
  227. package/dist/operations/mutation/types.js +1 -0
  228. package/dist/operations/mutation/upsert.d.ts +5 -0
  229. package/dist/operations/mutation/upsert.d.ts.map +1 -0
  230. package/dist/operations/mutation/upsert.js +103 -0
  231. package/dist/operations/mutation/validate-upsert.d.ts +5 -0
  232. package/dist/operations/mutation/validate-upsert.d.ts.map +1 -0
  233. package/dist/operations/mutation/validate-upsert.js +50 -0
  234. package/dist/operations/mutation/validation.d.ts +5 -0
  235. package/dist/operations/mutation/validation.d.ts.map +1 -0
  236. package/dist/operations/mutation/validation.js +107 -0
  237. package/dist/operations/mutation/warnings.d.ts +4 -0
  238. package/dist/operations/mutation/warnings.d.ts.map +1 -0
  239. package/dist/operations/mutation/warnings.js +17 -0
  240. package/dist/operations/semantic-advisor/analysis-receipt.d.ts +5 -0
  241. package/dist/operations/semantic-advisor/analysis-receipt.d.ts.map +1 -0
  242. package/dist/operations/semantic-advisor/analysis-receipt.js +112 -0
  243. package/dist/operations/semantic-advisor/analyze-prose.d.ts +5 -0
  244. package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -0
  245. package/dist/operations/semantic-advisor/analyze-prose.js +271 -0
  246. package/dist/operations/semantic-advisor/clauses.d.ts +10 -0
  247. package/dist/operations/semantic-advisor/clauses.d.ts.map +1 -0
  248. package/dist/operations/semantic-advisor/clauses.js +43 -0
  249. package/dist/operations/semantic-advisor/observation-plan.d.ts +3 -0
  250. package/dist/operations/semantic-advisor/observation-plan.d.ts.map +1 -0
  251. package/dist/operations/semantic-advisor/observation-plan.js +19 -0
  252. package/dist/operations/semantic-advisor/predicate-rule.d.ts +14 -0
  253. package/dist/operations/semantic-advisor/predicate-rule.d.ts.map +1 -0
  254. package/dist/operations/semantic-advisor/predicate-rule.js +22 -0
  255. package/dist/operations/semantic-advisor/predicate-rules-core.d.ts +79 -0
  256. package/dist/operations/semantic-advisor/predicate-rules-core.d.ts.map +1 -0
  257. package/dist/operations/semantic-advisor/predicate-rules-core.js +140 -0
  258. package/dist/operations/semantic-advisor/predicate-rules-policy.d.ts +83 -0
  259. package/dist/operations/semantic-advisor/predicate-rules-policy.d.ts.map +1 -0
  260. package/dist/operations/semantic-advisor/predicate-rules-policy.js +150 -0
  261. package/dist/operations/semantic-advisor/predicate-rules-product-tail.d.ts +48 -0
  262. package/dist/operations/semantic-advisor/predicate-rules-product-tail.d.ts.map +1 -0
  263. package/dist/operations/semantic-advisor/predicate-rules-product-tail.js +102 -0
  264. package/dist/operations/semantic-advisor/predicate-rules-product.d.ts +71 -0
  265. package/dist/operations/semantic-advisor/predicate-rules-product.d.ts.map +1 -0
  266. package/dist/operations/semantic-advisor/predicate-rules-product.js +133 -0
  267. package/dist/operations/semantic-advisor/prose-coverage-evaluator.d.ts +29 -0
  268. package/dist/operations/semantic-advisor/prose-coverage-evaluator.d.ts.map +1 -0
  269. package/dist/operations/semantic-advisor/prose-coverage-evaluator.js +54 -0
  270. package/dist/operations/semantic-advisor/shared.d.ts +18 -0
  271. package/dist/operations/semantic-advisor/shared.d.ts.map +1 -0
  272. package/dist/operations/semantic-advisor/shared.js +209 -0
  273. package/dist/operations/semantic-advisor/strict-count-rules.d.ts +4 -0
  274. package/dist/operations/semantic-advisor/strict-count-rules.d.ts.map +1 -0
  275. package/dist/operations/semantic-advisor/strict-count-rules.js +62 -0
  276. package/dist/operations/semantic-advisor/strict-rules.d.ts +4 -0
  277. package/dist/operations/semantic-advisor/strict-rules.d.ts.map +1 -0
  278. package/dist/operations/semantic-advisor/strict-rules.js +106 -0
  279. package/dist/operations/semantic-advisor/types.d.ts +135 -0
  280. package/dist/operations/semantic-advisor/types.d.ts.map +1 -0
  281. package/dist/operations/semantic-advisor/types.js +1 -0
  282. package/dist/prolog/codec.d.ts.map +1 -1
  283. package/dist/prolog/codec.js +9 -2
  284. package/dist/prolog.d.ts +5 -0
  285. package/dist/prolog.d.ts.map +1 -1
  286. package/dist/prolog.js +82 -30
  287. package/dist/public/impact/analyzer.d.ts +3 -0
  288. package/dist/public/impact/analyzer.d.ts.map +1 -0
  289. package/dist/public/impact/analyzer.js +54 -0
  290. package/dist/public/impact/coverage-depth-quality.d.ts +4 -0
  291. package/dist/public/impact/coverage-depth-quality.d.ts.map +1 -0
  292. package/dist/public/impact/coverage-depth-quality.js +179 -0
  293. package/dist/public/impact/diagnostics.d.ts +7 -0
  294. package/dist/public/impact/diagnostics.d.ts.map +1 -0
  295. package/dist/public/impact/diagnostics.js +126 -0
  296. package/dist/public/impact/diff-meaning.d.ts +2 -0
  297. package/dist/public/impact/diff-meaning.d.ts.map +1 -0
  298. package/dist/public/impact/diff-meaning.js +101 -0
  299. package/dist/public/impact/full-kb-quality.d.ts +10 -0
  300. package/dist/public/impact/full-kb-quality.d.ts.map +1 -0
  301. package/dist/public/impact/full-kb-quality.js +191 -0
  302. package/dist/public/impact/manifest.d.ts +5 -0
  303. package/dist/public/impact/manifest.d.ts.map +1 -0
  304. package/dist/public/impact/manifest.js +43 -0
  305. package/dist/public/impact/requirement-quality.d.ts +4 -0
  306. package/dist/public/impact/requirement-quality.d.ts.map +1 -0
  307. package/dist/public/impact/requirement-quality.js +199 -0
  308. package/dist/public/impact/source-changes.d.ts +5 -0
  309. package/dist/public/impact/source-changes.d.ts.map +1 -0
  310. package/dist/public/impact/source-changes.js +129 -0
  311. package/dist/public/impact/summaries.d.ts +6 -0
  312. package/dist/public/impact/summaries.d.ts.map +1 -0
  313. package/dist/public/impact/summaries.js +68 -0
  314. package/dist/public/impact/symbol-quality-model.d.ts +21 -0
  315. package/dist/public/impact/symbol-quality-model.d.ts.map +1 -0
  316. package/dist/public/impact/symbol-quality-model.js +116 -0
  317. package/dist/public/impact/symbol-quality.d.ts +4 -0
  318. package/dist/public/impact/symbol-quality.d.ts.map +1 -0
  319. package/dist/public/impact/symbol-quality.js +159 -0
  320. package/dist/public/impact/types.d.ts +79 -0
  321. package/dist/public/impact/types.d.ts.map +1 -0
  322. package/dist/public/impact/types.js +1 -0
  323. package/dist/public/impact-diagnostics.d.ts +7 -0
  324. package/dist/public/impact-diagnostics.d.ts.map +1 -0
  325. package/dist/public/impact-diagnostics.js +5 -0
  326. package/dist/public/operations/catalog.d.ts +907 -0
  327. package/dist/public/operations/catalog.d.ts.map +1 -0
  328. package/dist/public/operations/catalog.js +42 -0
  329. package/dist/public/operations/check-executor.d.ts +21 -0
  330. package/dist/public/operations/check-executor.d.ts.map +1 -0
  331. package/dist/public/operations/check-executor.js +111 -0
  332. package/dist/public/operations/check-format-shared.d.ts +36 -0
  333. package/dist/public/operations/check-format-shared.d.ts.map +1 -0
  334. package/dist/public/operations/check-format-shared.js +107 -0
  335. package/dist/public/operations/check-helpers.d.ts +10 -0
  336. package/dist/public/operations/check-helpers.d.ts.map +1 -0
  337. package/dist/public/operations/check-helpers.js +107 -0
  338. package/dist/public/operations/discovery-entities.d.ts +14 -0
  339. package/dist/public/operations/discovery-entities.d.ts.map +1 -0
  340. package/dist/public/operations/discovery-entities.js +91 -0
  341. package/dist/public/operations/discovery-executors.d.ts +39 -0
  342. package/dist/public/operations/discovery-executors.d.ts.map +1 -0
  343. package/dist/public/operations/discovery-executors.js +101 -0
  344. package/dist/public/operations/index.d.ts +20 -0
  345. package/dist/public/operations/index.d.ts.map +1 -0
  346. package/dist/public/operations/index.js +18 -0
  347. package/dist/public/operations/node-ports.d.ts +15 -0
  348. package/dist/public/operations/node-ports.d.ts.map +1 -0
  349. package/dist/public/operations/node-ports.js +57 -0
  350. package/dist/public/operations/prolog-json.d.ts +5 -0
  351. package/dist/public/operations/prolog-json.d.ts.map +1 -0
  352. package/dist/public/operations/prolog-json.js +44 -0
  353. package/dist/public/operations/runtime-types.d.ts +69 -0
  354. package/dist/public/operations/runtime-types.d.ts.map +1 -0
  355. package/dist/public/operations/runtime-types.js +17 -0
  356. package/dist/public/operations/specs/autopilot.d.ts +82 -0
  357. package/dist/public/operations/specs/autopilot.d.ts.map +1 -0
  358. package/dist/public/operations/specs/autopilot.js +72 -0
  359. package/dist/public/operations/specs/check.d.ts +51 -0
  360. package/dist/public/operations/specs/check.d.ts.map +1 -0
  361. package/dist/public/operations/specs/check.js +62 -0
  362. package/dist/public/operations/specs/discovery.d.ts +94 -0
  363. package/dist/public/operations/specs/discovery.d.ts.map +1 -0
  364. package/dist/public/operations/specs/discovery.js +98 -0
  365. package/dist/public/operations/specs/modeling.d.ts +126 -0
  366. package/dist/public/operations/specs/modeling.d.ts.map +1 -0
  367. package/dist/public/operations/specs/modeling.js +117 -0
  368. package/dist/public/operations/specs/mutation-schemas.d.ts +233 -0
  369. package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -0
  370. package/dist/public/operations/specs/mutation-schemas.js +267 -0
  371. package/dist/public/operations/specs/mutation.d.ts +56 -0
  372. package/dist/public/operations/specs/mutation.d.ts.map +1 -0
  373. package/dist/public/operations/specs/mutation.js +44 -0
  374. package/dist/public/operations/specs/reporting.d.ts +185 -0
  375. package/dist/public/operations/specs/reporting.d.ts.map +1 -0
  376. package/dist/public/operations/specs/reporting.js +158 -0
  377. package/dist/public/operations/specs/semantic.d.ts +53 -0
  378. package/dist/public/operations/specs/semantic.d.ts.map +1 -0
  379. package/dist/public/operations/specs/semantic.js +105 -0
  380. package/dist/public/operations/specs/skills.d.ts +70 -0
  381. package/dist/public/operations/specs/skills.d.ts.map +1 -0
  382. package/dist/public/operations/specs/skills.js +107 -0
  383. package/dist/public/operations/specs/sparql.d.ts +39 -0
  384. package/dist/public/operations/specs/sparql.d.ts.map +1 -0
  385. package/dist/public/operations/specs/sparql.js +121 -0
  386. package/dist/public/operations/specs/upsert.d.ts +256 -0
  387. package/dist/public/operations/specs/upsert.d.ts.map +1 -0
  388. package/dist/public/operations/specs/upsert.js +27 -0
  389. package/dist/public/operations/types.d.ts +24 -0
  390. package/dist/public/operations/types.d.ts.map +1 -0
  391. package/dist/public/operations/types.js +1 -0
  392. package/dist/public/schemas/entity.d.ts.map +1 -1
  393. package/dist/public/schemas/entity.js +48 -0
  394. package/dist/public/skill-system/errors.d.ts +19 -0
  395. package/dist/public/skill-system/errors.d.ts.map +1 -0
  396. package/dist/public/skill-system/errors.js +36 -0
  397. package/dist/public/skill-system/loader.d.ts +9 -0
  398. package/dist/public/skill-system/loader.d.ts.map +1 -0
  399. package/dist/public/skill-system/loader.js +76 -0
  400. package/dist/public/skill-system/paths.d.ts +6 -0
  401. package/dist/public/skill-system/paths.d.ts.map +1 -0
  402. package/dist/public/skill-system/paths.js +25 -0
  403. package/dist/public/skill-system/types.d.ts +15 -0
  404. package/dist/public/skill-system/types.d.ts.map +1 -0
  405. package/dist/public/skill-system/types.js +1 -0
  406. package/dist/public/skill-system/validation.d.ts +10 -0
  407. package/dist/public/skill-system/validation.d.ts.map +1 -0
  408. package/dist/public/skill-system/validation.js +119 -0
  409. package/dist/public/skills/init-kibi/SKILL.md +62 -0
  410. package/dist/public/skills/kibi-freshness/SKILL.md +44 -0
  411. package/dist/public/skills/kibi-traceability/SKILL.md +54 -0
  412. package/dist/public/skills/kibi-usage/SKILL.md +123 -95
  413. package/dist/public/skills/kibi-usage/resources/fact-lanes.md +107 -5
  414. package/dist/public/skills/kibi-usage/resources/operation-access.md +44 -0
  415. package/dist/public/skills/kibi-usage/resources/relationship-directions.md +30 -0
  416. package/dist/public/skills/kibi-usage/resources/workflows.md +40 -3
  417. package/dist/public/skills.d.ts +4 -41
  418. package/dist/public/skills.d.ts.map +1 -1
  419. package/dist/public/skills.js +3 -270
  420. package/dist/public/symbol-granularity.d.ts +1 -1
  421. package/dist/public/symbol-granularity.d.ts.map +1 -1
  422. package/dist/public/symbol-granularity.js +2 -0
  423. package/dist/runtime/cli-runtime.d.ts +3 -0
  424. package/dist/runtime/cli-runtime.d.ts.map +1 -0
  425. package/dist/runtime/cli-runtime.js +96 -0
  426. package/dist/schemas/entity.schema.json +23 -0
  427. package/dist/traceability/evidence-model.d.ts +1 -1
  428. package/dist/traceability/evidence-model.d.ts.map +1 -1
  429. package/dist/traceability/evidence-model.js +1 -1
  430. package/dist/traceability/staged-diagnostics.d.ts +6 -6
  431. package/dist/traceability/staged-diagnostics.d.ts.map +1 -1
  432. package/dist/traceability/staged-diagnostics.js +12 -6
  433. package/dist/traceability/staged-impact-contract.js +1 -1
  434. package/dist/traceability/staged-symbols-manifest.d.ts +1 -0
  435. package/dist/traceability/staged-symbols-manifest.d.ts.map +1 -1
  436. package/dist/traceability/staged-symbols-manifest.js +60 -27
  437. package/dist/traceability/symbol-extract.d.ts.map +1 -1
  438. package/dist/traceability/symbol-extract.js +58 -1
  439. package/dist/traceability/temp-kb.d.ts.map +1 -1
  440. package/dist/traceability/temp-kb.js +34 -1
  441. package/dist/types/entities.d.ts +8 -1
  442. package/dist/types/entities.d.ts.map +1 -1
  443. package/dist/utils/prolog-query-plan-safety.d.ts +8 -0
  444. package/dist/utils/prolog-query-plan-safety.d.ts.map +1 -0
  445. package/dist/utils/prolog-query-plan-safety.js +47 -0
  446. package/dist/utils/rule-registry.d.ts.map +1 -1
  447. package/dist/utils/rule-registry.js +18 -0
  448. package/package.json +60 -2
  449. package/schema/entities.pl +4 -0
  450. package/src/public/impact/analyzer.ts +90 -0
  451. package/src/public/impact/coverage-depth-quality.ts +268 -0
  452. package/src/public/impact/diagnostics.ts +199 -0
  453. package/src/public/impact/diff-meaning.ts +121 -0
  454. package/src/public/impact/full-kb-quality.ts +230 -0
  455. package/src/public/impact/manifest.ts +57 -0
  456. package/src/public/impact/requirement-quality.ts +262 -0
  457. package/src/public/impact/source-changes.ts +180 -0
  458. package/src/public/impact/summaries.ts +100 -0
  459. package/src/public/impact/symbol-quality-model.ts +171 -0
  460. package/src/public/impact/symbol-quality.ts +207 -0
  461. package/src/public/impact/types.ts +99 -0
  462. package/src/public/impact-diagnostics.ts +22 -0
  463. package/src/public/operations/catalog.ts +60 -0
  464. package/src/public/operations/check-executor.ts +185 -0
  465. package/src/public/operations/check-format-shared.ts +178 -0
  466. package/src/public/operations/check-helpers.ts +141 -0
  467. package/src/public/operations/discovery-entities.ts +122 -0
  468. package/src/public/operations/discovery-executors.ts +176 -0
  469. package/src/public/operations/index.ts +19 -0
  470. package/src/public/operations/node-ports.ts +78 -0
  471. package/src/public/operations/prolog-json.ts +71 -0
  472. package/src/public/operations/runtime-types.ts +106 -0
  473. package/src/public/operations/specs/autopilot.ts +98 -0
  474. package/src/public/operations/specs/check.ts +72 -0
  475. package/src/public/operations/specs/discovery.ts +126 -0
  476. package/src/public/operations/specs/modeling.ts +154 -0
  477. package/src/public/operations/specs/mutation-schemas.ts +296 -0
  478. package/src/public/operations/specs/mutation.ts +58 -0
  479. package/src/public/operations/specs/reporting.ts +249 -0
  480. package/src/public/operations/specs/semantic.ts +135 -0
  481. package/src/public/operations/specs/skills.ts +142 -0
  482. package/src/public/operations/specs/sparql.ts +149 -0
  483. package/src/public/operations/specs/upsert.ts +40 -0
  484. package/src/public/operations/types.ts +57 -0
  485. package/src/public/schemas/entity.ts +50 -0
  486. package/src/public/skill-system/errors.ts +38 -0
  487. package/src/public/skill-system/loader.ts +108 -0
  488. package/src/public/skill-system/paths.ts +27 -0
  489. package/src/public/skill-system/types.ts +14 -0
  490. package/src/public/skill-system/validation.ts +175 -0
  491. package/src/public/skills/init-kibi/SKILL.md +62 -0
  492. package/src/public/skills/kibi-freshness/SKILL.md +44 -0
  493. package/src/public/skills/kibi-traceability/SKILL.md +54 -0
  494. package/src/public/skills/kibi-usage/SKILL.md +123 -95
  495. package/src/public/skills/kibi-usage/resources/fact-lanes.md +107 -5
  496. package/src/public/skills/kibi-usage/resources/operation-access.md +44 -0
  497. package/src/public/skills/kibi-usage/resources/relationship-directions.md +30 -0
  498. package/src/public/skills/kibi-usage/resources/workflows.md +40 -3
  499. package/src/public/skills.ts +18 -427
  500. package/src/public/symbol-granularity.ts +4 -0
  501. package/src/schemas/entity.schema.json +23 -0
@@ -0,0 +1,907 @@
1
+ import type { OperationName, OperationSpec } from "./types.js";
2
+ export declare const OPERATION_CATALOG: readonly [{
3
+ readonly name: "kb_skills_list";
4
+ readonly cliName: "skills list";
5
+ readonly description: "List bundled Kibi agent skills available for progressive disclosure. Read-only; does not mutate the KB or require Prolog.";
6
+ readonly businessInputSchema: {
7
+ readonly type: "object";
8
+ readonly properties: {};
9
+ };
10
+ readonly requiresProlog: false;
11
+ readonly effects: readonly ["local-read"];
12
+ readonly execute: (_input: Readonly<Record<string, unknown>>, _context: import("./runtime-types.js").OperationContext) => Promise<import("./types.js").OperationResult<{
13
+ readonly skills: readonly import("../skills.js").SkillManifest[];
14
+ }>>;
15
+ }, {
16
+ readonly name: "kb_skills_load";
17
+ readonly cliName: "skills load";
18
+ readonly description: "Load a bundled Kibi agent skill by ID, returning its manifest metadata, Markdown body, declared resources, content hash, and source type. Read-only; does not execute scripts or require Prolog.";
19
+ readonly businessInputSchema: {
20
+ readonly type: "object";
21
+ readonly required: readonly ["id"];
22
+ readonly properties: {
23
+ readonly id: {
24
+ readonly type: "string";
25
+ readonly description: "Bundled skill ID to load. Example: 'kibi-usage'.";
26
+ };
27
+ };
28
+ };
29
+ readonly requiresProlog: false;
30
+ readonly effects: readonly ["local-read"];
31
+ readonly execute: (input: Readonly<Record<string, unknown>>, _context: import("./runtime-types.js").OperationContext) => Promise<import("./types.js").OperationResult<{
32
+ readonly metadata: import("../skills.js").SkillManifest;
33
+ readonly body: string;
34
+ readonly resources: readonly string[];
35
+ readonly contentHash: string;
36
+ readonly sourceType: "bundled";
37
+ }>>;
38
+ }, {
39
+ readonly name: "kb_skills_read";
40
+ readonly cliName: "skills read";
41
+ readonly description: "Read a declared resource from a bundled Kibi agent skill. Resource paths are restricted to the skill manifest; arbitrary file paths are not exposed. Read-only; does not require Prolog.";
42
+ readonly businessInputSchema: {
43
+ readonly type: "object";
44
+ readonly required: readonly ["id", "resource"];
45
+ readonly properties: {
46
+ readonly id: {
47
+ readonly type: "string";
48
+ readonly description: "Bundled skill ID. Example: 'kibi-usage'.";
49
+ };
50
+ readonly resource: {
51
+ readonly type: "string";
52
+ readonly description: "Manifest-declared resource path to read. Example: 'resources/workflows.md'.";
53
+ };
54
+ };
55
+ };
56
+ readonly requiresProlog: false;
57
+ readonly effects: readonly ["local-read"];
58
+ readonly execute: (input: Readonly<Record<string, unknown>>, _context: import("./runtime-types.js").OperationContext) => Promise<import("./types.js").OperationResult<{
59
+ readonly content: string;
60
+ }>>;
61
+ }, {
62
+ readonly name: "kb_query";
63
+ readonly cliName: "query";
64
+ readonly description: "Read entities from the KB with filters. Use for discovery and lookup before edits. Do not use for writes. No mutation side effects. Tags filter by metadata tags only, not entity IDs.";
65
+ readonly businessInputSchema: {
66
+ readonly type: "object";
67
+ readonly properties: {
68
+ readonly type: {
69
+ readonly type: "string";
70
+ readonly enum: readonly ["req", "scenario", "test", "adr", "flag", "event", "symbol", "fact"];
71
+ readonly description: "Optional entity type filter. Allowed: req, scenario, test, adr, flag, event, symbol, fact. Example: 'req'.";
72
+ };
73
+ readonly id: {
74
+ readonly type: "string";
75
+ readonly description: "Optional exact entity ID. Example: 'REQ-001'. If omitted, returns matching entities by other filters.";
76
+ };
77
+ readonly tags: {
78
+ readonly type: "array";
79
+ readonly items: {
80
+ readonly type: "string";
81
+ };
82
+ readonly description: "Optional tag filter. Matches entities that contain any provided tag. Example: ['security','billing'].";
83
+ };
84
+ readonly sourceFile: {
85
+ readonly type: "string";
86
+ readonly description: "Optional source-file substring filter. Example: 'src/auth/login.ts'. Uses KB source linkage, not file-system scanning.";
87
+ };
88
+ readonly limit: {
89
+ readonly type: "number";
90
+ readonly default: 100;
91
+ readonly description: "Optional max rows to return after filtering. Default: 100 when omitted. Example: 25.";
92
+ };
93
+ readonly offset: {
94
+ readonly type: "number";
95
+ readonly default: 0;
96
+ readonly description: "Optional zero-based pagination offset. Default: 0. Example: 50 to skip first 50 rows.";
97
+ };
98
+ };
99
+ };
100
+ readonly requiresProlog: true;
101
+ readonly effects: readonly ["kb-read"];
102
+ readonly execute: typeof import("./discovery-executors.js").executeQuery;
103
+ }, {
104
+ readonly name: "kb_search";
105
+ readonly cliName: "search";
106
+ readonly description: "Search KB entities for discovery using metadata and markdown body text. Use for exploratory lookup before exact follow-up with kb_query. No mutation side effects.";
107
+ readonly businessInputSchema: {
108
+ readonly type: "object";
109
+ readonly required: readonly ["query"];
110
+ readonly properties: {
111
+ readonly query: {
112
+ readonly type: "string";
113
+ readonly minLength: 1;
114
+ readonly maxLength: 4096;
115
+ readonly description: "Free-text query for metadata and markdown body discovery. Example: 'OAuth login flow'.";
116
+ };
117
+ readonly type: {
118
+ readonly type: "string";
119
+ readonly enum: readonly ["req", "scenario", "test", "adr", "flag", "event", "symbol", "fact"];
120
+ readonly description: "Optional entity type filter to narrow discovery. Example: 'req'.";
121
+ };
122
+ readonly limit: {
123
+ readonly type: "integer";
124
+ readonly minimum: 0;
125
+ readonly default: 20;
126
+ readonly description: "Optional max rows to return after ranking. Default: 20.";
127
+ };
128
+ readonly offset: {
129
+ readonly type: "integer";
130
+ readonly minimum: 0;
131
+ readonly default: 0;
132
+ readonly description: "Optional zero-based pagination offset. Default: 0.";
133
+ };
134
+ };
135
+ };
136
+ readonly requiresProlog: true;
137
+ readonly effects: readonly ["kb-read"];
138
+ readonly execute: typeof import("./discovery-executors.js").executeSearch;
139
+ }, {
140
+ readonly name: "kb_status";
141
+ readonly cliName: "status";
142
+ readonly description: "Report current branch, snapshot, and freshness metadata for the attached KB. Read-only status inspection with no mutation side effects.";
143
+ readonly businessInputSchema: {
144
+ readonly type: "object";
145
+ readonly properties: {};
146
+ };
147
+ readonly requiresProlog: true;
148
+ readonly effects: readonly ["kb-read", "workspace-read"];
149
+ readonly execute: typeof import("./discovery-executors.js").executeStatus;
150
+ }, {
151
+ readonly name: "kb_find_gaps";
152
+ readonly cliName: "find-gaps";
153
+ readonly description: "Run bulk missing/present relationship analysis over KB entities. Use for questions like which requirements lack scenarios or tests. No mutation side effects.";
154
+ readonly businessInputSchema: {
155
+ readonly type: "object";
156
+ readonly properties: {
157
+ readonly type: {
158
+ readonly type: "string";
159
+ readonly enum: readonly ["req", "scenario", "test", "adr", "flag", "event", "symbol", "fact"];
160
+ };
161
+ readonly missingRelationships: {
162
+ readonly type: "array";
163
+ readonly items: {
164
+ readonly type: "string";
165
+ };
166
+ };
167
+ readonly presentRelationships: {
168
+ readonly type: "array";
169
+ readonly items: {
170
+ readonly type: "string";
171
+ };
172
+ };
173
+ readonly tags: {
174
+ readonly type: "array";
175
+ readonly items: {
176
+ readonly type: "string";
177
+ };
178
+ };
179
+ readonly sourceFile: {
180
+ readonly type: "string";
181
+ };
182
+ readonly limit: {
183
+ readonly type: "integer";
184
+ readonly default: 100;
185
+ };
186
+ readonly offset: {
187
+ readonly type: "integer";
188
+ readonly default: 0;
189
+ };
190
+ };
191
+ };
192
+ readonly requiresProlog: true;
193
+ readonly effects: readonly ["kb-read"];
194
+ readonly execute: typeof import("./index.js").executeFindGaps;
195
+ }, {
196
+ readonly name: "kb_coverage";
197
+ readonly cliName: "coverage";
198
+ readonly description: "Generate curated coverage reports for requirements, symbols, or grouped types. Read-only reporting with no mutation side effects.";
199
+ readonly businessInputSchema: {
200
+ readonly type: "object";
201
+ readonly properties: {
202
+ readonly by: {
203
+ readonly type: "string";
204
+ readonly enum: readonly ["req", "symbol", "type"];
205
+ readonly default: "req";
206
+ };
207
+ readonly tags: {
208
+ readonly type: "array";
209
+ readonly items: {
210
+ readonly type: "string";
211
+ };
212
+ };
213
+ readonly includePassing: {
214
+ readonly type: "boolean";
215
+ readonly default: false;
216
+ };
217
+ readonly includeTransitive: {
218
+ readonly type: "boolean";
219
+ readonly default: true;
220
+ };
221
+ readonly limit: {
222
+ readonly type: "integer";
223
+ readonly default: 100;
224
+ };
225
+ readonly offset: {
226
+ readonly type: "integer";
227
+ readonly default: 0;
228
+ };
229
+ };
230
+ };
231
+ readonly requiresProlog: true;
232
+ readonly effects: readonly ["kb-read"];
233
+ readonly execute: typeof import("./index.js").executeCoverage;
234
+ }, {
235
+ readonly name: "kb_graph";
236
+ readonly cliName: "graph";
237
+ readonly description: "Run bounded graph traversal from one or more seed IDs across curated relationship types. No mutation side effects.";
238
+ readonly businessInputSchema: {
239
+ readonly type: "object";
240
+ readonly required: readonly ["seedIds"];
241
+ readonly properties: {
242
+ readonly seedIds: {
243
+ readonly type: "array";
244
+ readonly items: {
245
+ readonly type: "string";
246
+ };
247
+ };
248
+ readonly relationships: {
249
+ readonly type: "array";
250
+ readonly items: {
251
+ readonly type: "string";
252
+ };
253
+ };
254
+ readonly direction: {
255
+ readonly type: "string";
256
+ readonly enum: readonly ["outgoing", "incoming", "both"];
257
+ readonly default: "outgoing";
258
+ };
259
+ readonly depth: {
260
+ readonly type: "integer";
261
+ readonly default: 1;
262
+ readonly minimum: 1;
263
+ readonly maximum: 5;
264
+ };
265
+ readonly entityTypes: {
266
+ readonly type: "array";
267
+ readonly items: {
268
+ readonly type: "string";
269
+ };
270
+ };
271
+ readonly maxNodes: {
272
+ readonly type: "integer";
273
+ readonly default: 200;
274
+ };
275
+ readonly maxEdges: {
276
+ readonly type: "integer";
277
+ readonly default: 500;
278
+ };
279
+ };
280
+ };
281
+ readonly requiresProlog: true;
282
+ readonly effects: readonly ["kb-read"];
283
+ readonly execute: typeof import("./index.js").executeGraph;
284
+ }, {
285
+ readonly name: "kb_semantic_advisor";
286
+ readonly cliName: "semantic-advisor";
287
+ readonly description: "Analyze requirement prose without mutating the KB and return semantic advisor receipts with modeling suggestions. Use before constructing kb_upsert payloads when prose may contain machine-checkable logic. Suggestions can include strict-property facts, predicate facts, ambiguity observations, or ontology-gap observations; all suggestions are advisory and reviewable.";
288
+ readonly businessInputSchema: {
289
+ readonly type: "object";
290
+ readonly required: readonly ["text"];
291
+ readonly properties: {
292
+ readonly text: {
293
+ readonly type: "string";
294
+ readonly description: "Requirement prose to inspect for machine-checkable modeling suggestions.";
295
+ };
296
+ readonly clauses: {
297
+ readonly type: "array";
298
+ readonly items: {
299
+ readonly type: "string";
300
+ };
301
+ readonly description: "Optional complete list of atomic requirement clauses supplied by the caller. Use this for compound prose so every normative clause receives a stable claim key and independent grounding review.";
302
+ };
303
+ readonly type: {
304
+ readonly type: "string";
305
+ readonly enum: readonly ["req"];
306
+ readonly default: "req";
307
+ readonly description: "Entity type context for analysis. Currently requirement prose is supported.";
308
+ };
309
+ readonly id: {
310
+ readonly type: "string";
311
+ readonly description: "Optional requirement ID used for deterministic draft relationship guidance.";
312
+ };
313
+ readonly title: {
314
+ readonly type: "string";
315
+ readonly description: "Optional requirement title for draft apply plans.";
316
+ };
317
+ readonly source: {
318
+ readonly type: "string";
319
+ readonly description: "Optional provenance for draft suggestions.";
320
+ };
321
+ readonly status: {
322
+ readonly type: "string";
323
+ readonly description: "Optional requirement status for draft suggestions.";
324
+ };
325
+ };
326
+ };
327
+ readonly requiresProlog: false;
328
+ readonly effects: readonly ["local-read"];
329
+ readonly execute: (input: Readonly<Record<string, unknown>>, context: import("./runtime-types.js").OperationContext) => Promise<import("../../operations/semantic-advisor/types.js").SemanticAdvisorOperationResult>;
330
+ }, {
331
+ readonly name: "kb_model_requirement";
332
+ readonly cliName: "model-requirement";
333
+ readonly description: "Convert a prose requirement plus optional extracted claim fields into a deterministic strict-lane write set. Read-only modeling returns a sequential applyPlan for later kb_upsert calls. High-confidence claims emit req+fact strict output; lower-confidence claims emit an observation review artifact. Includes migration warnings when legacy schemaVersion metadata is detected.";
334
+ readonly businessInputSchema: {
335
+ readonly type: "object";
336
+ readonly required: readonly ["text"];
337
+ readonly properties: {
338
+ readonly text: {
339
+ readonly type: "string";
340
+ readonly description: "Required prose requirement text to model. Example: 'Customer data must be retained for 7 years.'";
341
+ };
342
+ readonly source: {
343
+ readonly type: "string";
344
+ readonly description: "Optional primary source path or provenance root used for stable IDs and text refs. Example: 'documentation/requirements/customer-retention.md'.";
345
+ };
346
+ readonly sourceFiles: {
347
+ readonly type: "array";
348
+ readonly items: {
349
+ readonly type: "string";
350
+ };
351
+ readonly description: "Optional related source files. The first value is used as the source fallback when source is omitted.";
352
+ };
353
+ readonly confidence: {
354
+ readonly type: "number";
355
+ readonly default: 0.8;
356
+ readonly minimum: 0;
357
+ readonly maximum: 1;
358
+ readonly description: "Confidence score for the extracted claim. >= 0.70 yields strict-lane output; lower confidence yields observation-only review output.";
359
+ };
360
+ readonly subjectKey: {
361
+ readonly type: "string";
362
+ readonly description: "Optional extracted semantic claim subjectKey. Example: 'Customer.Data'.";
363
+ };
364
+ readonly propertyKey: {
365
+ readonly type: "string";
366
+ readonly description: "Optional extracted semantic claim propertyKey. Example: 'Retention Years'.";
367
+ };
368
+ readonly operator: {
369
+ readonly type: "string";
370
+ readonly enum: readonly ["eq", "gte", "lte", "neq", "bool", "polarity"];
371
+ readonly description: "Optional extracted semantic claim operator. Example: 'eq'.";
372
+ };
373
+ readonly value: {
374
+ readonly description: "Optional extracted semantic claim value. Accepts string, number, or boolean.";
375
+ };
376
+ readonly provenance: {
377
+ readonly type: "string";
378
+ readonly description: "Optional extracted text reference. Falls back to source when omitted. Example: 'documentation/requirements/customer-retention.md#L1'.";
379
+ };
380
+ readonly existingLogicClaims: {
381
+ readonly type: "array";
382
+ readonly items: {
383
+ readonly type: "string";
384
+ readonly pattern: "^CLAIM-[A-F0-9]{16}$";
385
+ };
386
+ readonly uniqueItems: true;
387
+ readonly description: "Existing requirement logic_claims values. The returned requirement update merges the new atomic claim key into this manifest instead of replacing prior claims.";
388
+ };
389
+ };
390
+ };
391
+ readonly requiresProlog: true;
392
+ readonly effects: readonly ["kb-read"];
393
+ readonly execute: typeof import("../../operations/modeling/model-requirement.js").executeModelRequirement;
394
+ }, {
395
+ readonly name: "kb_suggest_predicates";
396
+ readonly cliName: "suggest-predicates";
397
+ readonly description: "Suggest ontology predicate schemas for prose requirements before agents write facts. Read-only guidance returns ranked candidates, a safe predicate-fact applyPlan, a separate requires_predicate relationshipPlan when a requirement ID is supplied, or an explicit ontology-gap observation when no predicate fits.";
398
+ readonly businessInputSchema: {
399
+ readonly type: "object";
400
+ readonly required: readonly ["text"];
401
+ readonly properties: {
402
+ readonly text: {
403
+ readonly type: "string";
404
+ readonly description: "Required prose requirement or claim to classify into ontology predicates. Example: 'When users navigate away, draft edits must auto-save.'.";
405
+ };
406
+ readonly requirementId: {
407
+ readonly type: "string";
408
+ readonly description: "Optional existing requirement ID. When provided, the response includes a relationshipPlan describing the req -> fact requires_predicate link to attach after preserving existing requirement metadata.";
409
+ };
410
+ readonly source: {
411
+ readonly type: "string";
412
+ readonly description: "Optional provenance or text reference for generated predicate facts or ontology-gap observations.";
413
+ };
414
+ readonly subjectHint: {
415
+ readonly type: "string";
416
+ readonly description: "Optional canonical subject key to use as the first predicate argument. Example: 'editor.annotation'.";
417
+ };
418
+ readonly maxCandidates: {
419
+ readonly type: "integer";
420
+ readonly default: 5;
421
+ readonly minimum: 1;
422
+ readonly maximum: 20;
423
+ readonly description: "Maximum ranked predicate candidates to return. Default: 5.";
424
+ };
425
+ readonly minScore: {
426
+ readonly type: "number";
427
+ readonly default: 0.35;
428
+ readonly minimum: 0;
429
+ readonly maximum: 1;
430
+ readonly description: "Minimum candidate score. Higher values make ontology-gap fallback more likely. Default: 0.35.";
431
+ };
432
+ readonly includeExistingSchemas: {
433
+ readonly type: "boolean";
434
+ readonly default: true;
435
+ readonly description: "Whether to include existing KB fact_kind=predicate_schema facts alongside Kibi's built-in predicate catalog. Default: true.";
436
+ };
437
+ readonly existingLogicClaims: {
438
+ readonly type: "array";
439
+ readonly items: {
440
+ readonly type: "string";
441
+ readonly pattern: "^CLAIM-[A-F0-9]{16}$";
442
+ };
443
+ readonly uniqueItems: true;
444
+ readonly description: "Existing requirement logic_claims values. Returned relationship guidance includes a merged manifest so repeated clause modeling does not discard earlier claims.";
445
+ };
446
+ };
447
+ };
448
+ readonly requiresProlog: true;
449
+ readonly effects: readonly ["kb-read"];
450
+ readonly execute: typeof import("../../operations/modeling/suggest-predicates.js").executeSuggestPredicates;
451
+ }, {
452
+ readonly name: "kb_autopilot_generate";
453
+ readonly cliName: "autopilot-generate";
454
+ readonly description: "Generate agent-centric bootstrap output for KB population. Read-only analysis that returns activation state, bootstrap guidance, candidate entities with evidence, payoff summary, and exact applyPlan payloads for later kb_upsert calls. No mutation side effects.";
455
+ readonly businessInputSchema: {
456
+ readonly type: "object";
457
+ readonly properties: {
458
+ readonly includeGenericMarkdown: {
459
+ readonly type: "boolean";
460
+ readonly default: true;
461
+ readonly description: "Whether to include generic markdown file content as candidate facts. Default: true.";
462
+ };
463
+ readonly minConfidence: {
464
+ readonly type: "number";
465
+ readonly default: 0.8;
466
+ readonly minimum: 0.6;
467
+ readonly maximum: 0.95;
468
+ readonly description: "Minimum confidence threshold for candidates. Clamped to [0.60, 0.95]. Default: 0.80.";
469
+ };
470
+ readonly maxCandidates: {
471
+ readonly type: "integer";
472
+ readonly default: 50;
473
+ readonly minimum: 1;
474
+ readonly maximum: 200;
475
+ readonly description: "Maximum number of candidates to return. Clamped to [1, 200]. Default: 50.";
476
+ };
477
+ readonly entityTypes: {
478
+ readonly type: "array";
479
+ readonly items: {
480
+ readonly type: "string";
481
+ readonly enum: readonly ["req", "scenario", "test", "adr", "fact", "symbol"];
482
+ };
483
+ readonly description: "Optional filter to limit candidate generation to specific entity types.";
484
+ };
485
+ readonly bootstrapContext: {
486
+ readonly type: "object";
487
+ readonly description: "Optional declared bootstrap context supplied by the agent to ground the read-only synthesis output.";
488
+ readonly properties: {
489
+ readonly projectSummary: {
490
+ readonly type: "string";
491
+ readonly description: "Optional short summary of the project or bootstrap goal.";
492
+ };
493
+ readonly sourceOfTruthPaths: {
494
+ readonly type: "array";
495
+ readonly items: {
496
+ readonly type: "string";
497
+ };
498
+ readonly description: "Optional repo-relative paths that should be treated as declared sources of truth.";
499
+ };
500
+ readonly sourceOfTruthNotes: {
501
+ readonly type: "array";
502
+ readonly items: {
503
+ readonly type: "string";
504
+ };
505
+ readonly description: "Optional notes about how to interpret the declared sources of truth.";
506
+ };
507
+ readonly priorityRoots: {
508
+ readonly type: "array";
509
+ readonly items: {
510
+ readonly type: "string";
511
+ };
512
+ readonly description: "Optional repo roots the bootstrap flow should prioritize when authoring entities.";
513
+ };
514
+ readonly verificationAnchors: {
515
+ readonly type: "array";
516
+ readonly items: {
517
+ readonly type: "string";
518
+ };
519
+ readonly description: "Optional verification commands, documents, or checkpoints to reference in the output.";
520
+ };
521
+ };
522
+ };
523
+ };
524
+ };
525
+ readonly requiresProlog: false;
526
+ readonly effects: readonly ["workspace-read"];
527
+ readonly execute: typeof import("./index.js").executeAutopilotGenerate;
528
+ }, {
529
+ readonly name: "kb_validate_upsert";
530
+ readonly cliName: "validate-upsert";
531
+ readonly description: "Validate a kb_upsert payload without mutating the KB. Use this read-only preflight before kb_upsert, especially for requirements, because it returns schema/modeling errors plus semantic advisor receipts that identify prose likely needing kb_model_requirement, kb_suggest_predicates, ambiguity review, or an ontology-gap observation.";
532
+ readonly businessInputSchema: {
533
+ readonly type: "object";
534
+ readonly required: readonly ["type", "id", "properties"];
535
+ readonly properties: {
536
+ readonly type: {
537
+ readonly type: "string";
538
+ readonly enum: readonly ["req", "scenario", "test", "adr", "flag", "event", "symbol", "fact"];
539
+ };
540
+ readonly id: {
541
+ readonly type: "string";
542
+ };
543
+ readonly properties: {
544
+ readonly type: "object";
545
+ readonly description: "Entity properties to validate using the same snake_case field names accepted by kb_upsert.";
546
+ };
547
+ readonly relationships: {
548
+ readonly type: "array";
549
+ readonly items: {
550
+ readonly type: "object";
551
+ };
552
+ };
553
+ };
554
+ };
555
+ readonly requiresProlog: true;
556
+ readonly effects: readonly ["kb-read"];
557
+ readonly execute: typeof import("../../operations/mutation/validate-upsert.js").executeValidateUpsert;
558
+ }, {
559
+ readonly name: "kb_upsert";
560
+ readonly cliName: "upsert";
561
+ readonly description: "Create or update one entity and optional relationships. Use for KB mutations after validating intent; prefer kb_validate_upsert first because it returns semantic advisor receipts for prose-heavy requirements. Use kb_model_requirement before hand-writing strict property facts from prose, and kb_suggest_predicates before hand-writing ontology predicate facts. Use the `relationships` array for batch creation of multiple links in a single call (e.g., linking a requirement to multiple tests or facts). Prefer modeling requirements as reusable fact links (`constrains`, `requires_property`, or `requires_predicate`) so consistency and contradiction checks remain queryable. Relationship endpoints must already exist in KB. For requirements, the write will be rejected if it contradicts existing current requirements that constrain the same subject with incompatible properties. To replace a conflicting requirement, include a `supersedes` relationship from the new requirement to the old one in the same request. Successful writes may return non-blocking semantic advisor warnings; inspect and repair those warnings before treating prose as contradiction-checkable. Do not use for read-only inspection. Side effects: writes KB, may refresh symbol coordinates.";
562
+ readonly businessInputSchema: {
563
+ readonly type: "object";
564
+ readonly required: readonly ["type", "id", "properties"];
565
+ readonly properties: {
566
+ readonly type: {
567
+ readonly type: "string";
568
+ readonly enum: readonly ["req", "scenario", "test", "adr", "flag", "event", "symbol", "fact"];
569
+ readonly description: "Entity type to create/update. Allowed: req, scenario, test, adr, flag, event, symbol, fact. Example: 'req'.";
570
+ };
571
+ readonly id: {
572
+ readonly type: "string";
573
+ readonly description: "Unique entity ID (string). Example: 'REQ-123'. Existing ID updates the entity; new ID creates it.";
574
+ };
575
+ readonly properties: {
576
+ readonly type: "object";
577
+ readonly description: "Entity fields to persist. Must include title and status. If created_at, updated_at, or source are omitted, server fills defaults.";
578
+ readonly properties: {
579
+ readonly title: {
580
+ readonly type: "string";
581
+ readonly description: "Required short title. Example: 'Protect account settings endpoint'.";
582
+ };
583
+ readonly status: {
584
+ readonly type: "string";
585
+ readonly description: "Required lifecycle state. Allowed values depend on entity type; backward-compatible legacy statuses are also accepted. Examples: 'open', 'passing', 'accepted', 'active'.";
586
+ };
587
+ readonly source: {
588
+ readonly type: "string";
589
+ readonly description: "Optional provenance string. Example: 'docs/requirements/REQ-123.md'. Defaults to 'mcp://kibi/upsert'.";
590
+ };
591
+ readonly tags: {
592
+ readonly type: "array";
593
+ readonly items: {
594
+ readonly type: "string";
595
+ };
596
+ readonly description: "Optional categorization tags. Example: ['security','api'].";
597
+ };
598
+ readonly owner: {
599
+ readonly type: "string";
600
+ readonly description: "Optional owner name/team. Example: 'platform-team'.";
601
+ };
602
+ readonly priority: {
603
+ readonly type: "string";
604
+ readonly description: "Optional priority label. Example: 'high'.";
605
+ };
606
+ readonly severity: {
607
+ readonly type: "string";
608
+ readonly description: "Optional severity label. Example: 'critical'.";
609
+ };
610
+ readonly links: {
611
+ readonly type: "array";
612
+ readonly items: {
613
+ readonly type: "string";
614
+ };
615
+ readonly description: "Optional references. Example: ['REQ-010','https://example.com/spec'].";
616
+ };
617
+ readonly text_ref: {
618
+ readonly type: "string";
619
+ readonly description: "Optional text anchor/reference. Example: 'requirements.md#L40'.";
620
+ };
621
+ readonly logic_claims: {
622
+ readonly type: "array";
623
+ readonly minItems: 1;
624
+ readonly uniqueItems: true;
625
+ readonly items: {
626
+ readonly type: "string";
627
+ readonly pattern: "^CLAIM-[A-F0-9]{16}$";
628
+ };
629
+ readonly description: "Requirement-only manifest of every atomic normative claim key returned by kb_semantic_advisor. A requirement is logic-complete only when every key is grounded by a linked property_value or predicate fact with the same claim_key.";
630
+ };
631
+ readonly sourceFile: {
632
+ readonly type: "string";
633
+ readonly description: "Optional code source file for symbol entities. Example: 'src/auth/login.ts'.";
634
+ };
635
+ readonly granularity_reason: {
636
+ readonly type: "string";
637
+ readonly enum: readonly ["config-artifact", "module-level-behavior", "extractor-miss", "legacy-link"];
638
+ readonly description: "Optional justification for a coarse file/module-level symbol traceability relationship when narrower function/class/type symbols exist.";
639
+ };
640
+ readonly symbol_role: {
641
+ readonly type: "string";
642
+ readonly enum: readonly ["behavioral", "structural", "type-shape", "config", "module", "unknown"];
643
+ readonly description: "Optional role classification for symbol entities. Example: 'behavioral'.";
644
+ };
645
+ readonly verification_scope: {
646
+ readonly type: "string";
647
+ readonly enum: readonly ["unit", "integration", "end_to_end"];
648
+ readonly description: "Optional typed verification scope for test entities. Example: 'end_to_end'.";
649
+ };
650
+ readonly verification_perspective: {
651
+ readonly type: "string";
652
+ readonly enum: readonly ["internal", "consumer"];
653
+ readonly description: "Optional typed verification perspective for test entities. Example: 'consumer'.";
654
+ };
655
+ readonly fact_kind: {
656
+ readonly type: "string";
657
+ readonly enum: readonly ["subject", "property_value", "observation", "meta", "predicate_schema", "predicate"];
658
+ readonly description: "Optional fact lane kind for fact entities. Strict lane uses 'subject' and 'property_value'; context lane uses 'observation' or 'meta'; ontology lane uses 'predicate_schema' or 'predicate'. Use kb_model_requirement or kb_suggest_predicates when starting from prose.";
659
+ };
660
+ readonly subject_key: {
661
+ readonly type: "string";
662
+ readonly description: "Snake_case only. Optional canonical subject key for strict fact entities. Example: 'user.session'. Do not use subjectKey in kb_upsert.properties.";
663
+ };
664
+ readonly property_key: {
665
+ readonly type: "string";
666
+ readonly description: "Snake_case only. Optional canonical property key for property_value facts. Example: 'session.timeout_minutes'. Do not use propertyKey in kb_upsert.properties.";
667
+ };
668
+ readonly operator: {
669
+ readonly type: "string";
670
+ readonly enum: readonly ["eq", "neq", "lt", "lte", "gt", "gte"];
671
+ readonly description: "Optional comparison operator for property_value facts. Example: 'eq'.";
672
+ };
673
+ readonly value_type: {
674
+ readonly type: "string";
675
+ readonly enum: readonly ["string", "int", "number", "bool"];
676
+ readonly description: "Optional typed value discriminator for property_value facts. Pair with exactly one value_string, value_int, value_number, or value_bool; do not use generic value.";
677
+ };
678
+ readonly value_string: {
679
+ readonly type: "string";
680
+ readonly description: "Optional string value for property_value facts.";
681
+ };
682
+ readonly value_int: {
683
+ readonly type: "integer";
684
+ readonly description: "Optional integer value for property_value facts.";
685
+ };
686
+ readonly value_number: {
687
+ readonly type: "number";
688
+ readonly description: "Optional number value for property_value facts.";
689
+ };
690
+ readonly value_bool: {
691
+ readonly type: "boolean";
692
+ readonly description: "Optional boolean value for property_value facts.";
693
+ };
694
+ readonly unit: {
695
+ readonly type: "string";
696
+ readonly description: "Optional unit for numeric property_value facts.";
697
+ };
698
+ readonly scope: {
699
+ readonly type: "string";
700
+ readonly description: "Optional scope qualifier for fact entities.";
701
+ };
702
+ readonly polarity: {
703
+ readonly type: "string";
704
+ readonly enum: readonly ["require", "forbid", "assert", "deny"];
705
+ readonly description: "Optional polarity for property_value or predicate facts.";
706
+ };
707
+ readonly closed_world: {
708
+ readonly type: "boolean";
709
+ readonly description: "Optional closed-world marker for strict fact interpretation.";
710
+ };
711
+ readonly canonical_key: {
712
+ readonly type: "string";
713
+ readonly description: "Optional canonical identity key for predicate or strict fact claims.";
714
+ };
715
+ readonly claim_key: {
716
+ readonly type: "string";
717
+ readonly pattern: "^CLAIM-[A-F0-9]{16}$";
718
+ readonly description: "Stable semantic-advisor key for the atomic prose clause grounded by this fact.";
719
+ };
720
+ readonly claim_text: {
721
+ readonly type: "string";
722
+ readonly description: "Exact atomic requirement clause represented by this fact, retained for human audit.";
723
+ };
724
+ readonly predicate_name: {
725
+ readonly type: "string";
726
+ readonly description: "Optional predicate name for ontology predicate facts. Prefer kb_suggest_predicates before hand-writing predicate_name.";
727
+ };
728
+ readonly predicate_args: {
729
+ readonly type: "array";
730
+ readonly items: {
731
+ readonly type: "string";
732
+ };
733
+ readonly description: "Optional ordered predicate arguments for ontology predicate facts. Prefer kb_suggest_predicates before hand-writing predicate_args.";
734
+ };
735
+ readonly predicate_namespace: {
736
+ readonly type: "string";
737
+ readonly description: "Optional namespace for a project-local predicate schema.";
738
+ };
739
+ readonly predicate_arity: {
740
+ readonly type: "integer";
741
+ readonly minimum: 1;
742
+ readonly description: "Required arity for predicate_schema facts.";
743
+ };
744
+ readonly argument_names: {
745
+ readonly type: "array";
746
+ readonly items: {
747
+ readonly type: "string";
748
+ };
749
+ readonly description: "Ordered argument role names for predicate_schema facts.";
750
+ };
751
+ readonly argument_types: {
752
+ readonly type: "array";
753
+ readonly items: {
754
+ readonly type: "string";
755
+ };
756
+ readonly description: "Ordered argument types for predicate_schema facts.";
757
+ };
758
+ readonly argument_descriptions: {
759
+ readonly type: "array";
760
+ readonly items: {
761
+ readonly type: "string";
762
+ };
763
+ readonly description: "Optional ordered argument explanations.";
764
+ };
765
+ readonly aliases: {
766
+ readonly type: "array";
767
+ readonly items: {
768
+ readonly type: "string";
769
+ };
770
+ readonly description: "Optional vocabulary aliases for predicate discovery.";
771
+ };
772
+ readonly examples: {
773
+ readonly type: "array";
774
+ readonly items: {
775
+ readonly type: "string";
776
+ };
777
+ readonly description: "Optional ground-term examples for a predicate schema.";
778
+ };
779
+ };
780
+ readonly allOf: readonly [Record<string, unknown>];
781
+ readonly required: readonly ["title", "status"];
782
+ };
783
+ readonly relationships: {
784
+ readonly type: "array";
785
+ readonly description: "Optional relationship rows to create in the same call. For requirement encoding, prefer `constrains` + `requires_property` for strict property facts or `requires_predicate` for ontology predicate facts. Side effect: asserts edges in KB.";
786
+ readonly items: {
787
+ readonly type: "object";
788
+ readonly required: readonly ["type", "from", "to"];
789
+ readonly properties: {
790
+ readonly type: {
791
+ readonly type: "string";
792
+ readonly enum: readonly ["depends_on", "specified_by", "verified_by", "validates", "implements", "covered_by", "executable_for", "constrained_by", "constrains", "requires_property", "requires_predicate", "guards", "publishes", "consumes", "supersedes", "relates_to"];
793
+ readonly description: "Relationship type enum. Use only supported values. Direction semantics follow KB model (e.g., implements symbol->req, verified_by req/scenario->test, executable_for symbol->test).";
794
+ };
795
+ readonly from: {
796
+ readonly type: "string";
797
+ readonly description: "Source entity ID (must exist). Example: 'SYM-login-handler'.";
798
+ };
799
+ readonly to: {
800
+ readonly type: "string";
801
+ readonly description: "Target entity ID (must exist). Example: 'REQ-001'.";
802
+ };
803
+ };
804
+ };
805
+ };
806
+ };
807
+ };
808
+ readonly requiresProlog: true;
809
+ readonly effects: readonly ["kb-write", "workspace-write"];
810
+ readonly execute: typeof import("../../operations/mutation/upsert.js").executeUpsert;
811
+ }, {
812
+ readonly name: "kb_delete";
813
+ readonly cliName: "delete";
814
+ readonly description: "Delete entities by ID. Use only for intentional removals after dependency checks. Do not use as a bulk cleanup shortcut. Side effects: mutates and saves KB; skips entities with dependents.";
815
+ readonly businessInputSchema: {
816
+ readonly type: "object";
817
+ readonly required: readonly ["ids"];
818
+ readonly properties: {
819
+ readonly ids: {
820
+ readonly type: "array";
821
+ readonly items: {
822
+ readonly type: "string";
823
+ };
824
+ readonly description: "Required list of entity IDs to delete. Example: ['REQ-001','TEST-002']. At least one ID is required.";
825
+ };
826
+ };
827
+ };
828
+ readonly requiresProlog: true;
829
+ readonly effects: readonly ["kb-write", "workspace-write"];
830
+ readonly execute: typeof import("../../operations/mutation/delete.js").executeDelete;
831
+ }, {
832
+ readonly name: "kb_check";
833
+ readonly cliName: "check";
834
+ readonly description: "Run KB validation rules and return violations. Use before or after mutations, and after meaningful source edits with impact options to surface symbol granularity and semantic-review diagnostics. Do not use for point lookups. No write side effects. Prefer explicit rules for faster iteration; omit rules for final full validation plus full-KB qualityDiagnostics review.";
835
+ readonly businessInputSchema: {
836
+ readonly type: "object";
837
+ readonly properties: {
838
+ readonly rules: {
839
+ readonly type: "array";
840
+ readonly items: {
841
+ readonly type: "string";
842
+ readonly enum: readonly ["must-priority-coverage", "symbol-coverage", "symbol-traceability", "no-dangling-refs", "no-cycles", "required-fields", "deprecated-adr-no-successor", "domain-contradictions", "strict-fact-shape", "strict-req-fact-pairing", "predicate-verifiability", "logic-coverage", "query-plan-safety"];
843
+ };
844
+ readonly description: "Optional rule subset. Allowed: must-priority-coverage, symbol-coverage, symbol-traceability, no-dangling-refs, no-cycles, required-fields, deprecated-adr-no-successor, domain-contradictions, strict-fact-shape, strict-req-fact-pairing, predicate-verifiability, logic-coverage, query-plan-safety. If omitted, server runs all rules plus the full-KB qualityDiagnostics audit scan; if supplied, server preserves scoped validation and skips the full-KB advisory scan.";
845
+ };
846
+ readonly sourceFiles: {
847
+ readonly type: "array";
848
+ readonly items: {
849
+ readonly type: "string";
850
+ };
851
+ readonly description: "Optional repo-relative source files to inspect for early impact diagnostics. Use with includeImpactDiagnostics after meaningful source edits.";
852
+ };
853
+ readonly staged: {
854
+ readonly type: "boolean";
855
+ readonly description: "When true, inspect staged source changes for impact diagnostics using the shared CLI impact analyzer without shelling out to kibi check.";
856
+ };
857
+ readonly includeWorkingTreeDiff: {
858
+ readonly type: "boolean";
859
+ readonly description: "When true, inspect current unstaged working-tree diffs for impact diagnostics. Pair with sourceFiles to scope the analysis.";
860
+ };
861
+ readonly includeImpactDiagnostics: {
862
+ readonly type: "boolean";
863
+ readonly description: "When true, include changed-file impact diagnostics such as symbol_granularity_violation and symbol_semantic_review_needed in structured output.";
864
+ };
865
+ readonly maxDiagnostics: {
866
+ readonly type: "integer";
867
+ readonly minimum: 0;
868
+ readonly description: "Optional maximum number of impact diagnostics to return. Graph validation violations are not capped by this value.";
869
+ };
870
+ readonly workspaceRoot: {
871
+ readonly type: "string";
872
+ readonly description: "Optional workspace root for impact diagnostics and .kb/config.json lookup. Defaults to the MCP server workspace.";
873
+ };
874
+ };
875
+ };
876
+ readonly requiresProlog: true;
877
+ readonly effects: readonly ["kb-read", "workspace-read"];
878
+ readonly execute: typeof import("./check-executor.js").executeCheck;
879
+ }, {
880
+ readonly name: "kb_sparql_remote";
881
+ readonly cliName: "sparql-remote";
882
+ readonly description: "Opt-in remote SPARQL query tool for external HTTP(S) RDF endpoints. This does not query Kibi's local RDF store directly, stores no credentials, and depends on network availability.";
883
+ readonly businessInputSchema: {
884
+ readonly type: "object";
885
+ readonly required: readonly ["endpoint", "query"];
886
+ readonly properties: {
887
+ readonly endpoint: {
888
+ readonly type: "string";
889
+ readonly description: "Remote SPARQL endpoint URL. Must start with http:// or https://.";
890
+ };
891
+ readonly query: {
892
+ readonly type: "string";
893
+ readonly description: "SPARQL SELECT query to send to the remote endpoint.";
894
+ };
895
+ readonly timeoutMs: {
896
+ readonly type: "number";
897
+ readonly description: "Optional positive timeout in milliseconds for the remote query.";
898
+ };
899
+ };
900
+ };
901
+ readonly requiresProlog: false;
902
+ readonly effects: readonly ["network-read"];
903
+ readonly execute: (input: import("./index.js").SparqlRemoteInput, context: import("./runtime-types.js").OperationContext) => Promise<import("./types.js").OperationResult<import("./index.js").SparqlRemoteOutput>>;
904
+ }];
905
+ export declare function getSpec(name: OperationName): OperationSpec;
906
+ export declare function listSpecs(): readonly OperationSpec[];
907
+ //# sourceMappingURL=catalog.d.ts.map