eve-hub 0.6.60 → 0.6.61

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # eve-hub
2
2
 
3
+ ## 0.6.61
4
+
5
+ ### Patch Changes
6
+
7
+ - Hosted hub: every database call has a deadline (a read that never answered held the feed for 4 minutes), and the rows Turso counts are metered per request and per hour with an owner alert; slow calls name their instance and statement.
8
+
3
9
  ## 0.6.60
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve-hub",
3
- "version": "0.6.60",
3
+ "version": "0.6.61",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Bot-side code shared by every hub agent: registry tools, the roster hook, the eve channel, the host sandbox and browser, and model helpers.",
6
6
  "type": "module",
package/world.mjs CHANGED
@@ -5,7 +5,7 @@ var __export = (target, all) => {
5
5
  };
6
6
 
7
7
  // ../../hosted-hub/bots/world.ts
8
- import { AsyncLocalStorage } from "node:async_hooks";
8
+ import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
9
9
  import { createVercelQueueWorld } from "eve/world-hub";
10
10
 
11
11
  // ../../hosted-hub/bots/session-codec.ts
@@ -414,8 +414,10 @@ function reduceChild(member, { type, data = {}, meta: meta4 }, at = Date.parse(m
414
414
  }
415
415
 
416
416
  // ../../hosted-hub/src/store/db.ts
417
+ import { AsyncLocalStorage } from "node:async_hooks";
417
418
  import { createClient, LibsqlError } from "@libsql/client";
418
419
  var s = (sql, ...args) => ({ sql, args });
420
+ var running = new AsyncLocalStorage();
419
421
 
420
422
  // ../../hosted-hub/node_modules/zod/v4/classic/external.js
421
423
  var external_exports = {};
@@ -27575,7 +27577,7 @@ async function foldAppend(tx, { runId, name, chunks, firstIndex }) {
27575
27577
  async function createWorld() {
27576
27578
  const url2 = process.env.TURSO_DATABASE_URL;
27577
27579
  if (!url2) throw new Error("TURSO_DATABASE_URL is required");
27578
- const appends = new AsyncLocalStorage();
27580
+ const appends = new AsyncLocalStorage2();
27579
27581
  const authToken = process.env.TURSO_AUTH_TOKEN;
27580
27582
  const storage = createTursoWorld({
27581
27583
  url: url2,