@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.
Files changed (34) hide show
  1. package/dist/lib/api-client.js +2099 -648
  2. package/dist/lib/config.js +217 -201
  3. package/package.json +9 -5
  4. package/src/memory-cleanup.ts +2 -4
  5. package/dist/lib/__tests__/active-learning.test.js +0 -386
  6. package/dist/lib/__tests__/agent-performance-profiles.test.js +0 -325
  7. package/dist/lib/__tests__/auto-session.test.js +0 -661
  8. package/dist/lib/__tests__/context-assembly.test.js +0 -362
  9. package/dist/lib/__tests__/graph-expansion.test.js +0 -150
  10. package/dist/lib/__tests__/integration-memory-crud.test.js +0 -797
  11. package/dist/lib/__tests__/integration-memory-system.test.js +0 -281
  12. package/dist/lib/__tests__/lifecycle-maintenance.test.js +0 -207
  13. package/dist/lib/__tests__/pattern-detection.test.js +0 -295
  14. package/dist/lib/__tests__/prompt-builder.test.js +0 -418
  15. package/dist/lib/active-learning.js +0 -822
  16. package/dist/lib/auto-session.js +0 -214
  17. package/dist/lib/cli.js +0 -138
  18. package/dist/lib/consolidation.js +0 -303
  19. package/dist/lib/context-assembly.js +0 -884
  20. package/dist/lib/graph-expansion.js +0 -163
  21. package/dist/lib/http.js +0 -175
  22. package/dist/lib/index.js +0 -7
  23. package/dist/lib/lifecycle-maintenance.js +0 -88
  24. package/dist/lib/memory-cleanup.js +0 -455
  25. package/dist/lib/onboard.js +0 -36
  26. package/dist/lib/prompt-builder.js +0 -488
  27. package/dist/lib/remote.js +0 -166
  28. package/dist/lib/server.js +0 -3365
  29. package/dist/lib/skills.js +0 -593
  30. package/dist/lib/tui/agents.js +0 -116
  31. package/dist/lib/tui/docs.js +0 -744
  32. package/dist/lib/tui/setup.js +0 -934
  33. package/dist/lib/tui/theme.js +0 -95
  34. package/dist/lib/tui/writer.js +0 -200
@@ -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
- }