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,253 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "A2A → Anthropic",
5
+ "description": "Generated from graphs/acp-anthropic.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 Anthropic backend as one graph: the ACP endpoint, sessions, the Anthropic pipeline, 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": "Anthropic Translator",
98
+ "label": "ACP → Anthropic",
99
+ "config": {
100
+ "defaultModel": {
101
+ "$config": "backends.anthropic.defaultModel",
102
+ "$default": "claude-sonnet-4-20250514"
103
+ },
104
+ "defaultMaxTokens": {
105
+ "$config": "backends.anthropic.defaultMaxTokens",
106
+ "$default": 4096
107
+ }
108
+ }
109
+ },
110
+ {
111
+ "id": "client",
112
+ "type": "Anthropic Client",
113
+ "label": "Anthropic API",
114
+ "config": {
115
+ "apiKey": {
116
+ "$config": "backends.anthropic.apiKey",
117
+ "$env": "ANTHROPIC_API_KEY"
118
+ },
119
+ "baseURL": {
120
+ "$config": "backends.anthropic.baseURL"
121
+ },
122
+ "timeout": {
123
+ "$config": "backends.anthropic.timeoutMs"
124
+ },
125
+ "maxRetries": {
126
+ "$config": "backends.anthropic.maxRetries"
127
+ }
128
+ }
129
+ },
130
+ {
131
+ "id": "normalizer",
132
+ "type": "Anthropic Normalizer",
133
+ "label": "Normalize Response",
134
+ "config": {}
135
+ },
136
+ {
137
+ "id": "persist",
138
+ "type": "Session Persistence",
139
+ "label": "Save history",
140
+ "config": {}
141
+ },
142
+ {
143
+ "id": "project",
144
+ "type": "Update Projection",
145
+ "label": "Session updates",
146
+ "config": {}
147
+ },
148
+ {
149
+ "id": "to-a2a",
150
+ "type": "ACP to A2A",
151
+ "label": "ACP → A2A",
152
+ "config": {}
153
+ },
154
+ {
155
+ "id": "responder",
156
+ "type": "A2A Responder",
157
+ "label": "Reply",
158
+ "config": {}
159
+ },
160
+ {
161
+ "id": "telemetry",
162
+ "type": "Telemetry Sink",
163
+ "label": "Telemetry",
164
+ "config": {}
165
+ }
166
+ ],
167
+ "connections": [
168
+ {
169
+ "source": "endpoint",
170
+ "sourceOutput": "out",
171
+ "target": "to-acp",
172
+ "targetInput": "in"
173
+ },
174
+ {
175
+ "source": "to-acp",
176
+ "sourceOutput": "out",
177
+ "target": "acp",
178
+ "targetInput": "in"
179
+ },
180
+ {
181
+ "source": "acp",
182
+ "sourceOutput": "out",
183
+ "target": "load",
184
+ "targetInput": "in"
185
+ },
186
+ {
187
+ "source": "load",
188
+ "sourceOutput": "out",
189
+ "target": "history",
190
+ "targetInput": "in"
191
+ },
192
+ {
193
+ "source": "history",
194
+ "sourceOutput": "out",
195
+ "target": "cwd",
196
+ "targetInput": "in"
197
+ },
198
+ {
199
+ "source": "cwd",
200
+ "sourceOutput": "out",
201
+ "target": "messages",
202
+ "targetInput": "in"
203
+ },
204
+ {
205
+ "source": "messages",
206
+ "sourceOutput": "out",
207
+ "target": "translator",
208
+ "targetInput": "in"
209
+ },
210
+ {
211
+ "source": "translator",
212
+ "sourceOutput": "out",
213
+ "target": "client",
214
+ "targetInput": "in"
215
+ },
216
+ {
217
+ "source": "client",
218
+ "sourceOutput": "out",
219
+ "target": "normalizer",
220
+ "targetInput": "in"
221
+ },
222
+ {
223
+ "source": "normalizer",
224
+ "sourceOutput": "out",
225
+ "target": "persist",
226
+ "targetInput": "in"
227
+ },
228
+ {
229
+ "source": "persist",
230
+ "sourceOutput": "out",
231
+ "target": "project",
232
+ "targetInput": "in"
233
+ },
234
+ {
235
+ "source": "project",
236
+ "sourceOutput": "out",
237
+ "target": "to-a2a",
238
+ "targetInput": "in"
239
+ },
240
+ {
241
+ "source": "to-a2a",
242
+ "sourceOutput": "out",
243
+ "target": "responder",
244
+ "targetInput": "in"
245
+ },
246
+ {
247
+ "source": "responder",
248
+ "sourceOutput": "out",
249
+ "target": "telemetry",
250
+ "targetInput": "in"
251
+ }
252
+ ]
253
+ }
@@ -0,0 +1,210 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "A2A → Claude Code (SDK)",
5
+ "description": "Generated from graphs/acp-claude-sdk.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: An ACP front with Claude Code as the back end, through the Claude Agent SDK (docs/claude-sdk-nodes-sketch.md): one long-lived query per session. Claude Code keeps the conversation and runs its own tools; its tool calls go to the client as ACP updates, its permission questions through Permission Policy to the client, and a running Bash command's output streams to the client's terminal. Claude SDK Sessions answers session/new, load, resume, fork, delete and list. Run with BRIDGE_GRAPH=graphs/acp-claude-sdk.json."
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": "sessions",
61
+ "type": "Claude SDK Sessions",
62
+ "label": "Claude Code sessions",
63
+ "config": {}
64
+ },
65
+ {
66
+ "id": "acp",
67
+ "type": "ACP Normalizer",
68
+ "label": "Initialize and sessions",
69
+ "config": {
70
+ "agentName": "bridge",
71
+ "agentTitle": "Bridge",
72
+ "protocols": [1],
73
+ "agentCapabilities": {
74
+ "loadSession": true,
75
+ "promptCapabilities": {
76
+ "image": true,
77
+ "audio": false,
78
+ "embeddedContext": true
79
+ },
80
+ "sessionCapabilities": {
81
+ "resume": {},
82
+ "list": {},
83
+ "close": {},
84
+ "delete": {},
85
+ "fork": {}
86
+ }
87
+ }
88
+ }
89
+ },
90
+ {
91
+ "id": "translator",
92
+ "type": "Claude SDK Translator",
93
+ "label": "Prompt for Claude Code",
94
+ "config": {}
95
+ },
96
+ {
97
+ "id": "client",
98
+ "type": "Claude SDK Client",
99
+ "label": "Claude Code (a query per session)",
100
+ "config": {}
101
+ },
102
+ {
103
+ "id": "policy",
104
+ "type": "Permission Policy",
105
+ "label": "Permissions",
106
+ "config": {
107
+ "rules": [],
108
+ "default": "ask"
109
+ }
110
+ },
111
+ {
112
+ "id": "normalizer",
113
+ "type": "Claude SDK Normalizer",
114
+ "label": "Claude Code's answer",
115
+ "config": {}
116
+ },
117
+ {
118
+ "id": "project",
119
+ "type": "Update Projection",
120
+ "label": "Session updates",
121
+ "config": {}
122
+ },
123
+ {
124
+ "id": "to-a2a",
125
+ "type": "ACP to A2A",
126
+ "label": "ACP → A2A",
127
+ "config": {}
128
+ },
129
+ {
130
+ "id": "responder",
131
+ "type": "A2A Responder",
132
+ "label": "Reply",
133
+ "config": {}
134
+ },
135
+ {
136
+ "id": "telemetry",
137
+ "type": "Telemetry Sink",
138
+ "label": "Telemetry",
139
+ "config": {}
140
+ }
141
+ ],
142
+ "connections": [
143
+ {
144
+ "source": "endpoint",
145
+ "sourceOutput": "out",
146
+ "target": "to-acp",
147
+ "targetInput": "in"
148
+ },
149
+ {
150
+ "source": "to-acp",
151
+ "sourceOutput": "out",
152
+ "target": "sessions",
153
+ "targetInput": "in"
154
+ },
155
+ {
156
+ "source": "sessions",
157
+ "sourceOutput": "out",
158
+ "target": "acp",
159
+ "targetInput": "in"
160
+ },
161
+ {
162
+ "source": "acp",
163
+ "sourceOutput": "out",
164
+ "target": "translator",
165
+ "targetInput": "in"
166
+ },
167
+ {
168
+ "source": "translator",
169
+ "sourceOutput": "out",
170
+ "target": "client",
171
+ "targetInput": "in"
172
+ },
173
+ {
174
+ "source": "client",
175
+ "sourceOutput": "out",
176
+ "target": "policy",
177
+ "targetInput": "in"
178
+ },
179
+ {
180
+ "source": "policy",
181
+ "sourceOutput": "out",
182
+ "target": "normalizer",
183
+ "targetInput": "in"
184
+ },
185
+ {
186
+ "source": "normalizer",
187
+ "sourceOutput": "out",
188
+ "target": "project",
189
+ "targetInput": "in"
190
+ },
191
+ {
192
+ "source": "project",
193
+ "sourceOutput": "out",
194
+ "target": "to-a2a",
195
+ "targetInput": "in"
196
+ },
197
+ {
198
+ "source": "to-a2a",
199
+ "sourceOutput": "out",
200
+ "target": "responder",
201
+ "targetInput": "in"
202
+ },
203
+ {
204
+ "source": "responder",
205
+ "sourceOutput": "out",
206
+ "target": "telemetry",
207
+ "targetInput": "in"
208
+ }
209
+ ]
210
+ }
@@ -0,0 +1,242 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "A2A → Codex (App Server)",
5
+ "description": "Generated from graphs/acp-codex-app-server.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: An ACP front with Codex as the back end through the native Codex App Server protocol (codex app-server --listen stdio://). Codex keeps thread rollouts, runs its built-in tools inside its native sandbox, streams command output and reasoning, routes permission and elicitation requests through Permission Policy to the client, and answers Deft custom-tool and targeted command-stop extensions. Run with --backend codex-app-server."
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": "sessions",
61
+ "type": "Codex Sessions",
62
+ "label": "Codex sessions",
63
+ "config": {}
64
+ },
65
+ {
66
+ "id": "acp",
67
+ "type": "ACP Normalizer",
68
+ "label": "Initialize and sessions",
69
+ "config": {
70
+ "agentName": "bridge",
71
+ "agentTitle": "Bridge",
72
+ "protocols": [1],
73
+ "agentCapabilities": {
74
+ "loadSession": true,
75
+ "promptCapabilities": {
76
+ "image": true,
77
+ "audio": false,
78
+ "embeddedContext": true
79
+ },
80
+ "sessionCapabilities": {
81
+ "resume": {},
82
+ "list": {},
83
+ "close": {},
84
+ "delete": {},
85
+ "fork": {},
86
+ "systemPrompt": {}
87
+ }
88
+ }
89
+ }
90
+ },
91
+ {
92
+ "id": "translator",
93
+ "type": "Codex Translator",
94
+ "label": "Prompt for Codex",
95
+ "config": {}
96
+ },
97
+ {
98
+ "id": "client",
99
+ "type": "Codex Client",
100
+ "label": "Codex App Server",
101
+ "config": {
102
+ "command": {
103
+ "$config": "backends.codex.command",
104
+ "$default": "codex"
105
+ },
106
+ "args": {
107
+ "$config": "backends.codex.args",
108
+ "$default": ["app-server", "--listen", "stdio://"]
109
+ },
110
+ "env": {
111
+ "$config": "backends.codex.env"
112
+ },
113
+ "model": {
114
+ "$config": "backends.codex.model"
115
+ },
116
+ "mode": {
117
+ "$config": "backends.codex.mode"
118
+ },
119
+ "allowFullAccess": {
120
+ "$config": "backends.codex.allowFullAccess"
121
+ },
122
+ "dynamicTools": {
123
+ "$config": "backends.codex.dynamicTools",
124
+ "$default": true
125
+ },
126
+ "cancelGraceMs": {
127
+ "$config": "backends.codex.cancelGraceMs"
128
+ },
129
+ "requestTimeoutMs": {
130
+ "$config": "backends.codex.requestTimeoutMs"
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "id": "policy",
136
+ "type": "Permission Policy",
137
+ "label": "Permissions",
138
+ "config": {
139
+ "rules": [],
140
+ "default": "ask"
141
+ }
142
+ },
143
+ {
144
+ "id": "normalizer",
145
+ "type": "Codex Normalizer",
146
+ "label": "Codex's answer",
147
+ "config": {}
148
+ },
149
+ {
150
+ "id": "project",
151
+ "type": "Update Projection",
152
+ "label": "Session updates",
153
+ "config": {}
154
+ },
155
+ {
156
+ "id": "to-a2a",
157
+ "type": "ACP to A2A",
158
+ "label": "ACP → A2A",
159
+ "config": {}
160
+ },
161
+ {
162
+ "id": "responder",
163
+ "type": "A2A Responder",
164
+ "label": "Reply",
165
+ "config": {}
166
+ },
167
+ {
168
+ "id": "telemetry",
169
+ "type": "Telemetry Sink",
170
+ "label": "Telemetry",
171
+ "config": {}
172
+ }
173
+ ],
174
+ "connections": [
175
+ {
176
+ "source": "endpoint",
177
+ "sourceOutput": "out",
178
+ "target": "to-acp",
179
+ "targetInput": "in"
180
+ },
181
+ {
182
+ "source": "to-acp",
183
+ "sourceOutput": "out",
184
+ "target": "sessions",
185
+ "targetInput": "in"
186
+ },
187
+ {
188
+ "source": "sessions",
189
+ "sourceOutput": "out",
190
+ "target": "acp",
191
+ "targetInput": "in"
192
+ },
193
+ {
194
+ "source": "acp",
195
+ "sourceOutput": "out",
196
+ "target": "translator",
197
+ "targetInput": "in"
198
+ },
199
+ {
200
+ "source": "translator",
201
+ "sourceOutput": "out",
202
+ "target": "client",
203
+ "targetInput": "in"
204
+ },
205
+ {
206
+ "source": "client",
207
+ "sourceOutput": "out",
208
+ "target": "policy",
209
+ "targetInput": "in"
210
+ },
211
+ {
212
+ "source": "policy",
213
+ "sourceOutput": "out",
214
+ "target": "normalizer",
215
+ "targetInput": "in"
216
+ },
217
+ {
218
+ "source": "normalizer",
219
+ "sourceOutput": "out",
220
+ "target": "project",
221
+ "targetInput": "in"
222
+ },
223
+ {
224
+ "source": "project",
225
+ "sourceOutput": "out",
226
+ "target": "to-a2a",
227
+ "targetInput": "in"
228
+ },
229
+ {
230
+ "source": "to-a2a",
231
+ "sourceOutput": "out",
232
+ "target": "responder",
233
+ "targetInput": "in"
234
+ },
235
+ {
236
+ "source": "responder",
237
+ "sourceOutput": "out",
238
+ "target": "telemetry",
239
+ "targetInput": "in"
240
+ }
241
+ ]
242
+ }