$file = @m1 ~/vault/daily/(yesterday as "MM-DD-YY").md4.2 KB
$api = "https://l-portal.example/v1/today"
$stories = each $news in (load $api)6 items
$text = if its extension is pdf6 markdown
then convert $news into markdown
else open $news as markdown
$digest = agent digest """6 summaries
one bullet per story — its title,
the summary nested under it
""" with $stories
$stock_prompt = "does today’s news move my stock strategy in a meaningful way?"
$flags = agent nightwatch $stock_prompt2 flagged
with $stories map its title
$transcript = transcribe $file attachments where extension is audio4:12 → text
$plan = agent digest """2 blockers
read yesterday’s note and the transcript;
for each unfinished check name what blocks it;
pull the matching highlights from the notes
""" with files $file, $transcript
$report = write html to ~/reports/(yesterday as "MM-DD-YY").html11 KB
title: "daily check" (yesterday as "MM-DD-YY")
body: $plan
list: $digest as "news" with $flags
attach: $transcript
schedule every day at 07:00 do
notify @main with $report