@centralu/win32-x64 0.1.0-beta.83 → 0.1.0-beta.84
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/Centralu/centralu.exe
CHANGED
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
2
|
+
"commit": "b9a5315",
|
|
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-28T06:13:26.011Z",
|
|
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.84",
|
|
4
4
|
"description": "Run, watch and steer Claude Code, Codex and other coding agents 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.84",
|
|
42
|
+
"@centralu/linux-arm64": "0.1.0-beta.84",
|
|
43
|
+
"@centralu/linux-x64": "0.1.0-beta.84",
|
|
44
|
+
"@centralu/win32-x64": "0.1.0-beta.84"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -43046,7 +43046,7 @@ import { dirname as dirname27, join as join57 } from "node:path";
|
|
|
43046
43046
|
import { mkdirSync as mkdirSync21, readFileSync as readFileSync28, 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.84";
|
|
43050
43050
|
|
|
43051
43051
|
// packages/protocol/src/brand.ts
|
|
43052
43052
|
var APP_NAME = "Centralu";
|
|
@@ -134746,6 +134746,7 @@ async function lastCompactSummary(threadId, sessionsDir) {
|
|
|
134746
134746
|
}
|
|
134747
134747
|
|
|
134748
134748
|
// packages/agent-host/src/adapters/codex/items.ts
|
|
134749
|
+
var CHILD_AGENT = "Child agent";
|
|
134749
134750
|
function resultSummary(item) {
|
|
134750
134751
|
const direct = str(item.aggregatedOutput) || str(item.output);
|
|
134751
134752
|
if (direct) return direct;
|
|
@@ -134832,8 +134833,16 @@ function itemSummary(item) {
|
|
|
134832
134833
|
const tool = str(item.tool) || type;
|
|
134833
134834
|
return { tool, title: firstLine2(str(item.prompt)) || tool, paths: [] };
|
|
134834
134835
|
}
|
|
134836
|
+
if (type === "subAgentActivity") {
|
|
134837
|
+
const path2 = str(item.agentPath);
|
|
134838
|
+
if (str(item.kind) === "started") return { tool: "spawnAgent", title: path2 || CHILD_AGENT, paths: [] };
|
|
134839
|
+
if (str(item.kind) === "interacted") return { tool: "sendMessage", title: path2 ? `Message to ${path2}` : `Message to a ${CHILD_AGENT.toLowerCase()}`, paths: [] };
|
|
134840
|
+
}
|
|
134835
134841
|
return { tool: type || "tool", title: str(item.title) || type, paths: [] };
|
|
134836
134842
|
}
|
|
134843
|
+
function childEnded(item) {
|
|
134844
|
+
return str(item.type) === "subAgentActivity" && (str(item.kind) === "completed" || str(item.kind) === "interrupted");
|
|
134845
|
+
}
|
|
134837
134846
|
function argsPreview(raw) {
|
|
134838
134847
|
let value = raw;
|
|
134839
134848
|
if (typeof raw === "string") {
|
|
@@ -135131,7 +135140,7 @@ function normalizeNotification(sessionId, n) {
|
|
|
135131
135140
|
if (type === "contextCompaction") return [{ type: "activity", sessionId, activity: "compacting" }];
|
|
135132
135141
|
if (type === "enteredReviewMode") return [{ type: "activity", sessionId, activity: "reviewing" }];
|
|
135133
135142
|
if (type === "exitedReviewMode") return [{ type: "activity", sessionId, activity: null }];
|
|
135134
|
-
if (type === "imageView") return [];
|
|
135143
|
+
if (type === "imageView" || childEnded(item)) return [];
|
|
135135
135144
|
const s = itemSummary(item);
|
|
135136
135145
|
return [{ type: "tool_call", sessionId, callId: str(item.id), summary: s, input: itemInput(item) }];
|
|
135137
135146
|
}
|
|
@@ -135141,7 +135150,7 @@ function normalizeNotification(sessionId, n) {
|
|
|
135141
135150
|
if (type === "agentMessage") {
|
|
135142
135151
|
return str(item.text) ? [{ type: "message_delta", sessionId, role: "assistant", text: "", ...messageIdOf2(item.id) }] : [];
|
|
135143
135152
|
}
|
|
135144
|
-
if (type === "userMessage" || type === "reasoning") return [];
|
|
135153
|
+
if (type === "userMessage" || type === "reasoning" || childEnded(item)) return [];
|
|
135145
135154
|
if (type === "contextCompaction") {
|
|
135146
135155
|
return [
|
|
135147
135156
|
{ type: "activity", sessionId, activity: null },
|
|
@@ -135632,11 +135641,22 @@ function childSteps(sessionId, parentCallId, n) {
|
|
|
135632
135641
|
}
|
|
135633
135642
|
return subagentSteps(sessionId, parentCallId, normalizeNotification(sessionId, n));
|
|
135634
135643
|
}
|
|
135635
|
-
function
|
|
135636
|
-
if (n.method !== "item/completed") return
|
|
135644
|
+
function launchOf(n) {
|
|
135645
|
+
if (n.method !== "item/started" && n.method !== "item/completed") return null;
|
|
135637
135646
|
const item = asObj(asObj(n.params).item);
|
|
135638
|
-
|
|
135639
|
-
|
|
135647
|
+
const callId = str(item.id);
|
|
135648
|
+
if (!callId) return null;
|
|
135649
|
+
if (str(item.type) === "subAgentActivity") {
|
|
135650
|
+
const thread = str(item.agentThreadId);
|
|
135651
|
+
return str(item.kind) === "started" && thread ? { callId, description: str(item.agentPath) || CHILD_AGENT, threads: [thread] } : null;
|
|
135652
|
+
}
|
|
135653
|
+
if (n.method !== "item/completed" || str(item.type) !== "collabAgentToolCall" || str(item.tool) !== "spawnAgent") return null;
|
|
135654
|
+
const threads = (Array.isArray(item.receiverThreadIds) ? item.receiverThreadIds : []).filter((t) => typeof t === "string" && t !== "");
|
|
135655
|
+
return { callId, description: firstLine2(str(item.prompt).trim()) || CHILD_AGENT, threads };
|
|
135656
|
+
}
|
|
135657
|
+
function launchedThreads(n) {
|
|
135658
|
+
if (n.method !== "item/completed" || !codexItemOk(asObj(asObj(n.params).item))) return [];
|
|
135659
|
+
return launchOf(n)?.threads ?? [];
|
|
135640
135660
|
}
|
|
135641
135661
|
var GOAL_ID = "goal";
|
|
135642
135662
|
var CodexChildTracker = class {
|
|
@@ -135684,10 +135704,10 @@ var CodexChildTracker = class {
|
|
|
135684
135704
|
}
|
|
135685
135705
|
return out;
|
|
135686
135706
|
}
|
|
135687
|
-
/** A
|
|
135688
|
-
link(thread, callId,
|
|
135707
|
+
/** A launch call named this thread (`launchOf`). */
|
|
135708
|
+
link(thread, callId, description) {
|
|
135689
135709
|
if (this.linked.has(thread)) return [];
|
|
135690
|
-
this.linked.set(thread, { callId, description
|
|
135710
|
+
this.linked.set(thread, { callId, description });
|
|
135691
135711
|
return this.changed();
|
|
135692
135712
|
}
|
|
135693
135713
|
/** A notification from a thread that is not the parent's. */
|
|
@@ -135904,7 +135924,11 @@ var CODEX_KNOWN_NOTIFICATIONS = /* @__PURE__ */ new Set([
|
|
|
135904
135924
|
"thread/realtime/outputAudio/delta",
|
|
135905
135925
|
"thread/realtime/sdp",
|
|
135906
135926
|
"thread/realtime/error",
|
|
135907
|
-
"thread/realtime/closed"
|
|
135927
|
+
"thread/realtime/closed",
|
|
135928
|
+
"thread/prediction/updated",
|
|
135929
|
+
"thread/readState/changed",
|
|
135930
|
+
"thread/search/partial",
|
|
135931
|
+
"thread/section/changed"
|
|
135908
135932
|
]);
|
|
135909
135933
|
|
|
135910
135934
|
// packages/agent-host/src/adapters/codex/reasoning-parts.ts
|
|
@@ -136330,8 +136354,7 @@ var CodexChildThreads = class {
|
|
|
136330
136354
|
}
|
|
136331
136355
|
host;
|
|
136332
136356
|
/**
|
|
136333
|
-
* Child threads (#222): a child's thread id, to the `
|
|
136334
|
-
* that card. Learned from the item's `receiverThreadIds` on `item/completed` (the `item/started` has an empty list).
|
|
136357
|
+
* Child threads (#222): a child's thread id, to the launch item (`launchOf`) that started it. Its steps are kept under that card.
|
|
136335
136358
|
*/
|
|
136336
136359
|
childCalls = /* @__PURE__ */ new Map();
|
|
136337
136360
|
/**
|
|
@@ -136362,18 +136385,16 @@ var CodexChildThreads = class {
|
|
|
136362
136385
|
this.unlinkedCount += 1;
|
|
136363
136386
|
}
|
|
136364
136387
|
/**
|
|
136365
|
-
* A
|
|
136366
|
-
*
|
|
136388
|
+
* A launch call named the threads it started (`launchOf`), from the parent or from a child that started its own: their steps go
|
|
136389
|
+
* under its card from now on, starting with whatever arrived before it.
|
|
136367
136390
|
*/
|
|
136368
136391
|
noteSpawn(n) {
|
|
136369
|
-
|
|
136370
|
-
|
|
136371
|
-
|
|
136372
|
-
|
|
136373
|
-
|
|
136374
|
-
|
|
136375
|
-
this.childCalls.set(thread, item.id);
|
|
136376
|
-
for (const e of this.children.link(thread, item.id, typeof item.prompt === "string" ? item.prompt : "")) this.host.emit(e);
|
|
136392
|
+
const launch2 = launchOf(n);
|
|
136393
|
+
if (!launch2) return;
|
|
136394
|
+
for (const thread of launch2.threads) {
|
|
136395
|
+
if (this.childCalls.has(thread)) continue;
|
|
136396
|
+
this.childCalls.set(thread, launch2.callId);
|
|
136397
|
+
for (const e of this.children.link(thread, launch2.callId, launch2.description)) this.host.emit(e);
|
|
136377
136398
|
const held3 = this.unlinked.get(thread) ?? [];
|
|
136378
136399
|
this.unlinked.delete(thread);
|
|
136379
136400
|
this.unlinkedCount -= held3.length;
|
|
@@ -136383,7 +136404,7 @@ var CodexChildThreads = class {
|
|
|
136383
136404
|
/** The parent's turn ended: what no launch call named by then is let go of (see `unlinked`) */
|
|
136384
136405
|
noteTurnEnd(n) {
|
|
136385
136406
|
if (n.method === "turn/completed" && this.unlinked.size > 0) {
|
|
136386
|
-
console.error(`[codex] ${this.host.sessionId.slice(0, 8)} let go of ${this.unlinkedCount} items from ${this.unlinked.size} threads no
|
|
136407
|
+
console.error(`[codex] ${this.host.sessionId.slice(0, 8)} let go of ${this.unlinkedCount} items from ${this.unlinked.size} threads no launch call named`);
|
|
136387
136408
|
this.unlinked.clear();
|
|
136388
136409
|
this.unlinkedCount = 0;
|
|
136389
136410
|
}
|
|
@@ -137141,8 +137162,8 @@ import { join as join45 } from "node:path";
|
|
|
137141
137162
|
|
|
137142
137163
|
// packages/agent-host/src/adapters/codex/surface-baseline.ts
|
|
137143
137164
|
var SURFACE_BASELINE2 = {
|
|
137144
|
-
recorded: "2026-
|
|
137145
|
-
version: "codex-cli 0.
|
|
137165
|
+
recorded: "2026-11-28",
|
|
137166
|
+
version: "codex-cli 0.172.0",
|
|
137146
137167
|
offered: {
|
|
137147
137168
|
command: [
|
|
137148
137169
|
"account/gatewayOAuth/cancel",
|
|
@@ -137154,6 +137175,7 @@ var SURFACE_BASELINE2 = {
|
|
|
137154
137175
|
"account/rateLimitResetCredit/consume",
|
|
137155
137176
|
"account/rateLimits/read",
|
|
137156
137177
|
"account/read",
|
|
137178
|
+
"account/securitySetup/read",
|
|
137157
137179
|
"account/sendAddCreditsNudgeEmail",
|
|
137158
137180
|
"account/usage/read",
|
|
137159
137181
|
"account/workspaceMessages/read",
|
|
@@ -137175,6 +137197,7 @@ var SURFACE_BASELINE2 = {
|
|
|
137175
137197
|
"externalAgentConfig/import",
|
|
137176
137198
|
"externalAgentConfig/import/readHistories",
|
|
137177
137199
|
"externalAgentConfig/import/recordHistory",
|
|
137200
|
+
"feedback/save",
|
|
137178
137201
|
"feedback/upload",
|
|
137179
137202
|
"fs/copy",
|
|
137180
137203
|
"fs/createDirectory",
|
|
@@ -137200,6 +137223,9 @@ var SURFACE_BASELINE2 = {
|
|
|
137200
137223
|
"mcpServerStatus/list",
|
|
137201
137224
|
"model/list",
|
|
137202
137225
|
"modelProvider/capabilities/read",
|
|
137226
|
+
"modelProvider/config/write",
|
|
137227
|
+
"modelProvider/default/set",
|
|
137228
|
+
"modelProvider/list",
|
|
137203
137229
|
"permissionProfile/list",
|
|
137204
137230
|
"plugin/install",
|
|
137205
137231
|
"plugin/installed",
|
|
@@ -137222,6 +137248,7 @@ var SURFACE_BASELINE2 = {
|
|
|
137222
137248
|
"thread/attachment/add",
|
|
137223
137249
|
"thread/attachment/list",
|
|
137224
137250
|
"thread/attachment/remove",
|
|
137251
|
+
"thread/attachmentOwner/list",
|
|
137225
137252
|
"thread/compact/start",
|
|
137226
137253
|
"thread/delete",
|
|
137227
137254
|
"thread/fork",
|
|
@@ -137322,8 +137349,10 @@ var SURFACE_BASELINE2 = {
|
|
|
137322
137349
|
"thread/goal/cleared",
|
|
137323
137350
|
"thread/goal/updated",
|
|
137324
137351
|
"thread/name/updated",
|
|
137352
|
+
"thread/prediction/updated",
|
|
137325
137353
|
"thread/project/updated",
|
|
137326
137354
|
"thread/queue/changed",
|
|
137355
|
+
"thread/readState/changed",
|
|
137327
137356
|
"thread/realtime/closed",
|
|
137328
137357
|
"thread/realtime/error",
|
|
137329
137358
|
"thread/realtime/item/completed",
|
|
@@ -137336,6 +137365,8 @@ var SURFACE_BASELINE2 = {
|
|
|
137336
137365
|
"thread/realtime/transcript/delta",
|
|
137337
137366
|
"thread/realtime/transcript/done",
|
|
137338
137367
|
"thread/reverted",
|
|
137368
|
+
"thread/search/partial",
|
|
137369
|
+
"thread/section/changed",
|
|
137339
137370
|
"thread/settings/updated",
|
|
137340
137371
|
"thread/started",
|
|
137341
137372
|
"thread/status/changed",
|
|
@@ -137390,6 +137421,7 @@ var SURFACE_BASELINE2 = {
|
|
|
137390
137421
|
"subcommand:login",
|
|
137391
137422
|
"subcommand:logout",
|
|
137392
137423
|
"subcommand:mcp",
|
|
137424
|
+
"subcommand:migrate-nfs-db",
|
|
137393
137425
|
"subcommand:migrate-rollouts",
|
|
137394
137426
|
"subcommand:plugin",
|
|
137395
137427
|
"subcommand:queue",
|
|
@@ -146991,6 +147023,8 @@ var ToolQueries = class {
|
|
|
146991
147023
|
* opens would make that click feel slow.
|
|
146992
147024
|
*/
|
|
146993
147025
|
modelCache = /* @__PURE__ */ new Map();
|
|
147026
|
+
/** Counts the times a tool's CLI changed (`forgetModels`): a read that began under an older count is of the old CLI and is not kept */
|
|
147027
|
+
modelEpoch = /* @__PURE__ */ new Map();
|
|
146994
147028
|
/** One read of a tool's list at a time: a second asker waits on it instead of starting another tool process */
|
|
146995
147029
|
modelFetches = /* @__PURE__ */ new Map();
|
|
146996
147030
|
/** When a read last failed, so a caller that cannot wait does not start another one at once (#660) */
|
|
@@ -147004,14 +147038,18 @@ var ToolQueries = class {
|
|
|
147004
147038
|
fetchModels(tool, adapter) {
|
|
147005
147039
|
const running2 = this.modelFetches.get(tool);
|
|
147006
147040
|
if (running2) return running2;
|
|
147041
|
+
const epoch = this.modelEpoch.get(tool) ?? 0;
|
|
147042
|
+
const current = () => (this.modelEpoch.get(tool) ?? 0) === epoch;
|
|
147007
147043
|
const p = withTimeout(adapter.listModels(), MODEL_LIST_READ_MS, `${tool}'s model list`).then(
|
|
147008
147044
|
(models) => {
|
|
147009
|
-
|
|
147010
|
-
|
|
147045
|
+
if (current()) {
|
|
147046
|
+
this.modelCache.set(tool, { models, at: Date.now() });
|
|
147047
|
+
this.modelFailures.delete(tool);
|
|
147048
|
+
}
|
|
147011
147049
|
return models;
|
|
147012
147050
|
},
|
|
147013
147051
|
(err) => {
|
|
147014
|
-
this.modelFailures.set(tool, Date.now());
|
|
147052
|
+
if (current()) this.modelFailures.set(tool, Date.now());
|
|
147015
147053
|
throw err;
|
|
147016
147054
|
}
|
|
147017
147055
|
);
|
|
@@ -147022,6 +147060,16 @@ var ToolQueries = class {
|
|
|
147022
147060
|
p.then(clear, clear);
|
|
147023
147061
|
return p;
|
|
147024
147062
|
}
|
|
147063
|
+
/**
|
|
147064
|
+
* The tool's CLI changed (`AgentVersionService`, #2544): the list it gave, and the failure that held the next read off, were the old
|
|
147065
|
+
* CLI's. The next ask reads the new one, and a read still running for the old one is not kept.
|
|
147066
|
+
*/
|
|
147067
|
+
forgetModels(tool) {
|
|
147068
|
+
this.modelCache.delete(tool);
|
|
147069
|
+
this.modelFailures.delete(tool);
|
|
147070
|
+
this.modelFetches.delete(tool);
|
|
147071
|
+
this.modelEpoch.set(tool, (this.modelEpoch.get(tool) ?? 0) + 1);
|
|
147072
|
+
}
|
|
147025
147073
|
async listModels(tool) {
|
|
147026
147074
|
const adapter = this.host.adapters.get(tool);
|
|
147027
147075
|
if (!adapter?.listModels) {
|
|
@@ -157133,6 +157181,8 @@ var AgentVersionService = class {
|
|
|
157133
157181
|
since;
|
|
157134
157182
|
constructor(deps) {
|
|
157135
157183
|
this.deps = {
|
|
157184
|
+
versionChanged: () => {
|
|
157185
|
+
},
|
|
157136
157186
|
readAutoApply: () => true,
|
|
157137
157187
|
writeAutoApply: () => {
|
|
157138
157188
|
},
|
|
@@ -157180,7 +157230,9 @@ var AgentVersionService = class {
|
|
|
157180
157230
|
const tools = this.deps.tools().filter((t) => t.installedVersion);
|
|
157181
157231
|
const read2 = await Promise.all(tools.map(async (t) => [t.tool, await t.installedVersion().catch(() => null)]));
|
|
157182
157232
|
const installed = Object.fromEntries(read2);
|
|
157233
|
+
const before = this.status.installed;
|
|
157183
157234
|
this.status = { ...this.status, installed, checkedAt: this.deps.now() };
|
|
157235
|
+
for (const [tool, version2] of read2) if (tool in before && before[tool] !== version2) this.deps.versionChanged?.(tool);
|
|
157184
157236
|
this.deps.publish(this.current());
|
|
157185
157237
|
if (this.status.autoApply) for (const s of this.deps.sessions.listSessions()) this.lookSoon(s.id);
|
|
157186
157238
|
return this.current();
|
|
@@ -164828,7 +164880,7 @@ var handedToken = launch.tokenOnStdin ? await readHandedToken(process.stdin).cat
|
|
|
164828
164880
|
console.error(`[agent-host] the launcher did not hand over the token: ${e.message}`);
|
|
164829
164881
|
process.exit(1);
|
|
164830
164882
|
}) : launch.token;
|
|
164831
|
-
var BUILD = true ? "
|
|
164883
|
+
var BUILD = true ? "b9a5315" : "dev";
|
|
164832
164884
|
var { values } = parseArgs({
|
|
164833
164885
|
options: {
|
|
164834
164886
|
port: { type: "string", default: "5175" },
|
|
@@ -165062,6 +165114,7 @@ var agentVersions = new AgentVersionService({
|
|
|
165062
165114
|
notes: mgr.sessionSettings,
|
|
165063
165115
|
// Not listening yet: the first window asks
|
|
165064
165116
|
publish: (status) => events.push({ type: "agent_versions", status }),
|
|
165117
|
+
versionChanged: (tool) => mgr.toolQueries.forgetModels(tool),
|
|
165065
165118
|
readAutoApply: autoApplyAgentVersions.read,
|
|
165066
165119
|
writeAutoApply: autoApplyAgentVersions.write
|
|
165067
165120
|
});
|