sketchi 0.34.4 → 0.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ sketchi generate --prompt "Map release approval" --output json
|
|
|
82
82
|
`--format` accepts `png`, `excalidraw`, or `scene`; their default names are
|
|
83
83
|
`<id>.png`, `<id>.excalidraw`, and `<id>.scene.json`. With `--dest -`, stdout
|
|
84
84
|
contains artifact bytes only and the text or JSON status envelope moves to
|
|
85
|
-
stderr. Generation, Universal Canvas compilation, sharing, and pulling are the CLI's
|
|
85
|
+
stderr. Generation, revision, Universal Canvas compilation, sharing, and pulling are the CLI's five network commands.
|
|
86
86
|
|
|
87
87
|
A successful generate prints the title and type, where the file went, and the id:
|
|
88
88
|
|
|
@@ -123,6 +123,30 @@ sketchi copy release # by id or unique id prefix
|
|
|
123
123
|
macOS and Windows clipboard support is unit-tested but not yet verified on
|
|
124
124
|
those systems.
|
|
125
125
|
|
|
126
|
+
## Revise a diagram with a request
|
|
127
|
+
|
|
128
|
+
`revise` changes a stored diagram the way you describe it. It sends the diagram's
|
|
129
|
+
document and your request to the same generate API, keeps the complete revised
|
|
130
|
+
diagram as the record's next revision, and writes its PNG:
|
|
131
|
+
|
|
132
|
+
```sh
|
|
133
|
+
sketchi revise checkout --prompt "Add a fraud check before payment"
|
|
134
|
+
sketchi revise latest --prompt "Rename Ship to Ship order and drop the manual review"
|
|
135
|
+
sketchi revise latest --prompt "Show it as a sequence diagram" --type sequence
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Colors and shapes a prompt asks for, in `generate` or `revise` ("draw the
|
|
139
|
+
reject path in red", "make the gate a purple diamond"), are drawn as one more
|
|
140
|
+
revision on top, the way `sketchi patch` draws them; the revision before stays
|
|
141
|
+
unstyled and restorable.
|
|
142
|
+
|
|
143
|
+
The diagram keeps its id and family unless `--type` names another, and
|
|
144
|
+
everything the request doesn't mention stays as it was. `sketchi restore ID
|
|
145
|
+
--revision N` brings back the earlier revision. If the diagram changes while
|
|
146
|
+
the request runs, `revise` keeps that change and exits 6 instead of replacing
|
|
147
|
+
it. Patched, pulled and canvas records refuse `revise`, as they refuse `edit`. `--format`, `--dest`,
|
|
148
|
+
`--no-copy`, the clipboard and `--output json` work as they do for `generate`.
|
|
149
|
+
|
|
126
150
|
## Find past diagrams
|
|
127
151
|
|
|
128
152
|
`list` shows the newest diagrams first with id, title, type, and how long ago
|