@codeforbreakfast/commy-mcp 0.25.4-rc.1 → 0.25.4
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/package.json +1 -1
- package/server.js +4 -3
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -40967,7 +40967,7 @@ class Server extends Protocol {
|
|
|
40967
40967
|
}
|
|
40968
40968
|
|
|
40969
40969
|
// packages/mcp/mcp-server.ts
|
|
40970
|
-
var PLUGIN_VERSION = "0.25.4
|
|
40970
|
+
var PLUGIN_VERSION = "0.25.4";
|
|
40971
40971
|
var COMMY_INSTRUCTIONS = `**Substrate.** commy is the inter-agent channel: agents and humans coordinate here. If you run it alongside other agent-messaging tools, keep one substrate canonical and don't fan the same message across all of them.
|
|
40972
40972
|
|
|
40973
40973
|
**Channels.** Each project has one channel: \`#<project-slug>\` where the slug is resolved per session as \`COMMY_PROJECT\` env > git remote \`origin\` basename > git root basename, lowercased with \`_\`, \`/\` and other punctuation turned into \`-\`. The slug is the whole name and is never shortened; your bot name may carry a shortened form of it, so don't read your channel off your bot name. Sessions launched outside a git repo (e.g. \`/tmp\`, \`$HOME\`) have no project channel and should post to \`#general\` instead. Don't invent a channel name from a metaphor — never post to a literal \`#home\`, \`#project\`, or \`#<project>\`. Use \`list_channels\` to enumerate what actually exists in the realm; posting to a non-existent channel throws \`UnknownChannel\` rather than silently routing to Notification Bot.
|
|
@@ -41329,7 +41329,7 @@ var buildToolDefs = (deps, cache) => {
|
|
|
41329
41329
|
const hostSuppliedSessionId = ["session_id"];
|
|
41330
41330
|
const cwdField = {
|
|
41331
41331
|
type: "string",
|
|
41332
|
-
description: "Calling session's working directory. In Claude Code, the PreToolUse hook injects this from the harness cwd; non-CC MCP clients may supply their own. Drives the project component of ephemeral cc-<project>-<8> names — without this the minted name
|
|
41332
|
+
description: "Calling session's working directory. In Claude Code, the PreToolUse hook injects this from the harness cwd; non-CC MCP clients may supply their own. Drives the project component of ephemeral cc-<project>-<8> names — without this, or when it is outside any repo, the minted name takes the project of the directory the server was launched in, or is a bare cc-<8> (an operator-forced COMMY_PROJECT slug overrides all of these)."
|
|
41333
41333
|
};
|
|
41334
41334
|
const readSessionId = (args) => getOrUndefined2(parseSessionId(args["session_id"]));
|
|
41335
41335
|
const feedSession = (sessionId) => sessionId === undefined || deps.feedSessionId === undefined ? _void : deps.feedSessionId(sessionId);
|
|
@@ -42064,6 +42064,7 @@ var makeProgram = (params = {}) => scoped2(gen2(function* () {
|
|
|
42064
42064
|
return deriveProject({ cwd, readGitContext: readGitContext2 });
|
|
42065
42065
|
};
|
|
42066
42066
|
const launchProject = getOrUndefined2(yield* projectForCwd(params.launchCwd));
|
|
42067
|
+
const projectForCall = (cwd) => projectForCwd(cwd).pipe(map18(orElse(() => fromNullable(launchProject))));
|
|
42067
42068
|
const canEditMessages = yield* adapter.publisher.editingAvailable().pipe(timeout2(EDITING_PROBE_TIMEOUT), catchAll2((error) => logWarning2(`commy plugin: could not read the realm's message-editing setting (${error.message}); offering edit_message and letting the substrate refuse if it is off`).pipe(as3(true))));
|
|
42068
42069
|
const narrowSet = createNarrowSet();
|
|
42069
42070
|
const mcp = buildMcpServer();
|
|
@@ -42127,7 +42128,7 @@ var makeProgram = (params = {}) => scoped2(gen2(function* () {
|
|
|
42127
42128
|
adapter,
|
|
42128
42129
|
identityCache,
|
|
42129
42130
|
narrowSet,
|
|
42130
|
-
projectForCwd,
|
|
42131
|
+
projectForCwd: projectForCall,
|
|
42131
42132
|
ensureSessionSubscriptions,
|
|
42132
42133
|
persistSessionSubscriptions,
|
|
42133
42134
|
feedSessionId,
|