/** * Config schema defaults and runtime metadata for goodvibes-sdk. */ /** * Every module that augments `GoodVibesConfig`, imported for its declarations. * * `GoodVibesConfig` is assembled by declaration merging: each schema-domain * module contributes its own `declare module … { interface GoodVibesConfig }` * block. Those blocks only exist in a program that has loaded the module, and * the VALUE imports below (`import { clusterConfigDefaults } from …`) do NOT * survive declaration emit, TypeScript drops an import from a `.d.ts` when the * emitted declarations do not reference its types. * * The result was a published type that silently omitted domains. Measured * before this block existed: importing `GoodVibesConfig` from * `@pellux/goodvibes-sdk/platform/config` produced a type where * `conversationGate` and `voice` were absent, so a consumer writing * `config.getCategory('conversationGate')` got a compile error against a key * that ships and works. Two of this repository's own tests hit exactly that * once `test/` started being typechecked. * * A bare side-effect import IS preserved in the emitted `.d.ts` (verified by * inspecting dist/platform/config/schema.d.ts), so these lines are what carries * the augmentations to consumers. `import type {}` is not, it is erased. * * These modules are already imported for their values below, so this adds no * runtime cost and no new dependency; it only pins them into the declarations. */ import './schema-domain-cluster.js'; import './schema-domain-connectors.js'; import './schema-domain-conversation-gate.js'; import './schema-domain-device.js'; import './schema-domain-features.js'; import './schema-domain-fleet.js'; import './schema-domain-hosted-sessions.js'; import './schema-domain-learning.js'; import './schema-domain-memory.js'; import './schema-domain-owner-profile.js'; import './schema-domain-power.js'; import './schema-domain-push.js'; import './schema-domain-runtime.js'; import './schema-domain-update.js'; import './schema-domain-voice-local.js'; import type { ConfigKey, ConfigSetting, GoodVibesConfig } from './schema-types.js'; export * from './schema-types.js'; export declare const DEFAULT_CONFIG: GoodVibesConfig; export declare const CONFIG_SCHEMA: ConfigSetting[]; /** Set of all valid config keys for runtime validation. */ export declare const CONFIG_KEYS: Set; /** Type guard: returns true if key is a valid ConfigKey. */ export declare function isValidConfigKey(key: string): key is ConfigKey; //# sourceMappingURL=schema.d.ts.map