@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.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.
|
|
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.
|
|
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.
|
|
134
|
+
var RUNTIME_VERSION = "0.9.4";
|
|
135
135
|
|
|
136
136
|
// src/routes/health.ts
|
|
137
137
|
var alwaysOnCapabilities = {
|
|
@@ -1393,6 +1393,17 @@ function buildRoutes(capabilities) {
|
|
|
1393
1393
|
method: "GET",
|
|
1394
1394
|
pattern: ["agents", ":id", "mcp-connections"],
|
|
1395
1395
|
handler: getAgentMcpConnections
|
|
1396
|
+
},
|
|
1397
|
+
// MCP App resources and widget tool calls — always on for conversational widgets.
|
|
1398
|
+
{
|
|
1399
|
+
method: "GET",
|
|
1400
|
+
pattern: ["mcps", ":id", "resource"],
|
|
1401
|
+
handler: readMcpResource
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
method: "POST",
|
|
1405
|
+
pattern: ["mcps", ":id", "call-tool"],
|
|
1406
|
+
handler: callMcpTool
|
|
1396
1407
|
}
|
|
1397
1408
|
];
|
|
1398
1409
|
if (capabilities.agentsWrite) {
|
|
@@ -1413,9 +1424,7 @@ function buildRoutes(capabilities) {
|
|
|
1413
1424
|
{ method: "PATCH", pattern: ["mcps", ":id"], handler: updateMcp },
|
|
1414
1425
|
{ method: "DELETE", pattern: ["mcps", ":id"], handler: deleteMcp },
|
|
1415
1426
|
{ 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 }
|
|
1427
|
+
{ method: "POST", pattern: ["mcps", ":id", "test"], handler: testMcpConnection }
|
|
1419
1428
|
);
|
|
1420
1429
|
}
|
|
1421
1430
|
if (capabilities.providers) {
|