Files
personal-agent-os/memory-systems/agent-os/My-Brain-Is-Full-Crew/orchestra/hey-imbox
T
2026-09-16 00:00:30 -07:00

19 lines
552 B
Bash

#!/usr/bin/env bash
# List Hey Imbox (screened-in, high priority emails)
# Usage: hey-imbox [--json]
set -euo pipefail
if [[ "${1:-}" == "--json" ]]; then
hey box imbox --json
else
hey box imbox --json | python3 -c "
import json, sys
data = json.load(sys.stdin)
for p in data.get('data', {}).get('postings', []):
date = p.get('active_at', '')[:10]
sender = p.get('creator', {}).get('name', '')[:30]
subj = p.get('name', '')[:65]
tid = p.get('app_url', '').split('/')[-1]
print(f'{date} | {sender:30} | {subj} | {tid}')
"
fi