@@ -6,11 +6,6 @@ export type CloudConfig = {
66 api_key : string
77}
88
9- export type DashboardConfig = {
10- enabled : boolean
11- port : number
12- }
13-
149export type BasicMemoryConfig = {
1510 project : string
1611 bmPath : string
@@ -23,7 +18,6 @@ export type BasicMemoryConfig = {
2318 recallPrompt : string
2419 debug : boolean
2520 cloud ?: CloudConfig
26- dashboard : DashboardConfig
2721}
2822
2923const ALLOWED_KEYS = [
@@ -43,7 +37,6 @@ const ALLOWED_KEYS = [
4337 "recall_prompt" ,
4438 "debug" ,
4539 "cloud" ,
46- "dashboard" ,
4740]
4841
4942function assertAllowedKeys (
@@ -113,22 +106,6 @@ export function parseConfig(raw: unknown): BasicMemoryConfig {
113106 }
114107 }
115108
116- let dashboard : DashboardConfig = { enabled : false , port : 3838 }
117- if (
118- cfg . dashboard &&
119- typeof cfg . dashboard === "object" &&
120- ! Array . isArray ( cfg . dashboard )
121- ) {
122- const d = cfg . dashboard as Record < string , unknown >
123- dashboard = {
124- enabled : typeof d . enabled === "boolean" ? d . enabled : false ,
125- port :
126- typeof d . port === "number" && d . port > 0 && d . port < 65536
127- ? d . port
128- : 3838 ,
129- }
130- }
131-
132109 return {
133110 project :
134111 typeof cfg . project === "string" && cfg . project . length > 0
@@ -167,7 +144,6 @@ export function parseConfig(raw: unknown): BasicMemoryConfig {
167144 : "Check for active tasks and recent activity. Summarize anything relevant to the current session." ,
168145 debug : typeof cfg . debug === "boolean" ? cfg . debug : false ,
169146 cloud,
170- dashboard,
171147 }
172148}
173149
0 commit comments