@botbotgo/agent-harness 0.0.154 → 0.0.155
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/README.md +9 -2
- package/README.zh.md +16 -2
- package/dist/config/catalogs/stores.yaml +3 -3
- package/dist/config/catalogs/vector-stores.yaml +8 -1
- package/dist/config/runtime/runtime-memory.yaml +17 -0
- package/dist/contracts/workspace.d.ts +6 -0
- package/dist/init-project.js +18 -0
- package/dist/package-version.d.ts +1 -1
- package/dist/package-version.js +1 -1
- package/dist/runtime/harness/system/mem0-ingestion-sync.d.ts +28 -2
- package/dist/runtime/harness/system/mem0-ingestion-sync.js +112 -1
- package/dist/runtime/harness/system/runtime-memory-manager.d.ts +90 -0
- package/dist/runtime/harness/system/runtime-memory-manager.js +371 -0
- package/dist/runtime/harness/system/runtime-memory-records.d.ts +1 -0
- package/dist/runtime/harness/system/runtime-memory-records.js +9 -0
- package/dist/runtime/harness/system/store.d.ts +27 -0
- package/dist/runtime/harness/system/store.js +96 -0
- package/dist/runtime/harness.d.ts +14 -0
- package/dist/runtime/harness.js +332 -45
- package/dist/runtime/support/runtime-factories.js +5 -1
- package/dist/runtime/support/vector-stores.js +97 -0
- package/dist/workspace/resource-compilers.js +19 -0
- package/dist/workspace/yaml-object-reader.js +2 -0
- package/package.json +1 -1
|
@@ -89,13 +89,21 @@ export function parseEmbeddingModelObject(object) {
|
|
|
89
89
|
}
|
|
90
90
|
export function parseVectorStoreObject(object) {
|
|
91
91
|
const value = object.value;
|
|
92
|
+
const port = typeof value.port === "number" && Number.isInteger(value.port) ? value.port : undefined;
|
|
92
93
|
return {
|
|
93
94
|
id: object.id,
|
|
94
95
|
kind: String(value.storeKind ?? value.kind ?? "LibSQLVectorStore").trim(),
|
|
95
96
|
url: typeof value.url === "string" ? value.url : undefined,
|
|
97
|
+
host: typeof value.host === "string" ? value.host : undefined,
|
|
98
|
+
port,
|
|
96
99
|
authToken: typeof value.authToken === "string" ? value.authToken : undefined,
|
|
97
100
|
table: typeof value.table === "string" ? value.table : undefined,
|
|
98
101
|
column: typeof value.column === "string" ? value.column : undefined,
|
|
102
|
+
collection: typeof value.collection === "string"
|
|
103
|
+
? value.collection
|
|
104
|
+
: typeof value.collectionName === "string"
|
|
105
|
+
? value.collectionName
|
|
106
|
+
: undefined,
|
|
99
107
|
embeddingModelRef: typeof value.embeddingModelRef === "string"
|
|
100
108
|
? value.embeddingModelRef
|
|
101
109
|
: typeof asObject(value.embeddingModel)?.ref === "string"
|
|
@@ -155,6 +163,14 @@ export function validateVectorStoreObject(vectorStore) {
|
|
|
155
163
|
if ((vectorStore.kind === "LibSQLVectorStore" || vectorStore.kind === "LlamaIndexSimpleVectorStore") && !vectorStore.url) {
|
|
156
164
|
throw new Error(`Vector store ${vectorStore.id} url must not be empty for ${vectorStore.kind}`);
|
|
157
165
|
}
|
|
166
|
+
if (vectorStore.kind === "QdrantVectorStore") {
|
|
167
|
+
if (!vectorStore.url && !vectorStore.host) {
|
|
168
|
+
throw new Error(`Vector store ${vectorStore.id} must define url or host for QdrantVectorStore`);
|
|
169
|
+
}
|
|
170
|
+
if (!vectorStore.collection) {
|
|
171
|
+
throw new Error(`Vector store ${vectorStore.id} collection must not be empty for QdrantVectorStore`);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
158
174
|
}
|
|
159
175
|
export function validateMcpServerObject(server) {
|
|
160
176
|
if (!server.id.trim()) {
|
|
@@ -186,9 +202,12 @@ export function compileVectorStore(vectorStore) {
|
|
|
186
202
|
id: vectorStore.id,
|
|
187
203
|
kind: vectorStore.kind,
|
|
188
204
|
url: vectorStore.url,
|
|
205
|
+
host: vectorStore.host,
|
|
206
|
+
port: vectorStore.port,
|
|
189
207
|
authToken: vectorStore.authToken,
|
|
190
208
|
table: vectorStore.table,
|
|
191
209
|
column: vectorStore.column,
|
|
210
|
+
collection: vectorStore.collection,
|
|
192
211
|
embeddingModelRef: vectorStore.embeddingModelRef,
|
|
193
212
|
runtimeValue: vectorStore.kind,
|
|
194
213
|
};
|