improvements added to rules engine

This commit is contained in:
Test User
2025-10-23 20:14:21 +02:00
parent 7cfe9499ee
commit eea7ef0648
25 changed files with 1967 additions and 107 deletions
+19 -11
View File
@@ -1,11 +1,11 @@
---
title: Madomeda - Markdown Document Metadata Manager
created: '2025-10-23T18:33:48+02:00'
changed: '2025-10-23T18:33:48+02:00'
authors:
- Test User
version: 8c4f612
status: draft
priority: 5
published: false
tags: []
reviewers: []
---
# Madomeda - Markdown Document Metadata Manager
@@ -59,6 +59,7 @@ Multi-strategy field resolution:
- `heur`: Heuristics (git history, document content)
- `orig`: Original frontmatter value
- `ai <prompt>`: LLM inference with structured output
- `lit:value`: Literal/static value (fallback)
### Database Tracking
SQLite database stores:
@@ -151,6 +152,9 @@ tags:
- **[GETTING_STARTED.md](GETTING_STARTED.md)** - Step-by-step guide
- **[USAGE.md](USAGE.md)** - Detailed usage examples
- **[CONFIGURATION.md](CONFIGURATION.md)** - Configuration management
- **[RULES_GUIDE.md](RULES_GUIDE.md)** - Writing custom rules
- **[TEMPLATE_TYPES.md](TEMPLATE_TYPES.md)** - Template field types
- **[LITERAL_VALUES.md](LITERAL_VALUES.md)** - Template literal values
- **[STRUCTURE.md](STRUCTURE.md)** - Project architecture
- **[IMPLEMENTATION.md](IMPLEMENTATION.md)** - Technical details
- **[PROJECT_SUMMARY.md](PROJECT_SUMMARY.md)** - Complete overview
@@ -187,21 +191,25 @@ madomeda/
## Templates
Create custom templates in `templates/`:
Create custom templates in `~/.config/madomeda/templates/`:
```json
{
"title": "heur|orig",
"created": "heur|orig",
"changed": "heur|orig",
"authors": "heur|orig",
"version": "heur|orig",
"tags": "heur|orig|ai default"
"title": "heur|orig:text",
"created": "heur|orig:datetime",
"changed": "heur|orig:datetime",
"authors": "heur|orig:list",
"version": "heur|orig:text",
"tags": "heur|orig|ai default:list",
"status": "lit:draft:text",
"published": "orig|lit:false:checkbox"
}
```
**Strategy priority**: Left to right until one succeeds.
**Field types**: `text`, `number`, `checkbox`, `date`, `datetime`, `list` (see [TEMPLATE_TYPES.md](TEMPLATE_TYPES.md))
## Rules
Default rules in `rules/`: