@essentialai/cogent-bridge-bundled 3.23.0 → 3.23.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 +11 -5
- 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.23.
|
|
26393
|
-
return "3.23.
|
|
26392
|
+
if ("3.23.1") {
|
|
26393
|
+
return "3.23.1";
|
|
26394
26394
|
}
|
|
26395
26395
|
try {
|
|
26396
26396
|
const require2 = createRequire(import.meta.url);
|
|
@@ -35114,10 +35114,11 @@ async function clearMailCredentials(credentialPath) {
|
|
|
35114
35114
|
if (err.code !== "ENOENT") throw err;
|
|
35115
35115
|
}
|
|
35116
35116
|
}
|
|
35117
|
-
var MAIL_DEFAULT_HOST;
|
|
35117
|
+
var MAIL_NOT_CONFIGURED_HINT, MAIL_DEFAULT_HOST;
|
|
35118
35118
|
var init_mail_credential_store = __esm({
|
|
35119
35119
|
"src/cloud/mail-credential-store.ts"() {
|
|
35120
35120
|
"use strict";
|
|
35121
|
+
MAIL_NOT_CONFIGURED_HINT = "Cogent Mail requires a Team channel, where each agent's mailbox is provisioned AUTOMATICALLY when it registers \u2014 there is nothing to set up by hand and no password for anyone to hand over. If this IS a Team channel, restart the agent so it re-registers and retries provisioning (the relay logs the reason if it fails). Free channels do not have mailboxes. cogent_setup_mail remains available for a self-hosted or manually provisioned mailbox.";
|
|
35121
35122
|
MAIL_DEFAULT_HOST = "mail.cogent.tools";
|
|
35122
35123
|
}
|
|
35123
35124
|
});
|
|
@@ -35288,6 +35289,11 @@ function registerRegisterPeerTool(server) {
|
|
|
35288
35289
|
);
|
|
35289
35290
|
}
|
|
35290
35291
|
}
|
|
35292
|
+
if (peer?.mailboxError) {
|
|
35293
|
+
logger.warn(
|
|
35294
|
+
`Cogent Mail: mailbox provisioning FAILED (${peer.mailboxError.code}) \u2014 ${peer.mailboxError.message}`
|
|
35295
|
+
);
|
|
35296
|
+
}
|
|
35291
35297
|
try {
|
|
35292
35298
|
if (await persistProvisionedMailbox(peer?.mailbox)) {
|
|
35293
35299
|
logger.info(`Cogent Mail: saved auto-provisioned mailbox ${peer.mailbox?.address}`);
|
|
@@ -37020,7 +37026,7 @@ function registerSendMailTool(server, deps = {}) {
|
|
|
37020
37026
|
new BridgeError(
|
|
37021
37027
|
"INVALID_INPUT" /* INVALID_INPUT */,
|
|
37022
37028
|
"No mailbox is configured for this agent",
|
|
37023
|
-
|
|
37029
|
+
MAIL_NOT_CONFIGURED_HINT
|
|
37024
37030
|
)
|
|
37025
37031
|
);
|
|
37026
37032
|
}
|
|
@@ -37221,7 +37227,7 @@ function registerFetchMailTool(server, deps = {}) {
|
|
|
37221
37227
|
new BridgeError(
|
|
37222
37228
|
"INVALID_INPUT" /* INVALID_INPUT */,
|
|
37223
37229
|
"No mailbox is configured for this agent",
|
|
37224
|
-
|
|
37230
|
+
MAIL_NOT_CONFIGURED_HINT
|
|
37225
37231
|
)
|
|
37226
37232
|
);
|
|
37227
37233
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@essentialai/cogent-bridge-bundled",
|
|
3
|
-
"version": "3.23.
|
|
3
|
+
"version": "3.23.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": {
|