@c4a/context-cli 0.7.5 → 0.7.9

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 (702) hide show
  1. package/README.md +63 -2
  2. package/README.zh-CN.md +16 -0
  3. package/cli.js +132471 -111134
  4. package/docs/context-debug-event-v1.schema.json +3 -1
  5. package/docs/debug-tracing.md +17 -1
  6. package/indexers/bundles/context-code-indexer/SKILL.md +10 -1
  7. package/indexers/bundles/context-code-indexer/context-indexer.yaml +3102 -64
  8. package/indexers/bundles/context-code-indexer/references/article-catalog/adapter-integration-article-catalog.md +20 -0
  9. package/indexers/bundles/context-code-indexer/references/article-catalog/api-service-article-catalog.md +20 -0
  10. package/indexers/bundles/context-code-indexer/references/article-catalog/background-runtime-article-catalog.md +19 -0
  11. package/indexers/bundles/context-code-indexer/references/article-catalog/cli-tool-article-catalog.md +17 -0
  12. package/indexers/bundles/context-code-indexer/references/article-catalog/component-library-article-catalog.md +18 -0
  13. package/indexers/bundles/context-code-indexer/references/article-catalog/contract-source-article-catalog.md +17 -0
  14. package/indexers/bundles/context-code-indexer/references/article-catalog/data-sync-reconciliation-article-catalog.md +19 -0
  15. package/indexers/bundles/context-code-indexer/references/article-catalog/derived-generated-source-article-catalog.md +17 -0
  16. package/indexers/bundles/context-code-indexer/references/article-catalog/domain-service-article-catalog.md +23 -0
  17. package/indexers/bundles/context-code-indexer/references/article-catalog/event-consumer-article-catalog.md +19 -0
  18. package/indexers/bundles/context-code-indexer/references/article-catalog/gateway-facade-article-catalog.md +21 -0
  19. package/indexers/bundles/context-code-indexer/references/article-catalog/monorepo-container-article-catalog.md +17 -0
  20. package/indexers/bundles/context-code-indexer/references/article-catalog/plugin-extension-article-catalog.md +17 -0
  21. package/indexers/bundles/context-code-indexer/references/article-catalog/sdk-library-article-catalog.md +18 -0
  22. package/indexers/bundles/context-code-indexer/references/article-catalog/storage-repository-article-catalog.md +19 -0
  23. package/indexers/bundles/context-code-indexer/references/article-catalog/web-application-article-catalog.md +30 -0
  24. package/indexers/bundles/context-code-indexer/references/composers/public-contract.md +13 -1
  25. package/indexers/bundles/context-code-indexer/references/diagrams.md +122 -0
  26. package/indexers/bundles/context-code-indexer/references/indexer.md +184 -8
  27. package/indexers/bundles/context-code-indexer/references/visual-source-processing.md +42 -0
  28. package/indexers/bundles/context-code-indexer/templates/adapter-integration-maintenance-guide.md +81 -0
  29. package/indexers/bundles/context-code-indexer/templates/adapter-integration-request-adaptation-guide.md +81 -0
  30. package/indexers/bundles/context-code-indexer/templates/adapter-integration-usage-guide.md +81 -0
  31. package/indexers/bundles/context-code-indexer/templates/api-service-maintenance-guide.md +81 -0
  32. package/indexers/bundles/context-code-indexer/templates/api-service-public-api-reference.md +81 -0
  33. package/indexers/bundles/context-code-indexer/templates/articles/c01.md +49 -0
  34. package/indexers/bundles/context-code-indexer/templates/articles/c02.md +36 -0
  35. package/indexers/bundles/context-code-indexer/templates/articles/c03.md +28 -0
  36. package/indexers/bundles/context-code-indexer/templates/articles/c04.md +29 -0
  37. package/indexers/bundles/context-code-indexer/templates/articles/c05.md +30 -0
  38. package/indexers/bundles/context-code-indexer/templates/articles/c07.md +51 -0
  39. package/indexers/bundles/context-code-indexer/templates/articles/d01.md +31 -0
  40. package/indexers/bundles/context-code-indexer/templates/articles/d02.md +32 -0
  41. package/indexers/bundles/context-code-indexer/templates/articles/d03.md +32 -0
  42. package/indexers/bundles/context-code-indexer/templates/articles/d04.md +38 -0
  43. package/indexers/bundles/context-code-indexer/templates/articles/f01.md +50 -0
  44. package/indexers/bundles/context-code-indexer/templates/articles/f02.md +33 -0
  45. package/indexers/bundles/context-code-indexer/templates/articles/f03.md +38 -0
  46. package/indexers/bundles/context-code-indexer/templates/articles/f04.md +32 -0
  47. package/indexers/bundles/context-code-indexer/templates/articles/f05.md +32 -0
  48. package/indexers/bundles/context-code-indexer/templates/articles/f06.md +32 -0
  49. package/indexers/bundles/context-code-indexer/templates/articles/f07.md +31 -0
  50. package/indexers/bundles/context-code-indexer/templates/articles/f08.md +36 -0
  51. package/indexers/bundles/context-code-indexer/templates/articles/f09.md +32 -0
  52. package/indexers/bundles/context-code-indexer/templates/articles/f10.md +32 -0
  53. package/indexers/bundles/context-code-indexer/templates/articles/f11.md +39 -0
  54. package/indexers/bundles/context-code-indexer/templates/articles/f12.md +59 -0
  55. package/indexers/bundles/context-code-indexer/templates/articles/l01.md +38 -0
  56. package/indexers/bundles/context-code-indexer/templates/articles/l02.md +103 -0
  57. package/indexers/bundles/context-code-indexer/templates/articles/l03.md +92 -0
  58. package/indexers/bundles/context-code-indexer/templates/articles/l04.md +30 -0
  59. package/indexers/bundles/context-code-indexer/templates/articles/l05.md +50 -0
  60. package/indexers/bundles/context-code-indexer/templates/articles/q03.md +29 -0
  61. package/indexers/bundles/context-code-indexer/templates/articles/q05.md +29 -0
  62. package/indexers/bundles/context-code-indexer/templates/articles/q06.md +29 -0
  63. package/indexers/bundles/context-code-indexer/templates/articles/s01.md +31 -0
  64. package/indexers/bundles/context-code-indexer/templates/articles/s02.md +30 -0
  65. package/indexers/bundles/context-code-indexer/templates/articles/s03.md +34 -0
  66. package/indexers/bundles/context-code-indexer/templates/articles/s04.md +35 -0
  67. package/indexers/bundles/context-code-indexer/templates/articles/s05.md +30 -0
  68. package/indexers/bundles/context-code-indexer/templates/articles/s06.md +30 -0
  69. package/indexers/bundles/context-code-indexer/templates/articles/s07.md +33 -0
  70. package/indexers/bundles/context-code-indexer/templates/background-runtime-maintenance-guide.md +81 -0
  71. package/indexers/bundles/context-code-indexer/templates/background-runtime-task-runtime-guide.md +81 -0
  72. package/indexers/bundles/context-code-indexer/templates/cli-tool-maintenance-guide.md +81 -0
  73. package/indexers/bundles/context-code-indexer/templates/cli-tool-public-api-reference.md +81 -0
  74. package/indexers/bundles/context-code-indexer/templates/cli-tool-usage-guide.md +81 -0
  75. package/indexers/bundles/context-code-indexer/templates/component-library-maintenance-guide.md +81 -0
  76. package/indexers/bundles/context-code-indexer/templates/component-library-public-api-reference.md +81 -0
  77. package/indexers/bundles/context-code-indexer/templates/component-library-usage-guide.md +81 -0
  78. package/indexers/bundles/context-code-indexer/templates/component-library.md +40 -3
  79. package/indexers/bundles/context-code-indexer/templates/contract-source-public-api-reference.md +81 -0
  80. package/indexers/bundles/context-code-indexer/templates/contract-source-usage-guide.md +81 -0
  81. package/indexers/bundles/context-code-indexer/templates/contract-source.md +49 -0
  82. package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation-maintenance-guide.md +81 -0
  83. package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation-task-runtime-guide.md +81 -0
  84. package/indexers/bundles/context-code-indexer/templates/derived-generated-source-public-api-reference.md +81 -0
  85. package/indexers/bundles/context-code-indexer/templates/derived-generated-source-usage-guide.md +81 -0
  86. package/indexers/bundles/context-code-indexer/templates/derived-generated-source.md +15 -0
  87. package/indexers/bundles/context-code-indexer/templates/domain-service-maintenance-guide.md +81 -0
  88. package/indexers/bundles/context-code-indexer/templates/domain-service-public-api-reference.md +81 -0
  89. package/indexers/bundles/context-code-indexer/templates/event-consumer-maintenance-guide.md +81 -0
  90. package/indexers/bundles/context-code-indexer/templates/event-consumer-task-runtime-guide.md +81 -0
  91. package/indexers/bundles/context-code-indexer/templates/gateway-facade-maintenance-guide.md +81 -0
  92. package/indexers/bundles/context-code-indexer/templates/gateway-facade-public-api-reference.md +81 -0
  93. package/indexers/bundles/context-code-indexer/templates/gateway-facade-request-adaptation-guide.md +81 -0
  94. package/indexers/bundles/context-code-indexer/templates/monorepo-container-maintenance-guide.md +81 -0
  95. package/indexers/bundles/context-code-indexer/templates/monorepo-container-usage-guide.md +81 -0
  96. package/indexers/bundles/context-code-indexer/templates/monorepo-container.md +9 -0
  97. package/indexers/bundles/context-code-indexer/templates/plugin-extension-maintenance-guide.md +81 -0
  98. package/indexers/bundles/context-code-indexer/templates/plugin-extension-public-api-reference.md +81 -0
  99. package/indexers/bundles/context-code-indexer/templates/plugin-extension-usage-guide.md +81 -0
  100. package/indexers/bundles/context-code-indexer/templates/sdk-library-maintenance-guide.md +81 -0
  101. package/indexers/bundles/context-code-indexer/templates/sdk-library-public-api-reference.md +81 -0
  102. package/indexers/bundles/context-code-indexer/templates/sdk-library-usage-guide.md +81 -0
  103. package/indexers/bundles/context-code-indexer/templates/storage-repository-maintenance-guide.md +81 -0
  104. package/indexers/bundles/context-code-indexer/templates/storage-repository-public-api-reference.md +81 -0
  105. package/indexers/bundles/context-code-indexer/templates/web-application-federation-guide.md +81 -0
  106. package/indexers/bundles/context-code-indexer/templates/web-application-maintenance-guide.md +81 -0
  107. package/indexers/bundles/context-code-indexer/templates/web-application-page-task-guide.md +81 -0
  108. package/indexers/bundles/context-code-indexer/tests/fixtures/composers.json +1 -1
  109. package/indexers/bundles/context-code-indexer/tests/fixtures/scenarios.json +1 -1
  110. package/indexers/bundles/context-markdown-indexer/SKILL.md +7 -1
  111. package/indexers/bundles/context-markdown-indexer/context-indexer.yaml +856 -15
  112. package/indexers/bundles/context-markdown-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
  113. package/indexers/bundles/context-markdown-indexer/references/article-catalog/documentation-site-article-catalog.md +8 -0
  114. package/indexers/bundles/context-markdown-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
  115. package/indexers/bundles/context-markdown-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
  116. package/indexers/bundles/context-markdown-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
  117. package/indexers/bundles/context-markdown-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
  118. package/indexers/bundles/context-markdown-indexer/references/article-catalog/public-api-reference-article-catalog.md +10 -0
  119. package/indexers/bundles/context-markdown-indexer/references/article-catalog/release-migration-guide-article-catalog.md +11 -0
  120. package/indexers/bundles/context-markdown-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
  121. package/indexers/bundles/context-markdown-indexer/references/article-catalog/standard-policy-article-catalog.md +10 -0
  122. package/indexers/bundles/context-markdown-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
  123. package/indexers/bundles/context-markdown-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
  124. package/indexers/bundles/context-markdown-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
  125. package/indexers/bundles/context-markdown-indexer/references/diagrams.md +122 -0
  126. package/indexers/bundles/context-markdown-indexer/references/editorial-policy.md +19 -29
  127. package/indexers/bundles/context-markdown-indexer/references/indexer.md +63 -2
  128. package/indexers/bundles/context-markdown-indexer/references/semantic-planning.md +22 -8
  129. package/indexers/bundles/context-markdown-indexer/references/visual-source-processing.md +42 -0
  130. package/indexers/bundles/context-markdown-indexer/templates/articles/c01.md +37 -0
  131. package/indexers/bundles/context-markdown-indexer/templates/articles/c02.md +34 -0
  132. package/indexers/bundles/context-markdown-indexer/templates/articles/c03.md +26 -0
  133. package/indexers/bundles/context-markdown-indexer/templates/articles/c04.md +27 -0
  134. package/indexers/bundles/context-markdown-indexer/templates/articles/c05.md +28 -0
  135. package/indexers/bundles/context-markdown-indexer/templates/articles/c06.md +28 -0
  136. package/indexers/bundles/context-markdown-indexer/templates/articles/c07.md +27 -0
  137. package/indexers/bundles/context-markdown-indexer/templates/articles/d01.md +29 -0
  138. package/indexers/bundles/context-markdown-indexer/templates/articles/d02.md +30 -0
  139. package/indexers/bundles/context-markdown-indexer/templates/articles/d03.md +30 -0
  140. package/indexers/bundles/context-markdown-indexer/templates/articles/d04.md +44 -0
  141. package/indexers/bundles/context-markdown-indexer/templates/articles/f01.md +30 -0
  142. package/indexers/bundles/context-markdown-indexer/templates/articles/f05.md +30 -0
  143. package/indexers/bundles/context-markdown-indexer/templates/articles/f06.md +30 -0
  144. package/indexers/bundles/context-markdown-indexer/templates/articles/f08.md +34 -0
  145. package/indexers/bundles/context-markdown-indexer/templates/articles/f09.md +30 -0
  146. package/indexers/bundles/context-markdown-indexer/templates/articles/l01.md +35 -0
  147. package/indexers/bundles/context-markdown-indexer/templates/articles/l02.md +101 -0
  148. package/indexers/bundles/context-markdown-indexer/templates/articles/l03.md +90 -0
  149. package/indexers/bundles/context-markdown-indexer/templates/articles/l04.md +28 -0
  150. package/indexers/bundles/context-markdown-indexer/templates/articles/l05.md +48 -0
  151. package/indexers/bundles/context-markdown-indexer/templates/articles/q01.md +32 -0
  152. package/indexers/bundles/context-markdown-indexer/templates/articles/q02.md +33 -0
  153. package/indexers/bundles/context-markdown-indexer/templates/articles/q03.md +27 -0
  154. package/indexers/bundles/context-markdown-indexer/templates/articles/q04.md +32 -0
  155. package/indexers/bundles/context-markdown-indexer/templates/articles/q05.md +27 -0
  156. package/indexers/bundles/context-markdown-indexer/templates/articles/q06.md +27 -0
  157. package/indexers/bundles/context-markdown-indexer/templates/articles/q07.md +32 -0
  158. package/indexers/bundles/context-markdown-indexer/templates/articles/s01.md +29 -0
  159. package/indexers/bundles/context-markdown-indexer/templates/articles/s02.md +27 -0
  160. package/indexers/bundles/context-markdown-indexer/templates/articles/s03.md +31 -0
  161. package/indexers/bundles/context-markdown-indexer/templates/articles/s04.md +33 -0
  162. package/indexers/bundles/context-markdown-indexer/templates/articles/s05.md +28 -0
  163. package/indexers/bundles/context-markdown-indexer/templates/articles/s06.md +28 -0
  164. package/indexers/bundles/context-markdown-indexer/templates/articles/s07.md +31 -0
  165. package/indexers/bundles/context-note-indexer/SKILL.md +16 -0
  166. package/indexers/bundles/context-note-indexer/context-indexer.yaml +1459 -0
  167. package/indexers/bundles/context-note-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
  168. package/indexers/bundles/context-note-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
  169. package/indexers/bundles/context-note-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
  170. package/indexers/bundles/context-note-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
  171. package/indexers/bundles/context-note-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
  172. package/indexers/bundles/context-note-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
  173. package/indexers/bundles/context-note-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
  174. package/indexers/bundles/context-note-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
  175. package/indexers/bundles/context-note-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
  176. package/indexers/bundles/context-note-indexer/references/classification.md +55 -0
  177. package/indexers/bundles/context-note-indexer/references/customization.md +36 -0
  178. package/indexers/bundles/context-note-indexer/references/diagrams.md +122 -0
  179. package/indexers/bundles/context-note-indexer/references/extension-placement.md +57 -0
  180. package/indexers/bundles/context-note-indexer/references/indexer.md +43 -0
  181. package/indexers/bundles/context-note-indexer/references/updates-and-composition.md +37 -0
  182. package/indexers/bundles/context-note-indexer/references/visual-source-processing.md +42 -0
  183. package/indexers/bundles/context-note-indexer/references/writing.md +57 -0
  184. package/indexers/bundles/context-note-indexer/templates/articles/c01.md +37 -0
  185. package/indexers/bundles/context-note-indexer/templates/articles/c02.md +34 -0
  186. package/indexers/bundles/context-note-indexer/templates/articles/c03.md +26 -0
  187. package/indexers/bundles/context-note-indexer/templates/articles/c04.md +27 -0
  188. package/indexers/bundles/context-note-indexer/templates/articles/c05.md +28 -0
  189. package/indexers/bundles/context-note-indexer/templates/articles/c06.md +28 -0
  190. package/indexers/bundles/context-note-indexer/templates/articles/c07.md +27 -0
  191. package/indexers/bundles/context-note-indexer/templates/articles/d01.md +29 -0
  192. package/indexers/bundles/context-note-indexer/templates/articles/d02.md +30 -0
  193. package/indexers/bundles/context-note-indexer/templates/articles/d03.md +30 -0
  194. package/indexers/bundles/context-note-indexer/templates/articles/d04.md +36 -0
  195. package/indexers/bundles/context-note-indexer/templates/articles/f01.md +30 -0
  196. package/indexers/bundles/context-note-indexer/templates/articles/f06.md +30 -0
  197. package/indexers/bundles/context-note-indexer/templates/articles/f08.md +34 -0
  198. package/indexers/bundles/context-note-indexer/templates/articles/f09.md +30 -0
  199. package/indexers/bundles/context-note-indexer/templates/articles/l01.md +35 -0
  200. package/indexers/bundles/context-note-indexer/templates/articles/l02.md +101 -0
  201. package/indexers/bundles/context-note-indexer/templates/articles/l03.md +90 -0
  202. package/indexers/bundles/context-note-indexer/templates/articles/l04.md +28 -0
  203. package/indexers/bundles/context-note-indexer/templates/articles/l05.md +48 -0
  204. package/indexers/bundles/context-note-indexer/templates/articles/q01.md +32 -0
  205. package/indexers/bundles/context-note-indexer/templates/articles/q02.md +33 -0
  206. package/indexers/bundles/context-note-indexer/templates/articles/q03.md +27 -0
  207. package/indexers/bundles/context-note-indexer/templates/articles/q04.md +32 -0
  208. package/indexers/bundles/context-note-indexer/templates/articles/q05.md +27 -0
  209. package/indexers/bundles/context-note-indexer/templates/articles/q06.md +27 -0
  210. package/indexers/bundles/context-note-indexer/templates/articles/q07.md +32 -0
  211. package/indexers/bundles/context-note-indexer/templates/articles/s01.md +29 -0
  212. package/indexers/bundles/context-note-indexer/templates/articles/s04.md +33 -0
  213. package/indexers/bundles/context-note-indexer/templates/articles/s05.md +28 -0
  214. package/indexers/bundles/context-note-indexer/templates/articles/s06.md +28 -0
  215. package/indexers/bundles/context-note-indexer/templates/articles/s07.md +31 -0
  216. package/indexers/bundles/context-note-indexer/templates/decision-record.md +33 -0
  217. package/indexers/bundles/context-note-indexer/templates/domain-reference.md +31 -0
  218. package/indexers/bundles/context-note-indexer/templates/faq-support.md +30 -0
  219. package/indexers/bundles/context-note-indexer/templates/incident-review.md +28 -0
  220. package/indexers/bundles/context-note-indexer/templates/product-requirements.md +29 -0
  221. package/indexers/bundles/context-note-indexer/templates/runbook.md +30 -0
  222. package/indexers/bundles/context-note-indexer/templates/technical-guide.md +31 -0
  223. package/indexers/bundles/context-note-indexer/templates/test-validation.md +28 -0
  224. package/indexers/bundles/context-note-indexer/templates/user-and-developer-guide.md +28 -0
  225. package/indexers/bundles/context-note-indexer/tests/fixtures/profiles.json +281 -0
  226. package/indexers/bundles/context-sessions-indexer/SKILL.md +16 -0
  227. package/indexers/bundles/context-sessions-indexer/context-indexer.yaml +1459 -0
  228. package/indexers/bundles/context-sessions-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
  229. package/indexers/bundles/context-sessions-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
  230. package/indexers/bundles/context-sessions-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
  231. package/indexers/bundles/context-sessions-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
  232. package/indexers/bundles/context-sessions-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
  233. package/indexers/bundles/context-sessions-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
  234. package/indexers/bundles/context-sessions-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
  235. package/indexers/bundles/context-sessions-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
  236. package/indexers/bundles/context-sessions-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
  237. package/indexers/bundles/context-sessions-indexer/references/classification.md +56 -0
  238. package/indexers/bundles/context-sessions-indexer/references/customization.md +36 -0
  239. package/indexers/bundles/context-sessions-indexer/references/diagrams.md +122 -0
  240. package/indexers/bundles/context-sessions-indexer/references/extension-placement.md +63 -0
  241. package/indexers/bundles/context-sessions-indexer/references/indexer.md +48 -0
  242. package/indexers/bundles/context-sessions-indexer/references/updates-and-composition.md +37 -0
  243. package/indexers/bundles/context-sessions-indexer/references/visual-source-processing.md +42 -0
  244. package/indexers/bundles/context-sessions-indexer/references/writing.md +63 -0
  245. package/indexers/bundles/context-sessions-indexer/templates/articles/c01.md +37 -0
  246. package/indexers/bundles/context-sessions-indexer/templates/articles/c02.md +34 -0
  247. package/indexers/bundles/context-sessions-indexer/templates/articles/c03.md +26 -0
  248. package/indexers/bundles/context-sessions-indexer/templates/articles/c04.md +27 -0
  249. package/indexers/bundles/context-sessions-indexer/templates/articles/c05.md +28 -0
  250. package/indexers/bundles/context-sessions-indexer/templates/articles/c06.md +28 -0
  251. package/indexers/bundles/context-sessions-indexer/templates/articles/c07.md +27 -0
  252. package/indexers/bundles/context-sessions-indexer/templates/articles/d01.md +29 -0
  253. package/indexers/bundles/context-sessions-indexer/templates/articles/d02.md +30 -0
  254. package/indexers/bundles/context-sessions-indexer/templates/articles/d03.md +30 -0
  255. package/indexers/bundles/context-sessions-indexer/templates/articles/d04.md +36 -0
  256. package/indexers/bundles/context-sessions-indexer/templates/articles/f01.md +30 -0
  257. package/indexers/bundles/context-sessions-indexer/templates/articles/f06.md +30 -0
  258. package/indexers/bundles/context-sessions-indexer/templates/articles/f08.md +34 -0
  259. package/indexers/bundles/context-sessions-indexer/templates/articles/f09.md +30 -0
  260. package/indexers/bundles/context-sessions-indexer/templates/articles/l01.md +35 -0
  261. package/indexers/bundles/context-sessions-indexer/templates/articles/l02.md +101 -0
  262. package/indexers/bundles/context-sessions-indexer/templates/articles/l03.md +90 -0
  263. package/indexers/bundles/context-sessions-indexer/templates/articles/l04.md +28 -0
  264. package/indexers/bundles/context-sessions-indexer/templates/articles/l05.md +48 -0
  265. package/indexers/bundles/context-sessions-indexer/templates/articles/q01.md +32 -0
  266. package/indexers/bundles/context-sessions-indexer/templates/articles/q02.md +33 -0
  267. package/indexers/bundles/context-sessions-indexer/templates/articles/q03.md +27 -0
  268. package/indexers/bundles/context-sessions-indexer/templates/articles/q04.md +32 -0
  269. package/indexers/bundles/context-sessions-indexer/templates/articles/q05.md +27 -0
  270. package/indexers/bundles/context-sessions-indexer/templates/articles/q06.md +27 -0
  271. package/indexers/bundles/context-sessions-indexer/templates/articles/q07.md +32 -0
  272. package/indexers/bundles/context-sessions-indexer/templates/articles/s01.md +29 -0
  273. package/indexers/bundles/context-sessions-indexer/templates/articles/s04.md +33 -0
  274. package/indexers/bundles/context-sessions-indexer/templates/articles/s05.md +28 -0
  275. package/indexers/bundles/context-sessions-indexer/templates/articles/s06.md +28 -0
  276. package/indexers/bundles/context-sessions-indexer/templates/articles/s07.md +31 -0
  277. package/indexers/bundles/context-sessions-indexer/templates/decision-record.md +43 -0
  278. package/indexers/bundles/context-sessions-indexer/templates/domain-reference.md +31 -0
  279. package/indexers/bundles/context-sessions-indexer/templates/faq-support.md +33 -0
  280. package/indexers/bundles/context-sessions-indexer/templates/incident-review.md +37 -0
  281. package/indexers/bundles/context-sessions-indexer/templates/product-requirements.md +35 -0
  282. package/indexers/bundles/context-sessions-indexer/templates/runbook.md +32 -0
  283. package/indexers/bundles/context-sessions-indexer/templates/technical-guide.md +31 -0
  284. package/indexers/bundles/context-sessions-indexer/templates/test-validation.md +37 -0
  285. package/indexers/bundles/context-sessions-indexer/templates/user-and-developer-guide.md +31 -0
  286. package/indexers/bundles/context-sessions-indexer/tests/fixtures/profiles.json +281 -0
  287. package/indexers/contracts/profile-contract.json +657 -277
  288. package/indexers/release-manifest.json +1120 -32
  289. package/package.json +14 -12
  290. package/parserEntryWorker.js +34606 -0
  291. package/plugins/README.md +24 -6
  292. package/plugins/README_CN.md +21 -5
  293. package/plugins/VERSION +1 -1
  294. package/plugins/claude/.claude-plugin/plugin.json +14 -3
  295. package/plugins/claude/commands/context-inspect-search.md +159 -0
  296. package/plugins/claude/commands/context.md +375 -211
  297. package/plugins/claude/skills/context-indexer-create/SKILL.md +80 -0
  298. package/plugins/claude/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +180 -0
  299. package/plugins/claude/skills/context-indexer-create/references/guides/indexer-manifest-example.md +103 -0
  300. package/plugins/claude/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +471 -0
  301. package/plugins/claude/skills/context-indexer-create/references/guides/indexer-skill-creation.md +99 -0
  302. package/plugins/claude/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +136 -0
  303. package/plugins/claude/skills/context-indexer-create/references/guides/note.md +37 -0
  304. package/plugins/claude/skills/context-indexer-create/references/guides/sessions.md +50 -0
  305. package/plugins/claude/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +854 -0
  306. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  307. package/plugins/codex/skills/context/SKILL.md +372 -211
  308. package/plugins/codex/skills/context/agents/openai.yaml +2 -0
  309. package/plugins/codex/skills/context-indexer-create/SKILL.md +80 -0
  310. package/plugins/codex/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +180 -0
  311. package/plugins/codex/skills/context-indexer-create/references/guides/indexer-manifest-example.md +103 -0
  312. package/plugins/codex/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +471 -0
  313. package/plugins/codex/skills/context-indexer-create/references/guides/indexer-skill-creation.md +99 -0
  314. package/plugins/codex/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +136 -0
  315. package/plugins/codex/skills/context-indexer-create/references/guides/note.md +37 -0
  316. package/plugins/codex/skills/context-indexer-create/references/guides/sessions.md +50 -0
  317. package/plugins/codex/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +854 -0
  318. package/plugins/codex/skills/context-inspect-search/SKILL.md +159 -0
  319. package/plugins/codex/skills/context-inspect-search/agents/openai.yaml +2 -0
  320. package/plugins/cursor/.cursor-plugin/plugin.json +21 -5
  321. package/plugins/cursor/commands/c4a-context-inspect-search.md +157 -0
  322. package/plugins/cursor/commands/c4a-context.md +371 -214
  323. package/plugins/cursor/skills/context-indexer-create/SKILL.md +80 -0
  324. package/plugins/cursor/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +180 -0
  325. package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-manifest-example.md +103 -0
  326. package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +471 -0
  327. package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-skill-creation.md +99 -0
  328. package/plugins/cursor/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +136 -0
  329. package/plugins/cursor/skills/context-indexer-create/references/guides/note.md +37 -0
  330. package/plugins/cursor/skills/context-indexer-create/references/guides/sessions.md +50 -0
  331. package/plugins/cursor/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +854 -0
  332. package/plugins/skills/context/SKILL.md +372 -211
  333. package/plugins/skills/context/agents/openai.yaml +2 -0
  334. package/plugins/skills/context-code-indexer/SKILL.md +10 -1
  335. package/plugins/skills/context-code-indexer/context-indexer.yaml +3102 -64
  336. package/plugins/skills/context-code-indexer/references/article-catalog/adapter-integration-article-catalog.md +20 -0
  337. package/plugins/skills/context-code-indexer/references/article-catalog/api-service-article-catalog.md +20 -0
  338. package/plugins/skills/context-code-indexer/references/article-catalog/background-runtime-article-catalog.md +19 -0
  339. package/plugins/skills/context-code-indexer/references/article-catalog/cli-tool-article-catalog.md +17 -0
  340. package/plugins/skills/context-code-indexer/references/article-catalog/component-library-article-catalog.md +18 -0
  341. package/plugins/skills/context-code-indexer/references/article-catalog/contract-source-article-catalog.md +17 -0
  342. package/plugins/skills/context-code-indexer/references/article-catalog/data-sync-reconciliation-article-catalog.md +19 -0
  343. package/plugins/skills/context-code-indexer/references/article-catalog/derived-generated-source-article-catalog.md +17 -0
  344. package/plugins/skills/context-code-indexer/references/article-catalog/domain-service-article-catalog.md +23 -0
  345. package/plugins/skills/context-code-indexer/references/article-catalog/event-consumer-article-catalog.md +19 -0
  346. package/plugins/skills/context-code-indexer/references/article-catalog/gateway-facade-article-catalog.md +21 -0
  347. package/plugins/skills/context-code-indexer/references/article-catalog/monorepo-container-article-catalog.md +17 -0
  348. package/plugins/skills/context-code-indexer/references/article-catalog/plugin-extension-article-catalog.md +17 -0
  349. package/plugins/skills/context-code-indexer/references/article-catalog/sdk-library-article-catalog.md +18 -0
  350. package/plugins/skills/context-code-indexer/references/article-catalog/storage-repository-article-catalog.md +19 -0
  351. package/plugins/skills/context-code-indexer/references/article-catalog/web-application-article-catalog.md +30 -0
  352. package/plugins/skills/context-code-indexer/references/composers/public-contract.md +13 -1
  353. package/plugins/skills/context-code-indexer/references/diagrams.md +122 -0
  354. package/plugins/skills/context-code-indexer/references/indexer.md +184 -8
  355. package/plugins/skills/context-code-indexer/references/visual-source-processing.md +42 -0
  356. package/plugins/skills/context-code-indexer/templates/adapter-integration-maintenance-guide.md +81 -0
  357. package/plugins/skills/context-code-indexer/templates/adapter-integration-request-adaptation-guide.md +81 -0
  358. package/plugins/skills/context-code-indexer/templates/adapter-integration-usage-guide.md +81 -0
  359. package/plugins/skills/context-code-indexer/templates/api-service-maintenance-guide.md +81 -0
  360. package/plugins/skills/context-code-indexer/templates/api-service-public-api-reference.md +81 -0
  361. package/plugins/skills/context-code-indexer/templates/articles/c01.md +49 -0
  362. package/plugins/skills/context-code-indexer/templates/articles/c02.md +36 -0
  363. package/plugins/skills/context-code-indexer/templates/articles/c03.md +28 -0
  364. package/plugins/skills/context-code-indexer/templates/articles/c04.md +29 -0
  365. package/plugins/skills/context-code-indexer/templates/articles/c05.md +30 -0
  366. package/plugins/skills/context-code-indexer/templates/articles/c07.md +51 -0
  367. package/plugins/skills/context-code-indexer/templates/articles/d01.md +31 -0
  368. package/plugins/skills/context-code-indexer/templates/articles/d02.md +32 -0
  369. package/plugins/skills/context-code-indexer/templates/articles/d03.md +32 -0
  370. package/plugins/skills/context-code-indexer/templates/articles/d04.md +38 -0
  371. package/plugins/skills/context-code-indexer/templates/articles/f01.md +50 -0
  372. package/plugins/skills/context-code-indexer/templates/articles/f02.md +33 -0
  373. package/plugins/skills/context-code-indexer/templates/articles/f03.md +38 -0
  374. package/plugins/skills/context-code-indexer/templates/articles/f04.md +32 -0
  375. package/plugins/skills/context-code-indexer/templates/articles/f05.md +32 -0
  376. package/plugins/skills/context-code-indexer/templates/articles/f06.md +32 -0
  377. package/plugins/skills/context-code-indexer/templates/articles/f07.md +31 -0
  378. package/plugins/skills/context-code-indexer/templates/articles/f08.md +36 -0
  379. package/plugins/skills/context-code-indexer/templates/articles/f09.md +32 -0
  380. package/plugins/skills/context-code-indexer/templates/articles/f10.md +32 -0
  381. package/plugins/skills/context-code-indexer/templates/articles/f11.md +39 -0
  382. package/plugins/skills/context-code-indexer/templates/articles/f12.md +59 -0
  383. package/plugins/skills/context-code-indexer/templates/articles/l01.md +38 -0
  384. package/plugins/skills/context-code-indexer/templates/articles/l02.md +103 -0
  385. package/plugins/skills/context-code-indexer/templates/articles/l03.md +92 -0
  386. package/plugins/skills/context-code-indexer/templates/articles/l04.md +30 -0
  387. package/plugins/skills/context-code-indexer/templates/articles/l05.md +50 -0
  388. package/plugins/skills/context-code-indexer/templates/articles/q03.md +29 -0
  389. package/plugins/skills/context-code-indexer/templates/articles/q05.md +29 -0
  390. package/plugins/skills/context-code-indexer/templates/articles/q06.md +29 -0
  391. package/plugins/skills/context-code-indexer/templates/articles/s01.md +31 -0
  392. package/plugins/skills/context-code-indexer/templates/articles/s02.md +30 -0
  393. package/plugins/skills/context-code-indexer/templates/articles/s03.md +34 -0
  394. package/plugins/skills/context-code-indexer/templates/articles/s04.md +35 -0
  395. package/plugins/skills/context-code-indexer/templates/articles/s05.md +30 -0
  396. package/plugins/skills/context-code-indexer/templates/articles/s06.md +30 -0
  397. package/plugins/skills/context-code-indexer/templates/articles/s07.md +33 -0
  398. package/plugins/skills/context-code-indexer/templates/background-runtime-maintenance-guide.md +81 -0
  399. package/plugins/skills/context-code-indexer/templates/background-runtime-task-runtime-guide.md +81 -0
  400. package/plugins/skills/context-code-indexer/templates/cli-tool-maintenance-guide.md +81 -0
  401. package/plugins/skills/context-code-indexer/templates/cli-tool-public-api-reference.md +81 -0
  402. package/plugins/skills/context-code-indexer/templates/cli-tool-usage-guide.md +81 -0
  403. package/plugins/skills/context-code-indexer/templates/component-library-maintenance-guide.md +81 -0
  404. package/plugins/skills/context-code-indexer/templates/component-library-public-api-reference.md +81 -0
  405. package/plugins/skills/context-code-indexer/templates/component-library-usage-guide.md +81 -0
  406. package/plugins/skills/context-code-indexer/templates/component-library.md +40 -3
  407. package/plugins/skills/context-code-indexer/templates/contract-source-public-api-reference.md +81 -0
  408. package/plugins/skills/context-code-indexer/templates/contract-source-usage-guide.md +81 -0
  409. package/plugins/skills/context-code-indexer/templates/contract-source.md +49 -0
  410. package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation-maintenance-guide.md +81 -0
  411. package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation-task-runtime-guide.md +81 -0
  412. package/plugins/skills/context-code-indexer/templates/derived-generated-source-public-api-reference.md +81 -0
  413. package/plugins/skills/context-code-indexer/templates/derived-generated-source-usage-guide.md +81 -0
  414. package/plugins/skills/context-code-indexer/templates/derived-generated-source.md +15 -0
  415. package/plugins/skills/context-code-indexer/templates/domain-service-maintenance-guide.md +81 -0
  416. package/plugins/skills/context-code-indexer/templates/domain-service-public-api-reference.md +81 -0
  417. package/plugins/skills/context-code-indexer/templates/event-consumer-maintenance-guide.md +81 -0
  418. package/plugins/skills/context-code-indexer/templates/event-consumer-task-runtime-guide.md +81 -0
  419. package/plugins/skills/context-code-indexer/templates/gateway-facade-maintenance-guide.md +81 -0
  420. package/plugins/skills/context-code-indexer/templates/gateway-facade-public-api-reference.md +81 -0
  421. package/plugins/skills/context-code-indexer/templates/gateway-facade-request-adaptation-guide.md +81 -0
  422. package/plugins/skills/context-code-indexer/templates/monorepo-container-maintenance-guide.md +81 -0
  423. package/plugins/skills/context-code-indexer/templates/monorepo-container-usage-guide.md +81 -0
  424. package/plugins/skills/context-code-indexer/templates/monorepo-container.md +9 -0
  425. package/plugins/skills/context-code-indexer/templates/plugin-extension-maintenance-guide.md +81 -0
  426. package/plugins/skills/context-code-indexer/templates/plugin-extension-public-api-reference.md +81 -0
  427. package/plugins/skills/context-code-indexer/templates/plugin-extension-usage-guide.md +81 -0
  428. package/plugins/skills/context-code-indexer/templates/sdk-library-maintenance-guide.md +81 -0
  429. package/plugins/skills/context-code-indexer/templates/sdk-library-public-api-reference.md +81 -0
  430. package/plugins/skills/context-code-indexer/templates/sdk-library-usage-guide.md +81 -0
  431. package/plugins/skills/context-code-indexer/templates/storage-repository-maintenance-guide.md +81 -0
  432. package/plugins/skills/context-code-indexer/templates/storage-repository-public-api-reference.md +81 -0
  433. package/plugins/skills/context-code-indexer/templates/web-application-federation-guide.md +81 -0
  434. package/plugins/skills/context-code-indexer/templates/web-application-maintenance-guide.md +81 -0
  435. package/plugins/skills/context-code-indexer/templates/web-application-page-task-guide.md +81 -0
  436. package/plugins/skills/context-code-indexer/tests/fixtures/composers.json +1 -1
  437. package/plugins/skills/context-code-indexer/tests/fixtures/scenarios.json +1 -1
  438. package/plugins/skills/context-indexer-create/SKILL.md +80 -0
  439. package/plugins/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +180 -0
  440. package/plugins/skills/context-indexer-create/references/guides/indexer-manifest-example.md +103 -0
  441. package/plugins/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +471 -0
  442. package/plugins/skills/context-indexer-create/references/guides/indexer-skill-creation.md +99 -0
  443. package/plugins/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +136 -0
  444. package/plugins/skills/context-indexer-create/references/guides/note.md +37 -0
  445. package/plugins/skills/context-indexer-create/references/guides/sessions.md +50 -0
  446. package/plugins/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +854 -0
  447. package/plugins/skills/context-inspect-search/SKILL.md +159 -0
  448. package/plugins/skills/context-inspect-search/agents/openai.yaml +2 -0
  449. package/plugins/skills/context-markdown-indexer/SKILL.md +7 -1
  450. package/plugins/skills/context-markdown-indexer/context-indexer.yaml +856 -15
  451. package/plugins/skills/context-markdown-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
  452. package/plugins/skills/context-markdown-indexer/references/article-catalog/documentation-site-article-catalog.md +8 -0
  453. package/plugins/skills/context-markdown-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
  454. package/plugins/skills/context-markdown-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
  455. package/plugins/skills/context-markdown-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
  456. package/plugins/skills/context-markdown-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
  457. package/plugins/skills/context-markdown-indexer/references/article-catalog/public-api-reference-article-catalog.md +10 -0
  458. package/plugins/skills/context-markdown-indexer/references/article-catalog/release-migration-guide-article-catalog.md +11 -0
  459. package/plugins/skills/context-markdown-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
  460. package/plugins/skills/context-markdown-indexer/references/article-catalog/standard-policy-article-catalog.md +10 -0
  461. package/plugins/skills/context-markdown-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
  462. package/plugins/skills/context-markdown-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
  463. package/plugins/skills/context-markdown-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
  464. package/plugins/skills/context-markdown-indexer/references/diagrams.md +122 -0
  465. package/plugins/skills/context-markdown-indexer/references/editorial-policy.md +19 -29
  466. package/plugins/skills/context-markdown-indexer/references/indexer.md +63 -2
  467. package/plugins/skills/context-markdown-indexer/references/semantic-planning.md +22 -8
  468. package/plugins/skills/context-markdown-indexer/references/visual-source-processing.md +42 -0
  469. package/plugins/skills/context-markdown-indexer/templates/articles/c01.md +37 -0
  470. package/plugins/skills/context-markdown-indexer/templates/articles/c02.md +34 -0
  471. package/plugins/skills/context-markdown-indexer/templates/articles/c03.md +26 -0
  472. package/plugins/skills/context-markdown-indexer/templates/articles/c04.md +27 -0
  473. package/plugins/skills/context-markdown-indexer/templates/articles/c05.md +28 -0
  474. package/plugins/skills/context-markdown-indexer/templates/articles/c06.md +28 -0
  475. package/plugins/skills/context-markdown-indexer/templates/articles/c07.md +27 -0
  476. package/plugins/skills/context-markdown-indexer/templates/articles/d01.md +29 -0
  477. package/plugins/skills/context-markdown-indexer/templates/articles/d02.md +30 -0
  478. package/plugins/skills/context-markdown-indexer/templates/articles/d03.md +30 -0
  479. package/plugins/skills/context-markdown-indexer/templates/articles/d04.md +44 -0
  480. package/plugins/skills/context-markdown-indexer/templates/articles/f01.md +30 -0
  481. package/plugins/skills/context-markdown-indexer/templates/articles/f05.md +30 -0
  482. package/plugins/skills/context-markdown-indexer/templates/articles/f06.md +30 -0
  483. package/plugins/skills/context-markdown-indexer/templates/articles/f08.md +34 -0
  484. package/plugins/skills/context-markdown-indexer/templates/articles/f09.md +30 -0
  485. package/plugins/skills/context-markdown-indexer/templates/articles/l01.md +35 -0
  486. package/plugins/skills/context-markdown-indexer/templates/articles/l02.md +101 -0
  487. package/plugins/skills/context-markdown-indexer/templates/articles/l03.md +90 -0
  488. package/plugins/skills/context-markdown-indexer/templates/articles/l04.md +28 -0
  489. package/plugins/skills/context-markdown-indexer/templates/articles/l05.md +48 -0
  490. package/plugins/skills/context-markdown-indexer/templates/articles/q01.md +32 -0
  491. package/plugins/skills/context-markdown-indexer/templates/articles/q02.md +33 -0
  492. package/plugins/skills/context-markdown-indexer/templates/articles/q03.md +27 -0
  493. package/plugins/skills/context-markdown-indexer/templates/articles/q04.md +32 -0
  494. package/plugins/skills/context-markdown-indexer/templates/articles/q05.md +27 -0
  495. package/plugins/skills/context-markdown-indexer/templates/articles/q06.md +27 -0
  496. package/plugins/skills/context-markdown-indexer/templates/articles/q07.md +32 -0
  497. package/plugins/skills/context-markdown-indexer/templates/articles/s01.md +29 -0
  498. package/plugins/skills/context-markdown-indexer/templates/articles/s02.md +27 -0
  499. package/plugins/skills/context-markdown-indexer/templates/articles/s03.md +31 -0
  500. package/plugins/skills/context-markdown-indexer/templates/articles/s04.md +33 -0
  501. package/plugins/skills/context-markdown-indexer/templates/articles/s05.md +28 -0
  502. package/plugins/skills/context-markdown-indexer/templates/articles/s06.md +28 -0
  503. package/plugins/skills/context-markdown-indexer/templates/articles/s07.md +31 -0
  504. package/plugins/skills/context-note-indexer/SKILL.md +16 -0
  505. package/plugins/skills/context-note-indexer/context-indexer.yaml +1459 -0
  506. package/plugins/skills/context-note-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
  507. package/plugins/skills/context-note-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
  508. package/plugins/skills/context-note-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
  509. package/plugins/skills/context-note-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
  510. package/plugins/skills/context-note-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
  511. package/plugins/skills/context-note-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
  512. package/plugins/skills/context-note-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
  513. package/plugins/skills/context-note-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
  514. package/plugins/skills/context-note-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
  515. package/plugins/skills/context-note-indexer/references/classification.md +55 -0
  516. package/plugins/skills/context-note-indexer/references/customization.md +36 -0
  517. package/plugins/skills/context-note-indexer/references/diagrams.md +122 -0
  518. package/plugins/skills/context-note-indexer/references/extension-placement.md +57 -0
  519. package/plugins/skills/context-note-indexer/references/indexer.md +43 -0
  520. package/plugins/skills/context-note-indexer/references/updates-and-composition.md +37 -0
  521. package/plugins/skills/context-note-indexer/references/visual-source-processing.md +42 -0
  522. package/plugins/skills/context-note-indexer/references/writing.md +57 -0
  523. package/plugins/skills/context-note-indexer/templates/articles/c01.md +37 -0
  524. package/plugins/skills/context-note-indexer/templates/articles/c02.md +34 -0
  525. package/plugins/skills/context-note-indexer/templates/articles/c03.md +26 -0
  526. package/plugins/skills/context-note-indexer/templates/articles/c04.md +27 -0
  527. package/plugins/skills/context-note-indexer/templates/articles/c05.md +28 -0
  528. package/plugins/skills/context-note-indexer/templates/articles/c06.md +28 -0
  529. package/plugins/skills/context-note-indexer/templates/articles/c07.md +27 -0
  530. package/plugins/skills/context-note-indexer/templates/articles/d01.md +29 -0
  531. package/plugins/skills/context-note-indexer/templates/articles/d02.md +30 -0
  532. package/plugins/skills/context-note-indexer/templates/articles/d03.md +30 -0
  533. package/plugins/skills/context-note-indexer/templates/articles/d04.md +36 -0
  534. package/plugins/skills/context-note-indexer/templates/articles/f01.md +30 -0
  535. package/plugins/skills/context-note-indexer/templates/articles/f06.md +30 -0
  536. package/plugins/skills/context-note-indexer/templates/articles/f08.md +34 -0
  537. package/plugins/skills/context-note-indexer/templates/articles/f09.md +30 -0
  538. package/plugins/skills/context-note-indexer/templates/articles/l01.md +35 -0
  539. package/plugins/skills/context-note-indexer/templates/articles/l02.md +101 -0
  540. package/plugins/skills/context-note-indexer/templates/articles/l03.md +90 -0
  541. package/plugins/skills/context-note-indexer/templates/articles/l04.md +28 -0
  542. package/plugins/skills/context-note-indexer/templates/articles/l05.md +48 -0
  543. package/plugins/skills/context-note-indexer/templates/articles/q01.md +32 -0
  544. package/plugins/skills/context-note-indexer/templates/articles/q02.md +33 -0
  545. package/plugins/skills/context-note-indexer/templates/articles/q03.md +27 -0
  546. package/plugins/skills/context-note-indexer/templates/articles/q04.md +32 -0
  547. package/plugins/skills/context-note-indexer/templates/articles/q05.md +27 -0
  548. package/plugins/skills/context-note-indexer/templates/articles/q06.md +27 -0
  549. package/plugins/skills/context-note-indexer/templates/articles/q07.md +32 -0
  550. package/plugins/skills/context-note-indexer/templates/articles/s01.md +29 -0
  551. package/plugins/skills/context-note-indexer/templates/articles/s04.md +33 -0
  552. package/plugins/skills/context-note-indexer/templates/articles/s05.md +28 -0
  553. package/plugins/skills/context-note-indexer/templates/articles/s06.md +28 -0
  554. package/plugins/skills/context-note-indexer/templates/articles/s07.md +31 -0
  555. package/plugins/skills/context-note-indexer/templates/decision-record.md +33 -0
  556. package/plugins/skills/context-note-indexer/templates/domain-reference.md +31 -0
  557. package/plugins/skills/context-note-indexer/templates/faq-support.md +30 -0
  558. package/plugins/skills/context-note-indexer/templates/incident-review.md +28 -0
  559. package/plugins/skills/context-note-indexer/templates/product-requirements.md +29 -0
  560. package/plugins/skills/context-note-indexer/templates/runbook.md +30 -0
  561. package/plugins/skills/context-note-indexer/templates/technical-guide.md +31 -0
  562. package/plugins/skills/context-note-indexer/templates/test-validation.md +28 -0
  563. package/plugins/skills/context-note-indexer/templates/user-and-developer-guide.md +28 -0
  564. package/plugins/skills/context-note-indexer/tests/fixtures/profiles.json +281 -0
  565. package/plugins/skills/context-sessions-indexer/SKILL.md +16 -0
  566. package/plugins/skills/context-sessions-indexer/context-indexer.yaml +1459 -0
  567. package/plugins/skills/context-sessions-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
  568. package/plugins/skills/context-sessions-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
  569. package/plugins/skills/context-sessions-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
  570. package/plugins/skills/context-sessions-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
  571. package/plugins/skills/context-sessions-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
  572. package/plugins/skills/context-sessions-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
  573. package/plugins/skills/context-sessions-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
  574. package/plugins/skills/context-sessions-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
  575. package/plugins/skills/context-sessions-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
  576. package/plugins/skills/context-sessions-indexer/references/classification.md +56 -0
  577. package/plugins/skills/context-sessions-indexer/references/customization.md +36 -0
  578. package/plugins/skills/context-sessions-indexer/references/diagrams.md +122 -0
  579. package/plugins/skills/context-sessions-indexer/references/extension-placement.md +63 -0
  580. package/plugins/skills/context-sessions-indexer/references/indexer.md +48 -0
  581. package/plugins/skills/context-sessions-indexer/references/updates-and-composition.md +37 -0
  582. package/plugins/skills/context-sessions-indexer/references/visual-source-processing.md +42 -0
  583. package/plugins/skills/context-sessions-indexer/references/writing.md +63 -0
  584. package/plugins/skills/context-sessions-indexer/templates/articles/c01.md +37 -0
  585. package/plugins/skills/context-sessions-indexer/templates/articles/c02.md +34 -0
  586. package/plugins/skills/context-sessions-indexer/templates/articles/c03.md +26 -0
  587. package/plugins/skills/context-sessions-indexer/templates/articles/c04.md +27 -0
  588. package/plugins/skills/context-sessions-indexer/templates/articles/c05.md +28 -0
  589. package/plugins/skills/context-sessions-indexer/templates/articles/c06.md +28 -0
  590. package/plugins/skills/context-sessions-indexer/templates/articles/c07.md +27 -0
  591. package/plugins/skills/context-sessions-indexer/templates/articles/d01.md +29 -0
  592. package/plugins/skills/context-sessions-indexer/templates/articles/d02.md +30 -0
  593. package/plugins/skills/context-sessions-indexer/templates/articles/d03.md +30 -0
  594. package/plugins/skills/context-sessions-indexer/templates/articles/d04.md +36 -0
  595. package/plugins/skills/context-sessions-indexer/templates/articles/f01.md +30 -0
  596. package/plugins/skills/context-sessions-indexer/templates/articles/f06.md +30 -0
  597. package/plugins/skills/context-sessions-indexer/templates/articles/f08.md +34 -0
  598. package/plugins/skills/context-sessions-indexer/templates/articles/f09.md +30 -0
  599. package/plugins/skills/context-sessions-indexer/templates/articles/l01.md +35 -0
  600. package/plugins/skills/context-sessions-indexer/templates/articles/l02.md +101 -0
  601. package/plugins/skills/context-sessions-indexer/templates/articles/l03.md +90 -0
  602. package/plugins/skills/context-sessions-indexer/templates/articles/l04.md +28 -0
  603. package/plugins/skills/context-sessions-indexer/templates/articles/l05.md +48 -0
  604. package/plugins/skills/context-sessions-indexer/templates/articles/q01.md +32 -0
  605. package/plugins/skills/context-sessions-indexer/templates/articles/q02.md +33 -0
  606. package/plugins/skills/context-sessions-indexer/templates/articles/q03.md +27 -0
  607. package/plugins/skills/context-sessions-indexer/templates/articles/q04.md +32 -0
  608. package/plugins/skills/context-sessions-indexer/templates/articles/q05.md +27 -0
  609. package/plugins/skills/context-sessions-indexer/templates/articles/q06.md +27 -0
  610. package/plugins/skills/context-sessions-indexer/templates/articles/q07.md +32 -0
  611. package/plugins/skills/context-sessions-indexer/templates/articles/s01.md +29 -0
  612. package/plugins/skills/context-sessions-indexer/templates/articles/s04.md +33 -0
  613. package/plugins/skills/context-sessions-indexer/templates/articles/s05.md +28 -0
  614. package/plugins/skills/context-sessions-indexer/templates/articles/s06.md +28 -0
  615. package/plugins/skills/context-sessions-indexer/templates/articles/s07.md +31 -0
  616. package/plugins/skills/context-sessions-indexer/templates/decision-record.md +43 -0
  617. package/plugins/skills/context-sessions-indexer/templates/domain-reference.md +31 -0
  618. package/plugins/skills/context-sessions-indexer/templates/faq-support.md +33 -0
  619. package/plugins/skills/context-sessions-indexer/templates/incident-review.md +37 -0
  620. package/plugins/skills/context-sessions-indexer/templates/product-requirements.md +35 -0
  621. package/plugins/skills/context-sessions-indexer/templates/runbook.md +32 -0
  622. package/plugins/skills/context-sessions-indexer/templates/technical-guide.md +31 -0
  623. package/plugins/skills/context-sessions-indexer/templates/test-validation.md +37 -0
  624. package/plugins/skills/context-sessions-indexer/templates/user-and-developer-guide.md +31 -0
  625. package/plugins/skills/context-sessions-indexer/tests/fixtures/profiles.json +281 -0
  626. package/providers/context/actions/advance-knowledge-maintenance.yaml +5 -0
  627. package/providers/context/actions/author-approved-revision.yaml +6 -0
  628. package/providers/context/actions/finish-rollback.yaml +5 -0
  629. package/providers/context/actions/inspect-source-update.yaml +6 -0
  630. package/providers/context/actions/inspect-task-recovery.yaml +5 -0
  631. package/providers/context/actions/record-workspace-version.yaml +5 -0
  632. package/providers/context/actions/register-source-batch.yaml +1 -1
  633. package/providers/context/actions/repair-project-entry.yaml +9 -0
  634. package/providers/context/actions/resume-workspace-task.yaml +5 -0
  635. package/providers/context/codes.yaml +11 -0
  636. package/providers/context/graphs/indexer.yaml +93 -2
  637. package/providers/context/graphs/workspace.yaml +86 -6
  638. package/providers/context/manifest.json +371 -59
  639. package/providers/context/provider.yaml +1 -1
  640. package/providers/context/resources/contracts/indexer-provider-guide.yaml +6 -0
  641. package/providers/context/resources/contracts/indexer-registry-bootstrap.yaml +6 -0
  642. package/providers/context/resources/diagnostics/verification.md +6 -4
  643. package/providers/context/resources/dialogue/knowledge-review.md +16 -9
  644. package/providers/context/resources/dialogue/package-output.md +18 -5
  645. package/providers/context/resources/dialogue/source-boundary.md +12 -2
  646. package/providers/context/resources/dialogue/workflow-mode-after-creation.md +15 -17
  647. package/providers/context/resources/manuals/guides/knowledge-updates.md +428 -0
  648. package/providers/context/resources/manuals/guides/lark-resources.md +5 -1
  649. package/providers/context/resources/manuals/guides/note.md +43 -0
  650. package/providers/context/resources/manuals/guides/package-outputs.md +231 -60
  651. package/providers/context/resources/manuals/guides/sessions.md +56 -0
  652. package/providers/context/resources/manuals/guides/workspace-commit.md +51 -0
  653. package/providers/context/resources/manuals/guides/workspace-prepare.md +78 -0
  654. package/providers/context/resources/manuals/guides/workspace-restore.md +65 -0
  655. package/providers/context/resources/manuals/reference/code-extractors.md +57 -0
  656. package/providers/context/resources/manuals/reference/package-templates.md +10 -9
  657. package/providers/context/resources/manuals/reference/project-api.md +100 -13
  658. package/providers/context/resources/manuals/reference/template-variables.md +7 -7
  659. package/providers/context/resources/procedures/approved-revision.md +159 -0
  660. package/providers/context/resources/procedures/close-and-build.md +58 -1
  661. package/providers/context/resources/procedures/homogeneous-source-review.md +123 -0
  662. package/providers/context/resources/procedures/knowledge-maintenance.md +68 -0
  663. package/providers/context/resources/procedures/knowledge-review.md +69 -6
  664. package/providers/context/resources/procedures/knowledge-updates.md +428 -0
  665. package/providers/context/resources/procedures/note.md +43 -0
  666. package/providers/context/resources/procedures/package-output.md +20 -1
  667. package/providers/context/resources/procedures/parallel-agent-batch.md +140 -0
  668. package/providers/context/resources/procedures/project-configuration.md +6 -0
  669. package/providers/context/resources/procedures/sessions.md +56 -0
  670. package/providers/context/resources/procedures/source-boundary.md +24 -1
  671. package/providers/context/resources/procedures/source-capture-detailed.md +36 -2
  672. package/providers/context/resources/procedures/source-update.md +50 -0
  673. package/providers/context/resources/procedures/task-recovery.md +71 -0
  674. package/providers/context/resources/procedures/verify-and-repair.md +5 -0
  675. package/providers/context/resources/procedures/work-start-report.md +419 -0
  676. package/providers/context/resources/procedures/workspace-commit.md +51 -0
  677. package/providers/context/resources/procedures/workspace-prepare.md +78 -0
  678. package/providers/context/resources/procedures/workspace-restore.md +65 -0
  679. package/providers/context/resources/templates/indexer-agent-worker.md +67 -0
  680. package/providers/context/resources/templates/recovery-issue.md +54 -0
  681. package/providers/context/resources/templates/work-start-report.md +302 -0
  682. package/providers/context/schemas/approved-revision-result.schema.json +88 -0
  683. package/providers/context/schemas/indexer-agent-step-result.schema.json +2232 -318
  684. package/providers/context/schemas/indexer-main-lifecycle-output.schema.json +1 -2
  685. package/providers/context/schemas/indexer-registry-bootstrap.schema.json +227 -0
  686. package/providers/context/schemas/source-batch-input.schema.json +15 -8
  687. package/providers/context/schemas/source-update-result.schema.json +83 -0
  688. package/providers/context/skills/configure-indexer-providers/SKILL.md +70 -5
  689. package/providers/context/skills/configure-indexer-providers/references/guides/code-indexer-skill-authoring.md +180 -0
  690. package/providers/context/skills/configure-indexer-providers/references/guides/indexer-provider-and-customization.md +471 -0
  691. package/providers/context/skills/configure-indexer-providers/references/guides/markdown-indexer-skill-authoring.md +136 -0
  692. package/providers/context/skills/configure-indexer-providers/references/guides/note.md +37 -0
  693. package/providers/context/skills/configure-indexer-providers/references/guides/sessions.md +50 -0
  694. package/providers/context/skills/configure-indexer-providers/references/reference/indexer-provider-protocol.md +854 -0
  695. package/providers/context/skills/prepare-indexer-customization-project/SKILL.md +1 -1
  696. package/providers/context/skills/propose-indexer-customization/SKILL.md +1 -1
  697. package/providers/context/skills/record-workspace-version/SKILL.md +46 -0
  698. package/providers/context/skills/recover-workspace/SKILL.md +15 -0
  699. package/providers/context/skills/resolve-current-indexer-gate/SKILL.md +33 -1
  700. package/providers/context/skills/run-indexer-agent-step/SKILL.md +403 -26
  701. package/providers/context/skills/run-indexer-lifecycle/SKILL.md +188 -1
  702. package/providers/context/skills/run-indexer-post-author-composer/SKILL.md +60 -0
