- Added a "Since" column to all command tables in the README to indicate version availability.
- Noted that unit tests for admin commands were introduced in v0.11.0 using Vitest.
- Update @nostr-dev-kit/ndk to use local patched version
- NDK patch fixes async error handling in NIP-46 backend
- Fixes nip44_encrypt requests not returning responses
- Bump version to 0.11.2
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Use Prisma to upsert key details upon creation.
- Add database mocking for related unit tests.
- Ensure `create_new_key` saves keyName and pubkey for future operations.
The policyId parameter comes as a string from NIP-46 RPC params but
Prisma expects an integer for the Token.policyId field. Added parseInt()
to convert the string to integer before passing to prisma.token.create().
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
BREAKING CHANGE: Admin API now uses kind 24133 instead of 24134
This release adds 11 new admin methods and ensures full NIP-46 compliance
by switching from the non-standard kind 24134 to the spec-compliant 24133.
## New Admin Methods
### Key Management
- `get_key` - Get details about a specific key
- `delete_key` - Soft-delete a key and its tokens
- `rotate_key` - Create new key and migrate permissions
### Policy Management
- `get_policy` - Get policy details with rules
- `delete_policy` - Soft-delete a policy
### Permission Management
- `grant_permission` - Grant user access with a policy
- `revoke_permission` - Revoke user's access to a key
- `get_permissions` - Get user's permissions on a key
### Token Management
- `get_token` - Get token details
- `revoke_token` - Soft-delete a token
- `validate_token` - Check if a token is valid
## NIP-46 Compliance
Changed all admin communication from kind 24134 to kind 24133
(NDKKind.NostrConnect) to comply with the NIP-46 specification.
Kind 24134 was never part of the official spec.
## Other Changes
- Added Vitest test framework with 93 tests
- Fixed TypeScript compilation errors
- Updated documentation with breaking change notice
- Version bump to 0.11.0
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Fix compatibility with nostr-tools v2 which changed nip19 encoding/decoding
to use Uint8Array instead of hex strings
- Add hex utility functions (bytesToHex, hexToBytes) for conversion
- Fix null kind handling in create_new_policy to prevent database errors
when policy rules have no kind specified
- Default method to "sign_event" when not specified in policy rules
- Bump version to 0.10.6
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>