@principal-ai/subsystems-react 0.51.2 → 0.51.3

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 (73) hide show
  1. package/dist/index.d.ts +5 -3
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +3 -2
  4. package/dist/index.js.map +1 -1
  5. package/dist/subsystem/C4Graph.d.ts +12 -1
  6. package/dist/subsystem/C4Graph.d.ts.map +1 -1
  7. package/dist/subsystem/C4Graph.js +82 -14
  8. package/dist/subsystem/C4Graph.js.map +1 -1
  9. package/dist/subsystem/C4NodeCard.d.ts +22 -22
  10. package/dist/subsystem/C4NodeCard.d.ts.map +1 -1
  11. package/dist/subsystem/C4NodeCard.js +56 -77
  12. package/dist/subsystem/C4NodeCard.js.map +1 -1
  13. package/dist/subsystem/SubsystemComponentGraph.d.ts.map +1 -1
  14. package/dist/subsystem/SubsystemComponentGraph.js +0 -6
  15. package/dist/subsystem/SubsystemComponentGraph.js.map +1 -1
  16. package/dist/subsystem/TrailsPanel.d.ts.map +1 -1
  17. package/dist/subsystem/TrailsPanel.js +8 -4
  18. package/dist/subsystem/TrailsPanel.js.map +1 -1
  19. package/dist/subsystem/c4.d.ts +24 -86
  20. package/dist/subsystem/c4.d.ts.map +1 -1
  21. package/dist/subsystem/c4.js +6 -285
  22. package/dist/subsystem/c4.js.map +1 -1
  23. package/dist/subsystem/c4Evidence.js +1 -1
  24. package/dist/subsystem/c4Evidence.js.map +1 -1
  25. package/dist/subsystem/model.d.ts +8 -0
  26. package/dist/subsystem/model.d.ts.map +1 -1
  27. package/dist/subsystem/model.js.map +1 -1
  28. package/dist/subsystem/techIcons/bun.d.ts +11 -0
  29. package/dist/subsystem/techIcons/bun.d.ts.map +1 -0
  30. package/dist/subsystem/techIcons/bun.js +11 -0
  31. package/dist/subsystem/techIcons/bun.js.map +1 -0
  32. package/dist/subsystem/techIcons/index.d.ts +36 -0
  33. package/dist/subsystem/techIcons/index.d.ts.map +1 -0
  34. package/dist/subsystem/techIcons/index.js +55 -0
  35. package/dist/subsystem/techIcons/index.js.map +1 -0
  36. package/dist/subsystem/techIcons/node.d.ts +12 -0
  37. package/dist/subsystem/techIcons/node.d.ts.map +1 -0
  38. package/dist/subsystem/techIcons/node.js +39 -0
  39. package/dist/subsystem/techIcons/node.js.map +1 -0
  40. package/dist/subsystem/techIcons/react.d.ts +12 -0
  41. package/dist/subsystem/techIcons/react.d.ts.map +1 -0
  42. package/dist/subsystem/techIcons/react.js +19 -0
  43. package/dist/subsystem/techIcons/react.js.map +1 -0
  44. package/dist/utils/elkLayout.d.ts.map +1 -1
  45. package/dist/utils/elkLayout.js +16 -5
  46. package/dist/utils/elkLayout.js.map +1 -1
  47. package/package.json +3 -3
  48. package/src/index.ts +4 -6
  49. package/src/stories/Subsystem/C4Graph/C4Container.stories.tsx +212 -0
  50. package/src/stories/Subsystem/C4Graph/C4NodeGallery.stories.tsx +20 -10
  51. package/src/stories/Subsystem/ComponentGraph/IssueOverlay.stories.tsx +4 -2
  52. package/src/subsystem/C4Graph.tsx +127 -12
  53. package/src/subsystem/C4NodeCard.test.ts +71 -77
  54. package/src/subsystem/C4NodeCard.tsx +65 -95
  55. package/src/subsystem/SubsystemComponentGraph.tsx +0 -6
  56. package/src/subsystem/TrailsPanel.tsx +10 -5
  57. package/src/subsystem/c4.ts +23 -357
  58. package/src/subsystem/c4Evidence.test.ts +1 -1
  59. package/src/subsystem/c4Evidence.ts +1 -1
  60. package/src/subsystem/model.ts +8 -0
  61. package/src/subsystem/techIcons/bun.ts +10 -0
  62. package/src/subsystem/techIcons/index.tsx +73 -0
  63. package/src/subsystem/techIcons/node.ts +38 -0
  64. package/src/subsystem/techIcons/react.ts +18 -0
  65. package/src/subsystem/techIcons/techIcons.test.ts +39 -0
  66. package/src/utils/elkLayout.ts +16 -5
  67. package/dist/stories/Subsystem/C4Graph/c4ProposedElements.fixture.d.ts +0 -493
  68. package/dist/stories/Subsystem/C4Graph/c4ProposedElements.fixture.d.ts.map +0 -1
  69. package/dist/stories/Subsystem/C4Graph/c4ProposedElements.fixture.js +0 -329
  70. package/dist/stories/Subsystem/C4Graph/c4ProposedElements.fixture.js.map +0 -1
  71. package/src/stories/Subsystem/C4Graph/ProposedElements.stories.tsx +0 -293
  72. package/src/stories/Subsystem/C4Graph/c4ProposedElements.fixture.ts +0 -366
  73. package/src/subsystem/c4.test.ts +0 -573
