@equationalapplications/core-llm-wiki 7.17.2 → 7.18.0
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 +27 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11601,6 +11601,32 @@ var RememberService = class {
|
|
|
11601
11601
|
}
|
|
11602
11602
|
};
|
|
11603
11603
|
|
|
11604
|
+
// src/utils/upgradeNotice.ts
|
|
11605
|
+
function upcomingDefaultsWarning(config) {
|
|
11606
|
+
const strategyUnset = config?.librarian?.strategy === void 0;
|
|
11607
|
+
const maintenanceUnset = config?.maintenance === void 0;
|
|
11608
|
+
if (!strategyUnset && !maintenanceUnset) return null;
|
|
11609
|
+
const unset = [];
|
|
11610
|
+
const keep = [];
|
|
11611
|
+
if (strategyUnset) {
|
|
11612
|
+
unset.push("`librarian.strategy` (default becomes 'ops')");
|
|
11613
|
+
keep.push("`librarian: { strategy: 'legacy' }`");
|
|
11614
|
+
}
|
|
11615
|
+
if (maintenanceUnset) {
|
|
11616
|
+
unset.push("`maintenance` (default becomes 'deferred')");
|
|
11617
|
+
keep.push("`maintenance: 'auto'`");
|
|
11618
|
+
}
|
|
11619
|
+
const deferredNote = maintenanceUnset ? " Under 'deferred', the auto-run thresholds stop applying and nothing runs until the host calls runPendingMaintenance()." : "";
|
|
11620
|
+
return `[core-llm-wiki] 8.0.0 changes engine defaults, and this config does not set ${unset.join(" or ")}.${deferredNote} To keep today's behavior, set ${keep.join(" and ")}.`;
|
|
11621
|
+
}
|
|
11622
|
+
var warned = /* @__PURE__ */ new Set();
|
|
11623
|
+
function warnUpcomingDefaultsOnce(config) {
|
|
11624
|
+
const message = upcomingDefaultsWarning(config);
|
|
11625
|
+
if (message === null || warned.has(message)) return;
|
|
11626
|
+
warned.add(message);
|
|
11627
|
+
console.warn(message);
|
|
11628
|
+
}
|
|
11629
|
+
|
|
11604
11630
|
// src/WikiMemory.ts
|
|
11605
11631
|
var TABLE_PREFIX_PATTERN = /^[A-Za-z][A-Za-z0-9_]{0,30}_$/;
|
|
11606
11632
|
var SEARCH_REINIT_COOLDOWN_MS = 5e3;
|
|
@@ -11643,6 +11669,7 @@ var WikiMemory = class {
|
|
|
11643
11669
|
`Invalid tablePrefix: ${JSON.stringify(this.prefix)}. Must match ${TABLE_PREFIX_PATTERN} (letter, then alphanumeric/underscore, ending in "_", max 32 chars total).`
|
|
11644
11670
|
);
|
|
11645
11671
|
}
|
|
11672
|
+
warnUpcomingDefaultsOnce(options.config);
|
|
11646
11673
|
this.outboxRepo = new OutboxRepository(this.db, this.prefix, !!options.config?.enableOutbox);
|
|
11647
11674
|
this.entryRepo = new EntryRepository(this.db, this.prefix, this.outboxRepo);
|
|
11648
11675
|
this.sourceRefIndexRepo = new SourceRefIndexRepository(this.db, this.prefix);
|