@centralu/host-win32-x64 0.1.0-beta.62 → 0.1.0-beta.64

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.
@@ -1,11 +1,11 @@
1
1
  {
2
- "commit": "4b3be7a",
2
+ "commit": "5ec3da6",
3
3
  "protocolVersion": 1,
4
4
  "hostProof": 1,
5
5
  "tokenOnStdin": 1,
6
6
  "verifiers": 1,
7
7
  "keyPairing": 1,
8
- "builtAt": "2026-11-12T19:57:28.399Z",
8
+ "builtAt": "2026-11-13T11:46:05.729Z",
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.62",
3
+ "version": "0.1.0-beta.64",
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.62",
42
- "@centralu/linux-arm64": "0.1.0-beta.62",
43
- "@centralu/linux-x64": "0.1.0-beta.62",
44
- "@centralu/win32-x64": "0.1.0-beta.62"
41
+ "@centralu/darwin-arm64": "0.1.0-beta.64",
42
+ "@centralu/linux-arm64": "0.1.0-beta.64",
43
+ "@centralu/linux-x64": "0.1.0-beta.64",
44
+ "@centralu/win32-x64": "0.1.0-beta.64"
45
45
  }
46
46
  }
@@ -3720,9 +3720,7 @@ var import_websocket_server = __toESM(require_websocket_server(), 1);
3720
3720
  var URL_ = process.env.CC_HOST_URL;
3721
3721
  var TOKEN = process.env.CC_BRIDGE_TOKEN;
3722
3722
  var SESSION_ID = process.env.CC_SESSION_ID;
3723
- var APP_SERVER = process.env.CC_APP_SERVER || null;
3724
- var APP_WAIT_MS = Number(process.env.CC_APP_WAIT_MS) || void 0;
3725
- var APP_CALL_TIMEOUT_MS = 28e4;
3723
+ var CALL_TIMEOUT_MS = 28e4;
3726
3724
  var log = (...a) => process.stderr.write(`[cc-bridge] ${a.join(" ")}
3727
3725
  `);
3728
3726
  var ws = null;
@@ -3783,12 +3781,11 @@ async function handle(msg) {
3783
3781
  return ok(id, {
3784
3782
  protocolVersion: params?.protocolVersion ?? "2025-06-18",
3785
3783
  capabilities: { tools: {} },
3786
- serverInfo: { name: APP_SERVER ?? "centralu", version: "1" }
3784
+ serverInfo: { name: "centralu", version: "1" }
3787
3785
  });
3788
3786
  }
3789
3787
  if (method === "notifications/initialized") return;
3790
3788
  if (method === "ping") return ok(id, {});
3791
- if (APP_SERVER) return handleApp(id, method, params);
3792
3789
  if (method === "tools/list") {
3793
3790
  try {
3794
3791
  const tools = await rpc("assistant.tools", { sessionId: SESSION_ID });
@@ -3802,8 +3799,9 @@ async function handle(msg) {
3802
3799
  const r = await rpc(
3803
3800
  "assistant.tool",
3804
3801
  { sessionId: SESSION_ID, name: params?.name, args: params?.arguments ?? {} },
3805
- APP_CALL_TIMEOUT_MS
3802
+ CALL_TIMEOUT_MS
3806
3803
  );
3804
+ if (Array.isArray(r.content)) return ok(id, { content: r.content, isError: r.isError === true, ...r.structuredContent ? { structuredContent: r.structuredContent } : {} });
3807
3805
  return ok(id, { content: [{ type: "text", text: r.text }], isError: r.isError === true });
3808
3806
  } catch (e) {
3809
3807
  const timedOut = /timed out/.test(e.message);
@@ -3813,29 +3811,6 @@ async function handle(msg) {
3813
3811
  }
3814
3812
  if (id !== void 0) err(id, `Unsupported method: ${method}`);
3815
3813
  }
3816
- async function handleApp(id, method, params) {
3817
- if (method === "tools/list") {
3818
- try {
3819
- const r = await rpc("apps.sessionTools", { sessionId: SESSION_ID, server: APP_SERVER });
3820
- return ok(id, { tools: r.tools });
3821
- } catch (e) {
3822
- return err(id, `Could not get the app's tool list \u2014 ${e.message}`);
3823
- }
3824
- }
3825
- if (method === "tools/call") {
3826
- try {
3827
- const r = await rpc(
3828
- "apps.sessionCall",
3829
- { sessionId: SESSION_ID, server: APP_SERVER, name: params?.name, args: params?.arguments ?? {}, ...APP_WAIT_MS ? { waitMs: APP_WAIT_MS } : {} },
3830
- APP_CALL_TIMEOUT_MS
3831
- );
3832
- return ok(id, r);
3833
- } catch (e) {
3834
- return ok(id, { content: [{ type: "text", text: `Could not run the app's tool \u2014 ${e.message}` }], isError: true });
3835
- }
3836
- }
3837
- if (id !== void 0) err(id, `Unsupported method: ${method}`);
3838
- }
3839
3814
  if (!URL_ || !TOKEN || !SESSION_ID) {
3840
3815
  log("CC_HOST_URL, CC_BRIDGE_TOKEN, and CC_SESSION_ID are required");
3841
3816
  process.exit(1);