agentic-mermaid 0.1.2 → 0.2.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.
Files changed (52) hide show
  1. package/AGENT_NATIVE.md +671 -0
  2. package/CHANGELOG.md +19 -0
  3. package/Instructions_for_agents.md +89 -0
  4. package/README.md +8 -8
  5. package/assets/hero.png +0 -0
  6. package/dist/agent-core.d.ts +2 -2
  7. package/dist/agent-core.js +2 -2
  8. package/dist/agent.d.ts +2 -2
  9. package/dist/agent.js +4 -4
  10. package/dist/agentic-mermaid-mcp.js +5 -5
  11. package/dist/am.js +8 -15
  12. package/dist/{chunk-QKDLMOJJ.js → chunk-2P5FKUQC.js} +7 -9
  13. package/dist/{chunk-WN3YDOBG.js → chunk-2S3VSS6I.js} +4 -4
  14. package/dist/{chunk-CDPKJ2BQ.js → chunk-2SILJDW2.js} +2 -2
  15. package/dist/{chunk-ZYMMKQ3I.js → chunk-BJYMBT4I.js} +299 -973
  16. package/dist/{chunk-WI35L7IR.js → chunk-FDM43XU7.js} +2 -2
  17. package/dist/{chunk-4QECACIA.js → chunk-MYPDVZCO.js} +19 -19
  18. package/dist/{index-D54dqSdC.d.ts → index-DWPa2MJs.d.ts} +7 -4
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/mcp-cli-5J47WEY3.js +17 -0
  22. package/docs/README.md +34 -34
  23. package/docs/agent-api-cookbook.md +317 -0
  24. package/docs/agent-mutation-policy.md +104 -0
  25. package/docs/agent-workflow-examples.md +46 -0
  26. package/docs/api.md +418 -0
  27. package/docs/ascii.md +113 -0
  28. package/docs/code-mode-impact.md +214 -0
  29. package/docs/comparison.md +106 -0
  30. package/docs/computational-aesthetics-prototype-plan.md +252 -0
  31. package/docs/config.md +121 -0
  32. package/docs/custom-fonts.md +265 -0
  33. package/docs/custom-style-cookbook.md +275 -0
  34. package/docs/diagram-families.md +218 -0
  35. package/docs/features.md +154 -0
  36. package/docs/fork-differences.md +133 -0
  37. package/docs/getting-started.md +182 -0
  38. package/docs/issue-derived-test-cases.md +163 -0
  39. package/docs/mcp-code-mode-rationale.md +108 -0
  40. package/docs/mcp-http-transport.md +230 -0
  41. package/docs/mermaid-layout-complaints.md +851 -0
  42. package/docs/mutation-testing.md +285 -0
  43. package/docs/quality.md +224 -0
  44. package/docs/react.md +97 -0
  45. package/docs/style-authoring.md +336 -0
  46. package/docs/svg-semantic-contract.md +49 -0
  47. package/docs/testing-strategy.md +443 -0
  48. package/docs/theming.md +149 -0
  49. package/package.json +21 -6
  50. package/server.json +2 -2
  51. package/skills/agentic-mermaid-live-editor/SKILL.md +1 -1
  52. 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.1.2",
4
+ "version": "0.2.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",
@@ -32,7 +32,7 @@
32
32
  "agentic-mermaid-mcp": "dist/agentic-mermaid-mcp.js"
33
33
  },
