assistant-cloud 0.1.9 → 0.1.10
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/dist/AssistantCloudAuthStrategy.js +1 -1
- package/dist/AssistantCloudAuthStrategy.js.map +1 -1
- package/dist/AssistantCloudRuns.js +1 -1
- package/dist/AssistantCloudRuns.js.map +1 -1
- package/dist/tests/setup.js +44 -42
- package/dist/tests/setup.js.map +1 -1
- package/package.json +5 -6
- package/src/AssistantCloudAuthStrategy.tsx +1 -1
- package/src/AssistantCloudRuns.tsx +1 -1
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"chat",
|
|
9
9
|
"assistant-ui"
|
|
10
10
|
],
|
|
11
|
-
"version": "0.1.
|
|
11
|
+
"version": "0.1.10",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"exports": {
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
],
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"assistant-stream": "^0.2.
|
|
30
|
+
"assistant-stream": "^0.2.43"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^24.10.1",
|
|
34
|
-
"tsx": "^4.
|
|
35
|
-
"vitest": "^4.0.
|
|
34
|
+
"tsx": "^4.21.0",
|
|
35
|
+
"vitest": "^4.0.15",
|
|
36
36
|
"@assistant-ui/x-buildutils": "0.0.1"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsx scripts/build.mts",
|
|
52
52
|
"test": "vitest run",
|
|
53
|
-
"test:watch": "vitest"
|
|
54
|
-
"lint": "eslint ."
|
|
53
|
+
"test:watch": "vitest"
|
|
55
54
|
}
|
|
56
55
|
}
|
|
@@ -30,7 +30,7 @@ const getJwtExpiry = (jwt: string): number => {
|
|
|
30
30
|
// Convert expiration time to milliseconds
|
|
31
31
|
return exp * 1000;
|
|
32
32
|
} catch (error) {
|
|
33
|
-
throw new Error(
|
|
33
|
+
throw new Error(`Unable to determine the token expiry: ${error}`);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -12,7 +12,7 @@ export class AssistantCloudRuns {
|
|
|
12
12
|
|
|
13
13
|
public __internal_getAssistantOptions(assistantId: string) {
|
|
14
14
|
return {
|
|
15
|
-
api: this.cloud._baseUrl
|
|
15
|
+
api: `${this.cloud._baseUrl}/v1/runs/stream`,
|
|
16
16
|
headers: async () => {
|
|
17
17
|
const headers = await this.cloud._auth.getAuthHeaders();
|
|
18
18
|
if (!headers) throw new Error("Authorization failed");
|