Commit b102618
committed
refactor: use SDK for loading local agents with async initialization
- Add initializeAgentRegistry() async function called at CLI startup
- Replace sync require-based agent loading with SDK loadLocalAgents()
- Remove dead code: gatherAgentFiles, regex patterns, SKIPPED_DIRECTORIES
- User agents now cached after SDK loads them via esbuild transpilation
- Preserve file paths for user agents (for UI "Open file" links)
- Update tests to work with bundled agents present (use test- prefix)
- Add 24 new tests for loadLocalAgents, handleSteps, utilities, edge cases1 parent af2771f commit b102618
File tree
7 files changed
+998
-210
lines changed- cli/src
- __tests__/integration
- utils
- sdk
- e2e/integration
- src/agents
- web/src/app/api/admin/relabel-for-user
7 files changed
+998
-210
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
0 commit comments