@@ -0,0 +1,57 @@
1
+ ---
2
+ id: context.sdk.code-extractors
3
+ kind: procedure
4
+ mediaType: text/markdown
5
+ ---
6
+
7
+ # Code Parser Selection
8
+
9
+ Code parsing is an Indexer Provider implementation detail. A knowledge
10
+ workspace selects the Provider and profile in `src/indexers.yaml`; it does not
11
+ declare a separate extraction phase in `src/index.ts`.
12
+
13
+ ## Selection order
14
+
15
+ 1. Identify the target boundary and the knowledge questions.
16
+ 2. Let the selected Provider inspect language, manifests, entries, routes, and
17
+ contracts.
18
+ 3. Use the smallest parser set that covers those questions.
19
+ 4. Keep deterministic parser output as Provider facts; let the Provider author
20
+ reader-oriented knowledge pages from those facts and readable sources.
21
+
22
+ ## Community parser packages
23
+
24
+ | Package | Useful structural facts |
25
+ |---|---|
26
+ | `@c4a/extract-ts` | TypeScript/JavaScript symbols, exports, imports, calls, and React Router routes |
27
+ | `@c4a/extract-go` | Go declarations, imports, calls, and common HTTP routes |
28
+ | `@c4a/extract-rush` | Rush projects, tags, entries, dependencies, and owner boundaries |
29
+ | `@c4a/extract-thrift` | Thrift services, methods and declared data types |
30
+ | `@c4a/extract-proto` | Protobuf messages, fields and service definitions |
31
+ | `@c4a/extract-mdx` | Markdown/MDX document structure and source spans |
32
+ | `@c4a/extract-contract` | Supported structured API contract declarations |
33
+ | `@c4a/extract-style` | Stylesheet declarations, selectors and related structure |
34
+ | `@c4a/extract-sql` | Supported SQL schema declarations |
35
+ | `@c4a/extract` | Shared extraction result and adapter contracts |
36
+
37
+ These packages do not create Candidate rows, write `knowledge/`, or control
38
+ Review. The CLI owns those lifecycle responsibilities; Providers interpret the
39
+ supplied facts and sources and return structured semantic results. Package
40
+ presence alone does not prove a parser is selected or supports every dialect.
41
+ Use the selected profile's actual capabilities and parser diagnostics.
42
+
43
+ ## Unsupported technologies
44
+
45
+ When a required boundary is unsupported, distinguish a parser limitation from
46
+ missing writing guidance. Config can select supported behavior; instructions or
47
+ templates cannot create missing structural facts. Follow the current Route's
48
+ capability-gap report and smallest supported customization step. A program
49
+ extension requires its existing execution authorization. Prefer a reusable
50
+ parser when the same technology is useful across projects; do not create a
51
+ parallel project-local knowledge pipeline.
52
+
53
+ Mechanical inventory closure requires an explicit disposition for each supplied
54
+ item. It does not prove that the pages answer the reader's questions. Review
55
+ checks usefulness and fidelity separately. Internal or out-of-scope items can
56
+ have justified exclusions without generating pages; symbol count is not a
57
+ knowledge-quality measure.
@@ -188,7 +188,7 @@ Built-in variables:
188
188
  | `{{displayName}}` | Display name. Defaults to a title-cased `packageName`; override with `template.vars.displayName`. |
