feat(cli): add Universal Canvas command - #321
Merged
Merged
Conversation
Collaborator
Author
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Contributor
Sketchi Icons PreviewStatus:
Preview Worker cleanup has completed. |
Contributor
Sketchi Web PreviewStatus:
Preview Worker cleanup has completed. |
Contributor
Sketchi Excalidraw Workspace PreviewStatus:
Preview Worker cleanup has completed. |
Contributor
Sketchi Eval Harness PreviewStatus:
Preview Worker cleanup has completed. |
Contributor
Sketchi Playground / Studio PreviewStatus:
Preview Worker cleanup has completed. |
anandpant
force-pushed
the
feat/cli-create-canvas
branch
from
September 6, 2026 00:20
6e8c653 to
934d347
Compare
anandpant
force-pushed
the
feat/cli-create-canvas
branch
from
September 6, 2026 00:24
934d347 to
3a2e8da
Compare
Merge activity
|
## Summary - add a noninteractive `sketchi canvas` command for typed CanvasSpec file, stdin, or inline JSON input - validate the public create-canvas request/response with shared repository schemas, preserve the returned diagram locally, and export PNG, Excalidraw, or scene consistently with `generate` - preserve submitted diagram identity, distinguish invalid-canvas rejections from server failures, and report CanvasSpec ID validation at `spec.diagramId` - document the production endpoint, preview/testing override, machine-readable output, and supported canvas workflows - cover success, malformed input/response, identity drift, typed rejection, server and network failures, storage, help, and built-CLI file/stdin paths - register the CLI HTTP Promise boundary in the project-graph guard and add a minor changeset for `@sketchi/cli` ## Proof - `pnpm run test:tools` (5 files, 93 tests) - `pnpm nx test sketchi-cli` (21 files, 198 tests) - `pnpm nx typecheck sketchi-cli` - `pnpm nx build sketchi-cli` - `pnpm nx run-many -t typecheck,test,build` - `pnpm nx build-storybook diagram-ui` The full required proof predates the review remediation; `test:tools` and the affected CLI typecheck, test, and build were rerun after remediation. Live production proof was intentionally not run before merge.
graphite-app
Bot
force-pushed
the
feat/cli-create-canvas
branch
from
September 6, 2026 00:32
3a2e8da to
641849e
Compare
Merged
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
sketchi canvascommand for typed CanvasSpec file, stdin, or inline JSON inputgeneratespec.diagramId@sketchi/cliProof
pnpm run test:tools(5 files, 93 tests)pnpm nx test sketchi-cli(21 files, 198 tests)pnpm nx typecheck sketchi-clipnpm nx build sketchi-clipnpm nx run-many -t typecheck,test,buildpnpm nx build-storybook diagram-uiThe full required proof predates the review remediation;
test:toolsand the affected CLI typecheck, test, and build were rerun after remediation. Live production proof was intentionally not run before merge.