paseo-plugin-mermaid 0.2.0 → 0.2.2
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/OVERVIEW.md +7 -0
- package/README.md +8 -6
- package/package.json +9 -2
package/OVERVIEW.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Mermaid draws `mermaid` code blocks in agent and user messages as diagrams in the chat timeline instead of showing the source. It supports flowcharts and sequence diagrams. Subgraphs, `style` and `classDef` directives, and other diagram types are not supported. Lines the parser does not recognize are counted under the drawing, and a diagram that cannot be parsed is shown as source.
|
|
2
|
+
|
|
3
|
+
Diagrams are drawn from the message text when the message renders, and drawing starts while the code block is still streaming. A message that contains a diagram is rendered by the plugin, so the text around the diagram uses a limited Markdown renderer (headings, lists, emphasis and code). Messages without a diagram are left to Paseo.
|
|
4
|
+
|
|
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
|
+
|
|
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.
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
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.
|
|
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
10
|
<img src="https://img.shields.io/badge/tests-110-199e70" alt="110 tests">
|
|
11
11
|
<img src="https://img.shields.io/badge/dependencies-none-c98500" alt="No runtime dependencies">
|
|
12
12
|
<img src="https://img.shields.io/badge/license-MIT-9aa1a6" alt="MIT licensed">
|
|
@@ -35,12 +35,12 @@ paseo plugin ls # expect: running
|
|
|
35
35
|
|
|
36
36
|
Paseo 0.8 has no npm sources, so install from Git there:
|
|
37
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.
|
|
38
|
+
`paseo plugin update mermaid` pulls later releases. The plugin supports **Paseo 0.8.x through 0.12.x, including betas**, on both
|
|
39
39
|
sides: the daemon compiles it, and the app checks its declared version range.
|
|
40
40
|
It has no server entry, so it starts no daemon process.
|
|
41
41
|
|
|
42
|
-
The manifest remains `>=0.8.0`, which already admits 0.9.x
|
|
43
|
-
prerelease's stable version core, so `0.
|
|
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
|
|
44
44
|
[version requirements](https://paseo.sh/docs/plugins/reference#requirements).
|
|
45
45
|
The development SDK stays pinned to 0.8.0; Paseo supplies the runtime modules.
|
|
46
46
|
|
|
@@ -148,8 +148,7 @@ multiplies that fit, which is why 100% is the fit itself and not the natural siz
|
|
|
148
148
|
## Development
|
|
149
149
|
|
|
150
150
|
```sh
|
|
151
|
-
npm run typecheck
|
|
152
|
-
npm test # 110 tests
|
|
151
|
+
npm run check # typecheck, then the tests
|
|
153
152
|
paseo plugin reload mermaid
|
|
154
153
|
```
|
|
155
154
|
|
|
@@ -177,6 +176,9 @@ and by reloading the plugin.
|
|
|
177
176
|
| `client/item.tsx` | the two timeline renderers |
|
|
178
177
|
| `index.client.tsx` | registers the transformers and renderers; the only entry |
|
|
179
178
|
|
|
179
|
+
Releases are cut from tags by GitHub Actions; see [CONTRIBUTING.md](CONTRIBUTING.md)
|
|
180
|
+
for the flow and [CHANGELOG.md](CHANGELOG.md) for what changed.
|
|
181
|
+
|
|
180
182
|
## License
|
|
181
183
|
|
|
182
184
|
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paseo-plugin-mermaid",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Render Mermaid diagrams inside the Paseo chat timeline",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "dutchakdev",
|
|
@@ -14,19 +14,25 @@
|
|
|
14
14
|
"mermaid",
|
|
15
15
|
"diagrams"
|
|
16
16
|
],
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=22.12.0"
|
|
19
|
+
},
|
|
17
20
|
"scripts": {
|
|
18
21
|
"typecheck": "tsc --noEmit",
|
|
19
22
|
"test": "vitest run",
|
|
20
|
-
"preview": "tsx scripts/preview.ts"
|
|
23
|
+
"preview": "tsx scripts/preview.ts",
|
|
24
|
+
"check": "npm run typecheck && npm test"
|
|
21
25
|
},
|
|
22
26
|
"devDependencies": {
|
|
23
27
|
"@getpaseo/client": "0.8.0",
|
|
24
28
|
"@getpaseo/plugin": "0.8.0",
|
|
25
29
|
"@getpaseo/protocol": "0.8.0",
|
|
26
30
|
"@tanstack/react-query": "^5.90.11",
|
|
31
|
+
"@types/node": "22.20.5",
|
|
27
32
|
"@types/react": "~19.2.0",
|
|
28
33
|
"react": "19.1.0",
|
|
29
34
|
"react-native": "0.81.5",
|
|
35
|
+
"semver": "7.8.5",
|
|
30
36
|
"tsx": "^4.23.13",
|
|
31
37
|
"typescript": "^5.9.3",
|
|
32
38
|
"vitest": "^4.1.11",
|
|
@@ -34,6 +40,7 @@
|
|
|
34
40
|
},
|
|
35
41
|
"files": [
|
|
36
42
|
"paseo-plugin.json",
|
|
43
|
+
"OVERVIEW.md",
|
|
37
44
|
"index.client.tsx",
|
|
38
45
|
"client/",
|
|
39
46
|
"shared/"
|