paseo-plugin-mermaid 0.2.2 → 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.
Files changed (3) hide show
  1. package/OVERVIEW.md +1 -1
  2. package/README.md +30 -16
  3. package/package.json +1 -1
package/OVERVIEW.md CHANGED
@@ -4,4 +4,4 @@ Diagrams are drawn from the message text when the message renders, and drawing s
4
4
 
5
5
  Each diagram has a toolbar to zoom, fit to view, pop out to a larger view, and show the code. Zoom matches Paseo's own diagram viewer: 100% is the drawing fitted to the row.
6
6
 
7
- The plugin runs entirely in the Paseo app on desktop and mobile, works with Paseo 0.8 to 0.12, has no settings, and needs no additional setup.
7
+ The plugin runs entirely in the Paseo app on desktop and mobile, works with Paseo 0.8 to 0.13, has no settings, and needs no additional setup.
package/README.md CHANGED
@@ -6,19 +6,27 @@
6
6
  </p>
7
7
 
8
8
  <p align="center">
9
- <img src="https://img.shields.io/badge/Paseo-0.8.x%20%E2%80%93%200.12.x-3987e5" alt="Supports Paseo 0.8.x through 0.12.x, including betas">
10
- <img src="https://img.shields.io/badge/tests-110-199e70" alt="110 tests">
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>
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">
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.svg" alt="A flowchart and a sequence diagram rendered in a Paseo transcript" width="920">
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&apos;s own parser and layout, so the picture cannot drift from the code.</sub></p>
20
21
 
21
- Built on the plugin timeline API introduced in Paseo 0.8.
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,19 +36,26 @@ source on demand.
28
36
 
29
37
  ## Install
30
38
 
31
- ```sh
32
- paseo plugin install npm:paseo-plugin-mermaid # Paseo 0.9 and newer
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 0.8 has no npm sources, so install from Git there:
37
- `paseo plugin add dutchakdev/paseo-plugin-mermaid`. Either way,
38
- `paseo plugin update mermaid` pulls later releases. The plugin supports **Paseo 0.8.x through 0.12.x, including betas**, on both
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
 
42
- The manifest remains `>=0.8.0`, which already admits 0.9.x through 0.12.x. Paseo also checks a
43
- prerelease's stable version core, so `0.12.0-beta.1` satisfies this range; see
57
+ The manifest remains `>=0.8.0`, which already admits 0.9.x through 0.13.x. Paseo also checks a
58
+ prerelease's stable version core, so `0.13.0-beta.1` satisfies this range; see
44
59
  [version requirements](https://paseo.sh/docs/plugins/reference#requirements).
45
60
  The development SDK stays pinned to 0.8.0; Paseo supplies the runtime modules.
46
61
 
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paseo-plugin-mermaid",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Render Mermaid diagrams inside the Paseo chat timeline",
5
5
  "license": "MIT",
6
6
  "author": "dutchakdev",