@alexanderfortin/pi-tavily-tools 0.5.15 → 0.5.17

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 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.17] - 2026-05-27
11
+
12
+ ### Changed
13
+
14
+ - **deps**: update dependencies (#60)
15
+
16
+ ## [0.5.16] - 2026-05-25
17
+
18
+ ### Fixed
19
+
20
+ - prevent status update from blocking pi startup (#50)
21
+
10
22
  ## [0.5.15] - 2026-05-22
11
23
 
12
24
  ### Changed
@@ -192,7 +204,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
192
204
 
193
205
  - Initial release with `web_search` tool using Tavily
194
206
 
195
- [unreleased]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.15...HEAD
207
+ [unreleased]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.17...HEAD
208
+ [0.5.17]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.16...v0.5.17
209
+ [0.5.16]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.15...v0.5.16
196
210
  [0.5.15]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.14...v0.5.15
197
211
  [0.5.14]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.13...v0.5.14
198
212
  [0.5.13]: https://github.com/shaftoe/pi-tavily-tools/compare/v0.5.12...v0.5.13
@@ -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,CAiC/C"}
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", async (_event, ctx) => {
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
- await usageCache.updateStatus(ctx);
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", async (_event, ctx) => {
41
- await usageCache.updateStatus(ctx);
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,EA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,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.5.15",
4
+ "version": "0.5.17",
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.1",
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",
@@ -75,8 +75,8 @@
75
75
  "@sinclair/typebox": "0.34.49",
76
76
  "@types/bun": "1.3.14",
77
77
  "@types/node": "25.9.1",
78
- "@typescript-eslint/eslint-plugin": "8.59.4",
79
- "@typescript-eslint/parser": "8.59.4",
78
+ "@typescript-eslint/eslint-plugin": "8.60.0",
79
+ "@typescript-eslint/parser": "8.60.0",
80
80
  "eslint": "10.4.0",
81
81
  "eslint-config-prettier": "10.1.8",
82
82
  "prettier": "3.8.3",