@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,43 @@
1
+ ---
2
+ id: context.sdk.note
3
+ kind: procedure
4
+ mediaType: text/markdown
5
+ ---
6
+
7
+ # Prepare a note source
8
+
9
+ Read this before importing or correcting a note. The CLI saves supplied Markdown;
10
+ source preparation happens before knowledge production.
11
+
12
+ A note may contain supplied original text, selected verbatim excerpts, a summary,
13
+ or a useful combination. Do not require raw text plus a summary for every note.
14
+ If both exist, distinguish them with readable headings or prose. Preserve short
15
+ original text when useful; do not duplicate it just to fill a form. Label an
16
+ external or Agent summary as a summary, never an original transcript.
17
+
18
+ For long inputs, retain relevant excerpts or summarize within the agreed purpose.
19
+ Keep qualifications, exceptions, disagreement and unresolved questions that affect
20
+ the conclusion. State the available origin and selected scope, including material
21
+ omissions when consequential. Quote only actual verbatim input. Do not invent
22
+ links, speakers, dates or confirmation. A link does not mean its target was read;
23
+ ask about essential missing context rather than fetching everything for a label.
24
+
25
+ Save the body under sources/note/YYYYMMDD/topic.md with the existing import action.
26
+ No extra raw/summary fields, sidecar, duplicate file or mandatory section template
27
+ is needed. Saving alone does not start indexing. Independent reader topics can
28
+ use the selected Note Provider (default or business replacement); supporting
29
+ explanations use the current page's evidence/read scope, retaining its primary.
30
+ When specialized interpretation is needed, explicitly select a compatible
31
+ extension layer. Do not enable another skill merely because a note exists.
32
+
33
+ Knowledge integrates the useful information into explanations, rules or steps
34
+ for the reader. Do not copy the note wholesale or turn proposals into facts.
35
+ An exact short passage is appropriate when its wording matters. Cite the stored
36
+ material actually read, without claiming access to an unavailable original.
37
+
38
+ If the note misrepresents the supplied material, explicitly correct the source
39
+ with its current base_digest, following task adjust first for pinned inputs.
40
+ Do not overwrite original text merely to fit new prose. If the source is correct
41
+ but the knowledge is misleading, revise only that page through Author/Review.
42
+ A confirmed future decision may differ from current implementation; make the
43
+ boundary clear. Knowledge approval does not change or remove the note.
@@ -10,8 +10,10 @@ Package outputs are generated folders under `dist/`. They turn approved
10
10
  knowledge from `knowledge/` into a shape that another consumer can install,
11
11
  read, or import.
12
12
 
13
- Package output is a human decision gate. Do not add package declarations until
14
- the user chooses the intended consumer and output shape.
13
+ Package output is a semantic decision: establish the intended consumer and output
14
+ shape before declaring it. Reuse the user's existing choice. A current managed
15
+ Route may delegate this decision to the Agent; it does not require a repeated
16
+ permission question.
15
17
 
16
18
  Package build consumes approved and closed knowledge. If status reports that
17
19
  close is required, run deterministic close before build. Current close derives
@@ -19,11 +21,85 @@ close is required, run deterministic close before build. Current close derives
19
21
  final verify gate without rewriting approved Markdown. References, changelog,
20
22
  package index, and section fingerprint rebuilds are not current close output.
21
23
 
22
- ## Recommended First Output: Agent Knowledge-Base Package
24
+ ## Default New-Workspace Outputs: Knowledge Base + Website
23
25
 
