mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-03 01:41:40 +00:00
* feat(skills): add lifecycle hook contracts * feat(plugins): expose skill hook contracts * feat(plugins): identify skill evaluators * feat(skills): persist proposal evaluation lifecycle * feat(skills): add agent evaluation action * feat(skills): emit committed skill lifecycle changes * feat(gateway): expose skill proposal evaluation lifecycle * feat(ui): add Skill Workshop evaluations * fix(skills): bind lifecycle state to proposal revisions * fix(skills): preserve lifecycle events without artifacts * feat(cli): evaluate skill proposals * fix(ui): bind evaluations to proposal revisions * docs(skills): document lifecycle hook primitives * chore(plugin-sdk): refresh skill hook surface * fix(skills): harden proposal evaluator execution * fix(plugins): isolate skill evaluator inputs * fix(cli): align skill lifecycle deadlines * fix(skills): preserve evaluation replay invariants * test(ui): capture Skill Workshop evaluation proof * fix(skills): bind apply to evaluated target tree * fix(skills): preserve evaluation contract edges * fix(skills): bound evaluation event storage * chore(skills): keep lifecycle helpers internal * refactor(skills): isolate evaluation persistence * fix(skills): satisfy lifecycle validation gates * chore(protocol): refresh Skill Workshop clients * docs: refresh Skill Workshop map * chore: keep release notes in PR metadata * docs: refresh merged docs map * fix(ci): type Code Mode catch errors * fix(skills): freeze lifecycle observation payloads * fix(protocol): keep proposal inspect backward-decodable * fix(skills): enforce final evaluator bundle limits * fix(skills): preserve lifecycle caller attribution * chore: drop subsumed Code Mode formatting * test(plugins): adapt lifecycle hook mocks
28 lines
863 B
TypeScript
28 lines
863 B
TypeScript
// Defines plugin hook registry entry and dispatch types.
|
|
import type { HookEntry } from "../hooks/types.js";
|
|
import type { PluginHookRegistration as TypedPluginHookRegistration } from "./hook-types.js";
|
|
|
|
/** Legacy hook registration stored by the global hook runner registry. */
|
|
type PluginLegacyHookRegistration = {
|
|
pluginId: string;
|
|
entry: HookEntry;
|
|
events: string[];
|
|
source: string;
|
|
rootDir?: string;
|
|
};
|
|
|
|
/** Hook runner registry state for legacy and typed plugin hooks. */
|
|
export type HookRunnerRegistry = {
|
|
hooks: PluginLegacyHookRegistration[];
|
|
typedHooks: TypedPluginHookRegistration[];
|
|
};
|
|
|
|
/** Global hook runner registry snapshot with plugin load status. */
|
|
export type GlobalHookRunnerRegistry = HookRunnerRegistry & {
|
|
plugins: Array<{
|
|
id: string;
|
|
packageVersion?: string;
|
|
status: "loaded" | "disabled" | "error";
|
|
}>;
|
|
};
|