Skip to content

Commit b102618

Browse files
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 cases
1 parent af2771f commit b102618

File tree

7 files changed

+998
-210
lines changed

7 files changed

+998
-210
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ STRIPE_TEAM_FEE_PRICE_ID=price_dummy_team_fee_id
2222
LINKUP_API_KEY=dummy_linkup_key
2323
LOOPS_API_KEY=dummy_loops_key
2424

25+
# Admin/Internal Tools
26+
# Required for admin relabeling operations (POST /api/admin/relabel-for-user)
27+
CODEBUFF_API_KEY=dummy_codebuff_api_key
28+
2529
# Discord Integration
2630
DISCORD_PUBLIC_KEY=dummy_discord_public_key
2731
DISCORD_BOT_TOKEN=dummy_discord_bot_token

0 commit comments

Comments
 (0)