diff --git a/src/cli.ts b/src/cli.ts index 192aa9a..0d21440 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -423,7 +423,10 @@ program // Calculate totals from entries const totalEntries = entries.length; - const totalSatsCost = entries.reduce((sum, e) => sum + (e.satsCost || 0), 0); + const totalSatsCost = entries.reduce( + (sum, e) => sum + (e.satsCost || 0), + 0, + ); const recentSatsCost = totalSatsCost; // For now, recent = total since we don't have time window console.log(`Usage entries: showing ${entries.length} of ${totalEntries}`); @@ -883,12 +886,12 @@ program const selectedMode = modes[selectedIndex]; - if (selectedMode === "xcashu") { - console.log( - "\nxcashu mode is coming soon! Only lazyrefund/apikeys is available at this time.", - ); - return; - } + // if (selectedMode === "xcashu") { + // console.log( + // "\nxcashu mode is coming soon! Only lazyrefund/apikeys is available at this time.", + // ); + // return; + // } if (selectedMode === currentMode) { console.log(`Mode is already set to '${selectedMode}'. No changes made.`); diff --git a/src/daemon/wallet/cocod-client.ts b/src/daemon/wallet/cocod-client.ts index cafaf0c..62f7039 100644 --- a/src/daemon/wallet/cocod-client.ts +++ b/src/daemon/wallet/cocod-client.ts @@ -150,7 +150,7 @@ export function createCocodClient( const response = await fetchImpl(`http://localhost${path}`, requestInit); const rawText = await response.text(); - logger.log(`[fetchJson] ${init.method || "GET"} ${path} status=${response.status} body=${rawText}`); + // logger.log(`[fetchJson] ${init.method || "GET"} ${path} status=${response.status} body=${rawText}`); const data = JSON.parse(rawText) as CommandResponse; const errorMessage = typeof data.error === "string" ? data.error.trim() : "";