@principal-ai/subsystems-react 0.24.27 → 0.25.1

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 (49) hide show
  1. package/dist/stories/Subsystem/ComponentGraph/fixtures.d.ts +1 -1
  2. package/dist/stories/Subsystem/ComponentGraph/fixtures.d.ts.map +1 -1
  3. package/dist/stories/Subsystem/ComponentGraph/fixtures.js +7 -7
  4. package/dist/stories/Subsystem/ComponentGraph/fixtures.js.map +1 -1
  5. package/dist/subsystem/ComponentDeclaration.d.ts +1 -1
  6. package/dist/subsystem/ComponentDeclaration.d.ts.map +1 -1
  7. package/dist/subsystem/ComponentDeclaration.js +1 -1
  8. package/dist/subsystem/ComponentDeclaration.js.map +1 -1
  9. package/dist/subsystem/ConstructsCatalog.d.ts +2 -2
  10. package/dist/subsystem/ConstructsCatalog.d.ts.map +1 -1
  11. package/dist/subsystem/ConstructsCatalog.js +62 -62
  12. package/dist/subsystem/ConstructsCatalog.js.map +1 -1
  13. package/dist/subsystem/SubsystemComponentGraph.d.ts +2 -2
  14. package/dist/subsystem/SubsystemComponentGraph.d.ts.map +1 -1
  15. package/dist/subsystem/SubsystemComponentGraph.js +27 -27
  16. package/dist/subsystem/SubsystemComponentGraph.js.map +1 -1
  17. package/dist/subsystem/model.d.ts +11 -5
  18. package/dist/subsystem/model.d.ts.map +1 -1
  19. package/dist/subsystem/model.js +65 -36
  20. package/dist/subsystem/model.js.map +1 -1
  21. package/dist/subsystem/nodes.d.ts +3 -3
  22. package/dist/subsystem/nodes.d.ts.map +1 -1
  23. package/dist/subsystem/nodes.js +3 -3
  24. package/dist/subsystem/nodes.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/stories/Subsystem/ComponentDeclarationAudit.stories.tsx +13 -13
  27. package/src/stories/Subsystem/ComponentGraph/Appearance.stories.tsx +17 -17
  28. package/src/stories/Subsystem/ComponentGraph/Basics.stories.tsx +2 -2
  29. package/src/stories/Subsystem/ComponentGraph/Captures.stories.tsx +3 -3
  30. package/src/stories/Subsystem/ComponentGraph/Constructs.stories.tsx +6 -6
  31. package/src/stories/Subsystem/ComponentGraph/CustomEntities.stories.tsx +8 -8
  32. package/src/stories/Subsystem/ComponentGraph/DetailPanel.stories.tsx +11 -11
  33. package/src/stories/Subsystem/ComponentGraph/Flows.stories.tsx +6 -6
  34. package/src/stories/Subsystem/ComponentGraph/FrameworkStereotype.stories.tsx +10 -10
  35. package/src/stories/Subsystem/ComponentGraph/ModuleBadges.stories.tsx +7 -7
  36. package/src/stories/Subsystem/ComponentGraph/Modules.stories.tsx +17 -17
  37. package/src/stories/Subsystem/ComponentGraph/NodeAnatomy.stories.tsx +16 -16
  38. package/src/stories/Subsystem/ComponentGraph/Packages.stories.tsx +12 -12
  39. package/src/stories/Subsystem/ComponentGraph/Processes.stories.tsx +1 -1
  40. package/src/stories/Subsystem/ComponentGraph/Proposed.stories.tsx +10 -10
  41. package/src/stories/Subsystem/ComponentGraph/Scenarios.stories.tsx +69 -69
  42. package/src/stories/Subsystem/ComponentGraph/Spotlights.stories.tsx +27 -27
  43. package/src/stories/Subsystem/ComponentGraph/fixtures.ts +8 -8
  44. package/src/subsystem/ComponentDeclaration.tsx +2 -2
  45. package/src/subsystem/ConstructsCatalog.tsx +71 -75
  46. package/src/subsystem/SubsystemComponentGraph.tsx +28 -28
  47. package/src/subsystem/model.test.ts +97 -51
  48. package/src/subsystem/model.ts +77 -41
  49. package/src/subsystem/nodes.tsx +6 -6
