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

Function logsBundle

internal/cli/logs.go:198–253  ·  view source on GitHub ↗
(events []LogEventRecord)

Source from the content-addressed store, hash-verified

196}
197
198func logsBundle(events []LogEventRecord) outputBundle {
199 return listBundle(
200 events,
201 events,
202 "Logs",
203 []string{
204 "ID",
205 agentKernelSessionValue,
206 sessionTypeValue,
207 logsAgentValue,
208 installProviderValue,
209 "Component",
210 "Outcome",
211 authoredContextSummaryValue,
212 "Timestamp",
213 },
214 "logs",
215 []string{
216 "id",
217 automationSessionIDKey,
218 logsTypeKey,
219 logsAgentNameKey,
220 cliProviderKey,
221 "component",
222 cliOutcomeKey,
223 memorySummaryKey,
224 networkTimestampKey,
225 },
226 func(event LogEventRecord) []string {
227 return []string{
228 stringOrDash(event.ID),
229 stringOrDash(event.SessionID),
230 stringOrDash(event.Type),
231 stringOrDash(event.AgentName),
232 stringOrDash(event.Provider),
233 stringOrDash(event.Component),
234 stringOrDash(event.Outcome),
235 stringOrDash(event.Summary),
236 stringOrDash(formatTime(event.Timestamp)),
237 }
238 },
239 func(event LogEventRecord) []string {
240 return []string{
241 event.ID,
242 event.SessionID,
243 event.Type,
244 event.AgentName,
245 event.Provider,
246 event.Component,
247 event.Outcome,
248 event.Summary,
249 formatTime(event.Timestamp),
250 }
251 },
252 )
253}

Callers 2

writeLogsOutputFunction · 0.85

Calls 3

listBundleFunction · 0.85
stringOrDashFunction · 0.85
formatTimeFunction · 0.85

Tested by 1