Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Remove dead factory wrapper functions: mergeFactoryEndpointHook, isFactoryEndpointHookGroup, filterFactoryEndpointHooks

Cursor Agent3e56c6bbfca9
diff --git a/cli/beacon/internal/endpoint/hooks/factory.go b/cli/beacon/internal/endpoint/hooks/factory.go
index a2a1bdcb..0d1b8646 100644
--- a/cli/beacon/internal/endpoint/hooks/factory.go
+++ b/cli/beacon/internal/endpoint/hooks/factory.go
@@ -80,22 +80,10 @@ func readFactorySettings(path string) (factorySettings, error) {
return readSettingsHooks(path)
}
-func mergeFactoryEndpointHook(existing []factoryHookGroup, group factoryHookGroup) []factoryHookGroup {
- return mergeSettingsEndpointHook(existing, group, "factory")
-}
-
func removeFactoryEndpointHooks(path string) (bool, error) {
return removeSettingsEndpointHooks(path, "factory")
}
-func isFactoryEndpointHookGroup(group factoryHookGroup) bool {
- return isSettingsEndpointHookGroup(group, "factory")
-}
-
-func filterFactoryEndpointHooks(group factoryHookGroup) (factoryHookGroup, bool) {
- return filterSettingsEndpointHooks(group, "factory")
-}
-
func isFactoryInstalledAt(path string) bool {
return isSettingsEndpointInstalledAt(path, "factory")
}