mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
The per-app signing-authorization plumbing was named/located under `napplet/` for historical reasons, but it is not napplet-specific — it already gates napplets, the sandboxed browser, and (now) NIP-46 remote clients through one shared ledger. The package name mislabelled what the code is, so: - commons: `napplet/signers/` (generic) → `connectedApps/signers/` (AppSignerPolicy, NostrOpDecision, NostrSignerOp, NostrSignerConsentPrompt, NostrSignerPermissionLedger/Store). The NIP-46-specific bridge moves to `connectedApps/nip46/` (Nip46PermissionAuthorizer, Nip46ClientStore), so the feature is no longer split across unrelated packages. - The `NappletRequest.toSignerOp()` extension — napplet protocol leaking into the generic layer — moves back to `napplet/protocol/`. - amethyst: `napplet/DataStoreNostrSignerPermissionStore` → `connectedApps/`, `napplet/DataStoreNip46ClientStore` → `connectedApps/nip46/`. Pure move + repackage: all 27 import sites updated, no behaviour change. Napplet-specific code (broker, capabilities, consent, :nappletHost) and the Connected Apps UI folder are untouched — those really are napplet/UI. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015FHr2mu5SiHwYNR7evYUuF