fix(ci): schema-version literal, CLI core-mock spreads, plugin-sdk type-only exports, restore pruned i18n keys

This commit is contained in:
gsxdsm
2026-06-04 03:38:05 -07:00
parent da844b86f0
commit e711e6e0fd
10 changed files with 221 additions and 96 deletions

View File

@@ -98,14 +98,11 @@ 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";
// NOTE (U8): trait-contribution VALIDATION lives in @fusion/core
// (validatePluginTraitContribution) and runs engine-side at registration.
// It is deliberately NOT re-exported here — plugin-sdk's built artifact must
// carry no @fusion runtime specifiers (see cli plugin-sdk-export test); only
// type-level re-exports are allowed from @fusion/core.
const SLUG_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;