@principal-ai/subsystems-react 0.25.0 → 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.
- package/dist/subsystem/model.d.ts.map +1 -1
- package/dist/subsystem/model.js +30 -1
- package/dist/subsystem/model.js.map +1 -1
- package/package.json +1 -1
- package/src/stories/Subsystem/ComponentDeclarationAudit.stories.tsx +13 -13
- package/src/stories/Subsystem/ComponentGraph/Appearance.stories.tsx +17 -17
- package/src/stories/Subsystem/ComponentGraph/Basics.stories.tsx +2 -2
- package/src/stories/Subsystem/ComponentGraph/Captures.stories.tsx +3 -3
- package/src/stories/Subsystem/ComponentGraph/Constructs.stories.tsx +6 -6
- package/src/stories/Subsystem/ComponentGraph/CustomEntities.stories.tsx +8 -8
- package/src/stories/Subsystem/ComponentGraph/DetailPanel.stories.tsx +11 -11
- package/src/stories/Subsystem/ComponentGraph/Flows.stories.tsx +6 -6
- package/src/stories/Subsystem/ComponentGraph/FrameworkStereotype.stories.tsx +10 -10
- package/src/stories/Subsystem/ComponentGraph/ModuleBadges.stories.tsx +6 -6
- package/src/stories/Subsystem/ComponentGraph/Modules.stories.tsx +17 -17
- package/src/stories/Subsystem/ComponentGraph/NodeAnatomy.stories.tsx +16 -16
- package/src/stories/Subsystem/ComponentGraph/Packages.stories.tsx +12 -12
- package/src/stories/Subsystem/ComponentGraph/Processes.stories.tsx +1 -1
- package/src/stories/Subsystem/ComponentGraph/Proposed.stories.tsx +10 -10
- package/src/stories/Subsystem/ComponentGraph/Scenarios.stories.tsx +69 -69
- package/src/stories/Subsystem/ComponentGraph/Spotlights.stories.tsx +27 -27
- package/src/subsystem/model.test.ts +46 -0
- package/src/subsystem/model.ts +31 -1
|
@@ -25,7 +25,7 @@ function entityDetail(attributes: Array<[string, string]>): GraphifyCustomEntity
|
|
|
25
25
|
|
|
26
26
|
const components: SubsystemComponent[] = [
|
|
27
27
|
{
|
|
28
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
252
|
+
alias: 'telemetry',
|
|
253
253
|
name: 'telemetry',
|
|
254
254
|
construct: 'external',
|
|
255
255
|
role: 'service',
|
|
@@ -73,7 +73,7 @@ const CHANNELS: Channel[] = [
|
|
|
73
73
|
label: 'baseline — function',
|
|
74
74
|
note: 'border color = construct (function-indigo); left badge = construct.',
|
|
75
75
|
component: {
|
|
76
|
-
|
|
76
|
+
alias: 'fn',
|
|
77
77
|
name: 'auditSubsystemModel',
|
|
78
78
|
construct: 'function',
|
|
79
79
|
file: 'src/bun/verify-subsystem-component.ts',
|
|
@@ -85,7 +85,7 @@ const CHANNELS: Channel[] = [
|
|
|
85
85
|
label: 'class',
|
|
86
86
|
note: 'construct color changes per kind; nothing else moves.',
|
|
87
87
|
component: {
|
|
88
|
-
|
|
88
|
+
alias: 'cls',
|
|
89
89
|
name: 'MaintainModelAgent',
|
|
90
90
|
construct: 'class',
|
|
91
91
|
file: 'src/bun/maintain-model.ts',
|
|
@@ -97,7 +97,7 @@ const CHANNELS: Channel[] = [
|
|
|
97
97
|
label: 'external',
|
|
98
98
|
note: 'outside the system — square corners, no file.',
|
|
99
99
|
component: {
|
|
100
|
-
|
|
100
|
+
alias: 'ext',
|
|
101
101
|
name: '@opencode-ai/cli',
|
|
102
102
|
construct: 'external',
|
|
103
103
|
file: '',
|
|
@@ -109,7 +109,7 @@ const CHANNELS: Channel[] = [
|
|
|
109
109
|
label: 'role badge',
|
|
110
110
|
note: 'top-right badge = role.',
|
|
111
111
|
component: {
|
|
112
|
-
|
|
112
|
+
alias: 'role',
|
|
113
113
|
name: 'handleRequest',
|
|
114
114
|
construct: 'function',
|
|
115
115
|
file: 'src/bun/http-server.ts',
|
|
@@ -122,7 +122,7 @@ const CHANNELS: Channel[] = [
|
|
|
122
122
|
label: 'store + storage badge',
|
|
123
123
|
note: 'store backs a storage badge beside the role badge.',
|
|
124
124
|
component: {
|
|
125
|
-
|
|
125
|
+
alias: 'store',
|
|
126
126
|
name: 'sessionCache',
|
|
127
127
|
construct: 'store',
|
|
128
128
|
file: 'src/bun/session-cache.ts',
|
|
@@ -135,7 +135,7 @@ const CHANNELS: Channel[] = [
|
|
|
135
135
|
label: 'proposed',
|
|
136
136
|
note: 'dashed goldenrod border + right badge; fileless.',
|
|
137
137
|
component: {
|
|
138
|
-
|
|
138
|
+
alias: 'prop',
|
|
139
139
|
name: 'OpenCodeV2Lifecycle',
|
|
140
140
|
construct: 'function',
|
|
141
141
|
file: '',
|
|
@@ -148,7 +148,7 @@ const CHANNELS: Channel[] = [
|
|
|
148
148
|
label: 'proposed + role',
|
|
149
149
|
note: 'proposed wins the right badge; role stays on the model.',
|
|
150
150
|
component: {
|
|
151
|
-
|
|
151
|
+
alias: 'prop-role',
|
|
152
152
|
name: 'startMaintainFlow',
|
|
153
153
|
construct: 'function',
|
|
154
154
|
file: '',
|
|
@@ -162,7 +162,7 @@ const CHANNELS: Channel[] = [
|
|
|
162
162
|
label: 'framework stereotype',
|
|
163
163
|
note: 'left badge prefers "framework · stereotype"; border stays construct.',
|
|
164
164
|
component: {
|
|
165
|
-
|
|
165
|
+
alias: 'react',
|
|
166
166
|
name: 'SubsystemComponentNode',
|
|
167
167
|
construct: 'function',
|
|
168
168
|
file: 'src/subsystem/nodes.tsx',
|
|
@@ -176,7 +176,7 @@ const CHANNELS: Channel[] = [
|
|
|
176
176
|
label: 'custom entity',
|
|
177
177
|
note: 'left badge wears the entityKind.',
|
|
178
178
|
component: {
|
|
179
|
-
|
|
179
|
+
alias: 'entity',
|
|
180
180
|
name: 'WorkRequester',
|
|
181
181
|
construct: 'custom_entity',
|
|
182
182
|
file: '',
|
|
@@ -188,7 +188,7 @@ const CHANNELS: Channel[] = [
|
|
|
188
188
|
label: 'selected',
|
|
189
189
|
note: 'selection only thickens the border (2 → 4); color stays construct.',
|
|
190
190
|
component: {
|
|
191
|
-
|
|
191
|
+
alias: 'sel',
|
|
192
192
|
name: 'runMaintainModel',
|
|
193
193
|
construct: 'function',
|
|
194
194
|
file: 'src/bun/maintain-model.ts',
|
|
@@ -246,7 +246,7 @@ export const Channels: Story = {
|
|
|
246
246
|
}}
|
|
247
247
|
>
|
|
248
248
|
{CHANNELS.map((c) => (
|
|
249
|
-
<ChannelCell key={c.component.
|
|
249
|
+
<ChannelCell key={c.component.alias} channel={c} />
|
|
250
250
|
))}
|
|
251
251
|
</div>
|
|
252
252
|
</div>
|
|
@@ -423,32 +423,32 @@ const ISSUE_EXAMPLES: Array<{
|
|
|
423
423
|
},
|
|
424
424
|
{
|
|
425
425
|
caption: 'error · earliest rung is file (declaration file missing)',
|
|
426
|
-
component: { ...CHANNELS[0]!.component,
|
|
426
|
+
component: { ...CHANNELS[0]!.component, alias: 'e-file' },
|
|
427
427
|
severity: 'error',
|
|
428
428
|
rung: 'file',
|
|
429
429
|
count: 2,
|
|
430
430
|
},
|
|
431
431
|
{
|
|
432
432
|
caption: 'error · earliest rung is symbol (multiple symbol matches)',
|
|
433
|
-
component: { ...CHANNELS[1]!.component,
|
|
433
|
+
component: { ...CHANNELS[1]!.component, alias: 'e-sym' },
|
|
434
434
|
severity: 'error',
|
|
435
435
|
rung: 'symbol',
|
|
436
436
|
},
|
|
437
437
|
{
|
|
438
438
|
caption: 'info/gap · dashed ring · declaration drift',
|
|
439
|
-
component: { ...CHANNELS[1]!.component,
|
|
439
|
+
component: { ...CHANNELS[1]!.component, alias: 'e-decl' },
|
|
440
440
|
severity: 'info',
|
|
441
441
|
rung: 'declaration',
|
|
442
442
|
},
|
|
443
443
|
{
|
|
444
444
|
caption: 'error · type mismatch',
|
|
445
|
-
component: { ...CHANNELS[7]!.component,
|
|
445
|
+
component: { ...CHANNELS[7]!.component, alias: 'e-type' },
|
|
446
446
|
severity: 'error',
|
|
447
447
|
rung: 'type',
|
|
448
448
|
},
|
|
449
449
|
{
|
|
450
450
|
caption: 'error · signature mismatch (deepest rung)',
|
|
451
|
-
component: { ...CHANNELS[0]!.component,
|
|
451
|
+
component: { ...CHANNELS[0]!.component, alias: 'e-sig' },
|
|
452
452
|
severity: 'error',
|
|
453
453
|
rung: 'signature',
|
|
454
454
|
},
|