@pelayo2010/config
v1.0.0
Published
ConfÍA Core — config (configuración estructural del Core; sólo tipos)
Maintainers
Readme
@pelayo2010/config
Paquete del Core de ConfÍA Platform: configuración estructural del Core.
Nivel 4 del bootstrap. Única dependencia permitida: @pelayo2010/types.
Reglas del paquete:
- Sólo
typeeinterface. Cero runtime: el paquete no emite JavaScript. - Cero estado global, cero singletons, cero inicialización.
- Cero lectura de
process.env/import.meta.env, ficheros o red. - Cero validación runtime: es responsabilidad de
adapters(ADR-002). - Los errores se expresan como códigos sobre
CoreError(ADR-004). - No contiene configuración de aplicaciones concretas ni de infraestructura.
Estructura
| Fichero | Contenido | Clasificación |
|---|---|---|
| src/values.ts | ConfigPrimitive, ConfigValue, ConfigObject | Tipo estructural |
| src/key.ts | ConfigKey, ConfigKeyType, ConfigKeyDefinition | Tipo estructural + interfaz |
| src/schema.ts | ConfigSchema | Tipo estructural |
| src/source.ts | ConfigSource, ConfigSourceName, RawConfigInput, ConfigKeyMapping | Interfaz + tipos |
| src/snapshot.ts | ConfigSnapshot, ReadableConfig | Tipo estructural + interfaz |
| src/errors.ts | ConfigError, ConfigErrorCode | Tipo estructural |
| src/index.ts | Superficie pública única | — |
- Trazabilidad y verificaciones:
core/docs/IMPLEMENTATION_CONFIG_V1.md
