@gethmy/mcp 2.3.1 → 2.3.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/lib/api-client.js +2099 -648
- package/dist/lib/config.js +217 -201
- package/package.json +9 -5
- package/src/memory-cleanup.ts +2 -4
- package/dist/lib/__tests__/active-learning.test.js +0 -386
- package/dist/lib/__tests__/agent-performance-profiles.test.js +0 -325
- package/dist/lib/__tests__/auto-session.test.js +0 -661
- package/dist/lib/__tests__/context-assembly.test.js +0 -362
- package/dist/lib/__tests__/graph-expansion.test.js +0 -150
- package/dist/lib/__tests__/integration-memory-crud.test.js +0 -797
- package/dist/lib/__tests__/integration-memory-system.test.js +0 -281
- package/dist/lib/__tests__/lifecycle-maintenance.test.js +0 -207
- package/dist/lib/__tests__/pattern-detection.test.js +0 -295
- package/dist/lib/__tests__/prompt-builder.test.js +0 -418
- package/dist/lib/active-learning.js +0 -822
- package/dist/lib/auto-session.js +0 -214
- package/dist/lib/cli.js +0 -138
- package/dist/lib/consolidation.js +0 -303
- package/dist/lib/context-assembly.js +0 -884
- package/dist/lib/graph-expansion.js +0 -163
- package/dist/lib/http.js +0 -175
- package/dist/lib/index.js +0 -7
- package/dist/lib/lifecycle-maintenance.js +0 -88
- package/dist/lib/memory-cleanup.js +0 -455
- package/dist/lib/onboard.js +0 -36
- package/dist/lib/prompt-builder.js +0 -488
- package/dist/lib/remote.js +0 -166
- package/dist/lib/server.js +0 -3365
- package/dist/lib/skills.js +0 -593
- package/dist/lib/tui/agents.js +0 -116
- package/dist/lib/tui/docs.js +0 -744
- package/dist/lib/tui/setup.js +0 -934
- package/dist/lib/tui/theme.js +0 -95
- package/dist/lib/tui/writer.js +0 -200
package/dist/lib/tui/agents.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { existsSync } from "node:fs";
|
|
2
|
-
import { homedir } from "node:os";
|
|
3
|
-
import { join } from "node:path";
|
|
4
|
-
const AGENT_DEFINITIONS = [
|
|
5
|
-
{
|
|
6
|
-
id: "claude",
|
|
7
|
-
name: "Claude Code",
|
|
8
|
-
description: "Anthropic CLI agent",
|
|
9
|
-
hint: "/hmy <card>",
|
|
10
|
-
globalPaths: [join(homedir(), ".claude")],
|
|
11
|
-
localPaths: [".claude"],
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
id: "codex",
|
|
15
|
-
name: "Codex",
|
|
16
|
-
description: "OpenAI coding agent",
|
|
17
|
-
hint: "/prompts:hmy <card>",
|
|
18
|
-
globalPaths: [join(homedir(), ".codex")],
|
|
19
|
-
localPaths: ["AGENTS.md"],
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
id: "cursor",
|
|
23
|
-
name: "Cursor",
|
|
24
|
-
description: "AI-powered IDE",
|
|
25
|
-
hint: "MCP tools available automatically",
|
|
26
|
-
globalPaths: [],
|
|
27
|
-
localPaths: [".cursor", ".cursorrules"],
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: "windsurf",
|
|
31
|
-
name: "Windsurf",
|
|
32
|
-
description: "Codeium AI IDE",
|
|
33
|
-
hint: "MCP tools available automatically",
|
|
34
|
-
globalPaths: [join(homedir(), ".codeium", "windsurf")],
|
|
35
|
-
localPaths: [".windsurf", ".windsurfrules"],
|
|
36
|
-
},
|
|
37
|
-
];
|
|
38
|
-
/**
|
|
39
|
-
* Detect installed agents by checking for config directories
|
|
40
|
-
*/
|
|
41
|
-
export function detectAgents(cwd = process.cwd()) {
|
|
42
|
-
return AGENT_DEFINITIONS.map((def) => {
|
|
43
|
-
// Check global paths
|
|
44
|
-
const globalPath = def.globalPaths.find((p) => existsSync(p)) || null;
|
|
45
|
-
// Check local paths
|
|
46
|
-
const localPath = def.localPaths.find((p) => existsSync(join(cwd, p))) || null;
|
|
47
|
-
return {
|
|
48
|
-
id: def.id,
|
|
49
|
-
name: def.name,
|
|
50
|
-
detected: !!(globalPath || localPath),
|
|
51
|
-
globalPath,
|
|
52
|
-
localPath: localPath ? join(cwd, localPath) : null,
|
|
53
|
-
description: def.description,
|
|
54
|
-
hint: def.hint,
|
|
55
|
-
};
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Get agent by ID
|
|
60
|
-
*/
|
|
61
|
-
export function getAgentById(id) {
|
|
62
|
-
return AGENT_DEFINITIONS.find((def) => def.id === id);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Get all supported agent IDs
|
|
66
|
-
*/
|
|
67
|
-
export function getSupportedAgentIds() {
|
|
68
|
-
return AGENT_DEFINITIONS.map((def) => def.id);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Get config paths that will be created for an agent
|
|
72
|
-
*/
|
|
73
|
-
export function getAgentConfigPaths(agentId, cwd = process.cwd()) {
|
|
74
|
-
const home = homedir();
|
|
75
|
-
switch (agentId) {
|
|
76
|
-
case "claude":
|
|
77
|
-
return {
|
|
78
|
-
global: [join(home, ".claude", "settings.json")],
|
|
79
|
-
local: [join(cwd, ".claude", "skills", "hmy", "SKILL.md")],
|
|
80
|
-
};
|
|
81
|
-
case "codex":
|
|
82
|
-
return {
|
|
83
|
-
global: [
|
|
84
|
-
join(home, ".codex", "config.toml"),
|
|
85
|
-
join(home, ".codex", "prompts", "hmy.md"),
|
|
86
|
-
],
|
|
87
|
-
local: [join(cwd, "AGENTS.md")],
|
|
88
|
-
};
|
|
89
|
-
case "cursor":
|
|
90
|
-
return {
|
|
91
|
-
global: [],
|
|
92
|
-
local: [
|
|
93
|
-
join(cwd, ".cursor", "mcp.json"),
|
|
94
|
-
join(cwd, ".cursor", "rules", "harmony.mdc"),
|
|
95
|
-
],
|
|
96
|
-
};
|
|
97
|
-
case "windsurf":
|
|
98
|
-
return {
|
|
99
|
-
global: [join(home, ".codeium", "windsurf", "mcp_config.json")],
|
|
100
|
-
local: [join(cwd, ".windsurf", "rules", "harmony.md")],
|
|
101
|
-
};
|
|
102
|
-
default:
|
|
103
|
-
return { global: [], local: [] };
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Format agent for display in selection
|
|
108
|
-
*/
|
|
109
|
-
export function formatAgentOption(agent) {
|
|
110
|
-
const status = agent.detected ? "(detected)" : "(not detected)";
|
|
111
|
-
return {
|
|
112
|
-
value: agent.id,
|
|
113
|
-
label: `${agent.name}`,
|
|
114
|
-
hint: `${agent.description} ${status}`,
|
|
115
|
-
};
|
|
116
|
-
}
|