Skip to content

refactor(auths-sdk,auths-cli): API surface — initialize(), rename SDK functions#39

Merged
bordumb merged 3 commits intomainfrom
fn-35
Mar 6, 2026
Merged

refactor(auths-sdk,auths-cli): API surface — initialize(), rename SDK functions#39
bordumb merged 3 commits intomainfrom
fn-35

Conversation

@bordumb
Copy link
Contributor

@bordumb bordumb commented Mar 6, 2026

Summary

  • Replace create_developer_identity / create_ci_identity / create_agent_identity with single initialize(IdentityConfig) entry point
  • Add IdentityConfig enum (Developer/Ci/Agent variants), InitializeResult enum, rename result types
  • sign_artifact_attestationsign_artifact
  • extend_device_authorizationextend_device
  • compute_allowed_signersgenerate_allowed_signers
  • acquire_mcp_tokenexchange_token (with injected reqwest::Client)
  • Promote AuthsContext builder to compile-time typestate (fn-35.7)
  • Update all CLI call sites, Python FFI bindings, tests, and internal SDK usage

Test plan

  • cargo build -p auths-sdk --all-features — clean
  • cargo build -p auths-cli --all-features — clean
  • cargo check --manifest-path packages/auths-python/Cargo.toml — clean
  • All pre-push hooks pass (fmt, clippy, unit tests, python bindings, wasm, cross-check linux/windows)

bordumb added 3 commits March 6, 2026 22:01
…ation_source to compile-time typestate

AuthsContextBuilder gains IS, AS, ASrc generics mirroring R/K/C.
build() is now infallible (returns AuthsContext, not Result<AuthsContext>).
BuilderError is removed. All call sites updated: .build()? / .build().unwrap() -> .build().
…lize(), rename SDK functions for cross-layer consistency

- Replace create_developer_identity/create_ci_identity/create_agent_identity with single initialize(IdentityConfig)
- Add IdentityConfig enum (Developer/Ci/Agent variants) and CiIdentityConfig struct
- Add InitializeResult enum; rename result types to DeveloperIdentityResult/CiIdentityResult/AgentIdentityResult
- Rename sign_artifact_attestation -> sign_artifact
- Rename extend_device_authorization -> extend_device
- Rename compute_allowed_signers -> generate_allowed_signers
- Rename acquire_mcp_token -> exchange_token; inject reqwest::Client as parameter
- Update all CLI call sites, tests, and internal SDK usage
@vercel
Copy link

vercel bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
auths Ready Ready Preview, Comment Mar 6, 2026 10:41pm

@bordumb bordumb merged commit 6e9cec7 into main Mar 6, 2026
8 checks passed
@bordumb bordumb deleted the fn-35 branch March 8, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant