@principal-ai/subsystems-react 0.51.4 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/index.d.ts +4 -4
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -2
  4. package/dist/index.js.map +1 -1
  5. package/dist/subsystem/C4Graph.d.ts +3 -7
  6. package/dist/subsystem/C4Graph.d.ts.map +1 -1
  7. package/dist/subsystem/C4Graph.js +193 -47
  8. package/dist/subsystem/C4Graph.js.map +1 -1
  9. package/dist/subsystem/C4NodeCard.d.ts +33 -27
  10. package/dist/subsystem/C4NodeCard.d.ts.map +1 -1
  11. package/dist/subsystem/C4NodeCard.js +89 -43
  12. package/dist/subsystem/C4NodeCard.js.map +1 -1
  13. package/dist/subsystem/IssueList.d.ts +1 -1
  14. package/dist/subsystem/IssueList.d.ts.map +1 -1
  15. package/dist/subsystem/IssueList.js +20 -1
  16. package/dist/subsystem/IssueList.js.map +1 -1
  17. package/dist/subsystem/SubsystemComponentGraph.d.ts.map +1 -1
  18. package/dist/subsystem/SubsystemComponentGraph.js +42 -19
  19. package/dist/subsystem/SubsystemComponentGraph.js.map +1 -1
  20. package/dist/subsystem/c4.d.ts +48 -49
  21. package/dist/subsystem/c4.d.ts.map +1 -1
  22. package/dist/subsystem/c4.js +50 -0
  23. package/dist/subsystem/c4.js.map +1 -1
  24. package/dist/subsystem/c4Evidence.d.ts +88 -84
  25. package/dist/subsystem/c4Evidence.d.ts.map +1 -1
  26. package/dist/subsystem/c4Evidence.js +113 -166
  27. package/dist/subsystem/c4Evidence.js.map +1 -1
  28. package/dist/subsystem/model.d.ts +35 -245
  29. package/dist/subsystem/model.d.ts.map +1 -1
  30. package/dist/subsystem/model.js +11 -29
  31. package/dist/subsystem/model.js.map +1 -1
  32. package/dist/subsystem/nodes.js +5 -5
  33. package/dist/subsystem/nodes.js.map +1 -1
  34. package/dist/subsystem/techIcons/index.d.ts +5 -0
  35. package/dist/subsystem/techIcons/index.d.ts.map +1 -1
  36. package/dist/subsystem/techIcons/index.js +3 -0
  37. package/dist/subsystem/techIcons/index.js.map +1 -1
  38. package/dist/utils/edgeLabel.d.ts +15 -1
  39. package/dist/utils/edgeLabel.d.ts.map +1 -1
  40. package/dist/utils/edgeLabel.js +25 -1
  41. package/dist/utils/edgeLabel.js.map +1 -1
  42. package/dist/utils/elkLayout.d.ts +47 -0
  43. package/dist/utils/elkLayout.d.ts.map +1 -1
  44. package/dist/utils/elkLayout.js +71 -7
  45. package/dist/utils/elkLayout.js.map +1 -1
  46. package/package.json +3 -3
  47. package/src/index.ts +8 -6
  48. package/src/stories/Subsystem/C4Graph/C4Component.stories.tsx +198 -0
  49. package/src/stories/Subsystem/C4Graph/C4Container.stories.tsx +42 -6
  50. package/src/stories/Subsystem/C4Graph/C4NodeGallery.stories.tsx +9 -7
  51. package/src/stories/Subsystem/ComponentGraph/Issues.stories.tsx +686 -2
  52. package/src/subsystem/C4Graph.tsx +278 -82
  53. package/src/subsystem/C4NodeCard.test.ts +32 -22
  54. package/src/subsystem/C4NodeCard.tsx +134 -69
  55. package/src/subsystem/IssueList.tsx +23 -0
  56. package/src/subsystem/SubsystemComponentGraph.tsx +38 -16
  57. package/src/subsystem/c4.protocolColor.test.ts +26 -0
  58. package/src/subsystem/c4.ts +76 -52
  59. package/src/subsystem/c4Evidence.test.ts +177 -237
  60. package/src/subsystem/c4Evidence.ts +160 -235
  61. package/src/subsystem/model.ts +62 -305
  62. package/src/subsystem/nodes.group.test.tsx +15 -0
  63. package/src/subsystem/nodes.tsx +7 -7
  64. package/src/subsystem/techIcons/index.tsx +8 -0
  65. package/src/utils/edgeLabel.test.ts +21 -2
  66. package/src/utils/edgeLabel.ts +29 -1
  67. package/src/utils/elkLayout.test.ts +16 -0
  68. package/src/utils/elkLayout.ts +119 -7
  69. package/src/stories/Subsystem/ComponentGraph/IssueOverlay.stories.tsx +0 -602
