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