@cotal-ai/connector-claude-code 0.1.0 → 0.1.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/hook.cjs +14 -9
- package/dist/mcp.cjs +1328 -576
- package/dist/mcp.js +42 -20
- package/dist/mcp.js.map +1 -1
- package/package.json +9 -4
package/dist/mcp.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
12
12
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
13
|
-
import { configFromEnv, hasIdentity, MeshAgent, controlSocketPath, startControlServer, registerCotalTools, laneLine, formatInjection, fmtFrom, channelMeta, } from "@cotal-ai/connector-core";
|
|
13
|
+
import { configFromEnv, hasIdentity, MeshAgent, controlSocketPath, startControlServer, registerCotalTools, laneLine, feedbackLine, formatInjection, fmtFrom, channelMeta, } from "@cotal-ai/connector-core";
|
|
14
14
|
/**
|
|
15
15
|
* Last tool Claude tried to use, captured on PreToolUse. When a permission Notification
|
|
16
16
|
* fires moments later, this is *what* it's blocked on — so the dashboard shows the actual
|
|
@@ -34,9 +34,14 @@ const claudeHandle = async (agent, ev) => {
|
|
|
34
34
|
const withContext = (text) => text ? { hookSpecificOutput: { hookEventName: event, additionalContext: text } } : {};
|
|
35
35
|
try {
|
|
36
36
|
switch (event) {
|
|
37
|
-
case "SessionStart":
|
|
37
|
+
case "SessionStart": {
|
|
38
38
|
await agent.setStatus("idle");
|
|
39
|
-
|
|
39
|
+
await agent.setAttention("open"); // F3: reset to fail-open on every (re)start — a crashed/restarted agent must not stay silently deaf
|
|
40
|
+
// Boot push: a one-line note per subscribed channel (if the registry has loaded),
|
|
41
|
+
// plus any messages waiting. Both are advisory context.
|
|
42
|
+
const parts = [agent.channelBriefing(), formatInjection(agent.drainInbox())].filter(Boolean);
|
|
43
|
+
return withContext(parts.length ? parts.join("\n\n") : undefined);
|
|
44
|
+
}
|
|
40
45
|
case "UserPromptSubmit":
|
|
41
46
|
pendingTool = undefined; // new turn — the previous block (if any) is resolved
|
|
42
47
|
await agent.setStatus("working");
|
|
@@ -64,10 +69,14 @@ const claudeHandle = async (agent, ev) => {
|
|
|
64
69
|
pendingTool = undefined; // turn ended — don't let a stale tool attach to an idle-wait notification
|
|
65
70
|
await agent.setStatus("idle");
|
|
66
71
|
// Now idle: if ambient channel chatter was held while we were busy, ask the channel to
|
|
67
|
-
// wake one turn so its UserPromptSubmit drains+acks the batch (
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
|
|
72
|
+
// wake one turn so its UserPromptSubmit drains+acks the batch. (Ack sites are two:
|
|
73
|
+
// drainInbox for surfaced items, and the focus ingest ack-drop for ambient/mentions a
|
|
74
|
+
// focus agent declined.) Stop can't inject context itself, so we must NOT drain here —
|
|
75
|
+
// that would ack with no vehicle to the model and silently lose the messages.
|
|
76
|
+
// Mode-aware: open flushes any held ambient too; dnd/focus wake only for held DIRECTED items
|
|
77
|
+
// (held ambient alone must not wake — it would empty-wake busy-loop; it rides the next human turn).
|
|
78
|
+
const pending = agent.attention === "open" ? agent.inboxCount() : agent.directedPendingCount();
|
|
79
|
+
if (pending > 0)
|
|
71
80
|
agent.requestWake();
|
|
72
81
|
return {};
|
|
73
82
|
case "SessionEnd":
|
|
@@ -102,12 +111,16 @@ async function main() {
|
|
|
102
111
|
instructions: `You are connected to the Cotal mesh as "${config.name}"` +
|
|
103
112
|
`${config.role ? ` (role: ${config.role})` : ""} in space "${config.space}". ` +
|
|
104
113
|
laneLine(config) +
|
|
114
|
+
feedbackLine(config) +
|
|
105
115
|
`Other agents coordinate with you here as lateral peers. ` +
|
|
106
116
|
`Peer messages may arrive as <channel source="cotal" from="<name>" role="<role>" ` +
|
|
107
117
|
`kind="dm|channel|anycast" channel="<name>">…</channel> — read them and, when a reply is ` +
|
|
108
118
|
`warranted, respond with cotal_dm (back to that peer), cotal_send (to a channel), or ` +
|
|
109
119
|
`cotal_anycast (to a role). Use cotal_roster to see who is present, cotal_inbox to pull ` +
|
|
110
120
|
`anything you may have missed, and cotal_status to report what you are doing. ` +
|
|
121
|
+
`If you need to concentrate, cotal_status also sets your attention — dnd (channel ` +
|
|
122
|
+
`chatter stops waking you; it still arrives on your next turn) or focus (only DMs and ` +
|
|
123
|
+
`@mentions reach your context — pull the held chatter with cotal_inbox). ` +
|
|
111
124
|
`Reply only when a reply is actually needed — a silent acknowledgement is correct; ` +
|
|
112
125
|
`"agreed/thanks/good point" messages are noise. And @-mention a peer only when you need ` +
|
|
113
126
|
`THAT specific peer to act: a mention wakes them, so mentioning in acknowledgements or ` +
|
|
@@ -117,17 +130,21 @@ async function main() {
|
|
|
117
130
|
// One wake-nudge path, shared by incoming messages and the Stop→idle flush. It stays a stable
|
|
118
131
|
// function gated on a *mutable* `channelActive` flag (flipped true only after the MCP
|
|
119
132
|
// handshake confirms the client speaks claude/channel — see below). If it fires before then it
|
|
120
|
-
// simply no-ops;
|
|
121
|
-
// UserPromptSubmit, so nothing is lost. This only ever *wakes* a turn
|
|
122
|
-
//
|
|
133
|
+
// simply no-ops; a *buffered* message waits in the inbox and is drained at the next
|
|
134
|
+
// UserPromptSubmit, so nothing is lost. This only ever *wakes* a turn (drainInbox and the focus
|
|
135
|
+
// ingest ack-drop are the ack sites). One exception: a focus @mention's body was already
|
|
136
|
+
// ack-dropped at ingest (not buffered), so a missed mention-wake is recoverable only by an
|
|
137
|
+
// explicit cotal_inbox pull (recall) — there is no buffered copy to drain.
|
|
123
138
|
let channelActive = false;
|
|
124
|
-
const nudge = (item) => {
|
|
139
|
+
const nudge = (item, pullHint) => {
|
|
125
140
|
if (!channelActive)
|
|
126
141
|
return;
|
|
127
142
|
const n = agent.inboxCount();
|
|
128
|
-
const content =
|
|
129
|
-
? `📨
|
|
130
|
-
:
|
|
143
|
+
const content = pullHint
|
|
144
|
+
? `📨 ${pullHint}`
|
|
145
|
+
: item
|
|
146
|
+
? `📨 New ${item.kind}${item.mentionsMe ? " — you were mentioned" : ""} from ${fmtFrom(item)} — delivering your Cotal inbox now.`
|
|
147
|
+
: `📨 ${n} Cotal message${n === 1 ? "" : "s"} waiting — delivering your inbox now.`;
|
|
131
148
|
void server.server
|
|
132
149
|
.notification({
|
|
133
150
|
method: "notifications/claude/channel",
|
|
@@ -135,15 +152,20 @@ async function main() {
|
|
|
135
152
|
})
|
|
136
153
|
.catch((e) => process.stderr.write(`[cotal-connector] channel nudge failed: ${e.message}\n`));
|
|
137
154
|
};
|
|
138
|
-
//
|
|
139
|
-
//
|
|
140
|
-
//
|
|
141
|
-
//
|
|
155
|
+
// Mode-aware wake. A *directed* message (DM, anycast, or an @mention of us) always nudges, so the
|
|
156
|
+
// addressee sees it promptly — woken now if idle, at the next turn boundary if busy. *Ambient*
|
|
157
|
+
// channel chatter nudges only in `open` while we're idle (suppressed mid-turn, never in dnd/focus).
|
|
158
|
+
// In `focus`, ambient/mentions never reach "incoming" (acked-and-dropped at ingest) — only directed
|
|
159
|
+
// does — so this nudges exactly the buffered, injectable set.
|
|
142
160
|
agent.on("incoming", (item) => {
|
|
143
|
-
const
|
|
144
|
-
|
|
161
|
+
const directedOrMention = item.kind !== "channel" || item.mentionsMe;
|
|
162
|
+
const ambientWakes = agent.attention === "open" && agent.status !== "working";
|
|
163
|
+
if (directedOrMention || ambientWakes)
|
|
145
164
|
nudge(item);
|
|
146
165
|
});
|
|
166
|
+
// Focus-only: a channel @mention was acked-and-dropped (not buffered) but still wakes us to PULL it
|
|
167
|
+
// — F4=B (wake-only). Its body isn't injected; cotal_inbox recalls it.
|
|
168
|
+
agent.on("mention-wake", (item) => nudge(item, `You were mentioned by ${fmtFrom(item)} on #${item.channel ?? "?"} — pull it with cotal_inbox.`));
|
|
147
169
|
agent.on("wake", () => nudge());
|
|
148
170
|
const shutdown = async () => {
|
|
149
171
|
try {
|
package/dist/mcp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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I,CAAC,CAAC;IACtF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cotal-ai/connector-claude-code",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/Cotal-AI/Cotal.git",
|
|
8
|
+
"directory": "extensions/connector-claude-code"
|
|
9
|
+
},
|
|
5
10
|
"type": "module",
|
|
6
11
|
"main": "./dist/index.js",
|
|
7
12
|
"types": "./dist/index.d.ts",
|
|
@@ -13,15 +18,15 @@
|
|
|
13
18
|
},
|
|
14
19
|
"dependencies": {
|
|
15
20
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
16
|
-
"@cotal-ai/connector-core": "0.1.
|
|
21
|
+
"@cotal-ai/connector-core": "0.1.3"
|
|
17
22
|
},
|
|
18
23
|
"peerDependencies": {
|
|
19
|
-
"@cotal-ai/core": "0.1.
|
|
24
|
+
"@cotal-ai/core": "0.1.2"
|
|
20
25
|
},
|
|
21
26
|
"devDependencies": {
|
|
22
27
|
"esbuild": "^0.28.0",
|
|
23
28
|
"tsx": "^4.22.4",
|
|
24
|
-
"@cotal-ai/core": "0.1.
|
|
29
|
+
"@cotal-ai/core": "0.1.2"
|
|
25
30
|
},
|
|
26
31
|
"files": [
|
|
27
32
|
"dist"
|