eve-hub 0.6.44 → 0.6.45

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.45
4
+
5
+ ### Patch Changes
6
+
7
+ - A Mac bot whose workspace setup is failing is out of the roster: a reply's @-mention, a schedule post and `agent_send` no longer wake it, and it is left out of the bots' team list. It comes back when setup works or its runner goes quiet.
8
+
3
9
  ## 0.6.44
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.44",
3
+ "version": "0.6.45",
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
@@ -20232,6 +20232,13 @@ var HOP_LIMIT = "(SELECT json_extract(metadata, '$.workspace.hopLimit') FROM wor
20232
20232
  var heldByHopLimit = (m) => `(${m}.author_kind = 'agent' AND ${HOP_LIMIT} IS NOT NULL AND ${m}.hop >= ${HOP_LIMIT})`;
20233
20233
  var ToolInfo = external_exports.object({ tools: external_exports.object({ static: external_exports.array(external_exports.object({ name: external_exports.string().min(1) })) }) });
20234
20234
 
20235
+ // ../../hosted-hub/src/store/mentionable.ts
20236
+ var NOW_MS = `(CAST(strftime('%s', 'now') AS INTEGER) * 1000)`;
20237
+ var inRoster = `NOT (runs_on = 'local' AND EXISTS (SELECT 1 FROM local_runner l, workspace_repo w
20238
+ WHERE l.id = 1 AND w.id = 1 AND l.setup_failed_commit = json_extract(w.metadata, '$.commit') AND l.setup_failed_until > ${NOW_MS}))`;
20239
+ var LEASE_LEFT = `SELECT l.setup_failed_until - ${NOW_MS} AS ms FROM local_runner l, workspace_repo w
20240
+ WHERE l.id = 1 AND w.id = 1 AND l.setup_failed_commit = json_extract(w.metadata, '$.commit') AND l.setup_failed_until > ${NOW_MS}`;
20241
+
20235
20242
  // ../../hosted-hub/src/store/schema.ts
20236
20243
  var OPEN_TURN_STATUSES = "('streaming','cancelling')";
20237
20244
 
@@ -27238,7 +27245,7 @@ function compactedSizeStatements(sessionId2, inputTokens) {
27238
27245
  var reportAfterStatements = (report, session, inputTokens, at, id) => reportLine(report, session, at, `${id}:after`, ([r, thread]) => afterLine(r, thread, inputTokens), `report_phase = 'compacted' AND completed_at IS NOT NULL AND after_tokens IS NULL`, null);
27239
27246
 
27240
27247
  // ../../hosted-hub/src/store/fold.ts
27241
- 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,
27248
+ 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 WHERE ${inRoster} ORDER BY position)) AS roster,
27242
27249
  (SELECT json_group_array(bot) FROM (${PARTICIPANTS("s.thread_id")})) AS participants,
27243
27250
  (SELECT d.message_id FROM deliveries d WHERE d.bot = s.bot AND d.held_at IS NOT NULL AND d.held_paused IS NOT 1 AND d.accepted_at IS NULL AND d.failed_at IS NULL AND d.revoked_at IS NULL ORDER BY d.rowid LIMIT 1) AS held,
27244
27251
  (SELECT json_object('person', person, 'names', json(names)) FROM human_notify) AS notify,