Move Kimi, Grok, and Qwen onto managed_runtime.go and shell_command.go; share the encoded and shell command builders and the quoted Windows legacy parser with Droid; split managed_changes.go; dedupe Letta's hook entry filtering and stop swallowing settings read errors. Claude-Session: https://claude.ai/code/session_01Agoc9bRVE9KL7mmWtey9Vq
14 lines
323 B
Go
14 lines
323 B
Go
package plugins
|
|
|
|
func kimiRuntimeFilesExist(contracts []kimiRuntimeContract) (bool, error) {
|
|
for _, contract := range contracts {
|
|
exists, err := managedRuntimeContractExists(
|
|
contract.managedRuntimeContract, kimiAgentKey, "Kimi", nil,
|
|
)
|
|
if err != nil || exists {
|
|
return exists, err
|
|
}
|
|
}
|
|
return false, nil
|
|
}
|