Files
Djordje Lukic 8d24d42210 refactor(runtime)!: extract remote execution
HTTP/SSE transport, reconnect recovery, and remote OAuth should not be dependencies of local execution. Move their implementations and tests into runtime/remote and migrate remote callers directly, without compatibility re-exports.

Keep the existing Runtime interface, Event types, constructors, and event sinks in runtime. The dependency is intentionally one-way: remote imports runtime, while local execution never imports remote. A regression test enforces this boundary; extracting shared types can be considered separately.
2026-10-26 12:40:23 +01:00

14 lines
271 B
Go

package remote
const defaultEventChannelCapacity = 128
// A tool response may exceed bufio.Scanner's default 64 KiB line limit.
const maxSSELineBytes = 16 * 1024 * 1024
func firstElicitationID(ids []string) string {
if len(ids) == 0 {
return ""
}
return ids[0]
}