@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,428 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: procedure.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.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: procedure.note
|
|
3
|
+
kind: procedure
|
|
4
|
+
mediaType: text/markdown
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Prepare a note source
|
|
8
|
+
|
|
9
|
+
Read this before importing or correcting a note. The CLI saves supplied Markdown;
|
|
10
|
+
source preparation happens before knowledge production.
|
|
11
|
+
|
|
12
|
+
A note may contain supplied original text, selected verbatim excerpts, a summary,
|
|
13
|
+
or a useful combination. Do not require raw text plus a summary for every note.
|
|
14
|
+
If both exist, distinguish them with readable headings or prose. Preserve short
|
|
15
|
+
original text when useful; do not duplicate it just to fill a form. Label an
|
|
16
|
+
external or Agent summary as a summary, never an original transcript.
|
|
17
|
+
|
|
18
|
+
For long inputs, retain relevant excerpts or summarize within the agreed purpose.
|
|
19
|
+
Keep qualifications, exceptions, disagreement and unresolved questions that affect
|
|
20
|
+
the conclusion. State the available origin and selected scope, including material
|
|
21
|
+
omissions when consequential. Quote only actual verbatim input. Do not invent
|
|
22
|
+
links, speakers, dates or confirmation. A link does not mean its target was read;
|
|
23
|
+
ask about essential missing context rather than fetching everything for a label.
|
|
24
|
+
|
|
25
|
+
Save the body under sources/note/YYYYMMDD/topic.md with the existing import action.
|
|
26
|
+
No extra raw/summary fields, sidecar, duplicate file or mandatory section template
|
|
27
|
+
is needed. Saving alone does not start indexing. Independent reader topics can
|
|
28
|
+
use the selected Note Provider (default or business replacement); supporting
|
|
29
|
+
explanations use the current page's evidence/read scope, retaining its primary.
|
|
30
|
+
When specialized interpretation is needed, explicitly select a compatible
|
|
31
|
+
extension layer. Do not enable another skill merely because a note exists.
|
|
32
|
+
|
|
33
|
+
Knowledge integrates the useful information into explanations, rules or steps
|
|
34
|
+
for the reader. Do not copy the note wholesale or turn proposals into facts.
|
|
35
|
+
An exact short passage is appropriate when its wording matters. Cite the stored
|
|
36
|
+
material actually read, without claiming access to an unavailable original.
|
|
37
|
+
|
|
38
|
+
If the note misrepresents the supplied material, explicitly correct the source
|
|
39
|
+
with its current base_digest, following task adjust first for pinned inputs.
|
|
40
|
+
Do not overwrite original text merely to fit new prose. If the source is correct
|
|
41
|
+
but the knowledge is misleading, revise only that page through Author/Review.
|
|
42
|
+
A confirmed future decision may differ from current implementation; make the
|
|
43
|
+
boundary clear. Knowledge approval does not change or remove the note.
|
|
@@ -6,11 +6,14 @@ mediaType: text/markdown
|
|
|
6
6
|
|
|
7
7
|
# Package output
|
|
8
8
|
|
|
9
|
+
Before editing, read `context.sdk.package-outputs`, especially its Agent configuration
|
|
10
|
+
and delivery recipe. It contains the concrete SDK declarations and preview steps.
|
|
11
|
+
|
|
9
12
|
Package selection decides how approved knowledge is presented to downstream
|
|
10
13
|
agents or text consumers. Explain the available Context package kinds and their
|
|
11
14
|
directory shape before asking the user to choose.
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
Using the settled multi-select choice or current session authority, declare the packages in `src/index.ts` using the SDK schema
|
|
14
17
|
resource. The current Route's `configuration.contract` lists the supported
|
|
15
18
|
output choices, required fields, mechanical defaults, and follow-up status
|
|
16
19
|
command; do not infer another factory or hidden default. Templates may customize presentation, but they must not overwrite
|
|
@@ -46,3 +49,19 @@ external links and accepts responsibility for publishing and access. Use a
|
|
|
46
49
|
confirmed immutable HTTPS prefix where possible; do not infer or probe an
|
|
47
50
|
unknown host convention. Explicit omission keeps unresolved links and must be
|
|
48
51
|
described as such.
|
|
52
|
+
|
|
53
|
+
For a new workspace without explicit output preferences, use KB + website. Enable
|
|
54
|
+
`site: { title: <workspace title>, lang: <workspace language> }` on the same
|
|
55
|
+
`kbPackage` in `src/index.ts`; selecting LLMS also adds `llmsPackage`. Omit `site`
|
|
56
|
+
when the user deselects the website. Existing declarations are not automatically
|
|
57
|
+
changed. A request to generate a documentation website follows this same route,
|
|
58
|
+
including after initial delivery. Inspect existing declarations before editing;
|
|
59
|
+
do not register the request itself as source material or re-index unchanged knowledge.
|
|
60
|
+
|
|
61
|
+
Validate reading targets before build. Website navigation uses the approved reading
|
|
62
|
+
structure; repair missing bindings through the current structure adjustment action.
|
|
63
|
+
Build cost is rendering and local search generation, not another Indexer run.
|
|
64
|
+
Report measured cost only; do not promise a fixed duration for all workspaces.
|
|
65
|
+
Website failure preserves the previous package and requires repair or an explicit
|
|
66
|
+
change of output choice. Publishing is a separate action handled by the user's
|
|
67
|
+
chosen deployment tool; producing a website never authorizes deployment.
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: procedure.parallel-agent-batch
|
|
3
|
+
kind: procedure
|
|
4
|
+
mediaType: text/markdown
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Parallel Partition and Author tasks
|
|
8
|
+
|
|
9
|
+
This procedure applies only to a current Partition or Author Action with
|
|
10
|
+
`tasks[]`. The Host runs the workers; Context does not launch models. The current
|
|
11
|
+
Route, required readings and output schema remain authoritative. Delegation does
|
|
12
|
+
not grant source access, approve a Gate or change the accepted scope.
|
|
13
|
+
|
|
14
|
+
## Choose execution once per batch
|
|
15
|
+
|
|
16
|
+
Use available native Host delegation only when current user/Host permissions
|
|
17
|
+
allow it, at least two independent tasks are ready, and workers can read the
|
|
18
|
+
assigned material and return their result without writing files. Respect an
|
|
19
|
+
explicit single-Agent preference and Host capacity or budget limits. Do not
|
|
20
|
+
install another agent runner, start nested CLI sessions or request broader
|
|
21
|
+
permissions just to parallelize. If these conditions are absent, continue the
|
|
22
|
+
same batch sequentially without a new user question.
|
|
23
|
+
|
|
24
|
+
Resolve any existing scope or human decision before dispatching dependent tasks.
|
|
25
|
+
Permission to use multiple Agents does not waive that decision.
|
|
26
|
+
|
|
27
|
+
Choose `min(4, ready task count, available worker slots)` concurrent workers,
|
|
28
|
+
excluding the coordinator. Use parallel mode only when that value is at least
|
|
29
|
+
two. Do not split one task or enlarge a CLI batch to fill slots. Schedule later
|
|
30
|
+
tasks from the same batch as workers finish; never prepare the next batch while
|
|
31
|
+
this one is active. Known dependencies between tasks require sequential handling
|
|
32
|
+
by the coordinator. A worker result never becomes evidence for a peer.
|
|
33
|
+
|
|
34
|
+
Tell the user briefly, in their language, how many planning or writing workers
|
|
35
|
+
will run when first enabling delegation or changing its concurrency/mode. Reuse
|
|
36
|
+
that announcement across unchanged batches. Report a fallback once when it happens. Worker completion is draft
|
|
37
|
+
progress; only CLI receipts establish accepted production progress.
|
|
38
|
+
|
|
39
|
+
## Single coordinator and read-only workers
|
|
40
|
+
|
|
41
|
+
The coordinator reads the Route, output schema and shared instructions, resolves
|
|
42
|
+
existing human decisions, and owns all Context commands, receipts and writes.
|
|
43
|
+
Workers consume only their assigned task reading and its authorized shared/detail
|
|
44
|
+
files and captured source access. Material requiring CLI preparation is requested
|
|
45
|
+
from the coordinator. Never let a worker run `context status`, a materializer,
|
|
46
|
+
preview, completion, capture, parser, review, close or build.
|
|
47
|
+
|
|
48
|
+
Use a Host read-only worker/tool profile when available. Workers must not run
|
|
49
|
+
shell commands, Git, scripts or other tools that can change files or external
|
|
50
|
+
state, and must not spawn workers. If the Host cannot honor this boundary, use
|
|
51
|
+
single-Agent execution. Workers return results through Host messages; they do
|
|
52
|
+
not write even scratch files. If a task cannot fit a complete response within
|
|
53
|
+
the Host's output budget, the coordinator handles it sequentially and writes
|
|
54
|
+
the payload itself. Do not truncate a result or publish a stub to fit transport.
|
|
55
|
+
|
|
56
|
+
The coordinator alone writes the final payload under the workspace's
|
|
57
|
+
`.tmp/agent-payloads/`, using a new file for each submission attempt. Never edit
|
|
58
|
+
runtime readings or ledgers. This prevents worker file collisions without
|
|
59
|
+
depending on filenames, worktrees or the project write lock to isolate them.
|
|
60
|
+
|
|
61
|
+
## Assign and collect
|
|
62
|
+
|
|
63
|
+
Use `template.indexer-agent-worker` from the current Route. Bind each assignment
|
|
64
|
+
in coordinator memory to the current Route revision, Action `input_digest`,
|
|
65
|
+
task manifest, instruction/resource digests and a unique attempt identifier.
|
|
66
|
+
Task keys repeat across batches, so `task_key` alone is not an assignment ID.
|
|
67
|
+
Copy these values; never compute or repair authority values from prose.
|
|
68
|
+
|
|
69
|
+
Send one task entry, its exact Route-provided reading location and applicable
|
|
70
|
+
shared instructions, the relevant output schema, and settled reader/scope
|
|
71
|
+
decisions. Give enough instruction content or exact resource locations for the
|
|
72
|
+
worker to read independently. A parent's reading does not populate a worker's
|
|
73
|
+
context or authorize an unread receipt. Do not broadcast the entire batch,
|
|
74
|
+
conversation, live repository or sibling task readings.
|
|
75
|
+
|
|
76
|
+
Keep a mapping from Host worker ID to assignment attempt. Before dispatch, choose
|
|
77
|
+
a finite task deadline supported by the Host (default ten minutes; shorten to
|
|
78
|
+
the remaining session budget). Wait using native completion notifications or
|
|
79
|
+
bounded waits while continuing user progress updates. A deadline is a Host
|
|
80
|
+
execution limit, not a statement that evidence is missing.
|
|
81
|
+
|
|
82
|
+
Accept a reply only from the active attempt for that task and only after it is
|
|
83
|
+
complete. The worker uses the template's Host reply envelope to echo assignment
|
|
84
|
+
identifiers separately from its single `{task_key, result}` entry. Check the Host
|
|
85
|
+
worker ID and that binding against the saved assignment;
|
|
86
|
+
do not insert coordination metadata into the Context semantic Result. Retain
|
|
87
|
+
successful drafts in coordinator memory until the batch is assembled.
|
|
88
|
+
|
|
89
|
+
## Merge and submit
|
|
90
|
+
|
|
91
|
+
Reconcile Partition proposals against the settled reader purpose and accepted
|
|
92
|
+
subjects, especially overlapping identities, primary member ownership and
|
|
93
|
+
unresolved cross-task boundaries. Do not silently rename a subject or discard a
|
|
94
|
+
member to make proposals fit. Resolve disagreements from authorized material
|
|
95
|
+
in the coordinator; use the current schema's unresolved outcome when necessary.
|
|
96
|
+
|
|
97
|
+
For Author, review consistency with the accepted page plans, evidence boundaries
|
|
98
|
+
and reader terminology. A task may contain several planned articles: assign the
|
|
99
|
+
whole task, not independent writers for its sections or articles. CLI performs
|
|
100
|
+
the existing schema, ownership, reference and coverage validation.
|
|
101
|
+
|
|
102
|
+
Assemble one entry per current task in task-key order, keeping the normal
|
|
103
|
+
single-Agent output shape. Use the current Author preview when needed, then
|
|
104
|
+
submit the complete batch once through the saved revision-bound command. Do not
|
|
105
|
+
submit as each worker finishes or turn Host errors into `unsupported`,
|
|
106
|
+
`catalog-only` or empty semantic results. Resolve unfinished work locally first.
|
|
107
|
+
|
|
108
|
+
Finish or revoke every active assignment before any command that may change the batch or its material.
|
|
109
|
+
Do not poll status merely to check workers. The revision-bound CLI command is
|
|
110
|
+
the final freshness check; if an external change is observed, invalidate the
|
|
111
|
+
assignments and obtain the current Route before submitting.
|
|
112
|
+
|
|
113
|
+
## Failures and sequential fallback
|
|
114
|
+
|
|
115
|
+
| Event | Coordinator action |
|
|
116
|
+
| --- | --- |
|
|
117
|
+
| Delegation unavailable, denied, or capacity below two before dispatch | Execute the batch sequentially. Do not retry permission prompts or simulate workers. |
|
|
118
|
+
| Spawn failure, rate limit, timeout, tool failure, context loss or truncated reply | Stop dispatching for this batch. Revoke the failed attempt, cancel/close it if supported, and finish that task and unassigned tasks sequentially. Let healthy read-only peers finish within their deadlines. |
|
|
119
|
+
| Missing/foreign task key, wrong attempt/revision, malformed or incomplete result | Discard that reply; take over its task sequentially using the original authorized input. Do not repeatedly respawn or treat the draft as committed. |
|
|
120
|
+
| Conflicting proposals | Reconcile affected tasks in the coordinator; preserve unaffected drafts. Unresolved scope decisions follow the existing human Gate. |
|
|
121
|
+
| Worker attempts a write, unauthorized tool or source access | Revoke all workers and stop parallel dispatch. Inspect any reported effects before continuing. If workspace integrity or authority is uncertain, follow current recovery guidance or report the concrete blocker. |
|
|
122
|
+
| Route, task set or material binding changes | Revoke old attempts; discard incompatible drafts and follow the fresh Route. Never relabel an old reply with new digests or task keys. |
|
|
123
|
+
| CLI accepts only part of a submission | Read `outcomes` and the returned next Route/task-only retry. Preserve committed peers; repair only the returned unfinished tasks sequentially. |
|
|
124
|
+
| Completion reply is lost or next preparation fails | Inspect current status or the supplied recovery command before retrying. Accepted tasks may already be saved; never blindly replay the payload. |
|
|
125
|
+
| Project write lock is held | Wait for the active writer using existing recovery guidance. Never remove its lock or launch another writer. |
|
|
126
|
+
|
|
127
|
+
Revocation means marking the attempt inactive before taking over. Ignore all late
|
|
128
|
+
replies, even if cancellation is unsupported. Such workers remain read-only;
|
|
129
|
+
do not reuse their slots until the Host confirms termination. Do not start a
|
|
130
|
+
new parallel batch while revoked workers are still active. A revoked read-only
|
|
131
|
+
worker does not block the coordinator's sequential takeover or completion;
|
|
132
|
+
its obsolete reply can no longer be accepted. If its read-only boundary is in
|
|
133
|
+
doubt, use the violation handling above instead. After any execution
|
|
134
|
+
failure, keep the rest of this batch sequential and reassess capability only at
|
|
135
|
+
the next fresh batch. A user request to stay single-Agent persists.
|
|
136
|
+
|
|
137
|
+
Sequential fallback preserves evidence, scope, review and completion requirements.
|
|
138
|
+
If the coordinator also cannot complete the task, retain drafts and report the
|
|
139
|
+
actual missing material, permission or Host limit through the existing workflow.
|
|
140
|
+
Do not clear runtime state, widen sources or lower coverage to force progress.
|
|
@@ -9,6 +9,12 @@ mediaType: text/markdown
|
|
|
9
9
|
Use the current route facts and Context SDK documentation to make only the
|
|
10
10
|
declaration requested by the route in `src/index.ts`.
|
|
11
11
|
|
|
12
|
+
Complete the required readings and run their `acknowledge-current` / `after_read`
|
|
13
|
+
command **before editing**. Use the resulting current configuration Route for the
|
|
14
|
+
edit. Editing changes the revision: afterwards refresh status, never run an
|
|
15
|
+
acknowledgement bound to the pre-edit revision. Reading acknowledgement confirms
|
|
16
|
+
the inputs, not approval or completion of the configuration change.
|
|
17
|
+
|
|
12
18
|
- Do not invent sources, modules, collections, or output types.
|
|
13
19
|
- Ask for a user decision when the route is gated and no current-session
|
|
14
20
|
authority is present.
|