Static imports, no runtime file reads, bundler friendly.
Removed mustache dependency.
小橘 🍊(NEKO Team)
28 lines
727 B
TypeScript
28 lines
727 B
TypeScript
export function plannerPrompt(vars: {
|
|
threadId: string;
|
|
senseExamples: string;
|
|
nerveYaml: string;
|
|
}): string {
|
|
return `You are planning a new Nerve sense.
|
|
|
|
Read the workflow thread for the user's request: \`nerve thread ${vars.threadId}\`
|
|
|
|
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
|
|
|
|
Reference senses:
|
|
${vars.senseExamples}
|
|
|
|
Current nerve.yaml:
|
|
\`\`\`yaml
|
|
${vars.nerveYaml}
|
|
\`\`\`
|
|
|
|
Output ONLY the plan. Be precise and implementation-ready.`;
|
|
}
|