@personaai/runtime 0.9.3 → 0.9.4
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.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -159,7 +159,7 @@ function evictStaleRuns(runs, now, graceMs = DEFAULT_RUN_GRACE_MS, maxTracked =
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
// src/version.ts
|
|
162
|
-
var RUNTIME_VERSION = "0.
|
|
162
|
+
var RUNTIME_VERSION = "0.9.4";
|
|
163
163
|
|
|
164
164
|
// src/routes/health.ts
|
|
165
165
|
var alwaysOnCapabilities = {
|
|
@@ -1421,6 +1421,17 @@ function buildRoutes(capabilities) {
|
|
|
1421
1421
|
method: "GET",
|
|
1422
1422
|
pattern: ["agents", ":id", "mcp-connections"],
|
|
1423
1423
|
handler: getAgentMcpConnections
|
|
1424
|
+
},
|
|
1425
|
+
// MCP App resources and widget tool calls — always on for conversational widgets.
|
|
1426
|
+
{
|
|
1427
|
+
method: "GET",
|
|
1428
|
+
pattern: ["mcps", ":id", "resource"],
|
|
1429
|
+
handler: readMcpResource
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
method: "POST",
|
|
1433
|
+
pattern: ["mcps", ":id", "call-tool"],
|
|
1434
|
+
handler: callMcpTool
|
|
1424
1435
|
}
|
|
1425
1436
|
];
|
|
1426
1437
|
if (capabilities.agentsWrite) {
|
|
@@ -1441,9 +1452,7 @@ function buildRoutes(capabilities) {
|
|
|
1441
1452
|
{ method: "PATCH", pattern: ["mcps", ":id"], handler: updateMcp },
|
|
1442
1453
|
{ method: "DELETE", pattern: ["mcps", ":id"], handler: deleteMcp },
|
|
1443
1454
|
{ method: "GET", pattern: ["mcps", ":id", "usage"], handler: getMcpUsage },
|
|
1444
|
-
{ method: "POST", pattern: ["mcps", ":id", "test"], handler: testMcpConnection }
|
|
1445
|
-
{ method: "GET", pattern: ["mcps", ":id", "resource"], handler: readMcpResource },
|
|
1446
|
-
{ method: "POST", pattern: ["mcps", ":id", "call-tool"], handler: callMcpTool }
|
|
1455
|
+
{ method: "POST", pattern: ["mcps", ":id", "test"], handler: testMcpConnection }
|
|
1447
1456
|
);
|
|
1448
1457
|
}
|
|
1449
1458
|
if (capabilities.providers) {
|