Commit Graph

2071 Commits

Author SHA1 Message Date
Innei
99781842e1 chore(deps): update dependencies for improved compatibility and functionality
- Upgraded various dependencies across multiple package.json files, including @babel/core to 7.28.0, @keyv/redis to 4.6.0, and mongoose to 8.16.2.
- Updated axios to version 1.10.0 and nodemailer to 7.0.5 for enhanced performance.
- Adjusted types for @types/lodash and @types/node to their latest versions for better type safety.
- Incremented better-auth to 1.2.12 and updated other related packages for stability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-10 22:22:49 +08:00
Innei
3e12044fce feat(ai): integrate new AI SDK and refactor AI services
- Replaced @langchain/openai with @ai-sdk/openai for improved functionality.
- Updated AI service methods to utilize the new SDK, including getOpenAiProvider and getOpenAiModel.
- Refactored AI agent and deep reading services to implement new tool definitions and execution logic.
- Enhanced comment service to utilize the new AI model for content review and spam detection.
- Added new AI prompts for summarization and title generation.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-10 22:11:08 +08:00
Teror Fox
00b66bef7e feat(core): 实现文章的发布/取消发布功能 (#2443)
* feat(migration): add isPublished field to posts and notes collections

* feat(note, post): add publish status management for notes and posts

* build(tsup): 添加 import.meta.url 支持

- 在 tsup 配置中添加 platform: 'node' 设置
- 注入 import.meta.url 兼容层,以支持不同模块格式

* build(core): 修改 mx-server 启动脚本路径

* feat(migration): 添加 v8.4.0 版本迁移脚本至history

* feat(core): 修复未认证用户可查看未发布内容的安全问题

- 在 Note 和 Post 模块中添加了对未认证用户的访问限制

* fix(core): 回滚 mx-server 启动脚本路径

* feat(migration): 添加 v8.4.0 数据库脚本以更新 notes 集合字段

* feat(migration): 更新 v8.4.0 修复脚本以重命名 hide 字段并互换其值

* feat(note): 替换 hide 字段为 isPublished,更新相关查询和条件

* feat(note): 将 hide 字段替换为 isPublished,更新相关数据模型

* feat(migration): 添加 v8.4.0 fix2修复脚本以更新 posts 集合中的 isPublished 字段为true
2025-07-03 16:06:06 +08:00
Innei
f369e9c942 chore(deps): update package dependencies for improved stability
- Upgraded @types/node to 24.0.1 and zod to 3.25.63 across multiple package.json files for better type safety and compatibility.
- Updated cache-manager to version 7.0.0 and keyv to 5.3.4 in core and compiled packages.
- Adjusted openai version to 5.3.0 in core package for enhanced functionality.
- Refactored TypeScript configuration to include es2022 in the lib array for broader language feature support.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-12 23:06:56 +08:00
Innei
0bae393f08 chore(deps): update dependencies across multiple packages
- 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>
2025-06-07 23:02:27 +08:00
Innei
75e153c355 fix(tinyexec): replace require statements to support cjs
- 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>
2025-05-18 23:57:32 +08:00
Innei
89013ed348 fix(deps): complie @antfu/install-pkg
- 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>
2025-05-18 23:42:15 +08:00
Innei
c52759181b feat(s3): implement S3Uploader for file uploads
- 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>
2025-05-18 23:31:51 +08:00
Innei
4336e0fb97 chore(deps): update dependencies for improved compatibility
- 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>
2025-05-18 23:04:41 +08:00
Innei
7e616eeb88 fix: bundle
Signed-off-by: Innei <tukon479@gmail.com>
2025-05-18 22:54:31 +08:00
Innei
441bc8ae3b chore(deps): update dependencies and ESLint configuration
- 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>
2025-05-14 23:23:10 +08:00
Innei
7229ccfb86 refactor: ai agent to langgraph
- 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>
2025-05-08 01:05:20 +08:00
Innei
e64acfa14b chore(deps): update @sxzz/eslint-config and related dependencies
- 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>
2025-05-08 00:41:42 +08:00
Innei
3a8d1ede77 Revert "chore(deps): update TypeScript and related dependencies"
This reverts commit 4c9b9206c0.
2025-05-08 00:31:29 +08:00
Innei
4c9b9206c0 chore(deps): update TypeScript and related dependencies
- 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>
2025-05-07 22:55:46 +08:00
Innei
d75dcd72c8 chore(deps): add mongodb-memory-server and redis-memory-server to pnpm-lock.yaml
- 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>
2025-05-06 00:53:48 +08:00
Innei
423cc7de14 chore(deps): update package dependencies to use catalog references
- 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>
2025-05-06 00:36:30 +08:00
Innei
46704d2498 feat: update ai integration (#2422)
* 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>
2025-05-05 20:50:52 +08:00
Innei
e055f5cd27 chore: update dependencies and improve health controller
- 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>
2025-05-04 15:05:24 +08:00
Innei
c26e9ef0a6 chore: remove unused imports and update TypeScript version
- 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>
2025-04-06 23:02:57 +08:00
Innei
5bf93975f3 chore: update dependencies and improve auth implementation
- 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>
2025-04-06 23:00:39 +08:00
renovate[bot]
511587a617 fix(deps): update nest monorepo to v11.0.12 (#2397)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 22:40:35 +00:00
renovate[bot]
a2b8e23450 chore(deps): update dependency eslint to v9.22.0 (#2401)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 15:40:36 +00:00
renovate[bot]
f6d7f0b6d8 fix(deps): update dependency openai to v4.87.4 (#2396)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 09:53:48 +00:00
renovate[bot]
ad41ec42bf fix(deps): update dependency axios to v1.8.4 (#2399)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 06:05:53 +00:00
renovate[bot]
3cb310008a chore(deps): update dependency @types/express to v5.0.1 (#2398)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 02:46:55 +00:00
renovate[bot]
fc028a4989 fix(deps): update dependency @langchain/openai to v0.4.5 (#2395)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-19 22:25:28 +00:00
renovate[bot]
7913d20962 chore(deps): update dependency prettier to v3.5.3 (#2393)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-19 15:32:59 +00:00
renovate[bot]
0bfd90f71d chore(deps): update dependency nanoid to v5.1.5 (#2392)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-19 10:35:56 +00:00
renovate[bot]
1f25eb90cc chore(deps): update dependency mongodb-memory-server to v10.1.4 (#2391)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-19 07:28:08 +00:00
renovate[bot]
c4e9785ffc chore(deps): update dependency axios to v1.8.3 (#2390)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-19 03:24:14 +00:00
renovate[bot]
789b26f84f chore(deps): update dependency @types/node to v22.13.10 (#2389)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-18 23:22:36 +00:00
renovate[bot]
424dd2b7be chore(deps): update dependency @swc/core to v1.11.11 (#2388)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-18 19:28:27 +00:00
renovate[bot]
a313c24000 chore(deps): update dependency nanoid to v5.1.4 (#2372)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-18 23:35:49 +08:00
renovate[bot]
3e71774e90 chore(deps): update dependency axios to v1.8.2 [security] (#2384)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-17 23:46:20 +08:00
Innei
1d51378f1a chore: update deps 2025-03-17 23:42:10 +08:00
Innei
7a0055d5bb chore: update deps
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-04 22:37:25 +08:00
renovate[bot]
31d8341124 chore(deps): update dependency better-auth to v1.1.21 [security] (#2380)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-25 03:26:59 +00:00
Innei
91e566ff25 chore(deps): bump dependencies to latest versions
Update various dependencies to their latest versions, including:
- NestJS packages (11.0.10)
- AWS SDK
- Mongoose
- OpenAI
- Langchain
- bcryptjs
- isbot

Includes minor type and model improvements in core application

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-19 22:10:00 +08:00
renovate[bot]
c861821200 chore(deps): update dependency semver to v7.7.1 (#2354)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-19 21:27:01 +08:00
renovate[bot]
f3495112b1 chore(deps): update dependency ioredis to v5.5.0 (#2351)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-19 21:25:52 +08:00
renovate[bot]
26a60360ae chore(deps): update dependency @swc/core to v1.10.18 (#2369)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-19 11:34:20 +00:00
renovate[bot]
b2b423361f fix(deps): update dependency mongoose-aggregate-paginate-v2 to v1.1.4 (#2367)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-19 06:52:48 +00:00
renovate[bot]
72b1488a39 fix(deps): update dependency langchain to v0.3.18 (#2366)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-19 02:49:08 +00:00
renovate[bot]
f4e9fad753 fix(deps): update dependency form-data to v4.0.2 (#2365)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-18 23:05:32 +00:00
renovate[bot]
28cc927d33 fix(deps): update dependency @fastify/static to v8.1.1 (#2364)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-18 16:47:40 +00:00
renovate[bot]
feacfaf120 fix(deps): update babel monorepo to v7.26.9 (#2362)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-18 10:44:41 +00:00
renovate[bot]
2b1ef821e6 chore(deps): update dependency @swc/core to v1.10.17 (#2363)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-18 06:42:49 +00:00
renovate[bot]
69e321c944 chore(deps): update dependency prettier to v3.5.1 (#2361)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-17 22:05:42 +00:00
renovate[bot]
628bdc8520 chore(deps): update dependency better-auth to v1.1.18 (#2360)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-17 19:20:48 +00:00