sketchi 0.25.21 → 0.27.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 +8 -4
- package/chunks/712.03ef2ebdd2f77d40.js +1 -0
- package/package.json +1 -1
- package/sketchi.js +31 -31
- package/chunks/712.6ce835ebe914f37c.js +0 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<strong>Typed, deterministic diagrams from your terminal.</strong><br />
|
|
9
|
-
Create, inspect, revise, and export local flowcharts, mindmaps, sequence diagrams, timelines, charts, state machines, Gantt charts, ER diagrams, class diagrams, and
|
|
9
|
+
Create, inspect, revise, and export local flowcharts, mindmaps, sequence diagrams, timelines, charts, state machines, Gantt charts, ER diagrams, class diagrams, org charts, Venn diagrams, and journey maps—or turn one prompt into validated, editable Excalidraw.
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
@@ -53,7 +53,7 @@ sketchi generate --prompt "Map release approval with pass and revise branches"
|
|
|
53
53
|
|
|
54
54
|
With no `--prompt`, Sketchi opens a short wizard only when both standard input
|
|
55
55
|
and standard output are human terminals, output is text, and CI is absent. It
|
|
56
|
-
asks for prompt text, flowchart (the default), mind map, sequence diagram, timeline, chart, state machine, Gantt chart, ER diagram, class diagram,
|
|
56
|
+
asks for prompt text, flowchart (the default), mind map, sequence diagram, timeline, chart, state machine, Gantt chart, ER diagram, class diagram, org chart, Venn diagram, or journey map, and where to save the
|
|
57
57
|
PNG. The choices are the current directory, a `diagrams/` folder under exactly
|
|
58
58
|
the directory where Sketchi was run, or a custom path with the same semantics as
|
|
59
59
|
`--dest`. Sketchi does not inspect Git, and it creates `diagrams/` only after
|
|
@@ -64,7 +64,7 @@ that wizard question. Explicit `--format png` may proceed; another format or
|
|
|
64
64
|
Scripts, pipes, redirected streams, CI, and `--output json` never prompt or
|
|
65
65
|
block. They must pass `--prompt`; omitting it retains the deterministic usage
|
|
66
66
|
error. Passing `--prompt` is always direct and noninteractive.
|
|
67
|
-
`--type` accepts only flowchart, mindmap, sequence, timeline, chart, state-machine, gantt, er, class,
|
|
67
|
+
`--type` accepts only flowchart, mindmap, sequence, timeline, chart, state-machine, gantt, er, class, org-chart, venn, or journey and is authoritative.
|
|
68
68
|
Without it, the generation model selects one of those from the request; a
|
|
69
69
|
request for any other kind of diagram returns a typed unsupported-type error
|
|
70
70
|
instead of being coerced into a supported one.
|
|
@@ -103,7 +103,7 @@ The endpoint defaults to
|
|
|
103
103
|
`https://playground.sketchi.app/api/v1/canvases/create`; use `--endpoint URL` or
|
|
104
104
|
`SKETCHI_CANVAS_ENDPOINT` only for preview and local testing. The existing
|
|
105
105
|
`create` command remains the separate, strictly offline command for accepted
|
|
106
|
-
flowchart, mindmap, sequence, timeline, chart, state-machine, gantt, er, class,
|
|
106
|
+
flowchart, mindmap, sequence, timeline, chart, state-machine, gantt, er, class, org-chart, venn, and journey documents.
|
|
107
107
|
|
|
108
108
|
## Create and work with a diagram offline
|
|
109
109
|
|
|
@@ -332,3 +332,7 @@ Native ER diagrams: use `buildErDiagram` (Code Mode) or `generate --type er` (CL
|
|
|
332
332
|
Native class diagrams: use `buildClassDiagram` (Code Mode) or `generate --type class` (CLI). Supply classes with unique ids (no colons or spaces), an optional `kind` (`abstract`, `interface` or `enum`) and members written as UML does (`"- radius: double"`, `"+ area(): double {abstract}"`), and relationships with a `kind`: `inheritance` or `realization` (`from` extends or implements `to`), `composition` or `aggregation` (`from` is the whole), `association` (`navigable: true` adds an arrow) or `dependency` (`from` uses `to`). Associations, compositions and aggregations take multiplicities and roles at each end. The renderer draws three-compartment boxes with superclasses above their subclasses and each relationship's UML head; it owns every coordinate.
|
|
333
333
|
|
|
334
334
|
Native org charts: use `buildOrgChart` (Code Mode) or `generate --type org-chart` (CLI). Supply people with unique ids (no colons), a `name`, an optional `title` and `department`, and `manager`: the id of the person they report to (only the top person has none; `forest: true` allows several). `assistant: true` places an assistant beside their manager, `avatar: true` draws an initials placeholder, `dottedLines: [{ report, manager, label? }]` adds dotted-line or matrix reports (a stated scope or reason, such as "for clinical systems", goes in `label`), and `groupByDepartment: true` draws each department below the top as a labeled region. The renderer draws a card per person top-down, a bus line from each manager to their reports, long lists of reports stacked in one or two columns, and dotted lines dashed with a head at the second manager and their label beside them; it owns every coordinate.
|
|
335
|
+
|
|
336
|
+
Native Venn diagrams: use `buildVennDiagram` (Code Mode) or `generate --type venn` (CLI). Supply two or three `sets: [{ id, label, color? }]` and `regions: [{ sets, items }]`, one region per overlap: `["a"]` holds what is only in a, `["a", "b"]` what is in a and b but not c. A region holds `items` (short phrases) or a `count`, and an optional `label` naming the overlap; omit empty regions. A set may instead list its whole membership as `items`, and each item then lands in the region of exactly the sets that list it. The renderer draws equal, overlapping translucent circles in the standard symmetric arrangement, each set's label outside its circle, and each region's text centred inside exactly that region; it sizes the circles until every region fits and owns every coordinate.
|
|
337
|
+
|
|
338
|
+
Native journey maps: use `buildJourneyMap` (Code Mode) or `generate --type journey` (CLI). Supply `stages` in order, each `{ name, steps: [{ label, score, actor?, touchpoint? }], painPoints?, opportunities? }`, with an optional `persona` (whose journey it is) and `actors`. `score` is a whole number from 1 (very negative) to 5 (very positive); 3 is neutral. The renderer draws the stages as headers across the top, each step's card under its stage, an emotion curve through a face per step at its score over a dashed neutral baseline, and each stage's pain points and opportunities in rows beneath it; a journey too wide to read wraps into bands of whole stages with the curve running on between them. It owns every coordinate.
|