jefrichat-mcp 0.48.2 → 0.48.3
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/dist/index.js +10 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42200,6 +42200,10 @@ var NAME = process.env.JEFRI_NAME ?? USERNAME;
|
|
|
42200
42200
|
var TAGS = (process.env.JEFRI_TAGS ?? "").split(",").map((s) => s.trim()).filter(Boolean);
|
|
42201
42201
|
var CAPS = (process.env.JEFRI_CAPABILITIES ?? "coding").split(",").map((s) => s.trim()).filter(Boolean);
|
|
42202
42202
|
var log = (...a) => console.error("[jefrichat-mcp]", ...a);
|
|
42203
|
+
var VERBOSE = process.env.JEFRI_DEBUG === "1" || process.env.JEFRI_VERBOSE === "1";
|
|
42204
|
+
var note = (...a) => {
|
|
42205
|
+
if (VERBOSE) log(...a);
|
|
42206
|
+
};
|
|
42203
42207
|
var TOKEN_CACHE = path3.join(os7.homedir(), ".jefri", "tokens.json");
|
|
42204
42208
|
var LEGACY_TOKEN_CACHE = path3.join(os7.homedir(), ".acp", "tokens.json");
|
|
42205
42209
|
var cacheKey = `${SERVER}::${USERNAME}`;
|
|
@@ -42332,9 +42336,9 @@ function ensureClient() {
|
|
|
42332
42336
|
log("control socket unavailable (panel disabled):", e?.message ?? e);
|
|
42333
42337
|
}
|
|
42334
42338
|
if (macNeedsTerminalNotifier)
|
|
42335
|
-
|
|
42339
|
+
note("tip: for reliable desktop notifications on macOS, run: brew install terminal-notifier");
|
|
42336
42340
|
if (getAuto().enabled)
|
|
42337
|
-
|
|
42341
|
+
note(`autonomous mode is ON \u2014 incoming messages will be handled by "${getAuto().brain}" in ${getAuto().workdir}`);
|
|
42338
42342
|
const handleIncoming = (m) => {
|
|
42339
42343
|
const preview = m.kind === "file" ? `\u{1F4CE} ${m.fileName ?? "file"}` : m.content ?? "";
|
|
42340
42344
|
const isGroup = !!m.groupId;
|
|
@@ -42429,7 +42433,7 @@ function ensureClient() {
|
|
|
42429
42433
|
);
|
|
42430
42434
|
});
|
|
42431
42435
|
c2.on("debate_cancel", (ev) => cancelDebate(String(ev?.debateId ?? ""), Number(ev?.turnSeq ?? -999)));
|
|
42432
|
-
|
|
42436
|
+
note(`connected to ${SERVER} as ${self}`);
|
|
42433
42437
|
return c2;
|
|
42434
42438
|
})().catch((e) => {
|
|
42435
42439
|
clientPromise = null;
|
|
@@ -42482,19 +42486,19 @@ async function main() {
|
|
|
42482
42486
|
}
|
|
42483
42487
|
};
|
|
42484
42488
|
await server.connect(transport);
|
|
42485
|
-
|
|
42489
|
+
note(`MCP server ready \u2014 identity @${USERNAME}, Jefri Chat server ${SERVER}`);
|
|
42486
42490
|
let shuttingDown = false;
|
|
42487
42491
|
const shutdownOnHostClose = () => {
|
|
42488
42492
|
if (shuttingDown) return;
|
|
42489
42493
|
shuttingDown = true;
|
|
42490
|
-
|
|
42494
|
+
note("host closed the connection (stdin EOF) \u2014 shutting connector down");
|
|
42491
42495
|
process.exit(0);
|
|
42492
42496
|
};
|
|
42493
42497
|
process.stdin.once("end", shutdownOnHostClose);
|
|
42494
42498
|
process.stdin.once("close", shutdownOnHostClose);
|
|
42495
42499
|
void checkForUpdate().then((u) => {
|
|
42496
42500
|
if (u?.outdated)
|
|
42497
|
-
|
|
42501
|
+
note(
|
|
42498
42502
|
`\u2191 update available: jefrichat-mcp ${u.current} \u2192 ${u.latest}. Reconnect this agent (npx jefrichat-mcp@latest, or 'npm update -g jefrichat-mcp@latest' if globally installed) to get it.`
|
|
42499
42503
|
);
|
|
42500
42504
|
}).catch(() => {
|
package/package.json
CHANGED