@ancha-labs/cli 0.4.36 → 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 +9490 -8945
- package/lib/assets/docs/cloud.md +25 -0
- package/lib/assets/docs/tools.md +1 -1
- package/lib/assets/harbor/companion.mjs +305 -188
- package/lib/assets/ui/app.js +1 -1
- package/lib/mcp-entry.mjs +3 -0
- package/lib/worker.mjs +167102 -166604
- package/lib/world-server.mjs +5 -2
- package/package.json +1 -1
package/lib/world-server.mjs
CHANGED
|
@@ -91899,6 +91899,9 @@ function toErrorJson(e) {
|
|
|
91899
91899
|
return { code: "INTERNAL", message: e instanceof Error ? e.message : String(e) };
|
|
91900
91900
|
}
|
|
91901
91901
|
|
|
91902
|
+
// packages/core/src/agent-routes.ts
|
|
91903
|
+
var agentRoutesSchema = external_exports.strictObject({ quickbooks: external_exports.literal("composio").optional() });
|
|
91904
|
+
|
|
91902
91905
|
// packages/core/src/execution-support.ts
|
|
91903
91906
|
var all = { local: true, container: true, managed: true, "cloud-vm": true };
|
|
91904
91907
|
var sceneOnly = { local: true, container: true, managed: false, "cloud-vm": true };
|
|
@@ -106734,7 +106737,7 @@ function parseSceneYaml(text25) {
|
|
|
106734
106737
|
// packages/core/src/tool-call-trace.ts
|
|
106735
106738
|
function projectToolCalls(trace2) {
|
|
106736
106739
|
const completed = new Map(trace2.filter((e) => e.toolEvent?.kind === "completion").map((e) => [e.toolEvent.call_id, e]));
|
|
106737
|
-
return trace2.filter((e) => e.toolEvent?.kind !== "completion" && !(e.service === "tools" && (e.path === "/register" || e.path === "/calls/complete"))).map((entry2) => {
|
|
106740
|
+
return trace2.filter((e) => !e.routeEvent && e.toolEvent?.kind !== "completion" && !(e.service === "tools" && (e.path === "/register" || e.path === "/calls/complete"))).map((entry2) => {
|
|
106738
106741
|
if (entry2.service !== "tools" || !entry2.path.startsWith("/tools/")) return entry2;
|
|
106739
106742
|
const response6 = entry2.response;
|
|
106740
106743
|
if (!response6 || !response6.passthrough || entry2.completion || response6.execution_status === "succeeded" || response6.execution_status === "failed") return entry2;
|
|
@@ -182481,7 +182484,7 @@ function wantsJson(accept) {
|
|
|
182481
182484
|
if (media2 === "application/json") json37 = Math.max(json37, Number.isFinite(q) ? q : 0);
|
|
182482
182485
|
if (["application/xml", "text/xml"].includes(media2)) xml2 = Math.max(xml2, Number.isFinite(q) ? q : 0);
|
|
182483
182486
|
}
|
|
182484
|
-
return
|
|
182487
|
+
return !(xml2 > 0 && xml2 > json37);
|
|
182485
182488
|
}
|
|
182486
182489
|
function xmlElement(name5, value5, type = name5) {
|
|
182487
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": {
|