eve-hub 0.6.60 → 0.6.62

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,17 @@
1
1
  # eve-hub
2
2
 
3
+ ## 0.6.62
4
+
5
+ ### Patch Changes
6
+
7
+ - Hosted hub: a notification in the state frame carries the first 2 KB of its text (one reply of 328,000 characters was in every client's frame).
8
+
9
+ ## 0.6.61
10
+
11
+ ### Patch Changes
12
+
13
+ - 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.
14
+
3
15
  ## 0.6.60
4
16
 
5
17
  ### 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.62",
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 = {};
@@ -26896,7 +26898,7 @@ var HubNotification = object2({
26896
26898
  id: string5(),
26897
26899
  to: string5(),
26898
26900
  from: string5(),
26899
- text: string5(),
26901
+ text: string5().describe("A preview: at most 2,048 characters of the message, cut with an ellipsis. The message in its thread is whole."),
26900
26902
  threadId: string5(),
26901
26903
  messageId: maybe(string5()),
26902
26904
  requestId: maybe(string5()),
@@ -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,