@@ -3,6 +3,8 @@ import { CORE_PLUGINS, OPTIONAL_CORE_PLUGINS } from "./core-plugins.ts";
33const BASELINE_RUNTIME_SUPPORT_PACKAGES = [
44 "@elizaos/core" ,
55 "@elizaos/prompts" ,
6+ "@elizaos/plugin-remote-manifest" ,
7+ "@elizaos/plugin-worker-runtime" ,
68] as const ;
79
810const BASELINE_PROVIDER_PLUGINS = [
@@ -12,12 +14,31 @@ const BASELINE_PROVIDER_PLUGINS = [
1214 "@elizaos/plugin-ollama" ,
1315] as const ;
1416
17+ // Desktop loads this through the legacy "agent-orchestrator" compatibility id,
18+ // but the implementation ships as the scoped package below.
19+ const BASELINE_DESKTOP_RUNTIME_PLUGINS = [
20+ "@elizaos/plugin-agent-orchestrator" ,
21+ ] as const ;
22+
23+ // These are implementation dependencies of bundled core plugins. They need
24+ // to ship in the runtime bundle, but are not auto-loaded by collectPluginNames.
25+ const BASELINE_PLUGIN_SUPPORT_PACKAGES = [
26+ "@elizaos/plugin-calendly" ,
27+ "@elizaos/plugin-health" ,
28+ "@elizaos/plugin-app-manager" ,
29+ "@elizaos/plugin-registry" ,
30+ "@elizaos/plugin-wallet-ui" ,
31+ "@elizaos/plugin-wallet" ,
32+ ] as const ;
33+
1534const DESKTOP_RUNTIME_ONLY_PLUGINS = new Set < string > ( [
35+ "@elizaos/plugin-agent-orchestrator" ,
1636 "@elizaos/plugin-browser" ,
1737 "@elizaos/plugin-computeruse" ,
1838] ) ;
1939
2040const LOCAL_RUNTIME_ONLY_PLUGINS = new Set < string > ( [
41+ "@elizaos/plugin-agent-orchestrator" ,
2142 "@elizaos/plugin-browser" ,
2243 "@elizaos/plugin-computeruse" ,
2344] ) ;
@@ -36,6 +57,15 @@ export interface RegistryPluginReleaseCompatibility {
3657
3758export const BASELINE_BUNDLED_RUNTIME_PACKAGES : readonly string [ ] = [
3859 ...BASELINE_RUNTIME_SUPPORT_PACKAGES ,
60+ ...BASELINE_DESKTOP_RUNTIME_PLUGINS ,
61+ ...CORE_PLUGINS ,
62+ ...OPTIONAL_CORE_PLUGINS ,
63+ ...BASELINE_PLUGIN_SUPPORT_PACKAGES ,
64+ ...BASELINE_PROVIDER_PLUGINS ,
65+ ] ;
66+
67+ const BASELINE_REGISTRY_BUNDLED_PLUGIN_PACKAGES : readonly string [ ] = [
68+ ...BASELINE_DESKTOP_RUNTIME_PLUGINS ,
3969 ...CORE_PLUGINS ,
4070 ...OPTIONAL_CORE_PLUGINS ,
4171 ...BASELINE_PROVIDER_PLUGINS ,
@@ -48,6 +78,10 @@ export function derivePluginIdFromPackageName(packageName: string): string {
4878 . replace ( / ^ p l u g i n - / , "" ) ;
4979}
5080
81+ const BASELINE_REGISTRY_BUNDLED_PLUGIN_IDS = new Set (
82+ BASELINE_REGISTRY_BUNDLED_PLUGIN_PACKAGES . map ( derivePluginIdFromPackageName ) ,
83+ ) ;
84+
5185export function getBundledRuntimePackages (
5286 availableDependencies : Iterable < string > ,
5387) : string [ ] {
@@ -60,7 +94,10 @@ export function getBundledRuntimePackages(
6094export function getBundledRuntimePluginIds (
6195 availableDependencies : Iterable < string > ,
6296) : string [ ] {
63- return getBundledRuntimePackages ( availableDependencies )
97+ const available = new Set ( availableDependencies ) ;
98+ return BASELINE_REGISTRY_BUNDLED_PLUGIN_PACKAGES . filter ( ( packageName ) =>
99+ available . has ( packageName ) ,
100+ )
64101 . map ( derivePluginIdFromPackageName )
65102 . filter ( ( pluginId ) => pluginId . length > 0 )
66103 . sort ( ) ;
@@ -85,7 +122,9 @@ export function classifyRegistryPluginRelease(params: {
85122 }
86123
87124 const pluginId = derivePluginIdFromPackageName ( packageName ) ;
88- const bundled = bundledPluginIds . has ( pluginId ) ;
125+ const bundled =
126+ BASELINE_REGISTRY_BUNDLED_PLUGIN_IDS . has ( pluginId ) &&
127+ bundledPluginIds . has ( pluginId ) ;
89128 const requiresDesktopRuntime = DESKTOP_RUNTIME_ONLY_PLUGINS . has ( packageName ) ;
90129 const requiresLocalRuntime = LOCAL_RUNTIME_ONLY_PLUGINS . has ( packageName ) ;
91130
0 commit comments