Skip to content

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

chore: keep process socket contract in event-name order (#8549)

[._.]/ Adam Eivyc459ff332ee0
diff --git a/server/lib/socketEventContracts.js b/server/lib/socketEventContracts.js
index 9100c69114..65bc62f5ab 100644
--- a/server/lib/socketEventContracts.js
+++ b/server/lib/socketEventContracts.js
@@ -37,22 +37,6 @@ export const SOCKET_EVENT_CONTRACTS = Object.freeze({
payloadSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'], additionalProperties: false },
},
- 'processes:changed': Object.freeze({
- direction: 'server-to-client',
- summary: 'PM2 snapshot for registered apps sharing a home; null means the probe failed.',
- payloadSchema: {
- type: 'object', required: ['appIds', 'defaultHome', 'processes'],
- properties: {
- appIds: { type: 'array', items: { type: 'string' } },
- defaultHome: { type: 'boolean' },
- processes: { type: ['array', 'null'], items: { type: 'object', properties: {
- name: { type: 'string' }, status: { type: 'string' }, pid: { type: 'number' },
- pm_id: { type: 'number' }, cpu: { type: 'number' }, memory: { type: 'number' },
- uptime: { type: ['number', 'null'] }, restarts: { type: 'number' }, unstableRestarts: { type: 'number' }
- } } }
- }
- }
- }),
'app:deploy': input(appDeploySchema, 'Deploy a managed app with allowlisted flags.'),
'app:standardize': input(appStandardizeSchema, 'Standardize one registered app.'),
'app:update': input(appUpdateSchema, 'Run the update lifecycle for one registered app.'),
@@ -124,6 +108,22 @@ export const SOCKET_EVENT_CONTRACTS = Object.freeze({
}),
'logs:subscribe': input(logsSubscribeSchema, 'Subscribe to a bounded process-log tail.'),
'logs:unsubscribe': input(logsUnsubscribeSchema, 'Release one process-log subscription or all legacy subscriptions.'),
+ 'processes:changed': Object.freeze({
+ direction: 'server-to-client',
+ summary: 'PM2 snapshot for registered apps sharing a home; null means the probe failed.',
+ payloadSchema: {
+ type: 'object', required: ['appIds', 'defaultHome', 'processes'],
+ properties: {
+ appIds: { type: 'array', items: { type: 'string' } },
+ defaultHome: { type: 'boolean' },
+ processes: { type: ['array', 'null'], items: { type: 'object', properties: {
+ name: { type: 'string' }, status: { type: 'string' }, pid: { type: 'number' },
+ pm_id: { type: 'number' }, cpu: { type: 'number' }, memory: { type: 'number' },
+ uptime: { type: ['number', 'null'] }, restarts: { type: 'number' }, unstableRestarts: { type: 'number' }
+ } } }
+ }
+ }
+ }),
'shell:attach': input(shellAttachSchema, 'Attach this socket to an existing terminal session.'),
'shell:cd': input(shellCdSchema, 'Change an existing terminal session directory.'),
'shell:input': input(shellInputSchema, 'Write bytes to an existing terminal session.'),