trantor 0.17.95 → 0.17.96
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/.claude-plugin/plugin.json +1 -1
- package/hub.mjs +19 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trantor",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.96",
|
|
4
4
|
"description": "Trantor \u2014 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/hub.mjs
CHANGED
|
@@ -2266,6 +2266,25 @@ const server = http.createServer(async (req, res) => {
|
|
|
2266
2266
|
// outcome: strictly by `re`, or, for seats that predate it, oldest-open-first. Broadcasts are
|
|
2267
2267
|
// never contracts. Each open one carries the assignee's presence, because the actionable half
|
|
2268
2268
|
// of "still waiting" is whether anyone is still on the other end.
|
|
2269
|
+
// ---- /delivered: an endpoint that has actually READ its mail says so ----------------------
|
|
2270
|
+
// The desktop app lists with peek=1 on purpose, so it never steals a message from a session's
|
|
2271
|
+
// delivery hooks. For a HUMAN endpoint there are no hooks — the app is the only reader — so
|
|
2272
|
+
// sasha@mac's deliveredUpTo sat at 0 forever while mail piled up. dutyTick then escalated every
|
|
2273
|
+
// message the human had already read, told the duty seat about it, the seat messaged the human,
|
|
2274
|
+
// and that was undelivered too: about six escalations a minute, all about mail already read.
|
|
2275
|
+
// Peeking stays the default; this lets a reader record delivery explicitly instead.
|
|
2276
|
+
if (req.method === "POST" && P === "/delivered") {
|
|
2277
|
+
const b = await body(req);
|
|
2278
|
+
const session = String(b.session || "");
|
|
2279
|
+
if (!session) return json(res, 400, { error: "session required" });
|
|
2280
|
+
if (auth?.identity && String(auth.identity.name || "") !== session) {
|
|
2281
|
+
return json(res, 403, { error: "session must match signer" });
|
|
2282
|
+
}
|
|
2283
|
+
touch(session, undefined, undefined, undefined, auth);
|
|
2284
|
+
markDelivered(session, Number(b.upTo || 0));
|
|
2285
|
+
return json(res, 200, { ok: true, deliveredUpTo: state.peers[session]?.deliveredUpTo || 0 });
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2269
2288
|
if (req.method === "GET" && P === "/contracts") {
|
|
2270
2289
|
const session = String(q.session || "");
|
|
2271
2290
|
if (!session) return json(res, 400, { error: "session required" });
|