@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
|
@@ -31,7 +31,7 @@ const LIB = 'pkg:github/acme/lib';
|
|
|
31
31
|
*/
|
|
32
32
|
const multiRepoComponents: SubsystemComponent[] = [
|
|
33
33
|
{
|
|
34
|
-
|
|
34
|
+
alias: 'dispatch',
|
|
35
35
|
name: 'dispatch',
|
|
36
36
|
construct: 'function',
|
|
37
37
|
symbol: 'dispatch',
|
|
@@ -43,7 +43,7 @@ const multiRepoComponents: SubsystemComponent[] = [
|
|
|
43
43
|
layer: 1,
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
|
|
46
|
+
alias: 'session',
|
|
47
47
|
name: 'SessionService',
|
|
48
48
|
construct: 'class',
|
|
49
49
|
symbol: 'SessionService',
|
|
@@ -55,7 +55,7 @@ const multiRepoComponents: SubsystemComponent[] = [
|
|
|
55
55
|
layer: 2,
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
|
|
58
|
+
alias: 'parse',
|
|
59
59
|
name: 'parseEvent',
|
|
60
60
|
construct: 'function',
|
|
61
61
|
symbol: 'parseEvent',
|
|
@@ -67,7 +67,7 @@ const multiRepoComponents: SubsystemComponent[] = [
|
|
|
67
67
|
layer: 1,
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
|
|
70
|
+
alias: 'normalize',
|
|
71
71
|
name: 'normalize',
|
|
72
72
|
construct: 'function',
|
|
73
73
|
symbol: 'normalize',
|
|
@@ -123,7 +123,7 @@ export const SingleRepoNoPackageFrames: Story = {
|
|
|
123
123
|
*/
|
|
124
124
|
const nestedComponents: SubsystemComponent[] = [
|
|
125
125
|
{
|
|
126
|
-
|
|
126
|
+
alias: 'dispatch',
|
|
127
127
|
name: 'dispatch',
|
|
128
128
|
construct: 'function',
|
|
129
129
|
symbol: 'dispatch',
|
|
@@ -135,7 +135,7 @@ const nestedComponents: SubsystemComponent[] = [
|
|
|
135
135
|
layer: 1,
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
|
-
|
|
138
|
+
alias: 'boot',
|
|
139
139
|
name: 'boot',
|
|
140
140
|
construct: 'function',
|
|
141
141
|
symbol: 'boot',
|
|
@@ -147,7 +147,7 @@ const nestedComponents: SubsystemComponent[] = [
|
|
|
147
147
|
layer: 1,
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
|
-
|
|
150
|
+
alias: 'session',
|
|
151
151
|
name: 'SessionService',
|
|
152
152
|
construct: 'class',
|
|
153
153
|
symbol: 'SessionService',
|
|
@@ -159,7 +159,7 @@ const nestedComponents: SubsystemComponent[] = [
|
|
|
159
159
|
layer: 2,
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
|
-
|
|
162
|
+
alias: 'session-types',
|
|
163
163
|
name: 'SessionRecord',
|
|
164
164
|
construct: 'type_alias',
|
|
165
165
|
symbol: 'SessionRecord',
|
|
@@ -171,7 +171,7 @@ const nestedComponents: SubsystemComponent[] = [
|
|
|
171
171
|
layer: 2,
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
|
|
174
|
+
alias: 'parse',
|
|
175
175
|
name: 'parseEvent',
|
|
176
176
|
construct: 'function',
|
|
177
177
|
symbol: 'parseEvent',
|
|
@@ -183,7 +183,7 @@ const nestedComponents: SubsystemComponent[] = [
|
|
|
183
183
|
layer: 1,
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
|
-
|
|
186
|
+
alias: 'parse-types',
|
|
187
187
|
name: 'RawEvent',
|
|
188
188
|
construct: 'type_alias',
|
|
189
189
|
symbol: 'RawEvent',
|
|
@@ -195,7 +195,7 @@ const nestedComponents: SubsystemComponent[] = [
|
|
|
195
195
|
layer: 1,
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
|
|
198
|
+
alias: 'normalize',
|
|
199
199
|
name: 'normalize',
|
|
200
200
|
construct: 'function',
|
|
201
201
|
symbol: 'normalize',
|
|
@@ -207,7 +207,7 @@ const nestedComponents: SubsystemComponent[] = [
|
|
|
207
207
|
layer: 2,
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
|
|
210
|
+
alias: 'normalize-types',
|
|
211
211
|
name: 'NormalizedEvent',
|
|
212
212
|
construct: 'type_alias',
|
|
213
213
|
symbol: 'NormalizedEvent',
|
|
@@ -31,7 +31,7 @@ const processComponents = [
|
|
|
31
31
|
['bridge', 'bridge', 'function', 'src/renderer/bridge.ts', 'pkg:github/principal-ai/principal-studio', 'IPC bridge to the host', 'bridge'],
|
|
32
32
|
]),
|
|
33
33
|
{
|
|
34
|
-
|
|
34
|
+
alias: 'svc',
|
|
35
35
|
name: 'telemetry',
|
|
36
36
|
construct: 'external' as const,
|
|
37
37
|
file: '',
|
|
@@ -95,7 +95,7 @@ const spotlightRows: Array<{ label: string; component: SubsystemComponent }> = [
|
|
|
95
95
|
{
|
|
96
96
|
label: 'normal function (baseline)',
|
|
97
97
|
component: {
|
|
98
|
-
|
|
98
|
+
alias: 'live-fn',
|
|
99
99
|
name: 'ensureOpencode',
|
|
100
100
|
construct: 'function',
|
|
101
101
|
file: 'src/bun/opencode-v2.ts',
|
|
@@ -107,7 +107,7 @@ const spotlightRows: Array<{ label: string; component: SubsystemComponent }> = [
|
|
|
107
107
|
{
|
|
108
108
|
label: 'proposed function — dashed border + right badge',
|
|
109
109
|
component: {
|
|
110
|
-
|
|
110
|
+
alias: 'prop-fn',
|
|
111
111
|
name: 'OpenCodeV2Lifecycle',
|
|
112
112
|
construct: 'function',
|
|
113
113
|
file: '',
|
|
@@ -120,7 +120,7 @@ const spotlightRows: Array<{ label: string; component: SubsystemComponent }> = [
|
|
|
120
120
|
{
|
|
121
121
|
label: 'proposed class',
|
|
122
122
|
component: {
|
|
123
|
-
|
|
123
|
+
alias: 'prop-class',
|
|
124
124
|
name: 'MaintainModelAgent',
|
|
125
125
|
construct: 'class',
|
|
126
126
|
file: 'src/bun/maintain-model-agent.ts',
|
|
@@ -133,7 +133,7 @@ const spotlightRows: Array<{ label: string; component: SubsystemComponent }> = [
|
|
|
133
133
|
{
|
|
134
134
|
label: 'proposed + role: entry (badge shows proposed only)',
|
|
135
135
|
component: {
|
|
136
|
-
|
|
136
|
+
alias: 'prop-entry',
|
|
137
137
|
name: 'startMaintainFlow',
|
|
138
138
|
construct: 'function',
|
|
139
139
|
file: '',
|
|
@@ -147,7 +147,7 @@ const spotlightRows: Array<{ label: string; component: SubsystemComponent }> = [
|
|
|
147
147
|
{
|
|
148
148
|
label: 'external (contrast — real outside system)',
|
|
149
149
|
component: {
|
|
150
|
-
|
|
150
|
+
alias: 'ext',
|
|
151
151
|
name: 'OpenCode CLI',
|
|
152
152
|
construct: 'external',
|
|
153
153
|
file: '',
|
|
@@ -174,7 +174,7 @@ export const Spotlights: Story = {
|
|
|
174
174
|
}}
|
|
175
175
|
>
|
|
176
176
|
{spotlightRows.map((row) => (
|
|
177
|
-
<NodeSpotlight key={row.component.
|
|
177
|
+
<NodeSpotlight key={row.component.alias} {...row} />
|
|
178
178
|
))}
|
|
179
179
|
</div>
|
|
180
180
|
),
|
|
@@ -185,7 +185,7 @@ export const Spotlights: Story = {
|
|
|
185
185
|
// ---------------------------------------------------------------------------
|
|
186
186
|
const migrationComponents: SubsystemComponent[] = [
|
|
187
187
|
{
|
|
188
|
-
|
|
188
|
+
alias: 'audit',
|
|
189
189
|
name: 'auditSubsystemModel',
|
|
190
190
|
construct: 'function',
|
|
191
191
|
file: 'src/bun/verify-subsystem-component.ts',
|
|
@@ -195,7 +195,7 @@ const migrationComponents: SubsystemComponent[] = [
|
|
|
195
195
|
role: 'entry',
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
|
|
198
|
+
alias: 'lifecycle',
|
|
199
199
|
name: 'OpenCodeV2Lifecycle',
|
|
200
200
|
construct: 'function',
|
|
201
201
|
file: '',
|
|
@@ -205,7 +205,7 @@ const migrationComponents: SubsystemComponent[] = [
|
|
|
205
205
|
proposed: true,
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
|
|
208
|
+
alias: 'maintain',
|
|
209
209
|
name: 'runMaintainModel',
|
|
210
210
|
construct: 'function',
|
|
211
211
|
file: 'src/bun/maintain-model.ts',
|
|
@@ -214,7 +214,7 @@ const migrationComponents: SubsystemComponent[] = [
|
|
|
214
214
|
purpose: 'Existing maintain agent runner',
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
|
-
|
|
217
|
+
alias: 'cli',
|
|
218
218
|
name: '@opencode-ai/cli',
|
|
219
219
|
construct: 'external',
|
|
220
220
|
file: '',
|