kimi-code / packages /agent-core-v2 /src /session /state /sessionStateService.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
68d7816 verified
Raw History Blame Contribute Delete
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',
);