UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

31 lines (30 loc) 1.2 kB
import type { string_book } from '../../book-2.0/agent-source/string_book'; /** * Monaco diagnostic shape used by deprecated, unfinished, and low-level commitment warnings. * * @private internal type of `BookEditorMonaco` */ type CommitmentNoticeDiagnostic = { readonly startLineNumber: number; readonly startColumn: number; readonly endLineNumber: number; readonly endColumn: number; readonly message: string; readonly source: string; readonly severity: 'warning'; }; /** * Creates Book editor diagnostics for deprecated, unfinished, and low-level commitment keywords. * * The notice metadata is UI-only. This helper surfaces it in Monaco so legacy, * unfinished, and low-level commitments remain functional while still guiding * authors toward preferred replacements or cautioning them about low-level * usage. * * @param agentSource - Current editor content. * @returns Warning markers for deprecated, unfinished, and low-level commitment keywords. * * @private internal utility of `BookEditorMonaco` */ export declare function createDeprecatedCommitmentDiagnostics(agentSource?: string_book): ReadonlyArray<CommitmentNoticeDiagnostic>; export {};