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

Function agentSoulHistoryBundle

internal/cli/authored_context.go:948–991  ·  view source on GitHub ↗
(record AgentSoulHistoryRecord)

Source from the content-addressed store, hash-verified

946}
947
948func agentSoulHistoryBundle(record AgentSoulHistoryRecord) outputBundle {
949 return listBundle(
950 record,
951 record.Revisions,
952 "Soul Revisions",
953 []string{
954 "ID",
955 authoredContextAgentValue,
956 authoredContextActionValue,
957 authoredContextPreviousDigestValue,
958 authoredContextNewDigestValue,
959 authoredContextCreatedValue,
960 },
961 "agent_soul_revisions",
962 []string{
963 "id",
964 agentAgentKey,
965 authoredContextActionKey,
966 authoredContextPreviousDigestKey,
967 authoredContextNewDigestKey,
968 automationCreatedAtKey,
969 },
970 func(item AgentSoulRevisionRecord) []string {
971 return []string{
972 stringOrDash(item.ID),
973 stringOrDash(item.AgentName),
974 stringOrDash(string(item.Action)),
975 stringOrDash(item.PreviousDigest),
976 stringOrDash(item.NewDigest),
977 stringOrDash(formatTime(item.CreatedAt)),
978 }
979 },
980 func(item AgentSoulRevisionRecord) []string {
981 return []string{
982 item.ID,
983 item.AgentName,
984 string(item.Action),
985 item.PreviousDigest,
986 item.NewDigest,
987 formatTime(item.CreatedAt),
988 }
989 },
990 )
991}
992
993func agentHeartbeatBundle(record *AgentHeartbeatRecord) outputBundle {
994 if record == nil {

Callers 1

Calls 3

listBundleFunction · 0.85
stringOrDashFunction · 0.85
formatTimeFunction · 0.85

Tested by

no test coverage detected