Download packages/agent-core-v2/src/features/featureRegistry.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/featureRegistry.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/features/featureRegistry.ts
-
curl -L -o featureRegistry.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/featureRegistry.ts
400 Bytes
| import type { ServiceClassRecipe } from '#/_base/di/fiber'; | |
| const _featureRecipes: ServiceClassRecipe[] = []; | |
| export function registerFeature(recipe: ServiceClassRecipe): void { | |
| _featureRecipes.push(recipe); | |
| } | |
| export function getFeatureRecipes(): readonly ServiceClassRecipe[] { | |
| return _featureRecipes; | |
| } | |
| export function _clearFeatureRecipesForTests(): void { | |
| _featureRecipes.length = 0; | |
| } | |