fluxy-bot 0.10.3 → 0.10.5
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/bin/cli.js +9 -1
- package/dist-fluxy/assets/{fluxy-BAucOLaM.js → fluxy-D7WG4HYj.js} +22 -22
- package/dist-fluxy/assets/globals-D9MZRkvY.js +18 -0
- package/dist-fluxy/assets/{onboard-Dwc03fqY.js → onboard-BHZp9rAg.js} +1 -1
- package/dist-fluxy/fluxy.html +2 -2
- package/dist-fluxy/onboard.html +2 -2
- package/package.json +1 -1
- package/supervisor/chat/fluxy-main.tsx +14 -0
- package/worker/index.ts +38 -0
- package/dist-fluxy/assets/globals-DYbVw4jJ.js +0 -18
package/bin/cli.js
CHANGED
|
@@ -845,9 +845,17 @@ async function init() {
|
|
|
845
845
|
return mode;
|
|
846
846
|
})();
|
|
847
847
|
|
|
848
|
-
// Update config with chosen mode
|
|
848
|
+
// Update config with chosen mode + generate wallet if needed
|
|
849
849
|
const config = JSON.parse(fs.readFileSync(CONFIG_PATH, 'utf-8'));
|
|
850
850
|
|
|
851
|
+
// Generate USDC wallet (skip if one already exists)
|
|
852
|
+
if (!config.wallet?.privateKey) {
|
|
853
|
+
const { generatePrivateKey, privateKeyToAccount } = await import('viem/accounts');
|
|
854
|
+
const privateKey = generatePrivateKey();
|
|
855
|
+
const account = privateKeyToAccount(privateKey);
|
|
856
|
+
config.wallet = { privateKey, address: account.address };
|
|
857
|
+
}
|
|
858
|
+
|
|
851
859
|
// Handle named tunnel setup before starting
|
|
852
860
|
if (tunnelMode === 'named') {
|
|
853
861
|
const setup = await runNamedTunnelSetup();
|