@standardagents/builder 0.9.10 → 0.9.12
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/built-in-routes.js +0 -23
- package/dist/built-in-routes.js.map +1 -1
- package/dist/client/assets/index.css +1 -1
- package/dist/client/index.js +18 -18
- package/dist/client/vue.js +1 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1286,11 +1286,6 @@ declare class DurableAgentBuilder<Env extends AgentBuilderEnv = AgentBuilderEnv>
|
|
|
1286
1286
|
* Delete a thread from the registry.
|
|
1287
1287
|
*/
|
|
1288
1288
|
deleteThread(id: string): Promise<boolean>;
|
|
1289
|
-
/**
|
|
1290
|
-
* Delete all threads from the registry.
|
|
1291
|
-
* Useful for clearing test data between test runs.
|
|
1292
|
-
*/
|
|
1293
|
-
deleteAllThreads(): Promise<number>;
|
|
1294
1289
|
/**
|
|
1295
1290
|
* Update a thread's agent_name (used during agent handoff).
|
|
1296
1291
|
*/
|
package/dist/index.js
CHANGED
|
@@ -9579,19 +9579,6 @@ var DurableAgentBuilder = class extends DurableObject {
|
|
|
9579
9579
|
this.broadcastEvent({ type: "thread_deleted", threadId: id });
|
|
9580
9580
|
return true;
|
|
9581
9581
|
}
|
|
9582
|
-
/**
|
|
9583
|
-
* Delete all threads from the registry.
|
|
9584
|
-
* Useful for clearing test data between test runs.
|
|
9585
|
-
*/
|
|
9586
|
-
async deleteAllThreads() {
|
|
9587
|
-
await this.ensureMigrated();
|
|
9588
|
-
const countCursor = await this.ctx.storage.sql.exec(
|
|
9589
|
-
`SELECT COUNT(*) as count FROM threads`
|
|
9590
|
-
);
|
|
9591
|
-
const count = countCursor.one().count;
|
|
9592
|
-
await this.ctx.storage.sql.exec(`DELETE FROM threads`);
|
|
9593
|
-
return count;
|
|
9594
|
-
}
|
|
9595
9582
|
/**
|
|
9596
9583
|
* Update a thread's agent_name (used during agent handoff).
|
|
9597
9584
|
*/
|