189
189
  | `{{knowledgeCount}}` | Number of selected approved Markdown files. |
190
190
  | `{{knowledgeTimestamp}}` | Latest `timestamp` from selected approved Markdown, or `1970-01-01T00:00:00.000Z` when empty. |
191
- | `{{knowledge}}` | Concatenated selected approved Markdown bundle. |
191
+ | `{{knowledge}}` | Concatenated consumer projection of selected approved pages, with path headings and without lifecycle metadata. |
192
192
  | `{{approvedKnowledge}}` | Alias for `{{knowledge}}`. |
193
193
  | `{{knowledgeItems}}` | Array of selected approved knowledge page metadata for loops. |
194
194
  | `{{knowledgeGroups}}` | Selected approved knowledge pages grouped by OKF root and first directory segment; each item also exposes `internal_collection`. |
@@ -328,7 +328,7 @@ Approved Markdown under `knowledge/` and its deterministic
328
328
  revision, or build. Do not copy a compact page as a new page without using a
329
329
  Context authoring command;
330
330
  - do not nest Context production metadata under `context`; fields such as
331
- `context.sources` and `context.code_symbols` are not part of the 0.6 profile;
331
+ `context.sources` and `context.code_symbols` are not accepted production fields;
332
332
  - section provenance lives in `<!-- context:section ... source_ref="..." -->`
