@agentty-xyz/testty 0.19.4 → 0.19.6

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 CHANGED
@@ -7,6 +7,100 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [v0.19.6] - 2026-11-19
11
+
12
+ ### Added
13
+
14
+ - `ag-router`: implement the Anthropic Messages wire protocol, with signed thinking
15
+ replay, native or forced-tool structured output, and streamed responses.
16
+ - `ag-router`: stream Chat Completions and report text, reasoning, and tool-argument
17
+ deltas through `Router::execute_streamed`; harness runs emit them as `ItemDelta`
18
+ events.
19
+ - `ag-router`: mark Anthropic prompt-cache breakpoints on the tools, `system` prompt,
20
+ and latest message by default (`ProviderSpec::with_cache_breakpoints`).
21
+ - `ag-router`: add a per-provider `RetryPolicy` with jitter, opt-in `5xx` and `529`
22
+ retries, and HTTP-date `Retry-After`, and report waits as `Retrying` run events.
23
+ - `ag-harness`: gate writing and executing tool calls behind an `ApprovalHandler` with a
24
+ decision timeout, carried over `serve` as server-to-client requests.
25
+ - `ag-harness`: choose the native sandbox behavior with `HarnessBuilder::sandbox`, embed
26
+ the sandbox helper through `ag_harness::sandbox::dispatch`, and add
27
+ `Session::replayed_range`.
28
+ - `ag-harness-cli`: pick models from the provider catalog, show per-turn usage and cost,
29
+ and add `/usage` and `/history`.
30
+ - release: add `ag-release`, which plans, builds, and packages releases, writes the
31
+ release notes, and generates `.github/workflows/release.yml`.
32
+
33
+ ### Changed
34
+
35
+ - release: build and publish releases with `ag-release` instead of `dist`. Archives are
36
+ `.tar.gz` instead of `.tar.xz`, `release-manifest.json` replaces `dist-manifest.json`,
37
+ and the `agentty-update` and `testty-update` binaries are no longer published.
38
+ - release: the npm packages have no dependencies and need Node.js 18 or newer; the shell
39
+ installer verifies each archive's SHA-256 and rejects musl and too-old glibc.
40
+ - `agentty`: update shell installs in the background through the shell installer. Shell
41
+ installs of `v0.19.5` or earlier need one manual reinstall first.
42
+ - `agentty`: declare image input and tool calls for harness models from the harness
43
+ provider catalog.
44
+ - `ag-harness`: run commands unsandboxed with a `SandboxWarning` when the native sandbox
45
+ cannot start; `IfUnavailable::Refuse` keeps failing closed.
46
+ - release: bump workspace crate metadata and lockfile package versions to `0.19.6`.
47
+
48
+ ### Removed
49
+
50
+ - `agentty`: remove stacked sessions and the append-to-stack action; unfinished former
51
+ stacked children now target their root session's base branch.
52
+
53
+ ### Fixed
54
+
55
+ - `agentty`: remove worktrees of archived sessions reliably, including sessions whose
56
+ pull request was closed without merging, and sweep leftover worktrees at startup.
57
+ - `ag-harness-cli`: `serve` no longer fails `session/create` for cataloged models
58
+ without a declared context profile.
59
+
60
+ ### Contributors
61
+
62
+ - @andagaev
63
+ - @minev-dev
64
+
65
+ ## [v0.19.5] - 2026-11-18
66
+
67
+ ### Added
68
+
69
+ - `ag-router`, `ag-harness`: route open, host-supplied `ProviderSpec`s with configurable
70
+ wire protocol, auth, extra headers, and query parameters; the built-in providers
71
+ become `ag_router::preset` functions.
72
+ - `ag-harness`: declare context profiles for Kimi and Muse models, default Kimi to
73
+ `https://api.moonshot.ai/v1`, and add `cost_tier_at` for endpoint-aware cost tiers.
74
+
75
+ ### Changed
76
+
77
+ - `ag-router`, `ag-harness`: make the legacy `max_tokens` field and joined turn
78
+ instructions opt-in for custom Chat Completions providers; presets keep their
79
+ behavior.
80
+ - `agentty`: make `KIMI_BASE_URL` optional for harness sessions.
81
+ - `agentty`: report cancelled harness turns as stopped instead of failed, and add a
82
+ retry hint to transient harness provider failures.
83
+ - release: restore registry versions for `ag-harness`, `ag-agent`, and `ag-runtime` so
84
+ `ag-agent` and its dependents publish to crates.io again.
85
+ - release: bump workspace crate metadata and lockfile package versions to `0.19.5`.
86
+
87
+ ### Removed
88
+
89
+ - `ag-router`: remove the closed `Provider` enum, `ProviderConfig`, and
90
+ `Router::single`.
91
+ - `ag-harness`: remove `provider::Muse` and `chatgpt_auth_file` in favor of
92
+ `ModelClient::muse` and `chatgpt_auth_file_in`.
93
+
94
+ ### Fixed
95
+
96
+ - `ag-harness`: document and test that `Completed` arrives only after a cancelled turn's
97
+ interrupted status is stored, fixing a flaky `serve` cancel test.
98
+
99
+ ### Contributors
100
+
101
+ - @andagaev
102
+ - @minev-dev
103
+
10
104
  ## [v0.19.4] - 2026-11-17
