feat(memory,jobs): replies and curator runs go to daily files
This commit is contained in:
1 parent
0273f29589
commit
dea793dbd7
6 files changed
+47
-16
No files matched your search
+12
-3
@@ -168,8 +168,8 @@ def test_reply_log_appends_one_line_per_message_and_strips_seed(tmp_path: Path)
|
||||
at=at,
|
||||
)
|
||||
)
|
||||
text = (tmp_path / "реплики" / "2026-09.md").read_text(encoding="utf-8")
|
||||
assert text.startswith("# реплики Бобра, 2026-09\n")
|
||||
text = (tmp_path / "реплики" / "2026-09-01.md").read_text(encoding="utf-8")
|
||||
assert text.startswith("# реплики Бобра, 2026-09-01\n")
|
||||
assert text.endswith(
|
||||
"- 2026-09-01 14:04 · мастер · привет ⏎ ты меня любишь\n"
|
||||
"- 2026-09-01 14:04 · ветка «крипто-карта» (бриф) · "
|
||||
@@ -180,7 +180,16 @@ def test_reply_log_appends_one_line_per_message_and_strips_seed(tmp_path: Path)
|
||||
assert new_replies(tmp_path / "реплики", since, "Europe/Warsaw") == [
|
||||
line for line in text.splitlines() if line.startswith("- ")
|
||||
]
|
||||
assert date.fromisoformat("2026-09-01") # tz shift stays inside the month here
|
||||
late = datetime(2026, 9, 1, 22, 30, tzinfo=UTC)
|
||||
log.write(
|
||||
UserSaid(conversation_id="c1", kind="master", title=None, text="ночь", at=late)
|
||||
)
|
||||
night = (tmp_path / "реплики" / "2026-09-02.md").read_text(encoding="utf-8")
|
||||
assert night.endswith("- 2026-09-02 00:30 · мастер · ночь\n")
|
||||
assert new_replies(tmp_path / "реплики", late, "Europe/Warsaw") == []
|
||||
assert new_replies(
|
||||
tmp_path / "реплики", datetime(2026, 9, 1, 13, tzinfo=UTC), "Europe/Warsaw"
|
||||
) == ["- 2026-09-02 00:30 · мастер · ночь"]
|
||||
|
||||
|
||||
def test_notes_head_picks_sections_for_the_seed(tmp_path: Path) -> None:
|
||||
|
||||
Reference in new issue
Block a user