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

Function networkThreadPromotionBundle

internal/cli/network.go:1478–1506  ·  view source on GitHub ↗
(promoted *PromoteNetworkThreadTaskRecord)

Source from the content-addressed store, hash-verified

1476}
1477
1478func networkThreadPromotionBundle(promoted *PromoteNetworkThreadTaskRecord) outputBundle {
1479 return outputBundle{
1480 jsonValue: promoted,
1481 human: func() (string, error) {
1482 return renderHumanBlocks(
1483 renderHumanSection("Promoted Task", []keyValue{
1484 {Label: "Task ID", Value: stringOrDash(promoted.Task.ID)},
1485 {Label: taskTitleValue, Value: stringOrDash(promoted.Task.Title)},
1486 {Label: networkChannelValue, Value: stringOrDash(promoted.Origin.Channel)},
1487 {Label: taskThreadValue, Value: stringOrDash(promoted.Origin.ThreadID)},
1488 {Label: networkMessageValue, Value: stringOrDash(promoted.Origin.OriginMessageID)},
1489 }),
1490 ), nil
1491 },
1492 toon: func() (string, error) {
1493 return renderToonObject(
1494 "network_thread_promotion",
1495 []string{taskTaskIDKey, networkTitleKey, networkChannelKey, networkThreadIDKey, networkMessageIDKey},
1496 []string{
1497 promoted.Task.ID,
1498 promoted.Task.Title,
1499 promoted.Origin.Channel,
1500 promoted.Origin.ThreadID,
1501 promoted.Origin.OriginMessageID,
1502 },
1503 ), nil
1504 },
1505 }
1506}
1507
1508func networkThreadMessagesBundle(messages []NetworkConversationMessageRecord) outputBundle {
1509 return networkMessagesBundle(contract.NetworkThreadMessagesResponse{Messages: messages}, messages)

Callers 2

newTaskPromoteCommandFunction · 0.85

Calls 4

renderHumanBlocksFunction · 0.85
renderHumanSectionFunction · 0.85
stringOrDashFunction · 0.85
renderToonObjectFunction · 0.85

Tested by

no test coverage detected