- Eliminated unnecessary import of 'zx/globals' from both global.d.ts and lifecycle.ts files to streamline test setup.
- Ensured that the test lifecycle remains intact while improving code clarity.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated pnpm-lock.yaml to include `mongodb-memory-server` version 10.1.4 and `redis-memory-server` version 0.12.1 as dependencies.
- Removed optional flags from several dependencies for consistency.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new GitHub Action to streamline the setup of MongoDB and Redis for testing environments.
- Updated CI workflows to utilize the new action, replacing direct MongoDB and Redis setup steps for improved maintainability.
- Added `mongodb-memory-server` and `redis-memory-server` as dependencies in the project.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new GitHub Action for setting up Node.js and pnpm with caching capabilities.
- Updated workflows to utilize the new action, changing the Node.js version to 22.x across CI, API client, and release workflows.
- Streamlined dependency installation and caching processes for improved build performance.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated `package.json` and `pnpm-lock.yaml` to replace specific version references with catalog entries for various dependencies, including `@types/cors`, `@types/express`, `abort-controller`, `axios`, `camelcase-keys`, `cors`, `express`, `form-data`, `lodash`, `tsup`, `umi-request`, and `vite`.
- Removed obsolete conflict catalog for `@types/node`.
- Adjusted `pnpm-workspace.yaml` to reflect the new catalog structure for dependencies.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced `AIDeepReadingModel` to define the structure for deep reading responses.
- Added `getDeepReading` method in `AIController` to fetch deep reading data for a given article ID.
- Updated imports in `ai.ts` to include the new deep reading model.
Signed-off-by: Innei <tukon479@gmail.com>
- Added `AiDeepReadingController`, `AiDeepReadingService`, and related DTOs and models to support deep reading capabilities using AI.
- Integrated new methods for generating and managing deep readings, including error handling and caching mechanisms.
- Updated `AiModule` to include dependencies for deep reading services and controllers.
- Removed the obsolete `AiAgentModule` and its associated test controller.
- Enhanced configuration options to enable or disable deep reading features.
Signed-off-by: Innei <tukon479@gmail.com>
- 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>