52719d1a7c
- Migrated all package tsconfig files to extend tsconfig.workspace.json for unified TypeScript configuration across monorepo. - Consolidated build and check scripts across 10+ packages to use biome for linting/formatting with separate type checking via tsgo. - Renamed build scripts from build:native and build:binary to build for simplified command naming across packages/natives and packages/coding-agent. - Refactored CI workflow to invoke bun tasks instead of inline shell scripts, reducing workflow complexity by 40+ lines. - Removed sync-exports.ts and repro-stuck.ts scripts; deleted path aliases from tsconfig.base.json in favor of workspace-based configuration. - Updated turbo.json with new task definitions (check:types, lint, fmt, fix) and removed build:native/embed:native tasks.
15 lines
547 B
TypeScript
15 lines
547 B
TypeScript
import { describe, expect, it } from "bun:test";
|
|
import { prompt } from "@oh-my-pi/pi-utils";
|
|
import planModeApprovedPrompt from "../../src/prompts/system/plan-mode-approved.md" with { type: "text" };
|
|
|
|
describe("plan-mode-approved prompt", () => {
|
|
it("includes final plan artifact path in injected execution prompt", () => {
|
|
const rendered = prompt.render(planModeApprovedPrompt, {
|
|
planContent: "1. Do work",
|
|
finalPlanFilePath: "local://WP_MIGRATION_PLAN.md",
|
|
});
|
|
|
|
expect(rendered).toContain("local://WP_MIGRATION_PLAN.md");
|
|
});
|
|
});
|