https://gitlab.synchro.net/main/sbbs/-/commit/e6daff2e8afe644c165d451a
Modified Files:
.claude/skills/javascript/SKILL.md
Log Message:
javascript skill: scanning a base by index; source encoding
Add a MsgBase subsection on walking the index instead of message numbers: numbers are sparse, so a first_msg..last_msg loop mostly looks up numbers
that don't exist; get_index() and reading headers by offset; filtering on
the index to/from fields (16-bit user numbers in mail, CRC-16 of the lower-cased name in subs); clamping client-supplied ranges; and the trap
that get_msg_index() and get_msg_header() return null for vote records
unless include_votes is true, which breaks a binary search over offsets
and changes results when a per-offset loop is replaced with get_index().
Add a note on source encoding: write non-ASCII as "\xNN" escapes or
ascii(), since the next-js branch compiles scripts as UTF-8, and how to
edit a stock file that still contains raw CP437 bytes (#1341).
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
--- SBBSecho 3.38-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)