@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.d.cts CHANGED
@@ -307,6 +307,6 @@ declare class RuntimeHttpError extends Error {
307
307
  constructor(status: number, code: string, message: string);
308
308
  }
309
309
 
310
- declare const RUNTIME_VERSION = "0.5.4";
310
+ declare const RUNTIME_VERSION = "0.9.4";
311
311
 
312
312
  export { type CreateRuntimeOptions, type ErrorContext, type FileUploadContext, type MemoryWriteContext, RUNTIME_VERSION, type RcpManifestOptions, type ResolveUser, type RestToolManifestEntry, type RestToolsManifestOptions, type RunContext, type RunResult, type Runtime, type RuntimeBinaryResponse, type RuntimeBufferedResponse, type RuntimeCapabilities, type RuntimeHooks, RuntimeHttpError, type RuntimeMethod, type RuntimeRequest, type RuntimeResponse, type RuntimeStreamResponse, type RuntimeUploadedFile, type ThreadCreateContext, type ToolCallContext, type VoiceSessionCreateContext, createRuntime };
package/dist/index.d.ts CHANGED
@@ -307,6 +307,6 @@ declare class RuntimeHttpError extends Error {
307
307
  constructor(status: number, code: string, message: string);
308
308
  }
309
309
 
310
- declare const RUNTIME_VERSION = "0.5.4";
310
+ declare const RUNTIME_VERSION = "0.9.4";
311
311
 
312
312
  export { type CreateRuntimeOptions, type ErrorContext, type FileUploadContext, type MemoryWriteContext, RUNTIME_VERSION, type RcpManifestOptions, type ResolveUser, type RestToolManifestEntry, type RestToolsManifestOptions, type RunContext, type RunResult, type Runtime, type RuntimeBinaryResponse, type RuntimeBufferedResponse, type RuntimeCapabilities, type RuntimeHooks, RuntimeHttpError, type RuntimeMethod, type RuntimeRequest, type RuntimeResponse, type RuntimeStreamResponse, type RuntimeUploadedFile, type ThreadCreateContext, type ToolCallContext, type VoiceSessionCreateContext, createRuntime };
package/dist/index.js CHANGED
@@ -131,7 +131,7 @@ function evictStaleRuns(runs, now, graceMs = DEFAULT_RUN_GRACE_MS, maxTracked =
131
131
  }
132
132
 
133
133
  // src/version.ts
134
- var RUNTIME_VERSION = "0.5.4";
134
+ var RUNTIME_VERSION = "0.9.4";
135
135
 
136
136
  // src/routes/health.ts
137
137
  var alwaysOnCapabilities = {
@@ -837,6 +837,7 @@ var createAgent = async (request, ctx) => {
837
837
  socialLinks: body.socialLinks ?? void 0,
838
838
  modelName: typeof body.modelName === "string" ? body.modelName : void 0,
839
839
  webSearchEnabled: typeof body.webSearchEnabled === "boolean" ? body.webSearchEnabled : void 0,
840
+ sandboxEnabled: typeof body.sandboxEnabled === "boolean" ? body.sandboxEnabled : void 0,
840
841
  visibility: body.visibility,
841
842
  category: body.category,
842
843
  skills: Array.isArray(body.skills) ? body.skills : void 0,
@@ -1393,6 +1394,17 @@ function buildRoutes(capabilities) {
1393
1394
  method: "GET",
1394
1395
  pattern: ["agents", ":id", "mcp-connections"],
1395
1396
  handler: getAgentMcpConnections
1397
+ },
1398
+ // MCP App resources and widget tool calls — always on for conversational widgets.
1399
+ {
1400
+ method: "GET",
1401
+ pattern: ["mcps", ":id", "resource"],
1402
+ handler: readMcpResource
1403
+ },
1404
+ {
1405
+ method: "POST",
1406
+ pattern: ["mcps", ":id", "call-tool"],
1407
+ handler: callMcpTool
1396
1408
  }
1397
1409
  ];
1398
1410
  if (capabilities.agentsWrite) {
@@ -1413,9 +1425,7 @@ function buildRoutes(capabilities) {
1413
1425
  { method: "PATCH", pattern: ["mcps", ":id"], handler: updateMcp },
1414
1426
  { method: "DELETE", pattern: ["mcps", ":id"], handler: deleteMcp },
1415
1427
  { method: "GET", pattern: ["mcps", ":id", "usage"], handler: getMcpUsage },
1416
- { method: "POST", pattern: ["mcps", ":id", "test"], handler: testMcpConnection },
1417
- { method: "GET", pattern: ["mcps", ":id", "resource"], handler: readMcpResource },
1418
- { method: "POST", pattern: ["mcps", ":id", "call-tool"], handler: callMcpTool }
1428
+ { method: "POST", pattern: ["mcps", ":id", "test"], handler: testMcpConnection }
1419
1429
  );
1420
1430
  }
1421
1431
  if (capabilities.providers) {