@alexanderfortin/pi-tavily-tools 0.6.1 → 0.6.3
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/CHANGELOG.md +22 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.6.3] - 2026-07-17
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- update auth storage API to latest Pi SDK
|
|
15
|
+
|
|
16
|
+
## [0.6.2] - 2026-07-17
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- **deps-dev**: update dependencies (#69)
|
|
21
|
+
- **deps-dev**: update dependencies (#70)
|
|
22
|
+
- **deps-dev**: update dependencies (#72)
|
|
23
|
+
- **deps-dev**: update dependencies (#73)
|
|
24
|
+
- **deps-dev**: update dependencies (#74)
|
|
25
|
+
- **deps-dev**: update dependencies (#75)
|
|
26
|
+
- **deps-dev**: update dependencies (#76)
|
|
27
|
+
- **deps**: update dependencies (#77)
|
|
28
|
+
|
|
10
29
|
## [0.6.1] - 2026-06-14
|
|
11
30
|
|
|
12
31
|
### Changed
|
|
@@ -227,7 +246,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
227
246
|
|
|
228
247
|
- Initial release with `web_search` tool using Tavily
|
|
229
248
|
|
|
230
|
-
[unreleased]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.6.
|
|
249
|
+
[unreleased]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.6.3...HEAD
|
|
250
|
+
[0.6.3]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.6.2...v0.6.3
|
|
251
|
+
[0.6.2]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.6.1...v0.6.2
|
|
231
252
|
[0.6.1]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.6.0...v0.6.1
|
|
232
253
|
[0.6.0]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.18...v0.6.0
|
|
233
254
|
[0.5.18]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.17...v0.5.18
|
package/dist/index.d.ts
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Adds a `web_search` tool that the LLM can use to find current
|
|
6
6
|
* information, recent news, documentation, and time-sensitive data.
|
|
7
7
|
*/
|
|
8
|
-
import type
|
|
8
|
+
import { type ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
9
9
|
/**
|
|
10
10
|
* Main extension entry point.
|
|
11
11
|
*
|
|
12
|
-
* Resolves API key from
|
|
12
|
+
* Resolves API key from the stored "tavily" credential in auth.json first,
|
|
13
13
|
* falling back to TAVILY_API_KEY environment variable.
|
|
14
14
|
*
|
|
15
15
|
* If neither is available, no hooks are registered and the extension
|
|
@@ -19,5 +19,5 @@ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
|
19
19
|
* even if the API key is missing. The tool is registered only
|
|
20
20
|
* once on the first agent run and persists across sessions.
|
|
21
21
|
*/
|
|
22
|
-
export default function (pi: ExtensionAPI):
|
|
22
|
+
export default function (pi: ExtensionAPI): void;
|
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAwB,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAU1F;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,YAAY,GAAG,IAAI,CAwC/C"}
|
package/dist/index.js
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* Adds a `web_search` tool that the LLM can use to find current
|
|
6
6
|
* information, recent news, documentation, and time-sensitive data.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { readStoredCredential } from "@earendil-works/pi-coding-agent";
|
|
9
9
|
import { cleanupTempDir, createTavilyClient, registerWebExtractTool, registerWebSearchTool, resultCache, } from "./tools/index.js";
|
|
10
10
|
import { UsageCache } from "./usage/index.js";
|
|
11
11
|
/**
|
|
12
12
|
* Main extension entry point.
|
|
13
13
|
*
|
|
14
|
-
* Resolves API key from
|
|
14
|
+
* Resolves API key from the stored "tavily" credential in auth.json first,
|
|
15
15
|
* falling back to TAVILY_API_KEY environment variable.
|
|
16
16
|
*
|
|
17
17
|
* If neither is available, no hooks are registered and the extension
|
|
@@ -21,9 +21,10 @@ import { UsageCache } from "./usage/index.js";
|
|
|
21
21
|
* even if the API key is missing. The tool is registered only
|
|
22
22
|
* once on the first agent run and persists across sessions.
|
|
23
23
|
*/
|
|
24
|
-
export default
|
|
25
|
-
const
|
|
26
|
-
const
|
|
24
|
+
export default function (pi) {
|
|
25
|
+
const credential = readStoredCredential("tavily");
|
|
26
|
+
const storedKey = credential?.type === "api_key" ? credential.key : undefined;
|
|
27
|
+
const apiKey = storedKey?.trim() ?? process.env.TAVILY_API_KEY?.trim();
|
|
27
28
|
if (!apiKey) {
|
|
28
29
|
pi.on("session_start", (_event, ctx) => {
|
|
29
30
|
ctx.ui.notify('Web Search · API key not found. Add to ~/.pi/agent/auth.json under "tavily" key or set TAVILY_API_KEY env var. Get a free key at tavily.com', "warning");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"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CAAC,CAAC;QAC1C,qBAAqB,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAClC,sBAAsB,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAEnC,4EAA4E;QAC5E,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;QAChC,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,EAAE,CAAC,kBAAkB,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE;QAC9C,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACtB,MAAM,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC,CAAC,cAAc;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexanderfortin/pi-tavily-tools",
|
|
3
3
|
"author": "Alexander Fortin",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.3",
|
|
5
5
|
"description": "Pi coding agent extension for web search and content extraction using Tavily",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"pi-package",
|
|
@@ -61,31 +61,31 @@
|
|
|
61
61
|
"release:dry-run": "semantic-release --dry-run"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@alexanderfortin/semantic-release-keep-a-changelog": "^0.4.
|
|
65
|
-
"@earendil-works/pi-ai": "0.
|
|
66
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
67
|
-
"@earendil-works/pi-tui": "0.
|
|
64
|
+
"@alexanderfortin/semantic-release-keep-a-changelog": "^0.4.9",
|
|
65
|
+
"@earendil-works/pi-ai": "0.80.10",
|
|
66
|
+
"@earendil-works/pi-coding-agent": "0.80.10",
|
|
67
|
+
"@earendil-works/pi-tui": "0.80.10",
|
|
68
68
|
"@semantic-release/changelog": "6.0.3",
|
|
69
69
|
"@semantic-release/commit-analyzer": "13.0.1",
|
|
70
70
|
"@semantic-release/exec": "7.1.0",
|
|
71
71
|
"@semantic-release/git": "10.0.1",
|
|
72
|
-
"@semantic-release/github": "12.0.
|
|
72
|
+
"@semantic-release/github": "^12.0.9",
|
|
73
73
|
"@semantic-release/npm": "13.1.5",
|
|
74
74
|
"@semantic-release/release-notes-generator": "14.1.1",
|
|
75
75
|
"@sinclair/typebox": "0.34.49",
|
|
76
76
|
"@types/bun": "1.3.14",
|
|
77
|
-
"@types/node": "^
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
79
|
-
"@typescript-eslint/parser": "^8.
|
|
80
|
-
"eslint": "^10.
|
|
77
|
+
"@types/node": "^26.1.1",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "^8.64.0",
|
|
79
|
+
"@typescript-eslint/parser": "^8.64.0",
|
|
80
|
+
"eslint": "^10.7.0",
|
|
81
81
|
"eslint-config-prettier": "10.1.8",
|
|
82
|
-
"prettier": "^3.
|
|
82
|
+
"prettier": "^3.9.5",
|
|
83
83
|
"prettier-plugin-organize-imports": "4.3.0",
|
|
84
|
-
"semantic-release": "^25.0.
|
|
84
|
+
"semantic-release": "^25.0.7",
|
|
85
85
|
"typescript": "6.0.3"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@tavily/core": "^0.7.6",
|
|
89
|
-
"temporal-polyfill": "0.
|
|
89
|
+
"temporal-polyfill": "^1.0.1"
|
|
90
90
|
}
|
|
91
91
|
}
|