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

Function networkThreadBundle

internal/cli/network.go:1436–1476  ·  view source on GitHub ↗
(thread NetworkThreadRecord)

Source from the content-addressed store, hash-verified

1434}
1435
1436func networkThreadBundle(thread NetworkThreadRecord) outputBundle {
1437 return outputBundle{
1438 jsonValue: contract.NetworkThreadResponse{Thread: thread},
1439 human: func() (string, error) {
1440 return renderHumanSection("Network Thread", networkThreadKeyValues(thread)), nil
1441 },
1442 toon: func() (string, error) {
1443 return renderToonObject(
1444 "network_thread",
1445 []string{
1446 networkChannelKey,
1447 networkThreadIDKey,
1448 "root_message_id",
1449 networkTitleKey,
1450 networkOpenedByPeerIDKey,
1451 "opened_session_id",
1452 networkOpenedAtKey,
1453 networkLastActivityAtKey,
1454 networkMessageCountKey,
1455 "participant_count",
1456 networkOpenWorkCountKey,
1457 networkLastMessagePreviewKey,
1458 },
1459 []string{
1460 thread.Channel,
1461 thread.ThreadID,
1462 thread.RootMessageID,
1463 thread.Title,
1464 thread.OpenedByPeerID,
1465 thread.OpenedSessionID,
1466 formatTimePtr(thread.OpenedAt),
1467 formatTimePtr(thread.LastActivityAt),
1468 strconv.Itoa(thread.MessageCount),
1469 strconv.Itoa(thread.ParticipantCount),
1470 strconv.Itoa(thread.OpenWorkCount),
1471 thread.LastMessagePreview,
1472 },
1473 ), nil
1474 },
1475 }
1476}
1477
1478func networkThreadPromotionBundle(promoted *PromoteNetworkThreadTaskRecord) outputBundle {
1479 return outputBundle{

Callers 1

Calls 4

renderHumanSectionFunction · 0.85
networkThreadKeyValuesFunction · 0.85
renderToonObjectFunction · 0.85
formatTimePtrFunction · 0.85

Tested by

no test coverage detected