@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,6 @@
|
|
|
1
|
+
schema: agent-graph.resource.file.v1
|
|
2
|
+
id: context.indexer.provider-guide
|
|
3
|
+
kind: procedure
|
|
4
|
+
mediaType: text/markdown
|
|
5
|
+
path: skills/configure-indexer-providers/references/guides/indexer-provider-and-customization.md
|
|
6
|
+
description: Current registry examples, Provider selection and customization instructions with bundled linked manuals.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
schema: agent-graph.resource.file.v1
|
|
2
|
+
id: context.indexer.registry-bootstrap
|
|
3
|
+
kind: schema
|
|
4
|
+
mediaType: application/schema+json
|
|
5
|
+
path: schemas/indexer-registry-bootstrap.schema.json
|
|
6
|
+
description: Initial src/indexers.yaml requirements before Provider selection; not an Action Result.
|
|
@@ -10,10 +10,12 @@ Context reports one root diagnostic with counts and keeps derived findings in a
|
|
|
10
10
|
separate detail view. Codes are stable machine identifiers; this document gives
|
|
11
11
|
the shared recovery boundary.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
explicit evidence-maintenance decision. Projection-only
|
|
15
|
-
repaired by deterministic close.
|
|
16
|
-
|
|
13
|
+
Broken source references or invalid stored structure require a corrected
|
|
14
|
+
candidate or an explicit evidence-maintenance decision. Projection-only
|
|
15
|
+
failures can be repaired by deterministic close. Content-quality suggestions,
|
|
16
|
+
including suspected unfilled placeholders, are advisory: they do not change a
|
|
17
|
+
successful CLI outcome or add a gate. The existing Agent or user Review decides
|
|
18
|
+
whether the content needs revision.
|
|
17
19
|
|
|
18
20
|
`approved-source-orphaned` is a persistent warning produced only after an
|
|
19
21
|
explicit `keep-orphaned` decision. It records that the page remains usable by
|
|
@@ -11,11 +11,17 @@ Markdown. In ordinary mode:
|
|
|
11
11
|
|
|
12
12
|
1. open the complete current Review report;
|
|
13
13
|
2. let the user approve or reject candidates;
|
|
14
|
-
3. ask them to copy the
|
|
15
|
-
4. apply only that exact
|
|
14
|
+
3. ask them to copy the review code back into the conversation; and
|
|
15
|
+
4. apply only that exact review code through the returned command.
|
|
16
16
|
|
|
17
17
|
The user does not need to create a payload file; the Agent may write the pasted
|
|
18
|
-
|
|
18
|
+
review code to ignored scratch storage for the CLI command. Preserve it exactly;
|
|
19
|
+
do not decode, regenerate, summarize, or edit it. Each segment is at most 980
|
|
20
|
+
characters. If there are multiple segments, collect all of them and write one
|
|
21
|
+
segment per line in the same input file before applying once. Never apply a
|
|
22
|
+
partial set. If CLI reports missing, mixed, damaged, or stale segments, follow
|
|
23
|
+
its diagnostic; ask for missing segments or a fresh review code as appropriate.
|
|
24
|
+
Never derive a payload
|
|
19
25
|
from HTML, candidate ids, snapshots, or a default decision.
|
|
20
26
|
|
|
21
27
|
When the user completes a decision from the report, retain the exact report URL
|
|
@@ -25,8 +31,8 @@ report as user-reviewed when it was inaccessible, fully managed, or bypassed by
|
|
|
25
31
|
force approval.
|
|
26
32
|
|
|
27
33
|
Do not mention force approval when first presenting Review. If the user replies
|
|
28
|
-
without a
|
|
29
|
-
report
|
|
34
|
+
without a review code that they approve or want to continue, explain that the
|
|
35
|
+
report review code remains the normal path. Only at that point, when the report is
|
|
30
36
|
unavailable to them, tell them they may explicitly reply with the exact phrase
|
|
31
37
|
`强制批准` to approve the complete current scope without per-candidate choices.
|
|
32
38
|
Execute the Route's `after-human-confirmation` force-approval command only after
|
|
@@ -39,7 +45,8 @@ state that existing approvals were preserved and no Review gate remains.
|
|
|
39
45
|
|
|
40
46
|
When the user explicitly requested fully managed operation, materialize the
|
|
41
47
|
required `context.review-current` Markdown Resource once, read its index and
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
the pages being decided, then use the revision-bound atomic apply command with
|
|
49
|
+
the index's current scope template. Approve only pages actually reviewed; leave
|
|
50
|
+
undecided and repair pages pending. Do not open HTML or persist a parallel review
|
|
51
|
+
ledger. A partial review code in ordinary mode likewise leaves pending pages
|
|
52
|
+
unchanged; all segments of that code are still required.
|
|
@@ -10,8 +10,19 @@ Explain output shapes before SDK factory names. Offer:
|
|
|
10
10
|
|
|
11
11
|
- an Agent knowledge-base package with `AGENTS.md`, a knowledge-query Skill,
|
|
12
12
|
approved OKF roots, and adaptive indexes;
|
|
13
|
-
-
|
|
14
|
-
-
|
|
13
|
+
- a searchable documentation website with the approved knowledge map, source cards and local-time update timestamps;
|
|
14
|
+
- one LLM text bundle for model context or RAG import.
|
|
15
|
+
|
|
16
|
+
These are multi-select channels, not exclusive options. For a new workspace with
|
|
17
|
+
no explicit preference, propose KB + website as the default in the work-start
|
|
18
|
+
report. Reuse that decision or session delegation at packaging; do not ask again
|
|
19
|
+
for each channel. Preserve an existing workspace's configured output choices.
|
|
20
|
+
A user can add a website later by asking to generate a documentation website.
|
|
21
|
+
|
|
22
|
+
The user may postpone packaging and keep the approved Markdown in `knowledge/`.
|
|
23
|
+
When a user decision is required by the current Route and no session authority exists, collect the choices together; postponing is not a
|
|
24
|
+
package declaration or a completed delivery. Do not write a `none` factory or
|
|
25
|
+
claim that `packages: []` records a finished output choice.
|
|
15
26
|
|
|
16
27
|
For the Agent knowledge-base package, show a compact tree and explain that
|
|
17
28
|
small directory contents are linked from the parent index while a directory
|
|
@@ -31,6 +42,8 @@ explicit omission only when the author asks for another delivery policy. Git
|
|
|
31
42
|
raw uses an immutable derived URL or an author-provided HTTPS `urlPrefix`;
|
|
32
43
|
publishing and access remain the author's responsibility.
|
|
33
44
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
Map KB + website to one `kbPackage` with `site` configured, and LLM text to an
|
|
46
|
+
additional `llmsPackage`. There is no `both` factory. If only a website is wanted,
|
|
47
|
+
explain that it is built alongside the KB and only the sibling `dist/<base>-site/` directory needs
|
|
48
|
+
to be distributed. The Agent makes the small SDK configuration edit; users do
|
|
49
|
+
not need to write webpage code. Do not add a separate confirmation per output.
|
|
@@ -6,12 +6,20 @@ mediaType: text/markdown
|
|
|
6
6
|
|
|
7
7
|
# Source-boundary dialogue
|
|
8
8
|
|
|
9
|
+
For the first production task in a new workspace, use the required work-start
|
|
10
|
+
procedure before presenting this source registration action. Read a supplied
|
|
11
|
+
plan as task guidance, read batch metadata titles under that procedure's limits and
|
|
12
|
+
10-document failure fallback (no bodies or outlines; retain URLs when titles are unavailable),
|
|
13
|
+
resolve every required start condition, present the report and wait for feedback.
|
|
14
|
+
Do not register the plan itself or begin capture merely because it contains source
|
|
15
|
+
paths. Once confirmed, include the report path required by the current input schema.
|
|
16
|
+
|
|
9
17
|
Describe the boundary in user terms before showing a registration command. For
|
|
10
18
|
code, distinguish a whole repository/subspace from one concrete package or
|
|
11
19
|
subdirectory. For documents, distinguish one file, a local document directory,
|
|
12
20
|
a documentation site, and a remote document.
|
|
13
21
|
|
|
14
|
-
|
|
22
|
+
For repo/file/lark registration, explain the observable impact:
|
|
15
23
|
|
|
16
24
|
- the date is one capture batch;
|
|
17
25
|
- every confirmed source is a module inside that batch;
|
|
@@ -23,7 +31,9 @@ Do not invent `-A`, `-B`, or sequence suffixes. If today's batch exists, append
|
|
|
23
31
|
the newly confirmed module to it.
|
|
24
32
|
|
|
25
33
|
When the current request already lists exact local modules or documents, do not
|
|
26
|
-
repeat
|
|
34
|
+
repeat those source names as a separate question in either ordinary or fully managed
|
|
35
|
+
mode. Their presence does not by itself settle reader purpose, output language,
|
|
36
|
+
delivery choices or other required work-start information.
|
|
27
37
|
Resolve each named module to one unique existing local path inside the
|
|
28
38
|
user-scoped root, then pass that path in the batch payload. Repository paths are
|
|
29
39
|
relative to the Context project root; the CLI may mechanically read their Git
|
|
@@ -6,22 +6,20 @@ mediaType: text/markdown
|
|
|
6
6
|
|
|
7
7
|
# Workflow mode after workspace creation
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
asked
|
|
12
|
-
choice,
|
|
9
|
+
Explain the modes only when the conversation has no explicit choice and no mode
|
|
10
|
+
question has already been asked. Reuse an explicit choice in a task brief the
|
|
11
|
+
user asked you to execute, including fully managed authorization. Do not repeat
|
|
12
|
+
the choice after capture or continuation, or persist session authority in files.
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
provides HTML reports for the user to inspect. The current product estimate is
|
|
16
|
-
that these review rounds make the overall workflow about 40% slower, with the
|
|
17
|
-
exact difference depending on workspace size and user response time.
|
|
18
|
-
- Fully managed mode skips delegatable content-review surfaces and continues
|
|
19
|
-
with the same revision-bound resolution Actions. It is faster, but gives the
|
|
20
|
-
user fewer opportunities to control or adjust intermediate content.
|
|
14
|
+
Describe both modes neutrally in the user's language:
|
|
21
15
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
- Ordinary review pauses at review decisions and provides HTML reports, giving
|
|
17
|
+
the user opportunities to inspect content, catch deviations and adjust direction.
|
|
18
|
+
- Fully managed operation delegates eligible reviews to the Agent and continues
|
|
19
|
+
with the same revision-bound Actions, reducing manual involvement. The user
|
|
20
|
+
has fewer opportunities to inspect intermediate results before delivery.
|
|
21
|
+
|
|
22
|
+
Neither mode bypasses source boundaries, external permissions, evidence checks,
|
|
23
|
+
verification failures or non-delegatable decisions. Do not promise a percentage
|
|
24
|
+
speed difference. When a choice is needed, ask which mode the user prefers for
|
|
25
|
+
this conversation.
|
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: context.sdk.knowledge-updates
|
|
3
|
+
kind: procedure
|
|
4
|
+
mediaType: text/markdown
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Update existing knowledge
|
|
8
|
+
|
|
9
|
+
Use the same Context conversation and the current workspace. Identify whether
|
|
10
|
+
this is a continuation, an adjustment to the current task, a correction to one
|
|
11
|
+
page, or an independent task. An old Route does not incorporate a new request.
|
|
12
|
+
For explicit workspace preparation, Git commit or historical restoration, use
|
|
13
|
+
[prepare](workspace-prepare.md), [commit](workspace-commit.md) or
|
|
14
|
+
[restore](workspace-restore.md); these Agent-led operations do not automatically
|
|
15
|
+
start production. Otherwise, do not start an independent task while another remains: explain what is saved
|
|
16
|
+
and unfinished, and obtain the user's choice to finish or roll back the current
|
|
17
|
+
work. Do not delete runtime files to simulate rollback.
|
|
18
|
+
|
|
19
|
+
For an unambiguous page correction, use `context revise "<path or title>"
|
|
20
|
+
--instruction "<correction>" --format json`. Context supplies the existing text
|
|
21
|
+
and continues through Review and delivery. Expression-only changes need no
|
|
22
|
+
source capture or Parser. Preserve prior confirmed contributions; distinguish
|
|
23
|
+
actual behavior, a confirmed decision, and a proposal that is not implemented.
|
|
24
|
+
|
|
25
|
+
## First-task intake budget
|
|
26
|
+
|
|
27
|
+
Before registration and capture, the Agent uses the user's task instructions and
|
|
28
|
+
reads batch metadata titles across the explicitly supplied document list. Lark
|
|
29
|
+
metadata requests accept at most 200 entries each, not 200 words or 200 documents
|
|
30
|
+
overall. H1/H2 may be reused only when metadata returns them without
|
|
31
|
+
body retrieval; Lark batch metadata returns titles, not headings. Batch failure
|
|
32
|
+
falls back to at most 10 unresolved document title lookups total, unless a shared
|
|
33
|
+
authentication failure makes those calls redundant. The Agent does not fetch
|
|
34
|
+
source bodies, outlines, images or attachments. Missing title metadata is
|
|
35
|
+
optional: preserve the original URL without falling back to body retrieval or
|
|
36
|
+
changing credentials. Resolve intent from the conversation; refine provisional
|
|
37
|
+
chapters and module boundaries from evidence after formal capture.
|
|
38
|
+
|
|
39
|
+
## Workspace versions and changelog
|
|
40
|
+
|
|
41
|
+
`package.json.version` is the workspace SemVer. At completed-scope delivery the
|
|
42
|
+
workflow asks the Agent to inspect formal changes and record an increasing version
|
|
43
|
+
with a concise changelog. Added modules or expanded material coverage increment
|
|
44
|
+
minor; corrections, existing-module updates, navigation and persistent status
|
|
45
|
+
changes increment patch. Major requires an explicit user instruction. Temporary
|
|
46
|
+
progress under `.tmp/` never causes a version increase.
|
|
47
|
+
|
|
48
|
+
Version recording runs at completed-scope delivery after Review, Close and package
|
|
49
|
+
configuration/template approval, before the final build. The record response
|
|
50
|
+
returns the next workspace Route, so no extra status call is needed. Build retries
|
|
51
|
+
reuse the recorded version when formal content is unchanged. Intermediate batches
|
|
52
|
+
do not each receive a version.
|
|
53
|
+
|
|
54
|
+
The workspace AGENTS.md and version-writing instructions require each entry's
|
|
55
|
+
details to stay within 1500 visible characters, including punctuation across the
|
|
56
|
+
title, changes, trigger descriptions and actor display name, excluding protocol
|
|
57
|
+
keys, version and date. The Agent compresses longer drafts before submission,
|
|
58
|
+
preserving main changes, impact and triggers instead of truncating text or splitting
|
|
59
|
+
the iteration into extra versions. This is an Agent writing rule, not a prose-quality
|
|
60
|
+
CLI gate.
|
|
61
|
+
|
|
62
|
+
`context version inspect --format json` returns changed paths and a digest. The
|
|
63
|
+
coordinator submits `context version record --input <file> --format json` with:
|
|
64
|
+
|
|
65
|
+
```yaml
|
|
66
|
+
expected_digest: "<digest returned by inspect>"
|
|
67
|
+
version: 0.2.0
|
|
68
|
+
title: Add module recovery guidance
|
|
69
|
+
changes:
|
|
70
|
+
- Document recovery conditions and the supported retry flow.
|
|
71
|
+
triggers:
|
|
72
|
+
- kind: module
|
|
73
|
+
description: Additional module material requested in this iteration.
|
|
74
|
+
actor:
|
|
75
|
+
kind: lark
|
|
76
|
+
name: Example User
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
`actor` is optional; omit it to use local Git `user.name` when configured. Use a
|
|
80
|
+
Lark display name only when explicitly known from the conversation. Trigger kinds
|
|
81
|
+
are `initial`, `note`, `sessions`, `mr`, `module`, `document`, `navigation`,
|
|
82
|
+
`repair`, `dist`, and `other`. Agent-written fields describe the actual diff and
|
|
83
|
+
conversation; they must not expose credentials, raw transcripts or private IDs.
|
|
84
|
+
|
|
85
|
+
The CLI writes `changelog.yaml`, generated `CHANGELOG.md`, `package.json` and the
|
|
86
|
+
`.context-version.json` content baseline together. Keep these formal files with
|
|
87
|
+
the workspace; do not hand-edit generated baselines. Git-managed and unignored
|
|
88
|
+
new files are compared (without Git, non-runtime workspace files are compared).
|
|
89
|
+
Version metadata itself, `dist`, `.tmp` and dependencies do not cause changes.
|
|
90
|
+
|
|
91
|
+
Successful builds record version and per-package hashes in `.context-builds.json`.
|
|
92
|
+
They do not increase versions. Before publishing, `context version publish-check
|
|
93
|
+
--format json` compares against `.context-published.json`. A same-version changed
|
|
94
|
+
output requires a patch using `version inspect --publish` and a `dist` trigger,
|
|
95
|
+
then a rebuild. Record `version published --hash <checked-hash> --receipt
|
|
96
|
+
<successful-publication-reference> --format json` only after external success.
|
|
97
|
+
No command commits, tags or uploads automatically.
|
|
98
|
+
|
|
99
|
+
Website history is available at `changelog.html`: cards are newest first, the
|
|
100
|
+
latest three expanded and older cards collapsed. The History button beside the
|
|
101
|
+
theme switch and footer update timestamps link there. KB and LLMS outputs carry
|
|
102
|
+
the same workspace version and changelog.
|
|
103
|
+
|
|
104
|
+
## Customize the knowledge map at any time
|
|
105
|
+
|
|
106
|
+
For a knowledge-map-only change, use the existing `context task adjust
|
|
107
|
+
--input <file|-> --format json` action with `knowledge_map`. Supply its
|
|
108
|
+
current `expected_revision`, explicit `upsert` entries and `remove` keys. Each
|
|
109
|
+
entry retains its stable key, parent, title and order; optional targets use
|
|
110
|
+
article identity and section key. The current structure preview supplies those
|
|
111
|
+
identities. Read the persistent `src/knowledge-map.yaml`; use
|
|
112
|
+
`expected_revision: null` only when no knowledge map exists.
|
|
113
|
+
After adjustment, follow status to rebuild affected packages. This changes the
|
|
114
|
+
reading organization without capturing sources or rewriting approved prose.
|
|
115
|
+
Do not directly edit generated package navigation or use titles as identities.
|
|
116
|
+
|
|
117
|
+
Users can ask in conversation to move a topic, rename a directory, change order,
|
|
118
|
+
or organize the same articles for another reader task. Handle this during ongoing
|
|
119
|
+
production or after completion through the same adjustment; no active Indexer
|
|
120
|
+
task, source recapture or new mode choice is required. Finish or revoke active
|
|
121
|
+
worker assignments before changing the map. Preserve unrelated entries and page
|
|
122
|
+
identities. The map controls website navigation and LLMS organization together.
|
|
123
|
+
|
|
124
|
+
For each new or changed article, the Agent decides whether to retain its current
|
|
125
|
+
placement, add another placement, move it, or create a warranted category. Check
|
|
126
|
+
these choices against the user's settled organization before structure approval
|
|
127
|
+
and delivery. New articles must be bound even if the map revision has not changed;
|
|
128
|
+
modifying a title alone is not a reason to change article identity. Never satisfy
|
|
129
|
+
coverage by mechanically placing every new page under an unrelated catch-all.
|
|
130
|
+
Build reports missing bindings for the Agent to resolve; it does not classify
|
|
131
|
+
content. Moving a menu entry does not change the article URL.
|
|
132
|
+
|
|
133
|
+
## Edit one section or review part of a batch
|
|
134
|
+
|
|
135
|
+
The current approved-revision Route accepts either full `markdown` or explicit
|
|
136
|
+
`sections` edits. Use an existing `writing_context.current_sections` ID and an
|
|
137
|
+
ordered `content` list of `{ "markdown": "new text" }` and/or
|
|
138
|
+
`{ "program": "exact current program token" }`. Unchanged sections and the
|
|
139
|
+
selected section's source references remain intact. Use full Markdown when
|
|
140
|
+
changing structure, adding a page or when a section has no unambiguous ID.
|
|
141
|
+
|
|
142
|
+
For an optional check, append `--preview` to the current `action complete-current`
|
|
143
|
+
command with the same revision and input file. It validates and returns the
|
|
144
|
+
assembled page and previous text without accepting the edit. Submit the same
|
|
145
|
+
input without that flag to continue. A preview is not approval and does not make
|
|
146
|
+
a stale revision valid.
|
|
147
|
+
|
|
148
|
+
Review can approve checked pages while leaving repair pages pending. The HTML
|
|
149
|
+
review code includes pending positions; managed Review provides the same current
|
|
150
|
+
scope as a JSON template. Send decisions only for pages actually reviewed. Omit
|
|
151
|
+
means a durable exclusion, not repair. Partial approval alone does not build.
|
|
152
|
+
|
|
153
|
+
When the user requests an earlier delivery, use the Route's `context run
|
|
154
|
+
--deliver` request. Independently approved pages can pass close/build while
|
|
155
|
+
pending candidates remain for Review or repair. Links to pending or missing
|
|
156
|
+
pages keep their necessary scope together. Source processing baselines advance
|
|
157
|
+
only after the entire update finishes. Failed builds retain the selected delivery
|
|
158
|
+
and pending work; repair the cause and follow the current Route.
|
|
159
|
+
|
|
160
|
+
## Acquire the selected change once
|
|
161
|
+
|
|
162
|
+
Use the host's existing Git, code-hosting or document tools and their installed
|
|
163
|
+
guidance. Context does not poll a platform, discover remote changes, or infer
|
|
164
|
+
that a merge request is merged. Reading an already selected source does not
|
|
165
|
+
require a new permission question when access was already authorized. Do not
|
|
166
|
+
change the user's checkout or fetch another repository without that scope.
|
|
167
|
+
|
|
168
|
+
For a branch or MR/PR, establish the repository, intended target branch, merge
|
|
169
|
+
state and actual fixed target commit. An unmerged proposal is not the current
|
|
170
|
+
mainline. A merge, squash or rebase can produce different commit identities;
|
|
171
|
+
use the target branch's actual result, not the feature branch SHA. Include
|
|
172
|
+
other intervening changes between the last processed version and the selected
|
|
173
|
+
target when they affect the registered modules. Reverts are real changes.
|
|
174
|
+
|
|
175
|
+
Use already available local Git objects to compare the selected module trees
|
|
176
|
+
and necessary diffs. A new repository commit with unchanged module trees can
|
|
177
|
+
be a no-knowledge-change conclusion. That conclusion must also account for any
|
|
178
|
+
new note or development context. If a baseline is unavailable after force push,
|
|
179
|
+
a shallow checkout or history cleanup, state that a complete old diff is
|
|
180
|
+
unavailable; compare current material with approved knowledge in the confirmed
|
|
181
|
+
scope. Do not claim no change because a Git command failed. A repeated MR may
|
|
182
|
+
still bring new relevant context; it does not justify moving the code baseline
|
|
183
|
+
backwards or summarizing unrelated commits as part of that MR.
|
|
184
|
+
|
|
185
|
+
For documents, a revision shortcut is valid only if the host actually exposes a
|
|
186
|
+
reliable version for the selected document and its needed images/attachments.
|
|
187
|
+
Otherwise read that selected document and resources. Keep the returned bytes
|
|
188
|
+
for the existing capture/import action; do not fetch them again as verification.
|
|
189
|
+
An unchanged body does not prove images are unchanged. Distinguish lack of
|
|
190
|
+
permission, deleted content, and moved content; a read failure is not permission
|
|
191
|
+
to retire a knowledge page. CLI status describes local acquisition only.
|
|
192
|
+
|
|
193
|
+
After the current source configuration and material identify the chosen fixed
|
|
194
|
+
versions, submit the update with `context update --input <file|-> --format json`.
|
|
195
|
+
Write ordinary YAML or JSON with the host's editor, without a generated wrapper
|
|
196
|
+
program. Input files belong under this workspace's `.tmp/`.
|
|
197
|
+
|
|
198
|
+
```yaml
|
|
199
|
+
scopes:
|
|
200
|
+
- requirement_ref: reader-guide
|
|
201
|
+
source_ref: repo:20260901/library
|
|
202
|
+
changes: The selected change adds one public option; inspect its explanation and examples.
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
`requirement_ref` is the existing requirement id. Omit `module_refs` for a whole
|
|
206
|
+
confirmed source scope. `processed_version` may be supplied to bind the exact
|
|
207
|
+
acquired commit or document content digest; otherwise Context captures it from
|
|
208
|
+
the existing local material. A supplied version must match that material.
|
|
209
|
+
Follow the returned Route. The candidate list is a conservative source match,
|
|
210
|
+
not a list of pages that must change. Read the actual change and current pages,
|
|
211
|
+
also checking additions that have no old page reference. The scope is complete
|
|
212
|
+
only after every required change is reviewed, closed and built, or after an
|
|
213
|
+
explicit conclusion that it needs no knowledge changes.
|
|
214
|
+
|
|
215
|
+
Before importing a `note`, read [note source preparation](note.md).
|
|
216
|
+
Before importing `sessions`, read [development summary preparation](sessions.md).
|
|
217
|
+
Choose the reference for the actual input; do not read both by default.
|
|
218
|
+
|
|
219
|
+
## Save text without an external file
|
|
220
|
+
|
|
221
|
+
Use `context source import --input <file|-> --format json`:
|
|
222
|
+
|
|
223
|
+
```yaml
|
|
224
|
+
type: note
|
|
225
|
+
name: 20260907/decision-context.md
|
|
226
|
+
markdown: |
|
|
227
|
+
# Decision context
|
|
228
|
+
|
|
229
|
+
The selected discussion confirmed this exception for the stated situation.
|
|
230
|
+
The implementation has not yet changed. Source: the discussion supplied here.
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
The body is saved directly under `sources/note/` or `sources/sessions/`; no
|
|
234
|
+
external `local`, capture, registry or second copy is required. Use a readable
|
|
235
|
+
semantic filename under an eight-digit date directory. Do not put a date, hash
|
|
236
|
+
or session id into the filename again. Keep the path for retries and later
|
|
237
|
+
edits. To revise an existing source, read it and pass its current `base_digest`
|
|
238
|
+
with the replacement Markdown. Distinct same-day material needs a distinct
|
|
239
|
+
semantic name, never a silent overwrite. `source list`, `source get` and
|
|
240
|
+
`source inspect` expose the actual source paths. Removal uses the existing
|
|
241
|
+
preview and exact plan digest, and refuses still-referenced text.
|
|
242
|
+
|
|
243
|
+
Saving alone does not start indexing. If the user only wants the source saved,
|
|
244
|
+
report its path and stop. For production, reuse the existing requirement:
|
|
245
|
+
put independent content in `target_scope`; put supporting material in
|
|
246
|
+
`evidence_source_scope` and ensure the selected Indexer's existing `read_scope`
|
|
247
|
+
covers it. Do not create a separate Markdown production target for a supporting
|
|
248
|
+
explanation of a code page. In the source-update decision, include its exact
|
|
249
|
+
`supporting_sources` on the affected page. Include that source's scope in this
|
|
250
|
+
update so completion can distinguish code from newly processed context.
|
|
251
|
+
|
|
252
|
+
## Development context accompanying a commit
|
|
253
|
+
|
|
254
|
+
Use `trace-session` only as this conditional source-preparation step. If the MR,
|
|
255
|
+
code and existing design already explain the relevant information, cite them.
|
|
256
|
+
Write a `sessions` source only when real, explicitly available development
|
|
257
|
+
context contains useful decisions, reasons or limits missing from those sources.
|
|
258
|
+
Do not fabricate discussion from a diff, search host session storage, ask for
|
|
259
|
+
nonessential history, or create an empty/skip report. This is only the code-related subcase. An authorized conversation summary
|
|
260
|
+
without an MR or commit is also `sessions`; see the sessions source guide.
|
|
261
|
+
Optional `changes` belongs in the source frontmatter, not knowledge headers.
|
|
262
|
+
|
|
263
|
+
Use the available merge date, or commit date for a pure commit, for the initial
|
|
264
|
+
directory; if unavailable or saving an unmerged discussion explicitly, use the
|
|
265
|
+
current collection date and explain the context. Do not query a platform just
|
|
266
|
+
for this date. Keep the path when later adding a reference or retrying another
|
|
267
|
+
day. One coherent change can share one summary; separate unrelated changes.
|
|
268
|
+
|
|
269
|
+
The shortest useful body is the real repository/MR/commit reference plus one
|
|
270
|
+
paragraph explaining what the code does not tell a later reader. Describe only
|
|
271
|
+
the actually associated commit subset. Omit a full change recap, transcript,
|
|
272
|
+
test log, session id and formal approval claim. Write confirmed decisions as
|
|
273
|
+
such, alternatives as alternatives, and unresolved proposals as unresolved.
|
|
274
|
+
Do not claim execution or tests that were not observed. The writing aid below
|
|
275
|
+
is optional; no section is mandatory:
|
|
276
|
+
|
|
277
|
+
```markdown
|
|
278
|
+
# <Change topic>
|
|
279
|
+
|
|
280
|
+
<Reference the actual repository and MR or concrete commits already available.>
|
|
281
|
+
|
|
282
|
+
<Explain the useful decision, reason or constraint absent from the code/design.
|
|
283
|
+
State its applicability and distinguish implemented behavior from a proposal.>
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
Late context can update a page even when the code version is already processed.
|
|
287
|
+
Reuse that fixed code version and current approved prose; do not restart Parser
|
|
288
|
+
merely because a summary arrived. Import once, then include the necessary
|
|
289
|
+
context with the same knowledge update. Saved context survives a failed build;
|
|
290
|
+
saving it does not mean its knowledge impact has been delivered.
|
|
291
|
+
|
|
292
|
+
## Optional correction of an upstream document
|
|
293
|
+
|
|
294
|
+
Local knowledge approval and fully managed execution do not authorize a remote
|
|
295
|
+
write. First determine whether the knowledge misunderstood correct source text,
|
|
296
|
+
a confirmed decision has not reached the source, or the conclusion is still
|
|
297
|
+
uncertain. The first needs only a local correction; the second can use a note
|
|
298
|
+
locally while an upstream change is considered; uncertainty is not a fact.
|
|
299
|
+
|
|
300
|
+
Present the exact document, affected passage, proposed before/after text, reason
|
|
301
|
+
and affected knowledge. Reuse existing authorization for that concrete edit;
|
|
302
|
+
otherwise ask for it. Before writing, read the affected passage again using the
|
|
303
|
+
host document tool. Adapt only within the authorized scope if another person
|
|
304
|
+
has edited it; ask again only when the requested change materially differs.
|
|
305
|
+
|
|
306
|
+
Execute with the host tool and read back the result. If the write result is
|
|
307
|
+
uncertain, read back before retrying an insertion. Only the actual returned
|
|
308
|
+
source text and resources may refresh its snapshot. Feed them into the same
|
|
309
|
+
local capture/update route; a note or proposed patch is not a remote snapshot.
|
|
310
|
+
If the remote edit succeeded but local build failed, resume local delivery;
|
|
311
|
+
do not repeat the remote edit. Explain remote and local outcomes separately.
|
|
312
|
+
Do not automatically delete an absorbed note, post comments, notify groups or
|
|
313
|
+
change permissions. Permission failure can leave a concrete suggestion for
|
|
314
|
+
the user without blocking an independently supported local correction.
|
|
315
|
+
|
|
316
|
+
## Import a document response already read by the host
|
|
317
|
+
|
|
318
|
+
For a registered Lark source, retain the actual full JSON response from
|
|
319
|
+
`lark-cli docs +fetch` and each returned continuation page. Do not reconstruct a
|
|
320
|
+
response from a summary. Use the same source import command:
|
|
321
|
+
|
|
322
|
+
```yaml
|
|
323
|
+
type: lark
|
|
324
|
+
name: 20260907/guide
|
|
325
|
+
access_identity: user
|
|
326
|
+
response_files: [.tmp/guide-response.json]
|
|
327
|
+
media_files:
|
|
328
|
+
actual-image-token: .tmp/downloaded-image.png
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
Only include real media tokens and downloaded files. Context runs the ordinary
|
|
332
|
+
capture normalization and resource checks on these bytes. It does not fetch the
|
|
333
|
+
provided document again; missing required resources follow existing capture
|
|
334
|
+
handling. Partial outline/section fragments cannot replace a full snapshot.
|
|
335
|
+
Use the identity that actually produced the response, not a credential fallback
|
|
336
|
+
chosen to bypass permissions. Subsequent local updates use the captured version
|
|
337
|
+
and the same Review/build route.
|
|
338
|
+
|
|
339
|
+
## Adjust or roll back current work
|
|
340
|
+
|
|
341
|
+
For an explicit same-task change to native Indexer source inputs, use
|
|
342
|
+
`context task adjust --input <file|-> --format json` with `scopes` containing the
|
|
343
|
+
selected `source_ref` and optional `module_refs`, plus an `instruction` explaining
|
|
344
|
+
the adjustment. It invalidates those old worksets and retains independent work.
|
|
345
|
+
Import the fixed replacement material before following the refreshed Route.
|
|
346
|
+
Do not execute the old batch payload. A local page correction still uses
|
|
347
|
+
`revise`; it is not a reason to invalidate an entire source.
|
|
348
|
+
|
|
349
|
+
For an independent task, complete the old Route unless the user chooses a
|
|
350
|
+
concrete rollback. Without an identifiable baseline or attribution of changes,
|
|
351
|
+
ask about that gap or offer completion; never guess original bytes. Prepare
|
|
352
|
+
`context task rollback --input <file|-> --format json` using:
|
|
353
|
+
|
|
354
|
+
```yaml
|
|
355
|
+
summary: Restore the selected page and discard unfinished follow-up drafts; keep other work.
|
|
356
|
+
discard_unfinished: true
|
|
357
|
+
files:
|
|
358
|
+
- path: knowledge/guides/selected-page.md
|
|
359
|
+
base_digest: sha256:<current-file-digest>
|
|
360
|
+
content: |
|
|
361
|
+
<exact recoverable original Markdown, not a newly generated replacement>
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
`files` contains only the explicitly selected reversions. `content: null` removes
|
|
365
|
+
an explicitly selected file that this task added; `base_digest: null` is for
|
|
366
|
+
restoring an absent file. Include changed sources/configuration/processed scopes
|
|
367
|
+
when they belong to the rollback. Leave unrelated and pre-existing edits alone.
|
|
368
|
+
An empty list only discards unfinished work and must not be described as undoing
|
|
369
|
+
already delivered pages. The preview shows actual before/after contents and
|
|
370
|
+
draft loss. Once the user approves that exact scope, run the preview's apply
|
|
371
|
+
command with its plan digest. Then follow the rollback Route through close,
|
|
372
|
+
build and cleanup. A failed build retries delivery, not the already-applied
|
|
373
|
+
reversions. Begin the independent task only after cleanup succeeds.
|
|
374
|
+
|
|
375
|
+
A managed source can be explicitly renamed with `context source rename
|
|
376
|
+
"<note:... or sessions:...>" --name "YYYYMMDD/new-name.md" --format json` after
|
|
377
|
+
its active work is finished. Review the file/reference changes, then apply the
|
|
378
|
+
returned digest-bound command. Existing references move with it; the original
|
|
379
|
+
body is not copied into another source type. Follow status to refresh affected
|
|
380
|
+
knowledge structure and packages.
|
|
381
|
+
|
|
382
|
+
To move an approved page, use `context revise "<old path>" --move-to "<new path>"
|
|
383
|
+
--instruction "<requested move and content changes>" --format json`. The new
|
|
384
|
+
path stays in the same collection. The revision retains the page identity,
|
|
385
|
+
rebases outgoing links and updates incoming Markdown links at approval. A new
|
|
386
|
+
subject name alone only needs a title/content revision; do not create duplicate
|
|
387
|
+
pages. Retirement is a content decision: explain the inapplicable material and
|
|
388
|
+
supported replacement before changing its page and referring navigation.
|
|
389
|
+
|
|
390
|
+
### Adjust inputs while a local update is unfinished
|
|
391
|
+
|
|
392
|
+
`context task adjust --input <file> --format json` also applies to an active
|
|
393
|
+
approved-page revision or source-update queue. Keep `scopes` and `instruction`
|
|
394
|
+
explicit. First call without `refresh`; it authorizes replacing only those
|
|
395
|
+
inputs and blocks page completion while acquisition is pending. Import the
|
|
396
|
+
selected new material, then repeat with `refresh: true` to bind the actual local
|
|
397
|
+
versions and obtain the new Route. Do not submit the old revision. Current
|
|
398
|
+
prose and queued pages remain; an affected draft returns to writing/review.
|
|
399
|
+
An unrelated queued page does not revoke an unchanged current page's review.
|
|
400
|
+
If a page has already been applied, finish its close/build before changing its
|
|
401
|
+
inputs. Only the final completed scope advances its processed baseline.
|
|
402
|
+
|
|
403
|
+
For several documents, `source import` also accepts a JSON/YAML array of the same
|
|
404
|
+
single-document inputs. Its receipt reports each zero-based input index and
|
|
405
|
+
success or error separately; a partial batch returns a nonzero exit code.
|
|
406
|
+
Keep successful sources and retry only failed entries. It does not fetch a
|
|
407
|
+
successful prefetched document again or roll back an unrelated saved note.
|
|
408
|
+
|
|
409
|
+
To add a new supporting source to an unfinished local revision, first save it
|
|
410
|
+
and include it in the current requirement's evidence scope and the selected
|
|
411
|
+
Indexer's read scope. Its `task adjust` scope also supplies the explicit
|
|
412
|
+
`requirement_ref`. This extends the current page's available sources and keeps
|
|
413
|
+
queued pages; it does not silently start another task or another Indexer.
|
|
414
|
+
|
|
415
|
+
### Replacing supporting article identities
|
|
416
|
+
|
|
417
|
+
When an upstream article is split, merged or removed, start `context revise` for
|
|
418
|
+
its consumer and use `context task adjust --input - --format json` with
|
|
419
|
+
`instruction` and `knowledge_dependencies: { dependencies }`. Each dependency
|
|
420
|
+
uses an approved `artifact_ref`, optional `section_refs`, and `required` flag.
|
|
421
|
+
The current Author input returns authorized replacement facts and their evidence.
|
|
422
|
+
Repeat the adjustment with `knowledge_dependencies.sections`, selecting each
|
|
423
|
+
retained `section_key` and its full `fact_refs` and `evidence_refs` support. Then
|
|
424
|
+
revise the explanation and complete normal Review, close and build. An explicit
|
|
425
|
+
empty dependency list removes the relationship only when remaining sections have
|
|
426
|
+
valid direct support. Missing dependencies, changed approvals and invalid source
|
|
427
|
+
references cannot silently become current evidence. Writing quality remains an
|
|
428
|
+
Agent/Review decision; no chapter-count or wording gate is introduced.
|
|
@@ -8,7 +8,11 @@ mediaType: text/markdown
|
|
|
8
8
|
|
|
9
9
|
Lark documents can contain evidence that is not present in the readable text
|
|
10
10
|
body. Context handles these resources mechanically during `captureLark`; the
|
|
11
|
-
Agent does not
|
|
11
|
+
Agent does not reconstruct resource bytes or substitute a summary for them.
|
|
12
|
+
When the host already fetched the document, `context source import` accepts the
|
|
13
|
+
actual full response files and downloaded media for the same normalization and
|
|
14
|
+
resource checks; it does not fetch that supplied body again. See
|
|
15
|
+
[importing an existing response](knowledge-updates.md#import-a-document-response-already-read-by-the-host).
|
|
12
16
|
|
|
13
17
|
## Resource policy
|
|
14
18
|
|