@charmland/pi-hyper-provider 0.4.1 → 0.4.2
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 -3
- package/src/index.ts +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charmland/pi-hyper-provider",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Pi extension for Charm's Hyper inference provider",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -30,8 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@biomejs/biome": "^2.4.16",
|
|
33
|
-
"@earendil-works/pi-ai": "^0.
|
|
34
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
33
|
+
"@earendil-works/pi-ai": "^0.87.1",
|
|
34
|
+
"@earendil-works/pi-coding-agent": "^0.87.1",
|
|
35
|
+
"@earendil-works/pi-tui": "^0.87.1",
|
|
35
36
|
"typebox": "^1.1.38",
|
|
36
37
|
"typescript": "^6.0.3"
|
|
37
38
|
},
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createProvider, envApiKeyAuth, lazyOAuth, type OAuthAuth } from "@earendil-works/pi-ai";
|
|
2
|
-
// Pi
|
|
2
|
+
// Pi's extension loader doesn't virtualize lazy API implementation subpaths yet
|
|
3
3
|
import { openAICompletionsApi } from "@earendil-works/pi-ai/compat";
|
|
4
4
|
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
5
5
|
import { Text } from "@earendil-works/pi-tui";
|
|
@@ -159,9 +159,11 @@ export default function (pi: ExtensionAPI) {
|
|
|
159
159
|
event.message.stopReason === "aborted"
|
|
160
160
|
)
|
|
161
161
|
return;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
if (route) {
|
|
163
|
+
return {
|
|
164
|
+
entries: [...event.entries, { type: "custom", customType: "hyper-prism-route", data: route }],
|
|
165
|
+
};
|
|
166
|
+
}
|
|
165
167
|
});
|
|
166
168
|
|
|
167
169
|
pi.registerProvider(
|