@cotal-ai/connector-claude-code 0.134.0 → 0.135.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/mcp.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../src/mcp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAsKtD,yFAAyF;AACzF,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;IACvB,KAAK,EAAE,QAAQ,CAAC;IAChB,MAAM,EAAE,QAAQ,CAAC;IACjB;uDACmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;gFAC4E;IAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb;uDACmD;IACnD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED;;+BAE+B;AAC/B,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC,CAQ3F;AA4JD;;;;;;;;GAQG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAOnD"}
1
+ {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../src/mcp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA6KtD,yFAAyF;AACzF,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;IACvB,KAAK,EAAE,QAAQ,CAAC;IAChB,MAAM,EAAE,QAAQ,CAAC;IACjB;uDACmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;gFAC4E;IAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb;uDACmD;IACnD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED;;+BAE+B;AAC/B,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC,CAQ3F;AA4JD;;;;;;;;GAQG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAOnD"}
@@ -0,0 +1,24 @@
1
+ /** The env name carrying the absolute real path of the `claude` file a once launch started. */
2
+ export declare const HOST_EXE_ENV = "COTAL_CLAUDE_EXE";
3
+ /** The `claude` process a managed once seat's MCP server runs under, as recorded at the server's
4
+ * start: its pid, its start token, and the real path of its executable. */
5
+ export interface ClaudeHost {
6
+ pid: number;
7
+ start: string;
8
+ exe: string;
9
+ }
10
+ /** Resolve the `claude` a once launch starts to its absolute real path, so the seat can tell its
11
+ * parent is that file. Linux only, where the seat can read its parent's identity; elsewhere, or
12
+ * when nothing resolves, it answers undefined and the launch passes no path. */
13
+ export declare function resolveHostExe(binary: string, env: Record<string, string>): string | undefined;
14
+ /** Record this MCP server's parent as the seat's `claude`, only when its executable is the file the
15
+ * launch named in {@link HOST_EXE_ENV}. A wrapper (a script run by node or a shell) does not match,
16
+ * and nothing is recorded, so the once exit declines. */
17
+ export declare function recordHost(env: NodeJS.ProcessEnv, pid?: number): ClaudeHost | undefined;
18
+ /** End the seat's `claude`: SIGTERM while it is still the recorded process, then SIGKILL if it is
19
+ * still that process after {@link TERM_WAIT_MS}, rereading pid, start token and executable right
20
+ * before each signal. Resolves true once that process is gone. Resolves false, and sends nothing
21
+ * more, when nothing was recorded, the process changed or cannot be read, or it outlived SIGKILL:
22
+ * the seat could not be ended, and its once report goes on. */
23
+ export declare function endHost(host: ClaudeHost | undefined): Promise<boolean>;
24
+ //# sourceMappingURL=once-exit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"once-exit.d.ts","sourceRoot":"","sources":["../src/once-exit.ts"],"names":[],"mappings":"AAGA,+FAA+F;AAC/F,eAAO,MAAM,YAAY,qBAAqB,CAAC;AAM/C;4EAC4E;AAC5E,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;iFAEiF;AACjF,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,GAAG,SAAS,CAW9F;AAiBD;;0DAE0D;AAC1D,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,EAAE,GAAG,SAAe,GAAG,UAAU,GAAG,SAAS,CAW7F;AAWD;;;;gEAIgE;AAChE,wBAAsB,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,CAS5E"}
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.134.0",
4
+ "version": "0.135.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.134.0",
29
- "@cotal-ai/core": "0.134.0",
28
+ "@cotal-ai/connector-core": "0.135.1",
29
+ "@cotal-ai/core": "0.135.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",