trantor 0.17.23 → 0.17.24

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.
@@ -6,14 +6,14 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "Trantor — the hub-world for AI agent crews: live message bus, presence, project Kanban/flow board + context-handoff for independent AI coding agents (Claude, Codex, Gemini, …)",
9
- "version": "0.17.23"
9
+ "version": "0.17.24"
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "trantor",
14
14
  "source": "./",
15
15
  "description": "The hub-world for AI agent crews. Say \"fire up the crew\" and Claude becomes the architect: a plan-aware Advisor routes the work (solo / cheap inline calls / live crew of Codex, Gemini, Kimi & DeepSeek in their own terminal windows), a Kanban/flow command center with a testing gate tracks it, and an economics brain (Scrooge) keeps the receipts. Includes the relay MCP, a SessionStart auto-discovery hook, and a PreCompact context-handoff so a fresh session can take over a full window instead of compacting.",
16
- "version": "0.17.23",
16
+ "version": "0.17.24",
17
17
  "author": {
18
18
  "name": "Sasha Bogojevic"
19
19
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trantor",
3
- "version": "0.17.23",
3
+ "version": "0.17.24",
4
4
  "description": "Trantor — the hub-world for AI agent crews: live message bus, presence, project Kanban/flow board + crew orchestration for independent AI coding agents (Claude, Codex, Gemini, Kimi, DeepSeek)",
5
5
  "mcpServers": {
6
6
  "relay": {
@@ -16,7 +16,7 @@ import { homedir, hostname } from "node:os";
16
16
  import { execSync, spawn } from "node:child_process";
17
17
  import { fileURLToPath } from "node:url";
18
18
 
19
- export const HANDOFF_DIR = join(homedir(), ".agent-bus", "handoffs");
19
+ export const HANDOFF_DIR = join(process.env.RELAY_DATA_DIR || join(homedir(), ".agent-bus"), "handoffs");
20
20
  const HERE = dirname(fileURLToPath(import.meta.url));
21
21
 
22
22
  export function readConfig() {
@@ -21,7 +21,17 @@ function loadPendingHandoff(projectName, { claim = true } = {}) {
21
21
  try {
22
22
  const dir = join(homedir(), ".agent-bus", "handoffs");
23
23
  if (!existsSync(dir)) return null;
24
- const files = readdirSync(dir).filter(f => f.startsWith(projectName + "-") && f.endsWith(".json")).sort().reverse();
24
+ // Match ONLY this project's handoffs: "<projectName>-<numeric stamp>.json".
25
+ // NOT a loose startsWith() — that also caught leaked test fixtures like
26
+ // "trantor-handoff-61385-….json" for project "trantor". And sort by the numeric
27
+ // stamp (newest first), NOT lexicographically — string sort ranks a letter prefix
28
+ // ("…-handoff-…") above a digit one, so it could pick a stale/wrong handoff.
29
+ const re = new RegExp("^" + projectName.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "-(\\d+)\\.json$");
30
+ const files = readdirSync(dir)
31
+ .map(f => { const m = re.exec(f); return m ? { f, stamp: Number(m[1]) } : null; })
32
+ .filter(Boolean)
33
+ .sort((a, b) => b.stamp - a.stamp)
34
+ .map(x => x.f);
25
35
  for (const f of files) {
26
36
  const p = join(dir, f);
27
37
  const rec = JSON.parse(readFileSync(p, "utf8"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trantor",
3
- "version": "0.17.23",
3
+ "version": "0.17.24",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "trantor": "bin/cli.mjs"