chore: publish current DataStack updates

Publish the current application, design, and Phase 1 deployment updates. Excludes ignored personal notes, local MCP config, and generated TypeScript build info.
This commit is contained in:
i vib committed 2026-10-23 19:56:38 -07:00
1 parent d39d9f92f9
commit fcc4f4db2d
88 files changed
+21248 -2213

No files matched your search

+27 -5
View File
@@ -1,7 +1,7 @@
import { SecurityEngine } from '../Security/security';
import { DataBufferEngine } from '../data/buffer';
import { AuthService } from '../auth/jwt';
import { CSVStorageManager } from '../Storage/csvStorage';
import { AuthService } from "../auth/jwt";
import { DataBufferEngine } from "../data/buffer";
import { SecurityEngine } from "../Security/security";
import { CSVStorageManager } from "../Storage/csvStorage";
export interface AdminSettings {
serverPort: number;
@@ -26,7 +26,7 @@ export class SettingsManager {
batchFlushThreshold: 500,
batchFlushIntervalMs: 2000,
fileRotationMb: 100,
jwtSecret: 'datastack-universal-secret-key-2026',
jwtSecret: process.env.DATASTACK_JWT_SECRET || "",
enableIdempotency: true,
autoPruneDays: 30,
updatedAt: new Date().toISOString(),
@@ -36,6 +36,22 @@ export class SettingsManager {
return { ...this.settings };
}
public static getPublicSettings(): Omit<AdminSettings, "jwtSecret"> {
const settings = this.settings;
return {
serverPort: settings.serverPort,
webPort: settings.webPort,
maxEventsPerSec: settings.maxEventsPerSec,
maxPayloadSizeKb: settings.maxPayloadSizeKb,
batchFlushThreshold: settings.batchFlushThreshold,
batchFlushIntervalMs: settings.batchFlushIntervalMs,
fileRotationMb: settings.fileRotationMb,
enableIdempotency: settings.enableIdempotency,
autoPruneDays: settings.autoPruneDays,
updatedAt: settings.updatedAt,
};
}
public static updateSettings(updates: Partial<AdminSettings>): AdminSettings {
this.settings = {
...this.settings,
@@ -44,6 +60,12 @@ export class SettingsManager {
};
// Apply live updates to subsystems
if (updates.maxEventsPerSec !== undefined) {
SecurityEngine.maxEventsPerSec = updates.maxEventsPerSec;
}
if (updates.enableIdempotency !== undefined) {
SecurityEngine.enableIdempotency = updates.enableIdempotency;
}
if (updates.maxPayloadSizeKb !== undefined) {
SecurityEngine.maxPayloadSizeBytes = updates.maxPayloadSizeKb * 1024;
}