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