pi-web-access 0.7.0 → 0.7.1

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.
Files changed (2) hide show
  1. package/README.md +10 -8
  2. package/package.json +28 -4
package/README.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  An extension for [Pi coding agent](https://github.com/badlogic/pi-mono/) that gives Pi web capabilities: search via Perplexity AI or Gemini, fetch and extract content from URLs, clone GitHub repos for local exploration, read PDFs, understand YouTube videos, and analyze local video files.
8
8
 
9
+ https://github.com/user-attachments/assets/cac6a17a-1eeb-4dde-9818-cdf85d8ea98f
10
+
9
11
  ```typescript
10
12
  web_search({ query: "TypeScript best practices 2025" })
11
13
  fetch_content({ url: "https://docs.example.com/guide" })
@@ -17,19 +19,19 @@ fetch_content({ url: "https://docs.example.com/guide" })
17
19
  pi install npm:pi-web-access
18
20
  ```
19
21
 
20
- Configure at least one search provider:
22
+ **Zero config if you're signed into Google in Chrome.** The extension reads your Chrome session cookies to access Gemini — no API keys needed. This gives you web search, YouTube video understanding, page extraction fallbacks, and local video analysis for free.
21
23
 
22
- ```bash
23
- # Option 1: Sign into gemini.google.com in Chrome (free, zero config)
24
+ If you're not signed into Chrome, or want to use a different provider, add API keys to `~/.pi/web-search.json`:
24
25
 
25
- # Option 2: Gemini API key
26
- echo '{"geminiApiKey": "AIza..."}' > ~/.pi/web-search.json
26
+ ```json
27
+ { "geminiApiKey": "AIza..." }
28
+ ```
27
29
 
28
- # Option 3: Perplexity API key
29
- echo '{"perplexityApiKey": "pplx-..."}' > ~/.pi/web-search.json
30
+ ```json
31
+ { "perplexityApiKey": "pplx-..." }
30
32
  ```
31
33
 
32
- All three work simultaneously. In `auto` mode (default), the extension tries Perplexity first, then Gemini API, then Gemini Web.
34
+ You can configure both. In `auto` mode (default), the extension tries Perplexity first (if configured), then Gemini API, then Gemini Web via Chrome cookies.
33
35
 
34
36
  **Requires:** Pi v0.37.3+
35
37
 
package/package.json CHANGED
@@ -1,8 +1,28 @@
1
1
  {
2
2
  "name": "pi-web-access",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
+ "description": "Web search, URL fetching, GitHub repo cloning, PDF extraction, YouTube video understanding, and local video analysis for Pi coding agent",
4
5
  "type": "module",
5
- "keywords": ["pi-package", "pi", "pi-coding-agent", "extension", "web-search", "perplexity", "fetch", "scraping"],
6
+ "keywords": [
7
+ "pi-package",
8
+ "pi",
9
+ "pi-coding-agent",
10
+ "extension",
11
+ "web-search",
12
+ "perplexity",
13
+ "fetch",
14
+ "scraping"
15
+ ],
16
+ "author": "Nico Bailon",
17
+ "license": "MIT",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/nicobailon/pi-web-access.git"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/nicobailon/pi-web-access/issues"
24
+ },
25
+ "homepage": "https://github.com/nicobailon/pi-web-access#readme",
6
26
  "dependencies": {
7
27
  "@mozilla/readability": "^0.5.0",
8
28
  "linkedom": "^0.16.0",
@@ -11,8 +31,12 @@
11
31
  "unpdf": "^1.4.0"
12
32
  },
13
33
  "pi": {
14
- "extensions": ["./index.ts"],
15
- "skills": ["./skills"],
34
+ "extensions": [
35
+ "./index.ts"
36
+ ],
37
+ "skills": [
38
+ "./skills"
39
+ ],
16
40
  "video": "https://github.com/nicobailon/pi-web-access/raw/refs/heads/main/pi-web-fetch-demo.mp4"
17
41
  }
18
42
  }