Keras
File size: 8,669 Bytes
415b879
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
{
  "fileTypes": {
    "categories": {
      "code": {
        "extensions": [
          "tsx", "ts", "jsx", "js", "py", "cpp", "c", "h", "java", "kt",
          "go", "php", "rb", "pl", "lua", "dart", "R", "jl", "f", "vhd",
          "sv", "asm", "wasm", "html", "css", "scss", "less", "vue", "svelte",
          "sql", "sh", "bash", "ps1", "bat", "cmd", "swift", "m", "rs"
        ],
        "mimeTypes": [
          "text/javascript", "text/typescript", "text/x-python",
          "text/x-c", "text/x-java-source", "text/html", "text/css",
          "application/javascript", "application/typescript"
        ],
        "description": "Source code files and scripts",
        "processingOptions": {
          "syntaxHighlighting": true,
          "dependencyAnalysis": true,
          "codeMetrics": true,
          "securityScanning": true
        }
      },
      "documents": {
        "extensions": [
          "md", "pdf", "docx", "doc", "txt", "rtf", "odt", "epub", "tex",
          "xlsx", "xls", "ods", "pptx", "ppt", "odp", "log", "nfo",
          "readme", "changelog", "license"
        ],
        "mimeTypes": [
          "application/pdf", "text/plain", "text/markdown",
          "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
          "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
          "application/vnd.openxmlformats-officedocument.presentationml.presentation"
        ],
        "description": "Text documents, spreadsheets, and presentations",
        "processingOptions": {
          "textExtraction": true,
          "metadataExtraction": true,
          "languageDetection": true,
          "contentSummary": true
        }
      },
      "data": {
        "extensions": [
          "json", "csv", "xml", "yaml", "yml", "toml", "ini", "parquet",
          "avro", "orc", "sqlite", "db", "hdf5", "h5", "feather", "pickle",
          "pkl", "geojson", "topojson", "gpx", "kml", "rdf", "ttl", "graphml",
          "tsv", "jsonl", "ndjson"
        ],
        "mimeTypes": [
          "application/json", "text/csv", "application/xml", "text/yaml",
          "application/x-sqlite3", "application/x-parquet"
        ],
        "description": "Structured data files and databases",
        "processingOptions": {
          "schemaValidation": true,
          "dataProfiler": true,
          "statisticalAnalysis": true,
          "dataQualityCheck": true
        }
      },
      "multimedia": {
        "extensions": [
          "png", "jpg", "jpeg", "gif", "bmp", "tiff", "webp", "svg", "ico",
          "psd", "ai", "eps", "raw", "dng", "heic", "avif", "mp3", "wav",
          "aac", "flac", "ogg", "m4a", "wma", "aiff", "opus", "mp4", "mov",
          "avi", "wmv", "flv", "webm", "mkv", "3gp", "obj", "fbx", "gltf",
          "glb", "stl", "dae", "blend", "ttf", "otf", "woff", "woff2"
        ],
        "mimeTypes": [
          "image/png", "image/jpeg", "image/gif", "image/svg+xml",
          "audio/mpeg", "audio/wav", "video/mp4", "video/webm",
          "font/ttf", "font/otf", "model/gltf+json"
        ],
        "description": "Images, audio, video, 3D models, and fonts",
        "processingOptions": {
          "thumbnailGeneration": true,
          "metadataExtraction": true,
          "contentAnalysis": true,
          "formatConversion": true
        }
      },
      "archives": {
        "extensions": [
          "zip", "tar", "gz", "rar", "7z", "bz2", "xz", "iso", "dmg",
          "cab", "msi", "deb", "rpm", "pkg"
        ],
        "mimeTypes": [
          "application/zip", "application/x-tar", "application/gzip",
          "application/x-rar-compressed", "application/x-7z-compressed"
        ],
        "description": "Compressed archives and packages",
        "processingOptions": {
          "contentListing": true,
          "extractionPreview": true,
          "integrityCheck": true,
          "securityScanning": true
        }
      },
      "executables": {
        "extensions": [
          "exe", "dll", "so", "dylib", "apk", "app", "bin", "run",
          "msi", "pkg", "dmg"
        ],
        "mimeTypes": [
          "application/x-executable", "application/x-sharedlib",
          "application/vnd.android.package-archive",
          "application/x-msdownload"
        ],
        "description": "Executable files and libraries",
        "processingOptions": {
          "securityScanning": true,
          "signatureVerification": true,
          "metadataExtraction": true,
          "quarantineMode": true
        }
      }
    },
    "security": {
      "allowedExecutables": false,
      "maxFileSize": "50MB",
      "quarantineExtensions": ["exe", "dll", "bat", "cmd", "scr", "vbs", "jar"],
      "scanForMalware": true,
      "allowedMimeTypes": [
        "text/*", "image/*", "audio/*", "video/*", "application/json",
        "application/xml", "application/pdf", "application/zip"
      ],
      "blockedMimeTypes": [
        "application/x-executable", "application/x-msdownload"
      ]
    },
    "processing": {
      "defaultOptions": {
        "extractMetadata": true,
        "generateThumbnails": true,
        "performContentAnalysis": true,
        "enableCaching": true,
        "compressionLevel": "medium"
      },
      "limits": {
        "maxConcurrentFiles": 10,
        "maxQueueSize": 100,
        "timeoutSeconds": 300,
        "maxMemoryUsage": "1GB"
      },
      "optimization": {
        "enableParallelProcessing": true,
        "useWorkerThreads": true,
        "cacheResults": true,
        "adaptiveCompression": true
      }
    }
  },
  "memorySystem": {
    "configuration": {
      "shortTermCapacity": 100,
      "longTermCapacity": 1000,
      "archiveCapacity": 10000,
      "compressionRatio": 0.7,
      "retentionThreshold": 0.8,
      "cleanupInterval": 300000
    },
    "algorithms": {
      "compressionAlgorithm": "adaptive_semantic",
      "retrievalAlgorithm": "hybrid_vector_keyword",
      "retentionScoring": "multi_factor_weighted",
      "similarityThreshold": 0.7
    },
    "optimization": {
      "enableSemanticSearch": true,
      "useVectorEmbeddings": true,
      "adaptiveRetention": true,
      "backgroundCompression": true
    }
  },
  "performance": {
    "monitoring": {
      "enableLogging": true,
      "logLevel": "info",
      "metricsInterval": 5000,
      "maxLogEntries": 1000
    },
    "thresholds": {
      "cpu": 0.8,
      "memory": 0.85,
      "responseTime": 5000,
      "errorRate": 0.05,
      "diskIO": 0.9,
      "networkIO": 0.9
    },
    "alerts": {
      "enableAnomalyDetection": true,
      "alertThresholds": {
        "critical": 0.95,
        "warning": 0.8,
        "info": 0.6
      },
      "notificationMethods": ["log", "callback", "email"]
    }
  },
  "api": {
    "endpoints": {
      "memory": {
        "store": "/api/memory/store",
        "retrieve": "/api/memory/retrieve",
        "compress": "/api/memory/compress",
        "status": "/api/memory/status"
      },
      "files": {
        "upload": "/api/files/upload",
        "process": "/api/files/process",
        "status": "/api/files/{id}/status",
        "categories": "/api/files/categories"
      },
      "performance": {
        "metrics": "/api/performance/metrics",
        "logs": "/api/performance/logs",
        "alerts": "/api/performance/alerts"
      }
    },
    "authentication": {
      "required": false,
      "methods": ["apiKey", "jwt", "oauth2"],
      "rateLimiting": {
        "requests": 1000,
        "windowMs": 900000
      }
    },
    "cors": {
      "origin": "*",
      "methods": ["GET", "POST", "PUT", "DELETE"],
      "allowedHeaders": ["Content-Type", "Authorization", "X-API-Key"]
    }
  },
  "deployment": {
    "environment": {
      "nodeVersion": "18.x",
      "npmVersion": "9.x",
      "platform": "linux",
      "architecture": "x64"
    },
    "docker": {
      "baseImage": "node:18-alpine",
      "exposedPorts": [3000, 3001],
      "volumes": ["/app/data", "/app/logs"],
      "healthCheck": {
        "endpoint": "/health",
        "interval": "30s",
        "timeout": "10s",
        "retries": 3
      }
    },
    "scaling": {
      "minInstances": 1,
      "maxInstances": 10,
      "targetCPU": 70,
      "targetMemory": 80
    }
  },
  "logging": {
    "levels": ["debug", "info", "warn", "error"],
    "format": "json",
    "rotation": {
      "maxSize": "100MB",
      "maxFiles": 10,
      "compress": true
    },
    "destinations": ["console", "file", "remote"],
    "structured": {
      "timestamp": true,
      "level": true,
      "message": true,
      "metadata": true,
      "traceId": true
    }
  }
}