5 Commits
Author SHA1 Message Date
Claude 8cac5066f6 Doc comments on every function
Every function and method, tests included, has a doc comment: what it
is or does, what it returns and anything a caller needs to know.  Only
comments are added; gofmt split a few aligned blocks of one-line
functions once each had its own comment.  The generated protobuf code
is left as protoc writes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-18 21:26:18 +00:00
Claude 83e7a56cf8 FidoNet: TIC file echoes, nodelists from a file area, docs
File areas become file echoes (bbs filearea echo AREA TAG). TICs from
links are checked (from, password, size, CRC-32, path, dupes), their
files put in the area and passed on to the other links that carry the
echo; files uploaded here are hatched. Replaces removes older files
that came by a file echo. TICs are sent after their files.

nodelist = area:NAME reads the newest file in a file area. Docs cover
bundles, nodelists, AreaFix/FileFix and file echoes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 23:06:46 +00:00
Claude b0ee27f649 FidoNet: nodelists
[fido] nodelist = one or more files or patterns (NODELIST.*): the newest
of each is read, as it is or out of an archive (ZIP, ARC, ARJ, LHA),
the lists merged, and read again when a newer one comes.  FTS-5000:
zones, regions, hosts, hubs, Pvt, Hold and Down nodes, flags.

- Netmail is checked before it is written: to a node the list lacks
  (where it has the zone) or has down it is refused, to links always
  taken; when it goes, the caller is told whose system it reached.
- In the inbox, N finds systems by name, place, sysop or address, and
  one picked is written to (its sysop, by netmail).
- A link with host = nodelist is called where its IBN (or INA) flag says.
- bbs fido node ADDRESS and bbs fido nodes WORDS look in it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 22:53:07 +00:00
Claude 284d0e08f5 Add an HTTP API with JSON and protobuf WebSockets
[http] serves a REST API under /api/v1 (accounts, message areas, mail,
file areas with uploads and ranged downloads, chat rooms, paging, and
sysop administration including FidoNet polls and news syncs), with
server-sent events and two WebSocket endpoints speaking the bbs.v1
protocol from proto/bbs.proto: JSON text frames at /api/v1/ws and
binary protobuf at /api/v1/ws/proto.  Stream clients get a real node,
so web users chat with terminal callers, get node messages and page
the sysop.

Tokens are login sessions or API keys (bbs token add/list/revoke),
stored as SHA-256 hashes, with scopes.  TLS by default, per-token and
per-address rate limits, strict bodies, one CORS origin at most,
Prometheus metrics on their own address, and an OpenAPI 3.1 document
checked against the routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-11 16:40:57 +00:00
Claude 9cf9442d4c Add FidoNet: echomail, netmail and a binkp mailer
Message areas given an echo tag are FTN echoes; mail addressed to
Name@zone:net/node is netmail, and netmail for this system arrives as
private mail that Reply answers.  The BBS is its own tosser and scanner
(Type 2+ packets, ZIP bundles, MSGID/REPLY threading, SEEN-BY and PATH,
character sets by CHRS, dupe and loop checks, forwarding between links)
and mailer: binkp answering and calling, with CRAM-MD5.  An area that is
both an echo and a newsgroup gates between them.  bbs area echo and
bbs fido poll|scan|toss administer it.  Tested between BBSes and against
binkd and CrashMail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-10 19:59:39 +00:00