- 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`.
19 lines
412 B
TypeScript
19 lines
412 B
TypeScript
|
|
import './config/index.ts';
|
|
import './client/index.ts';
|
|
import './shop-install/index.ts';
|
|
// import './ai/index.ts';
|
|
import './user/index.ts';
|
|
import './call/index.ts'
|
|
|
|
import './opencode/index.ts';
|
|
import './remote/index.ts';
|
|
// import './kevisual/index.ts'
|
|
import './cnb-board/index.ts';
|
|
|
|
import './auth.ts';
|
|
|
|
import { getTokenUserCache, checkAuth } from './auth.ts';
|
|
export { getTokenUserCache, checkAuth }
|
|
|