agentic-mermaid 0.3.0 → 0.3.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/CHANGELOG.md +31 -0
- package/dist/agent-core.d.ts +8 -3
- 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 +6 -6
- package/dist/browser-lazy/chunks/architecture-WMSX5L4P.js +31 -0
- package/dist/browser-lazy/chunks/chunk-32FWKUUV.js +1 -0
- package/dist/browser-lazy/chunks/chunk-5Q4S74UO.js +1 -0
- package/dist/browser-lazy/chunks/chunk-A7L4WWVW.js +143 -0
- package/dist/browser-lazy/chunks/chunk-ANTNEVJC.js +1 -0
- package/dist/browser-lazy/chunks/chunk-AOCFMYYH.js +4 -0
- package/dist/browser-lazy/chunks/chunk-CCTZFX43.js +4 -0
- package/dist/browser-lazy/chunks/chunk-EBPTM2RP.js +1 -0
- package/dist/browser-lazy/chunks/chunk-EPFMQPXX.js +1 -0
- package/dist/browser-lazy/chunks/chunk-EX6TP7QM.js +46 -0
- package/dist/browser-lazy/chunks/chunk-FFOHLPDA.js +2 -0
- package/dist/browser-lazy/chunks/chunk-FLD63DXE.js +2 -0
- package/dist/browser-lazy/chunks/chunk-GRXCKTHX.js +0 -0
- package/dist/browser-lazy/chunks/chunk-I6VE56S7.js +1 -0
- package/dist/browser-lazy/chunks/chunk-KJVNXJ5Y.js +1 -0
- package/dist/browser-lazy/chunks/chunk-M6BT2HIP.js +1 -0
- package/dist/browser-lazy/chunks/chunk-OFRMKQA6.js +1 -0
- package/dist/browser-lazy/chunks/chunk-P7HMSKHJ.js +1 -0
- package/dist/browser-lazy/chunks/chunk-PZEWZT35.js +1 -0
- package/dist/browser-lazy/chunks/chunk-QMZ4Y6I7.js +1 -0
- package/dist/browser-lazy/chunks/chunk-QYJMRNS3.js +11 -0
- package/dist/browser-lazy/chunks/chunk-RLS545DI.js +1 -0
- package/dist/browser-lazy/chunks/chunk-STQRDZ67.js +1 -0
- package/dist/browser-lazy/chunks/chunk-T7IJ6V4B.js +3 -0
- package/dist/browser-lazy/chunks/chunk-TBZAU7KC.js +7 -0
- package/dist/browser-lazy/chunks/chunk-TDGTBGV3.js +1 -0
- package/dist/browser-lazy/chunks/chunk-TEH2PRKN.js +1 -0
- package/dist/browser-lazy/chunks/chunk-W6Q4PHPC.js +24 -0
- package/dist/browser-lazy/chunks/chunk-WEUWIFG3.js +1 -0
- package/dist/browser-lazy/chunks/chunk-WN7SFUCZ.js +1 -0
- package/dist/browser-lazy/chunks/chunk-ZZECLXC3.js +1 -0
- package/dist/browser-lazy/chunks/class-7JRALQIM.js +9 -0
- package/dist/browser-lazy/chunks/er-UDCGHKBX.js +9 -0
- package/dist/browser-lazy/chunks/flowchart-5FP7RRIK.js +4 -0
- package/dist/browser-lazy/chunks/gantt-NTOIC5CW.js +28 -0
- package/dist/browser-lazy/chunks/gitgraph-JYAPXUIJ.js +8 -0
- package/dist/browser-lazy/chunks/journey-646EFIB6.js +40 -0
- package/dist/browser-lazy/chunks/mindmap-2SBTQHQO.js +9 -0
- package/dist/browser-lazy/chunks/pie-7FDXZ24K.js +19 -0
- package/dist/browser-lazy/chunks/quadrant-72UT4XAW.js +24 -0
- package/dist/browser-lazy/chunks/radar-SU7BO56J.js +32 -0
- package/dist/browser-lazy/chunks/render-core-Q2JWXDDL.js +12 -0
- package/dist/browser-lazy/chunks/sequence-5O5ET264.js +12 -0
- package/dist/browser-lazy/chunks/state-IWPLFQ6R.js +4 -0
- package/dist/browser-lazy/chunks/timeline-WJWYHH5Y.js +20 -0
- package/dist/browser-lazy/chunks/xychart-HHQVQA5O.js +36 -0
- package/dist/browser-lazy/index.d.ts +1012 -0
- package/dist/browser-lazy/index.js +1 -0
- package/dist/browser.global.js +322 -321
- package/dist/{chunk-WHYJLDYG.js → chunk-3D4EHVQ4.js} +47784 -47711
- package/dist/{chunk-AVCWKYII.js → chunk-GX7UT56Q.js} +18 -5
- package/dist/{chunk-UJNY65QS.js → chunk-IVN6KP3W.js} +2 -2
- package/dist/{chunk-HFD4MALA.js → chunk-NE6JBHSE.js} +682 -44
- package/dist/{chunk-3QCXO4V6.js → chunk-R5U67OIW.js} +4 -4
- package/dist/{chunk-GILQUGFK.js → chunk-YWKCUBQN.js} +2 -2
- package/dist/{index-CLwYn6Im.d.ts → index-BFg_LoZS.d.ts} +5409 -5391
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp-cli-XGZP6CMW.js +17 -0
- package/docs/README.md +1 -1
- package/docs/browser.md +355 -47
- package/docs/mcp-http-transport.md +2 -0
- package/package.json +17 -6
- package/server.json +2 -2
- package/dist/mcp-cli-SJVOGRA6.js +0 -17
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
visualWidth,
|
|
94
94
|
wcagCssContrastRatio,
|
|
95
95
|
wrapperPrefix
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-3D4EHVQ4.js";
|
|
97
97
|
|
|
98
98
|
// src/agent/trace-log.ts
|
|
99
99
|
var appendFn;
|
|
@@ -685,10 +685,11 @@ function applyOneMutation(d, op) {
|
|
|
685
685
|
if (!r.ok) return r;
|
|
686
686
|
const bodyAccessibility = accessibilityFromBody(r.value);
|
|
687
687
|
const meta = bodyAccessibility === void 0 ? d.meta : { ...d.meta, accessibility: bodyAccessibility };
|
|
688
|
-
const
|
|
688
|
+
const bodySource = ensureAccessibilityLines(
|
|
689
689
|
plugin.serialize(r.value),
|
|
690
690
|
meta.accessibility
|
|
691
691
|
);
|
|
692
|
+
const canonicalSource = wrapperPrefix(meta, "verbatim", bodySource) + bodySource;
|
|
692
693
|
const reparsed = parseRegisteredMermaid(canonicalSource);
|
|
693
694
|
if (!reparsed.ok) {
|
|
694
695
|
return err({
|
|
@@ -696,7 +697,19 @@ function applyOneMutation(d, op) {
|
|
|
696
697
|
message: `Mutation produced source that could not be reparsed: ${reparsed.error.map((error) => error.message).join("; ")}`
|
|
697
698
|
});
|
|
698
699
|
}
|
|
699
|
-
return ok({
|
|
700
|
+
return ok({
|
|
701
|
+
...d,
|
|
702
|
+
body: r.value,
|
|
703
|
+
meta: {
|
|
704
|
+
...reparsed.value.meta,
|
|
705
|
+
// This receipt describes loss from the originally parsed artifact.
|
|
706
|
+
// Reparsing the already-canonical mutation output cannot rediscover a
|
|
707
|
+
// comment that structured serialization intentionally omitted.
|
|
708
|
+
...d.meta.droppedComments ? { droppedComments: d.meta.droppedComments } : {}
|
|
709
|
+
},
|
|
710
|
+
canonicalSource,
|
|
711
|
+
source: reparsed.value.source
|
|
712
|
+
});
|
|
700
713
|
}
|
|
701
714
|
return err({ code: "INVALID_OP", message: `Unsupported mutable diagram kind: ${d.kind}` });
|
|
702
715
|
}
|
|
@@ -1179,7 +1192,7 @@ function evaluateBrandConstraints(scene, request) {
|
|
|
1179
1192
|
// src/agent/verify.ts
|
|
1180
1193
|
function familyConfigShapeWarnings(d) {
|
|
1181
1194
|
const roots = [d.meta.frontmatter, ...d.meta.initDirectives.map((directive) => directive.parsed)];
|
|
1182
|
-
return familyConfigDiagnostics(d.kind, roots);
|
|
1195
|
+
return familyConfigDiagnostics(d.kind, roots, getFamily(d.kind)?.config);
|
|
1183
1196
|
}
|
|
1184
1197
|
var KNOWN_SHAPES = /* @__PURE__ */ new Set([
|
|
1185
1198
|
"rectangle",
|
|
@@ -4699,4 +4712,4 @@ export {
|
|
|
4699
4712
|
layoutMermaidWithReceipt,
|
|
4700
4713
|
layoutMermaid
|
|
4701
4714
|
};
|
|
4702
|
-
//# sourceMappingURL=chunk-
|
|
4715
|
+
//# sourceMappingURL=chunk-GX7UT56Q.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AsciiWidthError,
|
|
3
3
|
MermaidFamilyDetectionError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3D4EHVQ4.js";
|
|
5
5
|
|
|
6
6
|
// src/render-error-diagnostic.ts
|
|
7
7
|
function projectKnownRenderErrorDiagnostic(error) {
|
|
@@ -34,4 +34,4 @@ export {
|
|
|
34
34
|
projectKnownRenderErrorDiagnostic,
|
|
35
35
|
projectRenderErrorDiagnostic
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-IVN6KP3W.js.map
|