Download packages/agent-core-v2/src/features/featureAssemblyService.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 816 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/featureAssemblyService.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/features/featureAssemblyService.ts
-
curl -L -o featureAssemblyService.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/featureAssemblyService.ts
816 Bytes
| import { IFeatureManager } from '#/app/feature/featureManager'; | |
| import { LifecycleScope } from '#/app/scopes'; | |
| import { ScopeActivation, registerScopedService } from '#/_base/di/scope'; | |
| import { Service } from '#/_base/di/service'; | |
| import { IFeatureAssemblyService } from './featureAssembly'; | |
| import { getFeatureRecipes } from './featureRegistry'; | |
| export class FeatureAssemblyService extends Service implements IFeatureAssemblyService { | |
| declare readonly _serviceBrand: undefined; | |
| constructor( featureManager: IFeatureManager) { | |
| super(); | |
| for (const recipe of getFeatureRecipes()) { | |
| featureManager.provideUnit(recipe); | |
| } | |
| } | |
| } | |
| registerScopedService( | |
| LifecycleScope.App, | |
| IFeatureAssemblyService, | |
| FeatureAssemblyService, | |
| ScopeActivation.OnScopeCreated, | |
| 'features', | |
| ); | |