@alexanderfortin/pi-tavily-tools 0.5.14 → 0.5.16
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 +15 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.5.16] - 2026-05-25
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- prevent status update from blocking pi startup (#50)
|
|
15
|
+
|
|
16
|
+
## [0.5.15] - 2026-05-22
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- **deps**: update dependencies (#58)
|
|
21
|
+
|
|
10
22
|
## [0.5.14] - 2026-05-12
|
|
11
23
|
|
|
12
24
|
### Changed
|
|
@@ -186,7 +198,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
186
198
|
|
|
187
199
|
- Initial release with `web_search` tool using Tavily
|
|
188
200
|
|
|
189
|
-
[unreleased]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.
|
|
201
|
+
[unreleased]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.16...HEAD
|
|
202
|
+
[0.5.16]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.15...v0.5.16
|
|
203
|
+
[0.5.15]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.14...v0.5.15
|
|
190
204
|
[0.5.14]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.13...v0.5.14
|
|
191
205
|
[0.5.13]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.12...v0.5.13
|
|
192
206
|
[0.5.12]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.11...v0.5.12
|
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,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAUpE;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,YAAY,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAUpE;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,YAAY,GAAG,IAAI,CAkC/C"}
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ export default function (pi) {
|
|
|
27
27
|
}
|
|
28
28
|
let registered = false;
|
|
29
29
|
const usageCache = new UsageCache(apiKey);
|
|
30
|
-
pi.on("session_start",
|
|
30
|
+
pi.on("session_start", (_event, ctx) => {
|
|
31
31
|
resultCache.clear();
|
|
32
32
|
if (registered)
|
|
33
33
|
return;
|
|
@@ -35,10 +35,11 @@ export default function (pi) {
|
|
|
35
35
|
const client = createTavilyClient(apiKey);
|
|
36
36
|
registerWebSearchTool(pi, client);
|
|
37
37
|
registerWebExtractTool(pi, client);
|
|
38
|
-
|
|
38
|
+
// Fire-and-forget: usage footer is cosmetic, must not block session startup
|
|
39
|
+
usageCache.updateStatus(ctx).catch(() => { });
|
|
39
40
|
});
|
|
40
|
-
pi.on("turn_end",
|
|
41
|
-
|
|
41
|
+
pi.on("turn_end", (_event, ctx) => {
|
|
42
|
+
usageCache.updateStatus(ctx).catch(() => { });
|
|
42
43
|
});
|
|
43
44
|
pi.on("session_shutdown", async (_event, ctx) => {
|
|
44
45
|
usageCache.clear(ctx);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,WAAW,EAAgB;IACvC,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,IAAI,EAAE,CAAC;IAClD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,EAAE,CAAC,EAAE,CAAC,eAAe,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;YACrC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,mEAAmE,EAAE,SAAS,CAAC,CAAC;QAChG,CAAC,CAAC,CAAC;QACH,OAAO;IACT,CAAC;IAED,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IAE1C,EAAE,CAAC,EAAE,CAAC,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,WAAW,EAAgB;IACvC,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,IAAI,EAAE,CAAC;IAClD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,EAAE,CAAC,EAAE,CAAC,eAAe,EAAE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|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexanderfortin/pi-tavily-tools",
|
|
3
3
|
"author": "Alexander Fortin",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.16",
|
|
5
5
|
"description": "Pi coding agent extension for web search and content extraction using Tavily",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"pi-package",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"release:dry-run": "semantic-release --dry-run"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@alexanderfortin/semantic-release-keep-a-changelog": "0.2.
|
|
64
|
+
"@alexanderfortin/semantic-release-keep-a-changelog": "0.2.2",
|
|
65
65
|
"@earendil-works/pi-ai": "0.74.0",
|
|
66
66
|
"@earendil-works/pi-coding-agent": "0.74.0",
|
|
67
67
|
"@earendil-works/pi-tui": "0.74.0",
|
|
@@ -73,11 +73,11 @@
|
|
|
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
|
-
"@types/bun": "1.3.
|
|
77
|
-
"@types/node": "25.
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "8.59.
|
|
79
|
-
"@typescript-eslint/parser": "8.59.
|
|
80
|
-
"eslint": "10.
|
|
76
|
+
"@types/bun": "1.3.14",
|
|
77
|
+
"@types/node": "25.9.1",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "8.59.4",
|
|
79
|
+
"@typescript-eslint/parser": "8.59.4",
|
|
80
|
+
"eslint": "10.4.0",
|
|
81
81
|
"eslint-config-prettier": "10.1.8",
|
|
82
82
|
"prettier": "3.8.3",
|
|
83
83
|
"prettier-plugin-organize-imports": "4.3.0",
|