@principal-ai/subsystems-react 0.25.0 → 0.26.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 (52) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/stories/Subsystem/ComponentGraph/aggregateFixture.d.ts +5 -0
  6. package/dist/stories/Subsystem/ComponentGraph/aggregateFixture.d.ts.map +1 -0
  7. package/dist/stories/Subsystem/ComponentGraph/aggregateFixture.js +4 -0
  8. package/dist/stories/Subsystem/ComponentGraph/aggregateFixture.js.map +1 -0
  9. package/dist/stories/Subsystem/ComponentGraph/aggregateViewFixture.d.ts +5 -0
  10. package/dist/stories/Subsystem/ComponentGraph/aggregateViewFixture.d.ts.map +1 -0
  11. package/dist/stories/Subsystem/ComponentGraph/aggregateViewFixture.js +4 -0
  12. package/dist/stories/Subsystem/ComponentGraph/aggregateViewFixture.js.map +1 -0
  13. package/dist/stories/Subsystem/ComponentGraph/composedFixture.d.ts +5 -0
  14. package/dist/stories/Subsystem/ComponentGraph/composedFixture.d.ts.map +1 -0
  15. package/dist/stories/Subsystem/ComponentGraph/composedFixture.js +4 -0
  16. package/dist/stories/Subsystem/ComponentGraph/composedFixture.js.map +1 -0
  17. package/dist/subsystem/SubsystemAggregateGraph.d.ts +70 -0
  18. package/dist/subsystem/SubsystemAggregateGraph.d.ts.map +1 -0
  19. package/dist/subsystem/SubsystemAggregateGraph.js +385 -0
  20. package/dist/subsystem/SubsystemAggregateGraph.js.map +1 -0
  21. package/dist/subsystem/model.d.ts +7 -0
  22. package/dist/subsystem/model.d.ts.map +1 -1
  23. package/dist/subsystem/model.js +65 -1
  24. package/dist/subsystem/model.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/index.ts +8 -0
  27. package/src/stories/Subsystem/ComponentDeclarationAudit.stories.tsx +13 -13
  28. package/src/stories/Subsystem/ComponentGraph/AggregateFrameGraph.stories.tsx +61 -0
  29. package/src/stories/Subsystem/ComponentGraph/AggregateGraph.stories.tsx +61 -0
  30. package/src/stories/Subsystem/ComponentGraph/Appearance.stories.tsx +17 -17
  31. package/src/stories/Subsystem/ComponentGraph/Basics.stories.tsx +2 -2
  32. package/src/stories/Subsystem/ComponentGraph/Captures.stories.tsx +3 -3
  33. package/src/stories/Subsystem/ComponentGraph/ComposedGraph.stories.tsx +73 -0
  34. package/src/stories/Subsystem/ComponentGraph/Constructs.stories.tsx +6 -6
  35. package/src/stories/Subsystem/ComponentGraph/CustomEntities.stories.tsx +8 -8
  36. package/src/stories/Subsystem/ComponentGraph/DetailPanel.stories.tsx +11 -11
  37. package/src/stories/Subsystem/ComponentGraph/Flows.stories.tsx +6 -6
  38. package/src/stories/Subsystem/ComponentGraph/FrameworkStereotype.stories.tsx +10 -10
  39. package/src/stories/Subsystem/ComponentGraph/ModuleBadges.stories.tsx +6 -6
  40. package/src/stories/Subsystem/ComponentGraph/Modules.stories.tsx +17 -17
  41. package/src/stories/Subsystem/ComponentGraph/NodeAnatomy.stories.tsx +16 -16
  42. package/src/stories/Subsystem/ComponentGraph/Packages.stories.tsx +12 -12
  43. package/src/stories/Subsystem/ComponentGraph/Processes.stories.tsx +1 -1
  44. package/src/stories/Subsystem/ComponentGraph/Proposed.stories.tsx +10 -10
  45. package/src/stories/Subsystem/ComponentGraph/Scenarios.stories.tsx +69 -69
  46. package/src/stories/Subsystem/ComponentGraph/Spotlights.stories.tsx +27 -27
  47. package/src/stories/Subsystem/ComponentGraph/aggregateFixture.ts +8 -0
  48. package/src/stories/Subsystem/ComponentGraph/aggregateViewFixture.ts +8 -0
  49. package/src/stories/Subsystem/ComponentGraph/composedFixture.ts +9 -0
  50. package/src/subsystem/SubsystemAggregateGraph.tsx +607 -0
  51. package/src/subsystem/model.test.ts +63 -0
  52. package/src/subsystem/model.ts +65 -1
