@palmyr/cli 1.5.4 → 1.6.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/app.d.ts +3 -0
- package/dist/app.js +1 -0
- package/dist/app.js.map +1 -1
- package/dist/cli.js +283 -41
- package/dist/cli.js.map +1 -1
- package/dist/credential-store.d.ts +4 -0
- package/dist/credential-store.js +56 -1
- package/dist/credential-store.js.map +1 -1
- package/dist/sdk.d.ts +4 -0
- package/dist/sdk.js +21 -6
- package/dist/sdk.js.map +1 -1
- package/dist/vault.d.ts +49 -2
- package/dist/vault.js +241 -68
- package/dist/vault.js.map +1 -1
- package/package.json +1 -1
package/dist/app.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export type WalletCreateScreenProps = {
|
|
|
72
72
|
mode: string;
|
|
73
73
|
solana: string | null;
|
|
74
74
|
base: string | null;
|
|
75
|
+
tag?: string | null;
|
|
75
76
|
};
|
|
76
77
|
export type WalletStatusScreenProps = {
|
|
77
78
|
version: string;
|
|
@@ -80,6 +81,7 @@ export type WalletStatusScreenProps = {
|
|
|
80
81
|
mode: string;
|
|
81
82
|
solana: string | null;
|
|
82
83
|
base: string | null;
|
|
84
|
+
tag?: string | null;
|
|
83
85
|
};
|
|
84
86
|
export type WalletListScreenProps = {
|
|
85
87
|
version: string;
|
|
@@ -89,6 +91,7 @@ export type WalletListScreenProps = {
|
|
|
89
91
|
mode: string;
|
|
90
92
|
solana: string | null;
|
|
91
93
|
base: string | null;
|
|
94
|
+
tag?: string | null;
|
|
92
95
|
}>;
|
|
93
96
|
};
|
|
94
97
|
export type ComputeDeployScreenProps = {
|
package/dist/app.js
CHANGED
|
@@ -137,6 +137,7 @@ function walletRows(w) {
|
|
|
137
137
|
{ label: 'Name:', value: w.name },
|
|
138
138
|
{ label: 'ID:', value: w.id },
|
|
139
139
|
{ label: 'Mode:', value: w.mode },
|
|
140
|
+
...(w.tag ? [{ label: 'Tag:', value: w.tag }] : []),
|
|
140
141
|
...(w.solana ? [{ label: 'Solana:', value: w.solana }] : []),
|
|
141
142
|
...(w.base ? [{ label: 'Base:', value: w.base }] : []),
|
|
142
143
|
];
|
package/dist/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../app.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqB,SAAS,EAAqB,MAAM,OAAO,CAAA;AAC9E,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAkCjD,gBAAgB;AAEhB,MAAM,CAAC,GAAG;IACR,MAAM,EAAE,QAAQ,EAAS,0CAA0C;IACnE,MAAM,EAAE,aAAa,EAAI,gCAAgC;IACzD,IAAI,EAAE,OAAO,EAAY,eAAe;IACxC,KAAK,EAAE,cAAc,EAAI,gCAAgC;IACzD,KAAK,EAAE,MAAM,EAAY,+BAA+B;IACxD,GAAG,EAAE,aAAa,EAAO,mBAAmB;IAC5C,EAAE,EAAE,OAAO;IACX,GAAG,EAAE,KAAK;CACF,CAAA;AAEV,yBAAyB;AAEzB,SAAS,aAAa,CAAC,EAAE,IAAI,EAAsB;IACjD,IAAI,IAAI;QAAE,OAAO,IAAI,CAAA;IACrB,OAAO,CACL,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,IACxB,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,oBAAC,IAAI,IAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,IAAG,IAAI,CAAQ,CAAC,CAC1E,CACP,CAAA;AACH,CAAC;AAED,qBAAqB;AAErB,SAAS,GAAG,CAAC,KAA4D;IACvE,OAAO,CACL,oBAAC,GAAG;QACF,oBAAC,IAAI,IAAC,KAAK,EAAE,CA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C,UAAU,EAAE,IAAI,EAC7I,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,GAC3H,CAAA;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAwC;IAClE,OAAO,oBAAC,MAAM,IAAC,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,UAAU,EAAE,IAAI,EAAE;YACzI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE;YACzC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;SAC/D,GAAI,CAAA;AACP,CAAC"}
|
package/dist/cli.js
CHANGED
|
@@ -213,13 +213,35 @@ function subcommandHelp(command, subcommand, options) {
|
|
|
213
213
|
const WALLET_HELP = {
|
|
214
214
|
create: [
|
|
215
215
|
{ flag: '--name <name>', desc: 'Wallet name', hint: 'default: "My Wallet"' },
|
|
216
|
-
{ flag: '--managed', desc: 'Create managed wallet with human oversight via passkey' },
|
|
217
|
-
{ flag: '--
|
|
216
|
+
{ flag: '--managed', desc: 'Create managed wallet with human oversight via passkey (single-create only)' },
|
|
217
|
+
{ flag: '--solana', desc: 'Materialize the Solana account only', hint: 'default: both chains' },
|
|
218
|
+
{ flag: '--base', desc: 'Materialize the Base/EVM account only', hint: 'pair with --solana for both (default)' },
|
|
219
|
+
{ flag: '--tag <name>', desc: 'Folder-like grouping tag', hint: 'e.g. palmyr-demo — required with --count' },
|
|
220
|
+
{ flag: '--count <N>', desc: 'Bulk-create N wallets in one call (1-500)', hint: 'unmanaged only; requires --tag' },
|
|
221
|
+
{ flag: '--name-prefix <p>', desc: 'Bulk name prefix; suffixed `-001..-N`', hint: 'default: same as --tag' },
|
|
218
222
|
],
|
|
219
223
|
import: [
|
|
220
224
|
{ flag: '--mnemonic <words>', desc: 'BIP-39 mnemonic phrase (required)' },
|
|
221
225
|
{ flag: '--name <name>', desc: 'Wallet name', hint: 'default: "Imported Wallet"' },
|
|
222
226
|
{ flag: '--managed', desc: 'Import as managed wallet' },
|
|
227
|
+
{ flag: '--solana', desc: 'Materialize the Solana account only' },
|
|
228
|
+
{ flag: '--base', desc: 'Materialize the Base/EVM account only' },
|
|
229
|
+
{ flag: '--tag <name>', desc: 'Assign a tag at import time' },
|
|
230
|
+
],
|
|
231
|
+
tags: [
|
|
232
|
+
{ flag: '(no args)', desc: 'List all tags with wallet count, chains, and date range' },
|
|
233
|
+
],
|
|
234
|
+
tag: [
|
|
235
|
+
{ flag: '<WALLET_ID>', desc: 'Wallet id or name (positional or --id)' },
|
|
236
|
+
{ flag: '<TAG>', desc: 'Tag to assign (positional)' },
|
|
237
|
+
{ flag: '--clear', desc: 'Remove the tag from this wallet instead of assigning one' },
|
|
238
|
+
],
|
|
239
|
+
'tag-delete': [
|
|
240
|
+
{ flag: '<TAG>', desc: 'Tag to wipe (positional)' },
|
|
241
|
+
{ flag: '--confirm', desc: 'Required — deletes every wallet sharing this tag (irreversible)' },
|
|
242
|
+
],
|
|
243
|
+
list: [
|
|
244
|
+
{ flag: '--tag <name>', desc: 'Filter to wallets in this tag' },
|
|
223
245
|
],
|
|
224
246
|
'sign-message': [
|
|
225
247
|
{ flag: '<WALLET_ID>', desc: 'Wallet ID (positional or --id)' },
|
|
@@ -1636,11 +1658,14 @@ async function main() {
|
|
|
1636
1658
|
subtitle: 'Non-custodial HD wallet',
|
|
1637
1659
|
footerLeft: 'Solana + Base wallet operations',
|
|
1638
1660
|
commands: [
|
|
1639
|
-
{ name: 'create', description: 'Create
|
|
1640
|
-
{ name: 'import', description: 'Import from mnemonic', hint: '--mnemonic "..."' },
|
|
1641
|
-
{ name: 'list', description: 'List all wallets' },
|
|
1661
|
+
{ name: 'create', description: 'Create one or many wallets', hint: '[--tag X --count 100] [--solana|--base] [--managed]' },
|
|
1662
|
+
{ name: 'import', description: 'Import from mnemonic', hint: '--mnemonic "..." [--tag X]' },
|
|
1663
|
+
{ name: 'list', description: 'List all wallets', hint: '[--tag <name>]' },
|
|
1642
1664
|
{ name: 'info', description: 'Wallet details', hint: 'WALLET_ID' },
|
|
1643
1665
|
{ name: 'addresses', description: 'Show all chain addresses', hint: 'WALLET_ID' },
|
|
1666
|
+
{ name: 'tags', description: 'List wallet tags with counts' },
|
|
1667
|
+
{ name: 'tag', description: 'Assign / change / clear a wallet tag', hint: 'WALLET_ID TAG | WALLET_ID --clear' },
|
|
1668
|
+
{ name: 'tag-delete', description: 'Cascade-delete every wallet under a tag', hint: 'TAG --confirm' },
|
|
1644
1669
|
{ name: 'sign-message', description: 'Sign a message', hint: 'WALLET_ID --chain evm --msg "hello"' },
|
|
1645
1670
|
{ name: 'export', description: 'Export mnemonic for backup', hint: 'WALLET_ID --confirm' },
|
|
1646
1671
|
{ name: 'api-key', description: 'Create agent API key', hint: 'WALLET_ID --name my-agent' },
|
|
@@ -1679,16 +1704,72 @@ async function main() {
|
|
|
1679
1704
|
switch (subcommand) {
|
|
1680
1705
|
case 'create': {
|
|
1681
1706
|
const isManaged = !!flags.managed;
|
|
1707
|
+
const tagRaw = flags.tag || undefined;
|
|
1708
|
+
const countRaw = flags.count;
|
|
1709
|
+
const count = countRaw !== undefined ? parseInt(String(countRaw), 10) : 1;
|
|
1710
|
+
if (!Number.isFinite(count) || count < 1)
|
|
1711
|
+
err('--count must be a positive integer', EXIT.BAD_INPUT);
|
|
1712
|
+
// Chain filter: --solana / --base. Default (neither) → both chains.
|
|
1713
|
+
const wantSol = !!flags.solana;
|
|
1714
|
+
const wantBase = !!flags.base;
|
|
1715
|
+
const chains = (wantSol && !wantBase) ? ['solana']
|
|
1716
|
+
: (wantBase && !wantSol) ? ['base']
|
|
1717
|
+
: ['solana', 'base'];
|
|
1718
|
+
// ─── Bulk path ───
|
|
1719
|
+
if (count > 1) {
|
|
1720
|
+
if (isManaged)
|
|
1721
|
+
err('Bulk wallet creation only supports unmanaged wallets — managed wallets need per-wallet passkey setup.', EXIT.BAD_INPUT);
|
|
1722
|
+
if (!tagRaw)
|
|
1723
|
+
err('--tag is required when --count > 1', EXIT.BAD_INPUT);
|
|
1724
|
+
if (count > 500)
|
|
1725
|
+
err('--count must be ≤ 500 per call', EXIT.BAD_INPUT);
|
|
1726
|
+
const prefix = flags['name-prefix'] || tagRaw;
|
|
1727
|
+
const { createLocalWalletsBatch } = await import('./vault.js');
|
|
1728
|
+
const { storeSecretsBatch } = await import('./credential-store.js');
|
|
1729
|
+
// Progress to stderr so JSON on stdout stays clean
|
|
1730
|
+
if (!AGENT_MODE)
|
|
1731
|
+
process.stderr.write(`creating ${count} wallets under tag "${tagRaw}"...\n`);
|
|
1732
|
+
const results = createLocalWalletsBatch(prefix, count, 'unmanaged', { tag: tagRaw, chains });
|
|
1733
|
+
if (!AGENT_MODE)
|
|
1734
|
+
process.stderr.write(`sealing ${count} session secrets in OS credential store...\n`);
|
|
1735
|
+
storeSecretsBatch(results.map(r => ({ account: r.id, secret: r.sessionSecret })));
|
|
1736
|
+
log(`wallet create: ${count} wallets under tag "${tagRaw}" (chains=${chains.join(',')})`);
|
|
1737
|
+
if (AGENT_MODE) {
|
|
1738
|
+
print({
|
|
1739
|
+
count: results.length,
|
|
1740
|
+
tag: tagRaw,
|
|
1741
|
+
chains,
|
|
1742
|
+
wallets: results.map(r => ({
|
|
1743
|
+
id: r.id,
|
|
1744
|
+
name: r.name,
|
|
1745
|
+
mode: r.mode,
|
|
1746
|
+
tag: r.tag,
|
|
1747
|
+
chains: r.chains,
|
|
1748
|
+
solana: r.solanaAddress,
|
|
1749
|
+
base: r.evmAddress,
|
|
1750
|
+
})),
|
|
1751
|
+
});
|
|
1752
|
+
}
|
|
1753
|
+
else {
|
|
1754
|
+
console.log(`\n ${t.success}✔${t.reset} Created ${count} wallets under tag ${t.accent}${tagRaw}${t.reset}`);
|
|
1755
|
+
console.log(` ${t.muted}chains:${t.reset} ${chains.join(', ')}`);
|
|
1756
|
+
console.log(` ${t.muted}names: ${t.reset}${results[0].name} … ${results[results.length - 1].name}`);
|
|
1757
|
+
console.log(`\n ${t.muted}List them: ${t.reset}palmyr wallet list --tag ${tagRaw}`);
|
|
1758
|
+
console.log(` ${t.muted}Delete all: ${t.reset}palmyr wallet tag-delete ${tagRaw} --confirm\n`);
|
|
1759
|
+
}
|
|
1760
|
+
break;
|
|
1761
|
+
}
|
|
1762
|
+
// ─── Single-create path ───
|
|
1682
1763
|
// Accept --name (primary) or --label (alias)
|
|
1683
1764
|
const name = flags.name || flags.label || 'My Wallet';
|
|
1684
1765
|
const mode = isManaged ? 'managed' : 'unmanaged';
|
|
1685
1766
|
// Create locally — no server needed for the key material
|
|
1686
1767
|
const { createLocalWallet } = await import('./vault.js');
|
|
1687
|
-
const w = createLocalWallet(name, mode);
|
|
1768
|
+
const w = createLocalWallet(name, mode, { tag: tagRaw, chains });
|
|
1688
1769
|
// Store session secret in OS credential store
|
|
1689
1770
|
const { storeSecret } = await import('./credential-store.js');
|
|
1690
1771
|
storeSecret(w.id, w.sessionSecret);
|
|
1691
|
-
log(`wallet create: ${w.id} (${mode})`);
|
|
1772
|
+
log(`wallet create: ${w.id} (${mode}${tagRaw ? `, tag=${tagRaw}` : ''}, chains=${chains.join(',')})`);
|
|
1692
1773
|
// For managed wallets, register metadata with the server to get a setup link
|
|
1693
1774
|
let setupLink;
|
|
1694
1775
|
if (isManaged) {
|
|
@@ -1723,6 +1804,7 @@ async function main() {
|
|
|
1723
1804
|
mode: w.mode,
|
|
1724
1805
|
solana: w.solanaAddress,
|
|
1725
1806
|
base: w.evmAddress,
|
|
1807
|
+
tag: w.tag,
|
|
1726
1808
|
}));
|
|
1727
1809
|
if (setupLink) {
|
|
1728
1810
|
console.log(`\n ${t.accent}Setup link${t.reset} — send to the human who will manage this wallet:`);
|
|
@@ -1741,8 +1823,14 @@ async function main() {
|
|
|
1741
1823
|
err('--mnemonic "your twelve words..." required');
|
|
1742
1824
|
const name = flags.name || flags.label || 'Imported Wallet';
|
|
1743
1825
|
const mode = flags.managed ? 'managed' : 'unmanaged';
|
|
1826
|
+
const tagRaw = flags.tag || undefined;
|
|
1827
|
+
const wantSol = !!flags.solana;
|
|
1828
|
+
const wantBase = !!flags.base;
|
|
1829
|
+
const chains = (wantSol && !wantBase) ? ['solana']
|
|
1830
|
+
: (wantBase && !wantSol) ? ['base']
|
|
1831
|
+
: ['solana', 'base'];
|
|
1744
1832
|
const { importLocalWallet } = await import('./vault.js');
|
|
1745
|
-
const w = importLocalWallet(name, mnemonic, mode);
|
|
1833
|
+
const w = importLocalWallet(name, mnemonic, mode, { tag: tagRaw, chains });
|
|
1746
1834
|
// Store session secret
|
|
1747
1835
|
const { storeSecret } = await import('./credential-store.js');
|
|
1748
1836
|
storeSecret(w.id, w.sessionSecret);
|
|
@@ -1755,6 +1843,7 @@ async function main() {
|
|
|
1755
1843
|
mode: w.mode,
|
|
1756
1844
|
solana: w.solanaAddress,
|
|
1757
1845
|
base: w.evmAddress,
|
|
1846
|
+
tag: w.tag,
|
|
1758
1847
|
}));
|
|
1759
1848
|
}
|
|
1760
1849
|
else {
|
|
@@ -1765,7 +1854,10 @@ async function main() {
|
|
|
1765
1854
|
case 'list': {
|
|
1766
1855
|
// List from local vault — no server needed
|
|
1767
1856
|
const { listVaultWallets } = await import('./vault.js');
|
|
1768
|
-
const
|
|
1857
|
+
const tagFilter = flags.tag;
|
|
1858
|
+
let wallets = listVaultWallets();
|
|
1859
|
+
if (tagFilter)
|
|
1860
|
+
wallets = wallets.filter(w => w.tag === tagFilter);
|
|
1769
1861
|
if (!AGENT_MODE) {
|
|
1770
1862
|
render(React.createElement(WalletListScreen, {
|
|
1771
1863
|
version: VERSION,
|
|
@@ -1775,12 +1867,91 @@ async function main() {
|
|
|
1775
1867
|
mode: w.mode,
|
|
1776
1868
|
solana: w.solanaAddress,
|
|
1777
1869
|
base: w.evmAddress,
|
|
1870
|
+
tag: w.tag,
|
|
1778
1871
|
})),
|
|
1779
1872
|
}));
|
|
1780
1873
|
}
|
|
1781
1874
|
else {
|
|
1782
|
-
print({ wallets });
|
|
1875
|
+
print({ wallets, ...(tagFilter ? { tag: tagFilter } : {}) });
|
|
1876
|
+
}
|
|
1877
|
+
break;
|
|
1878
|
+
}
|
|
1879
|
+
case 'tags': {
|
|
1880
|
+
const { listTags } = await import('./vault.js');
|
|
1881
|
+
const tags = listTags();
|
|
1882
|
+
if (AGENT_MODE) {
|
|
1883
|
+
print({ tags });
|
|
1884
|
+
}
|
|
1885
|
+
else {
|
|
1886
|
+
if (tags.length === 0) {
|
|
1887
|
+
console.log(`\n ${t.muted}No tagged wallets yet.${t.reset}`);
|
|
1888
|
+
console.log(` ${t.muted}Create some: ${t.reset}palmyr wallet create --tag demo --count 5\n`);
|
|
1889
|
+
}
|
|
1890
|
+
else {
|
|
1891
|
+
console.log(`\n ${t.accent}wallet tags${t.reset}`);
|
|
1892
|
+
for (const tg of tags) {
|
|
1893
|
+
console.log(` ${t.bold}${tg.name}${t.reset} ${t.muted}·${t.reset} ${tg.count} wallet(s) ${t.muted}·${t.reset} ${tg.chains.join(',')}`);
|
|
1894
|
+
}
|
|
1895
|
+
console.log('');
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
break;
|
|
1899
|
+
}
|
|
1900
|
+
case 'tag': {
|
|
1901
|
+
const walletId = positional[0] || flags.id;
|
|
1902
|
+
if (!walletId)
|
|
1903
|
+
err('Wallet ID required: palmyr wallet tag <WALLET_ID> <TAG> | --clear', EXIT.BAD_INPUT);
|
|
1904
|
+
const wantClear = !!flags.clear;
|
|
1905
|
+
const newTag = positional[1] || flags.tag;
|
|
1906
|
+
if (!wantClear && !newTag)
|
|
1907
|
+
err('Pass a TAG or --clear', EXIT.BAD_INPUT);
|
|
1908
|
+
if (wantClear && newTag)
|
|
1909
|
+
err('Cannot pass both a TAG and --clear', EXIT.BAD_INPUT);
|
|
1910
|
+
const { tagWallet } = await import('./vault.js');
|
|
1911
|
+
const out = tagWallet(walletId, wantClear ? null : newTag);
|
|
1912
|
+
log(`wallet tag: ${out.id} → ${out.tag ?? '(cleared)'}`);
|
|
1913
|
+
print({ success: true, ...out });
|
|
1914
|
+
break;
|
|
1915
|
+
}
|
|
1916
|
+
case 'tag-delete': {
|
|
1917
|
+
const tagArg = positional[0] || flags.tag;
|
|
1918
|
+
if (!tagArg)
|
|
1919
|
+
err('Tag required: palmyr wallet tag-delete <TAG> --confirm', EXIT.BAD_INPUT);
|
|
1920
|
+
if (!flags.confirm) {
|
|
1921
|
+
err(`This will permanently delete every wallet tagged "${tagArg}" and their session secrets.\n\n` +
|
|
1922
|
+
' Re-run with --confirm to proceed:\n' +
|
|
1923
|
+
` palmyr wallet tag-delete ${tagArg} --confirm`, EXIT.BAD_INPUT);
|
|
1924
|
+
}
|
|
1925
|
+
const { walletsByTag, deleteLocalWallet } = await import('./vault.js');
|
|
1926
|
+
const { deleteSecret } = await import('./credential-store.js');
|
|
1927
|
+
const targets = walletsByTag(tagArg);
|
|
1928
|
+
if (targets.length === 0)
|
|
1929
|
+
err(`No wallets found with tag "${tagArg}"`, EXIT.NOT_FOUND);
|
|
1930
|
+
const deleted = [];
|
|
1931
|
+
const failed = [];
|
|
1932
|
+
for (const w of targets) {
|
|
1933
|
+
try {
|
|
1934
|
+
const out = deleteLocalWallet(w.id);
|
|
1935
|
+
try {
|
|
1936
|
+
deleteSecret(w.id);
|
|
1937
|
+
}
|
|
1938
|
+
catch { }
|
|
1939
|
+
deleted.push(out);
|
|
1940
|
+
if (!AGENT_MODE)
|
|
1941
|
+
process.stderr.write(`deleted ${out.name} (${out.id.slice(0, 8)}...)\n`);
|
|
1942
|
+
}
|
|
1943
|
+
catch (e) {
|
|
1944
|
+
failed.push({ id: w.id, name: w.name, error: e?.message || String(e) });
|
|
1945
|
+
}
|
|
1783
1946
|
}
|
|
1947
|
+
log(`wallet tag-delete: ${deleted.length} deleted, ${failed.length} failed (tag=${tagArg})`);
|
|
1948
|
+
print({
|
|
1949
|
+
success: failed.length === 0,
|
|
1950
|
+
tag: tagArg,
|
|
1951
|
+
deleted: deleted.length,
|
|
1952
|
+
wallets: deleted,
|
|
1953
|
+
...(failed.length > 0 ? { failed } : {}),
|
|
1954
|
+
});
|
|
1784
1955
|
break;
|
|
1785
1956
|
}
|
|
1786
1957
|
case 'info': {
|
|
@@ -3741,7 +3912,7 @@ async function main() {
|
|
|
3741
3912
|
}
|
|
3742
3913
|
err(`Unknown trading-keystore subcommand: ${sub}. Try: init, unlock, lock, list, status, derive, export`, EXIT.BAD_INPUT);
|
|
3743
3914
|
}
|
|
3744
|
-
default: err(`Unknown wallet command: ${subcommand}. Try: create, import, list, info, export, addresses, sign-message, api-key, config, use, request-approval, buy, cohort, template, positions, position, sell, sync, pnl, journal, watch, brief, daemon, triggers, trading-keystore, evm-quote`);
|
|
3915
|
+
default: err(`Unknown wallet command: ${subcommand}. Try: create, import, list, info, tags, tag, tag-delete, export, addresses, sign-message, api-key, config, use, request-approval, buy, cohort, template, positions, position, sell, sync, pnl, journal, watch, brief, daemon, triggers, trading-keystore, evm-quote`);
|
|
3745
3916
|
}
|
|
3746
3917
|
break;
|
|
3747
3918
|
}
|
|
@@ -4001,14 +4172,18 @@ async function main() {
|
|
|
4001
4172
|
const sv = await import('./social-vault.js');
|
|
4002
4173
|
const platform = 'twitter';
|
|
4003
4174
|
// Resolve a username to its server-side account_id and which table
|
|
4004
|
-
// holds it. X accounts can live in
|
|
4005
|
-
//
|
|
4006
|
-
//
|
|
4007
|
-
//
|
|
4008
|
-
//
|
|
4175
|
+
// holds it. X accounts can live in THREE places:
|
|
4176
|
+
// - x_accounts (legacy pool, rarely used now)
|
|
4177
|
+
// - social_account_pool (where `palmyr twitter buy` writes)
|
|
4178
|
+
// - social_registered_accounts (BYO-registered)
|
|
4179
|
+
// The local vault doesn't track which, so we query all three in
|
|
4180
|
+
// parallel and find a match. Used by transfer / share / unshare
|
|
4181
|
+
// to dispatch to the correct endpoint family. Returns null if the
|
|
4182
|
+
// username isn't on any of them.
|
|
4009
4183
|
const resolveServerAccount = async (username) => {
|
|
4010
|
-
const [xMine, reg] = await Promise.allSettled([
|
|
4184
|
+
const [xMine, poolMine, reg] = await Promise.allSettled([
|
|
4011
4185
|
ao.xAccountsMine(),
|
|
4186
|
+
ao.socialTwitterPoolMine(),
|
|
4012
4187
|
ao.socialTwitterListRegistered(),
|
|
4013
4188
|
]);
|
|
4014
4189
|
if (xMine.status === 'fulfilled') {
|
|
@@ -4016,6 +4191,11 @@ async function main() {
|
|
|
4016
4191
|
if (m)
|
|
4017
4192
|
return { kind: 'x_accounts', id: m.id };
|
|
4018
4193
|
}
|
|
4194
|
+
if (poolMine.status === 'fulfilled') {
|
|
4195
|
+
const m = (poolMine.value?.accounts || []).find((a) => a.username === username);
|
|
4196
|
+
if (m)
|
|
4197
|
+
return { kind: 'pool', id: m.id };
|
|
4198
|
+
}
|
|
4019
4199
|
if (reg.status === 'fulfilled') {
|
|
4020
4200
|
const m = (reg.value?.accounts || []).find((a) => a.username === username);
|
|
4021
4201
|
if (m)
|
|
@@ -4035,26 +4215,32 @@ async function main() {
|
|
|
4035
4215
|
const existing = sv.getAccount(platform, username);
|
|
4036
4216
|
if (existing)
|
|
4037
4217
|
return existing;
|
|
4038
|
-
const [xRes, regRes] = await Promise.allSettled([
|
|
4218
|
+
const [xRes, poolRes, regRes] = await Promise.allSettled([
|
|
4039
4219
|
ao.xAccountsMine(),
|
|
4220
|
+
ao.socialTwitterPoolMine(),
|
|
4040
4221
|
ao.socialTwitterRegisteredMine(),
|
|
4041
4222
|
]);
|
|
4042
4223
|
const xMatch = xRes.status === 'fulfilled'
|
|
4043
4224
|
? (xRes.value?.accounts || []).find((a) => a.username === username)
|
|
4044
4225
|
: null;
|
|
4226
|
+
const poolMatch = poolRes.status === 'fulfilled'
|
|
4227
|
+
? (poolRes.value?.accounts || []).find((a) => a.username === username)
|
|
4228
|
+
: null;
|
|
4045
4229
|
const regMatch = regRes.status === 'fulfilled'
|
|
4046
4230
|
? (regRes.value?.accounts || []).find((a) => a.username === username)
|
|
4047
4231
|
: null;
|
|
4048
|
-
const match = xMatch || regMatch;
|
|
4232
|
+
const match = xMatch || poolMatch || regMatch;
|
|
4049
4233
|
if (!match) {
|
|
4050
4234
|
err(`twitter account "${username}" not found locally or on the server (this wallet has no access)`, EXIT.NOT_FOUND);
|
|
4051
4235
|
}
|
|
4236
|
+
// Pool-mine and registered-mine return creds nested under
|
|
4237
|
+
// `credentials`; legacy x_accounts/mine returns them flat alongside
|
|
4238
|
+
// cookies. Normalize so the import works the same in either case.
|
|
4052
4239
|
const cookies = (match.cookies || []);
|
|
4053
4240
|
const ct0 = cookies.find((c) => c.name === 'ct0')?.value;
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
? regMatch.credentials
|
|
4241
|
+
const hasNestedCreds = poolMatch || regMatch;
|
|
4242
|
+
const creds = hasNestedCreds
|
|
4243
|
+
? match.credentials
|
|
4058
4244
|
: {
|
|
4059
4245
|
login: match.email || match.username,
|
|
4060
4246
|
password: match.password,
|
|
@@ -4062,11 +4248,16 @@ async function main() {
|
|
|
4062
4248
|
auth_token: match.auth_token || undefined,
|
|
4063
4249
|
ct0,
|
|
4064
4250
|
};
|
|
4065
|
-
const summary = sv.importAccount(platform, username, creds, {
|
|
4251
|
+
const summary = sv.importAccount(platform, username, creds, {
|
|
4252
|
+
source: 'auto-claim',
|
|
4253
|
+
proxy_session_id: poolMatch?.proxy_session_id,
|
|
4254
|
+
country: poolMatch?.country || undefined,
|
|
4255
|
+
});
|
|
4066
4256
|
if (cookies.length > 0) {
|
|
4067
4257
|
sv.saveSession(summary.id, platform, cookies);
|
|
4068
4258
|
}
|
|
4069
|
-
|
|
4259
|
+
const sourceLabel = poolMatch ? 'pool' : regMatch ? 'registered' : 'x_accounts';
|
|
4260
|
+
log(`auto-imported @${username} from server (${sourceLabel} → local vault)`);
|
|
4070
4261
|
return summary;
|
|
4071
4262
|
};
|
|
4072
4263
|
if (!subcommand) {
|
|
@@ -4171,11 +4362,13 @@ async function main() {
|
|
|
4171
4362
|
if (skipRemote) {
|
|
4172
4363
|
return print({ accounts: localAccounts, count: localAccounts.length, source: 'local' });
|
|
4173
4364
|
}
|
|
4174
|
-
const [xRes, regRes] = await Promise.allSettled([
|
|
4365
|
+
const [xRes, poolRes, regRes] = await Promise.allSettled([
|
|
4175
4366
|
ao.xAccountsMine(),
|
|
4367
|
+
ao.socialTwitterPoolMine(),
|
|
4176
4368
|
ao.socialTwitterRegisteredMine(),
|
|
4177
4369
|
]);
|
|
4178
4370
|
const xAccounts = xRes.status === 'fulfilled' ? (xRes.value?.accounts || []) : [];
|
|
4371
|
+
const poolAccounts = poolRes.status === 'fulfilled' ? (poolRes.value?.accounts || []) : [];
|
|
4179
4372
|
const regAccounts = regRes.status === 'fulfilled' ? (regRes.value?.accounts || []) : [];
|
|
4180
4373
|
const localUsernames = new Set(localAccounts.map(a => a.username));
|
|
4181
4374
|
const serverOnly = [];
|
|
@@ -4189,6 +4382,16 @@ async function main() {
|
|
|
4189
4382
|
});
|
|
4190
4383
|
}
|
|
4191
4384
|
}
|
|
4385
|
+
for (const a of poolAccounts) {
|
|
4386
|
+
if (a.username && !localUsernames.has(a.username)) {
|
|
4387
|
+
serverOnly.push({
|
|
4388
|
+
username: a.username,
|
|
4389
|
+
access: a.access || 'owner',
|
|
4390
|
+
source_table: 'pool',
|
|
4391
|
+
status: 'server-only — run `palmyr twitter claim` to import',
|
|
4392
|
+
});
|
|
4393
|
+
}
|
|
4394
|
+
}
|
|
4192
4395
|
for (const a of regAccounts) {
|
|
4193
4396
|
if (a.username && !localUsernames.has(a.username)) {
|
|
4194
4397
|
serverOnly.push({
|
|
@@ -4355,7 +4558,7 @@ async function main() {
|
|
|
4355
4558
|
platform,
|
|
4356
4559
|
username,
|
|
4357
4560
|
cached: false,
|
|
4358
|
-
hint: `No cached session. Run:
|
|
4561
|
+
hint: `No cached session. Run: palmyr twitter login ${username}`,
|
|
4359
4562
|
});
|
|
4360
4563
|
}
|
|
4361
4564
|
const ageHours = sv.sessionAgeHours(acc.id);
|
|
@@ -4934,7 +5137,7 @@ async function main() {
|
|
|
4934
5137
|
success: true,
|
|
4935
5138
|
platform,
|
|
4936
5139
|
username: summary.username,
|
|
4937
|
-
hint: `Ready to post — try:
|
|
5140
|
+
hint: `Ready to post — try: palmyr twitter post ${summary.username} --body "gm"`,
|
|
4938
5141
|
});
|
|
4939
5142
|
}
|
|
4940
5143
|
case 'pool-add': {
|
|
@@ -5088,6 +5291,13 @@ async function main() {
|
|
|
5088
5291
|
spinReg.stop('Registered', true);
|
|
5089
5292
|
resolved = { kind: 'registered', id: regData.id };
|
|
5090
5293
|
}
|
|
5294
|
+
// Transfer-on-pool isn't wired yet (pool table has no transfer
|
|
5295
|
+
// endpoint with the async rotation machinery). Surface a clear
|
|
5296
|
+
// workaround instead of a silent 404.
|
|
5297
|
+
if (resolved.kind === 'pool') {
|
|
5298
|
+
err(`@${username} is a pool-bought account and transfer isn't supported on the pool table yet — share/unshare work.\n\n` +
|
|
5299
|
+
`Workaround: \`palmyr twitter register ${username}\` first (uploads to the registered table), then re-run the transfer.`, EXIT.GENERAL);
|
|
5300
|
+
}
|
|
5091
5301
|
const spin = new Spinner();
|
|
5092
5302
|
spin.start(`Rotating @${username} password and transferring…`);
|
|
5093
5303
|
// Kick off the transfer. Server responds 202 with a transfer_id;
|
|
@@ -5169,7 +5379,9 @@ async function main() {
|
|
|
5169
5379
|
}
|
|
5170
5380
|
const data = resolved.kind === 'x_accounts'
|
|
5171
5381
|
? await ao.xAccountShare(resolved.id, withWallet)
|
|
5172
|
-
:
|
|
5382
|
+
: resolved.kind === 'pool'
|
|
5383
|
+
? await ao.socialTwitterPoolShare(resolved.id, withWallet)
|
|
5384
|
+
: await ao.socialTwitterRegisteredShare(resolved.id, withWallet);
|
|
5173
5385
|
log(`twitter share: @${username} → ${withWallet}`);
|
|
5174
5386
|
return print({ ...data, source_table: resolved.kind });
|
|
5175
5387
|
}
|
|
@@ -5193,9 +5405,20 @@ async function main() {
|
|
|
5193
5405
|
spin.start(`Unsharing @${username} and rotating password…`);
|
|
5194
5406
|
let data;
|
|
5195
5407
|
try {
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5408
|
+
if (resolved.kind === 'x_accounts') {
|
|
5409
|
+
data = await ao.xAccountUnshare(resolved.id, targetWallet, { rotate });
|
|
5410
|
+
}
|
|
5411
|
+
else if (resolved.kind === 'pool') {
|
|
5412
|
+
// The pool unshare endpoint doesn't support rotate today
|
|
5413
|
+
// (rotation infra lives on the transfers async pipeline and
|
|
5414
|
+
// hasn't been wired to pool yet). Warn and call without rotate.
|
|
5415
|
+
if (rotate)
|
|
5416
|
+
warn(`--rotate not supported on pool-bought accounts yet — performing unshare only`);
|
|
5417
|
+
data = await ao.socialTwitterPoolUnshare(resolved.id, targetWallet);
|
|
5418
|
+
}
|
|
5419
|
+
else {
|
|
5420
|
+
data = await ao.socialTwitterRegisteredUnshare(resolved.id, targetWallet, { rotate });
|
|
5421
|
+
}
|
|
5199
5422
|
}
|
|
5200
5423
|
catch (e) {
|
|
5201
5424
|
if (spin)
|
|
@@ -5284,20 +5507,23 @@ async function main() {
|
|
|
5284
5507
|
}
|
|
5285
5508
|
case 'claim': {
|
|
5286
5509
|
// Fetch server-side accounts the calling wallet owns or has shared
|
|
5287
|
-
// access to — from
|
|
5510
|
+
// access to — from all THREE tables. x_accounts (legacy pool),
|
|
5511
|
+
// social_account_pool (where `palmyr twitter buy` writes), and
|
|
5288
5512
|
// social_registered_accounts (BYO-registered) are queried in
|
|
5289
|
-
// parallel;
|
|
5290
|
-
// already in the local vault so the receiver of a transfer
|
|
5291
|
-
// pick up the account in one command.
|
|
5292
|
-
const [xRes, regRes] = await Promise.allSettled([
|
|
5513
|
+
// parallel; all three contribute to the claim list. Import any
|
|
5514
|
+
// not already in the local vault so the receiver of a transfer
|
|
5515
|
+
// or share can pick up the account in one command.
|
|
5516
|
+
const [xRes, poolRes, regRes] = await Promise.allSettled([
|
|
5293
5517
|
ao.xAccountsMine(),
|
|
5518
|
+
ao.socialTwitterPoolMine(),
|
|
5294
5519
|
ao.socialTwitterRegisteredMine(),
|
|
5295
5520
|
]);
|
|
5296
5521
|
const xAccounts = xRes.status === 'fulfilled' ? (xRes.value?.accounts || []) : [];
|
|
5522
|
+
const poolAccountsRaw = poolRes.status === 'fulfilled' ? (poolRes.value?.accounts || []) : [];
|
|
5297
5523
|
const regAccountsRaw = regRes.status === 'fulfilled' ? (regRes.value?.accounts || []) : [];
|
|
5298
|
-
// Normalize the registered shape (creds + cookies live in
|
|
5299
|
-
// fields) to the same flat shape as x_accounts so the
|
|
5300
|
-
// doesn't have to branch on source.
|
|
5524
|
+
// Normalize the registered + pool shape (creds + cookies live in
|
|
5525
|
+
// nested fields) to the same flat shape as x_accounts so the
|
|
5526
|
+
// loop below doesn't have to branch on source.
|
|
5301
5527
|
const regAccounts = regAccountsRaw.map(a => ({
|
|
5302
5528
|
username: a.username,
|
|
5303
5529
|
email: a.credentials?.email,
|
|
@@ -5307,8 +5533,20 @@ async function main() {
|
|
|
5307
5533
|
access: a.access,
|
|
5308
5534
|
source_table: 'registered',
|
|
5309
5535
|
}));
|
|
5536
|
+
const poolAccounts = poolAccountsRaw.map(a => ({
|
|
5537
|
+
username: a.username,
|
|
5538
|
+
email: a.credentials?.email,
|
|
5539
|
+
password: a.credentials?.password,
|
|
5540
|
+
auth_token: a.credentials?.auth_token,
|
|
5541
|
+
cookies: a.cookies || [],
|
|
5542
|
+
access: a.access,
|
|
5543
|
+
proxy_session_id: a.proxy_session_id,
|
|
5544
|
+
country: a.country,
|
|
5545
|
+
source_table: 'pool',
|
|
5546
|
+
}));
|
|
5310
5547
|
const accounts = [
|
|
5311
5548
|
...xAccounts.map(a => ({ ...a, source_table: 'x_accounts' })),
|
|
5549
|
+
...poolAccounts,
|
|
5312
5550
|
...regAccounts,
|
|
5313
5551
|
];
|
|
5314
5552
|
if (accounts.length === 0) {
|
|
@@ -5332,7 +5570,11 @@ async function main() {
|
|
|
5332
5570
|
auth_token: a.auth_token || undefined,
|
|
5333
5571
|
ct0,
|
|
5334
5572
|
};
|
|
5335
|
-
const summary = sv.importAccount(platform, a.username, creds, {
|
|
5573
|
+
const summary = sv.importAccount(platform, a.username, creds, {
|
|
5574
|
+
source: 'claim',
|
|
5575
|
+
proxy_session_id: a.proxy_session_id,
|
|
5576
|
+
country: a.country || undefined,
|
|
5577
|
+
});
|
|
5336
5578
|
// Save the cookies so `palmyr twitter login` can use the
|
|
5337
5579
|
// cookie-fast-path instead of re-driving the login form.
|
|
5338
5580
|
if (Array.isArray(a.cookies) && a.cookies.length > 0) {
|