Skip to main content

Crate whycodes_import

Crate whycodes_import 

Source
Expand description

Import MCP, permission, and hook settings from other coding agents.

Discovery never reads a file until the user approves that exact path. Source files are never modified. Symlinks are refused.

Re-exports§

pub use apply::apply;
pub use apply::apply_and_save;
pub use apply::plan;
pub use consent::ConsentStore;
pub use discover::KNOWN_SOURCES;
pub use discover::scan;
pub use discover::scan_with_home;
pub use discover::why_config_missing;
pub use error::ImportError;
pub use error::Result;
pub use extract::extract;
pub use types::Extracted;
pub use types::FoundSource;
pub use types::ImportItem;
pub use types::ImportItemKind;
pub use types::ImportPlan;
pub use types::Product;
pub use types::SourceState;

Modules§

apply
Merge extracted settings into a WhyCodes Config. Existing keys win.
consent
Consent store for settings import (<data_dir>/import-consent.json, 0600).
discover
Locate other agents’ user-level settings files without reading them.
error
Import errors.
extract
Product-specific extractors. Called only after the user approved the path.
parse
Shared parsers for foreign JSON / JSONC / TOML settings.
types
Shared types for settings import.

Functions§

has_discoverable_sources
True when at least one non-symlink foreign settings file exists.
preview
Read approved sources and build a merge plan against config.