@ycodium-ai/agent-pi 0.2.4486 → 0.2.4688
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/dist/index.js +8 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as NodePath3 from "node:path";
|
|
|
4
4
|
import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
5
5
|
|
|
6
6
|
// ../../packages/plugin-api/src/version.ts
|
|
7
|
-
var PLUGIN_API_VERSION =
|
|
7
|
+
var PLUGIN_API_VERSION = 128;
|
|
8
8
|
|
|
9
9
|
// src/index.ts
|
|
10
10
|
import {
|
|
@@ -153,6 +153,7 @@ var PI_CARD = {
|
|
|
153
153
|
defaultModel: "",
|
|
154
154
|
customModelIdExample: "",
|
|
155
155
|
modelSlugAliases: null,
|
|
156
|
+
mcpToolCallCeilingSeconds: 300,
|
|
156
157
|
mcpTransports: ["stdio", "http"],
|
|
157
158
|
pluginManaged: true,
|
|
158
159
|
verifiedSkills: false,
|
|
@@ -199,7 +200,8 @@ var PI_CARD = {
|
|
|
199
200
|
"x-ycodium-form": {
|
|
200
201
|
titleKey: `form.${key}.title`,
|
|
201
202
|
descriptionKey: `form.${key}.description`,
|
|
202
|
-
...key === "binaryPath" ? { control: "executable-path" } : {}
|
|
203
|
+
...key === "binaryPath" ? { control: "executable-path" } : {},
|
|
204
|
+
...key === "homePath" ? { machineLocal: true } : {}
|
|
203
205
|
}
|
|
204
206
|
}
|
|
205
207
|
])
|
|
@@ -444,6 +446,7 @@ async function createLaunch(config, input, cursor) {
|
|
|
444
446
|
const servers = Object.fromEntries(
|
|
445
447
|
(input?.mcpServers ?? []).map((server) => {
|
|
446
448
|
const t = server.transport;
|
|
449
|
+
const timeout = server.toolTimeoutSeconds === void 0 ? {} : { timeout: server.toolTimeoutSeconds };
|
|
447
450
|
if (t.type === "sse") throw new Error("Pi does not support legacy SSE MCP servers.");
|
|
448
451
|
return [
|
|
449
452
|
server.name,
|
|
@@ -452,8 +455,9 @@ async function createLaunch(config, input, cursor) {
|
|
|
452
455
|
args: t.args ?? [],
|
|
453
456
|
env: t.env ?? {},
|
|
454
457
|
cwd: input?.cwd,
|
|
455
|
-
exposure: "deferred"
|
|
456
|
-
|
|
458
|
+
exposure: "deferred",
|
|
459
|
+
...timeout
|
|
460
|
+
} : { url: t.url, headers: t.headers ?? {}, exposure: "deferred", ...timeout }
|
|
457
461
|
];
|
|
458
462
|
})
|
|
459
463
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-pi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4688",
|
|
4
4
|
"description": "Pi executor over the native RPC protocol.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"vite-plus": "0.2.2",
|
|
33
33
|
"@ycodium/contracts": "0.0.33",
|
|
34
34
|
"ycodium-executor-testing": "0.0.0",
|
|
35
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
35
|
+
"@ycodium-ai/plugin-api": "0.2.4688"
|
|
36
36
|
},
|
|
37
37
|
"ycodium": {
|
|
38
38
|
"plugin": "./dist/index.js",
|