chore(src): 🔧 Update TypeScript files in src directory (30 files)
This commit is contained in:
parent
6bf9f2a5c1
commit
b07c0c4eea
30 changed files with 120 additions and 267 deletions
|
|
@ -1,18 +1,13 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { Injectable, OnModuleInit, OnModuleDestroy, Logger } from '@nestjs/common';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
import { Redis } from 'ioredis';
|
||||
|
||||
// Build deployment registry for Redis configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { HttpService } from '@nestjs/axios';
|
||||
import { Injectable, Logger, OnModuleInit } from '@nestjs/common';
|
||||
|
|
@ -8,13 +5,11 @@ import { ConfigService } from '@nestjs/config';
|
|||
import { AxiosError } from 'axios';
|
||||
import { firstValueFrom } from 'rxjs';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,19 +1,14 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { MinioService } from '@lilith/minio/nestjs';
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { Injectable, Logger, NotFoundException, BadRequestException } from '@nestjs/common';
|
||||
import { InjectRepository } from '@nestjs/typeorm';
|
||||
import { Repository } from 'typeorm';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
import { EditingSessionEntity } from './entities';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
import { randomBytes } from 'crypto';
|
||||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import {
|
||||
DomainEventsEmitter,
|
||||
|
|
@ -20,13 +18,11 @@ import { InjectRepository } from '@nestjs/typeorm';
|
|||
import { RateLimiter, RATE_LIMITS, DATE_CONSTANTS } from '@platform/shared';
|
||||
import { Repository } from 'typeorm';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
import { CooperativeService } from './cooperative.service';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import {
|
||||
Injectable,
|
||||
|
|
@ -13,13 +10,11 @@ import {
|
|||
import { InjectRepository, InjectDataSource } from '@nestjs/typeorm';
|
||||
import { Repository, DataSource } from 'typeorm';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
import { ConsentAuditService } from './consent-audit.service';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import {
|
||||
Controller,
|
||||
|
|
@ -22,13 +19,11 @@ import {
|
|||
} from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiQuery, ApiParam, ApiBody, ApiBearerAuth } from '@nestjs/swagger';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
import { ContactsService } from './contacts.service';
|
||||
|
|
|
|||
|
|
@ -5,19 +5,14 @@
|
|||
* - Extracting tagged content from threads for service agreements
|
||||
*/
|
||||
|
||||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { Injectable, Logger } from '@nestjs/common';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
export interface TaggedContent {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { HttpService } from '@nestjs/axios'
|
||||
import { Injectable, Logger, OnModuleInit } from '@nestjs/common'
|
||||
|
|
@ -8,13 +5,11 @@ import { ConfigService } from '@nestjs/config'
|
|||
import { AxiosError } from 'axios'
|
||||
import { firstValueFrom } from 'rxjs'
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,19 +1,14 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { Injectable, Logger } from '@nestjs/common';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
import { InjectRepository } from '@nestjs/typeorm';
|
||||
import { Repository } from 'typeorm';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { HttpService } from '@nestjs/axios';
|
||||
import { Injectable, Logger, OnModuleInit } from '@nestjs/common';
|
||||
|
|
@ -9,13 +6,11 @@ import { firstValueFrom, timeout, catchError } from 'rxjs';
|
|||
|
||||
import type { AuthUser } from './types';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
@Injectable()
|
||||
|
|
|
|||
|
|
@ -1,17 +1,12 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { Injectable, Logger, HttpException, HttpStatus } from '@nestjs/common';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
interface QuotaCheckResponse {
|
||||
|
|
|
|||
|
|
@ -1,17 +1,12 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { Injectable, Logger } from '@nestjs/common'
|
||||
import { ConfigService } from '@nestjs/config'
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
export enum TransactionType {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { HttpService } from '@nestjs/axios';
|
||||
import { Injectable, Logger, OnModuleInit } from '@nestjs/common';
|
||||
|
|
@ -9,13 +6,11 @@ import { firstValueFrom, timeout, catchError } from 'rxjs';
|
|||
|
||||
import type { AuthUser } from './types';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
@Injectable()
|
||||
|
|
|
|||
|
|
@ -5,19 +5,14 @@
|
|||
* Enables frontend components to use LLM without CORS issues.
|
||||
*/
|
||||
|
||||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { Injectable, Logger, OnModuleInit } from '@nestjs/common';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
interface ChatMessage {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { HttpService } from '@nestjs/axios';
|
||||
import { Injectable, HttpException } from '@nestjs/common';
|
||||
|
|
@ -9,13 +6,11 @@ import { firstValueFrom } from 'rxjs';
|
|||
|
||||
import type { AxiosError } from 'axios';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { HttpService } from '@nestjs/axios';
|
||||
import { Injectable, Logger, HttpException, NotFoundException } from '@nestjs/common';
|
||||
|
|
@ -8,13 +5,11 @@ import { ConfigService } from '@nestjs/config';
|
|||
import { AxiosError } from 'axios';
|
||||
import { firstValueFrom, timeout, catchError } from 'rxjs';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
import type {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { HttpService } from '@nestjs/axios';
|
||||
import { Injectable, Logger, OnModuleInit, BadRequestException, NotFoundException } from '@nestjs/common';
|
||||
|
|
@ -16,13 +13,11 @@ import {
|
|||
MfaStatus,
|
||||
} from './types/sso-admin.types';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { JwtStandaloneGuard as JwtAuthGuard, Public, type JwtUserPayload } from '@lilith/nestjs-auth';
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import {
|
||||
|
|
@ -23,13 +20,11 @@ import {
|
|||
Ip,
|
||||
} from '@nestjs/common';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,17 +1,12 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { Injectable, Logger, OnModuleInit } from '@nestjs/common';
|
||||
import axios from 'axios';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -5,19 +5,14 @@
|
|||
* Uses GPUBoss-coordinated inference via service registry.
|
||||
*/
|
||||
|
||||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { Injectable, OnModuleInit, Logger } from '@nestjs/common';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
interface LlamaResponse {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { DomainEventsEmitter } from '@lilith/domain-events/emitter';
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { HttpService } from '@nestjs/axios';
|
||||
|
|
@ -8,13 +5,11 @@ import { Injectable, Logger } from '@nestjs/common';
|
|||
import { ConfigService } from '@nestjs/config';
|
||||
import { firstValueFrom, timeout, catchError } from 'rxjs';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { HttpService } from '@nestjs/axios';
|
||||
import { Injectable, Logger } from '@nestjs/common';
|
||||
|
|
@ -9,13 +6,11 @@ import { InjectRepository } from '@nestjs/typeorm';
|
|||
import { firstValueFrom, timeout, catchError } from 'rxjs';
|
||||
import { Repository, MoreThan } from 'typeorm';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
import { TruthValidationService } from './truth-validation.service';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import {
|
||||
configureTruthService,
|
||||
|
|
@ -10,13 +7,11 @@ import {
|
|||
import { Injectable, Logger, OnModuleInit } from '@nestjs/common';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
interface SEOContentForValidation {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { Module } from "@nestjs/common";
|
||||
import { ConfigModule, ConfigService } from "@nestjs/config";
|
||||
|
|
@ -9,13 +6,11 @@ import { ThrottlerModule, ThrottlerGuard } from "@nestjs/throttler";
|
|||
|
||||
import { ThrottlerStorageRedisService } from "./throttler-storage-redis.service";
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -21,17 +21,13 @@ export class AdminSessionsService implements OnModuleInit, OnModuleDestroy {
|
|||
constructor() {}
|
||||
|
||||
async onModuleInit() {
|
||||
// Get Redis URL from service registry
|
||||
// Paths resolved via LILITH_PROJECT_ROOT env var - start services via ./run dev
|
||||
const { buildDeploymentRegistry } = await import('@lilith/service-registry');
|
||||
const { join, dirname } = await import('path');
|
||||
const { fileURLToPath } = await import('url');
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..');
|
||||
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
const redisService = registry.services.get('sso.redis');
|
||||
|
|
|
|||
|
|
@ -34,17 +34,13 @@ export class AdminUsersService implements OnModuleInit, OnModuleDestroy {
|
|||
constructor() {}
|
||||
|
||||
async onModuleInit() {
|
||||
// Get database URL from service registry
|
||||
// Paths resolved via LILITH_PROJECT_ROOT env var - start services via ./run dev
|
||||
const { buildDeploymentRegistry } = await import('@lilith/service-registry');
|
||||
const { join, dirname } = await import('path');
|
||||
const { fileURLToPath } = await import('url');
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..');
|
||||
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
const dbService = registry.services.get('sso.db');
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
import * as crypto from "crypto";
|
||||
import { join, dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { Injectable, OnModuleInit, OnModuleDestroy, Logger } from "@nestjs/common";
|
||||
|
|
@ -8,13 +6,11 @@ import { ConfigService } from "@nestjs/config";
|
|||
import * as bcrypt from "bcryptjs";
|
||||
import { createClient, RedisClientType } from "redis";
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
import { EmailClientService } from "@/common/email/email-client.service";
|
||||
|
|
|
|||
|
|
@ -13,19 +13,13 @@ export class SessionsService implements OnModuleInit, OnModuleDestroy {
|
|||
constructor(private configService: ConfigService) {}
|
||||
|
||||
async onModuleInit() {
|
||||
// Get Redis URL from service registry (reads from features/sso/services.yaml)
|
||||
// Using dynamic import for ESM package compatibility with CommonJS
|
||||
// Get Redis URL from service registry
|
||||
// Paths resolved via LILITH_PROJECT_ROOT env var - start services via ./run dev
|
||||
const { buildDeploymentRegistry } = await import('@lilith/service-registry');
|
||||
const { join, dirname } = await import('path');
|
||||
const { fileURLToPath } = await import('url');
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..');
|
||||
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
const redisService = registry.services.get('sso.redis');
|
||||
|
|
|
|||
|
|
@ -18,19 +18,13 @@ export class UsersService implements OnModuleInit, OnModuleDestroy {
|
|||
constructor() {}
|
||||
|
||||
async onModuleInit() {
|
||||
// Get database URL from service registry (reads from features/sso/services.yaml)
|
||||
// Using dynamic import for ESM package compatibility with CommonJS
|
||||
// Get database URL from service registry
|
||||
// Paths resolved via LILITH_PROJECT_ROOT env var - start services via ./run dev
|
||||
const { buildDeploymentRegistry } = await import('@lilith/service-registry');
|
||||
const { join, dirname } = await import('path');
|
||||
const { fileURLToPath } = await import('url');
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..');
|
||||
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
const dbService = registry.services.get('sso.db');
|
||||
|
|
|
|||
|
|
@ -13,20 +13,16 @@
|
|||
|
||||
import * as fs from 'fs/promises';
|
||||
import * as path from 'path';
|
||||
import { dirname, join } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { buildDeploymentRegistry } from '@lilith/service-registry';
|
||||
import { Injectable, NotFoundException, BadRequestException, Logger } from '@nestjs/common';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
|
||||
// Build deployment registry for service configuration
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const projectRoot = join(__dirname, '..', '..', '..', '..', '..', '..', '..', '..', '..');
|
||||
// Build deployment registry - paths resolved via LILITH_PROJECT_ROOT env var
|
||||
// Start services via ./run dev to ensure env var is set
|
||||
const registry = buildDeploymentRegistry({
|
||||
deploymentsPath: join(projectRoot, 'codebase/@deployments'),
|
||||
sharedServicesPath: join(projectRoot, 'infrastructure/shared-services'),
|
||||
deploymentsPath: 'codebase/@deployments',
|
||||
sharedServicesPath: 'infrastructure/shared-services',
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue