@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.
@@ -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 gives the agent `COMPOSIO_BASE_URL`, Composio's API through the attempt's gateway, and `QUICKBOOKS_PUBLIC_URL`, 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.
164
- - The agent's Composio client takes `COMPOSIO_BASE_URL` as its base URL, and each QuickBooks execution passes `custom_auth_params` (`customAuthParams` in the TypeScript SDK): `base_url` is `QUICKBOOKS_PUBLIC_URL`, and the two header parameters are `Authorization: Bearer <QUICKBOOKS_ACCESS_TOKEN>` and `x-quickbooks-realm-id: <QUICKBOOKS_REALM_ID>`.
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 passes QuickBooks executions aimed at this world and Composio's QuickBooks catalog reads, with a user id of the attempt's own (`ancha-…`). Any other Composio call 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.
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 refusals.
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