feat(cli): add --codex installer + lazycodex auto-routing via OMO_INVOCATION_NAME

This commit is contained in:
YeonGyu-Kim
2026-05-25 22:25:09 +09:00
parent 737dae8d9e
commit 60a4a12cf0
26 changed files with 1182 additions and 19 deletions
@@ -0,0 +1,26 @@
import { describe, expect, test } from "bun:test"
import { join } from "node:path"
import { trustedHookStatesForPlugin } from "./codex-hook-trust"
describe("codex-hook-trust", () => {
test("computes trusted hook hashes for vendored plugin", async () => {
// given
const pluginRoot = join(
"/Users/yeongyu/local-workspaces/omodex",
"packages",
"omo-codex",
"plugin",
)
// when
const states = await trustedHookStatesForPlugin({
marketplaceName: "code-yeongyu-codex-plugins",
pluginName: "omo",
pluginRoot,
})
// then
expect(states.length).toBeGreaterThan(0)
expect(states[0]?.trustedHash.startsWith("sha256:")).toBe(true)
})
})