@clawos-dev/pi-mcp-bridge 0.2.739 → 0.2.740
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/extension.cjs +6 -1
- package/package.json +1 -1
package/extension.cjs
CHANGED
|
@@ -16383,6 +16383,10 @@ function loadMcpServerDefs(args) {
|
|
|
16383
16383
|
return out;
|
|
16384
16384
|
}
|
|
16385
16385
|
|
|
16386
|
+
// src/a2a/limits.ts
|
|
16387
|
+
var A2A_MCP_SERVER_NAME = "clawd-a2a";
|
|
16388
|
+
var A2A_MCP_CALL_TIMEOUT_MS = 2 * 60 * 6e4 + 6e4;
|
|
16389
|
+
|
|
16386
16390
|
// src/pi-mcp-bridge/bridge.ts
|
|
16387
16391
|
var PI_MCP_CONFIGS_ENV = "CLAWD_PI_MCP_CONFIGS";
|
|
16388
16392
|
function piToolName(server, tool) {
|
|
@@ -16540,7 +16544,8 @@ var ServerLink = class {
|
|
|
16540
16544
|
const argsObj = args && typeof args === "object" && !Array.isArray(args) ? args : {};
|
|
16541
16545
|
const result = await client.callTool({ name, arguments: argsObj }, void 0, {
|
|
16542
16546
|
signal,
|
|
16543
|
-
|
|
16547
|
+
// a2aWait 一次调用可以等到 2 小时(a2a/limits.ts)
|
|
16548
|
+
timeout: this.def.name === A2A_MCP_SERVER_NAME ? Math.max(this.opts.callTimeoutMs, A2A_MCP_CALL_TIMEOUT_MS) : this.opts.callTimeoutMs,
|
|
16544
16549
|
resetTimeoutOnProgress: true
|
|
16545
16550
|
});
|
|
16546
16551
|
return result;
|
package/package.json
CHANGED