Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: declare sweep payload using JSON Schema null types
[._.]/ Adam Eivyb56a30b6f9fe
diff --git a/server/lib/socketEventContracts.js b/server/lib/socketEventContracts.jsindex 49edec6a7e..81cf8b6de3 100644--- a/server/lib/socketEventContracts.js+++ b/server/lib/socketEventContracts.js@@ -42,29 +42,29 @@ export const SOCKET_EVENT_CONTRACTS = Object.freeze({required: ['status', 'settled', 'total', 'completed', 'results', 'cancelRequested'],properties: {status: { type: 'string', enum: ['idle', 'running', 'cancelled', 'failed', 'complete'] },- mode: { type: 'string', nullable: true, enum: ['models', 'tunings'] },- scope: { type: 'string', nullable: true },- target: { type: 'object', nullable: true, properties: { backend: { type: 'string' }, modelId: { type: 'string' } } },+ mode: { type: ['string', 'null'], enum: ['models', 'tunings', null] },+ scope: { type: ['string', 'null'] },+ target: { type: ['object', 'null'], properties: { backend: { type: 'string' }, modelId: { type: 'string' } } },settled: { type: 'boolean' },- startedAt: { type: 'string', nullable: true },- finishedAt: { type: 'string', nullable: true },+ startedAt: { type: ['string', 'null'] },+ finishedAt: { type: ['string', 'null'] },total: { type: 'integer' },completed: { type: 'integer' },- current: { type: 'object', nullable: true, properties: {+ current: { type: ['object', 'null'], properties: {backend: { type: 'string' }, modelId: { type: 'string' },- tuningLabel: { type: 'string', nullable: true }, startedAt: { type: 'string' },+ tuningLabel: { type: ['string', 'null'] }, startedAt: { type: 'string' },} },results: { type: 'array', items: { type: 'object', properties: {backend: { type: 'string' }, modelId: { type: 'string' },- tuningLabel: { type: 'string', nullable: true }, finishedAt: { type: 'string' },- verdict: { type: 'string', nullable: true }, error: { type: 'string', nullable: true },- meanTokensPerSecond: { type: 'number', nullable: true }, meanCharsPerSecond: { type: 'number', nullable: true },- tokensEstimated: { type: 'boolean', nullable: true }, tuningApplied: { type: 'boolean', nullable: true },- tuningNotApplied: { type: 'string', nullable: true },+ tuningLabel: { type: ['string', 'null'] }, finishedAt: { type: 'string' },+ verdict: { type: ['string', 'null'] }, error: { type: ['string', 'null'] },+ meanTokensPerSecond: { type: ['number', 'null'] }, meanCharsPerSecond: { type: ['number', 'null'] },+ tokensEstimated: { type: ['boolean', 'null'] }, tuningApplied: { type: ['boolean', 'null'] },+ tuningNotApplied: { type: ['string', 'null'] },} } },cancelRequested: { type: 'boolean' },- error: { type: 'string', nullable: true },- restoreError: { type: 'string', nullable: true },+ error: { type: ['string', 'null'] },+ restoreError: { type: ['string', 'null'] },},additionalProperties: false,},