24
- Choose an agent knowledge-base package first when the knowledge should help
25
- Coding Agents work with the project. After the user chooses this semantic
26
- output shape, implement it with `kbPackage()`.
26
+ Output channels support multiple selection. In a new workspace without explicit
27
+ preferences, the Agent proposes and configures KB + website as the default. Honor
28
+ user feedback, session authority and existing workspace declarations; LLMS is an
29
+ additional selectable channel. This is an Agent configuration default, not an SDK
30
+ change that silently enables websites for existing packages.
31
+
32
+ ### Static documentation website
33
+
34
+ To include the default browser-readable site, enable `site` on the same
35
+ package. The normal `context build` produces both the Agent KB and a standalone
36
+ `dist/<base>-site/` directory containing `index.html`, article HTML,
37
+ local search, scripts, styles and the selected bundled resources.
38
+
39
+ `<base>` is the package name with one trailing `-kb` removed, when present.
40
+ For example, `project-kb` produces `dist/project-kb/` and `dist/project-site/`;
41
+ `project` produces `dist/project/` and `dist/project-site/`. Output directories
42
+ must not collide with another package or website. `site.base` controls URL
43
+ prefixes only, not filesystem output paths.
44
+
45
+ ```ts
46
+ kbPackage({
47
+ name: "project-kb",
48
+ template: "src/package-templates/kb",
49
+ site: { title: "Project knowledge", lang: "en-US", base: "/" },
50
+ });
51
+ ```
52
+
53
+ `site` is opt-in; omission keeps the existing KB-only output. Optional fields
54
+ are `title` (defaults to the package name), `description`, `lang` (defaults to
55
+ `en-US`), and `base` (defaults to `/`; use `/docs/` when hosted under that path).
56
+ The website uses a full-width VitePress theme with system fonts, compact navigation,
57
+ a wide reading area and a smaller article outline. It starts in
58
+ light mode regardless of the operating system; an explicit reader choice is
59
+ remembered in browser storage. Search runs locally, without a search service.
60
+ Mermaid renders in the browser with a restrained theme; invalid diagrams retain
61
+ their source instead of blocking publication. Code samples and raw HTML are
62
+ displayed as content, not executed as Vue components or scripts.
63
+
64
+ The accepted `src/knowledge-map.yaml` controls sidebar organization. Entries
65
+ bind to `artifact_ref` and optionally `section_key`; the builder resolves these
66
+ against this package's selected approved articles. Navigation labels and parent
67
+ groups do not determine website paths. One article may have several navigation
68
+ placements while keeping one URL. Pending/excluded targets generate warnings
69
+ and no invented link. Every selected article with an artifact identity must have
70
+ a valid reading target before packaging, including packages without a website.
71
+ Missing bindings or invalid section references block the staged output and
72
+ return the missing article list plus a navigation-only task adjustment input.
73
+ Category nodes can remain empty while future articles are planned. The builder
74
+ does not infer business categories or alter article content.
75
+
76
+ Top navigation contains the first-level reading directories. Selecting
77
+ a section shows only its descendants in the left sidebar; opening an article
78
+ directly selects its section. Skills and their Markdown references remain
79
+ reachable as linked read-only pages, but have no automatically added navigation
80
+ section. A reader-facing usage guide can link them where appropriate.
81
+ Section landing pages have stable URLs separate from article URLs.
82
+
83
+ `dist/<base>-site/context-site-map.json` records each article's approved path, KB path and
84
+ site path, plus the projected menu and unresolved targets. URLs are derived from
85
+ article identity; legacy pages without `artifact_ref` use their approved path,
86
+ so moving those legacy files changes their URL. The shared knowledge map,
87
+ KB layout and production Markdown remain unchanged.
88
+
89
+ Article pages include a small source footer from recorded article source references and the source registry. Repository entries link to the recorded revision and module (or an explicitly referenced file); document entries link to their registered HTTP(S) URL. Unrecorded associations are not inferred from prose. Source-footer changes participate in the website build fingerprint without modifying knowledge Markdown.
90
+
91
+ The website reuses resource delivery already performed for the KB: bundled
92
+ resources are copied into the site's `resources/`; Git raw links remain remote,
93
+ and explicit resource omission remains omission. It does not copy source trees
94
+ or capture audits. Website generation completes in a sibling staging directory
95
+ before either output is published, so a failed website build preserves the
96
+ previous KB and website. The website is not included in the KB directory.
97
+ Disabling the option removes the old site on the next successful package build.
98
+
99
+ Preview through an HTTP static server. Deploy the **contents of `dist/<base>-site/`** using
100
+ the user's chosen static hosting tool; no hosting SDK, login, deployment or
101
+ platform-specific skill is part of Context's build. Keep hosting credentials
102
+ out of package templates and published content.
27
103
 
28
104
  Typical output:
29
105
 
@@ -74,26 +150,29 @@ Do not ask for another distribution namespace. Older workspaces may still
74
150
  contain `distribution.knowledgeNamespace`; Context accepts that legacy input
75
151
  without using it to shape the package.
76
152
 
77
- Skill names are separate. Ask whether the author wants a short optional Skill
78
- prefix, then maintain the complete final template directory name directly—for
153
+ Skill names are separate. If a short prefix is useful, maintain the complete
154
+ final template directory name directly—for
79
155
  example `skills/android-query/SKILL.md`. Package-root layout never renames a
