fetch_ml/internal
Jeremie Fraeys 96dd604789
feat: implement WebSocket binary protocol and NOT_IMPLEMENTED error code
Add CodeNotImplemented error constant (HTTP 501) for planned but unavailable features.

Refactor WebSocket packet handling from JSON to binary protocol for improved efficiency:

New packet structure:
- PacketTypeSuccess (0x00): [type:1][json_data:var]
- PacketTypeError (0x01): [type:1][code_len:1][code:var][msg_len:2][msg:var][details_len:2][details:var]
- PacketTypeData (0x02): Reserved for future use

Update SendErrorPacket:
- Build binary error packets with length-prefixed fields
- Use WriteMessage with websocket.BinaryMessage

Update SendSuccessPacket:
- Marshal data to JSON then wrap in binary packet
- Eliminates "success" wrapper field for cleaner protocol

Add helper functions:
- NewNotImplemented(feature) - Standard 501 error
- NewNotImplementedWithIssue(feature, issueURL) - 501 with GitHub reference
2026-03-12 16:40:23 -04:00
..
api feat: implement WebSocket binary protocol and NOT_IMPLEMENTED error code 2026-03-12 16:40:23 -04:00
audit refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
auth refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
config refactor: co-locate config, container, envpool, errors, experiment, jupyter tests 2026-03-12 16:35:15 -04:00
container refactor: co-locate config, container, envpool, errors, experiment, jupyter tests 2026-03-12 16:35:15 -04:00
crypto feat(crypto,auth): harden KMS and improve permission handling 2026-03-12 12:04:32 -04:00
domain feat(domain): add task visibility and supporting infrastructure 2026-03-08 13:03:27 -04:00
envpool refactor: co-locate config, container, envpool, errors, experiment, jupyter tests 2026-03-12 16:35:15 -04:00
errtypes refactor: co-locate config, container, envpool, errors, experiment, jupyter tests 2026-03-12 16:35:15 -04:00
experiment refactor: co-locate config, container, envpool, errors, experiment, jupyter tests 2026-03-12 16:35:15 -04:00
fileutil feat(domain): add task visibility and supporting infrastructure 2026-03-08 13:03:27 -04:00
jupyter refactor: co-locate config, container, envpool, errors, experiment, jupyter tests 2026-03-12 16:35:15 -04:00
logging refactor: co-locate logging, manifest, network, privacy, prommetrics tests 2026-03-12 16:35:37 -04:00
manifest refactor: co-locate logging, manifest, network, privacy, prommetrics tests 2026-03-12 16:35:37 -04:00
metrics refactor: Phase 6 - Complete migration, remove legacy files 2026-02-17 14:39:48 -05:00
middleware feat(crypto,auth): harden KMS and improve permission handling 2026-03-12 12:04:32 -04:00
network refactor: co-locate logging, manifest, network, privacy, prommetrics tests 2026-03-12 16:35:37 -04:00
privacy refactor: co-locate logging, manifest, network, privacy, prommetrics tests 2026-03-12 16:35:37 -04:00
prommetrics refactor: co-locate logging, manifest, network, privacy, prommetrics tests 2026-03-12 16:35:37 -04:00
queue refactor: co-locate queue and resources tests, add manager tests 2026-03-12 16:36:02 -04:00
resources refactor: co-locate queue and resources tests, add manager tests 2026-03-12 16:36:02 -04:00
scheduler refactor: scheduler hub bug fix, test helpers, and orphan recovery tests 2026-03-12 16:38:33 -04:00
security refactor: co-locate security, storage, telemetry, tracking, worker tests 2026-03-12 16:37:03 -04:00
storage refactor: co-locate security, storage, telemetry, tracking, worker tests 2026-03-12 16:37:03 -04:00
store refactor: relocate store package from cmd/tui/internal to internal 2026-03-12 16:38:01 -04:00
telemetry refactor: co-locate security, storage, telemetry, tracking, worker tests 2026-03-12 16:37:03 -04:00
tracking refactor: co-locate security, storage, telemetry, tracking, worker tests 2026-03-12 16:37:03 -04:00
validation feat: add security monitoring and validation framework 2026-02-19 15:34:25 -05:00
worker refactor: co-locate security, storage, telemetry, tracking, worker tests 2026-03-12 16:37:03 -04:00