@centralu/win32-x64 0.1.0-beta.74 → 0.1.0-beta.75

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.
Binary file
@@ -1,11 +1,11 @@
1
1
  {
2
- "commit": "a599200",
2
+ "commit": "a401449",
3
3
  "protocolVersion": 1,
4
4
  "hostProof": 1,
5
5
  "tokenOnStdin": 1,
6
6
  "verifiers": 1,
7
7
  "keyPairing": 1,
8
- "builtAt": "2026-11-16T15:31:22.591Z",
8
+ "builtAt": "2026-11-17T06:45:44.132Z",
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.74",
3
+ "version": "0.1.0-beta.75",
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.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"
41
+ "@centralu/darwin-arm64": "0.1.0-beta.75",
42
+ "@centralu/linux-arm64": "0.1.0-beta.75",
43
+ "@centralu/linux-x64": "0.1.0-beta.75",
44
+ "@centralu/win32-x64": "0.1.0-beta.75"
45
45
  }
46
46
  }
@@ -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.74";
43049
+ var APP_VERSION = "0.1.0-beta.75";
43050
43050
 
43051
43051
  // packages/protocol/src/brand.ts
43052
43052
  var APP_NAME = "Centralu";
@@ -128726,7 +128726,7 @@ var AcpAdapter = class {
128726
128726
  const label = this.profile.descriptor.label;
128727
128727
  const launch2 = await this.profile.launch(opts);
128728
128728
  if (!launch2) throw toolNotInstalled(label, this.profile.descriptor.install);
128729
- const spec = { command: launch2.command, args: launch2.args, cwd: launch2.cwd ?? opts.cwd, env: { ...process.env, ...launch2.env } };
128729
+ const spec = { command: launch2.command, args: launch2.args, cwd: opts.cwd, env: { ...process.env, ...launch2.env } };
128730
128730
  const source = opts.processSource;
128731
128731
  const shape = this.profile.shape;
128732
128732
  if (source?.adopt) await closeAdopted(source.adopt, opts.sessionId, emit).catch(async (err) => {
@@ -129379,7 +129379,7 @@ function agyEnv(home, browser) {
129379
129379
  return { GEMINI_HOME: home.geminiHome, BROWSER: browser };
129380
129380
  }
129381
129381
  function agyLaunch(home, archive, browser) {
129382
- return { command: agyProgram(home, archive), args: [...archive.args], cwd: home.root, env: agyEnv(home, browser) };
129382
+ return { command: agyProgram(home, archive), args: [...archive.args], env: agyEnv(home, browser) };
129383
129383
  }
129384
129384
 
129385
129385
  // packages/agent-host/src/adapters/antigravity/shape.ts
@@ -129490,7 +129490,7 @@ async function runSignIn(home, archive, signal, deps = {}) {
129490
129490
  openUrl(url2);
129491
129491
  };
129492
129492
  const launch2 = agyLaunch(home, archive, folder.browser);
129493
- const spec = { ...launch2, env: { ...process.env, ...launch2.env } };
129493
+ const spec = { ...launch2, cwd: home.root, env: { ...process.env, ...launch2.env } };
129494
129494
  const proc = startToolProcess(spec, deps.spawn ? { spawn: deps.spawn } : {});
129495
129495
  const lines = lineSplitter((line) => {
129496
129496
  const m = URL_LINE.exec(line);
@@ -129715,7 +129715,7 @@ async function gather() {
129715
129715
  const home = agyHome(dataRoot(), AGY_RELEASE.version);
129716
129716
  if (!archive || !isInstalled(home, archive)) throw new Error("Antigravity is not installed by Centralu on this machine");
129717
129717
  const launch2 = agyLaunch(home, archive, "");
129718
- const initialize = await acpInitialize({ ...launch2, env: { ...process.env, ...launch2.env } }, "antigravity-surface", agyStderrLine);
129718
+ const initialize = await acpInitialize({ ...launch2, cwd: home.root, env: { ...process.env, ...launch2.env } }, "antigravity-surface", agyStderrLine);
129719
129719
  return { version: AGY_RELEASE.version, initialize };
129720
129720
  }
129721
129721
  function readAgySurface(inputs) {
@@ -130703,7 +130703,12 @@ var INJECTED_TAGS = [
130703
130703
  "command-args",
130704
130704
  "local-command-stdout",
130705
130705
  "local-command-stderr",
130706
- "user-prompt-submit-hook"
130706
+ "user-prompt-submit-hook",
130707
+ /*
130708
+ * Claude Code's notice that a background task ended (#2323). A Claude transcript says who wrote such a line
130709
+ * (claude/history.ts `writtenByTheCli`); the tag is for a line read without that, from an SDK or CLI that does not give it
130710
+ */
130711
+ "task-notification"
130707
130712
  ];
130708
130713
  var BLOCK = new RegExp(`<(${INJECTED_TAGS.join("|")})\\b[^>]*>[\\s\\S]*?</\\1>`, "gi");
130709
130714
  var OPEN_ONLY = new RegExp(`<(${INJECTED_TAGS.join("|")})\\b[^>]*>[\\s\\S]*$`, "i");
@@ -131047,8 +131052,8 @@ async function readClaudeTranscriptTail(externalId, cwd, last) {
131047
131052
  var COMPACT_SUMMARY = /^This session is being continued from a previous conversation that ran out of context\./;
131048
131053
  async function readClaudeHistory(externalId, cwd, limit) {
131049
131054
  const sdk = await sessionApi();
131050
- if (!sdk?.getSessionMessages) throw new Error(UNSUPPORTED);
131051
- const rows3 = await sdk.getSessionMessages(externalId, { dir: cwd });
131055
+ if (!sdk) throw new Error(UNSUPPORTED);
131056
+ const { rows: rows3, byTheCli } = await readTranscript(sdk, externalId, cwd);
131052
131057
  if (!Array.isArray(rows3)) return [];
131053
131058
  const out = [];
131054
131059
  const agents = /* @__PURE__ */ new Set();
@@ -131056,13 +131061,40 @@ async function readClaudeHistory(externalId, cwd, limit) {
131056
131061
  try {
131057
131062
  const message = readableMessage(r?.message);
131058
131063
  if (r?.type === "assistant") out.push(...assistantLines(message, agents));
131059
- else if (r?.type === "user") out.push(...userLines(message, agents, isCentraluInputId(r.uuid)));
131064
+ else if (r?.type === "user") {
131065
+ const sent = isCentraluInputId(r.uuid);
131066
+ out.push(...userLines(message, agents, sent, !sent && typeof r.uuid === "string" && byTheCli.has(r.uuid)));
131067
+ }
131060
131068
  } catch (err) {
131061
131069
  console.error(`[claude] a transcript row was skipped on read-back: ${err.message}`);
131062
131070
  }
131063
131071
  }
131064
131072
  return lastLines(out, limit);
131065
131073
  }
131074
+ async function readTranscript(sdk, externalId, cwd) {
131075
+ if (!sdk.getSessionMessages) throw new Error(UNSUPPORTED);
131076
+ if (sdk.importSessionToStore) {
131077
+ const kept = [];
131078
+ const store2 = {
131079
+ append: async (_key, batch) => void kept.push(...batch),
131080
+ load: async (key2) => isObj(key2) && key2.subpath !== void 0 ? null : kept
131081
+ };
131082
+ try {
131083
+ await sdk.importSessionToStore(externalId, store2, { dir: cwd, includeSubagents: false });
131084
+ const rows3 = await sdk.getSessionMessages(externalId, { dir: cwd, sessionStore: store2 });
131085
+ const byTheCli = /* @__PURE__ */ new Set();
131086
+ for (const e of kept) if (isObj(e) && e.type === "user" && typeof e.uuid === "string" && writtenByTheCli(e)) byTheCli.add(e.uuid);
131087
+ return { rows: rows3, byTheCli };
131088
+ } catch (err) {
131089
+ console.error(`[claude] the transcript's own entries could not be read, so who wrote a line is judged by its text: ${errorMessage(err)}`);
131090
+ }
131091
+ }
131092
+ return { rows: await sdk.getSessionMessages(externalId, { dir: cwd }), byTheCli: /* @__PURE__ */ new Set() };
131093
+ }
131094
+ function writtenByTheCli(entry) {
131095
+ if (entry.isMeta === true || entry.promptSource === "system") return true;
131096
+ return isObj(entry.origin) && entry.origin.kind !== "human";
131097
+ }
131066
131098
  function readableMessage(message) {
131067
131099
  if (typeof message === "string") return { content: [{ type: "text", text: message }] };
131068
131100
  if (!isObj(message)) return { content: [] };
@@ -131085,10 +131117,10 @@ function agentResult(e, agents) {
131085
131117
  return toolResultEvent(HISTORY_SESSION, e.callId, e.ok, "", AGENT_REPORT_NOT_RECORDED);
131086
131118
  }
131087
131119
  var INTERRUPT_LINE = /^\[Request interrupted by user( for tool use)?\]$/;
131088
- function userLines(message, agents, sent) {
131120
+ function userLines(message, agents, sent, cli) {
131089
131121
  const raw = userText(message);
131090
131122
  if (COMPACT_SUMMARY.test(raw)) return [{ role: "system", event: { type: "compaction", sessionId: HISTORY_SESSION, failed: false } }];
131091
- const text3 = INTERRUPT_LINE.test(raw) ? "" : stripInjectedBlocks(raw);
131123
+ const text3 = cli || INTERRUPT_LINE.test(raw) ? "" : stripInjectedBlocks(raw);
131092
131124
  const note = isCentraluNote(text3);
131093
131125
  if (note && !sent) console.error("[claude] Centralu's Continue note is in the transcript without the input id Centralu gave it: this CLI does not keep it. The catch-up recognises the note by its text");
131094
131126
  const out = text3 ? [{ role: "user", text: text3, ...sent || note ? { sent: true } : {} }] : [];
@@ -164113,7 +164145,7 @@ var handedToken = launch.tokenOnStdin ? await readHandedToken(process.stdin).cat
164113
164145
  console.error(`[agent-host] the launcher did not hand over the token: ${e.message}`);
164114
164146
  process.exit(1);
164115
164147
  }) : launch.token;
164116
- var BUILD = true ? "a599200" : "dev";
164148
+ var BUILD = true ? "a401449" : "dev";
164117
164149
  var { values } = parseArgs({
164118
164150
  options: {
164119
164151
  port: { type: "string", default: "5175" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centralu/win32-x64",
3
- "version": "0.1.0-beta.74",
3
+ "version": "0.1.0-beta.75",
4
4
  "description": "Centralu app folder for Windows on x86-64",
5
5
  "license": "MIT",
6
6
  "author": "ijun17",