80
156
  Skill.
81
157
 
82
158
  The default `knowledge-query` Skill is a complete generic query entry. It
83
159
  carries the structure-first query discipline: start from OKF directory indexes, use
84
160
  `context-build-inventory.json` edge records for package-visible relationships,
85
- inspect page `sources` / `context:section` source_ref metadata, cite
86
- page/section evidence, and report explicit gaps when the package does not cover
87
- a requested fact. It does not treat direct grep over bundled OKF root
161
+ read candidate pages, cite their visible headings and relevant passages, and
162
+ report gaps when the package does not cover a requested fact. Consumer pages
163
+ omit `sources` and `context:section` metadata. For exact upstream attribution,
164
+ a maintainer needs the original workspace page mapped by the inventory; a
165
+ package-only reader must not claim to have read that source. It does not treat direct grep over bundled OKF root
88
166
  directories as the primary discovery path. When indexes do not narrow the
89
167
  scope, or a candidate page is too large to read directly, its bundled
90
168
  `scripts/search.mjs` provides deterministic BM25 ranking over mechanically
91
169
  bounded Markdown chunks. Search results are leads; page bodies and typed edge
92
- records remain the evidence. Its final template-author section
93
- requires package authors to replace or edit the generic routing when the
94
- package needs project-specific terminology, entry points, known limits, or
95
- task workflows. Authors may explicitly accept the generic default when it is
96
- intentionally sufficient.
170
+ records establish what the package actually says. Package authors edit the source
171
+ template when project-specific terminology, entry points or task workflows are
172
+ needed. Authoring instructions should be template comments or separate guidance,
173
+ not a final section addressed to authors in the delivered query Skill. The
174
+ current template-review Route can accept an intentionally sufficient generic
175
+ default under its applicable authority.
97
176
 
98
177
  When approved pages reference materialized resources, Context keeps their
99
178
  production copies in content-addressed `knowledge/assets/` paths and bundles
@@ -168,7 +247,7 @@ It links directly to pages in small child directories and to a child
168
247
  The default threshold is 50 selected knowledge pages. Use Handlebars variables such as
169
248
  `knowledgeGroups`, `knowledgeItems`, and `knowledgeTree` when a project needs
170
249
  custom navigation. Before customizing it, read
171
- `node_modules/@c4a/context/docs/reference/template-variables.md`.
250
+ [Template Variables](../reference/template-variables.md).
172
251
 
173
252
  Newly initialized generic templates must be replaced, edited, or explicitly
174
253
  accepted before the first build. `context status` exposes that choice as a
@@ -206,7 +285,9 @@ Typical output:
206
285
 
207
286
  ```text
208
287
  dist/<package-name>/
209
- └── llms.txt
288
+ ├── llms.txt # knowledge-map index
289
+ ├── llms-full.txt # consolidated approved text
290
+ └── llms/pages/<identity>.txt # individual approved articles
210
291
  ```
211
292
 
212
293
  Choose this when the user wants:
@@ -227,49 +308,139 @@ knowledge/
227
308
  └── ...
