Commit Graph
115 Commits
Author SHA1 Message Date
redshift cbaf26bda0 allowing xcashu mode right now and removed logs. 2026-04-02 22:45:52 +02:00
redshift 42274f8990 Merge branch 'main' of github.com-red:Routstr/routstrd 2026-04-02 15:33:16 +02:00
redshift b0030b826a logs stored correctly in correct file 2026-04-02 15:33:13 +02:00
Evan Yang f40b0ba4e5 fix(wallet): treat cocod body errors as failures 2026-04-02 21:06:51 +08:00
redshift ae80f94afe logging changed to date based 2026-04-02 14:17:04 +02:00
redshift c0d3063bca added logs 2026-04-02 00:10:27 +02:00
redshift 50ae4526df bumped the version . 2026-04-01 21:11:37 +02:00
redshift fcae75fa7c provider manage instnace is now persisted across calls. 2026-04-01 21:11:19 +02:00
redshift f7fadaefd2 fix: handle daemon /usage endpoint returning array directly
The daemon's /usage endpoint returns { output: [...] } where output IS
the entries array directly, not an object with entries/totalEntries/etc.
Both the CLI usage command and TUI monitor expected the wrong shape,
causing entries.reduce to fail with 'is not a function'.

- Fix fetchUsage() to parse the array response correctly
- Fix CLI usage command to handle the array response
- Add defensive check in getTotals() for undefined/non-array input
2026-04-01 18:12:48 +02:00
redshift fe61ea43c0 fix: remove createUsageTracker, use usageTrackingDriver consistently
- Removed broken merge artifact with createUsageTracker
- Updated createDaemonRequestHandler to use usageTrackingDriver for all usage tracking
- Added walletClient to deps type
- Removed unused runWalletCommand and parseBalances from deps type
- Cleaned up unused imports in daemon/index.ts
2026-04-01 16:18:06 +02:00
redshift 243967f7a5 fixing merge issues 2026-04-01 16:14:11 +02:00
redshift dca3ca992f Merge branch 'wallet-integration' of github.com-red:Routstr/routstrd 2026-04-01 15:55:35 +02:00
redshift b6b773b3d9 testing with local sdk 2026-04-01 15:34:45 +02:00
redshift d0784a5c53 added automatic refund 2026-03-31 11:44:30 +01:00
redshift 849a4b6850 fixed the data limit 2026-03-30 21:54:57 +01:00
redshift 4917ff2f91 mode chagnes 2026-03-30 21:20:29 +01:00
redshift 07adab2265 added a way to add clients 2026-03-30 21:06:30 +01:00
redshift e8dfb2b05b formatting 2026-03-29 15:11:59 +01:00
redshift 6358bed530 bumped the sdk version 2026-03-29 14:04:23 +00:00
redshift 20981ca9d6 TUI total costs fix 2026-03-29 15:03:19 +01:00
redshift 327e4999b4 bug 2026-03-28 22:36:13 +00:00
redshift e03342d119 fixed v1/messages pass thorugh bug 2026-03-28 19:12:01 +00:00
redshift cb699a3882 added a way to disable providers 2026-03-28 18:17:39 +00:00
redshift f1b388ef43 removed lazyrefund completely 2026-03-28 14:02:19 +00:00
redshift d5656e488c fixed legacySDK reading 2026-03-28 11:09:42 +00:00
redshift 020606d276 fixed usage tracking db 2026-03-28 08:42:25 +00:00
redshift 3c7e0c25ab bun driver to sdk 2026-03-27 21:57:32 +00:00
redshift 631f5832a1 checkpoint 2026-03-26 17:22:03 +00:00
redshift 3ad6339822 Merge branch 'main' of github.com-red:Routstr/routstrd 2026-03-24 20:59:00 +00:00
redshift 66678f96ba removed unnecessary file 2026-03-24 20:58:55 +00:00
redshift 44e439631e debug logs from sdk are now shown in routstrd logs 2026-03-23 13:24:19 +00:00
Evan Yang 851e35c3cd Return 400 for invalid wallet JSON bodies 2026-03-23 11:02:52 +08:00
Evan Yang 10a6c5c131 Merge origin/main into wallet-integration 2026-03-23 10:43:48 +08:00
redshift 50600b7936 chagned the order of data 2026-03-22 22:26:25 +00:00
redshift d4c578c246 removed logs 2026-03-22 15:31:17 +00:00
redshift 57aa6c2387 tui: display system status and mode in overview tab
- Add mode to /status endpoint response
- Add fetchStatus() to retrieve daemon status
- Display System Status box next to Balance box in overview tab
- Show daemon state, wallet state, and current mode
- Color code status values (green/red for healthy/error states)
2026-03-22 13:04:44 +00:00
redshift fa69f77b99 super stable 2026-03-21 23:19:38 +00:00
redshift 5cda876dc0 feat(tui): Render sats and token stats side-by-side in Overview tab 2026-03-21 23:11:06 +00:00
redshift 668c4a3bf6 fix(tui): Align Client tab columns and fix bar chart overflowing rendered boxes 2026-03-21 23:08:09 +00:00
redshift d2cd5195b0 fix(tui): Correct box rendering dimensions to prevent layout shifting and adjust viewport math 2026-03-21 23:04:37 +00:00
redshift dffd8ef3f2 updated desciptns 2026-03-21 22:59:06 +00:00
redshift b96ff0580d Add wallet balance display to TUI overview tab
- Fetch balance from /keys/balance endpoint showing wallet, cached tokens, and API key balances
- Display total balance and individual balances per source with provider URLs
- Show 'No funds available' message when balance is zero
2026-03-21 22:20:43 +00:00
redshift 310e7076c3 Add mode parameter to routeRequests and CLI command
- Add mode config option (xcashu, lazyrefund, apikeys) to RoutstrdConfig
- Pass mode parameter to routeRequests in daemon HTTP handler
- Add 'routstrd mode' CLI command to set mode interactively
- Mode command shows current mode, prompts for selection, updates config,
  and restarts the daemon
2026-03-21 22:07:28 +00:00
redshift 65d30c135b format numbers with k/m suffixes, left-align bar chart labels 2026-03-21 21:49:46 +00:00
redshift 92a3c665a1 fix tui usage percentage calculations 2026-03-21 21:37:55 +00:00
redshift 927b155b0a refactor usage tui into src/tui modules 2026-03-21 21:31:53 +00:00
redshift 550608a0d7 refacrtored tui 2026-03-21 21:26:36 +00:00
redshift 1451e54bb5 Fix usage TUI scrolling for tall content 2026-03-21 21:13:06 +00:00
redshift a02a0dcad3 added restart 2026-03-21 21:10:03 +00:00
redshift 967ed6ff96 Fix scrolling in usage TUI 2026-03-21 21:00:27 +00:00