@@ -37,7 +37,7 @@ const mermaidPurl = 'pkg:github/principal-ade/industry-themed-markdown';
37
37
 
38
38
  const mermaidComponents: SubsystemComponent[] = [
39
39
  {
40
- id: 'input',
40
+ alias: 'input',
41
41
  name: 'MarkdownContent',
42
42
  construct: 'type_alias',
43
43
  file: 'industryMarkdown/components/IndustryMarkdownSlide.tsx',
@@ -46,7 +46,7 @@ const mermaidComponents: SubsystemComponent[] = [
46
46
  symbol: 'MarkdownContent',
47
47
  },
48
48
  {
49
- id: 'slide',
49
+ alias: 'slide',
50
50
  name: 'IndustryMarkdownSlide',
51
51
  construct: 'class',
52
52
  file: 'industryMarkdown/components/IndustryMarkdownSlide.tsx',
@@ -55,7 +55,7 @@ const mermaidComponents: SubsystemComponent[] = [
55
55
  symbol: 'IndustryMarkdownSlide',
56
56
  },
57
57
  {
58
- id: 'chunk',
58
+ alias: 'chunk',
59
59
  name: 'MermaidChunk',
60
60
  construct: 'type_alias',
61
61
  file: 'industryMarkdown/types/customMarkdownChunks.ts',
@@ -64,7 +64,7 @@ const mermaidComponents: SubsystemComponent[] = [
64
64
  symbol: 'MermaidChunk',
65
65
  },
66
66
  {
67
- id: 'lazy',
67
+ alias: 'lazy',
68
68
  name: 'IndustryLazyMermaidDiagram',
69
69
  construct: 'class',
70
70
  file: 'industryMarkdown/components/IndustryLazyMermaidDiagram.tsx',
@@ -73,7 +73,7 @@ const mermaidComponents: SubsystemComponent[] = [
73
73
  symbol: 'IndustryLazyMermaidDiagram',
74
74
  },
75
75
  {
76
- id: 'diagram',
76
+ alias: 'diagram',
77
77
  name: 'IndustryMermaidDiagram',
78
78
  construct: 'class',
79
79
  file: 'industryMarkdown/components/IndustryMermaidDiagram.tsx',
@@ -82,7 +82,7 @@ const mermaidComponents: SubsystemComponent[] = [
82
82
  symbol: 'IndustryMermaidDiagram',
83
83
  },
84
84
  {
85
- id: 'helpers',
85
+ alias: 'helpers',
86
86
  name: 'beautifulMermaid',
87
87
  construct: 'function',
88
88
  file: 'industryMarkdown/utils/beautifulMermaid.ts',
@@ -175,7 +175,7 @@ const coreLibPurl2 = 'pkg:github/principal-ai/principal-view-core-library';
175
175
  const accessSurfaceComponents: SubsystemComponent[] = [
176
176
  // --- external actor: no process → outside every boundary region
177
177
  {
178
- id: 'agents',
178
+ alias: 'agents',
179
179
  name: 'agent clients',
180
180
  construct: 'external',
181
181
  file: '',
@@ -185,7 +185,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
185
185
  },
186
186
  // --- principal-studio/host process region
187
187
  {
188
- id: 'http-entry',
188
+ alias: 'http-entry',
189
189
  name: 'HTTP bridge :3045',
190
190
  construct: 'function',
191
191
  file: 'packages/subsystems-studio/src/bun/http-server.ts',
@@ -197,7 +197,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
197
197
  layer: 1,
198
198
  },
199
199
  {
200
- id: 'create',
200
+ alias: 'create',
201
201
  name: 'createSubsystemModel',
202
202
  construct: 'function',
203
203
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -208,7 +208,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
208
208
  layer: 2,
209
209
  },
210
210
  {
211
- id: 'update',
211
+ alias: 'update',
212
212
  name: 'updateSubsystemModel',
213
213
  construct: 'function',
214
214
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -219,7 +219,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
219
219
  layer: 2,
220
220
  },
221
221
  {
222
- id: 'delete',
222
+ alias: 'delete',
223
223
  name: 'deleteSubsystemModel',
224
224
  construct: 'function',
225
225
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -230,7 +230,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
230
230
  layer: 2,
231
231
  },
232
232
  {
233
- id: 'get',
233
+ alias: 'get',
234
234
  name: 'getSubsystemModel',
235
235
  construct: 'function',
236
236
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -241,7 +241,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
241
241
  layer: 2,
242
242
  },
243
243
  {
244
- id: 'watcher',
244
+ alias: 'watcher',
245
245
  name: 'startSubsystemModelDirWatcher',
246
246
  construct: 'function',
247
247
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -252,7 +252,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
252
252
  layer: 2,
253
253
  },
254
254
  {
255
- id: 'store',
255
+ alias: 'store',
256
256
  name: 'Graph Store',
257
257
  construct: 'store',
258
258
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -273,7 +273,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
273
273
  } satisfies GraphifyComponentDetail,
274
274
  },
275
275
  {
276
- id: 'broadcast',
276
+ alias: 'broadcast',
277
277
  name: 'broadcastSubsystemModelChanged',
278
278
  construct: 'function',
279
279
  file: 'packages/subsystems-studio/src/bun/index.ts',
@@ -284,7 +284,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
284
284
  layer: 4,
285
285
  },
286
286
  {
287
- id: 'ipc-entry',
287
+ alias: 'ipc-entry',
288
288
  name: 'StudioMessages',
289
289
  construct: 'interface',
290
290
  file: 'packages/subsystems-studio/src/shared/contract.ts',
@@ -296,7 +296,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
296
296
  layer: 4,
297
297
  },
298
298
  {
299
- id: 'avatars',
299
+ alias: 'avatars',
300
300
  name: 'resolveAuthorAvatars',
301
301
  construct: 'function',
302
302
  file: 'packages/subsystems-studio/src/bun/avatars.ts',
@@ -308,7 +308,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
308
308
  },
309
309
  // --- principal-studio/renderer process region
310
310
  {
311
- id: 'subs',
311
+ alias: 'subs',
312
312
  name: 'subsystemModelChangeSubscribers',
313
313
  construct: 'function',
314
314
  file: 'packages/subsystems-studio/src/mainview/rpc.ts',
@@ -319,7 +319,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
319
319
  layer: 5,
320
320
  },
321
321
  {
322
- id: 'open-view',
322
+ alias: 'open-view',
323
323
  name: 'SubsystemModelView',
324
324
  construct: 'function',
325
325
  file: 'packages/subsystems-studio/src/mainview/views/SubsystemModelView.tsx',
@@ -330,7 +330,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
330
330
  layer: 6,
331
331
  },
332
332
  {
333
- id: 'list-view',
333
+ alias: 'list-view',
334
334
  name: 'SubsystemModelsView',
335
335
  construct: 'function',
336
336
  file: 'packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx',
@@ -343,7 +343,7 @@ const accessSurfaceComponents: SubsystemComponent[] = [
343
343
  // --- external service: no process, identity via purl — the far side of an
344
344
  // outbound crossing
345
345
  {
346
- id: 'github',
346
+ alias: 'github',
347
347
  name: 'api.github.com',
348
348
  construct: 'external',
349
349
  file: '',
@@ -423,7 +423,7 @@ const storeFlavorPurl = 'pkg:github/principal-ai/agent-monitoring';
423
423
  const storeFlavorComponents: SubsystemComponent[] = [
424
424
  // --- flavor 1: module-state store
425
425
  {
426
- id: 'f1-create',
426
+ alias: 'f1-create',
427
427
  name: 'createSubsystemModel',
428
428
  construct: 'function',
429
429
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -434,7 +434,7 @@ const storeFlavorComponents: SubsystemComponent[] = [
434
434
  layer: 1,
435
435
  },
436
436
  {
437
- id: 'f1-get',
437
+ alias: 'f1-get',
438
438
  name: 'getSubsystemModel',
439
439
  construct: 'function',
440
440
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -445,7 +445,7 @@ const storeFlavorComponents: SubsystemComponent[] = [
445
445
  layer: 1,
446
446
  },
447
447
  {
448
- id: 'f1-store',
448
+ alias: 'f1-store',
449
449
  name: 'Graph Store',
450
450
  construct: 'store',
451
451
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -466,7 +466,7 @@ const storeFlavorComponents: SubsystemComponent[] = [
466
466
  // the class (verifiable declaration, methods = access mechanism) and
467
467
  // the state (construct: 'store', the db/state visualization)
468
468
  {
469
- id: 'f2-cache',
469
+ alias: 'f2-cache',
470
470
  name: 'SessionCache',
471
471
  construct: 'class',
472
472
  file: 'src/session/SessionCache.ts',
@@ -489,7 +489,7 @@ const storeFlavorComponents: SubsystemComponent[] = [
489
489
  } satisfies GraphifyComponentDetail,
490
490
  },
491
491
  {
492
- id: 'f2-store',
492
+ alias: 'f2-store',
493
493
  name: 'Session Cache State',
494
494
  construct: 'store',
495
495
  file: 'src/session/SessionCache.ts',
@@ -506,7 +506,7 @@ const storeFlavorComponents: SubsystemComponent[] = [
506
506
  },
507
507
  // --- flavor 3: external shared store
508
508
  {
509
- id: 'f3-accessor',
509
+ alias: 'f3-accessor',
510
510
  name: 'loadAppState',
511
511
  construct: 'function',
512
512
  file: 'packages/subsystems-studio/src/bun/app-state.ts',
@@ -517,7 +517,7 @@ const storeFlavorComponents: SubsystemComponent[] = [
517
517
  layer: 5,
518
518
  },
519
519
  {
520
- id: 'f3-store',
520
+ alias: 'f3-store',
521
521
  name: 'app-state.db',
522
522
  construct: 'store',
523
523
  file: '',
@@ -576,7 +576,7 @@ export const StoreFlavors: Story = {
576
576
  // ---------------------------------------------------------------------------
577
577
  const sharedStoreComponents: SubsystemComponent[] = [
578
578
  {
579
- id: 'ss-load',
579
+ alias: 'ss-load',
580
580
  name: 'loadSubsystemModel',
581
581
  construct: 'function',
582
582
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -587,7 +587,7 @@ const sharedStoreComponents: SubsystemComponent[] = [
587
587
  layer: 1,
588
588
  },
589
589
  {
590
- id: 'ss-save',
590
+ alias: 'ss-save',
591
591
  name: 'saveSubsystemModel',
592
592
  construct: 'function',
593
593
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -598,7 +598,7 @@ const sharedStoreComponents: SubsystemComponent[] = [
598
598
  layer: 1,
599
599
  },
600
600
  {
601
- id: 'ss-watch',
601
+ alias: 'ss-watch',
602
602
  name: 'startSubsystemModelDirWatcher',
603
603
  construct: 'function',
604
604
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -609,7 +609,7 @@ const sharedStoreComponents: SubsystemComponent[] = [
609
609
  layer: 1,
610
610
  },
611
611
  {
612
- id: 'ss-migrate',
612
+ alias: 'ss-migrate',
613
613
  name: 'migrateGraphIndex',
614
614
  construct: 'function',
615
615
  file: 'packages/principal-studio-cli/src/graph-index.ts',
@@ -620,7 +620,7 @@ const sharedStoreComponents: SubsystemComponent[] = [
620
620
  layer: 1,
621
621
  },
622
622
  {
623
- id: 'ss-store',
623
+ alias: 'ss-store',
624
624
  name: '~/.principal/subsystem-models',
625
625
  construct: 'store',
626
626
  file: '',
@@ -690,7 +690,7 @@ const spectrumPurl = 'pkg:github/principal-ai/principal-view-core-library';
690
690
  const storeSpectrumComponents: SubsystemComponent[] = [
691
691
  // --- 1. persistent store — strongest store-ness
692
692
  {
693
- id: 'db',
693
+ alias: 'db',
694
694
  name: 'app-state.db',
695
695
  construct: 'store',
696
696
  file: '',
@@ -708,7 +708,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
708
708
  } satisfies GraphifyComponentDetail,
709
709
  },
710
710
  {
711
- id: 'load',
711
+ alias: 'load',
712
712
  name: 'loadAppState',
713
713
  construct: 'function',
714
714
  file: 'packages/subsystems-studio/src/bun/app-state.ts',
@@ -719,7 +719,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
719
719
  },
720
720
  // --- 2. file-backed module store
721
721
  {
722
- id: 'graph-store',
722
+ alias: 'graph-store',
723
723
  name: 'Graph Store',
724
724
  construct: 'store',
725
725
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -739,7 +739,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
739
739
  } satisfies GraphifyComponentDetail,
740
740
  },
741
741
  {
742
- id: 'create',
742
+ alias: 'create',
743
743
  name: 'createSubsystemModel',
744
744
  construct: 'function',
745
745
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -750,7 +750,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
750
750
  },
751
751
  // --- 3. class-managed retained data — manager class + separate store node
752
752
  {
753
- id: 'cache',
753
+ alias: 'cache',
754
754
  name: 'SessionCache',
755
755
  construct: 'class',
756
756
  file: 'src/session/SessionCache.ts',
@@ -778,7 +778,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
778
778
  } satisfies GraphifyComponentDetail,
779
779
  },
780
780
  {
781
- id: 'cache-state',
781
+ alias: 'cache-state',
782
782
  name: 'Session Cache State',
783
783
  construct: 'store',
784
784
  file: 'src/session/SessionCache.ts',
@@ -797,7 +797,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
797
797
  },
798
798
  // --- 4. module in-memory data collection — no interface, no persistence
799
799
  {
800
- id: 'metrics',
800
+ alias: 'metrics',
801
801
  name: 'Audit Metrics Buffer',
802
802
  construct: 'store',
803
803
  file: 'packages/subsystems-studio/src/bun/audit-metrics.ts',
@@ -815,7 +815,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
815
815
  } satisfies GraphifyComponentDetail,
816
816
  },
817
817
  {
818
- id: 'record',
818
+ alias: 'record',
819
819
  name: 'recordAuditResult',
820
820
  construct: 'function',
821
821
  file: 'packages/subsystems-studio/src/bun/audit-metrics.ts',
@@ -826,7 +826,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
826
826
  },
827
827
  // --- 5. module singleton values
828
828
  {
829
- id: 'config',
829
+ alias: 'config',
830
830
  name: 'Studio Config',
831
831
  construct: 'store',
832
832
  file: 'packages/subsystems-studio/src/bun/config.ts',
@@ -843,7 +843,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
843
843
  } satisfies GraphifyComponentDetail,
844
844
  },
845
845
  {
846
- id: 'conf',
846
+ alias: 'conf',
847
847
  name: 'readStudioConfig',
848
848
  construct: 'function',
849
849
  file: 'packages/subsystems-studio/src/bun/config.ts',
@@ -854,7 +854,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
854
854
  },
855
855
  // --- 6. lone scalar module binding
856
856
  {
857
- id: 'selected',
857
+ alias: 'selected',
858
858
  name: 'Selected Graph Id',
859
859
  construct: 'store',
860
860
  file: 'packages/subsystems-studio/src/mainview/rpc.ts',
@@ -868,7 +868,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
868
868
  } satisfies GraphifyComponentDetail,
869
869
  },
870
870
  {
871
- id: 'sel',
871
+ alias: 'sel',
872
872
  name: 'chooseGraph',
873
873
  construct: 'function',
874
874
  file: 'packages/subsystems-studio/src/mainview/rpc.ts',
@@ -879,7 +879,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
879
879
  },
880
880
  // --- 7. behavior bag — least store-like (the disputed rpc.ts case)
881
881
  {
882
- id: 'subs',
882
+ alias: 'subs',
883
883
  name: 'Proposals Subscribers',
884
884
  construct: 'store',
885
885
  file: 'packages/subsystems-studio/src/mainview/rpc.ts',
@@ -898,7 +898,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
898
898
  } satisfies GraphifyComponentDetail,
899
899
  },
900
900
  {
901
- id: 'dispatch',
901
+ alias: 'dispatch',
902
902
  name: 'subsystemModelProposalsChanged',
903
903
  construct: 'function',
904
904
  file: 'packages/subsystems-studio/src/mainview/rpc.ts',
@@ -908,7 +908,7 @@ const storeSpectrumComponents: SubsystemComponent[] = [
908
908
  layer: 11,
909
909
  },
910
910
  {
911
- id: 'view',
911
+ alias: 'view',
912
912
  name: 'SubsystemModelsView',
913
913
  construct: 'function',
914
914
  file: 'packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx',
@@ -964,7 +964,7 @@ const typePurl = 'pkg:github/principal-ai/subsystem-modeling';
964
964
  const typeSpectrumComponents: SubsystemComponent[] = [
965
965
  // --- 1. generic callable — the StudioMessageSubscriber refactor case
966
966
  {
967
- id: 'subscriber',
967
+ alias: 'subscriber',
968
968
  name: 'StudioMessageSubscriber',
969
969
  construct: 'type_alias',
970
970
  file: 'packages/subsystems-studio/src/mainview/rpc.ts',
@@ -983,7 +983,7 @@ const typeSpectrumComponents: SubsystemComponent[] = [
983
983
  } satisfies GraphifyComponentDetail,
984
984
  },
985
985
  {
986
- id: 'listener',
986
+ alias: 'listener',
987
987
  name: 'registerProposalListener',
988
988
  construct: 'function',
989
989
  file: 'packages/subsystems-studio/src/mainview/rpc.ts',
@@ -994,7 +994,7 @@ const typeSpectrumComponents: SubsystemComponent[] = [
994
994
  },
995
995
  // --- 2. interface — object shape, the path that worked before
996
996
  {
997
- id: 'messages',
997
+ alias: 'messages',
998
998
  name: 'StudioMessages',
999
999
  construct: 'interface',
1000
1000
  file: 'packages/subsystems-studio/src/shared/contract.ts',
@@ -1015,7 +1015,7 @@ const typeSpectrumComponents: SubsystemComponent[] = [
1015
1015
  },
1016
1016
  // --- 3. enum — named members
1017
1017
  {
1018
- id: 'kind',
1018
+ alias: 'kind',
1019
1019
  name: 'MaintainRunKind',
1020
1020
  construct: 'enum',
1021
1021
  file: 'packages/subsystems-studio/src/mainview/rpc.ts',
@@ -1034,7 +1034,7 @@ const typeSpectrumComponents: SubsystemComponent[] = [
1034
1034
  },
1035
1035
  // --- 4. union — alternatives
1036
1036
  {
1037
- id: 'state',
1037
+ alias: 'state',
1038
1038
  name: 'UIState',
1039
1039
  construct: 'type_alias',
1040
1040
  file: 'packages/subsystems-studio/src/mainview/rpc.ts',
@@ -1049,7 +1049,7 @@ const typeSpectrumComponents: SubsystemComponent[] = [
1049
1049
  },
1050
1050
  // --- 5. plain reference alias
1051
1051
  {
1052
- id: 'rows',
1052
+ alias: 'rows',
1053
1053
  name: 'SessionRows',
1054
1054
  construct: 'type_alias',
1055
1055
  file: 'packages/subsystems-studio/src/bun/server-sessions.ts',
@@ -1064,7 +1064,7 @@ const typeSpectrumComponents: SubsystemComponent[] = [
1064
1064
  },
1065
1065
  // --- 6. does-not-fit → raw rhs escape hatch
1066
1066
  {
1067
- id: 'deep',
1067
+ alias: 'deep',
1068
1068
  name: 'DeepPartial',
1069
1069
  construct: 'type_alias',
1070
1070
  file: 'packages/subsystems-studio/src/mainview/types.ts',
@@ -1080,7 +1080,7 @@ const typeSpectrumComponents: SubsystemComponent[] = [
1080
1080
  } satisfies GraphifyComponentDetail,
1081
1081
  },
1082
1082
  {
1083
- id: 'api',
1083
+ alias: 'api',
1084
1084
  name: 'ApiRoute',
1085
1085
  construct: 'type_alias',
1086
1086
  file: 'packages/subsystems-studio/src/bun/http-server.ts',
@@ -1095,7 +1095,7 @@ const typeSpectrumComponents: SubsystemComponent[] = [
1095
1095
  },
1096
1096
  // --- 7. the reference target the aliasOf/raw types point at
1097
1097
  {
1098
- id: 'record',
1098
+ alias: 'record',
1099
1099
  name: 'ServerSessionRow',
1100
1100
  construct: 'interface',
1101
1101
  file: 'packages/subsystems-studio/src/shared/contract.ts',
@@ -1154,7 +1154,7 @@ export const TypeFamilySpectrum: Story = {
1154
1154
  // ---------------------------------------------------------------------------
1155
1155
  const queueComponents: SubsystemComponent[] = [
1156
1156
  {
1157
- id: 'q-producer',
1157
+ alias: 'q-producer',
1158
1158
  name: 'enqueueAnalysisJob',
1159
1159
  construct: 'function',
1160
1160
  file: 'packages/subsystems-studio/src/bun/analysis-queue.ts',
@@ -1165,7 +1165,7 @@ const queueComponents: SubsystemComponent[] = [
1165
1165
  layer: 1,
1166
1166
  },
1167
1167
  {
1168
- id: 'q-queue',
1168
+ alias: 'q-queue',
1169
1169
  name: 'Analysis Queue',
1170
1170
  construct: 'store',
1171
1171
  file: 'packages/subsystems-studio/src/bun/analysis-queue.ts',
@@ -1183,7 +1183,7 @@ const queueComponents: SubsystemComponent[] = [
1183
1183
  } satisfies GraphifyComponentDetail,
1184
1184
  },
1185
1185
  {
1186
- id: 'q-worker',
1186
+ alias: 'q-worker',
1187
1187
  name: 'Bun.Worker',
1188
1188
  construct: 'function',
1189
1189
  file: 'packages/subsystems-studio/src/bun/analysis-worker.ts',
@@ -1194,7 +1194,7 @@ const queueComponents: SubsystemComponent[] = [
1194
1194
  layer: 3,
1195
1195
  },
1196
1196
  {
1197
- id: 'q-results',
1197
+ alias: 'q-results',
1198
1198
  name: 'Analysis Results',
1199
1199
  construct: 'store',
1200
1200
  file: 'packages/subsystems-studio/src/bun/analysis-store.ts',
@@ -1249,7 +1249,7 @@ export const QueueAsStore: Story = {
1249
1249
  const dataVizDoc: SubsystemModelDocument = {
1250
1250
  components: [
1251
1251
  {
1252
- id: 'agents',
1252
+ alias: 'agents',
1253
1253
  name: 'agent clients',
1254
1254
  construct: 'external',
1255
1255
  file: '',
@@ -1258,7 +1258,7 @@ const dataVizDoc: SubsystemModelDocument = {
1258
1258
  layer: 0,
1259
1259
  },
1260
1260
  {
1261
- id: 'http-entry',
1261
+ alias: 'http-entry',
1262
1262
  name: 'HTTP bridge :3045',
1263
1263
  construct: 'function',
1264
1264
  file: 'packages/subsystems-studio/src/bun/http-server.ts',
@@ -1270,7 +1270,7 @@ const dataVizDoc: SubsystemModelDocument = {
1270
1270
  layer: 1,
1271
1271
  },
1272
1272
  {
1273
- id: 'create',
1273
+ alias: 'create',
1274
1274
  name: 'createSubsystemModel',
1275
1275
  construct: 'function',
1276
1276
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -1281,7 +1281,7 @@ const dataVizDoc: SubsystemModelDocument = {
1281
1281
  layer: 2,
1282
1282
  },
1283
1283
  {
1284
- id: 'store',
1284
+ alias: 'store',
1285
1285
  name: 'Graph Store',
1286
1286
  construct: 'store',
1287
1287
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -1298,7 +1298,7 @@ const dataVizDoc: SubsystemModelDocument = {
1298
1298
  },
1299
1299
  },
1300
1300
  {
1301
- id: 'get',
1301
+ alias: 'get',
1302
1302
  name: 'getSubsystemModel',
1303
1303
  construct: 'function',
1304
1304
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -1309,7 +1309,7 @@ const dataVizDoc: SubsystemModelDocument = {
1309
1309
  layer: 2,
1310
1310
  },
1311
1311
  {
1312
- id: 'broadcast',
1312
+ alias: 'broadcast',
1313
1313
  name: 'broadcastSubsystemModelChanged',
1314
1314
  construct: 'function',
1315
1315
  file: 'packages/subsystems-studio/src/bun/index.ts',
@@ -1320,7 +1320,7 @@ const dataVizDoc: SubsystemModelDocument = {
1320
1320
  layer: 4,
1321
1321
  },
1322
1322
  {
1323
- id: 'cache',
1323
+ alias: 'cache',
1324
1324
  name: 'SessionCache',
1325
1325
  construct: 'class',
1326
1326
  file: 'src/session/SessionCache.ts',
@@ -1330,7 +1330,7 @@ const dataVizDoc: SubsystemModelDocument = {
1330
1330
  layer: 5,
1331
1331
  },
1332
1332
  {
1333
- id: 'cache-state',
1333
+ alias: 'cache-state',
1334
1334
  name: 'Session Cache State',
1335
1335
  construct: 'store',
1336
1336
  file: 'src/session/SessionCache.ts',