- Updated `evaluateCommentWithAI` to enforce stricter type checks for `aiReviewType`, now only allowing 'binary' or 'score'.
- Added test calls in the constructor of `CommentService` to evaluate comments using AI.
- Enhanced the response handling in `evaluateCommentWithAI` to improve error management and ensure proper parsing of AI responses.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a new private method `evaluateCommentWithAI` to assess comment content using AI, supporting both scoring and spam detection modes.
- Integrated the `JsonOutputToolsParser` for handling AI responses.
- Updated the `checkSpam` method to utilize the new AI evaluation method, improving comment moderation capabilities.
Signed-off-by: Innei <tukon479@gmail.com>
* init
Signed-off-by: Innei <tukon479@gmail.com>
* update
Signed-off-by: Innei <tukon479@gmail.com>
* chore: update package dependencies and remove unused code
- Updated package manager version in package.json to pnpm@10.10.0.
- Removed references to `@modelcontextprotocol/sdk` from core application files.
- Deleted unused `mcp.controller.ts` and cleaned up related imports in `mcp.module.ts`.
- Adjusted optional dependencies in pnpm-lock.yaml.
Signed-off-by: Innei <tukon479@gmail.com>
* refactor: update AI summary and writer services to use new tools parser
- Replaced `JsonOutputFunctionsParser` with `JsonOutputToolsParser` in both `ai-summary.service.ts` and `ai-writer.service.ts`.
- Updated function definitions to align with the new tools structure, including changes to how functions are defined and invoked.
- Enhanced error handling to return empty objects when no results are found.
Signed-off-by: Innei <tukon479@gmail.com>
---------
Signed-off-by: Innei <tukon479@gmail.com>
- Added comprehensive CORS methods support in `bootstrap.ts` to allow various HTTP methods.
- Removed redundant CORS headers from the `CreateAuth` function in `auth.implement.ts` to streamline the response handling.
Signed-off-by: Innei <tukon479@gmail.com>
- Modified ESLint configuration to disable markdown support and sortKeys, while ensuring prettier and pnpm support are enabled.
- Removed redundant configuration options for prettier and markdown.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated various dependencies in package.json and pnpm-lock.yaml, including:
- `@aws-sdk/client-s3` from 3.782.0 to 3.802.0
- `@babel/core` from 7.26.10 to 7.27.1
- `@nestjs/common` and `@nestjs/core` from 11.0.13 to 11.1.0
- `axios` from 1.8.3 to 1.9.0
- `mongoose` from 8.13.2 to 8.14.1
- Other minor updates across various packages.
- Refactored `getAllCron` method in `cron.controller.ts` to use `job?.isActive` instead of `job?.running` for better clarity on job status.
Signed-off-by: Innei <tukon479@gmail.com>
- Removed unused imports `getSessionCookie` and `getSessionFromCtx` from `auth.implement.ts`.
- Updated TypeScript version from 5.8.3 to 5.7.3 in `package.json` and `pnpm-lock.yaml`.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated various dependencies in package.json and pnpm-lock.yaml, including:
- `redis-memory-server` from 0.11.0 to 0.12.1
- `@sxzz/eslint-config` from 4.6.0 to 6.1.1
- `@types/node` from 22.13.10 to 22.14.0
- `eslint` from ^9.17.0 to ^9.24.0
- `lint-staged` from 15.3.0 to 15.5.0
- `typescript` from 5.7.3 to 5.8.3
- Other minor updates across various packages.
- Refactored `CreateAuth` function in `auth.implement.ts` to utilize `createAuthMiddleware` for better session handling.
- Enhanced exports in `auth.ts` to include new utility functions from `better-auth`.
Signed-off-by: Innei <tukon479@gmail.com>