Skip to content

Conversation

@vic
Copy link
Owner

@vic vic commented Jun 23, 2025

No description provided.

Copilot AI review requested due to automatic review settings June 23, 2025 20:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds an extensible API layer to the existing import-tree builder, allowing users and library authors to register custom methods that carry forward through chained calls.

  • Introduce an api field and a new addAPI method in default.nix
  • Add tests in checkmate.nix to validate extending and preserving custom API methods
  • Update README.md to replace “builder API” with “extensible API” and document addAPI usage

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
default.nix Initialize api, adjust __functor to merge in api, add addAPI method
checkmate.nix Add two tests under addAPI. to verify that new methods are added and previous ones persist
README.md Rename “builder API” → “extensible API,” and document the new addAPI function
Comments suppressed due to low confidence (1)

README.md:235

  • Documentation says each function takes a single self argument, but example functions also accept extra parameters (e.g., featureName). Please clarify the signature to reflect variable arity.
`addAPI` takes an attribute set of functions taking a single argument:

@vic vic force-pushed the vic/jj-change-wrpowwkxzpvw branch from d80c3cd to 2f297f8 Compare June 23, 2025 20:53
@vic vic merged commit e8eb3b9 into main Jun 23, 2025
1 check passed
@vic vic deleted the vic/jj-change-wrpowwkxzpvw branch June 23, 2025 21:32
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.

2 participants