SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
68d7816 verified
Raw History Blame Contribute Delete
923 Bytes
import { createDecorator, type ServiceIdentifier } from '#/_base/di/instantiation';
import type { ScopeSeed } from '#/_base/di/scope';
import type { Event } from '#/_base/event';
import type { WatchChange } from '#human/utils/watch';
export interface ISessionInstructionsProvider {
readonly _serviceBrand: undefined;
readonly ready: Promise<void>;
readonly agentsMd: string | undefined;
readonly agentsMdWarning: string | undefined;
readonly agentsMdPaths: readonly string[] | undefined;
readonly onDidChange: Event<readonly WatchChange[]>;
}
export const ISessionInstructionsProvider: ServiceIdentifier<ISessionInstructionsProvider> =
createDecorator<ISessionInstructionsProvider>('sessionInstructionsProvider');
export function sessionInstructionsProviderSeed(
provider: ISessionInstructionsProvider,
): ScopeSeed {
return [[ISessionInstructionsProvider as ServiceIdentifier<unknown>, provider]];
}