Download packages/agent-core-v2/src/app/feature/featureManager.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/app/feature/featureManager.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/app/feature/featureManager.ts
-
curl -L -o featureManager.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/app/feature/featureManager.ts
1.13 kB
| import type { Event } from '#/_base/event'; | |
| import type { | |
| FiberHandle, | |
| FiberProvideOptions, | |
| FiberState, | |
| ServiceClassRecipe, | |
| ServiceRecipe, | |
| } from '#/_base/di/fiber'; | |
| import { createDecorator, type ServiceIdentifier } from '#/_base/di/instantiation'; | |
| import type { ContributedFeatureService } from './featureServiceContribution'; | |
| export interface ManagedUnitInfo { | |
| readonly name: string; | |
| readonly state: FiberState; | |
| readonly uid: number | undefined; | |
| readonly meta: Record<string, unknown>; | |
| } | |
| export interface IFeatureManager { | |
| readonly _serviceBrand: undefined; | |
| provideUnit(recipe: ServiceRecipe, opts?: FiberProvideOptions): FiberHandle; | |
| provideUnit<T>( | |
| id: ServiceIdentifier<T>, | |
| recipe: ServiceClassRecipe, | |
| opts?: FiberProvideOptions, | |
| ): FiberHandle<T>; | |
| unprovideUnit(name: string): Promise<void>; | |
| updateUnit(name: string, config?: unknown): Promise<void>; | |
| units(): readonly ManagedUnitInfo[]; | |
| contributedServices(): readonly ContributedFeatureService[]; | |
| readonly onDidChangeUnits: Event<void>; | |
| } | |
| export const IFeatureManager = createDecorator<IFeatureManager>('featureManager'); | |