@arii/boomtick-mcp 0.3.3 → 0.3.6
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/agent.search_ddgs.json +27 -1
- package/.mcp/schemas/boomtick.health.json +12 -1
- package/.mcp/schemas/github.checkout_branch.json +27 -1
- package/.mcp/schemas/github.comment_triage_summary.json +20 -1
- package/.mcp/schemas/github.create_issue.json +40 -1
- package/.mcp/schemas/github.create_pull_request.json +38 -1
- package/.mcp/schemas/github.get_merge_conflict_files.json +20 -1
- package/.mcp/schemas/github.get_pr.json +14 -1
- package/.mcp/schemas/github.get_pr_diff.json +14 -1
- package/.mcp/schemas/github.issue_comment.json +20 -1
- package/.mcp/schemas/github.issue_update.json +105 -1
- package/.mcp/schemas/github.issue_view.json +14 -1
- package/.mcp/schemas/github.open_replacement_pr.json +63 -1
- package/.mcp/schemas/github.search_open_prs.json +47 -1
- package/.mcp/schemas/jules.cancel_session.json +14 -1
- package/.mcp/schemas/jules.create_session.json +40 -1
- package/.mcp/schemas/jules.get_messages.json +14 -1
- package/.mcp/schemas/jules.get_pr.json +14 -1
- package/.mcp/schemas/jules.get_session.json +14 -1
- package/.mcp/schemas/jules.list_sessions.json +32 -1
- package/.mcp/schemas/jules.send_message.json +31 -1
- package/.mcp/schemas/jules.trigger_feedback.json +14 -1
- package/.mcp/schemas/repo.commit_patch.json +35 -1
- package/.mcp/schemas/repo.create_branch.json +20 -1
- package/.mcp/schemas/repo.create_repair_branch.json +33 -1
- package/.mcp/schemas/repo.get_changed_files.json +18 -1
- package/.mcp/schemas/repo.get_command_schema.json +14 -1
- package/.mcp/schemas/repo.get_package_scripts.json +19 -1
- package/.mcp/schemas/repo.get_route_map.json +19 -1
- package/.mcp/schemas/repo.logs.json +27 -1
- package/.mcp/schemas/repo.read_agent_context.json +5 -1
- package/.mcp/schemas/repo.read_ci_logs.json +20 -1
- package/.mcp/schemas/repo.run_lighthouse.json +25 -1
- package/.mcp/schemas/repo.run_playwright.json +32 -1
- package/.mcp/schemas/repo.run_tests.json +41 -1
- package/CHANGELOG.md +23 -0
- package/actions/ai-review/action.yml +8 -3
- package/actions/audit/action.yml +2 -2
- package/actions/ci-validate/action.yml +3 -3
- package/actions/impact-analysis/action.yml +36 -28
- package/actions/lint-typecheck/action.yml +2 -2
- package/actions/run-project-gate/action.yml +11 -3
- package/actions/setup/action.yml +2 -2
- package/actions/test-build/action.yml +2 -2
- package/dist/config.js +2 -4
- package/dist/lib/git.js +1 -3
- package/dist/lib/td-cli.js +27 -0
- package/dist/mcp/server.js +1 -1
- 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 +24 -19
- package/scripts/create_instructions.sh +0 -0
- 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
- package/start_browsermcp.sh +0 -0
- package/start_github_mcp.sh +0 -0
- package/actions/setup-workspace/action.yml +0 -179
package/dist/lib/git.js
CHANGED
|
@@ -18,9 +18,7 @@ export async function createWorktree(branch, prNumber) {
|
|
|
18
18
|
await fs.rm(worktreePath, { recursive: true, force: true });
|
|
19
19
|
await runCommand("git", ["worktree", "prune"]);
|
|
20
20
|
}
|
|
21
|
-
catch (e) {
|
|
22
|
-
throw e;
|
|
23
|
-
}
|
|
21
|
+
catch (e) { /* ignore if no previous worktree */ }
|
|
24
22
|
const result = await runCommand("git", ["worktree", "add", "-b", `repair-pr-${prNumber}-${Date.now()}`, worktreePath, branch]);
|
|
25
23
|
if (result.exitCode !== 0) {
|
|
26
24
|
throw new Error(`Failed to create worktree: ${result.stderr}`);
|
package/dist/lib/td-cli.js
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
import { runCommand } from "../lib/shell.js";
|
|
2
|
+
import { execSync } from "child_process";
|
|
3
|
+
import * as fs from "fs";
|
|
4
|
+
import * as path from "path";
|
|
5
|
+
export const loadStandaloneAgentContext = (repoRoot = process.cwd()) => {
|
|
6
|
+
const configPath = path.join(repoRoot, "project_config.json");
|
|
7
|
+
let config = {};
|
|
8
|
+
if (fs.existsSync(configPath)) {
|
|
9
|
+
try {
|
|
10
|
+
config = JSON.parse(fs.readFileSync(configPath, "utf-8"));
|
|
11
|
+
}
|
|
12
|
+
catch (e) {
|
|
13
|
+
console.warn(`[MCP Warning] Failed to parse ${configPath}:`, e);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
let gitCommit = "unknown";
|
|
17
|
+
try {
|
|
18
|
+
gitCommit = execSync("git rev-parse HEAD", { cwd: repoRoot, encoding: "utf-8" }).trim();
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
// Fallback if git is unavailable (e.g. Docker container without git)
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
packageName: config.packageName ?? "boomtick",
|
|
25
|
+
gitCommit,
|
|
26
|
+
config,
|
|
27
|
+
};
|
|
28
|
+
};
|
|
2
29
|
function tryParseJson(text) {
|
|
3
30
|
try {
|
|
4
31
|
return JSON.parse(text);
|
package/dist/mcp/server.js
CHANGED
|
@@ -69,7 +69,7 @@ export class BoomtickMCPServer {
|
|
|
69
69
|
});
|
|
70
70
|
this.server.setRequestHandler(GetPromptRequestSchema, async (request) => {
|
|
71
71
|
const name = request.params.name;
|
|
72
|
-
const agentsDir = path.resolve(config.repoPath, "
|
|
72
|
+
const agentsDir = path.resolve(config.repoPath, "mcp/src/agents");
|
|
73
73
|
// nosemgrep
|
|
74
74
|
const promptPath = path.resolve(agentsDir, `${name}.prompt.md`);
|
|
75
75
|
if (!promptPath.startsWith(agentsDir + path.sep)) {
|