@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
22 lines • 909 B
TypeScript
import type { ResourceDiagnostic } from "./diagnostics.ts";
export interface SecurityNotice {
readonly category: "skill-link-blocked" | "mcp-env-withheld";
readonly message: string;
readonly path?: string;
}
export interface SecurityNoticeState {
readonly generation: number;
readonly notices: readonly SecurityNotice[];
}
export declare function isSecurityNoticeState(value: unknown): value is SecurityNoticeState;
/** Session state, with an independent replay cursor owned by each subscription. */
export declare class SecurityNoticeSnapshot {
#private;
get snapshot(): SecurityNoticeState;
setResources(diagnostics: readonly ResourceDiagnostic[]): void;
add(notice: SecurityNotice): void;
accept(value: unknown): void;
subscribe(listener: (snapshot: SecurityNoticeState) => void): () => void;
dispose(): void;
}
//# sourceMappingURL=security-notices.d.ts.map