MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / readStdin

Function readStdin

apps/web/server/create-codex-thread.ts:24–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24function readStdin(): Promise<string> {
25 return new Promise((resolve, reject) => {
26 let data = '';
27 stdin.setEncoding('utf8');
28 stdin.on('data', (chunk) => {
29 data += chunk;
30 });
31 stdin.on('end', () => resolve(data));
32 stdin.on('error', reject);
33 });
34}
35
36function resolveNativeProviderProfileId(
37 runtime: ReturnType<typeof createCodexBridgeRuntime>,

Callers 1

mainFunction · 0.70

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected