feat: vendor permission system source

This commit is contained in:
云服务部-叶林立
2026-08-19 14:35:19 +08:00
parent 198584daf8
commit 410c50a3e5
809 changed files with 157793 additions and 139 deletions
@@ -0,0 +1,13 @@
import { vi } from "vitest";
/**
* A fake `AuthorizerLog` / `DebugReviewLogger`: `review` and `debug` as
* `vi.fn()` stubs.
*
* The return type is intentionally unannotated so callers keep full `Mock`
* access (`toHaveBeenCalledWith`, `mock.calls`); the shape structurally
* satisfies both the narrow authorizer-log seam and the session logger.
*/
export function makeAuthorizerLog() {
return { review: vi.fn(), debug: vi.fn() };
}