mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 10:02:15 +00:00
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.
14 lines
271 B
Go
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]
|
|
}
|