@kdonev/termscape 0.1.1 → 0.1.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 +53 -82
- package/dist/agents/profiles.d.ts +12 -5
- package/dist/agents/profiles.d.ts.map +1 -1
- package/dist/agents/profiles.js +44 -7
- package/dist/agents/profiles.js.map +1 -1
- package/dist/agents/router.d.ts.map +1 -1
- package/dist/agents/router.js +2 -2
- package/dist/agents/router.js.map +1 -1
- package/dist/agents/templates.d.ts +15 -0
- package/dist/agents/templates.d.ts.map +1 -1
- package/dist/agents/templates.js +32 -0
- package/dist/agents/templates.js.map +1 -1
- package/dist/agents/wiring.d.ts.map +1 -1
- package/dist/agents/wiring.js +14 -1
- package/dist/agents/wiring.js.map +1 -1
- package/dist/cli.js +21 -11
- package/dist/cli.js.map +1 -1
- package/dist/db/migrations.d.ts.map +1 -1
- package/dist/db/migrations.js +39 -0
- package/dist/db/migrations.js.map +1 -1
- package/dist/db/store.d.ts +19 -1
- package/dist/db/store.d.ts.map +1 -1
- package/dist/db/store.js +64 -9
- package/dist/db/store.js.map +1 -1
- package/dist/hub.d.ts +38 -1
- package/dist/hub.d.ts.map +1 -1
- package/dist/hub.js +49 -4
- package/dist/hub.js.map +1 -1
- package/dist/hub.tgz +0 -0
- package/dist/mcp/server.d.ts +1 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +9 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/paths.d.ts +9 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +9 -0
- package/dist/paths.js.map +1 -1
- package/dist/protocol/domain.d.ts +1 -0
- package/dist/protocol/domain.d.ts.map +1 -1
- package/dist/protocol/domain.js +10 -0
- package/dist/protocol/domain.js.map +1 -1
- package/dist/protocol/inject.d.ts +22 -2
- package/dist/protocol/inject.d.ts.map +1 -1
- package/dist/protocol/inject.js +24 -4
- package/dist/protocol/inject.js.map +1 -1
- package/dist/protocol/mcp-tools.d.ts +13 -0
- package/dist/protocol/mcp-tools.d.ts.map +1 -1
- package/dist/protocol/mcp-tools.js +15 -0
- package/dist/protocol/mcp-tools.js.map +1 -1
- package/dist/protocol/peer.d.ts +13 -1
- package/dist/protocol/peer.d.ts.map +1 -1
- package/dist/protocol/peer.js +45 -2
- package/dist/protocol/peer.js.map +1 -1
- package/dist/protocol/ws.d.ts +17 -0
- package/dist/protocol/ws.d.ts.map +1 -1
- package/dist/protocol/ws.js +21 -0
- package/dist/protocol/ws.js.map +1 -1
- package/dist/remote/deployer.d.ts.map +1 -1
- package/dist/remote/deployer.js +15 -2
- package/dist/remote/deployer.js.map +1 -1
- package/dist/remote/enroll.d.ts.map +1 -1
- package/dist/remote/enroll.js +25 -11
- package/dist/remote/enroll.js.map +1 -1
- package/dist/remote/join-script.d.ts.map +1 -1
- package/dist/remote/join-script.js +34 -2
- package/dist/remote/join-script.js.map +1 -1
- package/dist/remote/join.d.ts +2 -0
- package/dist/remote/join.d.ts.map +1 -1
- package/dist/remote/join.js +40 -1
- package/dist/remote/join.js.map +1 -1
- package/dist/remote/lan.d.ts +45 -22
- package/dist/remote/lan.d.ts.map +1 -1
- package/dist/remote/lan.js +95 -30
- package/dist/remote/lan.js.map +1 -1
- package/dist/remote/peer-serve.d.ts.map +1 -1
- package/dist/remote/peer-serve.js +9 -1
- package/dist/remote/peer-serve.js.map +1 -1
- package/dist/remote/registry.d.ts +1 -0
- package/dist/remote/registry.d.ts.map +1 -1
- package/dist/remote/registry.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +21 -4
- package/dist/server.js.map +1 -1
- package/dist/session/manager.d.ts +32 -0
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +65 -7
- package/dist/session/manager.js.map +1 -1
- package/dist/session/pty.d.ts +48 -0
- package/dist/session/pty.d.ts.map +1 -1
- package/dist/session/pty.js +167 -1
- package/dist/session/pty.js.map +1 -1
- package/package.json +1 -1
- package/web/assets/index-CHlXyCCd.css +1 -0
- package/web/assets/index-DTl8am-O.js +111 -0
- package/web/index.html +2 -2
- package/web/assets/index-Bq_Y0JcC.js +0 -107
- package/web/assets/index-DQYDkOwJ.css +0 -1
package/README.md
CHANGED
|
@@ -10,7 +10,8 @@ from one agent is delivered by typing it into the other's terminal, immediately.
|
|
|
10
10
|
|
|
11
11
|
Local-first: the hub runs on your machine and the UI is a browser tab. It binds
|
|
12
12
|
every interface, so the canvas opens on your phone or a second screen as well —
|
|
13
|
-
with its token
|
|
13
|
+
with its token — and another machine can attach itself from the join page.
|
|
14
|
+
`--listen loopback` keeps the whole thing to this machine. Other machines run
|
|
14
15
|
the same hub as a daemon and appear on the same canvas.
|
|
15
16
|
|
|
16
17
|
## Getting started
|
|
@@ -25,9 +26,10 @@ installed system-wide: state lives in `~/.termscape`, and deleting that
|
|
|
25
26
|
directory is the uninstall.
|
|
26
27
|
|
|
27
28
|
The hub is reachable from your network, so the same URL — token and all — opens
|
|
28
|
-
the canvas on a phone or a second screen
|
|
29
|
-
|
|
30
|
-
the hub to this
|
|
29
|
+
the canvas on a phone or a second screen, and the **+ machine** dialog already
|
|
30
|
+
has a join link in it for the second machine; see
|
|
31
|
+
[Adding another machine](#adding-another-machine). To keep the hub to this
|
|
32
|
+
machine entirely — no join page, nothing off 127.0.0.1:
|
|
31
33
|
|
|
32
34
|
```bash
|
|
33
35
|
npx @kdonev/termscape --listen loopback
|
|
@@ -46,7 +48,9 @@ the field, with what you typed still in it.
|
|
|
46
48
|
navigates instead of zooming: in over a terminal maximizes it, out steps
|
|
47
49
|
back to the workspace around it and then to everything. Zooming at any
|
|
48
50
|
ordinary pace is left alone
|
|
49
|
-
-
|
|
51
|
+
- Every window shows its real terminal at every zoom; the text minifies
|
|
52
|
+
rather than being replaced by a card, so a zoomed-out canvas still shows
|
|
53
|
+
the shape of what each agent is doing
|
|
50
54
|
- Clicking an agent in the panel brings the canvas to it
|
|
51
55
|
- Clicking the canvas closes the panel, as does **Escape** — which closes the
|
|
52
56
|
panel first and clears the selection only once it is shut
|
|
@@ -81,23 +85,18 @@ next window.
|
|
|
81
85
|
|
|
82
86
|
## Adding another machine
|
|
83
87
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
being enrollable are kept as two separate permissions. Turn the second one on,
|
|
88
|
-
then let the other machine come to you:
|
|
88
|
+
Nothing to turn on: a hub started with no flags at all hands out join links.
|
|
89
|
+
The startup banner prints an `enroll:` URL alongside the usual one, and the
|
|
90
|
+
**+ machine** dialog shows the same URL with a copy button.
|
|
89
91
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
That is a deliberate trade and worth knowing about, because `/join` is the one
|
|
93
|
+
page served without your token — it has to be typed by hand on a machine that
|
|
94
|
+
has nothing yet. So on a network you do not trust, anyone who can reach this
|
|
95
|
+
hub can pull the installer and put a machine on your canvas. `--listen
|
|
96
|
+
loopback` is how you say no, and it turns off the network entirely.
|
|
93
97
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
workspace directly — npm needs the `--` to hand flags to the hub rather than
|
|
97
|
-
reading them itself.)
|
|
98
|
-
|
|
99
|
-
The hub prints an `enroll:` URL alongside the usual one. Open it **on the
|
|
100
|
-
machine you want to add** and run the command it shows:
|
|
98
|
+
Open the join URL **on the machine you want to add** and run the command it
|
|
99
|
+
shows:
|
|
101
100
|
|
|
102
101
|
```bash
|
|
103
102
|
curl -fsSL http://studio:7777/join.sh | sh # macOS, Linux
|
|
@@ -152,10 +151,12 @@ have actually changed, and checks that tree really loads before trusting it.
|
|
|
152
151
|
|
|
153
152
|
Two things worth knowing:
|
|
154
153
|
|
|
155
|
-
- The **join page**
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
154
|
+
- The **join page** answers by default, on the same interfaces the canvas does.
|
|
155
|
+
Anyone who can reach your hub can load that page and attach a machine to your
|
|
156
|
+
canvas; every *other* route still requires the token. It was opt-in once, and
|
|
157
|
+
the reason it is not any more is that the add-machine dialog had nothing to
|
|
158
|
+
show but an instruction to restart the hub with a flag — a feature reachable
|
|
159
|
+
only that way is a feature nobody uses. `--listen loopback` is the way back.
|
|
159
160
|
- Each download carries a single-use key that expires in 15 minutes. Once a
|
|
160
161
|
machine has joined it keeps a durable token in `~/.termscape/host-token` and
|
|
161
162
|
rejoins by itself after a reboot or a dropped link — its agents keep running
|
|
@@ -172,6 +173,7 @@ tunnel. Same protocol, opposite direction.
|
|
|
172
173
|
|---|---|
|
|
173
174
|
| `whoami` | your address, workspace and working directory |
|
|
174
175
|
| `list_agents` | everyone on the canvas, across every host, and whether they are busy |
|
|
176
|
+
| `list_templates` | the saved ways of starting an agent, and what each one runs |
|
|
175
177
|
| `send_message` | type a message into another agent's terminal, right now |
|
|
176
178
|
| `spawn_agent` | start a helper in your workspace, with an optional first task |
|
|
177
179
|
| `read_screen` | look at another agent's terminal without interrupting it |
|
|
@@ -179,6 +181,11 @@ tunnel. Same protocol, opposite direction.
|
|
|
179
181
|
| `stop_agent` | stop an agent you spawned |
|
|
180
182
|
| `propose_template` | ask the human to save a way of starting an agent, under a name |
|
|
181
183
|
|
|
184
|
+
`list_templates` is what makes `spawn_agent` usable for anything but a bare
|
|
185
|
+
CLI: its `profile` takes a template id, and this is how an agent finds out
|
|
186
|
+
which ids exist. It reports the *names* of the environment variables a template
|
|
187
|
+
sets and never their values, which are credentials more often than not.
|
|
188
|
+
|
|
182
189
|
`propose_template` is the only one that asks rather than does. A template
|
|
183
190
|
changes how *future* agents are launched, on every machine, with nobody
|
|
184
191
|
necessarily watching — so the canvas shows it to a human, who can edit it
|
|
@@ -272,6 +279,10 @@ agent = "claude"
|
|
|
272
279
|
model = "opus"
|
|
273
280
|
effort = "high"
|
|
274
281
|
prompt = "Review the diff on this branch for correctness bugs. Report, do not fix."
|
|
282
|
+
|
|
283
|
+
# Set for the agents this template starts, on top of what the CLI already gets.
|
|
284
|
+
[template.reviewer.env]
|
|
285
|
+
ANTHROPIC_BASE_URL = "https://proxy.internal"
|
|
275
286
|
```
|
|
276
287
|
|
|
277
288
|
- Templates made in the panel are stored in `state.db`, the same place
|
|
@@ -309,6 +320,18 @@ instance with an address and a window.
|
|
|
309
320
|
afterwards.
|
|
310
321
|
- **Starting an agent on another machine sends values, not a template name.**
|
|
311
322
|
The two machines do not share config, so the name is resolved here first.
|
|
323
|
+
- **A template can set environment variables**, in the panel as `NAME=value`
|
|
324
|
+
lines or as a `[template.<name>.env]` table in the file. They are set for the
|
|
325
|
+
agents that template starts, on top of whatever the CLI would inherit
|
|
326
|
+
anyway, and they win over what the agent profile sets on the rare name both
|
|
327
|
+
name. This is where an API key, a base URL or a feature flag that
|
|
328
|
+
distinguishes two otherwise identical templates belongs — before it, the
|
|
329
|
+
difference could only live in whichever shell the hub happened to be started
|
|
330
|
+
from, which is not a per-template answer at all. Like the model, they are
|
|
331
|
+
recorded on the session, so a resumed agent comes back in the environment it
|
|
332
|
+
was launched in. An agent proposing a template cannot ask for any: choosing
|
|
333
|
+
what the next agent's credentials are is not something to review one dialog
|
|
334
|
+
at a time.
|
|
312
335
|
|
|
313
336
|
### What is actually installed
|
|
314
337
|
|
|
@@ -375,8 +398,9 @@ could be talked into sending an attacker's text to a peer.
|
|
|
375
398
|
the network can read. `--listen loopback` narrows it to this machine.
|
|
376
399
|
- A hub running `--headless` — one that joined a canvas, or was deployed over
|
|
377
400
|
ssh and is reached through its tunnel — stays on `127.0.0.1` regardless.
|
|
378
|
-
- `/join` is the only route served without the token, and it
|
|
379
|
-
|
|
401
|
+
- `/join` is the only route served without the token, and it answers by
|
|
402
|
+
default on every interface the hub bound. `--listen loopback` turns it off,
|
|
403
|
+
along with the rest of the network.
|
|
380
404
|
- Every agent gets its own bearer token. The sender of a message is taken from
|
|
381
405
|
that token, never from the arguments, so attribution cannot be forged.
|
|
382
406
|
- Messages are length-capped, rate-limited per sender, and always arrive with a
|
|
@@ -388,63 +412,10 @@ could be talked into sending an attacker's text to a peer.
|
|
|
388
412
|
- An agent may only stop agents it spawned.
|
|
389
413
|
- `--dangerously-skip-permissions` is never a default.
|
|
390
414
|
|
|
391
|
-
##
|
|
392
|
-
|
|
393
|
-
From a clone, rather than the published package:
|
|
394
|
-
|
|
395
|
-
```bash
|
|
396
|
-
git clone https://github.com/kdonev/termscape.git
|
|
397
|
-
cd termscape
|
|
398
|
-
npm install
|
|
399
|
-
npm run build
|
|
400
|
-
npm run dev # hub with the built UI
|
|
401
|
-
```
|
|
402
|
-
|
|
403
|
-
If `npm install` or `npm ci` tries to compile `better-sqlite3` and fails for
|
|
404
|
-
want of a C++ toolchain, install this way instead:
|
|
405
|
-
|
|
406
|
-
```bash
|
|
407
|
-
npm ci --ignore-scripts && npm rebuild node-pty
|
|
408
|
-
```
|
|
409
|
-
|
|
410
|
-
Any install that reads `package-lock.json` misses better-sqlite3's
|
|
411
|
-
`gypfile: false` and runs `node-gyp` on a module that already ships working
|
|
412
|
-
prebuilds. Skipping install scripts avoids that; the rebuild puts back the one
|
|
413
|
-
native build that is real, which is a no-op except on Linux. This is what CI
|
|
414
|
-
does. It does not affect anyone installing the published package.
|
|
415
|
-
|
|
416
|
-
```bash
|
|
417
|
-
npm test # unit + integration, no LLM required
|
|
418
|
-
npm run typecheck
|
|
419
|
-
npm run dev:web # vite dev server, expects a hub on :7777
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
The integration tests spawn real PTYs and drive the real MCP endpoint, so
|
|
423
|
-
`npm test` genuinely exercises message delivery and cross-host routing.
|
|
424
|
-
|
|
425
|
-
### Known quirks
|
|
426
|
-
|
|
427
|
-
- On Windows, node-pty prints `AttachConsole failed` to stderr when killing a
|
|
428
|
-
PTY from a process with no console attached (notably under the test runner).
|
|
429
|
-
It is noise from a helper process and does not affect behaviour.
|
|
430
|
-
|
|
431
|
-
### Releasing
|
|
432
|
-
|
|
433
|
-
The repo is a workspace of three private packages; what gets published is a
|
|
434
|
-
single package assembled by `packages/hub/scripts/pack-npm.mjs` — the hub,
|
|
435
|
-
the built UI it serves, and `@termscape/protocol` bundled inside it.
|
|
436
|
-
|
|
437
|
-
```bash
|
|
438
|
-
npm run pack:npm # build everything, then stage and pack the tarball
|
|
439
|
-
```
|
|
415
|
+
## Contributing
|
|
440
416
|
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
tarball on macOS, Windows and Linux and checks each one starts and serves the
|
|
444
|
-
canvas, and only then publishes to npm with provenance. Bump the version in
|
|
445
|
-
`packages/hub/package.json` **and** `HUB_VERSION` in `packages/hub/src/hub.ts`
|
|
446
|
-
together — peer compatibility is gated on the constant, and a test fails if
|
|
447
|
-
the two drift.
|
|
417
|
+
Building from a clone, running the tests and cutting a release:
|
|
418
|
+
see [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
448
419
|
|
|
449
420
|
## License
|
|
450
421
|
|
|
@@ -100,8 +100,15 @@ export interface AgentProfile {
|
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* Built-in profiles. All Claude Code flags here are verified against the CLI:
|
|
103
|
-
* --mcp-config, --
|
|
104
|
-
* --
|
|
103
|
+
* --mcp-config, --session-id, --settings, --append-system-prompt-file,
|
|
104
|
+
* --resume.
|
|
105
|
+
*
|
|
106
|
+
* `--mcp-config` deliberately arrives *without* `--strict-mcp-config`. Strict
|
|
107
|
+
* mode makes the named file the whole of the agent's MCP configuration, which
|
|
108
|
+
* silently drops every server the user set up for themselves — an agent
|
|
109
|
+
* started here would be missing the tools it has everywhere else, with nothing
|
|
110
|
+
* on screen to say why. Without it the hub's server is one more entry beside
|
|
111
|
+
* theirs, which is the only version of "wired to the hub" worth having.
|
|
105
112
|
*
|
|
106
113
|
* Codex and Gemini are wired too, and every flag and key below was verified
|
|
107
114
|
* against the CLI actually installed - codex-cli 0.153.4 and gemini 0.58.0 -
|
|
@@ -126,9 +133,9 @@ export interface AgentProfile {
|
|
|
126
133
|
* `OPENCODE_CONFIG` when it does - and mistaking that command for the only
|
|
127
134
|
* way in.
|
|
128
135
|
*
|
|
129
|
-
* `shell`
|
|
130
|
-
* a way no flag can fix:
|
|
131
|
-
* rather than read.
|
|
136
|
+
* `shell` and `powershell` are the two profiles left that are not agents, and
|
|
137
|
+
* they are not agents in a way no flag can fix: they run a shell, so text
|
|
138
|
+
* typed at one is executed rather than read.
|
|
132
139
|
*/
|
|
133
140
|
export declare const BUILTIN_PROFILES: Record<string, AgentProfile>;
|
|
134
141
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/agents/profiles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,0EAA0E;IAC1E,GAAG,EAAE,OAAO,CAAC;IACb,mCAAmC;IACnC,MAAM,EAAE,OAAO,GAAG,WAAW,CAAC;IAC9B,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,UAAU,CAAC;IACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAItB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAIlB;;;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C9C,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAkPzD,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAEpE;AAED,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAA+B;gBAEnC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC;IAInD,oEAAoE;IACpE,MAAM,CAAC,IAAI,IAAI,eAAe;IAyC9B,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI;IAIpC,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY;IAMjC,IAAI,IAAI,YAAY,EAAE;IAItB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;CAIjC;AAED,+EAA+E;AAC/E,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAI5E;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,CAElF"}
|
package/dist/agents/profiles.js
CHANGED
|
@@ -9,8 +9,15 @@ function defaultShell() {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Built-in profiles. All Claude Code flags here are verified against the CLI:
|
|
12
|
-
* --mcp-config, --
|
|
13
|
-
* --
|
|
12
|
+
* --mcp-config, --session-id, --settings, --append-system-prompt-file,
|
|
13
|
+
* --resume.
|
|
14
|
+
*
|
|
15
|
+
* `--mcp-config` deliberately arrives *without* `--strict-mcp-config`. Strict
|
|
16
|
+
* mode makes the named file the whole of the agent's MCP configuration, which
|
|
17
|
+
* silently drops every server the user set up for themselves — an agent
|
|
18
|
+
* started here would be missing the tools it has everywhere else, with nothing
|
|
19
|
+
* on screen to say why. Without it the hub's server is one more entry beside
|
|
20
|
+
* theirs, which is the only version of "wired to the hub" worth having.
|
|
14
21
|
*
|
|
15
22
|
* Codex and Gemini are wired too, and every flag and key below was verified
|
|
16
23
|
* against the CLI actually installed - codex-cli 0.153.4 and gemini 0.58.0 -
|
|
@@ -35,9 +42,9 @@ function defaultShell() {
|
|
|
35
42
|
* `OPENCODE_CONFIG` when it does - and mistaking that command for the only
|
|
36
43
|
* way in.
|
|
37
44
|
*
|
|
38
|
-
* `shell`
|
|
39
|
-
* a way no flag can fix:
|
|
40
|
-
* rather than read.
|
|
45
|
+
* `shell` and `powershell` are the two profiles left that are not agents, and
|
|
46
|
+
* they are not agents in a way no flag can fix: they run a shell, so text
|
|
47
|
+
* typed at one is executed rather than read.
|
|
41
48
|
*/
|
|
42
49
|
export const BUILTIN_PROFILES = {
|
|
43
50
|
claude: {
|
|
@@ -47,7 +54,6 @@ export const BUILTIN_PROFILES = {
|
|
|
47
54
|
args: [
|
|
48
55
|
'--mcp-config',
|
|
49
56
|
'{{mcp_config_path}}',
|
|
50
|
-
'--strict-mcp-config',
|
|
51
57
|
'--session-id',
|
|
52
58
|
'{{session_uuid}}',
|
|
53
59
|
'--settings',
|
|
@@ -78,7 +84,6 @@ export const BUILTIN_PROFILES = {
|
|
|
78
84
|
resumeArgs: [
|
|
79
85
|
'--mcp-config',
|
|
80
86
|
'{{mcp_config_path}}',
|
|
81
|
-
'--strict-mcp-config',
|
|
82
87
|
'--resume',
|
|
83
88
|
'{{session_uuid}}',
|
|
84
89
|
'--settings',
|
|
@@ -232,6 +237,38 @@ export const BUILTIN_PROFILES = {
|
|
|
232
237
|
* not an id it could resume by.
|
|
233
238
|
*/
|
|
234
239
|
},
|
|
240
|
+
/*
|
|
241
|
+
* PowerShell, named rather than left to `shell`.
|
|
242
|
+
*
|
|
243
|
+
* On Windows `shell` follows COMSPEC, which is cmd.exe - so the shell most
|
|
244
|
+
* Windows work actually happens in was the one thing the picker could not
|
|
245
|
+
* offer. Elsewhere `pwsh` is the cross-platform build, and it stays in the
|
|
246
|
+
* list when it is not installed with "not found on PATH" against it, which
|
|
247
|
+
* is the honest answer for a shell you have to install.
|
|
248
|
+
*
|
|
249
|
+
* Unwired for the same reason `shell` is, and it is not a gap a flag could
|
|
250
|
+
* close: a shell executes what is typed at it, so a brief there is a series
|
|
251
|
+
* of commands rather than context.
|
|
252
|
+
*/
|
|
253
|
+
powershell: {
|
|
254
|
+
id: 'powershell',
|
|
255
|
+
description: 'PowerShell, no agent wiring',
|
|
256
|
+
command: platform === 'win32' ? 'powershell.exe' : 'pwsh',
|
|
257
|
+
// -NoLogo: the banner is three lines of nothing in a window this small.
|
|
258
|
+
args: ['-NoLogo'],
|
|
259
|
+
env: {},
|
|
260
|
+
mcp: false,
|
|
261
|
+
brief: 'none',
|
|
262
|
+
status: 'heuristic',
|
|
263
|
+
// `PS C:\dev>`, and the `>>` of a continuation prompt. Not a bare `>`,
|
|
264
|
+
// which is the last character of half the redirects anyone types.
|
|
265
|
+
readyHint: '(PS [^>]*>|^>>) ?$',
|
|
266
|
+
inject: 'raw',
|
|
267
|
+
// Asked rather than declared: unlike `shell`, which is whatever COMSPEC or
|
|
268
|
+
// SHELL happens to point at, this is one named command that either is on
|
|
269
|
+
// PATH or is not - and its version is worth showing next to it.
|
|
270
|
+
versionArgs: ['-NoLogo', '-NoProfile', '-Command', '$PSVersionTable.PSVersion.ToString()'],
|
|
271
|
+
},
|
|
235
272
|
shell: {
|
|
236
273
|
id: 'shell',
|
|
237
274
|
description: 'Plain terminal, no agent wiring',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../src/agents/profi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C,QAAQ,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC;IACnC,CAAC;IAED,OAAO,CAAC,EAAU;QAChB,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACvB,IAAI,CAAC,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,EAAE,GAAG,CAAC,CAAC;QACzD,OAAO,CAAC,CAAC;IACX,CAAC;IAED,IAAI;QACF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IAED,WAAW,CAAC,EAAU;QACpB,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACvB,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;IACzB,CAAC;CACF;AAED,+EAA+E;AAC/E,MAAM,UAAU,QAAQ,CAAC,KAAa,EAAE,IAA4B;IAClE,OAAO,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,GAAW,EAAE,EAAE,CAC5D,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAE,CAAC,CAAC,CAAC,KAAK,CACjC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,IAAc,EAAE,IAA4B;IACtE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/agents/router.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/agents/router.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,OAAO,EACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAoBD;;;;;;;;;GASG;AACH,qBAAa,aAAa;IAItB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAN5B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;gBAG1B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,eAAe,EACzB,SAAS,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI;IAGlD,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc;CAsDrE"}
|
package/dist/agents/router.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { randomUUID } from 'node:crypto';
|
|
2
|
-
import { encodeInjection, formatMessage, MESSAGE_RATE_LIMIT, } from '../protocol/index.js';
|
|
2
|
+
import { encodeInjection, formatMessage, INJECT_SUBMIT, MESSAGE_RATE_LIMIT, } from '../protocol/index.js';
|
|
3
3
|
/** Simple fixed-window counter, per sender address. */
|
|
4
4
|
class RateLimiter {
|
|
5
5
|
hits = new Map();
|
|
@@ -71,7 +71,7 @@ export class MessageRouter {
|
|
|
71
71
|
try {
|
|
72
72
|
// Attribution comes from the hub's own record of who is calling, never
|
|
73
73
|
// from the sender's arguments, so it cannot be spoofed.
|
|
74
|
-
this.sessions.
|
|
74
|
+
this.sessions.inject(target.id, encodeInjection(formatMessage(fromAddr, body), mode), INJECT_SUBMIT);
|
|
75
75
|
pty.markBusy();
|
|
76
76
|
return record('delivered');
|
|
77
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.js","sourceRoot":"","sources":["../../src/agents/router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,eAAe,EACf,aAAa,EACb,kBAAkB,GAEnB,MAAM,qBAAqB,CAAC;AAW7B,uDAAuD;AACvD,MAAM,WAAW;IACP,IAAI,GAAG,IAAI,GAAG,EAAoB,CAAC;IAE3C,KAAK,CAAC,GAAW;QACf,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACvB,MAAM,MAAM,GAAG,GAAG,GAAG,kBAAkB,CAAC,QAAQ,CAAC;QACjD,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;QACjE,IAAI,GAAG,CAAC,MAAM,IAAI,kBAAkB,CAAC,GAAG,EAAE,CAAC;YACzC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YACxB,OAAO,KAAK,CAAC;QACf,CAAC;QACD,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,MAAM,OAAO,aAAa;IAIL;IACA;IACA;IACA;IANF,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;IAE7C,YACmB,KAAY,EACZ,QAAwB,EACxB,QAAyB,EACzB,SAA+B;QAH/B,UA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34
34
|
*/
|
|
35
35
|
prompt?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Extra environment for the agent process, merged over what its profile
|
|
38
|
+
* sets. Values only — no expansion of any kind, so a value containing
|
|
39
|
+
* `{{...}}` reaches the process as typed.
|
|
40
|
+
*/
|
|
41
|
+
env: Record<string, string>;
|
|
36
42
|
/**
|
|
37
43
|
* Why this template cannot be used, when it cannot.
|
|
38
44
|
*
|
|
@@ -65,6 +71,15 @@ export interface AgentTemplate {
|
|
|
65
71
|
* that would otherwise be discovered at launch.
|
|
66
72
|
*/
|
|
67
73
|
export declare function validate(t: AgentTemplate, profiles: ProfileRegistry): string | null;
|
|
74
|
+
/**
|
|
75
|
+
* What a process will actually accept as a variable name.
|
|
76
|
+
*
|
|
77
|
+
* Deliberately strict rather than permissive: a name with a space or an `=` in
|
|
78
|
+
* it is silently dropped by some shells and rejected by others, and finding
|
|
79
|
+
* that out at launch — as a missing key rather than an error — is exactly the
|
|
80
|
+
* kind of thing templates are validated at load to avoid.
|
|
81
|
+
*/
|
|
82
|
+
export declare function isEnvName(name: string): boolean;
|
|
68
83
|
export declare class TemplateRegistry {
|
|
69
84
|
private readonly templates;
|
|
70
85
|
constructor(templates: Record<string, AgentTemplate>);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/agents/templates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE7E,OAAO,KAAK,EAAE,KAAK,EAAkB,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAgB,eAAe,EAAE,MAAM,eAAe,CAAC;AAEnE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,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AAS,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;IAIpD;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,eAAe,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,gBAAgB;IA4DvE,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI;IAIrC,IAAI,IAAI,aAAa,EAAE;IAIvB,0DAA0D;IAC1D,IAAI,IAAI,iBAAiB,EAAE;CAa5B"}
|
package/dist/agents/templates.js
CHANGED
|
@@ -7,6 +7,7 @@ function bare(profile) {
|
|
|
7
7
|
id: profile.id,
|
|
8
8
|
description: profile.description,
|
|
9
9
|
agent: profile.id,
|
|
10
|
+
env: {},
|
|
10
11
|
source: 'derived',
|
|
11
12
|
};
|
|
12
13
|
}
|
|
@@ -19,6 +20,7 @@ function fromStored(t, profiles) {
|
|
|
19
20
|
model: t.model ?? undefined,
|
|
20
21
|
effort: t.effort ?? undefined,
|
|
21
22
|
prompt: t.prompt ?? undefined,
|
|
23
|
+
env: t.env,
|
|
22
24
|
source: 'stored',
|
|
23
25
|
};
|
|
24
26
|
}
|
|
@@ -40,8 +42,36 @@ export function validate(t, profiles) {
|
|
|
40
42
|
if (t.effort !== undefined && !agent.effortArgs) {
|
|
41
43
|
return `${t.agent} has no effort setting`;
|
|
42
44
|
}
|
|
45
|
+
for (const name of Object.keys(t.env)) {
|
|
46
|
+
if (!isEnvName(name))
|
|
47
|
+
return `"${name}" is not a usable environment variable name`;
|
|
48
|
+
}
|
|
43
49
|
return null;
|
|
44
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* What a process will actually accept as a variable name.
|
|
53
|
+
*
|
|
54
|
+
* Deliberately strict rather than permissive: a name with a space or an `=` in
|
|
55
|
+
* it is silently dropped by some shells and rejected by others, and finding
|
|
56
|
+
* that out at launch — as a missing key rather than an error — is exactly the
|
|
57
|
+
* kind of thing templates are validated at load to avoid.
|
|
58
|
+
*/
|
|
59
|
+
export function isEnvName(name) {
|
|
60
|
+
return /^[A-Za-z_][A-Za-z0-9_]*$/.test(name);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* `[template.x.env]` out of the TOML file, keeping only string values.
|
|
64
|
+
*
|
|
65
|
+
* A number or a boolean in that table is a mistake worth ignoring rather than
|
|
66
|
+
* coercing: `PORT = 8080` reaching the process as the string "8080" is
|
|
67
|
+
* probably what was meant, but `DEBUG = false` reaching it as "false" — which
|
|
68
|
+
* every program reads as set — is the opposite.
|
|
69
|
+
*/
|
|
70
|
+
function envTable(v) {
|
|
71
|
+
if (typeof v !== 'object' || v === null || Array.isArray(v))
|
|
72
|
+
return {};
|
|
73
|
+
return Object.fromEntries(Object.entries(v).filter((e) => typeof e[1] === 'string'));
|
|
74
|
+
}
|
|
45
75
|
export class TemplateRegistry {
|
|
46
76
|
templates;
|
|
47
77
|
constructor(templates) {
|
|
@@ -94,6 +124,7 @@ export class TemplateRegistry {
|
|
|
94
124
|
model: typeof t.model === 'string' ? t.model : undefined,
|
|
95
125
|
effort: typeof t.effort === 'string' ? t.effort : undefined,
|
|
96
126
|
prompt: typeof t.prompt === 'string' ? t.prompt : undefined,
|
|
127
|
+
env: envTable(t.env),
|
|
97
128
|
source: 'file',
|
|
98
129
|
};
|
|
99
130
|
}
|
|
@@ -125,6 +156,7 @@ export class TemplateRegistry {
|
|
|
125
156
|
model: t.model ?? null,
|
|
126
157
|
effort: t.effort ?? null,
|
|
127
158
|
prompt: t.prompt ?? null,
|
|
159
|
+
env: t.env,
|
|
128
160
|
error: t.error ?? null,
|
|
129
161
|
source: t.source,
|
|
130
162
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/agents/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,WAAW,CAAC;A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EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEtD;AAOD,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,YAAY,CAgD5D;AAwID;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../src/agents/wiring.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7D;;;;GAIG;AAEH,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;;;;OAOG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEtD;AAOD,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,YAAY,CAgD5D;AAwID;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAoFtD"}
|
package/dist/agents/wiring.js
CHANGED
|
@@ -190,12 +190,25 @@ ${peerList}
|
|
|
190
190
|
The \`termscape\` MCP server gives you these tools. Your CLI probably shows
|
|
191
191
|
them under a prefix — \`termscape_send_message\` or
|
|
192
192
|
\`mcp__termscape__send_message\` rather than plain \`send_message\` — so match
|
|
193
|
-
on the ending rather than looking for the exact name below
|
|
193
|
+
on the ending rather than looking for the exact name below.
|
|
194
|
+
|
|
195
|
+
**Only the \`termscape\` ones see this canvas.** Several CLIs ship a built-in
|
|
196
|
+
tool of their own for listing agents or sessions, under a name close enough to
|
|
197
|
+
be mistaken for one of these, and it answers about that CLI's own subagents or
|
|
198
|
+
sibling processes — names and ids that mean nothing here and that you cannot
|
|
199
|
+
send a message to. If a \`[from <address>]\` message arrived and the agent
|
|
200
|
+
listing in front of you does not contain that address, you are reading the
|
|
201
|
+
wrong tool's answer: call the \`termscape\` one. Addresses on this canvas are
|
|
202
|
+
always \`workspace/name\`, and every one of them appears in
|
|
203
|
+
\`termscape\`'s \`list_agents\`.
|
|
194
204
|
|
|
195
205
|
- \`whoami\` — your own address and workspace.
|
|
196
206
|
- \`list_agents\` — who else exists, and whether they are idle or busy.
|
|
197
207
|
- \`send_message\` — send text to another agent. It is typed directly into
|
|
198
208
|
their terminal, as if a user had pasted it.
|
|
209
|
+
- \`list_templates\` — the saved ways of starting an agent: what CLI each one
|
|
210
|
+
runs, on what model, with what opening instruction. A template id is what
|
|
211
|
+
\`spawn_agent\` takes as its \`profile\`.
|
|
199
212
|
- \`spawn_agent\` — start a new agent in your workspace and optionally give it
|
|
200
213
|
a first instruction. Use this to delegate work you want done in parallel.
|
|
201
214
|
- \`read_screen\` — look at another agent's terminal without interrupting it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.js","sourceRoot":"","sources":["../../src/agents/wiring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAA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