34
34
  "engines": {
35
- "node": ">=18"
35
+ "node": ">=22"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public",
@@ -85,9 +85,13 @@
85
85
  "files": [
86
86
  "dist/",
87
87
  "assets/fonts/",
88
+ "assets/hero.png",
89
+ "docs/*.md",
88
90
  "docs/schemas/style-spec.schema.json",
89
91
  "examples/styles/",
90
92
  "skills/",
93
+ "AGENT_NATIVE.md",
94
+ "Instructions_for_agents.md",
91
95
  "server.json",
92
96
  "CHANGELOG.md",
93
97
  "SECURITY.md",
@@ -99,7 +103,13 @@
99
103
  ],
100
104
  "scripts": {
101
105
  "test": "bun test --coverage --timeout 30000 src/__tests__/",
102
- "typecheck": "bun run website/build.ts && tsc --noEmit",
106
+ "typecheck": "bun run typecheck:core && bun run typecheck:repo",
107
+ "typecheck:core": "tsc --noEmit -p tsconfig.json",
108
+ "typecheck:repo": "tsc --noEmit -p tsconfig.repo.json",
109
+ "quality:check": "bun run scripts/ci/quality-gates.ts",
110
+ "evidence:check": "bun run scripts/ci/quality-gates.ts --evidence-only",
111
+ "format": "biome format --write .",
112
+ "format:changed": "biome format --write --changed",
103
113
  "test:browser": "bun run e2e/run-browser-contracts.ts",
104
114
  "editor": "bun run scripts/site/editor.ts",
105
115
  "dev": "bun run website:dev",
@@ -112,6 +122,8 @@
112
122
  "build:binary": "bun build ./bin/am.ts --compile --outfile dist/am",
113
123
  "website": "bun run website/build.ts",
114
124
  "website:check": "bun run website/build.ts --check",
125
+ "website:payload:write": "bun run scripts/site/website-payload-report.ts --write",
126
+ "website:payload:check": "bun run scripts/site/website-payload-report.ts --check",
115
127
  "website:dev": "cd website && WRANGLER_SEND_METRICS=false npx --yes wrangler@latest dev --port 9095 --ip 127.0.0.1",
116
128
  "deploy": "bun run website && cd website && WRANGLER_SEND_METRICS=false npx --yes wrangler@latest deploy",
117
129
  "prepublishOnly": "npm run build",
@@ -119,8 +131,6 @@
119
131
  "goldens:ascii:check": "bun run scripts/update-ascii-goldens.ts --check",
120
132
  "hero": "bun run scripts/site/hero.ts",
121
133
  "hero:check": "bun run scripts/site/hero.ts --check",
122
- "site": "bun run website",
123
- "site:check": "bun run website:check",
124
134
  "style:audit": "bun test src/__tests__/style-role-audit.test.ts",
125
135
  "sketch:check": "bun test scripts/sketch-prototype/styles.test.ts && bun run scripts/sketch-prototype/contrast-audit.ts",
126
136
  "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 +149,12 @@
139
149
  "mutation-test": "bun run scripts/quality/mutation-profile.ts",
140
150
  "sabotage:routes": "bun run eval/sabotage/route-regressions.ts",
141
151
  "test:family-elevation-reverts": "bun run scripts/quality/family-elevation-revert-probes.ts",
142
- "lint": "bun test src/__tests__/agent-substrate-lint.test.ts src/__tests__/test-quality-lint.test.ts",
152
+ "lint": "bun run lint:biome && bun run lint:contracts",
153
+ "lint:biome": "biome lint .",
154
+ "lint:contracts": "bun test src/__tests__/agent-substrate-lint.test.ts src/__tests__/test-quality-lint.test.ts",
143
155
  "eval:agent-live": "bun run eval/agent-usage/live.ts",
144
156
  "eval:agent-subagent": "bun run eval/agent-usage/capture-subagent-prompt-eval.ts",
157
+ "eval:degenerate-routes": "bun run eval/degenerate-etn/enumerate.ts",
145
158
  "rubric:visual": "bun run eval/visual-rubric/run.ts",
146
159
  "contact:sheet": "bun run eval/visual-rubric/contact-sheet.ts",
147
160
  "contact:sheet:test-portfolio": "bun run scripts/pr-assets/test-portfolio-contact-sheet.ts",
@@ -179,11 +192,13 @@
179
192
  "overrides": {
180
193
  "brace-expansion": "5.0.7",
181
194
  "esbuild": "0.28.1",
195
+ "fast-uri": "3.1.4",
182
196
  "lodash-es": "4.18.1",
183
197
  "picomatch": "4.0.5",
184
198
  "qs": "6.15.3"
185
199
  },
186
200
  "devDependencies": {
201
+ "@biomejs/biome": "2.5.5",
187
202
  "@modelcontextprotocol/sdk": "1.29.0",
188
203
  "@resvg/resvg-wasm": "2.6.2",
189
204
  "@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.1.2",
10
+ "version": "0.2.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.1.2",
16
+ "version": "0.2.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 # committed generated inputs are current
35
+ bun run website:check # clean in-memory website + Worker artifact contracts
36
36
  bun run typecheck
37
37
  ```
38
38
 
@@ -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