lobehub/src
Arvin Xu 3415df3715
♻️ refactor: remove chat-plugin-sdk (#13512)
* ♻️ refactor: remove @lobehub/chat-plugin-sdk dependency

Plugins have been deprecated. This removes the SDK entirely:

- Define built-in ToolManifest, ToolManifestSettings, ToolErrorType types
- Delete src/features/PluginsUI/ (plugin iframe rendering)
- Delete src/store/tool/slices/oldStore/ (deprecated plugin store)
- Delete src/server/services/pluginGateway/ (plugin gateway)
- Delete src/app/(backend)/webapi/plugin/gateway/ (plugin API route)
- Migrate all ~50 files from SDK imports to @lobechat/types
- Remove @lobehub/chat-plugin-sdk, @lobehub/chat-plugins-gateway deps
- Remove @swagger-api/apidom-reference override and patch

Fixes LOBE-6655

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* 🐛 fix: add missing getInstalledPlugins mock in customPlugin test

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* 🔧 chore: increase Vercel build memory limit to 8192MB

The 6144MB limit was causing OOM during Vite SPA chunk rendering.
Aligned with other build commands that already use 8192MB.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* ♻️ refactor: unify default tool type to builtin and fix CustomRender

- Remove `invokeDefaultTypePlugin` — default type now falls through to builtin in both server and client execution paths
- Fix `CustomRender` to actually render builtin tool components via `getBuiltinRender` instead of always returning null
- Increase SPA build memory limit from 7168MB to 8192MB to fix OOM

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* ♻️ refactor: remove legacy plugin gateway and type-specific invocations

- Delete `runPluginApi`, `internal_callPluginApi`, `invokeMarkdownTypePlugin`, `invokeStandaloneTypePlugin`
- Remove plugin gateway endpoint (`/webapi/plugin/gateway`) from URL config
- Remove special `builtin → default` runtimeType mapping in plugin model
- Clean up unused imports and related tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* 🐛 fix: add 'builtin' to runtimeType union to fix type error

Use ToolManifestType instead of inline union for runtimeType fields
so that 'builtin' is included as a valid type.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 00:46:19 +08:00
..
app ♻️ refactor: remove chat-plugin-sdk (#13512) 2026-04-03 00:46:19 +08:00
business feat: add businessElement and getFetchOptions plumbing to signin page (#13382) 2026-03-29 23:15:16 +08:00
components feat(resource): add select all hint and improve resource explorer selection (#13134) 2026-03-28 11:51:23 +08:00
config 🌐 chore: translate non-English comments to English in src/app/(backend) (#12836) 2026-03-09 20:03:13 +08:00
const feat(onboarding): agent web onboarding, feature toggle, and lifecycle sync (#13139) 2026-03-30 20:28:54 +08:00
envs 🐛 fix: fix lmstudio api key field has been hidden (#12678) 2026-03-31 12:17:16 +08:00
features ♻️ refactor: remove chat-plugin-sdk (#13512) 2026-04-03 00:46:19 +08:00
helpers ♻️ refactor: remove chat-plugin-sdk (#13512) 2026-04-03 00:46:19 +08:00
hooks 💄 style: show interrupted hint when AI generation is stopped (#13397) 2026-03-30 18:46:46 +08:00
layout 💄 style: mount DynamicFavicon for agent operation favicon switching (#13416) 2026-03-31 09:25:18 +08:00
libs ⬆️ chore: bump Lexical to 0.42 and align editor imports (#13440) 2026-03-31 20:45:32 +08:00
locales 💄 style: add more videoGen provider support (#13428) 2026-04-03 00:37:15 +08:00
routes ♻️ refactor: remove chat-plugin-sdk (#13512) 2026-04-03 00:46:19 +08:00
server ♻️ refactor: remove chat-plugin-sdk (#13512) 2026-04-03 00:46:19 +08:00
services ♻️ refactor: remove chat-plugin-sdk (#13512) 2026-04-03 00:46:19 +08:00
spa feat(onboarding): agent web onboarding, feature toggle, and lifecycle sync (#13139) 2026-03-30 20:28:54 +08:00
store ♻️ refactor: remove chat-plugin-sdk (#13512) 2026-04-03 00:46:19 +08:00
styles 🌐 chore: translate non-English comments to English in packages (#13427) 2026-03-31 18:11:39 +08:00
types feat(resource): add select all hint and improve resource explorer selection (#13134) 2026-03-28 11:51:23 +08:00
utils refactor: Extract web onboarding runtime to builtin package (#13446) 2026-04-02 02:19:26 +08:00
auth.ts 🔨 chore: project structure businessify (#10930) 2025-12-24 17:52:22 +08:00
initialize.ts feat(resource): add select all hint and improve resource explorer selection (#13134) 2026-03-28 11:51:23 +08:00
instrumentation.node.ts feat:support LobeHub MarketPlace (#8841) 2025-11-11 23:16:19 +08:00
instrumentation.ts fix: discord not create thread & wechat media and connect optimize (#13228) 2026-03-25 18:43:45 +08:00
proxy.ts feat(onboarding): agent web onboarding, feature toggle, and lifecycle sync (#13139) 2026-03-30 20:28:54 +08:00
vite.d.ts 🔨 chore(vite): support direct markdown imports (#13216) 2026-03-24 14:33:57 +08:00