deft-bridge 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,242 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "A2A → Deft Pike (Pi SDK)",
5
+ "description": "Generated from graphs/acp-pi-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 Pi running in-process through `@earendil-works/pi-coding-agent` (Deft Pike). Zero external CLI binary required: each session runs an in-process AgentSession with persistent transcripts, streaming reasoning/text/diffs/terminal output, Permission Policy gating, elicitation, Deft custom tools, and targeted command stop. Run with --backend pi-sdk."
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": "Pi SDK Sessions",
62
+ "label": "Pi SDK 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
+ "mcpCapabilities": {
76
+ "http": true,
77
+ "sse": true
78
+ },
79
+ "promptCapabilities": {
80
+ "image": true,
81
+ "audio": false,
82
+ "embeddedContext": true
83
+ },
84
+ "sessionCapabilities": {
85
+ "resume": {},
86
+ "list": {},
87
+ "close": {},
88
+ "delete": {},
89
+ "fork": {},
90
+ "systemPrompt": {}
91
+ }
92
+ }
93
+ }
94
+ },
95
+ {
96
+ "id": "translator",
97
+ "type": "Pi SDK Translator",
98
+ "label": "Prompt for Pi SDK",
99
+ "config": {}
100
+ },
101
+ {
102
+ "id": "client",
103
+ "type": "Pi SDK Client",
104
+ "label": "Pi SDK (in-process per session)",
105
+ "config": {
106
+ "tools": {
107
+ "$config": "backends.piSdk.tools",
108
+ "$default": "coding"
109
+ },
110
+ "model": {
111
+ "$config": "backends.piSdk.model"
112
+ },
113
+ "defaultProvider": {
114
+ "$config": "backends.piSdk.defaultProvider"
115
+ },
116
+ "defaultModel": {
117
+ "$config": "backends.piSdk.defaultModel"
118
+ },
119
+ "defaultThinkingLevel": {
120
+ "$config": "backends.piSdk.thinkingLevel"
121
+ },
122
+ "mode": {
123
+ "$config": "backends.piSdk.mode"
124
+ },
125
+ "dynamicTools": {
126
+ "$config": "backends.piSdk.dynamicTools",
127
+ "$default": true
128
+ },
129
+ "sessionDir": {
130
+ "$config": "backends.piSdk.sessionDir"
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": "Pi SDK Normalizer",
146
+ "label": "Pi SDK'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
+ }
@@ -0,0 +1,246 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "A2A → Pi",
5
+ "description": "Generated from graphs/acp-pi.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 Pi as a first-class subprocess back end (`pi --mode rpc`, or BRIDGE_PI_COMMAND). Each session spawns its own Pi RPC process honoring installed Pi extensions, packages, skills, and providers; streams reasoning, text, edit diffs, and live terminal output; routes permissions and user-extension prompts through Permission Policy to the client; and supports session load/resume/fork/list/delete/close, Deft custom tools, and targeted command stop. Run with --backend pi."
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": "Pi Sessions",
62
+ "label": "Pi 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
+ "mcpCapabilities": {
76
+ "http": true,
77
+ "sse": true
78
+ },
79
+ "promptCapabilities": {
80
+ "image": true,
81
+ "audio": false,
82
+ "embeddedContext": true
83
+ },
84
+ "sessionCapabilities": {
85
+ "resume": {},
86
+ "list": {},
87
+ "close": {},
88
+ "delete": {},
89
+ "fork": {},
90
+ "systemPrompt": {}
91
+ }
92
+ }
93
+ }
94
+ },
95
+ {
96
+ "id": "translator",
97
+ "type": "Pi Translator",
98
+ "label": "Prompt for Pi",
99
+ "config": {}
100
+ },
101
+ {
102
+ "id": "client",
103
+ "type": "Pi Client",
104
+ "label": "Pi (a process per session)",
105
+ "config": {
106
+ "piCommand": {
107
+ "$config": "backends.pi.command",
108
+ "$env": "BRIDGE_PI_COMMAND",
109
+ "$default": "pi"
110
+ },
111
+ "args": {
112
+ "$config": "backends.pi.args"
113
+ },
114
+ "env": {
115
+ "$config": "backends.pi.env"
116
+ },
117
+ "model": {
118
+ "$config": "backends.pi.model"
119
+ },
120
+ "thinkingLevel": {
121
+ "$config": "backends.pi.thinkingLevel"
122
+ },
123
+ "mode": {
124
+ "$config": "backends.pi.mode"
125
+ },
126
+ "dynamicTools": {
127
+ "$config": "backends.pi.dynamicTools",
128
+ "$default": true
129
+ },
130
+ "sessionDir": {
131
+ "$config": "backends.pi.sessionDir"
132
+ },
133
+ "requestTimeoutMs": {
134
+ "$config": "backends.pi.requestTimeoutMs"
135
+ }
136
+ }
137
+ },
138
+ {
139
+ "id": "policy",
140
+ "type": "Permission Policy",
141
+ "label": "Permissions",
142
+ "config": {
143
+ "rules": [],
144
+ "default": "ask"
145
+ }
146
+ },
147
+ {
148
+ "id": "normalizer",
149
+ "type": "Pi Normalizer",
150
+ "label": "Pi's answer",
151
+ "config": {}
152
+ },
153
+ {
154
+ "id": "project",
155
+ "type": "Update Projection",
156
+ "label": "Session updates",
157
+ "config": {}
158
+ },
159
+ {
160
+ "id": "to-a2a",
161
+ "type": "ACP to A2A",
162
+ "label": "ACP → A2A",
163
+ "config": {}
164
+ },
165
+ {
166
+ "id": "responder",
167
+ "type": "A2A Responder",
168
+ "label": "Reply",
169
+ "config": {}
170
+ },
171
+ {
172
+ "id": "telemetry",
173
+ "type": "Telemetry Sink",
174
+ "label": "Telemetry",
175
+ "config": {}
176
+ }
177
+ ],
178
+ "connections": [
179
+ {
180
+ "source": "endpoint",
181
+ "sourceOutput": "out",
182
+ "target": "to-acp",
183
+ "targetInput": "in"
184
+ },
185
+ {
186
+ "source": "to-acp",
187
+ "sourceOutput": "out",
188
+ "target": "sessions",
189
+ "targetInput": "in"
190
+ },
191
+ {
192
+ "source": "sessions",
193
+ "sourceOutput": "out",
194
+ "target": "acp",
195
+ "targetInput": "in"
196
+ },
197
+ {
198
+ "source": "acp",
199
+ "sourceOutput": "out",
200
+ "target": "translator",
201
+ "targetInput": "in"
202
+ },
203
+ {
204
+ "source": "translator",
205
+ "sourceOutput": "out",
206
+ "target": "client",
207
+ "targetInput": "in"
208
+ },
209
+ {
210
+ "source": "client",
211
+ "sourceOutput": "out",
212
+ "target": "policy",
213
+ "targetInput": "in"
214
+ },
215
+ {
216
+ "source": "policy",
217
+ "sourceOutput": "out",
218
+ "target": "normalizer",
219
+ "targetInput": "in"
220
+ },
221
+ {
222
+ "source": "normalizer",
223
+ "sourceOutput": "out",
224
+ "target": "project",
225
+ "targetInput": "in"
226
+ },
227
+ {
228
+ "source": "project",
229
+ "sourceOutput": "out",
230
+ "target": "to-a2a",
231
+ "targetInput": "in"
232
+ },
233
+ {
234
+ "source": "to-a2a",
235
+ "sourceOutput": "out",
236
+ "target": "responder",
237
+ "targetInput": "in"
238
+ },
239
+ {
240
+ "source": "responder",
241
+ "sourceOutput": "out",
242
+ "target": "telemetry",
243
+ "targetInput": "in"
244
+ }
245
+ ]
246
+ }
@@ -0,0 +1,145 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "A2A proxy",
5
+ "description": "Generated from graphs/acp-proxy.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 → Bridge → ACP proxy: the client's messages go to a downstream agent, and the agent's permission questions pass a policy node first (docs/FRONT-ENDS-DESIGN.md milestone 7). The agent's command comes from BRIDGE_PROXY_AGENT (an executable that speaks ACP on stdio; wrap arguments in a script)."
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": "agent",
61
+ "type": "ACP Client",
62
+ "label": "Downstream agent",
63
+ "config": {
64
+ "command": {
65
+ "$env": "BRIDGE_PROXY_AGENT"
66
+ },
67
+ "args": {
68
+ "$env": "BRIDGE_PROXY_AGENT_ARGS",
69
+ "$json": true
70
+ },
71
+ "protocols": [1]
72
+ }
73
+ },
74
+ {
75
+ "id": "policy",
76
+ "type": "Permission Policy",
77
+ "label": "Permissions",
78
+ "config": {
79
+ "rules": [
80
+ {
81
+ "title": "^Read ",
82
+ "decision": "allow"
83
+ }
84
+ ],
85
+ "default": "ask"
86
+ }
87
+ },
88
+ {
89
+ "id": "to-a2a",
90
+ "type": "ACP to A2A",
91
+ "label": "ACP → A2A",
92
+ "config": {}
93
+ },
94
+ {
95
+ "id": "responder",
96
+ "type": "A2A Responder",
97
+ "label": "Reply",
98
+ "config": {}
99
+ },
100
+ {
101
+ "id": "telemetry",
102
+ "type": "Telemetry Sink",
103
+ "label": "Telemetry",
104
+ "config": {}
105
+ }
106
+ ],
107
+ "connections": [
108
+ {
109
+ "source": "endpoint",
110
+ "sourceOutput": "out",
111
+ "target": "to-acp",
112
+ "targetInput": "in"
113
+ },
114
+ {
115
+ "source": "to-acp",
116
+ "sourceOutput": "out",
117
+ "target": "agent",
118
+ "targetInput": "in"
119
+ },
120
+ {
121
+ "source": "agent",
122
+ "sourceOutput": "out",
123
+ "target": "policy",
124
+ "targetInput": "in"
125
+ },
126
+ {
127
+ "source": "policy",
128
+ "sourceOutput": "out",
129
+ "target": "to-a2a",
130
+ "targetInput": "in"
131
+ },
132
+ {
133
+ "source": "to-a2a",
134
+ "sourceOutput": "out",
135
+ "target": "responder",
136
+ "targetInput": "in"
137
+ },
138
+ {
139
+ "source": "responder",
140
+ "sourceOutput": "out",
141
+ "target": "telemetry",
142
+ "targetInput": "in"
143
+ }
144
+ ]
145
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "A2A → A2A",
5
+ "description": "Bridge as an A2A proxy, A2A from end to end with no ACP (docs/A2A-DESIGN.md §5.4): the A2A server ([a2a]) hands each request to the A2A Endpoint, the A2A Client sends it on to the remote agent named by [backends.a2a] agentCardUrl, and the A2A Responder writes the remote's task events and replies back to the endpoint's tasks. A remote INPUT_REQUIRED reaches the A2A client as it is; its answer goes back to the remote task. Served by --transport a2a --backend a2a."
6
+ },
7
+ "nodes": [
8
+ {
9
+ "id": "endpoint",
10
+ "type": "A2A Endpoint",
11
+ "label": "A2A (HTTP)",
12
+ "config": {
13
+ "card": {
14
+ "name": "Bridge A2A proxy",
15
+ "description": "Bridge in front of a remote A2A agent"
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "id": "agent",
21
+ "type": "A2A Client",
22
+ "label": "Remote A2A agent",
23
+ "config": {
24
+ "agentCardUrl": {
25
+ "$config": "backends.a2a.agentCardUrl"
26
+ },
27
+ "allowedHosts": {
28
+ "$config": "backends.a2a.allowedHosts",
29
+ "$default": []
30
+ },
31
+ "auth": {
32
+ "$config": "backends.a2a.auth"
33
+ },
34
+ "timeoutMs": {
35
+ "$config": "backends.a2a.timeoutMs"
36
+ }
37
+ }
38
+ },
39
+ {
40
+ "id": "responder",
41
+ "type": "A2A Responder",
42
+ "label": "Reply",
43
+ "config": {}
44
+ },
45
+ {
46
+ "id": "telemetry",
47
+ "type": "Telemetry Sink",
48
+ "label": "Telemetry",
49
+ "config": {}
50
+ }
51
+ ],
52
+ "connections": [
53
+ {
54
+ "source": "endpoint",
55
+ "sourceOutput": "out",
56
+ "target": "agent",
57
+ "targetInput": "in"
58
+ },
59
+ {
60
+ "source": "agent",
61
+ "sourceOutput": "out",
62
+ "target": "responder",
63
+ "targetInput": "in"
64
+ },
65
+ {
66
+ "source": "responder",
67
+ "sourceOutput": "out",
68
+ "target": "telemetry",
69
+ "targetInput": "in"
70
+ }
71
+ ]
72
+ }