aias update¶
Full sync: scan all prompts, validate, and install every scheduled prompt as a cron job.
What It Does¶
- Scans
$AIA_PROMPTS_DIRrecursively for files containingschedule:in their frontmatter - Parses the YAML frontmatter of each candidate file via
PM::Metadata - Validates each scheduled prompt (schedule syntax, parameter defaults,
aiabinary) - Builds a
wheneverDSL string for each valid prompt - Combines all DSL strings and calls
wheneverto replace the entireaias-managed crontab block
Output¶
When some prompts are invalid:
Invalid prompts are printed to stderr:
When no valid prompts are found:
Full Sync Semantics¶
Every update replaces the entire aias-managed crontab block. This means:
- Prompts that had their
schedule:line removed are automatically uninstalled - Schedule changes take effect on the next
update - No manual cleanup of orphaned entries is ever required
Non-aias crontab entries are never touched.
Error Handling¶
| Condition | Behaviour |
|---|---|
AIA_PROMPTS_DIR not set or missing |
Exits 1 with an error message |
| Crontab write fails | Exits 1 with an error message |
| Invalid schedule syntax | Skips the prompt, warns to stderr |
| Missing parameter defaults | Skips the prompt, warns to stderr |
aia binary not found |
Skips all prompts, warns to stderr |
Options¶
| Option | Alias | Description |
|---|---|---|
--prompts-dir PATH |
-p |
Use PATH instead of AIA_PROMPTS__DIR / AIA_PROMPTS_DIR |
See Also¶
aias dry-run— preview without writingaias check— see what would change- Scheduling Prompts — schedule format reference