( to: string, type: string | undefined, payload: unknown, priority: 'steer' | 'normal', )
| 121 | } |
| 122 | |
| 123 | function normalizeThreadSyncMessageType( |
| 124 | to: string, |
| 125 | type: string | undefined, |
| 126 | payload: unknown, |
| 127 | priority: 'steer' | 'normal', |
| 128 | ): string { |
| 129 | const normalizedType = typeof type === 'string' && type.trim() ? type.trim() : 'message'; |
| 130 | if (normalizedType !== 'message') return normalizedType; |
| 131 | if (!isHumanConversationTarget(to)) return normalizedType; |
| 132 | return inferHumanMessageType(payload, priority); |
| 133 | } |
| 134 | |
| 135 | function postStorySyncArtifact(artifact: { |
| 136 | id?: string; |
no test coverage detected