mirror of
https://github.com/wassname/pi-goals.git
synced 2026-09-20 13:10:47 +08:00
Replace historical docs, trial output and dead runtime with current source, agent definition and reusable scripts. Bundle pinned worker, Intercom and scheduler dependencies via Pi manifest. Retain 71 current tests, including real RPC proposal/editor/Ready checks and evidence edge cases; lint/typecheck pass. Historical material remains available at f22d83c.
Co-Authored-By: Pi/OpenAI <288921227+claudypoo@users.noreply.github.com>
16 lines
796 B
TypeScript
16 lines
796 B
TypeScript
import { existsSync, readFileSync } from "node:fs";
|
|
import { resolve } from "node:path";
|
|
import { expect, it } from "vitest";
|
|
|
|
it("declares current entry and bundled extension resources that exist after install", () => {
|
|
const manifest = JSON.parse(readFileSync("package.json", "utf8"));
|
|
expect(manifest.pi.extensions[0]).toBe("./src/index.ts");
|
|
for (const path of manifest.pi.extensions) expect(existsSync(resolve(path)), path).toBe(true);
|
|
for (const name of ["pi-subagents", "pi-intercom", "pi-schedule-prompt"]) {
|
|
expect(manifest.dependencies[name]).toBeTruthy();
|
|
expect(manifest.bundledDependencies).toContain(name);
|
|
}
|
|
expect(manifest.dependencies["pi-subagents"]).toContain("953c6f6d2fc7d8a5c956c30cd77c51bad697c2a4");
|
|
expect(existsSync("agents/goals-worker.md")).toBe(true);
|
|
});
|