Skip to content

refactor: simplify CLI and SDK interfaces#45

Merged
bordumb merged 10 commits intomainfrom
fn-42
Mar 7, 2026
Merged

refactor: simplify CLI and SDK interfaces#45
bordumb merged 10 commits intomainfrom
fn-42

Conversation

@bordumb
Copy link
Contributor

@bordumb bordumb commented Mar 7, 2026

No description provided.

bordumb added 10 commits March 7, 2026 18:29
Delete truncate_did() from status.rs and trust.rs, and short_did()
from init_helpers.rs. All CLI output now displays the complete DID
string so users can copy-paste without ambiguity.
Hide 15 advanced commands (id, device, key, policy, etc.) from
`auths --help` while keeping them fully functional and available
in shell completions. Updated long_about to list hidden commands
for discoverability.
New top-level command that shows the current identity DID on this
machine. Supports --json mode. Shows actionable error when no
identity is initialized.
Hide no-qr, offline, capabilities, and no-mdns flags behind --help
while keeping them visible in long help. Short help now shows only
join, registry, and timeout.
Destructive/high-impact operations now support --dry-run to preview
actions without making changes. All three respect --json mode for
machine-readable output.
When --device-key-alias is not provided, the CLI now auto-detects
the device key by looking up key aliases for the current identity.
Works when exactly one key exists; provides actionable errors for
zero or multiple keys.
sign commit range, derive-did, and pubkey-to-did now produce
structured JSON output when --json is set.
All PyRuntimeError messages now carry [AUTHS_*] prefixes that the
Python-side _map_error() can parse into typed exceptions (KeychainError,
StorageError, IdentityError, etc.).
Rename key_alias to _key_alias on Identity, AgentIdentity, and
DelegatedAgent dataclasses. The field is excluded from repr output
but still accessible internally for FFI calls.
- extract_seed_from_pkcs8 now takes &Pkcs8Der instead of &Zeroizing<Vec<u8>>
- build_ed25519_pkcs8_v2_from_seed returns Pkcs8Der instead of Zeroizing<Vec<u8>>
- extract_pubkey_from_key_bytes takes &[u8] instead of &Zeroizing<Vec<u8>>
- Updated all callers in auths-sdk, auths-core, and auths-cli
@bordumb bordumb self-assigned this Mar 7, 2026
@vercel
Copy link

vercel bot commented Mar 7, 2026

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

Project Deployment Actions Updated (UTC)
auths Ready Ready Preview, Comment Mar 7, 2026 7:49pm

@bordumb bordumb changed the title Fn 42 refactor: simplify CLI and SDK interfaces Mar 7, 2026
@bordumb bordumb merged commit b203e13 into main Mar 7, 2026
7 of 8 checks passed
@bordumb bordumb deleted the fn-42 branch March 7, 2026 19:49
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