Skip to content

0.2.0

Choose a tag to compare

@SamPetherbridge SamPetherbridge released this 20 Nov 01:53
· 4 commits to main since this release

Release 0.2.0 of Rigging — preserving literal spaces in 1Password CLI references and surfacing structured 1Password rate-limit errors.

Installation (Swift Package Manager)

Update Rigging in 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.2.0"),
]

Added

  • RiggingCore:
    • Add SecretResolutionError.rateLimited(scheme:message:retryAfter:remediation:) (exitCode == 6 / .providerFailure) so callers switching on provider errors can distinguish rate limits from authentication or missing-item failures (#4).
    • Add ValidationIssue.isRateLimited (Bool) and ValidationIssue.retryAfter (Duration?) — also exposed as isRateLimited and retryAfterSeconds in SettingsValidationError.jsonPayload() — while keeping existing ValidationIssue initialisers and Codable payloads source- and wire-compatible (#4).

Fixed

  • RiggingOnePassword:
    • Classify 1Password CLI (op inject / op) rate-limit stderr (Try again in <N> second(s)) and 1Password Connect HTTP 429 responses (Retry-After delta-seconds) as SecretResolutionError.rateLimited with bounded retryAfter (nil when absent, non-numeric, negative, zero, HTTP-date, or out of range) without echoing stderr or HTTP bodies (#4).
  • RiggingCore & RiggingOnePassword:
    • Preserve literal spaces in OnePasswordSecretReference.opReadURI so op inject and op read succeed with space-containing vault, item, section, and field names instead of failing with invalid character in secret path: %, while keeping 1Password Connect HTTP path encoding separate and rejecting CLI delimiter/template-breaking characters (#5).

Full Changelog: 0.1.0...0.2.0