@ancha-labs/cli 0.4.37 → 0.4.38
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 +1 -1
- package/lib/assets/docs/tools.md +1 -1
- package/lib/assets/harbor/companion.mjs +1 -1
- package/lib/worker.mjs +1 -1
- package/lib/world-server.mjs +1 -1
- package/package.json +1 -1
package/lib/ancha.mjs
CHANGED
|
@@ -193165,7 +193165,7 @@ function wantsJson(accept) {
|
|
|
193165
193165
|
if (media2 === "application/json") json40 = Math.max(json40, Number.isFinite(q2) ? q2 : 0);
|
|
193166
193166
|
if (["application/xml", "text/xml"].includes(media2)) xml2 = Math.max(xml2, Number.isFinite(q2) ? q2 : 0);
|
|
193167
193167
|
}
|
|
193168
|
-
return
|
|
193168
|
+
return !(xml2 > 0 && xml2 > json40);
|
|
193169
193169
|
}
|
|
193170
193170
|
function xmlElement(name5, value6, type = name5) {
|
|
193171
193171
|
if (Array.isArray(value6)) return value6.map((v) => xmlElement(name5, v, type)).join("");
|
package/lib/assets/docs/tools.md
CHANGED
|
@@ -88,7 +88,7 @@ The new tools are LinkedIn Ads (202610), Salesforce (REST v67.0), Gong (v2), Goo
|
|
|
88
88
|
|
|
89
89
|
**NetSuite** (SuiteTalk REST record v1 and SuiteQL): customers, vendors, items, sales orders, invoices, credit memos, customer payments, vendor bills, bill payments and journal entries. Credit preferences govern credit purchases; named A/R and A/P journal lines participate in payments and aging. Select journal credits through a payment’s `credit` sublist, including zero-cash invoice settlement. Run `ancha connect netsuite --lang ts` (or `--lang py`). Point the client at `NETSUITE_API_URL` instead of `https://{account}.suitetalk.api.netsuite.com`; use `NETSUITE_RECORD_URL` for records and `NETSUITE_SUITEQL_URL` for queries. Send `NETSUITE_ACCESS_TOKEN` as a Bearer token, or sign OAuth 1.0 TBA requests with HMAC-SHA256 using `NETSUITE_ACCOUNT_ID` as realm and `NETSUITE_CONSUMER_KEY`, `NETSUITE_CONSUMER_SECRET`, `NETSUITE_TOKEN_ID` and `NETSUITE_TOKEN_SECRET`. For OAuth 2.0, get tokens from `NETSUITE_TOKEN_URL`: the client credentials grant with a JWT signed by `NETSUITE_PRIVATE_KEY` (ES256, `kid` `NETSUITE_CERTIFICATE_ID`, `iss` `NETSUITE_CLIENT_ID`), or the authorization code grant (PKCE, refresh tokens) with `NETSUITE_CLIENT_ID` and `NETSUITE_CLIENT_SECRET` through `/app/login/oauth2/authorize.nl` on `NETSUITE_API_URL`. SuiteQL POSTs need `Prefer: transient` and a JSON body containing `q`; record creates return 204 with a `Location` header. `Prefer: respond-async` runs a request, or a batch of up to 100 records, as a job: poll `/services/rest/async/v1/job/{id}` until `completed` is true, then read each task's result. Agents that use NetSuite's AI Connector Service get Oracle's 25 MCP Standard Tools (records, record actions, reports, saved searches, SuiteQL, the File Cabinet and session information) at `NETSUITE_API_URL` plus `/services/mcp/v1/all`, with `NETSUITE_ACCESS_TOKEN` or an OAuth 2.0 token issued for the `mcp` scope; `ANCHA_MCP_NETSUITE_URL` and `ANCHA_MCP_NETSUITE_TOKEN` serve the same tools at the world's MCP endpoint.
|
|
90
90
|
|
|
91
|
-
**QuickBooks Online** (Accounting API v3): customers, vendors, accounts, service and non-inventory items, invoices, payments, bills, expenses, credits, deposits, transfers and journal entries. Agents can query the books, read accrual financial and aging reports, retrieve changes through CDC and submit batches. Run `ancha connect quickbooks --lang ts` (or `--lang py`). Point the client at `QUICKBOOKS_API_URL` and send requests to `/v3/company/{QUICKBOOKS_REALM_ID}/...`.
|
|
91
|
+
**QuickBooks Online** (Accounting API v3): customers, vendors, accounts, service and non-inventory items, invoices, payments, bills, expenses, credits, deposits, transfers and journal entries. Agents can query the books, read accrual financial and aging reports, retrieve changes through CDC and submit batches. Run `ancha connect quickbooks --lang ts` (or `--lang py`). Point the client at `QUICKBOOKS_API_URL` and send requests to `/v3/company/{QUICKBOOKS_REALM_ID}/...`. Responses are JSON; send `Accept: application/xml` for XML. Write entity bodies with `Content-Type: application/json`; updates take the current `Id` and `SyncToken`, with `sparse: true` to keep omitted fields. Use `QUICKBOOKS_ACCESS_TOKEN` as a Bearer token. Access tokens last one hour on the world's clock. Refresh by POSTing a form to `QUICKBOOKS_TOKEN_URL` with `grant_type=refresh_token` and `refresh_token` set to `QUICKBOOKS_REFRESH_TOKEN`, using HTTP Basic authentication with `QUICKBOOKS_CLIENT_ID` and `QUICKBOOKS_CLIENT_SECRET`; save the returned access and refresh tokens. Intuit and QuickBooks are registered trademarks of Intuit Inc. Ancha is not affiliated with or endorsed by Intuit.
|
|
92
92
|
|
|
93
93
|
Some replicas are measured against their vendor's own OpenAPI description: the official SDK calls every endpoint the replica claims and each response is checked. `ancha twins list --json` gives those replicas a `conformance` object (`claimed`, `exercised`, `sdkCalls`, `sdkFailures`, `mismatches`, `accepted`, and the pinned `source` descriptions); a difference is `accepted` only with a written reason. `ancha twins coverage <tool>` prints the same numbers under its table.
|
|
94
94
|
|
|
@@ -166251,7 +166251,7 @@ function wantsJson(accept) {
|
|
|
166251
166251
|
if (media2 === "application/json") json37 = Math.max(json37, Number.isFinite(q) ? q : 0);
|
|
166252
166252
|
if (["application/xml", "text/xml"].includes(media2)) xml2 = Math.max(xml2, Number.isFinite(q) ? q : 0);
|
|
166253
166253
|
}
|
|
166254
|
-
return
|
|
166254
|
+
return !(xml2 > 0 && xml2 > json37);
|
|
166255
166255
|
}
|
|
166256
166256
|
function xmlElement(name5, value5, type = name5) {
|
|
166257
166257
|
if (Array.isArray(value5)) return value5.map((v) => xmlElement(name5, v, type)).join("");
|
package/lib/worker.mjs
CHANGED
|
@@ -213327,7 +213327,7 @@ function wantsJson(accept) {
|
|
|
213327
213327
|
if (media2 === "application/json") json37 = Math.max(json37, Number.isFinite(q) ? q : 0);
|
|
213328
213328
|
if (["application/xml", "text/xml"].includes(media2)) xml2 = Math.max(xml2, Number.isFinite(q) ? q : 0);
|
|
213329
213329
|
}
|
|
213330
|
-
return
|
|
213330
|
+
return !(xml2 > 0 && xml2 > json37);
|
|
213331
213331
|
}
|
|
213332
213332
|
function xmlElement(name5, value5, type = name5) {
|
|
213333
213333
|
if (Array.isArray(value5)) return value5.map((v) => xmlElement(name5, v, type)).join("");
|
package/lib/world-server.mjs
CHANGED
|
@@ -182484,7 +182484,7 @@ function wantsJson(accept) {
|
|
|
182484
182484
|
if (media2 === "application/json") json37 = Math.max(json37, Number.isFinite(q) ? q : 0);
|
|
182485
182485
|
if (["application/xml", "text/xml"].includes(media2)) xml2 = Math.max(xml2, Number.isFinite(q) ? q : 0);
|
|
182486
182486
|
}
|
|
182487
|
-
return
|
|
182487
|
+
return !(xml2 > 0 && xml2 > json37);
|
|
182488
182488
|
}
|
|
182489
182489
|
function xmlElement(name5, value5, type = name5) {
|
|
182490
182490
|
if (Array.isArray(value5)) return value5.map((v) => xmlElement(name5, v, type)).join("");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ancha-labs/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.38",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Simulation playgrounds for agents: run your agent against stateful replicas of Slack, GitHub, Datadog and more, each attempt on a fresh cloud machine in your app.ancha.io workspace, or on your computer.",
|
|
6
6
|
"bugs": {
|