agent-recorder 2.0.11 → 2.0.13
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/bundle.js +4 -0
- package/dist/bundle.js.map +1 -1
- package/dist/embed.d.ts +21 -0
- package/dist/embed.d.ts.map +1 -0
- package/dist/embed.js +22 -0
- package/dist/embed.js.map +1 -0
- package/package.json +8 -1
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.js +1 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/mcp-server.d.ts +11 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/mcp-server.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/mcp-server.js +442 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/mcp-server.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.d.ts +2 -51
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.js +2 -113
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.js +1 -1
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/cli/index.js +10 -0
- package/vendor/node_modules/@agent-recorder/cli/index.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/cli/package.json +1 -1
- package/vendor/node_modules/@agent-recorder/core/claude-config.d.ts +23 -0
- package/vendor/node_modules/@agent-recorder/core/claude-config.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/claude-config.js +50 -0
- package/vendor/node_modules/@agent-recorder/core/claude-config.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/config.d.ts +6 -1
- package/vendor/node_modules/@agent-recorder/core/config.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/config.js +4 -1
- package/vendor/node_modules/@agent-recorder/core/config.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/events-complete.test.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/core/db/events-complete.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/events-complete.test.js +133 -0
- package/vendor/node_modules/@agent-recorder/core/db/events-complete.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/events.d.ts +23 -36
- package/vendor/node_modules/@agent-recorder/core/db/events.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/events.js +70 -2
- package/vendor/node_modules/@agent-recorder/core/db/events.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/events.test.js +62 -1
- package/vendor/node_modules/@agent-recorder/core/db/events.test.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/index.d.ts +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/index.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/index.js +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/index.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/sessions.d.ts +2 -5
- package/vendor/node_modules/@agent-recorder/core/db/sessions.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/sessions.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/migrations/007_add_correlation_id.sql +11 -0
- package/vendor/node_modules/@agent-recorder/core/package.json +1 -1
- package/vendor/node_modules/@agent-recorder/core/types/index.d.ts +4 -2
- package/vendor/node_modules/@agent-recorder/core/types/index.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/types/index.js +3 -0
- package/vendor/node_modules/@agent-recorder/core/types/index.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/utils/redact.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/utils/redact.js +6 -3
- package/vendor/node_modules/@agent-recorder/core/utils/redact.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/utils/redact.test.d.ts +6 -0
- package/vendor/node_modules/@agent-recorder/core/utils/redact.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/redact.test.js +82 -0
- package/vendor/node_modules/@agent-recorder/core/utils/redact.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/hooks/package.json +1 -1
- package/vendor/node_modules/@agent-recorder/service/daemon-context.d.ts +14 -0
- package/vendor/node_modules/@agent-recorder/service/daemon-context.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/daemon-context.js +15 -0
- package/vendor/node_modules/@agent-recorder/service/daemon-context.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/index.d.ts +1 -8
- package/vendor/node_modules/@agent-recorder/service/index.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/index.js +14 -22
- package/vendor/node_modules/@agent-recorder/service/index.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.d.ts +27 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.js +109 -34
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/types.d.ts +5 -31
- package/vendor/node_modules/@agent-recorder/service/mcp/types.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/types.js +3 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/types.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/upstreams-cache.test.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/upstreams-cache.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/upstreams-cache.test.js +66 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/upstreams-cache.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/package.json +1 -1
- package/vendor/node_modules/@agent-recorder/service/routes/events.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/routes/events.js +42 -1
- package/vendor/node_modules/@agent-recorder/service/routes/events.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/routes/health.d.ts +6 -1
- package/vendor/node_modules/@agent-recorder/service/routes/health.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/routes/health.js +5 -6
- package/vendor/node_modules/@agent-recorder/service/routes/health.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/routes/hooks.d.ts +20 -0
- package/vendor/node_modules/@agent-recorder/service/routes/hooks.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/routes/hooks.js +391 -47
- package/vendor/node_modules/@agent-recorder/service/routes/hooks.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/routes/hooks.test.d.ts +9 -0
- package/vendor/node_modules/@agent-recorder/service/routes/hooks.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/hooks.test.js +340 -0
- package/vendor/node_modules/@agent-recorder/service/routes/hooks.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/isToolResponseError.test.d.ts +8 -0
- package/vendor/node_modules/@agent-recorder/service/routes/isToolResponseError.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/isToolResponseError.test.js +65 -0
- package/vendor/node_modules/@agent-recorder/service/routes/isToolResponseError.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/sessions.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/routes/sessions.js +19 -1
- package/vendor/node_modules/@agent-recorder/service/routes/sessions.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/routes/stdio.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/routes/stdio.js +20 -1
- package/vendor/node_modules/@agent-recorder/service/routes/stdio.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/server.d.ts +3 -0
- package/vendor/node_modules/@agent-recorder/service/server.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/server.js +27 -3
- package/vendor/node_modules/@agent-recorder/service/server.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/stdio-proxy/package.json +1 -1
- package/vendor/node_modules/@agent-recorder/stdio-proxy/types.d.ts +3 -19
- package/vendor/node_modules/@agent-recorder/stdio-proxy/types.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/stdio-proxy/types.js +2 -1
- package/vendor/node_modules/@agent-recorder/stdio-proxy/types.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/{core/types → types}/events.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/types/events.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/types/events.js +9 -0
- package/vendor/node_modules/@agent-recorder/types/events.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/types/index.d.ts +12 -0
- package/vendor/node_modules/@agent-recorder/types/index.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/types/index.js +9 -0
- package/vendor/node_modules/@agent-recorder/types/index.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/types/jsonrpc.d.ts +35 -0
- package/vendor/node_modules/@agent-recorder/types/jsonrpc.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/types/jsonrpc.js +6 -0
- package/vendor/node_modules/@agent-recorder/types/jsonrpc.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/types/package.json +12 -0
- package/vendor/node_modules/@agent-recorder/{core/types → types}/session.d.ts +6 -0
- package/vendor/node_modules/@agent-recorder/types/session.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/{core/types → types}/session.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/types/storage.d.ts +78 -0
- package/vendor/node_modules/@agent-recorder/types/storage.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/types/storage.js +9 -0
- package/vendor/node_modules/@agent-recorder/types/storage.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/types/events.d.ts.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/types/events.js +0 -6
- package/vendor/node_modules/@agent-recorder/core/types/events.js.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/types/session.d.ts.map +0 -1
- /package/vendor/node_modules/@agent-recorder/{core/types → types}/session.js +0 -0
|
@@ -1,55 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Claude Code configuration detection and management.
|
|
3
|
-
*
|
|
3
|
+
* Re-exports from @agent-recorder/core to avoid duplication.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
kind: "v2" | "legacy" | "none";
|
|
7
|
-
path: string | null;
|
|
8
|
-
}
|
|
9
|
-
export interface McpServerEntry {
|
|
10
|
-
url?: string;
|
|
11
|
-
command?: string;
|
|
12
|
-
args?: string[];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Get the v2 Claude config path (~/.claude/settings.json)
|
|
16
|
-
*/
|
|
17
|
-
export declare function getV2ConfigPath(): string;
|
|
18
|
-
/**
|
|
19
|
-
* Get the legacy Claude config path (~/.config/claude/mcp.json)
|
|
20
|
-
*/
|
|
21
|
-
export declare function getLegacyConfigPath(): string;
|
|
22
|
-
/**
|
|
23
|
-
* Detect which Claude config file exists.
|
|
24
|
-
* Checks v2 first, then legacy. Returns 'none' if neither exists.
|
|
25
|
-
*/
|
|
26
|
-
export declare function detectClaudeConfig(): ClaudeConfigInfo;
|
|
27
|
-
/**
|
|
28
|
-
* Safely read and parse a JSON file.
|
|
29
|
-
* Returns null if file doesn't exist or is invalid JSON.
|
|
30
|
-
*/
|
|
31
|
-
export declare function readJsonFile(filePath: string): Record<string, unknown> | null;
|
|
32
|
-
/**
|
|
33
|
-
* Write JSON to file atomically (write to temp, then rename).
|
|
34
|
-
* Creates parent directories if needed.
|
|
35
|
-
*/
|
|
36
|
-
export declare function writeJsonFileAtomic(filePath: string, data: Record<string, unknown>): void;
|
|
37
|
-
/**
|
|
38
|
-
* Create a backup of a file with timestamp.
|
|
39
|
-
* Returns the backup path.
|
|
40
|
-
*/
|
|
41
|
-
export declare function createBackup(filePath: string): string;
|
|
42
|
-
/**
|
|
43
|
-
* Get the agent-recorder MCP server entry from a config object.
|
|
44
|
-
*/
|
|
45
|
-
export declare function getMcpServerEntry(config: Record<string, unknown>): McpServerEntry | null;
|
|
46
|
-
/**
|
|
47
|
-
* Set the agent-recorder MCP server entry in a config object.
|
|
48
|
-
* Returns a new config object (does not mutate input).
|
|
49
|
-
*/
|
|
50
|
-
export declare function setMcpServerEntry(config: Record<string, unknown>, url: string): Record<string, unknown>;
|
|
51
|
-
/**
|
|
52
|
-
* Format a path for display, replacing home directory with ~
|
|
53
|
-
*/
|
|
54
|
-
export declare function formatPath(filePath: string): string;
|
|
5
|
+
export { type ClaudeConfigInfo, type McpServerEntry, getV2ConfigPath, getLegacyConfigPath, detectClaudeConfig, readJsonFile, writeJsonFileAtomic, createBackup, getMcpServerEntry, setMcpServerEntry, formatPath, } from "@agent-recorder/core";
|
|
55
6
|
//# sourceMappingURL=claude-paths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-paths.d.ts","sourceRoot":"","sources":["../../src/config/claude-paths.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"claude-paths.d.ts","sourceRoot":"","sources":["../../src/config/claude-paths.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,GACX,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,117 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Claude Code configuration detection and management.
|
|
3
|
-
*
|
|
3
|
+
* Re-exports from @agent-recorder/core to avoid duplication.
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
import * as path from "node:path";
|
|
7
|
-
import * as os from "node:os";
|
|
8
|
-
/**
|
|
9
|
-
* Get the v2 Claude config path (~/.claude/settings.json)
|
|
10
|
-
*/
|
|
11
|
-
export function getV2ConfigPath() {
|
|
12
|
-
return path.join(os.homedir(), ".claude", "settings.json");
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Get the legacy Claude config path (~/.config/claude/mcp.json)
|
|
16
|
-
*/
|
|
17
|
-
export function getLegacyConfigPath() {
|
|
18
|
-
return path.join(os.homedir(), ".config", "claude", "mcp.json");
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Detect which Claude config file exists.
|
|
22
|
-
* Checks v2 first, then legacy. Returns 'none' if neither exists.
|
|
23
|
-
*/
|
|
24
|
-
export function detectClaudeConfig() {
|
|
25
|
-
const v2Path = getV2ConfigPath();
|
|
26
|
-
const legacyPath = getLegacyConfigPath();
|
|
27
|
-
if (fs.existsSync(v2Path)) {
|
|
28
|
-
return { kind: "v2", path: v2Path };
|
|
29
|
-
}
|
|
30
|
-
if (fs.existsSync(legacyPath)) {
|
|
31
|
-
return { kind: "legacy", path: legacyPath };
|
|
32
|
-
}
|
|
33
|
-
return { kind: "none", path: null };
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Safely read and parse a JSON file.
|
|
37
|
-
* Returns null if file doesn't exist or is invalid JSON.
|
|
38
|
-
*/
|
|
39
|
-
export function readJsonFile(filePath) {
|
|
40
|
-
try {
|
|
41
|
-
if (!fs.existsSync(filePath)) {
|
|
42
|
-
return null;
|
|
43
|
-
}
|
|
44
|
-
const content = fs.readFileSync(filePath, "utf-8");
|
|
45
|
-
return JSON.parse(content);
|
|
46
|
-
}
|
|
47
|
-
catch {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Write JSON to file atomically (write to temp, then rename).
|
|
53
|
-
* Creates parent directories if needed.
|
|
54
|
-
*/
|
|
55
|
-
export function writeJsonFileAtomic(filePath, data) {
|
|
56
|
-
const dir = path.dirname(filePath);
|
|
57
|
-
if (!fs.existsSync(dir)) {
|
|
58
|
-
fs.mkdirSync(dir, { recursive: true });
|
|
59
|
-
}
|
|
60
|
-
const content = JSON.stringify(data, null, 2) + "\n";
|
|
61
|
-
const tempPath = `${filePath}.tmp.${Date.now()}`;
|
|
62
|
-
fs.writeFileSync(tempPath, content, "utf-8");
|
|
63
|
-
fs.renameSync(tempPath, filePath);
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Create a backup of a file with timestamp.
|
|
67
|
-
* Returns the backup path.
|
|
68
|
-
*/
|
|
69
|
-
export function createBackup(filePath) {
|
|
70
|
-
const now = new Date();
|
|
71
|
-
// Format: YYYYMMDDHHMMSS (14 chars)
|
|
72
|
-
const timestamp = now.toISOString().replace(/[-:T]/g, "").slice(0, 14);
|
|
73
|
-
const backupPath = `${filePath}.bak-${timestamp}`;
|
|
74
|
-
if (fs.existsSync(filePath)) {
|
|
75
|
-
fs.copyFileSync(filePath, backupPath);
|
|
76
|
-
}
|
|
77
|
-
return backupPath;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Get the agent-recorder MCP server entry from a config object.
|
|
81
|
-
*/
|
|
82
|
-
export function getMcpServerEntry(config) {
|
|
83
|
-
const mcpServers = config.mcpServers;
|
|
84
|
-
if (!mcpServers || typeof mcpServers !== "object") {
|
|
85
|
-
return null;
|
|
86
|
-
}
|
|
87
|
-
const entry = mcpServers["agent-recorder"];
|
|
88
|
-
if (!entry || typeof entry !== "object") {
|
|
89
|
-
return null;
|
|
90
|
-
}
|
|
91
|
-
return entry;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Set the agent-recorder MCP server entry in a config object.
|
|
95
|
-
* Returns a new config object (does not mutate input).
|
|
96
|
-
*/
|
|
97
|
-
export function setMcpServerEntry(config, url) {
|
|
98
|
-
const newConfig = { ...config };
|
|
99
|
-
// Ensure mcpServers exists
|
|
100
|
-
const mcpServers = newConfig.mcpServers || {};
|
|
101
|
-
newConfig.mcpServers = {
|
|
102
|
-
...mcpServers,
|
|
103
|
-
"agent-recorder": { url },
|
|
104
|
-
};
|
|
105
|
-
return newConfig;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Format a path for display, replacing home directory with ~
|
|
109
|
-
*/
|
|
110
|
-
export function formatPath(filePath) {
|
|
111
|
-
const home = os.homedir();
|
|
112
|
-
if (filePath.startsWith(home)) {
|
|
113
|
-
return "~" + filePath.slice(home.length);
|
|
114
|
-
}
|
|
115
|
-
return filePath;
|
|
116
|
-
}
|
|
5
|
+
export { getV2ConfigPath, getLegacyConfigPath, detectClaudeConfig, readJsonFile, writeJsonFileAtomic, createBackup, getMcpServerEntry, setMcpServerEntry, formatPath, } from "@agent-recorder/core";
|
|
117
6
|
//# sourceMappingURL=claude-paths.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-paths.js","sourceRoot":"","sources":["../../src/config/claude-paths.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"claude-paths.js","sourceRoot":"","sources":["../../src/config/claude-paths.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,GACX,MAAM,sBAAsB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { describe, it, expect, beforeEach, afterEach } from "vitest";
|
|
|
5
5
|
import * as fs from "node:fs";
|
|
6
6
|
import * as path from "node:path";
|
|
7
7
|
import * as os from "node:os";
|
|
8
|
-
import { readJsonFile, writeJsonFileAtomic, createBackup, getMcpServerEntry, setMcpServerEntry, formatPath, } from "
|
|
8
|
+
import { readJsonFile, writeJsonFileAtomic, createBackup, getMcpServerEntry, setMcpServerEntry, formatPath, } from "@agent-recorder/core";
|
|
9
9
|
describe("claude-paths", () => {
|
|
10
10
|
let tempDir;
|
|
11
11
|
beforeEach(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-paths.test.js","sourceRoot":"","sources":["../../src/config/claude-paths.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,GACX,MAAM,
|
|
1
|
+
{"version":3,"file":"claude-paths.test.js","sourceRoot":"","sources":["../../src/config/claude-paths.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,GACX,MAAM,sBAAsB,CAAC;AAE9B,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,IAAI,OAAe,CAAC;IAEpB,UAAU,CAAC,GAAG,EAAE;QACd,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,oBAAoB,CAAC,CAAC,CAAC;IACzE,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,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,EAAE,GAAG,EAAE;YACxC,MAAM,IAAI,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;YAC1B,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,IAAI,YAAY,CAAC,CAAC;YAC/C,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;YACtC,MAAM,MAAM,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;YAC5C,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACxC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -23,6 +23,7 @@ import { diagnoseMcpCommand } from "./commands/diagnose.js";
|
|
|
23
23
|
import { mockMcpCommand } from "./commands/mock-mcp.js";
|
|
24
24
|
import { tuiCommand } from "./commands/tui.js";
|
|
25
25
|
import { discoverCommand } from "./commands/discover.js";
|
|
26
|
+
import { mcpServerCommand } from "./commands/mcp-server.js";
|
|
26
27
|
import { addCommand, removeCommand, listCommand } from "./commands/add.js";
|
|
27
28
|
import { upstreamAddCommand, upstreamRemoveCommand, upstreamListCommand, } from "./commands/upstream.js";
|
|
28
29
|
import { hooksInstallCommand, hooksUninstallCommand, hooksStatusCommand, } from "./commands/hooks.js";
|
|
@@ -302,5 +303,14 @@ program
|
|
|
302
303
|
.action(async (options) => {
|
|
303
304
|
await mockMcpCommand(options);
|
|
304
305
|
});
|
|
306
|
+
// MCP observability server
|
|
307
|
+
program
|
|
308
|
+
.command("mcp-server")
|
|
309
|
+
.description("Start an MCP server exposing Agent Recorder observability tools")
|
|
310
|
+
.option("-p, --port <port>", "Port to listen on", "8789")
|
|
311
|
+
.option("-H, --host <host>", "Host to bind to", "0.0.0.0")
|
|
312
|
+
.action(async (options) => {
|
|
313
|
+
await mcpServerCommand(options);
|
|
314
|
+
});
|
|
305
315
|
program.parse();
|
|
306
316
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,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AG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;AAE7E,QAAQ;KACL,OAAO,CAAC,KAAK,CAAC;KACd,WAAW,CAAC,2BAA2B,CAAC;KACxC,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,MAAM,kBAAkB,EAAE,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEL,kBAAkB;AAClB,OAAO;KACJ,OAAO,CAAC,UAAU,CAAC;KACnB,WAAW,CAAC,qCAAqC,CAAC;KAClD,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,CAAC;KACxD,MAAM,CAAC,aAAa,EAAE,+BAA+B,CAAC;KACtD,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IACxB,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC;AAEL,2BAA2B;AAC3B,OAAO;KACJ,OAAO,CAAC,YAAY,CAAC;KACrB,WAAW,CACV,iEAAiE,CAClE;KACA,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,CAAC;KACxD,MAAM,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,SAAS,CAAC;KACzD,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IACxB,MAAM,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
|
@@ -29,4 +29,27 @@ export declare function readJsonFile(filePath: string): Record<string, unknown>
|
|
|
29
29
|
* Creates parent directories if needed.
|
|
30
30
|
*/
|
|
31
31
|
export declare function writeJsonFileAtomic(filePath: string, data: Record<string, unknown> | unknown): void;
|
|
32
|
+
export interface McpServerEntry {
|
|
33
|
+
url?: string;
|
|
34
|
+
command?: string;
|
|
35
|
+
args?: string[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Create a backup of a file with timestamp.
|
|
39
|
+
* Returns the backup path.
|
|
40
|
+
*/
|
|
41
|
+
export declare function createBackup(filePath: string): string;
|
|
42
|
+
/**
|
|
43
|
+
* Get the agent-recorder MCP server entry from a config object.
|
|
44
|
+
*/
|
|
45
|
+
export declare function getMcpServerEntry(config: Record<string, unknown>): McpServerEntry | null;
|
|
46
|
+
/**
|
|
47
|
+
* Set the agent-recorder MCP server entry in a config object.
|
|
48
|
+
* Returns a new config object (does not mutate input).
|
|
49
|
+
*/
|
|
50
|
+
export declare function setMcpServerEntry(config: Record<string, unknown>, url: string): Record<string, unknown>;
|
|
51
|
+
/**
|
|
52
|
+
* Format a path for display, replacing home directory with ~
|
|
53
|
+
*/
|
|
54
|
+
export declare function formatPath(filePath: string): string;
|
|
32
55
|
//# sourceMappingURL=claude-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-config.d.ts","sourceRoot":"","sources":["../src/claude-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,IAAI,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC/B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,gBAAgB,CAarD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAU7E;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,GACtC,IAAI,CAWN"}
|
|
1
|
+
{"version":3,"file":"claude-config.d.ts","sourceRoot":"","sources":["../src/claude-config.ts"],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.writeFileSync(tempPath, content, "utf-8");
|
|
63
63
|
fs.renameSync(tempPath, filePath);
|
|
64
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Create a backup of a file with timestamp.
|
|
67
|
+
* Returns the backup path.
|
|
68
|
+
*/
|
|
69
|
+
export function createBackup(filePath) {
|
|
70
|
+
const now = new Date();
|
|
71
|
+
const timestamp = now.toISOString().replace(/[-:T]/g, "").slice(0, 14);
|
|
72
|
+
const backupPath = `${filePath}.bak-${timestamp}`;
|
|
73
|
+
if (fs.existsSync(filePath)) {
|
|
74
|
+
fs.copyFileSync(filePath, backupPath);
|
|
75
|
+
}
|
|
76
|
+
return backupPath;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get the agent-recorder MCP server entry from a config object.
|
|
80
|
+
*/
|
|
81
|
+
export function getMcpServerEntry(config) {
|
|
82
|
+
const mcpServers = config.mcpServers;
|
|
83
|
+
if (!mcpServers || typeof mcpServers !== "object") {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
const entry = mcpServers["agent-recorder"];
|
|
87
|
+
if (!entry || typeof entry !== "object") {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
return entry;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Set the agent-recorder MCP server entry in a config object.
|
|
94
|
+
* Returns a new config object (does not mutate input).
|
|
95
|
+
*/
|
|
96
|
+
export function setMcpServerEntry(config, url) {
|
|
97
|
+
const newConfig = { ...config };
|
|
98
|
+
const mcpServers = newConfig.mcpServers || {};
|
|
99
|
+
newConfig.mcpServers = {
|
|
100
|
+
...mcpServers,
|
|
101
|
+
"agent-recorder": { url },
|
|
102
|
+
};
|
|
103
|
+
return newConfig;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Format a path for display, replacing home directory with ~
|
|
107
|
+
*/
|
|
108
|
+
export function formatPath(filePath) {
|
|
109
|
+
const home = os.homedir();
|
|
110
|
+
if (filePath.startsWith(home)) {
|
|
111
|
+
return "~" + filePath.slice(home.length);
|
|
112
|
+
}
|
|
113
|
+
return filePath;
|
|
114
|
+
}
|
|
65
115
|
//# sourceMappingURL=claude-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-config.js","sourceRoot":"","sources":["../src/claude-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAO9B;;GAEG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC;AAC7D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB;IACjC,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;AAClE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB;IAChC,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IACjC,MAAM,UAAU,GAAG,mBAAmB,EAAE,CAAC;IAEzC,IAAI,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACtC,CAAC;IAED,IAAI,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QAC9B,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAC9C,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACtC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,QAAgB;IAC3C,IAAI,C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BAAgB,CAA+B,CAAC;IACzE,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAC/B,MAA+B,EAC/B,GAAW;IAEX,MAAM,SAAS,GAAG,EAAE,GAAG,MAAM,EAAE,CAAC;IAEhC,MAAM,UAAU,GAAI,SAAS,CAAC,UAAsC,IAAI,EAAE,CAAC;IAC3E,SAAS,CAAC,UAAU,GAAG;QACrB,GAAG,UAAU;QACb,gBAAgB,EAAE,EAAE,GAAG,EAAE;KAC1B,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,QAAgB;IACzC,MAAM,IAAI,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;IAC1B,IAAI,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,OAAO,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -15,7 +15,12 @@ export interface Config {
|
|
|
15
15
|
redactKeys: string[];
|
|
16
16
|
/** Port for MCP proxy to listen on (default: 8788) */
|
|
17
17
|
mcpProxyPort: number;
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* URL of the legacy single MCP server to proxy requests to (optional).
|
|
20
|
+
* Note: In proxy terminology, these are "upstream" servers (the target).
|
|
21
|
+
* The env var AR_DOWNSTREAM_MCP_URL is kept for backwards compatibility.
|
|
22
|
+
* Prefer using the upstreams registry for multi-server setups.
|
|
23
|
+
*/
|
|
19
24
|
downstreamMcpUrl: string | null;
|
|
20
25
|
/** Path to upstreams registry file for router mode (default: ~/.agent-recorder/upstreams.json) */
|
|
21
26
|
upstreamsPath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,6DAA6D;AAC7D,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,8CAA8C;AAC9C,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED,MAAM,WAAW,MAAM;IACrB,uDAAuD;IACvD,UAAU,EAAE,MAAM,CAAC;IAEnB,sFAAsF;IACtF,MAAM,EAAE,MAAM,CAAC;IAEf,wCAAwC;IACxC,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IAErB
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,6DAA6D;AAC7D,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,8CAA8C;AAC9C,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED,MAAM,WAAW,MAAM;IACrB,uDAAuD;IACvD,UAAU,EAAE,MAAM,CAAC;IAEnB,sFAAsF;IACtF,MAAM,EAAE,MAAM,CAAC;IAEf,wCAAwC;IACxC,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,kGAAkG;IAClG,aAAa,EAAE,MAAM,CAAC;IAEtB,2DAA2D;IAC3D,UAAU,EAAE,OAAO,CAAC;CACrB;AAcD;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CA0BnC;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAW5C"}
|
|
@@ -35,7 +35,10 @@ export function loadConfig() {
|
|
|
35
35
|
? redactKeysRaw.split(",").map((k) => k.trim())
|
|
36
36
|
: DEFAULT_REDACT_KEYS;
|
|
37
37
|
const mcpProxyPort = parseInt(process.env["AR_MCP_PROXY_PORT"] ?? "8788", 10);
|
|
38
|
-
|
|
38
|
+
// Support both old and new env var names (new takes precedence)
|
|
39
|
+
const downstreamMcpUrl = process.env["AR_UPSTREAM_MCP_URL"] ??
|
|
40
|
+
process.env["AR_DOWNSTREAM_MCP_URL"] ??
|
|
41
|
+
null;
|
|
39
42
|
const upstreamsPath = process.env["AR_UPSTREAMS_PATH"] ?? getDefaultUpstreamsPath();
|
|
40
43
|
const debugProxy = process.env["AR_DEBUG_PROXY"] === "1";
|
|
41
44
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,6DAA6D;AAC7D,MAAM,UAAU,gBAAgB;IAC9B,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,iBAAiB,EAAE,uBAAuB,CAAC,CAAC;AACrE,CAAC;AAED,8CAA8C;AAC9C,MAAM,UAAU,uBAAuB;IACrC,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,iBAAiB,EAAE,gBAAgB,CAAC,CAAC;AAC9D,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,6DAA6D;AAC7D,MAAM,UAAU,gBAAgB;IAC9B,OAAO,IAAI,CAAC,OAAO,E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AAC,KAAK,GAAG,CAAC;IAEzD,OAAO;QACL,UAAU;QACV,MAAM;QACN,UAAU;QACV,YAAY;QACZ,gBAAgB;QAChB,aAAa;QACb,UAAU;KACX,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB;IACjC,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,MAAM,EAAE,EAAE,CAAC,CAAC;IAE1E,uDAAuD;IACvD,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,wCAAwC;IACxC,OAAO,YAAY,EAAE,IAAI,WAAW,CAAC;AACvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events-complete.test.d.ts","sourceRoot":"","sources":["../../src/db/events-complete.test.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for completeEvent() and findRunningEvent().
|
|
3
|
+
*/
|
|
4
|
+
import { describe, it, expect, beforeEach, afterEach } from "vitest";
|
|
5
|
+
import { randomUUID } from "node:crypto";
|
|
6
|
+
import { openMemoryDatabase, runMigrations, getDefaultMigrationsDir, insertEvent, completeEvent, findRunningEvent, createSession, } from "../index.js";
|
|
7
|
+
function makeEvent(sessionId, sequence, overrides = {}) {
|
|
8
|
+
return {
|
|
9
|
+
id: randomUUID(),
|
|
10
|
+
sessionId,
|
|
11
|
+
sequence,
|
|
12
|
+
eventType: "tool_call",
|
|
13
|
+
agentRole: "main",
|
|
14
|
+
agentName: "test-agent",
|
|
15
|
+
toolName: "TestTool",
|
|
16
|
+
startedAt: new Date().toISOString(),
|
|
17
|
+
status: "running",
|
|
18
|
+
...overrides,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
describe("completeEvent", () => {
|
|
22
|
+
let db;
|
|
23
|
+
let sessionId;
|
|
24
|
+
beforeEach(() => {
|
|
25
|
+
db = openMemoryDatabase();
|
|
26
|
+
runMigrations(db, getDefaultMigrationsDir());
|
|
27
|
+
sessionId = randomUUID();
|
|
28
|
+
createSession(db, sessionId, new Date().toISOString());
|
|
29
|
+
});
|
|
30
|
+
afterEach(() => {
|
|
31
|
+
db.close();
|
|
32
|
+
});
|
|
33
|
+
it("sets status and endedAt", () => {
|
|
34
|
+
const event = insertEvent(db, makeEvent(sessionId, 1));
|
|
35
|
+
const now = new Date().toISOString();
|
|
36
|
+
const result = completeEvent(db, event.id, "success", now);
|
|
37
|
+
expect(result).not.toBeNull();
|
|
38
|
+
expect(result.status).toBe("success");
|
|
39
|
+
expect(result.endedAt).toBe(now);
|
|
40
|
+
});
|
|
41
|
+
it("preserves existing outputJson when outputJson is omitted (undefined)", () => {
|
|
42
|
+
const event = insertEvent(db, makeEvent(sessionId, 1, {
|
|
43
|
+
outputJson: '{"existing": true}',
|
|
44
|
+
status: "running",
|
|
45
|
+
}));
|
|
46
|
+
// Call without outputJson parameter (undefined)
|
|
47
|
+
const result = completeEvent(db, event.id, "success", new Date().toISOString());
|
|
48
|
+
expect(result.outputJson).toBe('{"existing": true}');
|
|
49
|
+
});
|
|
50
|
+
it("clears outputJson when outputJson is explicitly null", () => {
|
|
51
|
+
const event = insertEvent(db, makeEvent(sessionId, 1, {
|
|
52
|
+
outputJson: '{"existing": true}',
|
|
53
|
+
status: "running",
|
|
54
|
+
}));
|
|
55
|
+
const result = completeEvent(db, event.id, "success", new Date().toISOString(), null);
|
|
56
|
+
expect(result.outputJson).toBeNull();
|
|
57
|
+
});
|
|
58
|
+
it("overwrites outputJson when a string is provided", () => {
|
|
59
|
+
const event = insertEvent(db, makeEvent(sessionId, 1, {
|
|
60
|
+
outputJson: '{"old": true}',
|
|
61
|
+
status: "running",
|
|
62
|
+
}));
|
|
63
|
+
const result = completeEvent(db, event.id, "success", new Date().toISOString(), '{"new": true}');
|
|
64
|
+
expect(result.outputJson).toBe('{"new": true}');
|
|
65
|
+
});
|
|
66
|
+
it("sets outputJson from null when a string is provided", () => {
|
|
67
|
+
const event = insertEvent(db, makeEvent(sessionId, 1));
|
|
68
|
+
expect(event.outputJson).toBeNull();
|
|
69
|
+
const result = completeEvent(db, event.id, "success", new Date().toISOString(), '{"output": 1}');
|
|
70
|
+
expect(result.outputJson).toBe('{"output": 1}');
|
|
71
|
+
});
|
|
72
|
+
it("returns null for non-existent event ID", () => {
|
|
73
|
+
const result = completeEvent(db, "non-existent-id", "success", new Date().toISOString());
|
|
74
|
+
expect(result).toBeNull();
|
|
75
|
+
});
|
|
76
|
+
it("sets error category", () => {
|
|
77
|
+
const event = insertEvent(db, makeEvent(sessionId, 1));
|
|
78
|
+
const result = completeEvent(db, event.id, "error", new Date().toISOString(), '{"error": "fail"}', "unknown");
|
|
79
|
+
expect(result.errorCategory).toBe("unknown");
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
describe("findRunningEvent", () => {
|
|
83
|
+
let db;
|
|
84
|
+
let sessionId;
|
|
85
|
+
beforeEach(() => {
|
|
86
|
+
db = openMemoryDatabase();
|
|
87
|
+
runMigrations(db, getDefaultMigrationsDir());
|
|
88
|
+
sessionId = randomUUID();
|
|
89
|
+
createSession(db, sessionId, new Date().toISOString());
|
|
90
|
+
});
|
|
91
|
+
afterEach(() => {
|
|
92
|
+
db.close();
|
|
93
|
+
});
|
|
94
|
+
it("returns null when no running events exist", () => {
|
|
95
|
+
const result = findRunningEvent(db, sessionId, "TestTool");
|
|
96
|
+
expect(result).toBeNull();
|
|
97
|
+
});
|
|
98
|
+
it("returns null when events exist but none are running", () => {
|
|
99
|
+
insertEvent(db, makeEvent(sessionId, 1, { toolName: "TestTool", status: "success" }));
|
|
100
|
+
const result = findRunningEvent(db, sessionId, "TestTool");
|
|
101
|
+
expect(result).toBeNull();
|
|
102
|
+
});
|
|
103
|
+
it("finds a running event by tool name", () => {
|
|
104
|
+
const event = insertEvent(db, makeEvent(sessionId, 1, { toolName: "TestTool", status: "running" }));
|
|
105
|
+
const result = findRunningEvent(db, sessionId, "TestTool");
|
|
106
|
+
expect(result).not.toBeNull();
|
|
107
|
+
expect(result.id).toBe(event.id);
|
|
108
|
+
});
|
|
109
|
+
it("returns the most recent running event when multiple exist", () => {
|
|
110
|
+
insertEvent(db, makeEvent(sessionId, 1, { toolName: "TestTool", status: "running" }));
|
|
111
|
+
const newer = insertEvent(db, makeEvent(sessionId, 2, { toolName: "TestTool", status: "running" }));
|
|
112
|
+
const result = findRunningEvent(db, sessionId, "TestTool");
|
|
113
|
+
expect(result.id).toBe(newer.id);
|
|
114
|
+
});
|
|
115
|
+
it("does not match events from a different session", () => {
|
|
116
|
+
const otherSession = randomUUID();
|
|
117
|
+
createSession(db, otherSession, new Date().toISOString());
|
|
118
|
+
insertEvent(db, makeEvent(otherSession, 1, { toolName: "TestTool", status: "running" }));
|
|
119
|
+
const result = findRunningEvent(db, sessionId, "TestTool");
|
|
120
|
+
expect(result).toBeNull();
|
|
121
|
+
});
|
|
122
|
+
it("does not match events with a different tool name", () => {
|
|
123
|
+
insertEvent(db, makeEvent(sessionId, 1, { toolName: "OtherTool", status: "running" }));
|
|
124
|
+
const result = findRunningEvent(db, sessionId, "TestTool");
|
|
125
|
+
expect(result).toBeNull();
|
|
126
|
+
});
|
|
127
|
+
// Documenting a known limitation: if parallel tool calls share the same
|
|
128
|
+
// name, findRunningEvent matches the most recent by sequence, which may
|
|
129
|
+
// complete the wrong event. Claude Code currently runs tools sequentially,
|
|
130
|
+
// so this hasn't been an issue in practice.
|
|
131
|
+
it.todo("parallel same-name tool calls may match the wrong running event");
|
|
132
|
+
});
|
|
133
|
+
//# sourceMappingURL=events-complete.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events-complete.test.js","sourceRoot":"","sources":["../../src/db/events-complete.test.ts"],"names":[],"mappings":"AAAA;;GAEG;A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