@astrofoundry/pi-astro 0.39.0 → 0.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,6 +52,9 @@ describe("daily report schedule", () => {
52
52
  expect(readReportState("arcane")).toBeNull();
53
53
  writeReportState("arcane", { date: "2026-10-19", status: "sent", messageId: "1" });
54
54
  expect(readReportState("arcane")).toEqual({ date: "2026-10-19", status: "sent", messageId: "1" });
55
+ writeReportState("daily", { date: "2026-10-20", status: "sending" });
56
+ expect(readReportState("arcane")).toEqual({ date: "2026-10-19", status: "sent", messageId: "1" });
57
+ expect(readReportState("daily")).toEqual({ date: "2026-10-20", status: "sending" });
55
58
  expect(existsSync(join(dir, "daily-report.json"))).toBe(true);
56
59
  expect(readReportState("tools")).toBeNull();
57
60
  writeReportState("tools", { date: "2026-10-19", status: "failed" });
@@ -40,7 +40,8 @@ export function isDue(schedule: { time: string; timeZone: string }, state: Repor
40
40
 
41
41
  /** The Arcane report keeps the file it had before reports became a list, so the switch never posts twice on one day. */
42
42
  function statePath(name: ReportName): string {
43
- return join(configDir(), name === "arcane" ? "daily-report.json" : `${name}-report.json`);
43
+ // The Arcane report kept its first file name; the morning run must not share it.
44
+ return join(configDir(), name === "arcane" ? "daily-report.json" : name === "daily" ? "morning-run.json" : `${name}-report.json`);
44
45
  }
45
46
 
46
47
  export function readReportState(name: ReportName): ReportState | null {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrofoundry/pi-astro",
3
- "version": "0.39.0",
3
+ "version": "0.39.1",
4
4
  "description": "Personal pi customizations (extensions, subagents, skills, prompts, themes) for the pi coding agent.",
5
5
  "keywords": [
6
6
  "pi-package"