@ancha-labs/cli 0.4.10 → 0.4.12
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 +10 -10
- package/lib/ancha.mjs +8991 -5469
- package/lib/assets/SKILL.md +30 -27
- package/lib/assets/agents-section.md +21 -19
- package/lib/assets/docs/apps.md +8 -8
- package/lib/assets/docs/cloud.md +35 -32
- package/lib/assets/docs/compare.md +3 -3
- package/lib/assets/docs/explain.md +8 -6
- package/lib/assets/docs/run.md +13 -13
- package/lib/assets/docs/scenes.md +4 -4
- package/lib/assets/docs/setup.md +26 -24
- package/lib/assets/docs/traces.md +8 -7
- package/lib/assets/harbor/companion.mjs +19 -19
- package/lib/assets/llms.txt +6 -6
- package/lib/assets/ui/app.js +110 -35
- package/lib/assets/ui/style.css +5 -2
- package/lib/mcp-entry.mjs +15 -15
- package/lib/worker.mjs +704 -331
- package/lib/world-server.mjs +19 -19
- package/package.json +1 -1
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
|
|
41
|
-
ancha secrets set
|
|
42
|
-
ancha
|
|
43
|
-
ancha
|
|
44
|
-
ancha run
|
|
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>
|
|
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 --
|
|
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
|
|
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 --
|
|
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
|
|