MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / writeProviderClientShim

Function writeProviderClientShim

packages/node-sdk/scripts/build-dts.mjs:57–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57async function writeProviderClientShim() {
58 await mkdir(dtsRoot, { recursive: true });
59 await writeFile(
60 providerClientShimPath,
61 [
62 'export interface Anthropic {}',
63 'export interface GoogleGenAI {}',
64 'export interface OpenAI {}',
65 'export namespace OpenAI {',
66 ' export namespace Chat {',
67 ' export type ChatCompletion = unknown;',
68 ' export type ChatCompletionChunk = unknown;',
69 ' export type ChatCompletionCreateParamsNonStreaming = unknown;',
70 ' }',
71 '}',
72 '',
73 ].join('\n'),
74 );
75}
76
77async function rewriteWorkspaceSpecifiers() {
78 const files = await findDtsFiles(dtsRoot);

Callers 1

build-dts.mjsFile · 0.85

Calls 2

mkdirFunction · 0.50
writeFileFunction · 0.50

Tested by

no test coverage detected