feature(customware): add component context menu bundle#45
Draft
Magaav wants to merge 2 commits intoagent0ai:mainfrom
Draft
feature(customware): add component context menu bundle#45Magaav wants to merge 2 commits intoagent0ai:mainfrom
Magaav wants to merge 2 commits intoagent0ai:mainfrom
Conversation
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.
Summary
Adds a reference Customware Bundle Interface plugin for component-level context menus.
This is intentionally implemented as an installable customware bundle, not as Space Agent core behavior. It demonstrates how browser-side UI evolution can live behind
space.bundle.yamlplus documentedext/jshooks while remaining removable and update-friendly.What Changed
tests/fixtures/component_context_menu_bundle/as an installable reference bundle.space/component-context-menuwithcomponent-menu,actions, andbrowser-runtimecapabilities._core/framework/initializer.js/initialize/end.space.componentMenu.registerAction(...)for custom component actions..spaces-widget-cardanddata-widget-id.Copy IDaction so users can paste the exact UI entity id into Agent Space.Why
Downstream teams need a safe way to attach precise UI actions without monkey patching Space Agent runtime files.
Copy IDis especially useful because it lets a user right-click a widget/component, copy its stable id, and tell Agent Space exactly what to change.Validation
node --input-type=module --check < tests/fixtures/component_context_menu_bundle/component-menu.jsnode --input-type=module --check < tests/fixtures/component_context_menu_bundle/ext/js/_core/framework/initializer.js/initialize/end/component-context-menu.jsnode --test tests/customware_bundle_test.mjsNotes
This PR is stacked on #44 because the plugin depends on bundle manifest discovery and the browser-side bundle runtime.