paseo-plugin-mermaid 0.2.3 → 0.2.4
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 +27 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,19 +6,27 @@
|
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
9
|
+
<a href="https://github.com/dutchakdev/paseo-plugin-mermaid/actions/workflows/ci.yml"><img src="https://github.com/dutchakdev/paseo-plugin-mermaid/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/paseo-plugin-mermaid"><img src="https://img.shields.io/npm/v/paseo-plugin-mermaid" alt="npm"></a>
|
|
9
11
|
<img src="https://img.shields.io/badge/Paseo-0.8.x%20%E2%80%93%200.13.x-3987e5" alt="Supports Paseo 0.8.x through 0.13.x, including betas">
|
|
10
|
-
<img src="https://img.shields.io/badge/tests-110-199e70" alt="110 tests">
|
|
11
12
|
<img src="https://img.shields.io/badge/dependencies-none-c98500" alt="No runtime dependencies">
|
|
12
13
|
<img src="https://img.shields.io/badge/license-MIT-9aa1a6" alt="MIT licensed">
|
|
13
14
|
</p>
|
|
14
15
|
|
|
15
16
|
<p align="center">
|
|
16
|
-
<img src="docs/preview.
|
|
17
|
+
<img src="docs/preview.png" alt="A flowchart and a sequence diagram rendered in a Paseo transcript" width="920">
|
|
17
18
|
</p>
|
|
18
19
|
|
|
19
20
|
<p align="center"><sub>Generated by <code>npm run preview</code>: the diagram above comes from the plugin's own parser and layout, so the picture cannot drift from the code.</sub></p>
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
Listed in the [Paseo plugin directory](https://paseo.sh/plugins/dutchakdev/mermaid).
|
|
23
|
+
|
|
24
|
+
- **Inline, from the first streamed line.** The diagram is drawn in the message at the
|
|
25
|
+
width of the chat while the agent is still writing it.
|
|
26
|
+
- **Flowcharts and sequence diagrams**, with the usual node shapes, edge styles and labels.
|
|
27
|
+
- **A toolbar on every diagram:** zoom, fit to view, pop out, and the source on demand.
|
|
28
|
+
- **Nothing leaves the app.** The plugin has no server half, no settings and no network
|
|
29
|
+
access; it reads the message text it is given and draws it with React Native views.
|
|
22
30
|
|
|
23
31
|
Paseo draws Mermaid itself too, in an iframe inside a zoomable box with a
|
|
24
32
|
fullscreen viewer. This plugin draws it inline instead: readable at the width of
|
|
@@ -28,14 +36,21 @@ source on demand.
|
|
|
28
36
|
|
|
29
37
|
## Install
|
|
30
38
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
paseo plugin ls # expect: running
|
|
34
|
-
```
|
|
39
|
+
Plugins must be enabled daemon-wide first, under **Settings → Plugins → Enable
|
|
40
|
+
plugins**. Then pick the source that matches your Paseo:
|
|
35
41
|
|
|
36
|
-
Paseo
|
|
37
|
-
|
|
38
|
-
|
|
42
|
+
| Paseo | Source | Command |
|
|
43
|
+
| ----- | ------ | ------- |
|
|
44
|
+
| 0.11 and newer | [Plugin directory](https://paseo.sh/plugins/dutchakdev/mermaid), the reviewed version | `paseo plugin add dutchakdev/mermaid` |
|
|
45
|
+
| 0.9 and newer | npm, the newest release before the directory approves it | `paseo plugin install npm:paseo-plugin-mermaid` |
|
|
46
|
+
| 0.8 | GitHub | `paseo plugin add dutchakdev/paseo-plugin-mermaid` |
|
|
47
|
+
|
|
48
|
+
`paseo plugin ls` should then show `mermaid` as `running`, and `paseo plugin update mermaid`
|
|
49
|
+
pulls later releases from the same source. From Paseo 0.11 a bare `owner/name` names a
|
|
50
|
+
directory entry, so a GitHub source there needs the `git:` prefix:
|
|
51
|
+
`git:dutchakdev/paseo-plugin-mermaid`.
|
|
52
|
+
|
|
53
|
+
The plugin supports **Paseo 0.8.x through 0.13.x, including betas**, on both
|
|
39
54
|
sides: the daemon compiles it, and the app checks its declared version range.
|
|
40
55
|
It has no server entry, so it starts no daemon process.
|
|
41
56
|
|
|
@@ -54,9 +69,6 @@ npm run typecheck && npm test
|
|
|
54
69
|
paseo plugin install "$PWD"
|
|
55
70
|
```
|
|
56
71
|
|
|
57
|
-
Plugins must be enabled daemon-wide first, under **Settings → Plugins → Enable
|
|
58
|
-
plugins**.
|
|
59
|
-
|
|
60
72
|
## What it draws
|
|
61
73
|
|
|
62
74
|
| Diagram | Supported |
|
|
@@ -149,6 +161,8 @@ multiplies that fit, which is why 100% is the fit itself and not the natural siz
|
|
|
149
161
|
|
|
150
162
|
```sh
|
|
151
163
|
npm run check # typecheck, then the tests
|
|
164
|
+
npm run preview # regenerates docs/preview.svg from the parser and layout
|
|
165
|
+
./scripts/preview-png.sh # renders it to docs/preview.png for the plugin directory
|
|
152
166
|
paseo plugin reload mermaid
|
|
153
167
|
```
|
|
154
168
|
|