@soat/sdk 0.48.0 → 0.49.1
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/index.cjs +3 -7
- package/dist/index.d.cts +172 -112
- package/dist/index.d.mts +172 -112
- package/dist/index.mjs +3 -7
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -353,9 +353,7 @@ async function setAuthParams(options) {
|
|
|
353
353
|
case "cookie":
|
|
354
354
|
options.headers.append("Cookie", `${name}=${token}`);
|
|
355
355
|
break;
|
|
356
|
-
default:
|
|
357
|
-
options.headers.set(name, token);
|
|
358
|
-
break;
|
|
356
|
+
default: options.headers.set(name, token);
|
|
359
357
|
}
|
|
360
358
|
}
|
|
361
359
|
}
|
|
@@ -512,9 +510,7 @@ const createClient = (config = {}) => {
|
|
|
512
510
|
case "stream":
|
|
513
511
|
emptyData = response.body;
|
|
514
512
|
break;
|
|
515
|
-
default:
|
|
516
|
-
emptyData = {};
|
|
517
|
-
break;
|
|
513
|
+
default: emptyData = {};
|
|
518
514
|
}
|
|
519
515
|
return opts.responseStyle === "data" ? emptyData : {
|
|
520
516
|
data: emptyData,
|
|
@@ -2630,7 +2626,7 @@ var Knowledge = class {
|
|
|
2630
2626
|
/**
|
|
2631
2627
|
* Search knowledge
|
|
2632
2628
|
*
|
|
2633
|
-
* Searches across documents and memory entries using
|
|
2629
|
+
* Searches across documents and memory entries using hybrid retrieval — a vector query and a full-text query per source, fused by reciprocal rank — or by file paths, document IDs, memory IDs, or tags. At least one of `query`, `tags`, `document_paths`, `document_ids`, or `memory_ids` must be provided.
|
|
2634
2630
|
*/
|
|
2635
2631
|
static searchKnowledge(options) {
|
|
2636
2632
|
return (options.client ?? client).post({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soat/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.1",
|
|
4
4
|
"description": "TypeScript SDK for SOAT — open-source infrastructure for production-ready AI agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
45
|
-
"@ttoss/config": "^1.
|
|
46
|
-
"@ttoss/openapi-codegen": "^0.
|
|
47
|
-
"@types/node": "^26.
|
|
48
|
-
"tsdown": "^0.
|
|
49
|
-
"tsx": "^4.23.
|
|
45
|
+
"@ttoss/config": "^1.38.0",
|
|
46
|
+
"@ttoss/openapi-codegen": "^0.3.0",
|
|
47
|
+
"@types/node": "^26.5.1",
|
|
48
|
+
"tsdown": "^0.23.0",
|
|
49
|
+
"tsx": "^4.23.13",
|
|
50
50
|
"typescript": "~6.0.3"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|