agentic-mermaid 0.1.2 → 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/AGENT_NATIVE.md +671 -0
- package/CHANGELOG.md +36 -0
- package/Instructions_for_agents.md +89 -0
- package/README.md +8 -8
- package/assets/hero.png +0 -0
- package/dist/agent-core.d.ts +2 -2
- package/dist/agent-core.js +2 -2
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +4 -4
- package/dist/agentic-mermaid-mcp.js +5 -5
- package/dist/am.js +8 -15
- package/dist/browser.global.js +777 -0
- package/dist/{chunk-WN3YDOBG.js → chunk-3QCXO4V6.js} +4 -4
- package/dist/{chunk-4QECACIA.js → chunk-AVCWKYII.js} +19 -19
- package/dist/{chunk-WI35L7IR.js → chunk-GILQUGFK.js} +2 -2
- package/dist/{chunk-QKDLMOJJ.js → chunk-HFD4MALA.js} +7 -9
- package/dist/{chunk-CDPKJ2BQ.js → chunk-UJNY65QS.js} +2 -2
- package/dist/{chunk-ZYMMKQ3I.js → chunk-WHYJLDYG.js} +299 -973
- package/dist/{index-D54dqSdC.d.ts → index-CLwYn6Im.d.ts} +7 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp-cli-SJVOGRA6.js +17 -0
- package/docs/README.md +35 -34
- package/docs/agent-api-cookbook.md +317 -0
- package/docs/agent-mutation-policy.md +104 -0
- package/docs/agent-workflow-examples.md +46 -0
- package/docs/api.md +418 -0
- package/docs/ascii.md +113 -0
- package/docs/browser.md +183 -0
- package/docs/code-mode-impact.md +214 -0
- package/docs/comparison.md +106 -0
- package/docs/computational-aesthetics-prototype-plan.md +252 -0
- package/docs/config.md +121 -0
- package/docs/custom-fonts.md +265 -0
- package/docs/custom-style-cookbook.md +275 -0
- package/docs/diagram-families.md +218 -0
- package/docs/features.md +154 -0
- package/docs/fork-differences.md +166 -0
- package/docs/getting-started.md +182 -0
- package/docs/issue-derived-test-cases.md +163 -0
- package/docs/mcp-code-mode-rationale.md +108 -0
- package/docs/mcp-http-transport.md +230 -0
- package/docs/mermaid-layout-complaints.md +851 -0
- package/docs/mutation-testing.md +285 -0
- package/docs/quality.md +224 -0
- package/docs/react.md +97 -0
- package/docs/style-authoring.md +336 -0
- package/docs/svg-semantic-contract.md +49 -0
- package/docs/testing-strategy.md +443 -0
- package/docs/theming.md +149 -0
- package/package.json +28 -9
- package/server.json +2 -2
- package/skills/agentic-mermaid-live-editor/SKILL.md +1 -1
- package/dist/mcp-cli-SBQSTJFC.js +0 -17
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-mermaid",
|
|
3
3
|
"mcpName": "io.github.adewale/agentic-mermaid",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Agentic Mermaid: render, verify, and safely edit Mermaid diagrams as ASCII, PNG, SVG, or structured agent workflows — with composable styles (hand-drawn, excalidraw, watercolor, or your own as JSON).",
|
|
7
7
|
"type": "module",
|
|
@@ -23,16 +23,19 @@
|
|
|
23
23
|
"import": "./dist/agent-core.js",
|
|
24
24
|
"default": "./dist/agent-core.js"
|
|
25
25
|
},
|
|
26
|
+
"./browser": "./dist/browser.global.js",
|
|
26
27
|
"./style-spec.schema.json": "./docs/schemas/style-spec.schema.json",
|
|
27
28
|
"./package.json": "./package.json"
|
|
28
29
|
},
|
|
30
|
+
"unpkg": "./dist/browser.global.js",
|
|
31
|
+
"jsdelivr": "./dist/browser.global.js",
|
|
29
32
|
"bin": {
|
|
30
33
|
"am": "dist/am.js",
|
|
31
34
|
"agentic-mermaid": "dist/am.js",
|
|
32
35
|
"agentic-mermaid-mcp": "dist/agentic-mermaid-mcp.js"
|
|
33
36
|
},
|
|
34
37
|
"engines": {
|
|
35
|
-
"node": ">=
|
|
38
|
+
"node": ">=22"
|
|
36
39
|
},
|
|
37
40
|
"publishConfig": {
|
|
38
41
|
"access": "public",
|
|
@@ -85,9 +88,13 @@
|
|
|
85
88
|
"files": [
|
|
86
89
|
"dist/",
|
|
87
90
|
"assets/fonts/",
|
|
91
|
+
"assets/hero.png",
|
|
92
|
+
"docs/*.md",
|
|
88
93
|
"docs/schemas/style-spec.schema.json",
|
|
89
94
|
"examples/styles/",
|
|
90
95
|
"skills/",
|
|
96
|
+
"AGENT_NATIVE.md",
|
|
97
|
+
"Instructions_for_agents.md",
|
|
91
98
|
"server.json",
|
|
92
99
|
"CHANGELOG.md",
|
|
93
100
|
"SECURITY.md",
|
|
@@ -99,7 +106,13 @@
|
|
|
99
106
|
],
|
|
100
107
|
"scripts": {
|
|
101
108
|
"test": "bun test --coverage --timeout 30000 src/__tests__/",
|
|
102
|
-
"typecheck": "bun run
|
|
109
|
+
"typecheck": "bun run typecheck:core && bun run typecheck:repo",
|
|
110
|
+
"typecheck:core": "tsc --noEmit -p tsconfig.json",
|
|
111
|
+
"typecheck:repo": "tsc --noEmit -p tsconfig.repo.json",
|
|
112
|
+
"quality:check": "bun run scripts/ci/quality-gates.ts",
|
|
113
|
+
"evidence:check": "bun run scripts/ci/quality-gates.ts --evidence-only",
|
|
114
|
+
"format": "biome format --write .",
|
|
115
|
+
"format:changed": "biome format --write --changed",
|
|
103
116
|
"test:browser": "bun run e2e/run-browser-contracts.ts",
|
|
104
117
|
"editor": "bun run scripts/site/editor.ts",
|
|
105
118
|
"dev": "bun run website:dev",
|
|
@@ -108,19 +121,20 @@
|
|
|
108
121
|
"benchmark:palette:check": "bun run eval/palette-performance/run.ts --check",
|
|
109
122
|
"harvest:upstream": "bun run eval/mermaid-upstream-suite-bench/harvest.ts",
|
|
110
123
|
"harvest:upstream:refresh-check": "bun run eval/mermaid-upstream-suite-bench/refresh-check.ts",
|
|
111
|
-
"build": "tsup",
|
|
124
|
+
"build": "tsup && bun run build:browser",
|
|
125
|
+
"build:browser": "tsup --config tsup.browser.config.ts",
|
|
112
126
|
"build:binary": "bun build ./bin/am.ts --compile --outfile dist/am",
|
|
113
127
|
"website": "bun run website/build.ts",
|
|
114
128
|
"website:check": "bun run website/build.ts --check",
|
|
129
|
+
"website:payload:write": "bun run scripts/site/website-payload-report.ts --write",
|
|
130
|
+
"website:payload:check": "bun run scripts/site/website-payload-report.ts --check",
|
|
115
131
|
"website:dev": "cd website && WRANGLER_SEND_METRICS=false npx --yes wrangler@latest dev --port 9095 --ip 127.0.0.1",
|
|
116
|
-
"deploy": "bun run website && cd website && WRANGLER_SEND_METRICS=false npx --yes wrangler@latest deploy",
|
|
132
|
+
"deploy": "bun run build && bun run website && cd website && WRANGLER_SEND_METRICS=false npx --yes wrangler@latest deploy",
|
|
117
133
|
"prepublishOnly": "npm run build",
|
|
118
134
|
"goldens:ascii": "bun run scripts/update-ascii-goldens.ts",
|
|
119
135
|
"goldens:ascii:check": "bun run scripts/update-ascii-goldens.ts --check",
|
|
120
136
|
"hero": "bun run scripts/site/hero.ts",
|
|
121
137
|
"hero:check": "bun run scripts/site/hero.ts --check",
|
|
122
|
-
"site": "bun run website",
|
|
123
|
-
"site:check": "bun run website:check",
|
|
124
138
|
"style:audit": "bun test src/__tests__/style-role-audit.test.ts",
|
|
125
139
|
"sketch:check": "bun test scripts/sketch-prototype/styles.test.ts && bun run scripts/sketch-prototype/contrast-audit.ts",
|
|
126
140
|
"characterization:check": "bun run scripts/characterization/contact-sheet.ts --check && bun run scripts/characterization/contact-sheet-families.ts --check && bun run scripts/characterization/visual-quality.ts --check",
|
|
@@ -139,9 +153,12 @@
|
|
|
139
153
|
"mutation-test": "bun run scripts/quality/mutation-profile.ts",
|
|
140
154
|
"sabotage:routes": "bun run eval/sabotage/route-regressions.ts",
|
|
141
155
|
"test:family-elevation-reverts": "bun run scripts/quality/family-elevation-revert-probes.ts",
|
|
142
|
-
"lint": "bun
|
|
156
|
+
"lint": "bun run lint:biome && bun run lint:contracts",
|
|
157
|
+
"lint:biome": "biome lint .",
|
|
158
|
+
"lint:contracts": "bun test src/__tests__/agent-substrate-lint.test.ts src/__tests__/test-quality-lint.test.ts",
|
|
143
159
|
"eval:agent-live": "bun run eval/agent-usage/live.ts",
|
|
144
160
|
"eval:agent-subagent": "bun run eval/agent-usage/capture-subagent-prompt-eval.ts",
|
|
161
|
+
"eval:degenerate-routes": "bun run eval/degenerate-etn/enumerate.ts",
|
|
145
162
|
"rubric:visual": "bun run eval/visual-rubric/run.ts",
|
|
146
163
|
"contact:sheet": "bun run eval/visual-rubric/contact-sheet.ts",
|
|
147
164
|
"contact:sheet:test-portfolio": "bun run scripts/pr-assets/test-portfolio-contact-sheet.ts",
|
|
@@ -177,13 +194,15 @@
|
|
|
177
194
|
"yaml": "^2.8.3"
|
|
178
195
|
},
|
|
179
196
|
"overrides": {
|
|
180
|
-
"brace-expansion": "5.0.
|
|
197
|
+
"brace-expansion": "5.0.8",
|
|
181
198
|
"esbuild": "0.28.1",
|
|
199
|
+
"fast-uri": "3.1.4",
|
|
182
200
|
"lodash-es": "4.18.1",
|
|
183
201
|
"picomatch": "4.0.5",
|
|
184
202
|
"qs": "6.15.3"
|
|
185
203
|
},
|
|
186
204
|
"devDependencies": {
|
|
205
|
+
"@biomejs/biome": "2.5.5",
|
|
187
206
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
188
207
|
"@resvg/resvg-wasm": "2.6.2",
|
|
189
208
|
"@stryker-mutator/core": "^9.6.1",
|
package/server.json
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
"url": "https://github.com/adewale/agentic-mermaid",
|
|
8
8
|
"source": "github"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.3.0",
|
|
11
11
|
"websiteUrl": "https://agentic-mermaid.dev/",
|
|
12
12
|
"packages": [
|
|
13
13
|
{
|
|
14
14
|
"registryType": "npm",
|
|
15
15
|
"identifier": "agentic-mermaid",
|
|
16
|
-
"version": "0.
|
|
16
|
+
"version": "0.3.0",
|
|
17
17
|
"runtimeHint": "npx",
|
|
18
18
|
"runtimeArguments": [
|
|
19
19
|
{
|
|
@@ -32,7 +32,7 @@ Run the target that owns the changed surface:
|
|
|
32
32
|
```bash
|
|
33
33
|
bun run editor # standalone editor.html
|
|
34
34
|
bun run website # production website/public, including /editor/
|
|
35
|
-
bun run website:check #
|
|
35
|
+
bun run website:check # clean in-memory website + Worker artifact contracts
|
|
36
36
|
bun run typecheck
|
|
37
37
|
```
|
|
38
38
|
|
package/dist/mcp-cli-SBQSTJFC.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
MCP_CLI_HELP,
|
|
3
|
-
MCP_FLAG_SPECS,
|
|
4
|
-
parseMcpCliOptions,
|
|
5
|
-
runMcpCli
|
|
6
|
-
} from "./chunk-QKDLMOJJ.js";
|
|
7
|
-
import "./chunk-CDPKJ2BQ.js";
|
|
8
|
-
import "./chunk-WI35L7IR.js";
|
|
9
|
-
import "./chunk-4QECACIA.js";
|
|
10
|
-
import "./chunk-ZYMMKQ3I.js";
|
|
11
|
-
export {
|
|
12
|
-
MCP_CLI_HELP,
|
|
13
|
-
MCP_FLAG_SPECS,
|
|
14
|
-
parseMcpCliOptions,
|
|
15
|
-
runMcpCli
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=mcp-cli-SBQSTJFC.js.map
|