create-merlin-brain 3.22.0 → 3.23.0
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/README.md +22 -4
- package/bin/merlin-ask.cjs +111 -0
- package/bin/merlin-cli.cjs +22 -0
- package/bin/runtime-adapters.cjs +678 -28
- package/dist/server/api/client.d.ts +2 -0
- package/dist/server/api/client.d.ts.map +1 -1
- package/dist/server/api/client.js +4 -0
- package/dist/server/api/client.js.map +1 -1
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/server.js +45 -4
- package/dist/server/server.js.map +1 -1
- package/dist/server/tools/auto-mode.d.ts +9 -0
- package/dist/server/tools/auto-mode.d.ts.map +1 -0
- package/dist/server/tools/auto-mode.js +231 -0
- package/dist/server/tools/auto-mode.js.map +1 -0
- package/dist/server/tools/computer-use.d.ts +8 -0
- package/dist/server/tools/computer-use.d.ts.map +1 -0
- package/dist/server/tools/computer-use.js +355 -0
- package/dist/server/tools/computer-use.js.map +1 -0
- package/dist/server/tools/dream.d.ts +9 -0
- package/dist/server/tools/dream.d.ts.map +1 -0
- package/dist/server/tools/dream.js +246 -0
- package/dist/server/tools/dream.js.map +1 -0
- package/dist/server/tools/hud.d.ts +13 -0
- package/dist/server/tools/hud.d.ts.map +1 -0
- package/dist/server/tools/hud.js +295 -0
- package/dist/server/tools/hud.js.map +1 -0
- package/dist/server/tools/index.d.ts +4 -0
- package/dist/server/tools/index.d.ts.map +1 -1
- package/dist/server/tools/index.js +4 -0
- package/dist/server/tools/index.js.map +1 -1
- package/dist/server/tools/provider-ask.d.ts +10 -0
- package/dist/server/tools/provider-ask.d.ts.map +1 -0
- package/dist/server/tools/provider-ask.js +234 -0
- package/dist/server/tools/provider-ask.js.map +1 -0
- package/dist/server/tools/rate-limit.d.ts +8 -0
- package/dist/server/tools/rate-limit.d.ts.map +1 -0
- package/dist/server/tools/rate-limit.js +184 -0
- package/dist/server/tools/rate-limit.js.map +1 -0
- package/dist/server/tools/skills.d.ts +16 -0
- package/dist/server/tools/skills.d.ts.map +1 -0
- package/dist/server/tools/skills.js +326 -0
- package/dist/server/tools/skills.js.map +1 -0
- package/dist/server/tools/team-workers.d.ts +7 -0
- package/dist/server/tools/team-workers.d.ts.map +1 -0
- package/dist/server/tools/team-workers.js +271 -0
- package/dist/server/tools/team-workers.js.map +1 -0
- package/dist/server/utils/merlin-manifest.d.ts +6 -1
- package/dist/server/utils/merlin-manifest.d.ts.map +1 -1
- package/dist/server/utils/merlin-manifest.js +34 -1
- package/dist/server/utils/merlin-manifest.js.map +1 -1
- package/files/CLAUDE.md +22 -0
- package/files/hooks/rate-limit-watch.sh +120 -0
- package/files/hooks/statusline.sh +148 -0
- package/files/merlin/skills/SKILLS-INDEX.md +82 -0
- package/files/merlin/skills/automation/payments.md +14 -0
- package/files/merlin/skills/automation/webhooks.md +14 -0
- package/files/merlin/skills/coding/accessibility.md +14 -0
- package/files/merlin/skills/coding/api-design.md +14 -0
- package/files/merlin/skills/coding/debug-mode.md +14 -0
- package/files/merlin/skills/coding/focus-mode.md +14 -0
- package/files/merlin/skills/coding/loop.md +14 -0
- package/files/merlin/skills/coding/performance.md +14 -0
- package/files/merlin/skills/coding/react-patterns.md +51 -0
- package/files/merlin/skills/coding/security-hardening.md +56 -0
- package/files/merlin/skills/coding/verify.md +14 -0
- package/files/merlin/skills/communication/dispatcher.md +40 -0
- package/files/merlin/skills/communication/email-gmail.md +31 -0
- package/files/merlin/skills/communication/telegram.md +50 -0
- package/files/merlin/skills/communication/whatsapp.md +47 -0
- package/files/merlin/skills/data/google-sheets.md +14 -0
- package/files/merlin/skills/design/animation.md +14 -0
- package/files/merlin/skills/devops/docker-containers.md +14 -0
- package/files/merlin/skills/research/brainstorm.md +14 -0
- package/files/merlin/skills/testing/tdd-workflow.md +58 -0
- package/package.json +4 -2
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AutoDream Memory Consolidation Tools
|
|
3
|
+
* Enables/configures Claude Code's AutoDream for Merlin's memory system.
|
|
4
|
+
* Project memory: ~/.claude/projects/<derived-path>/memory/
|
|
5
|
+
* Global memory: ~/.claude/memory/
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
import { existsSync, readFileSync, writeFileSync, readdirSync, statSync, mkdirSync } from 'fs';
|
|
9
|
+
import { join } from 'path';
|
|
10
|
+
import { homedir } from 'os';
|
|
11
|
+
import { coachWrap } from '../session-coach.js';
|
|
12
|
+
const STALE_DAYS = 30;
|
|
13
|
+
const SETTINGS_PATH = join(homedir(), '.claude', 'settings.json');
|
|
14
|
+
const GLOBAL_MEMORY_DIR = join(homedir(), '.claude', 'memory');
|
|
15
|
+
const PROJECTS_BASE_DIR = join(homedir(), '.claude', 'projects');
|
|
16
|
+
// ── Settings ──────────────────────────────────────────────────────────────────
|
|
17
|
+
function readSettings() {
|
|
18
|
+
if (!existsSync(SETTINGS_PATH))
|
|
19
|
+
return {};
|
|
20
|
+
try {
|
|
21
|
+
return JSON.parse(readFileSync(SETTINGS_PATH, 'utf-8'));
|
|
22
|
+
}
|
|
23
|
+
catch {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function writeSettings(settings) {
|
|
28
|
+
const dir = join(homedir(), '.claude');
|
|
29
|
+
if (!existsSync(dir))
|
|
30
|
+
mkdirSync(dir, { recursive: true });
|
|
31
|
+
writeFileSync(SETTINGS_PATH, JSON.stringify(settings, null, 2) + '\n', 'utf-8');
|
|
32
|
+
}
|
|
33
|
+
// ── Path resolution ───────────────────────────────────────────────────────────
|
|
34
|
+
/** Derive project memory path: replace / with -, strip leading - */
|
|
35
|
+
function deriveProjectMemoryDir(repoRootPath) {
|
|
36
|
+
const derived = repoRootPath.replace(/\//g, '-').replace(/^-/, '');
|
|
37
|
+
return join(PROJECTS_BASE_DIR, derived, 'memory');
|
|
38
|
+
}
|
|
39
|
+
async function resolveMemoryDir(scope, getRepoRootPath) {
|
|
40
|
+
if (scope === 'global')
|
|
41
|
+
return { dir: GLOBAL_MEMORY_DIR, label: 'global' };
|
|
42
|
+
if (getRepoRootPath) {
|
|
43
|
+
const root = await getRepoRootPath();
|
|
44
|
+
if (root)
|
|
45
|
+
return { dir: deriveProjectMemoryDir(root), label: `project (${root})` };
|
|
46
|
+
}
|
|
47
|
+
// Fallback: find most recently modified project memory dir
|
|
48
|
+
if (existsSync(PROJECTS_BASE_DIR)) {
|
|
49
|
+
let newest = null;
|
|
50
|
+
for (const entry of readdirSync(PROJECTS_BASE_DIR)) {
|
|
51
|
+
const memDir = join(PROJECTS_BASE_DIR, entry, 'memory');
|
|
52
|
+
if (existsSync(memDir)) {
|
|
53
|
+
const st = statSync(memDir);
|
|
54
|
+
if (!newest || st.mtimeMs > newest.mtime)
|
|
55
|
+
newest = { dir: memDir, mtime: st.mtimeMs };
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if (newest)
|
|
59
|
+
return { dir: newest.dir, label: 'project (auto-detected)' };
|
|
60
|
+
}
|
|
61
|
+
return { dir: GLOBAL_MEMORY_DIR, label: 'global (fallback)' };
|
|
62
|
+
}
|
|
63
|
+
// ── Frontmatter parser ────────────────────────────────────────────────────────
|
|
64
|
+
function parseFrontmatter(content) {
|
|
65
|
+
const match = content.match(/^---\n([\s\S]*?)\n---/);
|
|
66
|
+
if (!match)
|
|
67
|
+
return { name: '', description: '', type: 'unknown' };
|
|
68
|
+
const block = match[1];
|
|
69
|
+
const get = (key) => { const m = block.match(new RegExp(`^${key}:\\s*(.+)$`, 'm')); return m ? m[1].trim() : ''; };
|
|
70
|
+
return { name: get('name'), description: get('description'), type: get('type') || 'unknown' };
|
|
71
|
+
}
|
|
72
|
+
// ── Memory scanner ────────────────────────────────────────────────────────────
|
|
73
|
+
function scanMemoryFiles(dir) {
|
|
74
|
+
if (!existsSync(dir))
|
|
75
|
+
return [];
|
|
76
|
+
const staleCutoff = STALE_DAYS * 24 * 60 * 60 * 1000;
|
|
77
|
+
const now = Date.now();
|
|
78
|
+
const results = [];
|
|
79
|
+
for (const fname of readdirSync(dir)) {
|
|
80
|
+
if (!fname.endsWith('.md') || fname === 'MEMORY.md')
|
|
81
|
+
continue;
|
|
82
|
+
try {
|
|
83
|
+
const content = readFileSync(join(dir, fname), 'utf-8');
|
|
84
|
+
const st = statSync(join(dir, fname));
|
|
85
|
+
const fm = parseFrontmatter(content);
|
|
86
|
+
results.push({ name: fname, type: fm.type, description: fm.description || fm.name, modifiedAt: st.mtime, isStale: now - st.mtimeMs > staleCutoff });
|
|
87
|
+
}
|
|
88
|
+
catch { /* skip unreadable */ }
|
|
89
|
+
}
|
|
90
|
+
return results;
|
|
91
|
+
}
|
|
92
|
+
// ── Index checker ─────────────────────────────────────────────────────────────
|
|
93
|
+
function checkMemoryIndex(dir, files) {
|
|
94
|
+
const indexPath = join(dir, 'MEMORY.md');
|
|
95
|
+
const existingNames = new Set(files.map(f => f.name));
|
|
96
|
+
if (!existsSync(indexPath))
|
|
97
|
+
return { orphanedEntries: [], unindexedFiles: files.map(f => f.name) };
|
|
98
|
+
const content = readFileSync(indexPath, 'utf-8');
|
|
99
|
+
const linked = new Set();
|
|
100
|
+
for (const m of content.matchAll(/\[.*?\]\(([^)]+\.md)\)/g))
|
|
101
|
+
linked.add(m[1]);
|
|
102
|
+
return {
|
|
103
|
+
orphanedEntries: [...linked].filter(f => !existingNames.has(f)),
|
|
104
|
+
unindexedFiles: [...existingNames].filter(f => !linked.has(f)),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
// ── Duplicate detector ────────────────────────────────────────────────────────
|
|
108
|
+
function findPotentialDuplicates(files) {
|
|
109
|
+
const dupes = [];
|
|
110
|
+
const baseName = (n) => n.replace(/\.md$/, '').replace(/[-_]\d+$/, '').toLowerCase();
|
|
111
|
+
for (let i = 0; i < files.length; i++) {
|
|
112
|
+
for (let j = i + 1; j < files.length; j++) {
|
|
113
|
+
const a = files[i];
|
|
114
|
+
const b = files[j];
|
|
115
|
+
if (a.type === b.type && baseName(a.name) === baseName(b.name)) {
|
|
116
|
+
dupes.push([a.name, b.name]);
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
if (a.description && b.description && a.description.length > 10 && b.description.length > 10) {
|
|
120
|
+
const [shorter, longer] = a.description.length < b.description.length ? [a.description, b.description] : [b.description, a.description];
|
|
121
|
+
if (longer.toLowerCase().includes(shorter.toLowerCase()))
|
|
122
|
+
dupes.push([a.name, b.name]);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return dupes;
|
|
127
|
+
}
|
|
128
|
+
// ── Report formatter ──────────────────────────────────────────────────────────
|
|
129
|
+
function formatConsolidationReport(files, indexIssues, label) {
|
|
130
|
+
const byType = {};
|
|
131
|
+
for (const f of files) {
|
|
132
|
+
if (!byType[f.type])
|
|
133
|
+
byType[f.type] = [];
|
|
134
|
+
byType[f.type].push(f.name);
|
|
135
|
+
}
|
|
136
|
+
const stale = files.filter(f => f.isStale).map(f => f.name);
|
|
137
|
+
const dupes = findPotentialDuplicates(files);
|
|
138
|
+
const suggestions = [];
|
|
139
|
+
if (dupes.length > 0)
|
|
140
|
+
suggestions.push(`Merge ${dupes.length} potential duplicate(s): ${dupes.map(([a, b]) => `${a} + ${b}`).join('; ')}`);
|
|
141
|
+
if (stale.length > 0)
|
|
142
|
+
suggestions.push(`Review ${stale.length} stale file(s) (${STALE_DAYS}+ days): ${stale.join(', ')}`);
|
|
143
|
+
if (indexIssues.orphanedEntries.length > 0)
|
|
144
|
+
suggestions.push(`Remove ${indexIssues.orphanedEntries.length} orphaned MEMORY.md link(s): ${indexIssues.orphanedEntries.join(', ')}`);
|
|
145
|
+
if (indexIssues.unindexedFiles.length > 0)
|
|
146
|
+
suggestions.push(`Add ${indexIssues.unindexedFiles.length} missing MEMORY.md entry(s): ${indexIssues.unindexedFiles.join(', ')}`);
|
|
147
|
+
if (suggestions.length === 0)
|
|
148
|
+
suggestions.push('Memory looks clean — no consolidation needed.');
|
|
149
|
+
const lines = [`## Memory Consolidation Report — ${label}`, '', `**Total memory files:** ${files.length}`, ''];
|
|
150
|
+
if (files.length === 0) {
|
|
151
|
+
lines.push('No memory files found in this directory.');
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
lines.push('### Files by Type');
|
|
155
|
+
for (const [type, names] of Object.entries(byType))
|
|
156
|
+
lines.push(`- **${type}** (${names.length}): ${names.join(', ')}`);
|
|
157
|
+
if (stale.length > 0) {
|
|
158
|
+
lines.push('', `### Stale Files (${STALE_DAYS}+ days unchanged)`);
|
|
159
|
+
stale.forEach(f => lines.push(`- ${f}`));
|
|
160
|
+
}
|
|
161
|
+
if (dupes.length > 0) {
|
|
162
|
+
lines.push('', '### Potential Duplicates');
|
|
163
|
+
dupes.forEach(([a, b]) => lines.push(`- \`${a}\` and \`${b}\``));
|
|
164
|
+
}
|
|
165
|
+
if (indexIssues.orphanedEntries.length > 0) {
|
|
166
|
+
lines.push('', '### Orphaned MEMORY.md Entries');
|
|
167
|
+
indexIssues.orphanedEntries.forEach(f => lines.push(`- ${f}`));
|
|
168
|
+
}
|
|
169
|
+
if (indexIssues.unindexedFiles.length > 0) {
|
|
170
|
+
lines.push('', '### Unindexed Files (not in MEMORY.md)');
|
|
171
|
+
indexIssues.unindexedFiles.forEach(f => lines.push(`- ${f}`));
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
lines.push('', '### Suggested Actions');
|
|
175
|
+
suggestions.forEach((s, i) => lines.push(`${i + 1}. ${s}`));
|
|
176
|
+
return lines.join('\n');
|
|
177
|
+
}
|
|
178
|
+
// ── Tool registration ─────────────────────────────────────────────────────────
|
|
179
|
+
export function registerDreamTools(ctx) {
|
|
180
|
+
const { server, getRepoRootPath } = ctx;
|
|
181
|
+
server.tool('merlin_dream', 'Enable, disable, check status, or manually trigger consolidation of Merlin\'s AutoDream memory system. AutoDream keeps Claude Code\'s memory files organized by periodically consolidating them. Use "enable" to turn on automatic consolidation, "status" to inspect memory health, and "consolidate" to get a report with actionable suggestions for merging duplicates, pruning stale entries, and fixing the MEMORY.md index.', {
|
|
182
|
+
action: z.enum(['enable', 'disable', 'status', 'consolidate']).describe('enable — turn on AutoDream; disable — turn it off; status — check current state and memory stats; consolidate — scan memory and return actionable suggestions'),
|
|
183
|
+
scope: z.enum(['project', 'global']).optional().describe('"project" (default) uses .claude/projects/<repo>/memory/, "global" uses ~/.claude/memory/'),
|
|
184
|
+
}, async ({ action, scope = 'project' }) => {
|
|
185
|
+
try {
|
|
186
|
+
const { dir: memDir, label } = await resolveMemoryDir(scope, getRepoRootPath);
|
|
187
|
+
if (action === 'enable') {
|
|
188
|
+
const settings = readSettings();
|
|
189
|
+
settings.autoMemoryEnabled = true;
|
|
190
|
+
writeSettings(settings);
|
|
191
|
+
const text = [
|
|
192
|
+
'## AutoDream Enabled',
|
|
193
|
+
'',
|
|
194
|
+
'Claude Code will now automatically consolidate memory files over time.',
|
|
195
|
+
`**Memory path (${scope}):** \`${memDir}\``,
|
|
196
|
+
'',
|
|
197
|
+
'Run `merlin_dream` with action "status" to check memory health.',
|
|
198
|
+
'Run `merlin_dream` with action "consolidate" to get manual suggestions.',
|
|
199
|
+
].join('\n');
|
|
200
|
+
return { content: [{ type: 'text', text: coachWrap('merlin_dream', text) }] };
|
|
201
|
+
}
|
|
202
|
+
if (action === 'disable') {
|
|
203
|
+
const settings = readSettings();
|
|
204
|
+
settings.autoMemoryEnabled = false;
|
|
205
|
+
writeSettings(settings);
|
|
206
|
+
return { content: [{ type: 'text', text: coachWrap('merlin_dream', '## AutoDream Disabled\n\nAutomatic memory consolidation has been turned off.\nRun `merlin_dream` with action "enable" to re-activate.') }] };
|
|
207
|
+
}
|
|
208
|
+
if (action === 'status') {
|
|
209
|
+
const settings = readSettings();
|
|
210
|
+
const files = scanMemoryFiles(memDir);
|
|
211
|
+
const sorted = [...files].sort((a, b) => a.modifiedAt.getTime() - b.modifiedAt.getTime());
|
|
212
|
+
const lines = [
|
|
213
|
+
'## AutoDream Status',
|
|
214
|
+
'',
|
|
215
|
+
`**Enabled:** ${settings.autoMemoryEnabled === true ? 'Yes' : 'No'}`,
|
|
216
|
+
`**Scope:** ${label}`,
|
|
217
|
+
`**Memory directory:** \`${memDir}\``,
|
|
218
|
+
`**Directory exists:** ${existsSync(memDir) ? 'Yes' : 'No (created on first memory save)'}`,
|
|
219
|
+
'',
|
|
220
|
+
'### Memory Stats',
|
|
221
|
+
`- **Total files:** ${files.length}`,
|
|
222
|
+
`- **Stale (${STALE_DAYS}+ days):** ${files.filter(f => f.isStale).length}`,
|
|
223
|
+
sorted[0] ? `- **Oldest:** ${sorted[0].name} (${sorted[0].modifiedAt.toLocaleDateString()})` : '',
|
|
224
|
+
sorted.at(-1) ? `- **Newest:** ${sorted.at(-1).name} (${sorted.at(-1).modifiedAt.toLocaleDateString()})` : '',
|
|
225
|
+
].filter(Boolean);
|
|
226
|
+
if (settings.autoMemoryEnabled !== true)
|
|
227
|
+
lines.push('', 'Run `merlin_dream` with action "enable" to activate AutoDream.');
|
|
228
|
+
if (files.length > 0)
|
|
229
|
+
lines.push('', 'Run `merlin_dream` with action "consolidate" for a full health report.');
|
|
230
|
+
return { content: [{ type: 'text', text: coachWrap('merlin_dream', lines.join('\n')) }] };
|
|
231
|
+
}
|
|
232
|
+
// consolidate
|
|
233
|
+
const files = scanMemoryFiles(memDir);
|
|
234
|
+
const indexIssues = checkMemoryIndex(memDir, files);
|
|
235
|
+
const report = formatConsolidationReport(files, indexIssues, label);
|
|
236
|
+
return { content: [{ type: 'text', text: coachWrap('merlin_dream', report) }] };
|
|
237
|
+
}
|
|
238
|
+
catch (error) {
|
|
239
|
+
return {
|
|
240
|
+
content: [{ type: 'text', text: `Error in merlin_dream: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
241
|
+
isError: true,
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
//# sourceMappingURL=dream.js.map
|
|
@@ -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AE,wEAAwE,CAAC,CAAC;gBAC/G,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,SAAS,CAAC,cAAc,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;YACrG,CAAC;YAED,cAAc;YACd,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;YACtC,MAAM,WAAW,GAAG,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;YACpD,MAAM,MAAM,GAAG,yBAAyB,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;YACpE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,SAAS,CAAC,cAAc,EAAE,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;QAE3F,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,0BAA0B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,EAAE,CAAC;gBAChI,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HUD Tools
|
|
3
|
+
* MCP tools for reading and writing live session HUD metrics.
|
|
4
|
+
*
|
|
5
|
+
* merlin_hud_status — read all metrics (agents, tasks, cost, context, rate limit, git)
|
|
6
|
+
* merlin_hud_update — write a single metric (called by hooks and agents)
|
|
7
|
+
*
|
|
8
|
+
* All state lives in ~/.merlin/state/ as small JSON files.
|
|
9
|
+
* Missing files are handled gracefully — metrics fall back to null.
|
|
10
|
+
*/
|
|
11
|
+
import type { ToolContext } from './types.js';
|
|
12
|
+
export declare function registerHudTools(ctx: ToolContext): void;
|
|
13
|
+
//# sourceMappingURL=hud.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hud.d.ts","sourceRoot":"","sources":["../../../src/server/tools/hud.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AA0K9C,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CAgKvD"}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HUD Tools
|
|
3
|
+
* MCP tools for reading and writing live session HUD metrics.
|
|
4
|
+
*
|
|
5
|
+
* merlin_hud_status — read all metrics (agents, tasks, cost, context, rate limit, git)
|
|
6
|
+
* merlin_hud_update — write a single metric (called by hooks and agents)
|
|
7
|
+
*
|
|
8
|
+
* All state lives in ~/.merlin/state/ as small JSON files.
|
|
9
|
+
* Missing files are handled gracefully — metrics fall back to null.
|
|
10
|
+
*/
|
|
11
|
+
import { z } from 'zod';
|
|
12
|
+
import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'fs';
|
|
13
|
+
import { execSync } from 'child_process';
|
|
14
|
+
import { homedir } from 'os';
|
|
15
|
+
import { join } from 'path';
|
|
16
|
+
const STATE_DIR = join(homedir(), '.merlin', 'state');
|
|
17
|
+
const MERLIN_DIR = join(homedir(), '.claude', 'merlin');
|
|
18
|
+
// ── State file paths ────────────────────────────────────────────────────────
|
|
19
|
+
const STATE_FILES = {
|
|
20
|
+
agents: join(STATE_DIR, 'agents.json'),
|
|
21
|
+
tasks: join(STATE_DIR, 'tasks.json'),
|
|
22
|
+
sessionCost: join(STATE_DIR, 'session-cost.json'),
|
|
23
|
+
lastContext: join(STATE_DIR, 'last-context.json'),
|
|
24
|
+
rateLimit: join(STATE_DIR, 'rate-limit.json'),
|
|
25
|
+
};
|
|
26
|
+
// ── Helpers ─────────────────────────────────────────────────────────────────
|
|
27
|
+
function ensureStateDir() {
|
|
28
|
+
if (!existsSync(STATE_DIR)) {
|
|
29
|
+
mkdirSync(STATE_DIR, { recursive: true });
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function readJson(filePath) {
|
|
33
|
+
if (!existsSync(filePath))
|
|
34
|
+
return null;
|
|
35
|
+
try {
|
|
36
|
+
return JSON.parse(readFileSync(filePath, 'utf8'));
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function writeJson(filePath, data) {
|
|
43
|
+
ensureStateDir();
|
|
44
|
+
writeFileSync(filePath, JSON.stringify(data, null, 2), 'utf8');
|
|
45
|
+
}
|
|
46
|
+
function readVersion() {
|
|
47
|
+
const versionFile = join(MERLIN_DIR, 'VERSION');
|
|
48
|
+
if (!existsSync(versionFile))
|
|
49
|
+
return null;
|
|
50
|
+
return readFileSync(versionFile, 'utf8').trim() || null;
|
|
51
|
+
}
|
|
52
|
+
function readGitBranch() {
|
|
53
|
+
try {
|
|
54
|
+
return execSync('git rev-parse --abbrev-ref HEAD', { timeout: 500, stdio: ['pipe', 'pipe', 'pipe'] })
|
|
55
|
+
.toString()
|
|
56
|
+
.trim();
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function readGitInfo() {
|
|
63
|
+
const branch = readGitBranch();
|
|
64
|
+
let repoName = null;
|
|
65
|
+
try {
|
|
66
|
+
const remote = execSync('git remote get-url origin', { timeout: 500, stdio: ['pipe', 'pipe', 'pipe'] })
|
|
67
|
+
.toString()
|
|
68
|
+
.trim();
|
|
69
|
+
// Extract repo name from URL (handles HTTPS and SSH)
|
|
70
|
+
const match = remote.match(/[:/]([^/]+\/[^/.]+)(\.git)?$/);
|
|
71
|
+
repoName = match ? match[1] : null;
|
|
72
|
+
}
|
|
73
|
+
catch {
|
|
74
|
+
// no remote — that's fine
|
|
75
|
+
}
|
|
76
|
+
return { branch, repoName };
|
|
77
|
+
}
|
|
78
|
+
function secondsToHuman(elapsed) {
|
|
79
|
+
if (elapsed < 60)
|
|
80
|
+
return `${elapsed}s`;
|
|
81
|
+
if (elapsed < 3600)
|
|
82
|
+
return `${Math.floor(elapsed / 60)}m`;
|
|
83
|
+
return `${Math.floor(elapsed / 3600)}h`;
|
|
84
|
+
}
|
|
85
|
+
function readAgentMetrics() {
|
|
86
|
+
const data = readJson(STATE_FILES.agents);
|
|
87
|
+
return {
|
|
88
|
+
active: typeof data?.active === 'number' ? data.active : 0,
|
|
89
|
+
names: Array.isArray(data?.names) ? data.names : [],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function readTaskMetrics() {
|
|
93
|
+
const data = readJson(STATE_FILES.tasks);
|
|
94
|
+
if (!data)
|
|
95
|
+
return null;
|
|
96
|
+
return {
|
|
97
|
+
done: typeof data.done === 'number' ? data.done : 0,
|
|
98
|
+
total: typeof data.total === 'number' ? data.total : 0,
|
|
99
|
+
current: typeof data.current === 'string' ? data.current : null,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function readCostMetrics() {
|
|
103
|
+
const data = readJson(STATE_FILES.sessionCost);
|
|
104
|
+
if (!data)
|
|
105
|
+
return null;
|
|
106
|
+
const raw = data.total;
|
|
107
|
+
const total = typeof raw === 'number'
|
|
108
|
+
? raw.toFixed(2)
|
|
109
|
+
: typeof raw === 'string'
|
|
110
|
+
? raw
|
|
111
|
+
: null;
|
|
112
|
+
if (total === null)
|
|
113
|
+
return null;
|
|
114
|
+
return { total, currency: 'USD' };
|
|
115
|
+
}
|
|
116
|
+
function readContextMetrics() {
|
|
117
|
+
const data = readJson(STATE_FILES.lastContext);
|
|
118
|
+
if (!data)
|
|
119
|
+
return null;
|
|
120
|
+
const ts = typeof data.timestamp === 'number' ? data.timestamp : null;
|
|
121
|
+
if (!ts)
|
|
122
|
+
return null;
|
|
123
|
+
const elapsed = Math.floor(Date.now() / 1000) - ts;
|
|
124
|
+
return {
|
|
125
|
+
ageSeconds: elapsed,
|
|
126
|
+
ageHuman: secondsToHuman(elapsed),
|
|
127
|
+
lastQuery: typeof data.query === 'string' ? data.query : null,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function readRateLimitMetrics() {
|
|
131
|
+
const data = readJson(STATE_FILES.rateLimit);
|
|
132
|
+
const raw = typeof data?.status === 'string' ? data.status.toUpperCase() : 'OK';
|
|
133
|
+
const status = raw === 'WARN' ? 'WARN' : raw === 'BLOCKED' ? 'BLOCKED' : 'OK';
|
|
134
|
+
return {
|
|
135
|
+
status,
|
|
136
|
+
remainingTokens: typeof data?.remainingTokens === 'number' ? data.remainingTokens : null,
|
|
137
|
+
resetsAt: typeof data?.resetsAt === 'string' ? data.resetsAt : null,
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
// ── Zod schemas ──────────────────────────────────────────────────────────────
|
|
141
|
+
const HudUpdateSchema = z.object({
|
|
142
|
+
metric: z.enum(['agents', 'tasks', 'cost', 'context', 'rateLimit']),
|
|
143
|
+
value: z.union([z.string(), z.number()]),
|
|
144
|
+
});
|
|
145
|
+
// ── Tool registration ────────────────────────────────────────────────────────
|
|
146
|
+
export function registerHudTools(ctx) {
|
|
147
|
+
const { server } = ctx;
|
|
148
|
+
// ── merlin_hud_status ─────────────────────────────────────────────────────
|
|
149
|
+
server.tool('merlin_hud_status', 'Get real-time HUD metrics for the current Merlin session: active agents, task progress, ' +
|
|
150
|
+
'session cost, context freshness (time since last Sights call), rate limit health, and git ' +
|
|
151
|
+
'branch/repo info. Use to display a live statusline, build a session dashboard, or check ' +
|
|
152
|
+
'session health at a glance. Returns structured JSON with all available metrics; missing ' +
|
|
153
|
+
'state files produce null values rather than errors.', {}, async () => {
|
|
154
|
+
const version = readVersion();
|
|
155
|
+
const agents = readAgentMetrics();
|
|
156
|
+
const tasks = readTaskMetrics();
|
|
157
|
+
const cost = readCostMetrics();
|
|
158
|
+
const context = readContextMetrics();
|
|
159
|
+
const rateLimit = readRateLimitMetrics();
|
|
160
|
+
const git = readGitInfo();
|
|
161
|
+
// Build human-readable statusline
|
|
162
|
+
const parts = [];
|
|
163
|
+
if (version)
|
|
164
|
+
parts.push(`v${version}`);
|
|
165
|
+
parts.push(`${agents.active} agents`);
|
|
166
|
+
if (tasks)
|
|
167
|
+
parts.push(`${tasks.done}/${tasks.total} tasks`);
|
|
168
|
+
if (cost)
|
|
169
|
+
parts.push(`$${cost.total}`);
|
|
170
|
+
if (git.branch)
|
|
171
|
+
parts.push(git.branch);
|
|
172
|
+
if (context)
|
|
173
|
+
parts.push(`ctx:${context.ageHuman}`);
|
|
174
|
+
parts.push(`rate:${rateLimit.status}`);
|
|
175
|
+
const statusLine = parts.join(' | ');
|
|
176
|
+
const payload = {
|
|
177
|
+
statusLine,
|
|
178
|
+
metrics: {
|
|
179
|
+
version,
|
|
180
|
+
agents,
|
|
181
|
+
tasks,
|
|
182
|
+
cost,
|
|
183
|
+
context,
|
|
184
|
+
rateLimit,
|
|
185
|
+
git,
|
|
186
|
+
},
|
|
187
|
+
stateDir: STATE_DIR,
|
|
188
|
+
generatedAt: new Date().toISOString(),
|
|
189
|
+
};
|
|
190
|
+
return {
|
|
191
|
+
content: [{
|
|
192
|
+
type: 'text',
|
|
193
|
+
text: JSON.stringify(payload, null, 2),
|
|
194
|
+
}],
|
|
195
|
+
};
|
|
196
|
+
});
|
|
197
|
+
// ── merlin_hud_update ─────────────────────────────────────────────────────
|
|
198
|
+
server.tool('merlin_hud_update', 'Update a single HUD metric so the statusline stays current. Called by hooks and agents ' +
|
|
199
|
+
'after state changes: e.g. set agents=2 when a new agent starts, set cost=1.24 after a ' +
|
|
200
|
+
'routing call, set context timestamp when Sights is queried. ' +
|
|
201
|
+
'metric: one of agents | tasks | cost | context | rateLimit. ' +
|
|
202
|
+
'value: a number (for agents/cost) or a JSON string with structured fields.', {
|
|
203
|
+
metric: z.enum(['agents', 'tasks', 'cost', 'context', 'rateLimit'])
|
|
204
|
+
.describe('Which metric to update'),
|
|
205
|
+
value: z.union([z.string(), z.number()])
|
|
206
|
+
.describe('New value — number for scalar metrics, JSON string for structured ones'),
|
|
207
|
+
}, async (raw) => {
|
|
208
|
+
const parsed = HudUpdateSchema.safeParse(raw);
|
|
209
|
+
if (!parsed.success) {
|
|
210
|
+
return {
|
|
211
|
+
content: [{
|
|
212
|
+
type: 'text',
|
|
213
|
+
text: `Invalid input: ${parsed.error.message}`,
|
|
214
|
+
}],
|
|
215
|
+
isError: true,
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
const { metric, value } = parsed.data;
|
|
219
|
+
try {
|
|
220
|
+
ensureStateDir();
|
|
221
|
+
switch (metric) {
|
|
222
|
+
case 'agents': {
|
|
223
|
+
const count = typeof value === 'number' ? value : parseInt(String(value), 10);
|
|
224
|
+
const existing = readJson(STATE_FILES.agents) ?? {};
|
|
225
|
+
writeJson(STATE_FILES.agents, { ...existing, active: isNaN(count) ? 0 : count });
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
case 'tasks': {
|
|
229
|
+
// value can be "3/8" or a JSON string like {"done":3,"total":8}
|
|
230
|
+
if (typeof value === 'string' && value.includes('/')) {
|
|
231
|
+
const [done, total] = value.split('/').map(Number);
|
|
232
|
+
const existing = readJson(STATE_FILES.tasks) ?? {};
|
|
233
|
+
writeJson(STATE_FILES.tasks, { ...existing, done: done ?? 0, total: total ?? 0 });
|
|
234
|
+
}
|
|
235
|
+
else if (typeof value === 'string') {
|
|
236
|
+
try {
|
|
237
|
+
const obj = JSON.parse(value);
|
|
238
|
+
const existing = readJson(STATE_FILES.tasks) ?? {};
|
|
239
|
+
writeJson(STATE_FILES.tasks, { ...existing, ...obj });
|
|
240
|
+
}
|
|
241
|
+
catch {
|
|
242
|
+
return {
|
|
243
|
+
content: [{
|
|
244
|
+
type: 'text',
|
|
245
|
+
text: 'tasks value must be "done/total" (e.g. "3/8") or a JSON object.',
|
|
246
|
+
}],
|
|
247
|
+
isError: true,
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
case 'cost': {
|
|
254
|
+
const total = typeof value === 'number'
|
|
255
|
+
? value.toFixed(2)
|
|
256
|
+
: String(value).replace(/^\$/, '');
|
|
257
|
+
const existing = readJson(STATE_FILES.sessionCost) ?? {};
|
|
258
|
+
writeJson(STATE_FILES.sessionCost, { ...existing, total });
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
case 'context': {
|
|
262
|
+
const ts = Math.floor(Date.now() / 1000);
|
|
263
|
+
const query = typeof value === 'string' ? value : null;
|
|
264
|
+
const existing = readJson(STATE_FILES.lastContext) ?? {};
|
|
265
|
+
writeJson(STATE_FILES.lastContext, { ...existing, timestamp: ts, query });
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
case 'rateLimit': {
|
|
269
|
+
const statusRaw = String(value).toUpperCase();
|
|
270
|
+
const status = statusRaw === 'WARN' ? 'WARN' : statusRaw === 'BLOCKED' ? 'BLOCKED' : 'OK';
|
|
271
|
+
const existing = readJson(STATE_FILES.rateLimit) ?? {};
|
|
272
|
+
writeJson(STATE_FILES.rateLimit, { ...existing, status });
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
return {
|
|
277
|
+
content: [{
|
|
278
|
+
type: 'text',
|
|
279
|
+
text: `HUD metric '${metric}' updated.`,
|
|
280
|
+
}],
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
catch (err) {
|
|
284
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
285
|
+
return {
|
|
286
|
+
content: [{
|
|
287
|
+
type: 'text',
|
|
288
|
+
text: `Failed to write HUD state: ${msg}`,
|
|
289
|
+
}],
|
|
290
|
+
isError: true,
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
//# sourceMapping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;gBACD,KAAK,WAAW,CAAC,CAAC,CAAC;oBACjB,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;oBAC9C,MAAM,MAAM,GAAG,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;oBAC1F,MAAM,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;oBACvD,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,EAAE,GAAG,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;oBAC1D,MAAM;gBACR,CAAC;YACH,CAAC;YAED,OAAO;gBACL,OAAO,EAAE,CAAC;wBACR,IAAI,EAAE,MAAe;wBACrB,IAAI,EAAE,eAAe,MAAM,YAAY;qBACxC,CAAC;aACH,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,GAAG,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAC7D,OAAO;gBACL,OAAO,EAAE,CAAC;wBACR,IAAI,EAAE,MAAe;wBACrB,IAAI,EAAE,8BAA8B,GAAG,EAAE;qBAC1C,CAAC;gBACF,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -19,4 +19,8 @@ export { registerSessionSearchTools } from './session-search.js';
|
|
|
19
19
|
export { registerPromoteTools } from './promote.js';
|
|
20
20
|
export { registerLearningTools } from './learning.js';
|
|
21
21
|
export { registerChallengeTools } from './challenge.js';
|
|
22
|
+
export { registerAutoModeTools } from './auto-mode.js';
|
|
23
|
+
export { registerDreamTools } from './dream.js';
|
|
24
|
+
export { registerComputerUseTools } from './computer-use.js';
|
|
25
|
+
export { registerSkillsTools } from './skills.js';
|
|
22
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/tools/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/tools/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -18,4 +18,8 @@ export { registerSessionSearchTools } from './session-search.js';
|
|
|
18
18
|
export { registerPromoteTools } from './promote.js';
|
|
19
19
|
export { registerLearningTools } from './learning.js';
|
|
20
20
|
export { registerChallengeTools } from './challenge.js';
|
|
21
|
+
export { registerAutoModeTools } from './auto-mode.js';
|
|
22
|
+
export { registerDreamTools } from './dream.js';
|
|
23
|
+
export { registerComputerUseTools } from './computer-use.js';
|
|
24
|
+
export { registerSkillsTools } from './skills.js';
|
|
21
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/server/tools/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/server/tools/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,yBAA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