@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.
- package/README.md +63 -2
- package/README.zh-CN.md +16 -0
- package/cli.js +132471 -111134
- package/docs/context-debug-event-v1.schema.json +3 -1
- package/docs/debug-tracing.md +17 -1
- package/indexers/bundles/context-code-indexer/SKILL.md +10 -1
- package/indexers/bundles/context-code-indexer/context-indexer.yaml +3102 -64
- package/indexers/bundles/context-code-indexer/references/article-catalog/adapter-integration-article-catalog.md +20 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/api-service-article-catalog.md +20 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/background-runtime-article-catalog.md +19 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/cli-tool-article-catalog.md +17 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/component-library-article-catalog.md +18 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/contract-source-article-catalog.md +17 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/data-sync-reconciliation-article-catalog.md +19 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/derived-generated-source-article-catalog.md +17 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/domain-service-article-catalog.md +23 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/event-consumer-article-catalog.md +19 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/gateway-facade-article-catalog.md +21 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/monorepo-container-article-catalog.md +17 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/plugin-extension-article-catalog.md +17 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/sdk-library-article-catalog.md +18 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/storage-repository-article-catalog.md +19 -0
- package/indexers/bundles/context-code-indexer/references/article-catalog/web-application-article-catalog.md +30 -0
- package/indexers/bundles/context-code-indexer/references/composers/public-contract.md +13 -1
- package/indexers/bundles/context-code-indexer/references/diagrams.md +122 -0
- package/indexers/bundles/context-code-indexer/references/indexer.md +184 -8
- package/indexers/bundles/context-code-indexer/references/visual-source-processing.md +42 -0
- package/indexers/bundles/context-code-indexer/templates/adapter-integration-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/adapter-integration-request-adaptation-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/adapter-integration-usage-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/api-service-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/api-service-public-api-reference.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/articles/c01.md +49 -0
- package/indexers/bundles/context-code-indexer/templates/articles/c02.md +36 -0
- package/indexers/bundles/context-code-indexer/templates/articles/c03.md +28 -0
- package/indexers/bundles/context-code-indexer/templates/articles/c04.md +29 -0
- package/indexers/bundles/context-code-indexer/templates/articles/c05.md +30 -0
- package/indexers/bundles/context-code-indexer/templates/articles/c07.md +51 -0
- package/indexers/bundles/context-code-indexer/templates/articles/d01.md +31 -0
- package/indexers/bundles/context-code-indexer/templates/articles/d02.md +32 -0
- package/indexers/bundles/context-code-indexer/templates/articles/d03.md +32 -0
- package/indexers/bundles/context-code-indexer/templates/articles/d04.md +38 -0
- package/indexers/bundles/context-code-indexer/templates/articles/f01.md +50 -0
- package/indexers/bundles/context-code-indexer/templates/articles/f02.md +33 -0
- package/indexers/bundles/context-code-indexer/templates/articles/f03.md +38 -0
- package/indexers/bundles/context-code-indexer/templates/articles/f04.md +32 -0
- package/indexers/bundles/context-code-indexer/templates/articles/f05.md +32 -0
- package/indexers/bundles/context-code-indexer/templates/articles/f06.md +32 -0
- package/indexers/bundles/context-code-indexer/templates/articles/f07.md +31 -0
- package/indexers/bundles/context-code-indexer/templates/articles/f08.md +36 -0
- package/indexers/bundles/context-code-indexer/templates/articles/f09.md +32 -0
- package/indexers/bundles/context-code-indexer/templates/articles/f10.md +32 -0
- package/indexers/bundles/context-code-indexer/templates/articles/f11.md +39 -0
- package/indexers/bundles/context-code-indexer/templates/articles/f12.md +59 -0
- package/indexers/bundles/context-code-indexer/templates/articles/l01.md +38 -0
- package/indexers/bundles/context-code-indexer/templates/articles/l02.md +103 -0
- package/indexers/bundles/context-code-indexer/templates/articles/l03.md +92 -0
- package/indexers/bundles/context-code-indexer/templates/articles/l04.md +30 -0
- package/indexers/bundles/context-code-indexer/templates/articles/l05.md +50 -0
- package/indexers/bundles/context-code-indexer/templates/articles/q03.md +29 -0
- package/indexers/bundles/context-code-indexer/templates/articles/q05.md +29 -0
- package/indexers/bundles/context-code-indexer/templates/articles/q06.md +29 -0
- package/indexers/bundles/context-code-indexer/templates/articles/s01.md +31 -0
- package/indexers/bundles/context-code-indexer/templates/articles/s02.md +30 -0
- package/indexers/bundles/context-code-indexer/templates/articles/s03.md +34 -0
- package/indexers/bundles/context-code-indexer/templates/articles/s04.md +35 -0
- package/indexers/bundles/context-code-indexer/templates/articles/s05.md +30 -0
- package/indexers/bundles/context-code-indexer/templates/articles/s06.md +30 -0
- package/indexers/bundles/context-code-indexer/templates/articles/s07.md +33 -0
- package/indexers/bundles/context-code-indexer/templates/background-runtime-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/background-runtime-task-runtime-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/cli-tool-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/cli-tool-public-api-reference.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/cli-tool-usage-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/component-library-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/component-library-public-api-reference.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/component-library-usage-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/component-library.md +40 -3
- package/indexers/bundles/context-code-indexer/templates/contract-source-public-api-reference.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/contract-source-usage-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/contract-source.md +49 -0
- package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation-task-runtime-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/derived-generated-source-public-api-reference.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/derived-generated-source-usage-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/derived-generated-source.md +15 -0
- package/indexers/bundles/context-code-indexer/templates/domain-service-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/domain-service-public-api-reference.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/event-consumer-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/event-consumer-task-runtime-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/gateway-facade-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/gateway-facade-public-api-reference.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/gateway-facade-request-adaptation-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/monorepo-container-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/monorepo-container-usage-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/monorepo-container.md +9 -0
- package/indexers/bundles/context-code-indexer/templates/plugin-extension-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/plugin-extension-public-api-reference.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/plugin-extension-usage-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/sdk-library-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/sdk-library-public-api-reference.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/sdk-library-usage-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/storage-repository-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/storage-repository-public-api-reference.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/web-application-federation-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/web-application-maintenance-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/templates/web-application-page-task-guide.md +81 -0
- package/indexers/bundles/context-code-indexer/tests/fixtures/composers.json +1 -1
- package/indexers/bundles/context-code-indexer/tests/fixtures/scenarios.json +1 -1
- package/indexers/bundles/context-markdown-indexer/SKILL.md +7 -1
- package/indexers/bundles/context-markdown-indexer/context-indexer.yaml +856 -15
- package/indexers/bundles/context-markdown-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
- package/indexers/bundles/context-markdown-indexer/references/article-catalog/documentation-site-article-catalog.md +8 -0
- package/indexers/bundles/context-markdown-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
- package/indexers/bundles/context-markdown-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
- package/indexers/bundles/context-markdown-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
- package/indexers/bundles/context-markdown-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
- package/indexers/bundles/context-markdown-indexer/references/article-catalog/public-api-reference-article-catalog.md +10 -0
- package/indexers/bundles/context-markdown-indexer/references/article-catalog/release-migration-guide-article-catalog.md +11 -0
- package/indexers/bundles/context-markdown-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
- package/indexers/bundles/context-markdown-indexer/references/article-catalog/standard-policy-article-catalog.md +10 -0
- package/indexers/bundles/context-markdown-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
- package/indexers/bundles/context-markdown-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
- package/indexers/bundles/context-markdown-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
- package/indexers/bundles/context-markdown-indexer/references/diagrams.md +122 -0
- package/indexers/bundles/context-markdown-indexer/references/editorial-policy.md +19 -29
- package/indexers/bundles/context-markdown-indexer/references/indexer.md +63 -2
- package/indexers/bundles/context-markdown-indexer/references/semantic-planning.md +22 -8
- package/indexers/bundles/context-markdown-indexer/references/visual-source-processing.md +42 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/c01.md +37 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/c02.md +34 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/c03.md +26 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/c04.md +27 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/c05.md +28 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/c06.md +28 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/c07.md +27 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/d01.md +29 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/d02.md +30 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/d03.md +30 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/d04.md +44 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/f01.md +30 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/f05.md +30 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/f06.md +30 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/f08.md +34 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/f09.md +30 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/l01.md +35 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/l02.md +101 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/l03.md +90 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/l04.md +28 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/l05.md +48 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/q01.md +32 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/q02.md +33 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/q03.md +27 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/q04.md +32 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/q05.md +27 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/q06.md +27 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/q07.md +32 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/s01.md +29 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/s02.md +27 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/s03.md +31 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/s04.md +33 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/s05.md +28 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/s06.md +28 -0
- package/indexers/bundles/context-markdown-indexer/templates/articles/s07.md +31 -0
- package/indexers/bundles/context-note-indexer/SKILL.md +16 -0
- package/indexers/bundles/context-note-indexer/context-indexer.yaml +1459 -0
- package/indexers/bundles/context-note-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
- package/indexers/bundles/context-note-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
- package/indexers/bundles/context-note-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
- package/indexers/bundles/context-note-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
- package/indexers/bundles/context-note-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
- package/indexers/bundles/context-note-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
- package/indexers/bundles/context-note-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
- package/indexers/bundles/context-note-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
- package/indexers/bundles/context-note-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
- package/indexers/bundles/context-note-indexer/references/classification.md +55 -0
- package/indexers/bundles/context-note-indexer/references/customization.md +36 -0
- package/indexers/bundles/context-note-indexer/references/diagrams.md +122 -0
- package/indexers/bundles/context-note-indexer/references/extension-placement.md +57 -0
- package/indexers/bundles/context-note-indexer/references/indexer.md +43 -0
- package/indexers/bundles/context-note-indexer/references/updates-and-composition.md +37 -0
- package/indexers/bundles/context-note-indexer/references/visual-source-processing.md +42 -0
- package/indexers/bundles/context-note-indexer/references/writing.md +57 -0
- package/indexers/bundles/context-note-indexer/templates/articles/c01.md +37 -0
- package/indexers/bundles/context-note-indexer/templates/articles/c02.md +34 -0
- package/indexers/bundles/context-note-indexer/templates/articles/c03.md +26 -0
- package/indexers/bundles/context-note-indexer/templates/articles/c04.md +27 -0
- package/indexers/bundles/context-note-indexer/templates/articles/c05.md +28 -0
- package/indexers/bundles/context-note-indexer/templates/articles/c06.md +28 -0
- package/indexers/bundles/context-note-indexer/templates/articles/c07.md +27 -0
- package/indexers/bundles/context-note-indexer/templates/articles/d01.md +29 -0
- package/indexers/bundles/context-note-indexer/templates/articles/d02.md +30 -0
- package/indexers/bundles/context-note-indexer/templates/articles/d03.md +30 -0
- package/indexers/bundles/context-note-indexer/templates/articles/d04.md +36 -0
- package/indexers/bundles/context-note-indexer/templates/articles/f01.md +30 -0
- package/indexers/bundles/context-note-indexer/templates/articles/f06.md +30 -0
- package/indexers/bundles/context-note-indexer/templates/articles/f08.md +34 -0
- package/indexers/bundles/context-note-indexer/templates/articles/f09.md +30 -0
- package/indexers/bundles/context-note-indexer/templates/articles/l01.md +35 -0
- package/indexers/bundles/context-note-indexer/templates/articles/l02.md +101 -0
- package/indexers/bundles/context-note-indexer/templates/articles/l03.md +90 -0
- package/indexers/bundles/context-note-indexer/templates/articles/l04.md +28 -0
- package/indexers/bundles/context-note-indexer/templates/articles/l05.md +48 -0
- package/indexers/bundles/context-note-indexer/templates/articles/q01.md +32 -0
- package/indexers/bundles/context-note-indexer/templates/articles/q02.md +33 -0
- package/indexers/bundles/context-note-indexer/templates/articles/q03.md +27 -0
- package/indexers/bundles/context-note-indexer/templates/articles/q04.md +32 -0
- package/indexers/bundles/context-note-indexer/templates/articles/q05.md +27 -0
- package/indexers/bundles/context-note-indexer/templates/articles/q06.md +27 -0
- package/indexers/bundles/context-note-indexer/templates/articles/q07.md +32 -0
- package/indexers/bundles/context-note-indexer/templates/articles/s01.md +29 -0
- package/indexers/bundles/context-note-indexer/templates/articles/s04.md +33 -0
- package/indexers/bundles/context-note-indexer/templates/articles/s05.md +28 -0
- package/indexers/bundles/context-note-indexer/templates/articles/s06.md +28 -0
- package/indexers/bundles/context-note-indexer/templates/articles/s07.md +31 -0
- package/indexers/bundles/context-note-indexer/templates/decision-record.md +33 -0
- package/indexers/bundles/context-note-indexer/templates/domain-reference.md +31 -0
- package/indexers/bundles/context-note-indexer/templates/faq-support.md +30 -0
- package/indexers/bundles/context-note-indexer/templates/incident-review.md +28 -0
- package/indexers/bundles/context-note-indexer/templates/product-requirements.md +29 -0
- package/indexers/bundles/context-note-indexer/templates/runbook.md +30 -0
- package/indexers/bundles/context-note-indexer/templates/technical-guide.md +31 -0
- package/indexers/bundles/context-note-indexer/templates/test-validation.md +28 -0
- package/indexers/bundles/context-note-indexer/templates/user-and-developer-guide.md +28 -0
- package/indexers/bundles/context-note-indexer/tests/fixtures/profiles.json +281 -0
- package/indexers/bundles/context-sessions-indexer/SKILL.md +16 -0
- package/indexers/bundles/context-sessions-indexer/context-indexer.yaml +1459 -0
- package/indexers/bundles/context-sessions-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
- package/indexers/bundles/context-sessions-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
- package/indexers/bundles/context-sessions-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
- package/indexers/bundles/context-sessions-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
- package/indexers/bundles/context-sessions-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
- package/indexers/bundles/context-sessions-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
- package/indexers/bundles/context-sessions-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
- package/indexers/bundles/context-sessions-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
- package/indexers/bundles/context-sessions-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
- package/indexers/bundles/context-sessions-indexer/references/classification.md +56 -0
- package/indexers/bundles/context-sessions-indexer/references/customization.md +36 -0
- package/indexers/bundles/context-sessions-indexer/references/diagrams.md +122 -0
- package/indexers/bundles/context-sessions-indexer/references/extension-placement.md +63 -0
- package/indexers/bundles/context-sessions-indexer/references/indexer.md +48 -0
- package/indexers/bundles/context-sessions-indexer/references/updates-and-composition.md +37 -0
- package/indexers/bundles/context-sessions-indexer/references/visual-source-processing.md +42 -0
- package/indexers/bundles/context-sessions-indexer/references/writing.md +63 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/c01.md +37 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/c02.md +34 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/c03.md +26 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/c04.md +27 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/c05.md +28 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/c06.md +28 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/c07.md +27 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/d01.md +29 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/d02.md +30 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/d03.md +30 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/d04.md +36 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/f01.md +30 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/f06.md +30 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/f08.md +34 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/f09.md +30 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/l01.md +35 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/l02.md +101 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/l03.md +90 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/l04.md +28 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/l05.md +48 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/q01.md +32 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/q02.md +33 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/q03.md +27 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/q04.md +32 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/q05.md +27 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/q06.md +27 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/q07.md +32 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/s01.md +29 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/s04.md +33 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/s05.md +28 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/s06.md +28 -0
- package/indexers/bundles/context-sessions-indexer/templates/articles/s07.md +31 -0
- package/indexers/bundles/context-sessions-indexer/templates/decision-record.md +43 -0
- package/indexers/bundles/context-sessions-indexer/templates/domain-reference.md +31 -0
- package/indexers/bundles/context-sessions-indexer/templates/faq-support.md +33 -0
- package/indexers/bundles/context-sessions-indexer/templates/incident-review.md +37 -0
- package/indexers/bundles/context-sessions-indexer/templates/product-requirements.md +35 -0
- package/indexers/bundles/context-sessions-indexer/templates/runbook.md +32 -0
- package/indexers/bundles/context-sessions-indexer/templates/technical-guide.md +31 -0
- package/indexers/bundles/context-sessions-indexer/templates/test-validation.md +37 -0
- package/indexers/bundles/context-sessions-indexer/templates/user-and-developer-guide.md +31 -0
- package/indexers/bundles/context-sessions-indexer/tests/fixtures/profiles.json +281 -0
- package/indexers/contracts/profile-contract.json +657 -277
- package/indexers/release-manifest.json +1120 -32
- package/package.json +14 -12
- package/parserEntryWorker.js +34606 -0
- package/plugins/README.md +24 -6
- package/plugins/README_CN.md +21 -5
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +14 -3
- package/plugins/claude/commands/context-inspect-search.md +159 -0
- package/plugins/claude/commands/context.md +375 -211
- package/plugins/claude/skills/context-indexer-create/SKILL.md +80 -0
- package/plugins/claude/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +180 -0
- package/plugins/claude/skills/context-indexer-create/references/guides/indexer-manifest-example.md +103 -0
- package/plugins/claude/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +471 -0
- package/plugins/claude/skills/context-indexer-create/references/guides/indexer-skill-creation.md +99 -0
- package/plugins/claude/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +136 -0
- package/plugins/claude/skills/context-indexer-create/references/guides/note.md +37 -0
- package/plugins/claude/skills/context-indexer-create/references/guides/sessions.md +50 -0
- package/plugins/claude/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +854 -0
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +372 -211
- package/plugins/codex/skills/context/agents/openai.yaml +2 -0
- package/plugins/codex/skills/context-indexer-create/SKILL.md +80 -0
- package/plugins/codex/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +180 -0
- package/plugins/codex/skills/context-indexer-create/references/guides/indexer-manifest-example.md +103 -0
- package/plugins/codex/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +471 -0
- package/plugins/codex/skills/context-indexer-create/references/guides/indexer-skill-creation.md +99 -0
- package/plugins/codex/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +136 -0
- package/plugins/codex/skills/context-indexer-create/references/guides/note.md +37 -0
- package/plugins/codex/skills/context-indexer-create/references/guides/sessions.md +50 -0
- package/plugins/codex/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +854 -0
- package/plugins/codex/skills/context-inspect-search/SKILL.md +159 -0
- package/plugins/codex/skills/context-inspect-search/agents/openai.yaml +2 -0
- package/plugins/cursor/.cursor-plugin/plugin.json +21 -5
- package/plugins/cursor/commands/c4a-context-inspect-search.md +157 -0
- package/plugins/cursor/commands/c4a-context.md +371 -214
- package/plugins/cursor/skills/context-indexer-create/SKILL.md +80 -0
- package/plugins/cursor/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +180 -0
- package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-manifest-example.md +103 -0
- package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +471 -0
- package/plugins/cursor/skills/context-indexer-create/references/guides/indexer-skill-creation.md +99 -0
- package/plugins/cursor/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +136 -0
- package/plugins/cursor/skills/context-indexer-create/references/guides/note.md +37 -0
- package/plugins/cursor/skills/context-indexer-create/references/guides/sessions.md +50 -0
- package/plugins/cursor/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +854 -0
- package/plugins/skills/context/SKILL.md +372 -211
- package/plugins/skills/context/agents/openai.yaml +2 -0
- package/plugins/skills/context-code-indexer/SKILL.md +10 -1
- package/plugins/skills/context-code-indexer/context-indexer.yaml +3102 -64
- package/plugins/skills/context-code-indexer/references/article-catalog/adapter-integration-article-catalog.md +20 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/api-service-article-catalog.md +20 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/background-runtime-article-catalog.md +19 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/cli-tool-article-catalog.md +17 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/component-library-article-catalog.md +18 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/contract-source-article-catalog.md +17 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/data-sync-reconciliation-article-catalog.md +19 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/derived-generated-source-article-catalog.md +17 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/domain-service-article-catalog.md +23 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/event-consumer-article-catalog.md +19 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/gateway-facade-article-catalog.md +21 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/monorepo-container-article-catalog.md +17 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/plugin-extension-article-catalog.md +17 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/sdk-library-article-catalog.md +18 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/storage-repository-article-catalog.md +19 -0
- package/plugins/skills/context-code-indexer/references/article-catalog/web-application-article-catalog.md +30 -0
- package/plugins/skills/context-code-indexer/references/composers/public-contract.md +13 -1
- package/plugins/skills/context-code-indexer/references/diagrams.md +122 -0
- package/plugins/skills/context-code-indexer/references/indexer.md +184 -8
- package/plugins/skills/context-code-indexer/references/visual-source-processing.md +42 -0
- package/plugins/skills/context-code-indexer/templates/adapter-integration-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/adapter-integration-request-adaptation-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/adapter-integration-usage-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/api-service-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/api-service-public-api-reference.md +81 -0
- package/plugins/skills/context-code-indexer/templates/articles/c01.md +49 -0
- package/plugins/skills/context-code-indexer/templates/articles/c02.md +36 -0
- package/plugins/skills/context-code-indexer/templates/articles/c03.md +28 -0
- package/plugins/skills/context-code-indexer/templates/articles/c04.md +29 -0
- package/plugins/skills/context-code-indexer/templates/articles/c05.md +30 -0
- package/plugins/skills/context-code-indexer/templates/articles/c07.md +51 -0
- package/plugins/skills/context-code-indexer/templates/articles/d01.md +31 -0
- package/plugins/skills/context-code-indexer/templates/articles/d02.md +32 -0
- package/plugins/skills/context-code-indexer/templates/articles/d03.md +32 -0
- package/plugins/skills/context-code-indexer/templates/articles/d04.md +38 -0
- package/plugins/skills/context-code-indexer/templates/articles/f01.md +50 -0
- package/plugins/skills/context-code-indexer/templates/articles/f02.md +33 -0
- package/plugins/skills/context-code-indexer/templates/articles/f03.md +38 -0
- package/plugins/skills/context-code-indexer/templates/articles/f04.md +32 -0
- package/plugins/skills/context-code-indexer/templates/articles/f05.md +32 -0
- package/plugins/skills/context-code-indexer/templates/articles/f06.md +32 -0
- package/plugins/skills/context-code-indexer/templates/articles/f07.md +31 -0
- package/plugins/skills/context-code-indexer/templates/articles/f08.md +36 -0
- package/plugins/skills/context-code-indexer/templates/articles/f09.md +32 -0
- package/plugins/skills/context-code-indexer/templates/articles/f10.md +32 -0
- package/plugins/skills/context-code-indexer/templates/articles/f11.md +39 -0
- package/plugins/skills/context-code-indexer/templates/articles/f12.md +59 -0
- package/plugins/skills/context-code-indexer/templates/articles/l01.md +38 -0
- package/plugins/skills/context-code-indexer/templates/articles/l02.md +103 -0
- package/plugins/skills/context-code-indexer/templates/articles/l03.md +92 -0
- package/plugins/skills/context-code-indexer/templates/articles/l04.md +30 -0
- package/plugins/skills/context-code-indexer/templates/articles/l05.md +50 -0
- package/plugins/skills/context-code-indexer/templates/articles/q03.md +29 -0
- package/plugins/skills/context-code-indexer/templates/articles/q05.md +29 -0
- package/plugins/skills/context-code-indexer/templates/articles/q06.md +29 -0
- package/plugins/skills/context-code-indexer/templates/articles/s01.md +31 -0
- package/plugins/skills/context-code-indexer/templates/articles/s02.md +30 -0
- package/plugins/skills/context-code-indexer/templates/articles/s03.md +34 -0
- package/plugins/skills/context-code-indexer/templates/articles/s04.md +35 -0
- package/plugins/skills/context-code-indexer/templates/articles/s05.md +30 -0
- package/plugins/skills/context-code-indexer/templates/articles/s06.md +30 -0
- package/plugins/skills/context-code-indexer/templates/articles/s07.md +33 -0
- package/plugins/skills/context-code-indexer/templates/background-runtime-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/background-runtime-task-runtime-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/cli-tool-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/cli-tool-public-api-reference.md +81 -0
- package/plugins/skills/context-code-indexer/templates/cli-tool-usage-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/component-library-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/component-library-public-api-reference.md +81 -0
- package/plugins/skills/context-code-indexer/templates/component-library-usage-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/component-library.md +40 -3
- package/plugins/skills/context-code-indexer/templates/contract-source-public-api-reference.md +81 -0
- package/plugins/skills/context-code-indexer/templates/contract-source-usage-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/contract-source.md +49 -0
- package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation-task-runtime-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/derived-generated-source-public-api-reference.md +81 -0
- package/plugins/skills/context-code-indexer/templates/derived-generated-source-usage-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/derived-generated-source.md +15 -0
- package/plugins/skills/context-code-indexer/templates/domain-service-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/domain-service-public-api-reference.md +81 -0
- package/plugins/skills/context-code-indexer/templates/event-consumer-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/event-consumer-task-runtime-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/gateway-facade-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/gateway-facade-public-api-reference.md +81 -0
- package/plugins/skills/context-code-indexer/templates/gateway-facade-request-adaptation-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/monorepo-container-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/monorepo-container-usage-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/monorepo-container.md +9 -0
- package/plugins/skills/context-code-indexer/templates/plugin-extension-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/plugin-extension-public-api-reference.md +81 -0
- package/plugins/skills/context-code-indexer/templates/plugin-extension-usage-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/sdk-library-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/sdk-library-public-api-reference.md +81 -0
- package/plugins/skills/context-code-indexer/templates/sdk-library-usage-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/storage-repository-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/storage-repository-public-api-reference.md +81 -0
- package/plugins/skills/context-code-indexer/templates/web-application-federation-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/web-application-maintenance-guide.md +81 -0
- package/plugins/skills/context-code-indexer/templates/web-application-page-task-guide.md +81 -0
- package/plugins/skills/context-code-indexer/tests/fixtures/composers.json +1 -1
- package/plugins/skills/context-code-indexer/tests/fixtures/scenarios.json +1 -1
- package/plugins/skills/context-indexer-create/SKILL.md +80 -0
- package/plugins/skills/context-indexer-create/references/guides/code-indexer-skill-authoring.md +180 -0
- package/plugins/skills/context-indexer-create/references/guides/indexer-manifest-example.md +103 -0
- package/plugins/skills/context-indexer-create/references/guides/indexer-provider-and-customization.md +471 -0
- package/plugins/skills/context-indexer-create/references/guides/indexer-skill-creation.md +99 -0
- package/plugins/skills/context-indexer-create/references/guides/markdown-indexer-skill-authoring.md +136 -0
- package/plugins/skills/context-indexer-create/references/guides/note.md +37 -0
- package/plugins/skills/context-indexer-create/references/guides/sessions.md +50 -0
- package/plugins/skills/context-indexer-create/references/reference/indexer-provider-protocol.md +854 -0
- package/plugins/skills/context-inspect-search/SKILL.md +159 -0
- package/plugins/skills/context-inspect-search/agents/openai.yaml +2 -0
- package/plugins/skills/context-markdown-indexer/SKILL.md +7 -1
- package/plugins/skills/context-markdown-indexer/context-indexer.yaml +856 -15
- package/plugins/skills/context-markdown-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
- package/plugins/skills/context-markdown-indexer/references/article-catalog/documentation-site-article-catalog.md +8 -0
- package/plugins/skills/context-markdown-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
- package/plugins/skills/context-markdown-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
- package/plugins/skills/context-markdown-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
- package/plugins/skills/context-markdown-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
- package/plugins/skills/context-markdown-indexer/references/article-catalog/public-api-reference-article-catalog.md +10 -0
- package/plugins/skills/context-markdown-indexer/references/article-catalog/release-migration-guide-article-catalog.md +11 -0
- package/plugins/skills/context-markdown-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
- package/plugins/skills/context-markdown-indexer/references/article-catalog/standard-policy-article-catalog.md +10 -0
- package/plugins/skills/context-markdown-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
- package/plugins/skills/context-markdown-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
- package/plugins/skills/context-markdown-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
- package/plugins/skills/context-markdown-indexer/references/diagrams.md +122 -0
- package/plugins/skills/context-markdown-indexer/references/editorial-policy.md +19 -29
- package/plugins/skills/context-markdown-indexer/references/indexer.md +63 -2
- package/plugins/skills/context-markdown-indexer/references/semantic-planning.md +22 -8
- package/plugins/skills/context-markdown-indexer/references/visual-source-processing.md +42 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/c01.md +37 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/c02.md +34 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/c03.md +26 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/c04.md +27 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/c05.md +28 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/c06.md +28 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/c07.md +27 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/d01.md +29 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/d02.md +30 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/d03.md +30 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/d04.md +44 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/f01.md +30 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/f05.md +30 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/f06.md +30 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/f08.md +34 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/f09.md +30 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/l01.md +35 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/l02.md +101 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/l03.md +90 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/l04.md +28 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/l05.md +48 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/q01.md +32 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/q02.md +33 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/q03.md +27 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/q04.md +32 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/q05.md +27 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/q06.md +27 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/q07.md +32 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/s01.md +29 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/s02.md +27 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/s03.md +31 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/s04.md +33 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/s05.md +28 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/s06.md +28 -0
- package/plugins/skills/context-markdown-indexer/templates/articles/s07.md +31 -0
- package/plugins/skills/context-note-indexer/SKILL.md +16 -0
- package/plugins/skills/context-note-indexer/context-indexer.yaml +1459 -0
- package/plugins/skills/context-note-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
- package/plugins/skills/context-note-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
- package/plugins/skills/context-note-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
- package/plugins/skills/context-note-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
- package/plugins/skills/context-note-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
- package/plugins/skills/context-note-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
- package/plugins/skills/context-note-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
- package/plugins/skills/context-note-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
- package/plugins/skills/context-note-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
- package/plugins/skills/context-note-indexer/references/classification.md +55 -0
- package/plugins/skills/context-note-indexer/references/customization.md +36 -0
- package/plugins/skills/context-note-indexer/references/diagrams.md +122 -0
- package/plugins/skills/context-note-indexer/references/extension-placement.md +57 -0
- package/plugins/skills/context-note-indexer/references/indexer.md +43 -0
- package/plugins/skills/context-note-indexer/references/updates-and-composition.md +37 -0
- package/plugins/skills/context-note-indexer/references/visual-source-processing.md +42 -0
- package/plugins/skills/context-note-indexer/references/writing.md +57 -0
- package/plugins/skills/context-note-indexer/templates/articles/c01.md +37 -0
- package/plugins/skills/context-note-indexer/templates/articles/c02.md +34 -0
- package/plugins/skills/context-note-indexer/templates/articles/c03.md +26 -0
- package/plugins/skills/context-note-indexer/templates/articles/c04.md +27 -0
- package/plugins/skills/context-note-indexer/templates/articles/c05.md +28 -0
- package/plugins/skills/context-note-indexer/templates/articles/c06.md +28 -0
- package/plugins/skills/context-note-indexer/templates/articles/c07.md +27 -0
- package/plugins/skills/context-note-indexer/templates/articles/d01.md +29 -0
- package/plugins/skills/context-note-indexer/templates/articles/d02.md +30 -0
- package/plugins/skills/context-note-indexer/templates/articles/d03.md +30 -0
- package/plugins/skills/context-note-indexer/templates/articles/d04.md +36 -0
- package/plugins/skills/context-note-indexer/templates/articles/f01.md +30 -0
- package/plugins/skills/context-note-indexer/templates/articles/f06.md +30 -0
- package/plugins/skills/context-note-indexer/templates/articles/f08.md +34 -0
- package/plugins/skills/context-note-indexer/templates/articles/f09.md +30 -0
- package/plugins/skills/context-note-indexer/templates/articles/l01.md +35 -0
- package/plugins/skills/context-note-indexer/templates/articles/l02.md +101 -0
- package/plugins/skills/context-note-indexer/templates/articles/l03.md +90 -0
- package/plugins/skills/context-note-indexer/templates/articles/l04.md +28 -0
- package/plugins/skills/context-note-indexer/templates/articles/l05.md +48 -0
- package/plugins/skills/context-note-indexer/templates/articles/q01.md +32 -0
- package/plugins/skills/context-note-indexer/templates/articles/q02.md +33 -0
- package/plugins/skills/context-note-indexer/templates/articles/q03.md +27 -0
- package/plugins/skills/context-note-indexer/templates/articles/q04.md +32 -0
- package/plugins/skills/context-note-indexer/templates/articles/q05.md +27 -0
- package/plugins/skills/context-note-indexer/templates/articles/q06.md +27 -0
- package/plugins/skills/context-note-indexer/templates/articles/q07.md +32 -0
- package/plugins/skills/context-note-indexer/templates/articles/s01.md +29 -0
- package/plugins/skills/context-note-indexer/templates/articles/s04.md +33 -0
- package/plugins/skills/context-note-indexer/templates/articles/s05.md +28 -0
- package/plugins/skills/context-note-indexer/templates/articles/s06.md +28 -0
- package/plugins/skills/context-note-indexer/templates/articles/s07.md +31 -0
- package/plugins/skills/context-note-indexer/templates/decision-record.md +33 -0
- package/plugins/skills/context-note-indexer/templates/domain-reference.md +31 -0
- package/plugins/skills/context-note-indexer/templates/faq-support.md +30 -0
- package/plugins/skills/context-note-indexer/templates/incident-review.md +28 -0
- package/plugins/skills/context-note-indexer/templates/product-requirements.md +29 -0
- package/plugins/skills/context-note-indexer/templates/runbook.md +30 -0
- package/plugins/skills/context-note-indexer/templates/technical-guide.md +31 -0
- package/plugins/skills/context-note-indexer/templates/test-validation.md +28 -0
- package/plugins/skills/context-note-indexer/templates/user-and-developer-guide.md +28 -0
- package/plugins/skills/context-note-indexer/tests/fixtures/profiles.json +281 -0
- package/plugins/skills/context-sessions-indexer/SKILL.md +16 -0
- package/plugins/skills/context-sessions-indexer/context-indexer.yaml +1459 -0
- package/plugins/skills/context-sessions-indexer/references/article-catalog/decision-record-article-catalog.md +7 -0
- package/plugins/skills/context-sessions-indexer/references/article-catalog/domain-reference-article-catalog.md +14 -0
- package/plugins/skills/context-sessions-indexer/references/article-catalog/faq-support-article-catalog.md +8 -0
- package/plugins/skills/context-sessions-indexer/references/article-catalog/incident-review-article-catalog.md +9 -0
- package/plugins/skills/context-sessions-indexer/references/article-catalog/product-requirements-article-catalog.md +8 -0
- package/plugins/skills/context-sessions-indexer/references/article-catalog/runbook-article-catalog.md +12 -0
- package/plugins/skills/context-sessions-indexer/references/article-catalog/technical-guide-article-catalog.md +20 -0
- package/plugins/skills/context-sessions-indexer/references/article-catalog/test-validation-article-catalog.md +11 -0
- package/plugins/skills/context-sessions-indexer/references/article-catalog/user-and-developer-guide-article-catalog.md +13 -0
- package/plugins/skills/context-sessions-indexer/references/classification.md +56 -0
- package/plugins/skills/context-sessions-indexer/references/customization.md +36 -0
- package/plugins/skills/context-sessions-indexer/references/diagrams.md +122 -0
- package/plugins/skills/context-sessions-indexer/references/extension-placement.md +63 -0
- package/plugins/skills/context-sessions-indexer/references/indexer.md +48 -0
- package/plugins/skills/context-sessions-indexer/references/updates-and-composition.md +37 -0
- package/plugins/skills/context-sessions-indexer/references/visual-source-processing.md +42 -0
- package/plugins/skills/context-sessions-indexer/references/writing.md +63 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/c01.md +37 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/c02.md +34 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/c03.md +26 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/c04.md +27 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/c05.md +28 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/c06.md +28 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/c07.md +27 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/d01.md +29 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/d02.md +30 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/d03.md +30 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/d04.md +36 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/f01.md +30 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/f06.md +30 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/f08.md +34 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/f09.md +30 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/l01.md +35 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/l02.md +101 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/l03.md +90 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/l04.md +28 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/l05.md +48 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/q01.md +32 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/q02.md +33 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/q03.md +27 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/q04.md +32 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/q05.md +27 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/q06.md +27 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/q07.md +32 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/s01.md +29 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/s04.md +33 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/s05.md +28 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/s06.md +28 -0
- package/plugins/skills/context-sessions-indexer/templates/articles/s07.md +31 -0
- package/plugins/skills/context-sessions-indexer/templates/decision-record.md +43 -0
- package/plugins/skills/context-sessions-indexer/templates/domain-reference.md +31 -0
- package/plugins/skills/context-sessions-indexer/templates/faq-support.md +33 -0
- package/plugins/skills/context-sessions-indexer/templates/incident-review.md +37 -0
- package/plugins/skills/context-sessions-indexer/templates/product-requirements.md +35 -0
- package/plugins/skills/context-sessions-indexer/templates/runbook.md +32 -0
- package/plugins/skills/context-sessions-indexer/templates/technical-guide.md +31 -0
- package/plugins/skills/context-sessions-indexer/templates/test-validation.md +37 -0
- package/plugins/skills/context-sessions-indexer/templates/user-and-developer-guide.md +31 -0
- package/plugins/skills/context-sessions-indexer/tests/fixtures/profiles.json +281 -0
- package/providers/context/actions/advance-knowledge-maintenance.yaml +5 -0
- package/providers/context/actions/author-approved-revision.yaml +6 -0
- package/providers/context/actions/finish-rollback.yaml +5 -0
- package/providers/context/actions/inspect-source-update.yaml +6 -0
- package/providers/context/actions/inspect-task-recovery.yaml +5 -0
- package/providers/context/actions/record-workspace-version.yaml +5 -0
- package/providers/context/actions/register-source-batch.yaml +1 -1
- package/providers/context/actions/repair-project-entry.yaml +9 -0
- package/providers/context/actions/resume-workspace-task.yaml +5 -0
- package/providers/context/codes.yaml +11 -0
- package/providers/context/graphs/indexer.yaml +93 -2
- package/providers/context/graphs/workspace.yaml +86 -6
- package/providers/context/manifest.json +371 -59
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/contracts/indexer-provider-guide.yaml +6 -0
- package/providers/context/resources/contracts/indexer-registry-bootstrap.yaml +6 -0
- package/providers/context/resources/diagnostics/verification.md +6 -4
- package/providers/context/resources/dialogue/knowledge-review.md +16 -9
- package/providers/context/resources/dialogue/package-output.md +18 -5
- package/providers/context/resources/dialogue/source-boundary.md +12 -2
- package/providers/context/resources/dialogue/workflow-mode-after-creation.md +15 -17
- package/providers/context/resources/manuals/guides/knowledge-updates.md +428 -0
- package/providers/context/resources/manuals/guides/lark-resources.md +5 -1
- package/providers/context/resources/manuals/guides/note.md +43 -0
- package/providers/context/resources/manuals/guides/package-outputs.md +231 -60
- package/providers/context/resources/manuals/guides/sessions.md +56 -0
- package/providers/context/resources/manuals/guides/workspace-commit.md +51 -0
- package/providers/context/resources/manuals/guides/workspace-prepare.md +78 -0
- package/providers/context/resources/manuals/guides/workspace-restore.md +65 -0
- package/providers/context/resources/manuals/reference/code-extractors.md +57 -0
- package/providers/context/resources/manuals/reference/package-templates.md +10 -9
- package/providers/context/resources/manuals/reference/project-api.md +100 -13
- package/providers/context/resources/manuals/reference/template-variables.md +7 -7
- package/providers/context/resources/procedures/approved-revision.md +159 -0
- package/providers/context/resources/procedures/close-and-build.md +58 -1
- package/providers/context/resources/procedures/homogeneous-source-review.md +123 -0
- package/providers/context/resources/procedures/knowledge-maintenance.md +68 -0
- package/providers/context/resources/procedures/knowledge-review.md +69 -6
- package/providers/context/resources/procedures/knowledge-updates.md +428 -0
- package/providers/context/resources/procedures/note.md +43 -0
- package/providers/context/resources/procedures/package-output.md +20 -1
- package/providers/context/resources/procedures/parallel-agent-batch.md +140 -0
- package/providers/context/resources/procedures/project-configuration.md +6 -0
- package/providers/context/resources/procedures/sessions.md +56 -0
- package/providers/context/resources/procedures/source-boundary.md +24 -1
- package/providers/context/resources/procedures/source-capture-detailed.md +36 -2
- package/providers/context/resources/procedures/source-update.md +50 -0
- package/providers/context/resources/procedures/task-recovery.md +71 -0
- package/providers/context/resources/procedures/verify-and-repair.md +5 -0
- package/providers/context/resources/procedures/work-start-report.md +419 -0
- package/providers/context/resources/procedures/workspace-commit.md +51 -0
- package/providers/context/resources/procedures/workspace-prepare.md +78 -0
- package/providers/context/resources/procedures/workspace-restore.md +65 -0
- package/providers/context/resources/templates/indexer-agent-worker.md +67 -0
- package/providers/context/resources/templates/recovery-issue.md +54 -0
- package/providers/context/resources/templates/work-start-report.md +302 -0
- package/providers/context/schemas/approved-revision-result.schema.json +88 -0
- package/providers/context/schemas/indexer-agent-step-result.schema.json +2232 -318
- package/providers/context/schemas/indexer-main-lifecycle-output.schema.json +1 -2
- package/providers/context/schemas/indexer-registry-bootstrap.schema.json +227 -0
- package/providers/context/schemas/source-batch-input.schema.json +15 -8
- package/providers/context/schemas/source-update-result.schema.json +83 -0
- package/providers/context/skills/configure-indexer-providers/SKILL.md +70 -5
- package/providers/context/skills/configure-indexer-providers/references/guides/code-indexer-skill-authoring.md +180 -0
- package/providers/context/skills/configure-indexer-providers/references/guides/indexer-provider-and-customization.md +471 -0
- package/providers/context/skills/configure-indexer-providers/references/guides/markdown-indexer-skill-authoring.md +136 -0
- package/providers/context/skills/configure-indexer-providers/references/guides/note.md +37 -0
- package/providers/context/skills/configure-indexer-providers/references/guides/sessions.md +50 -0
- package/providers/context/skills/configure-indexer-providers/references/reference/indexer-provider-protocol.md +854 -0
- package/providers/context/skills/prepare-indexer-customization-project/SKILL.md +1 -1
- package/providers/context/skills/propose-indexer-customization/SKILL.md +1 -1
- package/providers/context/skills/record-workspace-version/SKILL.md +46 -0
- package/providers/context/skills/recover-workspace/SKILL.md +15 -0
- package/providers/context/skills/resolve-current-indexer-gate/SKILL.md +33 -1
- package/providers/context/skills/run-indexer-agent-step/SKILL.md +403 -26
- package/providers/context/skills/run-indexer-lifecycle/SKILL.md +188 -1
- 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
|
|
14
|
-
|
|
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
|
-
##
|
|
24
|
+
## Default New-Workspace Outputs: Knowledge Base + Website
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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.
|
|
78
|
-
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
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
|
-
```
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
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
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
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
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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).
|