MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / exec

Method exec

ai/ai.ts:2370–2383  ·  view source on GitHub ↗
(
      idx: number,
      curInput: T,
      curToken?: AbortToken,
    )

Source from the content-addressed store, hash-verified

2368 ): Promise<any> {
2369 const exec = async (
2370 idx: number,
2371 curInput: T,
2372 curToken?: AbortToken,
2373 ): Promise<any> => {
2374 if (idx >= this.middlewares.length)
2375 return await finalHandler(curInput, curToken);
2376 const mw = this.middlewares[idx];
2377 return await mw.process(
2378 curInput,
2379 (nextInput, nextToken) => exec(idx + 1, nextInput, nextToken),
2380 curToken,
2381 );
2382 };
2383 return await exec(0, input, token);
2384 }
2385}
2386

Callers 15

searchByCodeFunction · 0.80
initMethod · 0.80
extractIPFromTextFunction · 0.80
extractDNSDataFunction · 0.80
lottery.tsFile · 0.80
lotteryFunction · 0.80
initDatabaseMethod · 0.80
handleSetMethod · 0.80
initMethod · 0.80
initDatabaseFunction · 0.80
ensureInitMethod · 0.80
speedlink.tsFile · 0.80

Calls 2

execFunction · 0.85
processMethod · 0.65

Tested by

no test coverage detected