@mingxy/cerebro 1.15.13 → 1.16.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/src/config.ts CHANGED
@@ -29,7 +29,6 @@ export interface OmemPluginConfig {
29
29
  phase2Multiplier: number;
30
30
  llmMaxEval: number;
31
31
  refineStrategy: "strict" | "balanced" | "loose";
32
- refineMediumChars: number;
33
32
  };
34
33
  logging: {
35
34
  logEnabled: boolean;
@@ -39,15 +38,11 @@ export interface OmemPluginConfig {
39
38
  ui: {
40
39
  toastDelayMs: number;
41
40
  };
42
- soulWhisper?: {
43
- enabled: boolean;
44
- tools: string[];
45
- excludeTools: string[];
46
- maxToolNames: number;
41
+ profile?: {
42
+ ttlMs?: number;
47
43
  };
48
44
  agentMemoryPolicy?: Record<string, "none" | "readonly" | "readwrite">;
49
45
  defaultPolicy?: "none" | "readonly" | "readwrite";
50
- injectionStrategy?: "parts" | "system";
51
46
  }
52
47
 
53
48
  // ── Defaults ─────────────────────────────────────────────────────────
@@ -77,7 +72,6 @@ const DEFAULTS: OmemPluginConfig = {
77
72
  phase2Multiplier: 2,
78
73
  llmMaxEval: 15,
79
74
  refineStrategy: "balanced",
80
- refineMediumChars: 200,
81
75
  },
82
76
  logging: {
83
77
  logEnabled: true,
@@ -87,13 +81,9 @@ const DEFAULTS: OmemPluginConfig = {
87
81
  ui: {
88
82
  toastDelayMs: 7000,
89
83
  },
90
- soulWhisper: {
91
- enabled: true,
92
- tools: ["*"],
93
- excludeTools: ["memory_store", "memory_search", "memory_get", "memory_toggle", "memory_ingest"],
94
- maxToolNames: 3,
84
+ profile: {
85
+ ttlMs: 300000,
95
86
  },
96
- injectionStrategy: "parts" as const,
97
87
  };
98
88
 
99
89
  // ── Flat-to-nested migration ─────────────────────────────────────────
@@ -148,7 +138,6 @@ function migrateFlatToNested(flat: FlatConfig): OmemPluginConfig {
148
138
  phase2Multiplier: DEFAULTS.recall.phase2Multiplier,
149
139
  llmMaxEval: DEFAULTS.recall.llmMaxEval,
150
140
  refineStrategy: DEFAULTS.recall.refineStrategy,
151
- refineMediumChars: DEFAULTS.recall.refineMediumChars,
152
141
  },
153
142
  logging: {
154
143
  logEnabled: flat.logEnabled ?? DEFAULTS.logging.logEnabled,
@@ -175,10 +164,9 @@ function deepMerge(base: OmemPluginConfig, overrides: Partial<OmemPluginConfig>)
175
164
  logging: { ...base.logging, ...overrides.logging },
176
165
  ui: { ...base.ui, ...overrides.ui },
177
166
  };
178
- result.soulWhisper = { ...base.soulWhisper!, ...overrides.soulWhisper };
167
+ result.profile = { ...base.profile!, ...overrides.profile };
179
168
  if (overrides.agentMemoryPolicy) result.agentMemoryPolicy = overrides.agentMemoryPolicy;
180
169
  if (overrides.defaultPolicy) result.defaultPolicy = overrides.defaultPolicy;
181
- result.injectionStrategy = overrides.injectionStrategy ?? base.injectionStrategy;
182
170
  return result;
183
171
  }
184
172