pi-querit 1.0.3 → 1.1.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.
package/LICENSE CHANGED
@@ -1,21 +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.
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.md CHANGED
@@ -34,7 +34,7 @@ Start Pi interactively and run the setup wizard:
34
34
  /querit-setup
35
35
  ```
36
36
 
37
- The wizard walks you through API key entry, search defaults, and an optional summary model. Every step after the API key can be skipped.
37
+ The wizard walks you through API key entry and search defaults. Every step after the API key can be skipped.
38
38
 
39
39
  **3. Search**
40
40
 
@@ -52,7 +52,7 @@ Just ask your agent anything that needs the web — it calls `web_search` and `f
52
52
  ┌──────────────────────────────────────────────────────────┐
53
53
  │ Pi Agent │
54
54
  │ │
55
- │ web_search(query, count?, workflow?) │
55
+ │ web_search(query, count?) │
56
56
  │ │ │
57
57
  │ ▼ │
58
58
  │ ┌─────────────┐ persistent defaults ┌─────────┐ │
@@ -61,15 +61,7 @@ Just ask your agent anything that needs the web — it calls `web_search` and `f
61
61
  │ └──────┬──────┘ from /querit-setup │ json │ │
62
62
  │ │ └─────────┘ │
63
63
  │ ▼ │
64
- │ workflow = raw?──► return cited results to outer model │
65
- │ │ │
66
- │ workflow = summary? │
67
- │ │ │
68
- │ ▼ │
69
- │ ┌──────────────────┐ │
70
- │ │ Fixed Pi model │ nested LLM call │
71
- │ │ (from setup) │ → concise summary + sources │
72
- │ └──────────────────┘ + key excerpts │
64
+ │ return cited results to the model │
73
65
  │ │
74
66
  │ fetch_content(url/urls, format?) │
75
67
  │ │ │
@@ -85,14 +77,9 @@ The extension registers two tools and one slash command:
85
77
 
86
78
  | Surface | Purpose |
87
79
  |---|---|
88
- | `web_search` | Live web search with cited results; optionally pre-summarized by a fixed Pi model |
80
+ | `web_search` | Live web search with cited results |
89
81
  | `fetch_content` | Full page content (markdown, text, or HTML) for up to 10 URLs per call |
90
- | `/querit-setup` | Interactive configuration of the API key, persistent search defaults, workflow, and summary model |
91
-
92
- **`raw` vs `summary` workflow:**
93
-
94
- - **`raw`** (recommended) — Pi's outer model receives the cited Querit results and answers normally.
95
- - **`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.
82
+ | `/querit-setup` | Interactive configuration of the API key and persistent search defaults |
96
83
 
97
84
  ## Configuration
98
85
 
@@ -102,8 +89,6 @@ Run `/querit-setup` in Pi's interactive mode. Configuration is stored in `~/.pi/
102
89
 
103
90
  1. **API key** — masked input prompt; validated with a one-result search request.
104
91
  2. **Search defaults** — each step can be skipped (see table below).
105
- 3. **Workflow** — choose `raw` or `summary` as the default.
106
- 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.
107
92
 
108
93
  ### Re-configuration menu
109
94
 
@@ -113,7 +98,6 @@ When a key is already configured, `/querit-setup` opens a menu:
113
98
  |---|---|
114
99
  | **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. |
115
100
  | **Change search defaults** | Edits the persistent search filters without touching the saved key. |
116
- | **Change summary settings** | Edits the default workflow, the fixed summary model, and its thinking intensity. |
117
101
 
118
102
  ### Search default options
119
103
 
@@ -130,22 +114,11 @@ These are persistent defaults applied to every `web_search` call. They are store
130
114
  | `includeDomains` | domain list | *(none — unrestricted)* | **Whitelist** — only these domains return results. |
131
115
  | `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`. |
132
116
 
133
- ### Summary settings
134
-
135
- | Option | Values | Description |
136
- |---|---|---|
137
- | `defaultWorkflow` | `raw` · `summary` | Default workflow for `web_search`. Can be overridden per call via the `workflow` parameter. |
138
- | `summaryModel` | any Pi model reference | Fixed model used for the nested summary call (e.g. `anthropic/claude-sonnet-4-20250514`). |
139
- | `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. |
140
-
141
117
  ### Configuration file example
142
118
 
143
119
  ```json
144
120
  {
145
121
  "apiKey": "your-api-key",
146
- "defaultWorkflow": "raw",
147
- "summaryModel": "provider/model-id",
148
- "summaryThinkingLevel": "medium",
149
122
  "search": {
150
123
  "count": 5,
151
124
  "chunksPerDoc": 1,
@@ -174,7 +147,6 @@ Required:
174
147
  Optional:
175
148
 
176
149
  - `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
150
 
179
151
  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
152
 
@@ -190,7 +162,7 @@ Optional:
190
162
  - `crawl_timeout`: `1..60` seconds (default `10`)
191
163
  - `include_metadata`: default `true`
192
164
 
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.
165
+ 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 uniquely named file inside a single shared temp folder (`pi-querit` in the OS temp directory). To keep search content private, that folder never accumulates files: the files a Pi process creates are deleted when that session shuts down (with a process-exit fallback), and leftovers from crashed runs are swept the next time the extension loads.
194
166
 
195
167
  ## Development
196
168
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-querit",
3
- "version": "1.0.3",
3
+ "version": "1.1.1",
4
4
  "description": "Querit web search and content retrieval tools for the Pi coding agent",
5
5
  "type": "module",
6
6
  "license": "MIT",