agentic-mermaid 0.5.4 → 0.5.6
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 +5 -9
- package/CHANGELOG.md +66 -0
- package/Instructions_for_agents.md +171 -97
- package/README.md +1 -1
- package/dist/agent-core.d.ts +7 -7
- package/dist/agent-core.js +1 -1
- package/dist/agent.d.ts +9 -10
- package/dist/agent.js +1 -1
- package/dist/agentic-mermaid-mcp.js +1 -1
- package/dist/am.js +1 -1
- package/dist/browser-lazy/chunks/{agentic-producer-core-ECZ3CMZM.js → agentic-producer-core-MYYZCUJS.js} +1 -1
- package/dist/browser-lazy/chunks/{architecture-H5LTMKQW.js → architecture-OHEIJI33.js} +6 -6
- package/dist/browser-lazy/chunks/{block-566X6FNV.js → block-DMBSQUFZ.js} +6 -6
- package/dist/browser-lazy/chunks/{builtin-backends-VAFEZXKY.js → builtin-backends-JTN3XG37.js} +3 -3
- package/dist/browser-lazy/chunks/{c4-ZXFDLBFK.js → c4-TK5GVVGU.js} +3 -3
- package/dist/browser-lazy/chunks/{chunk-7UFOFWBA.js → chunk-2R6M4CUH.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-YVNJDVQO.js → chunk-3K25OV6X.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-QVSZOF5M.js → chunk-3QXHJBE3.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-IUI4DYC3.js → chunk-4G652M75.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-LBXXKLIR.js → chunk-4WON4RCG.js} +3 -3
- package/dist/browser-lazy/chunks/{chunk-V6I2VGNQ.js → chunk-5SZ2YBKG.js} +9 -9
- package/dist/browser-lazy/chunks/{chunk-XHU3A432.js → chunk-CJZMMNPO.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-5LKPDHPC.js → chunk-F4CQMYR2.js} +4 -4
- package/dist/browser-lazy/chunks/{chunk-G4JBA7HU.js → chunk-GK5PSUKH.js} +3 -3
- package/dist/browser-lazy/chunks/{chunk-VRZKI33U.js → chunk-HAMXYU5V.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-Z7UHFVKN.js → chunk-IFUYPCDA.js} +6 -6
- package/dist/browser-lazy/chunks/{chunk-3JTYTXA6.js → chunk-ILCWDEZN.js} +4 -4
- package/dist/browser-lazy/chunks/{chunk-64JFHCJC.js → chunk-JJFXEH35.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-PXTLV57R.js → chunk-KOO3MCMJ.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-A7V5VDKN.js → chunk-LO25KEJY.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-TT5GR5EJ.js → chunk-MGB5QQEH.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-PSZEE64O.js → chunk-NVZKY7UI.js} +8 -8
- package/dist/browser-lazy/chunks/{chunk-6UOOATQR.js → chunk-PA7YKMP5.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-NKW2ZNCD.js → chunk-PS4HSV54.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-OBI5U5XU.js → chunk-QG67RIGQ.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-J57YRC2M.js → chunk-QOIFBX26.js} +1 -1
- package/dist/browser-lazy/chunks/chunk-QQCKPJF3.js +1 -0
- package/dist/browser-lazy/chunks/{chunk-O34YYEQV.js → chunk-QXSPMZ67.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-4NILRBC7.js → chunk-QYORAVMZ.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-OFOS57WQ.js → chunk-SC7LXD2V.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-EIYLJ4FI.js → chunk-SZAI2WB4.js} +12 -12
- package/dist/browser-lazy/chunks/{chunk-37FZNMPR.js → chunk-TXYQEDUF.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-2JQXRKBC.js → chunk-VR6YRNUZ.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-7TTFBJYA.js → chunk-WNTLLJPT.js} +1 -1
- package/dist/browser-lazy/chunks/{chunk-62MR3LWJ.js → chunk-YYF5TS6K.js} +1 -1
- package/dist/browser-lazy/chunks/{class-XIFNVBFE.js → class-QOJOM2XO.js} +8 -8
- package/dist/browser-lazy/chunks/{er-VEUYJBGG.js → er-2W6UXQT7.js} +6 -6
- package/dist/browser-lazy/chunks/{eventmodeling-G7DITZX7.js → eventmodeling-IVAFIO2U.js} +9 -9
- package/dist/browser-lazy/chunks/{flowchart-SSFIU4EU.js → flowchart-Y6OWQ46O.js} +1 -1
- package/dist/browser-lazy/chunks/{gantt-HQNVDX2B.js → gantt-BXTFJPZM.js} +6 -6
- package/dist/browser-lazy/chunks/{gitgraph-Z5MN6M6L.js → gitgraph-PW6R75SQ.js} +4 -4
- package/dist/browser-lazy/chunks/{ishikawa-UEERNFQV.js → ishikawa-GFX3XQQZ.js} +2 -2
- package/dist/browser-lazy/chunks/{journey-3BEWWGB5.js → journey-Q3M2GVKJ.js} +7 -7
- package/dist/browser-lazy/chunks/{kanban-2WFNCWLB.js → kanban-WVGVXROE.js} +11 -11
- package/dist/browser-lazy/chunks/{mindmap-R2C6SNYR.js → mindmap-CEDNSFJ6.js} +6 -6
- package/dist/browser-lazy/chunks/{packet-GMVCI5YZ.js → packet-Z56OVP2O.js} +3 -3
- package/dist/browser-lazy/chunks/{pie-WER45DKC.js → pie-FOJURIAM.js} +7 -7
- package/dist/browser-lazy/chunks/{quadrant-NCUPSFKN.js → quadrant-OGUQEK5C.js} +4 -4
- package/dist/browser-lazy/chunks/{radar-WLYS4YC5.js → radar-XTAUIQIJ.js} +9 -9
- package/dist/browser-lazy/chunks/render-core-QRFSDWGQ.js +3 -0
- package/dist/browser-lazy/chunks/{requirement-AK3NWMJ6.js → requirement-KEJ7ILX2.js} +7 -7
- package/dist/browser-lazy/chunks/{sankey-C2DY6WVU.js → sankey-ODWGDRAM.js} +8 -8
- package/dist/browser-lazy/chunks/{sequence-D4WJB44W.js → sequence-4ZNQR7S7.js} +1 -1
- package/dist/browser-lazy/chunks/{state-YUQVESE7.js → state-6IWPVJ4C.js} +2 -2
- package/dist/browser-lazy/chunks/{timeline-BMBJJXWR.js → timeline-LPJMPVPV.js} +4 -4
- package/dist/browser-lazy/chunks/{treemap-B66XBZZ6.js → treemap-2KFOQZRA.js} +4 -4
- package/dist/browser-lazy/chunks/xychart-KIPWFNVQ.js +16 -0
- package/dist/browser-lazy/chunks/{zenuml-62RLYFWP.js → zenuml-2ABFLOUP.js} +6 -6
- package/dist/browser-lazy/index.js +1 -1
- package/dist/browser.global.js +436 -436
- package/dist/chunk-3QC3FE2X.js +4 -0
- package/dist/{chunk-XU5LPD2D.js → chunk-5BYN55G4.js} +1 -1
- package/dist/chunk-5XKELJT2.js +2 -0
- package/dist/chunk-7HIKKNPP.js +150 -0
- package/dist/chunk-A5TX2FW5.js +2 -0
- package/dist/chunk-AS6A6XHE.js +2 -0
- package/dist/{chunk-DOFB572I.js → chunk-CGCGMO4U.js} +15 -15
- package/dist/chunk-GO4CS5KS.js +52 -0
- package/dist/{chunk-KXMANAST.js → chunk-JRLCGATA.js} +47 -47
- package/dist/{chunk-7XYB2LNC.js → chunk-K6TYUPTW.js} +2 -2
- package/dist/{chunk-HINRNKPO.js → chunk-QVP364DJ.js} +2 -2
- package/dist/chunk-V5RFODN6.js +2 -0
- package/dist/cli-PVKOWT4V.js +191 -0
- package/dist/elk-constructor.js +1 -1
- package/dist/{index-Bvhprdxz.d.ts → index-Bs7imZCS.d.ts} +14 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/{jsonl-RPJY6YWO.js → jsonl-5N4DTV7P.js} +2 -2
- package/dist/mcp-cli-EPIA7DTH.js +2 -0
- package/dist/{paint-certification-BoLyr006.d.ts → paint-certification-aIPtFDcn.d.ts} +2 -2
- package/dist/server-X6OFY2ZN.js +527 -0
- package/dist/{svg-styles-BnCoXyYe.d.ts → svg-styles-DfHloZTH.d.ts} +1 -1
- package/dist/svg-styles.d.ts +1 -1
- package/dist/svg-styles.js +1 -1
- package/dist/svg.d.ts +4 -4
- package/dist/svg.js +1 -1
- package/dist/{types-CLVJCaH2.d.ts → types-DkUbM48-.d.ts} +1 -1
- package/dist/zenuml/chunks/{appearance-5RM5MVM2.js → appearance-ROFRJDW7.js} +1 -1
- package/dist/zenuml/chunks/{builtin-backends-UTNWL4N3.js → builtin-backends-LM2A6WWK.js} +2 -2
- package/dist/zenuml/chunks/{chunk-ZNZRIISS.js → chunk-E6ZQYSVJ.js} +2 -2
- package/dist/zenuml/chunks/{chunk-IARQ24W3.js → chunk-KCHXQ5UA.js} +2 -2
- package/dist/zenuml/chunks/{chunk-3A6S6GNB.js → chunk-TEDVLVJM.js} +1 -1
- package/dist/zenuml/chunks/{chunk-CNLL4BGF.js → chunk-WD3ZPN3X.js} +1 -1
- package/dist/zenuml/chunks/{chunk-6J4BGPB2.js → chunk-WUHZDXTF.js} +24 -24
- package/dist/zenuml/chunks/{chunk-55WS466K.js → chunk-ZGLUBUQJ.js} +9 -9
- package/dist/zenuml/chunks/{render-core-ECIWU5ZS.js → render-core-WTHYSKBN.js} +2 -2
- package/dist/zenuml/chunks/{zenuml-N3LZMB2G.js → zenuml-3TCHUQJZ.js} +8 -8
- package/dist/zenuml.d.ts +2 -2
- package/dist/zenuml.js +1 -1
- package/docs/api.md +84 -4
- package/docs/quality.md +6 -3
- package/docs/style-authoring.md +23 -0
- package/docs/testing-strategy.md +59 -52
- package/examples/styles/readme-hero.md +4 -3
- package/package.json +4 -4
- package/server.json +2 -2
- package/skills/agentic-mermaid-diagram-workflow/SKILL.md +19 -154
- package/skills/agentic-mermaid-diagram-workflow/references/code-mode.md +12 -2
- package/skills/agentic-mermaid-diagram-workflow/references/hosted-mcp.md +5 -1
- package/dist/browser-lazy/chunks/chunk-6GPDLZFQ.js +0 -1
- package/dist/browser-lazy/chunks/render-core-42UVWIPF.js +0 -3
- package/dist/browser-lazy/chunks/xychart-HAVFROGT.js +0 -16
- package/dist/chunk-2DNGDTJD.js +0 -2
- package/dist/chunk-4F2UGYTM.js +0 -4
- package/dist/chunk-EHJI3QYE.js +0 -52
- package/dist/chunk-MKE7GNYU.js +0 -146
- package/dist/chunk-U4MT3RRE.js +0 -2
- package/dist/chunk-VUFVLGTH.js +0 -2
- package/dist/chunk-WYIB6BUR.js +0 -2
- package/dist/cli-ZYIDBYNS.js +0 -226
- package/dist/mcp-cli-YVDCORWA.js +0 -2
- package/dist/server-4JGAVXR3.js +0 -524
- package/docs/MCP-DIRECTORY-LISTINGS.md +0 -145
package/AGENT_NATIVE.md
CHANGED
|
@@ -6,16 +6,12 @@ preserving the parts an operation does not own. For runnable examples, use the
|
|
|
6
6
|
[Instructions_for_agents.md](Instructions_for_agents.md); contributors should
|
|
7
7
|
read the [renderer architecture](https://github.com/adewale/agentic-mermaid/blob/main/docs/design/system/README.md).
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Operating guide and architecture
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
A successful edit must also match the request. Verification does not check
|
|
17
|
-
whether an agent changed the intended label, retained a requested value or
|
|
18
|
-
picked the right diagram family; read back those details before returning.
|
|
11
|
+
The [operating guide](Instructions_for_agents.md) owns the diagram workflow,
|
|
12
|
+
verification boundaries and channel selection. This document describes the
|
|
13
|
+
architecture and generated warning catalog; it does not maintain another set
|
|
14
|
+
of agent instructions.
|
|
19
15
|
|
|
20
16
|
## (1) Deterministic layout
|
|
21
17
|
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,72 @@ This changelog tracks user-facing changes for **Agentic Mermaid**, a fork of `lu
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 0.5.6 — 2026-11-02
|
|
8
|
+
|
|
9
|
+
### Performance
|
|
10
|
+
|
|
11
|
+
- Load the native PNG rasterizer only when PNG rendering reaches rasterization,
|
|
12
|
+
avoiding its initialization for parsing, verification and SVG rendering.
|
|
13
|
+
- Reuse one captured request and positioned result for SVG/PNG action rendering,
|
|
14
|
+
removing duplicate positioning work.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Keep SVG/PNG action hit regions aligned with the drawing when render options
|
|
19
|
+
have stateful getters. Isolate mutable projections from cached geometry and
|
|
20
|
+
reject unsupported projections before drawing hooks run.
|
|
21
|
+
- Detect moved dashes in the Chromium resolved-scene CI comparer while accepting
|
|
22
|
+
equivalent path encodings and symmetric dashed reversals.
|
|
23
|
+
- Prepare website test fixtures once per invocation instead of reusing stale
|
|
24
|
+
output after repeated dirty build-config edits. Keep the editor build child's
|
|
25
|
+
deadline within its existing 60-second test budget.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- Use one agent operating guide across the CLI, installed skills and website.
|
|
30
|
+
`am init-agent` includes an offline copy and pins MCP configuration to the
|
|
31
|
+
installed package version.
|
|
32
|
+
- Enforce layout-repair dependencies and route-write restrictions while retaining
|
|
33
|
+
the existing pass order, placement rules and geometry budgets.
|
|
34
|
+
- Use Bun 1.4.4 for CI and release/deployment builds, avoiding Bun 1.4.2's
|
|
35
|
+
independently reproduced pipe-GC subprocess hang. Install a payload comparison's
|
|
36
|
+
base Bun through npm so it works in browser containers without `unzip`.
|
|
37
|
+
- Share qualified build artifacts, select documentation checks for recognized
|
|
38
|
+
Markdown changes, and verify exact npm identity before MCP registration.
|
|
39
|
+
Strengthen executable-example, fresh-output and JSON-RPC checks.
|
|
40
|
+
- Remove redundant verification gates, unused pass metadata and historical raw
|
|
41
|
+
measurement packets from the current checkout. Immutable links retain access
|
|
42
|
+
to the archived evidence; maintained generated public references remain.
|
|
43
|
+
|
|
44
|
+
## 0.5.5 — 2026-10-31
|
|
45
|
+
|
|
46
|
+
### Changed
|
|
47
|
+
|
|
48
|
+
- Generate website MCP tool lists, verification wording and backend-limit
|
|
49
|
+
documentation from shared authorities; repair family navigation and obsolete
|
|
50
|
+
contributor commands and links.
|
|
51
|
+
- Add `bun run release:prepare VERSION [--date YYYY-MM-DD]` to update version
|
|
52
|
+
projections and run their existing generators together. Failed generation
|
|
53
|
+
restores prior file contents; preparation leaves publication explicit.
|
|
54
|
+
- Consolidate the release checklist, record completed 0.5.4 delivery, and
|
|
55
|
+
separate the current backend contract from dated design and experiments.
|
|
56
|
+
- Keep directory-submission records in repository-only project documentation
|
|
57
|
+
rather than shipping operational status snapshots in the npm package.
|
|
58
|
+
|
|
59
|
+
### Fixed
|
|
60
|
+
|
|
61
|
+
- Preserve distinct XY axis ticks for tiny and large finite ranges, and avoid
|
|
62
|
+
overflow when projecting a range that crosses both numeric extremes.
|
|
63
|
+
- Treat soft hyphens and zero-width spaces as discretionary line-break hints
|
|
64
|
+
in pixel and terminal text, preserving authored source positions and styles.
|
|
65
|
+
|
|
66
|
+
### Added
|
|
67
|
+
|
|
68
|
+
- Expose resolved scenes through Code Mode and agent capability discovery, with
|
|
69
|
+
on-demand painted primitive declarations and typed unsupported-artwork errors.
|
|
70
|
+
- Add `am verify --markdown` to check Mermaid fences with physical document
|
|
71
|
+
lines while keeping ordinary verification and Markdown rendering behavior.
|
|
72
|
+
|
|
7
73
|
## 0.5.4 — 2026-10-30
|
|
8
74
|
|
|
9
75
|
### Fixed
|
|
@@ -1,110 +1,184 @@
|
|
|
1
|
-
# Agentic Mermaid —
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
# Agentic Mermaid — operating guide
|
|
2
|
+
|
|
3
|
+
Use this guide to create, edit, verify and render Mermaid diagrams. It is also
|
|
4
|
+
emitted by `am --agent-instructions` and served at
|
|
5
|
+
`https://agentic-mermaid.dev/agent-instructions.md`. `am init-agent` installs a
|
|
6
|
+
copy with the consumer's skill, so the operating rules remain available offline.
|
|
7
|
+
|
|
8
|
+
## Choose one channel
|
|
9
|
+
|
|
10
|
+
Do not assume this repository is checked out. Use the first available channel
|
|
11
|
+
that fits the task, then stop discovering tools:
|
|
12
|
+
|
|
13
|
+
| Available environment | Channel | Version-matched reference |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| JS/TS with the package installed | `agentic-mermaid/agent/core` for portable editing; `/agent` also supplies native PNG | Installed declarations and `am capabilities --json` |
|
|
16
|
+
| Shell | `am …` or `npx agentic-mermaid …` | `am <command> --help` |
|
|
17
|
+
| Connected local MCP | `agentic-mermaid-mcp` | `describe_sdk` and the connected tool list |
|
|
18
|
+
| Network only, with permission to send the source | Hosted MCP at `https://agentic-mermaid.dev/mcp` | Connected tool list and `describe_sdk` |
|
|
19
|
+
|
|
20
|
+
Private source should stay in a local library, CLI or self-hosted MCP. The
|
|
21
|
+
hosted endpoint sends source to another service; package installation also
|
|
22
|
+
makes network requests. Do not ask the user to perform work that your available
|
|
23
|
+
channel can complete.
|
|
24
|
+
|
|
25
|
+
CLI is convenient for one-shot work. In MCP, use the direct `verify`,
|
|
26
|
+
`describe`, render, `mutate` or `build` tool when the connected server advertises
|
|
27
|
+
it. Use `execute` for custom synchronous logic. The hosted and local tool lists
|
|
28
|
+
differ: inspect the connected server instead of borrowing another channel's
|
|
29
|
+
names. Hosted tools are <!-- BEGIN GENERATED: hosted-mcp-tools -->`execute`, `describe_sdk`, `render_svg`, `render_ascii`, `render_png`, `verify`, `describe`, `mutate`, and `build`<!-- END GENERATED: hosted-mcp-tools -->.
|
|
30
|
+
|
|
31
|
+
Hosted MCP is stateless Streamable HTTP JSON-RPC, with no initialize handshake
|
|
32
|
+
required. It has no REST render API. A raw verify request is
|
|
33
|
+
`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"verify","arguments":{"source":"flowchart TD\n API --> DB"}}}`.
|
|
34
|
+
Use the published [MCP reference](https://agentic-mermaid.dev/docs/mcp/) for
|
|
35
|
+
transport and input limits; do not send private material merely to test access.
|
|
36
|
+
|
|
37
|
+
## Discover the family's actual schema
|
|
38
|
+
|
|
39
|
+
Run `am capabilities --json` for installed families, headers, examples, edit
|
|
40
|
+
policies, warning codes and operation fields. In MCP, use
|
|
41
|
+
`describe_sdk({ family, detail: 'fields' })`; `detail: 'signatures'` is a compact
|
|
42
|
+
menu. These describe the installed or connected version. Online
|
|
43
|
+
`https://agentic-mermaid.dev/capabilities.json` describes production and may be
|
|
44
|
+
newer than a local installation.
|
|
45
|
+
|
|
46
|
+
Choose the family from the reader's task. Use its own header, narrower and
|
|
47
|
+
operation vocabulary: state diagrams narrow with `asState`, not `asFlowchart`.
|
|
48
|
+
Mutation ops use a `kind` discriminator and family-specific fields; do not
|
|
49
|
+
invent synonyms or convenience flags. Pass one op to `mutate(d, op)`, not an
|
|
50
|
+
array. Library `applyOps({ source, ops })` and MCP `mutate({ source, ops })`
|
|
51
|
+
provide atomic batches; Code Mode repeats `mermaid.mutate(d, op)` instead.
|
|
52
|
+
For painted geometry, discover `describe_sdk({ capability: 'resolved-scene' })`
|
|
53
|
+
and use `renderResolvedScene`; its result limit and typed artwork failures are
|
|
54
|
+
part of that capability's declaration.
|
|
55
|
+
|
|
56
|
+
## Author or edit, then verify
|
|
57
|
+
|
|
58
|
+
<!-- BEGIN GENERATED: agent-workflow -->New diagrams: author Mermaid source directly, then parse → verify → render or return it. `buildMermaid(kind, ops)` / `createMermaid(kind)` build a diagram from typed ops when you are generating one programmatically (for example, from data). Existing structured diagrams: parse → narrow → mutate → verify → serialize.<!-- END GENERATED: agent-workflow -->
|
|
59
|
+
|
|
60
|
+
<!-- BEGIN GENERATED: family-narrowing -->Narrowing selects a structured, typed family with an as* helper. It does not select one element or freeze layout coordinates.<!-- END GENERATED: family-narrowing -->
|
|
61
|
+
|
|
62
|
+
For an existing structured diagram, retain its parsed value and apply the
|
|
63
|
+
smallest typed edit. Code Mode exposes synchronous `mermaid.*` methods and
|
|
64
|
+
read-only returned diagrams; use mutation operations rather than assigning into
|
|
65
|
+
the body. It does not support imports, async functions, Promise jobs or local
|
|
66
|
+
file I/O. Library calls use the same names without the `mermaid.` prefix.
|
|
67
|
+
|
|
68
|
+
This existing-diagram example runs in Code Mode:
|
|
23
69
|
|
|
24
70
|
```ts
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
if (!
|
|
31
|
-
|
|
32
|
-
const d1 = mermaid.mutate(flow, { kind: 'add_node', id: 'Cache', label: 'Cache' })
|
|
33
|
-
if (!d1.ok) throw new Error('mutate')
|
|
34
|
-
|
|
35
|
-
const verify = mermaid.verifyMermaid(d1.value)
|
|
71
|
+
const parsed = mermaid.parseRegisteredMermaid('flowchart TD\n API --> DB')
|
|
72
|
+
if (!parsed.ok) return { phase: 'parse', errors: parsed.error }
|
|
73
|
+
const flow = mermaid.asFlowchart(parsed.value)
|
|
74
|
+
if (!flow) return { phase: 'narrow', family: parsed.value.kind }
|
|
75
|
+
const edited = mermaid.mutate(flow, { kind: 'add_node', id: 'Cache', label: 'Cache' })
|
|
76
|
+
if (!edited.ok) return { phase: 'mutate', error: edited.error }
|
|
77
|
+
const verify = mermaid.verifyMermaid(edited.value)
|
|
36
78
|
if (!verify.ok) return { phase: 'verify', warnings: verify.warnings }
|
|
37
|
-
|
|
38
|
-
return { source: mermaid.serializeMermaid(d1.value) }
|
|
79
|
+
return { source: mermaid.serializeMermaid(edited.value) }
|
|
39
80
|
```
|
|
40
81
|
|
|
41
|
-
A new diagram
|
|
82
|
+
A new diagram needs no mutation step:
|
|
42
83
|
|
|
43
84
|
```ts
|
|
44
85
|
const source = 'flowchart LR\n API --> DB'
|
|
45
86
|
const parsed = mermaid.parseRegisteredMermaid(source)
|
|
46
87
|
if (!parsed.ok) return { phase: 'parse', errors: parsed.error }
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if (!check.ok) return { phase: 'verify', warnings: check.warnings }
|
|
50
|
-
|
|
88
|
+
const verify = mermaid.verifyMermaid(parsed.value)
|
|
89
|
+
if (!verify.ok) return { phase: 'verify', warnings: verify.warnings }
|
|
51
90
|
return { source }
|
|
52
91
|
```
|
|
53
92
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
`
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
`
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
`
|
|
93
|
-
|
|
94
|
-
`
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
93
|
+
Run `verifyMermaid` at every commit point: before source is saved, sent or
|
|
94
|
+
shown, and after the last edit before serialization. Inspect `ok`, `warnings`
|
|
95
|
+
and layout evidence. For MCP `mutate` or `build`, require top-level `ok`, the
|
|
96
|
+
intended `family` and `verify.ok`; inspect `verify.warnings`. If an op fails,
|
|
97
|
+
keep the previous artifact, inspect `opIndex` and the error, then rediscover
|
|
98
|
+
its exact fields before retrying. In a hosted edit request, `source` is the
|
|
99
|
+
original pre-edit input, byte-for-byte; express changes only in `ops`.
|
|
100
|
+
|
|
101
|
+
<!-- BEGIN GENERATED: verify-result -->`verify.ok` means no unsuppressed error was detected, including measured content occlusion and explicit error policies. It is not a visual-quality or semantic-correctness score.<!-- END GENERATED: verify-result -->
|
|
102
|
+
|
|
103
|
+
<!-- BEGIN SEMANTIC READBACK -->
|
|
104
|
+
Before returning, compare the result with the task. Preserve requested labels,
|
|
105
|
+
values, prefixes, endpoints and relationships exactly; verification alone will
|
|
106
|
+
not catch an omitted transition label or visibility marker. Use
|
|
107
|
+
`describeMermaidFacts(d)` / `checkMermaid(d, requiredFacts)` or MCP `describe`
|
|
108
|
+
with `format: 'facts'` for semantic read-back. For a new diagram, also check the
|
|
109
|
+
intended family and whether its advertised narrower returns a structured body.
|
|
110
|
+
If it unexpectedly falls back to opaque, inspect the warning and the family's
|
|
111
|
+
capability example instead of calling a merely renderable result editable.
|
|
112
|
+
<!-- END SEMANTIC READBACK -->
|
|
113
|
+
|
|
114
|
+
Do not suppress error-severity findings or truncate authored content to make
|
|
115
|
+
verification pass. For intentionally long labels, set `labelCharCap` or
|
|
116
|
+
`am verify --label-cap N` to the intended policy. For `INTERNAL_ERROR`, report
|
|
117
|
+
the original source and diagnostic; do not rewrite the diagram to hide a
|
|
118
|
+
renderer defect. The [warning reference](https://agentic-mermaid.dev/warnings/)
|
|
119
|
+
and [architecture reference](https://github.com/adewale/agentic-mermaid/blob/main/AGENT_NATIVE.md)
|
|
120
|
+
explain the generated warning catalog and its limits.
|
|
121
|
+
|
|
122
|
+
## Source-preserved and opaque input
|
|
123
|
+
|
|
124
|
+
Unmodeled syntax can remain as opaque source or verbatim segments. A null
|
|
125
|
+
narrower refuses structured mutation; it does not mean the source is empty.
|
|
126
|
+
If a task explicitly needs a source-level edit, make the smallest edit, say
|
|
127
|
+
`source-level fallback`, then reparse and verify. Preserve comments and bytes
|
|
128
|
+
outside the requested edit. Do not silently regenerate the diagram.
|
|
129
|
+
|
|
130
|
+
For bounded opaque Class/Flowchart edits, use
|
|
131
|
+
`mutatePreservingSource(diagram, op)`: Class `add_member`/`remove_member`, or
|
|
132
|
+
Flowchart `set_label`/`rename_node`. Save `value.source` exactly after inspecting
|
|
133
|
+
`verifyMermaid(value.diagram)`. The body remains opaque and its portability
|
|
134
|
+
warning remains. Ambiguous ownership and unsupported dependencies refuse
|
|
135
|
+
atomically. Library `applyOps` and MCP `mutate` select these batches with
|
|
136
|
+
`mode: 'source-preserving'`; CLI uses `--preserve-source`. Read the
|
|
137
|
+
[mutation policy](https://agentic-mermaid.dev/docs/agent-mutation-policy/) for
|
|
138
|
+
operation limits before choosing this path.
|
|
139
|
+
|
|
140
|
+
## Render and inspect
|
|
141
|
+
|
|
142
|
+
Use the requested SVG, PNG, ASCII, Unicode or layout output. Choose `style`
|
|
143
|
+
from `am styles --json`, an inline data-only spec or a stack; validate untrusted
|
|
144
|
+
specs with `validateStyleSpec`. `seed` varies styled ink without moving layout.
|
|
145
|
+
Use strict security when output must contain no external-fetch references;
|
|
146
|
+
render and verify with the same options. PNG sizing and font availability can
|
|
147
|
+
change readability: inspect the artifact rather than treating a successful
|
|
148
|
+
render or a `BELOW_READABLE_SIZE` warning as a general quality verdict.
|
|
149
|
+
Gantt has no implicit clock read: pass `ganttToday` to draw today's marker.
|
|
150
|
+
|
|
151
|
+
Flowchart labels containing punctuation should be quoted. In a quoted label,
|
|
152
|
+
`\n` is a line break and canonical serialization uses `<br>`. A group is
|
|
153
|
+
`subgraph id["Title"] … end`; labeled and dotted edges use
|
|
154
|
+
`A -- "label" --> B`, `A -.-> B` and `A -. "label" .-> B`. Use another family's
|
|
155
|
+
capability example for its syntax. The [API reference](https://agentic-mermaid.dev/docs/api/)
|
|
156
|
+
separates source objects, Scene parts and resolved painted primitives.
|
|
157
|
+
|
|
158
|
+
## Ground the task and return the result
|
|
159
|
+
|
|
160
|
+
Read supplied repositories, files and URLs when available. Every node and edge
|
|
161
|
+
must follow the supplied context or inspected source. Include each requested
|
|
162
|
+
entity and relationship; do not merge them to simplify the task. Mark uncertain
|
|
163
|
+
connections or omit them with an explanation. When context leaves the scope or
|
|
164
|
+
abstraction level open, choose the smallest consistent interpretation, keep
|
|
165
|
+
one abstraction level and state the assumptions. If the intended audience,
|
|
166
|
+
medium or improvement is unclear, inspect read-only information and ask for
|
|
167
|
+
the missing goal before changing the diagram.
|
|
168
|
+
|
|
169
|
+
In chat, return `Updated Mermaid` with the final source in a Mermaid fenced
|
|
170
|
+
code block, `Verification` with
|
|
171
|
+
what was actually checked and any limitations, and `Trace` naming the channel
|
|
172
|
+
and calls used. Include `Sources` for inspected files. Return additional
|
|
173
|
+
artifacts when requested. In Code Mode, return `{ source }` after verification
|
|
174
|
+
or an error object. If asked for one final fenced JSON tool request, finish
|
|
175
|
+
all prose before its only fenced block and stop after the block.
|
|
176
|
+
|
|
177
|
+
If no Agentic Mermaid channel is available, return the best source and say
|
|
178
|
+
`not verified — Agentic Mermaid unavailable`, naming what you tried. Label
|
|
179
|
+
secondary parser checks as secondary; never invent an Agentic Mermaid result.
|
|
180
|
+
Do not modify project files unless the user asked for file changes.
|
|
181
|
+
|
|
182
|
+
For task recipes, read the [editing cookbook](https://agentic-mermaid.dev/docs/agent-api-cookbook/).
|
|
183
|
+
Use local package declarations and discovery over newer online examples when
|
|
184
|
+
working with an older installed version.
|
package/README.md
CHANGED
|
@@ -156,7 +156,7 @@ npx --no-install agentic-mermaid mcp
|
|
|
156
156
|
|
|
157
157
|
Use the library, CLI or local MCP for private diagrams, offline work, larger inputs or local PNG files. The [MCP transport guide](./docs/mcp-http-transport.md) covers HTTP/SSE and file/URL artifacts; [agent setup](#agent-quick-start) shows how to generate a sample client configuration. The [tool reference and Code Mode guide](./docs/mcp-code-mode-rationale.md) explains the available tools and multi-step edits.
|
|
158
158
|
|
|
159
|
-
An optional public, unauthenticated MCP endpoint runs at `https://agentic-mermaid.dev/mcp`. It accepts MCP JSON-RPC rather than REST render requests, caps inputs at 64 KB and returns PNG as base64. Hosted calls send your source or code to the server; see the [privacy notice](./docs/MCP-PRIVACY.md). Directory maintainers can use the [MCP listing record](
|
|
159
|
+
An optional public, unauthenticated MCP endpoint runs at `https://agentic-mermaid.dev/mcp`. It accepts MCP JSON-RPC rather than REST render requests, caps inputs at 64 KB and returns PNG as base64. Hosted calls send your source or code to the server; see the [privacy notice](./docs/MCP-PRIVACY.md). Directory maintainers can use the [MCP listing record](https://github.com/adewale/agentic-mermaid/blob/main/docs/project/mcp-directory-listings.md).
|
|
160
160
|
|
|
161
161
|
## Structured edit example
|
|
162
162
|
|
package/dist/agent-core.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { cj as RenderedRegionKind, e5 as TerminalProjectionDiagnosticCode, e6 as TerminalProjectionDiagnostic, D as DiagramActionRecord, a as ParsedDiagram, cn as Result, bQ as ParseError, au as DiagramAnalysis, bJ as MutationError, S as C4Variant, bc as FlowchartMutationOp, bd as FlowchartValidDiagram, cL as StateMutationOp, cO as StateValidDiagram, cz as SequenceMutationOp, cB as SequenceValidDiagram, cT as TimelineMutationOp, cW as TimelineValidDiagram, a4 as ClassMutationOp, a9 as ClassValidDiagram, aC as ErMutationOp, aE as ErValidDiagram, bv as JourneyMutationOp, by as JourneyValidDiagram, j as ArchitectureMutationOp, m as ArchitectureValidDiagram, dc as XyChartMutationOp, de as XyChartValidDiagram, bT as PieMutationOp, bV as PieValidDiagram, b$ as QuadrantMutationOp, c1 as QuadrantValidDiagram, bi as GanttMutationOp, bl as GanttValidDiagram, bG as MindmapMutationOp, bH as MindmapValidDiagram, bn as GitGraphMutationOp, bo as GitGraphValidDiagram, c8 as RadarMutationOp, c9 as RadarValidDiagram, J as C4MutationOp, Q as C4ValidDiagram, cr as SankeyMutationOp, cs as SankeyValidDiagram, bN as PacketMutationOp, bO as PacketValidDiagram, bA as KanbanMutationOp, bB as KanbanValidDiagram, cl as RequirementMutationOp, cm as RequirementValidDiagram, cY as TreemapMutationOp, cZ as TreemapValidDiagram, dh as ZenUMLMutationOp, dk as ZenUMLValidDiagram, aJ as EventModelingMutationOp, aK as EventModelingValidDiagram, bs as IshikawaMutationOp, bt as IshikawaValidDiagram, p as BlockMutationOp, q as BlockValidDiagram, aw as DiagramKind, c as AnyMutationOp, bI as MutableValidDiagram, d3 as VerifyResult, e7 as ZenUMLFragmentType, dg as ZenUMLBranch, M as C4Shape, G as C4Element, w as C4Boundary, K as C4Relationship, b0 as FamilyId, b4 as FamilyPositionedProjectionOptions, b5 as FamilyPositionedView, a$ as FamilyDescriptor, bP as PaintLayoutCertification, ce as RenderedLayout, d1 as ValidDiagramPayload, c$ as ValidDiagram, aM as ExtensionDiagramBody, d2 as VerifyOptions, R as RenderRequestReceipt } from './paint-certification-
|
|
2
|
-
export { A as Accessibility, d as ArchitectureBody, e as ArchitectureEdge, f as ArchitectureEndpoint, g as ArchitectureEndpointBoundary, h as ArchitectureGroup, i as ArchitectureJunction, k as ArchitectureService, l as ArchitectureSide, B as BUILTIN_FAMILY_METADATA, n as BUILTIN_FAMILY_METADATA_COVERS_DIAGRAM_KIND, o as BlockBody, r as BuiltinFamilyId, s as BuiltinFamilyMetadata, C as C4Argument, t as C4ArgumentInput, u as C4Body, x as C4BoundaryInput, y as C4BoundaryKind, z as C4Diagnostic, E as C4Direction, F as C4Directive, H as C4ElementInput, I as C4ElementKind, L as C4RelationshipInput, N as C4Statement, O as C4Style, U as CAPABILITY_NEGOTIATION_VERSION, V as CORE_CAPABILITY_OFFERS, W as CORE_SCENE_FEATURES, X as CORE_SCENE_OPERATIONS, Y as CORE_SCENE_PRIMITIVES, Z as CapabilityDecision, _ as CapabilityId, $ as CapabilityOffer, a0 as CapabilityRequirement, a1 as CapabilityRequirementLevel, a2 as CapabilityResolution, a3 as ClassBody, a5 as ClassNode, a6 as ClassNote, a7 as ClassRelation, a8 as ClassRelationKind, aa as CliRenderTransport, ab as CodeModeRenderTransport, ac as ConnectorContourSemantics, ad as ConnectorEndpoints, ae as ConnectorGeometry, af as ConnectorHitGeometry, ag as ConnectorLabelDescriptor, ah as ConnectorMark, ai as ConnectorRelationship, aj as ConnectorRoute, ak as ConnectorStroke, al as ConnectorSubpath, am as ConnectorTerminalLabelProjection, an as ConnectorTerminalMarkerPlacement, ao as ConnectorTerminalMarkerProjection, ap as ConnectorTerminalProjection, aq as ConnectorTerminalStrokeLoss, ar as DEFAULT_LABEL_CHAR_CAP, as as DiagramActionKind, at as DiagramActionSecurity, av as DiagramBody, ax as EdgeId, ay as ErAttribute, az as ErBody, aA as ErCardinality, aB as ErEntity, aD as ErRelation, aF as EventData, aG as EventFrame, aH as EventFrameType, aI as EventModelingBody, aL as EventSpecification, aN as ExtensionValidDiagram, aO as ExternalFamilyId, aP as ExtractedLabel, aQ as FAMILY_CAPABILITY_COLUMNS, aR as FAMILY_CONFORMANCE_MAX_EXAMPLE_BYTES, aS as FAMILY_CONFORMANCE_VERSION, aT as FAMILY_DESCRIPTOR_CONTRACT_VERSION, aU as FamilyCapability, aV as FamilyCapabilityConformanceResult, aW as FamilyCapabilityEvidence, aX as FamilyCapabilityState, aY as FamilyConformanceError, aZ as FamilyConformanceReport, a_ as FamilyConformanceStatus, b1 as FamilyOperations, b2 as FamilyParsedBody, b3 as FamilyPositionedProjectionContext, b6 as FamilyScenePositivePrimitive, b7 as FamilyScenePrimitiveApplicability, b8 as FamilyScenePrimitiveEvidence, b9 as FamilySceneRolePrimitiveDeclaration, ba as FeedbackEdgeAnalysis, bb as Finite, be as GanttBody, bf as GanttBodySection, bg as GanttBodyTask, bh as GanttBodyTaskTag, bj as GanttScheduleAnalysisSummary, bk as GanttStatement, bm as GitGraphBody, bp as GroupId, bq as InitDirective, br as IshikawaBody, bu as JourneyBody, bw as JourneySection, bx as JourneyTask, bz as KanbanBody, bC as LayoutWarning, bD as LibraryRenderTransport, bE as MarkerDescriptor, bF as MindmapBody, bK as NodeId, bL as PRIMITIVE_REALIZATIONS, bM as PacketBody, P as PaintLayoutCertificationError, bR as ParticipantId, bS as PieBody, bU as PieSlice, bW as PreservedDiagramBody, bX as PreservedSourceSpans, bY as PreservedValidDiagram, bZ as QuadrantAxis, b_ as QuadrantBody, c0 as QuadrantPoint, c2 as RENDER_CONTRACT_VERSION, c3 as RENDER_OUTPUTS, c4 as RENDER_OUTPUT_DESCRIPTORS, c5 as RadarBody, c6 as RadarBodyAxis, c7 as RadarBodyCurve, ca as RenderCapabilityError, cb as RenderOutputDescriptor, cc as RenderOutputTransports, cd as RenderedLabelBounds, cf as RenderedLayoutEdge, cg as RenderedLayoutGroup, ch as RenderedLayoutLabel, ci as RenderedLayoutNode, b as RenderedRegion, ck as RequirementBody, co as SHARED_RENDER_OPTION_FIELDS, cp as SankeyBody, cq as SankeyBodyLink, ct as SceneDoc, cu as SceneNode, cv as SemanticChannels, cw as SequenceBody, cx as SequenceMessage, cy as SequenceMessageStyle, cA as SequenceParticipant, cC as SerializedFlowchartGraph, cD as SourceComment, cE as SourceMap, cF as SourceMapSpans, cG as SourcePreservationReceipt, cH as SourceSpan, cI as SourceSpanPoint, cJ as StateBody, cK as StateFloatingNote, cM as StateNode, cN as StateTransition, cP as Tier1WarningCode, cQ as Tier2WarningCode, cR as TimelineBody, cS as TimelineEvent, cU as TimelinePeriod, cV as TimelineSection, cX as TreemapBody, c_ as UNREGISTERED_FAMILY_CAPABILITY_STATES, d0 as ValidDiagramMeta, d4 as WARNING_SEVERITY, d5 as WARNING_TIER, d6 as WarningCode, d7 as WarningSeverity, d8 as WarningTier, d9 as XyChartAxis, da as XyChartAxisSpec, db as XyChartBody, dd as XyChartSeries, df as ZenUMLBody, di as ZenUMLParticipant, dj as ZenUMLStatement, dl as asArchitecture, dm as asBlock, dn as asC4, dp as asClass, dq as asEr, dr as asEventModeling, ds as asFlowchart, dt as asGantt, du as asGitGraph, dv as asIshikawa, dw as asJourney, dx as asKanban, dy as asMindmap, dz as asPacket, dA as asPie, dB as asQuadrant, dC as asRadar, dD as asRequirement, dE as asSankey, dF as asSequence, dG as asState, dH as asTimeline, dI as asTreemap, dJ as asXyChart, dK as asZenUML, dL as builtinFamilyMetadata, dM as declareFamilyScenePrimitiveEvidence, dN as detectRegisteredFamilyFromFirstLine, dO as effectiveFamilyCapabilityState, dP as err, dQ as getFamily, dR as getFamilyConformanceReport, dS as isBuiltinFamilyId, dT as isExternalFamilyId, dU as knownBuiltinFamilies, dV as knownFamilies, dW as negotiateCapabilities, dX as negotiateRenderCapabilities, dY as ok, dZ as parseSemVer, d_ as semVerSatisfies, d$ as sharedRenderOptionsJsonSchema, e0 as styleInputJsonSchema, e1 as terminalConnectorCapabilityClaims, e2 as toFinite, e3 as validatePrimitiveCapabilities, e4 as validateSerializableRenderOptions, v as verifyNoExternalRefs } from './paint-certification-
|
|
3
|
-
import { A as AsciiRenderOptions,
|
|
4
|
-
export { c as AsciiRenderColorMode, d as AsciiWidthError, e as AsciiWidthErrorReason, B as BACKEND_CONFORMANCE_CHECK_IDS, f as BACKEND_CONFORMANCE_FIXTURE_ID, g as BACKEND_CONFORMANCE_VERSION, h as BackendCapabilityConformanceResult, i as BackendCapabilityConformanceStatus, j as BackendConformanceCheck, k as BackendConformanceCheckId, l as BackendConformanceReport, m as BackendDescriptor, n as BackendRegistrationOptions, D as DefaultBackend, E as EXTERNAL_SCENE_API_VERSION, o as ExternalSceneConnector, p as ExternalSceneConnectorGeometry, q as ExternalSceneConnectorLabel, r as ExternalSceneContainer, s as ExternalSceneDataMark, t as ExternalSceneDocument, u as ExternalSceneGeometry, v as ExternalSceneInput, w as ExternalSceneMarker, x as ExternalSceneNode, y as ExternalSceneNodeBase, z as ExternalSceneShape, C as ExternalSceneText, F as FamilyDetectionDiagnostic, G as HOSTED_FONT_RESOURCES, H as HostBackendPolicy, M as MAX_HOSTED_PNG_BYTES, I as MAX_HOSTED_PNG_PIXELS, J as MAX_PNG_FONT_DIRECTORIES, K as MAX_PNG_FONT_DIRECTORY_LENGTH, L as MAX_PNG_PIXELS, N as MAX_PNG_RASTER_DIMENSION, O as MermaidFamilyClassification, Q as MermaidFamilyDetectionError, R as NATIVE_PNG_HOST_ONLY_OPTION_FIELDS, S as NATIVE_PNG_OUTPUT_POLICY_FIELDS, T as NativePngHostOnlyOptionField, U as NativePngOutputPolicyField, V as PNG_DEFAULT_FONT_FAMILY, W as PNG_DEFAULT_MIN_LABEL_PX, X as PNG_DEFAULT_SCALE, Y as PNG_FONT_SOURCES, Z as PNG_NAPI_RUNTIME, _ as PNG_OUTPUT_OPTION_FIELDS, $ as PNG_OUTPUT_OPTION_FIELD_DESCRIPTORS, a0 as PNG_OUTPUT_POLICY_VERSION, a1 as PNG_WASM_RUNTIME, a2 as PORTABLE_PNG_OUTPUT_OPTION_FIELDS, a3 as PngFitTo, a4 as PngFontSource, a5 as PngOutputOptionField, a6 as PngOutputOptionFieldDescriptor, a7 as PngOutputOptionInputKind, a8 as PngOutputOptionPolicyState, a9 as PngOutputOptionReceiptState, aa as PngOutputOptionScope, a as PngOutputPolicyInput, ab as PngRasterDimensions, b as PngRuntimeProvenance, ac as PortablePngOutputOptionField, ad as PortablePngOutputOptions, ae as
|
|
5
|
-
import { m as Direction, d as LayoutRouteCertificate, L as LabelContent, n as PositionedDiagram, M as MermaidEdge, R as RenderOptions } from './types-
|
|
6
|
-
export { A as AnyPort, a as ArchitectureVisualOverrides, D as DiamondFacet, b as DisplayRun, E as EdgeRouteCertificate, F as FamilyEdgeRouteCertificate, c as FamilyRouteCertificate, e as LayoutRouteClass, P as PortSemanticRole, f as PortSide, g as PreparedDisplayText, h as RegionContainmentCertificate, i as RouteBlocker, j as RouteCertificate, k as RouteClass, l as RoutePortAssignment } from './types-
|
|
7
|
-
export { B as BINDABLE_ROLE_STYLE_PROPERTIES, a as BINDABLE_SCENE_ROLES, b as BRAND_CONSTRAINT_DESCRIPTORS, c as BRAND_CONSTRAINT_KINDS, d as BUILTIN_SCENE_ROLE_TRAITS, e as BindableSceneRole, f as BrandConstraint, g as BrandConstraintAction, h as BrandConstraintKind, E as EXACT_ROLE_STYLE_CONTRACT, i as EXACT_STYLE_SCENE_ROLES, j as ExactStyleSceneRole, k as ExtensionIdentity, R as ROLE_STYLE_PROPERTY_DESCRIPTORS, l as RoleStyleFor, m as RoleStyleSpec, n as RoleStyles, o as SCENE_ROLE_DESCRIPTORS, p as SEMANTIC_BINDING_CHANNELS, q as STYLE_COLOR_TOKEN_DESCRIPTORS, r as STYLE_SPEC_FIELD_DESCRIPTORS, s as STYLE_SPEC_FORMAT_VERSION, t as SceneRole, u as SemanticBinding, v as SemanticBindingChannel, w as SemanticSlots, x as StyleColors, y as StyleDescriptor, S as StyleInput, z as StyleReferenceResolution, A as StyleRegistrationOptions, C as StyleSpec, D as createExtensionIdentity, F as getStyle, G as inferBackend, H as knownStyleDescriptors, I as knownStyles, J as registerStyle, K as resolveSceneRoleTraits, L as resolveStyleReference, M as resolveStyleStack, N as sceneRoleTraits, O as styleSpecJsonSchema, P as validateStyleSpec } from './svg-styles-
|
|
1
|
+
import { cj as RenderedRegionKind, e5 as TerminalProjectionDiagnosticCode, e6 as TerminalProjectionDiagnostic, D as DiagramActionRecord, a as ParsedDiagram, cn as Result, bQ as ParseError, au as DiagramAnalysis, bJ as MutationError, S as C4Variant, bc as FlowchartMutationOp, bd as FlowchartValidDiagram, cL as StateMutationOp, cO as StateValidDiagram, cz as SequenceMutationOp, cB as SequenceValidDiagram, cT as TimelineMutationOp, cW as TimelineValidDiagram, a4 as ClassMutationOp, a9 as ClassValidDiagram, aC as ErMutationOp, aE as ErValidDiagram, bv as JourneyMutationOp, by as JourneyValidDiagram, j as ArchitectureMutationOp, m as ArchitectureValidDiagram, dc as XyChartMutationOp, de as XyChartValidDiagram, bT as PieMutationOp, bV as PieValidDiagram, b$ as QuadrantMutationOp, c1 as QuadrantValidDiagram, bi as GanttMutationOp, bl as GanttValidDiagram, bG as MindmapMutationOp, bH as MindmapValidDiagram, bn as GitGraphMutationOp, bo as GitGraphValidDiagram, c8 as RadarMutationOp, c9 as RadarValidDiagram, J as C4MutationOp, Q as C4ValidDiagram, cr as SankeyMutationOp, cs as SankeyValidDiagram, bN as PacketMutationOp, bO as PacketValidDiagram, bA as KanbanMutationOp, bB as KanbanValidDiagram, cl as RequirementMutationOp, cm as RequirementValidDiagram, cY as TreemapMutationOp, cZ as TreemapValidDiagram, dh as ZenUMLMutationOp, dk as ZenUMLValidDiagram, aJ as EventModelingMutationOp, aK as EventModelingValidDiagram, bs as IshikawaMutationOp, bt as IshikawaValidDiagram, p as BlockMutationOp, q as BlockValidDiagram, aw as DiagramKind, c as AnyMutationOp, bI as MutableValidDiagram, d3 as VerifyResult, e7 as ZenUMLFragmentType, dg as ZenUMLBranch, M as C4Shape, G as C4Element, w as C4Boundary, K as C4Relationship, b0 as FamilyId, b4 as FamilyPositionedProjectionOptions, b5 as FamilyPositionedView, a$ as FamilyDescriptor, bP as PaintLayoutCertification, ce as RenderedLayout, d1 as ValidDiagramPayload, c$ as ValidDiagram, aM as ExtensionDiagramBody, d2 as VerifyOptions, R as RenderRequestReceipt } from './paint-certification-aIPtFDcn.js';
|
|
2
|
+
export { A as Accessibility, d as ArchitectureBody, e as ArchitectureEdge, f as ArchitectureEndpoint, g as ArchitectureEndpointBoundary, h as ArchitectureGroup, i as ArchitectureJunction, k as ArchitectureService, l as ArchitectureSide, B as BUILTIN_FAMILY_METADATA, n as BUILTIN_FAMILY_METADATA_COVERS_DIAGRAM_KIND, o as BlockBody, r as BuiltinFamilyId, s as BuiltinFamilyMetadata, C as C4Argument, t as C4ArgumentInput, u as C4Body, x as C4BoundaryInput, y as C4BoundaryKind, z as C4Diagnostic, E as C4Direction, F as C4Directive, H as C4ElementInput, I as C4ElementKind, L as C4RelationshipInput, N as C4Statement, O as C4Style, U as CAPABILITY_NEGOTIATION_VERSION, V as CORE_CAPABILITY_OFFERS, W as CORE_SCENE_FEATURES, X as CORE_SCENE_OPERATIONS, Y as CORE_SCENE_PRIMITIVES, Z as CapabilityDecision, _ as CapabilityId, $ as CapabilityOffer, a0 as CapabilityRequirement, a1 as CapabilityRequirementLevel, a2 as CapabilityResolution, a3 as ClassBody, a5 as ClassNode, a6 as ClassNote, a7 as ClassRelation, a8 as ClassRelationKind, aa as CliRenderTransport, ab as CodeModeRenderTransport, ac as ConnectorContourSemantics, ad as ConnectorEndpoints, ae as ConnectorGeometry, af as ConnectorHitGeometry, ag as ConnectorLabelDescriptor, ah as ConnectorMark, ai as ConnectorRelationship, aj as ConnectorRoute, ak as ConnectorStroke, al as ConnectorSubpath, am as ConnectorTerminalLabelProjection, an as ConnectorTerminalMarkerPlacement, ao as ConnectorTerminalMarkerProjection, ap as ConnectorTerminalProjection, aq as ConnectorTerminalStrokeLoss, ar as DEFAULT_LABEL_CHAR_CAP, as as DiagramActionKind, at as DiagramActionSecurity, av as DiagramBody, ax as EdgeId, ay as ErAttribute, az as ErBody, aA as ErCardinality, aB as ErEntity, aD as ErRelation, aF as EventData, aG as EventFrame, aH as EventFrameType, aI as EventModelingBody, aL as EventSpecification, aN as ExtensionValidDiagram, aO as ExternalFamilyId, aP as ExtractedLabel, aQ as FAMILY_CAPABILITY_COLUMNS, aR as FAMILY_CONFORMANCE_MAX_EXAMPLE_BYTES, aS as FAMILY_CONFORMANCE_VERSION, aT as FAMILY_DESCRIPTOR_CONTRACT_VERSION, aU as FamilyCapability, aV as FamilyCapabilityConformanceResult, aW as FamilyCapabilityEvidence, aX as FamilyCapabilityState, aY as FamilyConformanceError, aZ as FamilyConformanceReport, a_ as FamilyConformanceStatus, b1 as FamilyOperations, b2 as FamilyParsedBody, b3 as FamilyPositionedProjectionContext, b6 as FamilyScenePositivePrimitive, b7 as FamilyScenePrimitiveApplicability, b8 as FamilyScenePrimitiveEvidence, b9 as FamilySceneRolePrimitiveDeclaration, ba as FeedbackEdgeAnalysis, bb as Finite, be as GanttBody, bf as GanttBodySection, bg as GanttBodyTask, bh as GanttBodyTaskTag, bj as GanttScheduleAnalysisSummary, bk as GanttStatement, bm as GitGraphBody, bp as GroupId, bq as InitDirective, br as IshikawaBody, bu as JourneyBody, bw as JourneySection, bx as JourneyTask, bz as KanbanBody, bC as LayoutWarning, bD as LibraryRenderTransport, bE as MarkerDescriptor, bF as MindmapBody, bK as NodeId, bL as PRIMITIVE_REALIZATIONS, bM as PacketBody, P as PaintLayoutCertificationError, bR as ParticipantId, bS as PieBody, bU as PieSlice, bW as PreservedDiagramBody, bX as PreservedSourceSpans, bY as PreservedValidDiagram, bZ as QuadrantAxis, b_ as QuadrantBody, c0 as QuadrantPoint, c2 as RENDER_CONTRACT_VERSION, c3 as RENDER_OUTPUTS, c4 as RENDER_OUTPUT_DESCRIPTORS, c5 as RadarBody, c6 as RadarBodyAxis, c7 as RadarBodyCurve, ca as RenderCapabilityError, cb as RenderOutputDescriptor, cc as RenderOutputTransports, cd as RenderedLabelBounds, cf as RenderedLayoutEdge, cg as RenderedLayoutGroup, ch as RenderedLayoutLabel, ci as RenderedLayoutNode, b as RenderedRegion, ck as RequirementBody, co as SHARED_RENDER_OPTION_FIELDS, cp as SankeyBody, cq as SankeyBodyLink, ct as SceneDoc, cu as SceneNode, cv as SemanticChannels, cw as SequenceBody, cx as SequenceMessage, cy as SequenceMessageStyle, cA as SequenceParticipant, cC as SerializedFlowchartGraph, cD as SourceComment, cE as SourceMap, cF as SourceMapSpans, cG as SourcePreservationReceipt, cH as SourceSpan, cI as SourceSpanPoint, cJ as StateBody, cK as StateFloatingNote, cM as StateNode, cN as StateTransition, cP as Tier1WarningCode, cQ as Tier2WarningCode, cR as TimelineBody, cS as TimelineEvent, cU as TimelinePeriod, cV as TimelineSection, cX as TreemapBody, c_ as UNREGISTERED_FAMILY_CAPABILITY_STATES, d0 as ValidDiagramMeta, d4 as WARNING_SEVERITY, d5 as WARNING_TIER, d6 as WarningCode, d7 as WarningSeverity, d8 as WarningTier, d9 as XyChartAxis, da as XyChartAxisSpec, db as XyChartBody, dd as XyChartSeries, df as ZenUMLBody, di as ZenUMLParticipant, dj as ZenUMLStatement, dl as asArchitecture, dm as asBlock, dn as asC4, dp as asClass, dq as asEr, dr as asEventModeling, ds as asFlowchart, dt as asGantt, du as asGitGraph, dv as asIshikawa, dw as asJourney, dx as asKanban, dy as asMindmap, dz as asPacket, dA as asPie, dB as asQuadrant, dC as asRadar, dD as asRequirement, dE as asSankey, dF as asSequence, dG as asState, dH as asTimeline, dI as asTreemap, dJ as asXyChart, dK as asZenUML, dL as builtinFamilyMetadata, dM as declareFamilyScenePrimitiveEvidence, dN as detectRegisteredFamilyFromFirstLine, dO as effectiveFamilyCapabilityState, dP as err, dQ as getFamily, dR as getFamilyConformanceReport, dS as isBuiltinFamilyId, dT as isExternalFamilyId, dU as knownBuiltinFamilies, dV as knownFamilies, dW as negotiateCapabilities, dX as negotiateRenderCapabilities, dY as ok, dZ as parseSemVer, d_ as semVerSatisfies, d$ as sharedRenderOptionsJsonSchema, e0 as styleInputJsonSchema, e1 as terminalConnectorCapabilityClaims, e2 as toFinite, e3 as validatePrimitiveCapabilities, e4 as validateSerializableRenderOptions, v as verifyNoExternalRefs } from './paint-certification-aIPtFDcn.js';
|
|
3
|
+
import { A as AsciiRenderOptions, bf as renderMermaidASCII$1, ah as RenderedAscii, bg as renderMermaidSVG$1, bh as RenderedSvg } from './index-Bs7imZCS.js';
|
|
4
|
+
export { c as AsciiRenderColorMode, d as AsciiWidthError, e as AsciiWidthErrorReason, B as BACKEND_CONFORMANCE_CHECK_IDS, f as BACKEND_CONFORMANCE_FIXTURE_ID, g as BACKEND_CONFORMANCE_VERSION, h as BackendCapabilityConformanceResult, i as BackendCapabilityConformanceStatus, j as BackendConformanceCheck, k as BackendConformanceCheckId, l as BackendConformanceReport, m as BackendDescriptor, n as BackendRegistrationOptions, D as DefaultBackend, E as EXTERNAL_SCENE_API_VERSION, o as ExternalSceneConnector, p as ExternalSceneConnectorGeometry, q as ExternalSceneConnectorLabel, r as ExternalSceneContainer, s as ExternalSceneDataMark, t as ExternalSceneDocument, u as ExternalSceneGeometry, v as ExternalSceneInput, w as ExternalSceneMarker, x as ExternalSceneNode, y as ExternalSceneNodeBase, z as ExternalSceneShape, C as ExternalSceneText, F as FamilyDetectionDiagnostic, G as HOSTED_FONT_RESOURCES, H as HostBackendPolicy, M as MAX_HOSTED_PNG_BYTES, I as MAX_HOSTED_PNG_PIXELS, J as MAX_PNG_FONT_DIRECTORIES, K as MAX_PNG_FONT_DIRECTORY_LENGTH, L as MAX_PNG_PIXELS, N as MAX_PNG_RASTER_DIMENSION, O as MermaidFamilyClassification, Q as MermaidFamilyDetectionError, R as NATIVE_PNG_HOST_ONLY_OPTION_FIELDS, S as NATIVE_PNG_OUTPUT_POLICY_FIELDS, T as NativePngHostOnlyOptionField, U as NativePngOutputPolicyField, V as PNG_DEFAULT_FONT_FAMILY, W as PNG_DEFAULT_MIN_LABEL_PX, X as PNG_DEFAULT_SCALE, Y as PNG_FONT_SOURCES, Z as PNG_NAPI_RUNTIME, _ as PNG_OUTPUT_OPTION_FIELDS, $ as PNG_OUTPUT_OPTION_FIELD_DESCRIPTORS, a0 as PNG_OUTPUT_POLICY_VERSION, a1 as PNG_WASM_RUNTIME, a2 as PORTABLE_PNG_OUTPUT_OPTION_FIELDS, a3 as PngFitTo, a4 as PngFontSource, a5 as PngOutputOptionField, a6 as PngOutputOptionFieldDescriptor, a7 as PngOutputOptionInputKind, a8 as PngOutputOptionPolicyState, a9 as PngOutputOptionReceiptState, aa as PngOutputOptionScope, a as PngOutputPolicyInput, ab as PngRasterDimensions, b as PngRuntimeProvenance, ac as PortablePngOutputOptionField, ad as PortablePngOutputOptions, ae as RESOLVED_SCENE_VERSION, af as RESOURCE_MANIFEST, ag as RESOURCE_MANIFEST_VERSION, ai as ResolvedPngOutputPolicy, aj as ResolvedScene, ak as ResolvedSceneError, al as ResolvedSceneFeature, am as ResolvedTerminalOutputPolicy, an as SCENE_CONTRACT_VERSION, ao as SCENE_VALIDATION_LIMITS, ap as SCENE_VALIDATION_VERSION, aq as SceneValidationDiagnostic, ar as SceneValidationDiagnosticCode, as as SceneValidationError, at as SceneValidationOptions, au as SceneValidationResult, av as StyleBackend, aw as StyleBackendContext, ax as TERMINAL_BOUNDED_PADDING_X, ay as TERMINAL_DEFAULT_BOX_BORDER_PADDING, az as TERMINAL_DEFAULT_PADDING_X, aA as TERMINAL_DEFAULT_PADDING_Y, aB as TERMINAL_OUTPUT_POLICY_VERSION, aC as TEXT_MEASUREMENT_CONTRACT, aD as TerminalOutputPolicyError, aE as TerminalOutputPolicyInput, aF as TextMeasurementContract, aG as TextMeasurementInput, aH as TextMeasurementResult, aI as UPSTREAM_MERMAID_FAMILY_INDEX, aJ as UpstreamFamilyDescriptor, aK as UpstreamHeaderDescriptor, aL as UpstreamHeaderMatch, aM as UpstreamMermaidFamilyIndex, aN as assertHostedPngRasterBudget, aO as assertPngRasterBudget, aP as assertValidSceneDoc, aQ as buildExternalScene, aR as classifyMermaidFamilyFromFirstLine, aS as findUpstreamFamilyByHeader, aT as getBackend, aU as hostedFontResource, aV as knownBackendDescriptors, aW as measureText, aX as measureTextWidth, aY as normalizePortablePngBackground, aZ as omitPngOutputOptions, a_ as parseRegisteredMermaid, a$ as pngNapiRuntimeProvenance, b0 as pngOutputOptionsJsonSchema, b1 as pngRasterDimensions, b2 as prepareSvgForPngRasterization, b3 as projectNativePngOutputPolicyInput, b4 as projectPortablePngOutputOptions, b5 as registerBackend, b6 as renderResolvedScene, b7 as resolvePngOutputPolicy, b8 as resolvePortablePngOutputPolicy, b9 as resolveTerminalOutputPolicy, ba as runBackendConformance, bb as svgIntrinsicDimensions, bc as validateResourceManifest, bd as validateSceneDoc, be as verifyResourceBytes } from './index-Bs7imZCS.js';
|
|
5
|
+
import { m as Direction, d as LayoutRouteCertificate, L as LabelContent, n as PositionedDiagram, M as MermaidEdge, R as RenderOptions } from './types-DkUbM48-.js';
|
|
6
|
+
export { A as AnyPort, a as ArchitectureVisualOverrides, D as DiamondFacet, b as DisplayRun, E as EdgeRouteCertificate, F as FamilyEdgeRouteCertificate, c as FamilyRouteCertificate, e as LayoutRouteClass, P as PortSemanticRole, f as PortSide, g as PreparedDisplayText, h as RegionContainmentCertificate, i as RouteBlocker, j as RouteCertificate, k as RouteClass, l as RoutePortAssignment } from './types-DkUbM48-.js';
|
|
7
|
+
export { B as BINDABLE_ROLE_STYLE_PROPERTIES, a as BINDABLE_SCENE_ROLES, b as BRAND_CONSTRAINT_DESCRIPTORS, c as BRAND_CONSTRAINT_KINDS, d as BUILTIN_SCENE_ROLE_TRAITS, e as BindableSceneRole, f as BrandConstraint, g as BrandConstraintAction, h as BrandConstraintKind, E as EXACT_ROLE_STYLE_CONTRACT, i as EXACT_STYLE_SCENE_ROLES, j as ExactStyleSceneRole, k as ExtensionIdentity, R as ROLE_STYLE_PROPERTY_DESCRIPTORS, l as RoleStyleFor, m as RoleStyleSpec, n as RoleStyles, o as SCENE_ROLE_DESCRIPTORS, p as SEMANTIC_BINDING_CHANNELS, q as STYLE_COLOR_TOKEN_DESCRIPTORS, r as STYLE_SPEC_FIELD_DESCRIPTORS, s as STYLE_SPEC_FORMAT_VERSION, t as SceneRole, u as SemanticBinding, v as SemanticBindingChannel, w as SemanticSlots, x as StyleColors, y as StyleDescriptor, S as StyleInput, z as StyleReferenceResolution, A as StyleRegistrationOptions, C as StyleSpec, D as createExtensionIdentity, F as getStyle, G as inferBackend, H as knownStyleDescriptors, I as knownStyles, J as registerStyle, K as resolveSceneRoleTraits, L as resolveStyleReference, M as resolveStyleStack, N as sceneRoleTraits, O as styleSpecJsonSchema, P as validateStyleSpec } from './svg-styles-DfHloZTH.js';
|
|
8
8
|
|
|
9
9
|
interface TerminalIdentity {
|
|
10
10
|
id: string;
|
package/dist/agent-core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{B as Ec,C as Fc,D as Gc,E as Hc,F as Ic,I as Jc,J as Kc,K as Lc,L as Mc,M as Nc,N as Oc,O as Pc,P as Qc,R as Rc,S as Sc,T as Tc,U as Uc,V as Vc,W as Wc,a as jc,b as kc,c as lc,d as mc,e as nc,f as oc,h as pc,i as qc,j as rc,k as sc,l as tc,m as uc,o as vc,p as wc,q as xc,r as yc,u as zc,v as Ac,x as Bc,y as Cc,z as Dc}from"./chunk-A5TX2FW5.js";import{$a as Jb,Aa as vb,Ab as ic,Ea as wb,Fa as xb,Ja as yb,La as zb,Ma as Ab,Na as Bb,Oa as Cb,Ra as Db,Sa as Eb,Ta as Fb,U as Fa,Ua as Gb,Va as Hb,_a as Ib,a,ab as Kb,bb as Lb,c as G,cb as Mb,d as H,db as Nb,e as I,eb as Ob,f as J,fb as Pb,g as K,gb as Qb,h as L,hb as Rb,i as M,ib as Sb,j as N,jb as Tb,k as O,ka as ob,kb as Ub,l as P,lb as Vb,m as Q,mb as Wb,n as R,nb as Xb,ob as Yb,p as S,pa as pb,pb as Zb,q as T,qb as _b,r as U,ra as qb,rb as $b,s as V,sa as rb,sb as ac,t as W,tb as bc,u as X,ub as cc,vb as dc,wb as ec,xa as sb,xb as fc,ya as tb,yb as gc,za as ub,zb as hc}from"./chunk-JRLCGATA.js";import{Dc as Da,Gc as Ea,ab as E,bb as F,c as w,qh as jb,vh as kb,wh as lb,xh as mb,zh as nb}from"./chunk-GO4CS5KS.js";import"./chunk-QVP364DJ.js";import{$c as Ja,$d as db,Bb as l,Cd as Wa,Dd as Xa,Ib as m,Kc as x,Kd as Ya,L as c,Lb as n,Ld as Za,M as d,Mb as o,Md as _a,N as e,Nb as p,Nc as y,Nd as $a,O as f,Ob as q,P as g,Pb as r,Q as h,Qb as s,Qc as z,Rb as t,Rc as A,Sb as u,Tb as v,Tc as B,Td as ab,Wc as C,X as i,Xc as D,Xd as bb,Y as j,Yc as Ga,Z as k,Zc as Ha,Zd as cb,_c as Ia,ad as Ka,bd as La,ed as Ma,fd as Na,gd as Oa,hd as Pa,id as Qa,jd as Ra,kd as Sa,wd as Ta,xd as Ua,yd as Va}from"./chunk-CGCGMO4U.js";import{A as ya,B as za,C as Aa,D as Ba,E as Ca,F as eb,G as fb,H as gb,I as hb,J as ib,a as _,b as $,c as aa,d as ba,e as ca,f as da,g as ea,h as fa,i as ga,j as ha,k as ia,l as ja,m as ka,n as la,o as ma,p as na,q as oa,r as pa,s as qa,t as ra,u as sa,v as ta,w as ua,x as va,y as wa,z as xa}from"./chunk-O7H2UX5K.js";import{a as b,b as Y,c as Z}from"./chunk-3LGLPG33.js";import"./chunk-V5RFODN6.js";export{mc as ASCII_ROUTE_PARITY_CONTRACT,ob as AsciiWidthError,_a as BACKEND_CONFORMANCE_CHECK_IDS,Za as BACKEND_CONFORMANCE_FIXTURE_ID,Ya as BACKEND_CONFORMANCE_VERSION,r as BINDABLE_ROLE_STYLE_PROPERTIES,q as BINDABLE_SCENE_ROLES,Oc as BOUND_PROVENANCE,Y as BRAND_CONSTRAINT_DESCRIPTORS,Z as BRAND_CONSTRAINT_KINDS,N as BUILTIN_FAMILY_METADATA,O as BUILTIN_FAMILY_METADATA_COVERS_DIAGRAM_KIND,s as BUILTIN_SCENE_ROLE_TRAITS,c as CAPABILITY_NEGOTIATION_VERSION,g as CORE_CAPABILITY_OFFERS,A as CORE_SCENE_FEATURES,z as CORE_SCENE_OPERATIONS,y as CORE_SCENE_PRIMITIVES,Nc as DEFAULT_BOUNDS,Aa as DEFAULT_LABEL_CHAR_CAP,ab as DefaultBackend,o as EXACT_ROLE_STYLE_CONTRACT,p as EXACT_STYLE_SCENE_ROLES,Ab as EXTERNAL_SCENE_API_VERSION,G as FAMILY_CAPABILITY_COLUMNS,H as FAMILY_CONFORMANCE_MAX_EXAMPLE_BYTES,J as FAMILY_CONFORMANCE_VERSION,I as FAMILY_DESCRIPTOR_CONTRACT_VERSION,L as FamilyConformanceError,Eb as HOSTED_FONT_RESOURCES,Mb as MAX_HOSTED_PNG_BYTES,Lb as MAX_HOSTED_PNG_PIXELS,Nb as MAX_PNG_FONT_DIRECTORIES,Ob as MAX_PNG_FONT_DIRECTORY_LENGTH,Jb as MAX_PNG_PIXELS,Kb as MAX_PNG_RASTER_DIMENSION,Ea as MermaidFamilyDetectionError,Ub as NATIVE_PNG_HOST_ONLY_OPTION_FIELDS,Tb as NATIVE_PNG_OUTPUT_POLICY_FIELDS,Ib as PNG_DEFAULT_FONT_FAMILY,Pb as PNG_DEFAULT_MIN_LABEL_PX,gb as PNG_DEFAULT_SCALE,fc as PNG_FONT_SOURCES,gc as PNG_NAPI_RUNTIME,Rb as PNG_OUTPUT_OPTION_FIELDS,Qb as PNG_OUTPUT_OPTION_FIELD_DESCRIPTORS,eb as PNG_OUTPUT_POLICY_VERSION,hc as PNG_WASM_RUNTIME,Sb as PORTABLE_PNG_OUTPUT_OPTION_FIELDS,B as PRIMITIVE_REALIZATIONS,w as PaintLayoutCertificationError,hb as RENDER_CONTRACT_VERSION,b as RENDER_OUTPUTS,ib as RENDER_OUTPUT_DESCRIPTORS,yb as RESOLVED_SCENE_VERSION,Fb as RESOURCE_MANIFEST,Cb as RESOURCE_MANIFEST_VERSION,n as ROLE_STYLE_PROPERTY_DESCRIPTORS,nb as RenderCapabilityError,a as ResolvedSceneError,l as SCENE_CONTRACT_VERSION,t as SCENE_ROLE_DESCRIPTORS,Ua as SCENE_VALIDATION_LIMITS,Ta as SCENE_VALIDATION_VERSION,Ia as SEMANTIC_BINDING_CHANNELS,jb as SHARED_RENDER_OPTION_FIELDS,Ha as STYLE_COLOR_TOKEN_DESCRIPTORS,Ja as STYLE_SPEC_FIELD_DESCRIPTORS,Ga as STYLE_SPEC_FORMAT_VERSION,Va as SceneValidationError,tb as TERMINAL_BOUNDED_PADDING_X,vb as TERMINAL_DEFAULT_BOX_BORDER_PADDING,sb as TERMINAL_DEFAULT_PADDING_X,ub as TERMINAL_DEFAULT_PADDING_Y,fb as TERMINAL_OUTPUT_POLICY_VERSION,i as TEXT_MEASUREMENT_CONTRACT,wb as TerminalOutputPolicyError,K as UNREGISTERED_FAMILY_CAPABILITY_STATES,E as UPSTREAM_MERMAID_FAMILY_INDEX,ya as WARNING_SEVERITY,za as WARNING_TIER,jc as analyzeMermaid,kc as analyzeMermaidSource,Dc as applyOps,na as asArchitecture,fa as asBlock,sa as asC4,ka as asClass,la as asEr,Ba as asEventModeling,ga as asFlowchart,ua as asGantt,wa as asGitGraph,ea as asIshikawa,ma as asJourney,ba as asKanban,va as asMindmap,aa as asPacket,pa as asPie,qa as asQuadrant,ra as asRadar,ca as asRequirement,ta as asSankey,ia as asSequence,ha as asState,ja as asTimeline,da as asTreemap,oa as asXyChart,Ca as asZenUML,oc as asciiToMermaid,_b as assertHostedPngRasterBudget,Zb as assertPngRasterBudget,Xa as assertValidSceneDoc,Cc as buildChecked,Bb as buildExternalScene,yc as buildMermaid,P as builtinFamilyMetadata,Hc as checkMermaid,Ic as checkMermaidSource,Qc as checkQuality,Da as classifyMermaidFamilyFromFirstLine,lc as collectActionRecords,m as createExtensionIdentity,xc as createMermaid,M as declareFamilyScenePrimitiveEvidence,Kc as describeMermaid,Fc as describeMermaidFacts,Gc as describeMermaidFactsSource,Jc as describeMermaidSource,Lc as describeMermaidTree,sc as describeOps,X as detectRegisteredFamilyFromFirstLine,Fa as edgeIdOf,U as effectiveFamilyCapabilityState,$ as err,F as findUpstreamFamilyByHeader,db as getBackend,S as getFamily,T as getFamilyConformanceReport,Oa as getStyle,pc as hasOpSchema,Hb as hostedFontResource,Ra as inferBackend,Q as isBuiltinFamilyId,R as isExternalFamilyId,cb as knownBackendDescriptors,W as knownBuiltinFamilies,V as knownFamilies,Qa as knownStyleDescriptors,Pa as knownStyles,Ec as layoutCertificateProof,Wc as layoutMermaid,Vc as layoutMermaidWithReceipt,Pc as measureQuality,j as measureText,k as measureTextWidth,uc as mutate,vc as mutateChecked,wc as mutatePreservingSource,f as negotiateCapabilities,h as negotiateRenderCapabilities,$b as normalizePortablePngBackground,_ as ok,cc as omitPngOutputOptions,rc as opMenu,tc as opSignatures,rb as parseRegisteredMermaid,d as parseSemVer,ic as pngNapiRuntimeProvenance,Vb as pngOutputOptionsJsonSchema,Xb as pngRasterDimensions,Yb as prepareSvgForPngRasterization,bc as projectNativePngOutputPolicyInput,ac as projectPortablePngOutputOptions,zc as projectPositionedView,bb as registerBackend,Mc as registerFamily,Ma as registerStyle,Tc as renderMermaidASCII,nc as renderMermaidASCIIWithMeta,Uc as renderMermaidASCIIWithReceipt,Rc as renderMermaidSVG,Sc as renderMermaidSVGWithReceipt,zb as renderResolvedScene,ec as resolvePngOutputPolicy,dc as resolvePortablePngOutputPolicy,u as resolveSceneRoleTraits,Na as resolveStyleReference,Sa as resolveStyleStack,xb as resolveTerminalOutputPolicy,$a as runBackendConformance,v as sceneRoleTraits,e as semVerSatisfies,pb as serializeMermaid,lb as sharedRenderOptionsJsonSchema,mb as styleInputJsonSchema,La as styleSpecJsonSchema,Wb as svgIntrinsicDimensions,qb as synthesizeFromGraph,C as terminalConnectorCapabilityClaims,xa as toFinite,qc as validateOp,D as validatePrimitiveCapabilities,Gb as validateResourceManifest,Wa as validateSceneDoc,kb as validateSerializableRenderOptions,Ka as validateStyleSpec,Ac as verifyMermaid,x as verifyNoExternalRefs,Db as verifyResourceBytes,Bc as verifySummary};
|
|
2
2
|
//# sourceMappingURL=agent-core.js.map
|