@cortexkit/magic-context 0.31.4 → 0.31.5
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 +14 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -168147,6 +168147,17 @@ function migrateLegacyAgentEnabledConfigForDoctor(mcConfig, logs) {
|
|
|
168147
168147
|
migrateLegacyAgentEnabled("historian");
|
|
168148
168148
|
return { changed, fixes };
|
|
168149
168149
|
}
|
|
168150
|
+
function checkUserMemoriesDreamerCompatibility(mcConfig) {
|
|
168151
|
+
const dreamerObj = mcConfig?.dreamer;
|
|
168152
|
+
if (dreamerObj?.disable !== true)
|
|
168153
|
+
return null;
|
|
168154
|
+
const tasksObj = dreamerObj.tasks;
|
|
168155
|
+
const reviewTask = tasksObj?.["review-user-memories"];
|
|
168156
|
+
const schedule = reviewTask?.schedule;
|
|
168157
|
+
if (typeof schedule !== "string" || schedule.trim() === "")
|
|
168158
|
+
return null;
|
|
168159
|
+
return 'dreamer.tasks["review-user-memories"] is scheduled but dreamer.disable=true, so new promotions will not run. Remove dreamer.disable or set dreamer.tasks["review-user-memories"].schedule="" to disable the task.';
|
|
168160
|
+
}
|
|
168150
168161
|
async function fetchNpmLatest(pkg, timeoutMs = 5000) {
|
|
168151
168162
|
try {
|
|
168152
168163
|
const controller = new AbortController;
|
|
@@ -168778,12 +168789,9 @@ async function runDoctor(options = {}) {
|
|
|
168778
168789
|
try {
|
|
168779
168790
|
const mcRaw = readFileSync14(paths.magicContextConfig, "utf-8");
|
|
168780
168791
|
const mcConfig = import_comment_json8.parse(mcRaw);
|
|
168781
|
-
const
|
|
168782
|
-
|
|
168783
|
-
|
|
168784
|
-
const userMemEnabled = userMemObj?.enabled !== false;
|
|
168785
|
-
if (userMemEnabled && dreamerDisabled) {
|
|
168786
|
-
log2.warn("dreamer.user_memories is enabled but dreamer.disable=true, so new promotions will not run. Remove dreamer.disable or set dreamer.user_memories.enabled=false.");
|
|
168792
|
+
const warning = checkUserMemoriesDreamerCompatibility(mcConfig);
|
|
168793
|
+
if (warning) {
|
|
168794
|
+
log2.warn(warning);
|
|
168787
168795
|
issues++;
|
|
168788
168796
|
}
|
|
168789
168797
|
} catch {}
|