Commit 0395d75
committed
feat: make docs_lookup privacy-friendly — webfetch default, ctx7 opt-in
Fetch documentation directly from official docs sites (docs.snowflake.com,
duckdb.org, postgresql.org, etc.) by default. No user data is sent to
third-party services unless explicitly opted in via ALTIMATE_DOCS_PROVIDER=ctx7.
Key changes:
- Webfetch is now the default provider (direct to official docs)
- Context7 is opt-in only via ALTIMATE_DOCS_PROVIDER=ctx7 env var
- Added smart page matching: query keywords are matched against curated
URL mappings to find the most relevant documentation page
- Library tools (e.g. duckdb, psycopg2) now fall back to their platform's
official docs when no ctx7 provider is configured
- Extracted fetchFromWebsite and fetchFromCtx7 helper functions
- Updated SKILL.md with privacy section and updated instructions
https://claude.ai/code/session_01NZPdvEHNXDcmhgJt9RLMu11 parent 4f297ee commit 0395d75
2 files changed
Lines changed: 241 additions & 90 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
| |||
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
68 | | - | |
69 | | - | |
70 | | - | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
| |||
86 | 93 | | |
87 | 94 | | |
88 | 95 | | |
89 | | - | |
| 96 | + | |
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
95 | | - | |
| 102 | + | |
96 | 103 | | |
97 | 104 | | |
98 | 105 | | |
| |||
0 commit comments