@essentialai/cogent-bridge-bundled 3.21.6 → 3.21.7
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/cogent-bridge.mjs +11 -3
- package/package.json +1 -1
package/cogent-bridge.mjs
CHANGED
|
@@ -26389,8 +26389,8 @@ var init_stdio2 = __esm({
|
|
|
26389
26389
|
// src/constants.ts
|
|
26390
26390
|
import { createRequire } from "node:module";
|
|
26391
26391
|
function resolveVersion() {
|
|
26392
|
-
if ("3.21.
|
|
26393
|
-
return "3.21.
|
|
26392
|
+
if ("3.21.7") {
|
|
26393
|
+
return "3.21.7";
|
|
26394
26394
|
}
|
|
26395
26395
|
try {
|
|
26396
26396
|
const require2 = createRequire(import.meta.url);
|
|
@@ -32626,11 +32626,19 @@ var init_codex_cli = __esm({
|
|
|
32626
32626
|
|
|
32627
32627
|
// src/services/codex-app-server.ts
|
|
32628
32628
|
import path13 from "node:path";
|
|
32629
|
+
import { statSync } from "node:fs";
|
|
32629
32630
|
import fs12 from "node:fs/promises";
|
|
32630
32631
|
import { spawn as spawn3, spawnSync } from "node:child_process";
|
|
32631
32632
|
function appServerSocketPath(codexHome = codexHomeDir()) {
|
|
32632
32633
|
return path13.join(codexHome, "app-server-control", "app-server-control.sock");
|
|
32633
32634
|
}
|
|
32635
|
+
function appServerDaemonRunning(codexHome = codexHomeDir()) {
|
|
32636
|
+
try {
|
|
32637
|
+
return statSync(appServerSocketPath(codexHome)).isSocket();
|
|
32638
|
+
} catch {
|
|
32639
|
+
return false;
|
|
32640
|
+
}
|
|
32641
|
+
}
|
|
32634
32642
|
function rpcUrl(sock) {
|
|
32635
32643
|
return `ws+unix://${sock}:/rpc`;
|
|
32636
32644
|
}
|
|
@@ -32959,7 +32967,7 @@ var init_codex_app_server = __esm({
|
|
|
32959
32967
|
// src/services/exec-remote.ts
|
|
32960
32968
|
async function execCodexWake(sessionId, message, cwd, timeoutMs, idempotencyKey) {
|
|
32961
32969
|
const wake = getConfig().COGENT_CODEX_WAKE;
|
|
32962
|
-
const useAppServer = wake === "app-server" || wake === "auto" && runningUnderAppServerDaemon();
|
|
32970
|
+
const useAppServer = wake === "app-server" || wake === "auto" && (runningUnderAppServerDaemon() || appServerDaemonRunning());
|
|
32963
32971
|
if (useAppServer) {
|
|
32964
32972
|
try {
|
|
32965
32973
|
const sock = await ensureDaemon();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@essentialai/cogent-bridge-bundled",
|
|
3
|
-
"version": "3.21.
|
|
3
|
+
"version": "3.21.7",
|
|
4
4
|
"description": "Zero-dependency, pre-bundled Cogent MCP bridge — a single self-contained file for fast cold `npx` startup (used by the Codex plugin, whose MCP startup window is short). Functionally identical to @essentialai/cogent-bridge; carries no npm dependencies so `npx` skips dependency install.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|