@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
package/plugins/README.md CHANGED
@@ -1,21 +1,39 @@
1
1
  # Context Agent Integration
2
2
 
3
+ > This directory is generated; do not edit it directly. Paths below are relative to the source repository root. Edit `plugins/context/README.md` for this documentation.
4
+
3
5
  [简体中文](./README_CN.md)
4
6
 
5
- This directory is the only human-maintained source for the Context Agent
6
- integration. It contains the single Context entry Skill, the Code and Markdown
7
+ `plugins/context/` is the only human-maintained source for the Context Agent
8
+ integration in this repository. It contains the Context production and explicit-only context-inspect-search Skills, the Code, Markdown, Note and Sessions
7
9
  Indexer Provider Skills, host manifest templates, and shared assets.
8
10
 
9
11
  Run `bun run --filter @c4a/context-cli build:plugin` to regenerate the npm
10
- projection and the committed `repo-install/` tree. Do not edit generated files
11
- under `repo-install/` or `packages/context-cli/dist/plugins/`.
12
+ projection and the committed `plugins/context/repo-install/` tree. Do not edit generated files
13
+ under `plugins/context/repo-install/` or `packages/context-cli/dist/plugins/`.
12
14
 
13
- `repo-install/{claude,codex,cursor}/` contains host-specific plugin roots with
14
- only the public Context entry; `repo-install/skills/` is the portable Skill
15
+ `plugins/context/repo-install/{claude,codex,cursor}/` contains host-specific plugin roots with
16
+ the two public entries; `plugins/context/repo-install/skills/` is the portable Skill
15
17
  projection. In the same install, `context plugin install` projects Providers
16
18
  to the Codex/Cursor shared `~/.agents/skills` directory and Claude's
17
19
  `~/.claude/skills`, so Provider names do not inherit a plugin namespace.
18
20
 
21
+ Invoke Context explicitly, or continue an already active Context conversation.
22
+ Ordinary coding and design discussions do not automatically start this workflow.
23
+ Installing a Provider makes it discoverable; it does not enable it for every
24
+ workspace. The Agent selects Providers for the current sources and requirements.
25
+
19
26
  The conversational entry delegates workspace state and lifecycle authority to
20
27
  the local `context` CLI. Indexer Skills are activated only through the verified
21
28
  Context workflow and Indexer Provider lifecycle.
29
+
30
+
31
+ ## Query and attribute workspace knowledge
32
+
33
+ Explicitly invoke `/c4a:context-inspect-search` (Cursor: `/c4a-context-inspect-search`)
34
+ or the `context-inspect-search` Skill. It first uses a usable dist package and its query Skill. Without output, it
35
+ tries one build only when the current workflow safely permits it; otherwise it
36
+ queries approved `knowledge`. It traces package pages through the build inventory
37
+ to approved originals and registered sources, without resetting production. Accepted suggestions hand off to `context`.
38
+ Codex disables implicit invocation through Skill policy; Claude commands disable
39
+ model invocation. Other hosts must honor the explicit-only instructions.
@@ -1,18 +1,34 @@
1
1
  # Context Agent 接入
2
2
 
3
+ > 本目录由构建生成,请勿直接编辑。以下说明中的路径以源码仓库根目录为准;文档真源位于 `plugins/context/README_CN.md`。
4
+
3
5
  [English](./README.md)
4
6
 
5
- 本目录是 Context Agent 接入唯一的人工维护真源,包含单一 Context 入口 Skill、
6
- Code/Markdown Indexer Provider Skills、各宿主 manifest 模板和共享资产。
7
+ 仓库中的 `plugins/context/` 是 Context Agent 接入唯一的人工维护真源,包含 Context 生产入口和显式触发的 context-inspect-search 技能、
8
+ Code/Markdown/Note/Sessions Indexer Provider Skills、各宿主 manifest 模板和共享资产。
7
9
 
8
10
  运行 `bun run --filter @c4a/context-cli build:plugin` 可重新生成 npm 投影及提交到
