wiki-graph-sdk 0.9.1 → 0.9.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/dist/index.cjs CHANGED
@@ -3146,13 +3146,16 @@ var WikiGraphArchiveHandle = class {
3146
3146
  return await this.#runtime.run(
3147
3147
  async () => await withConfiguredWikimediaResolver(
3148
3148
  objectUri,
3149
- async (wikimediaOptions) => await this.#readDocument(
3150
- async (document) => await (0, import_wiki_graph_core7.readArchivePage)(document, objectUri, {
3151
- ...options,
3152
- ...wikimediaOptions
3153
- }),
3154
- options
3155
- )
3149
+ async (wikimediaOptions) => {
3150
+ const read2 = await this.#readDocument(
3151
+ async (document) => await (0, import_wiki_graph_core7.prepareArchivePage)(document, objectUri, {
3152
+ ...options,
3153
+ ...wikimediaOptions
3154
+ }),
3155
+ options
3156
+ );
3157
+ return await read2();
3158
+ }
3156
3159
  ),
3157
3160
  options.signal
3158
3161
  );
@@ -5142,8 +5145,7 @@ async function readQueueReadinessReason(document, chapter, target) {
5142
5145
  return "planned";
5143
5146
  }
5144
5147
  if (target === "index-embedding-summary") {
5145
- const summary = await document.readSummary(chapter.chapterId);
5146
- if (summary === void 0 || summary.trim() === "") {
5148
+ if (chapter.stage !== "summarized") {
5147
5149
  return "missing summary";
5148
5150
  }
5149
5151
  }