Skip to content

Add repos dictionary for skill repository aliases in Lucafile#62

Merged
albertodebortoli merged 1 commit intomainfrom
feature/repos-aliases-in-lucafile
Apr 12, 2026
Merged

Add repos dictionary for skill repository aliases in Lucafile#62
albertodebortoli merged 1 commit intomainfrom
feature/repos-aliases-in-lucafile

Conversation

@albertodebortoli
Copy link
Copy Markdown
Member

@albertodebortoli albertodebortoli commented Apr 12, 2026

Summary

  • Adds an optional top-level repos: dictionary to the Lucafile format that maps short alias names to repository references (owner/repo shorthand or full HTTPS/GIT URLs)
  • Skill entries can now reference a repository by alias key; resolution happens at decode time in Spec.init(from:) so all downstream code receives fully-resolved Skill objects with no changes needed
  • Values not found in repos are passed through verbatim (fully backwards-compatible)

Test plan

  • swift build passes
  • swift test --filter SpecLoaderTests — 6 tests pass including 2 new ones covering alias resolution and verbatim fallback
  • Full swift test suite (358 tests) passes with no regressions

🤖 Generated with Claude Code

The new optional top-level `repos` key lets users define short alias names
for repository references. Any `repository` value in a skill entry that
matches an alias key is resolved to the corresponding URL at parse time;
unrecognized values are passed through verbatim.
@albertodebortoli albertodebortoli added this to the 0.15.0 milestone Apr 12, 2026
@albertodebortoli albertodebortoli added the feature New feature or enhancement label Apr 12, 2026
@albertodebortoli albertodebortoli marked this pull request as ready for review April 12, 2026 11:14
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@albertodebortoli albertodebortoli merged commit 6a0f958 into main Apr 12, 2026
3 checks passed
@albertodebortoli albertodebortoli deleted the feature/repos-aliases-in-lucafile branch April 12, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant