小橘 bc4ac8a5cc refactor(sense-generator): prompt.ts instead of prompt.md + mustache
Static imports, no runtime file reads, bundler friendly.
Removed mustache dependency.

小橘 🍊(NEKO Team)
2026-04-28 03:38:26 +00:00

17 lines
641 B
TypeScript

export function coderPrompt(vars: {
threadId: string;
sensesDir: string;
nerveRoot: string;
}): string {
return `Read the workflow thread for the planner's sense design: \`nerve thread ${vars.threadId}\`
Implement the sense. Create exactly:
1. The sense directory under ${vars.sensesDir}/<sense-name>/
2. index.js — export async function compute(db, _peers), import schema from "./schema.ts"
3. schema.ts — drizzle-orm/sqlite-core
4. migrations/0001_init.sql — must match schema.ts
5. Update ${vars.nerveRoot}/nerve.yaml — add sense config + reflex entry
Follow the patterns from existing senses. Create all files now.`;
}