@ancha-labs/cli 0.4.39 → 0.4.40
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/lib/ancha.mjs +2532 -1978
- package/lib/assets/docs/cloud.md +7 -4
- package/lib/assets/harbor/companion.mjs +1316 -1078
- package/lib/assets/ui/app.js +1242 -1227
- package/lib/worker.mjs +2106 -1560
- package/package.json +1 -1
package/lib/assets/docs/cloud.md
CHANGED
|
@@ -129,6 +129,8 @@ A run on this computer stays in `.ancha/runs/`; `ancha run --on local --upload`
|
|
|
129
129
|
|
|
130
130
|
## Secrets
|
|
131
131
|
|
|
132
|
+
The workspace machine picks up saved secrets when it starts.
|
|
133
|
+
|
|
132
134
|
The Agent page shows **Code**, the project's Git repository, and **Model key**, the provider key names stored in the workspace or configured under `agent.env`. Key values stay private. With no model key, it shows `ancha secrets set OPENAI_API_KEY`.
|
|
133
135
|
|
|
134
136
|
The agent's own keys, its model provider's for one, live in the workspace:
|
|
@@ -160,12 +162,13 @@ ancha run --on cloud
|
|
|
160
162
|
```
|
|
161
163
|
|
|
162
164
|
- Each test's world includes `quickbooks`.
|
|
163
|
-
- Each attempt
|
|
164
|
-
-
|
|
165
|
+
- The agent keeps its Composio code. Each attempt sets `COMPOSIO_BASE_URL` to Composio's API through the attempt's gateway (the Composio SDKs read it; a client built with an explicit base URL takes this value) and `COMPOSIO_API_KEY` to a key for this attempt; the gateway sends the project's key to Composio. `QUICKBOOKS_PUBLIC_URL` is this world's QuickBooks at an address Composio reaches for this attempt only; `QUICKBOOKS_ACCESS_TOKEN` and `QUICKBOOKS_REALM_ID` are the world's, as in any test with QuickBooks.
|
|
166
|
+
- Direct executions (`tools.execute`) reach the world whatever user ID or connected account the agent names: the gateway supplies the world's address and credentials on each call. An agent that already passes `custom_auth_params` keeps them: `base_url` is `QUICKBOOKS_PUBLIC_URL` with the world's `Authorization` and `x-quickbooks-realm-id` headers.
|
|
167
|
+
- Tool Router sessions reach the world through a QuickBooks connection the attempt creates in the project for its own user (`ancha-…`). Sessions are pinned to it, and the session's MCP URL points at the gateway, so an MCP client in the agent's process reaches the same session. When the attempt ends it deletes the sessions, the connection and its auth config.
|
|
165
168
|
- Before the agent starts, the attempt checks that `QUICKBOOKS_PUBLIC_URL` answers from outside.
|
|
166
|
-
- The gateway
|
|
169
|
+
- The gateway keeps every call on the world: a call that names another toolkit's tools, changes a session's connection, proxies a request or reaches another attempt's session gets `403 COMPOSIO_ROUTE_REFUSED` with a `reason`, and the attempt is invalid with `ROUTE_REFUSED`, so every result rests on calls inside the world.
|
|
167
170
|
- Composio's calls reach the world like the agent's own: the world's trace and the checks see them. An execution with no request reaching the world makes the attempt invalid with `ROUTE_NOT_REACHED`.
|
|
168
|
-
- The summary counts the route under `routes.quickbooks`: executions, how many reached the world, and
|
|
171
|
+
- The summary counts the route under `routes.quickbooks`: executions by path (`via.direct`, `via.session`, `via.mcp`), how many reached the world, refusals, sessions, and the test connection (`connection`, `cleanup`).
|
|
169
172
|
|
|
170
173
|
## CI
|
|
171
174
|
|