Commit 7f3789a
committed
fix(doctor): keystore check was reading non-existent .wallets field
The check was named 'keystore' and read 'keystore.wallets'. Neither was accurate:
- The KeyStore interface (core/src/keystore.ts:14) stores .projects, not .wallets. The .wallets lookup always returned undefined, so walletCount was always 0, so the check always warned 'keystore empty' even on fully-configured installs.
- The wallet itself lives in ~/.config/run402/allowance.json (verified by the allowance check directly above), not in the project keystore.
- The hint 'Run run402 init to generate a wallet' was wrong on two counts: the wallet was already there, and what's actually empty is the per-project keys map populated by 'run402 projects provision'.
Fix: rename the check to 'projects', read .projects, report informationally as 'ok' (empty project store is normal for fresh installs), and rewrite the hint to point at 'projects provision'.1 parent 9ff5e83 commit 7f3789a
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | | - | |
| 106 | + | |
103 | 107 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
109 | 113 | | |
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
113 | | - | |
| 117 | + | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
| |||
0 commit comments