Commit Graph

156 Commits

Author SHA1 Message Date
xiongxiao
8d85e83418 feat(auth): add authentication routes and user token handling
- Implemented user authentication routes in `auth.ts` for fetching current user info and admin verification.
- Added caching mechanism for user tokens to improve performance.
- Created middleware for admin authentication.

feat(opencode): create OpenCode client route

- Added `opencode-cnb` route for creating OpenCode clients with session management.
- Integrated OpenCode SDK for client operations and session handling.

refactor(client): encapsulate OpenCode client creation

- Created a utility function `getClient` in `client.ts` to initialize OpenCode clients.

test(opencode): add tests for OpenCode routes

- Implemented test cases for OpenCode routes in `list.ts` to validate functionality.
- Created common utilities for testing in `common.ts`.
2026-03-13 04:04:47 +08:00
bd0ce0058e update 2026-03-12 23:21:01 +08:00
3243baa872 Refactor code structure for improved readability and maintainability 2026-03-12 13:51:13 +08:00
060595c352 feat: 更新多个依赖版本,添加客户端认证模块及缓存功能 2026-03-09 19:00:34 +08:00
6aeff117dc feat: 更新 @kevisual/router 版本至 0.0.89;添加 download 命令模块以支持文件下载 2026-03-09 01:24:45 +08:00
cb8e709c5d fix(deploy): set default version to 1.0.0 and generate key using nanoid; remove confirmation prompt 2026-03-08 14:07:18 +08:00
ad494248cc feat: 更新 RemoteApp 初始化逻辑,添加 token 参数;更新版本号至 0.1.16 2026-03-05 04:16:08 +08:00
5594123cc7 feat: 更新 RemoteApp 类,增加 isVerified 属性及验证等待逻辑;优化错误日志输出 2026-03-05 04:15:04 +08:00
3b383639d6 feat: 增强 RemoteApp 支持用户名;更新 light-code 路由处理逻辑;优化 SyncBase 文件路径检查 2026-03-05 02:45:51 +08:00
73d0fb9730 feat: 更新获取配置接口,增加动态获取访问地址功能 2026-02-28 04:33:24 +08:00
acd88fb815 feat: 更新保活说明,增强对 opencode web 访问的说明 2026-02-27 23:47:39 +08:00
31a7a99dbd feat: 优化文档内容,移除冗余信息并增强保活说明;调整构建信息数据类型 2026-02-27 01:43:18 +08:00
a9ce575be5 Refactor code structure for improved readability and maintainability 2026-02-26 02:18:48 +08:00
22ef776b27 feat: 限制远程应用最大重连次数为 50,增强错误日志信息;调整 cnb-board 路由逻辑 2026-02-24 23:53:21 +08:00
37e00a9ff3 feat: 添加非 cnb-board 环境检查,更新相关路由返回值;更新版本号至 0.1.12,新增 common.ts 文件 2026-02-24 23:44:05 +08:00
d3104bd5a5 feat: 根据 CNB 环境变量调整助手配置文件的 home 路径 2026-02-24 18:51:20 +08:00
xiongxiao
6795cef3d5 v0.1.11 2026-02-24 05:13:42 +08:00
dff858d820 feat: 添加获取 cnb-board live mdContent 内容的路由,修正时间戳处理 2026-02-24 02:12:05 +08:00
f67ca752f3 update 2026-02-24 01:39:59 +08:00
bda7fc3b92 feat: 更新依赖版本,添加 cnb-board 环境检查功能 2026-02-24 01:23:52 +08:00
58a0e9e61f feat: 添加 cnb-board 路由以支持退出程序功能 2026-02-23 18:56:20 +08:00
4b935036ad fix: 修正 OpenClaw 服务访问地址,添加 '/openclaw' 路径 2026-02-23 18:43:59 +08:00
d6e3f67ac3 feat: 添加 cnb-board 路由及相关功能,获取 live 的 repo、构建、PR、NPC 和评论信息,并更新文档
fix: 更新 SKILL.md 文件格式,调整 metadata 标签位置
2026-02-23 18:36:11 +08:00
xiongxiao
88313d5b8e fix: 更新 AssistantConfig 以启用共享功能,并优化本地用户检查逻辑 2026-02-22 00:20:59 +08:00
xiongxiao
e377557587 fix: 更新 @kevisual/api 依赖至 0.0.59,并优化本地用户检查逻辑 2026-02-22 00:07:02 +08:00
75953498e6 fix: 更新 @kevisual/api 依赖至 0.0.58,并优化本地用户检查逻辑 2026-02-21 22:25:44 +08:00
a4a5ed0b50 fix: 更新用户信息命令以使用新的获取令牌逻辑,并优化本地用户检查功能 2026-02-21 22:19:30 +08:00
13b0f45d3e fix: 更新依赖项版本并优化远程应用连接逻辑 2026-02-21 06:28:20 +08:00
68c1976754 feat: add user info command and package management for assistant app
- Implemented a new command 'me' to view current user information in the assistant application.
- Created a common configuration file for the assistant app with package details and scripts.
- Added functionality to check and update package.json dependencies and devDependencies in the assistant app.
- Refactored storage initialization in query module to use StorageNode.
2026-02-21 03:08:39 +08:00
e53c166c29 fix: 更新依赖项版本以修复兼容性问题并优化导入路径 2026-02-19 04:00:09 +08:00
f33d4c293d Refactor code structure for improved readability and maintainability 2026-02-18 03:37:45 +08:00
171d01a784 fix: 更新 package.json 中的依赖项版本以修复兼容性问题 2026-02-16 20:09:09 +08:00
76aeb21a41 Refactor CNB command to improve configuration handling and add default keep.json
- Changed import of 'path' module to use default import syntax.
- Updated 'live' command to accept a configuration file path with higher priority than JSON input.
- Removed stdin reading for JSON input; now reads directly from the specified config file.
- Simplified error handling for JSON parsing and configuration validation.
- Enhanced keepAlive creation by removing unnecessary callbacks and enabling debug mode.
- Added default keep.json file with example configuration.
2026-02-15 23:52:32 +08:00
0ba8c9a7dc update 2026-02-06 18:21:27 +08:00
8cda5f6be3 fix:fix reconnect 2026-02-05 16:51:40 +08:00
8fc9605242 feat: 添加自动重连机制和重连配置选项到 RemoteApp 类,并更新相关文档 2026-02-05 14:09:14 +08:00
a46510949b feat: 更新 RemoteApp 类以支持 ListenProcessParams 和改进消息处理逻辑
fix: 更新 package.json 版本号至 0.1.2
feat: 在部署函数中添加 detect 标志以增强功能
2026-02-05 03:00:51 +08:00
5d6bd4f429 Refactor client routes and add IP fetching functionality
- Moved client route definitions to separate files for better organization.
- Added new route to fetch client IP addresses, supporting both IPv4 and IPv6.
- Implemented system information retrieval in the client routes.
- Updated package dependencies to their latest versions.
- Adjusted call route to prevent overwriting existing routes.
2026-02-04 13:20:12 +08:00
6212194f95 add gent env Value check 2026-02-03 20:19:15 +08:00
a76c2235ea feat: Implement LiveCode module with WebSocket and SSE support
- Added config management using `useConfig` for environment variables.
- Created `LiveCode` class to manage WebSocket connections and routing.
- Implemented `SSEManager` for Server-Sent Events handling.
- Developed `WSSManager` for managing WebSocket connections with heartbeat functionality.
- Introduced `ReconnectingWebSocket` class for robust WebSocket client with automatic reconnection.
- Added test files for live application demonstrating WebSocket and TCP server integration.
2026-02-02 23:29:58 +08:00
1d0db5f093 feat: 更新版本至 0.0.99,移除未使用的 callText 函数调用 2026-01-31 20:48:36 +08:00
73d0c8c4ba feat: 更新版本至 0.0.98 2026-01-31 17:47:15 +08:00
a80a3ede46 feat: add argument parsing and module resolution for assistant app
- Implemented argument parsing in args.ts to handle root, home, and help options.
- Added parseHomeArg and parseHelpArg functions for command line argument handling.
- Created ModuleResolver class in assistant-app-resolve.ts to resolve module paths, including scoped packages and relative paths.
- Introduced caching mechanism for package.json reads to improve performance.
- Added utility functions for checking file existence and clearing the cache.
2026-01-31 17:42:53 +08:00
51822506d7 feat(client): add routes for version, time, system info, and restart functionality 2026-01-31 00:48:15 +08:00
ef891e529a if config error exit 2026-01-30 21:55:14 +08:00
76a7dc0082 fix: 修复应用键生成逻辑,确保键值不以斜杠开头 2026-01-29 01:56:29 +08:00
742a7a2992 feat: add zod dependency and implement kevisual routes for CLI commands
- Added zod as a dependency in package.json.
- Enhanced assistant configuration to include skills and plugins directories.
- Implemented runCmd function to execute CLI commands in run.ts.
- Updated light-code module to use node:child_process.
- Created new kevisual routes for checking CLI login status and deploying web pages.
- Added restart functionality for OpenCode client in opencode module.
2026-01-28 00:02:38 +08:00
220b008b90 refactor: 移除不再使用的轻代码路由,优化 OpenCode 客户端的端口配置 2026-01-27 22:21:51 +08:00
14f2dad837 fix: 优化connect ws的模块 2026-01-26 18:51:59 +08:00
915f7aff6b 更新 @opencode-ai/sdk 版本至 1.1.36,调整类型定义以支持 AssistantConfig 2026-01-26 04:20:23 +08:00