Add Binky weekly review approach
This commit is contained in:
parent
140d1b0dc7
commit
8e98eada89
8 changed files with 700 additions and 12 deletions
|
|
@ -364,6 +364,28 @@ def main(argv: list[str] | None = None) -> int:
|
|||
help="Write brief file but do not git commit",
|
||||
)
|
||||
|
||||
weekly = sub.add_parser(
|
||||
"brief-weekly",
|
||||
help="Write weekly founder-review prep via llm-connect (no coding agent)",
|
||||
)
|
||||
weekly.add_argument("--target-repo", required=True)
|
||||
weekly.add_argument(
|
||||
"--date",
|
||||
default=None,
|
||||
help="Review date YYYY-MM-DD (default: today Europe/Berlin)",
|
||||
)
|
||||
weekly.add_argument(
|
||||
"--force",
|
||||
action="store_true",
|
||||
help="Overwrite if today's weekly review already exists",
|
||||
)
|
||||
weekly.add_argument("--no-hub", action="store_true", help="Skip hub reporting")
|
||||
weekly.add_argument(
|
||||
"--no-commit",
|
||||
action="store_true",
|
||||
help="Write review file but do not git commit",
|
||||
)
|
||||
|
||||
fi_brief = sub.add_parser(
|
||||
"fi-research-brief",
|
||||
help=(
|
||||
|
|
@ -599,6 +621,39 @@ def main(argv: list[str] | None = None) -> int:
|
|||
)
|
||||
return 0 if brief_result.ok else 1
|
||||
|
||||
if args.command == "brief-weekly":
|
||||
from datetime import date as date_cls
|
||||
|
||||
from rein_aharness.brief_weekly import run_brief_weekly
|
||||
|
||||
day = date_cls.fromisoformat(args.date) if args.date else None
|
||||
result = run_brief_weekly(
|
||||
target_repo=Path(args.target_repo).expanduser(),
|
||||
day=day,
|
||||
force=bool(args.force),
|
||||
report_to_hub=not args.no_hub,
|
||||
commit=not args.no_commit,
|
||||
)
|
||||
print(
|
||||
json.dumps(
|
||||
{
|
||||
"ok": result.ok,
|
||||
"date": result.date,
|
||||
"path": result.path,
|
||||
"wrote": result.wrote,
|
||||
"committed": result.committed,
|
||||
"skipped_existing": result.skipped_existing,
|
||||
"milestone_moved": result.milestone_moved,
|
||||
"risk005_state": result.risk005_state,
|
||||
"head_after": result.head_after,
|
||||
"reason": result.reason,
|
||||
"model_meta": result.model_meta,
|
||||
},
|
||||
indent=2,
|
||||
)
|
||||
)
|
||||
return 0 if result.ok else 1
|
||||
|
||||
if args.command == "fi-research-brief":
|
||||
from datetime import date as date_cls
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue