PAB-8: materialize independent extension forks#143
Merged
Conversation
Co-authored-by: multica-agent <github@multica.ai>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
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.
Description
This PR introduces independent, self-contained extension forks. Previously, duplicating an extension created a file that imported and re-exported the original manifest—keeping the copy tied to the original and risking unintended edits. Now, duplication generates a standalone file that inlines the full extension definition, removes the dependency on the original, and properly scopes action IDs under the new extension identity (e.g.,
copy-id:hello-action).What changed
New utility
createStandaloneExtensionForkinextension-manifest.ts: transforms an extension source string into a self-contained fork. It inlines the original object literal, applies the new ID and title, and re-maps all action IDs with the new extension prefix. Only extensions whose default export is an object literal can be forked (callable exports are rejected).Refactored duplication flow in
main.ts: theduplicateCreatedActionhandler now usescreateStandaloneExtensionForkto build the fork and then activates it viastageExtensionProposalandactivateManagedExtension, aligning duplication with the normal extension management pipeline.New tests in
extension-manifest.test.ts: verify that the generated fork contains no import of the original, works correctly when loaded (correct identity and namespaced action IDs), and that non-object-literal exports are rejected.Impact