mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-09-21 17:38:10 +00:00
- internal/plugin/cabi/: dlopen + dlsym for plugin_init - create_core_api(): C struct with dispatch_bridge→go_core_dispatch - go_core_dispatch routes all 25 SDK methods (RegisterTool, MemoryAPI, etc.) - dynamic.go: cabiPlugin uses CreateCoreAPI(sdk)→Start(corePtr) - Each plugin gets a unique ID stored in CoreAPI.ctx - C functions moved to loader.c to avoid cgo duplicate symbol issues