(record AgentSoulHistoryRecord)
| 946 | } |
| 947 | |
| 948 | func 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 | |
| 993 | func agentHeartbeatBundle(record *AgentHeartbeatRecord) outputBundle { |
| 994 | if record == nil { |
no test coverage detected