pi-lazy-extensions 0.1.7 → 0.1.9
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/package.json +4 -4
- package/registry.ts +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-lazy-extensions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Lazy-load pi extensions on demand via a ToolSearch-style proxy tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,18 +44,18 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@commitlint/cli": "21.0.1",
|
|
46
46
|
"@commitlint/config-conventional": "21.0.1",
|
|
47
|
-
"@earendil-works/pi-server": "0.85.0",
|
|
48
47
|
"@types/node": "25.9.1",
|
|
49
48
|
"@vitest/coverage-v8": "4.1.7",
|
|
50
49
|
"knip": "6.14.1",
|
|
51
50
|
"typescript": "6.0.3",
|
|
52
|
-
"vitest": "4.1.7"
|
|
51
|
+
"vitest": "4.1.7",
|
|
52
|
+
"@earendil-works/pi-coding-agent": "0.86.0"
|
|
53
53
|
},
|
|
54
54
|
"overrides": {
|
|
55
55
|
"brace-expansion": "5.0.6",
|
|
56
56
|
"fast-xml-builder": "1.2.0",
|
|
57
57
|
"protobufjs": "8.4.0",
|
|
58
58
|
"ws": "8.20.1",
|
|
59
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
59
|
+
"@earendil-works/pi-coding-agent": "0.86.0"
|
|
60
60
|
}
|
|
61
61
|
}
|
package/registry.ts
CHANGED
|
@@ -166,10 +166,13 @@ async function performActivation(
|
|
|
166
166
|
interceptedTools.push(tool.name);
|
|
167
167
|
origRegisterTool(tool);
|
|
168
168
|
};
|
|
169
|
-
pi.on
|
|
169
|
+
// 0.86.0: pi.on returns an unsubscribe function and its event name is a
|
|
170
|
+
// closed overload set, so the generic string-typed proxy is asserted to
|
|
171
|
+
// ExtensionAPI["on"]. The `never` cast lets the bound overload set resolve.
|
|
172
|
+
pi.on = ((event: string, handler: any) => {
|
|
170
173
|
interceptedEvents.push(event);
|
|
171
|
-
origOn(event, handler);
|
|
172
|
-
};
|
|
174
|
+
return origOn(event as never, handler);
|
|
175
|
+
}) as ExtensionAPI["on"];
|
|
173
176
|
|
|
174
177
|
const extPath = resolveExtensionPath(extState.config.path, state.baseDir);
|
|
175
178
|
|