Commit Graph

287 Commits

Author SHA1 Message Date
1ae4c979dc feat: 更新token验证逻辑,支持jwks类型token并增强用户验证 2026-02-28 04:25:37 +08:00
999a75c76b feat: 修改用户令牌创建逻辑,使用'jwks'作为令牌类型 2026-02-27 04:00:07 +08:00
0084f9878b feat: 添加发布应用目录功能,增强应用版本管理和权限校验 2026-02-26 14:13:16 +08:00
79e07d6689 feat: 更新依赖版本,优化用户模型构造函数和域名管理路由 2026-02-24 01:03:56 +08:00
4b8f47cea8 feat: 添加AGENTS文档,概述项目模块和功能 2026-02-22 03:22:29 +08:00
6b5164e845 feat: 优化token刷新逻辑,支持使用访问token刷新token,增强错误处理 2026-02-21 19:35:06 +08:00
d50f5ed2af feat: 添加token验证日志,优化WebSocket连接管理 2026-02-21 07:28:01 +08:00
71c238f953 feat: 添加JWKS token支持,更新用户和OAuth相关逻辑 2026-02-21 06:29:11 +08:00
672208ab6b chore: 更新 bun.config.mjs 和 package.json,调整依赖版本和配置 2026-02-21 05:38:14 +08:00
77273bcfeb feat: 添加JWKS管理功能,支持基于用户token创建新token 2026-02-21 05:06:25 +08:00
366a21d621 feat: add CNB login functionality and user management
- Introduced `cnb-login` route to handle user login via CNB token.
- Created `CnbServices` class for managing CNB user interactions.
- Added `findByCnbId` method in the User model to retrieve users by CNB ID.
- Updated error handling to provide more structured error messages.
- Enhanced user creation logic to handle CNB users.
- Added tests for the new CNB login functionality.
2026-02-20 23:30:53 +08:00
1782a9ef19 refactor: migrate WebSocket proxy to v1-ws-proxy module
- Updated import paths to use the new v1-ws-proxy module.
- Removed the old ws-proxy module and its associated files.
- Implemented new WebSocket proxy logic in the v1-ws-proxy module.
- Adjusted UserV1Proxy to utilize the new WebSocket proxy manager and methods.
2026-02-20 21:55:48 +08:00
0d73941127 chore: 更新依赖版本,提升 @kevisual/query 和 @kevisual/context 的版本
feat: 在应用管理路由中添加元数据,增强版本检测和发布功能
2026-02-19 03:59:29 +08:00
7088d025c9 fix: 修改user-app测试路由的id参数为必填项 2026-02-19 03:31:22 +08:00
577b6bfaa4 Refactor code structure for improved readability and maintainability 2026-02-18 12:59:51 +08:00
9cc48821b1 chore: 更新 @kevisual/query、@aws-sdk/client-s3 和 @kevisual/router 的版本 2026-02-18 05:00:47 +08:00
9d39e1cd46 chore: 更新依赖版本,移除不必要的路由定义 2026-02-18 03:28:04 +08:00
6c611dcf78 feat: refactor route definitions and enhance metadata for app domain manager
- Updated route definitions in `src/route.ts` to utilize `toJSONSchema` and `pick` for cleaner route listing.
- Enhanced the `app.domain.manager` routes in `src/routes/app-manager/domain/manager.ts`:
  - Changed path format to snake_case.
  - Added descriptions for each route.
  - Introduced Zod schema validation for request arguments in metadata.
