MCPcopy Create free account
hub / github.com/HKUDS/AgentSpace / readClient

Function readClient

apps/cli/src/commands/integrations/feishu.ts:3229–3235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3227}): FeishuApiClient {
3228 let clientPromise: Promise<FeishuApiClient> | undefined;
3229 const readClient = () => {
3230 if (!clientPromise) {
3231 input.onInitialize?.();
3232 clientPromise = createFeishuCliDataOperationReadClient(input);
3233 }
3234 return clientPromise;
3235 };
3236 return {
3237 async request<T = unknown>(request: FeishuApiRequest) {
3238 const client = await readClient();

Callers 2

requestFunction · 0.85
uploadFunction · 0.85

Tested by

no test coverage detected