@xdarkicex/openclaw-memory-libravdb 1.6.0 → 1.6.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.js +9 -1
- package/dist/ingest-queue.js +7 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32491,7 +32491,15 @@ var IngestQueue = class {
|
|
|
32491
32491
|
}
|
|
32492
32492
|
async ingestWithRetry(params) {
|
|
32493
32493
|
return withRetry(
|
|
32494
|
-
() =>
|
|
32494
|
+
async () => {
|
|
32495
|
+
const resp = await this.ingestDocument(params);
|
|
32496
|
+
if (!resp.ok) {
|
|
32497
|
+
throw new Error(
|
|
32498
|
+
`ingest_markdown_document(${params.sourceDoc}) mode=${params.mode} returned ok=false`
|
|
32499
|
+
);
|
|
32500
|
+
}
|
|
32501
|
+
return resp;
|
|
32502
|
+
},
|
|
32495
32503
|
this.options.maxRetries,
|
|
32496
32504
|
this.options.retryBaseDelayMs,
|
|
32497
32505
|
this.logger,
|
package/dist/ingest-queue.js
CHANGED
|
@@ -73,7 +73,13 @@ export class IngestQueue {
|
|
|
73
73
|
return lastFeedback;
|
|
74
74
|
}
|
|
75
75
|
async ingestWithRetry(params) {
|
|
76
|
-
return withRetry(() =>
|
|
76
|
+
return withRetry(async () => {
|
|
77
|
+
const resp = await this.ingestDocument(params);
|
|
78
|
+
if (!resp.ok) {
|
|
79
|
+
throw new Error(`ingest_markdown_document(${params.sourceDoc}) mode=${params.mode} returned ok=false`);
|
|
80
|
+
}
|
|
81
|
+
return resp;
|
|
82
|
+
}, this.options.maxRetries, this.options.retryBaseDelayMs, this.logger, `ingest_markdown_document(${params.sourceDoc})`);
|
|
77
83
|
}
|
|
78
84
|
async enqueueDelete(sourceDoc) {
|
|
79
85
|
await withRetry(() => this.deleteDocument({ sourceDoc }), this.options.maxRetries, this.options.retryBaseDelayMs, this.logger, `delete_authored_document(${sourceDoc})`);
|
package/openclaw.plugin.json
CHANGED