Download packages/agent-core-v2/src/app/state/appStateService.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/app/state/appStateService.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/app/state/appStateService.ts
-
curl -L -o appStateService.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/app/state/appStateService.ts
546 Bytes
| import { LifecycleScope } from '#/app/scopes'; | |
| import { ScopeActivation, registerScopedService } from '#/_base/di/scope'; | |
| import { StateRegistry } from '#/_base/state/stateRegistry'; | |
| import { IAppStateService } from './appState'; | |
| export class AppStateService extends StateRegistry implements IAppStateService { | |
| declare readonly _serviceBrand: undefined; | |
| protected override readonly inspectScope = 'app'; | |
| } | |
| registerScopedService( | |
| LifecycleScope.App, | |
| IAppStateService, | |
| AppStateService, | |
| ScopeActivation.OnScopeCreated, | |
| 'state', | |
| ); | |