(name: string, verb: string)
| 917 | // costs a round-trip: the agent's fallback for an under-served survey is |
| 918 | // Grep, not a second explore. |
| 919 | const subsystem = (name: string, verb: string) => ` |
| 920 | export interface ${name}Options { |
| 921 | retries: number; |
| 922 | } |
| 923 | |
| 924 | export class ${name}Service { |
| 925 | constructor(private readonly options: ${name}Options) {} |
| 926 | |
| 927 | public ${verb}Request(payload: string): string { |
| 928 | return this.describe${name}() + ':' + payload; |
| 929 | } |
| 930 | |
| 931 | public describe${name}(): string { |
| 932 | return '${name} with ' + this.options.retries + ' retries'; |
| 933 | } |
| 934 | } |
| 935 | `; |
| 936 | project = await buildProject('codegraph-alloc-diffuse-', { |
| 937 | 'src/services/auth.ts': subsystem('Auth', 'authorize'), |
| 938 | 'src/services/billing.ts': subsystem('Billing', 'charge'), |
no outgoing calls
no test coverage detected