agentsbestfriend 0.7.0 → 0.7.2
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 +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -18971,7 +18971,7 @@ Summary:`;
|
|
|
18971
18971
|
return data.response.trim();
|
|
18972
18972
|
}
|
|
18973
18973
|
async generateEmbedding(text4) {
|
|
18974
|
-
const chunkSize =
|
|
18974
|
+
const chunkSize = 2e3;
|
|
18975
18975
|
const chunks = [];
|
|
18976
18976
|
if (text4.length <= chunkSize) {
|
|
18977
18977
|
chunks.push(text4);
|
|
@@ -18995,6 +18995,9 @@ Summary:`;
|
|
|
18995
18995
|
});
|
|
18996
18996
|
if (!res.ok) {
|
|
18997
18997
|
const body = await res.text();
|
|
18998
|
+
if (res.status >= 400 && res.status < 500) {
|
|
18999
|
+
throw new Error(`embed ${res.status}: ${body}`);
|
|
19000
|
+
}
|
|
18998
19001
|
throw new LlmUnavailableError("ollama", `embed ${res.status}: ${body}`);
|
|
18999
19002
|
}
|
|
19000
19003
|
const data = await res.json();
|
|
@@ -43426,7 +43429,7 @@ function registerPingTool(server) {
|
|
|
43426
43429
|
const status = {
|
|
43427
43430
|
status: "ok",
|
|
43428
43431
|
server: "agents-best-friend",
|
|
43429
|
-
version: "0.7.
|
|
43432
|
+
version: "0.7.2",
|
|
43430
43433
|
projectRoot,
|
|
43431
43434
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
43432
43435
|
};
|
|
@@ -45555,7 +45558,7 @@ Purely heuristic \u2014 no LLM required. Useful to understand a project's style
|
|
|
45555
45558
|
|
|
45556
45559
|
// ../server/dist/server.js
|
|
45557
45560
|
var SERVER_NAME = "agents-best-friend";
|
|
45558
|
-
var SERVER_VERSION = "0.7.
|
|
45561
|
+
var SERVER_VERSION = "0.7.2";
|
|
45559
45562
|
function createAbfServer() {
|
|
45560
45563
|
const server = new McpServer({
|
|
45561
45564
|
name: SERVER_NAME,
|
|
@@ -45604,7 +45607,7 @@ async function startCommand() {
|
|
|
45604
45607
|
|
|
45605
45608
|
// src/index.ts
|
|
45606
45609
|
var program = new Command();
|
|
45607
|
-
program.name("abf").description("AgentsBestFriend \u2014 AI-first code navigation and analysis tools").version("0.7.
|
|
45610
|
+
program.name("abf").description("AgentsBestFriend \u2014 AI-first code navigation and analysis tools").version("0.7.2");
|
|
45608
45611
|
program.command("start").description("Start the MCP server in stdio mode (for AI agent connections)").action(async () => {
|
|
45609
45612
|
await startCommand();
|
|
45610
45613
|
});
|