eve-hub 0.6.14 → 0.6.16

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.16
4
+
5
+ ### Patch Changes
6
+
7
+ - d307c89: Memory entries accept the hosted hub's uppercase thread and message ids as evidence, so a workspace that cites them deploys.
8
+
9
+ ## 0.6.15
10
+
11
+ ### Patch Changes
12
+
13
+ - Hosted bots report a message a turn took as `seen`, not `delivered`, and a request parked on the session still holds a message it parked before.
14
+
3
15
  ## 0.6.14
4
16
 
5
17
  ### Patch Changes
package/memory.mjs CHANGED
@@ -35,7 +35,7 @@ import { isWorkspace, readWorkspaceFile } from "./workspace.mjs";
35
35
  export const MEMORY_DIR = "memory";
36
36
  export const MAX_RULE_LINES = 3;
37
37
  export const ID = /^[a-z][a-z0-9-]{1,60}$/;
38
- const EVIDENCE = /^(thr_[0-9a-z]+\/)?msg_[0-9a-z]+$/;
38
+ const EVIDENCE = /^(thr_[0-9A-Za-z]+\/)?msg_[0-9A-Za-z]+$/;
39
39
  const DATE = /^\d{4}-\d{2}-\d{2}$/;
40
40
  const STATUSES = new Set(["active", "superseded"]);
41
41
  const KEYS = new Set(["id", "status", "since", "evidence", "superseded_by"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eve-hub",
3
- "version": "0.6.14",
3
+ "version": "0.6.16",
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
@@ -26943,6 +26943,13 @@ var SESSION_WORK_DELIVERY = `busy.accepted_at IS NOT NULL AND busy.failed_at IS
26943
26943
  WHERE td.delivery_id = busy.id AND t.status NOT IN ('streaming','cancelling'))`;
26944
26944
  var SESSION_BUSY = `s.ended_at IS NULL AND EXISTS (SELECT 1 FROM deliveries busy
26945
26945
  WHERE busy.session_id = s.id AND ${SESSION_WORK_DELIVERY})`;
26946
+ var LINKED = "EXISTS (SELECT 1 FROM turn_deliveries td WHERE td.delivery_id = d.id)";
26947
+ var DELIVERY_STATUS = `CASE WHEN d.accepted_at IS NOT NULL OR ${LINKED} THEN COALESCE((SELECT 'waiting: on your answer to its ' || r.kind || ' request'
26948
+ FROM input_requests r JOIN sessions rs ON rs.id = r.session_id
26949
+ WHERE r.session_id = d.session_id AND r.status = 'pending' AND rs.ended_at IS NULL
26950
+ AND r.created_at <= COALESCE((SELECT t.started_at FROM turn_deliveries td JOIN turns t ON t.id = td.turn_id WHERE td.delivery_id = d.id), d.accepted_at) LIMIT 1),
26951
+ CASE WHEN ${LINKED} THEN 'seen' ELSE 'delivered' END)
26952
+ WHEN d.failed_at IS NOT NULL THEN 'failed' WHEN d.revoked_at IS NOT NULL THEN 'skipped' ELSE 'pending' END`;
26946
26953
 
26947
26954
  // ../../hosted-hub/src/store/fold.ts
26948
26955
  var FOLD_STATE_SQL = `SELECT s.id, s.thread_id, s.bot, COALESCE(f.folded_index, -1) AS folded_index, (SELECT json_group_array(name) FROM (SELECT name FROM bots ORDER BY position)) AS roster,