Files
cli/assistant
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
..
2026-01-17 14:48:49 +08:00
2026-01-20 15:39:46 +08:00
2026-01-17 16:19:49 +08:00

assistant cli

安装

npm i -g @kevisual/cli --registry=https://npm.cnb.cool/kevisual/registry/-/packages/

环境变量配置项

  • ASSISTANT_CONFIG_DIR
    • 说明:指定 assistant 的配置文件目录
    • 示例:export ASSISTANT_CONFIG_DIR=/path/to/your/config/dir

启动命令

asst server -s -p 8686