228
309
  ```
229
310
 
230
- ## How To Ask The User
231
-
232
- When `workflow.current.reason_code` is `route.package.output-required`,
233
- explain the choices with the output tree. Do not ask the user to pick from
234
- unexplained labels.
235
- Use the host's native multi-choice tool when available. If unavailable, fall
236
- back to a short Markdown A/B/C question. The option labels should be:
237
- agent knowledge-base package, LLM text bundle, and skip package output for now.
238
-
239
- Recommended question shape:
311
+ ## Agent configuration and delivery recipe
312
+
313
+ Use this guide when the user asks to generate a documentation website, selects
314
+ outputs in the work-start report, or the current Route asks for package output.
315
+ Read the current Route and existing `src/index.ts` first. Reuse settled choices;
316
+ follow its configuration/read-acknowledgement contract rather than replaying a
317
+ previous revision. The Agent edits SDK configuration; the user need not write code.
318
+
319
+ 1. Record all selected channels together. For new workspaces with no explicit
320
+ preference, use KB + website. Preserve existing declarations and explicit
321
+ KB-only, LLMS-only or deferred-delivery choices.
322
+ 2. Configure the existing KB declaration below, substituting the actual name,
323
+ title and workspace language. Retain its sources, phases, selection and resource
324
+ policy. This is one KB package with an additional website channel, not two KBs.
325
+ 3. If LLMS is selected, add its declaration and import in the same edit. Ensure
326
+ both template directories exist and resolve generic-template review using the
327
+ current Route. Do not independently ask approval for each already selected channel.
328
+ 4. Refresh `context status --format json`. Follow the returned continuation for
329
+ knowledge-map adjustment, required review, close, verification and build.
330
+ Missing article bindings require explicit targets from current CLI diagnostics;
331
+ do not classify articles from `wikis/` or `codeindex/` directory names alone.
332
+ 5. Run `context build` when ready. Verify each selected output and report its
333
+ actual location; a failed selected website is not completed delivery.
334
+ 6. Preview the generated website directory through a local HTTP server. Verify HTTP succeeds
335
+ before giving its URL. Publishing requires the user's chosen hosting tool and
336
+ authorization; do not install a hosting SDK merely to build the website.
240
337
 
241
- ```text
242
- The reviewed knowledge is approved. The next decision is how to package it.
243
-
244
- Recommended: agent knowledge-base package
245
- dist/<name>-kb/
246
- ├── AGENTS.md
247
- ├── skills/knowledge-query/SKILL.md
248
- └── wikis/
249
- ├── index.md
250
- ├── <group-page>.md
251
- └── <large-group>/index.md
252
-
253
- This is best if agents should use the knowledge as a reusable knowledge base.
254
-
255
- Alternative: LLM text bundle
256
- dist/<name>-llms/
257
- └── llms.txt
258
-
259
- This is best if you need one text bundle for model/RAG import.
260
-
261
- We can also skip package output for now and keep only knowledge/.
262
-
263
- Which one should I declare first?
338
+ ```ts
339
+ import { defineProject, kbPackage, llmsPackage } from "@c4a/context";
340
+
341
+ // Edit only the packages field of the existing defineProject declaration.
342
+ // Keep the actual project's other declarations intact.
343
+ const packages = [
344
+ kbPackage({
345
+ name: "project-kb",
346
+ template: "src/package-templates/kb",
347
+ site: { title: "Project knowledge", lang: "en-US", base: "/" },
348
+ }),
349
+ // Include this entry only when LLMS text is selected.
350
+ llmsPackage({ name: "project-llms", template: "src/package-templates/llms" }),
351
+ ];
352
+ // Existing defineProject({ ...existing declarations, packages }).
264
353
  ```
265
354
 
266
- If the user chooses the Agent knowledge-base package, explain that its OKF
267
- roots are flat within `dist/<package-name>/`; do not ask for a second namespace.
268
- Ask whether its Skills need a short prefix. The author maintains final Skill
269
- names independently from package paths.
355
+ The configuration is a small source edit, not custom frontend implementation.
356
+ Website output reuses approved articles, knowledge map and packaged assets;
357
+ rendering/search generation adds build time and size, not another indexing pass.
358
+ Measure actual cost instead of quoting a universal estimate.
359
+
360
+ | User request | Agent action |
361
+ | --- | --- |
362
+ | KB + website | One `kbPackage` with `site` enabled |
363
+ | KB only / disable website | Omit `site` on that KB and rebuild; old site output is removed |
364
+ | Add website later | Add `site` to existing KB, repair missing reading bindings, rebuild |
365
+ | Website only for distribution | Explain the KB is still built; share only the sibling website directory |
366
+ | Also produce LLMS | Add `llmsPackage` alongside the KB in the same change |
367
+ | Keep current knowledge only | Postpone packaging; do not label it completed package delivery |
368
+
369
+ ```sh
370
+ python3 -m http.server 8000 --bind 127.0.0.1 --directory dist/project-site
371
+ ```
270
372
 
