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
This commit is contained in:
can1357
2026-04-01 21:07:16 +02:00
parent 236fedaf2e
commit 513982b16e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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"
},
@@ -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.",
);