* Add Codex setup recipe * Sync beads issues (bd-1zo) --------- Co-authored-by: Amp <amp@example.com>
48 lines
1.1 KiB
Go
48 lines
1.1 KiB
Go
package setup
|
|
|
|
var factoryIntegration = agentsIntegration{
|
|
name: "Factory.ai (Droid)",
|
|
setupCommand: "bd setup factory",
|
|
readHint: "Factory Droid will automatically read AGENTS.md on session start.",
|
|
}
|
|
|
|
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)
|
|
}
|