pi-web-access 0.4.3 → 0.4.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/CHANGELOG.md +5 -0
- package/index.ts +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.4.4] - 2026-02-01
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- Adapt execute signatures to pi v0.51.0: reorder signal, onUpdate, ctx parameters across all three tools
|
|
11
|
+
|
|
7
12
|
## [0.4.3] - 2026-01-27
|
|
8
13
|
|
|
9
14
|
### Fixed
|
package/index.ts
CHANGED
|
@@ -172,7 +172,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
172
172
|
domainFilter: Type.Optional(Type.Array(Type.String(), { description: "Limit to domains (prefix with - to exclude)" })),
|
|
173
173
|
}),
|
|
174
174
|
|
|
175
|
-
async execute(_toolCallId, params, onUpdate, _ctx
|
|
175
|
+
async execute(_toolCallId, params, signal, onUpdate, _ctx) {
|
|
176
176
|
const queryList = params.queries ?? (params.query ? [params.query] : []);
|
|
177
177
|
if (queryList.length === 0) {
|
|
178
178
|
return {
|
|
@@ -395,7 +395,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
395
395
|
urls: Type.Optional(Type.Array(Type.String(), { description: "Multiple URLs (parallel)" })),
|
|
396
396
|
}),
|
|
397
397
|
|
|
398
|
-
async execute(_toolCallId, params, onUpdate, _ctx
|
|
398
|
+
async execute(_toolCallId, params, signal, onUpdate, _ctx) {
|
|
399
399
|
const urlList = params.urls ?? (params.url ? [params.url] : []);
|
|
400
400
|
if (urlList.length === 0) {
|
|
401
401
|
return {
|
|
@@ -548,7 +548,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
548
548
|
urlIndex: Type.Optional(Type.Number({ description: "Get content for URL at index" })),
|
|
549
549
|
}),
|
|
550
550
|
|
|
551
|
-
async execute(_toolCallId, params, _onUpdate, _ctx
|
|
551
|
+
async execute(_toolCallId, params, _signal, _onUpdate, _ctx) {
|
|
552
552
|
const data = getResult(params.responseId);
|
|
553
553
|
if (!data) {
|
|
554
554
|
return {
|