@astrofoundry/pi-astro 0.38.0 → 0.38.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.
@@ -0,0 +1,28 @@
1
+ import { readdirSync, readFileSync } from "node:fs";
2
+ import { join } from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+ import { parseFrontmatter } from "@earendil-works/pi-coding-agent";
5
+ import { describe, expect, it } from "vitest";
6
+
7
+ const ROOT = fileURLToPath(new URL("../../", import.meta.url));
8
+
9
+ function bundledFiles(): string[] {
10
+ const agents = readdirSync(join(ROOT, "agents"))
11
+ .filter((f) => f.endsWith(".md"))
12
+ .map((f) => join(ROOT, "agents", f));
13
+ const skills = readdirSync(join(ROOT, "skills"), { withFileTypes: true })
14
+ .filter((d) => d.isDirectory())
15
+ .map((d) => join(ROOT, "skills", d.name, "SKILL.md"));
16
+ return [...agents, ...skills];
17
+ }
18
+
19
+ describe("bundled agents and skills", () => {
20
+ // A colon followed by a space inside an unquoted value breaks the YAML, and Pi then skips the file (the foreman skill, 2026-10-23).
21
+ it("parse with Pi's own frontmatter reader and carry a name and a description", () => {
22
+ for (const file of bundledFiles()) {
23
+ const { frontmatter } = parseFrontmatter<{ name?: unknown; description?: unknown }>(readFileSync(file, "utf-8"));
24
+ expect(typeof frontmatter.name, file).toBe("string");
25
+ expect(typeof frontmatter.description, file).toBe("string");
26
+ }
27
+ });
28
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrofoundry/pi-astro",
3
- "version": "0.38.0",
3
+ "version": "0.38.1",
4
4
  "description": "Personal pi customizations (extensions, subagents, skills, prompts, themes) for the pi coding agent.",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: foreman
3
- description: How the foreman diagnoses a failed unattended update: which specialist holds which evidence, and the answer the owner reads in Discord.
3
+ description: How the foreman diagnoses a failed unattended update, which specialist holds which evidence, and the answer the owner reads in Discord.
4
4
  ---
5
5
 
6
6
  # Foreman