@principal-ai/subsystems-react 0.56.24 → 0.56.25

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 (125) hide show
  1. package/dist/index.d.ts +7 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +4 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/stories/Canvases/Subsystem/issuesFixtures.d.ts +4 -0
  6. package/dist/stories/Canvases/Subsystem/issuesFixtures.d.ts.map +1 -0
  7. package/dist/stories/Canvases/Subsystem/issuesFixtures.js +189 -0
  8. package/dist/stories/Canvases/Subsystem/issuesFixtures.js.map +1 -0
  9. package/dist/stories/Canvases/Subsystem/reorderFixtures.d.ts +8 -0
  10. package/dist/stories/Canvases/Subsystem/reorderFixtures.d.ts.map +1 -0
  11. package/dist/stories/Canvases/Subsystem/reorderFixtures.js +103 -0
  12. package/dist/stories/Canvases/Subsystem/reorderFixtures.js.map +1 -0
  13. package/dist/subsystem/C4ContainersPanel.d.ts +35 -0
  14. package/dist/subsystem/C4ContainersPanel.d.ts.map +1 -0
  15. package/dist/subsystem/C4ContainersPanel.js +165 -0
  16. package/dist/subsystem/C4ContainersPanel.js.map +1 -0
  17. package/dist/subsystem/C4NodeCard.d.ts.map +1 -1
  18. package/dist/subsystem/C4NodeCard.js +10 -4
  19. package/dist/subsystem/C4NodeCard.js.map +1 -1
  20. package/dist/subsystem/C4ProjectionView.d.ts.map +1 -1
  21. package/dist/subsystem/C4ProjectionView.js +81 -27
  22. package/dist/subsystem/C4ProjectionView.js.map +1 -1
  23. package/dist/subsystem/C4SketchView.d.ts.map +1 -1
  24. package/dist/subsystem/C4SketchView.js +53 -34
  25. package/dist/subsystem/C4SketchView.js.map +1 -1
  26. package/dist/subsystem/DescriptionOverlay.d.ts +10 -2
  27. package/dist/subsystem/DescriptionOverlay.d.ts.map +1 -1
  28. package/dist/subsystem/DescriptionOverlay.js +4 -4
  29. package/dist/subsystem/DescriptionOverlay.js.map +1 -1
  30. package/dist/subsystem/DescriptionPreview.d.ts +31 -0
  31. package/dist/subsystem/DescriptionPreview.d.ts.map +1 -0
  32. package/dist/subsystem/DescriptionPreview.js +31 -0
  33. package/dist/subsystem/DescriptionPreview.js.map +1 -0
  34. package/dist/subsystem/SubsystemComponentGraph.d.ts.map +1 -1
  35. package/dist/subsystem/SubsystemComponentGraph.js +3 -19
  36. package/dist/subsystem/SubsystemComponentGraph.js.map +1 -1
  37. package/dist/subsystem/__fixtures__/c4Sketch.d.ts.map +1 -1
  38. package/dist/subsystem/__fixtures__/c4Sketch.js +1 -0
  39. package/dist/subsystem/__fixtures__/c4Sketch.js.map +1 -1
  40. package/dist/subsystem/__fixtures__/c4SketchGallery.d.ts +27 -0
  41. package/dist/subsystem/__fixtures__/c4SketchGallery.d.ts.map +1 -0
  42. package/dist/subsystem/__fixtures__/c4SketchGallery.js +312 -0
  43. package/dist/subsystem/__fixtures__/c4SketchGallery.js.map +1 -0
  44. package/dist/subsystem/__fixtures__/c4Sketches/maintenance-bridge.json +777 -0
  45. package/dist/subsystem/__fixtures__/c4Sketches/openbot.json +886 -0
  46. package/dist/subsystem/c4Sketch.d.ts +12 -0
  47. package/dist/subsystem/c4Sketch.d.ts.map +1 -1
  48. package/dist/subsystem/c4Sketch.js +2 -1
  49. package/dist/subsystem/c4Sketch.js.map +1 -1
  50. package/dist/subsystem/containerCard.d.ts +3 -1
  51. package/dist/subsystem/containerCard.d.ts.map +1 -1
  52. package/dist/subsystem/containerCard.js +2 -2
  53. package/dist/subsystem/containerCard.js.map +1 -1
  54. package/dist/subsystem/techIcons/index.d.ts +3 -1
  55. package/dist/subsystem/techIcons/index.d.ts.map +1 -1
  56. package/dist/subsystem/techIcons/index.js +2 -2
  57. package/dist/subsystem/techIcons/index.js.map +1 -1
  58. package/package.json +1 -1
  59. package/src/index.ts +10 -0
  60. package/src/stories/Canvases/C4/C4CardGrow.stories.tsx +1 -1
  61. package/src/stories/Canvases/C4/C4Component.stories.tsx +1 -1
  62. package/src/stories/Canvases/C4/C4Container.stories.tsx +1 -1
  63. package/src/stories/Canvases/C4/C4Draft.stories.tsx +1 -1
  64. package/src/stories/Canvases/C4/C4NodeGallery.stories.tsx +1 -1
  65. package/src/stories/Canvases/C4/C4Sketch.stories.tsx +56 -4
  66. package/src/stories/Canvases/C4/C4ToComponentDrill.stories.tsx +1 -1
  67. package/src/stories/Canvases/C4/C4Transition.stories.tsx +1 -1
  68. package/src/stories/Canvases/Subsystem/AnimatedProgression.stories.tsx +1 -1
  69. package/src/stories/Canvases/Subsystem/Appearance.stories.tsx +1 -1
  70. package/src/stories/Canvases/Subsystem/Basics.stories.tsx +1 -1
  71. package/src/stories/Canvases/Subsystem/Captures.stories.tsx +1 -1
  72. package/src/stories/Canvases/Subsystem/Constructs.stories.tsx +3 -7
  73. package/src/stories/Canvases/Subsystem/ConstructsEmbed.stories.tsx +27 -0
  74. package/src/stories/Canvases/Subsystem/ContainerFrames.stories.tsx +1 -1
  75. package/src/stories/Canvases/Subsystem/CustomEntities.stories.tsx +1 -1
  76. package/src/stories/Canvases/Subsystem/Deprecated.stories.tsx +2 -100
  77. package/src/stories/Canvases/Subsystem/DeprecatedGraph.stories.tsx +124 -0
  78. package/src/stories/Canvases/Subsystem/DetailPanel.stories.tsx +1 -1
  79. package/src/stories/Canvases/Subsystem/Diagnostics.stories.tsx +1 -43
  80. package/src/stories/Canvases/Subsystem/DiagnosticsStates.stories.tsx +63 -0
  81. package/src/stories/Canvases/Subsystem/EdgeViews.stories.tsx +1 -1
  82. package/src/stories/Canvases/Subsystem/FrameworkStereotype.stories.tsx +1 -1
  83. package/src/stories/Canvases/Subsystem/GraphTitle.stories.tsx +1 -19
  84. package/src/stories/Canvases/Subsystem/GraphTitleGraph.stories.tsx +51 -0
  85. package/src/stories/Canvases/Subsystem/Issues.stories.tsx +3 -228
  86. package/src/stories/Canvases/Subsystem/IssuesList.stories.tsx +60 -0
  87. package/src/stories/Canvases/Subsystem/LayoutDirection.stories.tsx +1 -1
  88. package/src/stories/Canvases/Subsystem/ModuleBadges.stories.tsx +3 -61
  89. package/src/stories/Canvases/Subsystem/ModuleBadgesNode.stories.tsx +81 -0
  90. package/src/stories/Canvases/Subsystem/ModulePathNesting.stories.tsx +1 -1
  91. package/src/stories/Canvases/Subsystem/Modules.stories.tsx +1 -1
  92. package/src/stories/Canvases/Subsystem/NodeAnatomy.stories.tsx +1 -1
  93. package/src/stories/Canvases/Subsystem/Packages.stories.tsx +1 -1
  94. package/src/stories/Canvases/Subsystem/Presentation.stories.tsx +1 -1
  95. package/src/stories/Canvases/Subsystem/Processes.stories.tsx +1 -1
  96. package/src/stories/Canvases/Subsystem/Reorder.stories.tsx +3 -153
  97. package/src/stories/Canvases/Subsystem/ReorderPanel.stories.tsx +75 -0
  98. package/src/stories/Canvases/Subsystem/Scenarios.stories.tsx +1 -1
  99. package/src/stories/Canvases/Subsystem/Spotlights.stories.tsx +1 -1
  100. package/src/stories/Canvases/Subsystem/StepEmphasis.stories.tsx +1 -1
  101. package/src/stories/Canvases/Subsystem/StoreValueType.stories.tsx +1 -1
  102. package/src/stories/Canvases/Subsystem/TrailAutoplay.stories.tsx +1 -1
  103. package/src/stories/Canvases/Subsystem/TrailSidebarViews.stories.tsx +1 -1
  104. package/src/stories/Canvases/Subsystem/Trails.stories.tsx +1 -1
  105. package/src/stories/Canvases/Subsystem/WorkspacePackageFrames.stories.tsx +1 -1
  106. package/src/stories/Canvases/Subsystem/issuesFixtures.ts +192 -0
  107. package/src/stories/Canvases/Subsystem/reorderFixtures.tsx +125 -0
  108. package/src/subsystem/C4ContainersPanel.test.tsx +151 -0
  109. package/src/subsystem/C4ContainersPanel.tsx +315 -0
  110. package/src/subsystem/C4NodeCard.tsx +12 -4
  111. package/src/subsystem/C4ProjectionView.tsx +107 -37
  112. package/src/subsystem/C4SketchView.tsx +96 -74
  113. package/src/subsystem/DescriptionOverlay.test.tsx +2 -0
  114. package/src/subsystem/DescriptionOverlay.tsx +20 -5
  115. package/src/subsystem/DescriptionPreview.tsx +96 -0
  116. package/src/subsystem/SubsystemComponentGraph.sidebar.test.tsx +1 -1
  117. package/src/subsystem/SubsystemComponentGraph.tsx +14 -43
  118. package/src/subsystem/__fixtures__/c4Sketch.ts +2 -0
  119. package/src/subsystem/__fixtures__/c4SketchGallery.test.ts +65 -0
  120. package/src/subsystem/__fixtures__/c4SketchGallery.ts +351 -0
  121. package/src/subsystem/__fixtures__/c4Sketches/maintenance-bridge.json +777 -0
  122. package/src/subsystem/__fixtures__/c4Sketches/openbot.json +886 -0
  123. package/src/subsystem/c4Sketch.ts +13 -0
  124. package/src/subsystem/containerCard.tsx +4 -1
  125. package/src/subsystem/techIcons/index.tsx +11 -2
