Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

570 B
Raw Blame
import CodyncKit
import Foundation

extension BotStore {
    /// A finished call's line, with the rest of its transcript; the chat then shows the call's messages behind it.
    func endCall(_ botId: String, seconds: Int, call: String, lines: [CallLine]) async {
        do {
            let line = try await withLink(replay: true) {
                try await $0.endCall(botId: botId, call: call, seconds: seconds, lines: lines)
            }
            if let line { upsert(line) }
        } catch {
            lastError = error.localizedDescription
        }
    }
}