@centralu/host-win32-x64 0.1.0-beta.65 → 0.1.0-beta.66
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/host/bundle-info.json +2 -2
- package/host/centralu-package.json +5 -5
- package/host/main.mjs +132 -21
- package/package.json +1 -1
package/host/bundle-info.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
2
|
+
"commit": "617c696",
|
|
3
3
|
"protocolVersion": 1,
|
|
4
4
|
"hostProof": 1,
|
|
5
5
|
"tokenOnStdin": 1,
|
|
6
6
|
"verifiers": 1,
|
|
7
7
|
"keyPairing": 1,
|
|
8
|
-
"builtAt": "2026-11-
|
|
8
|
+
"builtAt": "2026-11-13T16:32:50.688Z",
|
|
9
9
|
"runtime": "system-node",
|
|
10
10
|
"platform": "win32",
|
|
11
11
|
"arch": "x64"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "centralu",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.66",
|
|
4
4
|
"description": "Run, watch and steer several Claude Code and Codex CLI sessions from one window",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ijun17",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"win32"
|
|
39
39
|
],
|
|
40
40
|
"optionalDependencies": {
|
|
41
|
-
"@centralu/darwin-arm64": "0.1.0-beta.
|
|
42
|
-
"@centralu/linux-arm64": "0.1.0-beta.
|
|
43
|
-
"@centralu/linux-x64": "0.1.0-beta.
|
|
44
|
-
"@centralu/win32-x64": "0.1.0-beta.
|
|
41
|
+
"@centralu/darwin-arm64": "0.1.0-beta.66",
|
|
42
|
+
"@centralu/linux-arm64": "0.1.0-beta.66",
|
|
43
|
+
"@centralu/linux-x64": "0.1.0-beta.66",
|
|
44
|
+
"@centralu/win32-x64": "0.1.0-beta.66"
|
|
45
45
|
}
|
|
46
46
|
}
|
package/host/main.mjs
CHANGED
|
@@ -43046,7 +43046,7 @@ import { dirname as dirname27, join as join58 } from "node:path";
|
|
|
43046
43046
|
import { mkdirSync as mkdirSync21, readFileSync as readFileSync27, writeSync as writeSync4 } from "node:fs";
|
|
43047
43047
|
|
|
43048
43048
|
// packages/protocol/src/version.generated.ts
|
|
43049
|
-
var APP_VERSION = "0.1.0-beta.
|
|
43049
|
+
var APP_VERSION = "0.1.0-beta.66";
|
|
43050
43050
|
|
|
43051
43051
|
// packages/protocol/src/brand.ts
|
|
43052
43052
|
var APP_NAME = "Centralu";
|
|
@@ -135477,6 +135477,7 @@ function launchedThreads(n) {
|
|
|
135477
135477
|
if (str(item.type) !== "collabAgentToolCall" || str(item.tool) !== "spawnAgent" || !codexItemOk(item)) return [];
|
|
135478
135478
|
return (Array.isArray(item.receiverThreadIds) ? item.receiverThreadIds : []).filter((t) => typeof t === "string" && t !== "");
|
|
135479
135479
|
}
|
|
135480
|
+
var GOAL_ID = "goal";
|
|
135480
135481
|
var CodexChildTracker = class {
|
|
135481
135482
|
constructor(sessionId) {
|
|
135482
135483
|
this.sessionId = sessionId;
|
|
@@ -135498,6 +135499,12 @@ var CodexChildTracker = class {
|
|
|
135498
135499
|
held = /* @__PURE__ */ new Map();
|
|
135499
135500
|
/** Children whose turn already ended, so a launch result arriving after that is not held (the latest few) */
|
|
135500
135501
|
done = [];
|
|
135502
|
+
/** The session's own commands started and not completed, by item id; `kept` once a turn ended with it running (#2027) */
|
|
135503
|
+
commands = /* @__PURE__ */ new Map();
|
|
135504
|
+
/** The objective of the thread's goal while it is active (#2027) */
|
|
135505
|
+
goal = null;
|
|
135506
|
+
/** Whether the active goal is left idle by a stopped turn: not listed until Codex says more of it or a turn starts */
|
|
135507
|
+
goalStopped = false;
|
|
135501
135508
|
/** A launch call's result, held while the children it started run; false when it goes out now (none still runs) */
|
|
135502
135509
|
hold(result, threads) {
|
|
135503
135510
|
const running2 = threads.filter((t) => !this.done.includes(t));
|
|
@@ -135553,13 +135560,54 @@ var CodexChildTracker = class {
|
|
|
135553
135560
|
}
|
|
135554
135561
|
return [];
|
|
135555
135562
|
}
|
|
135563
|
+
/** A notification of the session's own thread: the commands and the goal it keeps past a turn (#2027) */
|
|
135564
|
+
own(n) {
|
|
135565
|
+
const p = asObj(n.params);
|
|
135566
|
+
if (n.method === "item/started" || n.method === "item/completed") {
|
|
135567
|
+
const item = asObj(p.item);
|
|
135568
|
+
const id3 = str(item.id);
|
|
135569
|
+
if (str(item.type) !== "commandExecution" || !id3) return [];
|
|
135570
|
+
if (n.method === "item/started") {
|
|
135571
|
+
if (!this.commands.has(id3)) this.commands.set(id3, { command: str(item.command), kept: false });
|
|
135572
|
+
return [];
|
|
135573
|
+
}
|
|
135574
|
+
const c = this.commands.get(id3);
|
|
135575
|
+
this.commands.delete(id3);
|
|
135576
|
+
return c?.kept ? this.changed([{ ...this.keptTask(id3, c.command), status: codexItemOk(item) ? "completed" : "failed" }]) : [];
|
|
135577
|
+
}
|
|
135578
|
+
if (n.method === "turn/started" && this.goalStopped) {
|
|
135579
|
+
this.goalStopped = false;
|
|
135580
|
+
return this.changed();
|
|
135581
|
+
}
|
|
135582
|
+
if (n.method === "turn/completed") {
|
|
135583
|
+
const open6 = [...this.commands.values()].filter((c) => !c.kept);
|
|
135584
|
+
for (const c of open6) c.kept = true;
|
|
135585
|
+
const stopped = this.goal !== null && !this.goalStopped && str(asObj(p.turn).status) === "interrupted";
|
|
135586
|
+
if (stopped) this.goalStopped = true;
|
|
135587
|
+
return open6.length > 0 || stopped ? this.changed() : [];
|
|
135588
|
+
}
|
|
135589
|
+
if (n.method === "thread/goal/updated") return this.goalIs(goalFromCodex(asObj(p.goal)));
|
|
135590
|
+
if (n.method === "thread/goal/cleared") return this.goalIs(null);
|
|
135591
|
+
return [];
|
|
135592
|
+
}
|
|
135593
|
+
/** The thread's goal as read: a notification, or `thread/goal/get` on resume */
|
|
135594
|
+
goalIs(g5) {
|
|
135595
|
+
const objective = g5?.status === "active" ? g5.objective : null;
|
|
135596
|
+
if (objective === this.goal && !this.goalStopped) return [];
|
|
135597
|
+
this.goal = objective;
|
|
135598
|
+
this.goalStopped = false;
|
|
135599
|
+
return this.changed();
|
|
135600
|
+
}
|
|
135556
135601
|
/** The turn to interrupt to stop this child, if one is running. */
|
|
135557
135602
|
turnOf(thread) {
|
|
135558
135603
|
return this.threads.get(thread)?.turnId ?? null;
|
|
135559
135604
|
}
|
|
135560
135605
|
/** The app-server went away and its child threads with it. */
|
|
135561
135606
|
release(why2) {
|
|
135562
|
-
const live2 = this.live();
|
|
135607
|
+
const live2 = this.live().filter((t) => t.id !== GOAL_ID);
|
|
135608
|
+
this.commands.clear();
|
|
135609
|
+
this.goal = null;
|
|
135610
|
+
this.goalStopped = false;
|
|
135563
135611
|
for (const t of this.threads.values()) {
|
|
135564
135612
|
t.active = false;
|
|
135565
135613
|
t.turnId = null;
|
|
@@ -135567,7 +135615,7 @@ var CodexChildTracker = class {
|
|
|
135567
135615
|
const held3 = [...this.held.keys()].map((callId) => ({ type: "tool_result", sessionId: this.sessionId, callId, ok: false, summary: why2 }));
|
|
135568
135616
|
const carded = new Set(this.held.keys());
|
|
135569
135617
|
this.held.clear();
|
|
135570
|
-
if (live2.length === 0) return held3;
|
|
135618
|
+
if (live2.length === 0) return [...this.changed(), ...held3];
|
|
135571
135619
|
return [...this.changed(live2.map((task) => ({ ...task, status: "stopped", summary: why2 })), carded), ...held3];
|
|
135572
135620
|
}
|
|
135573
135621
|
ended(thread, status, summary) {
|
|
@@ -135588,12 +135636,17 @@ var CodexChildTracker = class {
|
|
|
135588
135636
|
status: "running"
|
|
135589
135637
|
};
|
|
135590
135638
|
}
|
|
135639
|
+
keptTask(id3, command) {
|
|
135640
|
+
return { id: id3, kind: "shell", description: firstLine2(command.trim()) || "Command", parentCallId: id3, stopsWithTurn: false, stoppable: false, status: "running" };
|
|
135641
|
+
}
|
|
135591
135642
|
live() {
|
|
135592
135643
|
const out = [];
|
|
135593
135644
|
for (const [thread, t] of this.threads) {
|
|
135594
135645
|
const task = t.active ? this.task(thread) : null;
|
|
135595
135646
|
if (task) out.push(task);
|
|
135596
135647
|
}
|
|
135648
|
+
for (const [id3, c] of this.commands) if (c.kept) out.push(this.keptTask(id3, c.command));
|
|
135649
|
+
if (this.goal !== null && !this.goalStopped) out.push({ id: GOAL_ID, kind: "other", description: `Goal: ${firstLine2(this.goal.trim())}`, stopsWithTurn: false, stoppable: false, status: "running" });
|
|
135597
135650
|
return out;
|
|
135598
135651
|
}
|
|
135599
135652
|
/** The event when the live set or an ending moved; nothing when neither did. */
|
|
@@ -136479,8 +136532,8 @@ var CodexSession = class {
|
|
|
136479
136532
|
* way to find the actual cause.
|
|
136480
136533
|
*/
|
|
136481
136534
|
/*
|
|
136482
|
-
* The ledger says whether it went with work in flight (a crash) or idle (asleep:
|
|
136483
|
-
*
|
|
136535
|
+
* The ledger says whether it went with work in flight (a crash) or idle (asleep: an idle Codex session keeps its
|
|
136536
|
+
* app-server until it is put to sleep, #568, #2027, so a shutdown or a kill lands on sessions doing nothing, #1397). What it printed last is the reason
|
|
136484
136537
|
* a person can act on: a lock, a bad config line, a panic
|
|
136485
136538
|
*/
|
|
136486
136539
|
onExit: (code2, expected) => this.ledger.exited(expected, withStderrTail(`codex app-server exited (code ${code2 ?? "null"})`, this.client))
|
|
@@ -136627,6 +136680,7 @@ var CodexSession = class {
|
|
|
136627
136680
|
void this.client.request("thread/goal/get", { threadId: this.threadId }).then((r) => {
|
|
136628
136681
|
const g5 = r.goal ? goalFromCodex(r.goal) : null;
|
|
136629
136682
|
if (g5) this.emit({ type: "goal", sessionId: this.sessionId, goal: g5 });
|
|
136683
|
+
for (const e of this.childThreads.children.goalIs(g5)) this.emit(e);
|
|
136630
136684
|
}).catch(() => {
|
|
136631
136685
|
});
|
|
136632
136686
|
} else {
|
|
@@ -136696,6 +136750,7 @@ var CodexSession = class {
|
|
|
136696
136750
|
return;
|
|
136697
136751
|
}
|
|
136698
136752
|
if (n.method === "mcpServer/startupStatus/updated" && !this.threadServers.firstMcpFailure(n.params)) return;
|
|
136753
|
+
for (const e of this.childThreads.children.own(n)) this.emit(e);
|
|
136699
136754
|
this.emitNotification(n);
|
|
136700
136755
|
this.childThreads.noteSpawn(n);
|
|
136701
136756
|
this.childThreads.noteTurnEnd(n);
|
|
@@ -137264,7 +137319,7 @@ var CodexAdapter = class {
|
|
|
137264
137319
|
// translates). This is a guarantee that every record change while we hold the handle is ours,
|
|
137265
137320
|
// and the manager marks a catch-up skip on top of it (the basis for skipping a 48.6MB/8-second thread/read).
|
|
137266
137321
|
exclusiveWriter: true,
|
|
137267
|
-
// Child agents, from their threads' status and turns (#290, CodexChildTracker
|
|
137322
|
+
// Child agents, from their threads' status and turns (#290), and a command or an active goal kept past a turn (#2027): CodexChildTracker
|
|
137268
137323
|
backgroundTasks: true,
|
|
137269
137324
|
toolDeferral: false,
|
|
137270
137325
|
instructionChannel: "developer",
|
|
@@ -137275,11 +137330,12 @@ var CodexAdapter = class {
|
|
|
137275
137330
|
// 0.160 TurnStartParams: turn/start steers an already-active regular turn; compact/review input is queued.
|
|
137276
137331
|
midTurnInput: true,
|
|
137277
137332
|
/*
|
|
137278
|
-
*
|
|
137279
|
-
*
|
|
137280
|
-
*
|
|
137333
|
+
* Put to sleep like Claude (#568, #2027; docs/plans/sleep-every-tool.md §3a, measured 2026-11-13 on codex-cli 0.160.0,
|
|
137334
|
+
* gpt-5.6-luna): the woken turn read the cache as the live one did (.99 against .91-.97 live, at 2 and 16 min, rollouts
|
|
137335
|
+
* of 1, 47 and 513 MB), and the wake added 3.4-4.8 s, nearly all of it the new process's first model request: a new
|
|
137336
|
+
* app-server was ready in 30-70 ms and `thread/resume` without turns took 33-73 ms even for 513 MB.
|
|
137281
137337
|
*/
|
|
137282
|
-
sleep:
|
|
137338
|
+
sleep: true
|
|
137283
137339
|
};
|
|
137284
137340
|
launchSettingsFingerprint(settings) {
|
|
137285
137341
|
return JSON.stringify({ v: 2, cwd: settings.cwd, permission: launchPreset(settings.permissionPreset), sandbox: permissionOptionsFor2(settings.permissionPreset).sandbox, trusted: !!settings.projectTrusted, noSettings: !!settings.noSettingFiles });
|
|
@@ -141069,7 +141125,7 @@ function kindOf3(m, threadOrigin) {
|
|
|
141069
141125
|
if (m.kind === "assign" && (threadOrigin === "person" || DELEGATION_ORIGINS.some((o) => o === threadOrigin))) return { kind: "task", needsReply: false };
|
|
141070
141126
|
return { kind: kinds[m.kind], needsReply: m.kind === "question" };
|
|
141071
141127
|
}
|
|
141072
|
-
function movePendingThreadMail(db, now, projectOf) {
|
|
141128
|
+
function movePendingThreadMail(db, now, projectOf, holdsNow) {
|
|
141073
141129
|
return db.transaction(() => {
|
|
141074
141130
|
const pending = db.prepare(
|
|
141075
141131
|
`SELECT m.*, r.recipient AS r_recipient, r.due_at AS r_due_at, r.attempt_at AS r_attempt_at, r.delivered_at AS r_delivered_at,
|
|
@@ -141106,6 +141162,7 @@ function movePendingThreadMail(db, now, projectOf) {
|
|
|
141106
141162
|
for (const p of pending) {
|
|
141107
141163
|
const m = toMessage(p);
|
|
141108
141164
|
const sender = parseAddress(m.sender);
|
|
141165
|
+
const senderProject = sender?.kind === "session" ? projectOf(m.sender) ?? (m.sender === p.t_owner ? p.t_project_id : null) : null;
|
|
141109
141166
|
const target = m.replyTo === null ? void 0 : rootOf.get(m.replyTo);
|
|
141110
141167
|
const { kind, needsReply } = kindOf3(m, p.t_origin);
|
|
141111
141168
|
const facts = {
|
|
@@ -141119,7 +141176,7 @@ function movePendingThreadMail(db, now, projectOf) {
|
|
|
141119
141176
|
messages2 += insertMail.run({
|
|
141120
141177
|
id: m.id,
|
|
141121
141178
|
sender: m.sender,
|
|
141122
|
-
senderProject
|
|
141179
|
+
senderProject,
|
|
141123
141180
|
kind,
|
|
141124
141181
|
needsReply: needsReply ? 1 : 0,
|
|
141125
141182
|
replyTo: target ? m.replyTo : null,
|
|
@@ -141131,18 +141188,21 @@ function movePendingThreadMail(db, now, projectOf) {
|
|
|
141131
141188
|
legacyThread: m.threadId,
|
|
141132
141189
|
createdAt: m.createdAt
|
|
141133
141190
|
}).changes;
|
|
141191
|
+
const via = p.r_recipient === p.t_assignee && to?.assistant === 1 && p.t_owner !== p.r_recipient ? ROLE_VIA : null;
|
|
141192
|
+
const carried = p.r_held !== null && CARRIED_HOLDS.has(p.r_held) ? p.r_held : null;
|
|
141193
|
+
const ended2 = carried === "budget" || carried === "policy" && !holdsNow({ kind, senderProject }, p.r_recipient);
|
|
141134
141194
|
recipients += insertRow.run({
|
|
141135
141195
|
messageId: m.id,
|
|
141136
141196
|
recipient: p.r_recipient,
|
|
141137
|
-
via
|
|
141197
|
+
via,
|
|
141138
141198
|
settled: kind === "task" && to?.trashed === 1 ? "gone" : "legacy",
|
|
141139
141199
|
dueAt: p.r_due_at,
|
|
141140
|
-
attemptAt: p.r_attempt_at,
|
|
141200
|
+
attemptAt: ended2 ? null : p.r_attempt_at,
|
|
141141
141201
|
deliveredAt: p.r_delivered_at,
|
|
141142
141202
|
readAt: p.r_read_at,
|
|
141143
|
-
held:
|
|
141144
|
-
attempts: p.r_attempts,
|
|
141145
|
-
lastError: p.r_last_error,
|
|
141203
|
+
held: ended2 ? "dismissed" : carried,
|
|
141204
|
+
attempts: ended2 ? 0 : p.r_attempts,
|
|
141205
|
+
lastError: ended2 ? null : p.r_last_error,
|
|
141146
141206
|
now
|
|
141147
141207
|
}).changes;
|
|
141148
141208
|
handled.run({ now, id: m.id, recipient: p.r_recipient });
|
|
@@ -143592,6 +143652,53 @@ var StepsV65 = class extends MigrationRange {
|
|
|
143592
143652
|
run: () => {
|
|
143593
143653
|
this.addColumn("mail", "subject", "TEXT");
|
|
143594
143654
|
}
|
|
143655
|
+
},
|
|
143656
|
+
{
|
|
143657
|
+
to: 72,
|
|
143658
|
+
breaksOlderReaders: false,
|
|
143659
|
+
/**
|
|
143660
|
+
* The holds of an earlier build, ended (#2243). The mail token guard (`budget`) went with D32 (#2014, beta.49) and the `auto` receiver's
|
|
143661
|
+
* first-contact hold (`holdsInbound`) with D10, but the rows an earlier build held kept their hold when the v65 move carried them (settled
|
|
143662
|
+
* `legacy`), so the Inbox's Waiting listed "Paused: this session has used its share of turns started by mail" and "Held: this session runs
|
|
143663
|
+
* without asking" weeks after nothing could write such a hold.
|
|
143664
|
+
*
|
|
143665
|
+
* **One meaning: a hold from an earlier build stays only if today's gate would hold the mail now.** `budget` is never set by today's code, so every
|
|
143666
|
+
* such row goes. A `policy` row settled `legacy` stays while `reach.holdFor` (mail/reach.ts) would hold it: a `message` from an untrusted project (a
|
|
143667
|
+
* missing project row is untrusted) to a session of another project, which is how a genuine untrusted asker's request is still held. The
|
|
143668
|
+
* delivery also holds moved rows that way (it judges a `legacy` row like any other, and `records.hold` writes `held` alone), so the same row looks
|
|
143669
|
+
* the same whoever held it, and this step cannot tell them apart; it asks the gate, as the move asks it for the rows it moves from now on. What the
|
|
143670
|
+
* gate would not hold goes, and what goes is `dismissed`, the hold word the person's Dismiss sets (not held for the person, never delivered):
|
|
143671
|
+
* `gone` says a sender or recipient is gone and `withdrawn` that the sender said it no longer waits, and neither is so. `settled` stays `legacy`.
|
|
143672
|
+
*
|
|
143673
|
+
* **This is a frozen copy of `holdFor`'s conditions, on purpose.** A step runs once on every store and must not call code that may change later;
|
|
143674
|
+
* if `holdFor` changes, this step does not. It mirrors: `m.kind === 'message'`; `leaves(senderProject, recipientProject)` = the sender's project is
|
|
143675
|
+
* not null and untrusted (`projects.trusted = 0`, or no such project) and is not the recipient session's project; the recipient is a session of this
|
|
143676
|
+
* host that is kept (a `sessions` row with `deleted_at` NULL: the live session lookup skips a trashed one, so the gate holds nothing for it). The
|
|
143677
|
+
* recipient's project is read from `sessions.project_id` and the sender's from `mail.sender_project`, as the move wrote it.
|
|
143678
|
+
*
|
|
143679
|
+
* **Not mirrored: a recipient on another machine** (a linked hub's session, a linked-machine child), which the live gate holds and this step
|
|
143680
|
+
* dismisses, since it compares the session id with this host's `sessions` rows only. That is acceptable: no such row is on the owner's store (read
|
|
143681
|
+
* only, 2026-11-13: all six held rows leave), and an old hold on another machine's session could not be released from this one in any case (Release
|
|
143682
|
+
* sends through this host's delivery to a session it keeps). There is no cheap exact way: the far session's project is not stored here.
|
|
143683
|
+
*
|
|
143684
|
+
* **Rewrite data one way (#292's rule 1).** An older build reads `dismissed` as it reads the person's own Dismiss (it is in its `HELD` filter),
|
|
143685
|
+
* and does not bring the holds back. Nothing is deleted: the message and its row stay. The sender is not told: the person did not dismiss it.
|
|
143686
|
+
*/
|
|
143687
|
+
run: () => {
|
|
143688
|
+
if (this.db.prepare(`SELECT 1 FROM sqlite_master WHERE type = 'table' AND name = 'mail_recipients'`).get() === void 0) return;
|
|
143689
|
+
if (this.db.prepare(`SELECT 1 FROM mail_recipients WHERE held IN ('budget', 'policy') LIMIT 1`).get() === void 0) return;
|
|
143690
|
+
this.db.exec(
|
|
143691
|
+
`UPDATE mail_recipients SET held = 'dismissed', attempt_at = NULL, last_error = NULL, attempts = 0
|
|
143692
|
+
WHERE held = 'budget'
|
|
143693
|
+
OR (held = 'policy' AND settled = 'legacy' AND NOT EXISTS (
|
|
143694
|
+
SELECT 1 FROM mail m, sessions s
|
|
143695
|
+
WHERE m.id = mail_recipients.message_id AND m.kind = 'message' AND s.deleted_at IS NULL
|
|
143696
|
+
AND m.sender_project IS NOT NULL
|
|
143697
|
+
AND COALESCE((SELECT p.trusted FROM projects p WHERE p.id = m.sender_project), 0) = 0
|
|
143698
|
+
AND mail_recipients.recipient LIKE 'session:%' AND substr(mail_recipients.recipient, instr(mail_recipients.recipient, '/') + 1) = s.id
|
|
143699
|
+
AND s.project_id IS NOT m.sender_project))`
|
|
143700
|
+
);
|
|
143701
|
+
}
|
|
143595
143702
|
}
|
|
143596
143703
|
];
|
|
143597
143704
|
}
|
|
@@ -144649,8 +144756,8 @@ var Store = class extends MigrationRunner {
|
|
|
144649
144756
|
* The thread mail an older build left pending, moved into the message tables and marked handled in the old ones, in one transaction
|
|
144650
144757
|
* (docs/plans/mailbox.md §6.3): run after every `ready` from M3a to M7, before delivery starts. A second run finds nothing
|
|
144651
144758
|
*/
|
|
144652
|
-
movePendingThreadMail(now, projectOf) {
|
|
144653
|
-
return movePendingThreadMail(this.db, now, projectOf);
|
|
144759
|
+
movePendingThreadMail(now, projectOf, holdsNow) {
|
|
144760
|
+
return movePendingThreadMail(this.db, now, projectOf, holdsNow);
|
|
144654
144761
|
}
|
|
144655
144762
|
/** An old thread's messages, read-only (§6.3): the earlier history of a moved message (`legacy_thread`) */
|
|
144656
144763
|
legacyChain(threadId, before, limit) {
|
|
@@ -151987,7 +152094,11 @@ function hostMail(store2, sessions, opts) {
|
|
|
151987
152094
|
console.error(`[mail] taking back the notices of ended cards failed: ${errorMessage(e)}`);
|
|
151988
152095
|
}
|
|
151989
152096
|
try {
|
|
151990
|
-
const moved = store2.movePendingThreadMail(
|
|
152097
|
+
const moved = store2.movePendingThreadMail(
|
|
152098
|
+
now(),
|
|
152099
|
+
(address) => reach.projectOf(address),
|
|
152100
|
+
(m, recipient) => reach.holdFor(m, recipient) !== null
|
|
152101
|
+
);
|
|
151991
152102
|
if (moved.messages > 0) console.error(`[mail] moved ${moved.messages} pending message(s) an older build left in its threads`);
|
|
151992
152103
|
} catch (e) {
|
|
151993
152104
|
console.error(`[mail] moving the thread mail an older build left pending failed: ${errorMessage(e)}`);
|
|
@@ -162166,7 +162277,7 @@ var handedToken = launch.tokenOnStdin ? await readHandedToken(process.stdin).cat
|
|
|
162166
162277
|
console.error(`[agent-host] the launcher did not hand over the token: ${e.message}`);
|
|
162167
162278
|
process.exit(1);
|
|
162168
162279
|
}) : launch.token;
|
|
162169
|
-
var BUILD = true ? "
|
|
162280
|
+
var BUILD = true ? "617c696" : "dev";
|
|
162170
162281
|
var { values } = parseArgs({
|
|
162171
162282
|
options: {
|
|
162172
162283
|
port: { type: "string", default: "5175" },
|
package/package.json
CHANGED