@principal-ai/subsystems-react 0.51.0 → 0.51.2

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 (88) hide show
  1. package/dist/index.d.ts +6 -6
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +6 -4
  4. package/dist/index.js.map +1 -1
  5. package/dist/pierre/PierreTrailCodeView.d.ts +1 -1
  6. package/dist/pierre/PierreTrailCodeView.d.ts.map +1 -1
  7. package/dist/pierre/PierreTrailCodeView.js +44 -21
  8. package/dist/pierre/PierreTrailCodeView.js.map +1 -1
  9. package/dist/stories/Subsystem/C4Graph/c4ProposedElements.fixture.d.ts +493 -0
  10. package/dist/stories/Subsystem/C4Graph/c4ProposedElements.fixture.d.ts.map +1 -0
  11. package/dist/stories/Subsystem/C4Graph/c4ProposedElements.fixture.js +329 -0
  12. package/dist/stories/Subsystem/C4Graph/c4ProposedElements.fixture.js.map +1 -0
  13. package/dist/subsystem/C4Graph.d.ts +2 -2
  14. package/dist/subsystem/C4Graph.d.ts.map +1 -1
  15. package/dist/subsystem/C4Graph.js +25 -16
  16. package/dist/subsystem/C4Graph.js.map +1 -1
  17. package/dist/subsystem/C4NodeCard.d.ts +85 -35
  18. package/dist/subsystem/C4NodeCard.d.ts.map +1 -1
  19. package/dist/subsystem/C4NodeCard.js +112 -83
  20. package/dist/subsystem/C4NodeCard.js.map +1 -1
  21. package/dist/subsystem/FileDrawer.d.ts.map +1 -1
  22. package/dist/subsystem/FileDrawer.js +20 -21
  23. package/dist/subsystem/FileDrawer.js.map +1 -1
  24. package/dist/subsystem/IssueList.d.ts.map +1 -1
  25. package/dist/subsystem/IssueList.js +12 -3
  26. package/dist/subsystem/IssueList.js.map +1 -1
  27. package/dist/subsystem/SubsystemComponentGraph.d.ts.map +1 -1
  28. package/dist/subsystem/SubsystemComponentGraph.js +85 -7
  29. package/dist/subsystem/SubsystemComponentGraph.js.map +1 -1
  30. package/dist/subsystem/c4.d.ts +273 -0
  31. package/dist/subsystem/c4.d.ts.map +1 -0
  32. package/dist/subsystem/c4.js +322 -0
  33. package/dist/subsystem/c4.js.map +1 -0
  34. package/dist/subsystem/c4Evidence.d.ts +143 -0
  35. package/dist/subsystem/c4Evidence.d.ts.map +1 -0
  36. package/dist/subsystem/c4Evidence.js +240 -0
  37. package/dist/subsystem/c4Evidence.js.map +1 -0
  38. package/dist/subsystem/model.d.ts +2 -6
  39. package/dist/subsystem/model.d.ts.map +1 -1
  40. package/dist/subsystem/model.js.map +1 -1
  41. package/package.json +5 -4
  42. package/src/index.ts +26 -28
  43. package/src/pierre/PierreTrailCodeView.tsx +49 -21
  44. package/src/stories/Subsystem/C4Graph/C4NodeGallery.stories.tsx +171 -80
  45. package/src/stories/Subsystem/C4Graph/ProposedElements.stories.tsx +293 -0
  46. package/src/stories/Subsystem/C4Graph/c4ProposedElements.fixture.ts +366 -0
  47. package/src/stories/Subsystem/ComponentGraph/IssueOverlay.stories.tsx +1 -1
  48. package/src/stories/Subsystem/ComponentGraph/Issues.stories.tsx +169 -3
  49. package/src/subsystem/C4Graph.tsx +39 -24
  50. package/src/subsystem/C4NodeCard.test.ts +204 -62
  51. package/src/subsystem/C4NodeCard.tsx +146 -101
  52. package/src/subsystem/FileDrawer.tsx +32 -34
  53. package/src/subsystem/IssueList.tsx +13 -2
  54. package/src/subsystem/SubsystemComponentGraph.tsx +98 -7
  55. package/src/subsystem/c4.test.ts +573 -0
  56. package/src/subsystem/c4.ts +559 -0
  57. package/src/subsystem/c4Evidence.test.ts +386 -0
  58. package/src/subsystem/c4Evidence.ts +329 -0
  59. package/src/subsystem/model.ts +2 -6
  60. package/dist/stories/Subsystem/C4Graph/c4Associations.fixture.d.ts +0 -95
  61. package/dist/stories/Subsystem/C4Graph/c4Associations.fixture.d.ts.map +0 -1
  62. package/dist/stories/Subsystem/C4Graph/c4Associations.fixture.js +0 -340
  63. package/dist/stories/Subsystem/C4Graph/c4Associations.fixture.js.map +0 -1
  64. package/dist/stories/Subsystem/C4Graph/c4Fixture.d.ts +0 -7
  65. package/dist/stories/Subsystem/C4Graph/c4Fixture.d.ts.map +0 -1
  66. package/dist/stories/Subsystem/C4Graph/c4Fixture.js +0 -7335
  67. package/dist/stories/Subsystem/C4Graph/c4Fixture.js.map +0 -1
  68. package/dist/stories/Subsystem/C4Graph/generateFixture.d.ts +0 -2
  69. package/dist/stories/Subsystem/C4Graph/generateFixture.d.ts.map +0 -1
  70. package/dist/stories/Subsystem/C4Graph/generateFixture.js +0 -145
  71. package/dist/stories/Subsystem/C4Graph/generateFixture.js.map +0 -1
  72. package/dist/subsystem/c4Associations.d.ts +0 -186
  73. package/dist/subsystem/c4Associations.d.ts.map +0 -1
  74. package/dist/subsystem/c4Associations.js +0 -284
  75. package/dist/subsystem/c4Associations.js.map +0 -1
  76. package/dist/subsystem/toC4.d.ts +0 -214
  77. package/dist/subsystem/toC4.d.ts.map +0 -1
  78. package/dist/subsystem/toC4.js +0 -282
  79. package/dist/subsystem/toC4.js.map +0 -1
  80. package/src/stories/Subsystem/C4Graph/C4Associations.stories.tsx +0 -273
  81. package/src/stories/Subsystem/C4Graph/C4Container.stories.tsx +0 -101
  82. package/src/stories/Subsystem/C4Graph/c4Associations.fixture.ts +0 -344
  83. package/src/stories/Subsystem/C4Graph/c4Fixture.ts +0 -7339
  84. package/src/stories/Subsystem/C4Graph/generateFixture.ts +0 -161
  85. package/src/subsystem/c4Associations.test.ts +0 -484
  86. package/src/subsystem/c4Associations.ts +0 -398
  87. package/src/subsystem/toC4.test.ts +0 -114
  88. package/src/subsystem/toC4.ts +0 -478
