@absolutejs/absolute 0.19.0-beta.600 → 0.19.0-beta.602

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.
@@ -146,7 +146,6 @@ var isValidAIClientMessage = (data) => {
146
146
 
147
147
  // src/ai/rag/quality.ts
148
148
  import { mkdir, readFile, writeFile } from "fs/promises";
149
- import { createRequire } from "module";
150
149
  import { dirname } from "path";
151
150
 
152
151
  // src/ai/protocol.ts
@@ -442,7 +441,13 @@ var buildRAGGroundingReferences = (sources) => {
442
441
  var DEFAULT_TOP_K = 6;
443
442
  var DEFAULT_HISTORY_LIMIT = 20;
444
443
  var DEFAULT_SEARCH_TRACE_TABLE_NAME = "rag_search_traces";
445
- var require2 = createRequire(import.meta.url);
444
+ var loadBunSQLiteModule = () => {
445
+ const runtimeRequire = import.meta.require;
446
+ if (typeof runtimeRequire !== "function") {
447
+ throw new Error("SQLite trace storage requires Bun runtime support for import.meta.require.");
448
+ }
449
+ return runtimeRequire("bun:sqlite");
450
+ };
446
451
  var normalizeStringArray = (value) => {
447
452
  if (!Array.isArray(value)) {
448
453
  return [];
@@ -1747,7 +1752,7 @@ var createRAGFileRetrievalBaselineStore = (path) => {
1747
1752
  status: "active",
1748
1753
  version: typeof record.version === "number" ? record.version : currentVersion + 1
1749
1754
  },
1750
- ...existing.map((entry) => entry.groupKey === record.groupKey ? { ...entry, status: "superseded" } : entry)
1755
+ ...existing.map((entry) => entry.groupKey === record.groupKey && (entry.rolloutLabel ?? undefined) === (record.rolloutLabel ?? undefined) ? { ...entry, status: "superseded" } : entry)
1751
1756
  ]);
1752
1757
  await mkdir(dirname(path), { recursive: true });
1753
1758
  await writeFile(path, JSON.stringify(next, null, "\t") + `
@@ -2323,7 +2328,7 @@ var mapSQLiteSearchTraceRow = (row) => ({
2323
2328
  var createRAGSQLiteSearchTraceStore = (options) => {
2324
2329
  const tableName = options.tableName ?? DEFAULT_SEARCH_TRACE_TABLE_NAME;
2325
2330
  assertSupportedIdentifier(tableName);
2326
- const db = options.db ?? new (require2("bun:sqlite")).Database(options.path ?? ":memory:");
2331
+ const db = options.db ?? new (loadBunSQLiteModule()).Database(options.path ?? ":memory:");
2327
2332
  db.exec(`
2328
2333
  CREATE TABLE IF NOT EXISTS ${tableName} (
2329
2334
  id TEXT PRIMARY KEY,
@@ -3590,5 +3595,5 @@ export {
3590
3595
  buildRAGAnswerGroundingCaseDifficultyLeaderboard
3591
3596
  };
3592
3597
 
3593
- //# debugId=829D913515A30D2D64756E2164756E21
3598
+ //# debugId=87DD409FB7CA7A0B64756E2164756E21
3594
3599
  //# sourceMappingURL=quality.js.map