Skip to content

asc v0.1.4

Choose a tag to compare

@github-actions github-actions released this 24 Feb 09:36
· 1122 commits to main since this release

Added

  • Persistent Auth Login: Save API key credentials to ~/.asc/credentials.json so environment variables are not required on every session.
    • asc auth login --key-id <id> --issuer-id <id> --private-key-path <path> — save credentials to disk
    • asc auth logout — remove saved credentials
    • asc auth check — verify credentials and show their source (file or environment)
    • Credential resolution order: ~/.asc/credentials.json → environment variables (fully backwards-compatible)
    • asc auth check now outputs JSON with an affordances field (same agent-first format as all other commands)

Technical

  • Added AuthStorage @Mockable protocol (save, load, delete) in Domain
  • Added AuthStatus domain model (keyID, issuerID, source: CredentialSource) with AffordanceProviding
  • Added CredentialSource enum (.file / .environment) as Codable String raw value
  • AuthCredentials gains Codable conformance for JSON file serialization
  • FileAuthStorage (Infrastructure) reads/writes ~/.asc/credentials.json using JSONEncoder/JSONDecoder
  • FileAuthProvider (Infrastructure) implements AuthProvider backed by FileAuthStorage
  • CompositeAuthProvider (Infrastructure) tries file credentials first, falls back to EnvironmentAuthProvider
  • ClientProvider updated to use CompositeAuthProvider — all existing commands gain file-based auth transparently