Commit Graph

28 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
d6e3f67ac3 feat: 添加 cnb-board 路由及相关功能,获取 live 的 repo、构建、PR、NPC 和评论信息,并更新文档
fix: 更新 SKILL.md 文件格式,调整 metadata 标签位置
2026-02-23 18:36:11 +08:00
f33d4c293d Refactor code structure for improved readability and maintainability 2026-02-18 03:37:45 +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
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
51822506d7 feat(client): add routes for version, time, system info, and restart functionality 2026-01-31 00:48:15 +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
028a6ac726 feat: restructure command for Claude models and add new remote routes
- Deleted the old cc.ts command and created a new cc.ts under src/command/claude for better organization.
- Added support for a new model 'bailian' in the command.
- Implemented remote app connection status and connection routes in assistant/src/routes/remote/index.ts.
- Updated index.ts to reflect the new path for the cc command.
- Added a placeholder for future management of plugin operations in src/command/opencode/plugin.ts.
2026-01-21 23:22:58 +08:00
89470346be udpate 2026-01-20 15:39:46 +08:00
9f20e149a0 feat: 更新依赖项,添加 OpenCode 支持,重构代理和路由逻辑,新增 AGENTS 文档 2026-01-20 02:46:29 +08:00
2f79925e3d update 2026-01-17 16:19:49 +08:00
0b5a0557ee update 2026-01-17 14:48:49 +08:00
cc043bfd7e update 2026-01-17 01:13:55 +08:00
4bdebd66d4 feat: 更新依赖项版本,添加新功能并重构代码,增强 ASR 服务和灯光控制逻辑 2025-12-23 00:40:09 +08:00
91fdd6abc3 feat: 更新助手配置,添加应用ID和URL,优化身份验证和代理逻辑 2025-12-18 20:56:18 +08:00
6e1ffe173a feat: 更新开发脚本,添加新的环境变量支持,优化管理员登录流程 2025-12-18 03:47:07 +08:00
ee33208e6c fix: fix hot-api for not build in bun app.mjs 2025-12-05 20:53:25 +08:00
6d32fedfb0 temp 2025-11-18 01:32:00 +08:00
5df5a943ed update: 更新light-code部分的代码模块 2025-11-11 03:42:21 +08:00
239ba3ad10 fix 2025-05-30 18:16:36 +08:00
552653c8f7 "feat: 新增 kevisual 同步配置,升级相关依赖" 2025-05-27 01:39:15 +08:00
89860261f9 test for client system 2025-05-23 12:08:28 +08:00
1e340ec2b3 "feat: 新增远程应用测试脚本,升级 pm2 依赖" 2025-05-22 13:19:57 +08:00
5cc1e33b29 add public fix and pnpm init asst 2025-05-19 22:13:02 +08:00
a05f2cd291 feat: update ev cli 2025-05-18 17:59:54 +08:00
035ddc248c add install base 2025-05-17 03:32:38 +08:00
75d181ef43 feat: 助手配置与服务命令扩展及依赖更新 2025-04-27 03:26:50 +08:00