@equationalapplications/core-llm-wiki 9.14.0 → 9.14.1

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
@@ -9840,6 +9840,8 @@ var CONTEXT_OVERFLOW_PATTERNS = [
9840
9840
  // classify as input overflow (it would split the batch and stamp a cooldown).
9841
9841
  /(input|prompt).{0,40}exceed(s|ed)? .{0,30}(context|maximum)/i,
9842
9842
  /context limit/i,
9843
+ // llama.rn (RNLlamaJSI.cpp): prompt >= n_ctx with ctx_shift off
9844
+ /\bcontext is full\b/i,
9843
9845
  /too long for (the )?requested model/i,
9844
9846
  // vLLM dual-match wording (errata E2 ruling): the regex ENFORCES the dual-match —
9845
9847
  // "max_tokens ... too large" PLUS a context clause; a bare message is NOT overflow
@@ -12184,7 +12186,6 @@ DROP TRIGGER IF EXISTS ${ad};`);
12184
12186
  const batchSize = options?.batchSize ?? HEAL_BATCH_SIZE;
12185
12187
  const trigger = options?.trigger ?? "call";
12186
12188
  const diagBase = { entityId, operation: "heal", trigger };
12187
- const healFloor = resolveHealScreenMinConfidence(this.options.config);
12188
12189
  if (!Number.isInteger(batchSize) || batchSize < 1) {
12189
12190
  throw new Error("Invalid batchSize: must be an integer >= 1");
12190
12191
  }
@@ -12192,6 +12193,7 @@ DROP TRIGGER IF EXISTS ${ad};`);
12192
12193
  if (!Number.isInteger(bodyTruncationChars) || bodyTruncationChars < 1) {
12193
12194
  throw new Error("Invalid bodyTruncationChars: must be an integer >= 1");
12194
12195
  }
12196
+ const healFloor = resolveHealScreenMinConfidence(this.options.config);
12195
12197
  const now = Date.now();
12196
12198
  const recheckCutoff = now - HEAL_RECHECK_MS;
12197
12199
  const orphanAfterDays = this.options.config?.orphanAfterDays !== void 0 ? this.options.config?.orphanAfterDays : 30;
@@ -12476,7 +12478,7 @@ DROP TRIGGER IF EXISTS ${ad};`);
12476
12478
  diagBuffer.push({
12477
12479
  ...diagBase,
12478
12480
  code,
12479
- detail: { factId, reason: "below_floor", ...confidence !== void 0 ? { confidence } : {} }
12481
+ detail: { factId, reason: "below_floor", confidence }
12480
12482
  });
12481
12483
  }
12482
12484
  };