@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.
@@ -154,7 +154,6 @@ var init_constants = __esm(() => {
154
154
 
155
155
  // src/ai/rag/quality.ts
156
156
  import { mkdir, readFile, writeFile } from "fs/promises";
157
- import { createRequire } from "module";
158
157
  import { dirname } from "path";
159
158
 
160
159
  // src/ai/protocol.ts
@@ -450,7 +449,13 @@ var buildRAGGroundingReferences = (sources) => {
450
449
  var DEFAULT_TOP_K = 6;
451
450
  var DEFAULT_HISTORY_LIMIT = 20;
452
451
  var DEFAULT_SEARCH_TRACE_TABLE_NAME = "rag_search_traces";
453
- var require2 = createRequire(import.meta.url);
452
+ var loadBunSQLiteModule = () => {
453
+ const runtimeRequire = import.meta.require;
454
+ if (typeof runtimeRequire !== "function") {
455
+ throw new Error("SQLite trace storage requires Bun runtime support for import.meta.require.");
456
+ }
457
+ return runtimeRequire("bun:sqlite");
458
+ };
454
459
  var normalizeStringArray = (value) => {
455
460
  if (!Array.isArray(value)) {
456
461
  return [];
@@ -1755,7 +1760,7 @@ var createRAGFileRetrievalBaselineStore = (path) => {
1755
1760
  status: "active",
1756
1761
  version: typeof record.version === "number" ? record.version : currentVersion + 1
1757
1762
  },
1758
- ...existing.map((entry) => entry.groupKey === record.groupKey ? { ...entry, status: "superseded" } : entry)
1763
+ ...existing.map((entry) => entry.groupKey === record.groupKey && (entry.rolloutLabel ?? undefined) === (record.rolloutLabel ?? undefined) ? { ...entry, status: "superseded" } : entry)
1759
1764
  ]);
1760
1765
  await mkdir(dirname(path), { recursive: true });
1761
1766
  await writeFile(path, JSON.stringify(next, null, "\t") + `
@@ -2331,7 +2336,7 @@ var mapSQLiteSearchTraceRow = (row) => ({
2331
2336
  var createRAGSQLiteSearchTraceStore = (options) => {
2332
2337
  const tableName = options.tableName ?? DEFAULT_SEARCH_TRACE_TABLE_NAME;
2333
2338
  assertSupportedIdentifier(tableName);
2334
- const db = options.db ?? new (require2("bun:sqlite")).Database(options.path ?? ":memory:");
2339
+ const db = options.db ?? new (loadBunSQLiteModule()).Database(options.path ?? ":memory:");
2335
2340
  db.exec(`
2336
2341
  CREATE TABLE IF NOT EXISTS ${tableName} (
2337
2342
  id TEXT PRIMARY KEY,
@@ -7538,5 +7543,5 @@ export {
7538
7543
  AIStreamProvider
7539
7544
  };
7540
7545
 
7541
- //# debugId=C7E85BD6E404AF4864756E2164756E21
7546
+ //# debugId=1C8C3F1D291DDB2564756E2164756E21
7542
7547
  //# sourceMappingURL=index.js.map