@centralu/host-win32-x64 0.1.0-beta.73 → 0.1.0-beta.74
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 +58 -57
- package/package.json +1 -1
package/host/bundle-info.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
2
|
+
"commit": "a599200",
|
|
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-16T15:31:22.591Z",
|
|
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.74",
|
|
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.74",
|
|
42
|
+
"@centralu/linux-arm64": "0.1.0-beta.74",
|
|
43
|
+
"@centralu/linux-x64": "0.1.0-beta.74",
|
|
44
|
+
"@centralu/win32-x64": "0.1.0-beta.74"
|
|
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.74";
|
|
43050
43050
|
|
|
43051
43051
|
// packages/protocol/src/brand.ts
|
|
43052
43052
|
var APP_NAME = "Centralu";
|
|
@@ -64755,8 +64755,9 @@ function activityCounts(s) {
|
|
|
64755
64755
|
function turnCut(s) {
|
|
64756
64756
|
return inTurn(s.state);
|
|
64757
64757
|
}
|
|
64758
|
-
function cutTurns(s) {
|
|
64759
|
-
|
|
64758
|
+
function cutTurns(s, woken = []) {
|
|
64759
|
+
const inTurnNow = s.sessions.flatMap((x) => x.id !== void 0 && turnCut(x) ? [{ id: x.id }] : []);
|
|
64760
|
+
return [...inTurnNow, ...woken.filter((id3) => !inTurnNow.some((t) => t.id === id3)).map((id3) => ({ id: id3, woken: true }))];
|
|
64760
64761
|
}
|
|
64761
64762
|
function sessionIdle(s, process4) {
|
|
64762
64763
|
const busy = busyWith(s);
|
|
@@ -112783,6 +112784,10 @@ var ChildReports = class {
|
|
|
112783
112784
|
if (cut3) this.cutsUntold.add(sessionId);
|
|
112784
112785
|
this.answerAtRest(sessionId, true);
|
|
112785
112786
|
}
|
|
112787
|
+
/** An update cut the turn and Centralu continued it (#1966), and the turn's end is a later one's (#2318): the answer that follows says so */
|
|
112788
|
+
noteCut(sessionId) {
|
|
112789
|
+
this.cutsUntold.add(sessionId);
|
|
112790
|
+
}
|
|
112786
112791
|
/** A turn stopped: its stop notice releases what the session owed, so a cut kept from a turn before is no later answer's to tell (#1966) */
|
|
112787
112792
|
turnStopped(sessionId) {
|
|
112788
112793
|
this.cutsUntold.delete(sessionId);
|
|
@@ -113154,6 +113159,12 @@ var InputReceipts = class {
|
|
|
113154
113159
|
get ids() {
|
|
113155
113160
|
return [...this.pending.keys()];
|
|
113156
113161
|
}
|
|
113162
|
+
/** How many wait for the tool to take them: not taken by a turn, and not among `except` (the ones the turn ending now took) */
|
|
113163
|
+
untaken(except) {
|
|
113164
|
+
let n = 0;
|
|
113165
|
+
for (const [id3, p] of this.pending) if (!p.accepted && !except.includes(id3)) n++;
|
|
113166
|
+
return n;
|
|
113167
|
+
}
|
|
113157
113168
|
/** The tool took the input (once): the observer is told before the turn is recorded */
|
|
113158
113169
|
accept(id3) {
|
|
113159
113170
|
const p = this.pending.get(id3);
|
|
@@ -113291,7 +113302,7 @@ var CONTINUE_NOTES = {
|
|
|
113291
113302
|
var UPDATE_WAKES_AT_ONCE = 3;
|
|
113292
113303
|
var UPDATE_SLOT_MS = 12e4;
|
|
113293
113304
|
var ANSWERED = /* @__PURE__ */ new Set(["message_delta", "reasoning_delta", "tool_call", "usage_update", "approval_request", "question_request", "error", "limit_reached", "session_deleted"]);
|
|
113294
|
-
var wakeEnded = (e) => ANSWERED.has(e.type) || e.type === "
|
|
113305
|
+
var wakeEnded = (e) => ANSWERED.has(e.type) || e.type === "state_change" && e.state !== "working" || e.type === "session_live" && !e.live;
|
|
113295
113306
|
var RESET_MARGIN_MS = 6e4;
|
|
113296
113307
|
var NO_RESET_RETRY_MS = 30 * 6e4;
|
|
113297
113308
|
var PROBE_STEPS_MS = [15e3, 3e4, 6e4, 12e4, 3e5];
|
|
@@ -113385,27 +113396,12 @@ ${spentWords(tries)}` } };
|
|
|
113385
113396
|
this.wait(m.id, { cause: i.reason, tool: m.tool, at: a.at, tries: a.tries, phase: "waiting" });
|
|
113386
113397
|
}
|
|
113387
113398
|
}
|
|
113388
|
-
/**
|
|
113389
|
-
* Holds `e` when it is the turn end a process resumed by an update's wake says of its own before the note's turn (`ANSWERED`), and says whether it
|
|
113390
|
-
* did: the first `turn_complete` once the wake is in (`waking`), nothing having answered it. It ends no turn of the session's (#2312). Read as one, it
|
|
113391
|
-
* answered the continued turn's tasks with the cut turn's words and left the session at rest while the note's turn ran, so the real end reported
|
|
113392
|
-
* nothing. A second one is the turn's end. Held, it is said after all when the slot runs out with nothing run (`slotOver`). Only for a tool that
|
|
113393
|
-
* says it ends such a turn (`AgentAdapter.resumeEndsOwnTurn`): another's first end is the turn's
|
|
113394
|
-
*/
|
|
113395
|
-
holdOwnEnd(e) {
|
|
113396
|
-
const w = e.type === "turn_complete" ? this.updates.get(e.sessionId) : void 0;
|
|
113397
|
-
if (w?.phase !== "waking" || w.ownEnd || !this.host.resumeEndsOwnTurn(w.sessionId)) return false;
|
|
113398
|
-
w.ownEnd = true;
|
|
113399
|
-
console.error(`[agent-host] ${w.sessionId.slice(0, 8)}: held the turn end its resumed process said of its own before the update's note (#2312)`);
|
|
113400
|
-
return true;
|
|
113401
|
-
}
|
|
113402
113399
|
/** Every event of a session: the ones that end a held turn take its wait away; a finished turn starts every count over and says its tool's API answers */
|
|
113403
113400
|
observe(e) {
|
|
113404
113401
|
const id3 = e.sessionId;
|
|
113405
113402
|
if (!id3) return;
|
|
113406
113403
|
const u = this.updates.get(id3);
|
|
113407
113404
|
if (u?.phase === "waking" && wakeEnded(e)) this.endUpdate(id3, u, null);
|
|
113408
|
-
else if (u?.phase === "waking" && u.ownEnd && e.type === "activity" && e.activity !== null) u.running = true;
|
|
113409
113405
|
else if (u && e.type === "session_deleted") this.endUpdate(id3, u, "dropped");
|
|
113410
113406
|
if (e.type === "turn_complete" || e.type === "error" || e.type === "limit_reached" || e.type === "session_deleted" || e.type === "state_change" && e.state !== "working") this.cancelHeld(id3);
|
|
113411
113407
|
if (e.type === "session_deleted") this.dropStop(id3, false);
|
|
@@ -113641,8 +113637,8 @@ Centralu was going to retry this turn, but it restarted first. Send a message to
|
|
|
113641
113637
|
if (this.updates.size) setTimeout(() => this.pump(), 0);
|
|
113642
113638
|
}
|
|
113643
113639
|
/**
|
|
113644
|
-
* The wakes whose note went in and that have not answered yet (#2264 review): a stop for an update now lists
|
|
113645
|
-
*
|
|
113640
|
+
* The wakes whose note went in and that have not answered yet (#2264 review): a stop for an update now lists them again (`cutTurns`). Their entry
|
|
113641
|
+
* left the list at the send, and the resumed process reads at rest until its request streams (its own turn end comes first). One silent for
|
|
113646
113642
|
* `UPDATE_SLOT_MS` gave its slot up and is not among them: a stop after that does not list it again (accepted, as a request that hangs that long)
|
|
113647
113643
|
*/
|
|
113648
113644
|
unanswered() {
|
|
@@ -113657,18 +113653,6 @@ Centralu was going to retry this turn, but it restarted first. Send a message to
|
|
|
113657
113653
|
void this.fireUpdate(id3, w);
|
|
113658
113654
|
}
|
|
113659
113655
|
}
|
|
113660
|
-
/**
|
|
113661
|
-
* A woken session said nothing for `UPDATE_SLOT_MS`: its slot goes to the next. One whose resumed process's turn end was held (`holdOwnEnd`), that
|
|
113662
|
-
* is still in its turn and whose tool said nothing of being busy since (`running`) ran nothing after it: that end was the turn's, and is said now,
|
|
113663
|
-
* so the session is not left working with no turn
|
|
113664
|
-
*/
|
|
113665
|
-
slotOver(id3, w) {
|
|
113666
|
-
this.endUpdate(id3, w, null);
|
|
113667
|
-
const m = this.host.meta.get(id3);
|
|
113668
|
-
if (!w.ownEnd || w.running || !m || !inTurn(m.state) || this.host.leaving()) return;
|
|
113669
|
-
console.error(`[agent-host] ${id3.slice(0, 8)}: nothing ran after the turn end held for ${UPDATE_SLOT_MS / 1e3} s, so it ends the turn (#2312)`);
|
|
113670
|
-
this.host.note({ type: "turn_complete", sessionId: id3 });
|
|
113671
|
-
}
|
|
113672
113656
|
/** An update's wake is over (answered, or `step`): its slot goes to the next */
|
|
113673
113657
|
endUpdate(id3, w, step, err) {
|
|
113674
113658
|
if (this.updates.get(id3) === w) this.updates.delete(id3);
|
|
@@ -113691,7 +113675,7 @@ Centralu was going to retry this turn, but it restarted first. Send a message to
|
|
|
113691
113675
|
handed: () => {
|
|
113692
113676
|
handed = true;
|
|
113693
113677
|
w.phase = "waking";
|
|
113694
|
-
w.slot = setTimeout(() => this.
|
|
113678
|
+
w.slot = setTimeout(() => this.endUpdate(id3, w, null), UPDATE_SLOT_MS);
|
|
113695
113679
|
w.slot.unref?.();
|
|
113696
113680
|
}
|
|
113697
113681
|
});
|
|
@@ -124002,7 +123986,6 @@ var SessionEvents = class {
|
|
|
124002
123986
|
return this.onEvent({ ...e, live: m.backgroundTasks.filter((t) => t.status === "running") });
|
|
124003
123987
|
}
|
|
124004
123988
|
if (e.type === "error") e = this.host.turnContinue.hold(e);
|
|
124005
|
-
if (this.host.turnContinue.holdOwnEnd(e)) return;
|
|
124006
123989
|
if (e.sessionId) this.host.turnContinue.observe(e);
|
|
124007
123990
|
const unborn = e.sessionId && !this.host.meta.has(e.sessionId) ? this.host.record.unborn.get(e.sessionId) : void 0;
|
|
124008
123991
|
if (unborn) {
|
|
@@ -124045,6 +124028,8 @@ var SessionEvents = class {
|
|
|
124045
124028
|
if (this.host.restartPolicy.backgroundUnknown.has(m.id)) this.host.restartPolicy.backgroundUnknown.set(m.id, Date.now());
|
|
124046
124029
|
if (!wasBusy && inTurn(m.state)) {
|
|
124047
124030
|
continues = this.host.selfCompaction.stepOpens(m.id);
|
|
124031
|
+
this.host.reports.stopSettling(m.id);
|
|
124032
|
+
this.inputWaits.delete(m.id);
|
|
124048
124033
|
this.host.children.turnStarted(m.id);
|
|
124049
124034
|
this.host.children.noteTurnStart(m.id, m.lastSeq);
|
|
124050
124035
|
}
|
|
@@ -124086,11 +124071,30 @@ var SessionEvents = class {
|
|
|
124086
124071
|
const runOpen = !!run2 && !run2.finished;
|
|
124087
124072
|
const delegation = runOpen ? [...this.host.children.delegations.values()].find((d2) => d2.wait === run2) : void 0;
|
|
124088
124073
|
const waited = runOpen && (!delegation || (delegation.waiters ?? 0) > 0);
|
|
124089
|
-
run2?.onEvent(e);
|
|
124090
|
-
if (e.sessionId) for (const observer of this.host.turnObservers.get(e.sessionId) ?? []) observer.onEvent(e);
|
|
124091
124074
|
const processWent = e.type === "error" && (e.error.code === "adapter_crashed" || e.error.code === "conversation_locked");
|
|
124092
124075
|
const taken = endedTurn && e.sessionId ? this.host.handles.get(e.sessionId)?.turnInputs?.() : void 0;
|
|
124076
|
+
const ownTurn = endedTurn && e.type === "turn_complete" && !!e.sessionId && Array.isArray(taken) && taken.length === 0 && (this.host.handles.get(e.sessionId)?.queuedInputs?.() ?? 0) > 0;
|
|
124077
|
+
if (!ownTurn) {
|
|
124078
|
+
run2?.onEvent(e);
|
|
124079
|
+
if (e.sessionId) for (const observer of this.host.turnObservers.get(e.sessionId) ?? []) observer.onEvent(e);
|
|
124080
|
+
}
|
|
124093
124081
|
const owned = endedTurn && e.sessionId ? this.host.children.turnEnded(e.sessionId, taken) : void 0;
|
|
124082
|
+
if (ownTurn && e.sessionId) {
|
|
124083
|
+
console.error(`[agent-host] ${e.sessionId.slice(0, 8)}: its tool ended a turn of its own while an input waits to run: not the work's end (#2318)`);
|
|
124084
|
+
if (owned?.cut) {
|
|
124085
|
+
this.host.children.noteContinuedCut(e.sessionId);
|
|
124086
|
+
this.host.reports.noteCut(e.sessionId);
|
|
124087
|
+
}
|
|
124088
|
+
this.host.reports.settleAtRest(e.sessionId);
|
|
124089
|
+
this.inputWaits.add(e.sessionId);
|
|
124090
|
+
}
|
|
124091
|
+
if (processWent && !endedTurn && e.sessionId && this.inputWaits.delete(e.sessionId)) {
|
|
124092
|
+
this.host.children.dropContinuedCut(e.sessionId);
|
|
124093
|
+
this.host.reports.stopSettling(e.sessionId);
|
|
124094
|
+
this.host.reports.turnStopped(e.sessionId);
|
|
124095
|
+
this.host.mailStopped(e.sessionId, "error", this.stopTold(e.sessionId, false, void 0));
|
|
124096
|
+
}
|
|
124097
|
+
if (e.type === "session_deleted") this.inputWaits.delete(e.sessionId);
|
|
124094
124098
|
const turnBy = e.sessionId && endedTurn && this.host.selfCompaction.compactTurn(e.sessionId) ? { ...owned ?? { by: "work" }, compaction: true } : owned;
|
|
124095
124099
|
const since = turnBy && e.sessionId ? this.host.children.turnRows(e.sessionId)?.after : void 0;
|
|
124096
124100
|
const turnSaid = turnBy && (e.type === "turn_complete" || e.type === "state_change" || e.type === "error" || e.type === "limit_reached") ? { ...e, turn: since === void 0 ? turnBy : { ...turnBy, since } } : e;
|
|
@@ -124102,7 +124106,7 @@ var SessionEvents = class {
|
|
|
124102
124106
|
this.host.emit({ type: "interruption", sessionId: e.sessionId, interruption: nowInterrupted });
|
|
124103
124107
|
}
|
|
124104
124108
|
if (endedTurn && e.sessionId) this.host.mailTurnInputs(e.sessionId, { took: processWent ? void 0 : taken });
|
|
124105
|
-
const workEnded = endedTurn && !!e.sessionId && !this.host.selfCompaction.compactTurn(e.sessionId);
|
|
124109
|
+
const workEnded = endedTurn && !ownTurn && !!e.sessionId && !this.host.selfCompaction.compactTurn(e.sessionId);
|
|
124106
124110
|
const stopWhy = workEnded && e.sessionId && !this.host.restartPolicy.continuingTurns.has(e.sessionId) ? stopOf(e, nowInterrupted) : null;
|
|
124107
124111
|
if (stopWhy && e.sessionId) {
|
|
124108
124112
|
this.host.reports.turnStopped(e.sessionId);
|
|
@@ -124114,7 +124118,7 @@ var SessionEvents = class {
|
|
|
124114
124118
|
}
|
|
124115
124119
|
if ((e.type === "question_request" || e.type === "approval_request") && e.sessionId) this.host.cards.routeCard(e.sessionId, e.requestId, e.type === "question_request" ? "question" : "approval");
|
|
124116
124120
|
if ((endedTurn || e.type === "question_resolved" || e.type === "approval_resolved") && e.sessionId) this.host.cards.cardsEnded(e.sessionId);
|
|
124117
|
-
if (endedTurn && e.sessionId) this.endHubAsk(e.sessionId);
|
|
124121
|
+
if (endedTurn && !ownTurn && e.sessionId) this.endHubAsk(e.sessionId);
|
|
124118
124122
|
if (e.type === "approval_resolved" && e.sessionId) this.host.hostCards.raiseHostAsks(e.sessionId);
|
|
124119
124123
|
if (endedTurn && e.sessionId && this.host.meta.get(e.sessionId)?.state !== "error") this.host.hostCards.raiseHostAsks(e.sessionId);
|
|
124120
124124
|
if (endedTurn && e.sessionId) this.forgetCommits(e.sessionId);
|
|
@@ -124140,6 +124144,8 @@ var SessionEvents = class {
|
|
|
124140
124144
|
if (!asker || !this.host.meta.has(asker)) return { starter: null };
|
|
124141
124145
|
return { ...waited ? { told: [asker] } : {}, starter: asker };
|
|
124142
124146
|
}
|
|
124147
|
+
/** Sessions whose tool ended a turn of its own while an input waits to run, until that input's turn begins (#2318, `ownTurn`) */
|
|
124148
|
+
inputWaits = /* @__PURE__ */ new Set();
|
|
124143
124149
|
shareOf(e) {
|
|
124144
124150
|
const m = this.host.meta.get(e.sessionId);
|
|
124145
124151
|
if (!m) return e;
|
|
@@ -125532,7 +125538,7 @@ var HostTenure = class {
|
|
|
125532
125538
|
this.disposing = true;
|
|
125533
125539
|
this.leaveHost("Centralu is shutting down");
|
|
125534
125540
|
const sessions = this.stoppingForUpdate && this.host.keeperOpts.updateResume ? this.host.listSessions() : [];
|
|
125535
|
-
const cut3 = cutTurns({ sessions, terminals: 0, commandRuns: 0 });
|
|
125541
|
+
const cut3 = cutTurns({ sessions, terminals: 0, commandRuns: 0 }, woken.filter((w) => w.turn).map((w) => w.sessionId));
|
|
125536
125542
|
const stopped = stoppedAtUpdate(sessions, (id3, callId) => this.host.store.messages.toolCallInput(id3, callId), woken.flatMap((w) => w.stopped ? [w.stopped] : []));
|
|
125537
125543
|
for (const [id3, run2] of this.host.record.streams) this.host.record.flushStream(id3, run2);
|
|
125538
125544
|
await Promise.allSettled([...[...this.host.handles.values()].map((h) => h.dispose()), ...this.host.merges.mergeChecks]);
|
|
@@ -128720,7 +128726,7 @@ var AcpAdapter = class {
|
|
|
128720
128726
|
const label = this.profile.descriptor.label;
|
|
128721
128727
|
const launch2 = await this.profile.launch(opts);
|
|
128722
128728
|
if (!launch2) throw toolNotInstalled(label, this.profile.descriptor.install);
|
|
128723
|
-
const spec = { command: launch2.command, args: launch2.args, cwd: opts.cwd, env: { ...process.env, ...launch2.env } };
|
|
128729
|
+
const spec = { command: launch2.command, args: launch2.args, cwd: launch2.cwd ?? opts.cwd, env: { ...process.env, ...launch2.env } };
|
|
128724
128730
|
const source = opts.processSource;
|
|
128725
128731
|
const shape = this.profile.shape;
|
|
128726
128732
|
if (source?.adopt) await closeAdopted(source.adopt, opts.sessionId, emit).catch(async (err) => {
|
|
@@ -129373,7 +129379,7 @@ function agyEnv(home, browser) {
|
|
|
129373
129379
|
return { GEMINI_HOME: home.geminiHome, BROWSER: browser };
|
|
129374
129380
|
}
|
|
129375
129381
|
function agyLaunch(home, archive, browser) {
|
|
129376
|
-
return { command: agyProgram(home, archive), args: [...archive.args], env: agyEnv(home, browser) };
|
|
129382
|
+
return { command: agyProgram(home, archive), args: [...archive.args], cwd: home.root, env: agyEnv(home, browser) };
|
|
129377
129383
|
}
|
|
129378
129384
|
|
|
129379
129385
|
// packages/agent-host/src/adapters/antigravity/shape.ts
|
|
@@ -129484,7 +129490,7 @@ async function runSignIn(home, archive, signal, deps = {}) {
|
|
|
129484
129490
|
openUrl(url2);
|
|
129485
129491
|
};
|
|
129486
129492
|
const launch2 = agyLaunch(home, archive, folder.browser);
|
|
129487
|
-
const spec = { ...launch2,
|
|
129493
|
+
const spec = { ...launch2, env: { ...process.env, ...launch2.env } };
|
|
129488
129494
|
const proc = startToolProcess(spec, deps.spawn ? { spawn: deps.spawn } : {});
|
|
129489
129495
|
const lines = lineSplitter((line) => {
|
|
129490
129496
|
const m = URL_LINE.exec(line);
|
|
@@ -129709,7 +129715,7 @@ async function gather() {
|
|
|
129709
129715
|
const home = agyHome(dataRoot(), AGY_RELEASE.version);
|
|
129710
129716
|
if (!archive || !isInstalled(home, archive)) throw new Error("Antigravity is not installed by Centralu on this machine");
|
|
129711
129717
|
const launch2 = agyLaunch(home, archive, "");
|
|
129712
|
-
const initialize = await acpInitialize({ ...launch2,
|
|
129718
|
+
const initialize = await acpInitialize({ ...launch2, env: { ...process.env, ...launch2.env } }, "antigravity-surface", agyStderrLine);
|
|
129713
129719
|
return { version: AGY_RELEASE.version, initialize };
|
|
129714
129720
|
}
|
|
129715
129721
|
function readAgySurface(inputs) {
|
|
@@ -132364,6 +132370,10 @@ var MidTurnLedger = class {
|
|
|
132364
132370
|
get tracking() {
|
|
132365
132371
|
return this.receipts.size;
|
|
132366
132372
|
}
|
|
132373
|
+
/** How many tracked inputs the tool has not taken yet: not the turn that is running, nor the one whose end is being said (`endingInputs`) */
|
|
132374
|
+
get untaken() {
|
|
132375
|
+
return this.receipts.untaken(this.ending ?? []);
|
|
132376
|
+
}
|
|
132367
132377
|
/** Every tracked input fails, and nothing is stopped (the turn already failed): the ids that did */
|
|
132368
132378
|
failTracked(reason) {
|
|
132369
132379
|
const ids = this.receipts.ids;
|
|
@@ -133963,11 +133973,11 @@ var ClaudeSession = class {
|
|
|
133963
133973
|
this.sendInput(text3, opts?.id !== void 0 && isUuid(opts.id) ? opts.id : centraluInputId(), void 0, opts?.origin, opts?.quiet);
|
|
133964
133974
|
}
|
|
133965
133975
|
/**
|
|
133966
|
-
* Inputs that will run as a turn and have not: waiting in the queue the CLI reads, or read and not named by a finished turn's result (`personInputs`)
|
|
133967
|
-
*
|
|
133976
|
+
* Inputs that will run as a turn and have not: waiting in the queue the CLI reads, or read and not named by a finished turn's result (`personInputs`),
|
|
133977
|
+
* and the tracked ones (mail, an update's Continue, a parent's note) no turn took yet, which the ledger counts (#2318 review). Quiet inputs start no turn
|
|
133968
133978
|
*/
|
|
133969
133979
|
queuedInputs() {
|
|
133970
|
-
return this.queue.filter((input) => !input.quiet && !input.parentNote).length + this.personInputs.size;
|
|
133980
|
+
return this.queue.filter((input) => !input.quiet && !input.parentNote).length + this.personInputs.size + this.ledger.untaken;
|
|
133971
133981
|
}
|
|
133972
133982
|
/** A note read with the next message or at the running turn's next tool round, starting nothing (#1492): quiet input, stamped as Centralu's */
|
|
133973
133983
|
nudge(text3) {
|
|
@@ -134265,11 +134275,6 @@ var ClaudeAdapter = class _ClaudeAdapter {
|
|
|
134265
134275
|
contextAtRequest = true;
|
|
134266
134276
|
/** `shouldQuery: false` (sdk.d.ts, measured on the Mac 2026-10-20: no turn, merged into the next message) */
|
|
134267
134277
|
quietInput = true;
|
|
134268
|
-
/**
|
|
134269
|
-
* Measured with Claude Code 2.1.296 on a real host swap: about 2 s after the first input, before that input's turn, when the update's stop ended a
|
|
134270
|
-
* background task of the session; a cut turn that ran in the foreground only resumed with none (`ANSWERED`, turn-continue.ts)
|
|
134271
|
-
*/
|
|
134272
|
-
resumeEndsOwnTurn = true;
|
|
134273
134278
|
cacheBilling = "anthropic";
|
|
134274
134279
|
/** What Claude Code offers against what this adapter limits (#270) */
|
|
134275
134280
|
surface = CLAUDE_SURFACE;
|
|
@@ -148222,10 +148227,6 @@ var SessionManager = class {
|
|
|
148222
148227
|
},
|
|
148223
148228
|
waitEnded: (id3, cause2, end) => this.mail.mailWaitEnded(id3, cause2, this.meta.get(id3)?.askedBy ?? null, end),
|
|
148224
148229
|
updateStep: (cut3, step, err) => this.tenure.updateStep(cut3, step, err),
|
|
148225
|
-
resumeEndsOwnTurn: (id3) => {
|
|
148226
|
-
const tool = this.meta.get(id3)?.tool;
|
|
148227
|
-
return !!tool && this.adapters.get(tool)?.resumeEndsOwnTurn === true;
|
|
148228
|
-
},
|
|
148229
148230
|
// Through Centralu's channel: sent only while the wait still stands (a Stop or a message of the person's takes it away, even while a restart is waited out)
|
|
148230
148231
|
send: (id3, note, gate) => {
|
|
148231
148232
|
const skipLine = () => !note.line || note.cause === "update" && this.tenure.leavingForUpdate();
|
|
@@ -164112,7 +164113,7 @@ var handedToken = launch.tokenOnStdin ? await readHandedToken(process.stdin).cat
|
|
|
164112
164113
|
console.error(`[agent-host] the launcher did not hand over the token: ${e.message}`);
|
|
164113
164114
|
process.exit(1);
|
|
164114
164115
|
}) : launch.token;
|
|
164115
|
-
var BUILD = true ? "
|
|
164116
|
+
var BUILD = true ? "a599200" : "dev";
|
|
164116
164117
|
var { values } = parseArgs({
|
|
164117
164118
|
options: {
|
|
164118
164119
|
port: { type: "string", default: "5175" },
|
package/package.json
CHANGED