managarten/packages/shared-utils/src/parsers/index.ts
Till-JS b1877c4a08 feat: add unified CommandBar Quick-Create for Calendar and Contacts
Implements the same CommandBar quick-create functionality from Todo
in Calendar and Contacts apps with a shared base parser architecture.

- Add base-parser in shared-utils with common patterns (date, time, tags)
- Refactor task-parser to use base-parser
- Create event-parser for Calendar with duration, location, @calendar
- Create contact-parser for Contacts with email, phone, @company detection
- Integrate Quick-Create into Calendar and Contacts layouts

Natural language syntax:
- Common: heute, morgen, Montag, 15.12., um 14 Uhr, #tags
- Calendar: für 2h, 30 min, in Berlin, @Kalender, ganztägig
- Contacts: @Firma, bei Company, auto email/phone detection

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 21:12:07 +01:00

26 lines
470 B
TypeScript

/**
* Natural Language Parsers
*
* Base parser with common patterns, extended by app-specific parsers.
*/
export {
// Types
type BaseParsedInput,
type ExtractResult,
// Extraction functions
extractDate,
extractTime,
extractTags,
extractAtReference,
// Combination
combineDateAndTime,
// Preview formatting
formatDatePreview,
formatTimePreview,
formatDateTimePreview,
// Main parser
parseBaseInput,
// Utilities
cleanTitle,
} from './base-parser';