- Normalize stream done event to always yield AgentRunResult
- Move transitionTo('completed') after afterRun to fix state ordering
- Strip hook functions from BeforeRunHookContext.agent to avoid self-references
- Pass originalPrompt to applyHookContext to avoid redundant message scan
- Clarify afterRun JSDoc: not called when the run throws
- Add tests: error-path skip, outputSchema+afterRun, ctx.agent shape, multi-turn hooks
|
||
|---|---|---|
| .. | ||
| agent-hooks.test.ts | ||
| grok-adapter.test.ts | ||
| semaphore.test.ts | ||
| shared-memory.test.ts | ||
| structured-output.test.ts | ||
| task-queue.test.ts | ||
| task-retry.test.ts | ||
| task-utils.test.ts | ||
| tool-executor.test.ts | ||
| trace.test.ts | ||