botholomew 0.8.8 → 0.8.9
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/package.json
CHANGED
|
@@ -36,10 +36,11 @@ export function registerCapabilitiesCommand(program: Command) {
|
|
|
36
36
|
});
|
|
37
37
|
} catch (err) {
|
|
38
38
|
spinner.error({ text: `Failed: ${(err as Error).message}` });
|
|
39
|
-
process.exit(1);
|
|
40
|
-
} finally {
|
|
41
39
|
await mcpxClient?.close();
|
|
40
|
+
process.exit(1);
|
|
42
41
|
}
|
|
42
|
+
await mcpxClient?.close();
|
|
43
|
+
process.exit(0);
|
|
43
44
|
}),
|
|
44
45
|
);
|
|
45
46
|
}
|
|
@@ -268,22 +268,17 @@ async function summarizeViaLLM(
|
|
|
268
268
|
const userPrompt = `Summarize this tool inventory. Return via the \`${SUMMARIZE_TOOL_NAME}\` tool.\n\n${renderInventoryForPrompt(inv)}`;
|
|
269
269
|
|
|
270
270
|
try {
|
|
271
|
-
const response = await
|
|
272
|
-
|
|
271
|
+
const response = await client.messages.create(
|
|
272
|
+
{
|
|
273
273
|
model: config.chunker_model,
|
|
274
274
|
max_tokens: SUMMARIZE_MAX_TOKENS,
|
|
275
275
|
system: SUMMARIZE_SYSTEM,
|
|
276
276
|
tools: [SUMMARIZE_TOOL],
|
|
277
277
|
tool_choice: { type: "tool", name: SUMMARIZE_TOOL_NAME },
|
|
278
278
|
messages: [{ role: "user", content: userPrompt }],
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
() => reject(new Error("Capability summarization timeout")),
|
|
283
|
-
SUMMARIZE_TIMEOUT_MS,
|
|
284
|
-
),
|
|
285
|
-
),
|
|
286
|
-
]);
|
|
279
|
+
},
|
|
280
|
+
{ timeout: SUMMARIZE_TIMEOUT_MS },
|
|
281
|
+
);
|
|
287
282
|
|
|
288
283
|
const toolBlock = response.content.find((b) => b.type === "tool_use");
|
|
289
284
|
if (!toolBlock || toolBlock.type !== "tool_use") return null;
|