From b79ff7a5b9cccf7fe29d1bee797f6330be77db0d Mon Sep 17 00:00:00 2001 From: Paperclip Deployment Engineer Date: Fri, 24 Jul 2026 12:20:01 +0000 Subject: [PATCH] feat: enable xcashu mode in CLI Removed the 'coming soon' guard that blocked xcashu mode selection. The SDK fully supports xcashu: Cashu tokens are sent via X-Cashu header per request, and refunds are received via x-cashu response header. Verified working: request creates 1-sat token, sends X-Cashu header, receives response with refund, no balance kept with provider. --- src/cli.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/cli.ts b/src/cli.ts index 477a175..907db6b 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -1757,7 +1757,7 @@ program " 1) lazyrefund/apikeys - Pseudonymous accounts are kept with the Routstr nodes and are refunded after 5 mins if not used.", ); console.log( - " 2) xcashu (coming soon) - Balances are never kept with the nodes, all balances are refunded in response.", + " 2) xcashu - Balances are never kept with the nodes, all balances are refunded in response.", ); console.log(`\nCurrent mode: ${currentMode}`); @@ -1777,13 +1777,6 @@ 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 === currentMode) { console.log(`Mode is already set to '${selectedMode}'. No changes made.`); return;