hex/crates/capture/src/lib.rs
Kit Langton 3a1de64a8f
Capture capsule: name the session, never its ses id (#1327)
A saved rule to a session ID is answered before the session server
answers, so the router had only the id: the pill read
"Sent to ses_e853… · too late" and the bundle's summary did too, while
the routing record had the title.

Every destination now carries a title: the name the router read, else
the capture's own session list, else OpenCode's title for that session,
else "session". The bundle, the delivery and the capsule all read it,
and the capsule's short() refuses a raw ses id from any host.

Co-authored-by: Kit Langton <kit@kitlangton.com>
2026-11-04 12:57:23 -08:00

56 lines
1.5 KiB
Rust

pub use scrawl_router::{
Action, AutoSend, Decision, DeliverRequest, Delivered, DeliveryMode, OfferRule, Router,
RouterConfig, RouterDirs, RuleKind, Sent, Target as RouterTarget, UndoReport, Undone, bundle,
delivery, model, opencode, router_config_from_scrawl, routing,
};
pub mod agent_context;
pub mod audio;
pub mod autocrop;
pub mod autocrop_lab;
// Windows looks elements up through UI Automation (`win/uia.rs`); other systems have no lookup.
#[cfg_attr(
not(any(target_os = "macos", target_os = "windows")),
path = "ax_other.rs"
)]
pub mod ax;
pub mod capture;
pub mod command_transcriber;
pub mod export;
pub mod handoff;
#[cfg_attr(target_os = "windows", path = "win/helper.rs")]
#[cfg_attr(target_os = "linux", path = "linux/helper.rs")]
pub mod helper;
#[cfg(feature = "hex-client")]
pub mod hex;
pub mod hosted_input;
pub mod ingest_http;
pub mod keyframes;
#[cfg(target_os = "linux")]
pub mod linux;
pub mod live_transcribe;
pub mod log;
pub mod mic;
pub mod page;
pub mod permissions;
pub mod phone;
pub mod pipeline;
pub mod recover;
pub mod render;
pub mod retention;
pub mod screens;
pub mod sketch;
pub mod speech_model;
pub mod transcribe;
pub mod web;
#[cfg(target_os = "windows")]
pub mod win;
pub mod window_log;
pub use window_log as windows;
pub mod zoom;
pub use handoff::{
EngineConfig, enable_scrawl_host_defaults, engine_config_from_scrawl, parse_scrawl_config,
};
pub use log::{Sink, enable_file_log, scrawl_log, set_sink, set_sink_if_unset, start_metric};
pub use mic::Choice as MicChoice;