(command: Command.Command<any, any>)
| 1873 | |
| 1874 | // The scheduling key holds the group fields' real encoding, so the log re-encodes them redacted. |
| 1875 | const encodeGroup = (command: Command.Command<any, any>): string | null => { |
| 1876 | if (command.groupKey === undefined) return null |
| 1877 | const source = (command as { readonly "~group"?: Command.GroupSource | undefined })[ |
| 1878 | "~group" |
| 1879 | ] |
| 1880 | return source === undefined |
| 1881 | ? JSON.stringify({ "~redacted": true }) |
| 1882 | : canonical(encodeArgs(source.schema, source.picked)) |
| 1883 | } |
| 1884 | |
| 1885 | /** |
| 1886 | * Encodes a `$.send` as the provider's name and the message. The |
no test coverage detected