agent-nodejs icon indicating copy to clipboard operation
agent-nodejs copied to clipboard

refactor(ai-proxy): add ServerRemoteTool and ServerRemoteToolBuilder

Open Scra3 opened this issue 3 weeks ago • 1 comments

Summary

  • Add ServerRemoteTool for server-side tools (sourceType: 'server')
  • Extract tool building logic into ServerRemoteToolBuilder
  • Update RemoteTools to use ServerRemoteToolBuilder
  • Update router types

This prepares the codebase for adding more server-side tools (slack, infogreffe, etc.) by providing a cleaner, extensible architecture.

Depends on

  • #1417

Test plan

  • [x] All unit tests pass (yarn workspace @forestadmin/ai-proxy test)
  • [x] Lint passes (yarn workspace @forestadmin/ai-proxy lint)
  • [x] Build passes (yarn workspace @forestadmin/ai-proxy build)

🤖 Generated with Claude Code

Scra3 avatar Jan 16 '26 20:01 Scra3