SLBridge: versioned envelope + type registry + capability negotiation in the viewer and helper script #1215

Open
opened 2026-10-28 16:42:53 +00:00 by sky_line · 0 comments
Owner

Part of #1213. Implement the spec's core, in both slbridge.{h,cpp} and slipstream_helper.lsl:

  • Parse and emit #slb:<type>/<ver>|..., keeping backward compatibility with the current unversioned lines through one release, then drop it.
  • Registry: registerHandler(type, version, handler). Unknown types or versions are dropped, with a debug log.
  • Hello capability list: features query SLBridge::supports(type, ver) before using a type and degrade (or offer to update the helper) when it's missing.
  • Per-type rate budgets in the helper, from the registry, replacing the single generic bucket pair where types need different budgets.
  • The helper version hash stays; the capability list is what features key off.
Part of #1213. Implement the spec's core, in both `slbridge.{h,cpp}` and `slipstream_helper.lsl`: - **Parse and emit** `#slb:<type>/<ver>|...`, keeping backward compatibility with the current unversioned lines through one release, then drop it. - **Registry:** `registerHandler(type, version, handler)`. Unknown types or versions are dropped, with a debug log. - **Hello capability list:** features query `SLBridge::supports(type, ver)` before using a type and degrade (or offer to update the helper) when it's missing. - **Per-type rate budgets** in the helper, from the registry, replacing the single generic bucket pair where types need different budgets. - The helper version hash stays; the capability list is what features key off.
sky_line added this to the Slipstream project 2026-10-28 16:42:53 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#1215
No description provided.