Commit Graph

264 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
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
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
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
f2873a5c9d chore(release): bump @mx-space/api-client to v1.17.0 2025-05-07 22:56:23 +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
8a5048f067 feat(ai): add deep reading model and controller method
- 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>
2025-05-06 00:27:18 +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
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
Innei
96263782d0 fix: lint and fix cache service
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-06 22:18:48 +08: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]
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]
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
Teror Fox
400d217aac feat: 添加推送到Bing支持 (#2379)
* feat(core): 添加 Bing 搜索推送功能

- 在 errorCode.constant.ts 中添加 Bing 相关的错误代码
- 在 configs.dto.ts 中添加 BingSearchOptionDto 类用于配置 Bing 推送选项
- 在 helper.cron.service.ts 中实现 pushToBingSearch 方法进行 Bing 搜索推送

* feat(core): 添加必应搜索推送配置并优化相关功能

- 在默认配置中添加 bingSearchOptions 项
- 更新 BingSearchOptionDto 类,统一字段命名
- 在 IConfig 接口中添加 bingSearchOptions 字段
- 修改 CronService 中的 pushToBingSearch 方法,适配新配置

* build: 更新下载资源链接

- 将 CDN 下载 URL 从 `https://mirror.ghproxy.com/` 更改为 `https://ghfast.top/`

* feat(api-client): 添加 Bing 搜索配置模型

- 新增 BingSearchOptionsModel 类,用于 Bing 搜索的配置选项
- 该模型包括 enable 和 token 两个属性,与 BaiduSearchOptionsModel 类似

* refactor(configs): 统一配置类命名规则

- 将 BingSearchOptionDto 重命名为 BingSearchOptionsDto,与 BaiduSearchOptionsDto 保持一致
- 更新相关引用和配置字段类型

* feat(core): 添加每日凌晨1点执行的 Bing 搜索推送任务

- 在 CronService 类中添加了 pushToBingSearch 方法
- 使用 @CronOnce 装饰器设置任务执行时间为每天凌晨1点
- 任务名称为 'pushToBingSearch'
- 方法描述为 '推送到Bing'

* chore: 添加.eslintcache到.gitignore

- 在.gitignore文件中添加.eslintcache,避免eslint缓存文件被版本控制

* feat(docs): 更新readme

* refactor(core): 优化 Bing 站长提交日志输出

- 修改了 Bing 站长提交结果的日志输出格式
- 当提交成功时,输出简短的成功日志
- 当提交失败时,仍输出详细的错误信息

* Update apps/core/src/processors/helper/helper.cron.service.ts

Co-authored-by: Innei <tukon479@gmail.com>
Signed-off-by: Teror Fox <i@trfox.top>

* chore: 删除废弃的服务器部署脚本

* feat(core): 添加 Bing API 域名无效错误码

- 在 ErrorCodeEnum 枚举中添加 BingDomainInvalid 错误码
- 在 ErrorCode 对象中添加对应的错误信息和状态码

* refactor(core): 修复 Bing 推送异常时返回值问题

---------

Signed-off-by: Teror Fox <i@trfox.top>
Co-authored-by: Innei <tukon479@gmail.com>
2025-03-17 23:46:05 +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
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]
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
renovate[bot]
073f993788 chore(deps): update dependency better-auth to v1.1.17 (#2333)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-11 22:49:22 +00:00
renovate[bot]
288a03f18d chore(deps): update dependency tsup to v8.3.6 (#2334)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-09 08:54:06 +00:00
renovate[bot]
4d2895084d chore(deps): update dependency @types/lodash to v4.17.15 (#2331)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-09 01:42:53 +00:00
renovate[bot]
32fb5611f9 chore(deps): update dependency better-auth to v1.1.16 [security] (#2337)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-08 13:37:31 +00:00
renovate[bot]
34ba324536 chore(deps): update dependency better-auth to v1.1.14 (#2316)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-20 13:37:01 +00:00
renovate[bot]
cb696c5172 chore(deps): update dependency better-auth to v1.1.10 (#2295)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-09 22:38:12 +00:00
renovate[bot]
358cfe378c chore(deps): update dependency @types/lodash to v4.17.14 (#2293)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-09 10:57:13 +00:00
renovate[bot]
ad0261c139 chore(deps): update dependency better-auth to v1.1.7 (#2282)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-31 07:30:21 +00:00
renovate[bot]
cb9c668597 chore(deps): update dependency better-auth to v1.1.6 [security] (#2280)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-30 21:06:34 +00:00
renovate[bot]
ae339f2e4d chore(deps): update dependency better-auth to v1.1.3 (#2275)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-25 23:24:25 +08:00
Innei
9b6b2d5661 chore: update deps
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-19 14:51:07 +08:00
Innei
f60c1c23b3 chore: fix typo #2266
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-19 14:17:08 +08:00
renovate[bot]
b2edf60484 chore(deps): update dependency better-auth to v1.0.10 (#2257)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-04 00:05:04 +00:00
Innei
49cc5b628f fix: complied better auth typing export
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-03 22:27:16 +08:00
Innei
3db591f1ae chore: update deps
Signed-off-by: Innei <tukon479@gmail.com>
2024-12-03 22:25:00 +08:00
renovate[bot]
8603f21876 chore(deps): update dependency better-auth to v1.0.7 (#2249)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-29 18:18:01 +00:00
renovate[bot]
52104d2067 chore(deps): update dependency nanoid to v5.0.9 (#2244)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-26 21:08:09 +00:00
renovate[bot]
1168a3604b chore(deps): update dependency better-auth to v1.0.5 (#2241)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-26 18:40:29 +00:00
Innei
b9fc2d5560 refactor(oauth): to better auth (#2239)
* init

Signed-off-by: Innei <tukon479@gmail.com>

* complied

Signed-off-by: Innei <tukon479@gmail.com>

* fix: remove authjs

Signed-off-by: Innei <tukon479@gmail.com>

* feat: get providers

Signed-off-by: Innei <tukon479@gmail.com>

* fix: test

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2024-11-26 17:02:31 +08:00
renovate[bot]
e37a885544 chore(deps): update dependency tsup to v8.3.5 2024-11-07 03:37:56 +00:00
renovate[bot]
233ce4fa73 chore(deps): update dependency nanoid to v5.0.8 2024-11-07 00:23:37 +00:00
renovate[bot]
bc6b7dbae2 chore(deps): update dependency @types/lodash to v4.17.13 2024-11-06 18:52:15 +00:00
renovate[bot]
0c71620fb8 chore(deps): update dependency @types/lodash to v4.17.12 2024-10-19 10:15:25 +00:00
Innei
1716c4d53c chore: update deps
Signed-off-by: Innei <tukon479@gmail.com>
2024-10-18 21:31:03 +08:00
renovate[bot]
6cf64d4c17 chore(deps): update dependency @types/lodash to v4.17.10 2024-10-07 03:55:43 +00:00
renovate[bot]
0a34e1dcd8 chore(deps): update dependency @types/express to v5 2024-09-26 06:04:22 +00:00
renovate[bot]
24101d0e40 chore(deps): update dependency @types/lodash to v4.17.9 2024-09-23 23:06:28 +00:00
Innei
3846410646 chore: update deps
Signed-off-by: Innei <i@innei.in>
2024-09-22 12:15:54 +08:00
renovate[bot]
99df94b2ad chore(deps): update dependency express to v4.21.0 (#2106)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-19 19:41:50 +08:00
Innei
f693486349 chore(release): bump @mx-space/api-client to v1.16.1 2024-09-17 15:55:03 +08:00