Commit a2a9aec
committed
refactor(sdk): improve loadLocalAgents to return validation errors
- Add TypeScript overloads so validate: true returns { agents, validationErrors }
- Add AgentValidationError and LoadLocalAgentsResult types
- Export new types from SDK index
- Move validateAgents to static import (fix dynamic import pattern)
- Add comprehensive tests for loadLocalAgents with type safety
- Fix early return to respect validate flag1 parent ee3087b commit a2a9aec
File tree
3 files changed
+859
-31
lines changed- sdk/src
- __tests__
- agents
3 files changed
+859
-31
lines changed
0 commit comments