MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / RegisterUsagePlugins

Method RegisterUsagePlugins

internal/pluginhost/adapters.go:1163–1179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1161}
1162
1163func (h *Host) RegisterUsagePlugins() {
1164 if h == nil {
1165 return
1166 }
1167
1168 for _, record := range h.activeRecords() {
1169 plugin := record.plugin.Capabilities.UsagePlugin
1170 if plugin == nil || h.isPluginFused(record.id) {
1171 continue
1172 }
1173 coreusage.RegisterNamedPlugin("plugin:"+record.id, &usageAdapter{
1174 host: h,
1175 pluginID: record.id,
1176 plugin: plugin,
1177 })
1178 }
1179}
1180
1181func (h *Host) refreshThinkingProviders(records []capabilityRecord) {
1182 thinking.ClearPluginProviders()

Calls 2

activeRecordsMethod · 0.95
isPluginFusedMethod · 0.95