9
- 仓库的 `repo-install/`。不要直接编辑 `repo-install/` 或
11
+ 仓库的 `plugins/context/repo-install/`。不要直接编辑 `plugins/context/repo-install/` 或
10
12
  `packages/context-cli/dist/plugins/` 下的生成文件。
11
13
 
12
- `repo-install/{claude,codex,cursor}/` 分别是只包含 Context 主入口的宿主插件根;
13
- `repo-install/skills/` 是可移植 Skill 投影。`context plugin install` 在同一次安装中
14
+ `plugins/context/repo-install/{claude,codex,cursor}/` 分别是只包含 Context 主入口的宿主插件根;
15
+ `plugins/context/repo-install/skills/` 是可移植 Skill 投影。`context plugin install` 在同一次安装中
14
16
  把 Provider 投影到 Codex/Cursor 共用的 `~/.agents/skills` 与 Claude 的
15
17
  `~/.claude/skills`,因此 Provider 不获得插件命名空间。
16
18
 
19
+ 显式调用 Context,或在已经启动的 Context 会话中继续工作,才进入此流程;普通编码和
20
+ 方案讨论不会自动启动它。安装 Provider 只让 Agent 能发现它,不代表所有工作区都会
21
+ 启用。Agent 根据当前来源和需求选择 Provider。
22
+
17
23
  对话入口把工作区状态和 workflow 生命周期权威交给本地 `context` CLI;Indexer
18
24
  Skills 只能通过完成校验的 Context Indexer Provider 生命周期激活。
25
+
26
+
27
+ ## 查询知识与来源归因
28
+
29
+ 主动调用 `/c4a:context-inspect-search`(Cursor:`/c4a-context-inspect-search`),
30
+ 或指定 `context-inspect-search` 技能。优先使用可用 dist 中的查询技能;没有产物时,当前流程
31
+ 允许才尝试一次构建,否则从已批准的 `knowledge` 查询。通过构建清单关联批准原稿
32
+ 并追溯登记来源,不清理工作区、不为查询推进无关生产任务。证据充分时可建议更新,用户采纳后交给
33
+ `context` 的当前流程。Codex 配置禁止隐式调用,Claude 命令配置禁止模型自动调用;
34
+ 其他宿主依赖显式触发指引,不承诺其支持相同的自动调用控制。
package/plugins/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.5
1
+ 0.7.9
@@ -1,8 +1,19 @@
1
1
  {
2
2
  "name": "c4a",
3
3
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
4
- "version": "0.7.5",
5
- "author": { "name": "c4a" },
4
+ "version": "0.7.9",
5
+ "author": {
6
+ "name": "c4a"
7
+ },
6
8
  "license": "MIT",
7
- "keywords": ["context", "knowledge-base", "wiki", "claude-plugin", "c4a"]
9
+ "keywords": [
10
+ "context",
11
+ "knowledge-base",
12
+ "wiki",
13
+ "claude-plugin",
14
+ "c4a"
15
+ ],
16
+ "skills": [
17
+ "./skills/context-indexer-create"
18
+ ]
8
19
  }
