@equalfi/ski 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/bin/cli.js +3 -2
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -12,7 +12,7 @@ pnpm dlx @equalfi/ski
12
12
  - Prompts for Position NFT id and Validation Entity ID
13
13
  - Generates a fresh session EOA
14
14
  - Stores encrypted keystore at `~/.openclaw/keys/equalfi/<label>.json`
15
- - Stores the password in your OS keychain (one prompt)
15
+ - Stores the password in your OS keychain (one prompt) via @napi-rs/keyring
16
16
  - Prints the session key address to paste into the UI
17
17
 
18
18
  ## Notes
package/bin/cli.js CHANGED
@@ -5,7 +5,7 @@ const path = require('path');
5
5
  const os = require('os');
6
6
  const crypto = require('crypto');
7
7
  const prompts = require('prompts');
8
- const keytar = require('keytar');
8
+ const { Entry } = require('@napi-rs/keyring');
9
9
  const { Wallet } = require('ethers');
10
10
 
11
11
  const SERVICE = 'equalfi-ski';
@@ -102,7 +102,8 @@ async function main() {
102
102
  );
103
103
 
104
104
  try {
105
- await keytar.setPassword(SERVICE, keychainAccount(label), password);
105
+ const entry = new Entry(SERVICE, keychainAccount(label));
106
+ entry.setPassword(password);
106
107
  } catch (err) {
107
108
  console.error('Failed to store key in OS keychain:', err?.message || err);
108
109
  console.error('Keystore saved, but you must secure the password manually.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equalfi/ski",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "EqualFi Session Key Installer (interactive CLI)",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "ethers": "^6.13.5",
18
- "keytar": "^7.9.0",
18
+ "@napi-rs/keyring": "^1.2.0",
19
19
  "prompts": "^2.4.2"
20
20
  }
21
21
  }