(events: unknown[])
| 3 | * maximum. That is a property of the shared account, not the agent, so the trial is not gradable. |
| 4 | */ |
| 5 | export function subscriptionLimitHit(events: unknown[]): boolean { |
| 6 | return events.some(value => { |
| 7 | if (typeof value !== "object" || value === null) return false; |
| 8 | const type = (value as Record<string, unknown>).type; |
| 9 | return type === "tool.execution_complete" && JSON.stringify(value).includes("Subscription limit exceeded"); |
| 10 | }); |
| 11 | } |
no outgoing calls
no test coverage detected