@essentialai/cogent-bridge-bundled 3.25.0 → 3.25.2
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 -7
- package/package.json +1 -1
package/cogent-bridge.mjs
CHANGED
|
@@ -624,6 +624,7 @@ function hasJoinedInProcess() {
|
|
|
624
624
|
}
|
|
625
625
|
function markCloudAttemptInProcess() {
|
|
626
626
|
cloudAttemptInProcessFlag = true;
|
|
627
|
+
joinedInProcessFlag = false;
|
|
627
628
|
}
|
|
628
629
|
function hasCloudAttemptInProcess() {
|
|
629
630
|
return cloudAttemptInProcessFlag;
|
|
@@ -26389,8 +26390,8 @@ var init_stdio2 = __esm({
|
|
|
26389
26390
|
// src/constants.ts
|
|
26390
26391
|
import { createRequire } from "node:module";
|
|
26391
26392
|
function resolveVersion() {
|
|
26392
|
-
if ("3.25.
|
|
26393
|
-
return "3.25.
|
|
26393
|
+
if ("3.25.2") {
|
|
26394
|
+
return "3.25.2";
|
|
26394
26395
|
}
|
|
26395
26396
|
try {
|
|
26396
26397
|
const require2 = createRequire(import.meta.url);
|
|
@@ -27028,7 +27029,8 @@ async function getHistory(peerId, limit = 150, includeRelayEchoes = false, metad
|
|
|
27028
27029
|
timestamp: m.timestamp,
|
|
27029
27030
|
durationMs: m.durationMs,
|
|
27030
27031
|
isRelayEcho: m.isRelayEcho === true,
|
|
27031
|
-
success: m.success
|
|
27032
|
+
success: m.success,
|
|
27033
|
+
attachmentCount: m.attachments?.length ?? 0
|
|
27032
27034
|
}));
|
|
27033
27035
|
return projected;
|
|
27034
27036
|
}
|
|
@@ -36720,7 +36722,9 @@ var init_message = __esm({
|
|
|
36720
36722
|
replyExpected: import_zod6.z.boolean().optional().describe("Sender declares the message terminal \u2014 no reply expected. Absent/true = a reply is expected."),
|
|
36721
36723
|
error: import_zod6.z.string().nullable().describe("Error message if delivery failed"),
|
|
36722
36724
|
originPlatform: import_zod6.z.enum(["cc", "codex", "slack", "gchat", "web", "gemini", "whatsapp", "telegram", "discord"]).optional().describe("Platform that originated this message"),
|
|
36723
|
-
attachments: import_zod6.z.array(AttachmentSchema).optional().describe("Cogent Mail M2.5 \u2014 file references (byte transport = email)")
|
|
36725
|
+
attachments: import_zod6.z.array(AttachmentSchema).optional().describe("Cogent Mail M2.5 \u2014 file references (byte transport = email)"),
|
|
36726
|
+
isRelayEcho: import_zod6.z.boolean().optional().describe("Relay-stamped: the record is an auto-relay echo"),
|
|
36727
|
+
traceId: import_zod6.z.string().optional().describe("Relay-minted trace id, carried on frames/poll")
|
|
36724
36728
|
});
|
|
36725
36729
|
}
|
|
36726
36730
|
});
|
|
@@ -36846,9 +36850,9 @@ var init_api_requests = __esm({
|
|
|
36846
36850
|
peerSecret: import_zod10.z.string().min(1).max(256).optional().describe("AUD-003: proof of ownership when reclaiming a peer from a different token"),
|
|
36847
36851
|
cwd: import_zod10.z.string().max(FIELD_LIMITS.CWD_MAX).describe("Peer working directory path"),
|
|
36848
36852
|
label: import_zod10.z.string().max(FIELD_LIMITS.PEER_LABEL_MAX).describe("Human-readable peer label"),
|
|
36849
|
-
platform: import_zod10.z.enum(["cc", "codex", "slack", "gchat", "web", "gemini"]).optional().describe("Platform this peer belongs to"),
|
|
36853
|
+
platform: import_zod10.z.enum(["cc", "codex", "slack", "gchat", "web", "gemini", "whatsapp", "telegram", "discord"]).optional().describe("Platform this peer belongs to"),
|
|
36850
36854
|
type: import_zod10.z.enum(["agent", "human"]).optional().describe("Peer type"),
|
|
36851
|
-
transport: import_zod10.z.enum(["ws", "slack-bot", "gchat-bot", "websocket"]).optional().describe("Transport mechanism"),
|
|
36855
|
+
transport: import_zod10.z.enum(["ws", "slack-bot", "gchat-bot", "websocket", "whatsapp-cloud", "telegram-bot", "discord-bot"]).optional().describe("Transport mechanism"),
|
|
36852
36856
|
platformIdentity: import_zod10.z.record(import_zod10.z.string().max(64), import_zod10.z.string().max(FIELD_LIMITS.PLATFORM_IDENTITY_VALUE_MAX)).optional().describe("Platform-specific identity fields"),
|
|
36853
36857
|
role: import_zod10.z.string().max(64).optional().describe("A2A role advertised by this peer (Agent Card)"),
|
|
36854
36858
|
capabilities: import_zod10.z.array(import_zod10.z.string().max(64)).max(16).optional().describe("Capability strings \u2192 A2A Agent Card skills[]")
|
|
@@ -37231,7 +37235,7 @@ function registerGetHistoryTool(server) {
|
|
|
37231
37235
|
"Include auto-relay echo records that mirror the recipient's reply. Off by default to keep history readable; turn on for debugging the relay pipeline (260511-o3p, requires server 3.1.6+)."
|
|
37232
37236
|
),
|
|
37233
37237
|
metadataOnly: import_zod12.z.boolean().optional().default(false).describe(
|
|
37234
|
-
'Return records as metadata only \u2014 keys limited to {id, fromPeerId, toPeerId, timestamp, durationMs, isRelayEcho, success}. message and response bodies are omitted entirely. Target: \u226590% payload reduction for cheap "did head move?" polling. Added in 3.2 (HIST-02).'
|
|
37238
|
+
'Return records as metadata only \u2014 keys limited to {id, fromPeerId, toPeerId, timestamp, durationMs, isRelayEcho, success, attachmentCount}. message and response bodies are omitted entirely. Target: \u226590% payload reduction for cheap "did head move?" polling. Added in 3.2 (HIST-02); attachmentCount added by Cogent Mail M2.5.'
|
|
37235
37239
|
),
|
|
37236
37240
|
dedupInferredEchoes: import_zod12.z.boolean().optional().default(false).describe(
|
|
37237
37241
|
"Suppress untagged auto-relay echo records via content-and-direction heuristic: drop M[i] when M[i].message === M[i-1].response AND fromPeerId/toPeerId are swapped AND \u0394t < 120s. Catches the ~13% of echoes that bypass the isRelayEcho tag (peer-driven re-broadcasts). Requires server 3.2.1+; older servers ignore the param. Added in 3.2.1 (FIX-INFERRED-ECHO, Phase 18 light)."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@essentialai/cogent-bridge-bundled",
|
|
3
|
-
"version": "3.25.
|
|
3
|
+
"version": "3.25.2",
|
|
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": {
|