feat(cli): add unpublish command and align publish with new API#74
Open
feat(cli): add unpublish command and align publish with new API#74
Conversation
- Add `everywhere unpublish` command — DELETE /api/v1/app/:name
- Update publish endpoint to POST /api/v1/apps/publish
- Switch publish body from multipart form to raw application/zip
- Update publish response shape to {tenant, name, title, bundleUrl}
The npm package name from package.json is the canonical plugin
identifier across publish, unpublish, and bundle URLs.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- auth token: GET /auth/token → GET /api/v1/auth/token - GraphQL data: /api/data/graphql → /api/v1/data/graphql (default in GraphQLResolver, dev-server proxy in view, vite plugin middleware) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
everywhere unpublishcommand (DELETE /api/v1/app/:name)publishto use the newPOST /api/v1/apps/publishendpointmultipart/form-datato rawapplication/zip{id, referenceId, status, appType, creator}to{tenant, name, title, bundleUrl}The
namefield frompackage.jsonis now the canonical plugin identifier across publish, unpublish, and bundle URLs — no UUID, no slug, no transformation.unpublishreads the name frompackage.jsonin the current plugin directory, the same waypublishdoes, so the CLI ergonomics match: run it from the plugin directory (or pass-D <plugin-dir>).Breaking changes
id/referenceId/status/appType/creatorwill need to migrate to the new shape.Release
This change targets the next minor release: 0.3.0.
Test plan
uploadToRegistrytests cover URL, headers, body shape, and response parsing for the new contractdeleteFromRegistrytests cover URL, auth header, error pathspublishcommand tests cover login required, missing manifest, success, andauth.https=falseunpublishcommand tests cover login required, missing manifest, success,auth.https=false, and delete failurejust check: typecheck + lint + format clean