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

Function renderJSONPreview

internal/cli/agent_kernel.go:544–550  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

542}
543
544func renderJSONPreview(value any) (string, error) {
545 content, err := json.MarshalIndent(value, "", " ")
546 if err != nil {
547 return "", fmt.Errorf("cli: render JSON preview: %w", err)
548 }
549 return string(content), nil
550}
551
552func formatAgentTime(value time.Time) string {
553 if value.IsZero() {

Callers 12

agentContextBundleFunction · 0.85
schedulerStatusBundleFunction · 0.85
schedulerDrainBundleFunction · 0.85
schedulerBacklogBundleFunction · 0.85
agentSpawnBundleFunction · 0.85
agentTaskNextBundleFunction · 0.85
agentTaskLeaseBundleFunction · 0.85
taskRunReviewBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected