REC-014: cut dead Odin dump examples and dangling Gjallar npm scripts
Deletes crates/odin-core/examples/dump_move_tracker_health.rs and
dump_provider_endpoints.rs (no in-swarm caller: full-corpus rg for both
executable names found only their own usage strings, plus the two sibling
Odin worktrees that carry byte-identical copies). Removes package.json's
gjallar:build/gjallar:start scripts, which run `cargo build/run -p
gjallar-daemon` — no such Cargo package exists in this workspace (members:
sleipnir-daemon, odin-core, odin-daemon) or in the sibling Gjallar repo,
which is a C#/.NET executable (src/Gjallar/Gjallar.csproj), not a Rust
package.
Kill attempts that failed to find a consumer:
- rg -n "dump_move_tracker_health|dump_provider_endpoints" across all of
F:/Projects excluding target/node_modules/.git: only the examples' own
usage strings, the census docs, and the two other Odin worktrees.
- rg -n "gjallar:build|gjallar:start" across all of F:/Projects: only
Odin's own package.json (this repo + 2 worktrees) and census docs.
- Collision check: git diff --stat origin/main...codex/cultmath-cutover and
...codex/ygg-ghostlight-continuity over these paths: empty, no in-flight
work touches them.
- state/map.yaml and notes/*.md: no reference to either example or the
gjallar npm scripts.
Not touched: the root Cargo.toml exclusions for vendor/cultcache-rs and
vendor/cultnet-rs named in REC-014 are already gone — removed by commit
6575de4 ("Drop the workspace excludes for vendor trees that no longer
exist"), prior to this pass. That part of REC-014 is moot.
REC-014
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
aaaa8ed7b0
commit
5a015d9d9c
3 changed files with 0 additions and 148 deletions
|
|
@ -1,73 +0,0 @@
|
|||
use anyhow::{Context, Result};
|
||||
use cultmesh_rs::{CultMesh, CultMeshNodeOptions};
|
||||
use odin_core::{
|
||||
MuninnMoveEvidenceTransportHealthRecord, MuninnMoveTrackerHealthRecord, OdinDocuments,
|
||||
};
|
||||
use std::{env, path::PathBuf};
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let store = PathBuf::from(
|
||||
env::args()
|
||||
.nth(1)
|
||||
.context("usage: dump_move_tracker_health STORE")?,
|
||||
);
|
||||
let node = CultMesh::create_node(
|
||||
&store,
|
||||
OdinDocuments,
|
||||
CultMeshNodeOptions {
|
||||
runtime_id: "odin-dump-move-tracker-health".to_string(),
|
||||
pull_on_start: true,
|
||||
},
|
||||
)
|
||||
.with_context(|| format!("opening {}", store.display()))?;
|
||||
|
||||
let mut records = node
|
||||
.cache()
|
||||
.get_all::<MuninnMoveTrackerHealthRecord>()
|
||||
.unwrap_or_default();
|
||||
records.sort_by(|left, right| left.camera_id.cmp(&right.camera_id));
|
||||
for record in records {
|
||||
println!(
|
||||
"camera={} index={} state={} backend={}/{} size={}x{} exposure={} calibrated={} updates={} observations={} latest={} last_observation={} mean_rgb={:?} peak_rgb={:?} color_pixels={:?} updated={} detail={}",
|
||||
record.camera_id,
|
||||
record.camera_index,
|
||||
record.state,
|
||||
record.camera_api,
|
||||
record.camera_name,
|
||||
record.width,
|
||||
record.height,
|
||||
record.exposure,
|
||||
record.calibrated_controller_count,
|
||||
record.update_count,
|
||||
record.observation_count,
|
||||
record.latest_observation_count,
|
||||
record.last_observation_at,
|
||||
record.image_mean_rgb,
|
||||
record.image_peak_rgb,
|
||||
record
|
||||
.color_evidence_move_ids
|
||||
.iter()
|
||||
.cloned()
|
||||
.zip(record.color_evidence_pixel_counts.iter().copied())
|
||||
.collect::<Vec<_>>(),
|
||||
record.updated_at,
|
||||
record.detail,
|
||||
);
|
||||
}
|
||||
for record in node
|
||||
.cache()
|
||||
.get_all::<MuninnMoveEvidenceTransportHealthRecord>()
|
||||
.unwrap_or_default()
|
||||
{
|
||||
println!(
|
||||
"stream={} produced={} local_admitted={} remote_handoffs={} remote_sends={} updated={}",
|
||||
record.stream_id,
|
||||
record.produced_frames,
|
||||
record.local_ring_admissions,
|
||||
record.remote_handoffs,
|
||||
record.remote_sends,
|
||||
record.updated_at,
|
||||
);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
@ -1,73 +0,0 @@
|
|||
use anyhow::{Context, Result};
|
||||
use cultmesh_rs::{CultMesh, CultMeshNodeOptions};
|
||||
use odin_core::{
|
||||
EveProviderAdvertisementRecord, EveSurfaceStateRecord, MUNINN_HID_CONTROLLER_STATE_SCHEMA,
|
||||
OdinDocuments, OdinEndpointQuery, discover_provider_endpoints,
|
||||
};
|
||||
use std::{env, path::PathBuf};
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let mut args = env::args().skip(1);
|
||||
let store = PathBuf::from(
|
||||
args.next()
|
||||
.context("usage: dump_provider_endpoints STORE [HOST] [DEVICE]")?,
|
||||
);
|
||||
let host = args.next();
|
||||
let device = args.next();
|
||||
let node = CultMesh::create_node(
|
||||
&store,
|
||||
OdinDocuments,
|
||||
CultMeshNodeOptions {
|
||||
runtime_id: "odin-dump-provider-endpoints".to_string(),
|
||||
pull_on_start: true,
|
||||
},
|
||||
)
|
||||
.with_context(|| format!("opening {}", store.display()))?;
|
||||
|
||||
println!("provider advertisements:");
|
||||
for provider in node
|
||||
.cache()
|
||||
.get_all::<EveProviderAdvertisementRecord>()
|
||||
.unwrap_or_default()
|
||||
{
|
||||
println!("{}", serde_json::to_string_pretty(&provider.value)?);
|
||||
}
|
||||
|
||||
println!("endpoint matches:");
|
||||
for endpoint in discover_provider_endpoints(
|
||||
&node,
|
||||
OdinEndpointQuery {
|
||||
schema: Some(MUNINN_HID_CONTROLLER_STATE_SCHEMA),
|
||||
transport_contains: Some("rudp"),
|
||||
host_hint: host.as_deref(),
|
||||
device_filter: device.as_deref(),
|
||||
},
|
||||
) {
|
||||
println!(
|
||||
"{}",
|
||||
serde_json::to_string_pretty(&serde_json::json!({
|
||||
"address": endpoint.address,
|
||||
"schema": endpoint.schema,
|
||||
"transport": endpoint.transport,
|
||||
"streamId": endpoint.stream_id,
|
||||
}))?
|
||||
);
|
||||
}
|
||||
|
||||
println!("surface states:");
|
||||
for surface in node
|
||||
.cache()
|
||||
.get_all::<EveSurfaceStateRecord>()
|
||||
.unwrap_or_default()
|
||||
{
|
||||
println!(
|
||||
"{}",
|
||||
serde_json::to_string_pretty(&serde_json::json!({
|
||||
"providerId": surface.provider_id,
|
||||
"updatedAt": surface.updated_at,
|
||||
"surface": surface.surface,
|
||||
}))?
|
||||
);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
@ -7,8 +7,6 @@
|
|||
"scripts": {
|
||||
"gjallar:persona": "node scripts/write-gjallar-persona-cc.mjs inspect",
|
||||
"gjallar:persona:write": "node scripts/write-gjallar-persona-cc.mjs write",
|
||||
"gjallar:build": "cargo build -p gjallar-daemon",
|
||||
"gjallar:start": "cargo run -p gjallar-daemon --",
|
||||
"sleipnir:build": "cargo build -p sleipnir-daemon",
|
||||
"sleipnir:start": "cargo run -p sleipnir-daemon --",
|
||||
"muninn:build": "cargo build -p muninn-daemon",
|
||||
|
|
|
|||
Loading…
Reference in a new issue