mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
33 lines
863 B
TypeScript
33 lines
863 B
TypeScript
import type { VaultFileReference } from "../../../../domain/chat/input";
|
|
|
|
export interface DailyNoteReferenceCandidate {
|
|
keyword: "today" | "tomorrow" | "yesterday";
|
|
display: string;
|
|
name: string;
|
|
path: string;
|
|
linktext: string;
|
|
}
|
|
|
|
export interface NoteHeadingCandidate {
|
|
heading: string;
|
|
linkHeading: string;
|
|
level: number;
|
|
}
|
|
|
|
export interface NoteCandidate {
|
|
basename: string;
|
|
displayName: string;
|
|
path: string;
|
|
mtime: number;
|
|
linktext: string;
|
|
headings: NoteHeadingCandidate[];
|
|
recentIndex: number | null;
|
|
}
|
|
|
|
export interface NoteCandidateProvider {
|
|
candidates(sourcePath: string): readonly NoteCandidate[];
|
|
dailyNoteReferences(sourcePath: string): readonly DailyNoteReferenceCandidate[];
|
|
tags(): readonly string[];
|
|
resolveFileReference(target: string, sourcePath: string): VaultFileReference | null;
|
|
dispose(): void;
|
|
}
|