refactor: 月记改用周报和上月月报,不再读日报
- MONTHLY_EXTRACT_PROMPT: 输入从日报片段改为周记片段 - MONTHLY_FINAL_PROMPT: 对照上月月记而非本月周记,结构调整为上月工作延续 - generate_monthly: 移除日报读取逻辑,添加读取上月月报逻辑 - 2024-08 月记已用新逻辑重新生成
This commit is contained in:
@ -351,6 +351,11 @@ def cmd_summarize(args):
|
||||
previous_weekly_summary, previous_weekly_missing = (
|
||||
load_previous_weekly_background(config["output"], target_day)
|
||||
)
|
||||
from snooper_monthly import load_previous_monthly_background
|
||||
|
||||
previous_monthly_summary, previous_monthly_missing = (
|
||||
load_previous_monthly_background(config["output"], target_day)
|
||||
)
|
||||
calendar_events = []
|
||||
calendar_error = None
|
||||
unmatched_ai_notes = []
|
||||
@ -401,6 +406,7 @@ def cmd_summarize(args):
|
||||
calendar_error=calendar_error,
|
||||
self_name=self_name,
|
||||
previous_weekly_summary=previous_weekly_summary,
|
||||
previous_monthly_summary=previous_monthly_summary,
|
||||
)
|
||||
output_path = (
|
||||
args.output
|
||||
|
||||
Reference in New Issue
Block a user