mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
724c88c201
A mechanical prettier --write over server/src, server/tests, server/scripts and shared/src with the workspaces' .prettierrc; nothing but layout and import order changes, and every file keeps the same set of imports. shared is formatted throughout and its format baseline is empty. The server baseline keeps the 35 files that Prettier would grow past their lint:size limit (they need a split first, which is not a formatting change), and the generated entity files stay as their generator writes them.
31 lines
1.5 KiB
TypeScript
31 lines
1.5 KiB
TypeScript
import { Addons } from '../../db/entities/Addons.entity';
|
|
import { AddonsModule } from '../addons/addons.module';
|
|
import { AppConfigModule } from '../app-config/app-config.module';
|
|
import { SettingsModule } from '../settings/settings.module';
|
|
import { LlmCapabilitiesController } from './llm-capabilities.controller';
|
|
import { LlmConfigResolver } from './llm-config.resolver';
|
|
import { LlmLocalController } from './llm-local.controller';
|
|
import { LlmLocalService } from './llm-local.service';
|
|
import { LlmParseService } from './llm-parse.service';
|
|
import { MikroOrmModule } from '@mikro-orm/nestjs';
|
|
import { Module } from '@nestjs/common';
|
|
|
|
/**
|
|
* Provides the LLM booking-import fallback; imported by BookingImportModule.
|
|
* Exports LlmConfigResolver for the plugin host surface (HostSurfaceRpc).
|
|
*
|
|
* MikroOrmModule.forFeature([Addons]): Plan 4 Task 1 —
|
|
* `LlmConfigResolver.readInstanceConfig`'s own `AddonsRepository`
|
|
* `@InjectRepository` param. `AddonsModule` already registers `Addons` for
|
|
* its own `AddonsService`, but does not export `MikroOrmModule` from its own
|
|
* `exports` list, so this module needs its own `forFeature` registration —
|
|
* the same leaf-module pattern `public-api.module.ts` documents.
|
|
*/
|
|
@Module({
|
|
imports: [AppConfigModule, SettingsModule, AddonsModule, MikroOrmModule.forFeature([Addons])],
|
|
controllers: [LlmLocalController, LlmCapabilitiesController],
|
|
providers: [LlmParseService, LlmLocalService, LlmConfigResolver],
|
|
exports: [LlmParseService, LlmConfigResolver],
|
|
})
|
|
export class LlmParseModule {}
|