@juicesharp/rpiv-web-tools 2.8.0 → 2.10.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": "@juicesharp/rpiv-web-tools",
3
- "version": "2.8.0",
3
+ "version": "2.10.0",
4
4
  "description": "Pi extension. Web search and fetch for the model with pluggable providers (Brave, Tavily, Serper, Exa, You.com, Jina, Firecrawl, Perplexity, SearXNG, Ollama).",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -65,7 +65,7 @@
65
65
  ]
66
66
  },
67
67
  "dependencies": {
68
- "@juicesharp/rpiv-config": "^2.8.0",
68
+ "@juicesharp/rpiv-config": "^2.10.0",
69
69
  "typebox": "^1.1.24"
70
70
  },
71
71
  "peerDependencies": {
@@ -155,10 +155,10 @@ export function writeConfig(c: WebToolsConfig): boolean {
155
155
  return saveJsonConfig(CONFIG_PATH, c);
156
156
  }
157
157
 
158
- // Plan-surface no-op. Phase 4 omits the in-memory cache the plan sketched —
159
- // the tests' direct-writeFileSync pattern makes per-test invalidation a
160
- // rewrite-the-suite job for marginal perf gain. Kept exported so that
161
- // consumers writing against the plan's API can call it without breaking.
158
+ // Deliberately a no-op — there is no in-memory config cache (the tests'
159
+ // direct-writeFileSync pattern makes per-test invalidation a
160
+ // rewrite-the-suite job for marginal perf gain). Kept exported so callers
161
+ // keep a stable invalidation hook.
162
162
  export function invalidateConfigCache(): void {
163
163
  // no-op
164
164
  }
@@ -47,8 +47,8 @@ export function getActiveGitHubInterceptor(): GitHubInterceptor | null {
47
47
  }
48
48
 
49
49
  // Public free-function alias for test cleanup. Resets the active GitHub
50
- // interceptor (if any) — same behavior the pre-refactor `clearCloneCache`
51
- // had, just routed through the class instead of module-level state.
50
+ // interceptor (if any),
51
+ // routed through the class rather than module-level state.
52
52
  export function clearCloneCache(): void {
53
53
  activeGitHubInterceptor?.reset();
54
54
  }
package/web-tools.ts CHANGED
@@ -65,8 +65,6 @@ const LEGACY_TOP_LEVEL_KEY_PROVIDER = "brave";
65
65
 
66
66
  // ---------------------------------------------------------------------------
67
67
  // Config persistence — schema + reader/writer live in providers/config.ts.
68
- // The two local aliases keep the call-site shape identical to pre-refactor
69
- // (loadConfig / saveConfig) so the rest of this file reads unchanged.
70
68
  // ---------------------------------------------------------------------------
71
69
 
72
70
  const loadConfig = readConfig;