@personaai/runtime 0.5.1 → 0.5.2
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/README.md +421 -416
- package/dist/index.cjs +13 -1
- 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 -1
- package/dist/index.js.map +1 -1
- package/package.json +71 -71
package/dist/index.cjs
CHANGED
|
@@ -154,7 +154,7 @@ function evictStaleRuns(runs, now, graceMs = DEFAULT_RUN_GRACE_MS, maxTracked =
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
// src/version.ts
|
|
157
|
-
var RUNTIME_VERSION = "0.5.
|
|
157
|
+
var RUNTIME_VERSION = "0.5.2";
|
|
158
158
|
|
|
159
159
|
// src/routes/health.ts
|
|
160
160
|
var alwaysOnCapabilities = {
|
|
@@ -692,6 +692,13 @@ var listAgents = async (request, ctx) => {
|
|
|
692
692
|
});
|
|
693
693
|
return json(200, items);
|
|
694
694
|
};
|
|
695
|
+
var getAgentMcpConnections = async (request, ctx) => {
|
|
696
|
+
const connections = await ctx.client.agents.getMcpConnections(
|
|
697
|
+
requireParam(ctx.params, "id"),
|
|
698
|
+
request.query.returnTo
|
|
699
|
+
);
|
|
700
|
+
return json(200, connections);
|
|
701
|
+
};
|
|
695
702
|
var createAgent = async (request, ctx) => {
|
|
696
703
|
const body = requireBodyObject(request.body);
|
|
697
704
|
const input = {
|
|
@@ -1252,6 +1259,11 @@ function buildRoutes(capabilities) {
|
|
|
1252
1259
|
method: "DELETE",
|
|
1253
1260
|
pattern: ["mcps", ":id", "oauth", "owner", "connection"],
|
|
1254
1261
|
handler: disconnectOwnerConnection
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
method: "GET",
|
|
1265
|
+
pattern: ["agents", ":id", "mcp-connections"],
|
|
1266
|
+
handler: getAgentMcpConnections
|
|
1255
1267
|
}
|
|
1256
1268
|
];
|
|
1257
1269
|
if (capabilities.agentsWrite) {
|