@ai-sdk/harness-pi 1.0.123 → 1.0.125
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 +20 -0
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/pi-auth.ts +0 -1
- package/src/pi-events.ts +0 -2
- package/src/pi-translate.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @ai-sdk/harness-pi
|
|
2
2
|
|
|
3
|
+
## 1.0.125
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 771e74b: chore: enable dead code lint rules
|
|
8
|
+
- Updated dependencies [fe07867]
|
|
9
|
+
- Updated dependencies [a4b0940]
|
|
10
|
+
- Updated dependencies [9c8c0c1]
|
|
11
|
+
- Updated dependencies [771e74b]
|
|
12
|
+
- Updated dependencies [7115a3f]
|
|
13
|
+
- @ai-sdk/provider-utils@5.0.47
|
|
14
|
+
- @ai-sdk/harness@1.0.123
|
|
15
|
+
|
|
16
|
+
## 1.0.124
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- @ai-sdk/harness@1.0.122
|
|
21
|
+
- @ai-sdk/provider-utils@5.0.46
|
|
22
|
+
|
|
3
23
|
## 1.0.123
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
import { access } from "fs/promises";
|
|
137
137
|
|
|
138
138
|
// src/version.ts
|
|
139
|
-
var VERSION = true ? "1.0.
|
|
139
|
+
var VERSION = true ? "1.0.125" : "0.0.0-test";
|
|
140
140
|
|
|
141
141
|
// src/pi-auth.ts
|
|
142
142
|
var DEFAULT_GATEWAY_BASE_URL = "https://ai-gateway.vercel.sh";
|
|
@@ -425,7 +425,6 @@ async function registerPiProviders({
|
|
|
425
425
|
clientApp,
|
|
426
426
|
headers
|
|
427
427
|
});
|
|
428
|
-
return;
|
|
429
428
|
}
|
|
430
429
|
}
|
|
431
430
|
}
|
|
@@ -627,7 +626,6 @@ function getPiTerminalError(event) {
|
|
|
627
626
|
if (event.isError && typeof event.content === "string" && event.content.trim()) {
|
|
628
627
|
return event.content.trim();
|
|
629
628
|
}
|
|
630
|
-
return void 0;
|
|
631
629
|
}
|
|
632
630
|
function extractAssistantText(message) {
|
|
633
631
|
if (!message || message.role !== "assistant") {
|
|
@@ -1215,8 +1213,8 @@ function createPiTranslatorState(options = {}) {
|
|
|
1215
1213
|
stepOpen: false,
|
|
1216
1214
|
hostToolResults: /* @__PURE__ */ new Map(),
|
|
1217
1215
|
dynamicToolCallIds: /* @__PURE__ */ new Set(),
|
|
1218
|
-
builtinToolNames: new Set(options.builtinToolNames
|
|
1219
|
-
hostToolNames: new Set(options.hostToolNames
|
|
1216
|
+
builtinToolNames: new Set(options.builtinToolNames),
|
|
1217
|
+
hostToolNames: new Set(options.hostToolNames),
|
|
1220
1218
|
nativeToCommonNameMap: map
|
|
1221
1219
|
};
|
|
1222
1220
|
}
|