@astrofoundry/pi-astro 0.40.80 → 0.40.81

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.
@@ -615,14 +615,15 @@ class Bridge {
615
615
  const area = monday ? "Security (weekly)" : "Security";
616
616
  reports.push(posted ? { area, line: posted.headline, needs: posted.needs, channelId: securitySchedule.channelId, messageId: posted.messageId } : { area, line: done(name) ? "already posted today" : "the report failed; the bridge log has the reason", needs: done(name) ? [] : ["the security report failed; the bridge log has the reason"], channelId: securitySchedule.channelId });
617
617
  }
618
- const tools = reportSchedule(this.config, "tools");
619
- if (tools && !this.stopping) {
620
- if (!done("tools")) await this.toolsReport(tools, date).catch((err) => log(`daily ${date}: tools report failed: ${err instanceof Error ? err.message : String(err)}`));
621
- }
618
+ // Arcane before the tools: an automatic Homebrew node update removes the binary its release reviewers spawn from until the bridge restarts.
622
619
  const arcane = reportSchedule(this.config, "arcane");
623
620
  if (arcane && !this.stopping) {
624
621
  if (!done("arcane")) await this.arcaneReport(arcane, date).catch((err) => log(`daily ${date}: arcane report failed: ${err instanceof Error ? err.message : String(err)}`));
625
622
  }
623
+ const tools = reportSchedule(this.config, "tools");
624
+ if (tools && !this.stopping) {
625
+ if (!done("tools")) await this.toolsReport(tools, date).catch((err) => log(`daily ${date}: tools report failed: ${err instanceof Error ? err.message : String(err)}`));
626
+ }
626
627
  if (this.stopping) return;
627
628
  const areas = await this.collectAreas();
628
629
  // Read only now: a button pressed while the areas were checked has changed what still waits.
@@ -653,7 +654,10 @@ class Bridge {
653
654
  // Recorded only now: a run a crash cut short runs again and skips the reports it already posted.
654
655
  writeReportState("daily", { date, status: "sending", notified, links });
655
656
  let first = "";
656
- for (const chunk of chunkMessage(text)) first ||= (await this.rest.createMessage(schedule.channelId, { content: chunk })).id;
657
+ for (const chunk of chunkMessage(text)) {
658
+ const { id } = await this.rest.createMessage(schedule.channelId, { content: chunk });
659
+ first ||= id;
660
+ }
657
661
  writeReportState("daily", { date, status: "sent", messageId: first, notified, links });
658
662
  log(`daily ${date}: posted`);
659
663
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrofoundry/pi-astro",
3
- "version": "0.40.80",
3
+ "version": "0.40.81",
4
4
  "description": "Personal pi customizations (extensions, subagents, skills, prompts, themes) for the pi coding agent.",
5
5
  "keywords": [
6
6
  "pi-package"