@essentialai/cogent-bridge-bundled 3.25.0 → 3.25.1

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 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.25.0") {
26393
- return "3.25.0";
26392
+ if ("3.25.1") {
26393
+ return "3.25.1";
26394
26394
  }
26395
26395
  try {
26396
26396
  const require2 = createRequire(import.meta.url);
@@ -27028,7 +27028,8 @@ async function getHistory(peerId, limit = 150, includeRelayEchoes = false, metad
27028
27028
  timestamp: m.timestamp,
27029
27029
  durationMs: m.durationMs,
27030
27030
  isRelayEcho: m.isRelayEcho === true,
27031
- success: m.success
27031
+ success: m.success,
27032
+ attachmentCount: m.attachments?.length ?? 0
27032
27033
  }));
27033
27034
  return projected;
27034
27035
  }
@@ -37231,7 +37232,7 @@ function registerGetHistoryTool(server) {
37231
37232
  "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
37233
  ),
37233
37234
  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).'
37235
+ '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
37236
  ),
37236
37237
  dedupInferredEchoes: import_zod12.z.boolean().optional().default(false).describe(
37237
37238
  "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.0",
3
+ "version": "3.25.1",
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": {