@beehexa/hexasync-template-model 2610.4.7 → 2610.12.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.
@@ -1,34 +1,29 @@
1
1
  import type { OccurrencePlan } from './collapseRule.js';
2
- import { type NodeLabelAnatomy } from './stepGlyph.js';
3
2
  /** A node as a renderer needs to see it — neither flow package's shape, deliberately. */
4
3
  export interface RenderNode {
5
- /** The AD-33 canonical address. Projected to a mermaid id here, never by the caller. */
4
+ /** The AD-33 canonical address. It identifies the node to callers; it never reaches the definition. */
6
5
  readonly address: string;
7
- /** What the box says. */
8
- readonly label: string;
9
- /** Composer-owned structure. Its presence, not `label` byte shape, enables Mermaid markdown. */
10
- readonly labelAnatomy?: NodeLabelAnatomy;
11
- /**
12
- * Label for the loose host fidelity. When absent, both fidelities intentionally use `label`.
13
- *
14
- * The emitter selects between the two; hosts never rewrite a generated definition.
15
- */
16
- readonly looseLabel?: string;
17
- /** Loose-fidelity composer structure. Falls back with `looseLabel` when absent. */
18
- readonly looseLabelAnatomy?: NodeLabelAnatomy;
19
- /** Authoritative worker runtime type. Shape classification never parses the label or icon family. */
6
+ /** What the card's title says: the step's name, else its key; a synthesised node's fixed word. */
7
+ readonly name: string;
8
+ /** The authored step key. Absent on a synthesised node. */
9
+ readonly key?: string;
10
+ /** Authoritative worker/frontend step type. Shape classification never parses the name or icon family. */
20
11
  readonly type?: string;
21
- /** Child-family DOM hook used by loose hosts. Unknown or absent families use the neutral class. */
12
+ /** Icon family (`call.http`, …). Unknown or absent families use the neutral `unmapped` hook. */
22
13
  readonly iconFamily?: string;
23
14
  /** Draw it as a branch/condition. */
24
15
  readonly decides?: boolean;
25
16
  /** Draw it as a stadium — a terminal, an unresolved target. */
26
17
  readonly terminal?: boolean;
27
18
  }
19
+ /** What an edge means structurally — data for consumers, never a styling instruction. */
20
+ export type FlowEdgeKind = 'next' | 'branch' | 'error' | 'stage';
28
21
  export interface RenderEdge {
29
22
  readonly from: string;
30
23
  readonly to: string;
31
24
  readonly label?: string;
25
+ /** Defaults to `branch` for a labelled edge and `next` otherwise. */
26
+ readonly kind?: FlowEdgeKind;
32
27
  }
33
28
  /** One subgraph. A flat chart passes a single group with no title. */