@@ -10,7 +10,7 @@ import type { Node, Edge } from '@xyflow/react';
10
10
  import {
11
11
  EDGE_LABEL_WIDTH,
12
12
  EDGE_LABEL_HEIGHT,
13
- EDGE_LABEL_SIDE_PADDING,
13
+ EDGE_LABEL_EDGE_GAP,
14
14
  } from './edgeLabel';
15
15
 
16
16
  /** ELK layout options for different routing styles */
@@ -707,13 +707,24 @@ export async function computeElkLayout(
707
707
  // edge by ~13px) plus a gap before the first child.
708
708
  'elk.padding': '[top=64,left=24,bottom=24,right=24]',
709
709
  'elk.spacing.nodeNode': '40',
710
- // Edges inside a frame host labels too: ELK applies this on both sides of
711
- // the reserved label layer, so it is the per-side clearance (same as root).
712
- // Labels off falls back to a plain between-layer gap.
710
+ // Edges inside a frame host labels too, so the frame's own layout has to
711
+ // reserve the same room the root does — otherwise a nested graph (C4 puts
712
+ // every box in the system frame) lays its edges out with the label space
713
+ // ignored, and a 140px chip overflows a ~72px gap. `EDGE_LABEL_EDGE_GAP` is
714
+ // the full reserved width (label box + clearance at each end); labels off
715
+ // falls back to a plain between-layer gap.
713
716
  'elk.layered.spacing.nodeNodeBetweenLayers': String(
714
- edgeLabels?.enabled === false ? 40 : EDGE_LABEL_SIDE_PADDING,
717
+ edgeLabels?.enabled === false ? 40 : EDGE_LABEL_EDGE_GAP,
715
718
  ),
716
719
  };
720
+ // Match the root's inline-label reservation, so ELK inside the frame leaves a
721
+ // dedicated label layer rather than routing straight through the chip.
722
+ if (edgeLabels?.enabled !== false) {
723
+ const placement = edgeLabels?.placement ?? 'CENTER';
724
+ compoundLayoutOptions['elk.edgeLabels.inline'] = 'true';
725
+ compoundLayoutOptions['elk.edgeLabels.inlinePlacement'] = placement;
726
+ compoundLayoutOptions['elk.layered.edgeLabels.centerLabelPlacementStrategy'] = 'CENTER_LAYER';
727
+ }
717
728
 
718
729
  const plan = planCompoundGroups(groupDefs, elkById.keys(), keepSingletonGroups);
719
730
  const skippedGroups = new Set(plan.skipped);
