Skip to content

v2.3.0 — diagram-core 1.6.0

Choose a tag to compare

@gbaufake gbaufake released this 02 Nov 17:42
· 63 commits to main since this release
  • Icon catalogs and resolver in the core (diagram-core 1.6.0):
    SERVICE_ICONS, SHAPE_ICONS, iconForService, iconForShape,
    withServiceIcon, iconFilterKind. lib/service-icons.json and
    lib/shape-icons.json move into the core as data; the MCP keeps only the
    fuzzy layer over the icon files on disk. LiveDiagram, SequencePlayer and
    FlowPlayer fill a missing icon from service, so a host no longer has to.
  • Document schemas in the core: diagramSchema/validateDiagram
    (architecture) and sequenceDocSchema/validateSequence (UML sequence) —
    JSON Schema + dependency-free validators with referential integrity. A new
    test keeps them in step with the MCP's zod tool schemas; it found and fixed
    two gaps: the MCP now accepts fragments[].tone (the player already drew it),
    and the core schema accepts { en, pt } text where the MCP does.
  • Canvas theme in the core: DIAGRAM_THEME + diagramThemeCss() /
    diagramBaseCss() — the light/dark tokens of LiveDiagram (the MCP's HTML
    and the slides host each kept their own copy).
  • Fix: Icon no longer inverts colored Res_* glyphs in dark mode (only
    the navy ones without a *_Dark sibling, MONO_INVERT_RES); it also swaps
    pathed diagram icons and host-listed logos (brandDarkVariants) and takes
    named sizes (sizes) — the slides deck's Icon is now a wrapper around it.
  • Accessible descriptions: describeArchitecture / describeSequence
    (en/pt/es, i18n text); LiveDiagram and SequencePlayer render as a figure
    described by a visually hidden summary (describe={false} to opt out).
  • One inline mini-markdown grammar: parseInline / inlineHtml /
    safeHref (** / __ bold, * / _ italic at word boundaries,
    `code`, links through safeHref, linear on hostile input). The card
    text, the flow player and the slides deck's RichText and blog text all parse
    with it; each keeps its own styling.

Also in this release (2.2.2)

  • Fix: the installed MCP starts. Run through npx or from a release
    tarball, the server crashed with ERR_MODULE_NOT_FOUND for
    @aws-sample-live-diagram/core (only present in a clone's workspace). The
    runtime now imports the core's sources by path, ships them all in files,
    and dagre (pulled by the shared layout engine) moved to dependencies. A
    test walks the runtime's imports so this cannot regress.
  • Fix — serverInfo.version is read from package.json (it said 2.1.0);
    the plugin and marketplace manifests were still at 2.1.3. A test keeps them
    in sync with the package.