CI : Deployment
Some checks failed
release / build (push) Failing after 45s
release / verify-windows (push) Has been skipped

This commit is contained in:
jeanotx32
2026-08-11 17:10:08 +02:00
parent b529417940
commit 105d07b82b
16 changed files with 1662 additions and 86 deletions

View File

@@ -18,6 +18,7 @@ import {
safeJsonParse,
} from '@stream-control/shared';
import { loadConfig, persistIdentity, type AgentConfig } from './config.ts';
import { runDiagnostics } from './doctor.ts';
import { ObsController } from './obs.ts';
import { StreamWatcher } from './watcher.ts';
import { cpuUsagePercent, diskUsage, memoryUsage } from './system.ts';
@@ -256,4 +257,10 @@ process.on('unhandledRejection', (reason) => {
});
console.log(`stream-control agent v${AGENT_VERSION}${config.name} (${process.platform})`);
connect();
if (process.argv.includes('--check')) {
// Diagnostic seul : rien n'est démarré, aucune connexion n'est maintenue.
runDiagnostics(config).then((code) => process.exit(code));
} else {
connect();
}