MCPcopy Create free account
hub / github.com/SethGammon/Citadel / createAppServerProbe

Function createAppServerProbe

core/codex/native-integrations.js:542–557  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

540 configPath,
541 checks,
542 pass: checks.every((check) => check.pass),
543 recommendation: isWindows
544 ? 'Prefer [windows] sandbox = "elevated"; use "unelevated" only when elevated setup is blocked.'
545 : 'Native Windows sandbox checks are advisory outside Windows.',
546 };
547}
548
549function createAppServerProbe(options = {}) {
550 const listen = options.listen || 'stdio://';
551 const args = ['app-server', '--listen', listen];
552 if (options.wsAuth) args.push('--ws-auth', options.wsAuth);
553 if (options.wsTokenFile) args.push('--ws-token-file', path.resolve(options.wsTokenFile));
554
555 return {
556 command: 'codex',
557 args,
558 localOnly: listen === 'stdio://' || listen.startsWith('unix://') || listen.startsWith('ws://127.0.0.1') || listen.startsWith('ws://localhost'),
559 warning: listen.startsWith('ws://') && !options.wsAuth
560 ? 'WebSocket app-server probes should use a local listener or explicit auth.'

Callers 3

testBridgeUtilitiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected