This commit is contained in:
xiongxiao
2026-01-13 17:04:43 +08:00
parent 1d7a51f76c
commit cedf3236b0
6 changed files with 39 additions and 384 deletions

View File

@@ -31,7 +31,6 @@ export class CNB extends CNBCore {
const cookie = this.cookie;
const options = { token, cookie };
this.workspace = new Workspace(options.token);
const group = cnbOptions?.group || '';
this.knowledgeBase = new KnowledgeBase({ token: options.token, cookie: options.cookie });
this.repo = new Repo({ token: options.token, cookie: options.cookie });
this.user = new User({ token: options.token, cookie: options.cookie });
@@ -39,10 +38,6 @@ export class CNB extends CNBCore {
this.issue = new Issue({ token: options.token, cookie: options.cookie });
this.mission = new Mission({ token: options.token, cookie: options.cookie });
this.ai = new AiBase({ token: options.token, cookie: options.cookie });
this.group = group;
}
setGroup(group: string) {
this.group = group;
}
setToken(token: string) {
this.token = token;