@emdash-cms/plugin-cli@0.10.0
Minor Changes
-
#2892
66aeecdThanks @ascorbic! - Adds interactive package-profile setup for delegated plugin releases.emdash-plugin release setupnow creates a missing profile or adds delegated-release settings to an existing valid profile before writing the GitHub Actions workflow. Runemdash-plugin profile setupto prepare only the profile.Interactive setup asks for the GitHub repository when it is absent from
emdash-plugin.jsonc, lets you choose when releases require approval, and confirms the profile write. Non-interactive callers must pass--yeswhen a profile change is required.The release service returns
PACKAGE_PROFILE_REQUIREDbefore accepting artifact uploads when the signed profile is missing, lacks delegated-release settings, or names a different GitHub repository. Existing release intents also terminate with an actionable reason if their authoritative profile becomes invalid. -
#2747
3b124f2Thanks @ascorbic! - Adds typed clients for the experimental delegated release service.ReleaseServiceClientsubmits, polls, and cancels GitHub OpenID Connect release intents; manages publisher workload policies and retained delegation; and lets publishers check whether profile-listed approvers have an active passkey and inspect publisher-scoped audit events through a publisher session.ReleaseServiceOperatorClientexposes the Cloudflare Access status and sanitized audit, sharded publisher and approver inventory, pause, suspension, revocation, cancellation, reconciliation, resumable encryption-key rotation, Workflow-backed fleet verification, audited key retirement, encrypted R2 archive, and fail-safe publisher restore and abort operations.ReleaseServiceClientcan request, poll, list, and confirm GitHub workflow connections. The first permanent release run records GitHub's signed repository, workflow, ref, and environment as a pending request and returns a browser approval URL. The publisher must confirm those details before the service creates a workload policy. Tag-based connections can cover the current tag or all version tags while keeping the repository and workflow path exact.Both clients validate response envelopes and return stable
ReleaseServiceErrorcodes with retry metadata. Mutation helpers require idempotency keys, and workload polling requests a fresh token from the configured provider for each call.The plugin CLI adds
emdash-plugin release dry-run,release submit,release status, andrelease cancelfor GitHub Actions jobs. The firstrelease submitrequests browser approval for the permanent workflow and waits for confirmation before creating an intent. Dry-run verifies existing workload admission without creating a connection request, intent, consuming rate budget, or reserving a version. The commands request audience-bound OIDC tokens from the runner, support JSON output, and use the GitHub run identity as the default idempotency key where a mutation occurs.Delegated submissions use a URL-source release record: each package or listing-image artifact supplies a checksum-bound HTTPS URL and no blob. The service stages and uploads those bytes through the publisher's delegation, then creates a blob-only release record. Submit and dry-run reject mixed or blob-backed source inputs before requesting GitHub OIDC.
Interactive
release delegate,revoke,workload,enrol,approve, andrejectcommands print validated browser handoffs. Publisher application sessions, OAuth credentials, and passkey assertions remain at the release-service origin instead of entering the terminal process. -
#2749
920e1f3Thanks @ascorbic! - Addsemdash-plugin release setupto create the permanent GitHub Actions workflow for delegated plugin releases. The generated workflow builds and attests the plugin, waits for first-run browser authorization, and uploads its exact bundle and provenance through GitHub OIDC before publishing.ReleaseServiceClient.uploadReleaseArtifact()supports custom workflows that need to stage checksum-bound bundle, image, or provenance bytes. Existing URL-sourcerelease submitworkflows remain supported.
Patch Changes
-
#2864
ecdba4dThanks @camc314! - Updates Zod to 4.5 while keeping EmDash and native plugin schemas on one compatible version. Existing minute-precision ISO datetimes remain valid, and URL content fields continue to enforce configured length and pattern rules. -
#2743
d99a0e8Thanks @ascorbic! - Fixes saved OAuth sessions failing to refresh or revoke after the original loopback callback server closes. New logins retain the loopback client registration needed to recreate the same OAuth client.Sessions created before this fix do not contain that registration metadata and cannot be resumed. Sign in again after upgrading.
-
#2894
3b106f6Thanks @ascorbic! - Updatesemdash-plugin release setupto generate workflows that use the hosted release service athttps://releases.emdashcms.com. -
#2848
e0e60baThanks @ascorbic! - Adds publisher-created workflow connection invitations to delegated releases. First-time or unmatched GitHub workflows must use a package-bound, single-use invitation before they can request publisher approval; connected workflows continue without one.Create the invitation in the publisher dashboard or with
createWorkflowConnectionInvitation(), then save its value as the repository'sEMDASH_CONNECTION_INVITATIONGitHub Actions secret. The generated release workflow passes this secret to the release Action automatically. Custom workflows can passinvitationTokentorequestWorkflowConnection(), and publishers can reject pending requests withrejectWorkflowConnection(). -
Updated dependencies [
ecdba4d,66aeecd,52fffdc,3b124f2,920e1f3,e0e60ba,c7b6fdf]:- @emdash-cms/plugin-types@0.3.1
- @emdash-cms/registry-client@0.5.0