@ancha-labs/cli 0.4.5 → 0.4.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/THIRD_PARTY_NOTICES.md +3 -1
- package/lib/ancha.mjs +7 -2
- package/lib/assets/docs/run.md +1 -1
- package/lib/worker.mjs +7 -2
- package/package.json +1 -1
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -14,7 +14,9 @@ Website catalog logos added 2026-10-28: Stripe, Linear and Okta (Simple Icons, C
|
|
|
14
14
|
|
|
15
15
|
Website catalog logos added 2026-10-29: Better Stack uses the Simple Icons mark (CC0, https://github.com/simple-icons/simple-icons) in its listed colour, #000000. Attio's mark comes from theSVG (MIT License, Copyright (c) 2025 thesvg.org, https://github.com/glincker/thesvg). Both were retrieved through https://api.iconify.design on 2026-10-29.
|
|
16
16
|
|
|
17
|
-
Catalog logos added 2026-10-31: Jira, Google Calendar, Intercom, Zendesk, Asana, Discord and Sentry (in the console and on the website) use their Simple Icons 16.35.0 marks (CC0-1.0, https://github.com/simple-icons/simple-icons; the npm package's tarball, integrity checked). Each is a single path filled in its listed brand colour (Jira #0052CC, Google Calendar #4285F4, Zendesk #03363D, Asana #F06A6A, Discord #5865F2, Sentry #362D59); Intercom is drawn in black, since its cyan #6AFDEF disappears on white.
|
|
17
|
+
Catalog logos added 2026-10-31: Jira, Google Calendar, Intercom, Zendesk, Asana, Discord and Sentry (in the console and on the website) use their Simple Icons 16.35.0 marks (CC0-1.0, https://github.com/simple-icons/simple-icons; the npm package's tarball, integrity checked). Each is a single path filled in its listed brand colour (Jira #0052CC, Google Calendar #4285F4, Zendesk #03363D, Asana #F06A6A, Discord #5865F2, Sentry #362D59); Intercom is drawn in black, since its cyan #6AFDEF disappears on white.
|
|
18
|
+
|
|
19
|
+
Website catalog logos added 2026-11-12: Airtable uses its Simple Icons 16.35.0 mark (CC0-1.0, https://github.com/simple-icons/simple-icons), a single path filled in its listed colour #18BFFF. Twilio's mark is `twilio-icon.svg` from SVG Logos by Gil Barbara (CC0-1.0, https://github.com/gilbarbara/logos, commit b9edc65f), in its own colour #F12E45. Both were retrieved through https://cdn.jsdelivr.net on 2026-11-12.
|
|
18
20
|
|
|
19
21
|
The website's mark (`website/assets/ancha-mark.svg`, the favicon) sets the letter "a" from Fraunces Bold (SOFT 100, WONK 0) by Undercase Type, licensed under the SIL Open Font License 1.1 (https://github.com/undercasetype/Fraunces); the outline was extracted with fontTools on 2026-10-28. The page bundles Latin woff2 subsets of Fraunces, Young Serif, Hanken Grotesk and JetBrains Mono in `website/assets/fonts/` (downloaded from Google Fonts on 2026-10-28), all under the SIL Open Font License 1.1. The link-preview image `website/assets/og.png` is rendered from the same fonts and contains no third-party material.
|
|
20
22
|
|
package/lib/ancha.mjs
CHANGED
|
@@ -205384,7 +205384,9 @@ async function reproductionOf(summary, scenePaths, cwd, runDir, scenes = []) {
|
|
|
205384
205384
|
return here === void 0 ? [] : [{ check: check4, production: result, failed: here.total - here.passed, total: here.total }];
|
|
205385
205385
|
});
|
|
205386
205386
|
const failedThere = checks.filter((c) => c.production === "failed");
|
|
205387
|
-
const
|
|
205387
|
+
const detail2 = scene2.trialsDetail ?? [];
|
|
205388
|
+
const crashed = detail2.length > 0 && detail2.every((t) => t.exit === "exited" && t.exitCode !== 0);
|
|
205389
|
+
const verdict = crashed ? "crashed" : failedThere.length > 0 ? failedThere.every((c) => c.failed * 2 > c.total) ? "reproduced" : failedThere.some((c) => c.failed > 0) ? "partly" : "not-reproduced" : checks.some((c) => c.production === "passed" && c.failed > 0) ? "differs" : checks.some((c) => c.production === "passed") ? "matches" : "unknown";
|
|
205388
205390
|
const added = Object.keys(scene2.checks).filter((check4) => !(check4 in production3.checks));
|
|
205389
205391
|
const counts = {};
|
|
205390
205392
|
for (const a of answers.filter((x) => x.scene === scene2.sceneId)) for (const [source, n] of Object.entries(a.counts)) counts[source] = (counts[source] ?? 0) + n;
|
|
@@ -205416,6 +205418,7 @@ function renderWrites(writes2) {
|
|
|
205416
205418
|
return [" writes compared with production:", ...writes2.tools.map((w) => ` ${w.tool.padEnd(width)} production: ${called(w.production).padEnd(said)} this run: ${w.trials} of ${of}`)];
|
|
205417
205419
|
}
|
|
205418
205420
|
var SAY = {
|
|
205421
|
+
crashed: "the agent exited with an error in every trial, so this run says nothing about production's failure: fix the agent first",
|
|
205419
205422
|
reproduced: "production's failure happens here too",
|
|
205420
205423
|
partly: "production's failure happens here in part",
|
|
205421
205424
|
"not-reproduced": "production's failure did not happen here",
|
|
@@ -206316,7 +206319,9 @@ async function runTrial(spec) {
|
|
|
206316
206319
|
...playOut !== void 0 && playOut.toMs > playOut.fromMs && { playOut },
|
|
206317
206320
|
checks,
|
|
206318
206321
|
logTail: exit === "done" || exit === "exited" && exitCode === 0 ? [] : await logTail2(join27(dir2, "agent.log")),
|
|
206319
|
-
|
|
206322
|
+
// An agent that exits non-zero or dies by a signal on its own fails its trial whatever the checks say, as a per_event
|
|
206323
|
+
// invocation does: an agent that crashed before its first call would otherwise pass every not_called check.
|
|
206324
|
+
passed: checks.every((c) => !c.required || c.passed) && !(exit === "exited" && exitCode !== 0),
|
|
206320
206325
|
trace,
|
|
206321
206326
|
dir: dir2,
|
|
206322
206327
|
taskDelivery
|
package/lib/assets/docs/run.md
CHANGED
|
@@ -20,7 +20,7 @@ agent:
|
|
|
20
20
|
pass_env: [OPENAI_API_KEY] # names only; values come from this shell at run time
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
`--pass-env NAME` (repeatable) adds names for one run. `--inherit-env` passes the whole shell environment, as before 0.1.2, and prints a warning. The run's first line says what the agent got: `running locally; agent not sealed (network open, <n> variables from this shell)`. When an agent crashes, the summary quotes the end of its log, and if the log names a variable this shell has but the agent didn't get, it says so: `OPENROUTER_API_KEY is set in this shell but was withheld from the agent: pass it with --pass-env OPENROUTER_API_KEY or list it under agent.pass_env in ancha.yaml`.
|
|
23
|
+
`--pass-env NAME` (repeatable) adds names for one run. `--inherit-env` passes the whole shell environment, as before 0.1.2, and prints a warning. The run's first line says what the agent got: `running locally; agent not sealed (network open, <n> variables from this shell)`. When an agent crashes (it exits non-zero on its own), its trial fails whatever its checks say, and the summary quotes the end of its log, and if the log names a variable this shell has but the agent didn't get, it says so: `OPENROUTER_API_KEY is set in this shell but was withheld from the agent: pass it with --pass-env OPENROUTER_API_KEY or list it under agent.pass_env in ancha.yaml`.
|
|
24
24
|
|
|
25
25
|
## Agents that wait for people
|
|
26
26
|
|
package/lib/worker.mjs
CHANGED
|
@@ -188646,7 +188646,9 @@ async function reproductionOf(summary, scenePaths, cwd, runDir, scenes = []) {
|
|
|
188646
188646
|
return here === void 0 ? [] : [{ check: check3, production: result, failed: here.total - here.passed, total: here.total }];
|
|
188647
188647
|
});
|
|
188648
188648
|
const failedThere = checks.filter((c) => c.production === "failed");
|
|
188649
|
-
const
|
|
188649
|
+
const detail2 = scene2.trialsDetail ?? [];
|
|
188650
|
+
const crashed = detail2.length > 0 && detail2.every((t) => t.exit === "exited" && t.exitCode !== 0);
|
|
188651
|
+
const verdict = crashed ? "crashed" : failedThere.length > 0 ? failedThere.every((c) => c.failed * 2 > c.total) ? "reproduced" : failedThere.some((c) => c.failed > 0) ? "partly" : "not-reproduced" : checks.some((c) => c.production === "passed" && c.failed > 0) ? "differs" : checks.some((c) => c.production === "passed") ? "matches" : "unknown";
|
|
188650
188652
|
const added = Object.keys(scene2.checks).filter((check3) => !(check3 in production2.checks));
|
|
188651
188653
|
const counts = {};
|
|
188652
188654
|
for (const a of answers.filter((x) => x.scene === scene2.sceneId)) for (const [source, n] of Object.entries(a.counts)) counts[source] = (counts[source] ?? 0) + n;
|
|
@@ -188678,6 +188680,7 @@ function renderWrites(writes2) {
|
|
|
188678
188680
|
return [" writes compared with production:", ...writes2.tools.map((w) => ` ${w.tool.padEnd(width)} production: ${called(w.production).padEnd(said)} this run: ${w.trials} of ${of}`)];
|
|
188679
188681
|
}
|
|
188680
188682
|
var SAY = {
|
|
188683
|
+
crashed: "the agent exited with an error in every trial, so this run says nothing about production's failure: fix the agent first",
|
|
188681
188684
|
reproduced: "production's failure happens here too",
|
|
188682
188685
|
partly: "production's failure happens here in part",
|
|
188683
188686
|
"not-reproduced": "production's failure did not happen here",
|
|
@@ -189578,7 +189581,9 @@ async function runTrial(spec) {
|
|
|
189578
189581
|
...playOut !== void 0 && playOut.toMs > playOut.fromMs && { playOut },
|
|
189579
189582
|
checks,
|
|
189580
189583
|
logTail: exit === "done" || exit === "exited" && exitCode === 0 ? [] : await logTail2(join16(dir, "agent.log")),
|
|
189581
|
-
|
|
189584
|
+
// An agent that exits non-zero or dies by a signal on its own fails its trial whatever the checks say, as a per_event
|
|
189585
|
+
// invocation does: an agent that crashed before its first call would otherwise pass every not_called check.
|
|
189586
|
+
passed: checks.every((c) => !c.required || c.passed) && !(exit === "exited" && exitCode !== 0),
|
|
189582
189587
|
trace,
|
|
189583
189588
|
dir,
|
|
189584
189589
|
taskDelivery
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ancha-labs/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Simulation playgrounds for agents: run your agent against stateful replicas of Slack, GitHub, Datadog and more, locally or hosted at app.ancha.io.",
|
|
6
6
|
"bugs": {
|