@@ -0,0 +1,886 @@
1
+ {
2
+ "id": "c4s-mvo9rstp-g2i006",
3
+ "title": "OpenBot architecture",
4
+ "repoKeys": [
5
+ "pkg:github/CopilotKit/openbot"
6
+ ],
7
+ "model": {
8
+ "view": "container",
9
+ "system": {
10
+ "id": "system:openbot",
11
+ "label": "OpenBot",
12
+ "repoKey": "pkg:github/CopilotKit/openbot"
13
+ },
14
+ "nodes": [
15
+ {
16
+ "kind": "container",
17
+ "id": "container:app",
18
+ "label": "OpenBot app",
19
+ "containerKind": "application",
20
+ "technology": "React 19 + Vite + TanStack Router",
21
+ "description": "Channels, Bot chat, live screen, activity, settings, and admin pages. Port 3010.",
22
+ "process": "openbot/browser",
23
+ "state": "proposed"
24
+ },
25
+ {
26
+ "kind": "container",
27
+ "id": "container:server",
28
+ "label": "OpenBot server",
29
+ "containerKind": "application",
30
+ "technology": "Bun + Hono + CopilotKit runtime",
31
+ "description": "API, auth, policy, audit, channels, coworkers, plugins, components, AG-UI runtime, and the computer gateway. Port 3001.",
32
+ "process": "openbot/server",
33
+ "state": "proposed"
34
+ },
35
+ {
36
+ "kind": "container",
37
+ "id": "container:worker",
38
+ "label": "Routines worker",
39
+ "containerKind": "application",
40
+ "technology": "Bun",
41
+ "description": "Sweeps work_items for due routines and hands each run to the server. No public port.",
42
+ "state": "proposed"
43
+ },
44
+ {
45
+ "kind": "container",
46
+ "id": "container:supervisor",
47
+ "label": "Computer supervisor",
48
+ "containerKind": "application",
49
+ "technology": "Bun + Docker Engine API",
50
+ "description": "The only process holding the Docker socket. Ensures, stops, resets, and lists one computer per Bot. Port 4300 (host 4500).",
51
+ "state": "proposed"
52
+ },
53
+ {
54
+ "kind": "container",
55
+ "id": "container:agent-computer",
56
+ "label": "Bot computer",
57
+ "containerKind": "application",
58
+ "technology": "Chromium + Bun",
59
+ "description": "One container per Bot: Chromium, /workspace, browser profile, screenshots, snapshots, file tools, shell, and egress filter. Port 4100.",
60
+ "state": "proposed"
61
+ },
62
+ {
63
+ "kind": "container",
64
+ "id": "container:agent-bot",
65
+ "label": "Built-in AG-UI Bot",
66
+ "containerKind": "application",
67
+ "technology": "Bun + OpenAI chat completions",
68
+ "description": "Proof-of-concept Bot loop. Publishes no tools of its own; tools arrive from the surface. Port 4200.",
69
+ "state": "proposed"
70
+ },
71
+ {
72
+ "kind": "container",
73
+ "id": "container:agent-langgraph",
74
+ "label": "LangGraph AG-UI Bot",
75
+ "containerKind": "application",
76
+ "technology": "LangGraph + AG-UI",
77
+ "description": "Framework Bot exposing the same AG-UI contract. Port 4201.",
78
+ "state": "proposed"
79
+ },
80
+ {
81
+ "kind": "container",
82
+ "id": "container:agent-harness",
83
+ "label": "Picked harness Bot",
84
+ "containerKind": "application",
85
+ "technology": "One of the agent-<framework> images",
86
+ "description": "The framework harness chosen during setup, behind the harness compose profile. Port 4202.",
87
+ "state": "proposed"
88
+ },
89
+ {
90
+ "kind": "container",
91
+ "id": "container:postgres",
92
+ "label": "PostgreSQL + pgvector",
93
+ "containerKind": "data-store",
94
+ "technology": "PostgreSQL 17 + pgvector",
95
+ "description": "Product data, policy, audit, credentials, grants, channels, components, and the work queue. Port 5432.",
96
+ "process": "openbot/postgres",
97
+ "state": "proposed"
98
+ },
99
+ {
100
+ "kind": "container",
101
+ "id": "container:desktop",
102
+ "label": "OpenBot desktop",
103
+ "containerKind": "application",
104
+ "technology": "Tauri 2 + React",
105
+ "description": "Desktop shell for setup, harness/provider selection, organization sign-in, and local endpoints.",
106
+ "state": "proposed"
107
+ },
108
+ {
109
+ "kind": "container",
110
+ "id": "container:mobile",
111
+ "label": "OpenBot mobile",
112
+ "containerKind": "application",
113
+ "technology": "Expo 55 + React Native",
114
+ "description": "Mobile client for channels, notifications, routines, and authentication.",
115
+ "state": "proposed"
116
+ },
117
+ {
118
+ "kind": "container",
119
+ "id": "container:spire",
120
+ "label": "SPIRE (optional)",
121
+ "containerKind": "application",
122
+ "technology": "SPIFFE / SPIRE",
123
+ "description": "Optional workload identity. Registers one entry per Bot and gives each computer an SVID.",
124
+ "state": "proposed"
125
+ },
126
+ {
127
+ "kind": "component",
128
+ "id": "component:server-runtime",
129
+ "label": "CopilotKit runtime & turn runner",
130
+ "container": "container:server",
131
+ "technology": "CopilotKit + AG-UI",
132
+ "description": "Resolves the actor and coworker, runs the turn, and streams results back to the app and Intelligence.",
133
+ "state": "proposed"
134
+ },
135
+ {
136
+ "kind": "component",
137
+ "id": "component:server-gateway",
138
+ "label": "Computer gateway",
139
+ "container": "container:server",
140
+ "technology": "Bun + CEL",
141
+ "description": "The only action boundary: resolve target, evaluate policy, write audit, then call the computer.",
142
+ "state": "proposed"
143
+ },
144
+ {
145
+ "kind": "component",
146
+ "id": "component:server-policy",
147
+ "label": "Action policy",
148
+ "container": "container:server",
149
+ "technology": "CEL + fail-closed",
150
+ "description": "Deny before allow; a missing or broken policy permits nothing. Inspects tool, target, page, file, MCP, and initiator.",
151
+ "state": "proposed"
152
+ },
153
+ {
154
+ "kind": "component",
155
+ "id": "component:server-audit",
156
+ "label": "Audit trail",
157
+ "container": "container:server",
158
+ "technology": "PostgreSQL",
159
+ "description": "Every permitted, refused, and failed action; refusals name the rule that caused them.",
160
+ "state": "proposed"
161
+ },
162
+ {
163
+ "kind": "component",
164
+ "id": "component:server-auth",
165
+ "label": "Auth & identity",
166
+ "container": "container:server",
167
+ "technology": "better-auth + SCIM/SSO",
168
+ "description": "Google, Microsoft, Okta, SAML/OIDC, SCIM, roles, sessions, and desktop sign-in.",
169
+ "state": "proposed"
170
+ },
171
+ {
172
+ "kind": "component",
173
+ "id": "component:server-channels",
174
+ "label": "Channels & threads",
175
+ "container": "container:server",
176
+ "technology": "Hono + Intelligence",
177
+ "description": "One conversation per coworker, group threads, memberships, attachments, and live channel events.",
178
+ "members": [
179
+ "channel-events"
180
+ ],
181
+ "state": "proposed"
182
+ },
183
+ {
184
+ "kind": "component",
185
+ "id": "component:server-agents",
186
+ "label": "Coworkers & handoffs",
187
+ "container": "container:server",
188
+ "technology": "Bun + AG-UI",
189
+ "description": "Bot profiles, endpoints, lifecycle, wake-up, escalation, and durable handoffs to another Bot.",
190
+ "state": "proposed"
191
+ },
192
+ {
193
+ "kind": "component",
194
+ "id": "component:server-plugins",
195
+ "label": "MCP & connectors",
196
+ "container": "container:server",
197
+ "technology": "MCP + Composio + Arcade",
198
+ "description": "Plugin catalogue, grants, shared accounts, and the MCP tool surface a Bot is allowed to see.",
199
+ "state": "proposed"
200
+ },
201
+ {
202
+ "kind": "component",
203
+ "id": "component:server-components",
204
+ "label": "Components registry",
205
+ "container": "container:server",
206
+ "technology": "React + sandboxed components",
207
+ "description": "Compiled and sandboxed UI components, publish state, per-Bot withholding, and data-function grants.",
208
+ "state": "proposed"
209
+ },
210
+ {
211
+ "kind": "component",
212
+ "id": "component:server-approvals",
213
+ "label": "Approvals & questions",
214
+ "container": "container:server",
215
+ "technology": "Bun + queue",
216
+ "description": "Person approvals, questions, resume sweeps, and approved-action execution.",
217
+ "state": "proposed"
218
+ },
219
+ {
220
+ "kind": "component",
221
+ "id": "component:server-responsibilities",
222
+ "label": "Responsibilities",
223
+ "container": "container:server",
224
+ "technology": "Bun + queue",
225
+ "description": "Standing goals, triggers, leased runs, and follow-up delivery.",
226
+ "members": [
227
+ "responsibility-engine",
228
+ "responsibility-store",
229
+ "responsibility-ingress",
230
+ "trigger-delivery",
231
+ "followup-delivery"
232
+ ],
233
+ "state": "proposed"
234
+ },
235
+ {
236
+ "kind": "component",
237
+ "id": "component:server-work",
238
+ "label": "Work queue & routines",
239
+ "container": "container:server",
240
+ "technology": "PostgreSQL work_items",
241
+ "description": "Leased queue for routine fires, responsibilities, handoffs, and idle-computer culling.",
242
+ "members": [
243
+ "work-queue",
244
+ "headless-runner",
245
+ "channel-events",
246
+ "origin-context"
247
+ ],
248
+ "state": "proposed"
249
+ },
250
+ {
251
+ "kind": "component",
252
+ "id": "component:server-principal-studio",
253
+ "label": "Principal Studio bridge",
254
+ "container": "container:server",
255
+ "technology": "Bun + HTTP",
256
+ "description": "Progress bridge between Subsystems Studio maintenance runs and OpenBot responsibilities.",
257
+ "members": [
258
+ "status-reader"
259
+ ],
260
+ "state": "proposed"
261
+ },
262
+ {
263
+ "kind": "component",
264
+ "id": "component:app-channels",
265
+ "label": "Channels & live screen",
266
+ "container": "container:app",
267
+ "technology": "React + WebSocket",
268
+ "description": "Composer, transcript, live browser screen, activity, and approvals.",
269
+ "members": [
270
+ "channel-events-client",
271
+ "principal-channel"
272
+ ],
273
+ "state": "proposed"
274
+ },
275
+ {
276
+ "kind": "component",
277
+ "id": "component:app-bots",
278
+ "label": "Bots & roster",
279
+ "container": "container:app",
280
+ "technology": "React + TanStack",
281
+ "description": "Bot list, profile, responsibilities, memory, reach, and approvals pages.",
282
+ "state": "proposed"
283
+ },
284
+ {
285
+ "kind": "component",
286
+ "id": "component:app-admin",
287
+ "label": "Admin surfaces",
288
+ "container": "container:app",
289
+ "technology": "React",
290
+ "description": "Computers, boundaries, credentials, identity providers, plugins, skills, people, and audit.",
291
+ "state": "proposed"
292
+ },
293
+ {
294
+ "kind": "component",
295
+ "id": "component:app-components",
296
+ "label": "Component gallery",
297
+ "container": "container:app",
298
+ "technology": "React + A2UI",
299
+ "description": "Compiled gallery components and the sandboxed component renderer.",
300
+ "members": [
301
+ "existing-model-cards",
302
+ "progress-card"
303
+ ],
304
+ "state": "proposed"
305
+ },
306
+ {
307
+ "kind": "component",
308
+ "id": "component:computer-browser",
309
+ "label": "Chromium runtime",
310
+ "container": "container:agent-computer",
311
+ "technology": "Playwright + screencast",
312
+ "description": "Browser sessions, navigation, snapshots, cookies, profiles, and live screencast.",
313
+ "state": "proposed"
314
+ },
315
+ {
316
+ "kind": "component",
317
+ "id": "component:computer-workspace",
318
+ "label": "Workspace & shell",
319
+ "container": "container:agent-computer",
320
+ "technology": "Bun + /workspace",
321
+ "description": "File read/write/list and shell commands, scoped to the Bot's workspace volume.",
322
+ "state": "proposed"
323
+ },
324
+ {
325
+ "kind": "component",
326
+ "id": "component:computer-egress",
327
+ "label": "Egress filter",
328
+ "container": "container:agent-computer",
329
+ "technology": "Proxy + network policy",
330
+ "description": "Applies the Bot's network policy before anything leaves; cloud metadata is always refused.",
331
+ "state": "proposed"
332
+ },
333
+ {
334
+ "kind": "component",
335
+ "id": "component:computer-control",
336
+ "label": "Human control",
337
+ "container": "container:agent-computer",
338
+ "technology": "WebSocket handover",
339
+ "description": "Help requests, control taken/released, and refusing Bot actions while a person drives.",
340
+ "state": "proposed"
341
+ },
342
+ {
343
+ "kind": "component",
344
+ "id": "component:supervisor-docker",
345
+ "label": "Computer lifecycle",
346
+ "container": "container:supervisor",
347
+ "technology": "Docker API",
348
+ "description": "Ensure, stop, reset, and list; names derive from the Bot id and nothing else is expressible.",
349
+ "state": "proposed"
350
+ },
351
+ {
352
+ "kind": "component",
353
+ "id": "component:supervisor-identity",
354
+ "label": "SPIFFE registration",
355
+ "container": "container:supervisor",
356
+ "technology": "SPIRE agent socket",
357
+ "description": "Registers one entry per Bot before handing out a computer.",
358
+ "state": "proposed"
359
+ },
360
+ {
361
+ "kind": "component",
362
+ "id": "component:worker-routines",
363
+ "label": "Routine sweep",
364
+ "container": "container:worker",
365
+ "technology": "Bun + work_items",
366
+ "description": "Offers due routines, claims work, and dispatches the run to the server with a 202 contract.",
367
+ "state": "proposed"
368
+ },
369
+ {
370
+ "kind": "component",
371
+ "id": "component:bot-loop",
372
+ "label": "AG-UI Bot loop",
373
+ "container": "container:agent-bot",
374
+ "technology": "OpenAI chat completions",
375
+ "description": "Streams a reply, ends on a tool call, and lets the surface run the tool.",
376
+ "state": "proposed"
377
+ },
378
+ {
379
+ "kind": "component",
380
+ "id": "component:langgraph-agent",
381
+ "label": "LangGraph agent",
382
+ "container": "container:agent-langgraph",
383
+ "technology": "LangGraph + AG-UI",
384
+ "description": "Framework implementation of the same Bot behavior.",
385
+ "state": "proposed"
386
+ },
387
+ {
388
+ "kind": "component",
389
+ "id": "component:harness-agent",
390
+ "label": "Picked harness",
391
+ "container": "container:agent-harness",
392
+ "technology": "Framework-specific",
393
+ "description": "Whichever agent framework the deployment selected during setup.",
394
+ "state": "proposed"
395
+ },
396
+ {
397
+ "kind": "component",
398
+ "id": "component:postgres-schema",
399
+ "label": "Product schema",
400
+ "container": "container:postgres",
401
+ "technology": "Drizzle + SQL",
402
+ "description": "Agents, profiles, channels, grants, policy, audit, credentials, and components.",
403
+ "state": "proposed"
404
+ },
405
+ {
406
+ "kind": "component",
407
+ "id": "component:postgres-queue",
408
+ "label": "Work queue",
409
+ "container": "container:postgres",
410
+ "technology": "PostgreSQL skip locked",
411
+ "description": "Leased work_items shared by routines, responsibilities, handoffs, and culling.",
412
+ "members": [
413
+ "followup-queue"
414
+ ],
415
+ "state": "proposed"
416
+ },
417
+ {
418
+ "kind": "component",
419
+ "id": "component:desktop-setup",
420
+ "label": "Desktop setup",
421
+ "container": "container:desktop",
422
+ "technology": "Tauri + React",
423
+ "description": "Harness/provider picker, organization sign-in, and local endpoint configuration.",
424
+ "state": "proposed"
425
+ },
426
+ {
427
+ "kind": "component",
428
+ "id": "component:mobile-client",
429
+ "label": "Mobile client",
430
+ "container": "container:mobile",
431
+ "technology": "Expo Router",
432
+ "description": "Channels, notifications, routines, and secure authentication.",
433
+ "state": "proposed"
434
+ },
435
+ {
436
+ "kind": "component",
437
+ "id": "component:spire-identity",
438
+ "label": "SPIRE identity plane",
439
+ "container": "container:spire",
440
+ "technology": "SPIFFE",
441
+ "description": "SVID issuance and trust-domain registration for computers.",
442
+ "state": "proposed"
443
+ },
444
+ {
445
+ "kind": "external-system",
446
+ "id": "external:intelligence",
447
+ "label": "CopilotKit Intelligence",
448
+ "technology": "Managed API + WebSocket",
449
+ "description": "Durable threads, memory, and the realtime gateway.",
450
+ "state": "proposed"
451
+ },
452
+ {
453
+ "kind": "external-system",
454
+ "id": "external:model-provider",
455
+ "label": "Model provider",
456
+ "technology": "OpenAI / Anthropic / Google API",
457
+ "description": "LLM inference. The deployment supplies the credential; no model ships in the box.",
458
+ "state": "proposed"
459
+ },
460
+ {
461
+ "kind": "external-system",
462
+ "id": "external:identity-provider",
463
+ "label": "Company identity provider",
464
+ "technology": "OIDC / SAML",
465
+ "description": "Google, Microsoft, Okta, or a registered SAML/OIDC provider routed by email domain.",
466
+ "state": "proposed"
467
+ },
468
+ {
469
+ "kind": "external-system",
470
+ "id": "external:docker",
471
+ "label": "Docker engine",
472
+ "technology": "Docker Engine API",
473
+ "description": "Creates and runs the per-Bot computer containers.",
474
+ "state": "proposed"
475
+ },
476
+ {
477
+ "kind": "external-system",
478
+ "id": "external:composio",
479
+ "label": "Composio",
480
+ "technology": "MCP / API",
481
+ "description": "Brokers hundreds of app connectors behind one account.",
482
+ "state": "proposed"
483
+ },
484
+ {
485
+ "kind": "external-system",
486
+ "id": "external:mcp-servers",
487
+ "label": "MCP servers",
488
+ "technology": "MCP",
489
+ "description": "Google Drive, Notion, Parallel, Exa, Firecrawl, and custom MCP servers.",
490
+ "state": "proposed"
491
+ },
492
+ {
493
+ "kind": "external-system",
494
+ "id": "external:messaging",
495
+ "label": "Messaging providers",
496
+ "technology": "Slack / Teams / Twilio",
497
+ "description": "Delivers Bot updates and conversations outside the app.",
498
+ "state": "proposed"
499
+ },
500
+ {
501
+ "kind": "external-system",
502
+ "id": "external:web",
503
+ "label": "Public web",
504
+ "technology": "HTTPS",
505
+ "description": "Sites a Bot browses through its computer's egress filter.",
506
+ "state": "proposed"
507
+ },
508
+ {
509
+ "kind": "person",
510
+ "id": "person:member",
511
+ "label": "Team member",
512
+ "description": "Uses channels, Bots, routines, approvals, and the live screen.",
513
+ "state": "proposed"
514
+ },
515
+ {
516
+ "kind": "person",
517
+ "id": "person:admin",
518
+ "label": "Deployment administrator",
519
+ "description": "Configures policy, credentials, identity providers, plugins, and components.",
520
+ "state": "proposed"
521
+ }
522
+ ],
523
+ "edges": [
524
+ {
525
+ "id": "e:member-app",
526
+ "source": "person:member",
527
+ "target": "container:app",
528
+ "label": "HTTPS",
529
+ "protocol": "HTTPS · browser",
530
+ "mechanisms": [
531
+ "uses"
532
+ ],
533
+ "count": 1
534
+ },
535
+ {
536
+ "id": "e:member-desktop",
537
+ "source": "person:member",
538
+ "target": "container:desktop",
539
+ "label": "HTTPS",
540
+ "protocol": "HTTPS · desktop",
541
+ "mechanisms": [
542
+ "uses"
543
+ ],
544
+ "count": 1
545
+ },
546
+ {
547
+ "id": "e:member-mobile",
548
+ "source": "person:member",
549
+ "target": "container:mobile",
550
+ "label": "HTTPS",
551
+ "protocol": "HTTPS · mobile",
552
+ "mechanisms": [
553
+ "uses"
554
+ ],
555
+ "count": 1
556
+ },
557
+ {
558
+ "id": "e:admin-app",
559
+ "source": "person:admin",
560
+ "target": "container:app",
561
+ "label": "HTTPS",
562
+ "protocol": "HTTPS · admin",
563
+ "mechanisms": [
564
+ "uses"
565
+ ],
566
+ "count": 1
567
+ },
568
+ {
569
+ "id": "e:app-server",
570
+ "source": "container:app",
571
+ "target": "container:server",
572
+ "label": "HTTP",
573
+ "protocol": "HTTPS · JSON API",
574
+ "mechanisms": [
575
+ "calls"
576
+ ],
577
+ "count": 1
578
+ },
579
+ {
580
+ "id": "e:app-server-ws",
581
+ "source": "container:app",
582
+ "target": "container:server",
583
+ "label": "WebSocket",
584
+ "protocol": "WebSocket · live channel and screen",
585
+ "mechanisms": [
586
+ "calls"
587
+ ],
588
+ "count": 1
589
+ },
590
+ {
591
+ "id": "e:desktop-server",
592
+ "source": "container:desktop",
593
+ "target": "container:server",
594
+ "label": "HTTP",
595
+ "protocol": "HTTPS · setup and sign-in",
596
+ "mechanisms": [
597
+ "calls"
598
+ ],
599
+ "count": 1
600
+ },
601
+ {
602
+ "id": "e:mobile-server",
603
+ "source": "container:mobile",
604
+ "target": "container:server",
605
+ "label": "HTTP",
606
+ "protocol": "HTTPS · channels and routines",
607
+ "mechanisms": [
608
+ "calls"
609
+ ],
610
+ "count": 1
611
+ },
612
+ {
613
+ "id": "e:server-postgres",
614
+ "source": "container:server",
615
+ "target": "container:postgres",
616
+ "label": "SQL",
617
+ "protocol": "PostgreSQL wire",
618
+ "mechanisms": [
619
+ "reads",
620
+ "writes"
621
+ ],
622
+ "count": 1
623
+ },
624
+ {
625
+ "id": "e:server-intelligence",
626
+ "source": "container:server",
627
+ "target": "external:intelligence",
628
+ "label": "HTTPS/WS",
629
+ "protocol": "Intelligence API + realtime gateway",
630
+ "mechanisms": [
631
+ "reads",
632
+ "writes"
633
+ ],
634
+ "count": 1
635
+ },
636
+ {
637
+ "id": "e:server-agent-bot",
638
+ "source": "container:server",
639
+ "target": "container:agent-bot",
640
+ "label": "AG-UI",
641
+ "protocol": "AG-UI · SSE/HTTP",
642
+ "mechanisms": [
643
+ "calls"
644
+ ],
645
+ "count": 1
646
+ },
647
+ {
648
+ "id": "e:server-agent-langgraph",
649
+ "source": "container:server",
650
+ "target": "container:agent-langgraph",
651
+ "label": "AG-UI",
652
+ "protocol": "AG-UI · SSE/HTTP",
653
+ "mechanisms": [
654
+ "calls"
655
+ ],
656
+ "count": 1
657
+ },
658
+ {
659
+ "id": "e:server-agent-harness",
660
+ "source": "container:server",
661
+ "target": "container:agent-harness",
662
+ "label": "AG-UI",
663
+ "protocol": "AG-UI · SSE/HTTP",
664
+ "mechanisms": [
665
+ "calls"
666
+ ],
667
+ "count": 1
668
+ },
669
+ {
670
+ "id": "e:server-supervisor",
671
+ "source": "container:server",
672
+ "target": "container:supervisor",
673
+ "label": "HTTP",
674
+ "protocol": "HTTPS · ensure/stop/reset/list",
675
+ "mechanisms": [
676
+ "calls"
677
+ ],
678
+ "count": 1
679
+ },
680
+ {
681
+ "id": "e:server-computer",
682
+ "source": "container:server",
683
+ "target": "container:agent-computer",
684
+ "label": "HTTP",
685
+ "protocol": "HTTPS · policy push + gateway actions",
686
+ "mechanisms": [
687
+ "calls",
688
+ "writes"
689
+ ],
690
+ "count": 1
691
+ },
692
+ {
693
+ "id": "e:supervisor-docker",
694
+ "source": "container:supervisor",
695
+ "target": "external:docker",
696
+ "label": "Docker API",
697
+ "protocol": "Docker Engine API",
698
+ "mechanisms": [
699
+ "calls"
700
+ ],
701
+ "count": 1
702
+ },
703
+ {
704
+ "id": "e:supervisor-computer",
705
+ "source": "container:supervisor",
706
+ "target": "container:agent-computer",
707
+ "label": "creates",
708
+ "protocol": "Docker container lifecycle",
709
+ "mechanisms": [
710
+ "calls"
711
+ ],
712
+ "count": 1
713
+ },
714
+ {
715
+ "id": "e:supervisor-spire",
716
+ "source": "container:supervisor",
717
+ "target": "container:spire",
718
+ "label": "register",
719
+ "protocol": "SPIRE registration API",
720
+ "mechanisms": [
721
+ "writes"
722
+ ],
723
+ "count": 1
724
+ },
725
+ {
726
+ "id": "e:computer-spire",
727
+ "source": "container:agent-computer",
728
+ "target": "container:spire",
729
+ "label": "SVID",
730
+ "protocol": "SPIFFE workload API",
731
+ "mechanisms": [
732
+ "reads"
733
+ ],
734
+ "count": 1
735
+ },
736
+ {
737
+ "id": "e:computer-web",
738
+ "source": "container:agent-computer",
739
+ "target": "external:web",
740
+ "label": "HTTPS",
741
+ "protocol": "HTTPS · browser and shell via egress filter",
742
+ "mechanisms": [
743
+ "calls"
744
+ ],
745
+ "count": 1
746
+ },
747
+ {
748
+ "id": "e:bot-model",
749
+ "source": "container:agent-bot",
750
+ "target": "external:model-provider",
751
+ "label": "LLM API",
752
+ "protocol": "HTTPS · OpenAI chat completions",
753
+ "mechanisms": [
754
+ "calls"
755
+ ],
756
+ "count": 1
757
+ },
758
+ {
759
+ "id": "e:langgraph-model",
760
+ "source": "container:agent-langgraph",
761
+ "target": "external:model-provider",
762
+ "label": "LLM API",
763
+ "protocol": "HTTPS · provider API",
764
+ "mechanisms": [
765
+ "calls"
766
+ ],
767
+ "count": 1
768
+ },
769
+ {
770
+ "id": "e:harness-model",
771
+ "source": "container:agent-harness",
772
+ "target": "external:model-provider",
773
+ "label": "LLM API",
774
+ "protocol": "HTTPS · provider API",
775
+ "mechanisms": [
776
+ "calls"
777
+ ],
778
+ "count": 1
779
+ },
780
+ {
781
+ "id": "e:server-idp",
782
+ "source": "container:server",
783
+ "target": "external:identity-provider",
784
+ "label": "OIDC/SAML",
785
+ "protocol": "OIDC / SAML / SCIM",
786
+ "mechanisms": [
787
+ "calls"
788
+ ],
789
+ "count": 1
790
+ },
791
+ {
792
+ "id": "e:server-composio",
793
+ "source": "container:server",
794
+ "target": "external:composio",
795
+ "label": "MCP/API",
796
+ "protocol": "Composio broker",
797
+ "mechanisms": [
798
+ "calls"
799
+ ],
800
+ "count": 1
801
+ },
802
+ {
803
+ "id": "e:server-mcp",
804
+ "source": "container:server",
805
+ "target": "external:mcp-servers",
806
+ "label": "MCP",
807
+ "protocol": "MCP · stdio or HTTP",
808
+ "mechanisms": [
809
+ "calls"
810
+ ],
811
+ "count": 1
812
+ },
813
+ {
814
+ "id": "e:server-messaging",
815
+ "source": "container:server",
816
+ "target": "external:messaging",
817
+ "label": "HTTP",
818
+ "protocol": "Slack / Teams / Twilio APIs",
819
+ "mechanisms": [
820
+ "calls"
821
+ ],
822
+ "count": 1
823
+ },
824
+ {
825
+ "id": "e:worker-postgres",
826
+ "source": "container:worker",
827
+ "target": "container:postgres",
828
+ "label": "SQL",
829
+ "protocol": "PostgreSQL wire · work_items",
830
+ "mechanisms": [
831
+ "reads",
832
+ "writes"
833
+ ],
834
+ "count": 1
835
+ },
836
+ {
837
+ "id": "e:worker-server",
838
+ "source": "container:worker",
839
+ "target": "container:server",
840
+ "label": "HTTP",
841
+ "protocol": "HTTPS · dispatch routine run (202)",
842
+ "mechanisms": [
843
+ "calls"
844
+ ],
845
+ "count": 1
846
+ },
847
+ {
848
+ "id": "e:runtime-gateway",
849
+ "source": "component:server-runtime",
850
+ "target": "component:server-gateway",
851
+ "label": "tool call",
852
+ "protocol": "in-process",
853
+ "mechanisms": [
854
+ "calls"
855
+ ],
856
+ "count": 1
857
+ },
858
+ {
859
+ "id": "e:gateway-policy",
860
+ "source": "component:server-gateway",
861
+ "target": "component:server-policy",
862
+ "label": "evaluate",
863
+ "protocol": "in-process CEL",
864
+ "mechanisms": [
865
+ "calls"
866
+ ],
867
+ "count": 1
868
+ },
869
+ {
870
+ "id": "e:gateway-audit",
871
+ "source": "component:server-gateway",
872
+ "target": "component:server-audit",
873
+ "label": "record",
874
+ "protocol": "PostgreSQL",
875
+ "mechanisms": [
876
+ "writes"
877
+ ],
878
+ "count": 1
879
+ }
880
+ ]
881
+ },
882
+ "author": "opencode",
883
+ "notes": "Top-down C4 sketch authored from the OpenBot README, docs/architecture.md, package layout, and docker-compose services.",
884
+ "createdAt": "2026-10-25T20:17:44.365Z",
885
+ "updatedAt": "2026-10-25T20:17:44.365Z"
886
+ }