anbaric-services-client 1.14.0 → 1.14.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anbaric-services-client",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "Client for the Anbaric additional-services agentic API: a light Agent whose property changes are generated by a hosted additional-services instance",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "chris@anbaric.ai",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"main": "src/index.ts",
|
|
9
9
|
"types": "src/index.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"anbaric-tsapi": "^1.14.
|
|
11
|
+
"anbaric-tsapi": "^1.14.2"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@types/node": "^26.2.0",
|
|
@@ -42,11 +42,11 @@ class AnbaricServicesClient extends Agent.Client {
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
if (!response.ok) {
|
|
45
|
-
const problem = await response.json().catch(() => ({}));
|
|
45
|
+
const problem = await response.json().catch(() => ({})) as { error? : string };
|
|
46
46
|
throw new Error(`The Anbaric agent service failed with status ${response.status}${problem.error ? `: ${problem.error}` : ""}`);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
return (await response.json()).output;
|
|
49
|
+
return (await response.json() as { output : Record<string, any> }).output;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
}
|