Commit Graph

296 Commits

Author SHA1 Message Date
42957af179 refactor: remove unused file, update timestamps on query views and views
- Deleted the unused file `src/auth/drizzle/one.ts`.
- Modified `updatedAt` field in `src/db/drizzle/schema.ts` to automatically update on record changes.
- Added `updatedAt` field to the response in `src/routes/query-views/list.ts` and `src/routes/views/list.ts` to ensure it reflects the current timestamp.
2026-03-05 13:32:56 +08:00
2518f6bba3 feat: 更新WsProxyManager注册逻辑,添加isLogin参数并优化HTML响应处理 2026-03-05 04:31:45 +08:00
bbdf9f087d feat: enhance WebSocket proxy with user connection management and status reporting
- Updated StudioOpts type to include infoList for user connection status.
- Added rendering of connection info in createStudioAppListHtml.
- Modified self-restart logic to use a specific app path.
- Improved WebSocket connection handling in wsProxyManager, including user registration and ID management.
- Implemented connection status checks and responses in UserV1Proxy.
- Introduced renderServerHtml function to inject server data into HTML responses.
- Refactored page-proxy request handling for better URL management.
2026-03-05 03:58:46 +08:00
aaedcb881b feat: 添加createHexTime和parseHexTime函数,用于处理十六进制时间字符串 2026-03-04 00:36:56 +08:00
d2913dd32d feat: 更新JWKS token创建逻辑,支持refresh token选项 2026-03-03 19:10:57 +08:00
bb4096ce7e feat: 更新N5代理逻辑,支持使用用户JWKS令牌进行身份验证 2026-03-03 18:33:41 +08:00
120303961c feat: integrate Convex API and add N5 proxy functionality
- Added Convex client setup in a new module for handling Convex API interactions.
- Implemented N5Proxy to handle requests for the /n5/:slug route, querying Convex for application links.
- Updated app context to include Convex client and API.
- Adjusted routing to support new Convex API endpoints.
- Enhanced error handling for missing applications in the N5 proxy.
2026-03-03 14:35:46 +08:00
75ab160509 refactor: 优化getFileList函数,移除不必要的newObjectName变量 2026-03-03 02:48:05 +08:00
a48cc48589 fix: decode URI components in object path handling
- Added decodeURIComponent to the objectName in getObjectByPathname and getObjectName functions to ensure proper handling of encoded paths.
- Updated newNamePath in renameProxy to decode the pathname before processing.
- Removed redundant comment regarding file renaming in renameProxy.
2026-03-02 01:48:15 +08:00
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