@personaai/runtime 0.9.3 → 0.9.5
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 +14 -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 +14 -4
- package/dist/index.js.map +1 -1
- package/package.json +72 -72
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 = {
|
|
@@ -865,6 +865,7 @@ var createAgent = async (request, ctx) => {
|
|
|
865
865
|
socialLinks: body.socialLinks ?? void 0,
|
|
866
866
|
modelName: typeof body.modelName === "string" ? body.modelName : void 0,
|
|
867
867
|
webSearchEnabled: typeof body.webSearchEnabled === "boolean" ? body.webSearchEnabled : void 0,
|
|
868
|
+
sandboxEnabled: typeof body.sandboxEnabled === "boolean" ? body.sandboxEnabled : void 0,
|
|
868
869
|
visibility: body.visibility,
|
|
869
870
|
category: body.category,
|
|
870
871
|
skills: Array.isArray(body.skills) ? body.skills : void 0,
|
|
@@ -1421,6 +1422,17 @@ function buildRoutes(capabilities) {
|
|
|
1421
1422
|
method: "GET",
|
|
1422
1423
|
pattern: ["agents", ":id", "mcp-connections"],
|
|
1423
1424
|
handler: getAgentMcpConnections
|
|
1425
|
+
},
|
|
1426
|
+
// MCP App resources and widget tool calls — always on for conversational widgets.
|
|
1427
|
+
{
|
|
1428
|
+
method: "GET",
|
|
1429
|
+
pattern: ["mcps", ":id", "resource"],
|
|
1430
|
+
handler: readMcpResource
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
method: "POST",
|
|
1434
|
+
pattern: ["mcps", ":id", "call-tool"],
|
|
1435
|
+
handler: callMcpTool
|
|
1424
1436
|
}
|
|
1425
1437
|
];
|
|
1426
1438
|
if (capabilities.agentsWrite) {
|
|
@@ -1441,9 +1453,7 @@ function buildRoutes(capabilities) {
|
|
|
1441
1453
|
{ method: "PATCH", pattern: ["mcps", ":id"], handler: updateMcp },
|
|
1442
1454
|
{ method: "DELETE", pattern: ["mcps", ":id"], handler: deleteMcp },
|
|
1443
1455
|
{ 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 }
|
|
1456
|
+
{ method: "POST", pattern: ["mcps", ":id", "test"], handler: testMcpConnection }
|
|
1447
1457
|
);
|
|
1448
1458
|
}
|
|
1449
1459
|
if (capabilities.providers) {
|