import type { TodoItem, OverdueItem } from '../todayview'; export interface TanaConfig { url: string; token: string; workspace: string; task_tag_id: string; due_date_field_id: string; focus_field?: string; // default: "Today's Focus" success_field?: string; // default: "What would make today a success?" } interface TanaTask { id: string; name: string; tags?: { id: string; name: string }[]; fields?: { fieldId: string; value: string }[]; } function escapeRegex(s: string): string { return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); } function parseField(md: string, fieldName: string): string | undefined { // Match **Field Name**: value