Skip to content

feat(operations): add declarative plugin operations and scaffolding - #3

Merged
agalwood merged 1 commit into
mainfrom
feat/plugin_operations_20261010
Oct 11, 2026
Merged

agalwood merged 1 commit into
mainfrom
feat/plugin_operations_20261010

Conversation

@agalwood

@agalwood agalwood commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

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.

  • Add contributes.operations v1, 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.
  • Add commands.registerOperation and scoped progress, cancellation, media and text-file types.
  • Add the operation CLI/create template, with a complete text deduplication manifest, handler, English/Chinese locales, standalone typecheck configuration and build scripts.
  • Document the supported surface and limits in English/Chinese, with complete media-merge and third-party text examples. Examples target >=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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant