MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / subsystem

Function subsystem

__tests__/explore-allocation-e2e.test.ts:926–942  ·  view source on GitHub ↗
(name: string, verb: string)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected