@ancha-labs/cli 0.4.10 → 0.4.11

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 CHANGED
@@ -37,20 +37,20 @@ Your agent and its worlds run in the cloud, each attempt on a fresh machine of i
37
37
  ```sh
38
38
  npm install -g @ancha-labs/cli
39
39
  ancha login
40
- ancha init --agent "<the command that starts your agent>"
41
- ancha secrets set OPENAI_API_KEY
42
- ancha doctor --on cloud
43
- ancha import trace.jsonl --expect "<what went wrong>"
44
- ancha run --on cloud scenes/from-traces/<test>/scene.yaml --attempts 3 --concurrency 3
40
+ ancha init
41
+ ancha secrets set ANTHROPIC_API_KEY
42
+ ancha agent upload
43
+ ancha traces upload ./traces
44
+ ancha run
45
45
  ```
46
46
  <!-- /ancha:first-steps -->
47
47
 
48
- Then fix what failed and keep the test:
48
+ `ancha init` finds the command that starts your agent and how it takes its task; `ancha agent upload` installs it on a cloud machine and starts it once with a task; each trace becomes a test, and `ancha traces upload --from langfuse --limit 50` (or `--from langsmith`) takes the newest traces from there. Then fix what failed and keep the test:
49
49
 
50
50
  ```sh
51
- ancha explain <run id> --json # each failed check: expected, actual, and the calls behind it
51
+ ancha explain <run id> # each failed check: expected, actual, and the calls behind it
52
52
  ancha baseline save before --from <run id> # keep this run as the reference, then fix the agent
53
- ancha run --on cloud scenes/from-traces/<test>/scene.yaml --attempts 3 --concurrency 3 --compare before --json # exit 0: every check passes and nothing regressed
53
+ ancha run --compare before # exit 0: every check passes and nothing regressed
54
54
  ```
55
55
 
56
56
  Init installs nothing and keeps your existing files. `ancha docs cloud` has each step in full, and `ancha docs` lists every topic.
@@ -59,11 +59,11 @@ Exit codes: 0 pass; 1 a check failed or a comparison regressed; 2 usage, config
59
59
 
60
60
  ## On this computer
61
61
 
62
- `ancha run --on local` runs the agent and its worlds on this computer, with the same checks: `ancha doctor`, `ancha run --on local --json`, `ancha explain latest --json`, `ancha baseline save before`, then `ancha run --on local --compare before --json`. Here the agent gets the keys in `agent.pass_env` from your shell, and model-graded checks need `OPENROUTER_API_KEY`.
62
+ `ancha run --on local` runs the agent and its worlds on this computer, with the same checks: `ancha doctor`, `ancha run --on local`, `ancha explain latest`, `ancha baseline save before`, then `ancha run --on local --compare before`. Here the agent gets the keys in `agent.pass_env` from your shell, and model-graded checks need `OPENROUTER_API_KEY`.
63
63
 
64
64
  ## CI
65
65
 
66
- Set `ANCHA_SERVER_URL` and `ANCHA_API_KEY` (both from the Settings page of https://app.ancha.io) instead of logging in, then run `ancha run --on cloud --attempts 3 --concurrency 3 --json`. `ancha secrets set NAME` stores a key from your shell in the workspace, for the agent's cloud runs. Details: `ancha docs cloud`.
66
+ Set `ANCHA_SERVER_URL` and `ANCHA_API_KEY` (both from the Settings page of https://app.ancha.io) instead of logging in, then run `ancha run --on cloud --json` (one JSON object per event). `ancha secrets set NAME` stores a key from your shell in the workspace, for the agent's cloud runs. Details: `ancha docs cloud`.
67
67
 
68
68
  ## Links
69
69