Skip to content

Methods ​

diagnostics() ​

diagnostics(): SkillDiagnostic[]

Returns ​

SkillDiagnostic[]


invalidate() ​

invalidate(): void

清空全部缓存(安装 / 卸载 / 手工改盘后调用)

Returns ​

void


load() ​

load(name): Promise<SkillDefinition | undefined>

按需读取正文,每次重新读盘;名字变化时返回 undefined 并让下次重扫

Parameters ​

name ​

string

Returns ​

Promise<SkillDefinition | undefined>


roots() ​

roots(): SkillRoot[]

Returns ​

SkillRoot[]


snapshot() ​

snapshot(options?): Promise<SkillSummary[]>

技能摘要列表;带 TTL 与 mtime 缓存

Parameters ​

options? ​
force? ​

boolean

Returns ​

Promise<SkillSummary[]>

Released under the MIT License with love.