Move the four providers onto managed_runtime.go and shell_command.go; keep the Auggie wrappers, Cline metadata wrappers, and the Copilot and Droid precondition handling provider-local. Claude-Session: https://claude.ai/code/session_01Agoc9bRVE9KL7mmWtey9Vq
16 lines
420 B
Go
16 lines
420 B
Go
package plugins
|
|
|
|
import "path/filepath"
|
|
|
|
func clineRuntimeFilesExist(contract *clineRuntimeContract) (bool, error) {
|
|
if !sameManagedPath(contract.guardPath, filepath.Join(contract.agentDirectory, clineGuardScript)) {
|
|
return false, nil
|
|
}
|
|
return managedRuntimeContractExists(
|
|
managedRuntimeContract{contract.agentID, contract.guardPath, contract.auditPath},
|
|
clineAgentKey,
|
|
"Cline",
|
|
clineExpectedScripts,
|
|
)
|
|
}
|