feat(cli): add projects widget show, set, and deploy - #78
Merged
Conversation
Add typed widget API client methods, CDN URL helpers, and CLI commands to view draft config, merge draft flags, and publish to CDN with optional --wait polling. Includes unit tests and README/CHANGELOG updates.
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
Adds
voicethere projects widgetso embed widget draft + CDN publish (already on the platform API) can be driven from the CLI.projects widget show— draft, publish status,public_id, CDN URLsprojects widget set— merge preset/position/mode/theme/label flags into the current draft, then PUTprojects widget deploy [--wait]— POST/projects/{id}/widget/publish;--waitpolls untilpublishedorfailedCDN origin is derived from the API host (
app.voicethere.dev→cdn.voicethere.dev,.io→.io) orVOICETHERE_WIDGET_CDN_BASE/--cdn-base.Version stays 0.12.8. Follow-up:
release-prep/0.13.0+ tagrelease/0.13.0so e2ewidget-cdn-smokecan pin the published CLI.Commands
From
@voicethere/clirepo root:npm test npm run typecheckvoicethere projects widget show --json voicethere projects widget set --preset pill-light voicethere projects widget deploy --waitVerified locally and in unit tests; no extra manual steps.