pi/core/platform/mod.rs
1//! Cross-platform product integration seams.
2//!
3//! Each submodule ports a TypeScript `utils/` surface and exposes it as an
4//! injectable, argv-testable boundary so the cross-platform behavior contracts
5//! can be unit-tested on any host without spawning real platform tools:
6//!
7//! - [`command`]: typed command descriptions and the injectable process runner.
8//! - [`clipboard`]: clipboard text/image I/O with OSC 52 fallback.
9//! - [`image`]: image MIME sniff and the inline-image pipeline facade
10//! (decoding delegates to the read-tool pipeline so the decoder is unique).
11//! - [`open_browser`]: cross-platform "open URL in browser" launcher.
12//! - [`external_editor`]: external editor lifecycle with cancellation and
13//! guaranteed temporary-file cleanup.
14//! - [`debug_dump`]: `/debug` support dump renderer, redaction, and atomic
15//! write.
16//! - [`first_run`]: first-run setup gating and persistence.
17//! - [`release_packaging`]: release cargo/archive plan, runner, path safety,
18//! and reproducibility.
19
20pub mod clipboard;
21pub mod command;
22pub mod debug_dump;
23pub mod external_editor;
24pub mod first_run;
25pub mod image;
26pub mod open_browser;
27pub mod release_packaging;