333
333
  comments. When a Section needs more than one citation, the CLI preserves the
334
334
  complete set in its adjacent `context:source_refs` block;
@@ -358,8 +358,9 @@ treat the complete `source_ref` as opaque. Production pages do not expose
358
358
  Candidate fingerprints, Indexer digests, or `code_origin`.
359
359
 
360
360
  `#span:` refs retain source snapshot line ranges for human review, diffing, and
361
- stable re-pinning. They resolve against committed file/lark document snapshots,
362
- not the code symbol index.
361
+ stable re-pinning. They resolve against the stored file/Lark snapshot or the saved
362
+ Note/Sessions Markdown, not the code symbol index. A session's optional commit/MR
363
+ association stays in its source file; knowledge does not duplicate those fields.
363
364
 
364
365
  The kb package root may contain agent files such as `AGENTS.md` and `skills/`.
365
366
  The OKF-compatible surface is the selected `wikis/`, `guides/`, `rules/`, and
@@ -379,11 +380,11 @@ The OKF-compatible surface is the selected `wikis/`, `guides/`, `rules/`, and
379
380
  6. Writes output under `dist/<package-name>/`.
380
381
 
381
382
  `context-build-inventory.json` records what was selected and why. Each selected
382
- file includes `selected_by` entries such as `{ "kind": "collection" }` and a
383
- `production_metadata` object for selected page-level production fields. Child
384
- and relationship records use the inventory's canonical structure projection,
385
- `{ "kind": "okf_root" }`, `{ "kind": "include" }`, or
386
- `{ "kind": "default" }`. The inventory also exposes package-visible typed
383
+ file includes `selected_by` entries such as `{ "kind": "collection" }`,
384
+ `{ "kind": "okf_root" }`, `{ "kind": "include" }`, or `{ "kind": "default" }`,
385
+ and a `production_metadata` object for selected page-level production fields.
386
+ Child and relationship records use the inventory's canonical structure
387
+ projection. The inventory exposes package-visible typed
387
388
  edges under `structure.edge_records`; these records are filtered to edges whose
