Commit Graph
19 Commits
Author SHA1 Message Date
Bradley Axen e186c6d916 Add just goose for one-command agent setup + fix API token auth
Adds an idempotent setup script and justfile recipe so that connecting
a Goose agent to a local Sprout relay is a single command:

    just goose

What this does:
- scripts/setup-goose-agent.sh: mints a Nostr keypair + API token on
  first run, persists to .sprout-agent.env (gitignored, chmod 600).
  Subsequent runs are a no-op.
- justfile: 'just goose' sources the agent env and launches goose with
  the sprout-mcp-server extension.
- .gitignore: excludes .sprout-agent.env.

Also fixes a bug where API token authentication was not wired up in the
relay's NIP-42 auth handler. The AuthService intentionally has no DB
access, so sprout_ tokens need to be intercepted in handle_auth before
calling verify_auth_event. The handler now:
1. Extracts the auth_token tag from the NIP-42 event
2. If it starts with sprout_, hashes it, looks it up via
   Db::get_api_token_by_hash, and delegates to
   AuthService::verify_api_token_against_hash
3. Updates last_used_at on success
4. Falls through to the existing JWT/no-token paths otherwise
2026-03-10 14:21:03 -07:00
WesandGitHub 1be84cc315 Add desktop search and result anchors (#15) 2026-03-10 13:54:25 -07:00
WesandGitHub 4fcc4c35cc fix: mcp and desktop communication (#18) 2026-03-10 16:33:48 -04:00
tlongwell-blockandGitHub 69b36d11dd feat: soft-delete for events/channels, enriched API responses, NIP-29 group management (#17) 2026-03-10 16:01:32 -04:00
tlongwell-blockandGitHub 3e7c9d900a feat: Channel management, messaging, threads, DMs, reactions, and NIP-29 support (#16) 2026-03-10 14:47:51 -04:00
WesandGitHub 758049ca31 Improve chat scrolling and multiline composer (#14) 2026-03-10 09:46:08 -07:00
tlongwell-blockandGitHub 431c9f2b46 chore: remove redundant inline comments across all crates (#13) 2026-03-10 12:06:17 -04:00
tlongwell-blockandGitHub cd3b45f948 Initial backend revisions, workflow expansion (#5) 2026-03-10 10:46:06 -04:00
WesandGitHub 194ddc66e9 Add desktop Home feed (#12) 2026-03-09 19:32:56 -07:00
WesandGitHub 6e51cc0b12 Add desktop Playwright e2e harness (#11) 2026-03-09 19:16:43 -07:00
WesandGitHub 998d83962b Update desktop icon and persist window state (#9) 2026-03-09 17:50:18 -07:00
WesandGitHub 6f900bcbcc feat: add channel creation flow (#8) 2026-03-09 17:33:13 -07:00
WesandGitHub 774bd62fb3 Improve message markdown display and formatting (#7) 2026-03-09 16:34:56 -07:00
WesandGitHub 0705327312 feat(desktop): connect chat to relay (#6) 2026-03-09 14:49:50 -07:00
WesandGitHub 70ccc6ea59 docs(readme): clarify desktop setup (#4) 2026-03-09 13:22:17 -07:00
WesandGitHub 629c99fd2f feat: add desktop app (#3) 2026-03-09 13:02:11 -07:00
tlongwell-blockandGitHub 058c4b92a9 Initial release — Sprout Nostr relay with enterprise extensions (#2) 2026-03-09 15:15:25 -04:00
block-open-source[bot] f158b72586 prepare repo template 2026-03-06 21:01:02 +00:00
block-open-source[bot]andGitHub 916f096fe9 Initial commit 2026-03-06 21:00:58 +00:00