feat(engine): plugin-contributed traits — async-only hooks, pre-evaluated gates, live-dependent disable guard (U8)

This commit is contained in:
gsxdsm
2026-06-04 01:43:26 -07:00
parent 66cffe904d
commit 26718a31cc
12 changed files with 1708 additions and 1 deletions

View File

@@ -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[] } {