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

Function networkSubscriptionsBundle

internal/cli/network.go:1315–1342  ·  view source on GitHub ↗
(subscriptions []NetworkSubscriptionRecord)

Source from the content-addressed store, hash-verified

1313}
1314
1315func networkSubscriptionsBundle(subscriptions []NetworkSubscriptionRecord) outputBundle {
1316 return listBundle(
1317 contract.NetworkSubscriptionsResponse{Subscriptions: subscriptions},
1318 subscriptions,
1319 "Network Subscriptions",
1320 []string{networkChannelValue, taskThreadValue, taskPeerValue, networkModeValue, "Keywords"},
1321 "network_subscriptions",
1322 []string{networkChannelKey, networkThreadIDKey, networkPeerIDKey, networkModeKey, "keyword_filters"},
1323 func(subscription NetworkSubscriptionRecord) []string {
1324 return []string{
1325 stringOrDash(subscription.Channel),
1326 stringOrDash(subscription.ThreadID),
1327 stringOrDash(subscription.PeerID),
1328 stringOrDash(subscription.Mode),
1329 stringOrDash(strings.Join(subscription.KeywordFilters, ", ")),
1330 }
1331 },
1332 func(subscription NetworkSubscriptionRecord) []string {
1333 return []string{
1334 subscription.Channel,
1335 subscription.ThreadID,
1336 subscription.PeerID,
1337 subscription.Mode,
1338 strings.Join(subscription.KeywordFilters, ","),
1339 }
1340 },
1341 )
1342}
1343
1344func networkSubscriptionBundle(subscription NetworkSubscriptionRecord) outputBundle {
1345 return outputBundle{

Callers 1

Calls 2

listBundleFunction · 0.85
stringOrDashFunction · 0.85

Tested by

no test coverage detected