oneie 5.3.5 → 5.4.0
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.
- package/dist/package.json +3 -3
- package/dist/src/key.js +4 -2
- package/dist/src/lib/vaultfile.js +2 -1
- package/dist/src/wallet.js +6 -4
- package/package.json +2 -2
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "oneie",
|
|
3
|
-
"version": "5.
|
|
2
|
+
"name": "@oneie/cli",
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "ONE agent CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"commander": "^12.0.0",
|
|
23
|
-
"@oneie/sdk": "^0.
|
|
23
|
+
"@oneie/sdk": "^0.17.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@oneie/evals": "^0.2.0",
|
package/dist/src/key.js
CHANGED
|
@@ -44,10 +44,12 @@ function labelFor(d) {
|
|
|
44
44
|
? 'v2 — standard paths (BIP-44 / SLIP-0010). Any BIP-39 wallet recovers these.'
|
|
45
45
|
: 'v1 — original ONE derivation (HKDF labels). Only one.ie and @oneie/recover derive these.';
|
|
46
46
|
}
|
|
47
|
-
/** Field by field from the
|
|
47
|
+
/** Field by field from the known chains — a private key has no route into the value.
|
|
48
|
+
* `asi` exists only under v2; a v1 key gets no key for it, not an empty line. */
|
|
48
49
|
function addressesOf(w) {
|
|
49
50
|
const pick = (c) => w.keys.find((k) => k.chain === c)?.address ?? '';
|
|
50
|
-
|
|
51
|
+
const asi = pick('asi');
|
|
52
|
+
return { sui: pick('sui'), evm: pick('evm'), sol: pick('sol'), btc: pick('btc'), ...(asi ? { asi } : {}) };
|
|
51
53
|
}
|
|
52
54
|
function fail(cmd, error) {
|
|
53
55
|
if (jsonMode(cmd))
|
|
@@ -161,7 +161,8 @@ function otherWallets(restore) {
|
|
|
161
161
|
if (restore.derivation === 'v2') {
|
|
162
162
|
return [
|
|
163
163
|
'These words also open in: MetaMask (Ethereum), Phantom (Solana), Sui Wallet / Slush (Sui),',
|
|
164
|
-
' Sparrow or BlueWallet (Bitcoin, native SegWit)
|
|
164
|
+
' Sparrow or BlueWallet (Bitcoin, native SegWit), ASI Alliance Wallet (ASI).',
|
|
165
|
+
' The first account in each is the address above.',
|
|
165
166
|
];
|
|
166
167
|
}
|
|
167
168
|
return [
|
package/dist/src/wallet.js
CHANGED
|
@@ -267,7 +267,7 @@ export function walletCmd() {
|
|
|
267
267
|
out(cmd, okWrap(result));
|
|
268
268
|
});
|
|
269
269
|
cmd.command('keygen')
|
|
270
|
-
.description('Generate or recover a self-hosted wallet locally —
|
|
270
|
+
.description('Generate or recover a self-hosted wallet locally — Sui/EVM/Sol/BTC, plus ASI under v2, fully offline, never touches the network or a server. Prints once by default; use --out for scripted bulk provisioning')
|
|
271
271
|
.option('--recover', 'Recover from a 24-word BIP-39 mnemonic (ONE_WALLET_MNEMONIC env or stdin) instead of generating a fresh one')
|
|
272
272
|
.option('--derivation <v>', 'v2 (default for a fresh key — what one.ie mints) or v1. With --recover the default is v1: the words carry no marker, and a v1 key recovers its v1 addresses forever')
|
|
273
273
|
.option('--out <file>', 'Write the mnemonic + keys to a file at mode 0600 instead of printing once')
|
|
@@ -286,7 +286,7 @@ export function walletCmd() {
|
|
|
286
286
|
});
|
|
287
287
|
// ── the encrypted wallet folder ────────────────────────────────────────────
|
|
288
288
|
cmd.command('new')
|
|
289
|
-
.description('Create an encrypted wallet in this folder — 24 words sealed with a passphrase, four chains, fully offline')
|
|
289
|
+
.description('Create an encrypted wallet in this folder — 24 words sealed with a passphrase, four chains (five under v2, with ASI), fully offline')
|
|
290
290
|
.option('--dir <path>', 'Project directory', '.')
|
|
291
291
|
.option('--recover', 'Seal an EXISTING 24-word phrase instead of generating a new one (ONE_WALLET_MNEMONIC or stdin)')
|
|
292
292
|
.option('--derivation <v>', 'v2 (default for a fresh wallet — what one.ie mints) or v1. With --recover the default is v1: the words carry no marker, and a v1 key recovers its v1 addresses forever')
|
|
@@ -464,12 +464,14 @@ export function signingKeys(source) {
|
|
|
464
464
|
const keys = (source && typeof source === 'object' ? source['keys'] : undefined);
|
|
465
465
|
return (Array.isArray(keys) ? keys : []).filter((k) => !!k && typeof k.chain === 'string' && typeof k.address === 'string' && typeof k.privateKeyHex === 'string');
|
|
466
466
|
}
|
|
467
|
-
// Chain-name spellings a keygen output may use -> the
|
|
467
|
+
// Chain-name spellings a keygen output may use -> the five columns wallet:create
|
|
468
468
|
// declares. `eth`/`sol` are the SDK's WalletChain spellings; `evm`/`solana` are the
|
|
469
|
-
// server's.
|
|
469
|
+
// server's. Must cover every chain proveAddresses signs, or the confirm screen
|
|
470
|
+
// shows fewer addresses than the agent registration sends.
|
|
470
471
|
const REGISTER_CHAINS = {
|
|
471
472
|
sui: 'sui', evm: 'evm', eth: 'evm', ethereum: 'evm',
|
|
472
473
|
sol: 'solana', solana: 'solana', btc: 'btc', bitcoin: 'btc',
|
|
474
|
+
asi: 'asi', fetch: 'asi',
|
|
473
475
|
};
|
|
474
476
|
/**
|
|
475
477
|
* Reduce ANY keygen-shaped object to public receiving addresses. This is a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneie",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "ONE agent CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"commander": "^12.0.0",
|
|
23
|
-
"@oneie/sdk": "^0.
|
|
23
|
+
"@oneie/sdk": "^0.17.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@oneie/evals": "^0.2.0",
|