graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Fix preflight check parsing for this Zig std
Cursor Agentcb4d313c9a2b
diff --git a/src/pr_local_checks.zig b/src/pr_local_checks.zigindex b9680adc..407fa52b 100644--- a/src/pr_local_checks.zig+++ b/src/pr_local_checks.zig@@ -8,7 +8,7 @@ fn checkTail(command: []const u8) []const u8 {var rest = std.mem.trim(u8, command, " \t\r\n");while (std.mem.startsWith(u8, rest, "cd ")) {const sep = std.mem.indexOf(u8, rest, "&&") orelse break;- rest = std.mem.trimLeft(u8, rest[sep + 2 ..], " \t");+ rest = std.mem.trimStart(u8, rest[sep + 2 ..], " \t");}return rest;}diff --git a/src/pr_review_input.zig b/src/pr_review_input.zigindex f6bfc020..2ab5ca9b 100644--- a/src/pr_review_input.zig+++ b/src/pr_review_input.zig@@ -131,9 +131,8 @@ test "claim review includes unchanged callers that establish test reachability"_ = try capture(std.testing.allocator, io, a, cwd, &.{ "git", "add", "build.zig" });_ = try capture(std.testing.allocator, io, a, cwd, &.{ "git", "-c", "user.name=Fixture", "-c", "[email protected]", "commit", "-qm", "base" });const base = try capture(std.testing.allocator, io, a, cwd, &.{ "git", "rev-parse", "HEAD" });- try temp.dir.makePath(io, "src");- try temp.dir.writeFile(io, .{ .sub_path = "src/dispatch.zig", .data = "pub fn run() void {}\n" });- _ = try capture(std.testing.allocator, io, a, cwd, &.{ "git", "add", "src/dispatch.zig" });+ try temp.dir.writeFile(io, .{ .sub_path = "dispatch.zig", .data = "pub fn run() void {}\n" });+ _ = try capture(std.testing.allocator, io, a, cwd, &.{ "git", "add", "dispatch.zig" });_ = try capture(std.testing.allocator, io, a, cwd, &.{ "git", "-c", "user.name=Fixture", "-c", "[email protected]", "commit", "-qm", "head" });const head = try capture(std.testing.allocator, io, a, cwd, &.{ "git", "rev-parse", "HEAD" });const input = try gather(std.testing.allocator, io, a, cwd, base, head, "claim");