271
- Do not offer `both` as a shortcut. If the user wants multiple outputs, add one
272
- package first, verify the shape, then add another package after confirmation.
273
- The default adaptive index policy avoids one-page directory indexes. Configure
274
- `kbPackage().navigation` when a package needs a different inline-entry
275
- threshold or a fully expanded index at every directory.
373
+ The completion report lists KB root, website directory and LLMS file separately,
374
+ with generated/failed/not-selected status. Include website navigation coverage,
375
+ verified preview URL when running, and any remaining errors. The website contains
376
+ source cards and article update times; it does not imply an article history browser.
377
+
378
+ ## How To Present The Choice
379
+
380
+ Include a compact multi-select list in the work-start report, and reuse it later:
381
+
382
+ - [x] Agent knowledge-base package — default for a new workspace.
383
+ - [x] Documentation website — default with the KB, local preview or later hosting.
384
+ - [ ] LLMS text — optional model-context or RAG input.
385
+
386
+ Explicit choices override defaults. When current Route authority requires a user
387
+ decision, ask once for the combination rather than a sequence of mutually exclusive
388
+ questions. If the host tool supports only single selection, let the user state the
389
+ combination in text instead of presenting it as multi-select. There is no `both`
390
+ factory, separate website skill, or second permission per selected output.
391
+
392
+ ## Website deployment handoff after every successful build
393
+
394
+ After every successful website build, including intermediate delivery and an
395
+ unchanged output reused by build, tell the user the website can be deployed with
396
+ a deployment skill. Include the actual `dist/<base>-site/` directory and whether
397
+ it contains only the currently delivered scope. This notice does not wait for the
398
+ whole knowledge task to finish and does not block its next Route.
399
+
400
+ Reuse existing publishing configuration and the user's chosen target. Otherwise,
401
+ inspect the available deployment skills, recommend a compatible static-site skill,
402
+ or let the user specify one. Do not invent installed skills or a deployed URL.
403
+ If no compatible skill is available, report that and provide the site directory
404
+ for the user's deployment tool. Do not install a deployment dependency by default.
405
+
406
+ When publishing is already authorized for that target, follow the selected skill
407
+ with the built site directory; otherwise offer deployment and wait for the user's
408
+ publishing instruction. Preserve the configured base path; rebuild if the target
409
+ requires a different base. Pass only the website output, not sources, private
410
+ workspace state or the entire KB package. Report success only after checking the
411
+ hosting result and published URL. A failed deployment leaves the local build valid;
412
+ report the deployment failure and its next step separately.
413
+
414
+
415
+ ### Persistent knowledge map and report proposals
416
+
417
+ `src/knowledge-map.yaml` is the persistent knowledge map; retain it after delivery.
418
+ Its protocol is `context.knowledge-map/v1`; structure and adjustment inputs use
419
+ `knowledge_map`, and SDK functions use `KnowledgeMap` naming. It organizes website
420
+ navigation and LLMS without changing article identities or section bindings.
421
+
422
+ The work-start report explains the proposed directory and chapters, followed by
423
+ a text wireframe of the website. Material changes are communicated with the updated
424
+ report link and a short explanation. This does not build a temporary website or
425
+ create a persistent article-plan file. Website packaging uses the accepted knowledge map
426
+ and approved articles; the report is not a configuration input.
427
+
428
+ ### Website LLM Docs
429
+
430
+ Every website build also builds LLMS from the same selected approved articles and
431
+ knowledge map. The final top-navigation item is always **LLM Docs**, opening
432
+ `llms/index.html`. This page links to `llms.txt`, the structured index,
433
+ `llms-full.txt`, the complete approved text, and raw Markdown text articles under
434
+ `llms/pages/`. These files ship inside the sibling website directory and use the configured site base.
435
+ No separate LLMS package declaration or additional build command is required.
436
+ Website LLMS text files include a UTF-8 BOM so browsers can identify the encoding
437
+ when a static host omits the charset. Hosting should serve them as
438
+ `text/plain; charset=utf-8`. The HTML landing page shows one index/full-text
439
+ toolbar followed by the knowledge map; Changelog is available in the site navbar.
440
+
441
+ The index preserves knowledge-map grouping, order and repeated placements. The
442
+ full text includes each selected article only once, in first-placement order.
443
+ Only approved selected content is exported. A map or article change invalidates
444
+ both website and LLMS outputs; failure preserves the previous staged package.
445
+ Standalone `llmsPackage()` uses the same map organization and supplies the full
446
+ text and raw article files alongside its template-rendered `llms.txt` index.
@@ -0,0 +1,56 @@
1
+ ---
2
+ id: context.sdk.sessions
3
+ kind: procedure
4
+ mediaType: text/markdown
5
+ ---
6
+
7
+ # Prepare a conversation-summary source
8
+
9
+ Use sessions for a bounded summary formed from an authorized conversation:
10
+ requirements, design, troubleshooting, operational or general knowledge.
11
+ Code association is optional. An Agent or external supplier prepares the summary
12
+ before import. Do not scan host history, ingest the full transcript, invent a
13
+ conversation from a diff, or move an unrelated conversation into note merely
14
+ because it lacks a commit.
15
+
16
+ Keep the problem, confirmed decisions, useful reasons, constraints and open
17
+ questions. Remove repetitive turns, tool logs and abandoned attempts unless they
18
+ explain a current limit. Preserve whether each statement was proposed, agreed,
19
+ implemented or verified. If only a supplied summary is available, say so; do not
20
+ claim to have read the original. Do not make up speakers, dates or approval.
21
+ A session with no reusable information can remain outside the workspace.
22
+
23
+ Save through `context source import --input <file> --format json`, using
24
+ `type: sessions`, `name: YYYYMMDD/topic.md` and the prepared `markdown` string.
25
+ Choose the actual conversation date, or collection date if unknown, and retain
26
+ the same path for corrections. The summary needs no mandatory body headings.
27
+
28
+ Optional `changes` associates one or several code changes. Each row accepts
29
+ `commit` (full 40/64 hexadecimal Git SHA), `mr` (HTTP(S) MR/PR URL), and optional
30
+ `repository`. At least commit or mr is needed per row; omit the entire field
31
+ for unrelated sessions. Use actual known identifiers, never fabricated hashes.
32
+ A reference does not prove merge, deployment, tests or authorize fetching code.
33
+ The CLI stores this field in the source's YAML frontmatter, discovers it from
34
+ that same file, and does not introduce a sidecar or separate registry.
35
+
36
+ For example, an import may have `changes: [{mr: "https://git.example.org/team/project/merge_requests/42"}]`.
37
+ This is an illustrative URL, not a lookup target. The same payload without
38
+ changes imports an independent requirements discussion normally. Use the current
39
+ base_digest to change text or associations; explicit `changes: []` clears the
40
+ associations. Omission leaves the source's inline changes intact. When replacing
41
+ only the summary body, preserve existing associations unless explicitly removed.
42
+ Do not duplicate commit/MR fields into knowledge frontmatter.
43
+
44
+ Saving alone does not start indexing. Select a compatible Sessions Provider for
45
+ an independent reader topic, or keep an existing page's Code/Markdown primary
46
+ and include the summary in its authorized evidence/read scope. If specialized
47
+ interpretation is needed, explicitly select an extension from the Sessions or
48
+ business Provider. Knowledge turns useful conclusions into answers, explanations
49
+ and procedures, not a meeting recap. Existing structure.yaml source references
50
+ connect each relevant page/section to the saved summary and its optional changes.
51
+
52
+ Correct a faulty summary through source import with current base_digest and task
53
+ adjustment for pinned inputs. If the summary is accurate but the page is wrong,
54
+ revise the approved page. A new topic goes through structure review then normal
55
+ Author/Review. Neither knowledge approval nor source storage approves an upstream
56
+ change. A failed update retains source and approved knowledge for recovery.
@@ -0,0 +1,51 @@
1
+ ---
2
+ id: context.sdk.workspace-commit
3
+ kind: procedure
4
+ mediaType: text/markdown
5
+ ---
6
+
7
+ # Commit workspace results
8
+
9
+ Use Host Git tools, not an invented Context commit command. Commit only when
10
+ the user requests it; fully managed production does not itself authorize Git
11
+ commits or pushes. At the end of the entire requested production scope, after
12
+ close and all requested builds with no pending tasks, a single optional commit
13
+ suggestion is enough. Intermediate delivery is not that endpoint.
14
+
15
+ ## Select the files
16
+
17
+ Locate the Context workspace and its actual Git root. Inspect status, staged
18
+ changes, unstaged changes, untracked files and ignore rules. In an embedded
19
+ workspace the Git root may be a much larger source repository. Explicitly select
20
+ workspace files; never run blanket `git add -A` or commit the entire staged index.
21
+ Check source records for required recovery information; a commit does not bundle
22
+ ignored checkouts or runtime progress. Do not force-add ignored files or assume
23
+ `dist` belongs in Git. Generated files are included only if the project's rules
24
+ and selected scope require them.
25
+
26
+ If there is no Git repository, establish the intended repository location before
27
+ initializing one. If nothing changed, report that no commit is necessary. If the
28
+ user asks for an intermediate snapshot, explain which saved files it contains
29
+ and that it cannot resume ignored Author state from Git alone.
30
+
31
+ ## Commit the selected change
32
+
33
+ Summarize the actual change and choose a message consistent with repository rules.
34
+ Use precise paths and Git's scoped commit facilities or a carefully isolated
35
+ index. `git commit --only -- <paths>` can exclude unrelated staged files; new files
36
+ must first be known to the index. Inspect overlapping partially staged files
37
+ before selecting this approach: do not silently include changes the user did
38
+ not select. Preserve unrelated staged entries, including staged deletions.
39
+
40
+ Git identity, hooks, signing, conflicts and permissions are environmental
41
+ issues for the Agent to diagnose. Do not disable hooks or signing, rewrite global
42
+ Git configuration, stash other work or bypass ignore rules to force success.
43
+ Use an available authorized alternative or report the specific blocker.
44
+
45
+ ## Verify the result
46
+
47
+ Read the actual commit SHA and its changed files/diff; compare against the
48
+ selected scope. Verify unrelated worktree and index content remain unchanged.
49
+ If a hook changed the result, inspect and report it before claiming completion.
50
+ Report the SHA and a brief description. Do not push, publish or create a remote
51
+ repository without the corresponding explicit request.
@@ -0,0 +1,78 @@
1
+ ---
2
+ id: context.sdk.workspace-prepare
3
+ kind: procedure
4
+ mediaType: text/markdown
5
+ ---
6
+
7
+ # Prepare a workspace for the next task
8
+
9
+ Use only for an explicit workspace preparation request. The goal is usable
10
+ registered sources and no unfinished task, while retaining approved knowledge
11
+ and configuration. Lead with Host tools and actual observations; do not start
12
+ indexing merely because a status response offers production work.
13
+
14
+ ## Establish the scope
15
+
16
+ Use `context entry` to locate the workspace. Inspect current work, active
17
+ processes, Git changes and source registrations. Explain which unfinished
18
+ drafts and queued maintenance will be discarded. Reuse the user's explicit
19
+ authorization; ask only about an unresolved loss, version or access boundary.
20
+ Wait for an active writer to finish and obtain its receipt before changing state.
21
+ If status is broken, inspect its diagnostic and files with Host tools rather
22
+ than treating failure as proof that the workspace is empty.
23
+
24
+ ## End the old task
25
+
26
+ Run `context task prepare --format json`. It previews the exact Context-owned
27
+ task files, including production, Review and maintenance state. It preserves
28
+ approved pages, source records and snapshots, project configuration, repository
29
+ checkouts, other `.tmp` files and existing outputs. It does not claim the output
30
+ or sources are current.
31
+
32
+ Once discarding the shown scope is authorized, execute the returned apply
33
+ command with its plan digest. If the preview changes, inspect the new differences.
34
+ On interruption, rerun the preview and use its resume command; never clear a
35
+ transaction journal or repeat old Author submissions. Other incomplete writes
36
+ must be recovered before cleanup. The completion clears task state only; check
37
+ sources next. Do not manually delete the runtime directory to emulate this action.
38
+
39
+ Other caches are optional cleanup, not a requirement to empty `.tmp`. Inspect
40
+ their ownership and recoverability before deleting them with Host tools. Keep
41
+ reports, unique material, unknown files and modified checkouts unless their
42
+ specific loss is authorized. Do not delete locks, transaction records or active
43
+ tool directories. Empty task directories can remain.
44
+
45
+ ## Restore usable sources
46
+
47
+ For repositories, run `context source recovery-plan --format json` and read
48
+ the installed repository recovery procedure and schema supplied by entry's
49
+ workflow bundle: `repository-source-recovery.md` beside this guide and
50
+ `../../schemas/repository-source-recovery.schema.json`. Reuse a matching local
51
+ checkout or, when authorized, clone into a bounded location using
52
+ `context source restore --input <workspace-input-file> --format json`.
53
+ Group modules sharing a remote and fixed commit; do not clone per module.
54
+ Check registered commit and module paths. Never reset a supplied dirty checkout.
55
+ Authentication or checkout problems can be diagnosed with Host Git tools;
56
+ refresh the recovery plan after fixing them. Do not substitute a newer commit.
57
+
58
+ For Lark, inspect the stored body and required attachments against the source
59
+ records. Use the Host's document tools and the [existing capture guide](knowledge-updates.md)
60
+ to repair missing material, retaining the registered identity. A current remote
61
+ response is not proof of an older snapshot: if it differs, explain that source
62
+ updating is needed and resolve that choice before claiming recovery. If an old
63
+ snapshot is unavailable, report the exact limitation. Do not automatically
64
+ follow every document link or reread already complete materials.
65
+
66
+ For note, sessions and local files, preserve formal source content and verify
67
+ that declared paths can be read. Do not reconstruct lost original sources from
68
+ generated knowledge or scan arbitrary local directories.
69
+
70
+ ## Finish
71
+
72
+ Verify that no task files remain in the preparation preview, no writer remains,
73
+ the required configuration can load, and selected sources resolve to their
74
+ registered versions and paths. CLI inspection or direct Host checks are both
75
+ valid; a failed check is not ready. Report outstanding blockers and their next
76
+ action. Stop when ready for the next user request, without running Author or
77
+ recapturing everything. Historical restoration may additionally require a
78
+ close/build; see [restore a version](workspace-restore.md).
@@ -0,0 +1,65 @@
1
+ ---
2
+ id: context.sdk.workspace-restore
3
+ kind: procedure
4
+ mediaType: text/markdown
5
+ ---
6
+
7
+ # Restore a historical workspace version
8
+
9
+ Use the Agent's Git and environment tools. This restores selected workspace
10
+ files and usable sources; it does not reset the entire repository, rewind source
11
+ repositories, or restore ignored runtime progress.
12
+
13
+ ## Resolve the target
14
+
15
+ Locate the workspace and Git root, then inspect history for that workspace path.
16
+ With no explicit target, select the most recent commit saving its state to undo
17
+ uncommitted results. “Previous version” instead selects the preceding relevant
18
+ saved state, not mechanically `HEAD~1` of a large repository. Validate an explicit
19
+ SHA. For dates, use the user's timezone and actual meaning (for example, as of
20
+ end of that day), inspect candidate history and resolve ambiguity with the user.
21
+ Git history can be nonlinear; do not choose an unrelated branch by timestamp.
22
+ The final target is a concrete SHA and path scope, never a date string alone.
23
+
24
+ Compare target files with current tracked, untracked and staged files. Include
25
+ current additions absent at the target in the proposed removal scope. Keep
26
+ unrelated files, existing staged work and ignored source checkouts. Account for
27
+ workspace moves or renames instead of treating a missing old path as an empty
28
+ version. Reuse explicit authorization; ask when the target or loss is unresolved.
29
+
30
+ ## Restore files and environment
31
+
32
+ Wait for active Context writers and obtain their result. Use the task-state
33
+ preview/apply from [workspace preparation](workspace-prepare.md) to abandon the
34
+ authorized old work before restoring files; it also clears pending maintenance.
35
+ Do not use an old Route after restoration.
36
+
37
+ Use Git to restore only the agreed paths from the selected SHA. A scoped
38
+ `git restore --source=<sha> --worktree -- <paths>` preserves branch history;
39
+ decide separately how authorized overlapping staged changes should be handled.
40
+ Use explicit deletion for agreed additions absent at the target. Never use a
41
+ whole-repository `reset --hard` or `clean -fdx` as a workspace shortcut.
42
+
43
+ Use the restored source records with the preparation guide to restore pinned
44
+ repository versions, module paths, document snapshots and attachments. New remote
45
+ content cannot stand in for lost old snapshots. Do not reclone usable sources.
46
+ On interruption, inspect the actual file diff and remaining source gaps and
47
+ continue those operations; do not assume the previous Git command completed or
48
+ replay old task submissions.
49
+
50
+ Old build output does not describe the restored version. If output is requested,
51
+ follow the current close/build or approved-output rebuild capability from the
52
+ [knowledge update guide](knowledge-updates.md); do not start full indexing merely
53
+ because the restored source configuration is available. Until rebuilt, state
54
+ that existing output is stale. If the historical schema is incompatible, diagnose
55
+ the available migration or tool-version choice, report necessary adaptations,
56
+ and do not pretend incompatible content is current or silently rewrite all pages.
57
+
58
+ ## Verify and stop
59
+
60
+ Compare the selected files with the target commit, identify any agreed adaptations,
61
+ verify unrelated changes/index entries survived, and check source readiness and
62
+ absence of old task state. When building was requested, check the new output as
63
+ well. If only some sources could be restored, report partial completion with the
64
+ specific missing access or version. No automatic commit, branch rewrite or push;
65
+ the user may separately [commit the restored results](workspace-commit.md).