From 513982b16edc16d182b74e311c45c9e9abcff462 Mon Sep 17 00:00:00 2001 From: can1357 Date: Wed, 1 Apr 2026 21:07:16 +0200 Subject: [PATCH] fix(ci): externalize mupdf from compiled binary and update ci-green test assertions - Add --external mupdf to bun build --compile to avoid top-level await error - Update ci-green test to match current prompt template content --- packages/coding-agent/package.json | 2 +- .../test/extensibility/custom-commands/ci-green.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/coding-agent/package.json b/packages/coding-agent/package.json index b4ea8c06f..e4d97deab 100644 --- a/packages/coding-agent/package.json +++ b/packages/coding-agent/package.json @@ -35,7 +35,7 @@ "format-prompts": "bun scripts/format-prompts.ts", "generate-docs-index": "bun scripts/generate-docs-index.ts", "prepack": "bun scripts/generate-docs-index.ts", - "build:binary": "cd ../.. && bun --cwd=packages/stats scripts/generate-client-bundle.ts && bun --cwd=packages/natives run embed:native && bun build --compile --define PI_COMPILED=true --root . ./packages/coding-agent/src/cli.ts --outfile packages/coding-agent/dist/omp && bun --cwd=packages/natives run embed:native --reset && bun --cwd=packages/stats scripts/generate-client-bundle.ts --reset", + "build:binary": "cd ../.. && bun --cwd=packages/stats scripts/generate-client-bundle.ts && bun --cwd=packages/natives run embed:native && bun build --compile --define PI_COMPILED=true --external mupdf --root . ./packages/coding-agent/src/cli.ts --outfile packages/coding-agent/dist/omp && bun --cwd=packages/natives run embed:native --reset && bun --cwd=packages/stats scripts/generate-client-bundle.ts --reset", "generate-template": "bun scripts/generate-template.ts", "test": "bun test" }, diff --git a/packages/coding-agent/test/extensibility/custom-commands/ci-green.test.ts b/packages/coding-agent/test/extensibility/custom-commands/ci-green.test.ts index 16017e251..cc7cf916e 100644 --- a/packages/coding-agent/test/extensibility/custom-commands/ci-green.test.ts +++ b/packages/coding-agent/test/extensibility/custom-commands/ci-green.test.ts @@ -31,8 +31,8 @@ describe("GreenCommand", () => { const result = await command.execute([], {} as HookCommandContext); - expect(result).toContain("Your goal is to make my CI green."); - expect(result).toContain("Use `gh_run_watch` with no arguments if that tool is available."); + expect(result).toContain("Keep going until the current branch CI is green."); + expect(result).toContain("Prefer `gh_run_watch` with no arguments if that tool is available."); expect(result).toContain( "Use the workflow runs for the current HEAD commit as the source of truth after each push.", );