@cotal-ai/connector-claude-code 0.144.0 → 0.145.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/dist/setup.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- import { type ConnectorSetupProvider } from "@cotal-ai/core";
1
+ import { type ConnectorSetupProvider, type McpServerSpec } from "@cotal-ai/core";
2
+ /** What `claude mcp add` has to do for the user-scope entry, from what the user config declares now.
3
+ * Exported so a suite grades the comparison the registration acts on. */
4
+ export declare function userServerState(current: unknown, desired: McpServerSpec): "current" | "replace" | "add";
2
5
  export declare function materialize(name: string, root: string, assets: readonly string[], version?: string, files?: Readonly<Record<string, string>>): void;
3
6
  /** Exported so a suite can grade the manifest that is actually written, not a second copy of it. */
4
7
  export declare function marketplaceManifest(market: string): {
@@ -1 +1 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAMA,OAAO,EAML,KAAK,sBAAsB,EAM5B,MAAM,gBAAgB,CAAC;AAmKxB,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAAG,IAAI,CA8CvJ;AAqCD,oGAAoG;AACpG,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACnE,CAKA;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAK/D;AAoSD,eAAO,MAAM,mBAAmB,EAAE,sBA0GjC,CAAC"}
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAMA,OAAO,EAML,KAAK,sBAAsB,EAI3B,KAAK,aAAa,EAEnB,MAAM,gBAAgB,CAAC;AAqFxB;0EAC0E;AAC1E,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,KAAK,CAOvG;AA2HD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAAG,IAAI,CA8CvJ;AAqCD,oGAAoG;AACpG,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACnE,CAKA;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAK/D;AAoSD,eAAO,MAAM,mBAAmB,EAAE,sBA4GjC,CAAC"}
@@ -4,4 +4,13 @@ export declare function claudeUserMcpServers(): Record<string, unknown>;
4
4
  * stays with Claude, including approvals; reading those files here could grant an untrusted repo
5
5
  * a secret merely by referencing its name. No server definitions or credential values are copied. */
6
6
  export declare function claudeUserMcpEnvKeys(): string[];
7
+ /** The MCP server names Claude Code's own configuration declares for a session in `cwd`: the user
8
+ * config plus the project's `.mcp.json`. Names only; no server definition, env or credential is read
9
+ * into the launch. Claude Code binds a `server:<name>` wake channel only to one of these (measured
10
+ * on 2.1.295: a server named only in `--mcp-config` reads "no MCP server configured with that name"
11
+ * and the session never wakes on a peer message). */
12
+ export declare function claudeDeclaredServerNames(cwd: string): Set<string>;
13
+ /** Refuse a managed launch whose wake channel could not bind: without a declared server named
14
+ * `name`, the seat would join the mesh, report idle and never answer a turn or a direct message. */
15
+ export declare function assertChannelServerDeclared(name: string, cwd: string): void;
7
16
  //# sourceMappingURL=user-mcp.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-mcp.d.ts","sourceRoot":"","sources":["../src/user-mcp.ts"],"names":[],"mappings":"AAMA,8FAA8F;AAC9F,wBAAgB,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAU9D;AAED;;sGAEsG;AACtG,wBAAgB,oBAAoB,IAAI,MAAM,EAAE,CAI/C"}
1
+ {"version":3,"file":"user-mcp.d.ts","sourceRoot":"","sources":["../src/user-mcp.ts"],"names":[],"mappings":"AAMA,8FAA8F;AAC9F,wBAAgB,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAU9D;AAED;;sGAEsG;AACtG,wBAAgB,oBAAoB,IAAI,MAAM,EAAE,CAI/C;AAED;;;;sDAIsD;AACtD,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAYlE;AAED;qGACqG;AACrG,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAO3E"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cotal-ai/connector-claude-code",
3
3
  "description": "Cotal connector for Claude Code: an installed plugin that joins a session to the mesh.",
4
- "version": "0.144.0",
4
+ "version": "0.145.1",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -25,8 +25,8 @@
25
25
  "@cotal-ai/core": ">=0.1.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@cotal-ai/connector-core": "0.144.0",
29
- "@cotal-ai/core": "0.144.0",
28
+ "@cotal-ai/connector-core": "0.145.1",
29
+ "@cotal-ai/core": "0.145.1",
30
30
  "@cotal-ai/smoke-kit": "0.0.0",
31
31
  "@modelcontextprotocol/sdk": "^1.29.0",
32
32
  "@nats-io/transport-node": "^3.4.0",