MCPcopy Create free account
hub / github.com/cli/cli / subscriptionLimitHit

Function subscriptionLimitHit

evals/src/suites/events/limit.ts:5–11  ·  view source on GitHub ↗
(events: unknown[])

Source from the content-addressed store, hash-verified

3 * maximum. That is a property of the shared account, not the agent, so the trial is not gradable.
4 */
5export 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}

Callers 2

harness.test.tsFile · 0.85
validateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected