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

Function agentMeBundle

internal/cli/agent_kernel.go:417–452  ·  view source on GitHub ↗
(record AgentMeRecord)

Source from the content-addressed store, hash-verified

415}
416
417func agentMeBundle(record AgentMeRecord) outputBundle {
418 return outputBundle{
419 jsonValue: record,
420 human: func() (string, error) {
421 return renderHumanBlocks(
422 renderHumanSection(agentKernelAgentValue, []keyValue{
423 {Label: agentKernelSessionValue, Value: record.Self.SessionID},
424 {Label: agentKernelAgentValue, Value: record.Self.AgentName},
425 {Label: agentKernelProviderValue, Value: record.Self.Provider},
426 {Label: agentKernelModelValue, Value: stringOrDash(record.Self.Model)},
427 }),
428 renderHumanSection("Workspace", []keyValue{
429 {Label: "ID", Value: stringOrDash(record.Workspace.ID)},
430 {Label: agentKernelRootValue, Value: stringOrDash(record.Workspace.RootDir)},
431 }),
432 ), nil
433 },
434 toon: func() (string, error) {
435 return renderToonObject("agent_me", []string{
436 automationSessionIDKey,
437 agentKernelAgentNameKey,
438 cliProviderKey,
439 agentKernelModelKey,
440 "workspace_id",
441 "workspace_root",
442 }, []string{
443 record.Self.SessionID,
444 record.Self.AgentName,
445 record.Self.Provider,
446 record.Self.Model,
447 record.Workspace.ID,
448 record.Workspace.RootDir,
449 }), nil
450 },
451 }
452}
453
454func agentContextBundle(record *AgentContextRecord) outputBundle {
455 return outputBundle{

Callers 1

newMeCommandFunction · 0.85

Calls 4

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

Tested by

no test coverage detected