mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
- Restricted Mode git: reads run without a signature verifier, hooks (including config-defined ones), an external diff, filters or a lazy fetch, also inside submodules; every repository and every git starts restricted until the project is trusted. - project.write and plugin quick fixes cannot reach git's own files under any spelling or through links; project.write is a high-risk grant. - Built-in web server: each served root has its own port and token; a file outside the project is served with its folder minus dot names, or alone when that folder is the home folder or above it; no fixed port. - Images, references, Markdown links and language-server links reach no network share other than the one already open. - Marketplace: entries whose id or version no manifest may carry are dropped; an index read over the network names nothing on this machine; network reads are bounded in size and time. - Agent replies load remote images on a click; the Markdown preview and Mermaid configuration no longer fetch from other hosts.
18 lines
881 B
Rust
18 lines
881 B
Rust
//! Web browsers, like IDEA's "Open In › Browser" and the editor's browser bar.
|
||
//!
|
||
//! [`WebServer`] is the built-in server: it serves project files read-only on
|
||
//! `127.0.0.1`, so pages opened from the IDE load relative scripts, styles and
|
||
//! ES modules the way they would from a real server. Each served root has a
|
||
//! port, and so an origin, of its own, and its URLs start with a random token
|
||
//! of its own, new on every run. A file outside the project is served with
|
||
//! what lies below its folder, dot names left out, or alone when that folder
|
||
//! is the home folder or holds it. Requests whose `Host` is not the server
|
||
//! itself are refused (DNS rebinding). [`installed`] lists the browsers found
|
||
//! on this machine and [`open`] launches one, or the system default.
|
||
|
||
mod browsers;
|
||
mod server;
|
||
|
||
pub use browsers::{Browser, installed, open};
|
||
pub use server::WebServer;
|