sketchi 0.2.0 → 0.3.0
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
|
@@ -54,9 +54,20 @@ sketchi show release-flow
|
|
|
54
54
|
|
|
55
55
|
sketchi edit release-flow --json '{"type":"flowchart","spec":{"id":"release-flow","title":"Release approval revised","nodes":[{"id":"start","label":"Change proposed","kind":"start"},{"id":"review","label":"Review complete evidence","kind":"process"},{"id":"end","label":"Release approved","kind":"end"}],"edges":[{"source":"start","target":"review"},{"source":"review","target":"end"}]}}'
|
|
56
56
|
|
|
57
|
+
sketchi patch release-flow --json '{"operations":[{"op":"setStyle","selector":{"nodeIds":["review"]},"style":{"fillColor":"#dbeafe","strokeColor":"#2563eb"}}]}'
|
|
58
|
+
|
|
57
59
|
sketchi list
|
|
58
60
|
```
|
|
59
61
|
|
|
62
|
+
`patch` reuses Sketchi's semantic selectors and operations (`setStyle`,
|
|
63
|
+
`setDefaultStyle`, `setShape`, `translate`, `replaceText`, and
|
|
64
|
+
`rerouteEdges`) without exposing raw Excalidraw mutation. It is fully offline,
|
|
65
|
+
preserves the prior full revision, retains `document.json` unchanged as
|
|
66
|
+
provenance, makes `scene.json` authoritative, and removes any stale stored PNG.
|
|
67
|
+
Patched records report `authority: "patched"` and
|
|
68
|
+
`documentAuthoritative: false`; restore a canonical revision before using
|
|
69
|
+
`edit` again.
|
|
70
|
+
|
|
60
71
|
Export the stored editable artifact:
|
|
61
72
|
|
|
62
73
|
```sh
|
|
@@ -201,9 +212,10 @@ source ~/.sketchi/completions/sketchi.fish
|
|
|
201
212
|
|
|
202
213
|
## For AI agents
|
|
203
214
|
|
|
204
|
-
The
|
|
205
|
-
`restore`—are fully offline and require no credentials, account,
|
|
206
|
-
or MCP server. Those
|
|
215
|
+
The seven deterministic commands—`create`, `patch`, `show`, `edit`, `list`,
|
|
216
|
+
`export`, and `restore`—are fully offline and require no credentials, account,
|
|
217
|
+
browser, model, or MCP server. Those seven commands never send stored records
|
|
218
|
+
to a provider.
|
|
207
219
|
Agents can use
|
|
208
220
|
`--output json`, complete noninteractive input through `--json` or `--file`, and
|
|
209
221
|
raw artifact output through `export --dest -` without prompts.
|
|
@@ -228,6 +240,7 @@ availability details.
|
|
|
228
240
|
```sh
|
|
229
241
|
sketchi --help
|
|
230
242
|
sketchi create --help
|
|
243
|
+
sketchi patch --help
|
|
231
244
|
sketchi generate --help
|
|
232
245
|
sketchi share --help
|
|
233
246
|
sketchi pull --help
|