wiki-graph-sdk 0.9.1 → 0.9.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/dist/archives.cjs +10 -7
- package/dist/archives.cjs.map +1 -1
- package/dist/archives.js +11 -8
- package/dist/archives.js.map +1 -1
- package/dist/index.cjs +11 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
moveChapter,
|
|
34
34
|
packArchiveContext,
|
|
35
35
|
parseLocatedWikiGraphUri as parseLocatedWikiGraphUri2,
|
|
36
|
-
|
|
36
|
+
prepareArchivePage,
|
|
37
37
|
readSearchIndexCapabilityStatus,
|
|
38
38
|
rebuildArchiveSearchIndex,
|
|
39
39
|
removeChapter,
|
|
@@ -3073,13 +3073,16 @@ var WikiGraphArchiveHandle = class {
|
|
|
3073
3073
|
return await this.#runtime.run(
|
|
3074
3074
|
async () => await withConfiguredWikimediaResolver(
|
|
3075
3075
|
objectUri,
|
|
3076
|
-
async (wikimediaOptions) =>
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3076
|
+
async (wikimediaOptions) => {
|
|
3077
|
+
const read2 = await this.#readDocument(
|
|
3078
|
+
async (document) => await prepareArchivePage(document, objectUri, {
|
|
3079
|
+
...options,
|
|
3080
|
+
...wikimediaOptions
|
|
3081
|
+
}),
|
|
3082
|
+
options
|
|
3083
|
+
);
|
|
3084
|
+
return await read2();
|
|
3085
|
+
}
|
|
3083
3086
|
),
|
|
3084
3087
|
options.signal
|
|
3085
3088
|
);
|
|
@@ -5134,8 +5137,7 @@ async function readQueueReadinessReason(document, chapter, target) {
|
|
|
5134
5137
|
return "planned";
|
|
5135
5138
|
}
|
|
5136
5139
|
if (target === "index-embedding-summary") {
|
|
5137
|
-
|
|
5138
|
-
if (summary === void 0 || summary.trim() === "") {
|
|
5140
|
+
if (chapter.stage !== "summarized") {
|
|
5139
5141
|
return "missing summary";
|
|
5140
5142
|
}
|
|
5141
5143
|
}
|