- 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
18 lines
765 B
TypeScript
18 lines
765 B
TypeScript
export function plannerPrompt({ threadId }: { threadId: string }): string {
|
|
return `You are planning a new Nerve sense.
|
|
|
|
Read the workflow thread for the user's request: \`nerve thread ${threadId}\`
|
|
Read the nerve-dev skill for sense conventions: \`cat node_modules/@uncaged/nerve-skills/nerve-dev/SKILL.md\`
|
|
Also look at existing senses in the \`senses/\` directory for patterns.
|
|
|
|
Pick a good kebab-case name for this sense. Produce a PLAN (not code) in markdown:
|
|
|
|
## Sense Design
|
|
### Name — kebab-case
|
|
### Fields — name, type (integer/real/text), description
|
|
### Compute Logic — step-by-step, specific Node.js APIs or shell commands
|
|
### Trigger Config — group, interval, throttle, timeout
|
|
|
|
Output ONLY the plan. Be precise and implementation-ready.`;
|
|
}
|