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

Function taskExecutionProfileBundle

internal/cli/task.go:3277–3299  ·  view source on GitHub ↗
(profile *TaskExecutionProfileRecord)

Source from the content-addressed store, hash-verified

3275}
3276
3277func taskExecutionProfileBundle(profile *TaskExecutionProfileRecord) outputBundle {
3278 return outputBundle{
3279 jsonValue: *profile,
3280 human: func() (string, error) {
3281 return renderHumanSection("Task Execution Profile", []keyValue{
3282 {Label: taskTaskIDValue, Value: stringOrDash(profile.TaskID)},
3283 {Label: "Coordinator", Value: stringOrDash(string(profile.Coordinator.Mode))},
3284 {Label: "Worker", Value: stringOrDash(string(profile.Worker.Mode))},
3285 {Label: "Worker Agent", Value: stringOrDash(profile.Worker.AgentName)},
3286 {Label: "Worker Provider", Value: stringOrDash(profile.Worker.Provider)},
3287 {Label: "Worker Model", Value: stringOrDash(profile.Worker.Model)},
3288 {Label: "Review Agent", Value: stringOrDash(profile.Review.AgentName)},
3289 {Label: taskSandboxValue, Value: stringOrDash(string(profile.Sandbox.Mode))},
3290 {Label: "Sandbox Ref", Value: stringOrDash(profile.Sandbox.SandboxRef)},
3291 {Label: "Runtime", Value: stringOrDash(string(profile.Runtime.Mode))},
3292 {Label: taskUpdatedValue, Value: stringOrDash(formatTime(profile.UpdatedAt))},
3293 }), nil
3294 },
3295 toon: func() (string, error) {
3296 return renderJSONPreview(profile)
3297 },
3298 }
3299}
3300
3301func taskBridgeNotificationSubscriptionBundle(
3302 subscription *TaskBridgeNotificationSubscriptionRecord,

Callers 2

Calls 4

renderHumanSectionFunction · 0.85
stringOrDashFunction · 0.85
formatTimeFunction · 0.85
renderJSONPreviewFunction · 0.85

Tested by

no test coverage detected