@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/dist/index.js CHANGED
@@ -126,7 +126,7 @@ function evictStaleRuns(runs, now, graceMs = DEFAULT_RUN_GRACE_MS, maxTracked =
126
126
  }
127
127
 
128
128
  // src/version.ts
129
- var RUNTIME_VERSION = "0.5.1";
129
+ var RUNTIME_VERSION = "0.5.2";
130
130
 
131
131
  // src/routes/health.ts
132
132
  var alwaysOnCapabilities = {
@@ -664,6 +664,13 @@ var listAgents = async (request, ctx) => {
664
664
  });
665
665
  return json(200, items);
666
666
  };
667
+ var getAgentMcpConnections = async (request, ctx) => {
668
+ const connections = await ctx.client.agents.getMcpConnections(
669
+ requireParam(ctx.params, "id"),
670
+ request.query.returnTo
671
+ );
672
+ return json(200, connections);
673
+ };
667
674
  var createAgent = async (request, ctx) => {
668
675
  const body = requireBodyObject(request.body);
669
676
  const input = {
@@ -1224,6 +1231,11 @@ function buildRoutes(capabilities) {
1224
1231
  method: "DELETE",
1225
1232
  pattern: ["mcps", ":id", "oauth", "owner", "connection"],
1226
1233
  handler: disconnectOwnerConnection
1234
+ },
1235
+ {
1236
+ method: "GET",
1237
+ pattern: ["agents", ":id", "mcp-connections"],
1238
+ handler: getAgentMcpConnections
1227
1239
  }
1228
1240
  ];
1229
1241
  if (capabilities.agentsWrite) {