34
29
  export interface RenderGroup {
@@ -37,20 +32,9 @@ export interface RenderGroup {
37
32
  readonly nodes: readonly RenderNode[];
38
33
  }
39
34
  export type FlowDirection = 'TD' | 'LR';
40
- export type RenderFidelity = 'strict' | 'loose';
41
35
  export type NodeTreatment = 'flow-start' | 'flow-end' | 'process' | 'branch' | 'subroutine' | 'delay' | 'exception' | 'unimplemented';
42
36
  /** The complete, ordered shape vocabulary. No renderer path may invent another treatment. */
43
37
  export declare const APPROVED_NODE_TREATMENTS: readonly ["flow-start", "flow-end", "process", "branch", "subroutine", "delay", "exception", "unimplemented"];
44
- /**
45
- * The hard boundary between deterministic definition generation and host DOM decoration.
46
- *
47
- * Exported as data so adapters and contract tests can share one inventory instead of describing the boundary in
48
- * prose that drifts. Stage 3 may make generated nodes operable; every visible or structural byte belongs here.
49
- */
50
- export declare const FLOW_RENDER_STAGE_OWNERSHIP: {
51
- readonly generate: readonly ['shape', 'nodeId', 'labelText', 'accTitle', 'accDescr', 'iconClass', 'nodeStyle', 'edge', 'linkStyle', 'edgeColor', 'edgeDash', 'direction', 'repeatBadge', 'errorMarker'];
52
- readonly decorate: readonly ['interaction'];
53
- };
54
38
  /**
55
39
  * The nine runtime executors whose authoritative Epic 7 evidence records `NotImplementedException`.
56
40
  *
@@ -60,142 +44,18 @@ export declare const FLOW_RENDER_STAGE_OWNERSHIP: {
60
44
  export declare const UNIMPLEMENTED_WORKER_STEP_TYPES: readonly ["Begin", "Composite", "cURL", "End", "GraphQL", "Liquid", "OData", "QueryDSL", "Restful"];
61
45
  /** Classify treatment from model facts only; labels and icon families are deliberately irrelevant. */
62
46
  export declare function classifyNodeTreatment(node: Pick<RenderNode, 'type' | 'decides' | 'terminal'>): NodeTreatment;
63
- /**
64
- * A run's reading of the drawing — ONE vocabulary, keyed by node address (AD-22, Story 10.4).
65
- *
66
- * Story 10.4 retired the two-state lists (`traversed`, `errored`, `colors`, and Story 8.7's `notTaken`) that stood
67
- * beside this map: two overlay vocabularies reaching one emitter meant edges were styled from one and nodes from the
68
- * other. Every reading those lists drew is now a `nodes` entry — see `RenderNodeOverlay` for the mapping.
69
- */
70
- export interface RenderOverlay {
71
- /**
72
- * The TYPED per-node overlay (AD-22), keyed by node address — never by step key.
73
- *
74
- * Each entry resolves ONE way, through `resolveNodeState`:
75
- * - WITH a `state`: the state's treatment, exactly as Story 8.8 draws it. Colour overrides are honoured; width,
76
- * marker and dash follow the state; `roles.opacity` only retunes a state that is already dimmed.
77
- * - WITHOUT a `state` but with a valid `roles.stroke`: a ROLES-ONLY entry, which draws exactly its roles (see
78
- * `RenderNodeOverlayRoles`). This is how a producer that knows which roles to draw, but can prove no state, says so.
79
- * - Any other stateless entry draws no node style. Its `repeat` badge is still drawn.
80
- *
81
- * **Authority comes from a `state`.** When at least one CALLER entry that names a drawn address carries a `state`
82
- * (any value — an unknown one reads as `indeterminate`), the typed reading is chart-wide: every drawn node draws a
83
- * style, defaulting to `indeterminate`, kind styles are suppressed, and `accDescr` states every node's reading. A
84
- * chart where some nodes carry a run reading and others carry none would leave a reader unable to tell "not reached"
85
- * from "not described". Roles-only entries and badge-only entries make no state claim, so they never take the chart:
86
- * a node without an entry keeps its kind style, and a roles-only node never ALSO gets its kind style.
87
- *
88
- * **Edges are derived from these entries** — there is no edge field. Per drawn, deduped edge:
89
- * 1. its target is DECLINED (`branchNotTaken`, or a stateless entry with `roles.dash`) — dashed in `notTakenStroke`;
90
- * 2. both ends are REACHED (`ranOk`/`ranFailed`, or a drawn roles-only entry) — the stroke of the end drawn at
91
- * `emphasis`, target first, else the target's stroke;
92
- * 3. otherwise the neutral `edge` role.
93
- *
94
- * An address no group drew is ignored in silence.
95
- *
96
- * ⚠ **`RenderOptions.nodeColors` does NOT reach the state pass.** `nodeColors` names the base and kind roles; the
97
- * five state readings are a separate closed set, and `STATE_ROLES` carries DESIGN.md's light palette only. A host on
98
- * a dark theme overrides state colours through `roles`, resolved to literal hex at its own boundary.
99
- */
100
- readonly nodes?: Readonly<Record<string, RenderNodeOverlay>>;
101
- }
102
- export interface RenderNodeColors {
103
- /** Opaque node fill. Hexagons accept only the six-digit form. */
104
- readonly fill: string;
105
- /** Solid border for an unimplemented kind when no run state owns the stroke. */
106
- readonly nodeBorder: string;
107
- /** Solid border for an exception kind when no run state owns the stroke. */
108
- readonly failStroke: string;
109
- /** Every edge the run neither walked nor declined. */
110
- readonly edge: string;
111
- /** The edge entering a branch the run declined — the canvas's only dashed line. */
112
- readonly notTakenStroke: string;
113
- /** Edge-label glyphs. */
114
- readonly edgeLabelText: string;
115
- /** The opaque plate an edge label sits on, so the line does not strike through the text. */
116
- readonly edgeLabelBg: string;
117
- }
118
- /** Deterministic approved light palette; valid host-resolved values may override these roles. */
119
- export declare const APPROVED_NODE_COLORS: {
120
- readonly fill: '#ffffff';
121
- readonly nodeBorder: '#64748b';
122
- readonly failStroke: '#b91c1c';
123
- readonly edge: '#64748b';
124
- readonly notTakenStroke: '#475569';
125
- readonly edgeLabelText: '#334155';
126
- readonly edgeLabelBg: '#ffffff';
127
- };
128
- /**
129
- * The declared line-work roles (DESIGN.md `strokes:`). Blueprint carries state in the LINE, so weight and pattern
130
- * are roles, not values a render path picks.
131
- *
132
- * They live here as data because FR59 forbids a width or dash-array literal inside an emitter function: a width literal
133
- * typed into one of three emit sites is exactly how the shipped emitter ended up with three copies of one decision.
134
- */
135
- export declare const STROKE_ROLES: {
136
- /** Every node outline and every edge. */
137
- readonly hairline: '1px';
138
- /** The failed node's outline, and nothing else on the canvas. */
139
- readonly emphasis: '2px';
140
- /** Dash array for the branch-not-taken stroke. RUN STATE ONLY. */
141
- readonly dash: '6 3';
142
- };
143
- export type StrokeRole = keyof typeof STROKE_ROLES;
144
47
  /**
145
48
  * The run-state vocabulary: FOUR states plus ONE drawn reading, never five states.
146
49
  *
147
- * `indeterminate` is deliberately a member of the same union — it is what the emitter draws for a node whose state
148
- * cannot be determined — but the spine's State convention (`ARCHITECTURE-SPINE.md` line 237) counts it separately,
149
- * and `story88RunStates.atdd.spec.ts` asserts that shape so nobody grows a fifth state by adding a row here.
50
+ * `indeterminate` is what the emitter draws for a node whose state cannot be determined; it is counted apart from
51
+ * `RUN_STATES` so nobody grows a fifth state by adding a row there.
150
52
  */
151
53
  export type RunState = 'ranOk' | 'ranFailed' | 'neverReached' | 'branchNotTaken' | 'indeterminate';
152
54
  /** The four states DESIGN.md's state table draws as rows; `indeterminate` is the fifth reading, not a fifth state. */
153
55
  export declare const RUN_STATES: readonly ["ranOk", "ranFailed", "neverReached", "branchNotTaken"];
154
56
  /** The drawn reading for a node the producer could not place. Counted apart from `RUN_STATES` on purpose. */
155
57
  export declare const INDETERMINATE_RUN_STATE: "indeterminate";
156
- /**
157
- * The role map one node's entry draws with (AD-22's `roles` map). It means two things, chosen by the entry's `state`.
158
- *
159
- * Colours are always literal six-digit hex — the same grammar `overlayColor` enforces for every other overlay colour,
160
- * since a stroke value also reaches a polygon fill. Widths are declared ROLE NAMES (`hairline`/`emphasis`), never
161
- * measurements, so a caller cannot invent a third weight.
162
- *
163
- * **Beside a `state`**, these are OVERRIDES of that state's treatment. Colours are honoured; `width`, `dash` and
164
- * `marker` follow the state and are ignored (the failure signals a reader without colour vision has cannot be moved
165
- * by a caller); `opacity` only retunes a state that is already dimmed. Anything invalid falls back to the state's
166
- * declared role rather than dropping the statement: a half-drawn state reads as a DIFFERENT state.
167
- *
168
- * **Without a `state`**, a valid `stroke` makes the entry ROLES-ONLY, and it draws exactly these roles and nothing
169
- * else: `stroke` as given; `width`, else `hairline`; `fill`, else the resolved `RenderNodeColors.fill`; `title` as the
170
- * label colour only if valid; `opacity` only if valid; a dash only if `dash`; the error marker only if `marker`. It
171
- * claims no state, so it never takes the chart's authority and `accDescr` states no reading for it. An invalid or
172
- * absent `stroke` draws no node style at all — the node keeps its kind style and its edges stay neutral. A stateless
173
- * `dash: true` still marks the node DECLINED for its inbound edges, with or without a stroke.
174
- *
175
- * Migrating from the retired lists: `traversed` + `colors.traversed` → `{ roles: { stroke, width: 'hairline' } }`;
176
- * `errored` + `colors.errored` → `{ roles: { stroke, width: 'emphasis' } }`; `notTaken` → `{ roles: { dash: true } }`
177
- * (or `{ state: 'branchNotTaken' }` for a producer that can prove it).
178
- */
179
- export interface RenderNodeOverlayRoles {
180
- readonly stroke?: string;
181
- readonly fill?: string;
182
- /** Label colour. Mermaid paints ONE colour over the whole label — see `resolveNodeState`. */
183
- readonly title?: string;
184
- /** Accepted, recorded, and NOT emitted separately. Kept so the caller's role map is complete. */
185
- readonly description?: string;
186
- /** Honoured on a roles-only entry; beside a `state` it follows the state. */
187
- readonly width?: Extract<StrokeRole, 'hairline' | 'emphasis'>;
188
- /** Honoured on a stateless entry; beside a `state` it follows the state. */
189
- readonly dash?: boolean;
190
- /**
191
- * `'0'`–`'1'` as a decimal string, `'0'` excluded. Beside a `state` it only retunes a state that is ALREADY dimmed
192
- * (`neverReached`): it cannot dim a state DESIGN.md says is never dimmed, and it cannot undim one.
193
- */
194
- readonly opacity?: string;
195
- /** Honoured on a roles-only entry; beside a `state` it follows the state. */
196
- readonly marker?: boolean;
197
- }
198
- /** One node's run reading: what the run did to it, how many times, and the roles it draws with. */
58
+ /** One node's run reading: what the run did to it, and how many times. */
199
59
  export interface RenderNodeOverlay {
200
60
  readonly state?: RunState;
201
61
  /**
@@ -203,233 +63,169 @@ export interface RenderNodeOverlay {
203
63
  * factual claim about the run, and `×0` or `×1.5` is not one the generator can make.
204
64
  */
205
65
  readonly repeat?: number;
206
- readonly roles?: RenderNodeOverlayRoles;
207
66
  }
208
67
  /**
209
- * The five drawn readings, resolved from DESIGN.md's closed light palette (`colors:` 9-88, `node-*` components
210
- * 171-195, the state table 389-400).
211
- *
212
- * Data, not code, for the same reason as `STROKE_ROLES`: FR59 forbids a colour, width, dash or opacity literal
213
- * inside an emitter function. `opacity: '0.7'` is the ONLY numeric opacity in DESIGN.md (`node-unreached` line 187)
214
- * and it exists once, here.
68
+ * A run's reading of the drawing, keyed by node address (AD-22).
215
69
  *
216
- * Read the columns against the matrix they came from:
217
- * - **failed** is the only `emphasis`, the only `marker`, and the only non-white fill. All three unconditional.
218
- * - **never reached** is SOLID with a fully visible border and recedes by muted text + `opacity` on the card.
219
- * - **branch not taken** is DASHED at full neutral contrast and is NEVER dimmed.
220
- * - **indeterminate** is the neutral pair and carries nothing else, so it stays clickable and unremarkable.
221
- */
222
- export declare const STATE_ROLES: {
223
- readonly ranOk: {
224
- readonly stroke: '#c2410c';
225
- readonly fill: "#ffffff";
226
- readonly title: '#0f172a';
227
- readonly description: '#475569';
228
- readonly width: 'hairline';
229
- readonly dash: false;
230
- readonly opacity: undefined;
231
- readonly marker: false;
232
- };
233
- readonly ranFailed: {
234
- readonly stroke: "#b91c1c";
235
- readonly fill: '#fee2e2';
236
- readonly title: '#991b1b';
237
- readonly description: '#7f1d1d';
238
- readonly width: 'emphasis';
239
- readonly dash: false;
240
- readonly opacity: undefined;
241
- readonly marker: true;
242
- };
243
- readonly neverReached: {
244
- readonly stroke: '#7c8899';
245
- readonly fill: '#f8fafc';
246
- readonly title: '#64748b';
247
- readonly description: '#64748b';
248
- readonly width: 'hairline';
249
- readonly dash: false;
250
- readonly opacity: '0.7';
251
- readonly marker: false;
252
- };
253
- readonly branchNotTaken: {
254
- readonly stroke: "#475569";
255
- readonly fill: "#ffffff";
256
- readonly title: '#334155';
257
- readonly description: '#475569';
258
- readonly width: 'hairline';
259
- readonly dash: true;
260
- readonly opacity: undefined;
261
- readonly marker: false;
262
- };
263
- readonly indeterminate: {
264
- readonly stroke: "#64748b";
265
- readonly fill: "#ffffff";
266
- readonly title: '#0f172a';
267
- readonly description: '#475569';
268
- readonly width: 'hairline';
269
- readonly dash: false;
270
- readonly opacity: undefined;
271
- readonly marker: false;
272
- };
273
- };
274
- /**
275
- * The count badge's declared roles (DESIGN.md `count-badge` 218-222, `rounded.full`).
70
+ * **Authority comes from a `state`.** When at least one entry naming a drawn address carries a `state` (an unknown
71
+ * value reads as `indeterminate`), the reading is chart-wide: every other drawn node reads `indeterminate`, so a
72
+ * reader can tell "not reached" from "not described". A badge-only entry makes no state claim.
276
73
  *
277
- * Exported as DATA and not emitted as a `style` property, because Mermaid 12 has no way to paint a plate behind one
278
- * span of a node label: the badge reaches the definition as label TEXT (`×997`) in the node's single label colour.
279
- * A host that draws its own legend or inspector chip reads the plate roles from here, so the two surfaces cannot
280
- * disagree about what a badge looks like. Emitting it as label text is what AD-23 requires anyway — run-state
281
- * content is stage 1's, and `securityLevel: 'strict'` routes a label through DOMPurify.
74
+ * **Edges are derived from the states**: an edge into a `branchNotTaken` node is drawn dashed; an edge whose both
75
+ * ends ran (`ranOk`/`ranFailed`) is drawn walked; everything else keeps the default line. An address no group drew is
76
+ * ignored in silence.
282
77
  */
283
- export declare const REPEAT_BADGE_ROLES: {
284
- readonly background: '#ffffff';
285
- readonly foreground: '#9a3412';
286
- readonly border: '#c2410c';
287
- readonly borderWidth: "1px";
288
- readonly radius: '9999px';
289
- };
78
+ export interface RenderOverlay {
79
+ readonly nodes?: Readonly<Record<string, RenderNodeOverlay>>;
80
+ }
290
81
  export interface RenderOptions {
291
- /**
292
- * Label fidelity is a generator input. Mermaid `securityLevel` remains a host concern and must not fork emission.
293
- */
294
- readonly fidelity?: RenderFidelity;
295
82
  readonly direction?: FlowDirection;
296
- /** One chart with a subgraph per group, versus one flat chart. */
83
+ /** One chart with a subgraph per group, versus one flat chart. Defaults to `groups.length > 1`. */
297
84
  readonly multiStage?: boolean;
298
- /** Run highlighting. An ARGUMENT, never state on the model (AD-29). */
85
+ /** Run reading. An ARGUMENT, never state on the model (AD-29). */
299
86
  readonly overlay?: RenderOverlay;
300
- /** Valid role-resolved overrides for the deterministic approved node colors. */
301
- readonly nodeColors?: Partial<RenderNodeColors>;
302
- /**
303
- * Emitted as `classDef`/`class` rather than a per-element style, for a consumer whose stylesheet owns the colour.
304
- * Carries no colour of its own — see rule 3.
305
- */
306
- readonly shapeClasses?: readonly {
307
- readonly name: string;
308
- readonly declaration: string;
309
- readonly addresses: readonly string[];
310
- }[];
311
- /**
312
- * What an EMPTY flow says.
313
- *
314
- * `epic-4-ground-truth.md` records three different answers across the three implementations and that Story 4.8's AC
315
- * — *"saying so rather than rendering an empty diagram"* — needs one chosen. The CLI's answer is adopted: a single
316
- * node stating what is absent. The wording is the caller's, because only the caller knows whether "no steps" or "no
317
- * pusher steps" is the true sentence.
318
- */
87
+ /** What an EMPTY flow says: a single node stating what is absent. The wording is the caller's. */
319
88
  readonly emptyLabel?: string;
320
89
  /**
321
- * What a RUN did to each drawn step, keyed by node address — Story 8.9's occurrence dimension.
322
- *
323
- * A TYPED PARAMETER, never an evidence envelope (FR26): the generator does not parse the envelope and cannot be made
324
- * to. With no plan the expansion is the identity function and these bytes are what they were before Story 8.9
325
- * existed, which is what FR40 requires of the CLI compose report, the VS Code preview and the report renderer — none
326
- * of which has a run.
327
- *
328
- * The two flow adapters expand ahead of this call, because the expansion has to see their stage edges too; it is
329
- * honoured here as well so a caller rendering groups directly cannot pass a plan and silently get nothing.
90
+ * What a RUN did to each drawn step, keyed by node address. A typed parameter, never an evidence envelope; with no
91
+ * plan the expansion is the identity function.
330
92
  */
331
93
  readonly occurrences?: OccurrencePlan;
332
94
  /**
333
- * The overlay entries an occurrence expansion DERIVED — today, a `repeat` on each collapsed range so it draws `×N`.
334
- *
335
- * ⛔ Deliberately NOT part of `overlay.nodes`, and the separation is load-bearing. `overlay.nodes` naming any drawn
336
- * address makes the TYPED overlay authoritative for every node in the chart (see `RenderOverlay.nodes`), which
337
- * suppresses kind styling chart-wide and makes `accDescr` state a run reading for every node. Routing a derived
338
- * badge through it meant that collapsing ONE loop stripped the exception node's red border from an unrelated part of
339
- * the drawing and told a screen-reader user the run state of every node was unknown. A plan alone must never do that.
340
- *
341
- * Produced by `expandOccurrences`; the two flow adapters pass it through because they expand before calling here.
342
- * A caller's own `overlay.nodes` entry for the same address wins field by field.
95
+ * The overlay entries an occurrence expansion DERIVED (a `repeat` on each collapsed range). Kept apart from
96
+ * `overlay.nodes` because only a CALLER's `state` may make the run reading chart-wide; a caller's entry for the same
97
+ * address wins field by field.
343
98
  */
344
99
  readonly occurrenceOverlay?: Readonly<Record<string, RenderNodeOverlay>>;
345
- /**
346
- * The host's `maxTextSize`, in characters. Over it, the definition is REFUSED rather than returned.
347
- *
348
- * ⛔ Measured 2026-09-28 (`story89NodeCeiling.atdd.spec.ts`), and the reason this option exists at all: Mermaid's
349
- * `maxTextSize` default is 50 000 characters, and over it `mermaid.render()` **resolves successfully with an SVG
350
- * containing ONE node**. `mermaid.parse()` resolves too. So a host that validates with `parse` sees nothing wrong and
351
- * draws a diagram that is not the workflow — the failure is silent, and the generator is the only place it can be
352
- * caught, because by the time a host has the string the information that it was truncated is gone.
353
- *
354
- * Absent by default: a budget the caller did not state is not a budget the generator may invent, and every existing
355
- * surface keeps its bytes. `MERMAID_DEFAULT_MAX_TEXT_SIZE` is the value a host using Mermaid's own default passes.
356
- */
357
- readonly maxTextSize?: number;
358
100
  }
359
101
  /**
360
- * Mermaid's own `maxTextSize` default, measured against 12.0.0 rather than read from a changelog.
102
+ * The parse guards a host passes to `mermaid.initialize` for a generated flow.
361
103
  *
362
- * Exported as data because the number is the whole finding: 305 nodes (49 620 chars) of the measurement fixture draw
363
- * fully and 310 (50 445 chars) draw one node. The ceiling is therefore a CHARACTER budget and scales with label
364
- * length — a workflow with long step names hits it sooner, and Story 8.7's `accDescr`, which lists every node, spends
365
- * part of the same budget.
104
+ * Guards only: a compact definition of a 300-node flow is a small fraction of `maxTextSize`, and nothing here refuses
105
+ * to draw a normal flow. Mermaid's own defaults (50 000 characters, 500 edges) are what a host would otherwise trip
106
+ * over silently — over `maxTextSize` Mermaid draws a single error node.
366
107
  */
367
- export declare const MERMAID_DEFAULT_MAX_TEXT_SIZE = 50000;
368
- /** A definition's character cost against a budget. */
369
- export interface DefinitionBudget {
370
- readonly characters: number;
371
- readonly budget: number;
372
- readonly overBudget: boolean;
108
+ export declare const FLOW_MERMAID_LIMITS: {
109
+ readonly maxTextSize: 1000000;
110
+ readonly maxEdges: 5000;
111
+ };
112
+ /** A node of the compact graph. Everything a drawing needs, and nothing a step's payload holds. */
113
+ export interface CompactFlowNode {
114
+ /** Short, positional, unique within the graph: `n0`, `n1`, … */
115
+ readonly id: string;
116
+ readonly key?: string;
117
+ readonly name: string;
118
+ readonly type?: string;
119
+ /** Icon family hook (`ic-call-http`). */
120
+ readonly family: string;
121
+ readonly shape: NodeTreatment;
122
+ readonly state?: RunState;
123
+ readonly repeat?: number;
124
+ }
125
+ export interface CompactFlowEdge {
126
+ readonly from: string;
127
+ readonly to: string;
128
+ readonly label?: string;
129
+ readonly kind: FlowEdgeKind;
130
+ }
131
+ export interface CompactFlowGroup {
132
+ /** `g0`, `g1`, … */
133
+ readonly id: string;
134
+ /** Present only when the group is drawn as a subgraph. */
135
+ readonly title?: string;
136
+ readonly nodes: readonly string[];
137
+ }
138
+ /** The minimal drawable graph. */
139
+ export interface CompactFlowGraph {
140
+ /** Accessible chart title (workflow/stage titles). */
141
+ readonly title: string;
142
+ readonly groups: readonly CompactFlowGroup[];
143
+ readonly nodes: readonly CompactFlowNode[];
144
+ readonly edges: readonly CompactFlowEdge[];
145
+ /** Present exactly when nothing was drawn: what the single placeholder node says. */
146
+ readonly empty?: string;
147
+ }
148
+ /** The graph, plus the correspondences only the builder knows. */
149
+ export interface CompactFlow {
150
+ readonly graph: CompactFlowGraph;
151
+ /** Node address → compact id, for click maps and locations. */
152
+ readonly idOf: ReadonlyMap<string, string>;
153
+ /** The addresses of the collapsed-range nodes drawn, in drawing order — a range is not a step and not clickable. */
154
+ readonly collapsedRanges: readonly string[];
373
155
  }
374
156
  /**
375
- * What a definition costs, for a caller that wants to REPORT rather than to be refused.
157
+ * Escape authored text for a quoted Mermaid label.
376
158
  *
377
- * The same arithmetic `renderMermaid` applies to `maxTextSize`, exported so a host can warn, offer to raise its own
378
- * `maxTextSize`, or split a chart — all of which are better answers than an exception, and none of which the generator
379
- * can choose on a caller's behalf.
159
+ * Every authored byte is text: `<`, `>`, `&`, `"` become entities and a backtick cannot open Mermaid markdown, so the
160
+ * renderer-owned `<b>`/`<br>` are the only markup in a label.
380
161
  */
381
- export declare function measureDefinitionBudget(definition: string, budget?: number): DefinitionBudget;
162
+ export declare function escapeLabel(value: string): string;
163
+ /** The compact id of the node drawn at `index`: `n` and the index in base 36 (`n9`, `na`, `n10`), as short as stays readable. */
164
+ export declare const compactNodeId: (index: number) => string;
382
165
  /**
383
- * The refusal. Carries the numbers, because "too big" without them tells a host nothing it can act on.
166
+ * Build the compact graph.
384
167
  *
385
- * A throw and not a truncated string: the alternative the measurement documents — hand the host the oversized
386
- * definition and let Mermaid quietly draw one node — is the exact failure this exists to prevent, and a caller that
387
- * would rather warn than fail has `measureDefinitionBudget` and simply does not pass `maxTextSize`.
168
+ * The occurrence expansion runs first, so a run's repeated step is already a chain of drawn nodes; then every node
169
+ * gets a short id in first-appearance order and every edge whose ends were both drawn is kept once.
388
170
  */
389
- export declare class DefinitionOverBudgetError extends Error {
390
- readonly budgetReport: DefinitionBudget;
391
- constructor(budgetReport: DefinitionBudget);
392
- }
393
- /** A public label escaped as plain text; only structural anatomy can enable Mermaid markdown. */
394
- export declare function escapeLabel(value: string): string;
171
+ export declare function compactFlowGraph(authoredGroups: readonly RenderGroup[], authoredEdges: readonly RenderEdge[], opts?: RenderOptions): CompactFlow;
172
+ /** The class a run state draws with. */
173
+ export declare const runStateClassName: (state: RunState) => string;
395
174
  /**
396
- * The diagram.
175
+ * Mermaid text for ONE direction of a compact graph.
397
176
  *
398
- * Deterministic for a given `(groups, edges, opts)`: every list is emitted in the order given, duplicates are
399
- * collapsed by first appearance, and nothing consults the clock or the environment.
177
+ * Pure: a host that toggles direction calls this again with the same graph and the other direction.
178
+ */
179
+ export declare function compactFlowMermaid(graph: CompactFlowGraph, direction?: FlowDirection): string;
180
+ /**
181
+ * A stable fingerprint of a compact graph (53-bit, base 36).
400
182
  *
401
- * The font each host must pin (AD-32(a)): this generator emits no font. A host picks one font string and passes
402
- * it to mermaid as both `fontFamily` and `themeVariables.fontFamily` (mermaid copies the former into the latter
403
- * only when the latter is unset), and makes the canvas container's CSS `font-family` resolve to that same string,
404
- * so the boxes mermaid measures match the text the host paints. Write the string in CSS-canonical form (unquoted
405
- * family names) so the resolved CSS value is byte-equal to what mermaid received. Known hosts:
406
- * - dashboard-v2 flow canvas: `Inter, -apple-system, system-ui, sans-serif` (`typography.fontFamily.sans`), set
407
- * on both mermaid keys and on the render container.
408
- * - VS Code webview (`src/webview/flowDiagram.ts`): `var(--vscode-font-family)`, which is also the preview body
409
- * CSS (`previewHtml.ts`).
410
- * - Report page (`hexasync-template-report-render` `renderHtml.ts`): not pinned yet — it passes no font, so mermaid
411
- * uses its default while the body paints `-apple-system, Segoe UI, …`.
183
+ * A host compares it to skip re-posting an unchanged drawing, and a webview keys its rendered-SVG cache with it.
184
+ */
185
+ export declare function compactFlowHash(graph: CompactFlowGraph): string;
186
+ /**
187
+ * The compact graph as it travels to a page. Node ids are implicit by position (`n<i>`); every repeated value is an
188
+ * index into a table; nodes and edges are FLAT arrays with a fixed stride.
189
+ *
190
+ * - `s`: the string table (labels, kinds, titles, types, families, shapes, states, names).
191
+ * - `k`: node kinds — `[typeIndex | -1, familyIndex, shapeIndex]`, each distinct triple once.
192
+ * - `n`: stride 3 — `key | 0, name, kindIndex`. `name` is `0`/`1`/`2` for the key as is / in Title Case / in
193
+ * Sentence case (`READ_LEDGER` → `Read Ledger` / `Read ledger`), else `3 + stringIndex`.
194
+ * - `l`: edge kinds — `[labelIndex | -1, kindIndex]`, each distinct pair once.
195
+ * - `e`: stride 3 — `from, to, code`; `code` is `0` for an unlabelled `next` edge, else `1 + l` index.
196
+ * - `g`: `[titleIndex | -1, nodeCount]` per group, in order — a group's nodes are consecutive by construction.
197
+ * - `r`: run readings, only when a run was drawn — `[nodeIndex, stateIndex | -1, repeat?]`.
412
198
  */
413
- export declare function renderMermaid(authoredGroups: readonly RenderGroup[], authoredEdges: readonly RenderEdge[], opts?: RenderOptions): string;
199
+ export interface CompactFlowWire {
200
+ readonly t: string;
201
+ readonly s: readonly string[];
202
+ readonly k: readonly (readonly [number, number, number])[];
203
+ readonly n: readonly (string | number)[];
204
+ readonly l: readonly (readonly [number, number])[];
205
+ readonly e: readonly number[];
206
+ readonly g: readonly (readonly [number, number])[];
207
+ readonly r?: readonly (readonly number[])[];
208
+ readonly x?: string;
209
+ }
210
+ export declare function encodeCompactFlow(graph: CompactFlowGraph): CompactFlowWire;
211
+ /** The inverse of `encodeCompactFlow`: `decodeCompactFlow(encodeCompactFlow(g))` deep-equals `g`. */
212
+ export declare function decodeCompactFlow(wire: CompactFlowWire): CompactFlowGraph;
213
+ /** Parse the page's serialized wire form; `undefined` when it is not a compact flow. */
214
+ export declare function parseCompactFlow(text: string): CompactFlowGraph | undefined;
414
215
  /** The definition, plus what the expansion learned about it that a host cannot recover from a string. */
415
216
  export interface RenderedFlow {
416
217
  readonly definition: string;
417
- /**
418
- * The addresses of the collapsed-range nodes the definition drew, in drawing order.
419
- *
420
- * It has to LEAVE this function or it is not usable: a range is not a step, it has no YAML behind it, and
421
- * `MermaidDiagramViewer` stamps `role="button"` on everything in `clickableNodeIds` (FR75, UX-DR57). A host that had
422
- * to re-run the expansion to learn the set would be deriving the drawing twice and could disagree with itself.
423
- */
218
+ /** The addresses of the collapsed-range nodes the definition drew, in drawing order. */
424
219
  readonly collapsedRanges: readonly string[];
425
220
  }
221
+ /** The diagram, in one direction. */
222
+ export declare function renderMermaid(groups: readonly RenderGroup[], edges: readonly RenderEdge[], opts?: RenderOptions): string;
426
223
  /** `renderMermaid`, for a caller that also needs the occurrence facts the drawing carries. */
427
- export declare function renderMermaidWithOccurrences(authoredGroups: readonly RenderGroup[], authoredEdges: readonly RenderEdge[], opts?: RenderOptions): RenderedFlow;
224
+ export declare function renderMermaidWithOccurrences(groups: readonly RenderGroup[], edges: readonly RenderEdge[], opts?: RenderOptions): RenderedFlow;
428
225
  /**
429
- * A titled section with a fenced diagram, and nothing else (rule 3).
226
+ * A titled section with a fenced diagram, and nothing else.
430
227
  *
431
- * What the composition report embeds and what an MCP resource serves — the same string, because two surfaces
432
- * describing one flow disagreeing is the defect this epic exists to remove.
228
+ * What the composition report embeds and what an MCP resource serves — the same string.
433
229
  */
434
230
  export declare function renderMarkdown(title: string, groups: readonly RenderGroup[], edges: readonly RenderEdge[], opts?: RenderOptions): string;
435
231
  //# sourceMappingURL=flowRender.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flowRender.d.ts","sourceRoot":"","sources":["../src/flowRender.ts"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAML,KAAK,gBAAgB,EAGtB,MAAM,gBAAgB,CAAC;AAExB,yFAAyF;AACzF,MAAM,WAAW,UAAU;IACzB,wFAAwF;IACxF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,yBAAyB;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,gGAAgG;IAChG,QAAQ,CAAC,YAAY,CAAC,EAAE,gBAAgB,CAAC;IACzC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,mFAAmF;IACnF,QAAQ,CAAC,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;IAC9C,qGAAqG;IACrG,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,mGAAmG;IACnG,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,qCAAqC;IACrC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,+DAA+D;IAC/D,QAAQ,CAAC,QAAQ,CAAC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