- Upgraded various dependencies in package.json files, including @babel/core to 7.27.4, @nestjs/common and @nestjs/core to 11.1.3, and mongoose to 8.15.1 for improved stability and compatibility.
- Updated devDependencies such as form-data to 4.0.3 and zod to 3.25.56.
- Adjusted types for @types/node and @types/lodash to their latest versions for better type safety.
Signed-off-by: Innei <tukon479@gmail.com>
- Added comprehensive CORS headers to the CreateAuth function to improve cross-origin request handling.
- Configured headers for allowed origins, methods, and credentials, along with a max age for preflight requests.
Signed-off-by: Innei <tukon479@gmail.com>
- Eliminated the module resolutions for '@mx-space/compiled/auth' and '@mx-space/compiled' from vitest.config.mts to clean up the configuration.
- This change helps streamline the configuration and improve maintainability.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the patch hash for tinyexec@1.0.1 in pnpm-lock.yaml to reflect the latest changes.
- Refactored require statements in the tinyexec patch to use standard require syntax for better compatibility and clarity.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a patch for tinyexec@1.0.1 in pnpm-lock.yaml and pnpm-workspace.yaml to address specific issues.
- Updated the import of installPackage from @antfu/install-pkg to @mx-space/compiled/install-pkg in tool.util.ts for better module management.
- Removed @antfu/install-pkg from core package.json to streamline dependencies.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced S3Uploader class to handle file uploads to S3 with support for custom domains and automatic endpoint generation.
- Refactored BackupService to utilize S3Uploader for uploading backup files, enhancing code clarity and maintainability.
- Added unit tests for S3Uploader to ensure functionality and reliability.
Signed-off-by: Innei <tukon479@gmail.com>
- Upgraded TypeScript from 5.7.3 to 5.8.3 in package.json and pnpm-lock.yaml.
- Updated various dependencies including mongoose to 8.15.0, @antfu/install-pkg to 1.1.0, and @innei/pretty-logger-nestjs to 0.3.4 for better stability.
- Adjusted related dependencies to ensure compatibility with the new versions.
Signed-off-by: Innei <tukon479@gmail.com>
- Changed pnpm setting in eslint.config.mjs from true to false.
- Updated various dependencies in package.json to specific versions for better stability and compatibility.
- Removed optionalDependencies from package.json to streamline the dependency management.
- Refactored ai-agent.service.ts to replace ToolInterface with DynamicStructuredTool for improved type safety.
Signed-off-by: Innei <tukon479@gmail.com>
- Replaced the promise-based image processing with an AsyncQueue to manage concurrent tasks more efficiently.
- Improved error handling and logging during image size and metadata retrieval.
- Updated the addMultiple method in AsyncQueue to return a wait function for better task management.
Signed-off-by: Innei <tukon479@gmail.com>
- Added @langchain/langgraph version 0.2.68 to package.json and pnpm-lock.yaml.
- Updated ai-deep-reading.service.ts to utilize createReactAgent from @langchain/langgraph for improved agent functionality.
- Enhanced error handling for GraphRecursionError in AiDeepReadingService.
Signed-off-by: Innei <tukon479@gmail.com>
- Upgraded @sxzz/eslint-config from version 6.1.1 to 7.0.0 in both pnpm-lock.yaml and pnpm-workspace.yaml.
- Updated various dependencies in pnpm-lock.yaml to ensure compatibility with the new eslint configuration.
- Added RedisMemoryServer to the test setup for improved testing capabilities alongside MongoDB.
Signed-off-by: Innei <tukon479@gmail.com>
- Upgraded TypeScript from version 5.7.3 to 5.8.3 in both package.json and pnpm-lock.yaml.
- Updated related dependencies to ensure compatibility with the new TypeScript version, including adjustments in various packages that depend on TypeScript.
Signed-off-by: Innei <tukon479@gmail.com>
- Refactored the extractAllArticle method to utilize Promise.all for concurrent fetching of posts, notes, and pages, improving performance and code readability.
- Simplified the return structure by directly assigning the results of the Promise.all call.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated the tokenizer regex to simplify the matching of GitHub, Twitter, and Telegram mentions.
- Refactored the code handling to correctly extract language and text for mermaid and other code blocks, improving output consistency.
Signed-off-by: Innei <tukon479@gmail.com>
- Added 'X-Title' and 'HTTP-Referer' headers to the OpenAI client configuration for improved request context.
- Included web URL in the configuration to support better tracking and analytics.
Signed-off-by: Innei <tukon479@gmail.com>
- Moved the deletion of the Redis task ID to the finally block to guarantee it is always executed, preventing potential memory leaks.
- Removed redundant Redis client initialization to streamline the code.
Signed-off-by: Innei <tukon479@gmail.com>
- 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>