Conversation
…ed resolution Rewrite all 32 tool descriptions from UPPERCASE PREFIX format to intent-first agentic format with dynamic cross-references. - New resolveRelatedReferences() utility in src/utils/description-utils.ts - Dynamic Related resolution in registry-manager.ts buildToolLookupCache() and getAllToolDefinitionsTierless() — strips unavailable tool references - Updated all 18 entity registries with intent-first descriptions - Unit tests for description-utils (10 cases) - RegistryManager tests for Related resolution (5 scenarios) - Updated assertions in 14 entity test files - New Dynamic Cross-References section in docs/advanced/customization.md Closes #169
Test Coverage ReportOverall Coverage: 93.49%
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Pull request overview
This PR rewrites all 32 remaining tool descriptions from the old UPPERCASE PREFIX format to an intent-first agentic format, and implements dynamic resolution of "Related:" cross-references. The dynamic resolution automatically strips references to unavailable tools (disabled via USE_* flags, GITLAB_DENIED_TOOLS_REGEX, read-only mode, or tier/version gating).
Changes:
- Added
resolveRelatedReferences()utility function to dynamically filter Related references based on available tools - Integrated dynamic resolution into
buildToolLookupCache()andgetAllToolDefinitionsTierless()in registry-manager - Rewrote 32 tool descriptions to intent-first format with Related cross-references (files, labels, pipelines, MRs, milestones, members, integrations, wiki, webhooks, variables, snippets, search, releases, refs, workitems, context)
Reviewed changes
Copilot reviewed 36 out of 36 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/utils/description-utils.ts | New utility for resolving Related references by stripping unavailable tool references |
| src/registry-manager.ts | Integrated dynamic resolution in two-pass approach after tool filtering |
| src/entities/*/registry.ts | Rewrote tool descriptions from UPPERCASE PREFIX to intent-first format with Related sections |
| tests/unit/utils/description-utils.test.ts | Comprehensive unit tests for resolution logic (10 test cases) |
| tests/unit/RegistryManager.test.ts | Integration tests for Related resolution scenarios (5 test cases) |
| tests/unit/entities/*/registry.test.ts | Updated test assertions to match new description format |
| docs/public/llms.txt | Added note about dynamic cross-references feature |
| docs/advanced/customization.md | Added documentation section explaining dynamic cross-reference resolution |
|
🎉 This PR is included in version 6.39.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
resolveRelatedReferences()utility that stripsRelated:references to unavailable tools (disabled viaUSE_*,GITLAB_DENIED_TOOLS_REGEX, read-only mode, or tier/version gating)buildToolLookupCache()andgetAllToolDefinitionsTierless()in registry-managerTest plan
yarn lint— 0 errorsyarn test— 3820 tests passing (124 suites)yarn build— cleandescription-utils(10 cases)Closes #169