Commit Graph
5180 Commits
Author SHA1 Message Date
Tunglies 9b10b9bb25 perf(config): reuse profile sequence storage during rendering 2026-12-03 21:39:21 +08:00
Tunglies 1471ad31a5 fix(config): keep runtime field sorting stable 2026-12-03 21:39:21 +08:00
Tunglies 2735282879 fix(config): fill blank IPv6 fake IP ranges in TUN mode 2026-12-03 21:39:20 +08:00
Tunglies 7b6113c91b chore(runtime): merge dev after the profile squash 2026-12-03 20:58:17 +08:00
Tunglies 4fa9983576 refactor(runtime-bundle): share provider section order 2026-12-03 20:56:45 +08:00
Tunglies 473452c57e refactor(proxy): build the view from its input 2026-12-03 20:56:44 +08:00
Tunglies 17bd142fb7 refactor(proxy): collect provider snapshots in display order 2026-12-03 20:56:44 +08:00
Tunglies 4e49320ba2 refactor(config): reuse sequence storage when applying profile edits 2026-12-03 20:56:43 +08:00
Tunglies b5546c03b5 refactor(proxy): read group order and scope in one pass 2026-12-03 20:56:43 +08:00
Tunglies 91aae5ef40 refactor(script): keep console state local to evaluation 2026-12-03 20:56:43 +08:00
Tunglies ce1c0ee510 refactor(config): load cached chain items directly 2026-12-03 20:56:42 +08:00
Tunglies 079a8563a9 refactor(config): accumulate profile keys and logs during rendering 2026-12-03 20:56:42 +08:00
Tunglies 6cce982f58 refactor(config): remove the unused runtime patch API 2026-12-03 20:56:41 +08:00
Tunglies 447ce3ccfb refactor(backend): extract profile and subscription capabilities (#8800)
* 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
2026-12-03 12:42:26 +00:00
Tunglies 63000f39f5 refactor(config): name the runtime rendering step 2026-12-03 19:42:50 +08:00
Tunglies ca22495869 chore(runtime): sync the profile refactor 2026-12-03 19:42:46 +08:00
Tunglies a272280f1a refactor(backup): move archive validation to the restore change 2026-12-03 19:38:51 +08:00
Tunglies 35dbb3716d refactor(profile): call the core reload directly 2026-12-03 19:38:46 +08:00
Tunglies 651f297785 refactor(profile): name index operations after what they change 2026-12-03 19:38:42 +08:00
Tunglies 80fca96848 style(profile): keep profile fields together 2026-12-03 19:38:36 +08:00
Tunglies 966e0e03ff refactor(profile): remove companions from the deleted profile 2026-12-03 19:38:32 +08:00
Tunglies 3af8034e02 refactor(profile): build companion options in one place 2026-12-03 19:38:28 +08:00
Tunglies 83a520ea19 refactor(subscription): pass the proxy directly to each download 2026-12-03 19:38:23 +08:00
Tunglies c742a9a17c refactor(profile): look up the refresh target once 2026-12-03 19:38:18 +08:00
Tunglies c53e005f25 fix(subscription): separate deep link parameters from nested URLs 2026-12-03 17:59:25 +08:00
Tunglies 390231a043 fix(subscription): preserve filenames from response headers and URL paths 2026-12-03 17:59:25 +08:00
Tunglies c4ee0e0c8a fix(profile): preserve delays for future update timestamps 2026-12-03 17:59:24 +08:00
Tunglies 041454be57 refactor(subscription): keep profile writes outside proxy fallback 2026-12-03 17:20:42 +08:00
Tunglies 18f733fca9 refactor(backup): extract backup ZIP writing 2026-12-03 17:20:42 +08:00
Tunglies 911a3c58fa refactor(task): move retry primitives into the task crate 2026-12-03 17:20:32 +08:00
Tunglies 0bc38ba664 docs(agents): define dependencies between capability crates 2026-12-03 17:20:32 +08:00
Tunglies 00cb43f5de refactor(profile): extract selected node recovery rules 2026-12-03 17:20:32 +08:00
Tunglies 85c0a60ddb refactor(subscription): decode deep links in the subscription crate 2026-12-03 17:20:32 +08:00
Tunglies c6e59ad538 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-03 17:20:32 +08:00
Tunglies 64490c44ab 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-03 17:20:32 +08:00
Tunglies 9614dee991 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-12-03 17:20:32 +08:00
Tunglies ad285eac95 refactor(logging): use typed logger errors
Expose crate-owned logger errors and preserve the underlying error sources.
2026-12-03 17:20:32 +08:00
Tunglies 72e7201abc 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-12-03 17:20:32 +08:00
Tunglies 03ff4f846c docs(agents): define Rust backend architecture boundaries
Document which layer owns Rust capabilities, fallible inputs, background work, and crate validation.
2026-12-03 17:20:21 +08:00
Tunglies 032eb9767e chore(clippy): scope crate lint policy
Keep panic-on-error lints at application target roots and scope signal dependencies to Linux.
2026-12-03 17:20:21 +08:00
renovate[bot]renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>Tunglies
a76818326d chore(deps): update tauri (#8764)
* chore(deps): update tauri

* fix(installer): align NSIS locale variables with Tauri 2.13

* chore(tray): migrate template icons to Tauri 2.13 APIs

* fix(core): resolve the bundled core for validation fingerprints

* fix(deps): resolve Tauri 2.13 with the patched WebDriver

* fix(tray): wake the main window from Linux tray clicks

Use StatusNotifierItem activation to wake the dashboard, including lightweight mode.

Closes #8517

* fix(tray): gate template icon handling to macOS at compile time

* fix(deps): select GTK3 for Linux dialogs

* fix(linux): return when the startup dialog cannot initialize GTK

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com>
2026-12-03 08:07:50 +00:00
Tunglies 16ef6fbc34 fix(i18n): resolve startup locales consistently
Prefer a supported saved language over the cache and browser locale.
Align frontend alias resolution with Rust and ignore unsupported saved
values when the layout mounts so they cannot overwrite the fallback.

In Rust, walk borrowed prefixes instead of rebuilding strings. This
preserves locale resolution and removes quadratic work on long tags.
Across all 14 shipped locale IDs (equally weighted),
median lookup time fell from 40.0 to 22.4 ns and heap allocations fell
from 4 to 2 per lookup. A synthetic 64 KiB tag fell from 771 ms to 240 µs.
2026-12-03 12:59:02 +08:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 9bdd2c0623 build(deps): bump cookie (#8807)
Bumps the cargo group with 1 update in the / directory: [cookie](https://github.com/rwf2/cookie-rs).

Updates `cookie` from 0.18.1 to 0.18.3
- [Changelog](https://github.com/rwf2/cookie-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rwf2/cookie-rs/compare/0.18.1...0.18.3)

---
updated-dependencies:
- dependency-name: cookie
  dependency-version: 0.18.3
  dependency-type: indirect
  dependency-group: cargo
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-02 16:34:41 +00:00
renovate[bot]Tungliesrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
39fd5e968b chore(deps): update cargo dependencies (#8811)
* test(draft): cover conflict wakeup and busy layer

* chore(deps): update cargo dependencies

---------

Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-12-02 13:41:44 +00:00
Tunglies c9223b204b fix(limiter): handle stale clock samples and timestamp overflow
A caller could sample the clock at 1000 ms and pause while another
caller was admitted at 2000 ms. On resuming, the first caller could
load the newer last_run_ms, mistake its stale sample for a clock
rollback, and replace 2000 with 1000. This reopened the 100 ms period
and let another check at 2000 ms pass. Load last_run_ms before sampling
the clock so the stale caller's compare-exchange fails if a newer
admission has changed that value. Preserve sequential clock rollback
behavior and the existing atomic orderings.

The period check also added the period to last_run_ms. A last admission
at u64::MAX - 55 with a 56 ms period overflowed on the next check:
debug builds panicked and release builds wrapped the deadline to zero,
admitting a duplicate timestamp. Compare elapsed time against the
period only after confirming the clock has not moved backward, which
makes the subtraction safe and preserves the exact period boundary.

Enable the stale-sample and overflow regressions, keep the saved
Proptest seed, and add Loom coverage for advancing time and multiple
stale callers plus a deterministic test at u64::MAX.
2026-12-02 21:18:45 +08:00
renovate[bot]renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>❤是纱雾酱哟~
9c3a433979 chore(deps): update agentic workflows to v1.4.5 (#8809)
- Bump actions in `copilot-setup-steps.yml`
- Bump other agentic workflow lockfiles

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-12-02 12:42:22 +00:00
renovate[bot]andrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com> 2943b58ef7 chore(deps): update dependency terser to v5.51.3 [security] (#8810)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-12-02 10:33:16 +00:00
Tunglies 186ec116fa refactor(frontend): outfox foxact, foxts, and eslint-plugin-sukka (#8808)
* chore(eslint): remove eslint-plugin-sukka

* refactor(frontend): remove foxts and inline local utilities

* refactor(frontend): remove foxact and replace with local hooks

* refactor(proxy): reuse local storage for group preferences
2026-12-02 01:34:55 +00:00
renovate[bot]renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>❤是纱雾酱哟~
87de9bd5bf chore(deps): update github/gh-aw-actions action to v1.4.4 (#8804)
* chore(deps): update github/gh-aw-actions action to v1.4.4

* chore(gh-aw): update agentic workflows to v1.4.4

- Updates workflow tooling and threat detection
- Refreshes generated workflows with the latest compiler, container digests, and GitHub MCP server
- Improves detection activation metadata restoration and prepares detection inputs before reporting or artifacts run

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-12-01 18:12:16 +00:00
Tunglies 4168a87983 perf(runtime-bundle): read remote providers from borrowed configuration 2026-12-02 02:10:11 +08:00