388
389
  endpoints are present in the selected package. Use those edge records for
389
390
  relationship citations inside the package instead of assuming the workspace
@@ -32,14 +32,30 @@ state.
32
32
 
33
33
  ```ts
34
34
  const repo = source("20260901", "component-lib");
35
- const docs = source("product-docs", { type: "file" });
36
- const handbook = source("handbook", { type: "lark" });
37
- const everyRepo = allSources("repo");
35
+ const docs = source("20260901/product-docs", { type: "file" });
36
+ const handbook = source("20260901/handbook", { type: "lark" });
37
+ const note = source("20260908/decision-context.md", { type: "note" });
38
+ const session = source("20260908/design-discussion.md", { type: "sessions" });
39
+ const everyRepo = allSources("repo"); // array: use ...everyRepo inside sources
40
+ const everySession = allSources("sessions");
38
41
  ```
39
42
 
40
- References resolve against `sources/repo/index.yaml`,
41
- `sources/file/index.yaml`, and `sources/lark/index.yaml`. Register or refresh
42
- sources through `context source ...`; do not invent snapshot directories.
43
+ Repo, file and Lark references resolve against their respective
44
+ `sources/<type>/index.yaml`. Their names include the registration date and module.
45
+ Register or refresh them through `context source ...`.
46
+
47
+ Note and Sessions references resolve directly to saved Markdown under
48
+ `sources/note/YYYYMMDD/topic.md` and `sources/sessions/YYYYMMDD/topic.md`.
49
+ Use `context source import` to save them; they have no separate registry or
50
+ capture phase. Explicitly include the desired typed references in `sources`,
51
+ for example `sources: [note, session]`, or use `sources: [...everySession]`
52
+ when all saved sessions are intended. Merely saving a source does not select it.
53
+
54
+ A project's source list enables acquisition and initial selection; requirements
55
+ and the selected Indexer's target/read scopes determine what it owns and may read.
56
+ Supporting text does not require a separate page or primary Indexer. See
57
+ [note preparation](../guides/note.md), [sessions preparation](../guides/sessions.md)
58
+ and [knowledge updates](../guides/knowledge-updates.md).
43
59
 
