Commit Graph
60 Commits
Author SHA1 Message Date
redshift 2a31fef10b chore: bump version to 0.3.10 2026-07-12 08:26:44 +05:30
9qeklajc f90e65aa09 fix breaking hermes config 2026-07-11 16:33:28 +02:00
redshift a7de201330 chore: bump version to 0.3.9 2026-07-10 12:57:30 +05:30
redshift 9e8f8178a9 chore: bump version to 0.3.8 2026-07-09 12:27:30 +05:30
redshift cf1ca5941a feat(update): restart daemons after update
The update command previously only downloaded and installed new
binaries for routstrd and cocod without restarting the running
daemons, so updates would not take effect until a manual restart.

- Add restartDaemonsAfterUpdate() helper that gracefully stops and
  restarts both daemons after a successful update
- routstrd: uses POST /stop (drains active connections), polls for
    shutdown, then calls startDaemon() with configured port/provider
- cocod: runs 'cocod stop', then spawns 'cocod daemon' detached,
    polls 'cocod ping' until it comes back up
- Skips restart for daemons that weren't running
- Skips routstrd daemon restart when using a remote daemon
- Collects and reports failures without rolling back the update
- Bump @routstr/sdk to 0.3.15
- Bump routstrd version to 0.3.7

Closes nostr task: update-restart
2026-07-08 16:39:31 +08:00
redshift f58e807807 Add 'update' command to upgrade routstrd and cocod globally 2026-07-06 18:27:00 +08:00
redshift 1a06093b96 bump version to 0.3.5, update @routstr/sdk to 0.3.14 2026-07-06 11:37:34 +05:30
redshift a5be3b06e9 bump version to 0.3.4 and @routstr/sdk to 0.3.12 2026-06-22 20:09:31 +08:00
redshift d8385d5c2e verson bump 2026-06-20 17:40:16 +08:00
redshift d86a231ed3 fix: use Bun-safe SDK entrypoints for ModelManager and storage
- Import ModelManager from @routstr/sdk/bun instead of @routstr/sdk
- Import storage helpers from @routstr/sdk/storage/bun instead of @routstr/sdk/storage
- Fix createBunSqliteUsageTrackingDriver call: async and no longer needs
  manual bun:sqlite import (now handled internally by the sdk entrypoint)
- Verified sharded discovery adapter setup matches SDK pattern in
  scripts/routstr-daemon.ts at 6077aa7
2026-06-06 18:13:06 +08:00
redshift f9412af8b3 version bump and using the new adapters and a local eventsDb. 2026-05-30 18:25:18 +08:00
redshift ba52a3c52e bumped version 2026-05-25 08:26:56 +08:00
redshift 5ee6a39567 refactor: replace custom NwcClient with applesauce-wallet-connect
- auto-refill.ts: use WalletConnect instance directly instead of
  NwcClient + RelayPool; check wallet.service for connection state
- wallet/index.ts: create single shared WalletConnect for auto-refill,
  fundFromNWC, and getNwcStatus; remove NwcClient entirely
- daemon/index.ts: strip all NwcClient creation/connect/logging/cleanup;
  auto-refill now gates on connectionString alone
- add applesauce-wallet-connect dependency
2026-05-23 22:14:15 +08:00
redshift 5069fcac43 bumpd version 2026-05-16 16:47:20 +05:30
redshift 390701b5ea chore: bump @routstr/sdk to ^0.3.7 2026-05-16 14:20:26 +05:30
redshift 747911c6f6 bumped cashu vferison 2026-05-16 16:25:53 +08:00
redshift 8e9013ac7d version bumps 2026-05-15 13:55:24 +05:30
redshift c6290eb356 bump 2026-05-07 21:00:54 +05:30
redshift 26fd7d3808 bump version to 0.2.15 2026-05-04 11:40:10 +08:00
redshift e8f46c79dc bumped version 2026-05-03 16:22:47 +05:30
redshift a3508b9667 bumped version and also fixed matching clientid to existing ones 2026-04-30 16:16:57 +05:30
redshift 1d556c42e3 version bump 2026-04-30 14:00:38 +05:30
redshift 240706f6f1 bumped version. 2026-04-30 13:47:35 +05:30
redshift a207acb645 refactor: extract addDaemonClient to eliminate duplicate /clients/add calls
- Add shared DaemonClient type and addDaemonClient() helper in
daemon-client.ts as the single source for POST /clients/add.
- Update ensureIntegrationClient() to use the new helper.
- Update CLI clients add command to use the new helper.
- Keeps existing error handling and 'already exists' fallback in
ensureIntegrationClient().
2026-04-28 14:34:12 +05:30
redshift 8d6a7d7f21 feat(cli): NIP-98 auth for remote daemon URLs
- Add nostr-tools dependency for NIP-98 event signing
- Add nsec field to RoutstrdConfig for remote daemon authentication
- Extract NIP-98 auth utilities into src/utils/nip98.ts (parseSecretKey,
  createNIP98Authorization with SHA-256 payload tags)
- Wire NIP-98 Authorization headers into callDaemon and isDaemonRunning
  whenever both daemonUrl and nsec are configured
- Refactor refund command to use callDaemon instead of hardcoded localhost
  so it works correctly with remote daemon URLs
2026-04-28 10:02:45 +05:30
redshift 927ec863bf feat(wallet): support COCOD_DIR env var for config dir
Allow overriding the default cocod config directory (~/.cocod)
via the COCOD_DIR environment variable. Falls back to existing
HOME/USERPROFILE logic when unset.

Bump version to 0.2.6.
2026-04-27 22:20:33 +05:30
redshift b306086a6d added instrcutions to add new clients via CLI easily. Updated skill as well. 2026-04-23 18:41:06 +05:30
redshift 5f8be4753b bumped the version 2026-04-23 02:36:36 +05:30
redshift 3a5d760b37 replaced routeRequestsNodeResponse with just routeRequests. 2026-04-22 23:39:57 +05:30
redshift 41993831af changed the refund interval to 42 mins 2026-04-21 18:07:23 +02:00
redshift 4ab07db874 added commands for buildign with thelocal sdk 2026-04-21 08:11:21 +02:00
redshift 18d07a4a2c bumpedup the version 2026-04-09 12:13:37 +01:00
redshift ba50caa4d6 bumped version with auto refund removed. 2026-04-08 10:07:31 +01:00
redshift 450b30eae9 using routstr sdk frpm npm 2026-04-06 19:13:18 +01:00
redshift d0f88371c9 bumped version 2026-04-06 19:07:43 +01:00
redshift 50ae4526df bumped the version . 2026-04-01 21:11:37 +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 6358bed530 bumped the sdk version 2026-03-29 14:04:23 +00:00
redshift 327e4999b4 bug 2026-03-28 22:36:13 +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 66678f96ba removed unnecessary file 2026-03-24 20:58:55 +00:00
Evan Yang 10a6c5c131 Merge origin/main into wallet-integration 2026-03-23 10:43:48 +08: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 ed01942391 everything works as expected OOOOOFF 2026-03-21 20:44:46 +00:00
redshift 5aadad1d34 Merge branch 'main' of github.com-red:Routstr/routstrd 2026-03-21 13:22:39 +00:00
redshift cb793be8de integrations with unique api keys 2026-03-21 13:22:30 +00:00
redshift 0e1b97dcaf draft for the TUI 2026-03-21 12:44:13 +00:00
Evan Yang 76ce27d518 Add cocod-backed wallet integration 2026-03-21 12:40:47 +08:00