feat(codex): inject windows git bash guidance

Plan: plans/codex-windows-git-bash-profile.md
This commit is contained in:
YeonGyu-Kim
2026-05-31 06:03:59 +09:00
parent 37346a86f7
commit 644be5df7a
3 changed files with 110 additions and 1 deletions
@@ -1,4 +1,4 @@
import { readFileSync } from "node:fs";
import { readdirSync, readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
type PackageJson = {
@@ -51,6 +51,7 @@ describe("plugin package metadata", () => {
const pluginJson = readPluginJson(".codex-plugin/plugin.json");
const hooksJson = readHooksJson("hooks/hooks.json");
const cliSource = readFileSync("src/cli.ts", "utf8");
const bundledRules = readdirSync("bundled-rules").sort();
// when
const hookConfig = hooksJson.hooks;
@@ -69,6 +70,7 @@ describe("plugin package metadata", () => {
expect(packageJson.dependencies ?? {}).toEqual({ picomatch: "^4.0.3" });
expect(packageJson.bin["omo-rules"]).toBe("./dist/cli.js");
expect(packageJson.files).toContain("bundled-rules");
expect(bundledRules).toContain("windows-git-bash.md");
expect(pluginJson.hooks).toBe("./hooks/hooks.json");
expect(cliSource.startsWith("#!/usr/bin/env node")).toBe(true);
expect(commands).toEqual([