MCPcopy
hub / github.com/inkeep/open-knowledge / buildExtension

Function buildExtension

packages/server/src/api-config.test.ts:51–60  ·  view source on GitHub ↗
(projectDir: string | undefined)

Source from the content-addressed store, hash-verified

49}
50
51function buildExtension(projectDir: string | undefined) {
52 return createApiExtension({
53 hocuspocus: {} as unknown as Parameters<typeof createApiExtension>[0]['hocuspocus'],
54 sessionManager: {} as unknown as Parameters<typeof createApiExtension>[0]['sessionManager'],
55 contentDir: projectDir ?? '/tmp/ok-no-project',
56 serverInstanceId: 'test-server',
57 getFileIndex: () => new Map(),
58 projectDir,
59 });
60}
61
62async function call(
63 ext: ReturnType<typeof buildExtension>,

Callers 1

api-config.test.tsFile · 0.85

Calls 1

createApiExtensionFunction · 0.90

Tested by

no test coverage detected