fix: use package license for skills#2048
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
📝 WalkthroughWalkthroughThe 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan for PR comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Great addition with the fallback logic! Regarding your question: I definitely think we should surface it when a skill's license differs from the package's license. As discussed in #1826, license transparency is a major pain point and surfacing these mismatches prevents 'legal traps' for users who assume the entire package follows the root license. A subtle UI warning or just a 'license override' badge would be a huge DX win. |
|
@marlonwq suggestion makes sense! will mark this as draft while it's being worked on 🙏 @maxchang3 let me know if you'd like any help, or don't have time to take it on right now 🙏 |
|
@ghostdevv Hi, since the warning messages are still hardcoded (see #2049), would it make more sense to add a new warning after that fix lands? Or we can do this in a follow-up PR, since this one only affects the internal warning generation logic. I'm also happy to adapt this to this PR. |
🔗 Linked issue
resolves #2043
🧭 Context
Currently, the logic for retrieving a skill’s license only checks the frontmatter.
As a result, when a skill does not specify a license there, the system displays a misleading "No license specified" warning, even if the parent package already defines a valid license.
📚 Description
This PR improves license handling in
skills.tsby retrieving and passing the package license as a fallback when a skill does not specify its own license.(A related question: if a skill's license differs from the package's license, should we explicitly surface this (or even treat it as a warning)?)