feat: update package dependencies and add new routes for CNB environment management
- Updated package.json and pnpm-lock.yaml with new dependencies and versions. - Removed outdated readme files from requirements. - Enhanced CNB environment configuration in cnb-env.ts with new VS Code remote SSH settings. - Modified KnowledgeBase class to return structured results. - Updated Workspace class to return structured results. - Implemented new routes for managing CNB cookies and VS Code proxy URIs. - Added AI chat functionality for querying knowledge base. - Created skills for cleaning up closed workspaces.
This commit is contained in:
@@ -6,7 +6,10 @@ import { nanoid } from 'nanoid';
|
||||
|
||||
export const config = useConfig()
|
||||
export const cnb = useContextKey<CNB>('cnb', () => {
|
||||
const token = useKey('CNB_API_KEY') as string
|
||||
// CNB_TOKEN是降级兼容变量,推荐使用CNB_API_KEY
|
||||
// CNB_TOKEN 是流水线自己就有的变量,但是权限比较小
|
||||
const token = useKey('CNB_API_KEY') as string || useKey('CNB_TOKEN') as string
|
||||
// cookie 变量是可选的
|
||||
const cookie = useKey('CNB_COOKIE') as string
|
||||
return new CNB({ token: token, cookie: cookie });
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user