Skip to content

feat(media-merge): migrate to declarative plugin operations - #7

Merged
agalwood merged 2 commits into
mainfrom
feat/plugin_operations_20261010
Oct 12, 2026
Merged

agalwood merged 2 commits into
mainfrom
feat/plugin_operations_20261010

Conversation

@agalwood

@agalwood agalwood commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Media merge currently relies on a host-specific form. This migrates the unpublished optional plugin to a declarative operation: the package owns the file cards, MP4/MKV selection, localized labels and task-menu entry, while Motrix owns rendering, jobs and selected-file authorization.

The private handler uses opaque file references and scoped media calls, preserves automatic input-order correction, and returns the authorized output reference. Repeating a merge clears file selections while retaining the format. The plugin remains optional and is never added to the default bundle.

Dependencies and compatibility

  • Uses the published @motrix/plugin-api@2.2.0 and @motrix/plugin-manifest-schema@2.2.0, with real registry integrity entries in the lockfile. Local SDK links are no longer required. Other plugins retain their existing API dependency.
  • Requires the host implementation in Motrix#2350. The manifest targets >=2.0.0-beta.48 <3.0.0; raise the package and registry minimum before signing if the feature ships later. SDK publication does not make beta.47 compatible.
  • Registry#8 remains a separate draft until approved signed release metadata is available.

Validation

Against the published SDK: frozen-lockfile installation, full Biome, all plugin builds and typechecks, and all 66 tests pass. The shared packer validates the staged manifest/locales and produces a reproducible unsigned archive. Prior macOS Electron/Web acceptance covered merging, reversed inputs, MP4/MKV, cancellation, hot update and file authorization. Signed-official installation and remaining platform acceptance are still release gates.

No release tag, signing, upload or publication is included. GitHub CI passes on commit 055edd8; this PR is ready for review. Coordinate merging with the host implementation and complete the release gates before signing.

@agalwood
agalwood marked this pull request as ready for review October 12, 2026 04:23
@agalwood
agalwood merged commit 9399d0a into main Oct 12, 2026
1 check passed
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