@@ -1,493 +0,0 @@
1
- /**
2
- * A proposed C4 element set — what an agent's output looks like.
3
- *
4
- * Hand-authored on purpose. The previous fixture was *generated* from live
5
- * store data by converting each `process` value into a container, which is the
6
- * thing we no longer believe: `process` says where code runs, not which runs
7
- * of code are one deployable unit.
8
- *
9
- * Everything below is a claim, and each carries a `rationale` saying why. All
10
- * of it is `proposed` — accepting is a human's decision.
11
- *
12
- * Three of these are deliberately wrong, and `c4OpenQuestions` surfaces them:
13
- * `container:shared-ui` is a library pretending to be a deployable unit,
14
- * `container:in-memory-state` is process-lifetime state pretending to be a
15
- * container, and `external:opencode-db` is a boundary two models disagree on.
16
- */
17
- import type { C4Element } from '../../../subsystem/c4';
18
- export declare const c4ProposedElements: C4Element[];
19
- /**
20
- * A small document the elements above can be drawn against: the member aliases
21
- * resolved, plus one trail so there is a line to draw.
22
- *
23
- * Only members named by an element appear. A component nobody claimed is
24
- * deliberately absent — `buildC4Model` reports those as `unmapped` instead of
25
- * inventing a home for them.
26
- */
27
- export declare const c4FixtureDocument: {
28
- readonly components: readonly [{
29
- readonly alias: "store-create";
30
- readonly name: "createSubsystemModel";
31
- readonly construct: "function";
32
- readonly file: "packages/subsystems-studio/src/bun/subsystem-model-store.ts";
33
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/subsystem-model-store.ts";
34
- }, {
35
- readonly alias: "store-list";
36
- readonly name: "listSubsystemModels";
37
- readonly construct: "function";
38
- readonly file: "packages/subsystems-studio/src/bun/subsystem-model-store.ts";
39
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/subsystem-model-store.ts";
40
- }, {
41
- readonly alias: "verify-files";
42
- readonly name: "verifyModelFiles";
43
- readonly construct: "function";
44
- readonly file: "packages/subsystems-studio/src/bun/subsystem-model-store.ts";
45
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/subsystem-model-store.ts";
46
- }, {
47
- readonly alias: "resolve-root";
48
- readonly name: "resolveRepoRootForComponent";
49
- readonly construct: "function";
50
- readonly file: "packages/subsystems-studio/src/bun/subsystem-model-store.ts";
51
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/subsystem-model-store.ts";
52
- }, {
53
- readonly alias: "audit-model";
54
- readonly name: "auditSubsystemModel";
55
- readonly construct: "function";
56
- readonly file: "packages/subsystems-studio/src/bun/verify-subsystem-component.ts";
57
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/verify-subsystem-component.ts";
58
- }, {
59
- readonly alias: "http-put";
60
- readonly name: "handleSubsystemModelRequest";
61
- readonly construct: "function";
62
- readonly file: "packages/subsystems-studio/src/bun/http-server.ts";
63
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/http-server.ts";
64
- }, {
65
- readonly alias: "http-propose";
66
- readonly name: "postSubsystemModelProposal";
67
- readonly construct: "function";
68
- readonly file: "packages/subsystems-studio/src/bun/proposal-store.ts";
69
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/proposal-store.ts";
70
- }, {
71
- readonly alias: "register-roots";
72
- readonly name: "registerRepoRoots";
73
- readonly construct: "function";
74
- readonly file: "packages/subsystems-studio/src/bun/alexandria.ts";
75
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/alexandria.ts";
76
- }, {
77
- readonly alias: "tab-registry";
78
- readonly name: "tabs";
79
- readonly construct: "store";
80
- readonly file: "packages/subsystems-studio/src/bun/index.ts";
81
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/index.ts";
82
- readonly declaration: {
83
- readonly kind: "store";
84
- readonly storage: "memory";
85
- readonly properties: readonly [];
86
- };
87
- }, {
88
- readonly alias: "live-feed-store";
89
- readonly name: "OpencodeLiveFeedState";
90
- readonly construct: "store";
91
- readonly file: "packages/subsystems-studio/src/bun/opencode-v2-live.ts";
92
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/opencode-v2-live.ts";
93
- readonly declaration: {
94
- readonly kind: "store";
95
- readonly storage: "memory";
96
- readonly properties: readonly [];
97
- };
98
- }, {
99
- readonly alias: "maintain-probe-registry";
100
- readonly name: "MaintainerProbeRegistry";
101
- readonly construct: "store";
102
- readonly file: "packages/subsystems-studio/src/bun/maintainer-probe.ts";
103
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/maintainer-probe.ts";
104
- readonly declaration: {
105
- readonly kind: "store";
106
- readonly storage: "memory";
107
- readonly properties: readonly [];
108
- };
109
- }, {
110
- readonly alias: "run-store";
111
- readonly name: "SubsystemModelRunStore";
112
- readonly construct: "store";
113
- readonly file: "packages/subsystems-studio/src/bun/subsystem-model-runs.ts";
114
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/subsystem-model-runs.ts";
115
- readonly declaration: {
116
- readonly kind: "store";
117
- readonly storage: "disk";
118
- readonly properties: readonly [];
119
- };
120
- }, {
121
- readonly alias: "graphify-store";
122
- readonly name: "ensureCaches";
123
- readonly construct: "function";
124
- readonly file: "packages/subsystems-studio/src/bun/graphify-store.ts";
125
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/graphify-store.ts";
126
- }, {
127
- readonly alias: "proposal-create";
128
- readonly name: "createSubsystemModelProposal";
129
- readonly construct: "function";
130
- readonly file: "packages/subsystems-studio/src/bun/proposal-store.ts";
131
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/proposal-store.ts";
132
- }, {
133
- readonly alias: "proposal-accept";
134
- readonly name: "acceptSubsystemModelProposal";
135
- readonly construct: "function";
136
- readonly file: "packages/subsystems-studio/src/bun/proposal-store.ts";
137
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/proposal-store.ts";
138
- }, {
139
- readonly alias: "maintain-orchestrator";
140
- readonly name: "maintainSubsystemModel";
141
- readonly construct: "function";
142
- readonly file: "packages/subsystems-studio/src/bun/maintain-model.ts";
143
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/maintain-model.ts";
144
- }, {
145
- readonly alias: "run-maintain-agent";
146
- readonly name: "runMaintainAgent";
147
- readonly construct: "function";
148
- readonly file: "packages/subsystems-studio/src/bun/maintain-model.ts";
149
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/maintain-model.ts";
150
- }, {
151
- readonly alias: "ensure-graphify";
152
- readonly name: "ensureCaches";
153
- readonly construct: "function";
154
- readonly file: "packages/subsystems-studio/src/bun/graphify-store.ts";
155
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/graphify-store.ts";
156
- }, {
157
- readonly alias: "store-file";
158
- readonly name: "writeFile";
159
- readonly construct: "function";
160
- readonly file: "packages/subsystems-studio/src/bun/subsystem-model-store.ts";
161
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/subsystem-model-store.ts";
162
- }, {
163
- readonly alias: "read-file";
164
- readonly name: "readSubsystemFile";
165
- readonly construct: "function";
166
- readonly file: "packages/subsystems-studio/src/bun/index.ts";
167
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/index.ts";
168
- }, {
169
- readonly alias: "close-tab";
170
- readonly name: "closeTabById";
171
- readonly construct: "function";
172
- readonly file: "packages/subsystems-studio/src/bun/index.ts";
173
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/index.ts";
174
- }, {
175
- readonly alias: "open-tab";
176
- readonly name: "openSubsystemModelTab";
177
- readonly construct: "function";
178
- readonly file: "packages/subsystems-studio/src/bun/index.ts";
179
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/index.ts";
180
- }, {
181
- readonly alias: "subsystems-view";
182
- readonly name: "SubsystemsModelsView";
183
- readonly construct: "function";
184
- readonly file: "packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx";
185
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx";
186
- }, {
187
- readonly alias: "model-view";
188
- readonly name: "SubsystemModelView";
189
- readonly construct: "function";
190
- readonly file: "packages/subsystems-studio/src/mainview/views/SubsystemModelView.tsx";
191
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/views/SubsystemModelView.tsx";
192
- }, {
193
- readonly alias: "regular-audit-view";
194
- readonly name: "RegularAuditView";
195
- readonly construct: "function";
196
- readonly file: "packages/subsystems-studio/src/mainview/views/SubsystemModelView.tsx";
197
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/views/SubsystemModelView.tsx";
198
- }, {
199
- readonly alias: "list-view";
200
- readonly name: "listView";
201
- readonly construct: "function";
202
- readonly file: "packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx";
203
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx";
204
- }, {
205
- readonly alias: "file-panel";
206
- readonly name: "FilePanel";
207
- readonly construct: "function";
208
- readonly file: "packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx";
209
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx";
210
- }, {
211
- readonly alias: "rpc-bridge";
212
- readonly name: "electrobun";
213
- readonly construct: "store";
214
- readonly file: "packages/subsystems-studio/src/mainview/rpc.ts";
215
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/rpc.ts";
216
- readonly declaration: {
217
- readonly kind: "store";
218
- readonly properties: readonly [];
219
- };
220
- }, {
221
- readonly alias: "reload-subs";
222
- readonly name: "reloadSubscribers";
223
- readonly construct: "store";
224
- readonly file: "packages/subsystems-studio/src/mainview/rpc.ts";
225
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/rpc.ts";
226
- readonly declaration: {
227
- readonly kind: "store";
228
- readonly properties: readonly [];
229
- };
230
- }, {
231
- readonly alias: "regular-audit-subscribers";
232
- readonly name: "regularAuditChangeSubscribers";
233
- readonly construct: "store";
234
- readonly file: "packages/subsystems-studio/src/mainview/rpc.ts";
235
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/rpc.ts";
236
- readonly declaration: {
237
- readonly kind: "store";
238
- readonly properties: readonly [];
239
- };
240
- }, {
241
- readonly alias: "app-shell";
242
- readonly name: "App";
243
- readonly construct: "function";
244
- readonly file: "packages/subsystems-studio/src/mainview/App.tsx";
245
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/App.tsx";
246
- }, {
247
- readonly alias: "tab-strip";
248
- readonly name: "TabStrip";
249
- readonly construct: "function";
250
- readonly file: "packages/subsystems-studio/src/mainview/components/TabStrip.tsx";
251
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/components/TabStrip.tsx";
252
- }, {
253
- readonly alias: "graph-view";
254
- readonly name: "SubsystemComponentGraph";
255
- readonly construct: "function";
256
- readonly file: "packages/subsystems-react/src/subsystem/SubsystemComponentGraph.tsx";
257
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-react/src/subsystem/SubsystemComponentGraph.tsx";
258
- }, {
259
- readonly alias: "detail-graph";
260
- readonly name: "DetailGraph";
261
- readonly construct: "function";
262
- readonly file: "packages/subsystems-react/src/subsystem/SubsystemComponentGraph.tsx";
263
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-react/src/subsystem/SubsystemComponentGraph.tsx";
264
- }, {
265
- readonly alias: "is-model-viewed";
266
- readonly name: "isModelViewed";
267
- readonly construct: "function";
268
- readonly file: "packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx";
269
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx";
270
- }, {
271
- readonly alias: "preloadHighlighter";
272
- readonly name: "preloadHighlighter";
273
- readonly construct: "external";
274
- readonly file: "";
275
- readonly purl: "pkg:npm/@pierre/diffs";
276
- }, {
277
- readonly alias: "SharedHighlighter";
278
- readonly name: "SharedHighlighter";
279
- readonly construct: "external";
280
- readonly file: "";
281
- readonly purl: "pkg:npm/@pierre/diffs";
282
- }, {
283
- readonly alias: "CodeView";
284
- readonly name: "CodeView";
285
- readonly construct: "external";
286
- readonly file: "";
287
- readonly purl: "pkg:npm/@pierre/diffs";
288
- }, {
289
- readonly alias: "cli-create";
290
- readonly name: "create";
291
- readonly construct: "function";
292
- readonly file: "packages/principal-studio-cli/src/commands/subsystem-model.ts";
293
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/principal-studio-cli/src/commands/subsystem-model.ts";
294
- }, {
295
- readonly alias: "nest-groups";
296
- readonly name: "nestCompoundGroups";
297
- readonly construct: "function";
298
- readonly file: "packages/subsystems-react/src/utils/elkLayout.ts";
299
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-react/src/utils/elkLayout.ts";
300
- }, {
301
- readonly alias: "build-boundary-layout";
302
- readonly name: "buildBoundaryLayoutGroups";
303
- readonly construct: "function";
304
- readonly file: "packages/subsystems-react/src/subsystem/model.ts";
305
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-react/src/subsystem/model.ts";
306
- }, {
307
- readonly alias: "measured-dims";
308
- readonly name: "measuredDimsRef";
309
- readonly construct: "store";
310
- readonly file: "packages/subsystems-react/src/subsystem/SubsystemComponentGraph.tsx";
311
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-react/src/subsystem/SubsystemComponentGraph.tsx";
312
- readonly declaration: {
313
- readonly kind: "store";
314
- readonly properties: readonly [];
315
- };
316
- }, {
317
- readonly alias: "model-disk-store";
318
- readonly name: "~/.principal/subsystem-models";
319
- readonly construct: "store";
320
- readonly file: "";
321
- readonly purl: "external:file:~/.principal/subsystem-models";
322
- readonly declaration: {
323
- readonly kind: "store";
324
- readonly storage: "disk";
325
- readonly properties: readonly [];
326
- };
327
- }, {
328
- readonly alias: "proposals-store";
329
- readonly name: "SubsystemModelProposalStore";
330
- readonly construct: "store";
331
- readonly file: "packages/subsystems-studio/src/bun/proposal-store.ts";
332
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/proposal-store.ts";
333
- readonly declaration: {
334
- readonly kind: "store";
335
- readonly storage: "disk";
336
- readonly properties: readonly [];
337
- };
338
- }, {
339
- readonly alias: "opencode-v2-service";
340
- readonly name: "OpenCode v2 service";
341
- readonly construct: "external";
342
- readonly file: "";
343
- readonly purl: "external:opencode/v2-service";
344
- }, {
345
- readonly alias: "github-gists-api";
346
- readonly name: "GitHub Gists API";
347
- readonly construct: "external";
348
- readonly file: "";
349
- readonly purl: "external:api.github.com/gists";
350
- }, {
351
- readonly alias: "session-v2";
352
- readonly name: "session_v2";
353
- readonly construct: "external";
354
- readonly file: "";
355
- readonly purl: "external:opencode.db/session-v2";
356
- }, {
357
- readonly alias: "event";
358
- readonly name: "event";
359
- readonly construct: "external";
360
- readonly file: "";
361
- readonly purl: "external:opencode.db/event";
362
- }, {
363
- readonly alias: "session-message";
364
- readonly name: "session_message";
365
- readonly construct: "external";
366
- readonly file: "";
367
- readonly purl: "external:opencode.db/session-message";
368
- }, {
369
- readonly alias: "renderer-probe-cache";
370
- readonly name: "rendererProbeCache";
371
- readonly construct: "store";
372
- readonly file: "packages/subsystems-studio/src/mainview/rpc.ts";
373
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/rpc.ts";
374
- readonly declaration: {
375
- readonly kind: "store";
376
- readonly storage: "memory";
377
- readonly properties: readonly [];
378
- };
379
- }, {
380
- readonly alias: "tab-order-cache";
381
- readonly name: "tabOrderCache";
382
- readonly construct: "store";
383
- readonly file: "packages/subsystems-studio/src/mainview/components/TabStrip.tsx";
384
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/components/TabStrip.tsx";
385
- readonly declaration: {
386
- readonly kind: "store";
387
- readonly storage: "memory";
388
- readonly properties: readonly [];
389
- };
390
- }, {
391
- readonly alias: "maintain-agent";
392
- readonly name: "Maintenance agent (OpenCode) session";
393
- readonly construct: "custom_entity";
394
- readonly file: "";
395
- readonly purl: "external";
396
- }];
397
- readonly trails: readonly [{
398
- readonly id: "tl-audit";
399
- readonly title: "Run a dry-run audit from the Audit button";
400
- readonly steps: readonly [{
401
- readonly from: "model-view";
402
- readonly to: "audit-model";
403
- readonly mechanism: "calls";
404
- readonly file: "packages/subsystems-studio/src/mainview/views/SubsystemModelView.tsx";
405
- readonly line: 443;
406
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/views/SubsystemModelView.tsx";
407
- readonly symbol: "SubsystemModelView";
408
- }, {
409
- readonly from: "audit-model";
410
- readonly to: "model-disk-store";
411
- readonly mechanism: "writes";
412
- readonly file: "packages/subsystems-studio/src/bun/verify-subsystem-component.ts";
413
- readonly line: 950;
414
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/verify-subsystem-component.ts";
415
- readonly symbol: "auditSubsystemModel";
416
- }, {
417
- readonly from: "subsystems-view";
418
- readonly to: "model-view";
419
- readonly mechanism: "feeds";
420
- readonly file: "packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx";
421
- readonly line: 1152;
422
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx";
423
- readonly symbol: "openSubsystemModel";
424
- }, {
425
- readonly from: "subsystems-view";
426
- readonly to: "file-panel";
427
- readonly mechanism: "uses";
428
- readonly file: "packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx";
429
- readonly line: 958;
430
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/mainview/views/SubsystemModelsView.tsx";
431
- readonly symbol: "onShowAuditReport";
432
- }];
433
- }, {
434
- readonly id: "tl-maintain";
435
- readonly title: "Maintain run posts a correction proposal";
436
- readonly steps: readonly [{
437
- readonly from: "maintain-orchestrator";
438
- readonly to: "run-maintain-agent";
439
- readonly mechanism: "calls";
440
- readonly file: "packages/subsystems-studio/src/bun/maintain-model.ts";
441
- readonly line: 854;
442
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/maintain-model.ts";
443
- readonly symbol: "maintainSubsystemModel";
444
- }, {
445
- readonly from: "run-maintain-agent";
446
- readonly to: "opencode-v2-service";
447
- readonly mechanism: "calls";
448
- readonly file: "packages/subsystems-studio/src/bun/maintain-model.ts";
449
- readonly line: 651;
450
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/maintain-model.ts";
451
- readonly symbol: "runMaintainAgent";
452
- }, {
453
- readonly from: "opencode-v2-service";
454
- readonly to: "maintain-agent";
455
- readonly mechanism: "feeds";
456
- readonly file: "packages/subsystems-studio/src/bun/maintain-model.ts";
457
- readonly line: 650;
458
- readonly purl: "external:opencode/v2-service#packages/subsystems-studio/src/bun/maintain-model.ts";
459
- readonly symbol: "runMaintainAgent";
460
- }, {
461
- readonly from: "http-propose";
462
- readonly to: "proposal-create";
463
- readonly mechanism: "calls";
464
- readonly file: "packages/subsystems-studio/src/bun/http-server.ts";
465
- readonly line: 404;
466
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/http-server.ts";
467
- readonly symbol: "handleSubsystemModelRequest";
468
- }, {
469
- readonly from: "proposal-create";
470
- readonly to: "proposals-store";
471
- readonly mechanism: "writes";
472
- readonly file: "packages/subsystems-studio/src/bun/proposal-store.ts";
473
- readonly line: 554;
474
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/proposal-store.ts";
475
- readonly symbol: "createSubsystemModelProposal";
476
- }, {
477
- readonly from: "maintain-orchestrator";
478
- readonly to: "run-store";
479
- readonly mechanism: "writes";
480
- readonly file: "packages/subsystems-studio/src/bun/maintain-model.ts";
481
- readonly line: 892;
482
- readonly purl: "pkg:github/acme/subsystem-modeling#packages/subsystems-studio/src/bun/maintain-model.ts";
483
- readonly symbol: "noteSubsystemModelRunStart";
484
- }];
485
- }];
486
- };
487
- /** Elements the author is asking a question about, surfaced in the story. */
488
- export declare const c4OpenQuestions: {
489
- id: string;
490
- label: string;
491
- rationale: string;
492
- }[];
493
- //# sourceMappingURL=c4ProposedElements.fixture.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"c4ProposedElements.fixture.d.ts","sourceRoot":"","sources":["../../../../src/stories/Subsystem/C4Graph/c4ProposedElements.fixture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAIvD,eAAO,MAAM,kBAAkB,EAAE,SAAS,EAqPzC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFpB,CAAC;AAEX,6EAA6E;AAC7E,eAAO,MAAM,eAAe;;;;GAE0C,CAAC"}