Files
CLIProxyAPI/internal/pluginhost/loader_unsupported.go
Luis Pater 538e3416db feat(plugin, api): prevent plugin recursion on host model callbacks, enable targeted interceptor skipping
- Updated host model callback logic to skip originating plugin's interceptors during nested model executions.
- Added `SkipInterceptorPluginID` field to plugin API structs for controlling interceptor bypass behavior.
- Introduced supporting logic in host API handlers, plugin host registry, and callback contexts to identify and skip specific plugins.
- Enhanced unit tests across plugin host, API handlers, and execution paths to verify interceptor skipping behavior and plugin isolation.
- Revised documentation to clarify non-recursive behavior of host model callbacks and the use of `SkipInterceptorPluginID`.
2026-06-12 02:38:51 +08:00

16 lines
366 B
Go

//go:build !cgo && !windows
package pluginhost
import "fmt"
type unsupportedLoader struct{}
func (unsupportedLoader) Open(file pluginFile, host *Host) (pluginClient, error) {
return nil, fmt.Errorf("standard dynamic library plugin loading requires cgo on this platform: %s", file.Path)
}
func defaultPluginLoader() pluginLoader {
return unsupportedLoader{}
}