agentsbestfriend 0.7.2 → 0.8.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/dist/index.js +20 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19266,7 +19266,7 @@ __export(init_exports, {
|
|
|
19266
19266
|
});
|
|
19267
19267
|
import * as clack from "@clack/prompts";
|
|
19268
19268
|
import { resolve as resolve2 } from "path";
|
|
19269
|
-
import { existsSync as existsSync5, mkdirSync as mkdirSync3 } from "fs";
|
|
19269
|
+
import { existsSync as existsSync5, mkdirSync as mkdirSync3, readFileSync as readFileSync9, appendFileSync } from "fs";
|
|
19270
19270
|
import { execFile as execFile5 } from "child_process";
|
|
19271
19271
|
import { promisify as promisify5 } from "util";
|
|
19272
19272
|
async function initCommand(projectPath) {
|
|
@@ -19284,6 +19284,22 @@ async function initCommand(projectPath) {
|
|
|
19284
19284
|
} else {
|
|
19285
19285
|
clack.log.info(`ABF directory already exists at ${abfDir}`);
|
|
19286
19286
|
}
|
|
19287
|
+
const gitignorePath = resolve2(root, ".gitignore");
|
|
19288
|
+
const gitignoreExists = existsSync5(gitignorePath);
|
|
19289
|
+
const alreadyIgnored = gitignoreExists && readFileSync9(gitignorePath, "utf-8").split("\n").some((line) => line.trim() === ".abf" || line.trim() === ".abf/");
|
|
19290
|
+
if (!alreadyIgnored) {
|
|
19291
|
+
const addToGitignore = await clack.confirm({
|
|
19292
|
+
message: "Add .abf/ to .gitignore?",
|
|
19293
|
+
initialValue: true
|
|
19294
|
+
});
|
|
19295
|
+
if (!clack.isCancel(addToGitignore) && addToGitignore) {
|
|
19296
|
+
const block = `${gitignoreExists ? "\n" : ""}# AgentsBestFriend (MCP) local index
|
|
19297
|
+
.abf/
|
|
19298
|
+
`;
|
|
19299
|
+
appendFileSync(gitignorePath, block, "utf-8");
|
|
19300
|
+
clack.log.info(".abf/ added to .gitignore");
|
|
19301
|
+
}
|
|
19302
|
+
}
|
|
19287
19303
|
const s = clack.spinner();
|
|
19288
19304
|
s.start("Running initial index...");
|
|
19289
19305
|
let stats;
|
|
@@ -43429,7 +43445,7 @@ function registerPingTool(server) {
|
|
|
43429
43445
|
const status = {
|
|
43430
43446
|
status: "ok",
|
|
43431
43447
|
server: "agents-best-friend",
|
|
43432
|
-
version: "0.
|
|
43448
|
+
version: "0.8.0",
|
|
43433
43449
|
projectRoot,
|
|
43434
43450
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
43435
43451
|
};
|
|
@@ -45558,7 +45574,7 @@ Purely heuristic \u2014 no LLM required. Useful to understand a project's style
|
|
|
45558
45574
|
|
|
45559
45575
|
// ../server/dist/server.js
|
|
45560
45576
|
var SERVER_NAME = "agents-best-friend";
|
|
45561
|
-
var SERVER_VERSION = "0.
|
|
45577
|
+
var SERVER_VERSION = "0.8.0";
|
|
45562
45578
|
function createAbfServer() {
|
|
45563
45579
|
const server = new McpServer({
|
|
45564
45580
|
name: SERVER_NAME,
|
|
@@ -45607,7 +45623,7 @@ async function startCommand() {
|
|
|
45607
45623
|
|
|
45608
45624
|
// src/index.ts
|
|
45609
45625
|
var program = new Command();
|
|
45610
|
-
program.name("abf").description("AgentsBestFriend \u2014 AI-first code navigation and analysis tools").version("0.
|
|
45626
|
+
program.name("abf").description("AgentsBestFriend \u2014 AI-first code navigation and analysis tools").version("0.8.0");
|
|
45611
45627
|
program.command("start").description("Start the MCP server in stdio mode (for AI agent connections)").action(async () => {
|
|
45612
45628
|
await startCommand();
|
|
45613
45629
|
});
|