Set profile: agents.ProfileFull explicitly on codex, factory, mux (all three layers), and opencode integrations. This makes the profile intent clear and prepares for adding minimal-profile integrations. Amp-Thread-ID: https://ampcode.com/threads/T-019ced5e-0acd-7158-93ad-0695c6d02580 Co-authored-by: Amp <amp@ampcode.com>
50 lines
1.2 KiB
Go
50 lines
1.2 KiB
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
|
|
|
|
// InstallFactory installs Factory.ai/Droid integration.
|
|
func InstallFactory() {
|
|
env := factoryEnvProvider()
|
|
if err := installAgents(env, factoryIntegration); err != nil {
|
|
setupExit(1)
|
|
}
|
|
}
|
|
|
|
func installFactory(env factoryEnv) error {
|
|
return installAgents(env, factoryIntegration)
|
|
}
|
|
|
|
// CheckFactory checks if Factory.ai integration is installed.
|
|
func CheckFactory() {
|
|
env := factoryEnvProvider()
|
|
if err := checkAgents(env, factoryIntegration); err != nil {
|
|
setupExit(1)
|
|
}
|
|
}
|
|
|
|
func checkFactory(env factoryEnv) error {
|
|
return checkAgents(env, factoryIntegration)
|
|
}
|
|
|
|
// RemoveFactory removes Factory.ai integration.
|
|
func RemoveFactory() {
|
|
env := factoryEnvProvider()
|
|
if err := removeAgents(env, factoryIntegration); err != nil {
|
|
setupExit(1)
|
|
}
|
|
}
|
|
|
|
func removeFactory(env factoryEnv) error {
|
|
return removeAgents(env, factoryIntegration)
|
|
}
|