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>
48 lines
1.1 KiB
Go
48 lines
1.1 KiB
Go
package setup
|
|
|
|
import "github.com/steveyegge/beads/internal/templates/agents"
|
|
|
|
var codexIntegration = agentsIntegration{
|
|
name: "Codex CLI",
|
|
setupCommand: "bd setup codex",
|
|
readHint: "Codex reads AGENTS.md at the start of each run or session. Restart Codex if it is already running.",
|
|
profile: agents.ProfileFull,
|
|
}
|
|
|
|
var codexEnvProvider = defaultAgentsEnv
|
|
|
|
// InstallCodex installs Codex integration.
|
|
func InstallCodex() {
|
|
env := codexEnvProvider()
|
|
if err := installCodex(env); err != nil {
|
|
setupExit(1)
|
|
}
|
|
}
|
|
|
|
func installCodex(env agentsEnv) error {
|
|
return installAgents(env, codexIntegration)
|
|
}
|
|
|
|
// CheckCodex checks if Codex integration is installed.
|
|
func CheckCodex() {
|
|
env := codexEnvProvider()
|
|
if err := checkCodex(env); err != nil {
|
|
setupExit(1)
|
|
}
|
|
}
|
|
|
|
func checkCodex(env agentsEnv) error {
|
|
return checkAgents(env, codexIntegration)
|
|
}
|
|
|
|
// RemoveCodex removes Codex integration.
|
|
func RemoveCodex() {
|
|
env := codexEnvProvider()
|
|
if err := removeCodex(env); err != nil {
|
|
setupExit(1)
|
|
}
|
|
}
|
|
|
|
func removeCodex(env agentsEnv) error {
|
|
return removeAgents(env, codexIntegration)
|
|
}
|