- Create LinkResolutionService with workspace-scoped link resolution - Resolve links by: exact title match, slug match, fuzzy title match - Handle ambiguous matches (return null if multiple matches) - Support batch link resolution with deduplication - Comprehensive test suite with 19 tests, all passing - 100% coverage of public methods - Integrate service with KnowledgeModule Closes #60 (KNOW-008)
15 lines
574 B
TypeScript
15 lines
574 B
TypeScript
import { Module } from "@nestjs/common";
|
|
import { PrismaModule } from "../prisma/prisma.module";
|
|
import { AuthModule } from "../auth/auth.module";
|
|
import { KnowledgeService } from "./knowledge.service";
|
|
import { KnowledgeController } from "./knowledge.controller";
|
|
import { LinkResolutionService } from "./services/link-resolution.service";
|
|
|
|
@Module({
|
|
imports: [PrismaModule, AuthModule],
|
|
controllers: [KnowledgeController],
|
|
providers: [KnowledgeService, LinkResolutionService],
|
|
exports: [KnowledgeService, LinkResolutionService],
|
|
})
|
|
export class KnowledgeModule {}
|