0fe761dc4b
- Added tsconfig.publish.json files to all packages with optimized publish-time configuration. - Updated all package.json scripts with prepublishOnly hooks for correct type checking during publish. - Added @oh-my-pi/omp-stats path mappings to root tsconfig.json for consistent imports. - Added WASM generation script for photon module and integrated into install:dev script.
18 lines
555 B
TypeScript
18 lines
555 B
TypeScript
import { describe, expect, it } from "bun:test";
|
|
import { buildSystemPrompt } from "@oh-my-pi/pi-coding-agent/system-prompt";
|
|
|
|
describe("buildSystemPrompt", () => {
|
|
it("includes python tool details when enabled", async () => {
|
|
const prompt = await buildSystemPrompt({
|
|
cwd: "/tmp",
|
|
toolNames: ["python"],
|
|
contextFiles: [],
|
|
skills: [],
|
|
rules: [],
|
|
});
|
|
|
|
expect(prompt).toContain("The Python prelude has helpers for file I/O");
|
|
expect(prompt).toContain("Do not run bash then read output then run more bash. Just use Python.");
|
|
});
|
|
});
|