/** * 插件公共接口(第三方唯一入口面)。 * 第三方插件:`import type { CotycPlugin, PluginContext } from '.../plugin-public'` * * 能力范围: * - register(phase, fn):在时轮相位注册月度钩子(clocks 红线:phase 固定,勿自创) * - beforePhase/afterPhase(phase, fn):phase 前后锚点(0.1.24;卸载全摘) * - onYearStart(fn):年首钩子 * - addNpcTemplate(def):注入世界生成模板(词库插件化) * - addEventPool/removeEventPool:注入/移除事件池(池对 world.eventPools 全量聚合) * - addCapability/removeCapability/enableCapability:能力卡(系统开关;受旺启停联动) * - overridePack/resetPack:数据包覆写/回滚(pack() 单源) * 纪律:插件内不得新增 w.rng.next() 消耗(会移动全局随机序列 → 金钟罩红); * 必须消耗时必须声明并随 0.1.x 基线重算。 */ export type { CotycPlugin, PluginHookGuard, PluginContext, PluginKind, PluginStatus, PluginChange } from './kernel/plugin' /** 0.1.30 API 全清单(Context 方法快照): * register / onYearStart / beforePhase / afterPhase / addCapability / removeCapability / * enableCapability / overridePack / resetPack / addEventPool / removeEventPool / * addNpcTemplate / addPillRecipe / addForgeRecipe / addWorldGenPool(part, source?) / * addCalamity(name, {brief?,family?,effect?}) * 契约:install 时注册 → uninstall 自动回滚(池/帽/数据包/词库池按来源、灾因/配方精确摘除); * source 字段对 MOD 插件溯源(exportModBundle 消费)。 */ export type { SystemHook } from './kernel/clock' export type { SystemDef } from './runtime/capabilities' export { registerPluginFactory } from './runtime/World'