feat(protocol): add edge prompt to Transition + EvaluateResult (#402)

- Transition type gains prompt: string | null
- evaluate() returns EvaluateResult { role, prompt } instead of string
- normalizeGraph coerces prompt: undefined → null
- spawnAgent passes edge prompt via UWF_EDGE_PROMPT env
- AgentContext gains edgePrompt field

Refs #402
This commit is contained in:
2026-05-23 03:49:15 +00:00
parent d5d05334f5
commit 1a06e014f5
8 changed files with 33 additions and 9 deletions
+1
View File
@@ -28,6 +28,7 @@ export type RoleDefinition = {
export type Transition = {
role: string;
condition: string | null;
prompt: string | null;
};
export type ConditionDefinition = {