deft-bridge 0.0.0-stage → 0.3.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.
@@ -0,0 +1,187 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "ACP → Anthropic",
5
+ "description": "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": "ACP Endpoint",
11
+ "label": "ACP (stdio)",
12
+ "config": {
13
+ "transport": "stdio"
14
+ }
15
+ },
16
+ {
17
+ "id": "acp",
18
+ "type": "ACP Normalizer",
19
+ "label": "Initialize and sessions",
20
+ "config": {
21
+ "agentName": "bridge",
22
+ "agentTitle": "Bridge",
23
+ "protocols": { "$config": "server.acpProtocols", "$default": [1] }
24
+ }
25
+ },
26
+ {
27
+ "id": "load",
28
+ "type": "Session Load",
29
+ "label": "Load session",
30
+ "config": {}
31
+ },
32
+ {
33
+ "id": "history",
34
+ "type": "History Window",
35
+ "label": "History window",
36
+ "config": {
37
+ "maxEntries": 4
38
+ }
39
+ },
40
+ {
41
+ "id": "cwd",
42
+ "type": "CWD Context",
43
+ "label": "Working directory",
44
+ "config": {}
45
+ },
46
+ {
47
+ "id": "messages",
48
+ "type": "Prompt Messages",
49
+ "label": "Messages",
50
+ "config": {}
51
+ },
52
+ {
53
+ "id": "translator",
54
+ "type": "Anthropic Translator",
55
+ "label": "ACP → Anthropic",
56
+ "config": {
57
+ "defaultModel": {
58
+ "$config": "backends.anthropic.defaultModel",
59
+ "$default": "claude-sonnet-4-20250514"
60
+ },
61
+ "defaultMaxTokens": {
62
+ "$config": "backends.anthropic.defaultMaxTokens",
63
+ "$default": 4096
64
+ }
65
+ }
66
+ },
67
+ {
68
+ "id": "client",
69
+ "type": "Anthropic Client",
70
+ "label": "Anthropic API",
71
+ "config": {
72
+ "apiKey": {
73
+ "$config": "backends.anthropic.apiKey",
74
+ "$env": "ANTHROPIC_API_KEY"
75
+ },
76
+ "baseURL": {
77
+ "$config": "backends.anthropic.baseURL"
78
+ },
79
+ "timeout": {
80
+ "$config": "backends.anthropic.timeoutMs"
81
+ },
82
+ "maxRetries": {
83
+ "$config": "backends.anthropic.maxRetries"
84
+ }
85
+ }
86
+ },
87
+ {
88
+ "id": "normalizer",
89
+ "type": "Anthropic Normalizer",
90
+ "label": "Normalize Response",
91
+ "config": {}
92
+ },
93
+ {
94
+ "id": "persist",
95
+ "type": "Session Persistence",
96
+ "label": "Save history",
97
+ "config": {}
98
+ },
99
+ {
100
+ "id": "project",
101
+ "type": "Update Projection",
102
+ "label": "Session updates",
103
+ "config": {}
104
+ },
105
+ {
106
+ "id": "responder",
107
+ "type": "ACP Responder",
108
+ "label": "Reply",
109
+ "config": {}
110
+ },
111
+ {
112
+ "id": "telemetry",
113
+ "type": "Telemetry Sink",
114
+ "label": "Telemetry",
115
+ "config": {}
116
+ }
117
+ ],
118
+ "connections": [
119
+ {
120
+ "source": "endpoint",
121
+ "sourceOutput": "out",
122
+ "target": "acp",
123
+ "targetInput": "in"
124
+ },
125
+ {
126
+ "source": "acp",
127
+ "sourceOutput": "out",
128
+ "target": "load",
129
+ "targetInput": "in"
130
+ },
131
+ {
132
+ "source": "load",
133
+ "sourceOutput": "out",
134
+ "target": "history",
135
+ "targetInput": "in"
136
+ },
137
+ {
138
+ "source": "history",
139
+ "sourceOutput": "out",
140
+ "target": "cwd",
141
+ "targetInput": "in"
142
+ },
143
+ {
144
+ "source": "cwd",
145
+ "sourceOutput": "out",
146
+ "target": "messages",
147
+ "targetInput": "in"
148
+ },
149
+ {
150
+ "source": "messages",
151
+ "sourceOutput": "out",
152
+ "target": "translator",
153
+ "targetInput": "in"
154
+ },
155
+ {
156
+ "source": "translator",
157
+ "sourceOutput": "out",
158
+ "target": "client",
159
+ "targetInput": "in"
160
+ },
161
+ {
162
+ "source": "client",
163
+ "sourceOutput": "out",
164
+ "target": "normalizer",
165
+ "targetInput": "in"
166
+ },
167
+ {
168
+ "source": "normalizer",
169
+ "sourceOutput": "out",
170
+ "target": "persist",
171
+ "targetInput": "in"
172
+ },
173
+ {
174
+ "source": "persist",
175
+ "sourceOutput": "out",
176
+ "target": "project",
177
+ "targetInput": "in"
178
+ },
179
+ {
180
+ "source": "project",
181
+ "sourceOutput": "out",
182
+ "target": "responder",
183
+ "targetInput": "in"
184
+ },
185
+ { "source": "responder", "sourceOutput": "out", "target": "telemetry", "targetInput": "in" }
186
+ ]
187
+ }
@@ -0,0 +1,149 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "ACP \u2192 Claude Code (SDK)",
5
+ "description": "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 and list. Run with BRIDGE_GRAPH=graphs/acp-claude-sdk.json."
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": "Claude SDK Sessions",
19
+ "label": "Claude Code 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
+ "promptCapabilities": {
36
+ "image": true,
37
+ "audio": false,
38
+ "embeddedContext": true
39
+ },
40
+ "sessionCapabilities": {
41
+ "resume": {},
42
+ "list": {}
43
+ }
44
+ }
45
+ }
46
+ },
47
+ {
48
+ "id": "translator",
49
+ "type": "Claude SDK Translator",
50
+ "label": "Prompt for Claude Code",
51
+ "config": {}
52
+ },
53
+ {
54
+ "id": "client",
55
+ "type": "Claude SDK Client",
56
+ "label": "Claude Code (a query per session)",
57
+ "config": {}
58
+ },
59
+ {
60
+ "id": "policy",
61
+ "type": "Permission Policy",
62
+ "label": "Permissions",
63
+ "config": {
64
+ "rules": [],
65
+ "default": "ask"
66
+ }
67
+ },
68
+ {
69
+ "id": "normalizer",
70
+ "type": "Claude SDK Normalizer",
71
+ "label": "Claude Code's answer",
72
+ "config": {}
73
+ },
74
+ {
75
+ "id": "project",
76
+ "type": "Update Projection",
77
+ "label": "Session updates",
78
+ "config": {}
79
+ },
80
+ {
81
+ "id": "responder",
82
+ "type": "ACP Responder",
83
+ "label": "Reply",
84
+ "config": {}
85
+ },
86
+ {
87
+ "id": "telemetry",
88
+ "type": "Telemetry Sink",
89
+ "label": "Telemetry",
90
+ "config": {}
91
+ }
92
+ ],
93
+ "connections": [
94
+ {
95
+ "source": "endpoint",
96
+ "sourceOutput": "out",
97
+ "target": "sessions",
98
+ "targetInput": "in"
99
+ },
100
+ {
101
+ "source": "sessions",
102
+ "sourceOutput": "out",
103
+ "target": "acp",
104
+ "targetInput": "in"
105
+ },
106
+ {
107
+ "source": "acp",
108
+ "sourceOutput": "out",
109
+ "target": "translator",
110
+ "targetInput": "in"
111
+ },
112
+ {
113
+ "source": "translator",
114
+ "sourceOutput": "out",
115
+ "target": "client",
116
+ "targetInput": "in"
117
+ },
118
+ {
119
+ "source": "client",
120
+ "sourceOutput": "out",
121
+ "target": "policy",
122
+ "targetInput": "in"
123
+ },
124
+ {
125
+ "source": "policy",
126
+ "sourceOutput": "out",
127
+ "target": "normalizer",
128
+ "targetInput": "in"
129
+ },
130
+ {
131
+ "source": "normalizer",
132
+ "sourceOutput": "out",
133
+ "target": "project",
134
+ "targetInput": "in"
135
+ },
136
+ {
137
+ "source": "project",
138
+ "sourceOutput": "out",
139
+ "target": "responder",
140
+ "targetInput": "in"
141
+ },
142
+ {
143
+ "source": "responder",
144
+ "sourceOutput": "out",
145
+ "target": "telemetry",
146
+ "targetInput": "in"
147
+ }
148
+ ]
149
+ }
@@ -0,0 +1,182 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "ACP \u2192 Codex (App Server)",
5
+ "description": "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": "ACP Endpoint",
11
+ "label": "ACP (stdio)",
12
+ "config": {
13
+ "transport": "stdio"
14
+ }
15
+ },
16
+ {
17
+ "id": "sessions",
18
+ "type": "Codex Sessions",
19
+ "label": "Codex 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
+ "promptCapabilities": {
36
+ "image": true,
37
+ "audio": false,
38
+ "embeddedContext": true
39
+ },
40
+ "sessionCapabilities": {
41
+ "resume": {},
42
+ "list": {},
43
+ "close": {},
44
+ "systemPrompt": {}
45
+ }
46
+ }
47
+ }
48
+ },
49
+ {
50
+ "id": "translator",
51
+ "type": "Codex Translator",
52
+ "label": "Prompt for Codex",
53
+ "config": {}
54
+ },
55
+ {
56
+ "id": "client",
57
+ "type": "Codex Client",
58
+ "label": "Codex App Server",
59
+ "config": {
60
+ "command": {
61
+ "$config": "backends.codex.command",
62
+ "$default": "codex"
63
+ },
64
+ "args": {
65
+ "$config": "backends.codex.args",
66
+ "$default": ["app-server", "--listen", "stdio://"]
67
+ },
68
+ "env": {
69
+ "$config": "backends.codex.env"
70
+ },
71
+ "model": {
72
+ "$config": "backends.codex.model"
73
+ },
74
+ "mode": {
75
+ "$config": "backends.codex.mode"
76
+ },
77
+ "allowFullAccess": {
78
+ "$config": "backends.codex.allowFullAccess"
79
+ },
80
+ "dynamicTools": {
81
+ "$config": "backends.codex.dynamicTools",
82
+ "$default": true
83
+ },
84
+ "cancelGraceMs": {
85
+ "$config": "backends.codex.cancelGraceMs"
86
+ },
87
+ "requestTimeoutMs": {
88
+ "$config": "backends.codex.requestTimeoutMs"
89
+ }
90
+ }
91
+ },
92
+ {
93
+ "id": "policy",
94
+ "type": "Permission Policy",
95
+ "label": "Permissions",
96
+ "config": {
97
+ "rules": [],
98
+ "default": "ask"
99
+ }
100
+ },
101
+ {
102
+ "id": "normalizer",
103
+ "type": "Codex Normalizer",
104
+ "label": "Codex's answer",
105
+ "config": {}
106
+ },
107
+ {
108
+ "id": "project",
109
+ "type": "Update Projection",
110
+ "label": "Session updates",
111
+ "config": {}
112
+ },
113
+ {
114
+ "id": "responder",
115
+ "type": "ACP Responder",
116
+ "label": "Reply",
117
+ "config": {}
118
+ },
119
+ {
120
+ "id": "telemetry",
121
+ "type": "Telemetry Sink",
122
+ "label": "Telemetry",
123
+ "config": {}
124
+ }
125
+ ],
126
+ "connections": [
127
+ {
128
+ "source": "endpoint",
129
+ "sourceOutput": "out",
130
+ "target": "sessions",
131
+ "targetInput": "in"
132
+ },
133
+ {
134
+ "source": "sessions",
135
+ "sourceOutput": "out",
136
+ "target": "acp",
137
+ "targetInput": "in"
138
+ },
139
+ {
140
+ "source": "acp",
141
+ "sourceOutput": "out",
142
+ "target": "translator",
143
+ "targetInput": "in"
144
+ },
145
+ {
146
+ "source": "translator",
147
+ "sourceOutput": "out",
148
+ "target": "client",
149
+ "targetInput": "in"
150
+ },
151
+ {
152
+ "source": "client",
153
+ "sourceOutput": "out",
154
+ "target": "policy",
155
+ "targetInput": "in"
156
+ },
157
+ {
158
+ "source": "policy",
159
+ "sourceOutput": "out",
160
+ "target": "normalizer",
161
+ "targetInput": "in"
162
+ },
163
+ {
164
+ "source": "normalizer",
165
+ "sourceOutput": "out",
166
+ "target": "project",
167
+ "targetInput": "in"
168
+ },
169
+ {
170
+ "source": "project",
171
+ "sourceOutput": "out",
172
+ "target": "responder",
173
+ "targetInput": "in"
174
+ },
175
+ {
176
+ "source": "responder",
177
+ "sourceOutput": "out",
178
+ "target": "telemetry",
179
+ "targetInput": "in"
180
+ }
181
+ ]
182
+ }
@@ -0,0 +1,179 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "metadata": {
4
+ "name": "ACP → Grok",
5
+ "description": "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": "ACP Endpoint",
11
+ "label": "ACP (stdio)",
12
+ "config": {
13
+ "transport": "stdio"
14
+ }
15
+ },
16
+ {
17
+ "id": "acp",
18
+ "type": "ACP Normalizer",
19
+ "label": "Initialize and sessions",
20
+ "config": {
21
+ "agentName": "bridge",
22
+ "agentTitle": "Bridge",
23
+ "protocols": { "$config": "server.acpProtocols", "$default": [1] }
24
+ }
25
+ },
26
+ {
27
+ "id": "load",
28
+ "type": "Session Load",
29
+ "label": "Load session",
30
+ "config": {}
31
+ },
32
+ {
33
+ "id": "history",
34
+ "type": "History Window",
35
+ "label": "History window",
36
+ "config": {
37
+ "maxEntries": 4
38
+ }
39
+ },
40
+ {
41
+ "id": "cwd",
42
+ "type": "CWD Context",
43
+ "label": "Working directory",
44
+ "config": {}
45
+ },
46
+ {
47
+ "id": "messages",
48
+ "type": "Prompt Messages",
49
+ "label": "Messages",
50
+ "config": {}
51
+ },
52
+ {
53
+ "id": "translator",
54
+ "type": "Grok Translator",
55
+ "label": "ACP → Grok",
56
+ "config": {}
57
+ },
58
+ {
59
+ "id": "client",
60
+ "type": "Grok Client",
61
+ "label": "Grok Agent",
62
+ "config": {
63
+ "command": {
64
+ "$config": "backends.grok.command",
65
+ "$default": "grok"
66
+ },
67
+ "args": {
68
+ "$config": "backends.grok.args",
69
+ "$default": ["agent", "stdio"]
70
+ },
71
+ "env": {
72
+ "$config": "backends.grok.env"
73
+ },
74
+ "requestTimeoutMs": {
75
+ "$config": "backends.grok.requestTimeoutMs"
76
+ }
77
+ }
78
+ },
79
+ {
80
+ "id": "normalizer",
81
+ "type": "Grok Normalizer",
82
+ "label": "Normalize Response",
83
+ "config": {}
84
+ },
85
+ {
86
+ "id": "persist",
87
+ "type": "Session Persistence",
88
+ "label": "Save history",
89
+ "config": {}
90
+ },
91
+ {
92
+ "id": "project",
93
+ "type": "Update Projection",
94
+ "label": "Session updates",
95
+ "config": {}
96
+ },
97
+ {
98
+ "id": "responder",
99
+ "type": "ACP Responder",
100
+ "label": "Reply",
101
+ "config": {}
102
+ },
103
+ {
104
+ "id": "telemetry",
105
+ "type": "Telemetry Sink",
106
+ "label": "Telemetry",
107
+ "config": {}
108
+ }
109
+ ],
110
+ "connections": [
111
+ {
112
+ "source": "endpoint",
113
+ "sourceOutput": "out",
114
+ "target": "acp",
115
+ "targetInput": "in"
116
+ },
117
+ {
118
+ "source": "acp",
119
+ "sourceOutput": "out",
120
+ "target": "load",
121
+ "targetInput": "in"
122
+ },
123
+ {
124
+ "source": "load",
125
+ "sourceOutput": "out",
126
+ "target": "history",
127
+ "targetInput": "in"
128
+ },
129
+ {
130
+ "source": "history",
131
+ "sourceOutput": "out",
132
+ "target": "cwd",
133
+ "targetInput": "in"
134
+ },
135
+ {
136
+ "source": "cwd",
137
+ "sourceOutput": "out",
138
+ "target": "messages",
139
+ "targetInput": "in"
140
+ },
141
+ {
142
+ "source": "messages",
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": "normalizer",
157
+ "targetInput": "in"
158
+ },
159
+ {
160
+ "source": "normalizer",
161
+ "sourceOutput": "out",
162
+ "target": "persist",
163
+ "targetInput": "in"
164
+ },
165
+ {
166
+ "source": "persist",
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
+ { "source": "responder", "sourceOutput": "out", "target": "telemetry", "targetInput": "in" }
178
+ ]
179
+ }