@@ -8,13 +8,13 @@
8
8
  * subgraphs, only cross-package edges leave the box, and shared seams
9
9
  * (registries/barrels/facades) are edge targets, never member nodes.
10
10
  *
11
- * Self-contained in this package (not yet promoted to `@principal-ai/core`), so
12
- * we can iterate on the UI + story without publishing a dependency.
11
+ * Document types come from `@principal-ai/subsystems-core` (the portable
12
+ * standard's home); react layers display concerns (edges, regions, layout)
13
+ * on top.
13
14
  */
14
15
  import { type Edge, type Node } from '@xyflow/react';
15
16
  import type { GraphifyComponentDetail } from '../graphify';
16
- import type { SubsystemConstructDeclaration, SubsystemComponentRemoval } from '@principal-ai/subsystems-core';
17
- import type { SubsystemDeclarationRef } from './declarationRef';
17
+ import type { SubsystemConstructDeclaration } from '@principal-ai/subsystems-core';
18
18
  /**
19
19
  * Structured declaration shape — the document's own contract, re-exported from
20
20
  * `@principal-ai/subsystems-core`.
@@ -40,7 +40,6 @@ export type { SubsystemConstructDeclaration } from '@principal-ai/subsystems-cor
40
40
  * union exists for code that also handles augmentation-derived declarations.
41
41
  */
42
42
  export type AnyComponentDetail = SubsystemConstructDeclaration | GraphifyComponentDetail;
43
- export type SubsystemDeclarationProvenance = 'verified' | 'authored';
44
43
  /** One declared parameter in an agent-extracted (augmented) signature. */
45
44
  export interface SubsystemSignatureParameter {
46
45
  /** Parameter name when the language declares one. */
@@ -60,48 +59,32 @@ export interface SubsystemSignatureClaim {
60
59
  parameters: SubsystemSignatureParameter[];
61
60
  returnType?: string;
62
61
  }
63
- export type SubsystemComponentConstruct = 'class' | 'function' | 'method' | 'interface' | 'type_alias' | 'enum' | 'store' | 'external' | 'custom_entity';
64
- /**
65
- * Semantic role — where the node sits in the topology, orthogonal to
66
- * `construct` (what it is). Roles have *inherited* anatomy: an entry renders
67
- * as its real code shape (function dispatcher, type contract); a service has
68
- * no source at all (`construct: 'external'` + purl identity). Contrast with
69
- * `construct: 'store'`, which introduces its own anatomy (the state block) —
70
- * that is why store is a construct and not a role. Role nodes must stay anchored to real code: an
71
- * `entry` is a boundary element (route dispatcher, message contract) carrying
72
- * the wire address as identity; a `service` is an external system the process
73
- * calls out to (identity via purl, no `process` — it belongs to no region).
74
- */
75
- export type SubsystemComponentRole = 'entry' | 'service';
76
- /**
77
- * Framework that owns a stereotype vocabulary (open string).
78
- * Examples: `react`, `vue`, `nestjs`, `django`, `spring`.
79
- * Empty when the node is language-only / framework-agnostic.
80
- */
81
- export type SubsystemFramework = string;
82
- /**
83
- * Framework-level pattern stamped on a language construct (open string).
84
- * Examples: `component`, `hook`, `middleware`, `controller`, `guard`.
85
- * Empty when no framework pattern applies. Pair with `framework` when set —
86
- * a React component stays `construct: 'function'` with
87
- * `framework: 'react'` + `stereotype: 'component'`.
88
- */
89
- export type SubsystemStereotype = string;
90
- export type SubsystemDeclTokenKind = 'keyword' | 'name' | 'member' | 'type' | 'punctuation' | 'string' | 'newline';
91
- export interface SubsystemDeclToken {
92
- text: string;
93
- kind: SubsystemDeclTokenKind;
94
- /** Shiki/Pierre foreground when tokenized client-side; omitted on legacy wire tokens. */
95
- color?: string;
96
- }
97
62
  /**
98
- * Trail step mechanism — runtime seams with a `file:line` site.
63
+ * Document vocabulary — imported from `@principal-ai/subsystems-core`, the
64
+ * portable standard's home. This package used to define a parallel copy
65
+ * ("self-contained until promoted"); core owns the types now, so react
66
+ * re-exports them by construction instead of hand-mirroring.
99
67
  */
100
- export type SubsystemTrailMechanism = 'calls' | 'uses' | 'feeds' | 'produces' | 'writes' | 'reads' | 'watches' | 'registers-into';
101
- /** Union for derived graph-edge styling — the trail step mechanism. */
102
- export type SubsystemEdgeMechanism = SubsystemTrailMechanism;
68
+ import type { SubsystemModelDocument, SubsystemTrail, SubsystemTrailStep, SubsystemComponentRole, SubsystemTrailMechanism, SubsystemEdgeMechanism, SubsystemConstruct as SubsystemComponentConstruct, SubsystemComponent as CoreSubsystemComponent } from '@principal-ai/subsystems-core';
69
+ export type { SubsystemModelDocument, SubsystemTrail, SubsystemTrailStep, SubsystemComponentRole, SubsystemFramework, SubsystemStereotype, SubsystemEntityKind, SubsystemTrailMechanism, SubsystemEdgeMechanism, SubsystemDeclToken, SubsystemDeclTokenKind, SubsystemDeclarationProvenance, } from '@principal-ai/subsystems-core';
70
+ export type { SubsystemComponentConstruct };
103
71
  /**
104
- * Which edge source the canvas draws. The two sources are disjoint; a view
72
+ * A component node — the named unit, construct-tagged; `file` is its location.
73
+ * Core's portable shape plus the one field a model document never carries:
74
+ * `signatureAugmentation` is host-enrichment (populated when serving an
75
+ * enriched graph), never persisted.
76
+ */
77
+ export interface SubsystemComponent extends CoreSubsystemComponent {
78
+ /**
79
+ * Accepted agent-extracted signature (from the graphify augmentation store)
80
+ * confirming this function/method when Graphify has no usable signature
81
+ * edges. Populated by the host when serving an enriched graph — never
82
+ * persisted in the model document. Rendered as the declaration when the
83
+ * component has no own `declaration`; no marker distinguishes the source.
84
+ */
85
+ signatureAugmentation?: SubsystemSignatureClaim;
86
+ }
87
+ /** Which edge source the canvas draws. The two sources are disjoint; a view
105
88
  * shows only edges (and their labels) from the selected source.
106
89
  * - `graphify`: only graphify-native static edges (`imports`, `contains`, …)
107
90
  * - `trails`: only trail step edges (`calls`, `feeds`, …)
@@ -146,154 +129,10 @@ export interface SubsystemGraphifyRelation {
146
129
  /** Reference context on `references` edges (e.g. `return_type`, `field`). */
147
130
  context?: string;
148
131
  }
149
- /** A component node — the named unit, construct-tagged; `file` is its location. */
150
- export interface SubsystemComponent {
151
- /**
152
- * Model-local stable alias, unique per model. Referenced by trail
153
- * `from` / `to`; edges point at the alias, not the location.
154
- * Code identity (for composed multi-model views) lives on
155
- * `purl` + `file` + `symbol`, not here.
156
- */
157
- alias: string;
158
- name: string;
159
- /**
160
- * The node's construct — what it IS as a declaration (class, function,
161
- * method, interface, type alias, enum, store, external), driving node
162
- * anatomy, color, badge, and the verification strategy. Every construct
163
- * anchors to a definition; runtime occurrences (variables, activations,
164
- * instances) are NOT constructs — they belong to a future execution-mode
165
- * graph whose occurrence nodes reference these definitions. Ontology:
166
- * construct = what it is, framework + stereotype = which framework pattern
167
- * it plays, role = where it sits, process = where it runs. Prefer
168
- * `framework` + `stereotype` over inventing framework-specific constructs
169
- * (a React component is still `construct: 'function'`).
170
- */
171
- construct: SubsystemComponentConstruct;
172
- /** Source location the component lives in (repo-root-relative path). */
173
- file: string;
174
- /** PURL identifying the repo or package this component lives in (for subgraph grouping). */
175
- purl: string;
176
- /**
177
- * App/repo logo shown on the declaration card in place of the GitHub owner
178
- * avatar (any image URL or data URI). Optional; typically one image stamped
179
- * across the components of a repo.
180
- */
181
- logo?: string;
182
- /** One-line purpose shown on the node. */
183
- purpose?: string;
184
- /**
185
- * Design / migration placeholder — participates in edges and flows but is
186
- * not a live source declaration yet. Verification skips source checks until
187
- * promoted (`proposed` cleared, `file` + `symbol` filled). Orthogonal to
188
- * `construct` (intended shape) and `role` (topology).
189
- */
190
- proposed?: boolean;
191
- /**
192
- * The claim was real but its source is gone upstream — deleted or renamed.
193
- * The inverse of `proposed`; verification skips source checks the same way.
194
- * Renders with a slate border and a `deprecated` badge that opens the removal
195
- * provenance. Transitional — a cleanup pass removes the node.
196
- */
197
- deprecated?: boolean;
198
- /** Which commit removed this claim's source, and why. Present when deprecated. */
199
- removedIn?: SubsystemComponentRemoval;
200
- /**
201
- * Semantic role — where the node sits in the topology (boundary element,
202
- * external system), orthogonal to `construct` (what it is). Drives the
203
- * glyph and the edge-pairing rules: boundary-crossing edges must terminate
204
- * at an entry or a service. Retained state is NOT a role — it is
205
- * `construct: 'store'` (state-block anatomy, `writes`/`reads`/`watches`
206
- * inbound, `produces` outbound).
207
- */
208
- role?: SubsystemComponentRole;
209
- /**
210
- * Framework that owns the stereotype vocabulary (e.g. `react`, `nestjs`).
211
- * Orthogonal to `construct` — leave empty for language-only units.
212
- */
213
- framework?: SubsystemFramework;
214
- /**
215
- * Framework pattern this declaration plays (e.g. `component`, `hook`).
216
- * When set, the node badge prefers this label over the construct name so
217
- * a React UI unit reads as "component" rather than "function".
218
- */
219
- stereotype?: SubsystemStereotype;
220
- /**
221
- * Open-string entity kind for `construct: 'custom_entity'` nodes — what the
222
- * actor/entity is (e.g. `Person`, `agent`, `queue`). Not code; there is no
223
- * graphify anchor. Contrast with `construct` (what the declaration is) and
224
- * `role` (where it sits topologically). Empty/unset for code constructs.
225
- */
226
- entityKind?: string;
227
- /**
228
- * Authored color override for the node border + badges, when the themed
229
- * construct color isn't wanted. Primarily for `construct: 'custom_entity'`
230
- * (an author picks a fitting hue for a Person/agent/queue) — but usable on
231
- * any construct. Any `#rrggbb` string; when set it wins over the
232
- * construct-derived color, mirrors in the declaration panel. Leave unset to
233
- * inherit the Pierre construct palette.
234
- */
235
- color?: string;
236
- /**
237
- * Runtime process membership — which deployment unit this node is a
238
- * member of (e.g. `principal-studio/host`, `principal-studio/renderer`). Nodes
239
- * sharing a `process` are drawn inside one boundary region; nodes without
240
- * one sit outside every process boundary (external actors, services,
241
- * libraries). Orthogonal to `module` (source-file frame).
242
- */
243
- process?: string;
244
- /**
245
- * Source-module membership — which file/module this export belongs to
246
- * (e.g. `src/session/transcript.ts`). Nodes sharing a `module` are drawn
247
- * inside one boundary frame. Prefer this over inventing a module construct:
248
- * each export keeps its real construct (`function` / `class` / …) and the
249
- * file reads as a frame. Orthogonal to `process` (runtime deployment).
250
- * When both are set, the module frame is the component's parent (finer
251
- * grain); process framing still groups siblings that share a process.
252
- */
253
- module?: string;
254
- /** A symbol this component exposes / is (the node's identity). */
255
- symbol?: string;
256
- /**
257
- * Semantic layer/phase for the layout (e.g. `1` = input, `2` = processing,
258
- * `3` = output). When set, ELK places the component in this layer so the
259
- * graph reads as a left-to-right pipeline and *conveys the idea* rather than
260
- * letting ELK guess the order.
261
- */
262
- layer?: number;
263
- /**
264
- * Structured declaration shape of the construct (params, members, type
265
- * buckets, …). Single source of truth for the click panel — authored by
266
- * agents/CLI or filled by verified graphify capture. Discriminated by kind.
267
- */
268
- declaration?: SubsystemConstructDeclaration;
269
- /**
270
- * @deprecated No longer used — verification now tracks at the model level
271
- * via `verifiedAtCommits`. Keeping the field temporarily for migration.
272
- */
273
- declarationProvenance?: SubsystemDeclarationProvenance;
274
- /**
275
- * Pre-tokenized declaration for the detail panel. When present, the
276
- * renderer skips client-side tokenization. Tokens are language-agnostic;
277
- * a different language just needs a different tokenizer and text joiner.
278
- */
279
- tokens?: SubsystemDeclToken[];
280
- /**
281
- * Accepted agent-extracted signature (from the graphify augmentation store)
282
- * confirming this function/method when Graphify has no usable signature
283
- * edges. Populated by the host when serving an enriched graph — never
284
- * persisted in the model document. Rendered as the declaration when the
285
- * component has no own `declaration`; no marker distinguishes the source.
286
- */
287
- signatureAugmentation?: SubsystemSignatureClaim;
288
- /**
289
- * Anchored declaration location: graphify start line + hash of that line's
290
- * content at capture time. Populated by verify when an exact anchor resolves.
291
- */
292
- declarationRef?: SubsystemDeclarationRef;
293
- }
294
132
  /**
295
133
  * Derived / display graph edge used by renderers. Built from trail steps
296
134
  * (and graphify-native relations) — not authored as its own document field.
135
+ * Richer than core's minimal edge: this is the canvas's drawing shape.
297
136
  */
298
137
  export interface SubsystemComponentEdge {
299
138
  id: string;
@@ -301,7 +140,7 @@ export interface SubsystemComponentEdge {
301
140
  to: string;
302
141
  /**
303
142
  * The edge verb. For `provenance: 'subsystem'` (the default) this is a
304
- * `SubsystemEdgeMechanism`; for `provenance: 'graphify'` it is the raw
143
+ * `SubsystemTrailMechanism`; for `provenance: 'graphify'` it is the raw
305
144
  * graphify relation. Typed as `string` because the display edge is a derived
306
145
  * structure and graphify's verb set is open — the trail vocabulary
307
146
  * (`SubsystemTrailMechanism`) stays closed.
@@ -322,57 +161,6 @@ export interface SubsystemComponentEdge {
322
161
  /** Reference context on `references` edges (e.g. `return_type`, `field`). */
323
162
  context?: string;
324
163
  }
325
- /**
326
- * A single runtime step — `from`/`to`/`mechanism` plus the exact `file:line`
327
- * where that seam fires for a trail.
328
- */
329
- export interface SubsystemTrailStep {
330
- from: string;
331
- to: string;
332
- mechanism: SubsystemTrailMechanism;
333
- /** Repo-root-relative path of the file where the seam fires. */
334
- file: string;
335
- /** 1-based line of the site within `file`. */
336
- line: number;
337
- /**
338
- * File-anchored purl of the seam site (e.g.
339
- * `pkg:github/owner/name#path/to/file.ts`), mirroring component `purl`.
340
- * Required: readers resolve the checkout from this instead of guessing
341
- * the repo from the step's endpoint components.
342
- */
343
- purl: string;
344
- /**
345
- * Frame name for this step — the function/method on the stack at the site.
346
- * Required; the Trails list shows this instead of a bare
347
- * mechanism + filename fallback.
348
- */
349
- symbol: string;
350
- /**
351
- * Planned seam — the step describes intended behavior through code that is
352
- * not written yet. Orthogonal to (and redundant with) the endpoints' own
353
- * `proposed` flags: a step is proposed when it says so OR either endpoint
354
- * is proposed. Verification skips source checks either way, and viewers
355
- * tint it exactly like a proposed node.
356
- */
357
- proposed?: boolean;
358
- /**
359
- * Free-text note anchored to this step's site line. Optional — informative
360
- * only, never verified against source; the Pierre trail code view
361
- * surfaces it in the annotation column next to the highlighted line.
362
- */
363
- annotation?: string;
364
- }
365
- /** An ordered runtime trail — one named behavior story. */
366
- export interface SubsystemTrail {
367
- id: string;
368
- title: string;
369
- steps: SubsystemTrailStep[];
370
- }
371
- export interface SubsystemModelDocument {
372
- components: SubsystemComponent[];
373
- /** Ordered runtime trails (one per named behavior). */
374
- trails?: SubsystemTrail[];
375
- }
376
164
  /** Stable id for a derived graph edge from a trail step. */
377
165
  export declare function derivedGraphEdgeId(from: string, to: string, mechanism: string): string;
378
166
  /** React Flow / canvas edge id for a trail step. */
@@ -521,12 +309,14 @@ export declare function boundaryGroupNodeId(region: Pick<SubsystemProcessRegion,
521
309
  export declare function componentPackageKey(c: Pick<SubsystemComponent, 'purl' | 'construct'>): string | undefined;
522
310
  /**
523
311
  * Derive process boundary regions — one per distinct non-empty `process`
524
- * value, in first-appearance order.
312
+ * value, in first-appearance order. Wraps core's rollup, adding the frame
313
+ * `kind` the canvas reads.
525
314
  */
526
315
  export declare function getSubsystemRegions(doc: Pick<SubsystemModelDocument, 'components'>): SubsystemProcessRegion[];
527
316
  /**
528
317
  * Derive module boundary regions — one per distinct non-empty `module`
529
318
  * value, in first-appearance order. Label is the module path (file).
319
+ * Wraps core's rollup, adding the frame `kind` the canvas reads.
530
320
  */
531
321
  export declare function getSubsystemModuleRegions(doc: Pick<SubsystemModelDocument, 'components'>): SubsystemProcessRegion[];
532
322
  /**
@@ -857,7 +647,7 @@ export declare function nodeMinWidthForBadges(component: {
857
647
  * package. The initial grid clusters by `module ?? process ?? purl`; ELK
858
648
  * then refines with compound layout.
859
649
  */
860
- export declare function convertSubsystemToNodes(doc: SubsystemModelDocument, opts?: {
650
+ export declare function convertSubsystemToNodes(doc: Pick<SubsystemModelDocument, 'components' | 'trails'>, opts?: {
861
651
  maxNodeWidth?: number;
862
652
  }): SubsystemGraphNode[];
863
653
  /**
@@ -871,7 +661,7 @@ export declare function convertSubsystemToGroups(doc: Pick<SubsystemModelDocumen
871
661
  * is an external label (not a component alias) point at a synthetic stub so the
872
662
  * relationship is visible without a member node.
873
663
  */
874
- export declare function convertSubsystemToEdges(doc: SubsystemModelDocument, graphifyRelations?: readonly SubsystemGraphifyRelation[]): SubsystemGraphEdge[];
664
+ export declare function convertSubsystemToEdges(doc: Pick<SubsystemModelDocument, 'components' | 'trails'>, graphifyRelations?: readonly SubsystemGraphifyRelation[]): SubsystemGraphEdge[];
875
665
  /** Stable key for layout-affecting graph fields (ignores declarationRef, etc.). */
876
666
  export declare function subsystemGraphLayoutKey(doc: Pick<SubsystemModelDocument, 'components' | 'trails'> & {
877
667
  graphifyRelations?: readonly SubsystemGraphifyRelation[];
@@ -881,7 +671,7 @@ export declare function subsystemGraphLayoutKey(doc: Pick<SubsystemModelDocument
881
671
  * position every node (including external stub targets), so the graph is
882
672
  * layered with minimized crossings.
883
673
  */
884
- export declare function buildSubsystemGraph(doc: SubsystemModelDocument, opts?: {
674
+ export declare function buildSubsystemGraph(doc: Pick<SubsystemModelDocument, 'components' | 'trails'>, opts?: {
885
675
  maxNodeWidth?: number;
886
676
  showEdgeLabels?: boolean;
887
677
  measuredWidths?: Map<string, number>;
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/subsystem/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAEL,KAAK,IAAI,EACT,KAAK,IAAI,EACV,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EACV,6BAA6B,EAC7B,yBAAyB,EAC1B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAGhE;;;;;;;;;;;;;;;GAeG;AACH,YAAY,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAEnF;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAC1B,6BAA6B,GAC7B,uBAAuB,CAAC;AAC5B,MAAM,MAAM,8BAA8B,GAAG,UAAU,GAAG,UAAU,CAAC;AAErE,0EAA0E;AAC1E,MAAM,WAAW,2BAA2B;IAC1C,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,2BAA2B,EAAE,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,2BAA2B,GACnC,OAAO,GACP,UAAU,GACV,QAAQ,GACR,WAAW,GACX,YAAY,GACZ,MAAM,GACN,OAAO,GACP,UAAU,GACV,eAAe,CAAC;AAEpB;;;;;;;;;;GAUG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,SAAS,CAAC;AAEzD;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC;;;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AE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrF,CAAC,CAsPD"}
@@ -8,13 +8,15 @@
8
8
  * subgraphs, only cross-package edges leave the box, and shared seams
9
9
  * (registries/barrels/facades) are edge targets, never member nodes.
10
10
  *
11
- * Self-contained in this package (not yet promoted to `@principal-ai/core`), so
12
- * we can iterate on the UI + story without publishing a dependency.
11
+ * Document types come from `@principal-ai/subsystems-core` (the portable
12
+ * standard's home); react layers display concerns (edges, regions, layout)
13
+ * on top.
13
14
  */
14
15
  import { MarkerType, } from '@xyflow/react';
15
16
  import { computeElkLayout, calculatePathLength } from '../utils/elkLayout';
16
17
  import { EDGE_LABEL_SIDE_PADDING, EDGE_ARROW_INSET } from '../utils/edgeLabel';
17
18
  import { purlOwnerName, purlRepoKey } from './paths';
19
+ import { getSubsystemProcessRegions as coreGetSubsystemProcessRegions, getSubsystemModuleRegions as coreGetSubsystemModuleRegions, } from '@principal-ai/subsystems-core';
18
20
  /** Stable id for a derived graph edge from a trail step. */
19
21
  export function derivedGraphEdgeId(from, to, mechanism) {
20
22
  return `${from}--${mechanism}-->${to}`;
@@ -311,44 +313,24 @@ function packageRegionLabel(packageKey) {
311
313
  }
312
314
  /**
313
315
  * Derive process boundary regions — one per distinct non-empty `process`
314
- * value, in first-appearance order.
316
+ * value, in first-appearance order. Wraps core's rollup, adding the frame
317
+ * `kind` the canvas reads.
315
318
  */
316
319
  export function getSubsystemRegions(doc) {
317
- const byProcess = new Map();
318
- for (const c of doc.components) {
319
- const p = c.process?.trim();
320
- if (!p)
321
- continue;
322
- const list = byProcess.get(p) ?? [];
323
- list.push(c.alias);
324
- byProcess.set(p, list);
325
- }
326
- return [...byProcess.entries()].map(([key, memberAliases]) => ({
320
+ return coreGetSubsystemProcessRegions(doc).map((r) => ({
321
+ ...r,
327
322
  kind: 'process',
328
- key,
329
- label: key,
330
- memberAliases,
331
323
  }));
332
324
  }
333
325
  /**
334
326
  * Derive module boundary regions — one per distinct non-empty `module`
335
327
  * value, in first-appearance order. Label is the module path (file).
328
+ * Wraps core's rollup, adding the frame `kind` the canvas reads.
336
329
  */
337
330
  export function getSubsystemModuleRegions(doc) {
338
- const byModule = new Map();
339
- for (const c of doc.components) {
340
- const m = c.module?.trim();
341
- if (!m)
342
- continue;
343
- const list = byModule.get(m) ?? [];
344
- list.push(c.alias);
345
- byModule.set(m, list);
346
- }
347
- return [...byModule.entries()].map(([key, memberAliases]) => ({
331
+ return coreGetSubsystemModuleRegions(doc).map((r) => ({
332
+ ...r,
348
333
  kind: 'module',
349
- key,
350
- label: key,
351
- memberAliases,
352
334
  }));
353
335
  }
354
336
  /**