Skip to content

Add recipe search and aclib_read tool - #15

Merged
josef-poetzl merged 4 commits into
devfrom
feature/read-members-search
Dec 2, 2026
Merged

josef-poetzl merged 4 commits into
devfrom
feature/read-members-search

Conversation

@josef-poetzl

Copy link
Copy Markdown
Member

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_find also 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_find searches and returns the summaries of public members (catalog format version 2); catalogs in the previous format keep working.
  • New tool aclib_read: reads a file listed in the catalog (recipe, test, example, module) from the same source as aclib_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_read parameters members (code of single procedures incl. comment block, also private ones; unknown names reported with all member names of the file) and search (regex lines of one VBA file with line number and enclosing procedure).
  • Skill aclib-import: new short description (load early, start with recipes); usage section (recipe, examples/tests, documentation, code via members/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.
  • README and CHANGELOG updated.

Tests

  • uv run pytest -m "not integration": 164 passed
  • ruff check, ruff format --check: clean
  • Live test via the MCP server against the local AccessCodeLib repository (aclib_find with recipes, aclib_read doc/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 on master.

@josef-poetzl
josef-poetzl merged commit 70710df into dev Dec 2, 2026
2 checks passed
@josef-poetzl
josef-poetzl deleted the feature/read-members-search branch December 2, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant