Commit Graph
22 Commits
Author SHA1 Message Date
Tunglies 06329c3337 refactor(backend): extract configuration and runtime capabilities (#8801)
* 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
2026-12-03 23:24:11 +00:00
wonfen 807f9a206d chore: trim excessive comments 2026-08-19 07:27:43 +08:00
wonfen 10576780ed feat: add hosts settings to DNS settings and enhance DNS config validation 2025-05-11 22:55:31 +08:00
MystiPanda e25185b9b8 feat: add profile name param for script 2024-07-04 23:11:54 +08:00
MystiPanda bf8eebe537 chore: Adjust the chain processing execution order and default value 2024-07-02 12:40:28 +08:00
MystiPanda 28fb0b433b refactor: pure merge 2024-06-30 07:58:44 +08:00
MystiPanda 4d424e70bc feat: support seq editor 2024-06-30 00:22:05 +08:00
MystiPanda 39a9181cdd refactor: remove prepend and append for provider 2024-05-08 00:22:14 +08:00
dongchengjie 28567e4629 chore: profile template typo 2024-05-04 14:24:11 +08:00
dongchengjie 494911805e chore: 修改Merge配置文件默认内容 (#889) 2024-04-17 22:56:54 +08:00
Pylogmon f0d88d4e73 feat: Merge Providers (#508) 2024-03-08 11:37:52 +08:00
MystiPanda bfb7ff88d9 fix: Cargo clippy 2023-12-21 16:49:21 +08:00
GyDi ce2d4498e1 refactor: adjust all path methods and reduce unwrap 2022-11-18 10:26:39 +08:00
GyDi 98cf8aa445 fix: change template 2022-11-18 08:04:26 +08:00
GyDi f5f865a139 refactor: wip 2022-11-16 01:26:41 +08:00
GyDi 2d00ddad2b refactor: optimize 2022-09-11 20:58:55 +08:00
GyDi 97254a1e3a feat: i18n supports 2022-03-12 23:07:45 +08:00
GyDi 83bf67b8ca feat: profile item adjust 2022-03-05 19:04:20 +08:00
GyDi 4903c70686 refactor: profile config 2022-03-01 08:58:47 +08:00
GyDi 3b54eeb1c5 feat: fill verge template 2022-02-20 20:12:55 +08:00
GyDi 5b5a299b55 feat: enable show or hide traffic graph 2022-02-19 18:14:40 +08:00
GyDi 46183d4d43 feat: inline config file template 2022-02-18 23:57:13 +08:00