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

Method Normalize

internal/task/wake.go:103–112  ·  view source on GitHub ↗

Normalize returns a trimmed wake event with bounded redacted summary text.

()

Source from the content-addressed store, hash-verified

101
102// Normalize returns a trimmed wake event with bounded redacted summary text.
103func (e WakeEvent) Normalize() WakeEvent {
104 return WakeEvent{
105 WakeEventID: strings.TrimSpace(e.WakeEventID),
106 WorkspaceID: strings.TrimSpace(e.WorkspaceID),
107 TaskID: strings.TrimSpace(e.TaskID),
108 RunID: strings.TrimSpace(e.RunID),
109 Reason: e.Reason.Normalize(),
110 Summary: boundWakeSummary(e.Summary),
111 }
112}
113
114// Validate reports whether the wake event has the minimum delivery identity.
115func (e WakeEvent) Validate() error {

Callers 6

ValidateMethod · 0.95
dispatchTerminalWakeMethod · 0.45
dispatchWakeCreatorMethod · 0.45
wakePayloadFunction · 0.45
logWakeDispatchErrorMethod · 0.45
terminalWakeSummaryFunction · 0.45

Calls 1

boundWakeSummaryFunction · 0.85

Tested by

no test coverage detected