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

Function subsystem

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

Source from the content-addressed store, hash-verified

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) => `
920export interface ${name}Options {
921 retries: number;
922}
923
924export 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'),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected