@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.
@@ -5039,6 +5039,8 @@ var CONTEXT_OVERFLOW_PATTERNS = [
5039
5039
  // classify as input overflow (it would split the batch and stamp a cooldown).
5040
5040
  /(input|prompt).{0,40}exceed(s|ed)? .{0,30}(context|maximum)/i,
5041
5041
  /context limit/i,
5042
+ // llama.rn (RNLlamaJSI.cpp): prompt >= n_ctx with ctx_shift off
5043
+ /\bcontext is full\b/i,
5042
5044
  /too long for (the )?requested model/i,
5043
5045
  // vLLM dual-match wording (errata E2 ruling): the regex ENFORCES the dual-match —
5044
5046
  // "max_tokens ... too large" PLUS a context clause; a bare message is NOT overflow
@@ -8374,7 +8376,6 @@ DROP TRIGGER IF EXISTS ${ad};`);
8374
8376
  const batchSize = options?.batchSize ?? HEAL_BATCH_SIZE;
8375
8377
  const trigger = options?.trigger ?? "call";
8376
8378
  const diagBase = { entityId, operation: "heal", trigger };
8377
- const healFloor = resolveHealScreenMinConfidence(this.options.config);
8378
8379
  if (!Number.isInteger(batchSize) || batchSize < 1) {
8379
8380
  throw new Error("Invalid batchSize: must be an integer >= 1");
8380
8381
  }
@@ -8382,6 +8383,7 @@ DROP TRIGGER IF EXISTS ${ad};`);
8382
8383
  if (!Number.isInteger(bodyTruncationChars) || bodyTruncationChars < 1) {
8383
8384
  throw new Error("Invalid bodyTruncationChars: must be an integer >= 1");
8384
8385
  }
8386
+ const healFloor = resolveHealScreenMinConfidence(this.options.config);
8385
8387
  const now = Date.now();
8386
8388
  const recheckCutoff = now - HEAL_RECHECK_MS;
8387
8389
  const orphanAfterDays = this.options.config?.orphanAfterDays !== void 0 ? this.options.config?.orphanAfterDays : 30;
@@ -8666,7 +8668,7 @@ DROP TRIGGER IF EXISTS ${ad};`);
8666
8668
  diagBuffer.push({
8667
8669
  ...diagBase,
8668
8670
  code,
8669
- detail: { factId, reason: "below_floor", ...confidence !== void 0 ? { confidence } : {} }
8671
+ detail: { factId, reason: "below_floor", confidence }
8670
8672
  });
8671
8673
  }
8672
8674
  };
@@ -11991,5 +11993,5 @@ var WriteService = class {
11991
11993
  };
11992
11994
 
11993
11995
  export { BaseRepository, CLASSIFIER_MAX_CHOICES, CURRENT_SCHEMA_VERSION, CheckpointIncompleteError, DEFAULT_CHUNK_OVERLAP, DEFAULT_MAX_CHUNK_LENGTH, DEFAULT_MAX_EMBED_CHARS, DEFAULT_TYPING_MIN_CONFIDENCE, DiagnosticBuffer, EMBED_CHARS_CEILING, EdgeRepository, EmbeddingService, EraseStepError, FTS5_DRAIN_CHUNK, FTS5_REBUILD_SNAPSHOT_KEY, FTS5_REBUILD_WM_KEY, FTS5_RECLAIM_MERGE_PAGES, FTS5_RETIRED_COUNTER_KEY, FTS5_RETIRED_TABLES_KEY, FTS5_STATE_KEY, FTS5_SWEEP_CURSOR_KEY, HEAL_ANCHORS_PER_CANDIDATE, HEAL_BATCH_SIZE, HEAL_MAX_FACT_BODY_CHARS_L3, HEAL_MAX_TASKS, HEAL_RECHECK_MS, HOOK_TIMEOUT_MARKER, ImportExportService, IngestionService, JobManager, MAX_EMBED_ATTEMPTS, MIGRATIONS, MaintenanceService, MetadataRepository, ONTOLOGY_ABSTAIN_SENTINEL, ONTOLOGY_BACKFILL_BATCH_SIZE, ONTOLOGY_BACKFILL_MAX_PROMPT_CHARS, ONTOLOGY_BACKFILL_RECHECK_MS, ONTOLOGY_BACKFILL_SYSTEM_PROMPT, PromptService, PrunePartialFailureError, RetrievalService, SearchService, SourceStoreService, TemporalService, UnavailableIndexStrategy, UsageMeter, VectorRemovalRepository, VectorRemovalService, WikiBusyError, WikiDraftNotFound, WikiDuplicateHashError, WikiExternalDeletionError, WikiGraphNodeOwnershipConflict, WikiIngestEmptyError, WikiInvalidReadOptions, WikiMigrationRequiredError, WikiParseError, WikiSearchUnavailableError, WikiSourceRefHashCollision, WikiStrictOntologyViolation, WikiSupersedeError, WikiTransactionError, WriteService, __privateAdd, __privateGet, __privateSet, assertEntityId, assertEpochMs, chunkText, configureRandomSource, createLegacySourceTypeIndex, createdAtValue, detectSchemaVersion, drainChunkSql, drainHiSql, edgeTripleAllowed, emitDiagnostic, emptyManifest, entityDrainChunkSql, entityDrainHiSql, entitySummaryMetaKey, extractSqliteCode, factTokenCost, fts5LedgerDropSql, fts5PendingIndexesDdl, fts5TablesDdl, fts5TriggerNames, fts5TriggersDdl, generateId, idDrainChunkSql, idReindexChunkSql, isLiveAt, isReservedAbstainSlug, isRetiredTableName, isUsableDate, isWikiSearchUnavailableError, liveAtSql, nodeTypeReceipts, normalizeSourceHash, normalizeSourceRef, normalizeTitleKey, packFactsByBudget, parseEmbedding, parseJsonArray, parseJsonObject, parseStoredSourcePointer, passageFtsTablesDdl, passageFtsTriggerNames, passageFtsTriggersDdl, probePendingWork, readRebuildProgress, reanchorRebuildFingerprint, resolveContextBudget, resolveContextBudgetOrThrow, resolveDefaultChunkLength, resolveEdgeDefinitions, resolveEdgesMinConfidence, resolveGrounding, resolveHealScreenMinConfidence, resolveLibrarianStrategy, resolveMaxPromptChars, resolveNodeType, resolveNodeTypeMatch, resolveResolveMinConfidence, resolveSystemOneEdges, resolveSystemOneHealScreen, resolveSystemOneResolve, resolveSystemOneTyping, resolveTypingMinConfidence, retiredTableName, runSourceRefNormalize, safeSlice, serializeSourcePointer, setupDatabase, shouldEmitOntologyReceipt, sweepChunkSql, sweepHiSql, typeSatisfies, validUsage, validateInlineEdges, validateManifest, validateSourcePointerValue, warnChangedDefaultsOnce, warnOnce, windowChunkSql, windowHiSql, writeNormalizeStamp, writeRebuildStart };
11994
- //# sourceMappingURL=chunk-2FCE7ZAC.mjs.map
11995
- //# sourceMappingURL=chunk-2FCE7ZAC.mjs.map
11996
+ //# sourceMappingURL=chunk-JX7VMQ55.mjs.map
11997
+ //# sourceMappingURL=chunk-JX7VMQ55.mjs.map