@astrofoundry/pi-astro 0.40.79 → 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
|
-
|
|
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))
|
|
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
package/skills/arcane/SKILL.md
CHANGED
|
@@ -87,7 +87,7 @@ The usual trigger is the owner's **Upgrade Arcane** button under the Arcane Dail
|
|
|
87
87
|
|
|
88
88
|
- `container-memory <name>`, `container-stats [name...]` (60 s sample), `container-logs <name> <since> <until> [docker|text|bazarr-file]` (sanitized event extracts, UTC like `2026-09-06T12:15:00Z`, at most one day; when the extracts say `withheld`, add `text` for the newest 300 lines with credentials masked, such as a startup error, and call them redacted log lines), `container-oom <name> <since> <until>`, `kernel-oom <since> <until>`.
|
|
89
89
|
- `host-audit` (installed host files and units, compared with `host/` in the repository), `host-capacity`, `host-storage [area]`, `docker-usage`.
|
|
90
|
-
- `service-check grimoire|mealie` (guest-local endpoints), `crawl4ai-info`, `recyclarr-naming`, `arcane-version`, `queue-callback`, `bazarr-providers`, `mealie-api`, `queue-job <uuid>`, `object-stat grimoire|media <path>` (kind, size, owner, mode, and age; `media` is the NAS media share mounted at `/media` in the media containers, so a container's missing-folder error can be checked there).
|
|
90
|
+
- `service-check grimoire|mealie` (guest-local endpoints), `crawl4ai-info`, `recyclarr-naming`, `arcane-version`, `queue-callback`, `bazarr-providers`, `mealie-api`, `queue-job <uuid>`, `object-stat grimoire|media <path>` (kind, size, owner, mode, and age; `media` is the NAS media share mounted at `/media` in the media containers, so a container's missing-folder error can be checked there; `"error": "EACCES"` there means the encrypted `MEDIA` share on the UNAS refuses access, usually locked after a NAS restart: ask the owner to unlock `MEDIA` in UNAS, as `media/README.md` "After a NAS update or restart" describes).
|
|
91
91
|
- `radarr-movie <tt…> [command-id]` and `radarr-interface` read Radarr's key from its host config; each needs an owner's approval.
|
|
92
92
|
- `db-list mealie|paperless`, `db-dump mealie|paperless` (gzip pg_dump into `/var/backups/spc-arcane/<stack>/<UTC>`, checked, with row counts), `db-restore <stack> <stamp>` (owner approval): fills an **empty** database from one of those dumps, the app container stopped meanwhile. It refuses a database that holds tables; emptying one is an operator decision. Dumps are never deleted by the tool; `db-list` names those beyond the last three in `over_keep`.
|
|
93
93
|
- `supabase-backup`: the backup `supabase/AGENTS.md` asks for before a Supabase change. It writes custom-format dumps of `postgres` and `_supabase`, `globals.sql`, and `db-config.tar.gz` (the pgsodium root key) into `/var/backups/supabase-upgrades/<UTC>`, checks each dump with pg_restore's listing and full decoding, and prints the manifest with the image's repo digests (record them as the rollback digest). It refuses when the disk has less free space than the databases. Restoring stays an operator step.
|