Commit 5f5ede5
authored
cleanup: remove legacy backend and npm-app (#389)
🧹 Remove Legacy Backend & npm-app Packages
This branch removes ~33,000 lines of legacy code by eliminating the standalone backend/ and npm-app/ packages that are no longer needed.
What Was Removed
- backend/ - The entire legacy Node.js backend including:
- WebSocket server infrastructure
- LLM API integrations (OpenRouter, Vertex, Vercel AI SDK)
- Admin utilities, API endpoints, and test suites
- Database templates and logging utilities
- npm-app/ - Legacy npm application package
- common/src/websockets/websocket-client.ts - No longer needed WebSocket client
What Was Migrated/Preserved
- credentials.ts moved from npm-app/ → sdk/src/
- system-info.ts moved from backend/ → common/src/util/
- Agent loading logic consolidated into new sdk/src/agents/load-agents.ts
Related Changes
- Environment cleanup: Removed backend-only env vars, enforced explicit env validation
- SDK improvements: New loadLocalAgents API with better error handling
- Documentation updates: Removed references to deleted packages
- Web package: Migrated relabel endpoint, updated env handling ( env → webEnv )
- Agent updates: Replaced deprecated base agent with codebuff/base2@latest
🤖 Acknowledgments
Big thanks to Codebuff for handling the majority of these changes! From carefully migrating critical utilities, to cleaning up environment variables, to ensuring documentation stayed in sync — this refactor was powered by AI-assisted development.
(all of the above was written by codebuff)1 parent da8b875 commit 5f5ede5
File tree
235 files changed
+3475
-36668
lines changed- .agents
- backend
- src
- __tests__
- test-data/dex-go
- admin
- api
- __tests__
- context
- impl
- llm-apis
- vercel-ai-sdk
- templates
- util
- __tests__
- websockets
- cli
- src
- __tests__/integration
- utils
- common
- src
- mcp
- util
- websockets
- evals
- __tests__
- buffbench
- subagents
- npm-app
- release-legacy
- release-staging
- release
- scripts
- src
- __tests__
- agents
- checkpoints
- cli-handlers
- display
- json-config
- native
- terminal
- utils
- __tests__
- __snapshots__
- workers
- packages
- agent-runtime
- src
- __tests__
- templates
- internal/src
- scripts
- __tests__
- sdk
- e2e
- custom-agents
- examples
- features
- integration
- streaming
- utils
- workflows
- src
- __tests__
- agents
- impl
- test
- web
- src/app/api/admin/relabel-for-user
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
235 files changed
+3475
-36668
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| |||
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
36 | | - | |
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
40 | 36 | | |
41 | | - | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | | - | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
126 | | - | |
127 | | - | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
205 | | - | |
| 206 | + | |
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
| |||
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
228 | | - | |
| 229 | + | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
236 | | - | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments