- Remove nerveYaml injection from planner (skill has it)
- Remove sensesDir/nerveRoot from coder and tester (skill has conventions)
- Prompts now just say 'read the skill' instead of inlining knowledge
- BuildSenseGeneratorDeps reduced to { provider, cwd }
- index.ts drops getNerveYaml(), SENSES_DIR, readFileSync
21 lines
648 B
TypeScript
21 lines
648 B
TypeScript
import type { LlmProvider } from "@uncaged/nerve-workflow-utils";
|
|
import { createHermesRole } from "@uncaged/nerve-workflow-utils";
|
|
import { testerPrompt } from "./prompt.js";
|
|
import { z } from "zod";
|
|
|
|
export type TesterMeta = { passed: boolean };
|
|
export const testerMetaSchema = z.object({
|
|
passed: z.boolean().describe("true if all e2e checks passed"),
|
|
});
|
|
|
|
export type BuildTesterDeps = {
|
|
provider: LlmProvider;
|
|
};
|
|
|
|
export function buildTesterRole({ provider }: BuildTesterDeps) {
|
|
return createHermesRole<TesterMeta>({
|
|
prompt: async (threadId) => testerPrompt({ threadId }),
|
|
extract: { provider, schema: testerMetaSchema },
|
|
});
|
|
}
|