muninn-contracts: Muninn's 15 state records leave odin-core
New library crate crates/muninn-contracts holds the records Muninn owns (telemetry surface, capture stream and command, OBS catalog, Move marker candidate, controller state, identity, light command, hue program, tracker health and evidence transport health, HID controller state, Quest access, command boundary, transport profile), their schema constants, and the MuninnRecords document set. The definitions are the odin-core ones moved verbatim; the wire is unchanged. muninn and sleipnir import the records from here, so both link one definition. muninn registers MuninnRecords after OdinDocuments, which stays because it still carries Odin's own records and stale copies of the same schema ids. Muninn's odin-core imports are now EveProviderAdvertisementRecord, EveSurfaceStateRecord and OdinDocuments. Tests pin every type name and schema id, the document-set bindings, and the positional wire layout of two records. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7b8b37a2fd
commit
e27de13efd
9 changed files with 739 additions and 11 deletions
|
|
@ -7,10 +7,11 @@ use cultnet_rs::{
|
|||
CultNetRudpSocketTransportConnection, CultNetRudpSocketTransportOptions, CultNetWireContract,
|
||||
encode_cultnet_message_to_vec,
|
||||
};
|
||||
use muninn_contracts::{MUNINN_HID_CONTROLLER_STATE_SCHEMA, MuninnHidControllerStateRecord};
|
||||
use odin_core::{
|
||||
EVE_PROVIDER_ADVERTISEMENT_SCHEMA, EveProviderAdvertisementRecord, EveSurfaceStateRecord,
|
||||
IdunnDaemonHealthRecord, MUNINN_HID_CONTROLLER_STATE_SCHEMA, MuninnHidControllerStateRecord,
|
||||
OdinDocuments, OdinEndpointQuery, SleipnirInputMappingRecord, discover_provider_endpoints,
|
||||
IdunnDaemonHealthRecord, OdinDocuments, OdinEndpointQuery, SleipnirInputMappingRecord,
|
||||
discover_provider_endpoints,
|
||||
};
|
||||
use std::collections::HashMap;
|
||||
use std::env;
|
||||
|
|
|
|||
Loading…
Reference in a new issue