oira666_pi-web-search 0.0.2 → 0.0.4
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/README.md +4 -3
- package/package.json +8 -6
package/README.md
CHANGED
|
@@ -40,14 +40,15 @@ The extension does not switch models or fall back to another configured model. I
|
|
|
40
40
|
cp .env.example .env # edit with your models
|
|
41
41
|
npm test # deterministic intent/parser tests
|
|
42
42
|
npm run check # SDK type validation
|
|
43
|
-
npm run test:
|
|
43
|
+
npm run test:evergreen # unit + SDK types + HTTP integration + global Pi E2E
|
|
44
|
+
npm run test:e2e # installed global Pi: transport/session + live native search
|
|
44
45
|
npm run test:real:web-search
|
|
45
46
|
npm run test:real:url-context
|
|
46
47
|
```
|
|
47
48
|
|
|
48
|
-
`test:e2e`
|
|
49
|
+
`test:e2e` runs the installed global Pi executable from `EVERGREEN_PI_BIN`, falling back to `pi` on PATH. Set `EVERGREEN_E2E_MODEL` to a supported Pi model selector (for example `openai-codex/gpt-6-luna:low`). It never installs a runtime or silently skips live coverage. The live check uses normal Pi provider authentication; tests do not read credential files. It makes a small native-search request, which may incur provider search charges. All Pi subprocesses ignore stdin.
|
|
49
50
|
|
|
50
|
-
The deterministic CLI checks use isolated configuration and harmless credentials against a local HTTP/SSE server, explicitly loading `src/index.ts`. They compare
|
|
51
|
+
The deterministic CLI checks use isolated configuration and harmless credentials against a local HTTP/SSE server, explicitly loading `src/index.ts`. They compare transport requests with public request-hook observations, inspect persisted tool details, and cover retries, selected-model tool exposure, resume, and explicit tool disabling. HTTP integration tests cover all four supported API transports, Anthropic OAuth identity, Gemini video/URL retrieval, and unverified-answer warnings. Unit tests cover in-process model/tree transitions and fresh OAuth identity across turns. Provider service behavior beyond these fixtures still needs provider-specific live checks (`test:real:*`).
|
|
51
52
|
|
|
52
53
|
## License
|
|
53
54
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oira666_pi-web-search",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Provider-native web search for pi across Google Gemini, OpenAI, and Anthropic, plus Gemini URL Context",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -35,15 +35,17 @@
|
|
|
35
35
|
"test": "node --test tests/*.test.mjs",
|
|
36
36
|
"check": "tsc --noEmit",
|
|
37
37
|
"test:e2e": "node --test tests/*.e2e.mjs",
|
|
38
|
+
"test:integration": "node --test tests/*.integration.mjs",
|
|
39
|
+
"test:evergreen": "npm test && npm run check && npm run test:integration && npm run test:e2e",
|
|
38
40
|
"test:real:web-search": "node tests/real-web-search.mjs",
|
|
39
41
|
"test:real:url-context": "node tests/real-url-context.mjs"
|
|
40
42
|
},
|
|
41
43
|
"devDependencies": {
|
|
42
|
-
"@earendil-works/pi-ai": "^
|
|
43
|
-
"@earendil-works/pi-coding-agent": "^
|
|
44
|
-
"@types/node": "^
|
|
45
|
-
"typebox": "^1.
|
|
46
|
-
"typescript": "^
|
|
44
|
+
"@earendil-works/pi-ai": "^1.4.0",
|
|
45
|
+
"@earendil-works/pi-coding-agent": "^1.4.0",
|
|
46
|
+
"@types/node": "^26.6.6",
|
|
47
|
+
"typebox": "^1.4.3",
|
|
48
|
+
"typescript": "^7.0.2"
|
|
47
49
|
},
|
|
48
50
|
"pi": {
|
|
49
51
|
"extensions": [
|