deft-bridge 0.3.2 → 0.4.0
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.
- package/README.md +2 -0
- package/dist/bridge.js +5251 -1553
- package/dist/graphs/acp-pi-sdk.json +184 -0
- package/dist/graphs/acp-pi.json +160 -17
- package/package.json +2 -2
|
@@ -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
|
+
}
|
package/dist/graphs/acp-pi.json
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2.0.0",
|
|
3
3
|
"metadata": {
|
|
4
|
-
"name": "ACP
|
|
5
|
-
"description": "An ACP front with Pi as
|
|
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": {
|
|
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": {
|
|
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
|
-
{
|
|
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": {
|
|
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
|
-
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
125
|
+
{
|
|
126
|
+
"id": "telemetry",
|
|
127
|
+
"type": "Telemetry Sink",
|
|
128
|
+
"label": "Telemetry",
|
|
129
|
+
"config": {}
|
|
130
|
+
}
|
|
35
131
|
],
|
|
36
132
|
"connections": [
|
|
37
|
-
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
{
|
|
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
|
+
"version": "0.4.0",
|
|
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": [
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"esbuild": "0.28.2",
|
|
62
|
-
"@bridge/cli": "0.
|
|
62
|
+
"@bridge/cli": "0.4.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"bundle": "node scripts/bundle.mjs",
|