@astrofoundry/pi-astro 0.20.1 → 0.20.2

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.
@@ -1,4 +1,4 @@
1
- import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
1
+ import { mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
2
2
  import { tmpdir } from "node:os";
3
3
  import { join } from "node:path";
4
4
  import { afterEach, beforeEach, describe, expect, it } from "vitest";
@@ -107,3 +107,16 @@ describe("discovery", () => {
107
107
  expect(missing).toEqual(["nope"]);
108
108
  });
109
109
  });
110
+
111
+ describe("bundled agent files", () => {
112
+ it("every agents/*.md parses and declares a specialist-safe front matter", () => {
113
+ const dir = join(import.meta.dirname, "..", "..", "agents");
114
+ const files = readdirSync(dir).filter((f) => f.endsWith(".md"));
115
+ expect(files.length).toBeGreaterThan(0);
116
+ for (const file of files) {
117
+ const agent = parseAgentFile(readFileSync(join(dir, file), "utf-8"), join(dir, file), "bundled");
118
+ expect(agent, file).not.toBeNull();
119
+ expect(agent?.name, file).toBe(`astro.${file.replace(/\.md$/, "")}`);
120
+ }
121
+ });
122
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrofoundry/pi-astro",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "description": "Personal pi customizations (extensions, subagents, skills, prompts, themes) for the pi coding agent.",
5
5
  "keywords": [
6
6
  "pi-package"