deft-bridge 0.4.0 → 0.4.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.
@@ -0,0 +1,245 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "A2A → Grok",
5
+ "description": "Generated from graphs/acp-grok.json by tools/graphs/a2a-graphs.mjs (task graphs:a2a); do not edit. A2A clients reach this graph over the A2A server ([a2a], docs/A2A-DESIGN.md §5.3): A2A Endpoint → A2A to ACP → the ACP middle unchanged → ACP to A2A → A2A Responder. Every context works in [a2a] cwd (required) with [a2a] mcpServers. The ACP graph: Bridge's ACP agent on the Grok backend as one graph: the ACP endpoint, sessions, Grok Build (one process per session), updates and the reply (docs/FRONT-ENDS-DESIGN.md milestone 8)."
6
+ },
7
+ "nodes": [
8
+ {
9
+ "id": "endpoint",
10
+ "type": "A2A Endpoint",
11
+ "label": "A2A (HTTP)",
12
+ "config": {
13
+ "card": {
14
+ "$config": "a2a.card"
15
+ },
16
+ "interactionTimeoutMs": {
17
+ "$config": "a2a.interactionTimeoutMs"
18
+ },
19
+ "maxContexts": {
20
+ "$config": "a2a.maxContexts"
21
+ },
22
+ "contextIdleMs": {
23
+ "$config": "a2a.contextIdleMs"
24
+ },
25
+ "maxActiveTasks": {
26
+ "$config": "a2a.maxActiveTasks"
27
+ },
28
+ "maxTasks": {
29
+ "$config": "a2a.maxTasks"
30
+ },
31
+ "taskRetentionMs": {
32
+ "$config": "a2a.taskRetentionMs"
33
+ },
34
+ "maxStoredBytes": {
35
+ "$config": "a2a.maxStoredBytes"
36
+ },
37
+ "maxTaskBytes": {
38
+ "$config": "a2a.maxTaskBytes"
39
+ },
40
+ "streamBufferBytes": {
41
+ "$config": "a2a.streamBufferBytes"
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "id": "to-acp",
47
+ "type": "A2A to ACP",
48
+ "label": "A2A → ACP",
49
+ "config": {
50
+ "cwd": {
51
+ "$config": "a2a.cwd"
52
+ },
53
+ "mcpServers": {
54
+ "$config": "a2a.mcpServers",
55
+ "$default": []
56
+ }
57
+ }
58
+ },
59
+ {
60
+ "id": "acp",
61
+ "type": "ACP Normalizer",
62
+ "label": "Initialize and sessions",
63
+ "config": {
64
+ "agentName": "bridge",
65
+ "agentTitle": "Bridge",
66
+ "protocols": [1]
67
+ }
68
+ },
69
+ {
70
+ "id": "load",
71
+ "type": "Session Load",
72
+ "label": "Load session",
73
+ "config": {}
74
+ },
75
+ {
76
+ "id": "history",
77
+ "type": "History Window",
78
+ "label": "History window",
79
+ "config": {
80
+ "maxEntries": 4
81
+ }
82
+ },
83
+ {
84
+ "id": "cwd",
85
+ "type": "CWD Context",
86
+ "label": "Working directory",
87
+ "config": {}
88
+ },
89
+ {
90
+ "id": "messages",
91
+ "type": "Prompt Messages",
92
+ "label": "Messages",
93
+ "config": {}
94
+ },
95
+ {
96
+ "id": "translator",
97
+ "type": "Grok Translator",
98
+ "label": "ACP → Grok",
99
+ "config": {}
100
+ },
101
+ {
102
+ "id": "client",
103
+ "type": "Grok Client",
104
+ "label": "Grok Agent",
105
+ "config": {
106
+ "command": {
107
+ "$config": "backends.grok.command",
108
+ "$default": "grok"
109
+ },
110
+ "args": {
111
+ "$config": "backends.grok.args",
112
+ "$default": ["agent", "stdio"]
113
+ },
114
+ "env": {
115
+ "$config": "backends.grok.env"
116
+ },
117
+ "requestTimeoutMs": {
118
+ "$config": "backends.grok.requestTimeoutMs"
119
+ }
120
+ }
121
+ },
122
+ {
123
+ "id": "normalizer",
124
+ "type": "Grok Normalizer",
125
+ "label": "Normalize Response",
126
+ "config": {}
127
+ },
128
+ {
129
+ "id": "persist",
130
+ "type": "Session Persistence",
131
+ "label": "Save history",
132
+ "config": {}
133
+ },
134
+ {
135
+ "id": "project",
136
+ "type": "Update Projection",
137
+ "label": "Session updates",
138
+ "config": {}
139
+ },
140
+ {
141
+ "id": "to-a2a",
142
+ "type": "ACP to A2A",
143
+ "label": "ACP → A2A",
144
+ "config": {}
145
+ },
146
+ {
147
+ "id": "responder",
148
+ "type": "A2A Responder",
149
+ "label": "Reply",
150
+ "config": {}
151
+ },
152
+ {
153
+ "id": "telemetry",
154
+ "type": "Telemetry Sink",
155
+ "label": "Telemetry",
156
+ "config": {}
157
+ }
158
+ ],
159
+ "connections": [
160
+ {
161
+ "source": "endpoint",
162
+ "sourceOutput": "out",
163
+ "target": "to-acp",
164
+ "targetInput": "in"
165
+ },
166
+ {
167
+ "source": "to-acp",
168
+ "sourceOutput": "out",
169
+ "target": "acp",
170
+ "targetInput": "in"
171
+ },
172
+ {
173
+ "source": "acp",
174
+ "sourceOutput": "out",
175
+ "target": "load",
176
+ "targetInput": "in"
177
+ },
178
+ {
179
+ "source": "load",
180
+ "sourceOutput": "out",
181
+ "target": "history",
182
+ "targetInput": "in"
183
+ },
184
+ {
185
+ "source": "history",
186
+ "sourceOutput": "out",
187
+ "target": "cwd",
188
+ "targetInput": "in"
189
+ },
190
+ {
191
+ "source": "cwd",
192
+ "sourceOutput": "out",
193
+ "target": "messages",
194
+ "targetInput": "in"
195
+ },
196
+ {
197
+ "source": "messages",
198
+ "sourceOutput": "out",
199
+ "target": "translator",
200
+ "targetInput": "in"
201
+ },
202
+ {
203
+ "source": "translator",
204
+ "sourceOutput": "out",
205
+ "target": "client",
206
+ "targetInput": "in"
207
+ },
208
+ {
209
+ "source": "client",
210
+ "sourceOutput": "out",
211
+ "target": "normalizer",
212
+ "targetInput": "in"
213
+ },
214
+ {
215
+ "source": "normalizer",
216
+ "sourceOutput": "out",
217
+ "target": "persist",
218
+ "targetInput": "in"
219
+ },
220
+ {
221
+ "source": "persist",
222
+ "sourceOutput": "out",
223
+ "target": "project",
224
+ "targetInput": "in"
225
+ },
226
+ {
227
+ "source": "project",
228
+ "sourceOutput": "out",
229
+ "target": "to-a2a",
230
+ "targetInput": "in"
231
+ },
232
+ {
233
+ "source": "to-a2a",
234
+ "sourceOutput": "out",
235
+ "target": "responder",
236
+ "targetInput": "in"
237
+ },
238
+ {
239
+ "source": "responder",
240
+ "sourceOutput": "out",
241
+ "target": "telemetry",
242
+ "targetInput": "in"
243
+ }
244
+ ]
245
+ }
@@ -0,0 +1,156 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "A2A → Ideal",
5
+ "description": "Generated from graphs/acp-ideal.json by tools/graphs/a2a-graphs.mjs (task graphs:a2a); do not edit. A2A clients reach this graph over the A2A server ([a2a], docs/A2A-DESIGN.md §5.3): A2A Endpoint → A2A to ACP → the ACP middle unchanged → ACP to A2A → A2A Responder. Every context works in [a2a] cwd (required) with [a2a] mcpServers. The ACP graph: Ideal on the ACP front node, on the raw request (docs/FRONT-ENDS-DESIGN.md milestone 12): admission (methods, code-exec opt-in, retry receipts, the permission gate), the application-owned Ideal harness, the projection into ACP, then permissions and the reply. Ideal's permission questions pass Permission Policy (no rules here: the client decides)."
6
+ },
7
+ "nodes": [
8
+ {
9
+ "id": "endpoint",
10
+ "type": "A2A Endpoint",
11
+ "label": "A2A (HTTP)",
12
+ "config": {
13
+ "card": {
14
+ "$config": "a2a.card"
15
+ },
16
+ "interactionTimeoutMs": {
17
+ "$config": "a2a.interactionTimeoutMs"
18
+ },
19
+ "maxContexts": {
20
+ "$config": "a2a.maxContexts"
21
+ },
22
+ "contextIdleMs": {
23
+ "$config": "a2a.contextIdleMs"
24
+ },
25
+ "maxActiveTasks": {
26
+ "$config": "a2a.maxActiveTasks"
27
+ },
28
+ "maxTasks": {
29
+ "$config": "a2a.maxTasks"
30
+ },
31
+ "taskRetentionMs": {
32
+ "$config": "a2a.taskRetentionMs"
33
+ },
34
+ "maxStoredBytes": {
35
+ "$config": "a2a.maxStoredBytes"
36
+ },
37
+ "maxTaskBytes": {
38
+ "$config": "a2a.maxTaskBytes"
39
+ },
40
+ "streamBufferBytes": {
41
+ "$config": "a2a.streamBufferBytes"
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "id": "to-acp",
47
+ "type": "A2A to ACP",
48
+ "label": "A2A → ACP",
49
+ "config": {
50
+ "cwd": {
51
+ "$config": "a2a.cwd"
52
+ },
53
+ "mcpServers": {
54
+ "$config": "a2a.mcpServers",
55
+ "$default": []
56
+ }
57
+ }
58
+ },
59
+ {
60
+ "id": "admission",
61
+ "type": "Ideal Admission",
62
+ "label": "Admission",
63
+ "config": {
64
+ "sessionCodeExec": {
65
+ "$config": "backends.ideal.sessionCodeExec"
66
+ }
67
+ }
68
+ },
69
+ {
70
+ "id": "ideal",
71
+ "type": "Ideal Harness",
72
+ "label": "Ideal",
73
+ "config": {}
74
+ },
75
+ {
76
+ "id": "projection",
77
+ "type": "Ideal Projection",
78
+ "label": "Into ACP",
79
+ "config": {}
80
+ },
81
+ {
82
+ "id": "policy",
83
+ "type": "Permission Policy",
84
+ "label": "Permissions",
85
+ "config": {}
86
+ },
87
+ {
88
+ "id": "to-a2a",
89
+ "type": "ACP to A2A",
90
+ "label": "ACP → A2A",
91
+ "config": {}
92
+ },
93
+ {
94
+ "id": "responder",
95
+ "type": "A2A Responder",
96
+ "label": "Reply",
97
+ "config": {}
98
+ },
99
+ {
100
+ "id": "telemetry",
101
+ "type": "Telemetry Sink",
102
+ "label": "Telemetry",
103
+ "config": {}
104
+ }
105
+ ],
106
+ "connections": [
107
+ {
108
+ "source": "endpoint",
109
+ "sourceOutput": "out",
110
+ "target": "to-acp",
111
+ "targetInput": "in"
112
+ },
113
+ {
114
+ "source": "to-acp",
115
+ "sourceOutput": "out",
116
+ "target": "admission",
117
+ "targetInput": "in"
118
+ },
119
+ {
120
+ "source": "admission",
121
+ "sourceOutput": "out",
122
+ "target": "ideal",
123
+ "targetInput": "in"
124
+ },
125
+ {
126
+ "source": "ideal",
127
+ "sourceOutput": "out",
128
+ "target": "projection",
129
+ "targetInput": "in"
130
+ },
131
+ {
132
+ "source": "projection",
133
+ "sourceOutput": "out",
134
+ "target": "policy",
135
+ "targetInput": "in"
136
+ },
137
+ {
138
+ "source": "policy",
139
+ "sourceOutput": "out",
140
+ "target": "to-a2a",
141
+ "targetInput": "in"
142
+ },
143
+ {
144
+ "source": "to-a2a",
145
+ "sourceOutput": "out",
146
+ "target": "responder",
147
+ "targetInput": "in"
148
+ },
149
+ {
150
+ "source": "responder",
151
+ "sourceOutput": "out",
152
+ "target": "telemetry",
153
+ "targetInput": "in"
154
+ }
155
+ ]
156
+ }
@@ -0,0 +1,269 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "A2A → OpenAI",
5
+ "description": "Generated from graphs/acp-openai.json by tools/graphs/a2a-graphs.mjs (task graphs:a2a); do not edit. A2A clients reach this graph over the A2A server ([a2a], docs/A2A-DESIGN.md §5.3): A2A Endpoint → A2A to ACP → the ACP middle unchanged → ACP to A2A → A2A Responder. Every context works in [a2a] cwd (required) with [a2a] mcpServers. The ACP graph: Bridge's ACP agent on the OpenAI backend as one graph: the ACP endpoint, sessions, the OpenAI pipeline, updates and the reply (docs/FRONT-ENDS-DESIGN.md milestone 6)."
6
+ },
7
+ "nodes": [
8
+ {
9
+ "id": "endpoint",
10
+ "type": "A2A Endpoint",
11
+ "label": "A2A (HTTP)",
12
+ "config": {
13
+ "card": {
14
+ "$config": "a2a.card"
15
+ },
16
+ "interactionTimeoutMs": {
17
+ "$config": "a2a.interactionTimeoutMs"
18
+ },
19
+ "maxContexts": {
20
+ "$config": "a2a.maxContexts"
21
+ },
22
+ "contextIdleMs": {
23
+ "$config": "a2a.contextIdleMs"
24
+ },
25
+ "maxActiveTasks": {
26
+ "$config": "a2a.maxActiveTasks"
27
+ },
28
+ "maxTasks": {
29
+ "$config": "a2a.maxTasks"
30
+ },
31
+ "taskRetentionMs": {
32
+ "$config": "a2a.taskRetentionMs"
33
+ },
34
+ "maxStoredBytes": {
35
+ "$config": "a2a.maxStoredBytes"
36
+ },
37
+ "maxTaskBytes": {
38
+ "$config": "a2a.maxTaskBytes"
39
+ },
40
+ "streamBufferBytes": {
41
+ "$config": "a2a.streamBufferBytes"
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "id": "to-acp",
47
+ "type": "A2A to ACP",
48
+ "label": "A2A → ACP",
49
+ "config": {
50
+ "cwd": {
51
+ "$config": "a2a.cwd"
52
+ },
53
+ "mcpServers": {
54
+ "$config": "a2a.mcpServers",
55
+ "$default": []
56
+ }
57
+ }
58
+ },
59
+ {
60
+ "id": "acp",
61
+ "type": "ACP Normalizer",
62
+ "label": "Initialize and sessions",
63
+ "config": {
64
+ "agentName": "bridge",
65
+ "agentTitle": "Bridge",
66
+ "protocols": [1]
67
+ }
68
+ },
69
+ {
70
+ "id": "load",
71
+ "type": "Session Load",
72
+ "label": "Load session",
73
+ "config": {}
74
+ },
75
+ {
76
+ "id": "history",
77
+ "type": "History Window",
78
+ "label": "History window",
79
+ "config": {
80
+ "maxEntries": 4
81
+ }
82
+ },
83
+ {
84
+ "id": "cwd",
85
+ "type": "CWD Context",
86
+ "label": "Working directory",
87
+ "config": {}
88
+ },
89
+ {
90
+ "id": "mcp",
91
+ "type": "Session MCP Tools",
92
+ "label": "Client MCP servers",
93
+ "config": {}
94
+ },
95
+ {
96
+ "id": "messages",
97
+ "type": "Prompt Messages",
98
+ "label": "Messages",
99
+ "config": {}
100
+ },
101
+ {
102
+ "id": "translator",
103
+ "type": "OpenAI Translator",
104
+ "label": "ACP → OpenAI",
105
+ "config": {
106
+ "defaultModel": {
107
+ "$config": "backends.openai.defaultModel",
108
+ "$default": "gpt-4"
109
+ }
110
+ }
111
+ },
112
+ {
113
+ "id": "client",
114
+ "type": "OpenAI Client",
115
+ "label": "OpenAI API",
116
+ "config": {
117
+ "apiKey": {
118
+ "$config": "backends.openai.apiKey",
119
+ "$env": "OPENAI_API_KEY"
120
+ },
121
+ "baseURL": {
122
+ "$config": "backends.openai.baseURL"
123
+ },
124
+ "timeout": {
125
+ "$config": "backends.openai.timeoutMs"
126
+ },
127
+ "maxRetries": {
128
+ "$config": "backends.openai.maxRetries"
129
+ },
130
+ "maxToolIterations": {
131
+ "$config": "backends.openai.maxToolIterations",
132
+ "$default": 5
133
+ },
134
+ "toolMode": {
135
+ "$config": "backends.openai.toolMode",
136
+ "$default": "native"
137
+ }
138
+ }
139
+ },
140
+ {
141
+ "id": "normalizer",
142
+ "type": "OpenAI Normalizer",
143
+ "label": "Normalize Response",
144
+ "config": {}
145
+ },
146
+ {
147
+ "id": "persist",
148
+ "type": "Session Persistence",
149
+ "label": "Save history",
150
+ "config": {}
151
+ },
152
+ {
153
+ "id": "project",
154
+ "type": "Update Projection",
155
+ "label": "Session updates",
156
+ "config": {}
157
+ },
158
+ {
159
+ "id": "to-a2a",
160
+ "type": "ACP to A2A",
161
+ "label": "ACP → A2A",
162
+ "config": {}
163
+ },
164
+ {
165
+ "id": "responder",
166
+ "type": "A2A Responder",
167
+ "label": "Reply",
168
+ "config": {}
169
+ },
170
+ {
171
+ "id": "telemetry",
172
+ "type": "Telemetry Sink",
173
+ "label": "Telemetry",
174
+ "config": {}
175
+ }
176
+ ],
177
+ "connections": [
178
+ {
179
+ "source": "endpoint",
180
+ "sourceOutput": "out",
181
+ "target": "to-acp",
182
+ "targetInput": "in"
183
+ },
184
+ {
185
+ "source": "to-acp",
186
+ "sourceOutput": "out",
187
+ "target": "acp",
188
+ "targetInput": "in"
189
+ },
190
+ {
191
+ "source": "acp",
192
+ "sourceOutput": "out",
193
+ "target": "load",
194
+ "targetInput": "in"
195
+ },
196
+ {
197
+ "source": "load",
198
+ "sourceOutput": "out",
199
+ "target": "history",
200
+ "targetInput": "in"
201
+ },
202
+ {
203
+ "source": "history",
204
+ "sourceOutput": "out",
205
+ "target": "cwd",
206
+ "targetInput": "in"
207
+ },
208
+ {
209
+ "source": "cwd",
210
+ "sourceOutput": "out",
211
+ "target": "mcp",
212
+ "targetInput": "in"
213
+ },
214
+ {
215
+ "source": "mcp",
216
+ "sourceOutput": "out",
217
+ "target": "messages",
218
+ "targetInput": "in"
219
+ },
220
+ {
221
+ "source": "messages",
222
+ "sourceOutput": "out",
223
+ "target": "translator",
224
+ "targetInput": "in"
225
+ },
226
+ {
227
+ "source": "translator",
228
+ "sourceOutput": "out",
229
+ "target": "client",
230
+ "targetInput": "in"
231
+ },
232
+ {
233
+ "source": "client",
234
+ "sourceOutput": "out",
235
+ "target": "normalizer",
236
+ "targetInput": "in"
237
+ },
238
+ {
239
+ "source": "normalizer",
240
+ "sourceOutput": "out",
241
+ "target": "persist",
242
+ "targetInput": "in"
243
+ },
244
+ {
245
+ "source": "persist",
246
+ "sourceOutput": "out",
247
+ "target": "project",
248
+ "targetInput": "in"
249
+ },
250
+ {
251
+ "source": "project",
252
+ "sourceOutput": "out",
253
+ "target": "to-a2a",
254
+ "targetInput": "in"
255
+ },
256
+ {
257
+ "source": "to-a2a",
258
+ "sourceOutput": "out",
259
+ "target": "responder",
260
+ "targetInput": "in"
261
+ },
262
+ {
263
+ "source": "responder",
264
+ "sourceOutput": "out",
265
+ "target": "telemetry",
266
+ "targetInput": "in"
267
+ }
268
+ ]
269
+ }