@@ -37,7 +37,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
37
37
  {
38
38
  label: 'function — no params',
39
39
  component: {
40
- id: 'fn-void',
40
+ alias: 'fn-void',
41
41
  name: 'flush',
42
42
  construct: 'function',
43
43
  file: 'src/event-processing/sink.ts',
@@ -52,7 +52,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
52
52
  {
53
53
  label: 'function — single param',
54
54
  component: {
55
- id: 'fn-one',
55
+ alias: 'fn-one',
56
56
  name: 'normalize',
57
57
  construct: 'function',
58
58
  file: 'src/session/SessionReader.ts',
@@ -68,7 +68,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
68
68
  {
69
69
  label: 'function — two params',
70
70
  component: {
71
- id: 'fn-two',
71
+ alias: 'fn-two',
72
72
  name: 'normalizeSession',
73
73
  construct: 'function',
74
74
  file: 'src/event-processing/normalize.ts',
@@ -87,7 +87,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
87
87
  {
88
88
  label: 'function — rich params (positional, union, callback, generic return)',
89
89
  component: {
90
- id: 'fn-rich',
90
+ alias: 'fn-rich',
91
91
  name: 'mergeSessions',
92
92
  construct: 'function',
93
93
  file: 'src/session/merge.ts',
@@ -108,7 +108,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
108
108
  {
109
109
  label: 'class — no body',
110
110
  component: {
111
- id: 'class-empty',
111
+ alias: 'class-empty',
112
112
  name: 'EmptyClass',
113
113
  construct: 'class',
114
114
  file: 'src/empty.ts',
@@ -122,7 +122,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
122
122
  {
123
123
  label: 'class — properties only',
124
124
  component: {
125
- id: 'class-props',
125
+ alias: 'class-props',
126
126
  name: 'Config',
127
127
  construct: 'class',
128
128
  file: 'src/config.ts',
@@ -141,7 +141,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
141
141
  {
142
142
  label: 'class — methods + properties + extends + implements',
143
143
  component: {
144
- id: 'class-rich',
144
+ alias: 'class-rich',
145
145
  name: 'EventProcessor',
146
146
  construct: 'class',
147
147
  file: 'src/event-processing/EventProcessor.ts',
@@ -168,7 +168,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
168
168
  {
169
169
  label: 'type — properties',
170
170
  component: {
171
- id: 'type-props',
171
+ alias: 'type-props',
172
172
  name: 'SessionRecord',
173
173
  construct: 'interface',
174
174
  file: 'src/session/transcript.ts',
@@ -186,7 +186,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
186
186
  {
187
187
  label: 'type — no properties',
188
188
  component: {
189
- id: 'type-empty',
189
+ alias: 'type-empty',
190
190
  name: 'BrandedId',
191
191
  construct: 'interface',
192
192
  file: 'src/types.ts',
@@ -200,7 +200,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
200
200
  {
201
201
  label: 'external',
202
202
  component: {
203
- id: 'ext',
203
+ alias: 'ext',
204
204
  name: 'principal-studio',
205
205
  construct: 'external',
206
206
  file: '',
@@ -215,7 +215,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
215
215
  {
216
216
  label: 'function — no symbol (uses name fallback)',
217
217
  component: {
218
- id: 'fn-no-symbol',
218
+ alias: 'fn-no-symbol',
219
219
  name: 'anonymousHelper',
220
220
  construct: 'function',
221
221
  file: 'src/helpers.ts',
@@ -230,7 +230,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
230
230
  {
231
231
  label: 'method — standalone from class',
232
232
  component: {
233
- id: 'method-normalize',
233
+ alias: 'method-normalize',
234
234
  name: 'normalize',
235
235
  construct: 'method',
236
236
  file: 'src/session/SessionReader.ts',
@@ -247,7 +247,7 @@ const cases: { label: string; component: SubsystemComponent }[] = [
247
247
  {
248
248
  label: 'method — no params',
249
249
  component: {
250
- id: 'method-dispose',
250
+ alias: 'method-dispose',
251
251
  name: 'dispose',
252
252
  construct: 'method',
253
253
  file: 'src/event-processing/EventProcessor.ts',
@@ -44,7 +44,7 @@ export const NarrowMaxWidth: Story = {
44
44
  // ---------------------------------------------------------------------------
45
45
  const namingConventionComponents: SubsystemComponent[] = [
46
46
  {
47
- id: 'camel',
47
+ alias: 'camel',
48
48
  name: 'accumulateToAgentSessionEvents',
49
49
  construct: 'function',
50
50
  file: 'src/event-processing/accumulator.ts',
@@ -52,7 +52,7 @@ const namingConventionComponents: SubsystemComponent[] = [
52
52
  symbol: 'accumulateToAgentSessionEvents',
53
53
  },
54
54
  {
55
- id: 'snake',
55
+ alias: 'snake',
56
56
  name: 'repo_normalized_universal_event',
57
57
  construct: 'interface',
58
58
  file: 'src/event-processing/repo_normalized.ts',
@@ -60,7 +60,7 @@ const namingConventionComponents: SubsystemComponent[] = [
60
60
  symbol: 'repo_normalized_universal_event',
61
61
  },
62
62
  {
63
- id: 'pascal',
63
+ alias: 'pascal',
64
64
  name: 'RepoNormalizedUniversalAgentSessionEvent',
65
65
  construct: 'class',
66
66
  file: 'src/event-processing/RepoNormalized.ts',
@@ -68,7 +68,7 @@ const namingConventionComponents: SubsystemComponent[] = [
68
68
  symbol: 'RepoNormalizedUniversalAgentSessionEvent',
69
69
  },
70
70
  {
71
- id: 'acronym',
71
+ alias: 'acronym',
72
72
  name: 'ProcessSSEStreamForEventToken',
73
73
  construct: 'function',
74
74
  file: 'src/event-processing/sse.ts',
@@ -76,7 +76,7 @@ const namingConventionComponents: SubsystemComponent[] = [
76
76
  symbol: 'ProcessSSEStreamForEventToken',
77
77
  },
78
78
  {
79
- id: 'method',
79
+ alias: 'method',
80
80
  name: 'normalize',
81
81
  construct: 'function',
82
82
  file: 'src/session/SessionReader.ts',
@@ -84,7 +84,7 @@ const namingConventionComponents: SubsystemComponent[] = [
84
84
  symbol: 'SessionReader.normalize',
85
85
  },
86
86
  {
87
- id: 'pkg',
87
+ alias: 'pkg',
88
88
  name: 'principal-studio',
89
89
  construct: 'external',
90
90
  file: '',
@@ -118,7 +118,7 @@ const variationPurl = 'pkg:github/principal-ai/agent-monitoring';
118
118
  const kindVariationComponents: SubsystemComponent[] = [
119
119
  // --- class: bare → members only → relationships only
120
120
  {
121
- id: 'cls-bare',
121
+ alias: 'cls-bare',
122
122
  name: 'SessionStore',
123
123
  construct: 'class',
124
124
  file: 'src/session/SessionStore.ts',
@@ -128,7 +128,7 @@ const kindVariationComponents: SubsystemComponent[] = [
128
128
  layer: 1,
129
129
  },
130
130
  {
131
- id: 'cls-members',
131
+ alias: 'cls-members',
132
132
  name: 'Transcoder',
133
133
  construct: 'class',
134
134
  file: 'src/session/Transcoder.ts',
@@ -151,7 +151,7 @@ const kindVariationComponents: SubsystemComponent[] = [
151
151
  } satisfies GraphifyComponentDetail,
152
152
  },
153
153
  {
154
- id: 'cls-relations',
154
+ alias: 'cls-relations',
155
155
  name: 'HttpTransport',
156
156
  construct: 'class',
157
157
  file: 'src/transport/HttpTransport.ts',
@@ -172,7 +172,7 @@ const kindVariationComponents: SubsystemComponent[] = [
172
172
 
173
173
  // --- function: bare → signature only → signature + call relationships
174
174
  {
175
- id: 'fn-bare',
175
+ alias: 'fn-bare',
176
176
  name: 'bootstrap',
177
177
  construct: 'function',
178
178
  file: 'src/bootstrap.ts',
@@ -182,7 +182,7 @@ const kindVariationComponents: SubsystemComponent[] = [
182
182
  layer: 2,
183
183
  },
184
184
  {
185
- id: 'fn-signature',
185
+ alias: 'fn-signature',
186
186
  name: 'normalizeSession',
187
187
  construct: 'function',
188
188
  file: 'src/event-processing/normalize.ts',
@@ -202,7 +202,7 @@ const kindVariationComponents: SubsystemComponent[] = [
202
202
  } satisfies GraphifyComponentDetail,
203
203
  },
204
204
  {
205
- id: 'fn-calls',
205
+ alias: 'fn-calls',
206
206
  name: 'mergeSessions',
207
207
  construct: 'function',
208
208
  file: 'src/session/merge.ts',
@@ -224,7 +224,7 @@ const kindVariationComponents: SubsystemComponent[] = [
224
224
 
225
225
  // --- type: bare → fields only → fields + implementors + used-by
226
226
  {
227
- id: 'ty-bare',
227
+ alias: 'ty-bare',
228
228
  name: 'RawFrame',
229
229
  construct: 'interface',
230
230
  file: 'src/session/RawFrame.ts',
@@ -234,7 +234,7 @@ const kindVariationComponents: SubsystemComponent[] = [
234
234
  layer: 3,
235
235
  },
236
236
  {
237
- id: 'ty-fields',
237
+ alias: 'ty-fields',
238
238
  name: 'SessionRecord',
239
239
  construct: 'interface',
240
240
  file: 'src/session/transcript.ts',
@@ -253,7 +253,7 @@ const kindVariationComponents: SubsystemComponent[] = [
253
253
  } satisfies GraphifyComponentDetail,
254
254
  },
255
255
  {
256
- id: 'ty-full',
256
+ alias: 'ty-full',
257
257
  name: 'Transport',
258
258
  construct: 'interface',
259
259
  file: 'src/transport/Transport.ts',
@@ -271,7 +271,7 @@ const kindVariationComponents: SubsystemComponent[] = [
271
271
 
272
272
  // --- external: bare → labeled
273
273
  {
274
- id: 'ext-bare',
274
+ alias: 'ext-bare',
275
275
  name: 'left-pad',
276
276
  construct: 'external',
277
277
  file: '',
@@ -281,7 +281,7 @@ const kindVariationComponents: SubsystemComponent[] = [
281
281
  layer: 5,
282
282
  },
283
283
  {
284
- id: 'ext-label',
284
+ alias: 'ext-label',
285
285
  name: 'principal-studio',
286
286
  construct: 'external',
287
287
  file: '',
@@ -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',
@@ -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',