@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
@@ -78,7 +78,7 @@ function PlaygroundDemo({ leftCount, rightCount, showEdgeLabels }: { leftCount:
78
78
 
79
79
  for (let i = 0; i < leftCount; i++) {
80
80
  comps.push({
81
- id: `l${i}`,
81
+ alias: `l${i}`,
82
82
  name: `Left${i}`,
83
83
  construct: 'class',
84
84
  file: `left${i}.ts`,
@@ -88,7 +88,7 @@ function PlaygroundDemo({ leftCount, rightCount, showEdgeLabels }: { leftCount:
88
88
  }
89
89
  for (let i = 0; i < rightCount; i++) {
90
90
  comps.push({
91
- id: `r${i}`,
91
+ alias: `r${i}`,
92
92
  name: `Right${i}`,
93
93
  construct: 'class',
94
94
  file: `right${i}.ts`,
@@ -163,7 +163,7 @@ export const ResolvedPostGraphify: Story = {
163
163
  // ---------------------------------------------------------------------------
164
164
  const investigationComponents: SubsystemComponent[] = [
165
165
  {
166
- id: 'adapter',
166
+ alias: 'adapter',
167
167
  name: 'OpenCodeAdapter',
168
168
  construct: 'function',
169
169
  file: 'apps/server/src/provider/Layers/OpenCodeAdapter.ts',
@@ -172,7 +172,7 @@ const investigationComponents: SubsystemComponent[] = [
172
172
  symbol: 'makeOpenCodeAdapter',
173
173
  },
174
174
  {
175
- id: 'ingestion',
175
+ alias: 'ingestion',
176
176
  name: 'ProviderRuntimeIngestion',
177
177
  construct: 'function',
178
178
  file: 'apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts',
@@ -181,7 +181,7 @@ const investigationComponents: SubsystemComponent[] = [
181
181
  symbol: 'ProviderRuntimeIngestion',
182
182
  },
183
183
  {
184
- id: 'contracts',
184
+ alias: 'contracts',
185
185
  name: 'orchestration',
186
186
  construct: 'function',
187
187
  file: 'packages/contracts/src/orchestration.ts',
@@ -0,0 +1,73 @@
1
+ import React, { useRef, useState } from 'react';
2
+ import '@xyflow/react/dist/style.css';
3
+ import type { Meta, StoryObj } from '@storybook/react';
4
+ import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
5
+ import { SubsystemComponentGraph } from '../../../subsystem/SubsystemComponentGraph';
6
+ import {
7
+ composedComponents,
8
+ composedRelations,
9
+ composedWalkthroughs,
10
+ } from './composedFixture';
11
+
12
+ const meta = {
13
+ title: 'Subsystem/ComponentGraph/ComposedGraph',
14
+ component: SubsystemComponentGraph,
15
+ parameters: {
16
+ layout: 'fullscreen',
17
+ },
18
+ tags: ['autodocs'],
19
+ decorators: [
20
+ (Story) => (
21
+ <ThemeProvider theme={defaultEditorTheme}>
22
+ <Story />
23
+ </ThemeProvider>
24
+ ),
25
+ ],
26
+ } satisfies Meta<typeof SubsystemComponentGraph>;
27
+
28
+ export default meta;
29
+ type Story = StoryObj<typeof meta>;
30
+
31
+ // ---------------------------------------------------------------------------
32
+ // Composed repo graph: 165 nodes merged from live store models. Repro case
33
+ // for the silent child-death seen in Studio — hover nodes and watch the
34
+ // render counter: a hover storm (enter/leave oscillation) shows up as the
35
+ // counter spinning without settling.
36
+ // ---------------------------------------------------------------------------
37
+
38
+ function ComposedDemo() {
39
+ const renders = useRef(0);
40
+ renders.current += 1;
41
+ const [selected, setSelected] = useState<string | null>(null);
42
+ const [, forceTick] = useState(0);
43
+ // Re-render once a second so the counter visibly settles when idle.
44
+ // NOTE: this counts demo renders only. For hover storms inside the graph,
45
+ // use React DevTools Profiler (record 10s of hovering, check commit count)
46
+ // and watch the console for '[subsystem-graph]' layout warnings.
47
+ React.useEffect(() => {
48
+ const t = setInterval(() => forceTick((n) => n + 1), 1000);
49
+ return () => clearInterval(t);
50
+ }, []);
51
+ return (
52
+ <div style={{ width: '100%', height: '100vh', display: 'flex', flexDirection: 'column' }}>
53
+ <div style={{ flex: 1, minHeight: 0, position: 'relative' }}>
54
+ <SubsystemComponentGraph
55
+ components={composedComponents}
56
+ relations={composedRelations}
57
+ walkthroughs={composedWalkthroughs}
58
+ title="Composed: pkg:github/principal-ai/subsystem-modeling"
59
+ onSelect={(alias) => setSelected(alias)}
60
+ />
61
+ </div>
62
+ <div style={{ padding: '4px 12px', fontFamily: 'monospace', fontSize: 12, color: '#aaa', borderTop: '1px solid #333', display: 'flex', gap: 24 }}>
63
+ <span>renders: {renders.current}</span>
64
+ <span>selected: {selected ?? '(none)'}</span>
65
+ <span>nodes: {composedComponents.length} relations: {composedRelations.length} walks: {composedWalkthroughs.length}</span>
66
+ </div>
67
+ </div>
68
+ );
69
+ }
70
+
71
+ export const Composed: Story = {
72
+ render: () => <ComposedDemo />,
73
+ };
@@ -32,7 +32,7 @@ const PURL = 'pkg:github/you/notes-intake';
32
32
  /** One construct of each core kind, no relations — the catalog view. */
33
33
  const constructsOnly: SubsystemComponent[] = [
34
34
  {
35
- id: 'submit-note',
35
+ alias: 'submit-note',
36
36
  name: 'submitNote',
37
37
  construct: 'function',
38
38
  symbol: 'submitNote',
@@ -58,7 +58,7 @@ const constructsOnly: SubsystemComponent[] = [
58
58
  } satisfies GraphifyComponentDetail,
59
59
  },
60
60
  {
61
- id: 'note-service',
61
+ alias: 'note-service',
62
62
  name: 'NoteService',
63
63
  construct: 'class',
64
64
  symbol: 'NoteService',
@@ -86,7 +86,7 @@ const constructsOnly: SubsystemComponent[] = [
86
86
  } satisfies GraphifyComponentDetail,
87
87
  },
88
88
  {
89
- id: 'note-service-persist',
89
+ alias: 'note-service-persist',
90
90
  name: 'persist',
91
91
  construct: 'method',
92
92
  symbol: 'NoteService.persist',
@@ -108,7 +108,7 @@ const constructsOnly: SubsystemComponent[] = [
108
108
  } satisfies GraphifyComponentDetail,
109
109
  },
110
110
  {
111
- id: 'note-repository',
111
+ alias: 'note-repository',
112
112
  name: 'NoteRepository',
113
113
  construct: 'interface',
114
114
  symbol: 'NoteRepository',
@@ -131,7 +131,7 @@ const constructsOnly: SubsystemComponent[] = [
131
131
  } satisfies GraphifyComponentDetail,
132
132
  },
133
133
  {
134
- id: 'note-id',
134
+ alias: 'note-id',
135
135
  name: 'NoteId',
136
136
  construct: 'type_alias',
137
137
  symbol: 'NoteId',
@@ -150,7 +150,7 @@ const constructsOnly: SubsystemComponent[] = [
150
150
  } satisfies GraphifyComponentDetail,
151
151
  },
152
152
  {
153
- id: 'note-kind',
153
+ alias: 'note-kind',
154
154
  name: 'NoteKind',
155
155
  construct: 'enum',
156
156
  symbol: 'NoteKind',
@@ -25,7 +25,7 @@ function entityDetail(attributes: Array<[string, string]>): GraphifyCustomEntity
25
25
 
26
26
  const components: SubsystemComponent[] = [
27
27
  {
28
- id: 'wr',
28
+ alias: 'wr',
29
29
  name: 'WorkRequester',
30
30
  construct: 'custom_entity',
31
31
  entityKind: 'Person',
@@ -39,7 +39,7 @@ const components: SubsystemComponent[] = [
39
39
  ]),
40
40
  },
41
41
  {
42
- id: 'tech',
42
+ alias: 'tech',
43
43
  name: 'FacilitiesTechnician',
44
44
  construct: 'custom_entity',
45
45
  entityKind: 'Person',
@@ -54,7 +54,7 @@ const components: SubsystemComponent[] = [
54
54
  ]),
55
55
  },
56
56
  {
57
- id: 'sup',
57
+ alias: 'sup',
58
58
  name: 'ShiftSupervisor',
59
59
  construct: 'custom_entity',
60
60
  entityKind: 'Person',
@@ -69,7 +69,7 @@ const components: SubsystemComponent[] = [
69
69
  ]),
70
70
  },
71
71
  {
72
- id: 'mgr',
72
+ alias: 'mgr',
73
73
  name: 'CampusOpsManager',
74
74
  construct: 'custom_entity',
75
75
  entityKind: 'Person',
@@ -84,7 +84,7 @@ const components: SubsystemComponent[] = [
84
84
  ]),
85
85
  },
86
86
  {
87
- id: 'vp',
87
+ alias: 'vp',
88
88
  name: 'VPOperations',
89
89
  construct: 'custom_entity',
90
90
  entityKind: 'Person',
@@ -99,7 +99,7 @@ const components: SubsystemComponent[] = [
99
99
  ]),
100
100
  },
101
101
  {
102
- id: 'agent',
102
+ alias: 'agent',
103
103
  name: 'OpsInsightAgent',
104
104
  construct: 'custom_entity',
105
105
  entityKind: 'agent',
@@ -115,7 +115,7 @@ const components: SubsystemComponent[] = [
115
115
  ]),
116
116
  },
117
117
  {
118
- id: 'queue',
118
+ alias: 'queue',
119
119
  name: 'NudgeQueue',
120
120
  construct: 'custom_entity',
121
121
  entityKind: 'queue',
@@ -131,7 +131,7 @@ const components: SubsystemComponent[] = [
131
131
  ]),
132
132
  },
133
133
  {
134
- id: 'store',
134
+ alias: 'store',
135
135
  name: 'WorkRequestStore',
136
136
  construct: 'store',
137
137
  file: 'src/ops/workRequests.ts',
@@ -35,7 +35,7 @@ type Story = StoryObj<typeof meta>;
35
35
  // ---------------------------------------------------------------------------
36
36
  const detailKindComponents: SubsystemComponent[] = [
37
37
  {
38
- id: 'detail-class',
38
+ alias: 'detail-class',
39
39
  name: 'SessionReader',
40
40
  construct: 'class',
41
41
  file: 'src/session/SessionReader.ts',
@@ -45,7 +45,7 @@ const detailKindComponents: SubsystemComponent[] = [
45
45
  declaration: readerDetail,
46
46
  },
47
47
  {
48
- id: 'detail-method',
48
+ alias: 'detail-method',
49
49
  name: 'normalize',
50
50
  construct: 'function',
51
51
  file: 'src/session/SessionReader.ts',
@@ -61,7 +61,7 @@ const detailKindComponents: SubsystemComponent[] = [
61
61
  } satisfies GraphifyComponentDetail,
62
62
  },
63
63
  {
64
- id: 'detail-fn',
64
+ alias: 'detail-fn',
65
65
  name: 'normalizeSession',
66
66
  construct: 'function',
67
67
  file: 'src/event-processing/normalize.ts',
@@ -80,7 +80,7 @@ const detailKindComponents: SubsystemComponent[] = [
80
80
  } satisfies GraphifyComponentDetail,
81
81
  },
82
82
  {
83
- id: 'detail-fn-rich',
83
+ alias: 'detail-fn-rich',
84
84
  name: 'mergeSessions',
85
85
  construct: 'function',
86
86
  file: 'src/session/merge.ts',
@@ -104,7 +104,7 @@ const detailKindComponents: SubsystemComponent[] = [
104
104
  } satisfies GraphifyComponentDetail,
105
105
  },
106
106
  {
107
- id: 'detail-fn-void',
107
+ alias: 'detail-fn-void',
108
108
  name: 'flush',
109
109
  construct: 'function',
110
110
  file: 'src/event-processing/sink.ts',
@@ -119,7 +119,7 @@ const detailKindComponents: SubsystemComponent[] = [
119
119
  } satisfies GraphifyComponentDetail,
120
120
  },
121
121
  {
122
- id: 'detail-class-rich',
122
+ alias: 'detail-class-rich',
123
123
  name: 'EventProcessor',
124
124
  construct: 'class',
125
125
  file: 'src/event-processing/EventProcessor.ts',
@@ -149,7 +149,7 @@ const detailKindComponents: SubsystemComponent[] = [
149
149
  } satisfies GraphifyComponentDetail,
150
150
  },
151
151
  {
152
- id: 'detail-type',
152
+ alias: 'detail-type',
153
153
  name: 'SessionRecord',
154
154
  construct: 'interface',
155
155
  file: 'src/session/transcript.ts',
@@ -167,7 +167,7 @@ const detailKindComponents: SubsystemComponent[] = [
167
167
  } satisfies GraphifyComponentDetail,
168
168
  },
169
169
  {
170
- id: 'detail-module',
170
+ alias: 'detail-module',
171
171
  name: 'CodexRolloutRecord',
172
172
  construct: 'interface',
173
173
  file: 'src/session/transcript.ts',
@@ -185,7 +185,7 @@ const detailKindComponents: SubsystemComponent[] = [
185
185
  } satisfies GraphifyComponentDetail,
186
186
  },
187
187
  {
188
- id: 'detail-external',
188
+ alias: 'detail-external',
189
189
  // name = the package's name after the namespace; namespace shown above.
190
190
  name: 'principal-studio',
191
191
  construct: 'external',
@@ -232,7 +232,7 @@ const storyFileContents: Record<string, string> = {
232
232
 
233
233
  const declarationOpenComponents: SubsystemComponent[] = [
234
234
  {
235
- id: 'detail',
235
+ alias: 'detail',
236
236
  name: 'ComponentDeclaration',
237
237
  construct: 'function',
238
238
  file: 'packages/subsystems-react/src/subsystem/ComponentDeclaration.tsx',
@@ -247,7 +247,7 @@ const declarationOpenComponents: SubsystemComponent[] = [
247
247
  },
248
248
  },
249
249
  {
250
- id: 'resolver',
250
+ alias: 'resolver',
251
251
  name: 'resolve.ts',
252
252
  construct: 'function',
253
253
  file: 'packages/subsystems-react/src/graphify/resolve.ts',
@@ -61,7 +61,7 @@ function readStoryFile(path: string): Promise<string> {
61
61
 
62
62
  const drawingComponents: SubsystemComponent[] = [
63
63
  {
64
- id: 'panel',
64
+ alias: 'panel',
65
65
  name: 'DrawingsLeftPanel',
66
66
  construct: 'class',
67
67
  file: 'src/panels/DrawingsLeftPanel.tsx',
@@ -71,7 +71,7 @@ const drawingComponents: SubsystemComponent[] = [
71
71
  process: 'draw-list',
72
72
  },
73
73
  {
74
- id: 'host',
74
+ alias: 'host',
75
75
  name: 'useDrawingsHost',
76
76
  construct: 'function',
77
77
  file: 'src/hooks/useDrawingsHost.ts',
@@ -81,7 +81,7 @@ const drawingComponents: SubsystemComponent[] = [
81
81
  process: 'draw-list',
82
82
  },
83
83
  {
84
- id: 'storage',
84
+ alias: 'storage',
85
85
  name: 'DrawingsStorage',
86
86
  construct: 'class',
87
87
  file: 'src/storage/drawingsStorage.ts',
@@ -91,7 +91,7 @@ const drawingComponents: SubsystemComponent[] = [
91
91
  process: 'draw-host',
92
92
  },
93
93
  {
94
- id: 'fs',
94
+ alias: 'fs',
95
95
  name: 'FileSystemService',
96
96
  construct: 'external',
97
97
  file: 'src/services/fileSystem.ts',
@@ -101,7 +101,7 @@ const drawingComponents: SubsystemComponent[] = [
101
101
  role: 'service',
102
102
  },
103
103
  {
104
- id: 'shell',
104
+ alias: 'shell',
105
105
  name: 'WorkspaceShell',
106
106
  construct: 'class',
107
107
  file: 'src/workspace/WorkspaceShell.tsx',
@@ -111,7 +111,7 @@ const drawingComponents: SubsystemComponent[] = [
111
111
  process: 'draw-host',
112
112
  },
113
113
  {
114
- id: 'tab',
114
+ alias: 'tab',
115
115
  name: 'DrawingTabContent',
116
116
  construct: 'class',
117
117
  file: 'src/components/DrawingTabContent.tsx',
@@ -30,7 +30,7 @@ const purl = 'pkg:github/principal-ai/principal-view-core-library';
30
30
  */
31
31
  const reactUiComponents: SubsystemComponent[] = [
32
32
  {
33
- id: 'create-graph',
33
+ alias: 'create-graph',
34
34
  name: 'createSubsystemModel',
35
35
  construct: 'function',
36
36
  file: 'packages/subsystems-studio/src/bun/subsystem-model-store.ts',
@@ -41,7 +41,7 @@ const reactUiComponents: SubsystemComponent[] = [
41
41
  layer: 1,
42
42
  },
43
43
  {
44
- id: 'http-entry',
44
+ alias: 'http-entry',
45
45
  name: 'handleSubsystemModelRequest',
46
46
  construct: 'function',
47
47
  file: 'packages/subsystems-studio/src/bun/http-server.ts',
@@ -53,7 +53,7 @@ const reactUiComponents: SubsystemComponent[] = [
53
53
  layer: 1,
54
54
  },
55
55
  {
56
- id: 'sessions-view',
56
+ alias: 'sessions-view',
57
57
  name: 'AgentSessionsOverviewView',
58
58
  construct: 'function',
59
59
  file: 'packages/subsystems-studio/src/mainview/views/AgentSessions.tsx',
@@ -66,7 +66,7 @@ const reactUiComponents: SubsystemComponent[] = [
66
66
  layer: 2,
67
67
  },
68
68
  {
69
- id: 'analysis-view',
69
+ alias: 'analysis-view',
70
70
  name: 'AnalysisView',
71
71
  construct: 'function',
72
72
  file: 'packages/subsystems-studio/src/mainview/views/AnalysisView.tsx',
@@ -79,7 +79,7 @@ const reactUiComponents: SubsystemComponent[] = [
79
79
  layer: 2,
80
80
  },
81
81
  {
82
- id: 'drawings-host',
82
+ alias: 'drawings-host',
83
83
  name: 'useDrawingsHost',
84
84
  construct: 'function',
85
85
  file: 'packages/subsystems-studio/src/mainview/hooks/useDrawingsHost.ts',
@@ -92,7 +92,7 @@ const reactUiComponents: SubsystemComponent[] = [
92
92
  layer: 2,
93
93
  },
94
94
  {
95
- id: 'graph-doc-type',
95
+ alias: 'graph-doc-type',
96
96
  name: 'SubsystemModelDocument',
97
97
  construct: 'type_alias',
98
98
  file: 'packages/subsystems-core/src/types/subsystem-model.ts',
@@ -146,7 +146,7 @@ export const ReactComponentsAndHooks: Story = {
146
146
  /** Nest-style stereotypes on the same ontology — controller / middleware / guard. */
147
147
  const nestComponents: SubsystemComponent[] = [
148
148
  {
149
- id: 'graphs-controller',
149
+ alias: 'graphs-controller',
150
150
  name: 'SubsystemModelsController',
151
151
  construct: 'class',
152
152
  file: 'src/graphs/graphs.controller.ts',
@@ -159,7 +159,7 @@ const nestComponents: SubsystemComponent[] = [
159
159
  layer: 1,
160
160
  },
161
161
  {
162
- id: 'auth-guard',
162
+ alias: 'auth-guard',
163
163
  name: 'AuthGuard',
164
164
  construct: 'class',
165
165
  file: 'src/auth/auth.guard.ts',
@@ -171,7 +171,7 @@ const nestComponents: SubsystemComponent[] = [
171
171
  layer: 1,
172
172
  },
173
173
  {
174
- id: 'logging-mw',
174
+ alias: 'logging-mw',
175
175
  name: 'LoggingMiddleware',
176
176
  construct: 'function',
177
177
  file: 'src/logging/logging.middleware.ts',
@@ -183,7 +183,7 @@ const nestComponents: SubsystemComponent[] = [
183
183
  layer: 1,
184
184
  },
185
185
  {
186
- id: 'graphs-service',
186
+ alias: 'graphs-service',
187
187
  name: 'GraphsService',
188
188
  construct: 'class',
189
189
  file: 'src/graphs/graphs.service.ts',
@@ -39,7 +39,7 @@ const DEEP_VIEWS = 'packages/subsystems-studio/src/mainview/views/AnalysisView.t
39
39
  */
40
40
  const deepComponents: SubsystemComponent[] = [
41
41
  {
42
- id: 'node-comp',
42
+ alias: 'node-comp',
43
43
  name: 'SubsystemComponentNode',
44
44
  construct: 'function',
45
45
  symbol: 'SubsystemComponentNode',
@@ -49,7 +49,7 @@ const deepComponents: SubsystemComponent[] = [
49
49
  purpose: 'Leaf component renderer',
50
50
  },
51
51
  {
52
- id: 'group-comp',
52
+ alias: 'group-comp',
53
53
  name: 'SubsystemGroupNode',
54
54
  construct: 'function',
55
55
  symbol: 'SubsystemGroupNode',
@@ -59,7 +59,7 @@ const deepComponents: SubsystemComponent[] = [
59
59
  purpose: 'Boundary frame renderer',
60
60
  },
61
61
  {
62
- id: 'edge-comp',
62
+ alias: 'edge-comp',
63
63
  name: 'SubsystemEdge',
64
64
  construct: 'function',
65
65
  symbol: 'SubsystemEdge',
@@ -69,7 +69,7 @@ const deepComponents: SubsystemComponent[] = [
69
69
  purpose: 'Edge renderer',
70
70
  },
71
71
  {
72
- id: 'analysis',
72
+ alias: 'analysis',
73
73
  name: 'AnalysisView',
74
74
  construct: 'function',
75
75
  symbol: 'AnalysisView',
@@ -79,7 +79,7 @@ const deepComponents: SubsystemComponent[] = [
79
79
  purpose: 'Renders an analysis',
80
80
  },
81
81
  {
82
- id: 'layers',
82
+ alias: 'layers',
83
83
  name: 'LayersProvider',
84
84
  construct: 'function',
85
85
  symbol: 'LayersProvider',
@@ -89,7 +89,7 @@ const deepComponents: SubsystemComponent[] = [
89
89
  purpose: 'Provides the layer UI',
90
90
  },
91
91
  {
92
- id: 'use-drawings',
92
+ alias: 'use-drawings',
93
93
  name: 'useDrawingsHost',
94
94
  construct: 'function',
95
95
  symbol: 'useDrawingsHost',
@@ -30,7 +30,7 @@ const PURL = 'pkg:github/principal-ai/agent-monitoring';
30
30
  */
31
31
  const moduleComponents: SubsystemComponent[] = [
32
32
  {
33
- id: 'record',
33
+ alias: 'record',
34
34
  name: 'CodexRolloutRecord',
35
35
  construct: 'type_alias',
36
36
  symbol: 'CodexRolloutRecord',
@@ -41,7 +41,7 @@ const moduleComponents: SubsystemComponent[] = [
41
41
  layer: 1,
42
42
  },
43
43
  {
44
- id: 'is-rollout',
44
+ alias: 'is-rollout',
45
45
  name: 'isCodexRollout',
46
46
  construct: 'function',
47
47
  symbol: 'isCodexRollout',
@@ -52,7 +52,7 @@ const moduleComponents: SubsystemComponent[] = [
52
52
  layer: 1,
53
53
  },
54
54
  {
55
- id: 'parse',
55
+ alias: 'parse',
56
56
  name: 'parseTranscript',
57
57
  construct: 'function',
58
58
  symbol: 'parseTranscript',
@@ -63,7 +63,7 @@ const moduleComponents: SubsystemComponent[] = [
63
63
  layer: 1,
64
64
  },
65
65
  {
66
- id: 'tool-name',
66
+ alias: 'tool-name',
67
67
  name: 'extractToolName',
68
68
  construct: 'function',
69
69
  symbol: 'extractToolName',
@@ -74,7 +74,7 @@ const moduleComponents: SubsystemComponent[] = [
74
74
  layer: 2,
75
75
  },
76
76
  {
77
- id: 'file-path',
77
+ alias: 'file-path',
78
78
  name: 'extractFilePath',
79
79
  construct: 'function',
80
80
  symbol: 'extractFilePath',
@@ -85,7 +85,7 @@ const moduleComponents: SubsystemComponent[] = [
85
85
  layer: 2,
86
86
  },
87
87
  {
88
- id: 'reader',
88
+ alias: 'reader',
89
89
  name: 'SessionReader',
90
90
  construct: 'class',
91
91
  symbol: 'SessionReader',
@@ -96,7 +96,7 @@ const moduleComponents: SubsystemComponent[] = [
96
96
  layer: 3,
97
97
  },
98
98
  {
99
- id: 'normalize',
99
+ alias: 'normalize',
100
100
  name: 'normalize',
101
101
  construct: 'method',
102
102
  symbol: 'SessionReader.normalize',
@@ -107,7 +107,7 @@ const moduleComponents: SubsystemComponent[] = [
107
107
  layer: 3,
108
108
  },
109
109
  {
110
- id: 'registry',
110
+ alias: 'registry',
111
111
  name: 'registerAgent',
112
112
  construct: 'function',
113
113
  symbol: 'registerAgent',
@@ -147,7 +147,7 @@ export const ModuleBoundaries: Story = {
147
147
  /** Process → module → export nesting (host / renderer). */
148
148
  const nestedComponents: SubsystemComponent[] = [
149
149
  {
150
- id: 'boot',
150
+ alias: 'boot',
151
151
  name: 'boot',
152
152
  construct: 'function',
153
153
  symbol: 'boot',
@@ -160,7 +160,7 @@ const nestedComponents: SubsystemComponent[] = [
160
160
  layer: 1,
161
161
  },
162
162
  {
163
- id: 'create-host',
163
+ alias: 'create-host',
164
164
  name: 'createHost',
165
165
  construct: 'function',
166
166
  symbol: 'createHost',
@@ -172,7 +172,7 @@ const nestedComponents: SubsystemComponent[] = [
172
172
  layer: 1,
173
173
  },
174
174
  {
175
- id: 'session-store',
175
+ alias: 'session-store',
176
176
  name: 'SessionStore',
177
177
  construct: 'store',
178
178
  symbol: 'SessionStore',
@@ -184,7 +184,7 @@ const nestedComponents: SubsystemComponent[] = [
184
184
  layer: 2,
185
185
  },
186
186
  {
187
- id: 'write-session',
187
+ alias: 'write-session',
188
188
  name: 'writeSession',
189
189
  construct: 'function',
190
190
  symbol: 'writeSession',
@@ -196,7 +196,7 @@ const nestedComponents: SubsystemComponent[] = [
196
196
  layer: 2,
197
197
  },
198
198
  {
199
- id: 'bridge',
199
+ alias: 'bridge',
200
200
  name: 'bridge',
201
201
  construct: 'function',
202
202
  symbol: 'bridge',
@@ -209,7 +209,7 @@ const nestedComponents: SubsystemComponent[] = [
209
209
  layer: 3,
210
210
  },
211
211
  {
212
- id: 'post-to-host',
212
+ alias: 'post-to-host',
213
213
  name: 'postToHost',
214
214
  construct: 'function',
215
215
  symbol: 'postToHost',
@@ -221,7 +221,7 @@ const nestedComponents: SubsystemComponent[] = [
221
221
  layer: 3,
222
222
  },
223
223
  {
224
- id: 'trail-view',
224
+ alias: 'trail-view',
225
225
  name: 'TrailView',
226
226
  construct: 'function',
227
227
  symbol: 'TrailView',
@@ -235,7 +235,7 @@ const nestedComponents: SubsystemComponent[] = [
235
235
  layer: 4,
236
236
  },
237
237
  {
238
- id: 'use-trail',
238
+ alias: 'use-trail',
239
239
  name: 'useTrail',
240
240
  construct: 'function',
241
241
  symbol: 'useTrail',
@@ -249,7 +249,7 @@ const nestedComponents: SubsystemComponent[] = [
249
249
  layer: 4,
250
250
  },
251
251
  {
252
- id: 'telemetry',
252
+ alias: 'telemetry',
253
253
  name: 'telemetry',
254
254
  construct: 'external',
255
255
  role: 'service',