2026-02-18 03:17:45 +08:00
8c6d57d228 temp 2026-02-14 19:22:15 +08:00
84e7a4158d fix 2026-02-14 18:57:27 +08:00
9961efd91a 移除创建新标记时的 ID 生成逻辑,优化数据插入流程 2026-02-14 02:33:01 +08:00
bb8ce3338d 重构 JWKS 模块,新增 JWKS 管理器,优化密钥生成与管理逻辑,更新路由处理 2026-02-12 21:11:16 +08:00
3cca0720c1 更新依赖版本,提升兼容性和稳定性 2026-02-10 22:54:42 +08:00
ab0ba939d4 新增 JWKS 生成模块,支持密钥文件的创建与保存 2026-02-10 22:54:12 +08:00
e51cacd7a2 更新依赖版本,提升兼容性和稳定性 2026-02-07 13:11:53 +08:00
6bf8d86c10 重构配置管理,更新域名处理逻辑,简化配置结构 2026-02-07 13:06:28 +08:00
0be7627bd1 优化用户查找逻辑,新增根据微信 UnionId 查找用户的方法,简化数据库查询 2026-02-07 02:36:29 +08:00
885e04e301 Refactor code structure for improved readability and maintainability 2026-02-07 02:05:54 +08:00
0bd634faf2 优化组织和用户创建逻辑,简化插入数据结构并处理可选描述字段 2026-02-07 02:04:17 +08:00
7dfa96d165 Refactor app management to use Drizzle ORM
- Replaced Sequelize models with Drizzle ORM for app and app list management.
- Updated routes in app-manager to utilize new database queries.
- Removed obsolete Sequelize model files for app, app list, and app domain.
- Introduced new helper functions for app and app domain management.
- Enhanced user app management with improved file handling and user migration.
- Adjusted public API routes to align with new database structure.
- Implemented caching mechanisms for domain management.
2026-02-07 01:26:16 +08:00
d62a75842f Refactor: Remove unused Convex HTTP routes and schema definitions
- Deleted `http.ts` which contained custom HTTP routes for authentication and JWKS.
- Removed `schema.ts` that defined database schemas for `github_starred`, `users`, and `sessions`.
- Updated `package.json` to remove the Convex dependency and updated other dependencies.
- Deleted SQL script `clear.sql` for removing constraints from tables.
- Removed `update.sh` script for updating dependencies.
- Deleted demo application routes and models in `app-demo` directory.
- Cleaned up unused modules and imports across various files.
- Removed Redis and common utility scripts that were not in use.
- Deleted test scripts related to user and bucket management.
2026-02-07 00:16:00 +08:00
32f4e9c40f 优化 S3 客户端配置,动态设置 forcePathStyle 属性以支持 Minio, 暂时只发现minio需要frocePathSylte,tos不需要 2026-02-06 19:45:17 +08:00
cb742807b4 重构应用列表处理逻辑,优化变量命名并移除冗余路由 2026-02-06 02:46:58 +08:00
266b7b33de Refactor config management to use Drizzle ORM
- Replaced Sequelize with Drizzle ORM in config-related routes and models.
- Updated database queries to use Drizzle's syntax for selecting, inserting, updating, and deleting configurations.
- Removed the ConfigModel class and replaced it with direct database interactions.
- Introduced nanoid for generating unique IDs for new configurations.
- Added new routes for managing marks, including CRUD operations and versioning.
- Implemented transaction handling for critical operations in the MarkModel.
- Enhanced error handling and validation in routes.
2026-02-05 16:31:11 +08:00
5200cf4c38 修复用户应用键的分隔符,从 '-' 更改为 '--',以保持一致性并优化 WebSocket 连接管理 2026-02-05 14:08:45 +08:00
bf436f05e3 优化 WebSocket 连接管理,确保在注册新连接时关闭旧连接 2026-02-05 13:38:55 +08:00
bd7525efb0 添加心跳机制以保持 WebSocket 连接,优化连接关闭时的资源清理 2026-02-05 04:58:28 +08:00
f616045625 优化用户代理逻辑,移除非管理员用户的敏感数据 2026-02-05 04:50:54 +08:00
a51d04341e 添加 @kevisual/api 依赖,更新 WebSocket 消息发送逻辑,支持上下文参数 2026-02-05 04:06:34 +08:00
7bbefd8a4a 添加自动检测最新版本功能,更新应用信息时支持检测参数 2026-02-05 01:07:44 +08:00
db5c5a89b3 clear 2026-02-04 19:48:02 +08:00
86d4c7f75b 移除不再支持的文件扩展名 '.mjs' 从文本内容类型列表中 2026-02-04 19:45:01 +08:00
cbc9b54284 update 2026-02-04 03:08:53 +08:00
b1d3ca241c 优化 token 处理逻辑,统一过期时间字段命名 2026-02-03 17:09:09 +08:00
158dd9e85c Refactor AI proxy error handling and remove deprecated upload and event routes
- Updated `getAiProxy` function to return a JSON response for missing objects when the user is the owner.
- Removed the `upload.ts`, `event.ts`, and related middleware files to streamline the codebase.
- Cleaned up `handle-request.ts` and `index.ts` by removing unused imports and routes.
- Deleted chunk upload handling and related utility functions to simplify resource management.
- Enhanced app manager list functionality to support app creation if not found.
2026-02-02 18:06:31 +08:00
82e3392b36 优化 token 处理逻辑,统一 createCookie 调用格式,返回 token 过期时间 2026-02-02 17:02:20 +08:00
a0f0f65d20 update 2026-02-01 19:26:44 +08:00
337abd2bc3 temp 2026-02-01 16:04:03 +08:00
32167faf67 重构 postProxy 函数,移动到新文件 ai-proxy-chunk/post-proxy.ts,优化文件上传处理逻辑 2026-02-01 14:33:26 +08:00
82c9b834e9 更新依赖项,添加 flowme 插入触发器和监听器;重构数据库连接管理;优化用户路由和 SSE 处理 2026-02-01 03:58:40 +08:00