MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / make

Function make

packages/agent-core/test/flags/resolver.test.ts:34–38  ·  view source on GitHub ↗
(env: Env)

Source from the content-addressed store, hash-verified

32type Env = Record<string, string | undefined>;
33
34function make(env: Env) {
35 const resolver = new FlagResolver(env, DEFS);
36 // The fake ids are not part of the real FlagId union, so cast to FlagId when calling.
37 return (id: string) => resolver.enabled(id as FlagId);
38}
39
40describe('FlagResolver', () => {
41 it('L3 default: returns the registry default when env is empty', () => {

Callers 1

resolver.test.tsFile · 0.70

Calls 1

enabledMethod · 0.95

Tested by

no test coverage detected