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

Function taskBridgeNotificationRows

internal/cli/task.go:3385–3413  ·  view source on GitHub ↗
(subscription *TaskBridgeNotificationSubscriptionRecord)

Source from the content-addressed store, hash-verified

3383}
3384
3385func taskBridgeNotificationRows(subscription *TaskBridgeNotificationSubscriptionRecord) []keyValue {
3386 return []keyValue{
3387 {Label: taskSubscriptionValue, Value: stringOrDash(subscription.SubscriptionID)},
3388 {Label: taskTaskValue, Value: stringOrDash(subscription.TaskID)},
3389 {Label: taskBridgeValue, Value: stringOrDash(subscription.BridgeInstanceID)},
3390 {Label: taskScopeValue, Value: stringOrDash(string(subscription.Scope))},
3391 {Label: taskWorkspaceValue, Value: stringOrDash(subscription.WorkspaceID)},
3392 {Label: taskPeerValue, Value: stringOrDash(subscription.PeerID)},
3393 {Label: taskThreadValue, Value: stringOrDash(subscription.ThreadID)},
3394 {Label: taskGroupValue, Value: stringOrDash(subscription.GroupID)},
3395 {Label: taskModeValue, Value: stringOrDash(string(subscription.DeliveryMode))},
3396 {Label: "Cursor Consumer", Value: stringOrDash(subscription.Cursor.ConsumerID)},
3397 {Label: "Cursor Stream", Value: stringOrDash(subscription.Cursor.StreamName)},
3398 {Label: "Cursor Subject", Value: stringOrDash(subscription.Cursor.SubjectID)},
3399 {Label: "Cursor Last Sequence", Value: int64OrDash(subscription.Cursor.LastSequence)},
3400 {Label: "Cursor Last Delivery", Value: stringOrDash(subscription.Cursor.LastDeliveryID)},
3401 {
3402 Label: "Cursor Last Delivered",
3403 Value: stringOrDash(formatTimePtr(subscription.Cursor.LastDeliveredAt)),
3404 },
3405 {Label: "Cursor Last Error", Value: stringOrDash(subscription.Cursor.LastError)},
3406 {
3407 Label: "Cursor Updated",
3408 Value: stringOrDash(formatTimePtr(subscription.Cursor.UpdatedAt)),
3409 },
3410 {Label: taskCreatedByValue, Value: stringOrDash(formatTaskActor(subscription.CreatedBy))},
3411 {Label: taskUpdatedValue, Value: stringOrDash(formatTime(subscription.UpdatedAt))},
3412 }
3413}
3414
3415func taskBridgeNotificationSubscriptionDeleteBundle(
3416 taskID string,

Calls 5

stringOrDashFunction · 0.85
int64OrDashFunction · 0.85
formatTimePtrFunction · 0.85
formatTaskActorFunction · 0.85
formatTimeFunction · 0.85

Tested by

no test coverage detected