@absolutejs/rag 0.24.2 → 0.24.3
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/CHANGELOG.md +6 -0
- package/changelog.json +13 -0
- package/dist/research/index.js +12 -4
- package/dist/research/index.js.map +3 -3
- package/dist/web-index/index.js +12 -4
- package/dist/web-index/index.js.map +3 -3
- package/package.json +1 -1
package/dist/web-index/index.js
CHANGED
|
@@ -123971,9 +123971,17 @@ Correct the previous schema-invalid response using the validation diagnostics. T
|
|
|
123971
123971
|
if (!continuing)
|
|
123972
123972
|
result.fields = [];
|
|
123973
123973
|
await persistReview(pass, continuing ? resumed.nextField : 0, false, data);
|
|
123974
|
-
|
|
123975
|
-
if (continuing
|
|
123976
|
-
|
|
123974
|
+
let leaves = researchLeaves(data, Number.MAX_SAFE_INTEGER);
|
|
123975
|
+
if (continuing) {
|
|
123976
|
+
const byPath = new Map(leaves.map((field) => [field.path, field]));
|
|
123977
|
+
const completedPaths = new Set(result.fields.map((field) => field.path));
|
|
123978
|
+
if (resumed.nextField > leaves.length || result.fields.length !== resumed.nextField || completedPaths.size !== result.fields.length || result.fields.some((field) => !byPath.has(field.path) || byPath.get(field.path).value !== field.value))
|
|
123979
|
+
throw new Error("Review checkpoint fields do not match draft");
|
|
123980
|
+
leaves = [
|
|
123981
|
+
...result.fields.map(({ path, value }) => ({ path, value })),
|
|
123982
|
+
...leaves.filter((field) => !completedPaths.has(field.path))
|
|
123983
|
+
];
|
|
123984
|
+
}
|
|
123977
123985
|
if (!leaves.length) {
|
|
123978
123986
|
result.data = data;
|
|
123979
123987
|
result.status = result.limitations.length ? "partial" : "empty";
|
|
@@ -124203,5 +124211,5 @@ export {
|
|
|
124203
124211
|
webIndexPostgresSchemaSql
|
|
124204
124212
|
};
|
|
124205
124213
|
|
|
124206
|
-
//# debugId=
|
|
124214
|
+
//# debugId=222ABFDFD829B1BC64756E2164756E21
|
|
124207
124215
|
//# sourceMappingURL=index.js.map
|