spectrawl 0.3.12 → 0.3.13

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": "spectrawl",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "description": "The unified web layer for AI agents. Search (6 engines), stealth browse (Camoufox + Playwright), auth (cookies, multi-account), act (24 adapters, 30+ platforms), proxy rotation. Self-hosted, free.",
5
5
  "main": "src/index.js",
6
6
  "types": "index.d.ts",
@@ -37,6 +37,13 @@ class SearchEngine {
37
37
  this.reranker = geminiKey ? new Reranker({ apiKey: geminiKey, ...config.reranker }) : null
38
38
  this.expander = geminiKey ? new QueryExpander({ apiKey: geminiKey, ...config.expander }) : null
39
39
  this.sourceRanker = new SourceRanker(config.sourceRanker || {})
40
+
41
+ // One-time warning if no Gemini key
42
+ if (!geminiKey && !SearchEngine._keyWarned) {
43
+ SearchEngine._keyWarned = true
44
+ console.warn('\n⚠️ No GEMINI_API_KEY set. Using DDG fallback (limited quality, unreliable from servers).')
45
+ console.warn(' Get a free key (no credit card): https://aistudio.google.com/apikey\n')
46
+ }
40
47
  }
41
48
 
42
49
  /**