44
60
  ## Capture phases
45
61
 
@@ -50,8 +66,55 @@ captureLark({ source: handbook });
50
66
  ```
51
67
 
52
68
  Capture only creates a deterministic readable snapshot. Classification,
53
- partitioning, authoring, Candidate creation, and Review belong to the selected
54
- Markdown Indexer.
69
+ partitioning and authoring use the selected Provider's guidance. The CLI owns
70
+ worksets, Candidate creation, Review application and delivery. Code, Markdown,
71
+ Note and Sessions Providers can use authorized supporting documents without
72
+ creating a second capture or knowledge pipeline.
73
+
74
+ ### Batch capture from the source registry
75
+
76
+ When all registered Lark documents are intended for this project and share capture
77
+ settings, read the registry once instead of copying its module names into
78
+ `src/index.ts`. For the standard `src/index.ts` entry:
79
+
80
+ ```ts
81
+ import { fileURLToPath } from "node:url";
82
+ import {
83
+ allSources, captureLark, defineProject, loadSourcesRegistry, source,
84
+ } from "@c4a/context";
85
+
86
+ const workspaceRoot = fileURLToPath(new URL("../", import.meta.url));
87
+ const registry = await loadSourcesRegistry({ rootDir: workspaceRoot });
88
+ const documents = registry.larks.map(entry =>
89
+ source(entry.name, { type: "lark" }),
90
+ );
91
+
92
+ export default defineProject({
93
+ sources: [...allSources("repo"), ...documents],
94
+ phases: documents.map(document => captureLark({ source: document })),
95
+ packages: [],
96
+ });
97
+ ```
98
+
99
+ Merge this pattern into existing declarations; preserve unrelated phases and
100
+ package outputs. Adjust the root calculation if the entry lives elsewhere.
101
+ Registry loading only reads local registrations; it does not fetch documents.
102
+
103
+ - `sources/lark/index.yaml` owns document identities, URLs and titles. The project
104
+ selects those identities and declares capture settings. This example includes
105
+ future registrations too; use it only when the entire registered set is intended.
106
+ - For a subset, filter registry entries by the intended namespace or names before
107
+ mapping. Apply exceptional resource settings within the same map instead of
108
+ declaring a second phase for the same document.
109
+ - File documents use `registry.files`, `source(entry.name, { type: "file" })`
110
+ and `captureFile`. Group by actual processor needs; do not apply `mdxJsonDocs()`
111
+ indiscriminately to all file sources.
112
+ - `allSources("lark")` selects a collection; its array contains a collection
113
+ reference, not individual documents. It neither expands capture phases nor
114
+ supports mapping its entries into `captureLark`.
115
+ - The map declares one phase per document. It does not fetch URLs, change capture
116
+ permissions, or request parallel execution. Run the declared phases through the
117
+ existing CLI flow so each document retains independent refresh and retry behavior.
55
118
 
56
119
  ## `customPhase`
57
120
 
@@ -71,6 +134,7 @@ kbPackage({
71
134
  name: "component-kb",
72
135
  template: "src/package-templates/kb",
73
136
  select: { collections: ["codeindex", "architecture"] },
137
+ site: { title: "Component knowledge", lang: "en-US", base: "/" },
74
138
  });
75
139
 
76
140
  llmsPackage({
@@ -83,10 +147,19 @@ llmsPackage({
83
147
  Package selection reads approved `knowledge/` only. `dist/` is generated and
84
148
  may be rebuilt; it is not an authoring source.
85
149
 
150
+ `kbPackage.site` optionally adds a VitePress website at `dist/<base>-site/` in
151
+ the same build, beside the KB directory. `<base>` removes one trailing `-kb`
152
+ from the package name, if present. Omit it for KB-only output. It accepts `title`, `description`,
153
+ `lang` and a deployment `base` path. Knowledge map is projected from
154
+ `src/knowledge-map.yaml` independently of KB directories; see
155
+ [Package Outputs](../guides/package-outputs.md#optional-static-documentation-website).
156
+
86
157
  ## Indexer registry
87
158
 
88
- The Agent and CLI maintain `src/indexers.yaml` through typed proposals and
89
- Review gates. Each selected Indexer binds requirements and scopes to one
159
+ When this file is absent, the configuration Route supplies the initial schema:
160
+ write confirmed `requirements` with `indexers: []`, then re-evaluate. The Provider
161
+ selection Action supplies its own completion schema; that payload is not the
162
+ configuration file. Subsequent changes use typed proposals and applicable gates. Each selected Indexer binds requirements and scopes to one
90
163
  primary Provider, with optional declared layers or composers. Provider code
91
164
  must return the current Indexer result protocol; it must not write Candidate,
92
165
  knowledge, or Review files directly.
@@ -96,6 +169,20 @@ current workflow Route when it is needed.
96
169
 
97
170
  ## Persistent versus runtime state
98
171
 
99
- Commit source registries, `src/index.ts`, `src/indexers.yaml`, package templates,
100
- and approved knowledge. Do not commit `.tmp/context-runtime/`; it contains
101
- recoverable execution state and is cleaned after a successful close.
172
+ Source registries and snapshots, saved notes/summaries, project declarations,
173
+ package templates and approved knowledge are durable inputs. Version them only
174
+ when Git operations are authorized. Keep `.tmp/context-runtime/` out of Git;
175
+ it contains unfinished execution state, not the sole source of recovery truth.
176
+
177
+ `knowledge/structure.yaml` keeps shared page/source metadata and compact
178
+ `processed_scopes` for completed requirement/source/module ranges. A partial
179
+ update or failed build does not advance the whole range's processed version.
180
+ Session commit/MR associations stay in the saved source frontmatter, not copied
181
+ into every knowledge page. Use the CLI to adjust or roll back current work;
182
+ do not edit these baselines or remove runtime files to simulate completion.
183
+
184
+ ## Source visual conversion preference
185
+
186
+ Workspace `package.json` accepts `context.convertVisuals` (boolean, default `true`). Initialization writes it explicitly; older workspaces without the field also default to enabled. This lets a capable Author Agent attempt faithful structural diagram/table conversion. Explicit session instructions override the saved preference. It does not disable native table capture or existing Mermaid when false.
187
+
188
+ Diagram style follows the workspace’s editable `AGENTS.md`; newly initialized workspaces default to minimal theme-aware diagrams without decorative colors. If the Agent cannot read the image or cannot preserve its meaning, it retains the original through the existing asset workflow. Source-based reuse avoids rereading unchanged visuals; file integrity and package hashes continue to reflect actual output changes.
@@ -25,7 +25,7 @@ Approved pages: {{knowledgeCount}}
25
25
  Values support dotted paths:
26
26
 
27
27
  ```md
