Repository navigation
feat(operations): add declarative plugin operations and scaffolding - #3
Merged
Merged
Conversation
This was referenced Oct 11, 2026
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.
Plugin authors currently need host changes to ship an operation UI. This adds a bounded, declarative operation contract and sandbox handler types so the host can render plugin-owned forms and run them with invocation-scoped capabilities.
contributes.operationsv1, scalar schemas, composable layouts, conditions, file roles, detail/task-menu entries and repeat policies. Keep validation in the shared manifest package and the CLI façade pure.commands.registerOperationand scoped progress, cancellation, media and text-file types.operationCLI/create template, with a complete text deduplication manifest, handler, English/Chinese locales, standalone typecheck configuration and build scripts.>=2.0.0-beta.48 <3.0.0, contingent on that host release actually shipping these capabilities.Validation: build, workspace typecheck, full Biome and schema façade checks pass. API/schema/CLI suites pass 128 tests, with 2 existing host-dependent skips. Both examples validate, typecheck, pack and lint; a separately generated project was also installed and checked against the matching built SDK packages.
This is an unpublished protocol implementation. Package versioning/publication remains a separate step; schema and CLI must ship together before consumers switch their pinned dependencies. No npm publication or plugin signing is included.
Related consumer PRs: Motrix#2350, builtin-plugins#7, and plugin-registry#8. They remain drafts until their SDK/release dependencies are resolved.
GitHub CI: all six macOS/Ubuntu/Windows and Node 22/24 matrix jobs pass.