mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
feat: add isolated diff ingestion v1 core
This commit is contained in:
parent
1013bb65df
commit
cae5c4b948
1 changed files with 3 additions and 3 deletions
|
|
@ -95,7 +95,7 @@ function makeWikiService(root: string) {
|
|||
}
|
||||
|
||||
function makeDeps(runtime: Awaited<ReturnType<typeof makeRealGitRuntime>>) {
|
||||
const adapter = {
|
||||
const adapter: any = {
|
||||
source: 'metabase',
|
||||
skillNames: [],
|
||||
detect: vi.fn().mockResolvedValue(true),
|
||||
|
|
@ -149,12 +149,12 @@ function makeDeps(runtime: Awaited<ReturnType<typeof makeRealGitRuntime>>) {
|
|||
buildSkillsPrompt: vi.fn().mockReturnValue(''),
|
||||
stripFrontmatter: vi.fn((body) => body),
|
||||
} as never,
|
||||
promptService: { loadPrompt: vi.fn().mockResolvedValue('base') },
|
||||
promptService: { loadPrompt: vi.fn().mockResolvedValue('base') } as never,
|
||||
wikiService: { ...wikiService, forWorktree: vi.fn((workdir: string) => makeWikiService(workdir)) } as never,
|
||||
knowledgeIndex: { listPagesForUser: vi.fn().mockResolvedValue([]) },
|
||||
knowledgeSlRefs: { syncFromWiki: vi.fn() },
|
||||
semanticLayerService,
|
||||
slSearchService: { indexSources: vi.fn() },
|
||||
slSearchService: { indexSources: vi.fn() } as never,
|
||||
slSourcesRepository: {} as never,
|
||||
slValidator: { validateSingleSource: vi.fn().mockResolvedValue({ errors: [], warnings: [] }) },
|
||||
connections: { listEnabledConnections: vi.fn().mockResolvedValue([]), getConnectionById: vi.fn() } as never,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue