@arii/boomtick-mcp 0.3.5 → 0.3.7

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.
@@ -24,6 +24,6 @@ export async function getPrDiffHandler(args: z.infer<typeof GetPrDiffInputSchema
24
24
  prNumber: output.prNumber,
25
25
  files: output.files,
26
26
  diffText: output.diffText,
27
- truncated: output.truncated
27
+ isTruncated: output.isTruncated
28
28
  };
29
29
  }
@@ -0,0 +1,11 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { loadStandaloneAgentContext } from "../lib/td-cli.js";
3
+
4
+ describe("Standalone Agent Context Loader", () => {
5
+ it("should load agent context without submodule references", () => {
6
+ const context = loadStandaloneAgentContext(process.cwd());
7
+ expect(context).toHaveProperty("packageName");
8
+ expect(context).toHaveProperty("gitCommit");
9
+ expect(context).not.toHaveProperty("submodules");
10
+ });
11
+ });
@@ -1,22 +1,18 @@
1
1
  import { z } from "zod";
2
- import fs from "fs/promises";
3
- import path from "path";
4
2
  import { config } from "../config.js";
3
+ import { loadStandaloneAgentContext } from "../lib/td-cli.js";
5
4
 
6
5
  export const ReadAgentContextInputSchema = z.object({});
7
6
 
8
7
  export async function readAgentContextHandler(_args: z.infer<typeof ReadAgentContextInputSchema>) {
9
- const contextPath = path.join(config.repoPath, ".agent-context.json");
10
-
11
- try {
12
- const content = await fs.readFile(contextPath, "utf-8");
13
- const parsed = JSON.parse(content);
14
- return {
15
- status: "success",
16
- ...parsed
17
- };
18
- } catch (e: any) {
19
- console.error("Failed to read agent context:", e.message);
20
- throw new Error(`Failed to read agent context from ${contextPath}. Ensure it exists by running 'td-cli context-warm'.`);
8
+ const context = loadStandaloneAgentContext(config.repoPath);
9
+ const result: any = {
10
+ status: "success",
11
+ ...context
12
+ };
13
+ delete result.submodules;
14
+ if (result.config) {
15
+ delete result.config.submodules;
21
16
  }
17
+ return result;
22
18
  }