28
- {{context.package}}
28
+ {{buildInventory.package.name}}
29
29
  ```
30
30
 
31
31
  ### Loop
@@ -108,7 +108,7 @@ Read node_modules/@c4a/context/docs/reference/template-variables.md.
108
108
  | `skillPath` | string | Final package-relative `SKILL.md` path for the Skill currently being rendered. Empty outside a Skill template. |
109
109
  | `knowledgeCount` | number | Selected approved Markdown file count. |
110
110
  | `knowledgeTimestamp` | string | Latest selected approved Markdown `timestamp`, or epoch when empty. |
111
- | `knowledge` | string | Concatenated selected approved Markdown bundle. Use carefully; it can be large. |
111
+ | `knowledge` | string | Concatenated consumer projection of selected approved pages, with path headings. It omits lifecycle metadata and can be large. |
112
112
  | `approvedKnowledge` | string | Alias for `knowledge`. |
113
113
  | `knowledgeItems` | array | One record per selected approved Markdown page. |
114
114
  | `knowledgeGroups` | array | Selected pages grouped by OKF root and the first directory segment under that root; each item also exposes `internal_collection`. |
@@ -137,7 +137,7 @@ Each item contains:
137
137
 
138
138
  | Field | Meaning |
139
139
  |---|---|
140
- | `path` | Package-relative OKF path, for example `wikis/component-lib/symbol/button.md`. |
140
+ | `path` | Package-relative OKF path, for example `guides/architecture/entity/button.md`. |
141
141
  | `sourcePath` | Approved knowledge path before OKF output mapping, for example `architecture/entity/button.md`. |
142
142
  | `approved_path` | Alias for `sourcePath`. |
143
143
  | `dist_path` | Alias for `path`. |
@@ -148,11 +148,11 @@ Each item contains:
148
148
  | `okf_root_path` | Final flat package-relative OKF root. |
149
149
  | `node_ref` | Stable NodeRef from approved frontmatter, for example `entity/button`. |
150
150
  | `view_ref` | Stable ViewRef from approved frontmatter, for example `architecture:entity/button`. |
151
- | `pathWithinCollection` | Path below the OKF root, for example `component-lib/symbol/button.md`. |
151
+ | `pathWithinCollection` | Path below the OKF root, for example `architecture/entity/button.md`. |
152
152
  | `href` | Link relative to the template file currently being rendered. Use this in custom templates. |
153
153
  | `hrefFromTemplate` | Alias for `href`. |
154
- | `hrefFromPackageRoot` | Link from a package-root file such as `AGENTS.md`, for example `./wikis/component-lib/symbol/button.md`. |
155
- | `hrefFromCollectionIndex` | Link from the current OKF root index, for example `./component-lib/symbol/button.md` for a `wikis` item. |
154
+ | `hrefFromPackageRoot` | Link from a package-root file such as `AGENTS.md`, for example `./guides/architecture/entity/button.md`. |
155
+ | `hrefFromCollectionIndex` | Link from the current OKF root index, for example `./architecture/entity/button.md` for a `guides` item. |
156
156
  | `title` | Page title from frontmatter, or a title derived from the file name. |
157
157
  | `type` | OKF `type` from frontmatter. |
158
158
  | `description` | OKF `description` from frontmatter, when present. |
@@ -188,7 +188,7 @@ Each group contains:
188
188
  | `count` | Number of selected pages in this group. |
189
189
  | `hasIndex` | Whether the active package navigation policy generates `indexPath`. |
190
190
  | `has_index` | Alias for `hasIndex`. |
191
- | `indexPath` | OKF-root-aware index path, for example `wikis/component-lib/index.md`, `guides/component-lib/index.md`, or `rules/index.md` for a root group. |
191
+ | `indexPath` | OKF-root-aware index path, for example `wikis/codeindex/index.md`, `guides/architecture/index.md`, or `rules/index.md` for a root group. |
192
192
  | `indexHrefFromTemplate` | Link from the template file currently being rendered to `indexPath`. Check `hasIndex` before rendering it. |
193
193
  | `indexHrefFromCollectionIndex` | Link from the OKF root index to `indexPath`. |
194
194
  | `items` | `knowledgeItems` in the group. |
@@ -0,0 +1,159 @@
1
+ ---
2
+ id: procedure.approved-revision
3
+ kind: procedure
4
+ mediaType: text/markdown
5
+ ---
6
+
7
+ # Revise an approved page
8
+
9
+ The current action contains the approved page and the user's instruction. Read
10
+ the entire page first. Revise only what the instruction and available sources
11
+ support; retain still-correct explanations and confirmed user contributions.
12
+
13
+ For an expression-only change, the approved text is enough. Do not capture,
14
+ parse, partition, or reconfigure its source. For changed facts, read the relevant
15
+ registered material with the available host tools. Missing evidence is a reason
16
+ to ask about the affected claim, not to reconstruct the whole knowledge base.
17
+ Record new factual contributions as managed sources before expanding source
18
+ ownership; an editing instruction alone is not a permanent factual source.
19
+
20
+ Return the full revised Markdown in the supplied output schema, preserving the
21
+ page's identity, source list, and source-bound section markup. Do not silently
22
+ turn paraphrased text into a verbatim quotation. Do not directly write knowledge
23
+ files. Context prepares a Candidate and routes it through the existing Review,
24
+ apply, close, and build steps. Managed mode delegates Review, not source truth.
25
+
26
+ If Context reports that the approved page changed, read that version and restart
27
+ the revision. Never overwrite a concurrent edit with the old page snapshot.
28
+
29
+ When `target.base_digest` is null, this is a new page in the confirmed update scope.
30
+ The supplied Markdown contains only its stable identity and initial metadata.
31
+ Read the specified source material and write the complete page with source-bound
32
+ sections, using the existing purpose and page forms. Do not treat the initial
33
+ heading as an already written page.
34
+
35
+ Use `target.source_refs` as the final page source list. It can include explicitly
36
+ selected supporting material absent from the old Markdown. Read that material
37
+ before using it, add only its relevant explanation, and cite it in the affected
38
+ sections. A session rationale is not proof of runtime behavior.
39
+
40
+ When `target.previous_path` is present, the user explicitly selected a page move.
41
+ Keep its stable Node/View identity. The supplied Markdown already rebases its
42
+ relative links for `target.path`; do not put them back at the old location.
43
+ Explain the move in the review summary. Approval moves the page and updates
44
+ incoming Markdown navigation together; do not create a second copy or manually
45
+ delete the old file. A changed destination or original page requires a fresh
46
+ revision, not an overwrite.
47
+
48
+ For selected `note` inputs, read [note guidance](note.md). For `sessions`,
49
+ read [sessions guidance](sessions.md). Read only the applicable source guide.
50
+
51
+
52
+ Read `writing_context` for the selected Provider, reader profile, current sections
53
+ and actual template resources. These apply to direct page corrections too.
54
+ Preserve the current page form; choose a different form only for an explicit
55
+ change of purpose. Do not replace API tables with generic explanatory prose.
56
+ The current sections are approved content, not freshly extracted API facts.
57
+ For source updates or an explicit regeneration request, `program_blocks` contains API tables computed from current
58
+ scoped Parser facts with the ordinary deterministic renderer. Select only the
59
+ relevant blocks and place their exact `token` inside the corresponding sourced
60
+ section. The CLI expands it at submission; do not retype its rows. Do not use an
61
+ unrelated declaration merely because it shares a module. If a needed block is
62
+ absent, report the missing material rather than present an old table as fresh.
63
+
64
+ Compare the relevant generated rows with the requested correction before
65
+ submitting. If the source is available but its type or expression cannot be
66
+ resolved, state that specific limit instead of requesting the same files again
67
+ or guessing a value. If a supplied block contradicts a confirmed fact, report the
68
+ field and source location; do not rewrite the token's table by hand. The final
69
+ Candidate still needs Review: a token or accepted submission does not establish
70
+ that the requested correction reached the page.
71
+
72
+ Context collects complete pages into a delivery batch. An Author completion can
73
+ therefore lead to another Author before Review. Follow that Route; do not close
74
+ or build after each page. Review, close and build operate on the assembled batch.
75
+ A new topic reaches this action only after its affected structure is approved.
76
+
77
+ After a Review rejection, the current Author action contains the rejected draft
78
+ and its original task. Apply the user's feedback, or ask what should change if
79
+ it is unclear; do not resubmit the same rejected proposal without addressing the
80
+ decision. Other approved pages remain approved. Revisiting an earlier batch page
81
+ also retains the interrupted Author in the same task queue, so follow the next
82
+ Route instead of restarting the update.
83
+
84
+ For note/sessions contributions, `writing_context.sources` supplies the exact
85
+ saved-source paths and optional known change associations. Read the relevant
86
+ summary before revising. A source change reference does not authorize an external
87
+ fetch or prove upstream adoption. Keep the existing knowledge header minimal;
88
+ page/section source relationships belong in structure.yaml.
89
+
90
+ When the Route selects merge recovery, approved content changed during revision.
91
+ Read its latest target and merge_context, retain the concurrent edits and any
92
+ still-applicable draft changes, and submit the merged Markdown with the returned
93
+ revision. Ask the user if the changes conflict in meaning; a deleted page is not
94
+ permission to recreate it. The CLI checks the new baseline again and sends the
95
+ result through ordinary Review. Unaffected batch pages and queued operations stay
96
+ in place. Do not retry an older revision or overwrite the approved file directly.
97
+
98
+ ## Local section edits and optional preview
99
+
100
+ For a small change, submit `sections` instead of `markdown`. Select exact IDs from
101
+ `writing_context.current_sections`; each edit contains `section_id` and `content`,
102
+ an ordered array of `{ "markdown": "replacement text" }` or
103
+ `{ "program": "exact token from program_blocks" }`. The CLI retains untouched
104
+ sections, page identity and the edited section's source references. Do not include
105
+ section wrappers in replacement text. Use full Markdown for new pages, changed
106
+ structure or pages without unambiguous section IDs. Both forms use the current
107
+ Action schema and the same source and baseline validation.
108
+
109
+ For example, after substituting IDs/tokens from this Route:
110
+
111
+ ```json
112
+ {"stage":"approved-revision","sections":[{"section_id":"usage","content":[{"markdown":"Revised explanation."},{"program":"<current program token>"}]}]}
113
+ ```
114
+
115
+ Use `--input <file>` on the Route command. If useful, append `--preview` to that
116
+ same command: it returns the assembled Markdown and prior text without accepting
117
+ or advancing the revision. Submit without `--preview` after checking it. Preview
118
+ is optional; it does not replace Review or authorize a stale revision.
119
+
120
+ ## Interpreting generated API output
121
+
122
+ Check fields, types, requiredness and supported defaults against the selected
123
+ source version. A table can completely express a simple declaration; omitting
124
+ that duplicate folded declaration is intentional. Complex relationships or
125
+ constraints not represented in rows remain in a named declaration. Program
126
+ `declaration_status`, when present, distinguishes `table-complete`,
127
+ `component-wrapper`, `retained` and `not-provided`; its `fact_ref` and `source_ref`
128
+ locate the input. Missing folds alone do not establish a parser failure.
129
+
130
+ If the user explicitly requires a different presentation, explain the difference
131
+ and resolve that choice before accepting it. Do not rerun unchanged Repair to
132
+ force a format the program deliberately omits. Check the actual resulting page;
133
+ accepted tasks or an empty Composer result alone do not demonstrate a correction.
134
+
135
+ ## Changed supporting articles
136
+
137
+ `knowledge_input` separates approved interpretation from source-bound facts.
138
+ Recheck the relevant interpretation when an upstream article changes; ordinary
139
+ revision refreshes its version only after Review. Waiting input does not make
140
+ old statements current, and a wording-only edit must retain the review warning.
141
+
142
+ For a split, merge or removed upstream, use the existing `context task adjust
143
+ --input - --format json` with `instruction` and `knowledge_dependencies`:
144
+
145
+ ```json
146
+ {"instruction":"Rebind the affected explanation to the approved replacement","knowledge_dependencies":{"dependencies":[{"artifact_ref":"<approved article identity>","section_refs":[],"required":true}]}}
147
+ ```
148
+
149
+ Select identities from the authorized approved article catalog; do not guess
150
+ paths or promote prose into parser facts. Read the new current Route's
151
+ `knowledge_input`, then repeat the adjustment with the same dependencies plus
152
+ `sections`: each item has the retained `section_key`, selected `fact_refs` and
153
+ `evidence_refs`. These are a full support replacement for those sections, not an
154
+ append. Use only the supplied replacement facts or still-valid direct facts.
155
+ An empty dependency list explicitly removes the old relationship; the remaining
156
+ explanation still needs valid direct evidence. Revise the text to match the
157
+ selection before submitting. The CLI checks identity, scope and version; the
158
+ Agent and Review judge the explanation. Pending upstream approval remains a
159
+ concrete task to finish or adjust, not a reason to clear the warning manually.
@@ -6,6 +6,22 @@ mediaType: text/markdown
6
6
 
7
7
  # Close and build
8
8
 
9
+ At completed-scope delivery, follow the version-recording Route. The coordinator
10
+ writes the semantic changelog from formal diffs and the conversation, including
11
+ the triggering source and an explicitly known user (Git name is the default).
12
+ Record after Close and package/template approval, before the final build, so the
13
+ selected outputs are built with the new version once. Build records hashes without
14
+ increasing versions. Never count temporary progress or a build retry as a change.
15
+
16
+ Before an authorized external publication, run `context version publish-check
17
+ --format json`. If `needs_version` is true, inspect with `context version inspect
18
+ --publish --format json`, record a patch changelog using a `dist` trigger, and
19
+ rebuild. Do not increment again if the workspace version already changed.
20
+ If `unchanged` is true, there is no new delivery. Only after a successful external
21
+ publication, use `context version published --hash <checked-hash> --receipt
22
+ <successful-publication-reference> --format json`. Failure does not advance that
23
+ baseline. These commands do not upload, publish or grant publishing authority.
24
+
9
25
  Close deterministically reconciles approved Markdown and current relationship
10
26
  inputs into `knowledge/structure.yaml`. It compacts repeated machine fields out
11
27
  of each Markdown page and validates the hydrated result. When an approved page
@@ -23,7 +39,12 @@ Build runs only after close and verification are current. It writes declared
23
39
  packages under `dist/` and records an inventory receipt with added, updated,
24
40
  removed, and index changes.
25
41
 
26
- Run only the current route command, then evaluate again. A successful build
42
+ Follow the returned continuation. Automatic execution runs mechanical close and
43
+ build steps and re-evaluates the Graph after each step. Recommended diagnostic
44
+ resources are optional; do not materialize or acknowledge them merely to run an
45
+ immediate repair command. While a command is running, wait for its result using
46
+ the existing process handle; inspect logs only to diagnose an actual failure or
47
+ suspected stall, not as a routine prerequisite for progress. A successful build
27
48
  means the currently declared scope is current; newly captured or newly declared
28
49
  targets can reopen earlier graph nodes.
29
50
 
@@ -34,3 +55,39 @@ review decision in this conversation, together with its reviewed scope. Omit
34
55
  the section when no report was user-reviewed. Do not reconstruct it by scanning
35
56
  `.tmp`, invent a shareable URL, or classify fully managed or force approval as
36
57
  user review.
58
+
59
+ Report every selected output separately: KB root, website `dist/<base>-site/`,
60
+ and LLMS file when selected. Distinguish generated, failed and not selected; do not
61
+ claim the whole delivery complete if a selected channel is missing. For a website,
62
+ include a local preview command (or a URL only after verifying the server), reading
63
+ navigation coverage, and the directory a separate hosting tool would deploy.
64
+ Preview example: `python3 -m http.server 8000 --bind 127.0.0.1 --directory dist/<base>-site/`.
65
+ Provide this command without starting a server unless the user requests a running
66
+ preview. Use the build receipt for output paths and validation results; extra
67
+ HTTP probes, ad hoc manifest queries and another verify are diagnostic tools,
68
+ not mandatory version-recording or successful-build steps. Follow the returned
69
+ Route directly instead of polling status after every successful action.
70
+ Explain that users may request website output later; it reuses existing approved
71
+ articles rather than requiring a new workspace or full source indexing.
72
+
73
+ ## Website deployment handoff after every successful build
74
+
75
+ After every successful website build, including intermediate delivery and an
76
+ unchanged output reused by build, tell the user the website can be deployed with
77
+ a deployment skill. Include the actual `dist/<base>-site/` directory and whether
78
+ it contains only the currently delivered scope. This notice does not wait for the
79
+ whole knowledge task to finish and does not block its next Route.
80
+
81
+ Reuse existing publishing configuration and the user's chosen target. Otherwise,
82
+ inspect the available deployment skills, recommend a compatible static-site skill,
83
+ or let the user specify one. Do not invent installed skills or a deployed URL.
84
+ If no compatible skill is available, report that and provide the site directory
85
+ for the user's deployment tool. Do not install a deployment dependency by default.
86
+
87
+ When publishing is already authorized for that target, follow the selected skill
88
+ with the built site directory; otherwise offer deployment and wait for the user's
89
+ publishing instruction. Preserve the configured base path; rebuild if the target
90
+ requires a different base. Pass only the website output, not sources, private
91
+ workspace state or the entire KB package. Report success only after checking the
92
+ hosting result and published URL. A failed deployment leaves the local build valid;
93
+ report the deployment failure and its next step separately.