Repository navigation
Add recipe search and aclib_read tool - #15
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agents should use the ACLib modules as the authors mean them to be used instead of building code around them. This adds recipes to the search, a read tool for the catalog files and adjusts the skill.
Changes
aclib_findalso searches the recipes of the catalog (_codelib/recipes: title, English and German keywords, imports) and returns matching recipes (kind: "recipe") before the modules; the best recipe comes with its text if enough search words are whole words of its title or keywords.aclib_findsearches and returns the summaries of public members (catalog format version 2); catalogs in the previous format keep working.aclib_read: reads a file listed in the catalog (recipe, test, example, module) from the same source asaclib_find, without file access of the client. Modules come as documentation extract by default (header, public members with comments, enums),content="code"returns the complete source.aclib_readparametersmembers(code of single procedures incl. comment block, also private ones; unknown names reported with all member names of the file) andsearch(regex lines of one VBA file with line number and enclosing procedure).aclib-import: new short description (load early, start with recipes); usage section (recipe, examples/tests, documentation, code viamembers/search); ACLib modules are used as they are, a bug or missing feature of general use is fixed in the module and sent back to the CodeLib.Tests
uv run pytest -m "not integration": 164 passedruff check,ruff format --check: cleanaclib_findwith recipes,aclib_readdoc/code/members/search).Requires the catalog in format version 2 with recipes (AccessCodeLib
_tools/catalog/Build-Catalog.ps1); with GitHub as source, recipes are available once the new catalog is onmaster.