@mrclrchtr/supi-cache 1.15.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrclrchtr/supi-cache",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "SuPi Cache — prompt cache health monitoring and cross-session forensics",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"README.md"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@mrclrchtr/supi-core": "1.
|
|
33
|
+
"@mrclrchtr/supi-core": "1.16.0"
|
|
34
34
|
},
|
|
35
35
|
"bundledDependencies": [
|
|
36
36
|
"@mrclrchtr/supi-core"
|
package/src/config.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Configuration for supi-cache.
|
|
2
2
|
//
|
|
3
|
-
// Config shape (in supi shared config, "
|
|
3
|
+
// Config shape (in supi shared config, "cache" section):
|
|
4
4
|
// {
|
|
5
5
|
// "enabled": true, // enable/disable cache monitoring
|
|
6
6
|
// "notifications": true, // show regression warning notifications
|
|
@@ -30,7 +30,7 @@ export const CACHE_MONITOR_DEFAULTS: CacheMonitorConfig = {
|
|
|
30
30
|
|
|
31
31
|
export function loadCacheMonitorConfig(cwd: string, homeDir?: string): CacheMonitorConfig {
|
|
32
32
|
// Read the new section first, then fall back to the old section for upgrades.
|
|
33
|
-
const merged = loadSupiConfig("
|
|
33
|
+
const merged = loadSupiConfig("cache", cwd, CACHE_MONITOR_DEFAULTS, { homeDir });
|
|
34
34
|
const legacy = loadSupiConfig("cache-monitor", cwd, CACHE_MONITOR_DEFAULTS, { homeDir });
|
|
35
35
|
// Prefer new-section values when present; keep defaults as the base.
|
|
36
36
|
return { ...CACHE_MONITOR_DEFAULTS, ...legacy, ...merged };
|
|
@@ -9,9 +9,9 @@ const IDLE_THRESHOLD_VALUES = ["1", "2", "3", "5", "10", "15", "20", "30", "45",
|
|
|
9
9
|
/** Register supi-cache settings with the supi settings registry. */
|
|
10
10
|
export function registerCacheMonitorSettings(homeDir?: string): void {
|
|
11
11
|
registerConfigSettings({
|
|
12
|
-
id: "
|
|
12
|
+
id: "cache",
|
|
13
13
|
label: "Cache",
|
|
14
|
-
section: "
|
|
14
|
+
section: "cache",
|
|
15
15
|
defaults: CACHE_MONITOR_DEFAULTS,
|
|
16
16
|
buildItems: (settings) => [
|
|
17
17
|
{
|