You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ecbe059
Browse filesBrowse the repository at this point in the historyBrowse files
collect: bool=typer.Option(True, "--collect/--no-collect", help="Run collect before preparing the editorial pack."),
678
-
process: bool=typer.Option(True, "--process/--no-process", help="Run process before preparing the editorial pack."),
679
-
cleanup: bool=typer.Option(True, "--cleanup/--no-cleanup", help="Run queue cleanup before preparing the editorial pack."),
680
-
full_collect: bool=typer.Option(False, "--full-collect", help="Bypass source cadence during collect."),
681
-
min_score: float=typer.Option(0.68, "--min-score", help="Strict publish threshold used for diagnostics."),
682
-
max_source_age_hours: int=typer.Option(24, "--max-source-age-hours", help="Maximum source age for headline board freshness and auto publish diagnostics."),
683
-
limit: int=typer.Option(20, "--limit", help="How many headline candidates to return."),
"instruction": "Headline board only. Asteria must choose promising headlines, fetch/read the selected article herself, write Turkish title/description/body/facts plus heroPrompt/heroAlt, apply them with `queue polish`, then run `heartbeat publish-one --execute --no-collect --json`. Python summaries and drafts are intentionally hidden to avoid anchoring.",
"reason": f"prewarm board older than {max_age_minutes}m",
783
+
"generatedAt": generated_at.isoformat(),
784
+
}
785
+
ifexpires_atisnotNoneandnow>expires_at:
786
+
return {
787
+
**base,
788
+
"result": "stale",
789
+
"reason": "prewarm board expired",
790
+
"generatedAt": generated_at.isoformat(),
791
+
"expiresAt": expires_at.isoformat(),
792
+
}
793
+
794
+
payload["consumerRead"] = {
795
+
"command": "heartbeat board-read",
796
+
"readAt": now.isoformat(),
797
+
"fresh": True,
798
+
"maxAgeMinutes": max_age_minutes,
799
+
}
800
+
returnpayload
801
+
802
+
803
+
defprepare_one_command(
804
+
collect: bool=typer.Option(True, "--collect/--no-collect", help="Run collect before preparing the editorial pack."),
805
+
process: bool=typer.Option(True, "--process/--no-process", help="Run process before preparing the editorial pack."),
806
+
cleanup: bool=typer.Option(True, "--cleanup/--no-cleanup", help="Run queue cleanup before preparing the editorial pack."),
807
+
full_collect: bool=typer.Option(False, "--full-collect", help="Bypass source cadence during collect."),
808
+
min_score: float=typer.Option(0.68, "--min-score", help="Strict publish threshold used for diagnostics."),
809
+
max_source_age_hours: int=typer.Option(24, "--max-source-age-hours", help="Maximum source age for headline board freshness and auto publish diagnostics."),
810
+
limit: int=typer.Option(20, "--limit", help="How many headline candidates to return."),
collect: bool=typer.Option(True, "--collect/--no-collect", help="Run collect before preparing the prewarmed board."),
855
+
process: bool=typer.Option(True, "--process/--no-process", help="Run process before preparing the prewarmed board."),
856
+
cleanup: bool=typer.Option(True, "--cleanup/--no-cleanup", help="Run queue cleanup before preparing the prewarmed board."),
857
+
full_collect: bool=typer.Option(False, "--full-collect", help="Bypass source cadence during collect."),
858
+
min_score: float=typer.Option(0.68, "--min-score", help="Strict publish threshold used for diagnostics."),
859
+
max_source_age_hours: int=typer.Option(24, "--max-source-age-hours", help="Maximum source age for headline board freshness and auto publish diagnostics."),
860
+
limit: int=typer.Option(6, "--limit", help="How many headline candidates to return."),
0 commit comments