(value: unknown, hiddenPaths: string[])
| 163 | } |
| 164 | |
| 165 | export function contamination(value: unknown, hiddenPaths: string[]): string | undefined { |
| 166 | const text = JSON.stringify(value); |
| 167 | return hiddenPaths.find(path => text.includes(path) || text.includes(path.replaceAll("/", "\\/"))); |
| 168 | } |
| 169 | |
| 170 | /** Returns enabled skills the runtime offered the agent beyond those the trial intends. */ |
| 171 | export function unexpectedSkills(events: unknown[], expected: string[]): string[] { |
no test coverage detected