@@ -1,344 +0,0 @@
1
- // GENERATED from live store data by generateFixture.ts — do not hand-edit.
2
- //
3
- // Derived from the SAME composition as c4Fixture.ts: 225 components
4
- // → 13 container keys → 13 associations.
5
- //
6
- // Every association is state:'proposed'. None of it is accepted — accepting is
7
- // a human's decision, and this story exists to make that decision visible.
8
-
9
- import type { C4Association } from "../../../subsystem/toC4";
10
-
11
- /** Container keys whose trailing role matches — candidates for a merge. */
12
- export const C4_MERGE_CANDIDATES = [
13
- {
14
- "role": "host",
15
- "keys": [
16
- "principal-studio/host",
17
- "subsystems-studio/host"
18
- ],
19
- "reason": "2 process keys end in \"/host\" (principal-studio/host, subsystems-studio/host) — one deployable unit under two names, or two units?"
20
- },
21
- {
22
- "role": "renderer",
23
- "keys": [
24
- "principal-studio/renderer",
25
- "subsystems-studio/renderer"
26
- ],
27
- "reason": "2 process keys end in \"/renderer\" (principal-studio/renderer, subsystems-studio/renderer) — one deployable unit under two names, or two units?"
28
- }
29
- ] as const;
30
-
31
- /** Every mechanical concern, for the review panel. */
32
- export const C4_CONCERNS = [
33
- {
34
- "target": "subsystems-studio/host",
35
- "kind": "store_unclassified",
36
- "message": "1 store(s) in \"subsystems-studio/host\" declare no storage kind (c127) — decide whether each is a C4 data store or an internal detail",
37
- "members": [
38
- "c127"
39
- ]
40
- },
41
- {
42
- "target": "subsystems-studio/renderer",
43
- "kind": "store_unclassified",
44
- "message": "4 store(s) in \"subsystems-studio/renderer\" declare no storage kind (c42, c95, c102, c131) — decide whether each is a C4 data store or an internal detail",
45
- "members": [
46
- "c42",
47
- "c95",
48
- "c102",
49
- "c131"
50
- ]
51
- },
52
- {
53
- "target": "site/web",
54
- "kind": "missing_technology",
55
- "message": "container \"site/web\" has no framework signal — C4 requires a technology on every container",
56
- "members": [
57
- "c82",
58
- "c83",
59
- "c84"
60
- ]
61
- },
62
- {
63
- "target": "subsystems-core/types",
64
- "kind": "missing_technology",
65
- "message": "container \"subsystems-core/types\" has no framework signal — C4 requires a technology on every container",
66
- "members": [
67
- "c85",
68
- "c86",
69
- "c87"
70
- ]
71
- },
72
- {
73
- "target": "principal-studio-cli",
74
- "kind": "singleton",
75
- "message": "process \"principal-studio-cli\" has exactly one member (c88) — a lone function is not a deployable unit",
76
- "members": [
77
- "c88"
78
- ]
79
- },
80
- {
81
- "target": "principal-studio-cli",
82
- "kind": "missing_technology",
83
- "message": "container \"principal-studio-cli\" has no framework signal — C4 requires a technology on every container",
84
- "members": [
85
- "c88"
86
- ]
87
- },
88
- {
89
- "target": "subsystems-react",
90
- "kind": "missing_technology",
91
- "message": "container \"subsystems-react\" has no framework signal — C4 requires a technology on every container",
92
- "members": [
93
- "c96",
94
- "c97",
95
- "c98",
96
- "c99",
97
- "c100",
98
- "c101",
99
- "c108",
100
- "c109",
101
- "c112",
102
- "c113",
103
- "c114"
104
- ]
105
- },
106
- {
107
- "target": "subsystems-react",
108
- "kind": "store_unclassified",
109
- "message": "1 store(s) in \"subsystems-react\" declare no storage kind (c98) — decide whether each is a C4 data store or an internal detail",
110
- "members": [
111
- "c98"
112
- ]
113
- },
114
- {
115
- "target": "subsystems-core",
116
- "kind": "missing_technology",
117
- "message": "container \"subsystems-core\" has no framework signal — C4 requires a technology on every container",
118
- "members": [
119
- "c106",
120
- "c107",
121
- "c167"
122
- ]
123
- },
124
- {
125
- "target": "subsystems-studio/shared",
126
- "kind": "library_shaped",
127
- "message": "process \"subsystems-studio/shared\" has 2 member(s) but none execute at runtime (type_alias) — this reads as a library, not a container",
128
- "members": [
129
- "c132",
130
- "c133"
131
- ]
132
- },
133
- {
134
- "target": "packages/subsystems-studio/run",
135
- "kind": "missing_technology",
136
- "message": "container \"packages/subsystems-studio/run\" has no framework signal — C4 requires a technology on every container",
137
- "members": [
138
- "c147",
139
- "c148",
140
- "c149"
141
- ]
142
- },
143
- {
144
- "target": "packages/subsystems-studio/run",
145
- "kind": "store_unclassified",
146
- "message": "1 store(s) in \"packages/subsystems-studio/run\" declare no storage kind (c148) — decide whether each is a C4 data store or an internal detail",
147
- "members": [
148
- "c148"
149
- ]
150
- },
151
- {
152
- "target": "principal-studio/host",
153
- "kind": "singleton",
154
- "message": "process \"principal-studio/host\" has exactly one member (c155) — a lone function is not a deployable unit",
155
- "members": [
156
- "c155"
157
- ]
158
- },
159
- {
160
- "target": "principal-studio/host",
161
- "kind": "missing_technology",
162
- "message": "container \"principal-studio/host\" has no framework signal — C4 requires a technology on every container",
163
- "members": [
164
- "c155"
165
- ]
166
- },
167
- {
168
- "target": "subsystems-react/session-ui",
169
- "kind": "singleton",
170
- "message": "process \"subsystems-react/session-ui\" has exactly one member (c211) — a lone function is not a deployable unit",
171
- "members": [
172
- "c211"
173
- ]
174
- },
175
- {
176
- "target": "subsystems-react/session-ui",
177
- "kind": "missing_technology",
178
- "message": "container \"subsystems-react/session-ui\" has no framework signal — C4 requires a technology on every container",
179
- "members": [
180
- "c211"
181
- ]
182
- }
183
- ] as const;
184
-
185
- export const c4Associations: C4Association[] = [
186
- {
187
- "id": "container:(unassigned)",
188
- "level": "container",
189
- "sourceKeys": [
190
- "(unassigned)"
191
- ],
192
- "label": "(unassigned)",
193
- "type": "application",
194
- "technology": "react",
195
- "state": "proposed",
196
- "author": "c4-proposer"
197
- },
198
- {
199
- "id": "container:packages/subsystems-studio/run",
200
- "level": "container",
201
- "sourceKeys": [
202
- "packages/subsystems-studio/run"
203
- ],
204
- "label": "packages/subsystems-studio/run",
205
- "type": "application",
206
- "state": "proposed",
207
- "rationale": "container \"packages/subsystems-studio/run\" has no framework signal — C4 requires a technology on every container 1 store(s) in \"packages/subsystems-studio/run\" declare no storage kind (c148) — decide whether each is a C4 data store or an internal detail",
208
- "author": "c4-proposer"
209
- },
210
- {
211
- "id": "container:principal-studio-cli",
212
- "level": "container",
213
- "sourceKeys": [
214
- "principal-studio-cli"
215
- ],
216
- "label": "principal-studio-cli",
217
- "type": "application",
218
- "state": "proposed",
219
- "rationale": "process \"principal-studio-cli\" has exactly one member (c88) — a lone function is not a deployable unit container \"principal-studio-cli\" has no framework signal — C4 requires a technology on every container",
220
- "author": "c4-proposer"
221
- },
222
- {
223
- "id": "container:principal-studio/host",
224
- "level": "container",
225
- "sourceKeys": [
226
- "principal-studio/host"
227
- ],
228
- "label": "principal-studio/host",
229
- "type": "application",
230
- "state": "proposed",
231
- "rationale": "process \"principal-studio/host\" has exactly one member (c155) — a lone function is not a deployable unit container \"principal-studio/host\" has no framework signal — C4 requires a technology on every container",
232
- "author": "c4-proposer"
233
- },
234
- {
235
- "id": "container:principal-studio/renderer",
236
- "level": "container",
237
- "sourceKeys": [
238
- "principal-studio/renderer"
239
- ],
240
- "label": "principal-studio/renderer",
241
- "type": "application",
242
- "technology": "react",
243
- "state": "proposed",
244
- "author": "c4-proposer"
245
- },
246
- {
247
- "id": "container:site/web",
248
- "level": "container",
249
- "sourceKeys": [
250
- "site/web"
251
- ],
252
- "label": "site/web",
253
- "type": "application",
254
- "state": "proposed",
255
- "rationale": "container \"site/web\" has no framework signal — C4 requires a technology on every container",
256
- "author": "c4-proposer"
257
- },
258
- {
259
- "id": "container:subsystems-core",
260
- "level": "container",
261
- "sourceKeys": [
262
- "subsystems-core"
263
- ],
264
- "label": "subsystems-core",
265
- "type": "application",
266
- "state": "proposed",
267
- "rationale": "container \"subsystems-core\" has no framework signal — C4 requires a technology on every container",
268
- "author": "c4-proposer"
269
- },
270
- {
271
- "id": "container:subsystems-core/types",
272
- "level": "container",
273
- "sourceKeys": [
274
- "subsystems-core/types"
275
- ],
276
- "label": "subsystems-core/types",
277
- "type": "application",
278
- "state": "proposed",
279
- "rationale": "container \"subsystems-core/types\" has no framework signal — C4 requires a technology on every container",
280
- "author": "c4-proposer"
281
- },
282
- {
283
- "id": "container:subsystems-react",
284
- "level": "container",
285
- "sourceKeys": [
286
- "subsystems-react"
287
- ],
288
- "label": "subsystems-react",
289
- "type": "application",
290
- "state": "proposed",
291
- "rationale": "container \"subsystems-react\" has no framework signal — C4 requires a technology on every container 1 store(s) in \"subsystems-react\" declare no storage kind (c98) — decide whether each is a C4 data store or an internal detail",
292
- "author": "c4-proposer"
293
- },
294
- {
295
- "id": "container:subsystems-react/session-ui",
296
- "level": "container",
297
- "sourceKeys": [
298
- "subsystems-react/session-ui"
299
- ],
300
- "label": "subsystems-react/session-ui",
301
- "type": "application",
302
- "state": "proposed",
303
- "rationale": "process \"subsystems-react/session-ui\" has exactly one member (c211) — a lone function is not a deployable unit container \"subsystems-react/session-ui\" has no framework signal — C4 requires a technology on every container",
304
- "author": "c4-proposer"
305
- },
306
- {
307
- "id": "container:subsystems-studio/host",
308
- "level": "container",
309
- "sourceKeys": [
310
- "subsystems-studio/host"
311
- ],
312
- "label": "subsystems-studio/host",
313
- "type": "data-store",
314
- "technology": "bun",
315
- "state": "proposed",
316
- "rationale": "1 store(s) in \"subsystems-studio/host\" declare no storage kind (c127) — decide whether each is a C4 data store or an internal detail",
317
- "author": "c4-proposer"
318
- },
319
- {
320
- "id": "container:subsystems-studio/renderer",
321
- "level": "container",
322
- "sourceKeys": [
323
- "subsystems-studio/renderer"
324
- ],
325
- "label": "subsystems-studio/renderer",
326
- "type": "application",
327
- "technology": "react",
328
- "state": "proposed",
329
- "rationale": "4 store(s) in \"subsystems-studio/renderer\" declare no storage kind (c42, c95, c102, c131) — decide whether each is a C4 data store or an internal detail",
330
- "author": "c4-proposer"
331
- },
332
- {
333
- "id": "container:subsystems-studio/shared",
334
- "level": "container",
335
- "sourceKeys": [
336
- "subsystems-studio/shared"
337
- ],
338
- "label": "subsystems-studio/shared",
339
- "type": "library",
340
- "state": "proposed",
341
- "rationale": "process \"subsystems-studio/shared\" has 2 member(s) but none execute at runtime (type_alias) — this reads as a library, not a container",
342
- "author": "c4-proposer"
343
- }
344
- ];