@tangle-network/braid 0.3.1 → 0.3.3
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 +78 -412
- package/dist/adapters/connections/production-connection-credentials.d.ts.map +1 -1
- package/dist/adapters/connections/production-connection-credentials.js +4 -23
- package/dist/adapters/connections/production-connection-credentials.js.map +1 -1
- package/dist/adapters/connections/production-connection-types.d.ts +5 -1
- package/dist/adapters/connections/production-connection-types.d.ts.map +1 -1
- package/dist/adapters/runtime/production-cli-bridge-backend.d.ts +2 -2
- package/dist/adapters/runtime/production-cli-bridge-backend.d.ts.map +1 -1
- package/dist/adapters/runtime/production-cli-bridge-backend.js +11 -2
- package/dist/adapters/runtime/production-cli-bridge-backend.js.map +1 -1
- package/dist/bin/args.d.ts +2 -1
- package/dist/bin/args.d.ts.map +1 -1
- package/dist/bin/args.js +8 -0
- package/dist/bin/args.js.map +1 -1
- package/dist/bin/braid-runtime.d.ts.map +1 -1
- package/dist/bin/braid-runtime.js +8 -38
- package/dist/bin/braid-runtime.js.map +1 -1
- package/dist/bin/interface-runner.d.ts.map +1 -1
- package/dist/bin/interface-runner.js +7 -2
- package/dist/bin/interface-runner.js.map +1 -1
- package/dist/bin/production-bridge-client.d.ts +1 -0
- package/dist/bin/production-bridge-client.d.ts.map +1 -1
- package/dist/bin/production-bridge-client.js +1 -0
- package/dist/bin/production-bridge-client.js.map +1 -1
- package/dist/bin/production-bridge-discovery.d.ts.map +1 -1
- package/dist/bin/production-bridge-discovery.js +4 -2
- package/dist/bin/production-bridge-discovery.js.map +1 -1
- package/dist/bin/production-setup-application.d.ts +20 -0
- package/dist/bin/production-setup-application.d.ts.map +1 -0
- package/dist/bin/production-setup-application.js +62 -0
- package/dist/bin/production-setup-application.js.map +1 -0
- package/dist/bin/production-setup-auth.d.ts +5 -0
- package/dist/bin/production-setup-auth.d.ts.map +1 -0
- package/dist/bin/production-setup-auth.js +20 -0
- package/dist/bin/production-setup-auth.js.map +1 -0
- package/dist/bin/production-setup-credentials.d.ts.map +1 -1
- package/dist/bin/production-setup-credentials.js +4 -3
- package/dist/bin/production-setup-credentials.js.map +1 -1
- package/dist/bin/production-setup-discovery.d.ts +1 -1
- package/dist/bin/production-setup-discovery.d.ts.map +1 -1
- package/dist/bin/production-setup-discovery.js +2 -2
- package/dist/bin/production-setup-discovery.js.map +1 -1
- package/dist/bin/production-setup-validation.d.ts.map +1 -1
- package/dist/bin/production-setup-validation.js +2 -1
- package/dist/bin/production-setup-validation.js.map +1 -1
- package/dist/bin/runtime-startup-options.d.ts.map +1 -1
- package/dist/bin/runtime-startup-options.js +2 -0
- package/dist/bin/runtime-startup-options.js.map +1 -1
- package/dist/domain/secret-sanitizer.d.ts.map +1 -1
- package/dist/domain/secret-sanitizer.js +78 -28
- package/dist/domain/secret-sanitizer.js.map +1 -1
- package/dist/views/headless/protocol.d.ts +19 -7
- package/dist/views/headless/protocol.d.ts.map +1 -1
- package/dist/views/headless/rpc-parser.d.ts.map +1 -1
- package/dist/views/headless/rpc-parser.js +1 -1
- package/dist/views/headless/rpc-parser.js.map +1 -1
- package/dist/views/headless/rpc.d.ts.map +1 -1
- package/dist/views/headless/rpc.js +1 -1
- package/dist/views/headless/rpc.js.map +1 -1
- package/dist/views/tui/configuration-recovery.d.ts +24 -0
- package/dist/views/tui/configuration-recovery.d.ts.map +1 -0
- package/dist/views/tui/configuration-recovery.js +131 -0
- package/dist/views/tui/configuration-recovery.js.map +1 -0
- package/dist/views/tui/configuration-wizard-options.d.ts +27 -0
- package/dist/views/tui/configuration-wizard-options.d.ts.map +1 -0
- package/dist/views/tui/configuration-wizard-options.js +2 -0
- package/dist/views/tui/configuration-wizard-options.js.map +1 -0
- package/dist/views/tui/configuration-wizard.d.ts +3 -19
- package/dist/views/tui/configuration-wizard.d.ts.map +1 -1
- package/dist/views/tui/configuration-wizard.js +64 -28
- package/dist/views/tui/configuration-wizard.js.map +1 -1
- package/dist/views/tui/setup-stage-rendering.d.ts +4 -1
- package/dist/views/tui/setup-stage-rendering.d.ts.map +1 -1
- package/dist/views/tui/setup-stage-rendering.js +19 -0
- package/dist/views/tui/setup-stage-rendering.js.map +1 -1
- package/dist/views/tui/terminal-app.d.ts +1 -1
- package/dist/views/tui/terminal-app.d.ts.map +1 -1
- package/dist/views/tui/terminal-overlays.d.ts +1 -1
- package/dist/views/tui/terminal-overlays.d.ts.map +1 -1
- package/dist/views/tui/terminal-overlays.js +12 -2
- package/dist/views/tui/terminal-overlays.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,435 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
<h1>Braid</h1>
|
|
3
|
-
<p><strong>One coding-agent profile across Pi, Codex, and OpenCode, on your machine or in a Tangle cloud sandbox.</strong></p>
|
|
4
|
-
<p>
|
|
5
|
-
<a href="https://github.com/tangle-network/braid/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/tangle-network/braid/actions/workflows/ci.yml/badge.svg"></a>
|
|
6
|
-
<a href="LICENSE"><img alt="MIT License" src="https://img.shields.io/badge/license-MIT-7aa2f7"></a>
|
|
7
|
-
</p>
|
|
8
|
-
</div>
|
|
1
|
+
# Braid
|
|
9
2
|
|
|
10
|
-
|
|
3
|
+
**One terminal for coding agents, conversation branches, and reviews of finished runs.**
|
|
11
4
|
|
|
12
|
-
|
|
5
|
+
Use Pi, Codex, or OpenCode through the same interface, on your machine or in a Tangle cloud sandbox.
|
|
6
|
+
Keep the instructions you give an agent, compare different approaches, and see which runner, model, and workspace each turn used.
|
|
13
7
|
|
|
14
|
-
|
|
15
|
-
Choose a local runner through CLI Bridge, Tangle inference, or a Tangle Sandbox for each turn.
|
|
8
|
+
[Install and start](#start-with-a-local-coding-agent) · [Cloud setup](docs/getting-started.md#use-a-tangle-cloud-sandbox) · [Commands](#while-you-work)
|
|
16
9
|
|
|
17
|
-
Braid
|
|
10
|
+

|
|
18
11
|
|
|
19
|
-
|
|
12
|
+
A real run: the agent fixed a `slugify` function and passed eight tests.
|
|
13
|
+
Then `/ask` reviewed the result, citing the code and test output and identifying a coverage gap.
|
|
14
|
+
[Read the captured example](docs/examples/coding-review.md).
|
|
20
15
|
|
|
21
|
-
|
|
22
|
-
It does not show a live runner or cloud call.
|
|
23
|
-
The [launch comparison](docs/launch/comparison.md) separates live runner and cloud proofs from fixture captures.
|
|
16
|
+
## Start with a local coding agent
|
|
24
17
|
|
|
25
|
-
|
|
18
|
+
You need **Node.js 22.19+**, **Linux or macOS**, and a coding agent that is installed and signed in.
|
|
19
|
+
Start [CLI Bridge](https://github.com/drewstone/cli-bridge#install) in a separate terminal; it connects Braid to your local coding tools.
|
|
20
|
+
[The setup guide](docs/getting-started.md#use-a-local-coding-agent) has the complete commands.
|
|
26
21
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Braid requires Node.js 22.19 or newer.
|
|
30
|
-
|
|
31
|
-
The published package currently targets Linux and macOS.
|
|
22
|
+
With CLI Bridge running at `http://127.0.0.1:3344`:
|
|
32
23
|
|
|
33
24
|
```bash
|
|
34
25
|
npm install --global @tangle-network/braid
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Braid runs an `AgentProfile` from your workspace.
|
|
38
|
-
A clean workspace has none, so create one before the first run:
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
mkdir -p .braid
|
|
42
|
-
cat > .braid/profile.json <<'EOF'
|
|
43
|
-
{
|
|
44
|
-
"name": "Coding agent",
|
|
45
|
-
"harness": "opencode",
|
|
46
|
-
"model": { "provider": "tangle-router", "default": "tangle-router/glm-5.3" },
|
|
47
|
-
"prompt": { "instructions": ["Inspect the repository before changing it."] }
|
|
48
|
-
}
|
|
49
|
-
EOF
|
|
50
|
-
braid
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Braid also reads `braid.profile.json`, or any file passed with `--profile <path>`.
|
|
54
|
-
The first-run flow selects that `AgentProfile` and a connection.
|
|
55
|
-
|
|
56
|
-
A connection supplies transport and credential references.
|
|
57
|
-
|
|
58
|
-
Credential values stay in the operating-system credential facility or their bounded response path.
|
|
59
|
-
|
|
60
|
-
For a local runner, install and start [CLI Bridge](https://github.com/drewstone/cli-bridge#install) in another terminal.
|
|
61
|
-
Sign in to each runner you want to use, then choose **Local CLI Bridge** during Braid setup.
|
|
62
|
-
For example, from the CLI Bridge checkout:
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
pnpm install
|
|
66
|
-
BRIDGE_BACKENDS=codex,opencode pnpm start
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Braid connects to the default local service at `http://127.0.0.1:3344`; it does not start the runners.
|
|
70
|
-
Pi on Linux also needs bubblewrap and `PI_EXECUTOR=host BRIDGE_JAIL_MODE=fs-jail BRIDGE_BACKENDS=pi` ([CLI Bridge requirements](https://github.com/drewstone/cli-bridge#install)).
|
|
71
|
-
|
|
72
|
-
For Tangle inference or a Tangle Sandbox, [create a Tangle account and key](https://sandbox.tangle.tools/?utm_source=github&utm_medium=readme&utm_campaign=braid-0.3.0&ref=braid).
|
|
73
|
-
Enter the key in setup, or provide it to Braid through `BRAID_TANGLE_AUTH`:
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
export BRAID_TANGLE_AUTH=YOUR_TANGLE_KEY
|
|
26
|
+
cd your-project
|
|
77
27
|
braid
|
|
78
28
|
```
|
|
79
29
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
Use these launch forms when needed:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
braid --inline # keep normal terminal scrollback
|
|
88
|
-
braid --plain # readable non-interactive output
|
|
89
|
-
braid rpc # JSON Lines control interface
|
|
90
|
-
braid --conversation <id> # open a durable Braid conversation
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
`--profile`, `--connection`, `--runner`, `--model`, and `--effort` select defaults for the opened or new branch.
|
|
94
|
-
|
|
95
|
-
They do not rewrite the profile source.
|
|
96
|
-
|
|
97
|
-
## Operating model
|
|
98
|
-
|
|
99
|
-
The profile defines who the agent is.
|
|
100
|
-
|
|
101
|
-
The connection defines where requests go and which credentials they use.
|
|
102
|
-
|
|
103
|
-
The runner defines which coding program executes one run.
|
|
104
|
-
|
|
105
|
-
The SDK field `harness` stores that runner preference.
|
|
106
|
-
|
|
107
|
-
Braid owns the user-visible conversation graph, durable event journal, branch choices, interaction decisions, activity views, and terminal/headless presentation.
|
|
108
|
-
|
|
109
|
-
The execution route is:
|
|
110
|
-
|
|
111
|
-
```text
|
|
112
|
-
AgentProfile + user turn
|
|
113
|
-
│
|
|
114
|
-
▼
|
|
115
|
-
Braid
|
|
116
|
-
│ profile snapshot · connection · run limits
|
|
117
|
-
▼
|
|
118
|
-
agent-runtime
|
|
119
|
-
│
|
|
120
|
-
├── CLI Bridge ── selected local runner
|
|
121
|
-
├── Tangle inference
|
|
122
|
-
└── Tangle sandbox ── remote workspace
|
|
123
|
-
│
|
|
124
|
-
▼
|
|
125
|
-
normalized events, receipts, activity, and final output
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
Braid does not launch runner processes directly, parse private runner output, materialize profile files, schedule sandboxes, run trace judges, or implement billing.
|
|
129
|
-
|
|
130
|
-
An admitted run stores an immutable profile snapshot, effective runner, model, reasoning effort, configured output limits, connection, provider session, environment, and capability snapshot.
|
|
131
|
-
|
|
132
|
-
Configured limits are not measured usage.
|
|
133
|
-
|
|
134
|
-
This is the shape of a profile using the current routed model example:
|
|
135
|
-
|
|
136
|
-
```ts
|
|
137
|
-
import type { AgentProfile } from '@tangle-network/agent-interface'
|
|
138
|
-
|
|
139
|
-
const profile: AgentProfile = {
|
|
140
|
-
name: 'Release engineer',
|
|
141
|
-
harness: 'pi',
|
|
142
|
-
model: {
|
|
143
|
-
provider: 'tangle-router',
|
|
144
|
-
default: 'tangle-router/glm-5.3',
|
|
145
|
-
reasoningEffort: 'high',
|
|
146
|
-
},
|
|
147
|
-
prompt: {
|
|
148
|
-
instructions: [
|
|
149
|
-
'Inspect the repository before changing it.',
|
|
150
|
-
'Run focused checks and report exact evidence.',
|
|
151
|
-
],
|
|
152
|
-
},
|
|
153
|
-
tools: { read: true, write: true, shell: true },
|
|
154
|
-
permissions: { read: 'allow', write: 'ask', shell: 'ask' },
|
|
155
|
-
}
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
## Parallel work: Work Strip, activity, and focus
|
|
159
|
-
|
|
160
|
-
Braid admits one run per conversation branch at a time.
|
|
161
|
-
|
|
162
|
-
Different branches and conversations can stream concurrently while each branch preserves its own turn order.
|
|
163
|
-
|
|
164
|
-
Inputs for an active run queue by default.
|
|
165
|
-
|
|
166
|
-
`/queue <text>` always adds the next turn.
|
|
167
|
-
|
|
168
|
-
`/steer <text>` sends live steering only when that run reports steering support.
|
|
169
|
-
|
|
170
|
-
`Alt+S` switches between queue and steer when both actions are available.
|
|
171
|
-
|
|
172
|
-
The Work Strip appears when at least two active, queued, waiting, or detached work items need attention.
|
|
173
|
-
|
|
174
|
-
Each item shows its branch, state, runner and model, pending interaction count, and available actions.
|
|
175
|
-
|
|
176
|
-
Standard terminals show up to three items, wide terminals show up to eight, and narrow terminals show one bounded count with `/activity to switch`.
|
|
177
|
-
|
|
178
|
-
`/activity` opens a full-screen browser instead of adding a permanent side panel.
|
|
179
|
-
|
|
180
|
-
`Tab` cycles `all`, `runs`, `analyses`, and `workers` scopes.
|
|
181
|
-
|
|
182
|
-
In the `runs` scope, `Enter` opens details and focuses controls for that exact run.
|
|
183
|
-
|
|
184
|
-
Changing focus does not pause, cancel, detach, or reassign another run.
|
|
185
|
-
|
|
186
|
-
Controls carry the selected run identifier, so a background run cannot receive a focus-dependent action by accident.
|
|
187
|
-
|
|
188
|
-
Direct turns, trace analyses, supervisors, and workers remain separate activity records with separate usage totals.
|
|
189
|
-
|
|
190
|
-
An unbound supervisor remains workspace activity and is not attributed to the current turn.
|
|
191
|
-
|
|
192
|
-
## Continue, branch, and fork
|
|
193
|
-
|
|
194
|
-
### Native continuation
|
|
195
|
-
|
|
196
|
-
An ordinary follow-up uses the exact provider session only when the current branch tip has the same profile and connection, the provider reports session continuation, and the provider proves the recorded message boundary with retry-safe request identity.
|
|
197
|
-
|
|
198
|
-
Only the new user input is submitted because the provider session remains authoritative for its native context.
|
|
199
|
-
|
|
200
|
-
If the provider cannot prove that boundary, Braid does not submit to the native session.
|
|
201
|
-
|
|
202
|
-
Choose a fresh provider session with an explicit portable context transfer when that provider supports it.
|
|
203
|
-
|
|
204
|
-
The transfer lists included, omitted, and transformed parts and requires acceptance when it changes the context.
|
|
205
|
-
|
|
206
|
-
`--conversation <id>` attaches to Braid's durable record and recorded run bindings.
|
|
207
|
-
|
|
208
|
-
It does not take over an arbitrary native runner process.
|
|
209
|
-
|
|
210
|
-
`/interactive <prompt>` and `/attach [run-id]` are separate native-terminal operations.
|
|
211
|
-
|
|
212
|
-
They require an interactive TUI and a retained provider session with native terminal support.
|
|
213
|
-
|
|
214
|
-
### Conversation operations
|
|
215
|
-
|
|
216
|
-
`/branch [message]` creates a new branch at a message boundary in the same conversation.
|
|
217
|
-
|
|
218
|
-
It uses a new provider session and keeps the current environment shared.
|
|
219
|
-
|
|
220
|
-
Pending interactions and queued work after the boundary are not inherited.
|
|
221
|
-
|
|
222
|
-
`/clone` creates a separate conversation from the active branch tip with new conversation, branch, and execution identities.
|
|
223
|
-
|
|
224
|
-
It may retain a reference to the same workspace, but it does not copy provider process memory.
|
|
225
|
-
|
|
226
|
-
`/fork` opens a provenance preview before creating a branch.
|
|
227
|
-
|
|
228
|
-
The preview shows the transcript boundary, profile, run overrides, provider session, environment, checkpoint, working-tree state, queued input, and pending interactions.
|
|
229
|
-
|
|
230
|
-
The default is a conversation-only fork with a new provider session and shared environment.
|
|
231
|
-
|
|
232
|
-
`/fork --runner <name>` creates a cross-runner handoff with a new provider session and explicit portable context.
|
|
233
|
-
|
|
234
|
-
Hidden process memory, runner-specific todos, opaque tool state, and opaque tool identifiers do not transfer.
|
|
235
|
-
|
|
236
|
-
`/fork --workspace` requests a real provider checkpoint and destination environment.
|
|
237
|
-
|
|
238
|
-
It is available only when the provider reports retry-safe checkpoint and fork operations, lookup by idempotency key, and explicit cleanup.
|
|
239
|
-
|
|
240
|
-
The source environment remains unchanged, and a failed fork does not destroy its checkpoint or source.
|
|
241
|
-
|
|
242
|
-
The destination environment is not assumed to include external services, browser sessions, secrets, network connections, or provider process memory.
|
|
243
|
-
|
|
244
|
-
## Interactions and secrets
|
|
245
|
-
|
|
246
|
-
An interaction is a provider request with a stable identifier, kind, prompt, subject, timeout, allowed outcomes, and canonical `answerSpec`.
|
|
247
|
-
|
|
248
|
-
Known kinds include questions, permissions, and plans.
|
|
249
|
-
|
|
250
|
-
Unknown kinds render through the generic answer specification and fail closed if Braid cannot validate a response.
|
|
251
|
-
|
|
252
|
-
`/approve [scope]` accepts an allowed response.
|
|
253
|
-
|
|
254
|
-
`/reject [feedback]` declines it when the schema accepts feedback.
|
|
255
|
-
|
|
256
|
-
The terminal validates text, number, boolean, select, and secret answers before dispatch.
|
|
257
|
-
|
|
258
|
-
Permission controls expose only scopes declared by the provider.
|
|
259
|
-
|
|
260
|
-
Secret answers are masked and sent only through the bounded response path.
|
|
261
|
-
|
|
262
|
-
They are excluded from history, profiles, SQLite, logs, snapshots, screenshots, and trace artifacts.
|
|
263
|
-
|
|
264
|
-
`/automate` manages scoped non-secret response rules.
|
|
265
|
-
|
|
266
|
-
An answer specification containing a secret field cannot create or match an automation rule.
|
|
267
|
-
|
|
268
|
-
Concurrent interactions remain attached to their source runs and display in stable arrival order.
|
|
269
|
-
|
|
270
|
-
Response retries reuse the same operation identifier and never answer twice.
|
|
271
|
-
|
|
272
|
-
## Trace analysis
|
|
273
|
-
|
|
274
|
-
Trace analysis reads a frozen run or branch record in a separate execution.
|
|
275
|
-
|
|
276
|
-
It does not send a question to the active agent and does not append a message to the analyzed branch.
|
|
30
|
+
1. Choose a profile from the runner and model combinations advertised by your bridge.
|
|
31
|
+
2. Choose **Local CLI Bridge**, review the selection, and apply it.
|
|
32
|
+
3. Type a task in the conversation, for example:
|
|
277
33
|
|
|
278
34
|
```text
|
|
279
|
-
|
|
280
|
-
/analyze failure,cost,tools run selected named recipes
|
|
281
|
-
/analyze all run every available trace analyst
|
|
282
|
-
/compare <left> <right> compare two frozen sources
|
|
35
|
+
Find where this project handles authentication. Explain the flow and cite the files. Do not edit anything.
|
|
283
36
|
```
|
|
284
37
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
The analysis activity scope uses `p` to promote a supported cited finding and `x` to cancel active analysis.
|
|
290
|
-
|
|
291
|
-
Promotion creates an explicit attachment or a branch fork; it never changes the source implicitly.
|
|
292
|
-
|
|
293
|
-
Comparisons show every measured field and asymmetry before any semantic interpretation.
|
|
294
|
-
|
|
295
|
-
## Runtime supervisors and workers
|
|
296
|
-
|
|
297
|
-
`/activity` reads runtime-owned supervisor snapshots through the shared Runtime API.
|
|
298
|
-
|
|
299
|
-
It does not read `.agent/supervisor` files or infer identity from display text, timestamps, or row order.
|
|
38
|
+
The transcript shows the response and tool activity.
|
|
39
|
+
The status line identifies the selected runner and model.
|
|
40
|
+
Use `/help` for commands, or `/quit` to leave.
|
|
300
41
|
|
|
301
|
-
|
|
42
|
+
A **profile** is the saved set of instructions and settings for an agent.
|
|
43
|
+
Braid can generate one from your bridge's model catalog, so this local path needs no profile JSON.
|
|
44
|
+
If setup says **No AgentProfiles**, [check discovery or supply a profile](docs/getting-started.md#setup-has-no-profiles).
|
|
302
45
|
|
|
303
|
-
|
|
46
|
+
**Prefer a cloud workspace?** Follow [Tangle Sandbox setup](docs/getting-started.md#use-a-tangle-cloud-sandbox).
|
|
47
|
+
It requires a Tangle account, an API key, and available credit.
|
|
48
|
+
New cloud connections delete the sandbox after one turn; choose retained execution before relying on files or background work.
|
|
304
49
|
|
|
305
|
-
|
|
50
|
+
## While you work
|
|
306
51
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
It is available only in the interactive TUI when the selected worker is running and its provider exposes a retained terminal binding.
|
|
310
|
-
|
|
311
|
-
That worker action is different from `/attach [run-id]`, which targets a retained native terminal session.
|
|
312
|
-
|
|
313
|
-
When the runtime cannot acknowledge a control, Braid leaves the result queued or unknown.
|
|
314
|
-
|
|
315
|
-
It never displays delivered steering or cancellation without the matching runtime effect.
|
|
316
|
-
|
|
317
|
-
## Capability-aware commands
|
|
318
|
-
|
|
319
|
-
Braid asks the active provider and Runtime for capabilities before it enables an action.
|
|
320
|
-
|
|
321
|
-
Unavailable commands remain searchable and explain the exact missing capability.
|
|
322
|
-
|
|
323
|
-
Common reasons include:
|
|
324
|
-
|
|
325
|
-
| Action | Exact reason shown when the condition applies |
|
|
52
|
+
| What you want to do | Command |
|
|
326
53
|
| --- | --- |
|
|
327
|
-
|
|
|
328
|
-
|
|
|
329
|
-
|
|
|
330
|
-
|
|
|
331
|
-
|
|
|
332
|
-
|
|
|
333
|
-
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
The command palette uses the same capability explanations as direct invocation.
|
|
377
|
-
|
|
378
|
-
## Headless mode
|
|
379
|
-
|
|
380
|
-
`braid rpc` exposes JSON Lines commands over the same application core as the terminal.
|
|
381
|
-
|
|
382
|
-
Headless clients can inspect state, send, queue, steer, cancel, detach, reconnect, reconcile, respond to interactions, manage automation, branch, clone, fork, analyze, compare, inspect activity, control workers, and export records.
|
|
383
|
-
|
|
384
|
-
Worker terminal attachment remains an interactive-TUI action.
|
|
385
|
-
|
|
386
|
-
Mutating requests carry stable operation identifiers, so retries can be recognized instead of dispatched twice.
|
|
387
|
-
|
|
388
|
-
Plain output and headless state contain no terminal control sequences.
|
|
389
|
-
|
|
390
|
-
## Ownership and safety boundaries
|
|
391
|
-
|
|
392
|
-
| Boundary | Owner |
|
|
393
|
-
| --- | --- |
|
|
394
|
-
| Portable agent definition and compatibility helpers | `agent-interface` |
|
|
395
|
-
| Run admission, lifecycle, normalized events, replay, and runtime control | `agent-runtime` |
|
|
396
|
-
| Local runner process and native profile materialization | CLI Bridge |
|
|
397
|
-
| Inference and remote workspace lifecycle | Tangle provider and sandbox packages |
|
|
398
|
-
| Trace analysis and paired comparison | `agent-eval` |
|
|
399
|
-
| Conversation journal, branches, graph, interactions, projections, and interfaces | Braid |
|
|
400
|
-
|
|
401
|
-
Components render immutable view models and emit typed intents.
|
|
402
|
-
|
|
403
|
-
Controllers own workflows, cancellation, event reduction, and side effects through ports.
|
|
404
|
-
|
|
405
|
-
Untrusted terminal content is sanitized before rendering, and OSC control sequences are suppressed by default.
|
|
406
|
-
|
|
407
|
-
No credential value, secret interaction answer, provider-private state, or raw secret-bearing trace enters a profile, SQLite record, log, snapshot, screenshot, or export.
|
|
408
|
-
|
|
409
|
-
## Development and proof
|
|
410
|
-
|
|
411
|
-
```bash
|
|
412
|
-
pnpm install --frozen-lockfile
|
|
413
|
-
pnpm check
|
|
414
|
-
pnpm capture:visual
|
|
415
|
-
```
|
|
416
|
-
|
|
417
|
-
`pnpm check` runs the repository's formatting, lint, type, boundary, dependency, attribution, license, test, live, and release checks.
|
|
418
|
-
|
|
419
|
-
`pnpm capture:visual` records terminal state at 40×12, 80×24, 120×40, and 200×60 and exercises the keyboard path.
|
|
420
|
-
|
|
421
|
-
The [verification plan](docs/08-verification.md) defines the required live, headless, terminal, security, installation, and release evidence.
|
|
422
|
-
|
|
423
|
-
The [delivery plan](docs/09-delivery-plan.md) records dependency order and completion criteria.
|
|
424
|
-
|
|
425
|
-
The [product contract](docs/01-product-contract.md), [experience specification](docs/02-experience-specification.md), [runtime contracts](docs/04-runtime-contracts.md), and [conversation/fork/analysis contract](docs/06-conversations-forks-and-analysis.md) define the behavior and ownership boundaries.
|
|
426
|
-
|
|
427
|
-
## Open-source foundation
|
|
428
|
-
|
|
429
|
-
Braid uses the MIT-licensed [`@earendil-works/pi-tui`](https://www.npmjs.com/package/@earendil-works/pi-tui) package for terminal rendering and input primitives.
|
|
430
|
-
|
|
431
|
-
See the [renderer decision](docs/decisions/001-pi-tui-renderer.md), [runtime boundary](docs/decisions/002-runtime-boundary.md), [upstream strategy](docs/10-upstream-strategy.md), and [third-party notices](THIRD_PARTY_NOTICES.md) for the reuse boundary.
|
|
432
|
-
|
|
433
|
-
## License
|
|
434
|
-
|
|
435
|
-
[MIT](LICENSE)
|
|
54
|
+
| See running work, waiting questions, and usage | `/activity` or `F2` |
|
|
55
|
+
| Try another approach from this conversation | `/fork` |
|
|
56
|
+
| Inspect the conversation's branches | `/graph` |
|
|
57
|
+
| Add the next task while a run continues | `/queue <task>` |
|
|
58
|
+
| Stop the selected run | `/cancel` |
|
|
59
|
+
| Ask what a completed run established | `/ask <question>` |
|
|
60
|
+
| Change the next turn's runner or model | `/runner`, then `/model` |
|
|
61
|
+
|
|
62
|
+
`/fork` previews what carries over before you confirm.
|
|
63
|
+
A conversation fork shares the workspace by default; `/fork --workspace` requests a separate workspace when the provider supports it.
|
|
64
|
+
Changing runners uses a new provider session with an explicit context transfer.
|
|
65
|
+
It does not copy a runner's private memory.
|
|
66
|
+
|
|
67
|
+
`/ask` runs a separate analysis of a completed or failed run.
|
|
68
|
+
It can make additional model calls and charges; its findings cite the saved run without changing that conversation.
|
|
69
|
+
Read the [analysis setup and commands](docs/getting-started.md#review-a-finished-run) before using it.
|
|
70
|
+
|
|
71
|
+
Commands that need an unavailable provider feature explain what is missing.
|
|
72
|
+
See the [conversation and control reference](docs/06-conversations-forks-and-analysis.md) for continuation, permissions, queueing, and worker controls.
|
|
73
|
+
|
|
74
|
+
## Your work, accounts, and costs
|
|
75
|
+
|
|
76
|
+
- **Local work:** CLI Bridge uses the coding tools and accounts you configure.
|
|
77
|
+
Their subscription limits and API charges still apply.
|
|
78
|
+
- **Cloud work:** Tangle provides model access and sandbox compute.
|
|
79
|
+
Review the selected connection, workspace source, and lifecycle before sending a task.
|
|
80
|
+
- **Saved work:** Braid keeps conversations and run records in an encrypted local database.
|
|
81
|
+
A saved conversation does not imply that a remote process or its files still exist.
|
|
82
|
+
- **Credentials:** enter keys through the masked setup prompt.
|
|
83
|
+
Keep them out of profiles and prompts; inspect exported run content before sharing it.
|
|
84
|
+
- **Usage:** reported, estimated, and unavailable costs remain distinct.
|
|
85
|
+
An unavailable cost is not zero.
|
|
86
|
+
|
|
87
|
+
[Security and storage](docs/07-security-and-privacy.md) · [Profiles and connections](docs/05-profiles-and-connections.md) · [Recorded capability comparisons](docs/launch/comparison.md)
|
|
88
|
+
|
|
89
|
+
## Use Braid from another program
|
|
90
|
+
|
|
91
|
+
`braid rpc` exposes JSON Lines commands over the same application core.
|
|
92
|
+
For scripts and integrations, start with the [headless interface guide](docs/components/headless-and-accessibility.md).
|
|
93
|
+
For terminal scrollback, use `braid --inline`; for plain text, use `braid --plain`.
|
|
94
|
+
|
|
95
|
+
## Contribute
|
|
96
|
+
|
|
97
|
+
Read the [product contract](docs/01-product-contract.md), [component map](docs/components/README.md), and [verification guide](docs/08-verification.md).
|
|
98
|
+
Braid uses [agent-runtime](https://github.com/tangle-network/agent-runtime) for execution and [pi-tui](https://www.npmjs.com/package/@earendil-works/pi-tui) for terminal rendering.
|
|
99
|
+
See [third-party notices](THIRD_PARTY_NOTICES.md) for attribution.
|
|
100
|
+
|
|
101
|
+
[MIT license](LICENSE).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"production-connection-credentials.d.ts","sourceRoot":"","sources":["../../../src/adapters/connections/production-connection-credentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"production-connection-credentials.d.ts","sourceRoot":"","sources":["../../../src/adapters/connections/production-connection-credentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAIhE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAInF;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU,CAOvF;AAiBD,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,2BAA2B,EACpC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAuC7B;AAED,oFAAoF;AACpF,wBAAsB,mCAAmC,CACvD,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,IAAI,CAAC,CAIf"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ConnectionError } from '../../app/connection-errors.js';
|
|
2
2
|
import { credentialRef } from '../../ports/credentials.js';
|
|
3
|
-
import {
|
|
4
|
-
import { DEFAULT_TANGLE_SANDBOX_ENDPOINT } from './production-connection-types.js';
|
|
3
|
+
import { isLoopbackEndpoint } from './production-connection-endpoints.js';
|
|
5
4
|
const BOUND_CREDENTIAL_HEADER = 'braid-credential-v1\n';
|
|
6
5
|
/**
|
|
7
6
|
* Stores a secret together with the origin it was issued for. The binding lives
|
|
@@ -16,26 +15,8 @@ export function bindCredentialToOrigin(secret, endpoint) {
|
|
|
16
15
|
bound.set(secret, header.length);
|
|
17
16
|
return bound;
|
|
18
17
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* only where they could have been issued: the connection kind's default Tangle
|
|
22
|
-
* origin, or a loopback CLI Bridge.
|
|
23
|
-
*/
|
|
24
|
-
function legacyCredentialOriginAllowed(record, options, endpoint) {
|
|
25
|
-
const origin = new URL(endpoint).origin;
|
|
26
|
-
if (record.kind === 'tangle-sandbox')
|
|
27
|
-
return (origin === new URL(options.defaultSandboxEndpoint ?? DEFAULT_TANGLE_SANDBOX_ENDPOINT).origin);
|
|
28
|
-
if (record.kind === 'tangle-inference')
|
|
29
|
-
return (origin ===
|
|
30
|
-
new URL(options.defaultInferenceEndpoint ?? DEFAULT_TANGLE_INFERENCE_ENDPOINT).origin);
|
|
31
|
-
return isLoopbackEndpoint(endpoint);
|
|
32
|
-
}
|
|
33
|
-
function credentialForOrigin(value, record, options, endpoint) {
|
|
34
|
-
if (!value.startsWith(BOUND_CREDENTIAL_HEADER)) {
|
|
35
|
-
if (legacyCredentialOriginAllowed(record, options, endpoint))
|
|
36
|
-
return value;
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
18
|
+
function credentialForOrigin(value, record, endpoint) {
|
|
19
|
+
if (value.startsWith(BOUND_CREDENTIAL_HEADER)) {
|
|
39
20
|
const rest = value.slice(BOUND_CREDENTIAL_HEADER.length);
|
|
40
21
|
const newline = rest.indexOf('\n');
|
|
41
22
|
const boundOrigin = newline < 0 ? '' : rest.slice(0, newline);
|
|
@@ -63,7 +44,7 @@ export async function readConnectionCredential(record, options, endpoint) {
|
|
|
63
44
|
if (value.length === 0 || value.includes('\u0000')) {
|
|
64
45
|
throw new ConnectionError('CONNECTION_CREDENTIAL_INVALID', 'The referenced credential in the operating-system credential store is empty or malformed', { connectionId: record.id });
|
|
65
46
|
}
|
|
66
|
-
return credentialForOrigin(value, record,
|
|
47
|
+
return credentialForOrigin(value, record, endpoint);
|
|
67
48
|
}
|
|
68
49
|
catch (error) {
|
|
69
50
|
if (error instanceof ConnectionError)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"production-connection-credentials.js","sourceRoot":"","sources":["../../../src/adapters/connections/production-connection-credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAGhE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,
|
|
1
|
+
{"version":3,"file":"production-connection-credentials.js","sourceRoot":"","sources":["../../../src/adapters/connections/production-connection-credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAGhE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAA;AAGzE,MAAM,uBAAuB,GAAG,uBAAuB,CAAA;AAEvD;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAAkB,EAAE,QAAgB;IACzE,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAA;IACvC,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,GAAG,uBAAuB,GAAG,MAAM,IAAI,CAAC,CAAA;IAChF,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;IAC3D,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;IACpB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;IAChC,OAAO,KAAK,CAAA;AACd,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAa,EAAE,MAAwB,EAAE,QAAgB;IACpF,IAAI,KAAK,CAAC,UAAU,CAAC,uBAAuB,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,uBAAuB,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AAC,WAAW,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC;QAC3D,MAAM,IAAI,eAAe,CACvB,oCAAoC,EACpC,yGAAyG,EACzG,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,EAAE,CAC5B,CAAA;IACH,CAAC;IACD,IAAI,OAAsB,CAAA;IAC1B,IAAI,CAAC;QACH,OAAO,GAAG,aAAa,CAAC,MAAM,OAAO,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC,CAAA;IACnF,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,eAAe,CACvB,oCAAoC,EACpC,sDAAsD,EACtD,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,EAAE,CAC5B,CAAA;IACH,CAAC;IACD,IAAI,CAAC;QACH,OAAO,MAAM,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IACnD,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,eAAe,CACvB,mCAAmC,EACnC,6GAA6G,EAC7G,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,EAAE,CAC5B,CAAA;IACH,CAAC;AACH,CAAC;AAED,SAAS,uBAAuB,CAAC,MAAsD;IACrF,IAAI,CAAC;QACH,MAAM,CAAC,OAAO,EAAE,CAAA;IAClB,CAAC;IAAC,MAAM,CAAC;QACP,mEAAmE;IACrE,CAAC;AACH,CAAC"}
|
|
@@ -56,12 +56,16 @@ export interface TangleRetainedControlLookupInput {
|
|
|
56
56
|
}
|
|
57
57
|
/** Provider-backed lookup for a dispatch whose acknowledgement was not journaled. */
|
|
58
58
|
export type TangleRetainedControlLookup = (input: TangleRetainedControlLookupInput) => Promise<AgentExactRunControlRef | null>;
|
|
59
|
+
export interface OriginBoundBridgeModelCredential extends BridgeModelCredential {
|
|
60
|
+
/** Explicitly authorized Bridge destination, independent of workspace configuration. */
|
|
61
|
+
readonly bridgeOrigin: string;
|
|
62
|
+
}
|
|
59
63
|
export interface ProductionConnectionOptions {
|
|
60
64
|
readonly credentials?: CredentialPort;
|
|
61
65
|
/** Map Braid's durable credential id to the credential-port's opaque ref. */
|
|
62
66
|
readonly credentialRefResolver?: (ref: CredentialRefId) => CredentialRef | Promise<CredentialRef>;
|
|
63
67
|
/** Request-scoped model credential for a loopback CLI Bridge. */
|
|
64
|
-
readonly bridgeModelCredential?:
|
|
68
|
+
readonly bridgeModelCredential?: OriginBoundBridgeModelCredential;
|
|
65
69
|
readonly fetch?: typeof fetch;
|
|
66
70
|
/** Injectable Runtime Router transport for tests and embedded deployments. */
|
|
67
71
|
readonly routerComplete?: RouterTransportConfig['complete'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"production-connection-types.d.ts","sourceRoot":"","sources":["../../../src/adapters/connections/production-connection-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,YAAY,EACZ,+BAA+B,EAChC,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAA;AACxG,OAAO,KAAK,EACV,iBAAiB,EACjB,qCAAqC,EACtC,MAAM,uCAAuC,CAAA;AAE9C,YAAY,EAAE,qCAAqC,EAAE,MAAM,uCAAuC,CAAA;AAElG,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EACV,kCAAkC,EAClC,gBAAgB,EAChB,cAAc,EACd,2BAA2B,EAC3B,gBAAgB,EAChB,WAAW,EACZ,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/E,eAAO,MAAM,+BAA+B,iCAAiC,CAAA;AAE7E,MAAM,MAAM,0BAA0B,GAClC,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,kBAAk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M,EAAE,gBAAgB,CAAA;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAC9B;AAED,MAAM,MAAM,oBAAoB,GAAG,CACjC,KAAK,EAAE,yBAAyB,KAC7B,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;AAEnD,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAA;IACnC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,yBAAyB,EAAE,MAAM,CAAA;IAC1C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAC9B;AAED,qFAAqF;AACrF,MAAM,MAAM,2BAA2B,GAAG,CACxC,KAAK,EAAE,gCAAgC,KACpC,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAA;AAE5C,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,WAAW,CAAC,EAAE,cAAc,CAAA;IACrC,6EAA6E;IAC7E,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;IACjG,iEAAiE;IACjE,QAAQ,CAAC,qBAAqB,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"production-connection-types.d.ts","sourceRoot":"","sources":["../../../src/adapters/connections/production-connection-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,YAAY,EACZ,+BAA+B,EAChC,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAA;AACxG,OAAO,KAAK,EAC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