@agentty-xyz/testty 0.20.0 → 0.22.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/CHANGELOG.md +209 -0
- package/README.md +3 -0
- package/binary.js +14 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,215 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [v0.22.0] - 2026-11-26
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `agentty`: open a per-session usage panel with `/usage`, or `u` in session view, that
|
|
15
|
+
shows tokens, cache and reasoning detail, estimated cost, and context fill per model
|
|
16
|
+
and purpose. Plan-billed usage shows its API equivalent (`≈`), and costs that price
|
|
17
|
+
cached input at the full input price are marked as upper bounds (`≤`).
|
|
18
|
+
- `agentty`: show a running turn's tokens, context fill, and estimated cost in its
|
|
19
|
+
status line, and the session's context fill and cost on the composer border between
|
|
20
|
+
turns.
|
|
21
|
+
- `agentty`: show a running turn as one live timeline of messages, reasoning, and tool
|
|
22
|
+
calls with their results, under a status line that names the current action. A
|
|
23
|
+
finished turn that called tools gets a summary above its answer: edited files,
|
|
24
|
+
failures and how the turn recovered from them, and the time it worked.
|
|
25
|
+
- `agentty`: export each turn's and each model request's token usage, cache tokens,
|
|
26
|
+
estimated cost, and context fill over OTLP, with the `agentty.usage.cost` and
|
|
27
|
+
`agentty.usage.cache_tokens` counters.
|
|
28
|
+
- `agentty`: let `/graph` add nodes to an execution graph that has not finished instead
|
|
29
|
+
of starting a second graph; the new nodes spend from the graph's remaining provider
|
|
30
|
+
calls.
|
|
31
|
+
- `agentty`: let paired devices reach every project the terminal lists: a device can
|
|
32
|
+
list projects and read, create sessions in, and sync any listed project instead of
|
|
33
|
+
following the terminal's active project.
|
|
34
|
+
- `agentty`: reuse a per-project cache of crates.io dependencies in sandboxed
|
|
35
|
+
`ag-harness` sessions, and add the `Share Host Caches` project setting, off by
|
|
36
|
+
default, that lets sandboxed sessions use the host's Cargo, Go, pip, and npm caches.
|
|
37
|
+
Its effect is host-wide: a session could plant code that later runs in other projects'
|
|
38
|
+
builds.
|
|
39
|
+
- `ag-remote`: add the `projects` capability, the `list_projects` request, and an
|
|
40
|
+
optional `project_id` on project requests.
|
|
41
|
+
- `ag-remote`: add the `test-utils` feature, whose `test_support` module exports
|
|
42
|
+
`MemoryDeviceStore` and `RecordingBackend`, so a program that embeds `ag-remote` can
|
|
43
|
+
run a real server in its tests.
|
|
44
|
+
- `ag-session`: add `ProjectScope`, `HostProject`, `ProjectSessions`, and
|
|
45
|
+
`SessionOperation::Projects`, with `SessionBackend` and `SessionService` methods that
|
|
46
|
+
list projects and serve, create sessions in, and sync a named project. Hosts that
|
|
47
|
+
serve only their active project get defaults.
|
|
48
|
+
- `ag-sqlite`: add a crate that owns SQLite opening, WAL creation, locked migrations,
|
|
49
|
+
and the `begin_write` and `begin_read` transaction helpers for `ag-store` and
|
|
50
|
+
`ag-harness`.
|
|
51
|
+
- `ag-harness`: report how a command ended with `bash::CommandExit`, including the exit
|
|
52
|
+
statuses of its final pipeline, plus write line counts, tool-call durations, and a
|
|
53
|
+
`ToolCallRequested` run event. Add `BashConfig::with_host_cache_directory` and
|
|
54
|
+
`with_host_cache_file`.
|
|
55
|
+
|
|
56
|
+
### Changed
|
|
57
|
+
|
|
58
|
+
- `agentty`: run remote control only through an Agentty Platform; sign in from the
|
|
59
|
+
`Platform` tab to pair devices (breaking). Devices paired through the loopback
|
|
60
|
+
listener, a tunnel, or a self-hosted relay can no longer connect: remove them in the
|
|
61
|
+
`Platform` tab with `d` and pair them again through a platform. Devices already paired
|
|
62
|
+
through a platform's relay keep working.
|
|
63
|
+
- `agentty`: offer the `Platform` tab on every launch; its label counts connected
|
|
64
|
+
devices while remote control runs.
|
|
65
|
+
- `agentty`: keep Git metadata read-only for sandboxed `ag-harness` commands. `git add`,
|
|
66
|
+
`git commit`, `git stash`, and `git checkout -b` fail with a permission error, and
|
|
67
|
+
Agentty's commit after each turn is the only committer.
|
|
68
|
+
- `agentty`: run read-only execution graph nodes beside the session's serial worker, so
|
|
69
|
+
independent readers overlap; writing nodes keep their order with chat turns.
|
|
70
|
+
- `agentty`: count a native `ag-harness` run as one provider call against graph and
|
|
71
|
+
session budgets, the same as one turn attempt of another agent.
|
|
72
|
+
- `agentty`: price cached input at published rates for OpenAI, Muse, Kimi, and Qwen
|
|
73
|
+
models, and OpenAI prompt-cache writes from GPT-5.6 on at 1.25 times the input price.
|
|
74
|
+
- `agentty`: send the ChatGPT plan prompt cache key as a `session-id` header too, so
|
|
75
|
+
requests return to their cached prompt prefix.
|
|
76
|
+
- `agentty`: refresh the session header's size and line counts while a turn edits files.
|
|
77
|
+
- `agentty`: leave nested Git repositories in session worktrees out of staging, commits,
|
|
78
|
+
and the review diff, and stop with an error that names the path when one sits at a
|
|
79
|
+
gitlink.
|
|
80
|
+
- `agentty`: export Codex's last-request context fill as `agentty.context.input_tokens`
|
|
81
|
+
on `agent.attempt` spans instead of `agentty.context.last_request.input_tokens`.
|
|
82
|
+
- `agentty`: draw each frame as one synchronized update, so supporting terminals never
|
|
83
|
+
show a partly drawn frame.
|
|
84
|
+
- `agentty`: show the `Platform` tab's pairing QR code on smaller terminals, and a hint
|
|
85
|
+
to enlarge the terminal when it cannot fit.
|
|
86
|
+
- `ag-harness`: `bash::CommandOutcome` carries `exit: CommandExit` instead of the
|
|
87
|
+
`exit_code`, `signal`, and `termination` fields (breaking).
|
|
88
|
+
- `ag-harness`: pin the session temporary directory and writable roots to their identity
|
|
89
|
+
on macOS, as on Linux, and refuse links and overlapping write grants.
|
|
90
|
+
- `ag-remote`: run only through a relay: `start` is synchronous, opens no listener, and
|
|
91
|
+
serves no page; `RemoteServerConfig` holds only the relay, and
|
|
92
|
+
`RemoteServerStatus::relay` is no longer optional; devices authenticate only by their
|
|
93
|
+
key; and the embedded web client assets are gone (breaking).
|
|
94
|
+
- `ag-relay`: make the relay a library that a platform embeds; it no longer serves a
|
|
95
|
+
page and has no binary or container image.
|
|
96
|
+
- `ag-contracts`, `ag-agent`, `ag-store`: carry per-model usage, estimated cost, and
|
|
97
|
+
context fill in turn results, one-shot submissions, and stored turns instead of input
|
|
98
|
+
and output token totals; add typed activity facts and kinds,
|
|
99
|
+
`TurnEvent::UsageUpdated`, and `TurnRequest::host_caches`; and remove
|
|
100
|
+
`TurnEvent::Completed` (breaking).
|
|
101
|
+
- `ag-worker`: name a usage purpose on each `RunScope` (breaking).
|
|
102
|
+
- `ag-session`, `ag-store`: record the graph revision a proposal extends and expand an
|
|
103
|
+
approved graph in place, and add the `ShareHostCaches` setting (breaking).
|
|
104
|
+
- `ag-git`: add `GitError::EmbeddedRepository` (breaking).
|
|
105
|
+
- `testty`: keep showing the previous screen while a synchronized update is open, as
|
|
106
|
+
terminals do.
|
|
107
|
+
- workspace: update `clap`, `getrandom`, `regex`, `tokio-rustls`, and `uuid`.
|
|
108
|
+
- release: bump workspace crate metadata and lockfile package versions to `0.22.0`.
|
|
109
|
+
|
|
110
|
+
### Fixed
|
|
111
|
+
|
|
112
|
+
- `agentty`: keep each key hint on one row beside the pairing QR code instead of
|
|
113
|
+
splitting a binding across rows.
|
|
114
|
+
- `agentty`: keep background Git maintenance from pruning a worktree while a session
|
|
115
|
+
creates it, which could fail the new session.
|
|
116
|
+
- `agentty`: keep a running or queued merge on its own project when the terminal
|
|
117
|
+
switches projects.
|
|
118
|
+
- `agentty`: reach the relay through another address when one stalls, such as an IPv6
|
|
119
|
+
route that drops packets.
|
|
120
|
+
- `agentty`: forward termination signals that arrive while the npm launcher starts the
|
|
121
|
+
binary.
|
|
122
|
+
|
|
123
|
+
### Removed
|
|
124
|
+
|
|
125
|
+
- `agentty`: remove the `--experimental-remote`, `--remote-relay`,
|
|
126
|
+
`--remote-control-port`, `--remote-control-host`, and `--experimental-platform` flags
|
|
127
|
+
and the `Remote` tab.
|
|
128
|
+
- `ag-remote`: remove the loopback listener, device tokens, `RemoteError::Bind`,
|
|
129
|
+
`RemoteServerHandle::local_addr`, and `pairing_link` (breaking).
|
|
130
|
+
- `ag-relay`: remove the pairing page, the web-client API, the relay binary with its
|
|
131
|
+
`--allow-instance` flag, and the `ghcr.io/agentty-xyz/agentty-relay` image.
|
|
132
|
+
- `ag-harness`, `ag-contracts`, `ag-git`: remove `BashConfig::with_git_writes`,
|
|
133
|
+
`ExecutionPolicy::allows_git_writes` and `git_writes_branch`,
|
|
134
|
+
`TurnRequest::session_branch`, and `GitClient::head_reference` (breaking).
|
|
135
|
+
|
|
136
|
+
### Contributors
|
|
137
|
+
|
|
138
|
+
- @andagaev
|
|
139
|
+
- @dependabot
|
|
140
|
+
- @minev-dev
|
|
141
|
+
|
|
142
|
+
## [v0.21.0] - 2026-11-23
|
|
143
|
+
|
|
144
|
+
### Added
|
|
145
|
+
|
|
146
|
+
- `agentty`: paste harness provider API keys from `/model`; Agentty stores them in its
|
|
147
|
+
auth file and copies keys already set in the environment there.
|
|
148
|
+
- `agentty`: compact long `ag-harness` sessions automatically with the Default Fast
|
|
149
|
+
Model, with a `[Context]` notice in the session when history is summarized.
|
|
150
|
+
- `agentty`: show `Queued` for review-request sessions whose pull requests are in
|
|
151
|
+
GitHub's merge queue.
|
|
152
|
+
- `agentty`: add an experimental `Platform` tab behind `--experimental-platform` that
|
|
153
|
+
signs in to an Agentty Platform, runs remote control through its relay, and can keep
|
|
154
|
+
remote control on across launches.
|
|
155
|
+
- `agentty`: show the session status line, live progress, focused review result, forge
|
|
156
|
+
and branch distance, queued actions, and staged drafts on remote devices.
|
|
157
|
+
- `agentty`: let remote devices sync the project in one press, see `merge conflict` and
|
|
158
|
+
`PR ready` labels, follow and act on execution graphs, start `/graph` proposals and
|
|
159
|
+
answer graph questions, choose the agent harness from the model selector, and paste
|
|
160
|
+
images into the composer.
|
|
161
|
+
- `agentty`: give the remote page's new-session composer slash commands, `@` lookup in
|
|
162
|
+
the active project's files, and model, reasoning, style, and speed settings.
|
|
163
|
+
- `agentty`: show several paired Agenttys on one remote control page, and let another
|
|
164
|
+
web application serve the page inside its own layout.
|
|
165
|
+
- `agentty`: show when a relay does not admit this instance.
|
|
166
|
+
- `ag-relay`: admit only the listed instances with a repeatable
|
|
167
|
+
`--allow-instance <INSTANCE_ID>` flag, and publish the relay image to
|
|
168
|
+
`ghcr.io/agentty-xyz/agentty-relay`, with a Fly.io deployment guide.
|
|
169
|
+
- `ag-harness`: add native-sandbox grants for coding agents: full-disk reads with
|
|
170
|
+
credential paths hidden, hidden paths, writable roots, pinned Unix sockets, and
|
|
171
|
+
approved unsandboxed excluded commands, with an advisory sandbox-denial flag.
|
|
172
|
+
- `ag-store`: add `Database::open_with_busy_timeout` and busy-timeout presets.
|
|
173
|
+
|
|
174
|
+
### Changed
|
|
175
|
+
|
|
176
|
+
- `agentty`: make `ag-harness` models generally available in `/model` instead of a
|
|
177
|
+
separate session type.
|
|
178
|
+
- `agentty`: run `ag-harness` session commands in the native sandbox where available,
|
|
179
|
+
and limit their Git writes to the session branch; a turn that retargets `HEAD` stops
|
|
180
|
+
with instructions to point it back.
|
|
181
|
+
- `agentty`: move remote control into a project-level `Remote` tab.
|
|
182
|
+
- `agentty`: handle mouse scrolling, selection, copy, and links inside `tmux`; hold
|
|
183
|
+
`Shift` while dragging to use the terminal's selection.
|
|
184
|
+
- `agentty`: clear stale tool results from long `ag-harness` turns, accept common model
|
|
185
|
+
patch and argument habits in built-in tools, and hide encrypted reasoning from run
|
|
186
|
+
events and transcripts.
|
|
187
|
+
- `agentty`: start new sessions on `claude-sonnet-5-5` when only an Anthropic key is
|
|
188
|
+
set, and accept an origin-only `ANTHROPIC_BASE_URL`.
|
|
189
|
+
- `agentty`: wait up to 5 seconds for another process's lock on the app database.
|
|
190
|
+
- `ag-relay`: raise the default per-stream byte budget to 64 MiB per minute.
|
|
191
|
+
- docs site and remote page: recolor tokens to meet contrast, self-host the monospace
|
|
192
|
+
face, and share one set of web components.
|
|
193
|
+
- `ag-harness`: seal the public API: `SessionStore` is sealed, embedder-facing enums and
|
|
194
|
+
crate-built records are `#[non_exhaustive]`, and `BashConfig::with_git_writes` takes
|
|
195
|
+
the session branch and returns a `Result` (breaking).
|
|
196
|
+
- `ag-remote`: device-sent session ids use their own type, checked against the host's
|
|
197
|
+
listing before dispatch (breaking).
|
|
198
|
+
- release: bump workspace crate metadata and lockfile package versions to `0.21.0`.
|
|
199
|
+
|
|
200
|
+
### Fixed
|
|
201
|
+
|
|
202
|
+
- `agentty`: keep sync status, syncing, and session creation separate for each project
|
|
203
|
+
while another project resolves sync conflicts.
|
|
204
|
+
- `agentty`: keep long Claude harness sessions valid after context fitting, and price
|
|
205
|
+
Haiku prompts over 100,000 tokens correctly.
|
|
206
|
+
- `agentty`: send Anthropic only the JSON schema keywords it accepts, so compaction,
|
|
207
|
+
graph proposals, and focused reviews work on Claude harness models.
|
|
208
|
+
- `agentty`: wait out SQLite contention in the app database.
|
|
209
|
+
|
|
210
|
+
### Removed
|
|
211
|
+
|
|
212
|
+
- `agentty`: remove the `--experimental-harness` flag and the `/remote-control` command.
|
|
213
|
+
|
|
214
|
+
### Contributors
|
|
215
|
+
|
|
216
|
+
- @andagaev
|
|
217
|
+
- @minev-dev
|
|
218
|
+
|
|
10
219
|
## [v0.20.0] - 2026-11-22
|
|
11
220
|
|
|
12
221
|
### Added
|
package/README.md
CHANGED
|
@@ -69,6 +69,9 @@ implemented" notice and exit non-zero until the behavior is wired up.
|
|
|
69
69
|
- **Terminal replies.** Sessions answer primary device attributes (DA1) requests like a
|
|
70
70
|
terminal without the Kitty keyboard protocol, so capability probes return immediately
|
|
71
71
|
instead of waiting for their timeout.
|
|
72
|
+
- **Whole frames.** Like a terminal, a session keeps showing its previous screen while a
|
|
73
|
+
synchronized update (`CSI ? 2026 h` … `CSI ? 2026 l`) is open, so an app that brackets
|
|
74
|
+
its redraws is never captured with a redraw only partly received.
|
|
72
75
|
|
|
73
76
|
### Proof you can share
|
|
74
77
|
|
package/binary.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Installs and runs the testty 0.
|
|
3
|
-
// Generated by ag-release 0.
|
|
2
|
+
// Installs and runs the testty 0.22.0 binaries from https://github.com/agentty-xyz/agentty.
|
|
3
|
+
// Generated by ag-release 0.22.0.
|
|
4
4
|
//
|
|
5
5
|
// `install.js` installs the binaries after `npm install`. When install
|
|
6
6
|
// scripts are disabled, the first run of a command installs them instead.
|
|
@@ -19,7 +19,7 @@ const RELEASE = {
|
|
|
19
19
|
"binaries": [
|
|
20
20
|
"testty"
|
|
21
21
|
],
|
|
22
|
-
"downloadUrl": "https://github.com/agentty-xyz/agentty/releases/download/v0.
|
|
22
|
+
"downloadUrl": "https://github.com/agentty-xyz/agentty/releases/download/v0.22.0",
|
|
23
23
|
"downloadUrlVariable": "TESTTY_DOWNLOAD_URL",
|
|
24
24
|
"minGlibc": "2.35",
|
|
25
25
|
"targets": [
|
|
@@ -29,7 +29,7 @@ const RELEASE = {
|
|
|
29
29
|
"directory": "testty-aarch64-apple-darwin",
|
|
30
30
|
"libc": "none",
|
|
31
31
|
"platform": "darwin",
|
|
32
|
-
"sha256": "
|
|
32
|
+
"sha256": "932e56638f015579a62c9c7668c02a7ef2f165b50761e65d3a7fcd66ffc88229",
|
|
33
33
|
"target": "aarch64-apple-darwin"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
@@ -38,7 +38,7 @@ const RELEASE = {
|
|
|
38
38
|
"directory": "testty-aarch64-unknown-linux-gnu",
|
|
39
39
|
"libc": "gnu",
|
|
40
40
|
"platform": "linux",
|
|
41
|
-
"sha256": "
|
|
41
|
+
"sha256": "2aabac1c2fb5ad701e0c0a702fa1a20aba85252c7b3f5fc989f44b77c5d5105a",
|
|
42
42
|
"target": "aarch64-unknown-linux-gnu"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
@@ -47,7 +47,7 @@ const RELEASE = {
|
|
|
47
47
|
"directory": "testty-aarch64-unknown-linux-musl",
|
|
48
48
|
"libc": "musl",
|
|
49
49
|
"platform": "linux",
|
|
50
|
-
"sha256": "
|
|
50
|
+
"sha256": "bd0094f67666c89a2e65da8361c726daef771846d7574c5bd2faa2e7b0e53848",
|
|
51
51
|
"target": "aarch64-unknown-linux-musl"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
@@ -56,7 +56,7 @@ const RELEASE = {
|
|
|
56
56
|
"directory": "testty-x86_64-apple-darwin",
|
|
57
57
|
"libc": "none",
|
|
58
58
|
"platform": "darwin",
|
|
59
|
-
"sha256": "
|
|
59
|
+
"sha256": "3888967b134136dfbcb390ba5c627998e8d59a4c912862a9023c1e3dfaec8894",
|
|
60
60
|
"target": "x86_64-apple-darwin"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
@@ -65,7 +65,7 @@ const RELEASE = {
|
|
|
65
65
|
"directory": "testty-x86_64-unknown-linux-gnu",
|
|
66
66
|
"libc": "gnu",
|
|
67
67
|
"platform": "linux",
|
|
68
|
-
"sha256": "
|
|
68
|
+
"sha256": "e897e20be3a6ef89d0f0df0c0dc88430f3f30f5290dd2d7948b74f291fa63cb5",
|
|
69
69
|
"target": "x86_64-unknown-linux-gnu"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -74,11 +74,11 @@ const RELEASE = {
|
|
|
74
74
|
"directory": "testty-x86_64-unknown-linux-musl",
|
|
75
75
|
"libc": "musl",
|
|
76
76
|
"platform": "linux",
|
|
77
|
-
"sha256": "
|
|
77
|
+
"sha256": "2a66634211f3b566f3e24ed858dd7413cf3fbb3f96a0d25853bc7fd3b8d78312",
|
|
78
78
|
"target": "x86_64-unknown-linux-musl"
|
|
79
79
|
}
|
|
80
80
|
],
|
|
81
|
-
"version": "0.
|
|
81
|
+
"version": "0.22.0"
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
// The binaries live in `<package>/node_modules/.bin_real/`; tools that
|
|
@@ -302,11 +302,14 @@ function installBinary(source, binary) {
|
|
|
302
302
|
|
|
303
303
|
/** Runs `program` and exits as it does: with its status, or by its signal. */
|
|
304
304
|
function spawn(program) {
|
|
305
|
-
|
|
305
|
+
// The listeners go in before the binary starts, so no signal sent once it
|
|
306
|
+
// runs ends this process instead of reaching it. They run on the event
|
|
307
|
+
// loop, after `child` is assigned below.
|
|
306
308
|
const ignore = () => {};
|
|
307
309
|
const forward = (signal) => child.kill(signal);
|
|
308
310
|
IGNORED_SIGNALS.forEach((signal) => process.on(signal, ignore));
|
|
309
311
|
FORWARDED_SIGNALS.forEach((signal) => process.on(signal, forward));
|
|
312
|
+
const child = childProcess.spawn(program, process.argv.slice(2), { stdio: "inherit" });
|
|
310
313
|
child.on("error", (error) => {
|
|
311
314
|
report(new Error(`cannot run ${program}: ${error.message}`));
|
|
312
315
|
});
|
package/package.json
CHANGED