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/index.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  moveChapter,
34
34
  packArchiveContext,
35
35
  parseLocatedWikiGraphUri as parseLocatedWikiGraphUri2,
36
- readArchivePage,
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) => await this.#readDocument(
3077
- async (document) => await readArchivePage(document, objectUri, {
3078
- ...options,
3079
- ...wikimediaOptions
3080
- }),
3081
- options
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
- const summary = await document.readSummary(chapter.chapterId);
5138
- if (summary === void 0 || summary.trim() === "") {
5140
+ if (chapter.stage !== "summarized") {
5139
5141
  return "missing summary";
5140
5142
  }
5141
5143
  }