MCPcopy Create free account
hub / github.com/compozy/agh / nativeFilterNetworkChannelPayloads

Function nativeFilterNetworkChannelPayloads

internal/daemon/native_tools.go:4837–4851  ·  view source on GitHub ↗
(
	bound *nativeBoundSessionScope,
	payload []contract.NetworkChannelPayload,
)

Source from the content-addressed store, hash-verified

4835}
4836
4837func nativeFilterNetworkChannelPayloads(
4838 bound *nativeBoundSessionScope,
4839 payload []contract.NetworkChannelPayload,
4840) []contract.NetworkChannelPayload {
4841 if bound == nil || len(bound.networkChannels) == 0 {
4842 return payload
4843 }
4844 filtered := make([]contract.NetworkChannelPayload, 0, len(payload))
4845 for _, channel := range payload {
4846 if nativeBoundSessionAllowsChannel(bound, channel.Channel) {
4847 filtered = append(filtered, channel)
4848 }
4849 }
4850 return filtered
4851}
4852
4853func nativeFilterNetworkEnvelopes(
4854 bound *nativeBoundSessionScope,

Callers 1

networkChannelsMethod · 0.85

Calls 2

appendFunction · 0.85

Tested by

no test coverage detected