feat: add slice edit and slice edit-variation commands#107
Merged
angeloashmore merged 4 commits intoaa/remote-modelingfrom Apr 10, 2026
Merged
feat: add slice edit and slice edit-variation commands#107angeloashmore merged 4 commits intoaa/remote-modelingfrom
slice edit and slice edit-variation commands#107angeloashmore merged 4 commits intoaa/remote-modelingfrom
Conversation
Adds two new subcommands for editing slice and variation metadata after creation. Also adds E2E tests for the recently added `type edit` command. Closes #92 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Wraps adapter.updateCustomType in try/catch with createCustomType fallback, matching the pattern used in other commands. Prevents crash when the local customtypes/ directory doesn't contain the edited type. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The Custom Types API does not support updating the repeatable property; it must be changed from the writing room UI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Edit commands should only expose options that the corresponding create command exposes. `slice add-variation` does not accept --description. Co-Authored-By: Claude Opus 4.6 (1M context) <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.
Resolves: #92
Description
Adds
slice editandslice edit-variationcommands to update slice and variation metadata after creation.Also fixes
type edit:--repeatable/--singleflags (the Custom Types API rejects updates to the repeatable property)Adds E2E tests for
type edit,slice edit, andslice edit-variation.Checklist
Preview
How to QA 1
node --run build ./dist/index.mjs slice edit --help ./dist/index.mjs slice edit-variation --help ./dist/index.mjs type edit --helpNote
Medium Risk
Adds new CLI flows that mutate slice/variation metadata via the Custom Types API and local adapter sync, plus removes
type editflags which is a small breaking CLI change. Risk is moderate due to touching update paths and user-facing command surfaces, but changes are scoped and covered by E2E tests.Overview
Adds
prismic slice editandprismic slice edit-variationcommands to rename a slice or a specific variation, persisting changes viaupdateSliceand syncing the local adapter (withupdate→createfallback) before regenerating types.Updates
prismic type editby removing unsupported--repeatable/--singleflags and adding the same adapterupdate→createfallback to avoid failures when the type isn’t present locally. Adds E2E coverage for the new slice commands and the updated type-edit behavior.Reviewed by Cursor Bugbot for commit 65a795f. Bugbot is set up for automated code reviews on this repo. Configure here.
Footnotes
Please use these labels when submitting a review:
⚠️ #issue: Strongly suggest a change.
❓ #ask: Ask a question.
💡 #idea: Suggest an idea.
🎉 #nice: Share a compliment. ↩