@standardagents/builder 0.21.0 → 0.21.1
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 +51 -0
- package/dist/built-in-routes.js.map +1 -1
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +1 -0
- package/dist/plugin.js.map +1 -1
- package/dist/runtime.d.ts +9 -0
- package/dist/runtime.js +18 -0
- package/dist/runtime.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -20168,6 +20168,7 @@ const PUBLIC_ROUTES = [
|
|
|
20168
20168
|
'/api/auth/bootstrap',
|
|
20169
20169
|
'/api/auth/login',
|
|
20170
20170
|
'/api/auth/config',
|
|
20171
|
+
'/api/auth/platform-cleanup',
|
|
20171
20172
|
'/api/auth/platform-replica',
|
|
20172
20173
|
'/api/auth/sa/start', // Login with Standard Agents (OAuth) \u2014 unauthenticated entry
|
|
20173
20174
|
'/api/auth/sa/callback', // OAuth callback (sets the session cookie)
|
|
@@ -28579,6 +28580,24 @@ ${result ?? error ?? "No result content."}${attachmentSummary}`;
|
|
|
28579
28580
|
this.broadcastEvent({ type: "thread_deleted", threadId: id });
|
|
28580
28581
|
return true;
|
|
28581
28582
|
}
|
|
28583
|
+
/**
|
|
28584
|
+
* Delete all singleton AgentBuilder storage for platform-owned teardown.
|
|
28585
|
+
* Used when the hosting platform expires a preview branch deployment after
|
|
28586
|
+
* all thread Durable Objects have already been wiped.
|
|
28587
|
+
*/
|
|
28588
|
+
async deleteAllStorage() {
|
|
28589
|
+
for (const ws of Array.from(this.eventSockets)) {
|
|
28590
|
+
try {
|
|
28591
|
+
ws.close(1e3, "Instance deleted");
|
|
28592
|
+
} catch {
|
|
28593
|
+
}
|
|
28594
|
+
}
|
|
28595
|
+
this.eventSockets.clear();
|
|
28596
|
+
await this.ctx.storage.deleteAlarm();
|
|
28597
|
+
await this.ctx.storage.deleteAll();
|
|
28598
|
+
this.migratedToVersion = null;
|
|
28599
|
+
return { success: true, message: "AgentBuilder storage completely deleted" };
|
|
28600
|
+
}
|
|
28582
28601
|
/**
|
|
28583
28602
|
* Get a thread tree (root + all descendants) in child-first order.
|
|
28584
28603
|
*
|