@@ -0,0 +1,159 @@
1
+ ---
2
+ description: "Use only when the user explicitly invokes context-inspect-search to query a Context workspace's approved knowledge and trace answers to its registered documents or source code. Do not auto-start for ordinary coding, planning, debugging, or an active Context production workflow."
3
+ argument-hint: "[project-dir or user intent]"
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Context Inspect Search
8
+
9
+ Answer questions from a selected knowledge workspace, then investigate its
10
+ sources when the answer needs verification. This is an independent query entry,
11
+ not an Indexer or a production Route. Use the conversation language.
12
+
13
+ ## Invocation and scope
14
+
15
+ Start only on the user's explicit command or named Skill invocation. Continue
16
+ related follow-up questions without repeated invocation; stop applying this
17
+ Skill when the user changes task. An existing workspace, error message, or
18
+ knowledge-related phrase is not an activation signal.
19
+
20
+ Locate the user-selected workspace. With the CLI available, use
21
+ `context entry [project-dir] --format json` to identify it and its installed
22
+ instructions. This is inspection: do not execute a returned production command
23
+ just because it is actionable. If the CLI is unavailable or state inspection
24
+ fails, readable files can still support a bounded answer; report what could not
25
+ be checked. Do not initialize a replacement workspace or install tools silently.
26
+ If several workspaces could match, resolve which one the user means.
27
+
28
+ Keep all paths relative to that workspace. Read its `AGENTS.md` and relevant
29
+ configuration before investigating. The presence of a `.tmp` directory alone
30
+ does not establish a workspace. Querying must not clear caches, reset tasks,
31
+ change checkouts, accept Review, or start Author or close. The one permitted
32
+ query preparation build is described below.
33
+
34
+ ## Choose the query material
35
+
36
+ **Prefer an existing usable dist.** Locate the package output from the workspace
37
+ configuration and inspect its index and `context-build-inventory.json`. Choose
38
+ the package matching the question; do not silently combine unrelated packages.
39
+ A usable package has readable delivered pages, not just an existing directory.
40
+ Read its bundled query Skill (usually `skills/knowledge-query/SKILL.md`, but
41
+ business templates may use another name) and use its navigation and search
42
+ instructions within that package. If it has no query Skill, use its readable
43
+ indexes and pages; a missing Skill alone is not a reason to rebuild. Do not
44
+ execute unrelated scripts merely because they are bundled.
45
+
46
+ Do not build first when usable output exists. It represents its last successful
47
+ build and selected scope, not necessarily the latest approved workspace content.
48
+ A search miss does not make the package unusable or justify a rebuild. For a
49
+ latest-content question or an apparent gap, inspect the corresponding approved
50
+ knowledge and distinguish it from the delivered version.
51
+
52
+ **If no usable output exists, try one build when allowed.** Inspect the current
53
+ Route/status and configured package. Only use the normal CLI build action when
54
+ its prerequisites are already satisfied and it will not advance an unrelated
55
+ active delivery or revision. Do not create package configuration, approve a
56
+ template, run close, recover production state or finish pending work just to
57
+ make this query possible. When a safe build is available, run its current
58
+ command once in the identified workspace, wait for the same invocation's exit
59
+ and receipt, then inspect its actual output and query Skill. Do not launch a
60
+ second writer or treat partial output as a completed package. There is no
61
+ unverified promise that this takes less than 20 seconds.
62
+
63
+ **Otherwise query approved knowledge directly.** If the CLI is unavailable,
64
+ state cannot be checked, build is not allowed, or the attempt fails, briefly
65
+ explain the limitation and continue from readable approved knowledge. Do not
66
+ loop through build repairs. Use `knowledge/structure.yaml` to locate pages,
67
+ collections and source associations; search selected `knowledge/` paths with
68
+ Host file tools, trying domain terms, symbol names and synonyms. Read relevant
69
+ sections in context. A search miss proves neither absence of knowledge nor
70
+ absence of the underlying capability. Candidates and `.tmp` reports may explain
71
+ pending work but are not approved knowledge. If approval cannot be established,
72
+ state that limitation rather than treating arbitrary Markdown as approved.
73
+
74
+ ## Trace delivered answers to workspace sources
75
+
76
+ For a dist hit, find its `dist_path` in the matching package inventory's
77
+ `approved_knowledge.files` and follow that record's `approved_path` into the
78
+ workspace. `approved_path` is relative to the workspace's `knowledge/` root,
79
+ not the dist directory or workspace root; do not guess the mapping from similar filenames. Read that page and its source
80
+ associations in `knowledge/structure.yaml`, then follow the registered sources.
81
+ If the inventory or mapping is missing, still answer from readable package
82
+ content where possible, but do not claim verified original-source attribution.
83
+
84
+ The chain is: delivered page → build inventory mapping → approved knowledge and
85
+ structure → registered raw material at its recorded version. The current
86
+ approved page can have changed since build; describe differences rather than
87
+ silently replacing one version with another. Dist and knowledge are two forms
88
+ of the same content, not independent corroborating evidence. The bundled query
89
+ Skill owns package-local retrieval; this explicitly invoked inspection Skill
90
+ owns the subsequent, separately scoped workspace/source investigation. Cite
91
+ which layer supports each claim.
92
+
93
+ ## Prepare only the sources needed for attribution
94
+
95
+ Follow the relevant page's source references and `sources/*/index.yaml` records.
96
+ Check the selected raw body, attachments or repository module and its recorded
97
+ version before claiming deep attribution. This readiness check concerns the
98
+ selected materials, not completion of the active production workflow.
99
+
100
+ For repositories, `context source recovery-plan --format json` provides a
101
+ read-only recovery plan. Reuse an accessible checkout only after checking its
102
+ remote, pinned commit and module path. Inspect local changes as well: a matching
103
+ HEAD does not prove a dirty file is the recorded source. Do not silently use the
104
+ latest branch or reset a user's checkout.
105
+
106
+ If material is missing, report what cannot be verified and offer the smallest
107
+ necessary recovery. With the user's recovery authorization, follow the installed
108
+ `repository-source-recovery.md` procedure and schema in the workflow bundle
109
+ identified by entry, using the CLI's `source restore` contract. Recover only the
110
+ selected source groups; never run `task prepare` or the whole workspace-reset
111
+ procedure to enable a query. If a writer is active or recovery cannot safely
112
+ coexist, keep the answer bounded and defer the write. Do not invent recovery
113
+ payload fields when the installed schema is unavailable.
114
+
115
+ For documents, notes and sessions, read their saved source bodies or summaries
116
+ and necessary attachments. A summary is not a full conversation transcript.
117
+ An external link is not evidence of its unread target. Fetch missing external
118
+ material only within the user's authorized scope; current remote content is not
119
+ proof of an older snapshot. If historical raw material is unavailable, identify
120
+ the gap rather than reconstructing it from generated knowledge.
121
+
122
+ ## Explain and verify
123
+
124
+ Trace from the approved claim to the relevant source location. Expand to
125
+ adjacent definitions or tests only as necessary and within the selected source
126
+ scope. Distinguish declared API, implementation behavior, test assertions and
127
+ observed runtime behavior; reading code does not prove a runtime experiment.
128
+ Apart from the bounded package build above, do not run repository builds, tests
129
+ or arbitrary scripts merely to answer a query. If runtime validation is needed, explain the proposed check
130
+ and obtain the user's authorization for that scope.
131
+
132
+ Lead with the answer, then cite concrete page paths and source locations,
133
+ including the version when it affects the conclusion. Separate confirmed facts,
134
+ inferences and unavailable evidence. If source versions differ, describe the
135
+ difference before deciding that a knowledge page is wrong. Do not dump runtime
136
+ ids, long raw excerpts or a mandatory audit report into every answer.
137
+
138
+ ## Suggest improvements and hand off
139
+
140
+ When evidence supports a correction or worthwhile addition, briefly describe:
141
+
142
+ - the affected page or missing topic and the reader's actual problem;
143
+ - the supporting source location/version and what it establishes;
144
+ - whether to revise an existing page, adjust discoverability, add a topic, or
145
+ obtain missing material first;
146
+ - the bounded pages/sources involved and any uncertainty.
147
+
148
+ Check the existing scope and neighboring pages before recommending new content.
149
+ Do not create a page solely because a search missed it, and do not propose
150
+ unsupported claims as a knowledge update. With insufficient raw evidence, give
151
+ an actionable material request instead of forcing an update.
152
+
153
+ A suggestion is not authorization to write. Only when the user accepts the
154
+ update, hand the question, evidence, proposed change and scope to the installed
155
+ `context` production Skill in the same workspace. Read its fresh Route; it owns
156
+ candidate repair, approved-page revision and scheduling around active work.
157
+ Do not clear state, reuse an earlier revision, directly edit knowledge, or build
158
+ a second update workflow. If the production Skill/CLI is unavailable, provide
159
+ the handoff information and state that no update has started.