miro-sync is a rendering operation (input: SpaceNode[], output: Miro board) that predates the render plugin hook introduced in #63.
Migrate it by:
- Creating an
sctx-miro plugin (either built-in or external) with a render hook
- Providing a
miro.board render format that encapsulates the current sync logic
- The
miro-sync command can remain as a convenience alias (like show and diagram)
Considerations:
- The miro render format needs access to extra config (
miroBoardId, miroFrameId) — these live in the space config and are accessible via context
- Extra CLI options (
--new-frame, --dry-run, --verbose) could be passed as render options, or the miro-sync alias can continue to own those directly
- The
MIRO_TOKEN env var requirement stays
miro-syncis a rendering operation (input:SpaceNode[], output: Miro board) that predates the render plugin hook introduced in #63.Migrate it by:
sctx-miroplugin (either built-in or external) with a render hookmiro.boardrender format that encapsulates the current sync logicmiro-synccommand can remain as a convenience alias (likeshowanddiagram)Considerations:
miroBoardId,miroFrameId) — these live in the space config and are accessible viacontext--new-frame,--dry-run,--verbose) could be passed as render options, or themiro-syncalias can continue to own those directlyMIRO_TOKENenv var requirement stays