mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 06:31:13 +00:00
Added the new napcat-protocol package with protocol config, event, API, and network management modules. Introduced napcat-adapter package to unify protocol adapter management, replacing direct OneBot usage in framework and shell. Updated napcat-framework and napcat-shell to use NapCatAdapterManager for protocol initialization and registration. Adjusted dependencies and Vite configs to include new packages.
12 lines
409 B
TypeScript
12 lines
409 B
TypeScript
import { ConfigBase } from 'napcat-core';
|
|
import { NapCatCore } from 'napcat-core';
|
|
import { NapCatProtocolConfig, NapCatProtocolConfigSchema } from './config';
|
|
|
|
export class NapCatProtocolConfigLoader extends ConfigBase<NapCatProtocolConfig> {
|
|
constructor (core: NapCatCore, configPath: string) {
|
|
super('napcat_protocol', core, configPath, NapCatProtocolConfigSchema);
|
|
}
|
|
}
|
|
|
|
export * from './config';
|