@@ -71,6 +71,11 @@ class TweakResult(str, Enum):
7171| ` remove_tweaks(ids, ...) ` | ` → dict[str, TweakResult] ` | Batch remove by ID list |
7272| ` tweaks_by_ids(ids) ` | ` → list[TweakDef] ` | Resolve IDs to TweakDef objects (unknown IDs silently skipped) |
7373| ` tweaks_by_tag(tag) ` | ` → list[TweakDef] ` | All tweaks carrying the given tag (case-insensitive) |
74+ | ` tweaks_by_scope(scope) ` | ` → list[TweakDef] ` | All tweaks matching ` "user" ` , ` "machine" ` , or ` "both" ` |
75+ | ` tweaks_above_build(build) ` | ` → list[TweakDef] ` | Tweaks with ` min_build <= build ` |
76+ | ` tweak_risk_level(td) ` | ` → str ` | ` "low" ` , ` "medium" ` , or ` "high" ` risk classification |
77+ | ` tweak_count_by_scope() ` | ` → dict[str, int] ` | Counts per scope key (` user/machine/both ` ) |
78+ | ` category_counts() ` | ` → dict[str, int] ` | Tweak count per category name |
7479
7580---
7681
@@ -87,11 +92,15 @@ SESSION.set_dword(path, name, value) # REG_DWORD
8792SESSION .set_string(path, name, value) # REG_SZ
8893SESSION .set_binary(path, name, data) # REG_BINARY
8994SESSION .set_qword(path, name, value) # REG_QWORD (64-bit int)
95+ SESSION .set_expand_string(path, name, v) # REG_EXPAND_SZ
96+ SESSION .set_multi_sz(path, name, values) # REG_MULTI_SZ (list[str])
9097SESSION .set_value(path, name, val, type ) # any type
9198SESSION .read_dword(path, name) → int | None
9299SESSION .read_string(path, name) → str | None
93100SESSION .read_binary(path, name) → bytes | None
94101SESSION .read_qword(path, name) → int | None
102+ SESSION .read_expand_string(path, name) → str | None
103+ SESSION .read_multi_sz(path, name) → list[str ]| None
95104SESSION .list_values(path) → list[tuple[str , object , int ]]
96105SESSION .list_keys(path) → list[str ]
97106SESSION .key_exists(path) → bool
@@ -136,6 +145,11 @@ python -m regilattice --diff gaming # delta vs profile
136145python -m regilattice --dry-run --list # dry-run mode
137146python -m regilattice --search " telemetry" # search tweaks
138147python -m regilattice --search " telemetry" --output json # search as JSON
148+ python -m regilattice --list --scope user # filter by registry scope
149+ python -m regilattice --list --scope machine # machine-scope tweaks only
150+ python -m regilattice --list --min-build 22621 # Win 11 22H2+ tweaks only
151+ python -m regilattice --list --corp-safe # HKCU-only tweaks
152+ python -m regilattice --list --needs-admin # admin-required tweaks
139153python -m regilattice --export-json out.json # export as JSON
140154python -m regilattice --import-json in.json # import selection
141155python -m regilattice --export-reg out.reg # export registry
@@ -153,6 +167,8 @@ config.force_corp # bool — bypass corporate check
153167config.max_workers # int — thread pool size
154168config.backup_dir # Path — backup directory
155169config.auto_backup # bool — automatic backups
170+ config.theme # str — UI theme ("system" | "mocha" | "latte" | "nord" | "dracula")
171+ config.locale # str — UI language tag (default "en")
156172```
157173
158174---
@@ -165,8 +181,8 @@ Corporate network detection.
165181| ----------| -------------|
166182| ` is_corporate_network() ` | ` → bool ` — True if corp environment detected |
167183| ` assert_not_corporate(force=False) ` | Raises ` CorporateNetworkError ` if corp |
168- | ` corp_guard_status() ` | ` → dict ` — Detailed detection results |
169-
184+ | ` corp_guard_status() ` | ` → dict ` — Detailed detection results || ` corp_guard_reasons() ` | ` → list[str] ` — Copy of reasons list from last detection |
185+ | ` reset_corp_cache() ` | Clear cached detection result (useful in tests/hot-reload) |
170186---
171187
172188### ` regilattice.elevation `
@@ -190,15 +206,29 @@ Local-only usage analytics (no data sent anywhere).
190206| ----------| -------------|
191207| ` record_apply(tweak_id) ` | Record a successful apply |
192208| ` record_remove(tweak_id) ` | Record a successful remove |
193- | ` record_error() ` | Record an error |
209+ | ` record_error() ` | Record a generic error |
210+ | ` record_error_for(tweak_id) ` | Record a per-tweak error (increments both global and per-ID counters) |
194211| ` record_session() ` | Record session start |
195212| ` get_stats() ` | ` → AnalyticsData ` |
213+ | ` error_stats() ` | ` → dict[str, int] ` — per-tweak error counts |
196214| ` top_tweaks(n=10) ` | ` → list[tuple[str, int]] ` — most applied |
197215| ` reset() ` | Clear all analytics |
198216
199- ---
217+ ### ` regilattice.ratings `
218+
219+ Local tweak rating system (1–5 stars + optional notes).
200220
201- ## GUI Modules
221+ | Function | Description |
222+ | ----------| -----------|
223+ | ` rate_tweak(tweak_id, stars, note="") ` | Set rating for a tweak (1–5 stars) |
224+ | ` get_rating(tweak_id) ` | ` → RatingEntry \| None ` — retrieve stored rating |
225+ | ` all_ratings() ` | ` → dict[str, RatingEntry] ` — all rated tweaks |
226+ | ` remove_rating(tweak_id) ` | Delete rating for a tweak |
227+ | ` top_rated(n=10) ` | ` → list[tuple[str, int]] ` — highest-rated tweaks |
228+ | ` average_rating() ` | ` → float \| None ` — mean stars across all rated tweaks |
229+ | ` rated_count() ` | ` → int ` — number of tweaks that have been rated |
230+
231+ ---
202232
203233| Module | Key Exports |
204234| --------| -------------|
0 commit comments