11
105
 
12
106
  ### Added
package/binary.js CHANGED
@@ -1,128 +1,300 @@
1
- const { Package } = require("./binary-install");
1
+ "use strict";
2
+ // Installs and runs the testty 0.19.6 binaries from https://github.com/agentty-xyz/agentty.
3
+ // Generated by ag-release 0.19.6.
4
+ //
5
+ // `install.js` installs the binaries after `npm install`. When install
6
+ // scripts are disabled, the first run of a command installs them instead.
7
+ // Set TESTTY_DOWNLOAD_URL to download the release archives from
8
+ // another base URL; `file://` URLs work.
9
+
10
+ const childProcess = require("child_process");
11
+ const crypto = require("crypto");
12
+ const fs = require("fs");
2
13
  const os = require("os");
3
- const cTable = require("console.table");
4
- const libc = require("detect-libc");
5
- const { configureProxy } = require("axios-proxy-builder");
14
+ const path = require("path");
15
+ const url = require("url");
6
16
 
7
- const error = (msg) => {
8
- console.error(msg);
9
- process.exit(1);
17
+ const RELEASE = {
18
+ "app": "testty",
19
+ "binaries": [
20
+ "testty"
21
+ ],
22
+ "downloadUrl": "https://github.com/agentty-xyz/agentty/releases/download/v0.19.6",
23
+ "downloadUrlVariable": "TESTTY_DOWNLOAD_URL",
24
+ "minGlibc": "2.35",
25
+ "targets": [
26
+ {
27
+ "arch": "arm64",
28
+ "archive": "testty-aarch64-apple-darwin.tar.gz",
29
+ "directory": "testty-aarch64-apple-darwin",
30
+ "glibc": false,
31
+ "platform": "darwin",
32
+ "sha256": "f82eadfc54d2e6b75a48a6725f144ea698c28835cf6ae3ac58c6f516bad54dcf",
33
+ "target": "aarch64-apple-darwin"
34
+ },
35
+ {
36
+ "arch": "arm64",
37
+ "archive": "testty-aarch64-unknown-linux-gnu.tar.gz",
38
+ "directory": "testty-aarch64-unknown-linux-gnu",
39
+ "glibc": true,
40
+ "platform": "linux",
41
+ "sha256": "0ef3627986bbf343211fa539e8daa27084aa97b95b3cf83b3007fadec371a1e5",
42
+ "target": "aarch64-unknown-linux-gnu"
43
+ },
44
+ {
45
+ "arch": "x64",
46
+ "archive": "testty-x86_64-apple-darwin.tar.gz",
47
+ "directory": "testty-x86_64-apple-darwin",
48
+ "glibc": false,
49
+ "platform": "darwin",
50
+ "sha256": "3d57b1e4d0057c4101bc2199c03884ec655febd26f4ed78bdea7a25ddf3c1681",
51
+ "target": "x86_64-apple-darwin"
52
+ },
53
+ {
54
+ "arch": "x64",
55
+ "archive": "testty-x86_64-unknown-linux-gnu.tar.gz",
56
+ "directory": "testty-x86_64-unknown-linux-gnu",
57
+ "glibc": true,
58
+ "platform": "linux",
59
+ "sha256": "4f23213732ea92a70db46f06bdcd6fae6ec26fc2329c56c1b8eab851432a4176",
60
+ "target": "x86_64-unknown-linux-gnu"
61
+ }
62
+ ],
63
+ "version": "0.19.6"
10
64
  };
11
65
 
12
- const {
13
- name,
14
- artifactDownloadUrls,
15
- supportedPlatforms,
16
- glibcMinimum,
17
- } = require("./package.json");
18
-
19
- // FIXME: implement NPM installer handling of fallback download URLs
20
- const artifactDownloadUrl = artifactDownloadUrls[0];
21
- const builderGlibcMajorVersion = glibcMinimum.major;
22
- const builderGlibcMinorVersion = glibcMinimum.series;
23
-
24
- const getPlatform = () => {
25
- const rawOsType = os.type();
26
- const rawArchitecture = os.arch();
27
-
28
- // We want to use rust-style target triples as the canonical key
29
- // for a platform, so translate the "os" library's concepts into rust ones
30
- let osType = "";
31
- switch (rawOsType) {
32
- case "Windows_NT":
33
- osType = "pc-windows-msvc";
34
- break;
35
- case "Darwin":
36
- osType = "apple-darwin";
37
- break;
38
- case "Linux":
39
- osType = "unknown-linux-gnu";
40
- break;
66
+ // The binaries live in `<package>/node_modules/.bin_real/`; tools that
67
+ // recognize npm installs by their executable's path rely on this location.
68
+ const INSTALL_DIR = path.join(__dirname, "node_modules", ".bin_real");
69
+
70
+ // Node's built-in `fetch` ignores proxies, so a configured one routes
71
+ // downloads through `curl`. The variables and their order are those that
72
+ // `proxy-from-env` 1.x reads for an `https:` URL, each in lower, then upper
73
+ // case. npm passes its `https-proxy`, `proxy`, and `noproxy` settings to
74
+ // install scripts only as `npm_config_*` variables, which `curl` does not
75
+ // read, so the resolved values reach `curl` as options.
76
+ const PROXY_VARIABLES = ["npm_config_https_proxy", "https_proxy", "npm_config_proxy", "all_proxy"];
77
+ const NO_PROXY_VARIABLES = ["npm_config_no_proxy", "npm_config_noproxy", "no_proxy"];
78
+
79
+ // The terminal also sends these to the binary, which decides how to react.
80
+ const IGNORED_SIGNALS = ["SIGINT", "SIGQUIT"];
81
+
82
+ // Signals sent to this process alone, passed on to the binary.
83
+ const FORWARDED_SIGNALS = ["SIGHUP", "SIGTERM"];
84
+
85
+ /** Installs the binaries unless they are installed already. */
86
+ function install() {
87
+ installMissing().catch(report);
88
+ }
89
+
90
+ /** Runs `binary` with this process's arguments and standard streams. */
91
+ function run(binary) {
92
+ const program = path.join(INSTALL_DIR, binary);
93
+ const installed = fs.existsSync(program) ? Promise.resolve() : installMissing();
94
+ installed.then(() => spawn(program)).catch(report);
95
+ }
96
+
97
+ async function installMissing() {
98
+ const missing = RELEASE.binaries.some(
99
+ (binary) => !fs.existsSync(path.join(INSTALL_DIR, binary)),
100
+ );
101
+ if (!missing) {
102
+ return;
103
+ }
104
+
105
+ const target = detectTarget();
106
+ const base = process.env[RELEASE.downloadUrlVariable] || RELEASE.downloadUrl;
107
+ const source = `${base.replace(/\/+$/, "")}/${target.archive}`;
108
+ const workDir = fs.mkdtempSync(path.join(os.tmpdir(), `${RELEASE.app}-`));
109
+ try {
110
+ const archive = path.join(workDir, target.archive);
111
+ say(`downloading ${RELEASE.app} ${RELEASE.version} for ${target.target}`);
112
+ await download(source, archive);
113
+ verifySha256(archive, target);
114
+ runTool("tar", ["-xzf", archive, "-C", workDir], `cannot extract ${target.archive}`);
115
+ fs.mkdirSync(INSTALL_DIR, { recursive: true });
116
+ for (const binary of RELEASE.binaries) {
117
+ installBinary(path.join(workDir, target.directory, binary), binary);
118
+ }
119
+ } finally {
120
+ fs.rmSync(workDir, { force: true, recursive: true });
121
+ }
122
+ say(`installed ${RELEASE.app} ${RELEASE.version} to ${INSTALL_DIR}`);
123
+ }
124
+
125
+ /** Returns the release target of this platform, or throws. */
126
+ function detectTarget() {
127
+ const { arch, platform } = process;
128
+ const arches = [arch];
129
+ // Under Rosetta 2, Node for x64 runs on Apple silicon: prefer the native
130
+ // archive.
131
+ if (platform === "darwin" && arch === "x64" && sysctl("hw.optional.arm64") === "1") {
132
+ arches.unshift("arm64");
133
+ }
134
+ const target = arches
135
+ .map((candidate) =>
136
+ RELEASE.targets.find((entry) => entry.platform === platform && entry.arch === candidate),
137
+ )
138
+ .find(Boolean);
139
+ if (!target) {
140
+ throw unsupported(`${platform} ${arch}`);
141
+ }
142
+ if (target.glibc) {
143
+ checkGlibc(platform, arch);
144
+ }
145
+
146
+ return target;
147
+ }
148
+
149
+ function sysctl(name) {
150
+ const result = childProcess.spawnSync("sysctl", ["-n", name], { encoding: "utf8" });
151
+
152
+ return result.status === 0 ? result.stdout.trim() : "";
153
+ }
154
+
155
+ function unsupported(platform) {
156
+ const targets = RELEASE.targets.map((entry) => entry.target).join(", ");
157
+
158
+ return new Error(`unsupported platform ${platform}; ${RELEASE.app} supports ${targets}`);
159
+ }
160
+
161
+ /** Throws unless this system has glibc, at least the release minimum. */
162
+ function checkGlibc(platform, arch) {
163
+ process.report.excludeNetwork = true;
164
+ const version = process.report.getReport().header.glibcVersionRuntime;
165
+ if (!version) {
166
+ throw unsupported(`${platform} ${arch} without glibc`);
167
+ }
168
+ if (!RELEASE.minGlibc) {
169
+ return;
41
170
  }
42
171
 
43
- let arch = "";
44
- switch (rawArchitecture) {
45
- case "x64":
46
- arch = "x86_64";
47
- break;
48
- case "arm64":
49
- arch = "aarch64";
50
- break;
172
+ const needs = `${RELEASE.app} needs glibc ${RELEASE.minGlibc} or newer`;
173
+ const [major, minor] = version.split(".").map(Number);
174
+ if (!Number.isInteger(major) || !Number.isInteger(minor)) {
175
+ throw new Error(`cannot determine the glibc version; ${needs}`);
51
176
  }
177
+ const [minMajor, minMinor] = RELEASE.minGlibc.split(".").map(Number);
178
+ if (major < minMajor || (major === minMajor && minor < minMinor)) {
179
+ throw new Error(`${needs}, but this system has glibc ${version}`);
180
+ }
181
+ }
52
182
 
53
- if (rawOsType === "Linux") {
54
- if (libc.familySync() == "musl") {
55
- osType = "unknown-linux-musl-dynamic";
56
- } else if (libc.isNonGlibcLinuxSync()) {
57
- console.warn(
58
- "Your libc is neither glibc nor musl; trying static musl binary instead",
183
+ /** Downloads `source` into the file `destination`. */
184
+ async function download(source, destination) {
185
+ try {
186
+ const proxy = firstVariable(PROXY_VARIABLES);
187
+ if (proxy) {
188
+ const noProxy = firstVariable(NO_PROXY_VARIABLES);
189
+ runTool(
190
+ "curl",
191
+ [
192
+ "--proxy",
193
+ proxy,
194
+ ...(noProxy ? ["--noproxy", noProxy] : []),
195
+ "--fail",
196
+ "--location",
197
+ "--silent",
198
+ "--show-error",
199
+ "--output",
200
+ destination,
201
+ source,
202
+ ],
203
+ "curl failed",
59
204
  );
60
- osType = "unknown-linux-musl-static";
205
+ } else if (source.startsWith("file:")) {
206
+ fs.copyFileSync(url.fileURLToPath(source), destination);
61
207
  } else {
62
- let libcVersion = libc.versionSync();
63
- let splitLibcVersion = libcVersion.split(".");
64
- let libcMajorVersion = splitLibcVersion[0];
65
- let libcMinorVersion = splitLibcVersion[1];
66
- if (
67
- libcMajorVersion != builderGlibcMajorVersion ||
68
- libcMinorVersion < builderGlibcMinorVersion
69
- ) {
70
- // We can't run the glibc binaries, but we can run the static musl ones
71
- // if they exist
72
- console.warn(
73
- "Your glibc isn't compatible; trying static musl binary instead",
74
- );
75
- osType = "unknown-linux-musl-static";
208
+ const response = await fetch(source);
209
+ if (!response.ok) {
210
+ throw new Error(`HTTP status ${response.status}`);
76
211
  }
212
+ fs.writeFileSync(destination, Buffer.from(await response.arrayBuffer()));
77
213
  }
214
+ } catch (error) {
215
+ const cause = error.cause ? ` (${error.cause.message})` : "";
216
+ throw new Error(`cannot download ${source}: ${error.message}${cause}`);
78
217
  }
218
+ }
79
219
 
80
- // Assume the above succeeded and build a target triple to look things up with.
81
- // If any of it failed, this lookup will fail and we'll handle it like normal.
82
- let targetTriple = `${arch}-${osType}`;
83
- let platform = supportedPlatforms[targetTriple];
84
-
85
- if (!platform) {
86
- error(
87
- `Platform with type "${rawOsType}" and architecture "${rawArchitecture}" is not supported by ${name}.\nYour system must be one of the following:\n\n${Object.keys(
88
- supportedPlatforms,
89
- ).join(",")}`,
90
- );
220
+ /** Returns the value of the first of `names` that is set, trying each in
221
+ * lower, then upper case, or an empty string. */
222
+ function firstVariable(names) {
223
+ for (const name of names) {
224
+ const value = process.env[name.toLowerCase()] || process.env[name.toUpperCase()];
225
+ if (value) {
226
+ return value;
227
+ }
91
228
  }
92
229
 
93
- return platform;
94
- };
230
+ return "";
231
+ }
95
232
 
96
- const getPackage = () => {
97
- const platform = getPlatform();
98
- const url = `${artifactDownloadUrl}/${platform.artifactName}`;
99
- let filename = platform.artifactName;
100
- let ext = platform.zipExt;
101
- let binary = new Package(platform, name, url, filename, ext, platform.bins);
233
+ /** Throws unless the file `archive` has the SHA-256 the release recorded. */
234
+ function verifySha256(archive, target) {
235
+ const found = crypto.createHash("sha256").update(fs.readFileSync(archive)).digest("hex");
236
+ if (found !== target.sha256) {
237
+ throw new Error(
238
+ `checksum mismatch for ${target.archive}: expected ${target.sha256}, found ${found}`,
239
+ );
240
+ }
241
+ }
102
242
 
103
- return binary;
104
- };
243
+ /** Runs `command`, throwing `failure` with its error output when it fails. */
244
+ function runTool(command, args, failure) {
245
+ const result = childProcess.spawnSync(command, args, {
246
+ encoding: "utf8",
247
+ stdio: ["ignore", "ignore", "pipe"],
248
+ });
249
+ if (result.error) {
250
+ throw new Error(`${failure}: cannot run ${command}: ${result.error.message}`);
251
+ }
252
+ if (result.status !== 0) {
253
+ throw new Error(`${failure}: ${result.stderr.trim()}`);
254
+ }
255
+ }
105
256
 
106
- const install = (suppressLogs) => {
107
- if (!artifactDownloadUrl || artifactDownloadUrl.length === 0) {
108
- console.warn("in demo mode, not installing binaries");
109
- return;
257
+ /** Moves `source` into place with an atomic rename, so a running binary is
258
+ * never written over. */
259
+ function installBinary(source, binary) {
260
+ const staged = path.join(INSTALL_DIR, `.${binary}.${process.pid}`);
261
+ try {
262
+ fs.copyFileSync(source, staged);
263
+ fs.chmodSync(staged, 0o755);
264
+ fs.renameSync(staged, path.join(INSTALL_DIR, binary));
265
+ } finally {
266
+ fs.rmSync(staged, { force: true });
110
267
  }
111
- const package = getPackage();
112
- const proxy = configureProxy(package.url);
268
+ }
113
269
 
114
- return package.install(proxy, suppressLogs);
115
- };
270
+ /** Runs `program` and exits as it does: with its status, or by its signal. */
271
+ function spawn(program) {
272
+ const child = childProcess.spawn(program, process.argv.slice(2), { stdio: "inherit" });
273
+ const ignore = () => {};
274
+ const forward = (signal) => child.kill(signal);
275
+ IGNORED_SIGNALS.forEach((signal) => process.on(signal, ignore));
276
+ FORWARDED_SIGNALS.forEach((signal) => process.on(signal, forward));
277
+ child.on("error", (error) => {
278
+ report(new Error(`cannot run ${program}: ${error.message}`));
279
+ });
280
+ child.on("exit", (code, signal) => {
281
+ IGNORED_SIGNALS.forEach((name) => process.removeListener(name, ignore));
282
+ FORWARDED_SIGNALS.forEach((name) => process.removeListener(name, forward));
283
+ if (signal) {
284
+ process.kill(process.pid, signal);
285
+ }
286
+ // Reached when the signal does not end this process.
287
+ process.exit(signal ? 128 + os.constants.signals[signal] : code);
288
+ });
289
+ }
116
290
 
117
- const run = (binaryName) => {
118
- const package = getPackage();
119
- const proxy = configureProxy(package.url);
291
+ function say(message) {
292
+ console.error(message);
293
+ }
120
294
 
121
- package.run(binaryName, proxy);
122
- };
295
+ function report(error) {
296
+ console.error(`error: ${error.message}`);
297
+ process.exitCode = 1;
298
+ }
123
299
 
124
- module.exports = {
125
- install,
126
- run,
127
- getPackage,
128
- };
300
+ module.exports = { install, run };
package/install.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ "use strict";
2
+ // Installs the binaries after `npm install`; see `binary.js`.
2
3
 
3
- const { install } = require("./binary");
4
- install(false);
4
+ require("./binary.js").install();
package/package.json CHANGED
@@ -1,84 +1,32 @@
1
1
  {
2
- "artifactDownloadUrls": [
3
- "https://github.com/agentty-xyz/agentty/releases/download/v0.19.4"
4
- ],
5
- "bin": {
6
- "testty": "run-testty.js"
2
+ "name": "@agentty-xyz/testty",
3
+ "version": "0.19.6",
4
+ "description": "Agentty is an ADE (Agentic Development Environment) for structured, controllable AI-assisted software development.",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/agentty-xyz/agentty.git"
7
9
  },
8
10
  "contributors": [
9
11
  "Vladimir Minev <minev.dev@gmail.com>",
10
12
  "Andrei Agaev <andagaev@gmail.com>"
11
13
  ],
12
- "dependencies": {
13
- "axios": "^1.13.5",
14
- "axios-proxy-builder": "^0.1.2",
15
- "console.table": "^0.10.0",
16
- "detect-libc": "^2.1.2",
17
- "rimraf": "^6.1.3"
18
- },
19
- "description": "Agentty is an ADE (Agentic Development Environment) for structured, controllable AI-assisted software development.",
20
- "devDependencies": {
21
- "prettier": "^3.8.1"
22
- },
23
- "engines": {
24
- "node": ">=14",
25
- "npm": ">=6"
26
- },
27
- "glibcMinimum": {
28
- "major": 2,
29
- "series": 35
14
+ "bin": {
15
+ "testty": "run-testty.js"
30
16
  },
31
- "keywords": [
32
- "development-tools::testing",
33
- "command-line-interface",
34
- "tui",
35
- "testing",
36
- "e2e",
37
- "pty",
38
- "ratatui"
39
- ],
40
- "license": "Apache-2.0",
41
- "name": "@agentty-xyz/testty",
42
- "preferUnplugged": true,
43
- "repository": "https://github.com/agentty-xyz/agentty",
44
17
  "scripts": {
45
- "fmt": "prettier --write **/*.js",
46
- "fmt:check": "prettier --check **/*.js",
47
18
  "postinstall": "node ./install.js"
48
19
  },
49
- "supportedPlatforms": {
50
- "aarch64-apple-darwin": {
51
- "artifactName": "testty-aarch64-apple-darwin.tar.xz",
52
- "bins": {
53
- "testty": "testty"
54
- },
55
- "zipExt": ".tar.xz"
56
- },
57
- "aarch64-unknown-linux-gnu": {
58
- "artifactName": "testty-aarch64-unknown-linux-gnu.tar.xz",
59
- "bins": {
60
- "testty": "testty"
61
- },
62
- "zipExt": ".tar.xz"
63
- },
64
- "x86_64-apple-darwin": {
65
- "artifactName": "testty-x86_64-apple-darwin.tar.xz",
66
- "bins": {
67
- "testty": "testty"
68
- },
69
- "zipExt": ".tar.xz"
70
- },
71
- "x86_64-unknown-linux-gnu": {
72
- "artifactName": "testty-x86_64-unknown-linux-gnu.tar.xz",
73
- "bins": {
74
- "testty": "testty"
75
- },
76
- "zipExt": ".tar.xz"
77
- }
20
+ "engines": {
21
+ "node": ">=18"
78
22
  },
79
- "version": "0.19.4",
80
- "volta": {
81
- "node": "18.14.1",
82
- "npm": "9.5.0"
83
- }
84
- }
23
+ "os": [
24
+ "darwin",
25
+ "linux"
26
+ ],
27
+ "cpu": [
28
+ "arm64",
29
+ "x64"
30
+ ],
31
+ "preferUnplugged": true
32
+ }
package/run-testty.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ "use strict";
3
+ // Runs `testty`, installing the binaries first when they are missing.
2
4
 
3
- const { run } = require("./binary");
4
- run("testty");
5
+ require("./binary.js").run("testty");
package/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- /node_modules
2
-