@absolutejs/rag 0.24.6 → 0.24.7

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.
@@ -141,7 +141,7 @@ export type ResearchConfig = {
141
141
  reviewBatchSize?: number;
142
142
  /** Per-batch output ceiling, independent of extraction size. */
143
143
  reviewOutputTokens?: number;
144
- /** Host must confirm completed response AND durable accounting. Never retries automatically. Unused with package admission. */
144
+ /** Host must confirm completed response AND durable accounting. Allows a malformed plan to consume another already-configured discovery round; review retry still requires explicit continuation. Unused with package admission. */
145
145
  isReviewFailureSettled?: (error: unknown) => Promise<boolean>;
146
146
  /** Server-side diagnostics only. Errors are never serialized into public research results. */
147
147
  onError?: (event: {
@@ -123940,6 +123940,8 @@ Correct the previous schema-invalid response using the validation diagnostics. T
123940
123940
  if (!(error instanceof Error) || error.message !== "Invalid plan output")
123941
123941
  throw error;
123942
123942
  result.limitations.push("Invalid planning output; continued with retrieved evidence");
123943
+ if (round + 1 < limits.rounds && !admit && await config.isReviewFailureSettled?.(error) === true)
123944
+ continue;
123943
123945
  break;
123944
123946
  }
123945
123947
  for (const url of plan.urls)
@@ -124218,5 +124220,5 @@ export {
124218
124220
  webIndexPostgresSchemaSql
124219
124221
  };
124220
124222
 
124221
- //# debugId=83AF5B876427B29364756E2164756E21
124223
+ //# debugId=BD63CC77E4D4FF5D64756E2164756E21
124222
124224
  //# sourceMappingURL=index.js.map