@ancha-labs/cli 0.4.36 → 0.4.37

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.
@@ -142,6 +142,31 @@ ancha secrets unset OPENAI_API_KEY
142
142
 
143
143
  Run in the agent's project, `ancha secrets set` also names each one under `agent.pass_env` in `ancha.yaml`. A secret's value has at least 8 characters; shorter settings belong under `agent.env`. A cloud run gives the agent those names with the values they had when the run was accepted, so a later change leaves accepted runs as they were. When the workspace lacks one, the run stops before any machine starts, with `CONFIG_INVALID` and the `ancha secrets set` command to run. Setting and removing secrets takes an admin key; the one `ancha login` saves is.
144
144
 
145
+ ## Tools reached through Composio
146
+
147
+ An agent that runs QuickBooks tools through Composio keeps that path in cloud runs: the agent calls Composio, and Composio's servers call the world's QuickBooks.
148
+
149
+ ```yaml
150
+ agent:
151
+ routes:
152
+ quickbooks: composio
153
+ pass_env: [COMPOSIO_API_KEY]
154
+ ```
155
+
156
+ ```sh
157
+ export COMPOSIO_API_KEY=… # the project's Composio key, from this shell
158
+ ancha secrets set COMPOSIO_API_KEY
159
+ ancha run --on cloud
160
+ ```
161
+
162
+ - 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
+ - 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.
167
+ - 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.
169
+
145
170
  ## CI
146
171
 
147
172
  Set two variables; no login or browser is needed: