@personaai/runtime 0.5.3 → 0.6.0
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 +1 -0
- package/dist/index.cjs +6 -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 +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -246,6 +246,6 @@ declare class RuntimeHttpError extends Error {
|
|
|
246
246
|
constructor(status: number, code: string, message: string);
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
declare const RUNTIME_VERSION = "0.5.
|
|
249
|
+
declare const RUNTIME_VERSION = "0.5.4";
|
|
250
250
|
|
|
251
251
|
export { type CreateRuntimeOptions, type ErrorContext, type FileUploadContext, type MemoryWriteContext, RUNTIME_VERSION, type ResolveUser, 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, createRuntime };
|
package/dist/index.d.ts
CHANGED
|
@@ -246,6 +246,6 @@ declare class RuntimeHttpError extends Error {
|
|
|
246
246
|
constructor(status: number, code: string, message: string);
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
declare const RUNTIME_VERSION = "0.5.
|
|
249
|
+
declare const RUNTIME_VERSION = "0.5.4";
|
|
250
250
|
|
|
251
251
|
export { type CreateRuntimeOptions, type ErrorContext, type FileUploadContext, type MemoryWriteContext, RUNTIME_VERSION, type ResolveUser, 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, 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.
|
|
134
|
+
var RUNTIME_VERSION = "0.5.4";
|
|
135
135
|
|
|
136
136
|
// src/routes/health.ts
|
|
137
137
|
var alwaysOnCapabilities = {
|
|
@@ -710,6 +710,10 @@ var getThreadMessages = async (_request, ctx) => {
|
|
|
710
710
|
const messages = await ctx.client.threads.getMessages(requireParam(ctx.params, "id"));
|
|
711
711
|
return json(200, messages);
|
|
712
712
|
};
|
|
713
|
+
var resetThread = async (_request, ctx) => {
|
|
714
|
+
const thread = await ctx.client.threads.reset(requireParam(ctx.params, "id"));
|
|
715
|
+
return json(200, thread);
|
|
716
|
+
};
|
|
713
717
|
|
|
714
718
|
// src/routes/agents.ts
|
|
715
719
|
var listAgents = async (request, ctx) => {
|
|
@@ -1251,6 +1255,7 @@ function buildRoutes(capabilities) {
|
|
|
1251
1255
|
{ method: "PATCH", pattern: ["threads", ":id"], handler: updateThread },
|
|
1252
1256
|
{ method: "DELETE", pattern: ["threads", ":id"], handler: deleteThread },
|
|
1253
1257
|
{ method: "GET", pattern: ["threads", ":id", "messages"], handler: getThreadMessages },
|
|
1258
|
+
{ method: "POST", pattern: ["threads", ":id", "reset"], handler: resetThread },
|
|
1254
1259
|
// Agents — read-only discovery always on; write ops behind agentsWrite.
|
|
1255
1260
|
{ method: "GET", pattern: ["agents"], handler: listAgents },
|
|
1256
1261
|
// Files — always on, end-user-scoped uploads.
|