* chore(clippy): scope crate lint policy
Keep panic-on-error lints at application target roots and scope signal dependencies to Linux.
* docs(agents): define Rust backend architecture boundaries
Document which layer owns Rust capabilities, fallible inputs, background work, and crate validation.
* refactor(draft): type async publication conflicts
Return typed conflicts for async Draft edits. Release the lock and edit permit before converting the error, and exercise overlapping updates.
* refactor(logging): use typed logger errors
Expose crate-owned logger errors and preserve the underlying error sources.
* refactor(subscription): extract response decoding
Keep HTTP and persistence in the app. Decode response metadata and framing in the crate, and fall back when the server filename is invalid.
* refactor(profile): extract profile models and index rules
Move profile models and index rules into the crate, preserving serialization and returning a typed missing-profile error.
* refactor(profile): separate subscription refresh and scheduling policy
Separate download and scheduling policy from the subscription use case while retaining the existing write path.
* refactor(subscription): decode deep links in the subscription crate
* refactor(profile): extract selected node recovery rules
* docs(agents): define dependencies between capability crates
* refactor(task): move retry primitives into the task crate
* refactor(backup): extract backup ZIP writing
* refactor(subscription): keep profile writes outside proxy fallback
* refactor(runtime-bundle): extract runtime bundle planning
Plan provider destinations and assets in the crate. Adapt the plan to the Service wire format at the call site.
* perf(runtime-bundle): share destination strings with tristr
Share destination storage within bundle planning and preserve the Service wire strings and provider readback.
* refactor(profile): extract script validation and execution
Share the Boa validation and execution API while preserving the save-side timeout and diagnostics.
* refactor(config): extract configuration renderer
Render from inputs supplied by the app, reuse the script crate, and preserve the default template fast path.
* refactor(proxy): extract proxy view and its use case
Project the Mihomo snapshot into the existing IPC DTO and move use-case orchestration out of the command.
* refactor(config): inject the profile script executor
* refactor(config): centralize Mihomo YAML output
* perf(runtime-bundle): read remote providers from borrowed configuration
* chore(clippy): scope crate lint policy
Keep panic-on-error lints at application target roots and scope signal dependencies to Linux.
* docs(agents): define Rust backend architecture boundaries
Document which layer owns Rust capabilities, fallible inputs, background work, and crate validation.
* refactor(draft): type async publication conflicts
Return typed conflicts for async Draft edits. Release the lock and edit permit before converting the error, and exercise overlapping updates.
* refactor(logging): use typed logger errors
Expose crate-owned logger errors and preserve the underlying error sources.
* refactor(subscription): extract response decoding
Keep HTTP and persistence in the app. Decode response metadata and framing in the crate, and fall back when the server filename is invalid.
* refactor(profile): extract profile models and index rules
Move profile models and index rules into the crate, preserving serialization and returning a typed missing-profile error.
* refactor(profile): separate subscription refresh and scheduling policy
Separate download and scheduling policy from the subscription use case while retaining the existing write path.
* refactor(subscription): decode deep links in the subscription crate
* refactor(profile): extract selected node recovery rules
* docs(agents): define dependencies between capability crates
* refactor(task): move retry primitives into the task crate
* refactor(backup): extract backup ZIP writing
* refactor(subscription): keep profile writes outside proxy fallback
* fix(profile): preserve delays for future update timestamps
* fix(subscription): preserve filenames from response headers and URL paths
* fix(subscription): separate deep link parameters from nested URLs
* refactor(profile): look up the refresh target once
* refactor(subscription): pass the proxy directly to each download
* refactor(profile): build companion options in one place
* refactor(profile): remove companions from the deleted profile
* style(profile): keep profile fields together
* refactor(profile): name index operations after what they change
* refactor(profile): call the core reload directly
* refactor(backup): move archive validation to the restore change
* refactor(config): name the runtime rendering step
* refactor(config): remove the unused runtime patch API
* refactor(config): accumulate profile keys and logs during rendering
* refactor(config): load cached chain items directly
* refactor(script): keep console state local to evaluation
* refactor(proxy): read group order and scope in one pass
* refactor(config): reuse sequence storage when applying profile edits
* refactor(proxy): collect provider snapshots in display order
* refactor(proxy): build the view from its input
* refactor(runtime-bundle): share provider section order
* fix(config): fill blank IPv6 fake IP ranges in TUN mode
* fix(config): keep runtime field sorting stable
* perf(config): reuse profile sequence storage during rendering
* fix(script): check the evaluated profile entry point
* fix(script): support runtime console methods during validation
* perf(script): count integer digits without formatting JSON
* perf(proxy): resolve unique members without building scope caches
* fix(runtime-bundle): reject mixed owners of a provider path
* perf(runtime-bundle): reuse the normalized destination buffer
* fix(script): reject oversized names before escaping
Route frontend and tray node selections through the same backend flow for
selection, persistence, state refresh, and connection cleanup. Read the
group's previous selection before switching and preserve the original
rule of closing only connections whose chains contain that selection.
Run optional cleanup in the background and keep its failures separate
from successful selection. Remove redundant frontend effects and unused
IPC commands, and refresh the proxy view for every successful switch.
Refs: 32095daf90
Refs: bea0dde074