Repository navigation
Rigging 0.1.0
Initial 0.1.0 release of Rigging — declarative multi-source settings, batched secret references, and configuration provenance for Swift 6.
Installation (Swift Package Manager)
Add Rigging to your Package.swift (Swift 6.2+, macOS 15+ / iOS 18+ / tvOS 18+ / watchOS 11+ / visionOS 2+ / Linux):
dependencies: [
.package(url: "https://github.com/SamPetherbridge/Rigging.git", from: "0.1.0"),
]Added
Rigging&RiggingMacros:@Settingsand@Rigged(SwiftUI-safe alias) attached macros synthesizing multi-source loading, nested@NestedSettingscomposition,$fieldSettingMetadata<Value>provenance projections,ProvenanceReportgeneration, and Draft 2020-12 JSON Schema /.env/ Markdown exporters with zero runtimeMirrorreflection.@Settingand@SecretSettingpeer macros supportingaliases(.env,.configPath,.cli), typedSettingValidator<T>rules,SettingTransform<T>andSecretTransformpipelines, doc-comment extraction, and compile-time diagnostics.
RiggingCore(Zero External Dependencies):- Deterministic 8-layer configuration cascade (
InitSource,EnvironmentSource,DotEnvSource,SecretsDirSource,ProjectConfigSource,UserConfigSource,ManagedPreferencesSource, and Swift defaults) with full winning and shadowedSettingOriginprovenance. - RFC-compatible
.envparser supportingexport, single/double/unquoted strings, multiline PEM blocks,#comments,${VAR}/${VAR:-default}/${VAR-default}interpolation, and exact 1-based line tracking. - Upward project config discovery (stopping inclusively at
.gitor$HOME), XDG / Application Support user config lookup, named"profiles"overlays, andExtraKeysPolicy(.ignore,.warn,.forbid,.allow). - Rich
SettingValueDecodablesupport for scalars, flexibleBoolliterals, fixed-width integers, floating-point types,Decimal,UUID,URL, ISO-8601Date,Data,Duration(30s,500ms,5m,1h),ByteCount(512KB,10MB,2GiB), case-insensitiveRawRepresentableenums, andEnvCollectionStrategycollections. - Leak-proof
Secret<Value>("**********"across descriptions,Mirror, and defaultEncodable),Synchronization.Mutex-backedDiagnosticRedactor, atomic0700/0600withEphemeralFilematerializer with zero-overwrite cleanup, two-phase batchedSecretResolverwith TTLSecretResolutionCache,FileSecretProvider(0600check), andIndirectEnvProvider. - Multi-issue
SettingsValidationErroraggregation (LocalizedError+ deterministic JSON payload) with exit code taxonomy (2validation/missing,4unsafe secret storage,6external provider failure) andSettingsWatcherlive reloader (SIGHUP+ file polling).
- Deterministic 8-layer configuration cascade (
- Secret Provider Modules:
RiggingOnePassword: Single-passop injectbatch resolution over in-memory pipes with 128-bit cryptographic boundary nonces, OTP & document support, Service Account &--accountrouting, and 1Password Connect REST API support (FoundationNetworkingcompatible on Linux).RiggingKeychain: Direct in-processSecurity.frameworkSecItemCopyMatchinglookups for generic and internet passwords (accessGroup,synchronizable).RiggingBitwarden: Bitwarden Secrets Manager (bws://) and Vault CLI (bw://) batch resolution.RiggingUnixPass:pass(pass://line,#full,#line:N, and#keymetadata extraction) andsops(sops://in-memory RFC 6901 JSON Pointer resolution).
- Ecosystem & Format Modules:
RiggingArgumentParser: Non-clobberingParsableArguments/RiggingCLIOptionsbridge (omitting unsetniloptionals) and turnkeyConfigSubcommand<Settings>(config show,config doctor,config schema,config init).RiggingSwiftConfiguration: Bidirectional adapter (SwiftConfigurationSourceandasConfigProvider()/asConfigReader()) forapple/swift-configurationpreservingisSecret: trueon all@SecretSettingfields.RiggingTOML: Zero-dependency pure-Swift TOML v1.0 parser andTOMLProjectConfigSource/TOMLUserConfigSource.RiggingYAML:Yams-backedYAMLFileSource,YAMLProjectConfigSource, andYAMLUserConfigSourcewith<<merge-key andprofilessupport.RiggingTesting: HermeticSettingsContext.inMemory(...),InMemoryFileSystem,MockOnePasswordProvider,MockKeychainProvider,MockSubprocessRunner, andTestFixtures.
- Documentation & Tooling:
- Multi-module Apple DocC catalogs across all 11 library products with Swift Package Index (
.spi.yml) configuration andswift-docc-pluginintegration.
- Multi-module Apple DocC catalogs across all 11 library products with Swift Package Index (
Full Changelog: https://github.com/SamPetherbridge/Rigging/commits/0.1.0