deft-bridge 0.3.2 → 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,110 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "ACP → A2A",
5
+ "description": "Bridge's ACP agent on a remote A2A agent (docs/A2A-DESIGN.md §5.4): ACP requests become A2A requests to the agent named by [backends.a2a] agentCardUrl, its tasks become session updates and the prompt's reply, and its permission questions pass a policy node first. A2A has no working folder, so A2A to ACP's cwd is not used here; the ACP client's MCP servers are ignored."
6
+ },
7
+ "nodes": [
8
+ {
9
+ "id": "endpoint",
10
+ "type": "ACP Endpoint",
11
+ "label": "ACP (stdio)",
12
+ "config": {
13
+ "transport": "stdio"
14
+ }
15
+ },
16
+ {
17
+ "id": "to-a2a",
18
+ "type": "ACP to A2A",
19
+ "label": "ACP → A2A",
20
+ "config": {}
21
+ },
22
+ {
23
+ "id": "agent",
24
+ "type": "A2A Client",
25
+ "label": "Remote A2A agent",
26
+ "config": {
27
+ "agentCardUrl": {
28
+ "$config": "backends.a2a.agentCardUrl"
29
+ },
30
+ "allowedHosts": {
31
+ "$config": "backends.a2a.allowedHosts",
32
+ "$default": []
33
+ },
34
+ "auth": {
35
+ "$config": "backends.a2a.auth"
36
+ },
37
+ "timeoutMs": {
38
+ "$config": "backends.a2a.timeoutMs"
39
+ }
40
+ }
41
+ },
42
+ {
43
+ "id": "to-acp",
44
+ "type": "A2A to ACP",
45
+ "label": "A2A → ACP",
46
+ "config": {
47
+ "cwd": "/"
48
+ }
49
+ },
50
+ {
51
+ "id": "policy",
52
+ "type": "Permission Policy",
53
+ "label": "Permissions",
54
+ "config": {
55
+ "rules": [],
56
+ "default": "ask"
57
+ }
58
+ },
59
+ {
60
+ "id": "responder",
61
+ "type": "ACP Responder",
62
+ "label": "Reply",
63
+ "config": {}
64
+ },
65
+ {
66
+ "id": "telemetry",
67
+ "type": "Telemetry Sink",
68
+ "label": "Telemetry",
69
+ "config": {}
70
+ }
71
+ ],
72
+ "connections": [
73
+ {
74
+ "source": "endpoint",
75
+ "sourceOutput": "out",
76
+ "target": "to-a2a",
77
+ "targetInput": "in"
78
+ },
79
+ {
80
+ "source": "to-a2a",
81
+ "sourceOutput": "out",
82
+ "target": "agent",
83
+ "targetInput": "in"
84
+ },
85
+ {
86
+ "source": "agent",
87
+ "sourceOutput": "out",
88
+ "target": "to-acp",
89
+ "targetInput": "in"
90
+ },
91
+ {
92
+ "source": "to-acp",
93
+ "sourceOutput": "out",
94
+ "target": "policy",
95
+ "targetInput": "in"
96
+ },
97
+ {
98
+ "source": "policy",
99
+ "sourceOutput": "out",
100
+ "target": "responder",
101
+ "targetInput": "in"
102
+ },
103
+ {
104
+ "source": "responder",
105
+ "sourceOutput": "out",
106
+ "target": "telemetry",
107
+ "targetInput": "in"
108
+ }
109
+ ]
110
+ }
@@ -0,0 +1,184 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "ACP \u2192 Deft Pike (Pi SDK)",
5
+ "description": "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": "ACP Endpoint",
11
+ "label": "ACP (stdio)",
12
+ "config": {
13
+ "transport": "stdio"
14
+ }
15
+ },
16
+ {
17
+ "id": "sessions",
18
+ "type": "Pi SDK Sessions",
19
+ "label": "Pi SDK sessions",
20
+ "config": {}
21
+ },
22
+ {
23
+ "id": "acp",
24
+ "type": "ACP Normalizer",
25
+ "label": "Initialize and sessions",
26
+ "config": {
27
+ "agentName": "bridge",
28
+ "agentTitle": "Bridge",
29
+ "protocols": {
30
+ "$config": "server.acpProtocols",
31
+ "$default": [1]
32
+ },
33
+ "agentCapabilities": {
34
+ "loadSession": true,
35
+ "mcpCapabilities": {
36
+ "http": true,
37
+ "sse": true
38
+ },
39
+ "promptCapabilities": {
40
+ "image": true,
41
+ "audio": false,
42
+ "embeddedContext": true
43
+ },
44
+ "sessionCapabilities": {
45
+ "resume": {},
46
+ "list": {},
47
+ "close": {},
48
+ "delete": {},
49
+ "fork": {},
50
+ "systemPrompt": {}
51
+ }
52
+ }
53
+ }
54
+ },
55
+ {
56
+ "id": "translator",
57
+ "type": "Pi SDK Translator",
58
+ "label": "Prompt for Pi SDK",
59
+ "config": {}
60
+ },
61
+ {
62
+ "id": "client",
63
+ "type": "Pi SDK Client",
64
+ "label": "Pi SDK (in-process per session)",
65
+ "config": {
66
+ "tools": {
67
+ "$config": "backends.piSdk.tools",
68
+ "$default": "coding"
69
+ },
70
+ "model": {
71
+ "$config": "backends.piSdk.model"
72
+ },
73
+ "defaultProvider": {
74
+ "$config": "backends.piSdk.defaultProvider"
75
+ },
76
+ "defaultModel": {
77
+ "$config": "backends.piSdk.defaultModel"
78
+ },
79
+ "defaultThinkingLevel": {
80
+ "$config": "backends.piSdk.thinkingLevel"
81
+ },
82
+ "mode": {
83
+ "$config": "backends.piSdk.mode"
84
+ },
85
+ "dynamicTools": {
86
+ "$config": "backends.piSdk.dynamicTools",
87
+ "$default": true
88
+ },
89
+ "sessionDir": {
90
+ "$config": "backends.piSdk.sessionDir"
91
+ }
92
+ }
93
+ },
94
+ {
95
+ "id": "policy",
96
+ "type": "Permission Policy",
97
+ "label": "Permissions",
98
+ "config": {
99
+ "rules": [],
100
+ "default": "ask"
101
+ }
102
+ },
103
+ {
104
+ "id": "normalizer",
105
+ "type": "Pi SDK Normalizer",
106
+ "label": "Pi SDK's answer",
107
+ "config": {}
108
+ },
109
+ {
110
+ "id": "project",
111
+ "type": "Update Projection",
112
+ "label": "Session updates",
113
+ "config": {}
114
+ },
115
+ {
116
+ "id": "responder",
117
+ "type": "ACP Responder",
118
+ "label": "Reply",
119
+ "config": {}
120
+ },
121
+ {
122
+ "id": "telemetry",
123
+ "type": "Telemetry Sink",
124
+ "label": "Telemetry",
125
+ "config": {}
126
+ }
127
+ ],
128
+ "connections": [
129
+ {
130
+ "source": "endpoint",
131
+ "sourceOutput": "out",
132
+ "target": "sessions",
133
+ "targetInput": "in"
134
+ },
135
+ {
136
+ "source": "sessions",
137
+ "sourceOutput": "out",
138
+ "target": "acp",
139
+ "targetInput": "in"
140
+ },
141
+ {
142
+ "source": "acp",
143
+ "sourceOutput": "out",
144
+ "target": "translator",
145
+ "targetInput": "in"
146
+ },
147
+ {
148
+ "source": "translator",
149
+ "sourceOutput": "out",
150
+ "target": "client",
151
+ "targetInput": "in"
152
+ },
153
+ {
154
+ "source": "client",
155
+ "sourceOutput": "out",
156
+ "target": "policy",
157
+ "targetInput": "in"
158
+ },
159
+ {
160
+ "source": "policy",
161
+ "sourceOutput": "out",
162
+ "target": "normalizer",
163
+ "targetInput": "in"
164
+ },
165
+ {
166
+ "source": "normalizer",
167
+ "sourceOutput": "out",
168
+ "target": "project",
169
+ "targetInput": "in"
170
+ },
171
+ {
172
+ "source": "project",
173
+ "sourceOutput": "out",
174
+ "target": "responder",
175
+ "targetInput": "in"
176
+ },
177
+ {
178
+ "source": "responder",
179
+ "sourceOutput": "out",
180
+ "target": "telemetry",
181
+ "targetInput": "in"
182
+ }
183
+ ]
184
+ }
@@ -1,15 +1,23 @@
1
1
  {
2
2
  "version": "2.0.0",
3
3
  "metadata": {
4
- "name": "ACP → Pi",
5
- "description": "An ACP front with Pi as the back end (docs/FRONT-ENDS-DESIGN.md milestone 10): one Pi RPC process per session (`pi --mode rpc`, or BRIDGE_PI_COMMAND), which keeps the conversation itself; its text and thinking stream as ACP updates. Run with BRIDGE_GRAPH=graphs/acp-pi.json."
4
+ "name": "ACP \u2192 Pi",
5
+ "description": "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
6
  },
7
7
  "nodes": [
8
8
  {
9
9
  "id": "endpoint",
10
10
  "type": "ACP Endpoint",
11
11
  "label": "ACP (stdio)",
12
- "config": { "transport": "stdio" }
12
+ "config": {
13
+ "transport": "stdio"
14
+ }
15
+ },
16
+ {
17
+ "id": "sessions",
18
+ "type": "Pi Sessions",
19
+ "label": "Pi sessions",
20
+ "config": {}
13
21
  },
14
22
  {
15
23
  "id": "acp",
@@ -18,28 +26,163 @@
18
26
  "config": {
19
27
  "agentName": "bridge",
20
28
  "agentTitle": "Bridge",
21
- "protocols": { "$config": "server.acpProtocols", "$default": [1] }
29
+ "protocols": {
30
+ "$config": "server.acpProtocols",
31
+ "$default": [1]
32
+ },
33
+ "agentCapabilities": {
34
+ "loadSession": true,
35
+ "mcpCapabilities": {
36
+ "http": true,
37
+ "sse": true
38
+ },
39
+ "promptCapabilities": {
40
+ "image": true,
41
+ "audio": false,
42
+ "embeddedContext": true
43
+ },
44
+ "sessionCapabilities": {
45
+ "resume": {},
46
+ "list": {},
47
+ "close": {},
48
+ "delete": {},
49
+ "fork": {},
50
+ "systemPrompt": {}
51
+ }
52
+ }
22
53
  }
23
54
  },
24
- { "id": "translator", "type": "Pi Translator", "label": "Prompt for Pi", "config": {} },
55
+ {
56
+ "id": "translator",
57
+ "type": "Pi Translator",
58
+ "label": "Prompt for Pi",
59
+ "config": {}
60
+ },
25
61
  {
26
62
  "id": "client",
27
63
  "type": "Pi Client",
28
64
  "label": "Pi (a process per session)",
29
- "config": { "piCommand": { "$env": "BRIDGE_PI_COMMAND" } }
65
+ "config": {
66
+ "piCommand": {
67
+ "$config": "backends.pi.command",
68
+ "$env": "BRIDGE_PI_COMMAND",
69
+ "$default": "pi"
70
+ },
71
+ "args": {
72
+ "$config": "backends.pi.args"
73
+ },
74
+ "env": {
75
+ "$config": "backends.pi.env"
76
+ },
77
+ "model": {
78
+ "$config": "backends.pi.model"
79
+ },
80
+ "thinkingLevel": {
81
+ "$config": "backends.pi.thinkingLevel"
82
+ },
83
+ "mode": {
84
+ "$config": "backends.pi.mode"
85
+ },
86
+ "dynamicTools": {
87
+ "$config": "backends.pi.dynamicTools",
88
+ "$default": true
89
+ },
90
+ "sessionDir": {
91
+ "$config": "backends.pi.sessionDir"
92
+ },
93
+ "requestTimeoutMs": {
94
+ "$config": "backends.pi.requestTimeoutMs"
95
+ }
96
+ }
97
+ },
98
+ {
99
+ "id": "policy",
100
+ "type": "Permission Policy",
101
+ "label": "Permissions",
102
+ "config": {
103
+ "rules": [],
104
+ "default": "ask"
105
+ }
106
+ },
107
+ {
108
+ "id": "normalizer",
109
+ "type": "Pi Normalizer",
110
+ "label": "Pi's answer",
111
+ "config": {}
112
+ },
113
+ {
114
+ "id": "project",
115
+ "type": "Update Projection",
116
+ "label": "Session updates",
117
+ "config": {}
118
+ },
119
+ {
120
+ "id": "responder",
121
+ "type": "ACP Responder",
122
+ "label": "Reply",
123
+ "config": {}
30
124
  },
31
- { "id": "normalizer", "type": "Pi Normalizer", "label": "Pi's answer", "config": {} },
32
- { "id": "project", "type": "Update Projection", "label": "Session updates", "config": {} },
33
- { "id": "responder", "type": "ACP Responder", "label": "Reply", "config": {} },
34
- { "id": "telemetry", "type": "Telemetry Sink", "label": "Telemetry", "config": {} }
125
+ {
126
+ "id": "telemetry",
127
+ "type": "Telemetry Sink",
128
+ "label": "Telemetry",
129
+ "config": {}
130
+ }
35
131
  ],
36
132
  "connections": [
37
- { "source": "endpoint", "sourceOutput": "out", "target": "acp", "targetInput": "in" },
38
- { "source": "acp", "sourceOutput": "out", "target": "translator", "targetInput": "in" },
39
- { "source": "translator", "sourceOutput": "out", "target": "client", "targetInput": "in" },
40
- { "source": "client", "sourceOutput": "out", "target": "normalizer", "targetInput": "in" },
41
- { "source": "normalizer", "sourceOutput": "out", "target": "project", "targetInput": "in" },
42
- { "source": "project", "sourceOutput": "out", "target": "responder", "targetInput": "in" },
43
- { "source": "responder", "sourceOutput": "out", "target": "telemetry", "targetInput": "in" }
133
+ {
134
+ "source": "endpoint",
135
+ "sourceOutput": "out",
136
+ "target": "sessions",
137
+ "targetInput": "in"
138
+ },
139
+ {
140
+ "source": "sessions",
141
+ "sourceOutput": "out",
142
+ "target": "acp",
143
+ "targetInput": "in"
144
+ },
145
+ {
146
+ "source": "acp",
147
+ "sourceOutput": "out",
148
+ "target": "translator",
149
+ "targetInput": "in"
150
+ },
151
+ {
152
+ "source": "translator",
153
+ "sourceOutput": "out",
154
+ "target": "client",
155
+ "targetInput": "in"
156
+ },
157
+ {
158
+ "source": "client",
159
+ "sourceOutput": "out",
160
+ "target": "policy",
161
+ "targetInput": "in"
162
+ },
163
+ {
164
+ "source": "policy",
165
+ "sourceOutput": "out",
166
+ "target": "normalizer",
167
+ "targetInput": "in"
168
+ },
169
+ {
170
+ "source": "normalizer",
171
+ "sourceOutput": "out",
172
+ "target": "project",
173
+ "targetInput": "in"
174
+ },
175
+ {
176
+ "source": "project",
177
+ "sourceOutput": "out",
178
+ "target": "responder",
179
+ "targetInput": "in"
180
+ },
181
+ {
182
+ "source": "responder",
183
+ "sourceOutput": "out",
184
+ "target": "telemetry",
185
+ "targetInput": "in"
186
+ }
44
187
  ]
45
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deft-bridge",
3
- "version": "0.3.2",
3
+ "version": "0.4.1",
4
4
  "description": "Bridge: an ACP agent server, and (bridge mcp) an MCP server that drives ACP agents",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -31,6 +31,7 @@
31
31
  "node": ">=22.19.0"
32
32
  },
33
33
  "dependencies": {
34
+ "@a2a-js/sdk": "1.3.0",
34
35
  "@anthropic-ai/claude-agent-sdk": "0.3.322",
35
36
  "@anthropic-ai/sdk": "^0.107.0",
36
37
  "@earendil-works/pi-coding-agent": "^1.5.0",
@@ -59,7 +60,7 @@
59
60
  },
60
61
  "devDependencies": {
61
62
  "esbuild": "0.28.2",
62
- "@bridge/cli": "0.3.2"
63
+ "@bridge/cli": "0.4.1"
63
64
  },
64
65
  "scripts": {
65
66
  "bundle": "node scripts/bundle.mjs",