feat(engine): plugin-contributed traits — async-only hooks, pre-evaluated gates, live-dependent disable guard (U8)
This commit is contained in:
@@ -78,6 +78,9 @@ export type {
|
||||
PluginLogger,
|
||||
PluginSkillContribution,
|
||||
PluginWorkflowStepContribution,
|
||||
PluginTraitContribution,
|
||||
PluginTraitHookDescriptor,
|
||||
PluginTraitFlags,
|
||||
PluginPromptSurface,
|
||||
PluginPromptContribution,
|
||||
PluginPromptContributions,
|
||||
@@ -95,6 +98,15 @@ export type {
|
||||
|
||||
import type { FusionPlugin } from "@fusion/core";
|
||||
|
||||
// Re-export the trait contribution validator + constants so plugin authors can
|
||||
// validate their trait manifests with the same rules the engine enforces (U8).
|
||||
export {
|
||||
validatePluginTraitContribution,
|
||||
PLUGIN_TRAIT_RESTRICTED_FLAGS,
|
||||
PLUGIN_TRAIT_ALLOWED_HOOK_POINTS,
|
||||
PLUGIN_TRAIT_SCHEMA_VERSION,
|
||||
} from "@fusion/core";
|
||||
|
||||
const SLUG_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
||||
|
||||
export function validatePluginManifest(manifest: unknown): { valid: boolean; errors: string[] } {
|
||||
|
||||
Reference in New Issue
Block a user