trantor 0.18.154 → 0.18.155
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.18.
|
|
9
|
+
"version": "0.18.155"
|
|
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, GLM, 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.18.
|
|
16
|
+
"version": "0.18.155",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "Sasha Bogojevic"
|
|
19
19
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trantor",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.155",
|
|
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": {
|
package/bin/crew-runner.mjs
CHANGED
|
@@ -112,7 +112,7 @@ const DIR = RUNNER_ARGV[1] || process.cwd();
|
|
|
112
112
|
const PROJ = process.env.RELAY_PROJECT || runnerOption("project") || resolveProject(DIR);
|
|
113
113
|
let machineConfig = {};
|
|
114
114
|
try { machineConfig = JSON.parse(readFileSync(join(process.env.AGENT_BUS_DIR || process.env.RELAY_DATA_DIR || join(homedir(), ".agent-bus"), "config.json"), "utf8")); } catch {}
|
|
115
|
-
const MACHINE_LABEL = machineLabel(machineConfig);
|
|
115
|
+
const MACHINE_LABEL = machineLabel(machineConfig) || hostId();
|
|
116
116
|
|
|
117
117
|
function gitOut(args, cwd = DIR) {
|
|
118
118
|
const r = spawnSync("git", args, { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "pipe"], timeout: 8000 });
|
|
@@ -228,7 +228,7 @@ async function api(path, body) {
|
|
|
228
228
|
let payload;
|
|
229
229
|
if (body) {
|
|
230
230
|
payload = { ...body };
|
|
231
|
-
if (path === "/register") payload.machine = MACHINE_LABEL
|
|
231
|
+
if (path === "/register") payload.machine = MACHINE_LABEL;
|
|
232
232
|
}
|
|
233
233
|
const opts = body
|
|
234
234
|
? { method: "POST", headers: { "content-type": "application/json", connection: "close" }, body: JSON.stringify(payload) }
|
|
@@ -699,7 +699,7 @@ async function registerStatus(status, extra = {}) {
|
|
|
699
699
|
}
|
|
700
700
|
const url = HUB + "/register";
|
|
701
701
|
const payload = { session: SESSION, project: PROJ, status, persona: PERSONA, agent: AGENT, llm: AGENT, model: MODEL, ...extra };
|
|
702
|
-
payload.machine = MACHINE_LABEL
|
|
702
|
+
payload.machine = MACHINE_LABEL;
|
|
703
703
|
payload.accountIdentity = cachedAccountIdentity;
|
|
704
704
|
const body = JSON.stringify(payload);
|
|
705
705
|
try {
|
|
@@ -1064,7 +1064,7 @@ async function runTurn(prompt, isFirst, trigger = "kickoff", opts = {}) {
|
|
|
1064
1064
|
} : undefined;
|
|
1065
1065
|
const presencePayload = { session: SESSION, project: PROJ, status: `working · ${trigger}`, persona: PERSONA,
|
|
1066
1066
|
agent: AGENT, llm: AGENT, model: MODEL, kind: "agent", phase: "working", phaseSince: t0, card: sessionCard || 0 };
|
|
1067
|
-
presencePayload.machine = MACHINE_LABEL
|
|
1067
|
+
presencePayload.machine = MACHINE_LABEL;
|
|
1068
1068
|
presencePayload.accountIdentity = cachedAccountIdentity;
|
|
1069
1069
|
writeFileSync(STAMPF, JSON.stringify({ turn: TURN, startedAt: Date.now(), runner: RUNNER_ID, box: boxPlan, activity,
|
|
1070
1070
|
presence: { intervalMs: PRESENCE_MS, payload: presencePayload },
|
|
@@ -1379,7 +1379,7 @@ exit $turn_exit`;
|
|
|
1379
1379
|
provider: providerForModel(DRIVER, actualModel), model: actualModel,
|
|
1380
1380
|
effort: effortName(turnEffort.effort), harness: DRIVER,
|
|
1381
1381
|
taskKind: cardKind || "unknown", difficulty: cardDifficulty || "unknown",
|
|
1382
|
-
machine: MACHINE_LABEL
|
|
1382
|
+
machine: MACHINE_LABEL, start: new Date(t0).toISOString(), end: new Date(endedAt).toISOString(),
|
|
1383
1383
|
commit: newCommit ? headAfter : "", outcome: finalOutcome,
|
|
1384
1384
|
infraFailure: isInfraFailure(finalOutcome, failureReason), tokens: Number.isFinite(tokens) ? tokens : null,
|
|
1385
1385
|
};
|
|
@@ -1717,7 +1717,7 @@ async function resolveWakeCard(messages, { session }) {
|
|
|
1717
1717
|
if (pendingWake.length) log(`\x1b[33m${pendingWake.length} message(s) survived from a previous run — redelivering\x1b[0m`);
|
|
1718
1718
|
|
|
1719
1719
|
const worktreeStatus = createWorktreeStatusReporter({
|
|
1720
|
-
cwd: TURN_DIR, seat: PERSONA, project: PROJ, machine: MACHINE_LABEL
|
|
1720
|
+
cwd: TURN_DIR, seat: PERSONA, project: PROJ, machine: MACHINE_LABEL,
|
|
1721
1721
|
post: async status => {
|
|
1722
1722
|
const result = await api("/worktree-status", status);
|
|
1723
1723
|
if (!result?.ok) throw new Error(result?.error || "hub rejected snapshot");
|
|
@@ -1815,7 +1815,7 @@ async function resolveWakeCard(messages, { session }) {
|
|
|
1815
1815
|
// machineLabel, read at boot). One small signed POST every HEALTH_BEAT_MS; failures stay silent
|
|
1816
1816
|
// by the monitoring doctrine (state not event — a machine that stops beating reads stale on the
|
|
1817
1817
|
// hub, which IS the honest "unreachable" signal, not an error to alert on).
|
|
1818
|
-
if (machineConfig.healthHeartbeat === true &&
|
|
1818
|
+
if (machineConfig.healthHeartbeat === true && machineLabel(machineConfig)) {
|
|
1819
1819
|
// A throw while building the payload must never reach the process: an unhandled rejection
|
|
1820
1820
|
// here took a seat runner down on 0.18.131.
|
|
1821
1821
|
const beat = () => {
|
package/hub/routes/messages.mjs
CHANGED
|
@@ -2,6 +2,9 @@ import { sendMessage } from "../send-message.mjs";
|
|
|
2
2
|
import { routeContractTransfer } from "./contract-transfer.mjs";
|
|
3
3
|
import { setTimeout, setInterval, clearInterval } from "node:timers";
|
|
4
4
|
|
|
5
|
+
// #14765: a parked long poll is a live seat; refresh lastSeen while it waits, under the 90 s seat TTL.
|
|
6
|
+
const POLL_TOUCH_MS = Math.max(1000, Number(process.env.RELAY_POLL_TOUCH_MS) || 30_000);
|
|
7
|
+
|
|
5
8
|
export async function routeMessages({ req, res, q, P, auth, ctx }) {
|
|
6
9
|
if (await routeContractTransfer({ req, res, q, P, auth, ctx })) return true;
|
|
7
10
|
const { state, body, json, touch, markDelivered, contractsFor, CONTRACT_WINDOW_MS } = ctx;
|
|
@@ -81,11 +84,13 @@ function routeDelivery({ req, res, q, P, auth, ctx }) {
|
|
|
81
84
|
const waitMs = Math.min(Number(q.wait || 25), 290) * 1000; // allow long idle-park
|
|
82
85
|
const deadline = now() + waitMs;
|
|
83
86
|
let settled = false;
|
|
87
|
+
let touchedAt = now();
|
|
84
88
|
const tick = () => {
|
|
85
89
|
if (settled || res.headersSent || res.writableEnded || res.destroyed) {
|
|
86
90
|
settled = true;
|
|
87
91
|
return;
|
|
88
92
|
}
|
|
93
|
+
if (now() - touchedAt >= POLL_TOUCH_MS) { touchedAt = now(); touch(q.session, undefined, undefined, undefined, auth); }
|
|
89
94
|
const msgs = state.messages.filter(m => m.id > since && deliverable(m, q.session) && inboxReadable(auth, m, q.session));
|
|
90
95
|
if (msgs.length || now() >= deadline) { settled = true; touch(q.session, undefined, undefined, undefined, auth); const cursor = msgs.length ? msgs[msgs.length - 1].id : since; markDelivered(q.session, cursor); return json(res, 200, inboxResponse(auth, msgs, cursor)); }
|
|
91
96
|
setTimeout(tick, 300);
|
package/kimi.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trantor",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.155",
|
|
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). This manifest makes Kimi Code CLI a first-class ORCHESTRATOR, mirroring .claude-plugin/plugin.json. Hooks are the CANONICAL hooks/** executed through the kimi dialect bridge (kimi/bridge.mjs) — docs/KIMI-BRIDGE-CONTRACT.md.",
|
|
5
5
|
"interface": {
|
|
6
6
|
"displayName": "Trantor",
|