beads/cmd/bd/setup/factory.go
coffeegoddd☕️✨ d7d7a34607 : refactor to use RunE, emit usage metrics, skip metrics in CI
(cherry picked from commit 9596c7233d)
2026-06-22 20:44:43 +00:00

38 lines
949 B
Go

package setup
import "github.com/steveyegge/beads/internal/templates/agents"
var factoryIntegration = agentsIntegration{
name: "Factory.ai (Droid)",
setupCommand: "bd setup factory",
readHint: "Factory Droid will automatically read AGENTS.md on session start.",
profile: agents.ProfileFull,
}
type factoryEnv = agentsEnv
var factoryEnvProvider = defaultAgentsEnv
func InstallFactory() error {
return installAgents(factoryEnvProvider(), factoryIntegration)
}
func installFactory(env factoryEnv) error {
return installAgents(env, factoryIntegration)
}
func CheckFactory() error {
return checkAgents(factoryEnvProvider(), factoryIntegration)
}
func checkFactory(env factoryEnv) error {
return checkAgents(env, factoryIntegration)
}
func RemoveFactory() error {
return removeAgents(factoryEnvProvider(), factoryIntegration)
}
func removeFactory(env factoryEnv) error {
return removeAgents(env, factoryIntegration)
}