compound-agent 1.2.8 → 1.2.10
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/CHANGELOG.md +32 -1
- package/README.md +10 -17
- package/dist/cli.js +1196 -727
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2600 -4
- package/dist/index.js +61 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -4
- package/dist/mcp.d.ts +0 -77
- package/dist/mcp.js +0 -1125
- package/dist/mcp.js.map +0 -1
- package/dist/types--TsW4ZqX.d.ts +0 -2601
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "compound-agent",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
4
4
|
"description": "Semantically-intelligent workflow plugin for Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"bin": {
|
|
9
9
|
"compound-agent": "./dist/cli.js",
|
|
10
|
-
"ca": "./dist/cli.js"
|
|
11
|
-
"compound-agent-mcp": "./dist/mcp.js"
|
|
10
|
+
"ca": "./dist/cli.js"
|
|
12
11
|
},
|
|
13
12
|
"exports": {
|
|
14
13
|
".": {
|
|
@@ -72,7 +71,6 @@
|
|
|
72
71
|
"vitest": "^2.0.0"
|
|
73
72
|
},
|
|
74
73
|
"dependencies": {
|
|
75
|
-
"@modelcontextprotocol/sdk": "1.26.0",
|
|
76
74
|
"better-sqlite3": "^11.0.0",
|
|
77
75
|
"chalk": "5.6.2",
|
|
78
76
|
"commander": "^12.0.0",
|
package/dist/mcp.d.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
-
import { M as MemoryItem } from './types--TsW4ZqX.js';
|
|
4
|
-
import 'zod';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* MCP Server for Compound Agent
|
|
8
|
-
*
|
|
9
|
-
* Exposes compound-agent functionality as MCP tools and resources:
|
|
10
|
-
* - memory_search: Search memory items by semantic similarity
|
|
11
|
-
* - memory_capture: Capture a new memory item
|
|
12
|
-
* - memory://prime: Get workflow context with high-severity memory items
|
|
13
|
-
*
|
|
14
|
-
* This is a thin wrapper - all business logic is delegated to existing modules.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/** Search result with lesson and score */
|
|
18
|
-
interface SearchResult {
|
|
19
|
-
lesson: MemoryItem;
|
|
20
|
-
score: number;
|
|
21
|
-
finalScore?: number;
|
|
22
|
-
}
|
|
23
|
-
/** Success result from memory_search tool */
|
|
24
|
-
interface SearchToolSuccess {
|
|
25
|
-
lessons: SearchResult[];
|
|
26
|
-
error?: undefined;
|
|
27
|
-
action?: undefined;
|
|
28
|
-
}
|
|
29
|
-
/** Error result from memory_search tool */
|
|
30
|
-
interface SearchToolError {
|
|
31
|
-
lessons: [];
|
|
32
|
-
error: string;
|
|
33
|
-
action: string;
|
|
34
|
-
}
|
|
35
|
-
/** Result from memory_search tool - typed union for success/failure */
|
|
36
|
-
type SearchToolResult = SearchToolSuccess | SearchToolError;
|
|
37
|
-
/**
|
|
38
|
-
* Type guard to check if search result is an error.
|
|
39
|
-
*
|
|
40
|
-
* @param result - The search tool result
|
|
41
|
-
* @returns true if the result is an error response
|
|
42
|
-
*/
|
|
43
|
-
declare function isSearchError(result: SearchToolResult): result is SearchToolError;
|
|
44
|
-
/** Result from memory_capture tool */
|
|
45
|
-
interface CaptureToolResult {
|
|
46
|
-
/** Unified memory item (all types) */
|
|
47
|
-
item: MemoryItem;
|
|
48
|
-
/** Backward-compatible alias (same object as item) */
|
|
49
|
-
lesson: MemoryItem;
|
|
50
|
-
}
|
|
51
|
-
/** Result from reading a resource */
|
|
52
|
-
interface ResourceResult {
|
|
53
|
-
content: string;
|
|
54
|
-
}
|
|
55
|
-
/** MCP Server wrapper with typed tool/resource methods */
|
|
56
|
-
interface CompoundAgentMcpServer {
|
|
57
|
-
/** The underlying MCP server instance */
|
|
58
|
-
server: McpServer;
|
|
59
|
-
/** Repository root path (immutable after creation) */
|
|
60
|
-
repoRoot: string;
|
|
61
|
-
callTool<T = SearchToolResult | CaptureToolResult>(name: string, params: Record<string, unknown>): Promise<T>;
|
|
62
|
-
readResource(uri: string): Promise<ResourceResult>;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Create an MCP server for compound-agent.
|
|
66
|
-
*
|
|
67
|
-
* @param repoRoot - Repository root directory (immutable after creation)
|
|
68
|
-
* @returns MCP server wrapper with typed tool/resource methods
|
|
69
|
-
*/
|
|
70
|
-
declare function createMcpServer(repoRoot: string): CompoundAgentMcpServer;
|
|
71
|
-
/**
|
|
72
|
-
* Register signal handlers for clean resource cleanup.
|
|
73
|
-
* Mirrors the CLI pattern in src/cli.ts.
|
|
74
|
-
*/
|
|
75
|
-
declare function registerMcpCleanup(): void;
|
|
76
|
-
|
|
77
|
-
export { type CompoundAgentMcpServer, type SearchToolResult, createMcpServer, isSearchError, registerMcpCleanup };
|