@codazen/harmonica-mcp 3.8.2 → 3.8.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/index.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27444,7 +27444,7 @@ function registerNoteTools(server, ctx, client) {
|
|
|
27444
27444
|
return { content: [{ type: "text", text: `Failed to list beat notes: ${message}` }], isError: true };
|
|
27445
27445
|
}
|
|
27446
27446
|
if (allBeatNotes === void 0) {
|
|
27447
|
-
return { content: [{ type: "text", text: "Failed to list beat notes: beat or
|
|
27447
|
+
return { content: [{ type: "text", text: "Failed to list beat notes: beat or system not found" }], isError: true };
|
|
27448
27448
|
}
|
|
27449
27449
|
const sorted = orderBy ? sortNotesByCreatedAt(allBeatNotes, orderBy) : allBeatNotes;
|
|
27450
27450
|
const filtered = sourceDocumentNoteId ? sorted.filter((n) => n.sourceSubmissionId === sourceDocumentNoteId) : sorted;
|
|
@@ -28218,7 +28218,7 @@ ${formatTree(tree.root)}` }] };
|
|
|
28218
28218
|
}
|
|
28219
28219
|
}
|
|
28220
28220
|
if (!scopeProjectId) {
|
|
28221
|
-
return { content: [{ type: "text", text: "No
|
|
28221
|
+
return { content: [{ type: "text", text: "No system scope: pass systemId or bind the notebook to a system first." }], isError: true };
|
|
28222
28222
|
}
|
|
28223
28223
|
let tree;
|
|
28224
28224
|
try {
|
|
@@ -28635,7 +28635,7 @@ function registerOnboardingTools(server, ctx, client) {
|
|
|
28635
28635
|
const result = await client.draftOnboardingBeats(systemId, { systemTitle, projectDescription, analysisJson });
|
|
28636
28636
|
if (!result.suggestions || result.suggestions.length === 0) {
|
|
28637
28637
|
return {
|
|
28638
|
-
content: [{ type: "text", text: "Failed to generate Beat suggestions. Try providing more
|
|
28638
|
+
content: [{ type: "text", text: "Failed to generate Beat suggestions. Try providing more system context." }]
|
|
28639
28639
|
};
|
|
28640
28640
|
}
|
|
28641
28641
|
const lines = [
|
|
@@ -29287,11 +29287,11 @@ function registerPortfolioCoherenceTools(server, ctx, client) {
|
|
|
29287
29287
|
const beatMap = new Map(allProjectBeats.map((b) => [b.beatId, b]));
|
|
29288
29288
|
const primaryBeat = beatMap.get(resolvedPrimaryId);
|
|
29289
29289
|
if (!primaryBeat) {
|
|
29290
|
-
return { content: [{ type: "text", text: `Primary Beat "${resolvedPrimaryId}" not found in
|
|
29290
|
+
return { content: [{ type: "text", text: `Primary Beat "${resolvedPrimaryId}" not found in system "${systemId}".` }], isError: true };
|
|
29291
29291
|
}
|
|
29292
29292
|
const missingIds = duplicateBeatIds.filter((id) => !beatMap.has(id));
|
|
29293
29293
|
if (missingIds.length > 0) {
|
|
29294
|
-
return { content: [{ type: "text", text: `Beat(s) not found in
|
|
29294
|
+
return { content: [{ type: "text", text: `Beat(s) not found in system "${systemId}": ${missingIds.join(", ")}` }], isError: true };
|
|
29295
29295
|
}
|
|
29296
29296
|
const dupBvResults = await Promise.allSettled(
|
|
29297
29297
|
duplicateBeatIds.map(
|
|
@@ -34317,7 +34317,7 @@ function loadConfig() {
|
|
|
34317
34317
|
};
|
|
34318
34318
|
}
|
|
34319
34319
|
async function main() {
|
|
34320
|
-
console.error(`[harmonica-mcp] v${"3.8.
|
|
34320
|
+
console.error(`[harmonica-mcp] v${"3.8.3"} starting\u2026`);
|
|
34321
34321
|
const config2 = loadConfig();
|
|
34322
34322
|
const client = createHttpClient({
|
|
34323
34323
|
apiBaseUrl: config2.apiBaseUrl,
|