perf(plugin-sdk): split channel secret runtime helpers

This commit is contained in:
Vincent Koc
2026-04-07 13:08:15 +01:00
parent de3f742221
commit dfb6c9c920
22 changed files with 425 additions and 333 deletions

View File

@@ -0,0 +1,29 @@
// Narrow shared secret-contract exports for non-TTS channel/plugin secret surfaces.
export {
collectConditionalChannelFieldAssignments,
collectNestedChannelFieldAssignments,
collectSimpleChannelFieldAssignments,
getChannelRecord,
getChannelSurface,
hasConfiguredSecretInputValue,
isBaseFieldActiveForChannelSurface,
normalizeSecretStringValue,
resolveChannelAccountSurface,
} from "../secrets/channel-secret-basic-runtime.js";
export type {
ChannelAccountEntry,
ChannelAccountPredicate,
ChannelAccountSurface,
} from "../secrets/channel-secret-basic-runtime.js";
export {
collectSecretInputAssignment,
hasOwnProperty,
isEnabledFlag,
pushAssignment,
pushInactiveSurfaceWarning,
pushWarning,
} from "../secrets/runtime-shared.js";
export type { ResolverContext, SecretDefaults } from "../secrets/runtime-shared.js";
export { isRecord } from "../secrets/shared.js";
export type { SecretTargetRegistryEntry } from "../secrets/target-registry-types.js";