@centralu/win32-x64 0.1.0-beta.15 → 0.1.0-beta.17
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
|
|
@@ -3718,7 +3718,7 @@ var import_websocket_server = __toESM(require_websocket_server(), 1);
|
|
|
3718
3718
|
|
|
3719
3719
|
// packages/agent-host/src/adapters/codex/orchestrator-bridge.mjs
|
|
3720
3720
|
var URL_ = process.env.CC_HOST_URL;
|
|
3721
|
-
var TOKEN = process.env.
|
|
3721
|
+
var TOKEN = process.env.CC_BRIDGE_TOKEN;
|
|
3722
3722
|
var SESSION_ID = process.env.CC_SESSION_ID;
|
|
3723
3723
|
var APP_SERVER = process.env.CC_APP_SERVER || null;
|
|
3724
3724
|
var APP_WAIT_MS = Number(process.env.CC_APP_WAIT_MS) || void 0;
|
|
@@ -3748,11 +3748,12 @@ function connect() {
|
|
|
3748
3748
|
else p.reject(new Error(f.error?.message ?? "host error"));
|
|
3749
3749
|
}
|
|
3750
3750
|
});
|
|
3751
|
-
sock.on("close", () => {
|
|
3751
|
+
sock.on("close", (code) => {
|
|
3752
3752
|
if (ws === sock) ws = null;
|
|
3753
|
+
const why = code === 4001 ? "Centralu refused this bridge's credential; restart the session to get a new one" : "the connection to Centralu closed before it answered; call the tool again";
|
|
3753
3754
|
for (const [id, p] of pending) {
|
|
3754
3755
|
pending.delete(id);
|
|
3755
|
-
p.reject(new Error(
|
|
3756
|
+
p.reject(new Error(why));
|
|
3756
3757
|
}
|
|
3757
3758
|
});
|
|
3758
3759
|
sock.on("open", () => {
|
|
@@ -3834,7 +3835,7 @@ async function handleApp(id, method, params) {
|
|
|
3834
3835
|
if (id !== void 0) err(id, `Unsupported method: ${method}`);
|
|
3835
3836
|
}
|
|
3836
3837
|
if (!URL_ || !TOKEN || !SESSION_ID) {
|
|
3837
|
-
log("CC_HOST_URL,
|
|
3838
|
+
log("CC_HOST_URL, CC_BRIDGE_TOKEN, and CC_SESSION_ID are required");
|
|
3838
3839
|
process.exit(1);
|
|
3839
3840
|
}
|
|
3840
3841
|
var buf = "";
|