@astrofoundry/pi-astro 0.40.77 → 0.40.78
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.
package/package.json
CHANGED
package/skills/arcane/SKILL.md
CHANGED
|
@@ -83,9 +83,9 @@ The usual trigger is the owner's **Upgrade Arcane** button under the Arcane Dail
|
|
|
83
83
|
|
|
84
84
|
## Arcane VM operations
|
|
85
85
|
|
|
86
|
-
`["host", "<command>", ...]` runs fixed operations on VM 100 through the key of user `spc-arcane`. The checks print only allowlisted fields; raw logs and journal text never leave the guest. `["host", "--help"]` is the wrapper's help.
|
|
86
|
+
`["host", "<command>", ...]` runs fixed operations on VM 100 through the key of user `spc-arcane`. The checks print only allowlisted fields; raw logs and journal text never leave the guest, except `container-logs … text`, which masks credentials first. `["host", "--help"]` is the wrapper's help.
|
|
87
87
|
|
|
88
|
-
- `container-memory <name>`, `container-stats [name...]` (60 s sample), `container-logs <name> <since> <until> [docker|bazarr-file]` (sanitized event extracts, UTC like `2026-09-06T12:15:00Z`, at most one day), `container-oom <name> <since> <until>`, `kernel-oom <since> <until>`.
|
|
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
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 <path>`.
|
|
91
91
|
- `radarr-movie <tt…> [command-id]` and `radarr-interface` read Radarr's key from its host config; each needs an owner's approval.
|
|
@@ -229,13 +229,13 @@ def op_container_stats(args):
|
|
|
229
229
|
|
|
230
230
|
|
|
231
231
|
def op_container_logs(args):
|
|
232
|
-
usage = "container-logs <name> <since> <until> [docker|bazarr-file] (UTC like 2026-09-06T12:15:00Z)"
|
|
232
|
+
usage = "container-logs <name> <since> <until> [docker|text|bazarr-file] (UTC like 2026-09-06T12:15:00Z)"
|
|
233
233
|
arity(args, 3, 4, usage)
|
|
234
234
|
name = need(NAME, args[0], usage)
|
|
235
235
|
since, until = window_args(args[1:3], usage)
|
|
236
236
|
source = args[3] if len(args) == 4 else "docker"
|
|
237
|
-
if source not in ("docker", "bazarr-file") or (source == "bazarr-file" and name != "bazarr"):
|
|
238
|
-
raise Refused("
|
|
237
|
+
if source not in ("docker", "text", "bazarr-file") or (source == "bazarr-file" and name != "bazarr"):
|
|
238
|
+
raise Refused("source: docker, text, or bazarr-file (bazarr only)")
|
|
239
239
|
probe("incident_probe", {"kind": "container_logs", "name": name, "since": since, "until": until, "source": source})
|
|
240
240
|
|
|
241
241
|
|
|
@@ -25,6 +25,9 @@ describe("Arcane host commands", () => {
|
|
|
25
25
|
expect(buildHostRemote(["container-logs", "bazarr", "2026-09-06T12:00:00Z", "2026-09-06T12:15:00Z", "bazarr-file"]).remote).toBe(
|
|
26
26
|
"container-logs bazarr 2026-09-06T12:00:00Z 2026-09-06T12:15:00Z bazarr-file",
|
|
27
27
|
);
|
|
28
|
+
expect(buildHostRemote(["container-logs", "slskd", "2026-09-06T12:00:00Z", "2026-09-06T12:15:00Z", "text"]).remote).toBe(
|
|
29
|
+
"container-logs slskd 2026-09-06T12:00:00Z 2026-09-06T12:15:00Z text",
|
|
30
|
+
);
|
|
28
31
|
expect(buildHostRemote(["db-restore", "mealie", "20261019T120000Z"]).name).toBe("db-restore");
|
|
29
32
|
expect(buildHostRemote(["mealie-api"]).spec.stdinSecret).toBe("MEALIE_API_KEY");
|
|
30
33
|
expect(buildHostRemote(["supabase-backup"]).remote).toBe("supabase-backup");
|
|
@@ -35,6 +38,7 @@ describe("Arcane host commands", () => {
|
|
|
35
38
|
["rm"],
|
|
36
39
|
["container-memory", "a b"],
|
|
37
40
|
["container-logs", "sonarr", "2026-09-06T12:00:00Z", "2026-09-06T12:15:00Z", "bazarr-file"],
|
|
41
|
+
["container-logs", "slskd", "2026-09-06T12:00:00Z", "2026-09-06T12:15:00Z", "raw"],
|
|
38
42
|
["kernel-oom", "yesterday", "today"],
|
|
39
43
|
["host-storage", "etc"],
|
|
40
44
|
["service-check", "supabase-studio"],
|
|
@@ -25,7 +25,7 @@ export interface HostCommand {
|
|
|
25
25
|
export const HOST_COMMANDS: Readonly<Record<string, HostCommand>> = {
|
|
26
26
|
"container-memory": { args: [1, 1], help: "container-memory <name> one memory sample and the configured limits", timeoutMs: MINUTE },
|
|
27
27
|
"container-stats": { args: [0, 8], help: "container-stats [name...] 60 s CPU and memory sample (default: the Grimoire workers)", timeoutMs: 2 * MINUTE },
|
|
28
|
-
"container-logs": { args: [3, 4], help: "container-logs <name> <since> <until> [docker|bazarr-file] sanitized event extracts, UTC window ≤ 1 day", timeoutMs: 2 * MINUTE },
|
|
28
|
+
"container-logs": { args: [3, 4], help: "container-logs <name> <since> <until> [docker|text|bazarr-file] sanitized event extracts, or with text the newest 300 lines with credentials masked; UTC window ≤ 1 day", timeoutMs: 2 * MINUTE },
|
|
29
29
|
"container-oom": { args: [3, 3], help: "container-oom <name> <since> <until> OOMKilled flag, limits, retained oom events", timeoutMs: 2 * MINUTE },
|
|
30
30
|
"kernel-oom": { args: [2, 2], help: "kernel-oom <since> <until> sanitized kernel OOM records from the journal", timeoutMs: MINUTE },
|
|
31
31
|
"host-audit": { args: [0, 0], help: "host-audit installed host files and units, compared with the repository's host/", timeoutMs: MINUTE },
|
|
@@ -96,7 +96,7 @@ export function buildHostRemote(args: string[], allowInternal = false): { remote
|
|
|
96
96
|
case "container-oom":
|
|
97
97
|
check(NAME.test(rest[0]), "container name: letters, digits, dot, dash, underscore");
|
|
98
98
|
check(UTC.test(rest[1]) && UTC.test(rest[2]), "since and until are UTC like 2026-09-06T12:15:00Z");
|
|
99
|
-
if (rest[3] !== undefined) check(rest[3] === "docker" || (rest[3] === "bazarr-file" && rest[0] === "bazarr"), "source: docker, or bazarr-file for bazarr");
|
|
99
|
+
if (rest[3] !== undefined) check(rest[3] === "docker" || rest[3] === "text" || (rest[3] === "bazarr-file" && rest[0] === "bazarr"), "source: docker, text, or bazarr-file for bazarr");
|
|
100
100
|
break;
|
|
101
101
|
case "kernel-oom":
|
|
102
102
|
check(UTC.test(rest[0]) && UTC.test(rest[1]), "since and until are UTC like 2026-09-06T12:15:00Z");
|