Commit Graph
5130 Commits
Author SHA1 Message Date
Tunglies 4b602e1436 Merge branch 'crates-me-runtime' into crates-me
# Conflicts:
#	src-tauri/src/config/profiles.rs
#	src-tauri/src/feat/subscription.rs
2026-12-01 23:01:08 +08:00
Tunglies 171586d725 Merge branch 'crates-me-profile' into crates-me-runtime 2026-12-01 22:59:00 +08:00
Tunglies fe523dc34d perf(backup): verify file contents during restore staging 2026-12-01 22:58:36 +08:00
Tunglies bc5ed53a1b perf(runtime-bundle): read remote providers from borrowed configuration 2026-12-01 22:58:35 +08:00
Tunglies be8dd3b060 refactor(subscription): keep profile writes outside proxy fallback 2026-12-01 22:58:35 +08:00
Tunglies bc000a8e39 refactor(profile-store): reuse the journal install scratch file 2026-12-01 22:58:35 +08:00
Tunglies 724f10fd33 refactor(profile-store): simplify refresh cleanup and legacy writes 2026-12-01 22:20:33 +08:00
Tunglies 5c05722f9a refactor(config): centralize Mihomo YAML output 2026-12-01 22:10:13 +08:00
Tunglies 1450ad441c fix(backup): validate restore inputs and allow recovery retries 2026-12-01 22:10:13 +08:00
Tunglies dbf252ed65 fix(profile-store): recover aliased subscription body creation 2026-12-01 22:10:13 +08:00
Tunglies e575f4dda7 fix(profile): recover interrupted subscription refreshes
Keep subscription body and index writes recoverable, and coordinate startup, readers, backup, and Draft publication around the transaction.
2026-12-01 22:10:13 +08:00
Tunglies 840de9c4d1 refactor(config): inject the profile script executor 2026-12-01 22:09:39 +08:00
Tunglies c5b74aa01d 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.
2026-12-01 22:09:24 +08:00
Tunglies f50e52172c refactor(config): extract configuration renderer
Render from inputs supplied by the app, reuse the script crate, and preserve the default template fast path.
2026-12-01 22:09:16 +08:00
Tunglies 5d471d97aa refactor(profile): extract script validation and execution
Share the Boa validation and execution API while preserving the save-side timeout and diagnostics.
2026-12-01 22:09:04 +08:00
Tunglies fc9d5ce2a4 perf(runtime-bundle): share destination strings with tristr
Share destination storage within bundle planning and preserve the Service wire strings and provider readback.
2026-12-01 22:08:47 +08:00
Tunglies 4142fb07fd 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.
2026-12-01 22:08:47 +08:00
Tunglies 177c73f6d7 refactor(backup): extract backup ZIP writing 2026-12-01 22:08:20 +08:00
Tunglies 9eea0c7ce1 refactor(task): move retry primitives into the task crate 2026-12-01 22:07:38 +08:00
Tunglies a7b6b070b7 docs(agents): define dependencies between capability crates 2026-12-01 22:07:38 +08:00
Tunglies 61bd24d788 refactor(profile): extract selected node recovery rules 2026-12-01 22:07:38 +08:00
Tunglies 7f4ed2c179 refactor(subscription): decode deep links in the subscription crate 2026-12-01 22:07:38 +08:00
Tunglies 33ce830c01 refactor(profile): separate subscription refresh and scheduling policy
Separate download and scheduling policy from the subscription use case while retaining the existing write path.
2026-12-01 22:07:38 +08:00
Tunglies 25750ae001 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.
2026-12-01 22:07:19 +08:00
Tunglies 1baa72c2f4 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.
2026-11-30 18:13:49 +08:00
Tunglies a0d4426f0a refactor(logging): use typed logger errors
Expose crate-owned logger errors and preserve the underlying error sources.
2026-11-30 18:13:48 +08:00
Tunglies 1c7bc3200b 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.
2026-11-30 18:13:47 +08:00
Tunglies 7b43bac198 docs(agents): define Rust backend architecture boundaries
Document which layer owns Rust capabilities, fallible inputs, background work, and crate validation.
2026-11-30 18:13:47 +08:00
Tunglies 1fa03291f3 chore(clippy): scope crate lint policy
Keep panic-on-error lints at application target roots and scope signal dependencies to Linux.
2026-11-30 18:13:46 +08:00
❤是纱雾酱哟~andrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com> e04fae62d9 chore(deps): update dependency tar to v8 (#8769)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-29 14:25:03 +00:00
❤是纱雾酱哟~andrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 4ce69ec2b1 chore(deps): update dependency knip to v6.49.0 (#8768)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-29 14:19:06 +00:00
❤是纱雾酱哟~ 8d242b5732 chore(agents): adds instructions for GitHub Copilot (#8765)
- Create `.github/copilot-instructions.md` as agent-specific instruction
  file for GitHub Copilot
- Use "one-line-wrapper" prompt to `AGENTS.md`, like `GEMINI.md`
- Use "at annotation syntax" for instructions importing, like
  `CLAUDE.md`

Assisted-by: Copilot Fusion (High), actually GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna

Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
2026-11-29 08:30:36 +00:00
Tunglies 929bb6a0a1 refactor(backend): share single-owner drivers for background tasks (#8759)
* docs(backend): define background task ownership

* refactor(backend): give background operations single task owners

* test(backend): remove actor migration regression cases

* docs(changelog): drop backend actor migration entry

* refactor(backend): extract workspace task drivers

* fix(timer): omit profile identifier from panic log

* docs(backend): define workspace crate boundaries

* refactor(lightweight): use the task countdown driver

* refactor(lightweight): name countdown callbacks

* refactor(task): simplify driver startup and coalescing requests

* refactor(core): bind service handoff to the sidecar generation

* refactor(tun): coalesce background run state reconciliation

* refactor(core): own sidecar exit resources in one session

* refactor(core): remove automatic Windows service handoff

* refactor(task): simplify coalescing job signals

* refactor(runstate): keep operation status with service state

* refactor(dns): coalesce background override synchronization

* refactor(sysproxy): own the local guard under its operation lock

* fix(tray): read menu settings at publication

* fix(dns): retain script lock across caller cancellation

* refactor(profiles): own selected node restoration in one task

* refactor(timer): own subscription schedules in the scheduler

* test(timer): remove the added application test

* fix(service): renew provider sync retry budget on refresh
2026-11-29 00:42:52 +00:00
doTHTYanddoTHTY 9724aa6d4d docs(i18n): align contributor guidance with PR template (#8760)
- The i18n guide told contributors to list routine command results in a PR checklist, which conflicts with the PR template's rule to keep only review-relevant evidence.

Co-authored-by: doTHTY <362276034+doTHTY@users.noreply.github.com>
2026-11-28 15:22:14 +00:00
❤是纱雾酱哟~andrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 1be3ee67f8 chore(deps): update dependency tldts to v7.6.2 (#8763)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-28 15:19:05 +00:00
❤是纱雾酱哟~andrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com> cc99c90a66 chore(deps): update npm dependencies (#8758)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-28 12:51:55 +00:00
❤是纱雾酱哟~andrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 377d497eb3 chore(deps): update rust toolchain to v1.100.1 (#8757)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-28 09:55:39 +00:00
❤是纱雾酱哟~andrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2bce842968 chore(deps): update rust crate zip to 9.9.0 (#8756)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-28 08:35:13 +00:00
renovate[bot]renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>❤是纱雾酱哟~
e813a80902 chore(deps): update github/gh-aw-actions action to v1.4.1 (#8755)
* chore(deps): update github/gh-aw-actions action to v1.4.1

* chore(deps): bump agentic workflows to v1.4.1

- Upgrade via `gh aw upgrade`

Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>

---------

Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
2026-11-28 07:51:25 +00:00
Tunglies 055dbf5d35 feat(windows): reinstall an existing Service during NSIS upgrades (#8605)
The reinstall page runs the previous uninstaller, which removes the
Service, and the new installer only tried to start one. Record whether
clash_verge_service exists, with its start type and running state, in
.onInit before that uninstaller can run. When it existed, Section Install
reinstalls it with the bundled cores and their hashes through the
installer's own elevation, then restores a non-automatic start type and
the stopped state. A first install still never adds a Service.

A failed reinstall or restore is logged, shown in a warning dialog that is
auto-confirmed under /S, and sets exit code 2, so the installer does not
report success.

Validated only by compiling the macros with makensis -WX against the real
SimpleSC plugin; not run on Windows.

Refs #8553
2026-11-27 15:48:41 +08:00
Tunglies 876d287152 refactor(updater): retire the startup install UI (#8747)
* refactor(updater): retire the startup install UI

* fix(updater): keep daily checks running and harden the cache path
2026-11-27 07:17:15 +00:00
Tunglies 385022bd13 refactor(updater): drop the never-matching break-change gate (#8742) 2026-11-27 06:18:37 +00:00
Tunglies 1a92ac9c95 fix(updater): unify install lifecycle across startup and dialog paths (#8741) 2026-11-27 06:18:36 +00:00
renovate[bot]andrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 1daee71a9e chore(deps): update rust crate sha2 to 0.11.2 (#8745)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-27 02:12:24 +00:00
Tunglies 8fe3cc1fe3 build(macos): add local debug signing profile 2026-11-25 23:58:34 +08:00
lrehmann 52bb25531c perf(packaging): losslessly compress app and tray icons (#8733) 2026-11-25 09:39:24 +00:00
renovate[bot]andrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 8db62c93af chore(deps): update npm dependencies (#8735)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-25 09:12:05 +00:00
Link 71df1f0d74 fix(i18n): translate Spanish backup settings (#8736) 2026-11-25 08:59:34 +00:00
renovate[bot]renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>Tunglies
4015f37eb3 chore(deps): update cargo dependencies (#8705)
* chore(deps): update cargo dependencies

* fix(deps): align flexi_logger with tracing-estuary

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com>
2026-11-25 06:31:42 +00:00
wonfen 39ea2ceea3 fix(proxies): stop auto delay test on entering chain mode 2026-11-25 12:16:31 +08:00