refactor: 迁移到新库

This commit is contained in:
手瓜一十雪 2024-07-05 15:48:03 +08:00
parent 61cfa0e86d
commit 56d6ebe916
6 changed files with 0 additions and 35 deletions

View File

@ -1,4 +1,3 @@
import { NodeIKernelMsgListener } from '@/core';
import { NodeIQQNTWrapperSession } from '@/core/wrapper';
import { randomUUID } from 'crypto';

View File

@ -1,2 +0,0 @@
//统一到处入口
export * from './main';

View File

@ -1,29 +0,0 @@
enum NapCatCorePlatform {
Node = 'Node',//命令行模式加载
LiteLoader = 'LiteLoader',//LL插件模式加载
}
class NewNapCatCore {
platform: NapCatCorePlatform; // 平台
constructor(platform: NapCatCorePlatform) {
this.platform = platform;
}
}
export class NapCatCoreManger {
static core: NewNapCatCore | undefined = undefined;
static defaultPlatform: NapCatCorePlatform = NapCatCorePlatform.Node;
static SetDefaultCore(platform: NapCatCorePlatform) {
if (this.core !== undefined) {
return;
}
this.defaultPlatform = platform;
}
static GetPlatform(): NapCatCorePlatform {
return NapCatCoreManger.defaultPlatform;
}
static GetInstance(): NewNapCatCore {
if (this.core === undefined) {
this.core = new NewNapCatCore(NapCatCoreManger.defaultPlatform);
}
return this.core;
}
}

View File

@ -1 +0,0 @@
//拦截proxy到会话

View File

@ -1 +0,0 @@
//初始化跟之前一样

View File

@ -1 +0,0 @@
//proxy封装工具类