pi-querit 1.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 QUERIT PRIVATE LIMITED
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README-zh.md ADDED
@@ -0,0 +1,214 @@
1
+ # pi-querit
2
+
3
+ [![npm version](https://img.shields.io/npm/v/pi-querit?color=blue)](https://www.npmjs.com/package/pi-querit)
4
+ [![downloads](https://img.shields.io/npm/dm/pi-querit)](https://www.npmjs.com/package/pi-querit)
5
+ [![license](https://img.shields.io/npm/l/pi-querit)](./LICENSE)
6
+ ![platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey)
7
+ ![pi](https://img.shields.io/badge/pi-extension-orange)
8
+
9
+ [English](./README.md) | 中文
10
+
11
+ 一个专注的 [Pi](https://github.com/earendil-works/pi) 扩展,通过 [Querit](https://www.querit.ai) 为智能体提供实时网页搜索和页面抓取能力。
12
+
13
+ ## 为什么选择 Querit?
14
+
15
+ LLM 受限于训练数据——面对复杂或实时查询时容易产生幻觉和时效性问题。Querit 是专为生成式 LLM 调用场景设计的检索系统,提供实时、权威的网页搜索结果,无缝集成到 LLM 应用中:
16
+
17
+ - **内容全面** —— 覆盖近 20 个国家、10 种语言,索引数千亿网页的全球海量索引。
18
+ - **能力强大** —— 灵活的检索选项(时间范围、地区、语言、域名过滤),可按场景定制结果。
19
+ - **效果出色** —— 准确、权威、高质量的内容覆盖。
20
+
21
+ 在 [Querit.ai](https://www.querit.ai) 注册即可获取 API Key,**每月 1,000 次免费调用**,无需信用卡。
22
+
23
+ ## 快速开始
24
+
25
+ **1. 安装**
26
+
27
+ ```bash
28
+ pi install npm:pi-querit
29
+ ```
30
+
31
+ **2. 配置**
32
+
33
+ 在 Pi 交互模式中运行配置向导:
34
+
35
+ ```text
36
+ /querit-setup
37
+ ```
38
+
39
+ 向导会依次引导你输入 API Key、设置搜索默认值和可选的摘要模型。除 API Key 外每一步都可跳过。
40
+
41
+ **3. 搜索**
42
+
43
+ 直接向智能体提问——它会自动调用 `web_search` 和 `fetch_content`:
44
+
45
+ ```text
46
+ > Rust 2024 edition 有什么变化?
47
+ ```
48
+
49
+ > **注意:** 请勿同时启用其他注册了 `web_search` 或 `fetch_content` 的扩展,Pi 工具名必须唯一。
50
+
51
+ ## 工作原理
52
+
53
+ ```
54
+ ┌──────────────────────────────────────────────────────────┐
55
+ │ Pi Agent │
56
+ │ │
57
+ │ web_search(query, count?, workflow?) │
58
+ │ │ │
59
+ │ ▼ │
60
+ │ ┌─────────────┐ 持久化默认值 ┌─────────┐ │
61
+ │ │ Querit API │◄── (timeRange, countries, │ querit- │ │
62
+ │ │ /v1/search │ languages, domains…) │ search. │ │
63
+ │ └──────┬──────┘ 来自 /querit-setup │ json │ │
64
+ │ │ └─────────┘ │
65
+ │ ▼ │
66
+ │ workflow = raw?──► 返回带引用的结果给外层模型 │
67
+ │ │ │
68
+ │ workflow = summary? │
69
+ │ │ │
70
+ │ ▼ │
71
+ │ ┌──────────────────┐ │
72
+ │ │ 固定 Pi 模型 │ 嵌套 LLM 调用 │
73
+ │ │ (来自 setup) │ → 简洁摘要 + 来源列表 │
74
+ │ └──────────────────┘ + 关键摘录 │
75
+ │ │
76
+ │ fetch_content(url/urls, format?) │
77
+ │ │ │
78
+ │ ▼ │
79
+ │ ┌──────────────────┐ │
80
+ │ │ Querit API │ │
81
+ │ │ /v1/contents │──► markdown / text / HTML │
82
+ │ └──────────────────┘ (每次最多 10 个 URL) │
83
+ └──────────────────────────────────────────────────────────┘
84
+ ```
85
+
86
+ 扩展注册了两个工具和一个斜杠命令:
87
+
88
+ | 入口 | 用途 |
89
+ |---|---|
90
+ | `web_search` | 实时网页搜索,返回带引用的结果;可选由固定 Pi 模型预先摘要 |
91
+ | `fetch_content` | 抓取最多 10 个 URL 的完整页面内容(markdown、text 或 HTML) |
92
+ | `/querit-setup` | 交互式配置 API Key、持久化搜索默认值、工作流和摘要模型 |
93
+
94
+ **`raw` 与 `summary` 工作流:**
95
+
96
+ - **`raw`**(推荐)—— Pi 外层模型直接接收带引用的 Querit 结果并正常回答。
97
+ - **`summary`** —— 额外调用一次 `/querit-setup` 中选定的固定 Pi 模型,生成简洁摘要(保留版本号、API 签名、报错信息、原文引用等具体技术细节),再附加 Sources 列表和 `## Key excerpts` 段落(携带前 5 条结果的原始 snippet)。若固定模型缺失、无认证、30 秒超时或返回空内容,自动回退到原始结果并注明原因。
98
+
99
+ ## 配置
100
+
101
+ 在 Pi 交互模式中运行 `/querit-setup`。配置保存于 `~/.pi/agent/querit-search.json`(尊重 `PI_CODING_AGENT_DIR`)。
102
+
103
+ ### 首次配置流程
104
+
105
+ 1. **API Key** —— 遮罩输入框;通过一次单结果搜索请求验证有效性。
106
+ 2. **搜索默认值** —— 每一步都可跳过(见下表)。
107
+ 3. **工作流** —— 选择 `raw` 或 `summary` 作为默认值。
108
+ 4. **摘要模型** *(仅 summary)* —— 交互式模型选择器(每页 5 个、方向键翻页、输入即模糊过滤,活动模型排第一),然后选择思考强度(仅列出该模型支持的档位)。
109
+
110
+ ### 重新配置菜单
111
+
112
+ 已有 Key 时,`/querit-setup` 打开二级菜单:
113
+
114
+ | 选项 | 效果 |
115
+ |---|---|
116
+ | **Replace API key (full re-setup)** | 输入并验证新 Key,重走完整流程。旧 Key 仅在本地被覆盖,如需吊销请到 Querit 控制台操作。 |
117
+ | **Change search defaults** | 只修改持久化搜索过滤项,不动已保存的 Key。 |
118
+ | **Change summary settings** | 修改默认工作流、固定摘要模型及其思考强度。 |
119
+
120
+ ### 搜索默认值选项
121
+
122
+ 这些是应用于每次 `web_search` 调用的持久化默认值,保存于 `querit-search.json` 的 `search` 字段,**不是**单次调用参数。
123
+
124
+ | 选项 | 可选值 | 默认值 | 说明 |
125
+ |---|---|---|---|
126
+ | `count` | `1` – `20` | API 默认(`5`) | 每次搜索的结果数量。可通过 `count` 参数单次覆盖。 |
127
+ | `timeRange` | `d7` · `w2` · `m3` · `y1` | *(无 — 不限时间)* | 限制结果为过去 7 天、2 周、3 个月或 1 年。 |
128
+ | `includeContent` | `yes` / `no` | `no` | 在结果中包含句子级内容摘录,提供更丰富的上下文。 |
129
+ | `countries` | `argentina` · `australia` · `brazil` · `canada` · `colombia` · `france` · `germany` · `india` · `indonesia` · `japan` · `mexico` · `nigeria` · `philippines` · `south korea` · `spain` · `united kingdom` · `united states` | *(无 — 全球)* | 将结果偏向特定国家。逗号分隔,可多选。 |
130
+ | `languages` | `english` · `japanese` · `korean` · `german` · `french` · `spanish` · `portuguese` | *(无 — 全部)* | 按语言过滤结果。逗号分隔,可多选。 |
131
+ | `includeDomains` | 域名列表 | *(无 — 不限制)* | **白名单** —— 只返回这些域名的结果。 |
132
+ | `excludeDomains` | 域名列表 | *(无)* | **黑名单** —— 排除这些域名。内置 **噪音屏蔽** 预设:`pinterest.com`、`facebook.com`、`instagram.com`、`tiktok.com`。 |
133
+
134
+ ### 摘要设置
135
+
136
+ | 选项 | 可选值 | 说明 |
137
+ |---|---|---|
138
+ | `defaultWorkflow` | `raw` · `summary` | `web_search` 的默认工作流。可通过 `workflow` 参数单次覆盖。 |
139
+ | `summaryModel` | 任意 Pi 模型引用 | 用于嵌套摘要调用的固定模型(如 `anthropic/claude-sonnet-4-20250514`)。 |
140
+ | `summaryThinkingLevel` | 取决于模型 | 摘要模型的思考强度(如 `off`、`low`、`medium`、`high`)。默认 `medium`;选择器仅显示所选模型支持的档位。 |
141
+
142
+ ### 配置文件示例
143
+
144
+ ```json
145
+ {
146
+ "apiKey": "your-api-key",
147
+ "defaultWorkflow": "raw",
148
+ "summaryModel": "provider/model-id",
149
+ "summaryThinkingLevel": "medium",
150
+ "search": {
151
+ "count": 5,
152
+ "timeRange": "m3",
153
+ "includeContent": false,
154
+ "countries": ["united states"],
155
+ "languages": ["english"],
156
+ "includeDomains": ["github.com"],
157
+ "excludeDomains": ["pinterest.com"]
158
+ }
159
+ }
160
+ ```
161
+
162
+ POSIX 系统上文件权限为 `0600`;Windows 上依赖用户配置文件 ACL 保护。API Key 不会出现在工具结果或日志中。
163
+
164
+ CI 或临时使用可设置环境变量 `QUERIT_API_KEY`,JSON 配置优先。
165
+
166
+ ## 工具
167
+
168
+ ### `web_search`
169
+
170
+ 必填:
171
+
172
+ - `query`
173
+
174
+ 可选:
175
+
176
+ - `count`(`1..20`)—— 单次覆盖已配置的默认值(API 默认 `5`)
177
+ - `workflow`:`raw` 或 `summary`,单次覆盖默认值
178
+
179
+ 域名、时间范围、国家、语言、内容摘录是持久化默认值,在 `/querit-setup` 中配置(保存于 `querit-search.json` 的 `search` 字段),不再是单次调用参数。两个域名名单都跳过即完全放开;include 是白名单(只返回这些域名的结果),exclude 是黑名单。
180
+
181
+ 结果包含标题、URL、摘要、来源元数据和可选的句子级内容摘录。重复和非 HTTP(S) 的结果 URL 会被过滤。
182
+
183
+ ### `fetch_content`
184
+
185
+ 传入 `url`、`urls` 或两者(最多 10 个唯一 HTTP(S) URL)。
186
+
187
+ 可选:
188
+
189
+ - `format`:`markdown`(默认)、`text` 或 `html`
190
+ - `crawl_timeout`:`1..60` 秒(默认 `10`)
191
+ - `include_metadata`:默认 `true`
192
+
193
+ 两个工具都会标记远程数据为不可信、传播 Pi 取消信号、强制响应大小限制,并将模型可见输出限制在 Pi 的 50KB/2000 行上限内。超出时完整输出写入唯一临时文件并返回路径。
194
+
195
+ ## 开发
196
+
197
+ 需要 Node.js 22.19+。
198
+
199
+ ```bash
200
+ npm install
201
+ npm run check
202
+ npm test
203
+ npm run pack:check
204
+ ```
205
+
206
+ 真实 API 冒烟测试(读取 JSON 配置或 `QUERIT_API_KEY`,不打印 Key 和抓取内容):
207
+
208
+ ```bash
209
+ npm run test:live
210
+ ```
211
+
212
+ ## 许可证
213
+
214
+ MIT
package/README.md ADDED
@@ -0,0 +1,214 @@
1
+ # pi-querit
2
+
3
+ [![npm version](https://img.shields.io/npm/v/pi-querit?color=blue)](https://www.npmjs.com/package/pi-querit)
4
+ [![downloads](https://img.shields.io/npm/dm/pi-querit)](https://www.npmjs.com/package/pi-querit)
5
+ [![license](https://img.shields.io/npm/l/pi-querit)](./LICENSE)
6
+ ![platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey)
7
+ ![pi](https://img.shields.io/badge/pi-extension-orange)
8
+
9
+ English | [中文](./README-zh.md)
10
+
11
+ A focused [Pi](https://github.com/earendil-works/pi) extension that gives your agent live web search and page fetching through [Querit](https://www.querit.ai).
12
+
13
+ ## Why Querit?
14
+
15
+ LLMs are limited by their training data — complex or real-time queries lead to hallucinations and stale answers. Querit is a retrieval system built specifically for generative LLM invocation scenarios, delivering real-time, authoritative web search results that integrate directly into LLM applications:
16
+
17
+ - **Comprehensive content** — a massive global index spanning nearly 20 countries and 10 languages with hundreds of billions of web pages.
18
+ - **Strong capabilities** — flexible retrieval options (time range, region, language, and domain filters) so results can be tuned for specific scenarios.
19
+ - **Excellent results** — accurate, authoritative, high-quality content coverage.
20
+
21
+ Sign up on [Querit.ai](https://www.querit.ai) to get an API key with **1,000 free API calls per month** — no credit card required.
22
+
23
+ ## Quick Start
24
+
25
+ **1. Install**
26
+
27
+ ```bash
28
+ pi install npm:pi-querit
29
+ ```
30
+
31
+ **2. Configure**
32
+
33
+ Start Pi interactively and run the setup wizard:
34
+
35
+ ```text
36
+ /querit-setup
37
+ ```
38
+
39
+ The wizard walks you through API key entry, search defaults, and an optional summary model. Every step after the API key can be skipped.
40
+
41
+ **3. Search**
42
+
43
+ Just ask your agent anything that needs the web — it calls `web_search` and `fetch_content` automatically:
44
+
45
+ ```text
46
+ > What changed in the Rust 2024 edition?
47
+ ```
48
+
49
+ > **Note:** Do not enable this package together with another extension that also registers `web_search` or `fetch_content`; Pi tool names must be unique.
50
+
51
+ ## How It Works
52
+
53
+ ```
54
+ ┌──────────────────────────────────────────────────────────┐
55
+ │ Pi Agent │
56
+ │ │
57
+ │ web_search(query, count?, workflow?) │
58
+ │ │ │
59
+ │ ▼ │
60
+ │ ┌─────────────┐ persistent defaults ┌─────────┐ │
61
+ │ │ Querit API │◄── (timeRange, countries, │ querit- │ │
62
+ │ │ /v1/search │ languages, domains…) │ search. │ │
63
+ │ └──────┬──────┘ from /querit-setup │ json │ │
64
+ │ │ └─────────┘ │
65
+ │ ▼ │
66
+ │ workflow = raw?──► return cited results to outer model │
67
+ │ │ │
68
+ │ workflow = summary? │
69
+ │ │ │
70
+ │ ▼ │
71
+ │ ┌──────────────────┐ │
72
+ │ │ Fixed Pi model │ nested LLM call │
73
+ │ │ (from setup) │ → concise summary + sources │
74
+ │ └──────────────────┘ + key excerpts │
75
+ │ │
76
+ │ fetch_content(url/urls, format?) │
77
+ │ │ │
78
+ │ ▼ │
79
+ │ ┌──────────────────┐ │
80
+ │ │ Querit API │ │
81
+ │ │ /v1/contents │──► markdown / text / HTML │
82
+ │ └──────────────────┘ (up to 10 URLs per call) │
83
+ └──────────────────────────────────────────────────────────┘
84
+ ```
85
+
86
+ The extension registers two tools and one slash command:
87
+
88
+ | Surface | Purpose |
89
+ |---|---|
90
+ | `web_search` | Live web search with cited results; optionally pre-summarized by a fixed Pi model |
91
+ | `fetch_content` | Full page content (markdown, text, or HTML) for up to 10 URLs per call |
92
+ | `/querit-setup` | Interactive configuration of the API key, persistent search defaults, workflow, and summary model |
93
+
94
+ **`raw` vs `summary` workflow:**
95
+
96
+ - **`raw`** (recommended) — Pi's outer model receives the cited Querit results and answers normally.
97
+ - **`summary`** — one additional nested LLM call using the fixed model selected in `/querit-setup` produces a concise summary (preserving version numbers, API signatures, error messages, and verbatim quotes), followed by a Sources list and a `## Key excerpts` section with the top five results' raw snippets. If the fixed model is missing, unauthenticated, times out (30 s), or returns empty output, the tool falls back to raw results and reports the reason.
98
+
99
+ ## Configuration
100
+
101
+ Run `/querit-setup` in Pi's interactive mode. Configuration is stored in `~/.pi/agent/querit-search.json` (respects `PI_CODING_AGENT_DIR`).
102
+
103
+ ### First-time setup flow
104
+
105
+ 1. **API key** — masked input prompt; validated with a one-result search request.
106
+ 2. **Search defaults** — each step can be skipped (see table below).
107
+ 3. **Workflow** — choose `raw` or `summary` as the default.
108
+ 4. **Summary model** *(summary only)* — interactive model picker (five per page, arrow-key navigation, type-to-filter fuzzy matching, active model first), then a thinking intensity selector filtered to the levels the chosen model supports.
109
+
110
+ ### Re-configuration menu
111
+
112
+ When a key is already configured, `/querit-setup` opens a menu:
113
+
114
+ | Option | Effect |
115
+ |---|---|
116
+ | **Replace API key (full re-setup)** | Prompts for a new key, validates it, re-runs the full flow. The old key is overwritten locally; revoke it in the Querit dashboard if needed. |
117
+ | **Change search defaults** | Edits the persistent search filters without touching the saved key. |
118
+ | **Change summary settings** | Edits the default workflow, the fixed summary model, and its thinking intensity. |
119
+
120
+ ### Search default options
121
+
122
+ These are persistent defaults applied to every `web_search` call. They are stored under the `search` key in `querit-search.json` and are **not** per-call parameters.
123
+
124
+ | Option | Values | Default | Description |
125
+ |---|---|---|---|
126
+ | `count` | `1` – `20` | API default (`5`) | Number of results per search. Can be overridden per call via the `count` parameter. |
127
+ | `timeRange` | `d7` · `w2` · `m3` · `y1` | *(none — all time)* | Restrict results to the past 7 days, 2 weeks, 3 months, or 1 year. |
128
+ | `includeContent` | `yes` / `no` | `no` | Include sentence-level content excerpts in results for richer context. |
129
+ | `countries` | `argentina` · `australia` · `brazil` · `canada` · `colombia` · `france` · `germany` · `india` · `indonesia` · `japan` · `mexico` · `nigeria` · `philippines` · `south korea` · `spain` · `united kingdom` · `united states` | *(none — global)* | Bias results toward specific countries. Comma-separated, multi-select. |
130
+ | `languages` | `english` · `japanese` · `korean` · `german` · `french` · `spanish` · `portuguese` | *(none — all)* | Filter results by language. Comma-separated, multi-select. |
131
+ | `includeDomains` | domain list | *(none — unrestricted)* | **Whitelist** — only these domains return results. |
132
+ | `excludeDomains` | domain list | *(none)* | **Blacklist** — these domains are excluded. Ships with a built-in **Noise blockers** preset: `pinterest.com`, `facebook.com`, `instagram.com`, `tiktok.com`. |
133
+
134
+ ### Summary settings
135
+
136
+ | Option | Values | Description |
137
+ |---|---|---|
138
+ | `defaultWorkflow` | `raw` · `summary` | Default workflow for `web_search`. Can be overridden per call via the `workflow` parameter. |
139
+ | `summaryModel` | any Pi model reference | Fixed model used for the nested summary call (e.g. `anthropic/claude-sonnet-4-20250514`). |
140
+ | `summaryThinkingLevel` | model-dependent | Thinking intensity for the summary model (e.g. `off`, `low`, `medium`, `high`). Defaults to `medium`; the picker only shows levels the chosen model supports. |
141
+
142
+ ### Configuration file example
143
+
144
+ ```json
145
+ {
146
+ "apiKey": "your-api-key",
147
+ "defaultWorkflow": "raw",
148
+ "summaryModel": "provider/model-id",
149
+ "summaryThinkingLevel": "medium",
150
+ "search": {
151
+ "count": 5,
152
+ "timeRange": "m3",
153
+ "includeContent": false,
154
+ "countries": ["united states"],
155
+ "languages": ["english"],
156
+ "includeDomains": ["github.com"],
157
+ "excludeDomains": ["pinterest.com"]
158
+ }
159
+ }
160
+ ```
161
+
162
+ The extension applies mode `0600` on POSIX systems. On Windows, the file remains protected by the user profile's filesystem ACLs. The key is never included in tool results or logs.
163
+
164
+ For CI or ephemeral use, set `QUERIT_API_KEY`. The JSON configuration takes precedence when both are present.
165
+
166
+ ## Tools
167
+
168
+ ### `web_search`
169
+
170
+ Required:
171
+
172
+ - `query`
173
+
174
+ Optional:
175
+
176
+ - `count` (`1..20`) — overrides the configured default for one call (API default: `5`)
177
+ - `workflow`: `raw` or `summary`; overrides the setup default for one call
178
+
179
+ Domains, time range, countries, languages, and content excerpts are persistent defaults configured in `/querit-setup` (stored under `search` in `querit-search.json`), not per-call parameters. Skipping the domain lists leaves search unrestricted; the include list is a whitelist (only those domains return results), the exclude list is a blacklist.
180
+
181
+ Results include explicit title, URL, snippet, source metadata, and optional sentence excerpts. Duplicate and non-HTTP(S) result URLs are removed.
182
+
183
+ ### `fetch_content`
184
+
185
+ Pass `url`, `urls`, or both (at most 10 unique HTTP(S) URLs).
186
+
187
+ Optional:
188
+
189
+ - `format`: `markdown` (default), `text`, or `html`
190
+ - `crawl_timeout`: `1..60` seconds (default `10`)
191
+ - `include_metadata`: default `true`
192
+
193
+ Both tools mark remote data as untrusted, propagate Pi cancellation, enforce response-size limits, and cap model-visible output at Pi's 50KB/2000-line limit. If formatted output is truncated, the complete output is written to a unique temporary file and its path is returned.
194
+
195
+ ## Development
196
+
197
+ Requires Node.js 22.19 or newer.
198
+
199
+ ```bash
200
+ npm install
201
+ npm run check
202
+ npm test
203
+ npm run pack:check
204
+ ```
205
+
206
+ A live smoke test reads the same JSON configuration (or `QUERIT_API_KEY`) and exercises both APIs without printing the key or fetched content:
207
+
208
+ ```bash
209
+ npm run test:live
210
+ ```
211
+
212
+ ## License
213
+
214
+ MIT
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "pi-querit",
3
+ "version": "1.0.0",
4
+ "description": "Querit web search and content retrieval tools for the Pi coding agent",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "QUERIT PRIVATE LIMITED",
8
+ "homepage": "https://www.querit.ai",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/querit-ai/querit-plugins.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/querit-ai/querit-plugins/issues"
15
+ },
16
+ "keywords": [
17
+ "pi-package",
18
+ "pi-extension",
19
+ "querit",
20
+ "web-search",
21
+ "ai",
22
+ "llm"
23
+ ],
24
+ "files": [
25
+ "src",
26
+ "README.md",
27
+ "README-zh.md",
28
+ "LICENSE"
29
+ ],
30
+ "pi": {
31
+ "extensions": [
32
+ "./src/index.ts"
33
+ ]
34
+ },
35
+ "scripts": {
36
+ "check": "tsc --noEmit",
37
+ "test": "vitest run tests",
38
+ "test:live": "tsx scripts/live-smoke.ts",
39
+ "pack:check": "npm pack --dry-run",
40
+ "prepack": "npm run check && npm test"
41
+ },
42
+ "peerDependencies": {
43
+ "@earendil-works/pi-ai": "*",
44
+ "@earendil-works/pi-coding-agent": "*",
45
+ "@earendil-works/pi-tui": "*",
46
+ "typebox": "*"
47
+ },
48
+ "devDependencies": {
49
+ "@earendil-works/pi-ai": "^0.83.0",
50
+ "@earendil-works/pi-coding-agent": "^0.83.0",
51
+ "@earendil-works/pi-tui": "^0.83.0",
52
+ "@types/node": "^24.0.0",
53
+ "tsx": "^4.20.0",
54
+ "typebox": "^1.3.7",
55
+ "typescript": "^5.9.0",
56
+ "vitest": "^4.1.0"
57
+ },
58
+ "engines": {
59
+ "node": ">=22.19.0"
60
+ },
61
+ "publishConfig": {
62
+ "access": "public"
63
+ }
64
+ }