@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.
- package/.mcp/schemas/github.issue_update.json +5 -1
- package/.mcp/schemas/github.search_open_prs.json +8 -1
- package/CHANGELOG.md +18 -0
- package/actions/ai-review/action.yml +2 -2
- package/actions/audit/action.yml +1 -1
- package/actions/ci-validate/action.yml +1 -1
- package/actions/impact-analysis/action.yml +106 -36
- package/actions/lint-typecheck/action.yml +2 -2
- package/actions/setup/action.yml +1 -1
- package/actions/test-build/action.yml +1 -1
- package/dist/lib/td-cli.js +27 -0
- package/dist/tools/contract.js +1085 -151
- package/dist/tools/github.get_pr_diff.js +1 -1
- package/dist/tools/repo.read_agent_context.js +10 -14
- package/dist/tools/repo.read_agent_context.test.js +10 -0
- package/package.json +4 -3
- package/scripts/sync-contracts.ts +216 -6
- package/src/lib/td-cli.ts +35 -0
- package/src/tools/contract.ts +1844 -878
- package/src/tools/github.get_pr_diff.ts +1 -1
- package/src/tools/repo.read_agent_context.test.ts +11 -0
- package/src/tools/repo.read_agent_context.ts +10 -14
|
@@ -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
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
}
|